Move encoded as 'or' in binutils.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
2
3 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
4 as move along with [d]addu.
5
6 2015-10-28 Yao Qi <yao.qi@linaro.org>
7
8 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
9 aarch64_decode_insn.
10
11 2015-10-27 Pedro Alves <palves@redhat.com>
12
13 * common/print-utils.c (host_address_to_string): Rename to ...
14 (host_address_to_string_1): ... this.
15 * common/print-utils.h (host_address_to_string): Reimplement as
16 wrapper around host_address_to_string_1.
17 * utils.c (gdb_print_host_address): Rename to ...
18 (gdb_print_host_address_1): ... this.
19 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
20 around host_address_to_string_1.
21
22 2015-10-27 Pedro Alves <palves@redhat.com>
23
24 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
25 memory_error. Rename local 'status' to 'res'.
26 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
27 memory_error.
28 * corefile.c (read_stack, read_code, write_memory): Always pass
29 TARGET_XFER_E_IO to memory_error.
30 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
31 memory_error. Rename parameter 'status' to 'err'.
32 (dump_insns): Rename local 'status' to 'err'.
33 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
34 to 'errp'. Rename local 'status' to 'err'. Always pass
35 TARGET_XFER_E_IO to memory_error.
36 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
37 * target.c (target_read_memory, target_read_raw_memory)
38 (target_read_stack, target_read_code, target_write_memory)
39 (target_write_raw_memory): Return -1 on error instead of
40 TARGET_XFER_E_IO.
41 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
42 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
43
44 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
45
46 * guile/guile-internal.h (gdbscm_with_guile): Change return
47 types to const char *.
48 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
49 (struct c_data) <func>: Likewise.
50 (struct c_data) <result>: Change type to const char *.
51 (scscm_eval_scheme_string): Change return type to
52 const char *.
53 (scscm_source_scheme_script): Likewise.
54 (gdbscm_safe_eval_string): Change type of result variable to
55 const char * and remove cast.
56 (gdbscm_safe_source_script): Likewise.
57 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
58 Change return type to const char *.
59 (gdbscm_disasm_read_memory): Change type of status to
60 const char *.
61
62 2015-10-27 Pedro Alves <palves@redhat.com>
63
64 * source.c (openp): New local 'last_errno'. Use it to
65 save/restore errno.
66
67 2015-10-27 Pedro Alves <palves@redhat.com>
68
69 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
70
71 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * ctf.c (SET_ENUM_FIELD): New macro.
74 (ctf_read_status): Use it.
75 (ctf_read_tp): Use it.
76
77 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
80 scm_t_dynwind_flags casts.
81 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
82 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
83 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
84
85 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
86
87 * ax.h (ax_raw_byte): New declaration.
88 * ax-general.c (ax_raw_byte): New function.
89 (ax_simple): Use ax_raw_byte.
90 * ax-gdb.c (gen_printf): Likewise.
91
92 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * ada-lang.h (GROW_VECT): Add cast.
95
96 2015-10-26 Doug Evans <xdje42@gmail.com>
97
98 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
99
100 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
101
102 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
103 pointer.
104 (simple_search_memory): Cast return of memmem.
105
106 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
107
108 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
109
110 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
111
112 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
113 -1 on error.
114
115 2015-10-26 Doug Evans <dje@google.com>
116
117 PR symtab/17391
118 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
119 instead of gdbarch_dwarf2_reg_to_regnum.
120 (dwarf2_frame_cache): Ditto.
121 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
122 gdbarch_dwarf2_reg_to_regnum.
123 (get_reg_value): Ditto.
124 (dwarf2_fetch_cfa_info): Ditto.
125 (dwarf2_frame_prev_register): Ditto.
126 * dwarf2loc.c: #include "complaints.h".
127 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
128 instead of gdbarch_dwarf2_reg_to_regnum.
129 (dwarf_expr_get_reg_value): Ditto.
130 (read_pieced_value): Ditto.
131 (write_pieced_value): Ditto.
132 (dwarf2_evaluate_loc_desc_full): Ditto.
133 (dwarf_reg_to_regnum): New function.
134 (throw_bad_regnum_error): New function.
135 (dwarf_reg_to_regnum_or_error): Renamed from
136 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
137 All callers updated. Call throw_bad_regnum_error.
138 (locexpr_regname): Improve text of bad register number.
139 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
140 (dwarf_reg_to_regnum_or_error): Update prototype.
141 * dwarf2expr.c: #include "dwarf2loc.h".
142 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
143 gdbarch_dwarf2_reg_to_regnum.
144 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
145 * gdbarch.h: Regenerate.
146 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
147 register.
148 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
149 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
150 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
151 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
152 Remove warning for bad register.
153 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
154 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
155 i386_svr4_reg_to_regnum. Return -1 for bad registers.
156 (i386_svr4_reg_to_regnum): New function.
157 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
158 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
159 on bad registers, return -1.
160 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
161 Remove warning for bad register.
162 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
163 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
164 Remove warning for bad register. Return -1 for bad register.
165 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
166 for bad register, return -1.
167 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
168 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
169 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
170 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
171 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
172 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
173 for bad regs.
174 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
175 bad regs. Fix error result.
176 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
177 (reg_value_complaint): Update complaint text.
178 * mdebugread.c (reg_value_complaint): New function.
179 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
180
181 2015-10-26 Doug Evans <dje@google.com>
182
183 PR python/18938
184 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
185 All callers updated.
186
187 2015-10-26 Doug Evans <dje@google.com>
188
189 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
190 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
191 (maintenance_print_psymbols): Print address map.
192
193 2015-10-26 Doug Evans <dje@google.com>
194
195 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
196
197 2015-10-26 Doug Evans <dje@google.com>
198
199 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
200 gdbserver/linux-low.c.
201 (WSETSTOP): Simplify.
202
203 2015-10-26 Doug Evans <dje@google.com>
204
205 * linux-thread-db.c (find_new_threads_callback): Ditto.
206 (thread_db_pid_to_str): Ditto.
207
208 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
211 local char array to scm_mode_bits, use a cast instead.
212
213 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
214
215 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
216 result. Change type of element_block_ptr. Change allocation to
217 use XNEWVEC.
218
219 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
220
221 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
222 catch_errors call instead of NULL.
223
224 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
227 char pointer to scm_mode_bits.
228
229 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
232 cast.
233
234 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
237 "data" local variable and use it.
238
239 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
240
241 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
242 domain_enum cast.
243 (gdbscm_lookup_symbol): Likewise.
244
245 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
246
247 * d-exp.y: Remove an obsolete comment and propagate the block
248 information to the produced expression.
249
250 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
251
252 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
253 cast.
254 (tui_add_content_elements): Likewise.
255
256 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
257
258 * cli/cli-setshow.c (do_set_command): Constify p.
259
260 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
263 (void *) cast with (gdb_byte *).
264
265 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
266
267 * proc-service.c (ps_pdread): Add cast.
268
269 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
270
271 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
272 valbuf.
273
274 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
275
276 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
277 (ia64_push_dummy_call): Remove cast and change type of "to" to
278 array of gdb_byte.
279
280 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
281
282 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
283
284 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
285
286 * observer.h (observer_${event}_notification_stub): Add cast.
287
288 2015-10-23 Yao Qi <yao.qi@linaro.org>
289
290 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
291 dsd.insn_count to zero.
292
293 2015-10-22 Pedro Alves <palves@redhat.com>
294
295 * infrun.c (stop_after_trap): Delete.
296 (clear_proceed_status, handle_signal_stop, struct
297 infcall_control_state, save_infcall_control_state)
298 (restore_infcall_control_state): Remove references to
299 stop_after_trap.
300
301 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
302
303 * python/python.c (_initialize_python): Add cast.
304
305 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
306
307 * nto-tdep.c (nto_inferior_data): Add cast.
308
309 2015-10-22 Pedro Alves <palves@redhat.com>
310
311 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
312 windows_wait and windows_resume directly instead of
313 wait_for_inferior and resume.
314
315 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
316
317 * xtensa-tdep.h (XTREG): Add casts.
318 (XTREG_END): Likewise.
319
320 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
323
324 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
325
326 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
327
328 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
329
330 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
331 buf to gdb_byte*.
332 (supply_32bit_reg): Add cast.
333 (mips64_fill_gregset): Likewise.
334
335 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
336
337 PR python/18073
338 * python/py-type.c (typy_get_composite): Allow returning a
339 function type.
340
341 2015-10-21 Keven Boell <keven.boell@intel.com>
342
343 * dwarf2read.c (set_die_type): Add read of
344 DW_AT_allocated and DW_AT_associated.
345 * f-typeprint.c: New include of typeprint.h
346 (f_print_type): Add check for allocated/associated
347 status of type.
348 (f_type_print_varspec_suffix): Add check for
349 * gdbtypes.c (create_array_type_with_stride):
350 Add check for valid data location of type in
351 case allocated or associated attributes are set.
352 Length of an array should be only calculated if
353 allocated or associated is resolved as true.
354 (is_dynamic_type_internal): Add check for allocated/
355 associated.
356 (resolve_dynamic_array): Evaluate allocated/associated
357 properties.
358 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
359 <DYN_PROP_ASSOCIATED>: New enums.
360 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
361 (type_not_allocated): New function.
362 (type_not_associated): New function.
363 * valarith.c (value_subscripted_rvalue): Add check for
364 allocated/associated.
365 * valprint.c: New include of typeprint.h.
366 (valprint_check_validity): Add check for allocated/associated.
367 (value_check_printable): Add check for allocated/
368 associated.
369 * typeprint.h (val_print_not_allocated): New function.
370 (val_print_not_associated): New function.
371 * typeprint.c (val_print_not_allocated): New function.
372 (val_print_not_associated): New function.
373
374 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
375
376 * Makefile.in: Add arm.c/o.
377 * arch/arm.c: New file.
378 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
379 (MAKE_THUMB_ADDR): Likewise.
380 (UNMAKE_THUMB_ADDR): Likewise.
381 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
382 (IS_THUMB_ADDR): Move to arm.h.
383 (MAKE_THUMB_ADDR): Likewise.
384 (UNMAKE_THUMB_ADDR): Likewise.
385 * configure.tgt: Add arm.o to all ARM configs.
386
387 2015-10-21 Yao Qi <yao.qi@linaro.org>
388
389 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
390 Remove argument exp_vCont_s.
391 * gdb.base/range-stepping.exp: Callers updated.
392 * gdb.trace/range-stepping.exp: Likewise.
393
394 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
395
396 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
397 (nto_sniff_abi_note_section): New function.
398 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
399 binary.
400
401 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
402
403 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
404 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
405 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
406 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
407 New functions.
408 (_initialize_nto_tdep): New forward declaration, new function.
409 * nto-tdep.h (struct nto_inferior_data): New struct.
410 (nto_inferior_data): New function declaration.
411
412 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
413
414 * findvar.c (address_from_register): Check REGNUM validity.
415
416 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
417
418 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
419 (init_procfs_targets): Wire new function.
420
421 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
422
423 * nto-procfs.c (sys/auxv.h): Include.
424 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
425 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
426 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
427
428 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
429
430 * nto-procfs.c (nto_procfs_path): Rename to...
431 (nodestr): ... this, and change type.
432 (nto_node): Use new variable and logic accordingly.
433 (procfs_open_1): Use new variable name. Use local buffer to construct
434 procfrs path.
435 (procfs_pidlist): Use NODESTR to construct procfs path.
436 (procfs_files_info): Use NODESTR to output meaningful text.
437 (do_attach): Construct procfs using NODESTR.
438 (procfs_create_inferior): Compare pointer to NULL.
439
440 2015-10-19 Josh Stone <jistone@redhat.com>
441
442 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
443 return state, even when not actively catching syscalls at all.
444 (linux_handle_extended_wait): Mark syscall_state like an entry.
445 (wait_lwp): Set syscall_state ignored for other traps.
446 (linux_nat_filter_event): Likewise.
447
448 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
449
450 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
451 when handling 'E', 'T', 'S', 'X' and 'W' packets.
452 Do not set rs->waiting_for_stop_reply back to 1.
453
454 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
455
456 * nto-procfs.c (common/filestuff.h): Include.
457 (procfs_can_use_hw_breakpoint): Fix enum name.
458 (procfs_open_1): Fix compiler warning.
459 (procfs_pidlist): Make static.
460 (procfs_meminfo): Make static, fix type name, add missing argument.
461 (procfs_store_registers): Make static.
462 (procfs_thread_info): Remove unused function.
463 (_initialize_procfs): Forward declare.
464
465 2015-10-16 Yao Qi <yao.qi@arm.com>
466
467 * MAINTAINERS: Update my email address.
468
469 2015-10-15 Yao Qi <yao.qi@linaro.org>
470
471 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
472 Call gdbarch_breakpoint_from_pc to instruction length.
473 (aarch64_linux_remove_hw_breakpoint): Likewise.
474 * common/common-regcache.h (regcache_register_size): Declare.
475 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
476 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
477 the process is 32bit, otherwise set alignment to 4.
478 (aarch64_handle_breakpoint): Update comments.
479 * regcache.c (regcache_register_size): New function.
480
481 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
482
483 * gdbarch.sh (core_regset_section): Remove.
484 * gdbarch.h: Regenerate.
485
486 2015-10-14 Yao Qi <yao.qi@linaro.org>
487
488 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
489 out of it.
490 (enum aarch64_memory_operand_type): New.
491
492 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
493
494 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
495
496 2015-10-13 Pedro Alves <palves@redhat.com>
497
498 * ada-lang.c (ada_enum_name): Constify local.
499 * ada-typeprint.c (print_range_bound): Constify locals.
500 * c-varobj.c (c_describe_child): Likewise.
501 * cli/cli-setshow.c (do_set_command): Likewise.
502 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
503 * dwarf2read.c (find_file_and_directory): Likewise.
504 (anonymous_struct_prefix, dwarf2_name): Likewise.
505 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
506 * go-lang.c (unpack_mangled_go_symbol): Likewise.
507 * jv-typeprint.c (java_type_print_base): Likewise.
508 * ser-tcp.c (net_open): Likewise.
509 * symfile.c (deduce_language_from_filename): Likewise.
510 * symtab.c (gdb_mangle_name): Likewise.
511 * tui/tui-io.c (tui_redisplay_readline): Likewise.
512
513 2015-10-13 Pedro Alves <palves@redhat.com>
514
515 * infrun.c (restore_execution_direction): New function.
516 (fetch_inferior_event): Use it instead of
517 make_cleanup_restore_integer.
518 (execution_direction): Change type to enum
519 exec_direction_kind.
520 * infrun.h (execution_direction): Likewise.
521
522 2015-10-13 Pedro Alves <palves@redhat.com>
523
524 * ada-lang.c (ada_value_primitive_packed_val): Constify
525 locals. Use value_contents_writeable. Remove casts.
526
527 2015-10-13 Pedro Alves <palves@redhat.com>
528
529 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
530 and alloca calls.
531
532 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
533
534 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
535 write_memory with write_memory_unsigned_integer.
536
537 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
538
539 * solib-dsbt.c (cmp_name): Constify arguments.
540 * solib-frv.c (cmp_name): Likewise.
541 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
542 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
543 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
544 (gdb_bfd_lookup_symbol): Likewise.
545 * solib.h (gdb_bfd_lookup_symbol): Likewise.
546 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
547
548 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
549
550 * stack.c (parse_frame_specification): Remove message parameter,
551 replace with fixed string in function body, update function
552 comment.
553 (frame_info): Remove message to parse_frame_specification.
554 (select_frame_command): Likewise.
555
556 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
557
558 * stack.c (parse_frame_specification): Delete.
559 (parse_frame_specification_1): Rename to
560 parse_frame_specification.
561 (frame_info): Use parse_frame_specification.
562 (select_frame_command): Likewise.
563 (return_command): Use select_frame and print_stack_frame rather
564 than frame_command and select_frame_command.
565 (func_command): Use get_current_frame rather than
566 parse_frame_specification.
567
568 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * stack.c (func_command): Return early when there is no ARG
571 string.
572
573 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * stack.c: Include safe-ctype.h not ctype.h.
576 (parse_frame_specification): Use ISSPACE not isspace.
577 (backtrace_command): Use TOLOWER not tolower.
578
579 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
580
581 * mep-tdep.c (current_me_module): Add cast.
582 (mep_gdbarch_init): Likewise.
583
584 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
585
586 * m32c-tdep.c (m32c_move_reg_t): Replace with...
587 (m32c_write_reg_t): ...this and...
588 (m32c_read_reg_t): ...this.
589 (struct m32c_reg): Update types of read and write.
590 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
591 adjust definition.
592 (m32c_banked_read): Likewise.
593 (m32c_sb_read): Likewise.
594 (m32c_part_read): Likewise.
595 (m32c_cat_read): Likewise.
596 (m32c_r3r2r1r0_read): Likewise.
597 (m32c_raw_write): Change declaration type to m32c_write_reg_t
598 and adjust definition.
599 (m32c_banked_write): Likewise.
600 (m32c_sb_write): Likewise.
601 (m32c_part_write): Likewise.
602 (m32c_cat_write): Likewise.
603 (m32c_r3r2r1r0_write): Likewise.
604
605 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
608
609 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
610
611 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
612 gdb_sys_no_syscall instead of -1.
613
614 2015-10-12 Yao Qi <yao.qi@linaro.org>
615
616 * NEWS: Mention the change.
617
618 2015-10-12 Yao Qi <yao.qi@linaro.org>
619
620 * arch/aarch64-insn.c (emit_load_store): Rename to ...
621 (aarch64_emit_load_store): ... it. All callers updated.
622
623 2015-10-12 Yao Qi <yao.qi@linaro.org>
624
625 * arch/aarch64-insn.c (emit_insn): Rename to ...
626 (aarch64_emit_insn): ... it. All callers updated.
627
628 2015-10-12 Yao Qi <yao.qi@linaro.org>
629
630 * aarch64-linux-tdep.c: Include arch-utils.h.
631 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
632 set_gdbarch_displaced_step_copy_insn,
633 set_gdbarch_displaced_step_fixup,
634 set_gdbarch_displaced_step_free_closure,
635 set_gdbarch_displaced_step_location,
636 and set_gdbarch_displaced_step_hw_singlestep.
637 * aarch64-tdep.c (struct displaced_step_closure): New.
638 (struct aarch64_displaced_step_data): New.
639 (aarch64_displaced_step_b): New function.
640 (aarch64_displaced_step_b_cond): Likewise.
641 (aarch64_register): Likewise.
642 (aarch64_displaced_step_cb): Likewise.
643 (aarch64_displaced_step_tb): Likewise.
644 (aarch64_displaced_step_adr): Likewise.
645 (aarch64_displaced_step_ldr_literal): Likewise.
646 (aarch64_displaced_step_others): Likewise.
647 (aarch64_displaced_step_copy_insn): Likewise.
648 (aarch64_displaced_step_fixup): Likewise.
649 (aarch64_displaced_step_hw_singlestep): Likewise.
650 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
651 (aarch64_displaced_step_copy_insn): Declare.
652 (aarch64_displaced_step_fixup): Declare.
653 (aarch64_displaced_step_hw_singlestep): Declare.
654 * arch/aarch64-insn.c (emit_insn): Moved from
655 gdbserver/linux-aarch64-low.c.
656 (emit_load_store): Likewise.
657 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
658 gdbserver/linux-aarch64-low.c.
659 (struct aarch64_register): Likewise.
660 (struct aarch64_memory_operand): Likewise.
661 (ENCODE): Likewise.
662 (can_encode_int32): New macro.
663 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
664 (emit_tb, emit_nop): Likewise.
665 (emit_insn): Declare.
666 (emit_load_store): Declare.
667
668 2015-10-12 Yao Qi <yao.qi@linaro.org>
669
670 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
671 gdbserver/linux-aarch64-low.c.
672 (aarch64_relocate_instruction): Likewise.
673 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
674 (struct aarch64_insn_data): Moved from
675 gdbserver/linux-aarch64-low.c.
676 (struct aarch64_insn_visitor): Likewise.
677 (aarch64_relocate_instruction): Declare.
678
679 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
680
681 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
682 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
683 to the returned value.
684
685 2015-10-09 Joel Brobecker <brobecker@adacore.com>
686
687 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
688 is large enough for BIT_SIZE. Update function comment.
689
690 2015-10-09 Joel Brobecker <brobecker@adacore.com>
691
692 * ada-lang.c (ada_value_primitive_packed_val): Move
693 src_len variable to local block where used. Override
694 BIT_SIZE if bigger than size of resolved type.
695
696 2015-10-09 Joel Brobecker <brobecker@adacore.com>
697
698 * gdbtypes.h (is_scalar_type): Add extern declaration.
699 * gdbtypes.c (is_scalar_type): Make non-static.
700 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
701 to compute IS_SCALAR instead of doing it ourselves.
702
703 2015-10-09 Joel Brobecker <brobecker@adacore.com>
704
705 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
706 of case where TYPE is dynamic.
707
708 2015-10-09 Joel Brobecker <brobecker@adacore.com>
709
710 * ada-lang.c (ada_unpack_from_contents): New function,
711 extracted from ada_value_primitive_packed_val.
712 (ada_value_primitive_packed_val): Replace extracted out code
713 by call to ada_unpack_from_contents.
714
715 2015-10-09 Joel Brobecker <brobecker@adacore.com>
716
717 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
718 variable declarations.
719
720 2015-10-09 Joel Brobecker <brobecker@adacore.com>
721
722 * ada-lang.c (ada_value_primitive_packed_val): Change the type
723 of local variables src and unpacked to "gdb_type *" instead of
724 "unsigned char *".
725
726 2015-10-09 Joel Brobecker <brobecker@adacore.com>
727
728 * ada-lang.c (ada_value_primitive_packed_val): Make the name
729 of various local variables more explicit and consistent.
730 No real code change otherwise.
731
732 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
733
734 * i386-tdep.h (struct gdbarch_tdep): Change type of
735 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
736
737 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
738
739 * cris-tdep.c (struct instruction_environment): Change type of
740 byte_order to enum bfd_endian.
741
742 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
743
744 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
745 enum gdb_syscall casts.
746
747 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
748
749 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
750 * arm-tdep.c (struct stack_item): Likewise.
751 (push_stack_item): Add gdb_byte* cast.
752 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
753 (push_stack_item): Add gdb_byte* cast.
754 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
755 and add cast.
756 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
757 (push_stack_item): Add gdb_byte* cast.
758 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
759 add cast.
760 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
761 gdb_byte*.
762 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
763 gdb_byte* and remove unnecessary cast.
764 (h8300h_extract_return_value): Likewise.
765 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
766 (h8300h_store_return_value): Likewise.
767 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
768 gdb_byte* and remove unnecessary cast.
769 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
770 and add cast.
771 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
772 gdb_byte* and remove unnecessary cast.
773 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
774 valbuf.
775 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
776 (mep_pseudo_cr64_read): Likewise.
777 (mep_pseudo_csr_write): Likewise.
778 (mep_pseudo_cr32_write): Likewise.
779 (mep_pseudo_cr64_write): Likewise.
780 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
781 gdb_byte* and add cast.
782 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
783 gdb_byte* and remove unnecessary cast.
784 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
785 valbuf.
786 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
787 gdb_byte*.
788 * printcmd.c (void): Likewise.
789 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
790 gdb_byte* and add cast.
791 (infpy_write_memory): Likewise.
792 (infpy_search_memory): Likewise.
793 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
794 and add cast.
795 (regcache_raw_write_unsigned): Likewise.
796 (regcache_cooked_write_signed): Likewise.
797 (regcache_cooked_write_unsigned): Likewise.
798 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
799 gdb_byte*.
800
801 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
802
803 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
804 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
805
806 2015-10-09 Eli Zaretskii <eliz@gnu.org>
807
808 * stack.c (print_stack_frame):
809 * utils.c (printchar): Fix typos in commentary.
810
811 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
812
813 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
814 (PostfixExpression): Support `expr.sizeof' expressions.
815 (PrimaryExpression): Support `typeof(expr)' expressions.
816
817 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
818
819 * MAINTAINERS: Update my email address.
820
821 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
822
823 * record-btrace.c (record_btrace_resume): Fix void return.
824
825 2015-10-07 Yao Qi <yao.qi@linaro.org>
826
827 * aarch64-tdep.c: Include opcode/aarch64.h.
828 (submask): Move it above.
829 (bit): Likewise.
830 (bits): Likewise.
831 (aarch64_software_single_step): Call aarch64_decode_insn.
832 Decode instruction by aarch64_inst instead of using
833 aarch64_decode_bcond and decode_masked_match.
834
835 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
836
837 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
838 only when the file is binary.
839
840 2015-10-02 James Bowman <james.bowman@ftdichip.com>
841
842 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
843 subroutine handling.
844
845 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
846
847 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
848
849 2015-09-30 Doug Evans <dje@google.com>
850
851 * dwarf2read.c (setup_type_unit_groups): Add comment.
852
853 2015-09-30 Pedro Alves <palves@redhat.com>
854
855 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
856 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
857 (x86_linux_create_target): Don't install
858 x86_linux_always_non_stop_p.
859
860 2015-09-30 Don Breazeal <donb@codesourcery.com>
861
862 * remote.c (remote_parse_stop_reply): Call strprefix instead
863 of strncmp.
864
865 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
866
867 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
868 * gdbarch.h: Regenerate.
869 * i386-tdep.c (i386_gdbarch_init): Remove cast to
870 struct gdbarch_tdep_info *.
871 * mips-tdep.c (mips_gdbarch_init): Likewise.
872 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
873 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
874 * spu-multiarch.c (spu_gdbarch): Likewise.
875
876 2015-09-30 Kevin Buettner <kevinb@redhat.com>
877
878 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
879 record a NULL value.
880
881 2015-09-29 Kevin Buettner <kevinb@redhat.com>
882
883 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
884 and union arguments the same as pointer arguments when determining
885 size of argument.
886
887 2015-09-29 James Bowman <james.bowman@ftdichip.com>
888
889 * ft32-tdep.c: #include "opcode/ft32.h".
890 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
891 (ft32_analyze_prologue): Use FT32_* macros.
892
893 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
894
895 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
896 comment.
897
898 2015-09-28 Doug Evans <dje@google.com>
899
900 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
901
902 2015-09-28 Doug Evans <dje@google.com>
903
904 * common/filestuff.c (make_cleanup_close): Update comment.
905
906 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
907
908 * btrace.c (parse_xml_btrace_block): Fix cast of
909 xml_find_attribute's return value.
910 * memory-map.c (memory_map_start_memory): Likewise.
911 * solib-svr4.c (library_list_start_library): Likewise.
912 * solib-target.c (library_list_start_segment): Likewise.
913 (library_list_start_section): Likewise.
914 * tracepoint.c (traceframe_info_start_memory): Likewise.
915
916 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
917
918 * d-namespace.c (d_lookup_symbol): New arg langdef.
919 All callers updated. Support looking up symbol as a primitive type.
920 (lookup_module_scope): New arg langdef. All callers updated.
921 Call d_lookup_symbol directly for simple bare symbols.
922
923 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
924
925 * macrocmd.c (print_macro_callback): Add cast(s).
926 * macrotab.c (macro_bcache_str): Likewise.
927 (new_macro_definition): Likewise.
928 * main.c (captured_main): Likewise.
929 * maint.c (print_bfd_section_info): Likewise.
930 * mdebugread.c (mdebug_build_psymtabs): Likewise.
931 (basic_type): Likewise.
932 * memattr.c (mem_region_cmp): Likewise.
933 * memory-map.c (memory_map_start_memory): Likewise.
934 (memory_map_end_memory): Likewise.
935 (memory_map_start_property): Likewise.
936 (memory_map_end_property): Likewise.
937 (clear_result): Likewise.
938 * memrange.c (compare_mem_ranges): Likewise.
939 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
940 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
941 * mi/mi-console.c (mi_console_file_delete): Likewise.
942 (mi_console_file_fputs): Likewise.
943 (mi_console_raw_packet): Likewise.
944 (mi_console_file_flush): Likewise.
945 (mi_console_set_raw): Likewise.
946 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
947 (mi_new_thread): Likewise.
948 (mi_thread_exit): Likewise.
949 (mi_record_changed): Likewise.
950 (mi_inferior_added): Likewise.
951 (mi_inferior_appeared): Likewise.
952 (mi_inferior_exit): Likewise.
953 (mi_inferior_removed): Likewise.
954 (mi_interp_data): Likewise.
955 (mi_on_normal_stop): Likewise.
956 (mi_traceframe_changed): Likewise.
957 (mi_tsv_created): Likewise.
958 (mi_tsv_deleted): Likewise.
959 (mi_tsv_modified): Likewise.
960 (mi_breakpoint_created): Likewise.
961 (mi_breakpoint_deleted): Likewise.
962 (mi_breakpoint_modified): Likewise.
963 (mi_output_running_pid): Likewise.
964 (mi_inferior_count): Likewise.
965 (mi_solib_loaded): Likewise.
966 (mi_solib_unloaded): Likewise.
967 (mi_command_param_changed): Likewise.
968 (mi_memory_changed): Likewise.
969 (report_initial_inferior): Likewise.
970 (mi_ui_out): Likewise.
971 (mi_set_logging): Likewise.
972 * mi/mi-main.c (collect_cores): Likewise.
973 (print_one_inferior): Likewise.
974 (free_vector_of_ints): Likewise.
975 (free_splay_tree): Likewise.
976 (mi_execute_command): Likewise.
977 * mi/mi-out.c (mi_table_body): Likewise.
978 (mi_table_end): Likewise.
979 (mi_table_header): Likewise.
980 (mi_begin): Likewise.
981 (mi_end): Likewise.
982 (mi_field_int): Likewise.
983 (mi_field_string): Likewise.
984 (mi_field_fmt): Likewise.
985 (mi_flush): Likewise.
986 (mi_redirect): Likewise.
987 (field_separator): Likewise.
988 (mi_open): Likewise.
989 (mi_close): Likewise.
990 (mi_out_buffered): Likewise.
991 (mi_out_rewind): Likewise.
992 (mi_out_put): Likewise.
993 (mi_version): Likewise.
994 (mi_out_data_dtor): Likewise.
995 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
996 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
997 * minidebug.c (lzma_open): Likewise.
998 (lzma_pread): Likewise.
999 (lzma_close): Likewise.
1000 (lzma_stat): Likewise.
1001 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1002 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1003 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1004 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1005 (mips_micro_frame_cache): Likewise.
1006 (mips_insn32_frame_cache): Likewise.
1007 (mips_stub_frame_cache): Likewise.
1008 (gdb_print_insn_mips): Likewise.
1009 (value_of_mips_user_reg): Likewise.
1010 (mips_gdbarch_init): Likewise.
1011 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1012 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1013 (mipsnbsd_supply_gregset): Likewise.
1014 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1015 (am33_collect_gregset_method): Likewise.
1016 (am33_collect_fpregset_method): Likewise.
1017 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1018 * moxie-tdep.c (moxie_frame_cache): Likewise.
1019 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1020 (msp430_analyze_frame_prologue): Likewise.
1021 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1022 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1023 (nios2_collect_gregset): Likewise.
1024 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1025 (nios2_stub_frame_cache): Likewise.
1026 * objc-lang.c (find_methods): Likewise.
1027 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1028 (get_objfile_pspace_data): Likewise.
1029 (get_objfile_bfd_data): Likewise.
1030 (objfile_bfd_data_free): Likewise.
1031 (add_to_objfile_sections): Likewise.
1032 (do_free_objfile_cleanup): Likewise.
1033 (resume_section_map_updates_cleanup): Likewise.
1034 * opencl-lang.c (builtin_opencl_type): Likewise.
1035 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1036 * osdata.c (osdata_start_osdata): Likewise.
1037 (osdata_start_item): Likewise.
1038 (osdata_start_column): Likewise.
1039 (osdata_end_column): Likewise.
1040 (clear_parsing_data): Likewise.
1041 (osdata_free_cleanup): Likewise.
1042 * parse.c (type_stack_cleanup): Likewise.
1043 (exp_uses_objfile_iter): Likewise.
1044 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1045 (ppc_linux_collect_gregset): Likewise.
1046 (ppu2spu_prev_arch): Likewise.
1047 (ppu2spu_this_id): Likewise.
1048 (ppu2spu_prev_register): Likewise.
1049 (ppu2spu_unwind_register): Likewise.
1050 (ppu2spu_sniffer): Likewise.
1051 (ppu2spu_dealloc_cache): Likewise.
1052 (ppc_linux_init_abi): Likewise.
1053 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1054 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1055 * progspace.c (restore_program_space): Likewise.
1056 * psymtab.c (find_pc_sect_psymtab): Likewise.
1057 (compare_psymbols): Likewise.
1058 (psymbol_bcache_full): Likewise.
1059 (allocate_psymtab): Likewise.
1060 (discard_psymtabs_upto): Likewise.
1061 * python/py-block.c (set_block): Likewise.
1062 (del_objfile_blocks): Likewise.
1063 * python/py-breakpoint.c (build_bp_list): Likewise.
1064 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1065 (build_inferior_list): Likewise.
1066 (py_free_inferior): Likewise.
1067 * python/py-objfile.c (py_free_objfile): Likewise.
1068 (objfile_to_objfile_object): Likewise.
1069 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1070 * python/py-progspace.c (py_free_pspace): Likewise.
1071 (pspace_to_pspace_object): Likewise.
1072 * python/py-symbol.c (set_symbol): Likewise.
1073 (del_objfile_symbols): Likewise.
1074 * python/py-symtab.c (set_sal): Likewise.
1075 (set_symtab): Likewise.
1076 (del_objfile_symtab): Likewise.
1077 (del_objfile_sal): Likewise.
1078 * python/py-type.c (save_objfile_types): Likewise.
1079 (set_type): Likewise.
1080 * python/py-unwind.c (pyuw_prev_register): Likewise.
1081 (pyuw_on_new_gdbarch): Likewise.
1082 * python/py-utils.c (py_decref): Likewise.
1083 (py_xdecref): Likewise.
1084 (gdb_py_generic_dict): Likewise.
1085 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1086 (gdbpy_clone_xmethod_worker_data): Likewise.
1087 (gdbpy_get_xmethod_arg_types): Likewise.
1088 (gdbpy_get_xmethod_result_type): Likewise.
1089 (gdbpy_invoke_xmethod): Likewise.
1090 * python/python.c (gdbpy_apply_type_printers): Likewise.
1091 (gdbpy_free_type_printers): Likewise.
1092 * record-btrace.c (record_btrace_disable_callback): Likewise.
1093 (bfcache_hash): Likewise.
1094 (bfcache_eq): Likewise.
1095 (btrace_get_frame_function): Likewise.
1096 (record_btrace_frame_unwind_stop_reason): Likewise.
1097 (record_btrace_frame_this_id): Likewise.
1098 (record_btrace_frame_prev_register): Likewise.
1099 (record_btrace_frame_dealloc_cache): Likewise.
1100 * record-full.c (record_full_message_wrapper): Likewise.
1101 (record_full_save_cleanups): Likewise.
1102 * regcache.c (regcache_descr): Likewise.
1103 (do_regcache_xfree): Likewise.
1104 (do_regcache_invalidate): Likewise.
1105 (do_cooked_read): Likewise.
1106 (regcache_transfer_regset): Likewise.
1107 * reggroups.c (reggroup_add): Likewise.
1108 (reggroup_next): Likewise.
1109 (reggroup_prev): Likewise.
1110 * remote-fileio.c (do_remote_fileio_request): Likewise.
1111 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1112 (do_notif_event_xfree): Likewise.
1113 * remote.c (get_remote_arch_state): Likewise.
1114 (remote_pspace_data_cleanup): Likewise.
1115 (get_remote_exec_file): Likewise.
1116 (set_pspace_remote_exec_file): Likewise.
1117 (compare_pnums): Likewise.
1118 (clear_threads_listing_context): Likewise.
1119 (remote_newthread_step): Likewise.
1120 (start_thread): Likewise.
1121 (end_thread): Likewise.
1122 (remove_child_of_pending_fork): Likewise.
1123 (remove_stop_reply_for_inferior): Likewise.
1124 (remove_stop_reply_of_remote_state): Likewise.
1125 (remote_notif_remove_once_on_match): Likewise.
1126 (stop_reply_match_ptid_and_ws): Likewise.
1127 (kill_child_of_pending_fork): Likewise.
1128 (register_remote_g_packet_guess): Likewise.
1129 (remote_read_description_p): Likewise.
1130 (remote_read_description): Likewise.
1131 (free_actions_list_cleanup_wrapper): Likewise.
1132 (remote_async_serial_handler): Likewise.
1133 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1134 (rl78_analyze_frame_prologue): Likewise.
1135 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1136 (ppc_supply_fpregset): Likewise.
1137 (ppc_supply_vsxregset): Likewise.
1138 (ppc_supply_vrregset): Likewise.
1139 (ppc_collect_gregset): Likewise.
1140 (ppc_collect_fpregset): Likewise.
1141 (ppc_collect_vsxregset): Likewise.
1142 (ppc_collect_vrregset): Likewise.
1143 (e500_move_ev_register): Likewise.
1144 (do_regcache_raw_write): Likewise.
1145 (rs6000_frame_cache): Likewise.
1146 (rs6000_epilogue_frame_cache): Likewise.
1147 (rs6000_gdbarch_init): Likewise.
1148 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1149 (rx_analyze_frame_prologue): Likewise.
1150 (rx_frame_type): Likewise.
1151 (rx_frame_sniffer_common): Likewise.
1152 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1153 (s390_frame_unwind_cache): Likewise.
1154 (s390_stub_frame_unwind_cache): Likewise.
1155 (s390_sigtramp_frame_unwind_cache): Likewise.
1156 * score-tdep.c (score_make_prologue_cache): Likewise.
1157 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1158 (sentinel_frame_prev_arch): Likewise.
1159 * ser-base.c (fd_event): Likewise.
1160 (push_event): Likewise.
1161 (ser_base_write): Likewise.
1162 * ser-pipe.c (pipe_close): Likewise.
1163 * serial.c (serial_write): Likewise.
1164 * sh-tdep.c (sh_frame_cache): Likewise.
1165 (sh_stub_this_id): Likewise.
1166 * sh64-tdep.c (sh64_frame_cache): Likewise.
1167 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1168 (library_list_start_library): Likewise.
1169 (library_list_start_list): Likewise.
1170 (solib_aix_free_library_list): Likewise.
1171 * solib-darwin.c (get_darwin_info): Likewise.
1172 * solib-dsbt.c (get_dsbt_info): Likewise.
1173 * solib-spu.c (append_ocl_sos): Likewise.
1174 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1175 (get_svr4_info): Likewise.
1176 (library_list_start_library): Likewise.
1177 (svr4_library_list_start_list): Likewise.
1178 (hash_probe_and_action): Likewise.
1179 (equal_probe_and_action): Likewise.
1180 (svr4_update_solib_event_breakpoint): Likewise.
1181 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1182 (svr4_fetch_link_map_offsets): Likewise.
1183 (svr4_have_link_map_offsets): Likewise.
1184 * solib-target.c (library_list_start_segment): Likewise.
1185 (library_list_start_section): Likewise.
1186 (library_list_start_library): Likewise.
1187 (library_list_end_library): Likewise.
1188 (library_list_start_list): Likewise.
1189 (solib_target_free_library_list): Likewise.
1190 * solib.c (solib_ops): Likewise.
1191 (set_solib_ops): Likewise.
1192 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1193 * sparc-tdep.c (sparc_frame_cache): Likewise.
1194 (sparc32_frame_cache): Likewise.
1195 (sparc32_supply_gregset): Likewise.
1196 (sparc32_collect_gregset): Likewise.
1197 (sparc32_supply_fpregset): Likewise.
1198 (sparc32_collect_fpregset): Likewise.
1199 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1200 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1201 (sparc64_collect_gregset): Likewise.
1202 (sparc64_supply_fpregset): Likewise.
1203 (sparc64_collect_fpregset): Likewise.
1204 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1205 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1206 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1207 (sparc64obsd_trapframe_cache): Likewise.
1208 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1209 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1210 * spu-multiarch.c (spu_gdbarch): Likewise.
1211 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1212 (spu2ppu_prev_arch): Likewise.
1213 (spu2ppu_this_id): Likewise.
1214 (spu2ppu_prev_register): Likewise.
1215 (spu2ppu_dealloc_cache): Likewise.
1216 (spu_dis_asm_print_address): Likewise.
1217 (gdb_print_insn_spu): Likewise.
1218 (spu_get_overlay_table): Likewise.
1219 * stabsread.c (rs6000_builtin_type): Likewise.
1220 * stack.c (do_print_variable_and_value): Likewise.
1221 * stap-probe.c (get_stap_base_address_1): Likewise.
1222 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1223 (debug_qf_find_last_source_symtab): Likewise.
1224 (debug_qf_forget_cached_source_info): Likewise.
1225 (debug_qf_map_symtabs_matching_filename): Likewise.
1226 (debug_qf_lookup_symbol): Likewise.
1227 (debug_qf_print_stats): Likewise.
1228 (debug_qf_dump): Likewise.
1229 (debug_qf_relocate): Likewise.
1230 (debug_qf_expand_symtabs_for_function): Likewise.
1231 (debug_qf_expand_all_symtabs): Likewise.
1232 (debug_qf_expand_symtabs_with_fullname): Likewise.
1233 (debug_qf_map_matching_symbols): Likewise.
1234 (debug_qf_expand_symtabs_matching): Likewise.
1235 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1236 (debug_qf_map_symbol_filenames): Likewise.
1237 (debug_sym_get_probes): Likewise.
1238 (debug_sym_new_init): Likewise.
1239 (debug_sym_init): Likewise.
1240 (debug_sym_read): Likewise.
1241 (debug_sym_read_psymbols): Likewise.
1242 (debug_sym_finish): Likewise.
1243 (debug_sym_offsets): Likewise.
1244 (debug_sym_read_linetable): Likewise.
1245 (debug_sym_relocate): Likewise.
1246 (uninstall_symfile_debug_logging): Likewise.
1247 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1248 * symfile.c (place_section): Likewise.
1249 (add_section_size_callback): Likewise.
1250 (load_progress): Likewise.
1251 (load_section_callback): Likewise.
1252 (clear_memory_write_data): Likewise.
1253 (allocate_symtab): Likewise.
1254 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1255 * symtab.c (lookup_symtab_callback): Likewise.
1256 (hash_demangled_name_entry): Likewise.
1257 (eq_demangled_name_entry): Likewise.
1258 (get_symbol_cache): Likewise.
1259 (symbol_cache_cleanup): Likewise.
1260 (set_symbol_cache_size): Likewise.
1261 (symbol_cache_flush): Likewise.
1262 (maintenance_print_symbol_cache): Likewise.
1263 (maintenance_print_symbol_cache_statistics): Likewise.
1264 (delete_filename_seen_cache): Likewise.
1265 (output_partial_symbol_filename): Likewise.
1266 (search_symbols_file_matches): Likewise.
1267 (search_symbols_name_matches): Likewise.
1268 (do_free_completion_list): Likewise.
1269 (maybe_add_partial_symtab_filename): Likewise.
1270 (get_main_info): Likewise.
1271 (main_info_cleanup): Likewise.
1272 * target-dcache.c (target_dcache_cleanup): Likewise.
1273 (target_dcache_init_p): Likewise.
1274 (target_dcache_invalidate): Likewise.
1275 (target_dcache_get): Likewise.
1276 (target_dcache_get_or_init): Likewise.
1277 * target-descriptions.c (target_find_description): Likewise.
1278 (tdesc_find_type): Likewise.
1279 (tdesc_data_cleanup): Likewise.
1280 (tdesc_find_arch_register): Likewise.
1281 (tdesc_register_name): Likewise.
1282 (tdesc_register_type): Likewise.
1283 (tdesc_register_reggroup_p): Likewise.
1284 (set_tdesc_pseudo_register_name): Likewise.
1285 (set_tdesc_pseudo_register_type): Likewise.
1286 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1287 (tdesc_use_registers): Likewise.
1288 (free_target_description): Likewise.
1289 * target-memory.c (compare_block_starting_address): Likewise.
1290 (cleanup_request_data): Likewise.
1291 (cleanup_write_requests_vector): Likewise.
1292 * target.c (open_target): Likewise.
1293 (cleanup_restore_target_terminal): Likewise.
1294 (free_memory_read_result_vector): Likewise.
1295 * thread.c (disable_thread_stack_temporaries): Likewise.
1296 (finish_thread_state_cleanup): Likewise.
1297 (do_restore_current_thread_cleanup): Likewise.
1298 (restore_current_thread_cleanup_dtor): Likewise.
1299 (set_thread_refcount): Likewise.
1300 (tp_array_compar): Likewise.
1301 (do_captured_thread_select): Likewise.
1302 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1303 (tic6x_stub_this_id): Likewise.
1304 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1305 * top.c (do_restore_instream_cleanup): Likewise.
1306 (gdb_readline_wrapper_cleanup): Likewise.
1307 (kill_or_detach): Likewise.
1308 (print_inferior_quit_action): Likewise.
1309 * tracefile-tfile.c (match_blocktype): Likewise.
1310 (build_traceframe_info): Likewise.
1311 * tracefile.c (trace_file_writer_xfree): Likewise.
1312 * tracepoint.c (memrange_cmp): Likewise.
1313 (do_collect_symbol): Likewise.
1314 (do_clear_collection_list): Likewise.
1315 (do_restore_current_traceframe_cleanup): Likewise.
1316 (restore_current_traceframe_cleanup_dtor): Likewise.
1317 (free_current_marker): Likewise.
1318 (traceframe_info_start_memory): Likewise.
1319 (traceframe_info_start_tvar): Likewise.
1320 (free_result): Likewise.
1321 * tramp-frame.c (tramp_frame_cache): Likewise.
1322 * tui/tui-file.c (tui_file_delete): Likewise.
1323 (tui_fileopen): Likewise.
1324 (tui_sfileopen): Likewise.
1325 (tui_file_isatty): Likewise.
1326 (tui_file_rewind): Likewise.
1327 (tui_file_put): Likewise.
1328 (tui_file_fputs): Likewise.
1329 (tui_file_get_strbuf): Likewise.
1330 (tui_file_adjust_strbuf): Likewise.
1331 (tui_file_flush): Likewise.
1332 * tui/tui-layout.c (make_command_window): Likewise.
1333 (make_data_window): Likewise.
1334 (show_source_disasm_command): Likewise.
1335 (show_data): Likewise.
1336 (make_source_or_disasm_window): Likewise.
1337 (show_source_or_disasm_and_command): Likewise.
1338 * tui/tui-out.c (tui_field_int): Likewise.
1339 (tui_field_string): Likewise.
1340 (tui_field_fmt): Likewise.
1341 (tui_text): Likewise.
1342 * typeprint.c (hash_typedef_field): Likewise.
1343 (eq_typedef_field): Likewise.
1344 (do_free_typedef_hash): Likewise.
1345 (copy_typedef_hash_element): Likewise.
1346 (do_free_global_table): Likewise.
1347 (find_global_typedef): Likewise.
1348 (find_typedef_in_hash): Likewise.
1349 * ui-file.c (ui_file_write_for_put): Likewise.
1350 (do_ui_file_xstrdup): Likewise.
1351 (mem_file_delete): Likewise.
1352 (mem_file_rewind): Likewise.
1353 (mem_file_put): Likewise.
1354 (mem_file_write): Likewise.
1355 (stdio_file_delete): Likewise.
1356 (stdio_file_flush): Likewise.
1357 (stdio_file_read): Likewise.
1358 (stdio_file_write): Likewise.
1359 (stdio_file_write_async_safe): Likewise.
1360 (stdio_file_fputs): Likewise.
1361 (stdio_file_isatty): Likewise.
1362 (stdio_file_fseek): Likewise.
1363 (tee_file_delete): Likewise.
1364 (tee_file_flush): Likewise.
1365 (tee_file_write): Likewise.
1366 (tee_file_fputs): Likewise.
1367 (tee_file_isatty): Likewise.
1368 * ui-out.c (do_cleanup_table_end): Likewise.
1369 (do_cleanup_end): Likewise.
1370 * user-regs.c (user_reg_add): Likewise.
1371 (user_reg_map_name_to_regnum): Likewise.
1372 (usernum_to_user_reg): Likewise.
1373 (maintenance_print_user_registers): Likewise.
1374 * utils.c (do_bfd_close_cleanup): Likewise.
1375 (do_fclose_cleanup): Likewise.
1376 (do_obstack_free): Likewise.
1377 (do_ui_file_delete): Likewise.
1378 (do_ui_out_redirect_pop): Likewise.
1379 (do_free_section_addr_info): Likewise.
1380 (restore_integer): Likewise.
1381 (do_unpush_target): Likewise.
1382 (do_htab_delete_cleanup): Likewise.
1383 (do_restore_ui_file): Likewise.
1384 (do_value_free): Likewise.
1385 (do_free_so): Likewise.
1386 (free_current_contents): Likewise.
1387 (do_regfree_cleanup): Likewise.
1388 (core_addr_hash): Likewise.
1389 (core_addr_eq): Likewise.
1390 (do_free_char_ptr_vec): Likewise.
1391 * v850-tdep.c (v850_frame_cache): Likewise.
1392 * varobj.c (do_free_variable_cleanup): Likewise.
1393 * vax-tdep.c (vax_supply_gregset): Likewise.
1394 (vax_frame_cache): Likewise.
1395 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1396 * xml-support.c (gdb_xml_body_text): Likewise.
1397 (gdb_xml_values_cleanup): Likewise.
1398 (gdb_xml_start_element): Likewise.
1399 (gdb_xml_start_element_wrapper): Likewise.
1400 (gdb_xml_end_element): Likewise.
1401 (gdb_xml_end_element_wrapper): Likewise.
1402 (gdb_xml_cleanup): Likewise.
1403 (gdb_xml_fetch_external_entity): Likewise.
1404 (gdb_xml_parse_attr_enum): Likewise.
1405 (xinclude_start_include): Likewise.
1406 (xinclude_end_include): Likewise.
1407 (xml_xinclude_default): Likewise.
1408 (xml_xinclude_start_doctype): Likewise.
1409 (xml_xinclude_end_doctype): Likewise.
1410 (xml_xinclude_cleanup): Likewise.
1411 (xml_fetch_content_from_file): Likewise.
1412 * xml-syscall.c (free_syscalls_info): Likewise.
1413 (syscall_start_syscall): Likewise.
1414 * xml-tdesc.c (tdesc_end_arch): Likewise.
1415 (tdesc_end_osabi): Likewise.
1416 (tdesc_end_compatible): Likewise.
1417 (tdesc_start_target): Likewise.
1418 (tdesc_start_feature): Likewise.
1419 (tdesc_start_reg): Likewise.
1420 (tdesc_start_union): Likewise.
1421 (tdesc_start_struct): Likewise.
1422 (tdesc_start_flags): Likewise.
1423 (tdesc_start_field): Likewise.
1424 (tdesc_start_vector): Likewise.
1425 (fetch_available_features_from_target): Likewise.
1426 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1427 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1428 (xtensa_frame_cache): Likewise.
1429 (xtensa_frame_prev_register): Likewise.
1430 (xtensa_extract_return_value): Likewise.
1431
1432 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1433
1434 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1435 (aarch64_make_stub_cache): Likewise.
1436 (value_of_aarch64_user_reg): Likewise.
1437 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1438 (get_ada_inferior_data): Likewise.
1439 (get_ada_pspace_data): Likewise.
1440 (ada_pspace_data_cleanup): Likewise.
1441 (ada_complete_symbol_matcher): Likewise.
1442 (ada_exc_search_name_matches): Likewise.
1443 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1444 (get_ada_tasks_inferior_data): Likewise.
1445 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1446 (splay_obstack_alloc): Likewise.
1447 (splay_obstack_free): Likewise.
1448 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1449 (alpha_linux_collect_gregset): Likewise.
1450 (alpha_linux_supply_fpregset): Likewise.
1451 (alpha_linux_collect_fpregset): Likewise.
1452 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1453 * alpha-tdep.c (alpha_lds): Likewise.
1454 (alpha_sts): Likewise.
1455 (alpha_sigtramp_frame_unwind_cache): Likewise.
1456 (alpha_heuristic_frame_unwind_cache): Likewise.
1457 (alpha_supply_int_regs): Likewise.
1458 (alpha_fill_int_regs): Likewise.
1459 (alpha_supply_fp_regs): Likewise.
1460 (alpha_fill_fp_regs): Likewise.
1461 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1462 (alphanbsd_aout_supply_gregset): Likewise.
1463 (alphanbsd_supply_gregset): Likewise.
1464 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1465 (amd64_x32_linux_init_abi): Likewise.
1466 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1467 (amd64_collect_native_gregset): Likewise.
1468 * amd64-tdep.c (amd64_frame_cache): Likewise.
1469 (amd64_sigtramp_frame_cache): Likewise.
1470 (amd64_epilogue_frame_cache): Likewise.
1471 (amd64_supply_fxsave): Likewise.
1472 (amd64_supply_xsave): Likewise.
1473 (amd64_collect_fxsave): Likewise.
1474 (amd64_collect_xsave): Likewise.
1475 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1476 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1477 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1478 (arm_linux_collect_gregset): Likewise.
1479 (arm_linux_supply_nwfpe): Likewise.
1480 (arm_linux_collect_nwfpe): Likewise.
1481 (arm_linux_supply_vfp): Likewise.
1482 (arm_linux_collect_vfp): Likewise.
1483 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1484 (arm_prologue_unwind_stop_reason): Likewise.
1485 (arm_prologue_this_id): Likewise.
1486 (arm_prologue_prev_register): Likewise.
1487 (arm_exidx_data_free): Likewise.
1488 (arm_find_exidx_entry): Likewise.
1489 (arm_stub_this_id): Likewise.
1490 (arm_m_exception_this_id): Likewise.
1491 (arm_m_exception_prev_register): Likewise.
1492 (arm_normal_frame_base): Likewise.
1493 (gdb_print_insn_arm): Likewise.
1494 (arm_objfile_data_free): Likewise.
1495 (arm_record_special_symbol): Likewise.
1496 (value_of_arm_user_reg): Likewise.
1497 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1498 (armbsd_supply_gregset): Likewise.
1499 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1500 (get_auto_load_pspace_data): Likewise.
1501 (hash_loaded_script_entry): Likewise.
1502 (eq_loaded_script_entry): Likewise.
1503 (clear_section_scripts): Likewise.
1504 (collect_matching_scripts): Likewise.
1505 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1506 (get_auxv_inferior_data): Likewise.
1507 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1508 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1509 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1510 (target_bfd_xclose): Likewise.
1511 (target_bfd_get_section_table): Likewise.
1512 * bfin-tdep.c (bfin_frame_cache): Likewise.
1513 * block.c (find_block_in_blockvector): Likewise.
1514 (call_site_for_pc): Likewise.
1515 (block_find_non_opaque_type_preferred): Likewise.
1516 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1517 (signal_catchpoint_remove_location): Likewise.
1518 (signal_catchpoint_breakpoint_hit): Likewise.
1519 (signal_catchpoint_print_one): Likewise.
1520 (signal_catchpoint_print_mention): Likewise.
1521 (signal_catchpoint_print_recreate): Likewise.
1522 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1523 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1524 (bp_location_compare_addrs): Likewise.
1525 (get_first_locp_gte_addr): Likewise.
1526 (check_tracepoint_command): Likewise.
1527 (do_map_commands_command): Likewise.
1528 (get_breakpoint_objfile_data): Likewise.
1529 (free_breakpoint_probes): Likewise.
1530 (do_captured_breakpoint_query): Likewise.
1531 (compare_breakpoints): Likewise.
1532 (bp_location_compare): Likewise.
1533 (bpstat_remove_breakpoint_callback): Likewise.
1534 (do_delete_breakpoint_cleanup): Likewise.
1535 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1536 (bsd_uthread_set_collect_uthread): Likewise.
1537 (bsd_uthread_activate): Likewise.
1538 (bsd_uthread_fetch_registers): Likewise.
1539 (bsd_uthread_store_registers): Likewise.
1540 * btrace.c (check_xml_btrace_version): Likewise.
1541 (parse_xml_btrace_block): Likewise.
1542 (parse_xml_btrace_pt_config_cpu): Likewise.
1543 (parse_xml_btrace_pt_raw): Likewise.
1544 (parse_xml_btrace_pt): Likewise.
1545 (parse_xml_btrace_conf_bts): Likewise.
1546 (parse_xml_btrace_conf_pt): Likewise.
1547 (do_btrace_data_cleanup): Likewise.
1548 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1549 * charset.c (cleanup_iconv): Likewise.
1550 (do_cleanup_iterator): Likewise.
1551 * cli-out.c (cli_uiout_dtor): Likewise.
1552 (cli_table_begin): Likewise.
1553 (cli_table_body): Likewise.
1554 (cli_table_end): Likewise.
1555 (cli_table_header): Likewise.
1556 (cli_begin): Likewise.
1557 (cli_end): Likewise.
1558 (cli_field_int): Likewise.
1559 (cli_field_skip): Likewise.
1560 (cli_field_string): Likewise.
1561 (cli_field_fmt): Likewise.
1562 (cli_spaces): Likewise.
1563 (cli_text): Likewise.
1564 (cli_message): Likewise.
1565 (cli_wrap_hint): Likewise.
1566 (cli_flush): Likewise.
1567 (cli_redirect): Likewise.
1568 (out_field_fmt): Likewise.
1569 (field_separator): Likewise.
1570 (cli_out_set_stream): Likewise.
1571 * cli/cli-cmds.c (compare_symtabs): Likewise.
1572 * cli/cli-dump.c (call_dump_func): Likewise.
1573 (restore_section_callback): Likewise.
1574 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1575 (do_restore_user_call_depth): Likewise.
1576 (do_free_command_lines_cleanup): Likewise.
1577 * coff-pe-read.c (get_section_vmas): Likewise.
1578 (pe_as16): Likewise.
1579 (pe_as32): Likewise.
1580 * coffread.c (coff_symfile_read): Likewise.
1581 * common/agent.c (agent_look_up_symbols): Likewise.
1582 * common/filestuff.c (do_close_cleanup): Likewise.
1583 * common/format.c (free_format_pieces_cleanup): Likewise.
1584 * common/vec.c (vec_o_reserve): Likewise.
1585 * compile/compile-c-support.c (print_one_macro): Likewise.
1586 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1587 (eq_symbol_error): Likewise.
1588 (del_symbol_error): Likewise.
1589 (error_symbol_once): Likewise.
1590 (gcc_convert_symbol): Likewise.
1591 (gcc_symbol_address): Likewise.
1592 (hash_symname): Likewise.
1593 (eq_symname): Likewise.
1594 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1595 (eq_type_map_instance): Likewise.
1596 (insert_type): Likewise.
1597 (convert_type): Likewise.
1598 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1599 (setup_sections): Likewise.
1600 (link_hash_table_free): Likewise.
1601 (copy_sections): Likewise.
1602 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1603 * compile/compile.c (compile_print_value): Likewise.
1604 (do_rmdir): Likewise.
1605 (cleanup_compile_instance): Likewise.
1606 (cleanup_unlink_file): Likewise.
1607 * completer.c (free_completion_tracker): Likewise.
1608 * corelow.c (add_to_spuid_list): Likewise.
1609 * cp-namespace.c (reset_directive_searched): Likewise.
1610 * cp-support.c (reset_directive_searched): Likewise.
1611 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1612 (cris_frame_unwind_cache): Likewise.
1613 * d-lang.c (builtin_d_type): Likewise.
1614 * d-namespace.c (reset_directive_searched): Likewise.
1615 * dbxread.c (dbx_free_symfile_info): Likewise.
1616 (do_free_bincl_list_cleanup): Likewise.
1617 * disasm.c (hash_dis_line_entry): Likewise.
1618 (eq_dis_line_entry): Likewise.
1619 (dis_asm_print_address): Likewise.
1620 (fprintf_disasm): Likewise.
1621 (do_ui_file_delete): Likewise.
1622 * doublest.c (convert_floatformat_to_doublest): Likewise.
1623 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1624 (dummy_frame_prev_register): Likewise.
1625 (dummy_frame_this_id): Likewise.
1626 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1627 (cache_eq): Likewise.
1628 (cache_find): Likewise.
1629 (tailcall_frame_this_id): Likewise.
1630 (dwarf2_tailcall_prev_register_first): Likewise.
1631 (tailcall_frame_prev_register): Likewise.
1632 (tailcall_frame_dealloc_cache): Likewise.
1633 (tailcall_frame_prev_arch): Likewise.
1634 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1635 (dwarf2_frame_set_init_reg): Likewise.
1636 (dwarf2_frame_init_reg): Likewise.
1637 (dwarf2_frame_set_signal_frame_p): Likewise.
1638 (dwarf2_frame_signal_frame_p): Likewise.
1639 (dwarf2_frame_set_adjust_regnum): Likewise.
1640 (dwarf2_frame_adjust_regnum): Likewise.
1641 (clear_pointer_cleanup): Likewise.
1642 (dwarf2_frame_cache): Likewise.
1643 (find_cie): Likewise.
1644 (dwarf2_frame_find_fde): Likewise.
1645 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1646 (free_dwarf_expr_context_cleanup): Likewise.
1647 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1648 (locexpr_get_frame_base): Likewise.
1649 (loclist_find_frame_base_location): Likewise.
1650 (loclist_get_frame_base): Likewise.
1651 (dwarf_expr_dwarf_call): Likewise.
1652 (dwarf_expr_get_base_type): Likewise.
1653 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1654 (dwarf_expr_get_obj_addr): Likewise.
1655 (entry_data_value_coerce_ref): Likewise.
1656 (entry_data_value_copy_closure): Likewise.
1657 (entry_data_value_free_closure): Likewise.
1658 (get_frame_address_in_block_wrapper): Likewise.
1659 (dwarf2_evaluate_property): Likewise.
1660 (dwarf2_compile_property_to_c): Likewise.
1661 (needs_frame_read_addr_from_reg): Likewise.
1662 (needs_frame_get_reg_value): Likewise.
1663 (needs_frame_frame_base): Likewise.
1664 (needs_frame_frame_cfa): Likewise.
1665 (needs_frame_tls_address): Likewise.
1666 (needs_frame_dwarf_call): Likewise.
1667 (needs_dwarf_reg_entry_value): Likewise.
1668 (get_ax_pc): Likewise.
1669 (locexpr_read_variable): Likewise.
1670 (locexpr_read_variable_at_entry): Likewise.
1671 (locexpr_read_needs_frame): Likewise.
1672 (locexpr_describe_location): Likewise.
1673 (locexpr_tracepoint_var_ref): Likewise.
1674 (locexpr_generate_c_location): Likewise.
1675 (loclist_read_variable): Likewise.
1676 (loclist_read_variable_at_entry): Likewise.
1677 (loclist_describe_location): Likewise.
1678 (loclist_tracepoint_var_ref): Likewise.
1679 (loclist_generate_c_location): Likewise.
1680 * dwarf2read.c (line_header_hash_voidp): Likewise.
1681 (line_header_eq_voidp): Likewise.
1682 (dwarf2_has_info): Likewise.
1683 (dwarf2_get_section_info): Likewise.
1684 (locate_dwz_sections): Likewise.
1685 (hash_file_name_entry): Likewise.
1686 (eq_file_name_entry): Likewise.
1687 (delete_file_name_entry): Likewise.
1688 (dw2_setup): Likewise.
1689 (dw2_get_file_names_reader): Likewise.
1690 (dw2_find_pc_sect_compunit_symtab): Likewise.
1691 (hash_signatured_type): Likewise.
1692 (eq_signatured_type): Likewise.
1693 (add_signatured_type_cu_to_table): Likewise.
1694 (create_debug_types_hash_table): Likewise.
1695 (lookup_dwo_signatured_type): Likewise.
1696 (lookup_dwp_signatured_type): Likewise.
1697 (lookup_signatured_type): Likewise.
1698 (hash_type_unit_group): Likewise.
1699 (eq_type_unit_group): Likewise.
1700 (get_type_unit_group): Likewise.
1701 (process_psymtab_comp_unit_reader): Likewise.
1702 (sort_tu_by_abbrev_offset): Likewise.
1703 (process_skeletonless_type_unit): Likewise.
1704 (psymtabs_addrmap_cleanup): Likewise.
1705 (dwarf2_read_symtab): Likewise.
1706 (psymtab_to_symtab_1): Likewise.
1707 (die_hash): Likewise.
1708 (die_eq): Likewise.
1709 (load_full_comp_unit_reader): Likewise.
1710 (reset_die_in_process): Likewise.
1711 (free_cu_line_header): Likewise.
1712 (handle_DW_AT_stmt_list): Likewise.
1713 (hash_dwo_file): Likewise.
1714 (eq_dwo_file): Likewise.
1715 (hash_dwo_unit): Likewise.
1716 (eq_dwo_unit): Likewise.
1717 (create_dwo_cu_reader): Likewise.
1718 (create_dwo_unit_in_dwp_v1): Likewise.
1719 (create_dwo_unit_in_dwp_v2): Likewise.
1720 (lookup_dwo_unit_in_dwp): Likewise.
1721 (dwarf2_locate_dwo_sections): Likewise.
1722 (dwarf2_locate_common_dwp_sections): Likewise.
1723 (dwarf2_locate_v2_dwp_sections): Likewise.
1724 (hash_dwp_loaded_cutus): Likewise.
1725 (eq_dwp_loaded_cutus): Likewise.
1726 (lookup_dwo_cutu): Likewise.
1727 (abbrev_table_free_cleanup): Likewise.
1728 (dwarf2_free_abbrev_table): Likewise.
1729 (find_partial_die_in_comp_unit): Likewise.
1730 (free_line_header_voidp): Likewise.
1731 (follow_die_offset): Likewise.
1732 (follow_die_sig_1): Likewise.
1733 (free_heap_comp_unit): Likewise.
1734 (free_stack_comp_unit): Likewise.
1735 (dwarf2_free_objfile): Likewise.
1736 (per_cu_offset_and_type_hash): Likewise.
1737 (per_cu_offset_and_type_eq): Likewise.
1738 (get_die_type_at_offset): Likewise.
1739 (partial_die_hash): Likewise.
1740 (partial_die_eq): Likewise.
1741 (dwarf2_per_objfile_free): Likewise.
1742 (hash_strtab_entry): Likewise.
1743 (eq_strtab_entry): Likewise.
1744 (add_string): Likewise.
1745 (hash_symtab_entry): Likewise.
1746 (eq_symtab_entry): Likewise.
1747 (delete_symtab_entry): Likewise.
1748 (cleanup_mapped_symtab): Likewise.
1749 (add_indices_to_cpool): Likewise.
1750 (hash_psymtab_cu_index): Likewise.
1751 (eq_psymtab_cu_index): Likewise.
1752 (add_address_entry_worker): Likewise.
1753 (unlink_if_set): Likewise.
1754 (write_one_signatured_type): Likewise.
1755 (save_gdb_index_command): Likewise.
1756 * elfread.c (elf_symtab_read): Likewise.
1757 (elf_gnu_ifunc_cache_hash): Likewise.
1758 (elf_gnu_ifunc_cache_eq): Likewise.
1759 (elf_gnu_ifunc_record_cache): Likewise.
1760 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1761 (elf_get_probes): Likewise.
1762 (probe_key_free): Likewise.
1763 * f-lang.c (builtin_f_type): Likewise.
1764 * frame-base.c (frame_base_append_sniffer): Likewise.
1765 (frame_base_set_default): Likewise.
1766 (frame_base_find_by_frame): Likewise.
1767 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1768 (frame_unwind_append_unwinder): Likewise.
1769 (frame_unwind_find_by_frame): Likewise.
1770 * frame.c (frame_addr_hash): Likewise.
1771 (frame_addr_hash_eq): Likewise.
1772 (frame_stash_find): Likewise.
1773 (do_frame_register_read): Likewise.
1774 (unwind_to_current_frame): Likewise.
1775 (frame_cleanup_after_sniffer): Likewise.
1776 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1777 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1778 * ft32-tdep.c (ft32_frame_cache): Likewise.
1779 * gcore.c (do_bfd_delete_cleanup): Likewise.
1780 (gcore_create_callback): Likewise.
1781 * gdb_bfd.c (hash_bfd): Likewise.
1782 (eq_bfd): Likewise.
1783 (gdb_bfd_open): Likewise.
1784 (free_one_bfd_section): Likewise.
1785 (gdb_bfd_ref): Likewise.
1786 (gdb_bfd_unref): Likewise.
1787 (get_section_descriptor): Likewise.
1788 (gdb_bfd_map_section): Likewise.
1789 (gdb_bfd_crc): Likewise.
1790 (gdb_bfd_mark_parent): Likewise.
1791 (gdb_bfd_record_inclusion): Likewise.
1792 (gdb_bfd_requires_relocations): Likewise.
1793 (print_one_bfd): Likewise.
1794 * gdbtypes.c (type_pair_hash): Likewise.
1795 (type_pair_eq): Likewise.
1796 (builtin_type): Likewise.
1797 (objfile_type): Likewise.
1798 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1799 (vtable_address_point_offset): Likewise.
1800 (gnuv3_get_vtable): Likewise.
1801 (hash_value_and_voffset): Likewise.
1802 (eq_value_and_voffset): Likewise.
1803 (compare_value_and_voffset): Likewise.
1804 (compute_vtable_size): Likewise.
1805 (gnuv3_get_typeid_type): Likewise.
1806 * go-lang.c (builtin_go_type): Likewise.
1807 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1808 (bkscm_eq_block_smob): Likewise.
1809 (bkscm_objfile_block_map): Likewise.
1810 (bkscm_del_objfile_blocks): Likewise.
1811 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1812 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1813 (gdbscm_disasm_print_address): Likewise.
1814 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1815 (frscm_eq_frame_smob): Likewise.
1816 (frscm_inferior_frame_map): Likewise.
1817 (frscm_del_inferior_frames): Likewise.
1818 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1819 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1820 (ofscm_objfile_smob_from_objfile): Likewise.
1821 * guile/scm-ports.c (ioscm_write): Likewise.
1822 (ioscm_file_port_delete): Likewise.
1823 (ioscm_file_port_rewind): Likewise.
1824 (ioscm_file_port_put): Likewise.
1825 (ioscm_file_port_write): Likewise.
1826 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1827 (psscm_pspace_smob_from_pspace): Likewise.
1828 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1829 (scscm_recording_unwind_handler): Likewise.
1830 (gdbscm_with_catch): Likewise.
1831 (scscm_call_0_body): Likewise.
1832 (scscm_call_1_body): Likewise.
1833 (scscm_call_2_body): Likewise.
1834 (scscm_call_3_body): Likewise.
1835 (scscm_call_4_body): Likewise.
1836 (scscm_apply_1_body): Likewise.
1837 (scscm_eval_scheme_string): Likewise.
1838 (gdbscm_safe_eval_string): Likewise.
1839 (scscm_source_scheme_script): Likewise.
1840 (gdbscm_safe_source_script): Likewise.
1841 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1842 (gdbscm_call_scm_from_stringn): Likewise.
1843 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1844 (syscm_eq_symbol_smob): Likewise.
1845 (syscm_get_symbol_map): Likewise.
1846 (syscm_del_objfile_symbols): Likewise.
1847 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1848 (stscm_eq_symtab_smob): Likewise.
1849 (stscm_objfile_symtab_map): Likewise.
1850 (stscm_del_objfile_symtabs): Likewise.
1851 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1852 (tyscm_eq_type_smob): Likewise.
1853 (tyscm_type_map): Likewise.
1854 (tyscm_copy_type_recursive): Likewise.
1855 (save_objfile_types): Likewise.
1856 * guile/scm-utils.c (extract_arg): Likewise.
1857 * h8300-tdep.c (h8300_frame_cache): Likewise.
1858 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1859 * hppa-tdep.c (compare_unwind_entries): Likewise.
1860 (find_unwind_entry): Likewise.
1861 (hppa_frame_cache): Likewise.
1862 (hppa_stub_frame_unwind_cache): Likewise.
1863 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1864 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1865 (hppaobsd_supply_fpregset): Likewise.
1866 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1867 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1868 * i386-tdep.c (i386_frame_cache): Likewise.
1869 (i386_epilogue_frame_cache): Likewise.
1870 (i386_sigtramp_frame_cache): Likewise.
1871 (i386_supply_gregset): Likewise.
1872 (i386_collect_gregset): Likewise.
1873 (i386_gdbarch_init): Likewise.
1874 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1875 (i386obsd_trapframe_cache): Likewise.
1876 * i387-tdep.c (i387_supply_fsave): Likewise.
1877 (i387_collect_fsave): Likewise.
1878 (i387_supply_fxsave): Likewise.
1879 (i387_collect_fxsave): Likewise.
1880 (i387_supply_xsave): Likewise.
1881 (i387_collect_xsave): Likewise.
1882 * ia64-tdep.c (ia64_frame_cache): Likewise.
1883 (ia64_sigtramp_frame_cache): Likewise.
1884 * infcmd.c (attach_command_continuation): Likewise.
1885 (attach_command_continuation_free_args): Likewise.
1886 * inferior.c (restore_inferior): Likewise.
1887 (delete_thread_of_inferior): Likewise.
1888 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1889 (get_inflow_inferior_data): Likewise.
1890 (inflow_inferior_exit): Likewise.
1891 * infrun.c (displaced_step_clear_cleanup): Likewise.
1892 (restore_current_uiout_cleanup): Likewise.
1893 (release_stop_context_cleanup): Likewise.
1894 (do_restore_infcall_suspend_state_cleanup): Likewise.
1895 (do_restore_infcall_control_state_cleanup): Likewise.
1896 (restore_inferior_ptid): Likewise.
1897 * inline-frame.c (block_starting_point_at): Likewise.
1898 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1899 * jit.c (get_jit_objfile_data): Likewise.
1900 (get_jit_program_space_data): Likewise.
1901 (jit_object_close_impl): Likewise.
1902 (jit_find_objf_with_entry_addr): Likewise.
1903 (jit_breakpoint_deleted): Likewise.
1904 (jit_unwind_reg_set_impl): Likewise.
1905 (jit_unwind_reg_get_impl): Likewise.
1906 (jit_dealloc_cache): Likewise.
1907 (jit_frame_sniffer): Likewise.
1908 (jit_frame_prev_register): Likewise.
1909 (jit_prepend_unwinder): Likewise.
1910 (jit_inferior_exit_hook): Likewise.
1911 (free_objfile_data): Likewise.
1912 * jv-lang.c (jv_per_objfile_free): Likewise.
1913 (get_dynamics_objfile): Likewise.
1914 (get_java_class_symtab): Likewise.
1915 (builtin_java_type): Likewise.
1916 * language.c (language_string_char_type): Likewise.
1917 (language_bool_type): Likewise.
1918 (language_lookup_primitive_type): Likewise.
1919 (language_lookup_primitive_type_as_symbol): Likewise.
1920 * linespec.c (hash_address_entry): Likewise.
1921 (eq_address_entry): Likewise.
1922 (iterate_inline_only): Likewise.
1923 (iterate_name_matcher): Likewise.
1924 (decode_line_2_compare_items): Likewise.
1925 (collect_one_symbol): Likewise.
1926 (compare_symbols): Likewise.
1927 (compare_msymbols): Likewise.
1928 (add_symtabs_to_list): Likewise.
1929 (collect_symbols): Likewise.
1930 (compare_msyms): Likewise.
1931 (add_minsym): Likewise.
1932 (cleanup_linespec_result): Likewise.
1933 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1934 * linux-nat.c (delete_lwp_cleanup): Likewise.
1935 (count_events_callback): Likewise.
1936 (select_event_lwp_callback): Likewise.
1937 (resume_stopped_resumed_lwps): Likewise.
1938 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1939 (invalidate_linux_cache_inf): Likewise.
1940 (get_linux_inferior_data): Likewise.
1941 (linux_find_memory_regions_thunk): Likewise.
1942 (linux_make_mappings_callback): Likewise.
1943 (linux_corefile_thread_callback): Likewise.
1944 (find_mapping_size): Likewise.
1945 * linux-thread-db.c (find_new_threads_callback): Likewise.
1946 * lm32-tdep.c (lm32_frame_cache): Likewise.
1947 * m2-lang.c (builtin_m2_type): Likewise.
1948 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1949 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1950 (m32r_linux_supply_gregset): Likewise.
1951 (m32r_linux_collect_gregset): Likewise.
1952 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1953 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1954 * m68k-tdep.c (m68k_frame_cache): Likewise.
1955 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1956 (m68kbsd_supply_gregset): Likewise.
1957 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1958 * m88k-tdep.c (m88k_frame_cache): Likewise.
1959 (m88k_supply_gregset): Likewise.
1960
1961 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1962
1963 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1964 to allocation result assignment.
1965 * ada-exp.y (write_object_renaming): Likewise.
1966 (write_ambiguous_var): Likewise.
1967 (ada_nget_field_index): Likewise.
1968 (write_var_or_type): Likewise.
1969 * ada-lang.c (ada_decode_symbol): Likewise.
1970 (ada_value_assign): Likewise.
1971 (value_pointer): Likewise.
1972 (cache_symbol): Likewise.
1973 (add_nonlocal_symbols): Likewise.
1974 (ada_name_for_lookup): Likewise.
1975 (symbol_completion_add): Likewise.
1976 (ada_to_fixed_type_1): Likewise.
1977 (ada_get_next_arg): Likewise.
1978 (defns_collected): Likewise.
1979 * ada-lex.l (processId): Likewise.
1980 (processString): Likewise.
1981 * ada-tasks.c (read_known_tasks_array): Likewise.
1982 (read_known_tasks_list): Likewise.
1983 * ada-typeprint.c (decoded_type_name): Likewise.
1984 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1985 * amd64-tdep.c (amd64_push_arguments): Likewise.
1986 (amd64_displaced_step_copy_insn): Likewise.
1987 (amd64_classify_insn_at): Likewise.
1988 (amd64_relocate_instruction): Likewise.
1989 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1990 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1991 (initialize_current_architecture): Likewise.
1992 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1993 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1994 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1995 (arm_push_dummy_call): Likewise.
1996 (extend_buffer_earlier): Likewise.
1997 (arm_adjust_breakpoint_address): Likewise.
1998 (arm_skip_stub): Likewise.
1999 * auto-load.c (filename_is_in_pattern): Likewise.
2000 (maybe_add_script_file): Likewise.
2001 (maybe_add_script_text): Likewise.
2002 (auto_load_objfile_script_1): Likewise.
2003 * auxv.c (ld_so_xfer_auxv): Likewise.
2004 * ax-general.c (new_agent_expr): Likewise.
2005 (grow_expr): Likewise.
2006 (ax_reg_mask): Likewise.
2007 * bcache.c (bcache_full): Likewise.
2008 * breakpoint.c (program_breakpoint_here_p): Likewise.
2009 * btrace.c (parse_xml_raw): Likewise.
2010 * build-id.c (build_id_to_debug_bfd): Likewise.
2011 * buildsym.c (end_symtab_with_blockvector): Likewise.
2012 * c-exp.y (string_exp): Likewise.
2013 (qualified_name): Likewise.
2014 (write_destructor_name): Likewise.
2015 (operator_stoken): Likewise.
2016 (parse_number): Likewise.
2017 (scan_macro_expansion): Likewise.
2018 (yylex): Likewise.
2019 (c_print_token): Likewise.
2020 * c-lang.c (c_get_string): Likewise.
2021 (emit_numeric_character): Likewise.
2022 * charset.c (wchar_iterate): Likewise.
2023 * cli/cli-cmds.c (complete_command): Likewise.
2024 (make_command): Likewise.
2025 * cli/cli-dump.c (restore_section_callback): Likewise.
2026 (restore_binary_file): Likewise.
2027 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2028 * cli/cli-script.c (execute_control_command): Likewise.
2029 * cli/cli-setshow.c (do_set_command): Likewise.
2030 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2031 (read_pe_exported_syms): Likewise.
2032 * coffread.c (coff_read_struct_type): Likewise.
2033 (coff_read_enum_type): Likewise.
2034 * common/btrace-common.c (btrace_data_append): Likewise.
2035 * common/buffer.c (buffer_grow): Likewise.
2036 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2037 * common/format.c (parse_format_string): Likewise.
2038 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2039 * common/xml-utils.c (xml_escape_text): Likewise.
2040 * compile/compile-object-load.c (copy_sections): Likewise.
2041 (compile_object_load): Likewise.
2042 * compile/compile-object-run.c (compile_object_run): Likewise.
2043 * completer.c (filename_completer): Likewise.
2044 * corefile.c (read_memory_typed_address): Likewise.
2045 (write_memory_unsigned_integer): Likewise.
2046 (write_memory_signed_integer): Likewise.
2047 (complete_set_gnutarget): Likewise.
2048 * corelow.c (get_core_register_section): Likewise.
2049 * cp-name-parser.y (d_grab): Likewise.
2050 (allocate_info): Likewise.
2051 (cp_new_demangle_parse_info): Likewise.
2052 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2053 (cp_lookup_symbol_in_namespace): Likewise.
2054 (lookup_namespace_scope): Likewise.
2055 (find_symbol_in_baseclass): Likewise.
2056 (cp_lookup_nested_symbol): Likewise.
2057 (cp_lookup_transparent_type_loop): Likewise.
2058 * cp-support.c (copy_string_to_obstack): Likewise.
2059 (make_symbol_overload_list): Likewise.
2060 (make_symbol_overload_list_namespace): Likewise.
2061 (make_symbol_overload_list_adl_namespace): Likewise.
2062 (first_component_command): Likewise.
2063 * cp-valprint.c (cp_print_value): Likewise.
2064 * ctf.c (ctf_xfer_partial): Likewise.
2065 * d-exp.y (StringExp): Likewise.
2066 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2067 (lookup_module_scope): Likewise.
2068 (find_symbol_in_baseclass): Likewise.
2069 (d_lookup_nested_symbol): Likewise.
2070 * dbxread.c (find_stab_function_addr): Likewise.
2071 (read_dbx_symtab): Likewise.
2072 (dbx_end_psymtab): Likewise.
2073 (cp_set_block_scope): Likewise.
2074 * dcache.c (dcache_alloc): Likewise.
2075 * demangle.c (_initialize_demangler): Likewise.
2076 * dicos-tdep.c (dicos_load_module_p): Likewise.
2077 * dictionary.c (dict_create_hashed_expandable): Likewise.
2078 (dict_create_linear_expandable): Likewise.
2079 (expand_hashtable): Likewise.
2080 (add_symbol_linear_expandable): Likewise.
2081 * dwarf2-frame.c (add_cie): Likewise.
2082 (add_fde): Likewise.
2083 (dwarf2_build_frame_info): Likewise.
2084 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2085 (dwarf_expr_fetch_address): Likewise.
2086 (add_piece): Likewise.
2087 (execute_stack_op): Likewise.
2088 * dwarf2loc.c (chain_candidate): Likewise.
2089 (dwarf_entry_parameter_to_value): Likewise.
2090 (read_pieced_value): Likewise.
2091 (write_pieced_value): Likewise.
2092 * dwarf2read.c (dwarf2_read_section): Likewise.
2093 (add_type_unit): Likewise.
2094 (read_comp_units_from_section): Likewise.
2095 (fixup_go_packaging): Likewise.
2096 (dwarf2_compute_name): Likewise.
2097 (dwarf2_physname): Likewise.
2098 (create_dwo_unit_in_dwp_v1): Likewise.
2099 (create_dwo_unit_in_dwp_v2): Likewise.
2100 (read_func_scope): Likewise.
2101 (read_call_site_scope): Likewise.
2102 (dwarf2_attach_fields_to_type): Likewise.
2103 (process_structure_scope): Likewise.
2104 (mark_common_block_symbol_computed): Likewise.
2105 (read_common_block): Likewise.
2106 (abbrev_table_read_table): Likewise.
2107 (guess_partial_die_structure_name): Likewise.
2108 (fixup_partial_die): Likewise.
2109 (add_file_name): Likewise.
2110 (dwarf2_const_value_data): Likewise.
2111 (dwarf2_const_value_attr): Likewise.
2112 (build_error_marker_type): Likewise.
2113 (guess_full_die_structure_name): Likewise.
2114 (anonymous_struct_prefix): Likewise.
2115 (typename_concat): Likewise.
2116 (dwarf2_canonicalize_name): Likewise.
2117 (dwarf2_name): Likewise.
2118 (write_constant_as_bytes): Likewise.
2119 (dwarf2_fetch_constant_bytes): Likewise.
2120 (copy_string): Likewise.
2121 (parse_macro_definition): Likewise.
2122 * elfread.c (elf_symfile_segments): Likewise.
2123 (elf_rel_plt_read): Likewise.
2124 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2125 (elf_gnu_ifunc_resolve_by_got): Likewise.
2126 (elf_read_minimal_symbols): Likewise.
2127 (elf_gnu_ifunc_record_cache): Likewise.
2128 * event-top.c (top_level_prompt): Likewise.
2129 (command_line_handler): Likewise.
2130 * exec.c (resize_section_table): Likewise.
2131 * expprint.c (print_subexp_standard): Likewise.
2132 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2133 * findcmd.c (parse_find_args): Likewise.
2134 * findvar.c (address_from_register): Likewise.
2135 * frame.c (get_prev_frame_always): Likewise.
2136 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2137 (get_section_descriptor): Likewise.
2138 * gdb_obstack.c (obconcat): Likewise.
2139 (obstack_strdup): Likewise.
2140 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2141 (create_set_type): Likewise.
2142 (lookup_unsigned_typename): Likewise.
2143 (lookup_signed_typename): Likewise.
2144 (resolve_dynamic_union): Likewise.
2145 (resolve_dynamic_struct): Likewise.
2146 (add_dyn_prop): Likewise.
2147 (copy_dynamic_prop_list): Likewise.
2148 (arch_flags_type): Likewise.
2149 (append_composite_type_field_raw): Likewise.
2150 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2151 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2152 * go-exp.y (string_exp): Likewise.
2153 * go-lang.c (go_demangle): Likewise.
2154 * guile/guile.c (compute_scheme_string): Likewise.
2155 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2156 (gdbscm_canonicalize_command_name): Likewise.
2157 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2158 (ioscm_init_memory_port): Likewise.
2159 (ioscm_reinit_memory_port): Likewise.
2160 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2161 (gdbscm_gc_dup_argv): Likewise.
2162 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2163 * hppa-tdep.c (internalize_unwinds): Likewise.
2164 (read_unwind_info): Likewise.
2165 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2166 (windows_core_xfer_shared_libraries): Likewise.
2167 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2168 (i386_stap_parse_special_token_triplet): Likewise.
2169 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2170 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2171 * inf-child.c (inf_child_fileio_readlink): Likewise.
2172 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2173 (inf_ptrace_store_register): Likewise.
2174 * infrun.c (follow_exec): Likewise.
2175 (displaced_step_prepare_throw): Likewise.
2176 (save_stop_context): Likewise.
2177 (save_infcall_suspend_state): Likewise.
2178 * jit.c (jit_read_descriptor): Likewise.
2179 (jit_read_code_entry): Likewise.
2180 (jit_symtab_line_mapping_add_impl): Likewise.
2181 (finalize_symtab): Likewise.
2182 (jit_unwind_reg_get_impl): Likewise.
2183 * jv-exp.y (QualifiedName): Likewise.
2184 * jv-lang.c (get_java_utf8_name): Likewise.
2185 (type_from_class): Likewise.
2186 (java_demangle_type_signature): Likewise.
2187 (java_class_name_from_physname): Likewise.
2188 * jv-typeprint.c (java_type_print_base): Likewise.
2189 * jv-valprint.c (java_value_print): Likewise.
2190 * language.c (add_language): Likewise.
2191 * linespec.c (add_sal_to_sals_basic): Likewise.
2192 (add_sal_to_sals): Likewise.
2193 (decode_objc): Likewise.
2194 (find_linespec_symbols): Likewise.
2195 * linux-fork.c (fork_save_infrun_state): Likewise.
2196 * linux-nat.c (linux_nat_detach): Likewise.
2197 (linux_nat_fileio_readlink): Likewise.
2198 * linux-record.c (record_linux_sockaddr): Likewise.
2199 (record_linux_msghdr): Likewise.
2200 (Do): Likewise.
2201 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2202 (linux_collect_regset_section_cb): Likewise.
2203 (linux_get_siginfo_data): Likewise.
2204 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2205 (try_thread_db_load_from_dir): Likewise.
2206 (thread_db_load_search): Likewise.
2207 (info_auto_load_libthread_db): Likewise.
2208 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2209 (m32c_m16c_pointer_to_address): Likewise.
2210 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2211 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2212 * machoread.c (macho_check_dsym): Likewise.
2213 * macroexp.c (resize_buffer): Likewise.
2214 (gather_arguments): Likewise.
2215 (maybe_expand): Likewise.
2216 * macrotab.c (new_macro_key): Likewise.
2217 (new_source_file): Likewise.
2218 (new_macro_definition): Likewise.
2219 * mdebugread.c (parse_symbol): Likewise.
2220 (parse_type): Likewise.
2221 (parse_partial_symbols): Likewise.
2222 (psymtab_to_symtab_1): Likewise.
2223 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2224 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2225 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2226 (mi_cmd_data_read_memory_bytes): Likewise.
2227 (mi_cmd_data_write_memory_bytes): Likewise.
2228 (mi_cmd_trace_frame_collected): Likewise.
2229 * mi/mi-parse.c (mi_parse_argv): Likewise.
2230 (mi_parse): Likewise.
2231 * minidebug.c (lzma_open): Likewise.
2232 (lzma_pread): Likewise.
2233 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2234 (mips_print_fp_register): Likewise.
2235 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2236 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2237 * mt-tdep.c (mt_register_name): Likewise.
2238 (mt_registers_info): Likewise.
2239 (mt_push_dummy_call): Likewise.
2240 * namespace.c (add_using_directive): Likewise.
2241 * nat/linux-btrace.c (perf_event_read): Likewise.
2242 (linux_enable_bts): Likewise.
2243 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2244 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2245 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2246 (nto_parse_redirection): Likewise.
2247 * objc-lang.c (objc_demangle): Likewise.
2248 (find_methods): Likewise.
2249 * objfiles.c (get_objfile_bfd_data): Likewise.
2250 (set_objfile_main_name): Likewise.
2251 (allocate_objfile): Likewise.
2252 (objfile_relocate): Likewise.
2253 (update_section_map): Likewise.
2254 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2255 * p-exp.y (exp): Likewise.
2256 (yylex): Likewise.
2257 * p-valprint.c (pascal_object_print_value): Likewise.
2258 * parse.c (initialize_expout): Likewise.
2259 (mark_completion_tag): Likewise.
2260 (copy_name): Likewise.
2261 (parse_float): Likewise.
2262 (type_stack_reserve): Likewise.
2263 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2264 (ppu2spu_prev_register): Likewise.
2265 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2266 * printcmd.c (printf_wide_c_string): Likewise.
2267 (printf_pointer): Likewise.
2268 * probe.c (parse_probes): Likewise.
2269 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2270 (cmdpy_init): Likewise.
2271 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2272 * python/py-symtab.c (set_sal): Likewise.
2273 * python/py-unwind.c (pyuw_sniffer): Likewise.
2274 * python/python.c (python_interactive_command): Likewise.
2275 (compute_python_string): Likewise.
2276 * ravenscar-thread.c (get_running_thread_id): Likewise.
2277 * record-full.c (record_full_exec_insn): Likewise.
2278 (record_full_core_open_1): Likewise.
2279 * regcache.c (regcache_raw_read_signed): Likewise.
2280 (regcache_raw_read_unsigned): Likewise.
2281 (regcache_cooked_read_signed): Likewise.
2282 (regcache_cooked_read_unsigned): Likewise.
2283 * remote-fileio.c (remote_fileio_func_open): Likewise.
2284 (remote_fileio_func_rename): Likewise.
2285 (remote_fileio_func_unlink): Likewise.
2286 (remote_fileio_func_stat): Likewise.
2287 (remote_fileio_func_system): Likewise.
2288 * remote-mips.c (mips_xfer_memory): Likewise.
2289 (mips_load_srec): Likewise.
2290 (pmon_end_download): Likewise.
2291 * remote.c (new_remote_state): Likewise.
2292 (map_regcache_remote_table): Likewise.
2293 (remote_register_number_and_offset): Likewise.
2294 (init_remote_state): Likewise.
2295 (get_memory_packet_size): Likewise.
2296 (remote_pass_signals): Likewise.
2297 (remote_program_signals): Likewise.
2298 (remote_start_remote): Likewise.
2299 (remote_check_symbols): Likewise.
2300 (remote_query_supported): Likewise.
2301 (extended_remote_attach): Likewise.
2302 (process_g_packet): Likewise.
2303 (store_registers_using_G): Likewise.
2304 (putpkt_binary): Likewise.
2305 (read_frame): Likewise.
2306 (compare_sections_command): Likewise.
2307 (remote_hostio_pread): Likewise.
2308 (remote_hostio_readlink): Likewise.
2309 (remote_file_put): Likewise.
2310 (remote_file_get): Likewise.
2311 (remote_pid_to_exec_file): Likewise.
2312 (_initialize_remote): Likewise.
2313 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2314 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2315 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2316 (bfd_uses_spe_extensions): Likewise.
2317 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2318 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2319 * solib-dsbt.c (decode_loadmap): Likewise.
2320 (fetch_loadmap): Likewise.
2321 (scan_dyntag): Likewise.
2322 (enable_break): Likewise.
2323 (dsbt_relocate_main_executable): Likewise.
2324 * solib-frv.c (fetch_loadmap): Likewise.
2325 (enable_break2): Likewise.
2326 (frv_relocate_main_executable): Likewise.
2327 * solib-spu.c (spu_relocate_main_executable): Likewise.
2328 (spu_bfd_open): Likewise.
2329 * solib-svr4.c (lm_info_read): Likewise.
2330 (read_program_header): Likewise.
2331 (find_program_interpreter): Likewise.
2332 (scan_dyntag): Likewise.
2333 (elf_locate_base): Likewise.
2334 (open_symbol_file_object): Likewise.
2335 (read_program_headers_from_bfd): Likewise.
2336 (svr4_relocate_main_executable): Likewise.
2337 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2338 * solib.c (solib_find_1): Likewise.
2339 (exec_file_find): Likewise.
2340 (solib_find): Likewise.
2341 * source.c (openp): Likewise.
2342 (print_source_lines_base): Likewise.
2343 (forward_search_command): Likewise.
2344 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2345 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2346 (spu_get_overlay_table): Likewise.
2347 * stabsread.c (patch_block_stabs): Likewise.
2348 (define_symbol): Likewise.
2349 (again:): Likewise.
2350 (read_member_functions): Likewise.
2351 (read_one_struct_field): Likewise.
2352 (read_enum_type): Likewise.
2353 (common_block_start): Likewise.
2354 * stack.c (read_frame_arg): Likewise.
2355 (backtrace_command): Likewise.
2356 * stap-probe.c (stap_parse_register_operand): Likewise.
2357 * symfile.c (syms_from_objfile_1): Likewise.
2358 (find_separate_debug_file): Likewise.
2359 (load_command): Likewise.
2360 (load_progress): Likewise.
2361 (load_section_callback): Likewise.
2362 (reread_symbols): Likewise.
2363 (add_filename_language): Likewise.
2364 (allocate_compunit_symtab): Likewise.
2365 (read_target_long_array): Likewise.
2366 (simple_read_overlay_table): Likewise.
2367 * symtab.c (symbol_set_names): Likewise.
2368 (resize_symbol_cache): Likewise.
2369 (rbreak_command): Likewise.
2370 (completion_list_add_name): Likewise.
2371 (completion_list_objc_symbol): Likewise.
2372 (add_filename_to_list): Likewise.
2373 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2374 * target-memory.c (target_write_memory_blocks): Likewise.
2375 * target.c (target_read_string): Likewise.
2376 (read_whatever_is_readable): Likewise.
2377 (target_read_alloc_1): Likewise.
2378 (simple_search_memory): Likewise.
2379 (target_fileio_read_alloc_1): Likewise.
2380 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2381 * top.c (command_line_input): Likewise.
2382 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2383 * tracefile.c (tracefile_fetch_registers): Likewise.
2384 * tracepoint.c (add_memrange): Likewise.
2385 (init_collection_list): Likewise.
2386 (add_aexpr): Likewise.
2387 (trace_dump_actions): Likewise.
2388 (parse_trace_status): Likewise.
2389 (parse_tracepoint_definition): Likewise.
2390 (parse_tsv_definition): Likewise.
2391 (parse_static_tracepoint_marker_definition): Likewise.
2392 * tui/tui-file.c (tui_sfileopen): Likewise.
2393 (tui_file_adjust_strbuf): Likewise.
2394 * tui/tui-io.c (tui_expand_tabs): Likewise.
2395 * tui/tui-source.c (tui_set_source_content): Likewise.
2396 * typeprint.c (find_global_typedef): Likewise.
2397 * ui-file.c (do_ui_file_xstrdup): Likewise.
2398 (ui_file_obsavestring): Likewise.
2399 (mem_file_write): Likewise.
2400 * utils.c (make_hex_string): Likewise.
2401 (get_regcomp_error): Likewise.
2402 (puts_filtered_tabular): Likewise.
2403 (gdb_realpath_keepfile): Likewise.
2404 (ldirname): Likewise.
2405 (gdb_bfd_errmsg): Likewise.
2406 (substitute_path_component): Likewise.
2407 * valops.c (search_struct_method): Likewise.
2408 (find_oload_champ_namespace_loop): Likewise.
2409 * valprint.c (print_decimal_chars): Likewise.
2410 (read_string): Likewise.
2411 (generic_emit_char): Likewise.
2412 * varobj.c (varobj_delete): Likewise.
2413 (varobj_value_get_print_value): Likewise.
2414 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2415 * windows-tdep.c (display_one_tib): Likewise.
2416 * xcoffread.c (read_xcoff_symtab): Likewise.
2417 (process_xcoff_symbol): Likewise.
2418 (swap_sym): Likewise.
2419 (scan_xcoff_symtab): Likewise.
2420 (xcoff_initial_scan): Likewise.
2421 * xml-support.c (gdb_xml_end_element): Likewise.
2422 (xml_process_xincludes): Likewise.
2423 (xml_fetch_content_from_file): Likewise.
2424 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2425 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2426
2427 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2428
2429 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2430 instead of builtin_func_ptr.
2431 (ft32_pointer_to_address): New function.
2432 (ft32_address_class_type_flags): New function.
2433 (ft32_address_class_type_flags_to_name): New function.
2434 (ft32_address_class_name_to_type_flags): New function.
2435 (ft32_gdbarch_init): Set tdep->pc_type. Call
2436 set_gdbarch_pointer_to_address,
2437 set_gdbarch_address_class_type_flags
2438 set_gdbarch_address_class_name_to_type_flags,
2439 and set_gdbarch_address_class_type_flags_to_name.
2440 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2441
2442 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2443
2444 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2445 value is a reference, actually dereference it in order to get
2446 the underlying value.
2447
2448 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2449
2450 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2451
2452 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2453
2454 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2455 * linespec.c (linespec_lexer_lex_string): Same.
2456
2457 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2458
2459 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2460
2461 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2462
2463 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2464 variable. Call aarch64_decode_adr instead of
2465 aarch64_decode_adrp.
2466 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2467 (aarch64_decode_adr): New function declaration.
2468 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2469 (aarch64_decode_adr): New function, factored out from
2470 aarch64_decode_adrp to decode both adr and adrp instructions.
2471
2472 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2473
2474 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2475 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2476 (aarch64-insn.o): New rule.
2477 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2478 (aarch64*-*-linux*): Likewise.
2479 * arch/aarch64-insn.c: New file.
2480 * arch/aarch64-insn.h: New file.
2481 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2482 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2483 arch/aarch64-insn.h.
2484 (decode_add_sub_imm): Rename to ...
2485 (aarch64_decode_add_sub_imm): ... this.
2486 (decode_adrp): Rename to ...
2487 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2488 Declare in arch/aarch64-insn.h.
2489 (decode_b): Rename to ...
2490 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2491 Declare in arch/aarch64-insn.h.
2492 (decode_bcond): Rename to ...
2493 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2494 Declare in arch/aarch64-insn.h.
2495 (decode_br): Rename to ...
2496 (aarch64_decode_br): ... this.
2497 (decode_cb): Rename to ...
2498 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2499 Declare in arch/aarch64-insn.h.
2500 (decode_eret): Rename to ...
2501 (aarch64_decode_eret): ... this.
2502 (decode_movz): Rename to ...
2503 (aarch64_decode_movz): ... this.
2504 (decode_orr_shifted_register_x): Rename to ...
2505 (aarch64_decode_orr_shifted_register_x): ... this.
2506 (decode_ret): Rename to ...
2507 (aarch64_decode_ret): ... this.
2508 (decode_stp_offset): Rename to ...
2509 (aarch64_decode_stp_offset): ... this.
2510 (decode_stp_offset_wb): Rename to ...
2511 (aarch64_decode_stp_offset_wb): ... this.
2512 (decode_stur): Rename to ...
2513 (aarch64_decode_stur): ... this.
2514 (decode_tb): Rename to ...
2515 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2516 Declare in arch/aarch64-insn.h.
2517 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2518
2519 2015-09-20 Doug Evans <xdje42@gmail.com>
2520
2521 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2522
2523 2015-09-20 Doug Evans <xdje42@gmail.com>
2524
2525 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2526 variable name that collides with a parameter.
2527
2528 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2529
2530 * dwarf2loc.c (locexpr_get_frame_base): Renames
2531 block_op_get_frame_base.
2532 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2533 block_op_get_frame_base by reference to locexpr_get_frame_base.
2534 (loclist_get_frame_base): New function, near identical copy of
2535 locexpr_get_frame_base.
2536 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2537 block_op_get_frame_base by reference to loclist_get_frame_base.
2538
2539 2015-09-19 Doug Evans <xdje42@gmail.com>
2540
2541 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2542 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2543
2544 2015-09-18 Doug Evans <xdje42@gmail.com>
2545
2546 * linux-thread-db.c (record_thread): Return the created thread.
2547 (thread_from_lwp): Likewise.
2548 (thread_db_get_thread_local_address): Update.
2549
2550 2015-09-18 Doug Evans <xdje42@gmail.com>
2551
2552 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2553 move only member demangled_name up. All uses updated.
2554
2555 2015-09-18 Doug Evans <xdje42@gmail.com>
2556
2557 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2558 kind of minimal symbol in the error message.
2559 * objfiles.c (objfile_flavour_name): New function.
2560 * objfiles.h (objfile_flavour_name): Declare.
2561
2562 2015-09-18 Yao Qi <yao.qi@linaro.org>
2563
2564 * nat/aarch64-linux.c: Include elf/common.h,
2565 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2566 (aarch64_ps_get_thread_area): New function.
2567 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2568 (aarch64_ps_get_thread_area): Declare.
2569 * aarch64-linux-nat.c (ps_get_thread_area): Call
2570 aarch64_ps_get_thread_area.
2571
2572 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2573
2574 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2575
2576 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2577
2578 * NEWS: Announce new scheduler-locking mode.
2579 * infrun.c (schedlock_replay): New.
2580 (scheduler_enums): Add schedlock_replay.
2581 (scheduler_mode): Change default to schedlock_replay.
2582 (user_visible_resume_ptid): Handle schedlock_replay.
2583 (clear_proceed_status_thread): Stop replaying if resumed thread is
2584 not replaying.
2585 (schedlock_applies): Handle schedlock_replay.
2586 (_initialize_infrun): Document new scheduler-locking mode.
2587 * record-btrace.c (record_btrace_resume): Remove code to stop other
2588 threads when not replaying the resumed thread.
2589
2590 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2591
2592 * record-btrace.c ((record_btrace_will_replay): New.
2593 (init_record_btrace_ops): Initialize to_record_will_replay.
2594 * record-full.c ((record_full_will_replay): New.
2595 (init_record_full_ops): Initialize to_record_will_replay.
2596 * target-delegates.c: Regenerated.
2597 * target.c (target_record_will_replay): New.
2598 * target.h (struct target_ops) <to_record_will_replay>: New.
2599 (target_record_will_replay): New.
2600
2601 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2602
2603 * record-btrace.c (record_btrace_resume): Call
2604 target_record_stop_replaying.
2605 (record_btrace_stop_replaying_all): New.
2606 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2607 * record-full.c (record_full_stop_replaying): New.
2608 (init_record_full_ops ): Initialize to_record_stop_replaying.
2609 * target-delegates.c: Regenerated.
2610 * target.c (target_record_stop_replaying): New.
2611 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2612 (target_record_stop_replaying): New.
2613
2614 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2615
2616 * record-btrace.c (record_btrace_xfer_partial)
2617 (record_btrace_store_registers, record_btrace_prepare_to_store):
2618 Call record_btrace_is_replaying with inferior_ptid instead of
2619 minus_one_ptid.
2620 (record_btrace_store_registers): Change error message.
2621
2622 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2623
2624 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2625 Update users to pass minus_one_ptid.
2626 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2627 * record.c (cmd_record_delete): Pass inferior_ptid to
2628 target_record_is_replaying.
2629 * target-delegates.c: Regenerated.
2630 * target.c (target_record_is_replaying): Add ptid argument.
2631 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2632 argument.
2633 (target_record_is_replaying): Add ptid argument.
2634
2635 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2636
2637 * record-btrace.c (record_btrace_open): Remove non_stop check.
2638 * NEWS: Announce that record btrace supports non-stop mode.
2639
2640 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2641
2642 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2643 in the TARKET_WAITKIND_NO_HISTORY case.
2644
2645 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2646
2647 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2648 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2649
2650 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2651
2652 * record-btrace.c (get_thread_current_frame): New.
2653 (record_btrace_start_replaying): Call get_thread_current_frame.
2654
2655 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2656
2657 * record-btrace.c (record_btrace_resume_thread): A move request
2658 overwrites a previous move request.
2659 (record_btrace_find_resume_thread): Removed.
2660 (record_btrace_resume): Resume all requested threads.
2661
2662 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2663
2664 * record-btrace.c: Include vec.h.
2665 (record_btrace_find_thread_to_move): Removed.
2666 (btrace_step_no_resumed, btrace_step_again)
2667 (record_btrace_stop_replaying_at_end): New.
2668 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2669 (record_btrace_single_step_forward): Remove calls to
2670 record_btrace_stop_replaying.
2671 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2672 BTHR_RCONT. Keep threads at the end of their history moving.
2673 (record_btrace_wait): Call record_btrace_step_thread for all threads
2674 until one reports an event. Call record_btrace_stop_replaying_at_end
2675 for the eventing thread.
2676
2677 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2678
2679 * record-btrace.c (record_btrace_single_step_forward): Return
2680 NO_HISTORY if a step brings us to the end of the execution history.
2681
2682 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2683
2684 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2685 to ...
2686 (record_btrace_single_step_forward): ... here and
2687 (record_btrace_single_step_backward): ... here.
2688
2689 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2690
2691 * record-btrace.c (btrace_step_spurious)
2692 (record_btrace_single_step_forward)
2693 (record_btrace_single_step_backward): New.
2694 (record_btrace_step_thread): Call record_btrace_single_step_forward
2695 and record_btrace_single_step_backward.
2696
2697 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2698
2699 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2700 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2701
2702 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2703
2704 * record-btrace.c (btrace_thread_flag_to_str)
2705 (record_btrace_cancel_resume): New.
2706 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2707 (record_btrace_resume): Print execution direction.
2708 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2709 (record_btrace_wait): Call record_btrace_cancel_resume.
2710
2711 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2712
2713 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2714 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2715 (record_btrace_find_thread_to_move): Also accept threads that have
2716 BTHR_STOP set.
2717 (btrace_step_stopped_on_request, record_btrace_stop): New.
2718 (record_btrace_step_thread): Support BTHR_STOP.
2719 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2720 (init_record_btrace_ops): Initialize to_stop.
2721
2722 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2723
2724 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2725 target_is_non_stop_p ().
2726
2727 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2728
2729 * ada-typeprint.c (print_array_type): Do not describe arrays as
2730 packed when they embed dynamic elements.
2731
2732 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2733
2734 * symtab.h (address_class): Document that TLS variables
2735 are handled by LOC_UNRESOLVED.
2736 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2737 * printcmd.c (address_info): Don't relocate TLS variables.
2738
2739 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2740
2741 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2742 (decode_adrp): Likewise.
2743 (decode_b): Likewise.
2744 (decode_bcond): Likewise.
2745 (decode_br): Likewise.
2746 (decode_cb): Likewise.
2747 (decode_eret): Likewise.
2748 (decode_movz): Likewise.
2749 (decode_orr_shifted_register_x): Likewise.
2750 (decode_ret): Likewise.
2751 (decode_stp_offset): Likewise.
2752 (decode_stp_offset_wb): Likewise.
2753 (decode_stur): Likewise.
2754 (decode_tb): Likewise.
2755 (aarch64_analyze_prologue): Likewise.
2756 (pass_in_x): Likewise.
2757 (pass_in_v): Likewise.
2758 (pass_on_stack): Likewise.
2759 (aarch64_push_dummy_call): Likewise.
2760 (aarch64_extract_return_value): Likewise.
2761 (aarch64_store_return_value): Likewise.
2762 (aarch64_return_value): Likewise.
2763 (aarch64_record_asimd_load_store): Likewise.
2764 (aarch64_record_load_store): Likewise.
2765 (aarch64_record_data_proc_simd_fp): Likewise.
2766
2767 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2768
2769 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2770 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2771 (ppc64_skip_trampoline_code_1): ... here.
2772 (ppc64_skip_trampoline_code): New wrapper function.
2773 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2774
2775 2015-09-15 Yao Qi <yao.qi@linaro.org>
2776
2777 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2778 function.
2779 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2780 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2781 if target_can_do_single_step returns 1.
2782 * remote.c (struct vCont_action_support) <s, S>: New fields.
2783 (PACKET_vContSupported): New enum.
2784 (remote_protocol_features): New element for vContSupported.
2785 (remote_query_supported): Append "vContSupported+".
2786 (remote_vcont_probe): Remove support_s and support_S, use
2787 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2788 vCont packet if c and C actions are not supported.
2789 (remote_can_do_single_step): New function.
2790 (init_remote_ops): Install it to to_can_do_single_step.
2791 (_initialize_remote): Call add_packet_config_cmd.
2792 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2793 (target_can_do_single_step): New macro.
2794 * target-delegates.c: Re-generated.
2795
2796 2015-09-15 Yao Qi <yao.qi@linaro.org>
2797
2798 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2799 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2800 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2801 New function.
2802 (aarch64_siginfo_from_compat_siginfo): New function.
2803 * nat/aarch64-linux.h: Include signal.h.
2804 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2805 (compat_timer_t, compat_clock_t): Likewise.
2806 (struct compat_timeval): New.
2807 (union compat_sigval): New.
2808 (struct compat_siginfo): New.
2809 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2810 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2811 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2812 (cpt_si_band, cpt_si_fd): Likewise.
2813
2814 2015-09-14 Pedro Alves <palves@redhat.com>
2815
2816 * infrun.c (current_stop_id): New global.
2817 (get_stop_id, new_stop_id): New functions.
2818 (fetch_inferior_event): Handle normal_stop proceeding the target.
2819 (struct stop_context): New.
2820 (save_stop_context, release_stop_context_cleanup)
2821 (stop_context_changed): New functions.
2822 (normal_stop): Return true if the hook-stop changes the stop
2823 context.
2824 * infrun.h (get_stop_id): Declare.
2825 (normal_stop): Now returns int. Add documentation.
2826
2827 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2828
2829 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2830 comment. Handle packed arrays.
2831
2832 2015-09-14 Pedro Alves <palves@redhat.com>
2833
2834 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2835 mention of maint set/show target-non-stop.
2836
2837 2015-09-11 Don Breazeal <donb@codesourcery.com>
2838
2839 * NEWS: Announce new remote packets for the exec-events
2840 feature and the exec-events feature and associated commands.
2841
2842 2015-09-11 Don Breazeal <donb@codesourcery.com>
2843
2844 * remote.c (remote_exec_event_p): New function.
2845 (remote_insert_exec_catchpoint): New function.
2846 (remote_remove_exec_catchpoint): New function.
2847 (init_extended_remote_ops): Initialize extended_remote_ops
2848 members to_insert_exec_catchpoint and
2849 to_remove_exec_catchpoint.
2850
2851 2015-09-11 Don Breazeal <donb@codesourcery.com>
2852 Luis Machado <lgustavo@codesourcery.com>
2853
2854 * infrun.c (follow_exec): Use process-style ptid for
2855 exec message. Call add_inferior_with_spaces and
2856 target_follow_exec.
2857 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2858 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2859 * remote.c (remote_pspace_data): New static variable.
2860 (remote_pspace_data_cleanup): New function.
2861 (get_remote_exec_file): New function.
2862 (set_remote_exec_file_1): New function.
2863 (set_remote_exec_file): New function.
2864 (show_remote_exec_file): New function.
2865 (remote_exec_file): Delete static variable.
2866 (anonymous enum) <PACKET_exec_event_feature>: New
2867 enumeration constant.
2868 (remote_protocol_features): Add entry for exec-events feature.
2869 (remote_query_supported): Add client side of qSupported query
2870 for exec-events feature.
2871 (remote_follow_exec): New function.
2872 (remote_parse_stop_reply): Handle 'exec' stop reason.
2873 (extended_remote_run, extended_remote_create_inferior): Call
2874 get_remote_exec_file and set_remote_exec_file_1.
2875 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2876 member.
2877 (_initialize_remote): Call
2878 register_program_space_data_with_cleanup. Call
2879 add_packet_config_cmd for remote exec-events feature.
2880 Modify call to add_setshow_string_noescape_cmd for exec-file
2881 to use new functions set_remote_exec_file and
2882 show_remote_exec_file.
2883 * target-debug.h, target-delegates.c: Regenerated.
2884 * target.c (target_follow_exec): New function.
2885 * target.h (struct target_ops) <to_follow_exec>: New member.
2886 (target_follow_exec): Declare new function.
2887
2888 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2889
2890 * aarch64-tdep.c (decode_cb): Move up comment describing the
2891 encoding.
2892 (decode_tb): Fix a typo in comment above the function. Move up
2893 comment describing the encoding.
2894
2895 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2896
2897 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2898
2899 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2900
2901 PR gdb/18947
2902 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2903 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2904
2905 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2906
2907 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2908 operations.
2909
2910 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2911
2912 * ada-lang.c (ada_search_struct_field): Constify parameters
2913 and/or variables..
2914 (xget_renaming_scope): Likewise.
2915 (ada_is_redundant_range_encoding): Likewise.
2916 (scan_discrim_bound): Likewise.
2917 (to_fixed_range_type): Likewise.
2918
2919 2015-09-10 Yao Qi <yao.qi@linaro.org>
2920
2921 * breakpoint.c (download_tracepoint_locations): New local
2922 can_download_tracepoint. Check the result of
2923 target_can_download_tracepoint and save it in
2924 can_download_tracepoint if there are tracepoints to download.
2925 * linux-nat.h (enum tribool): Move it to ...
2926 * common/common-types.h: ... here.
2927
2928 2015-09-09 Pedro Alves <palves@redhat.com>
2929
2930 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2931 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2932
2933 2015-09-09 Pedro Alves <palves@redhat.com>
2934
2935 * continuations.c (add_continuation, restore_thread_cleanup)
2936 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2937 (do_all_continuations_thread, do_all_continuations)
2938 (discard_all_continuations_thread_callback)
2939 (discard_all_continuations_thread, discard_all_continuations)
2940 (add_intermediate_continuation)
2941 (do_all_intermediate_continuations_thread_callback)
2942 (do_all_intermediate_continuations_thread)
2943 (do_all_intermediate_continuations)
2944 (discard_all_intermediate_continuations_thread_callback)
2945 (discard_all_intermediate_continuations_thread)
2946 (discard_all_intermediate_continuations): Delete.
2947 * continuations.h (add_continuation, do_all_continuations)
2948 (do_all_continuations_thread, discard_all_continuations)
2949 (discard_all_continuations_thread, add_intermediate_continuation)
2950 (do_all_intermediate_continuations)
2951 (do_all_intermediate_continuations_thread)
2952 (discard_all_intermediate_continuations)
2953 (discard_all_intermediate_continuations_thread): Delete
2954 declarations.
2955 * event-top.c (stdin_event_handler): Delete references to
2956 continuations.
2957 * gdbthread.h (struct thread_info): Delete continuations and
2958 intermediate_continuations fields.
2959 * inf-loop.c (inferior_event_handler): Remove references to
2960 continuations.
2961 * infrun.c (infrun_thread_stop_requested_callback): Remove
2962 references to continuations.
2963 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2964 * thread.c: Don't include "continuations.h".
2965 (clear_thread_inferior_resources): Remove references to
2966 continuations.
2967
2968 2015-09-09 Pedro Alves <palves@redhat.com>
2969
2970 * infcall.c (struct dummy_frame_context_saver): Delete.
2971 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2972 (dummy_frame_context_saver_drop)
2973 (dummy_frame_context_saver_cleanup)
2974 (dummy_frame_context_saver_get_regs)
2975 (dummy_frame_context_saver_setup): Delete.
2976 * infcall.h (dummy_frame_context_saver_drop)
2977 (dummy_frame_context_saver_cleanup)
2978 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2979 Delete.
2980 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2981 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2982 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2983
2984 2015-09-09 Pedro Alves <palves@redhat.com>
2985
2986 * breakpoint.c: Include "thread-fsm.h".
2987 (struct until_break_command_continuation_args): Delete.
2988 (struct until_break_fsm): New.
2989 (until_break_fsm_ops): New global.
2990 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2991 (until_break_command_continuation): Delete.
2992 (until_break_fsm_clean_up): New function.
2993 (until_break_fsm_async_reply_reason): New function.
2994 (until_break_command): Adjust to create an until_break_fsm instead
2995 of a continuation.
2996 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2997 here.
2998 * infcmd.c (struct until_next_fsm): New.
2999 (until_next_fsm_ops): New global.
3000 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3001 (until_next_continuation): Delete.
3002 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3003 functions.
3004 (until_next_command): Adjust to create a new until_next_fsm
3005 instead of a continuation.
3006
3007 2015-09-09 Pedro Alves <palves@redhat.com>
3008
3009 * infcall.c: Include thread_fsm.h.
3010 (struct call_return_meta_info): New.
3011 (get_call_return_value): New function, factored out from
3012 call_function_by_hand_dummy.
3013 (struct call_thread_fsm): New.
3014 (call_thread_fsm_ops): New global.
3015 (new_call_thread_fsm, call_thread_fsm_should_stop)
3016 (call_thread_fsm_should_notify_stop): New functions.
3017 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3018 the thread.
3019 (call_function_by_hand_dummy): Create a new call_thread_fsm
3020 instance, associate it with the thread, and wait for the FSM to
3021 finish. If finished successfully, fetch the function's result
3022 value out of the FSM.
3023 * infrun.c (fetch_inferior_event): If the FSM says the stop
3024 shouldn't be notified, don't call normal_stop.
3025 (maybe_remove_breakpoints): New function, factored out from ...
3026 (normal_stop): ... here. Simplify.
3027 * infrun.h (maybe_remove_breakpoints): Declare.
3028 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3029 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3030 (thread_fsm_should_notify_stop): Declare.
3031
3032 2015-09-09 Pedro Alves <palves@redhat.com>
3033
3034 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3035 * breakpoint.c (handle_jit_event): Print debug output.
3036 (bpstat_what): Split event callback handling to ...
3037 (bpstat_run_callbacks): ... this new function.
3038 (momentary_bkpt_print_it): No longer handle bp_finish here.
3039 * breakpoint.h (bpstat_run_callbacks): Declare.
3040 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3041 <thread_fsm>: New field.
3042 (thread_cancel_execution_command): Declare.
3043 * infcmd.c: Include thread-fsm.h.
3044 (struct step_command_fsm): New.
3045 (step_command_fsm_ops): New global.
3046 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3047 (step_1): Adjust to use step_command_fsm_prepare and
3048 prepare_one_step.
3049 (struct step_1_continuation_args): Delete.
3050 (step_1_continuation): Delete.
3051 (step_command_fsm_should_stop): New function.
3052 (step_once): Delete.
3053 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3054 (prepare_one_step): New function, based on step_once.
3055 (until_next_command): Remove step_multi reference.
3056 (struct return_value_info): New.
3057 (print_return_value): Rename to ...
3058 (print_return_value_1): ... this. New struct return_value_info
3059 parameter. Adjust.
3060 (print_return_value): Reimplement as wrapper around
3061 print_return_value_1.
3062 (struct finish_command_fsm): New.
3063 (finish_command_continuation): Delete.
3064 (finish_command_fsm_ops): New global.
3065 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3066 functions.
3067 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3068 New.
3069 (finish_command_continuation_free_arg): Delete.
3070 (finish_command_fsm_async_reply_reason): New.
3071 (finish_backward, finish_forward): Change symbol parameter to a
3072 finish_command_fsm. Adjust.
3073 (finish_command): Create a finish_command_fsm. Adjust.
3074 * infrun.c: Include "thread-fsm.h".
3075 (clear_proceed_status_thread): Delete the thread's FSM.
3076 (infrun_thread_stop_requested_callback): Cancel the thread's
3077 execution command.
3078 (clean_up_just_stopped_threads_fsms): New function.
3079 (fetch_inferior_event): Handle the event_thread's should_stop
3080 method saying the command isn't done yet.
3081 (process_event_stop_test): Run breakpoint callbacks here.
3082 (print_stop_event): Rename to ...
3083 (print_stop_location): ... this.
3084 (restore_current_uiout_cleanup): New function.
3085 (print_stop_event): Reimplement.
3086 (normal_stop): No longer notify the end_stepping_range observers
3087 here handle "step N" nor "finish" here. No longer call
3088 print_stop_event here.
3089 * infrun.h (struct return_value_info): Forward declare.
3090 (print_return_value): Declare.
3091 (print_stop_event): Change prototype.
3092 * thread-fsm.c: New file.
3093 * thread-fsm.h: New file.
3094 * thread.c: Include "thread-fsm.h".
3095 (thread_cancel_execution_command): New function.
3096 (clear_thread_inferior_resources): Call it.
3097 * cli/cli-interp.c (cli_on_normal_stop): New function.
3098 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3099 observer.
3100 * mi/mi-interp.c: Include "thread-fsm.h".
3101 (restore_current_uiout_cleanup): Delete.
3102 (mi_on_normal_stop): If the thread has an FSM associated, and it
3103 finished, ask it for the async-reply-reason to print. Always call
3104 print_stop_event here, regardless of the top-level interpreter.
3105 Check bpstat_what to tell whether an asynchronous breakpoint hit
3106 triggered.
3107 * tui/tui-interp.c (tui_on_normal_stop): New function.
3108 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3109
3110 2015-09-09 Pedro Alves <palves@redhat.com>
3111
3112 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3113 check whether the target can async.
3114 * inf-loop.c (inferior_event_handler): Only call target_async if
3115 the target can async.
3116 * infcall.c: Include top.h and interps.h.
3117 (run_inferior_call): For the interpreter to sync mode while
3118 running the infcall. Call wait_sync_command_done instead of
3119 wait_for_inferior plus normal_stop.
3120 * infcmd.c (prepare_execution_command): Don't check whether the
3121 target can async when running in the foreground.
3122 (step_1): Delete synchronous case handling.
3123 (step_once): Always install a continuation, even in sync mode.
3124 (until_next_command, finish_forward): Don't check whether the
3125 target can async.
3126 (attach_command_post_wait, notice_new_inferior): Always install a
3127 continuation, even in sync mode.
3128 * infrun.c (mark_infrun_async_event_handler): New function.
3129 (proceed): In sync mode, mark infrun's event source instead of
3130 waiting for events here.
3131 (fetch_inferior_event): If the target can't async, do a blocking
3132 wait.
3133 (prepare_to_wait): In sync mode, mark infrun's event source.
3134 (infrun_async_inferior_event_handler): No longer bail out if the
3135 target can't async.
3136 * infrun.h (mark_infrun_async_event_handler): New declaration.
3137 * linux-nat.c (linux_nat_wait_1): Remove calls to
3138 set_sigint_trap/clear_sigint_trap.
3139 (linux_nat_terminal_inferior): No longer check whether the target
3140 can async.
3141 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3142 comment.
3143 (mi_execute_command_input_handler): No longer check whether the
3144 target is async. Update and simplify comment.
3145 * target.c (default_target_wait): New function.
3146 * target.h (struct target_ops) <to_wait>: Now defaults to
3147 default_target_wait.
3148 (default_target_wait): Declare.
3149 * top.c (wait_sync_command_done): New function, factored out from
3150 ...
3151 (maybe_wait_sync_command_done): ... this.
3152 * top.h (wait_sync_command_done): Declare.
3153 * target-delegates.c: Regenerate.
3154
3155 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3156
3157 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3158 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3159 Remove include of sys/utsname.h.
3160 (linux_determine_kernel_ptr_bits): Remove.
3161 (linux_determine_kernel_start): New.
3162 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3163 Update check.
3164 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3165 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3166 initialization.
3167 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3168 assignment.
3169
3170 2015-09-07 Pedro Alves <palves@redhat.com>
3171
3172 * guile/guile-internal.h (as_a_scm_t_subr): New.
3173 * guile/guile.c (misc_guile_functions): Use it.
3174 * guile/scm-arch.c (arch_functions): Use it.
3175 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3176 Use it.
3177 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3178 * guile/scm-cmd.c (command_functions): Use it.
3179 * guile/scm-disasm.c (disasm_functions): Use it.
3180 * guile/scm-exception.c (exception_functions)
3181 (private_exception_functions): Use it.
3182 * guile/scm-frame.c (frame_functions)
3183 * guile/scm-gsmob.c (gsmob_functions): Use it.
3184 * guile/scm-iterator.c (iterator_functions): Use it.
3185 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3186 * guile/scm-math.c (math_functions): Use it.
3187 * guile/scm-objfile.c (objfile_functions): Use it.
3188 * guile/scm-param.c (parameter_functions): Use it.
3189 * guile/scm-ports.c (port_functions, private_port_functions): Use
3190 it.
3191 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3192 * guile/scm-progspace.c (pspace_functions): Use it.
3193 * guile/scm-string.c (string_functions): Use it.
3194 * guile/scm-symbol.c (symbol_functions): Use it.
3195 * guile/scm-symtab.c (symtab_functions): Use it.
3196 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3197 it.
3198 * guile/scm-value.c (value_functions): Use it.
3199
3200 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3201
3202 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3203 (tui_next_win): Likewise.
3204 (tui_prev_win): Likewise.
3205 (tui_partial_win_by_name): Likewise.
3206 (tui_init_generic_part): Likewise.
3207 (init_content_element): Likewise.
3208 (tui_del_window): Likewise.
3209 (tui_free_window): Likewise.
3210 (tui_del_data_windows): Likewise.
3211 (tui_free_data_content): Likewise.
3212 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3213 * tui/tui-regs.c (tui_show_register_group): Likewise.
3214 * tui/tui-win.c (tui_resize_all): Likewise.
3215 (tui_set_focus): Likewise.
3216 (tui_set_win_height): Likewise.
3217 (make_invisible_and_set_new_height): Likewise.
3218 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3219 * tui/tui-wingeneral.c (make_visible): Likewise.
3220
3221 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3224
3225 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3226
3227 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3228 pointer.
3229 * dbxread.c (dbx_end_psymtab): Likewise.
3230 * gnu-nat.c (gnu_write_inferior): Likewise.
3231 * mdebugread.c (cross_ref): Likewise.
3232 * p-valprint.c (pascal_val_print): Likewise.
3233 * xcoffread.c (xcoff_end_psymtab): Likewise.
3234
3235 2015-09-04 Yao Qi <yao.qi@linaro.org>
3236
3237 * NEWS: Mention the aarch64 multi-arch debugging support.
3238
3239 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3240
3241 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3242 type instead of a TYPE_CODE_INT one for the string_char_type
3243 and the ada_primitive_type_char types.
3244
3245 2015-09-03 Yao Qi <yao.qi@linaro.org>
3246
3247 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3248 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3249 aarch64_linux_region_ok_for_watchpoint.
3250 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3251 New function.
3252 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3253 Declare it.
3254
3255 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3256
3257 * gdb_obstack.h (obstack_strdup): Declare.
3258 * gdb_obstack.c (obstack_strdup): Define.
3259 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3260 * gdbarch.c: Regenerate.
3261 * gdbarch.h: Regenerate.
3262 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3263
3264 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3265
3266 * gdbtypes.c (copy_type_recursive): Update documentation.
3267
3268 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3269
3270 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3271 as zero.
3272
3273 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3274
3275 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3276
3277 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3278
3279 * solib-svr4.c (solib_event_probe_action): Call
3280 get_probe_argument_count using TRY...CATCH.
3281 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3282
3283 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3284
3285 * probe.h (struct probe_ops) <get_probe_argument_count,
3286 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3287 the comment that the function can throw an exception.
3288 (get_probe_argument_count): Likewise.
3289 (evaluate_probe_argument): Likewise.
3290 * stap-probe.c (stap_get_opcode): Call error instead of
3291 internal_error.
3292 (stap_get_expected_argument_type): Likewise. Add argument
3293 'probe'. Improve error message by mentioning the probe's name.
3294 (stap_parse_probe_arguments): Adjust call to
3295 stap_get_expected_argument_type.
3296 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3297 not zero. Call internal_error if GDB requests an argument but the
3298 probe has no arguments.
3299
3300 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3301
3302 * ada-lang.c (ada_resolve_function): Do not ask the user what
3303 match to use when in completion mode.
3304
3305 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3306
3307 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3308 cast of NULL.
3309
3310 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3311
3312 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3313 call_abi using XSHAL_ABI macro.
3314
3315 2015-08-29 Doug Evans <xdje42@gmail.com>
3316
3317 * symtab.h (struct symbol): Tweak comment.
3318
3319 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3320
3321 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3322 gdbarch obstack instead of on the heap. Update commentary
3323 accordingly.
3324
3325 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3326
3327 GDB 7.10 released.
3328
3329 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3330
3331 * NEWS: Update entry about non-8-bits addressable memory.
3332
3333 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3334
3335 Revert:
3336 2014-11-06 Doug Evans <xdje42@gmail.com>
3337 * solib.c (solib_global_lookup): Fetch arch from objfile,
3338 not target_gdbarch.
3339
3340 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3341
3342 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3343 attempt to relocate a TLS variable offset.
3344
3345 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3346
3347 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3348 registered yet. Set inferior_ptid while calling target_read_memory.
3349
3350 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3351
3352 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3353 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3354 * linux-nat.c (check_stopped_by_breakpoint): Use
3355 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3356
3357 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3358
3359 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3360 thread was not yet discovered, use thread_from_lwp instead of
3361 calling thread_db_find_new_threads_1.
3362
3363 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3364
3365 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3366 statements.
3367
3368 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3369
3370 * NEWS: Document support for non-8-bits addressable memory.
3371
3372 2015-08-27 Pedro Alves <palves@redhat.com>
3373
3374 * configure.ac: Remove AC_TYPE_SIGNAL call.
3375 * configure, config.in: Regenerate.
3376
3377 2015-08-27 Pedro Alves <palves@redhat.com>
3378
3379 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3380 * extension-priv.h: Include signal.h.
3381 (struct signal_handler) <handler>: Change type to sighandler_t.
3382 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3383 * inflow.c (sigint_ours, sigquit_ours): Change type to
3384 sighandler_t.
3385 (child_terminal_inferior): Remove casts.
3386 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3387 (osig): Change type to sighandler_t.
3388 * nto-procfs.c (ofunc): Change type to sighandler_t.
3389 (procfs_wait): Remove casts.
3390 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3391 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3392 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3393
3394 2015-08-27 Pedro Alves <palves@redhat.com>
3395
3396 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3397 * gnulib/aclocal.m4: Renegerate.
3398 * gnulib/config.in: Renegerate.
3399 * gnulib/configure: Renegerate.
3400 * gnulib/import/Makefile.am: Update.
3401 * gnulib/import/Makefile.in: Regenerate.
3402 * gnulib/import/m4/gnulib-cache.m4: Update.
3403 * gnulib/import/m4/gnulib-comp.m4: Update.
3404 * gnulib/import/m4/signal_h.m4: New file.
3405 * gnulib/import/signal.in.h: New file.
3406
3407 2015-08-27 Pedro Alves <palves@redhat.com>
3408
3409 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3410 (MIN_MEMORY_PACKET_SIZE): New.
3411 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3412 (get_memory_packet_size): Adjust. No longer limit the max packet
3413 size.
3414 (set_memory_packet_size): Adjust, and remove dead code.
3415 (remote_check_symbols): Use xmalloc and a cleanup instead of
3416 alloca.
3417 (remote_packet_size): No longer cap the packet size.
3418 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3419
3420 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3421
3422 * compile/compile.c (compile_to_object): Mention language in
3423 error message.
3424
3425 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3426
3427 * target.c (target_pre_inferior): Unset attach_flag.
3428
3429 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3430
3431 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3432 * gdbarch.c: Re-generate.
3433
3434 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3435
3436 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3437 function with the XNEW-family equivalent.
3438 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3439 * ada-exp.y (write_ambiguous_var): Likewise.
3440 * ada-lang.c (resolve_subexp): Likewise.
3441 (user_select_syms): Likewise.
3442 (assign_aggregate): Likewise.
3443 (ada_evaluate_subexp): Likewise.
3444 (cache_symbol): Likewise.
3445 * addrmap.c (allocate_key): Likewise.
3446 (addrmap_create_mutable): Likewise.
3447 * aix-thread.c (sync_threadlists): Likewise.
3448 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3449 (alpha_gdbarch_init): Likewise.
3450 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3451 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3452 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3453 * arm-tdep.c (push_stack_item): Likewise.
3454 (arm_displaced_step_copy_insn): Likewise.
3455 (arm_gdbarch_init): Likewise.
3456 (_initialize_arm_tdep): Likewise.
3457 * avr-tdep.c (push_stack_item): Likewise.
3458 * ax-general.c (new_agent_expr): Likewise.
3459 * block.c (block_initialize_namespace): Likewise.
3460 * breakpoint.c (alloc_counted_command_line): Likewise.
3461 (update_dprintf_command_list): Likewise.
3462 (parse_breakpoint_sals): Likewise.
3463 (decode_static_tracepoint_spec): Likewise.
3464 (until_break_command): Likewise.
3465 (clear_command): Likewise.
3466 (update_global_location_list): Likewise.
3467 (get_breakpoint_objfile_data) Likewise.
3468 * btrace.c (ftrace_new_function): Likewise.
3469 (btrace_set_insn_history): Likewise.
3470 (btrace_set_call_history): Likewise.
3471 * buildsym.c (add_symbol_to_list): Likewise.
3472 (record_pending_block): Likewise.
3473 (start_subfile): Likewise.
3474 (start_buildsym_compunit): Likewise.
3475 (push_subfile): Likewise.
3476 (end_symtab_get_static_block): Likewise.
3477 (buildsym_init): Likewise.
3478 * cli/cli-cmds.c (source_command): Likewise.
3479 * cli/cli-decode.c (add_cmd): Likewise.
3480 * cli/cli-script.c (build_command_line): Likewise.
3481 (setup_user_args): Likewise.
3482 (realloc_body_list): Likewise.
3483 (process_next_line): Likewise.
3484 (copy_command_lines): Likewise.
3485 * cli/cli-setshow.c (do_set_command): Likewise.
3486 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3487 * coffread.c (coff_locate_sections): Likewise.
3488 (coff_symtab_read): Likewise.
3489 (coff_read_struct_type): Likewise.
3490 * common/cleanups.c (make_my_cleanup2): Likewise.
3491 * common/common-exceptions.c (throw_it): Likewise.
3492 * common/filestuff.c (make_cleanup_close): Likewise.
3493 * common/format.c (parse_format_string): Likewise.
3494 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3495 * compile/compile-object-load.c (munmap_list_add): Likewise.
3496 (compile_object_load): Likewise.
3497 * compile/compile-object-run.c (compile_object_run): Likewise.
3498 * compile/compile.c (append_args): Likewise.
3499 * corefile.c (specify_exec_file_hook): Likewise.
3500 * cp-support.c (make_symbol_overload_list): Likewise.
3501 * cris-tdep.c (push_stack_item): Likewise.
3502 (cris_gdbarch_init): Likewise.
3503 * ctf.c (ctf_trace_file_writer_new): Likewise.
3504 * dbxread.c (init_header_files): Likewise.
3505 (add_new_header_file): Likewise.
3506 (init_bincl_list): Likewise.
3507 (dbx_end_psymtab): Likewise.
3508 (start_psymtab): Likewise.
3509 (dbx_end_psymtab): Likewise.
3510 * dcache.c (dcache_init): Likewise.
3511 * dictionary.c (dict_create_hashed): Likewise.
3512 (dict_create_hashed_expandable): Likewise.
3513 (dict_create_linear): Likewise.
3514 (dict_create_linear_expandable): Likewise.
3515 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3516 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3517 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3518 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3519 (decode_frame_entry_1): Likewise.
3520 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3521 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3522 * dwarf2read.c (dwarf2_has_info): Likewise.
3523 (create_signatured_type_table_from_index): Likewise.
3524 (dwarf2_read_index): Likewise.
3525 (dw2_get_file_names_reader): Likewise.
3526 (create_all_type_units): Likewise.
3527 (read_cutu_die_from_dwo): Likewise.
3528 (init_tu_and_read_dwo_dies): Likewise.
3529 (init_cutu_and_read_dies): Likewise.
3530 (create_all_comp_units): Likewise.
3531 (queue_comp_unit): Likewise.
3532 (inherit_abstract_dies): Likewise.
3533 (read_call_site_scope): Likewise.
3534 (dwarf2_add_field): Likewise.
3535 (dwarf2_add_typedef): Likewise.
3536 (dwarf2_add_member_fn): Likewise.
3537 (attr_to_dynamic_prop): Likewise.
3538 (abbrev_table_alloc_abbrev): Likewise.
3539 (abbrev_table_read_table): Likewise.
3540 (add_include_dir): Likewise.
3541 (add_file_name): Likewise.
3542 (dwarf_decode_line_header): Likewise.
3543 (dwarf2_const_value_attr): Likewise.
3544 (dwarf_alloc_block): Likewise.
3545 (parse_macro_definition): Likewise.
3546 (set_die_type): Likewise.
3547 (write_psymtabs_to_index): Likewise.
3548 (create_cus_from_index): Likewise.
3549 (dwarf2_create_include_psymtab): Likewise.
3550 (process_psymtab_comp_unit_reader): Likewise.
3551 (build_type_psymtab_dependencies): Likewise.
3552 (read_comp_units_from_section): Likewise.
3553 (compute_compunit_symtab_includes): Likewise.
3554 (create_dwo_unit_in_dwp_v1): Likewise.
3555 (create_dwo_unit_in_dwp_v2): Likewise.
3556 (read_func_scope): Likewise.
3557 (process_structure_scope): Likewise.
3558 (mark_common_block_symbol_computed): Likewise.
3559 (load_partial_dies): Likewise.
3560 (dwarf2_symbol_mark_computed): Likewise.
3561 * elfread.c (elf_symfile_segments): Likewise.
3562 (elf_read_minimal_symbols): Likewise.
3563 * environ.c (make_environ): Likewise.
3564 * eval.c (evaluate_subexp_standard): Likewise.
3565 * event-loop.c (create_file_handler): Likewise.
3566 (create_async_signal_handler): Likewise.
3567 (create_async_event_handler): Likewise.
3568 (create_timer): Likewise.
3569 * exec.c (build_section_table): Likewise.
3570 * fbsd-nat.c (fbsd_remember_child): Likewise.
3571 * fork-child.c (fork_inferior): Likewise.
3572 * frv-tdep.c (new_variant): Likewise.
3573 * gdbarch.sh (gdbarch_alloc): Likewise.
3574 (append_name): Likewise.
3575 * gdbtypes.c (rank_function): Likewise.
3576 (copy_type_recursive): Likewise.
3577 (add_dyn_prop): Likewise.
3578 * gnu-nat.c (make_proc): Likewise.
3579 (make_inf): Likewise.
3580 (gnu_write_inferior): Likewise.
3581 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3582 (build_std_type_info_type): Likewise.
3583 * guile/scm-param.c (compute_enum_list): Likewise.
3584 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3585 * guile/scm-value.c (gdbscm_value_call): Likewise.
3586 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3587 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3588 (read_unwind_info): Likewise.
3589 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3590 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3591 (call_function_by_hand_dummy): Likewise.
3592 * infcmd.c (step_once): Likewise.
3593 (finish_forward): Likewise.
3594 (attach_command): Likewise.
3595 (notice_new_inferior): Likewise.
3596 * inferior.c (add_inferior_silent): Likewise.
3597 * infrun.c (add_displaced_stepping_state): Likewise.
3598 (save_infcall_control_state): Likewise.
3599 (save_inferior_ptid): Likewise.
3600 (_initialize_infrun): Likewise.
3601 * jit.c (bfd_open_from_target_memory): Likewise.
3602 (jit_gdbarch_data_init): Likewise.
3603 * language.c (add_language): Likewise.
3604 * linespec.c (decode_line_2): Likewise.
3605 * linux-nat.c (add_to_pid_list): Likewise.
3606 (add_initial_lwp): Likewise.
3607 * linux-thread-db.c (add_thread_db_info): Likewise.
3608 (record_thread): Likewise.
3609 (info_auto_load_libthread_db): Likewise.
3610 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3611 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3612 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3613 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3614 * macrocmd.c (macro_define_command): Likewise.
3615 * macroexp.c (gather_arguments): Likewise.
3616 * macroscope.c (sal_macro_scope): Likewise.
3617 * macrotab.c (new_macro_table): Likewise.
3618 * mdebugread.c (push_parse_stack): Likewise.
3619 (parse_partial_symbols): Likewise.
3620 (parse_symbol): Likewise.
3621 (psymtab_to_symtab_1): Likewise.
3622 (new_block): Likewise.
3623 (new_psymtab): Likewise.
3624 (mdebug_build_psymtabs): Likewise.
3625 (add_pending): Likewise.
3626 (elfmdebug_build_psymtabs): Likewise.
3627 * mep-tdep.c (mep_gdbarch_init): Likewise.
3628 * mi/mi-main.c (mi_execute_command): Likewise.
3629 * mi/mi-parse.c (mi_parse_argv): Likewise.
3630 * minidebug.c (lzma_open): Likewise.
3631 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3632 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3633 * mips-tdep.c (mips_gdbarch_init): Likewise.
3634 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3635 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3636 * mt-tdep.c (mt_registers_info): Likewise.
3637 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3638 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3639 (linux_enable_pt): Likewise.
3640 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3641 (linux_xfer_osdata_processgroups): Likewise.
3642 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3643 * nto-procfs.c (procfs_meminfo): Likewise.
3644 * objc-lang.c (start_msglist): Likewise.
3645 (selectors_info): Likewise.
3646 (classes_info): Likewise.
3647 (find_methods): Likewise.
3648 * objfiles.c (allocate_objfile): Likewise.
3649 (update_section_map): Likewise.
3650 * osabi.c (gdbarch_register_osabi): Likewise.
3651 (gdbarch_register_osabi_sniffer): Likewise.
3652 * parse.c (start_arglist): Likewise.
3653 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3654 (hwdebug_insert_point): Likewise.
3655 * printcmd.c (display_command): Likewise.
3656 (ui_printf): Likewise.
3657 * procfs.c (create_procinfo): Likewise.
3658 (load_syscalls): Likewise.
3659 (proc_get_LDT_entry): Likewise.
3660 (proc_update_threads): Likewise.
3661 * prologue-value.c (make_pv_area): Likewise.
3662 (pv_area_store): Likewise.
3663 * psymtab.c (extend_psymbol_list): Likewise.
3664 (init_psymbol_list): Likewise.
3665 (allocate_psymtab): Likewise.
3666 * python/py-inferior.c (add_thread_object): Likewise.
3667 * python/py-param.c (compute_enum_values): Likewise.
3668 * python/py-value.c (valpy_call): Likewise.
3669 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3670 * python/python.c (ensure_python_env): Likewise.
3671 * record-btrace.c (record_btrace_start_replaying): Likewise.
3672 * record-full.c (record_full_reg_alloc): Likewise.
3673 (record_full_mem_alloc): Likewise.
3674 (record_full_end_alloc): Likewise.
3675 (record_full_core_xfer_partial): Likewise.
3676 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3677 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3678 * remote-notif.c (remote_notif_state_allocate): Likewise.
3679 * remote.c (demand_private_info): Likewise.
3680 (remote_notif_stop_alloc_reply): Likewise.
3681 (remote_enable_btrace): Likewise.
3682 * reverse.c (save_bookmark_command): Likewise.
3683 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3684 * rx-tdep.c (rx_gdbarch_init): Likewise.
3685 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3686 * ser-go32.c (dos_get_tty_state): Likewise.
3687 (dos_copy_tty_state): Likewise.
3688 * ser-mingw.c (ser_windows_open): Likewise.
3689 (ser_console_wait_handle): Likewise.
3690 (ser_console_get_tty_state): Likewise.
3691 (make_pipe_state): Likewise.
3692 (net_windows_open): Likewise.
3693 * ser-unix.c (hardwire_get_tty_state): Likewise.
3694 (hardwire_copy_tty_state): Likewise.
3695 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3696 * solib-dsbt.c (dsbt_current_sos): Likewise.
3697 (dsbt_relocate_main_executable): Likewise.
3698 * solib-frv.c (frv_current_sos): Likewise.
3699 (frv_relocate_main_executable): Likewise.
3700 * solib-spu.c (spu_bfd_fopen): Likewise.
3701 * solib-svr4.c (lm_info_read): Likewise.
3702 (svr4_copy_library_list): Likewise.
3703 (svr4_default_sos): Likewise.
3704 * source.c (find_source_lines): Likewise.
3705 (line_info): Likewise.
3706 (add_substitute_path_rule): Likewise.
3707 * spu-linux-nat.c (spu_bfd_open): Likewise.
3708 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3709 * stabsread.c (dbx_lookup_type): Likewise.
3710 (read_type): Likewise.
3711 (read_member_functions): Likewise.
3712 (read_struct_fields): Likewise.
3713 (read_baseclasses): Likewise.
3714 (read_args): Likewise.
3715 (_initialize_stabsread): Likewise.
3716 * stack.c (func_command): Likewise.
3717 * stap-probe.c (handle_stap_probe): Likewise.
3718 * symfile.c (addrs_section_sort): Likewise.
3719 (addr_info_make_relative): Likewise.
3720 (load_section_callback): Likewise.
3721 (add_symbol_file_command): Likewise.
3722 (init_filename_language_table): Likewise.
3723 * symtab.c (create_filename_seen_cache): Likewise.
3724 (sort_search_symbols_remove_dups): Likewise.
3725 (search_symbols): Likewise.
3726 * target.c (make_cleanup_restore_target_terminal): Likewise.
3727 * thread.c (new_thread): Likewise.
3728 (enable_thread_stack_temporaries): Likewise.
3729 (make_cleanup_restore_current_thread): Likewise.
3730 (thread_apply_all_command): Likewise.
3731 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3732 * top.c (gdb_readline_wrapper): Likewise.
3733 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3734 * tracepoint.c (trace_find_line_command): Likewise.
3735 (all_tracepoint_actions_and_cleanup): Likewise.
3736 (make_cleanup_restore_current_traceframe): Likewise.
3737 (get_uploaded_tp): Likewise.
3738 (get_uploaded_tsv): Likewise.
3739 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3740 (tui_alloc_win_info): Likewise.
3741 (tui_alloc_content): Likewise.
3742 (tui_add_content_elements): Likewise.
3743 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3744 (tui_set_disassem_content): Likewise.
3745 * ui-file.c (ui_file_new): Likewise.
3746 (stdio_file_new): Likewise.
3747 (tee_file_new): Likewise.
3748 * utils.c (make_cleanup_restore_integer): Likewise.
3749 (add_internal_problem_command): Likewise.
3750 * v850-tdep.c (v850_gdbarch_init): Likewise.
3751 * valops.c (find_oload_champ): Likewise.
3752 * value.c (allocate_value_lazy): Likewise.
3753 (record_latest_value): Likewise.
3754 (create_internalvar): Likewise.
3755 * varobj.c (install_variable): Likewise.
3756 (new_variable): Likewise.
3757 (new_root_variable): Likewise.
3758 (cppush): Likewise.
3759 (_initialize_varobj): Likewise.
3760 * windows-nat.c (windows_make_so): Likewise.
3761 * x86-nat.c (x86_add_process): Likewise.
3762 * xcoffread.c (arrange_linetable): Likewise.
3763 (allocate_include_entry): Likewise.
3764 (process_linenos): Likewise.
3765 (SYMBOL_DUP): Likewise.
3766 (xcoff_start_psymtab): Likewise.
3767 (xcoff_end_psymtab): Likewise.
3768 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3769 * xtensa-tdep.c (xtensa_register_type): Likewise.
3770 * gdbarch.c: Regenerate.
3771 * gdbarch.h: Regenerate.
3772
3773 2015-08-25 Don Breazeal <donb@codesourcery.com>
3774
3775 * infrun.c (follow_exec): Re-order operations for
3776 handling follow-exec-mode "new".
3777 (handle_inferior_event_1): Assign ecs->event_thread
3778 to the current thread.
3779 * remote.c (get_remote_arch_state): Add an assertion.
3780
3781 2015-08-26 Pedro Alves <palves@redhat.com>
3782
3783 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3784
3785 2015-08-25 Pedro Alves <palves@redhat.com>
3786
3787 PR gdb/18804
3788 * defs.h (maybe_quit): Declare.
3789 (QUIT): Now calls maybe_quit.
3790 * event-loop.c (clear_async_signal_handler)
3791 (async_signal_handler_is_marked): New functions.
3792 * event-loop.h (async_signal_handler_is_marked)
3793 (clear_async_signal_handler): New declarations.
3794 * remote.c (remote_check_pending_interrupt): New function.
3795 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3796 longer check whether the target is async. If waiting for a stop
3797 reply, and a Ctrl-C as been sent to the target, offer to
3798 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3799 Otherwise do not disconnect and throw a quit.
3800 (_initialize_remote): Install remote_check_pending_interrupt as
3801 to_check_pending_interrupt.
3802 * target.c (target_check_pending_interrupt): New function.
3803 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3804 field.
3805 (target_check_pending_interrupt): New declaration.
3806 * utils.c (maybe_quit): New function.
3807 * target-delegates.c: Regenerate.
3808
3809 2015-08-25 Yao Qi <yao.qi@linaro.org>
3810
3811 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3812 Rename local variable pid to tid, and get lwpid of lwp. Update
3813 debug output.
3814
3815 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3816
3817 * ada-lang.c (ada_read_var_value): Add a var_block argument
3818 and pass it to default_read_var_value.
3819 * block.c (block_static_link): New accessor.
3820 * block.h (block_static_link): Declare it.
3821 * buildsym.c (finish_block_internal): Add a static_link
3822 argument. If there is a static link, associate it to the new
3823 block.
3824 (finish_block): Add a static link argument and pass it to
3825 finish_block_internal.
3826 (end_symtab_get_static_block): Update calls to finish_block and
3827 to finish_block_internal.
3828 (end_symtab_with_blockvector): Update call to
3829 finish_block_internal.
3830 * buildsym.h: Forward-declare struct dynamic_prop.
3831 (struct context_stack): Add a static_link field.
3832 (finish_block): Add a static link argument.
3833 * c-exp.y: Remove an obsolete comment (evaluation of variables
3834 already start from the selected frame, and now they climb *up*
3835 the call stack) and propagate the block information to the
3836 produced expression.
3837 * d-exp.y: Likewise.
3838 * f-exp.y: Likewise.
3839 * go-exp.y: Likewise.
3840 * jv-exp.y: Likewise.
3841 * m2-exp.y: Likewise.
3842 * p-exp.y: Likewise.
3843 * coffread.c (coff_symtab_read): Update calls to finish_block.
3844 * dbxread.c (process_one_symbol): Likewise.
3845 * xcoffread.c (read_xcoff_symtab): Likewise.
3846 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3847 "sym" parameter to struct block_symbol, update its uses and pass
3848 its block to calls to read_var_value.
3849 (convert_symbol_sym): Update the calls to convert_one_symbol.
3850 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3851 call to read_var_value.
3852 * dwarf2loc.c (block_op_get_frame_base): New.
3853 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3854 get_frame_base method.
3855 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3856 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3857 instead of the selected frame in order to evaluate the
3858 expression.
3859 (dwarf2_evaluate_property): Add a frame argument. Update call
3860 to dwarf2_locexpr_baton_eval to provide a frame in available and
3861 to handle the absence of address stack.
3862 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3863 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3864 declaration.
3865 (read_func_scope): Record any available static link description.
3866 Update call to finish_block.
3867 (read_lexical_block_scope): Update call to finish_block.
3868 * findvar.c (follow_static_link): New.
3869 (get_hosting_frame): New.
3870 (default_read_var_value): Add a var_block argument. Use
3871 get_hosting_frame to handle non-local references.
3872 (read_var_value): Add a var_block argument and pass it to the
3873 LA_READ_VAR_VALUE method.
3874 * gdbtypes.c (resolve_dynamic_range): Update calls to
3875 dwarf2_evaluate_property.
3876 (resolve_dynamic_type_internal): Likewise.
3877 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3878 read_var_value, passing it the block coming from symbol lookup.
3879 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3880 read_var_value (TODO).
3881 * infcmd.c (finish_command_continuation): Update call to
3882 read_var_value, passing it the block coming from symbol lookup.
3883 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3884 * language.h (struct language_defn): Add a var_block argument to
3885 the LA_READ_VAR_VALUE method.
3886 * objfiles.c (struct static_link_htab_entry): New.
3887 (static_link_htab_entry_hash): New.
3888 (static_link_htab_entry_eq): New.
3889 (objfile_register_static_link): New.
3890 (objfile_lookup_static_link): New.
3891 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3892 * objfiles.h: Include hashtab.h.
3893 (struct objfile): Add a static_links field.
3894 (objfile_register_static_link): New.
3895 (objfile_lookup_static_link): New.
3896 * printcmd.c (print_variable_and_value): Update call to
3897 read_var_value.
3898 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3899 * python/py-frame.c (frapy_read_var): Update call to
3900 read_var_value, passing it the block coming from symbol lookup.
3901 * python/py-framefilter.c (extract_sym): Add a sym_block
3902 parameter and set the pointed value to NULL (TODO).
3903 (enumerate_args): Update call to extract_sym.
3904 (enumerate_locals): Update calls to extract_sym and to
3905 read_var_value.
3906 * python/py-symbol.c (sympy_value): Update call to
3907 read_var_value (TODO).
3908 * stack.c (read_frame_local): Update call to read_var_value.
3909 (read_frame_arg): Likewise.
3910 (return_command): Likewise.
3911 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3912 method.
3913 (struct symbol): Add a block field.
3914 (SYMBOL_BLOCK): New accessor.
3915 * valops.c (value_of_variable): Remove frame/block handling and
3916 pass the block argument to read_var_value, which does this job
3917 now.
3918 (value_struct_elt_for_reference): Update calls to
3919 read_var_value.
3920 (value_of_this): Pass the block found to read_var_value.
3921 * value.h (read_var_value): Add a var_block argument.
3922 (default_read_var_value): Likewise.
3923
3924 2015-08-25 Yao Qi <yao.qi@linaro.org>
3925
3926 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3927 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3928 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3929
3930 2015-08-25 Yao Qi <yao.qi@linaro.org>
3931
3932 * Makefile.in (aarch64-liunx.o): New rule.
3933 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3934 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3935 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3936 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3937 extern.
3938 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3939 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3940 * nat/aarch64-linux.c: New file.
3941 * nat/aarch64-linux.h: New file.
3942
3943 2015-08-25 Yao Qi <yao.qi@linaro.org>
3944
3945 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3946 lwp_arch_private_info and ptid_of_lwp.
3947
3948 2015-08-25 Yao Qi <yao.qi@linaro.org>
3949
3950 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3951 Move it to nat/aarch64-linux-hw-point.c.
3952 (debug_reg_change_callback): Likewise.
3953 (aarch64_notify_debug_reg_change): :Likewise.
3954 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3955 (aarch64_dr_update_callback_param): New.
3956 (debug_reg_change_callback): New function.
3957 (aarch64_notify_debug_reg_change): Likewise.
3958 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3959 Remove the declaration.
3960
3961 2015-08-25 Yao Qi <yao.qi@linaro.org>
3962
3963 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3964 Call current_lwp_ptid.
3965
3966 2015-08-25 Yao Qi <yao.qi@linaro.org>
3967
3968 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3969 debug_printf.
3970
3971 2015-08-25 Yao Qi <yao.qi@linaro.org>
3972
3973 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3974 ptid_get_pid rather than ptid_get_lwp.
3975
3976 2015-08-24 Pedro Alves <palves@redhat.com>
3977
3978 * NEWS (New commands): Mention set/show remote
3979 multiprocess-extensions-packet.
3980 * remote.c (remote_query_supported): Only tell the server to use
3981 the multiprocess extensions if the user hasn't force-disabled them
3982 with "set remote multiprocess-extensions-packet off".
3983
3984 2015-08-24 Pedro Alves <palves@redhat.com>
3985
3986 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3987 1029a8112290f6eee9d7878a391c49db42c999bd.
3988 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3989 Regenerate.
3990 * gnulib/import/Makefile.am: Update.
3991 * gnulib/import/Makefile.in: Update.
3992 * gnulib/import/alloca.in.h: Update.
3993 * gnulib/import/basename-lgpl.c: Update.
3994 * gnulib/import/canonicalize-lgpl.c: Update.
3995 * gnulib/import/config.charset: Update.
3996 * gnulib/import/dirent.in.h: Update.
3997 * gnulib/import/dirfd.c: Update.
3998 * gnulib/import/dirname-lgpl.c: Update.
3999 * gnulib/import/dirname.h: Update.
4000 * gnulib/import/dosname.h: Update.
4001 * gnulib/import/errno.in.h: Update.
4002 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4003 * gnulib/import/extra/snippet/c++defs.h: Update.
4004 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4005 * gnulib/import/extra/update-copyright: Update.
4006 * gnulib/import/float+.h: Update.
4007 * gnulib/import/float.c: Update.
4008 * gnulib/import/float.in.h: Update.
4009 * gnulib/import/fnmatch.c: Update.
4010 * gnulib/import/fnmatch.in.h: Update.
4011 * gnulib/import/fnmatch_loop.c: Update.
4012 * gnulib/import/fpucw.h: Update.
4013 * gnulib/import/frexp.c: Update.
4014 * gnulib/import/frexpl.c: Update.
4015 * gnulib/import/gettimeofday.c: Update.
4016 * gnulib/import/inttypes.in.h: Update.
4017 * gnulib/import/isnan.c: Update.
4018 * gnulib/import/isnand-nolibm.h: Update.
4019 * gnulib/import/isnand.c: Update.
4020 * gnulib/import/isnanl-nolibm.h: Update.
4021 * gnulib/import/isnanl.c: Update.
4022 * gnulib/import/itold.c: Update.
4023 * gnulib/import/localcharset.c: Update.
4024 * gnulib/import/localcharset.h: Update.
4025 * gnulib/import/lstat.c: Update.
4026 * gnulib/import/m4/00gnulib.m4: Update.
4027 * gnulib/import/m4/absolute-header.m4: Update.
4028 * gnulib/import/m4/alloca.m4: Update.
4029 * gnulib/import/m4/canonicalize.m4: Update.
4030 * gnulib/import/m4/codeset.m4: Update.
4031 * gnulib/import/m4/configmake.m4: Update.
4032 * gnulib/import/m4/dirent_h.m4: Update.
4033 * gnulib/import/m4/dirfd.m4: Update.
4034 * gnulib/import/m4/dirname.m4: Update.
4035 * gnulib/import/m4/double-slash-root.m4: Update.
4036 * gnulib/import/m4/eealloc.m4: Update.
4037 * gnulib/import/m4/errno_h.m4: Update.
4038 * gnulib/import/m4/exponentd.m4: Update.
4039 * gnulib/import/m4/exponentl.m4: Update.
4040 * gnulib/import/m4/extensions.m4: Update.
4041 * gnulib/import/m4/extern-inline.m4: Update.
4042 * gnulib/import/m4/fcntl-o.m4: Update.
4043 * gnulib/import/m4/float_h.m4: Update.
4044 * gnulib/import/m4/fnmatch.m4: Update.
4045 * gnulib/import/m4/fpieee.m4: Update.
4046 * gnulib/import/m4/frexp.m4: Update.
4047 * gnulib/import/m4/frexpl.m4: Update.
4048 * gnulib/import/m4/gettimeofday.m4: Update.
4049 * gnulib/import/m4/glibc21.m4: Update.
4050 * gnulib/import/m4/gnulib-cache.m4: Update.
4051 * gnulib/import/m4/gnulib-common.m4: Update.
4052 * gnulib/import/m4/gnulib-comp.m4: Update.
4053 * gnulib/import/m4/gnulib-tool.m4: Update.
4054 * gnulib/import/m4/include_next.m4: Update.
4055 * gnulib/import/m4/inttypes-pri.m4: Update.
4056 * gnulib/import/m4/inttypes.m4: Update.
4057 * gnulib/import/m4/isnand.m4: Update.
4058 * gnulib/import/m4/isnanl.m4: Update.
4059 * gnulib/import/m4/largefile.m4: Update.
4060 * gnulib/import/m4/localcharset.m4: Update.
4061 * gnulib/import/m4/locale-fr.m4: Update.
4062 * gnulib/import/m4/locale-ja.m4: Update.
4063 * gnulib/import/m4/locale-zh.m4: Update.
4064 * gnulib/import/m4/longlong.m4: Update.
4065 * gnulib/import/m4/lstat.m4: Update.
4066 * gnulib/import/m4/malloc.m4: Update.
4067 * gnulib/import/m4/malloca.m4: Update.
4068 * gnulib/import/m4/math_h.m4: Update.
4069 * gnulib/import/m4/mbrtowc.m4: Update.
4070 * gnulib/import/m4/mbsinit.m4: Update.
4071 * gnulib/import/m4/mbsrtowcs.m4: Update.
4072 * gnulib/import/m4/mbstate_t.m4: Update.
4073 * gnulib/import/m4/memchr.m4: Update.
4074 * gnulib/import/m4/memmem.m4: Update.
4075 * gnulib/import/m4/mmap-anon.m4: Update.
4076 * gnulib/import/m4/multiarch.m4: Update.
4077 * gnulib/import/m4/nocrash.m4: Update.
4078 * gnulib/import/m4/off_t.m4: Update.
4079 * gnulib/import/m4/pathmax.m4: Update.
4080 * gnulib/import/m4/readlink.m4: Update.
4081 * gnulib/import/m4/rename.m4: Update.
4082 * gnulib/import/m4/rmdir.m4: Update.
4083 * gnulib/import/m4/ssize_t.m4: Update.
4084 * gnulib/import/m4/stat.m4: Update.
4085 * gnulib/import/m4/stdbool.m4: Update.
4086 * gnulib/import/m4/stddef_h.m4: Update.
4087 * gnulib/import/m4/stdint.m4: Update.
4088 * gnulib/import/m4/stdio_h.m4: Update.
4089 * gnulib/import/m4/stdlib_h.m4: Update.
4090 * gnulib/import/m4/string_h.m4: Update.
4091 * gnulib/import/m4/strstr.m4: Update.
4092 * gnulib/import/m4/strtok_r.m4: Update.
4093 * gnulib/import/m4/sys_socket_h.m4: Update.
4094 * gnulib/import/m4/sys_stat_h.m4: Update.
4095 * gnulib/import/m4/sys_time_h.m4: Update.
4096 * gnulib/import/m4/sys_types_h.m4: Update.
4097 * gnulib/import/m4/time_h.m4: Update.
4098 * gnulib/import/m4/unistd_h.m4: Update.
4099 * gnulib/import/m4/warn-on-use.m4: Update.
4100 * gnulib/import/m4/wchar_h.m4: Update.
4101 * gnulib/import/m4/wchar_t.m4: Update.
4102 * gnulib/import/m4/wctype_h.m4: Update.
4103 * gnulib/import/m4/wint_t.m4: Update.
4104 * gnulib/import/malloc.c: Update.
4105 * gnulib/import/malloca.c: Update.
4106 * gnulib/import/malloca.h: Update.
4107 * gnulib/import/math.in.h: Update.
4108 * gnulib/import/mbrtowc.c: Update.
4109 * gnulib/import/mbsinit.c: Update.
4110 * gnulib/import/mbsrtowcs-impl.h: Update.
4111 * gnulib/import/mbsrtowcs-state.c: Update.
4112 * gnulib/import/mbsrtowcs.c: Update.
4113 * gnulib/import/memchr.c: Update.
4114 * gnulib/import/memmem.c: Update.
4115 * gnulib/import/pathmax.h: Update.
4116 * gnulib/import/readlink.c: Update.
4117 * gnulib/import/ref-add.sin: Update.
4118 * gnulib/import/ref-del.sin: Update.
4119 * gnulib/import/rename.c: Update.
4120 * gnulib/import/rmdir.c: Update.
4121 * gnulib/import/same-inode.h: Update.
4122 * gnulib/import/stat.c: Update.
4123 * gnulib/import/stdbool.in.h: Update.
4124 * gnulib/import/stddef.in.h: Update.
4125 * gnulib/import/stdint.in.h: Update.
4126 * gnulib/import/stdio.c: Update.
4127 * gnulib/import/stdio.in.h: Update.
4128 * gnulib/import/stdlib.in.h: Update.
4129 * gnulib/import/str-two-way.h: Update.
4130 * gnulib/import/streq.h: Update.
4131 * gnulib/import/string.in.h: Update.
4132 * gnulib/import/stripslash.c: Update.
4133 * gnulib/import/strnlen1.c: Update.
4134 * gnulib/import/strnlen1.h: Update.
4135 * gnulib/import/strstr.c: Update.
4136 * gnulib/import/strtok_r.c: Update.
4137 * gnulib/import/sys_stat.in.h: Update.
4138 * gnulib/import/sys_time.in.h: Update.
4139 * gnulib/import/sys_types.in.h: Update.
4140 * gnulib/import/time.in.h: Update.
4141 * gnulib/import/unistd.in.h: Update.
4142 * gnulib/import/verify.h: Update.
4143 * gnulib/import/wchar.in.h: Update.
4144 * gnulib/import/wctype.in.h: Update.
4145 * gnulib/import/gettimeofday.c: New file.
4146 * gnulib/import/m4/absolute-header.m4: New file.
4147 * gnulib/import/m4/gettimeofday.m4: New file.
4148 * gnulib/import/m4/sys_socket_h.m4: New file.
4149 * gnulib/import/m4/sys_time_h.m4: New file.
4150 * gnulib/import/stdio.c: Delete file.
4151 * gnulib/import/sys_time.in.h: New file.
4152
4153 2015-08-24 Pedro Alves <palves@redhat.com>
4154
4155 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4156 * common/gdb_sys_time.h: New file.
4157 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4158 * gdb_select.h: Likewise.
4159 * gdb_usleep.c: Likewise.
4160 * maint.c: Likewise.
4161 * mi/mi-main.c: Likewise.
4162 * mi/mi-parse.h: Likewise.
4163 * remote-fileio.c: Likewise.
4164 * remote-m32r-sdi.c: Likewise.
4165 * remote.c: Likewise.
4166 * ser-base.c: Likewise.
4167 * ser-pipe.c: Likewise.
4168 * ser-tcp.c: Likewise.
4169 * ser-unix.c: Likewise.
4170 * symfile.c: Likewise.
4171 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4172 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4173 * utils.c: Likewise.
4174
4175 2015-08-24 Pedro Alves <palves@redhat.com>
4176
4177 * NEWS: Mention removed support for the various ROM monitors.
4178 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4179 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4180 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4181 gdb_target_obs.
4182 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4183 gdb_target_obs.
4184 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4185 dsrec.o from gdb_target_obs.
4186 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4187 from gdb_target_obs.
4188 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4189 gdb_target_obs.
4190 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4191 dink32-rom.o from gdb_target_obs.
4192 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4193 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4194 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4195 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4196
4197 2015-08-21 Pedro Alves <palves@redhat.com>
4198
4199 * frame.c (null_frame_id): Explicitly zero-initialize.
4200
4201 2015-08-21 Tom Tromey <tromey@redhat.com>
4202
4203 * dwarf2read.c (struct dwarf2_section_info): Rename field
4204 'asection' to 'section'.
4205 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4206 (dwarf2_locate_sections, dwarf2_locate_sections)
4207 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4208 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4209 (dwarf2_locate_v2_dwp_sections): Adjust.
4210
4211 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4212
4213 * top.h (gdb_in_secondary_prompt_p): Declare.
4214 * top.c (gdb_secondary_prompt_depth): Define.
4215 (gdb_in_secondary_prompt_p): Define.
4216 (gdb_readline_wrapper_cleanup): Decrement
4217 gdb_secondary_prompt_depth.
4218 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4219 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4220 are in a secondary prompt.
4221
4222 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4223
4224 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4225 emit the newline.
4226
4227 2015-08-21 Gary Benson <gbenson@redhat.com>
4228
4229 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4230
4231 2015-08-21 Gary Benson <gbenson@redhat.com>
4232
4233 * target.h (struct target_ops) <to_fileio_open>: New argument
4234 warn_if_slow. Update comment. All implementations updated.
4235 (target_fileio_open_warn_if_slow): New declaration.
4236 * target.c (target_fileio_open): Renamed as...
4237 (target_fileio_open_1): ...this. New argument warn_if_slow.
4238 Pass warn_if_slow to implementation. Update debug printing.
4239 (target_fileio_open): New function.
4240 (target_fileio_open_warn_if_slow): Likewise.
4241 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4242 target_fileio_open_warn_if_slow.
4243
4244 2015-08-21 Gary Benson <gbenson@redhat.com>
4245
4246 * nat/linux-namespaces.c (linux_mntns_access_fs):
4247 Do not overwrite old_chain.
4248
4249 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4250
4251 * arch/xtensa.h: New file.
4252 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4253 (ps_get_thread_area): New function.
4254 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4255 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4256 * xtensa-tdep.c (osabi.h): New #include.
4257 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4258 xtensa-specific hooks.
4259 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4260 member and move the structure to arch/xtensa.h.
4261
4262 2015-08-21 Pedro Alves <palves@redhat.com>
4263
4264 * remote.c (struct readahead_cache): New.
4265 (struct remote_state) <readahead_cache>: New field.
4266 (remote_open_1): Invalidate the cache.
4267 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4268 functions.
4269 (remote_hostio_pwrite): Invalidate the readahead cache.
4270 (remote_hostio_pread): Rename to ...
4271 (remote_hostio_pread_vFile): ... this.
4272 (remote_hostio_pread_from_cache): New function.
4273 (remote_hostio_pread): Reimplement.
4274 (remote_hostio_close): Invalidate the readahead cache.
4275
4276 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4277
4278 PR build/18843
4279 * procfs.c: Include "filestuff.h".
4280
4281 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4282
4283 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4284 curch.
4285 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4286 cur_line or curch, instead call wmove().
4287 (init_win_info) [CMD_WIN]: Likewise.
4288 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4289 instead call getcury().
4290 (tui_redisplay_readline): Don't set cur_line or curch.
4291 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4292 getcury().
4293 (tui_cont_sig): Remove call to wmove.
4294 (tui_getc): Don't read cur_line or curch, instead call getcury()
4295 or getyx(). Don't set curch.
4296 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4297 set cur_line or curch. Always move cursor to (0,0).
4298
4299 2015-08-20 Pedro Alves <palves@redhat.com>
4300
4301 * infrun.c (print_target_wait_results): Make extern.
4302 * infrun.h (print_target_wait_results): Declare.
4303 * remote.c (set_stop_requested_callback): Delete.
4304 (process_initial_stop_replies): New function.
4305 (remote_start_remote): Use it.
4306 (stop_reply_queue_length): New function.
4307
4308 2015-08-20 Pedro Alves <palves@redhat.com>
4309
4310 * dwarf2read.c (process_full_comp_unit): To tell whether
4311 start_subfile managed to deduce a language, test for
4312 language_unknown instead of language_c.
4313
4314 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4315
4316 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4317 matches attributes.
4318
4319 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4320
4321 * dwarf2read.c (dwarf2_string_attr): New function.
4322 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4323 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4324 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4325 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4326 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4327
4328 2015-08-18 Doug Evans <dje@google.com>
4329 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4330
4331 PR mi/18833
4332 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4333 if MI-like.
4334 * mi/mi-out.c: #include "vec.h".
4335 (ui_filep): New type.
4336 (DEV_VEC_P (ui_filep)): New type.
4337 (struct ui_out_data) <buffer, original_buffer>: Delete.
4338 (struct ui_out_data) <streams>: New member.
4339 (mi_ui_out_impl): Add data_destroy field.
4340 (mi_field_string, mi_field_fmt): Update.
4341 (mi_flush, mi_redirect, field_separator): Update.
4342 (mi_open, mi_close): Update.
4343 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4344 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4345 (mi_out_new): Call mi_out_data_ctor.
4346
4347 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4348
4349 * remote.c (strprefix): New.
4350 (remote_parse_stop_reply): Use strprefix instead of strncmp
4351 to ensure exact match of keyword.
4352
4353 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4354
4355 * gdb_bfd.c (debug_bfd_cache): New variable.
4356 (show_bfd_cache_debug): New function.
4357 (gdb_bfd_open): Add debug logging.
4358 (gdb_bfd_ref): Likewise.
4359 (gdb_bfd_unref): Likewise.
4360 (_initialize_gdb_bfd): Add new set/show command.
4361 * NEWS: Mention new command.
4362
4363 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4364
4365 * gdb_bfd.c (bfd_sharing): New variable.
4366 (show_bfd_sharing): New function.
4367 (gdb_bfd_open): Check bfd_sharing variable.
4368 (_initialize_gdb_bfd): Add new set/show command.
4369 * NEWS: Mention new command.
4370
4371 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4372
4373 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4374 field.
4375 (struct gdb_bfd_cache_search): Likewise.
4376 (eq_bfd): Compare the size, inode, and device id fields.
4377 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4378 (gdb_bfd_ref): Likewise.
4379 (gdb_bfd_unref): Likewise.
4380
4381 2015-08-18 Pedro Alves <palves@redhat.com>
4382
4383 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4384 target implements to_always_non_stop_p, call it.
4385 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4386 (x86_linux_create_target): Install it as to_always_non_stop_p
4387 method.
4388
4389 2015-08-17 Doug Evans <dje@google.com>
4390
4391 * ui-out.c (default_ui_out_impl): Add comment.
4392
4393 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4394
4395 * d-exp.y (type_aggregate_p): New function.
4396 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4397 (classify_inner_name): Likewise.
4398 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4399
4400 2015-08-15 Doug Evans <xdje42@gmail.com>
4401
4402 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4403 updated.
4404 (add_psymbol_to_list): Ditto.
4405
4406 2015-08-15 Doug Evans <xdje42@gmail.com>
4407
4408 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4409 updated. Call end_psymtab_common.
4410 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4411 end_psymtab_common.
4412 (build_type_psymtabs_reader): Ditto.
4413 * psympriv.h (sort_pst_symbols): Delete.
4414 (end_psymtab_common): Declare.
4415 * psymtab.c (sort_pst_symbols): Make static.
4416 (end_psymtab_common): New function.
4417 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4418
4419 2015-08-15 Doug Evans <xdje42@gmail.com>
4420
4421 * defs.h (LANGUAGE_BITS): Define.
4422 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4423 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4424 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4425 (minimal_symbol_type): Add nr_minsym_types.
4426 (MINSYM_TYPE_BITS): Define.
4427 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4428 (domain_enum_tag): Add NR_DOMAINS.
4429 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4430 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4431
4432 2015-08-15 Doug Evans <xdje42@gmail.com>
4433
4434 * objfiles.h: Whitespace cleanup.
4435 * psympriv.h: Whitespace cleanup.
4436 * psymtab.c: Whitespace/coding convention cleanup.
4437
4438 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4439
4440 * inferior.c (detach_inferior_command): Don't call
4441 any_thread_of_process when pid is 0.
4442 (kill_inferior_command): Likewise.
4443
4444 2015-08-14 Doug Evans <xdje42@gmail.com>
4445
4446 PR gdb/11833
4447 * NEWS: Document new /s modifier for the disassemble command.
4448 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4449 (_initialize_cli_cmds): Update online docs of disassemble command.
4450 * disasm.c: #include "source.h".
4451 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4452 All uses updated.
4453 (dis_line_entry): New struct.
4454 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4455 (allocate_dis_line_table): New functions.
4456 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4457 (dump_insns): New arg end_pc. All callers updated.
4458 (do_mixed_source_and_assembly_deprecated): Renamed from
4459 do_mixed_source_and_assembly. All callers updated.
4460 (do_mixed_source_and_assembly): New function.
4461 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4462 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4463 DISASSEMBLY_SOURCE. All uses updated.
4464 (DISASSEMBLY_SOURCE): New macro.
4465 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4466
4467 2015-08-14 Keith Seitz <keiths@redhat.com>
4468
4469 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4470 `typename' to `type_name' to avoid C++ reserved word.
4471
4472 2015-08-14 Keith Seitz <keiths@redhat.com>
4473
4474 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4475 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4476 silence ARI errors.
4477
4478 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4479
4480 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4481 xstrprintf instead of malloc and sprintf.
4482 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4483 (lex_one_token): Likewise.
4484
4485 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4486
4487 * solib-svr4.c (read_program_header): Add base_addr argument to
4488 report the runtime address of the segment.
4489 (find_program_interpreter): Update read_program_header call to pass
4490 a NULL pointer for the new argument.
4491 (scan_dyntag): Add ptr_addr argument to report the runtime address
4492 of the tag payload.
4493 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4494 read_program_header to get the base address of the dynamic segment.
4495 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4496 read_program_header.
4497 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4498
4499 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4500
4501 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4502
4503 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4504
4505 * d-exp.y (%union): Add voidval.
4506 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4507 name in the lexing stage.
4508 (PostfixExpression): Move symbol completion handling in grammar here
4509 from PrimaryExpression.
4510 (PrimaryExpression): Move routines to handle resolving identifier
4511 tokens in the grammar here from push_expression_name.
4512 (IdentifierExp): Remove the handling of alternating '.' and identifier
4513 tokens.
4514 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4515 (BasicType): Remove C-style typename rules.
4516 (d_type_from_name, d_module_from_name, push_variable)
4517 (push_fieldnames, push_type_name, push_module_name)
4518 (push_expression_name): Remove.
4519 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4520 (token_and_value): New type.
4521 (token_fifo, popping, name_obstack): New globals.
4522 (classify_name): New function.
4523 (classify_inner_name): Likewise.
4524 (yylex): Likewise.
4525 (d_parse): Initialize token_fifo, popping and name_obstack.
4526
4527 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4528
4529 * Makefile.in (SFILES): Add d-namespace.c.
4530 (COMMON_OBS): Add d-namespace.o.
4531 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4532 la_lookup_symbol_nonlocal callback function pointer.
4533 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4534 (d_lookup_nested_symbol): New declaration.
4535 * d-namespace.c: New file.
4536
4537 2015-08-13 Pedro Alves <palves@redhat.com>
4538
4539 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4540 cleanup after the decref cleanup, not before.
4541
4542 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4543
4544 * ada-lang.c: Include namespace.h
4545 (aux_add_nonlocal_symbols): Fix a function name in comment.
4546 (ada_add_block_renamings): New.
4547 (add_nonlocal_symbols): Add global renamings handling.
4548 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4549 to...
4550 (ada_add_all_symbols): ... this new function.
4551 (ada_add_block_symbols): Try to match the input name against the
4552 "using directives list", perform a recursive symbol lookup on
4553 the matched declarations.
4554 * block.h (struct block): Move the_namespace to top-level as
4555 namespace_info. Remove the language_specific field.
4556 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4557 * buildsym.h (using_directives): Rename into...
4558 (local_using_directives): ... this.
4559 (global_using_directives): New.
4560 (struct context_stack): Rename the using_directives field into
4561 local_using_directives.
4562 * buildsym.c (finish_block_internal): Deal with the proper
4563 using directives repository (local or global).
4564 (prepare_for_building): Reset local_using_directives. Assert
4565 that there is no pending global using directive.
4566 (reset_symtab_globals): Reset global_using_directives and
4567 local_using_directives.
4568 (end_symtab_get_static_block): Don't ignore symtabs that have
4569 only using directives.
4570 (push_context): Update references to local_using_directives.
4571 (buildsym_init): Do not reset using_directives.
4572 * cp-support.c: Include namespace.h.
4573 * cp-support.h (struct using_direct): Move to namespace.h.
4574 (cp_add_using_directives): Move to namespace.h.
4575 * cp-namespace.c: Include namespace.h
4576 (cp_add_using_directive): Move to namespace.c, rename it to
4577 add_using_directive, add a "using_directives" argument and use
4578 it as the pending using directives repository. All callers
4579 updated.
4580 * dwarf2read.c (using_directives): New.
4581 (read_import_statement): Call using_directives.
4582 (read_func_scope): Update references to local_using_directives.
4583 (read_lexical_block_scope): Likewise.
4584 (read_namespace): Update the heading comment, call
4585 using_directives.
4586 * namespace.h: New file.
4587 * namespace.c: New file.
4588 * Makefile.in (SFILES): Add namespace.c.
4589 (COMMON_OBS): Add namespace.o
4590
4591 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4592
4593 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4594 compute RETADDR.
4595
4596 2015-08-12 Keith Seitz <keiths@redhat.com>
4597
4598 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4599 reserved C++ keyword "explicit" to "explicit_loc".
4600 * breakpoint.c (create_overlay_event_breakpoint)
4601 (create_longjmp_master_breakpoint)
4602 (create_std_terminate_master_breakpoint)
4603 (create_exception_master_breakpoint, update_static_tracepoint):
4604 Rename reserved C++ keyword "explicit" to "explicit_loc".
4605 * completer.c (collect_explicit_location_matches)
4606 (explicit_location_completer): Rename reserved C++ keyword
4607 "explicit" to "explicit_loc".
4608 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4609 (canonicalize_linespec, create_sals_line_offset)
4610 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4611 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4612 "explicit" to "explicit_loc".
4613 * location.c (struct event_location) <explicit>: Rename to
4614 "explicit_loc".
4615 (initialize_explicit_location, new_explicit_location)
4616 (explicit_location_to_string_internal, explicit_location_to_linespec):
4617 Rename reserved C++ keyword "explicit" to "explicit_loc".
4618 * location.h (explicit_location_to_string)
4619 (explicit_location_to_linespec, initialize_explicit_location)
4620 (new_explicit_location): Rename reserved C++ keyword "explicit"
4621 to "explicit_loc".
4622 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4623 keyword "explicit" to "explicit_loc".
4624
4625 2015-08-12 Keith Seitz <keiths@redhat.com>
4626
4627 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4628 and only call decode_line_1 when it is non-NULL.
4629
4630 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4631
4632 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4633 location address is not meaningful.
4634 (breakpoint_address_is_meaningful): Update comment.
4635
4636 2015-08-11 Keith Seitz <keiths@redhat.com>
4637
4638 * NEWS: Mention explicit locations.
4639 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4640 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4641 (_initialize_breakpoint): Update documentation for
4642 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4643
4644 2015-08-11 Keith Seitz <keiths@redhat.com>
4645
4646 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4647 explicit locations, options "--source", "--function",
4648 "--label", and "--line".
4649
4650 2015-08-11 Keith Seitz <keiths@redhat.com>
4651
4652 * completer.c: Include location.h.
4653 (enum match_type): New enum.
4654 (location_completer): Rename to ...
4655 (linespec_completer): ... this.
4656 (collect_explicit_location_matches, backup_text_ptr)
4657 (explicit_location_completer): New functions.
4658 (location_completer): "New" function; handle linespec
4659 and explicit location completions.
4660 (complete_line_internal): Remove all location completer-specific
4661 handling.
4662 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4663 (find_toplevel_char): Export.
4664 (linespec_parse_line_offset): Export.
4665 Issue error if STRING is not numerical.
4666 (gdb_get_linespec_parser_quote_characters): New function.
4667 * linespec.h (linespec_parse_line_offset): Declare.
4668 (get_gdb_linespec_parser_quote_characters): Declare.
4669 (is_ada_operator): Declare.
4670 (find_toplevel_char): Declare.
4671 (linespec_lexer_lex_keyword): Declare.
4672 * location.c (explicit_to_event_location): New function.
4673 (explicit_location_lex_one): New function.
4674 (string_to_explicit_location): New function.
4675 (string_to_event_location): Handle explicit locations.
4676 * location.h (explicit_to_event_location): Declare.
4677 (string_to_explicit_location): Declare.
4678
4679 2015-08-11 Keith Seitz <keiths@redhat.com>
4680
4681 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4682 linespec into explicit location.
4683 * breakpoint.c (create_overlay_breakpoint)
4684 (create_longjmp_master_breakpoint)
4685 (create_std_terminate_master_breakpoint)
4686 (create_exception_master_breakpoint): Convert linespec into explicit
4687 location.
4688 (update_static_tracepoint): Convert linespec into explicit location.
4689 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4690 location.h.
4691 (struct linespec) <expression, expr_pc, source_filename>
4692 <function_name, label_name, line_offset>: Replace with ...
4693 <explicit>: ... this.
4694 <is_linespec>: New member.
4695 (PARSER_EXPLICIT): New accessor macro.
4696 (undefined_label_error): New function.
4697 (source_file_not_found_error): New function.
4698 (linespec_parse_basic): The parser result is now an explicit location.
4699 Use PARSER_EXPLICIT to access it.
4700 Use undefined_label_error.
4701 (canonicalize_linespec): Convert canonical linespec into explicit
4702 location.
4703 Move string representation of location to explicit_location_to_linespec
4704 and use it and explicit_location_to_string to save string
4705 representations of the canonical location.
4706 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4707 explicit location. Update all references.
4708 (convert_explicit_location_to_sals): New function.
4709 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4710 result's explicit location.
4711 (linespec_state_constructor): Initialize is_linespec.
4712 Use PARSER_EXPLICIT.
4713 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4714 result.
4715 (event_location_to_sals): For linespec locations, set is_linespec.
4716 Handle explicit locations.
4717 (decode_objc): 'ls' contains an explicit location now. Update all
4718 references.
4719 (symtabs_from_filename): Use source_file_not_found_error.
4720 * location.c (struct event_location.u) <explicit>: New member.
4721 (initialize_explicit_location): New function.
4722 (initialize_event_location): Initialize explicit locations.
4723 (new_explicit_location, get_explicit_location)
4724 (get_explicit_location_const): New functions.
4725 (explicit_to_string_internal): New function; most of contents moved
4726 from canonicalize_linespec.
4727 (explicit_location_to_string): New function.
4728 (explicit_location_to_linespec): New function.
4729 (copy_event_location, delete_event_location)
4730 (event_location_to_string_const, event_location_empty_p): Handle
4731 explicit locations.
4732 * location.h (enum offset_relative_sign, struct line_offset): Move
4733 here from linespec.h.
4734 (enum event_location_type): Add EXPLICIT_LOCATION.
4735 (struct explicit_location): New structure.
4736 (explicit_location_to_string): Declare.
4737 (explicit_location_to_linespec): Declare.
4738 (new_explicit_location, get_explicit_locationp
4739 (get_explicit_location_const, initialize_explicit_location): Declare.
4740
4741 2015-08-11 Keith Seitz <keiths@redhat.com>
4742
4743 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4744 linespec for stap probe to probe location.
4745 * breakpoint.c (create_longjmp_master_breakpoint)
4746 (create_exception_master_breakpoint): Likewise.
4747 (break_command_1): Remove local variable `arg_cp'.
4748 Check location type to set appropriate breakpoint ops methods.
4749 (trace_command): Likewise.
4750 * linespec.c (event_location_to_sals): Assert on probe locations.
4751 * location.c (EL_PROBE): Add macro definition.
4752 (new_probe_location, get_probe_location): New functions.
4753 (copy_event_location, delete_event_location, event_location_to_string)
4754 (string_to_event_location, event_location_empty_p): Handle probe
4755 locations.
4756 * location.h (enum event_location_type): Add PROBE_LOCATION.
4757 (new_probe_location, get_probe_location): Declare.
4758 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4759 Convert linespec into probe location.
4760
4761 2015-08-11 Keith Seitz <keiths@redhat.com>
4762
4763 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4764 Convert linespec to address location.
4765 * linespec.c (canonicalize_linespec): Do not handle address
4766 locations here.
4767 (convert_address_location_to_sals): New function; contents moved
4768 from ...
4769 (convert_linespc_to_sals): ... here.
4770 (parse_linespec): Remove address locations from linespec grammar.
4771 Remove handling of address locations.
4772 (linespec_lex_to_end): Remove handling of address linespecs.
4773 (event_location_to_sals): Handle ADDRESS_LOCATION.
4774 (linespec_expression_to_pc): Export.
4775 * linespec.h (linespec_expression_to_pc): Add declaration.
4776 * location.c (struct event_location.u) <address>: New member.
4777 (new_address_location, get_address_location): New functions.
4778 (copy_event_location, delete_event_location, event_location_to_string)
4779 (string_to_event_location, event_location_empty_p): Handle address
4780 locations.
4781 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4782 (new_address_location, get_address_location): Declare.
4783 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4784 to address location.
4785 * spu-tdep.c (spu_catch_start): Likewise.
4786
4787 2015-08-11 Keith Seitz <keiths@redhat.com>
4788
4789 * ax-gdb.c: Include location.h.
4790 (agent_command_1) Use linespec location instead of address
4791 string.
4792 * break-catch-throw.c: Include location.h.
4793 (re_set_exception_catchpoint): Use linespec locations instead
4794 of address strings.
4795 * breakpoint.c: Include location.h.
4796 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4797 (create_std_terminate_master_breakpoint)
4798 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4799 Use linespec location instead of address string.
4800 (print_breakpoint_location): Use locations and
4801 event_location_to_string.
4802 Print extra_string for pending locations for non-MI streams.
4803 (print_one_breakpoint_location): Use locations and
4804 event_location_to_string.
4805 (init_raw_breakpoint_without_location): Initialize b->location.
4806 (create_thread_event_breakpoint): Use linespec location instead of
4807 address string.
4808 (init_breakpoint_sal): Likewise.
4809 Only save extra_string if it is non-NULL and not the empty string.
4810 Use event_location_to_string instead of `addr_string'.
4811 Constify `p' and `endp'.
4812 Use skip_spaces_const/skip_space_const instead of non-const versions.
4813 Copy the location into the breakpoint.
4814 If LOCATION is NULL, save the breakpoint address as a linespec location
4815 instead of an address string.
4816 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4817 event_location. All uses updated.
4818 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4819 (parse_breakpoint_sals): Use locations instead of address strings.
4820 Remove check for empty linespec with conditional.
4821 Refactor.
4822 (decode_static_tracepoint_spec): Make argument const and update
4823 function.
4824 (create_breakpoint): Change `arg' to a struct event_location and
4825 rename.
4826 Remove `copy_arg' and `addr_start'.
4827 If EXTRA_STRING is empty, set it to NULL.
4828 Don't populate `canonical' for pending breakpoints.
4829 Pass `extra_string' to find_condition_and_thread.
4830 Clear `extra_string' if `rest' was NULL.
4831 Do not error with "garbage after location" if setting a dprintf
4832 breakpoint.
4833 Copy the location into the breakpoint instead of an address string.
4834 (break_command_1): Use string_to_event_location and pass this to
4835 create_breakpoint instead of an address string.
4836 Check against `arg_cp' for a probe linespec.
4837 (dprintf_command): Use string_to_event_location and pass this to
4838 create_breakpoint instead of an address string.
4839 Throw an exception if no format string was specified.
4840 (print_recreate_ranged_breakpoint): Use event_location_to_string
4841 instead of address strings.
4842 (break_range_command, until_break_command)
4843 (init_ada_exception_breakpoint): Use locations instead
4844 of address strings.
4845 (say_where): Print out extra_string for pending locations.
4846 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4847 the breakpoint.
4848 (base_breakpoint_create_sals_from_location): Use struct event_location
4849 instead of address string.
4850 Remove `addr_start' and `copy_arg' parameters.
4851 (base_breakpoint_decode_location): Use struct event_location instead of
4852 address string.
4853 (bkpt_re_set): Use locations instead of address strings.
4854 Use event_location_empty_p to check for unset location.
4855 (bkpt_print_recreate): Use event_location_to_string instead of
4856 an address string.
4857 Print out extra_string for pending locations.
4858 (bkpt_create_sals_from_location, bkpt_decode_location)
4859 (bkpt_probe_create_sals_from_location): Use struct event_location
4860 instead of address string.
4861 (bkpt_probe_decode_location): Use struct event_location instead of
4862 address string.
4863 (tracepoint_print_recreate): Use event_location_to_string to
4864 recreate the tracepoint.
4865 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4866 (tracepoint_probe_create_sals_from_location)
4867 (tracepoint_probe_decode_location): Use struct event_location
4868 instead of address string.
4869 (dprintf_print_recreate): Use event_location_to_string to recreate
4870 the dprintf.
4871 (dprintf_re_set): Remove check for valid/missing format string.
4872 (strace_marker_create_sals_from_location)
4873 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4874 (update_static_tracepoint): Use struct event_location instead of
4875 address string.
4876 (location_to_sals): Likewise.
4877 Pass `extra_string' to find_condition_and_thread.
4878 For newly resolved pending breakpoint locations, clear the location's
4879 string representation.
4880 Assert that the breakpoint's condition string is NULL when
4881 condition_not_parsed.
4882 (breakpoint_re_set_default, create_sals_from_location_default)
4883 (decode_location_default, trace_command, ftrace_command)
4884 (strace_command, create_tracepoint_from_upload): Use locations
4885 instead of address strings.
4886 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4887 Use struct event_location instead of address string.
4888 Update all uses.
4889 <decode_location>: Likewise.
4890 (struct breakpoint) <addr_string>: Change to struct event_location
4891 and rename `location'.
4892 <addr_string_range_end>: Change to struct event_location and rename
4893 `location_range_end'.
4894 (create_breakpoint): Use struct event_location instead of address
4895 string.
4896 * cli/cli-cmds.c: Include location.h.
4897 (edit_command, list_command): Use locations instead of address strings.
4898 * elfread.c: Include location.h.
4899 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4900 * guile/scm-breakpoint.c: Include location.h.
4901 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4902 (gdbscm_register_breakpoint): Use locations instead of address
4903 strings.
4904 * linespec.c: Include location.h.
4905 (struct ls_parser) <stream>: Change to const char *.
4906 (PARSER_STREAM): Update.
4907 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4908 keywords must be followed by whitespace.
4909 (canonicalize_linespec): Save a linespec location into `canonical'.
4910 Save a canonical linespec into `canonical'.
4911 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4912 All uses updated.
4913 Update function description.
4914 (linespec_parser_new): Initialize `parser'.
4915 Update initialization of parsing stream.
4916 (event_location_to_sals): New function.
4917 (decode_line_full): Change `argptr' to a struct event_location and
4918 rename it `location'.
4919 Use locations instead of address strings.
4920 Call event_location_to_sals instead of parse_linespec.
4921 (decode_line_1): Likewise.
4922 (decode_line_with_current_source, decode_line_with_last_displayed)
4923 Use locations instead of address strings.
4924 (decode_objc): Likewise.
4925 Change `argptr' to const char * and rename `arg'.
4926 (destroy_linespec_result): Delete the linespec result's location
4927 instead of freeing the address string.
4928 * linespec.h (struct linespec_result) <addr_string>: Change to
4929 struct event_location and rename to ...
4930 <location>: ... this.
4931 (decode_line_1, decode_line_full): Change `argptr' to struct
4932 event_location. All callers updated.
4933 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4934 (mi_cmd_break_insert_1): Use locations instead of address strings.
4935 Throw an error if there was "garbage" at the end of the specified
4936 linespec.
4937 * probe.c: Include location.h.
4938 (parse_probes): Change `argptr' to struct event_location.
4939 Use event locations instead of address strings.
4940 * probe.h (parse_probes): Change `argptr' to struct event_location.
4941 * python/py-breakpoint.c: Include location.h.
4942 (bppy_get_location): Constify local variable `str'.
4943 Use event_location_to_string.
4944 (bppy_init): Use locations instead of address strings.
4945 * python/py-finishbreakpoint.c: Include location.h.
4946 (bpfinishpy_init): Remove local variable `addr_str'.
4947 Use locations instead of address strings.
4948 * python/python.c: Include location.h.
4949 (gdbpy_decode_line): Use locations instead of address strings.
4950 * remote.c: Include location.h.
4951 (remote_download_tracepoint): Use locations instead of address
4952 strings.
4953 * spu-tdep.c: Include location.h.
4954 (spu_catch_start): Remove local variable `buf'.
4955 Use locations instead of address strings.
4956 * tracepoint.c: Include location.h.
4957 (scope_info): Use locations instead of address strings.
4958 (encode_source_string): Constify parameter `src'.
4959 * tracepoint.h (encode_source_string): Likewise.
4960
4961 2015-08-11 Keith Seitz <keiths@redhat.com>
4962
4963 * Makefile.in (SFILES): Add location.c.
4964 (HFILES_NO_SRCDIR): Add location.h.
4965 (COMMON_OBS): Add location.o.
4966 * linespec.c (linespec_lex_to_end): New function.
4967 * linespec.h (linespec_lex_to_end): Declare.
4968 * location.c: New file.
4969 * location.h: New file.
4970
4971 2015-08-11 Keith Seitz <keiths@redhat.com>
4972
4973 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4974 Renamed to create_sals_from_location.
4975 <decode_linespec>: Renamed to decode_location.
4976 Update all callers.
4977 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4978 (create_sals_from_location_default): ... this.
4979 (addr_string_to_sals): Renamed to ...
4980 (location_to_sals): ... this.
4981 (decode_linespec_default): Renamed to ...
4982 (decode_location_default): ... this.
4983 (base_breakpoint_create_sals_from_address): Renamed to ...
4984 (base_breakpoint_create_sals_from_location): ... this.
4985 (bkpt_create_sals_from_address): Renamed to ...
4986 (bkpt_create_sals_from_location): ... this.
4987 (bkpt_decode_linespec): Renamed to ...
4988 (bkpt_decode_location): ... this.
4989 (bkpt_probe_create_sals_from_address): Renamed to ...
4990 (bkpt_probe_create_sals_from_location): ... this.
4991 (tracepoint_create_sals_from_address): Renamed to ...
4992 (tracepoint_create_sals_from_location): ... this.
4993 (tracepoint_decode_linespec): Renamed to ...
4994 (tracepoint_decode_location): ... this.
4995 (tracepoint_probe_create_sals_from_address): Renamed to ...
4996 (tracepoint_probe_create_sals_from_location): ... this.
4997 (tracepoint_probe_decode_linespec): Renamed to ...
4998 (tracepoint_probe_decode_location): ... this.
4999 (strace_marker_create_sals_from_address): Renamed to ...
5000 (strace_marker_create_sals_from_location): ... this.
5001 (decode_linespec_default): Renamed to ...
5002 (decode_location_default): ... this.
5003
5004 2015-08-10 Doug Evans <dje@google.com>
5005 Keith Seitz <keiths@redhat.com>
5006
5007 PR gdb/17960
5008 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5009 make_file_symbol_completion_list and made static.
5010 (make_file_symbol_completion_list): New function.
5011
5012 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5013
5014 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5015 trailing new-line at end of warning message.
5016 (proceed): Add i18n marker to error messages.
5017
5018 2015-08-07 Pedro Alves <palves@redhat.com>
5019
5020 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5021
5022 2015-08-07 Pedro Alves <palves@redhat.com>
5023
5024 * s390-linux-tdep.c (is_non_branch_ril)
5025 (s390_displaced_step_copy_insn): New functions.
5026 (s390_displaced_step_fixup): Update comment.
5027 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5028 gdbarch_displaced_step_copy_insn hook.
5029
5030 2015-08-07 Pedro Alves <palves@redhat.com>
5031
5032 * infrun.c (displaced_step_prepare_throw): Return -1 if
5033 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5034 comment.
5035 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5036 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5037 in file.
5038 (ppc_displaced_step_copy_insn): New function.
5039 (ppc_displaced_step_fixup): Update comment.
5040 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5041 gdbarch_displaced_step_copy_insn hook.
5042 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5043 NULL return.
5044 * gdbarch.h: Regenerate.
5045
5046 2015-08-07 Pedro Alves <palves@redhat.com>
5047
5048 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5049 field.
5050 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5051 Return false if dispaced stepping failed before.
5052 (resume): Pass the current inferior to
5053 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5054 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5055 displaced_stepping_failed flag, and fall back to an in-line
5056 step-over.
5057
5058 2015-08-07 Pedro Alves <palves@redhat.com>
5059
5060 * darwin-nat.c (darwin_stop): Rename to ...
5061 (darwin_interrupt): ... this.
5062 (_initialize_darwin_inferior): Adjust.
5063 * gnu-nat.c (gnu_stop): Delete.
5064 (gnu_target): Don't install gnu_stop.
5065 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5066 (inf_ptrace_interrupt): ... this.
5067 (inf_ptrace_target): Adjust.
5068 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5069 target_stop.
5070 * linux-nat (linux_nat_stop): Rename to ...
5071 (linux_nat_interrupt): ... this.
5072 (linux_nat_stop): Reimplement.
5073 (linux_nat_add_target): Install linux_nat_interrupt.
5074 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5075 (nto_handle_sigint_twice): ... this.
5076 (nto_interrupt): Rename to ...
5077 (nto_handle_sigint): ... this. Call target_interrupt instead of
5078 target_stop.
5079 (procfs_wait): Adjust.
5080 (procfs_stop): Rename to ...
5081 (procfs_interrupt): ... this.
5082 (init_procfs_targets): Adjust.
5083 * procfs.c (procfs_stop): Rename to ...
5084 (procfs_interrupt): ... this.
5085 (procfs_target): Adjust.
5086 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5087 (m32r_interrupt): ... this.
5088 (init_m32r_ops): Adjust.
5089 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5090 (gdbsim_interrupt_inferior): ... this.
5091 (gdbsim_stop): Rename to ...
5092 (gdbsim_interrupt): ... this.
5093 (gdbsim_cntrl_c): Adjust.
5094 (init_gdbsim_ops): Adjust.
5095 * remote.c (sync_remote_interrupt): Adjust comments.
5096 (remote_stop_as): Rename to ...
5097 (remote_interrupt_as): ... this.
5098 (remote_stop): Adjust comment.
5099 (remote_interrupt): New function.
5100 (init_remote_ops): Install remote_interrupt.
5101 * target.c (target_interrupt): New function.
5102 * target.h (struct target_ops) <to_interrupt>: New field.
5103 (target_interrupt): New declaration.
5104 * windows-nat.c (windows_stop): Rename to ...
5105 (windows_interrupt): ... this.
5106 * target-delegates.c: Regenerate.
5107
5108 2015-08-07 Pedro Alves <palves@redhat.com>
5109
5110 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5111 threads" as alternative to "switching back to stepped thread".
5112
5113 2015-08-07 Pedro Alves <palves@redhat.com>
5114
5115 * NEWS: Mention "maint set/show target-non-stop".
5116 * breakpoint.c (update_global_location_list): Check
5117 target_is_non_stop_p instead of non_stop.
5118 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5119 * infrun.c (show_can_use_displaced_stepping)
5120 (can_use_displaced_stepping_p, start_step_over_inferior):
5121 Likewise.
5122 (internal_resume_ptid): New function.
5123 (resume): Use it.
5124 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5125 all-stop mode but the target is always in non-stop mode, start all
5126 the other threads that are implicitly resumed too.
5127 (for_each_just_stopped_thread, fetch_inferior_event)
5128 (adjust_pc_after_break, stop_all_threads): Check
5129 target_is_non_stop_p instead of non_stop.
5130 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5131 with the target always in non-stop mode.
5132 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5133 instead of non_stop.
5134 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5135 instead of non_stop.
5136 (keep_going_stepped_thread): Use internal_resume_ptid.
5137 (stop_waiting): If in all-stop mode, and the target is in non-stop
5138 mode, stop all threads.
5139 (keep_going_pass): Likewise, when starting a new in-line step-over
5140 sequence.
5141 * linux-nat.c (get_pending_status, select_event_lwp)
5142 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5143 target_is_non_stop_p instead of non_stop.
5144 (linux_nat_always_non_stop_p): New function.
5145 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5146 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5147 * target-delegates.c: Regenerate.
5148 * target.c (target_is_non_stop_p): New function.
5149 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5150 (maint_set_target_non_stop_command)
5151 (maint_show_target_non_stop_command): New functions.
5152 (_initilize_target): Install "maint set/show target-non-stop"
5153 commands.
5154 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5155 (target_non_stop_enabled): New declaration.
5156 (target_is_non_stop_p): New declaration.
5157
5158 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5159
5160 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5161 has a pending status, return true.
5162 * gdbthread.h: Include target/waitstatus.h.
5163 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5164 stop_pc>: New fields.
5165 (struct thread_info) <resumed>: New field.
5166 (set_resumed): Declare.
5167 * infrun.c: Include "event-loop.h".
5168 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5169 (infrun_async): New function.
5170 (clear_step_over_info): Add debug output.
5171 (displaced_step_in_progress_any_inferior): New function.
5172 (displaced_step_fixup): New returns int.
5173 (start_step_over): Handle in-line step-overs too. Assert the
5174 thread is marked resumed.
5175 (resume_cleanups): Clear the thread's resumed flag.
5176 (resume): Set the thread's resumed flag. Return early if the
5177 thread has a pending status. Allow stepping a breakpoint with no
5178 signal.
5179 (proceed): Adjust to check 'resumed' instead of 'executing'.
5180 (clear_proceed_status_thread): If the thread has a pending status,
5181 and that status is a finished step, discard the pending status.
5182 (clear_proceed_status): Don't clear step_over_info here.
5183 (random_pending_event_thread, do_target_wait): New functions.
5184 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5185 do_target_wait.
5186 (wait_one): New function.
5187 (THREAD_STOPPED_BY): New macro.
5188 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5189 (thread_stopped_by_hw_breakpoint): New functions.
5190 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5191 functions.
5192 (handle_inferior_event): Also call set_resumed(false) on all
5193 threads implicitly stopped by the event.
5194 (restart_threads, resumed_thread_with_pending_status): New
5195 functions.
5196 (finish_step_over): If we were doing an in-line step-over before,
5197 and no longer are after trying to start a new step-over, restart
5198 all threads. If we have multiple threads with pending events,
5199 save the current event and go through the event loop again.
5200 (handle_signal_stop): Return early if finish_step_over returns
5201 false.
5202 <random signal>: If we get a signal while stepping over a
5203 breakpoint in-line in non-stop mode, restart all threads. Clear
5204 step_over_info before delivering the signal.
5205 (keep_going_stepped_thread): Use internal_error instead of
5206 gdb_assert. Mark the thread as resumed.
5207 (keep_going_pass_signal): Assert the thread isn't already resumed.
5208 If some other thread is doing an in-line step-over, defer the
5209 resume. If we just started a new in-line step-over, stop all
5210 threads. Don't clear step_over_info.
5211 (infrun_async_inferior_event_handler): New function.
5212 (_initialize_infrun): Create async event handler with
5213 infrun_async_inferior_event_handler as callback.
5214 (infrun_async): New declaration.
5215 * target.c (target_async): New function.
5216 * target.h (target_async): Declare macro and readd as function
5217 declaration.
5218 * target/waitstatus.h (enum target_stop_reason)
5219 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5220 * thread.c (new_thread): Clear the new waitstatus field.
5221 (set_resumed): New function.
5222
5223 2015-08-07 Pedro Alves <palves@redhat.com>
5224
5225 * infrun.c (keep_going_stepped_thread): New function, factored out
5226 from ...
5227 (switch_back_to_stepped_thread): ... here.
5228
5229 2015-08-07 Pedro Alves <palves@redhat.com>
5230
5231 * infrun.c (currently_stepping): Extend intro comment.
5232 * target.h (target_resume): Extend intro comment.
5233
5234 2015-08-07 Pedro Alves <palves@redhat.com>
5235
5236 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5237 of inferior_ptid. If the stepped thread vanished, return 0
5238 instead of resuming here. Use reset_ecs. Print the prev_pc and
5239 the current stop_pc in log message. Clear trap_expected if the
5240 thread advanced. Don't pass currently_stepping to
5241 do_target_resume.
5242
5243 2015-08-07 Pedro Alves <palves@redhat.com>
5244
5245 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5246 * infrun.c (struct execution_control_state): Move higher up in the
5247 file.
5248 (reset_ecs): New function.
5249 (start_step_over): Now returns int. Rewrite to use
5250 keep_going_pass_signal instead of manually starting a displaced step.
5251 (resume): Don't call set_running here. If displaced stepping
5252 can't start now, clear trap_expected.
5253 (find_thread_needs_step_over): Delete function.
5254 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5255 If the current thread needs a step over, push it in the step-over
5256 chain. Don't set insert breakpoints nor call resume directly
5257 here. Instead rewrite to use start_step_over and
5258 keep_going_pass_signal.
5259 (finish_step_over): New function.
5260 (handle_signal_stop): Call finish_step_over instead of
5261 start_step_over.
5262 (switch_back_to_stepped_thread): If the event thread needs another
5263 step-over do that first. Use start_step_over.
5264 (keep_going_pass_signal): New function, factored out from ...
5265 (keep_going): ... here.
5266 (_initialize_infrun): Comment moved here.
5267 * thread.c (set_running_thread): New function.
5268 (set_running, finish_thread_state): Use set_running_thread.
5269
5270 2015-08-07 Pedro Alves <palves@redhat.com>
5271
5272 * gdbthread.h (struct thread_info) <step_over_prev,
5273 step_over_next>: New fields.
5274 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5275 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5276 declarations.
5277 * infrun.c (struct displaced_step_request): Delete.
5278 (struct displaced_step_inferior_state) <step_request_queue>:
5279 Delete field.
5280 (displaced_step_prepare): Assert that trap_expected is set. Use
5281 thread_step_over_chain_enqueue. Split starting a new displaced
5282 step to ...
5283 (start_step_over): ... this new function.
5284 (resume): Assert the thread isn't waiting for a step over already.
5285 (proceed): Assert the thread isn't waiting for a step over
5286 already.
5287 (infrun_thread_stop_requested): Adjust to remove threads from the
5288 embedded step-over chain.
5289 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5290 displaced_step_fixup.
5291 (handle_signal_stop): Call start_step_over after
5292 displaced_step_fixup.
5293 * infrun.h (step_over_queue_head): New declaration.
5294 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5295 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5296 (thread_step_over_chain_enqueue)
5297 (thread_step_over_chain_remove): New functions.
5298 (delete_thread_1): Remove thread from the step-over chain.
5299
5300 2015-08-07 Pedro Alves <palves@redhat.com>
5301
5302 * infrun.c (thread_still_needs_step_over): Rename to ...
5303 (thread_still_needs_step_over_bp): ... this.
5304 (enum step_over_what): New.
5305 (thread_still_needs_step_over): Reimplement.
5306
5307 2015-08-07 Pedro Alves <palves@redhat.com>
5308
5309 * remote.c (remote_wait_as): If not waiting for a stop reply,
5310 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5311 requested, don't block waiting forever.
5312
5313 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5314
5315 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5316 waitstatus pointers instead of an ecs. Adjust.
5317 (handle_inferior_event): Adjust caller.
5318
5319 2015-08-07 Pedro Alves <palves@redhat.com>
5320
5321 * infrun.c (handle_inferior_event): If we get
5322 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5323 mode, mark all threads of the exiting process as not-executing.
5324 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5325 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5326 exiting process, if inferior_ptid still points at a process.
5327 * thread.c (struct current_thread_cleanup) <next>: New field.
5328 (current_thread_cleanup_chain): New global.
5329 (restore_current_thread_ptid_changed): New function.
5330 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5331 current_thread_cleanup_chain list.
5332 (make_cleanup_restore_current_thread): Add the cleanup data to the
5333 current_thread_cleanup_chain list.
5334 (_initialize_thread): Install restore_current_thread_ptid_changed
5335 as thread_ptid_changed observer.
5336
5337 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5338
5339 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5340 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5341 smaller than expected.
5342
5343 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5344
5345 * stack.c (get_frame_language): Moved ...
5346 * frame.c (get_frame_language): ... to here.
5347 * language.h (get_frame_language): Declaration moved to frame.h.
5348 * frame.h: Add language.h include, for language enum.
5349 (get_frame_language): Declaration moved from language.h.
5350 * language.c: Add frame.h include.
5351 * top.c: Add frame.h include.
5352 * symtab.h (struct obj_section): Declare.
5353 (struct cmd_list_element): Declare.
5354
5355 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5356
5357 * language.c (show_language_command): Find selected frame before
5358 asking for the language of that frame.
5359 (set_language_command): Likewise.
5360 * language.h (get_frame_language): Add frame parameter.
5361 * stack.c (get_frame_language): Add frame parameter, assert
5362 parameter is not NULL, update comment and reindent.
5363 * top.c (check_frame_language_change): Pass the selected frame
5364 into get_frame_language.
5365
5366 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5367
5368 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5369 (pt_btrace_insn_flags): New.
5370 (ftrace_add_pt): Call pt_btrace_insn_flags.
5371 * btrace.h (btrace_insn_flag): New.
5372 (btrace_insn) <flags>: New.
5373 * record-btrace.c (btrace_insn_history): Print insn prefix.
5374 * NEWS: Announce it.
5375
5376 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5377
5378 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5379 * configure: Regenerate.
5380
5381 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5382
5383 * Makefile.in (LIBICONV): Define.
5384 (CLIBS): Add LIBICONV.
5385 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5386 * configure: Regenerate.
5387
5388 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5389 Pedro Alves <palves@redhat.com>
5390
5391 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5392 (arm_set_abi): Likewise.
5393 * ax-general.c (ax_print): Likewise.
5394 * c-exp.y (exp : string_exp): Likewise.
5395 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5396 (do_compile_dwarf_expr_to_c): Likewise.
5397 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5398 Likewise.
5399 * dwarf2expr.c (execute_stack_op): Likewise.
5400 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5401 (disassemble_dwarf_expression): Likewise.
5402 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5403 (read_array_order): Likewise.
5404 (abbrev_table_read_table): Likewise.
5405 (read_attribute_value): Likewise.
5406 (skip_unknown_opcode): Likewise.
5407 (dwarf_decode_macro_bytes): Likewise.
5408 (dwarf_decode_macros): Likewise.
5409 * eval.c (value_f90_subarray): Likewise.
5410 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5411 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5412 * infrun.c (handle_command): Likewise.
5413 * memory-map.c (memory_map_start_memory): Likewise.
5414 * osabi.c (set_osabi): Likewise.
5415 * parse.c (operator_length_standard): Likewise.
5416 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5417 single return point.
5418 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5419 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5420 (gdbpy_lookup_global_symbol): Likewise.
5421 * record-full.c (record_full_restore): Likewise.
5422 * regcache.c (regcache_register_status): Likewise.
5423 (regcache_raw_read): Likewise.
5424 (regcache_cooked_read): Likewise.
5425 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5426 * symtab.c (initialize_ordinary_address_classes): Likewise.
5427 * target-debug.h (target_debug_print_signals): Likewise.
5428 * utils.c (do_restore_current_language): Likewise.
5429
5430 2015-08-06 Clem Dickey <clemd@acm.org>
5431
5432 PR python/17136
5433 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5434
5435 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5436
5437 * complaints.c (enum complaint_series): Add newlines and remove
5438 out of date comment.
5439 (struct complaints) <series>: Change type to enum
5440 complaint_series and remove out of date comment.
5441 (symfile_complaint_hook): Use equivalent enum value
5442 ISOLATED_MESSAGE instead of 0.
5443
5444 2015-08-06 Pedro Alves <palves@redhat.com>
5445
5446 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5447 returned > 0.
5448
5449 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5450
5451 * common/agent.c (symbol_list) <required>: Remove.
5452
5453 2015-08-06 Pedro Alves <palves@redhat.com>
5454
5455 * target/waitstatus.h (enum target_stop_reason)
5456 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5457
5458 2015-08-05 Pedro Alves <palves@redhat.com>
5459 Joel Brobecker <brobecker@adacore.com>
5460
5461 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5462 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5463 case where BS->STOP is not set.
5464
5465 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5466
5467 * nat/gdb_thread_db.h: Add copyright header.
5468 Protect against multiple inclusion.
5469
5470 2015-08-05 Yao Qi <yao.qi@linaro.org>
5471
5472 * aarch64-linux-nat.c (get_thread_id): Remove.
5473 (debug_reg_change_callback): Call ptid_get_lwp instead of
5474 get_thread_id.
5475 (fetch_gregs_from_thread): Likewise.
5476 (store_gregs_to_thread): Likewise.
5477 (fetch_fpregs_from_thread): Likewise.
5478 (store_fpregs_to_thread): Likewise.
5479 (aarch64_linux_get_debug_reg_capacity): Likewise.
5480 * arm-linux-nat.c (get_thread_id): Remove.
5481 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5482 * xtensa-linux-nat.c (get_thread_id): Remove.
5483 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5484 * arm-linux-nat.c (get_thread_id): Remove.
5485 (GET_THREAD_ID): Remove.
5486 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5487 (store_fpregs, fetch_regs, store_regs): Likewise.
5488 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5489 (fetch_vfp_regs, store_vfp_regs): Likewise.
5490 (arm_linux_read_description): Likewise.
5491 (arm_linux_get_hwbp_cap): Likewise.
5492 * xtensa-linux-nat.c (get_thread_id): Remove.
5493 (GET_THREAD_ID): Remove.
5494 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5495 GET_THREAD_ID.
5496
5497 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5498
5499 * python/py-linetable.c: Fix case of Linetable to LineTable
5500 in docstrings and code comments.
5501 * python/py-symtab.c: Same.
5502
5503 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5504
5505 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5506
5507 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5508
5509 PR gdb/18767
5510 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5511 use.
5512
5513 2015-08-04 Pedro Alves <palves@redhat.com>
5514
5515 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5516 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5517 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5518 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5519 (td_thr_validate_ftype, td_thr_get_info_ftype)
5520 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5521 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5522 New typedefs.
5523 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5524 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5525 local macros and use them instead of verbose_dlsym and dlsym
5526 calls.
5527
5528 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5529
5530 * nios2-tdep.h: Include opcode/nios2.h here.
5531 (NIOS2_CDX_OPCODE_SIZE): New.
5532 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5533 * nios2-tdep.c: Don't include opcode/nios2.h here.
5534 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5535 4-byte read fails.
5536 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5537 (nios2_match_addi, nios2_match_orhi): Likewise.
5538 (nios2_match_stw, nios2_match_ldw): Likewise.
5539 (nios2_match_rdctl): Likewise.
5540 (nios2_match_stwm, nios2_match_ldwm): New.
5541 (nios2_match_branch): Add cases for R2 encodings.
5542 (nios2_match_jmpi, nios2_match_calli): Likewise.
5543 (nios2_match_jmpr, nios2_match_callr): Likewise.
5544 (nios2_match_break, nios2_match_trap): Likewise.
5545 (nios2_in_epilogue_p): Add R2 support.
5546 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5547 prologues.
5548 (nios2_breakpoint_from_pc): Handle R2 instructions.
5549 (nios2_get_next_pc): Likewise. Adjust call to
5550 tdep->syscall_next_pc.
5551 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5552 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5553 instruction field macros instead of literal hex values.
5554 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5555 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5556 Use size field from OP instead of assuming all instructions
5557 are the same size.
5558 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5559
5560 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5561
5562 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5563 variable warning with some compilers.
5564
5565 2015-08-03 Yao Qi <yao.qi@linaro.org>
5566
5567 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5568 in comment. Replace "rw" with "type".
5569 (arm_linux_remove_watchpoint): Change type of "rw" to
5570 "enum target_hw_bp_type".
5571
5572 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5573
5574 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5575 lookup_symbol.
5576 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5577 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5578 * mt-tdep.c (mt_skip_prologue): Likewise.
5579 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5580
5581 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5582
5583 * ada-exp.y (write_object_renaming): Replace struct
5584 ada_symbol_info with struct block_symbol. Update field
5585 references accordingly.
5586 (block_lookup, select_possible_type_sym): Likewise.
5587 (find_primitive_type): Likewise. Also update call to
5588 ada_lookup_symbol to extract the symbol itself.
5589 (write_var_or_type, write_name_assoc): Likewise.
5590 * ada-lang.h (struct ada_symbol_info): Remove.
5591 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5592 struct block_symbol.
5593 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5594 (ada_lookup_symbol): Return struct block_symbol instead of a
5595 mere symbol.
5596 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5597 with struct block_symbol.
5598 (resolve_subexp, ada_resolve_function, sort_choices,
5599 user_select_syms, is_nonfunction, add_defn_to_vec,
5600 num_defns_collected, defns_collected,
5601 symbols_are_identical_enums, remove_extra_symbols,
5602 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5603 ada_lookup_symbol_list, ada_iterate_over_symbols,
5604 ada_lookup_encoded_symbol, get_var_value): Likewise.
5605 (ada_lookup_symbol): Return a block_symbol instead of a mere
5606 symbol. Replace struct ada_symbol_info with struct
5607 block_symbol.
5608 (ada_lookup_symbol_nonlocal): Likewise.
5609 (standard_lookup): Make block passing explicit through
5610 lookup_symbol_in_language.
5611 * ada-tasks.c (get_tcb_types_info): Update the calls to
5612 lookup_symbol_in_language to extract the mere symbol out of the
5613 returned value.
5614 (ada_tasks_inferior_data_sniffer): Likewise.
5615 * ax-gdb.c (gen_static_field): Likewise for the call to
5616 lookup_symbol.
5617 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5618 lookup functions.
5619 (gen_expr): Likewise.
5620 * c-exp.y: Likewise. Remove uses of block_found.
5621 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5622 (classify_name): Likewise. Rename the "sym" local variable to
5623 "bsym".
5624 * c-valprint.c (print_unpacked_pointer): Likewise.
5625 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5626 "sym" parameter from struct symbol * to struct block_symbol.
5627 Use it to remove uses of block_found. Deal with struct
5628 block_symbol from lookup functions.
5629 (gcc_convert_symbol): Likewise. Update the call to
5630 convert_symbol_sym.
5631 * compile/compile-object-load.c (compile_object_load): Deal with
5632 struct block_symbol from lookup functions.
5633 * cp-namespace.c (cp_lookup_nested_symbol_1,
5634 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5635 cp_search_static_and_baseclasses,
5636 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5637 cp_lookup_symbol_imports_or_template,
5638 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5639 lookup_namespace_scope, cp_lookup_nonlocal,
5640 find_symbol_in_baseclass): Return struct block_symbol instead of
5641 mere symbols and deal with struct block_symbol from lookup
5642 functions.
5643 * cp-support.c (inspect_type, replace_typedefs,
5644 cp_lookup_rtti_type): Deal with struct block_symbol from
5645 lookup functions.
5646 * cp-support.h (cp_lookup_symbol_nonlocal,
5647 cp_lookup_symbol_from_namespace,
5648 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5649 Return struct block_symbol instead of mere symbols.
5650 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5651 push_module_name):
5652 Deal with struct block_symbol from lookup functions. Remove
5653 uses of block_found.
5654 * eval.c (evaluate_subexp_standard): Update call to
5655 cp_lookup_symbol_namespace.
5656 * f-exp.y: Deal with struct block_symbol from lookup functions.
5657 Remove uses of block_found.
5658 (yylex): Likewise.
5659 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5660 lookup_enum, lookup_template_type, check_typedef): Deal with
5661 struct block_symbol from lookup functions.
5662 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5663 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5664 (gdbscm_lookup_global_symbol): Likewise.
5665 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5666 * go-exp.y: Likewise. Remove uses of block_found.
5667 (package_name_p, classify_packaged_name, classify_name):
5668 Likewise.
5669 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5670 * jv-exp.y (push_variable): Likewise.
5671 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5672 * language.c (language_bool_type): Likewise.
5673 * language.h (struct language_defn): Update
5674 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5675 than a mere symbol.
5676 * linespec.c (find_label_symbols): Deal with struct block_symbol
5677 from lookup functions.
5678 * m2-exp.y: Likewise. Remove uses of block_found.
5679 (yylex): Likewise.
5680 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5681 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5682 * p-exp.y: Likewise. Remove uses of block_found.
5683 (yylex): Likewise.
5684 * p-valprint.c (pascal_val_print): Likewise.
5685 * parse.c (write_dollar_variable): Likewise. Remove uses of
5686 block_found.
5687 * parser-defs.h (struct symtoken): Turn the SYM field into a
5688 struct block_symbol.
5689 * printcmd.c (address_info): Deal with struct block_symbol from
5690 lookup functions.
5691 * python/py-frame.c (frapy_read_var): Likewise.
5692 * python/py-symbol.c (gdbpy_lookup_symbol,
5693 gdbpy_lookup_global_symbol): Likewise.
5694 * skip.c (skip_function_command): Likewise.
5695 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5696 block_symbol instead of a mere symbol.
5697 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5698 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5699 * solib.c (solib_global_lookup): Likewise.
5700 * solist.h (solib_global_lookup): Likewise.
5701 (struct target_so_ops): Update lookup_lib_global_symbol to
5702 return a struct block_symbol rather than a mere symbol.
5703 * source.c (select_source_symtab): Deal with struct block_symbol
5704 from lookup functions.
5705 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5706 Likewise.
5707 * symfile.c (set_initial_language): Likewise.
5708 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5709 block_symbol.
5710 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5711 (struct symbol_cache_slot): Turn the FOUND field into a struct
5712 block_symbol.
5713 (block_found): Remove.
5714 (eq_symbol_entry): Update to deal with struct block_symbol in
5715 cache slots.
5716 (symbol_cache_lookup): Return a struct block_symbol rather than
5717 a mere symbol.
5718 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5719 appropriately the cache slots. Update callers.
5720 (symbol_cache_dump): Update cache slots handling to the type
5721 change.
5722 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5723 lookup_symbol_aux, lookup_local_symbol,
5724 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5725 lookup_symbol_in_objfile_symtabs,
5726 lookup_symbol_in_objfile_from_linkage_name,
5727 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5728 lookup_symbol_in_static_block, lookup_static_symbol,
5729 lookup_global_symbol):
5730 Return a struct block_symbol rather than a mere symbol. Deal
5731 with struct block_symbol from other lookup functions. Remove
5732 uses of block_found.
5733 (lookup_symbol_in_block): Remove uses of block_found.
5734 (struct global_sym_lookup_data): Turn the RESULT field into a
5735 struct block_symbol.
5736 (lookup_symbol_global_iterator_cb): Update references to the
5737 RESULT field.
5738 (search_symbols): Deal with struct block_symbol from lookup
5739 functions.
5740 * symtab.h (struct block_symbol): New structure.
5741 (block_found): Remove.
5742 (lookup_symbol_in_language, lookup_symbol,
5743 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5744 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5745 lookup_global_symbol_from_objfile): Return a struct block_symbol
5746 rather than just a mere symbol. Update comments to remove
5747 mentions of block_found.
5748 * valops.c (find_function_in_inferior,
5749 value_struct_elt_for_reference, value_maybe_namespace_elt,
5750 value_of_this): Deal with struct block_symbol from lookup
5751 functions.
5752 * value.c (value_static_field, value_fn_field): Likewise.
5753
5754 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5755
5756 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5757 instead of integer.
5758
5759 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5760 Pedro Alves <palves@redhat.com>
5761
5762 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5763 type or value instead of integer.
5764 (aarch64_linux_insert_watchpoint): Likewise.
5765 (aarch64_linux_remove_watchpoint): Likewise.
5766 * ada-lang.c (ada_op_print_tab): Likewise.
5767 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5768 (amd64_linux_syscall_record_common): Likewise.
5769 * arch-utils.c (target_byte_order_user): Likewise.
5770 (default_byte_order): Likewise.
5771 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5772 (arm_linux_get_hwbp_type): Likewise.
5773 (arm_linux_hw_watchpoint_initialize): Likewise.
5774 (arm_linux_insert_watchpoint): Likewise.
5775 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5776 (arm_linux_syscall_record): Likewise.
5777 * breakpoint.c (update_watchpoint): Likewise.
5778 (breakpoint_here_p): Likewise.
5779 (bpstat_print): Likewise.
5780 (enable_breakpoint_disp): Likewise.
5781 * c-lang.c (c_op_print_tab): Likewise.
5782 * cli/cli-decode.c (add_info_alias): Likewise.
5783 * d-lang.c (d_op_print_tab): Likewise.
5784 * eval.c (evaluate_subexp_standard): Likewise.
5785 * f-exp.y (dot_ops): Likewise.
5786 (f77_keywords): Likewise.
5787 * f-lang.c (f_op_print_tab): Likewise.
5788 * go-lang.c (go_op_print_tab): Likewise.
5789 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5790 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5791 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5792 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5793 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5794 (struct scm_from_stringn_data): Likewise.
5795 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5796 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5797 (ia64_linux_remove_watchpoint): Likewise.
5798 (ia64_linux_can_use_hw_breakpoint): Likewise.
5799 * infrun.c (print_stop_event): Likewise.
5800 * jv-lang.c (java_op_print_tab): Likewise.
5801 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5802 * linux-nat.h (struct lwp_info): Likewise.
5803 * linux-thread-db.c (enable_thread_event): Likewise.
5804 * m2-lang.c (m2_op_print_tab): Likewise.
5805 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5806 (mi_cmd_stack_list_variables): Likewise.
5807 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5808 * mi/mi-out.c (mi_table_begin): Likewise.
5809 (mi_table_header): Likewise.
5810 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5811 (mips_linux_insert_watchpoint): Likewise.
5812 (mips_linux_remove_watchpoint): Likewise.
5813 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5814 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5815 (mips_linux_watch_type_to_irw): Likewise.
5816 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5817 (procfs_insert_hw_watchpoint): Likewise.
5818 (procfs_remove_hw_watchpoint): Likewise.
5819 (procfs_hw_watchpoint): Likewise.
5820 (procfs_can_use_hw_breakpoint): Likewise.
5821 (procfs_remove_hw_watchpoint): Likewise.
5822 (procfs_insert_hw_watchpoint): Likewise.
5823 * p-lang.c (pascal_op_print_tab): Likewise.
5824 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5825 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5826 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5827 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5828 (procfs_insert_watchpoint): Likewise.
5829 (procfs_remove_watchpoint): Likewise.
5830 * psymtab.c (recursively_search_psymtabs): Likewise.
5831 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5832 (m32r_insert_watchpoint): Likewise.
5833 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5834 (mips_insert_watchpoint): Likewise.
5835 (mips_remove_watchpoint): Likewise.
5836 * remote.c (watchpoint_to_Z_packet): Likewise.
5837 (remote_insert_watchpoint): Likewise.
5838 (remote_remove_watchpoint): Likewise.
5839 (remote_check_watch_resources): Likewise.
5840 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5841 (s390_remove_watchpoint): Likewise.
5842 (s390_can_use_hw_breakpoint): Likewise.
5843 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5844 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5845 * target.h (struct target_ops): Likewise.
5846 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5847 * ui-out.c (struct ui_out_hdr): Likewise.
5848 (append_header_to_list): Likewise.
5849 (get_next_header): Likewise.
5850 (verify_field): Likewise.
5851 (ui_out_begin): Likewise.
5852 (ui_out_field_int): Likewise.
5853 (ui_out_field_fmt_int): Likewise.
5854 (ui_out_field_skip): Likewise.
5855 (ui_out_field_string): Likewise.
5856 (ui_out_field_fmt): Likewise.
5857 * varobj.c (new_variable): Likewise.
5858 * x86-nat.c (x86_insert_watchpoint): Likewise.
5859 (x86_remove_watchpoint): Likewise.
5860 (x86_can_use_hw_breakpoint): Likewise.
5861 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5862 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5863 previously anonymous enumeration type..
5864 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5865 value.
5866 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5867 (target_debug_print_enum_bptype): New.
5868 * target-delegates.c: Regenerate.
5869
5870 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5871
5872 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5873 already says and disallow non-stack memory writes in the prologue.
5874
5875 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5876
5877 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5878 reflect how current GCC emits stack overflow checks. Match
5879 both trap and break instructions for backward compatbility.
5880 Disallow other trap and break instructions in the prologue.
5881
5882 2015-07-30 Pedro Alves <palves@redhat.com>
5883
5884 PR threads/18600
5885 * linux-nat.c (wait_lwp): Report to the core when thread group
5886 leader exits.
5887
5888 2015-07-30 Pedro Alves <palves@redhat.com>
5889 Simon Marchi <simon.marchi@ericsson.com>
5890
5891 PR threads/18600
5892 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5893 mark the new thread as resumed. Remove STOPPING parameter.
5894 (wait_lwp): Adjust call to linux_handle_extended_wait.
5895 (linux_nat_filter_event): Adjust call to
5896 linux_handle_extended_wait.
5897 (resume_stopped_resumed_lwps): Add debug output.
5898
5899 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5900
5901 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5902 isize argument.
5903 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5904 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5905 gdbarch_fast_tracepoint_valid_at.
5906 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5907 * gdbarch.h: Regenerate.
5908 * gdbarch.c: Regenerate.
5909 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5910 argument. Do not set it.
5911 * remote.c (remote_download_tracepoint): Adjust call to
5912 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5913 the instruction length.
5914
5915 2015-07-30 Yao Qi <yao.qi@linaro.org>
5916
5917 * arm-tdep.h (enum gdb_regnum): Move it to ...
5918 * arch/arm.h: ... here. New file.
5919 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5920
5921 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5922
5923 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5924 Change its type to int *.
5925 (decode_br): Rename link argument to is_blr. Change its type to
5926 int *.
5927 (decode_cb): Rename op argument to is_cbnz. Change its type to
5928 int *.
5929 (decode_tb): Rename op argument to is_tbnz. Change its type to
5930 int *. Set is_tbnz to either 1 or 0.
5931 (aarch64_analyze_prologue): Change type of is_link to int. Add
5932 new variables is_cbnz and is_tbnz. Adjust call to
5933 aarch64_decode_cb and aarch64_decode_tb.
5934
5935 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5936
5937 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5938 parameter.
5939 (mips_linux_new_thread): Likewise.
5940 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5941
5942 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5943
5944 * top.c: Include "tui/tui.h".
5945 (undo_terminal_modifications_before_exit): New static function.
5946 (quit_force): Use it.
5947
5948 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5949
5950 * target.c (terminal_state): Initialize to terminal_is_ours.
5951
5952 2015-07-29 Yao Qi <yao.qi@linaro.org>
5953
5954 PR record/18691
5955 * dcache.c (dcache_read_memory_partial): Call
5956 raw_memory_xfer_partial.
5957 * target.c (raw_memory_xfer_partial): Make it non-static.
5958 * target.h (raw_memory_xfer_partial): Declare.
5959
5960 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5961
5962 * c-valprint.c (c_val_print_array): Consider addressable memory
5963 unit size.
5964 (c_val_print_ptr): Likewise.
5965 (c_val_print_int): Likewise.
5966 * findvar.c (read_frame_register_value): Likewise.
5967 * valarith.c (find_size_for_pointer_math): Likewise.
5968 (value_ptrdiff): Likewise.
5969 (value_subscripted_rvalue): Likewise.
5970 * valops.c (read_value_memory): Likewise (and rename variables).
5971 (value_assign): Likewise.
5972 (value_repeat): Likewise.
5973 (value_array): Likewise.
5974 (value_slice): Likewise.
5975 * valprint.c (generic_val_print_ptr): Likewise.
5976 (generic_val_print_enum): Likewise.
5977 (generic_val_print_bool): Likewise.
5978 (generic_val_print_int): Likewise.
5979 (generic_val_print_char): Likewise.
5980 (generic_val_print_float): Likewise.
5981 (generic_val_print_decfloat): Likewise.
5982 (generic_val_print_complex): Likewise.
5983 (val_print_scalar_formatted): Likewise.
5984 (val_print_array_elements): Likewise.
5985 * value.c (set_value_parent): Likewise.
5986 (value_contents_copy_raw): Likewise.
5987 (set_internalvar_component): Likewise.
5988 (value_primitive_field): Likewise.
5989 (value_fetch_lazy): Likewise.
5990 * value.h (read_value_memory): Update comment.
5991
5992 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5993
5994 * value.c (get_value_arch): New function.
5995 * value.h (get_value_arch): New declaration.
5996
5997 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5998
5999 * value.c (struct value): Update comments.
6000
6001 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6002
6003 * gdbtypes.c (type_length_units): New function.
6004 * gdbtypes.h (type_length_units): New declaration.
6005 (struct type) <length>: Update comment.
6006
6007 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6008
6009 * valprint.c (generic_val_print): Factor out complex
6010 printing code to ...
6011 (generic_val_print_complex): ... this new function.
6012
6013 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6014
6015 * valprint.c (generic_val_print): Factor out decfloat
6016 printing code to ...
6017 (generic_val_print_decfloat): ... this new function.
6018
6019 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6020
6021 * valprint.c (generic_val_print): Factor out float
6022 printing code to ...
6023 (generic_val_print_float): ... this new function.
6024
6025 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6026
6027 * valprint.c (generic_val_print): Factor out char
6028 printing code to ...
6029 (generic_val_print_char): ... this new function.
6030
6031 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6032
6033 * valprint.c (generic_val_print): Factor out integer
6034 printing code to ...
6035 (generic_val_print_int): ... this new function.
6036
6037 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6038
6039 * valprint.c (generic_val_print): Factor out bool
6040 printing code to ...
6041 (generic_val_print_bool): ... this new function.
6042
6043 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6044
6045 * valprint.c (generic_val_print): Factor out function/method
6046 printing code to ...
6047 (generic_val_print_func): ... this new function.
6048
6049 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6050
6051 * valprint.c (generic_val_print): Factor out flags
6052 printing code to ...
6053 (generic_val_print_flags): ... this new function.
6054
6055 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6056
6057 * valprint.c (generic_val_print): Factor out enum
6058 printing code to ...
6059 (generic_val_print_enum): ... this new function.
6060
6061 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6062
6063 * valprint.c (generic_val_print): Factor out reference
6064 printing code to ...
6065 (generic_val_print_ref): ... this new function.
6066
6067 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6068
6069 * valprint.c (generic_val_print): Factor out memberptr
6070 printing code to ...
6071 (generic_val_print_memberptr): ... this new function.
6072
6073 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6074
6075 * valprint.c (generic_val_print): Factor out pointer
6076 printing code to ...
6077 (generic_val_print_ptr): ... this new function.
6078
6079 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6080
6081 * valprint.c (generic_val_print): Factor out array
6082 printing code to ...
6083 (generic_val_print_array): ... this new function.
6084
6085 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6086
6087 * valprint.c (generic_val_print): Factor out
6088 print_unpacked_pointer code to ...
6089 (print_unpacked_pointer): ... this new function.
6090
6091 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6092
6093 * event-top.c (handle_sigterm): Don't inspect
6094 target_can_async_p. Always set the quit flag and always mark
6095 the async signal handler.
6096
6097 2015-07-27 Yao Qi <yao.qi@linaro.org>
6098
6099 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6100
6101 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6102
6103 * remote.c (read_ptid): Return null_ptid when no thread id
6104 is found.
6105 (remote_current_thread): Add log warning for malformed
6106 qC reply.
6107 (remote_start_remote): Add log warning when current thread
6108 not found.
6109
6110 2015-07-24 Pedro Alves <palves@redhat.com>
6111
6112 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6113 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6114 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6115
6116 2015-07-24 Pedro Alves <palves@redhat.com>
6117
6118 PR gdb/18717
6119 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6120 is resumed, and extend the debug log.
6121
6122 2015-07-24 Pedro Alves <palves@redhat.com>
6123
6124 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6125
6126 2015-07-24 Pedro Alves <palves@redhat.com>
6127
6128 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6129 sys/ptrace.h.
6130 * alpha-linux-nat.c: Likewise.
6131 * amd64-linux-nat.c: Likewise.
6132 * arm-linux-nat.c: Likewise.
6133 * hppa-linux-nat.c: Likewise.
6134 * i386-linux-nat.c: Likewise.
6135 * ia64-linux-nat.c: Likewise.
6136 * linux-fork.c: Likewise.
6137 * linux-nat.c: Likewise.
6138 * m32r-linux-nat.c: Likewise.
6139 * m68klinux-nat.c: Likewise.
6140 * mips-linux-nat.c: Likewise.
6141 * nat/linux-btrace.c: Likewise.
6142 * nat/linux-ptrace.c: Likewise.
6143 * nat/linux-ptrace.h
6144 * nat/mips-linux-watch.c: Likewise.
6145 * nat/x86-linux-dregs.c: Likewise.
6146 * ppc-linux-nat.c: Likewise.
6147 * s390-linux-nat.c: Likewise.
6148 * spu-linux-nat.c: Likewise.
6149 * tilegx-linux-nat.c: Likewise.
6150 * x86-linux-nat.c: Likewise.
6151 * xtensa-linux-nat.c: Likewise.
6152
6153 2015-07-24 Pedro Alves <palves@redhat.com>
6154
6155 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6156 __ptrace_request as first parameter type instead of int.
6157 (PTRACE_TYPE_ARG1): Define.
6158 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6159 that casts first argument to PTRACE_TYPE_ARG1.
6160 * config.in: Regenerate.
6161 * configure: Regenerate.
6162
6163 2015-07-24 Pedro Alves <palves@redhat.com>
6164
6165 * gdb_ptrace.h: Move ...
6166 * nat/gdb_ptrace.h: ... here.
6167 * inf-ptrace.c: Adjust.
6168
6169 2015-07-24 Pedro Alves <palves@redhat.com>
6170
6171 * acinclude.m4: Include ptrace.m4.
6172 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6173 * ptrace.m4: ... to this new file.
6174
6175 2015-07-23 Doug Evans <dje@google.com>
6176
6177 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6178 (load_cu): Handle dummy CUs.
6179 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6180 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6181
6182 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6183
6184 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6185 documentation to say that it returns a list rather than
6186 a FrozenSet.
6187 (linetable_object_methods): Update the docstring of the
6188 "source_line" entry.
6189
6190 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6191
6192 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6193 type to the recursive call instead of the original (maybe
6194 TYPE_CODE_TYPEDEF) type.
6195
6196 2015-07-23 Yao Qi <yao.qi@linaro.org>
6197
6198 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6199 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6200 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6201
6202 2015-07-21 Yao Qi <yao.qi@linaro.org>
6203
6204 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6205 Move it to nat/aarch64-linux-hw-point.c.
6206 (aarch64_linux_child_post_startup_inferior): Update.
6207 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6208 New function.
6209 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6210 Declare it.
6211
6212 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6213
6214 * common/btrace-common.c (btrace_data_append): Change case label.
6215
6216 2015-07-20 Yao Qi <yao.qi@linaro.org>
6217
6218 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6219 Re-indent the code.
6220 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6221 "unsigned long long".
6222
6223 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6224
6225 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6226 to be set for SEC_ALLOC sections too.
6227
6228 2015-07-17 Yao Qi <yao.qi@linaro.org>
6229
6230 * Makefile.in (HFILES_NO_SRCDIR): Add
6231 nat/aarch64-linux-hw-point.h.
6232 (aarch64-linux-hw-point.o): New rule.
6233 * nat/aarch64-linux-hw-point.h: New file.
6234 * nat/aarch64-linux-hw-point.c: New file.
6235 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6236 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6237 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6238 (AARCH64_HWP_ALIGNMENT): Likewise.
6239 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6240 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6241 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6242 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6243 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6244 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6245 (struct aarch64_debug_reg_state): Likewise.
6246 (struct arch_lwp_info): Likewise.
6247 (aarch64_linux_set_debug_regs): Likewise.
6248 (aarch64_notify_debug_reg_change): Remove static.
6249 (aarch64_align_watchpoint): Likewise.
6250 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6251 (aarch64_watchpoint_length): Likewise.
6252 (aarch64_point_encode_ctrl_reg): Likewise
6253 (aarch64_point_is_aligned): Likewise.
6254 (aarch64_dr_state_insert_one_point): Likewise.
6255 (aarch64_dr_state_remove_one_point): Likewise.
6256 (aarch64_handle_breakpoint): Likewise.
6257 (aarch64_handle_aligned_watchpoint): Likewise.
6258 (aarch64_handle_unaligned_watchpoint): Likewise.
6259 (aarch64_handle_watchpoint): Likewise.
6260 * config/aarch64/linux.mh (NAT_FILE): Add
6261 aarch64-linux-hw-point.o.
6262
6263 2015-07-17 Yao Qi <yao.qi@linaro.org>
6264
6265 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6266 state and don't call aarch64_get_debug_reg_state. All callers
6267 update.
6268 (aarch64_linux_insert_hw_breakpoint): Call
6269 aarch64_get_debug_reg_state earlier.
6270 (aarch64_linux_remove_hw_breakpoint): Likewise.
6271 (aarch64_handle_aligned_watchpoint): Add argument state and
6272 don't call aarch64_get_debug_reg_state. All callers update.
6273 (aarch64_handle_unaligned_watchpoint): Likewise.
6274 (aarch64_handle_watchpoint): Add argument state.
6275 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6276 earlier.
6277 (aarch64_linux_remove_watchpoint): Likewise.
6278
6279 2015-07-17 Yao Qi <yao.qi@linaro.org>
6280
6281 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6282 debug_printf.
6283 (aarch64_handle_unaligned_watchpoint): Likewise.
6284
6285 2015-07-17 Yao Qi <yao.qi@linaro.org>
6286
6287 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6288 argument type's type to 'enum target_hw_bp_type'.
6289 (aarch64_dr_state_remove_one_point): Likewise.
6290 (aarch64_handle_breakpoint): Likewise.
6291 (aarch64_linux_insert_hw_breakpoint): Likewise.
6292 (aarch64_linux_remove_hw_breakpoint): Likewise.
6293 (aarch64_handle_aligned_watchpoint): Likewise.
6294
6295 2015-07-17 Yao Qi <yao.qi@linaro.org>
6296
6297 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6298 ptid_get_pid instead of get_thread_id.
6299
6300 2015-07-17 Yao Qi <yao.qi@linaro.org>
6301
6302 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6303 (add_current_inferior_and_thread): Don't initialise ptid.
6304
6305 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6306
6307 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6308 unavailable if invalid.
6309
6310 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6311
6312 Revert the previous 6 commits:
6313 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6314 Move gdb_regex* to common/
6315 Prepare linux_find_memory_regions_full & co. for move
6316 Move linux_find_memory_regions_full & co.
6317 gdbserver build-id attribute generator
6318 Validate symbol file using build-id
6319
6320 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6321 Jan Kratochvil <jan.kratochvil@redhat.com>
6322
6323 Validate symbol file using build-id.
6324 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6325 and 'show validate-build-id'. Add build-id attribute.
6326 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6327 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6328 * solib-frv.c (_initialize_frv_solib): Ditto.
6329 * solib-spu.c (set_spu_solib_ops): Ditto.
6330 * solib-svr4.c: Include rsp-low.h.
6331 (NOTE_GNU_BUILD_ID_NAME): New define.
6332 (svr4_validate): New function.
6333 (svr4_copy_library_list): Duplicate field build_id.
6334 (library_list_start_library): Parse 'build-id' attribute.
6335 (svr4_library_attributes): Add 'build-id' attribute.
6336 (_initialize_svr4_solib): Assign validate value.
6337 * solib-target.c (solib.h): Include.
6338 (_initialize_solib_target): Assign validate value.
6339 * solib.c (validate_build_id, show_validate_build_id): New.
6340 (solib_map_sections): Use ops->validate.
6341 (clear_so): Free build_id.
6342 (default_solib_validate): New function.
6343 (_initialize_solib): Add "validate-build-id".
6344 * solib.h (default_solib_validate): New declaration.
6345 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6346 (target_so_ops): New field 'validate'.
6347
6348 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6349 Jan Kratochvil <jan.kratochvil@redhat.com>
6350
6351 gdbserver build-id attribute generator.
6352 * features/library-list-svr4.dtd (library-list-svr4): New
6353 'build-id' attribute.
6354
6355 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6356 Jan Kratochvil <jan.kratochvil@redhat.com>
6357
6358 Move linux_find_memory_regions_full & co.
6359 * linux-tdep.c (nat/linux-maps.h): Include.
6360 (gdb_regex.h): Remove the include.
6361 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6362 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6363 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6364 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6365 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6366 and target/target.h.
6367 (struct smaps_vmflags, read_mapping, decode_vmflags)
6368 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6369 (linux_find_memory_regions_full): Move from linux-tdep.c.
6370 * nat/linux-maps.h (read_mapping): New declaration.
6371 (linux_find_memory_region_ftype, enum filterflags): Moved from
6372 linux-tdep.c.
6373 (linux_find_memory_regions_full): New declaration.
6374 * target.c (target/target-utils.h): Include.
6375 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6376 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6377 definitions to target/target-utils.c.
6378 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6379 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6380 from target.c.
6381 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6382 (read_alloc): New declaration.
6383 (read_stralloc_func_ftype): New typedef.
6384 (read_stralloc): New declaration.
6385 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6386
6387 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6388 Jan Kratochvil <jan.kratochvil@redhat.com>
6389
6390 Prepare linux_find_memory_regions_full & co. for move.
6391 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6392 (linux_find_memory_regions_full): Change signature and prepare
6393 for moving to linux-maps.
6394 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6395 (linux_find_memory_regions_thunk): New.
6396 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6397 (linux_find_memory_regions_gdb): New.
6398 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6399 (linux_make_mappings_corefile_notes): Use
6400 linux_find_memory_regions_gdb.
6401 * target.c (read_alloc_pread_ftype): New typedef.
6402 (target_fileio_read_alloc_1_pread): New function.
6403 (read_alloc): Refactor from target_fileio_read_alloc_1.
6404 (read_stralloc_func_ftype): New typedef.
6405 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6406 (read_stralloc): Refactored from target_fileio_read_stralloc.
6407 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6408
6409 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6410
6411 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6412 common/gdb_regex.h.
6413 (COMMON_OBS): Add gdb_regex.o.
6414 (gdb_regex.o): New.
6415 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6416 --without-included-regex and USE_INCLUDED_REGEX.
6417 * common/gdb_regex.c: New file from utils.c functions.
6418 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6419 file wrapping define name.
6420 * configure: Rebuilt.
6421 * configure.ac (gdb_use_included_regex, --without-included-regex)
6422 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6423 * gdb_regex.h: Move it to common/gdb_regex.h.
6424 * utils.c: Remove include gdb_regex.h.
6425 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6426 (compile_rx_or_error): Move them to common/gdb_regex.c.
6427
6428 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6429 Jan Kratochvil <jan.kratochvil@redhat.com>
6430
6431 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6432 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6433 common/target-utils.h.
6434 (COMMON_OBS): Add target-utils.o.
6435 (linux-maps.o, target-utils.o): New.
6436 * target/target-utils.c: New file.
6437 * target/target-utils.h: New file.
6438 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6439 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6440 * nat/linux-maps.c: New file.
6441 * nat/linux-maps.h: New file.
6442
6443 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6444 Pedro Alves <palves@redhat.com>
6445
6446 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6447 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6448 (perf_event_read_bts): Change the type of SIZE and READ.
6449 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6450 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6451 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6452 mmap page.
6453 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6454 buffer size to UINT_MAX.
6455 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6456 DATA_TAIL.
6457 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6458 <last_head>: Change type.
6459 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6460 * common/btrace-common.c (btrace_data_append): Change the type of
6461 SIZE.
6462 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6463 check.
6464
6465 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6466
6467 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6468 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6469 with check_typedef.
6470 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6471 (ada_array_length): Likewise.
6472 (find_parallel_type_by_descriptive_type): Likewise.
6473 (ada_check_typedef): Likewise.
6474 * arm-tdep.c (arm_return_in_memory): Likewise.
6475 * ax-gdb.c (gen_trace_static_fields): Likewise.
6476 (gen_struct_ref_recursive): Likewise.
6477 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6478 (variable: block COLONCOLON name): Likewise.
6479 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6480 * c-lang.c (classify_type): Likewise.
6481 * c-typeprint.c (c_print_type): Likewise.
6482 (c_print_typedef): Likewise.
6483 (c_type_print_base): Likewise.
6484 * c-valprint.c (c_val_print): Likewise.
6485 * compile/compile-c-types.c (convert_type): Likewise.
6486 * compile/compile-object-load.c (get_out_value_type): Likewise.
6487 * completer.c (add_struct_fields): Likewise.
6488 (expression_completer): Likewise.
6489 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6490 (cp_lookup_nested_symbol_1): Likewise.
6491 (cp_lookup_nested_symbol): Likewise.
6492 * cp-valprint.c (cp_print_value_fields): Likewise.
6493 (cp_print_static_field): Likewise.
6494 * d-valprint.c (d_val_print): Likewise.
6495 * eval.c (evaluate_subexp_standard): Likewise.
6496 (evaluate_subexp_for_sizeof): Likewise.
6497 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6498 * f-typeprint.c (f_type_print_base): Likewise.
6499 * f-valprint.c (f_val_print): Likewise.
6500 * gdbtypes.c (get_discrete_bounds): Likewise.
6501 (create_array_type_with_stride): Likewise.
6502 (type_name_no_tag_or_error): Likewise.
6503 (lookup_struct_elt_type): Likewise.
6504 (get_unsigned_type_max): Likewise.
6505 (internal_type_vptr_fieldno): Likewise.
6506 (set_type_vptr_fieldno): Likewise.
6507 (internal_type_vptr_basetype): Likewise.
6508 (set_type_vptr_basetype): Likewise.
6509 (get_vptr_fieldno): Likewise.
6510 (is_integral_type): Likewise.
6511 (is_scalar_type): Likewise.
6512 (is_scalar_type_recursive): Likewise.
6513 (distance_to_ancestor): Likewise.
6514 (is_unique_ancestor_worker): Likewise.
6515 (check_types_equal): Likewise.
6516 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6517
6518 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6519
6520 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6521 also test for language_d.
6522 (dwarf2_compute_name): Likewise.
6523 (read_func_scope): Likewise.
6524 (read_structure_type): Likewise.
6525 (new_symbol_full): Likewise.
6526 (determine_prefix): Likewise.
6527 (read_import_statement): Use dot as the separator for language_d.
6528 (typename_concat): Likewise, but don't prefix the D main function.
6529
6530 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6531
6532 * nat/linux-namespaces.c (setns): Rename from this ...
6533 (do_setns): ... to this. Support calling setns if it exists.
6534 (mnsh_handle_setns): Call do_setns.
6535
6536 2015-07-13 Yao Qi <yao.qi@linaro.org>
6537
6538 * exec.c (exec_file_attach): Add period at the end of error
6539 message.
6540
6541 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6542
6543 * tui/tui-win.c (window_name_completer): New function.
6544 (focus_completer): Call window_name_completer. All old content
6545 moved into window_name_completer.
6546 (winheight_completer): New function.
6547 (_initialize_tui_win): Rename variable. Add completer to
6548 winheight command. Update doc string on winheight.
6549
6550 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6551
6552 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6553 all nios2 mach variants.
6554
6555 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6556
6557 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6558 of target_read_memory.
6559
6560 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6561
6562 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6563 string copy.
6564 (parse_scrolling_args): Likewise.
6565
6566 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6569 names in this function.
6570
6571 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6572
6573 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6574 (CMD_NAME): Likewise.
6575 (DATA_NAME): Likewise.
6576 (DISASSEM_NAME): Likewise.
6577 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6578 (tui_set_win_height): Likewise.
6579 (parse_scrolling_args): Likewise.
6580
6581 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6582
6583 * record-btrace.c (record_btrace_goto_begin)
6584 (record_btrace_goto_end, record_btrace_goto): Move call to
6585 print_stack_frame ...
6586 (record_btrace_set_replay): ... here. Set stop_pc.
6587 * record-full.c (record_full_goto_entry): Set stop_pc.
6588
6589 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6590
6591 * NEWS: Mention support for tracepoints on aarch64-linux.
6592
6593 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6594
6595 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6596 function. Return 1.
6597 (the_low_target): Install it.
6598
6599 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6600
6601 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6602 * gdb.trace/collection.exp: Likewise.
6603 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6604 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6605 * gdb.trace/report.exp: Likewise.
6606 * gdb.trace/trace-break.exp: Likewise.
6607 * gdb.trace/unavailable.exp: Likewise.
6608 * gdb.trace/while-dyn.exp: Likewise.
6609
6610 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6611
6612 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6613 (aarch64_gen_return_address): New function.
6614 (aarch64_gdbarch_init): Hook it.
6615
6616 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6617
6618 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6619 swallow NOT_AVAILABLE_ERROR.
6620 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6621 available_p is not set.
6622 (aarch64_stub_frame_unwind_stop_reason): New function.
6623 (aarch64_stub_unwind): Install it.
6624
6625 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6626
6627 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6628 field.
6629 (aarch64_make_prologue_cache_1): New function, factored out from
6630 aarch64_make_prologue_cache. Do not allocate cache. Set
6631 available_p.
6632 (aarch64_make_prologue_cache): Reimplement wrapping
6633 aarch64_make_prologue_cache_1, and swallowing
6634 NOT_AVAILABLE_ERROR.
6635 (aarch64_prologue_frame_unwind_stop_reason): New function.
6636 Return UNWIND_UNAVAILABLE if available_p is not set.
6637 (aarch64_prologue_unwind): Install it.
6638 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6639 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6640 frame_id_build_unavailable_stack if available_p is not set.
6641
6642 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6643
6644 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6645 fields.
6646 (aarch64_scan_prologue): Set prev_pc.
6647 (aarch64_make_prologue_cache): Set func.
6648 (aarch64_make_stub_cache): Set prev_pc.
6649 (aarch64_prologue_this_id): Remove local variables id, pc and
6650 func. Read prev_pc and func from cache.
6651 (aarch64_stub_this_id): Read prev_pc from cache.
6652
6653 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6654
6655 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6656 argument this_cache. Remove unused local variables reg and
6657 unwound_fp. Return early if this_cache is already set. Set
6658 this_cache.
6659 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6660
6661 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6662
6663 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6664 New argument this_cache. Return early if this_cache is already
6665 set. Set this_cache.
6666 (aarch64_prologue_this_id): Update call to
6667 aarch64_make_prologue_cache.
6668 (aarch64_prologue_prev_register): Likewise.
6669 (aarch64_normal_frame_base): Likewise.
6670
6671 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6672
6673 * c-valprint.c (c_val_print): Factor out memberptr printing code
6674 from c_val_print to ...
6675 (c_val_print_memberptr): ... this new function.
6676
6677 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6678
6679 * c-valprint.c (c_val_print): Factor out int printing code to ...
6680 (c_val_print_int): ... this new function.
6681
6682 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6683
6684 * c-valprint.c (c_val_print): Factor out struct and union
6685 printing code to ...
6686 (c_val_print_struct): ... this new function ...
6687 (c_val_print_union): ... and this new function.
6688
6689 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6690
6691 * c-valprint.c (c_val_print): Factor out pointer printing code
6692 to ...
6693 (c_val_print_ptr): ... this new function.
6694
6695 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6696
6697 * c-valprint.c (c_valprint): Factor our array printing code from
6698 c_val_print to ...
6699 (c_val_print_array): ... this new function.
6700
6701 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6702
6703 * c-valprint.c (c_val_print): Factor out pointer printing code
6704 to ...
6705 (print_unpacked_pointer): ... this new function.
6706
6707 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6708
6709 * c-valprint.c (c_val_print): Remove an assignment to i and move
6710 its declaration.
6711
6712 2015-07-09 Yao Qi <yao.qi@linaro.org>
6713
6714 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6715 argument ptid. Update comments. Caller update.
6716
6717 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6718
6719 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6720 mnt packets.
6721
6722 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6723
6724 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6725
6726 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6727
6728 * progspace.c (delete_program_space): Add missing spaces.
6729
6730 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6731
6732 * inferior.c (delete_inferior_1): Rename to ...
6733 (delete_inferior): ..., remove 'silent' parameter, delete
6734 program space when unused and remove call to prune_program_spaces.
6735 Remove the old, unused, delete_inferior.
6736 (delete_inferior_silent): Remove.
6737 (prune_inferiors): Change call from delete_inferior_1 to
6738 delete_inferior and remove 'silent' parameter. Remove call to
6739 prune_program_spaces.
6740 (remove_inferior_command): Idem.
6741 * inferior.h (delete_inferior_1): Rename to...
6742 (delete_inferior): ..., remove 'silent' parameter and remove the
6743 original delete_inferior.
6744 (delete_inferior_silent): Remove.
6745 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6746 delete_inferior_1 to delete_inferior and remove 'silent'
6747 parameter.
6748 * progspace.c (prune_program_spaces): Remove.
6749 (pspace_empty_p): Rename to...
6750 (program_space_empty_p): ... and make non-static.
6751 (delete_program_space): New.
6752 * progspace.h (prune_program_spaces): Remove declaration.
6753 (program_space_empty_p): New declaration.
6754 (delete_program_space): New declaration.
6755 * monitor.c (monitor_close): Replace call to
6756 delete_thread_silent and delete_inferior_silent with
6757 discard_all_inferiors.
6758
6759 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6760
6761 * defs.h (deprecated_register_changed_hook): Remove prototype.
6762 * interps.c (clear_iterpreter_hooks): Remove reference to
6763 deprecated_register_changed_hook.
6764 * top.c (deprecated_register_changed_hook): Remove prototype.
6765 * valops.c (value_assign): Remove reference to
6766 deprecated_register_changed_hook.
6767 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6768 Add comment documenting the function.
6769 (tui_register_changed_observer): Define.
6770 (tui_install_hooks): Remove reference to
6771 deprecated_register_changed_hook. Set
6772 tui_register_changed_observer.
6773 (tui_remove_hooks): Remove reference to
6774 deprecated_register_changed_hook. Unset
6775 tui_register_changed_observer.
6776
6777 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6778
6779 PR compile/18484
6780 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6781
6782 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6783
6784 PR exp/18617
6785 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6786
6787 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6788
6789 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6790
6791 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6792
6793 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6794 Use safe_strerror() instead of strerror().
6795
6796 2015-07-07 Yao Qi <yao.qi@linaro.org>
6797
6798 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6799 * features/arm-with-m-fpa-layout.c: Regenerated.
6800 * features/arm-with-m-vfp-d16.xml: Likewise.
6801 * features/arm-with-m-vfp-d16.c: Regenerated.
6802 * features/arm-with-m.xml: Likewise.
6803 * features/arm-with-m.c: Regenerated.
6804 * features/arm-with-neon.xml: Likewise.
6805 * features/arm-with-neon.c: Regenerated.
6806 * features/arm-with-vfpv2.xml: Likewise.
6807 * features/arm-with-vfpv2.c: Regenerated.
6808 * features/arm-with-vfpv3.xml: Likewise.
6809 * features/arm-with-vfpv3.c: Regenerated.
6810
6811 2015-07-07 Yao Qi <yao.qi@linaro.org>
6812
6813 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6814 arm-linux-nat.c.
6815 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6816 elf/external.h.
6817 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6818 if target is 32-bit.
6819 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6820 if target is 32-bit.
6821 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6822 if target is 32-bit.
6823 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6824 if target is 32-bit.
6825 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6826 (aarch64_linux_read_description): Return the right target
6827 description.
6828 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6829 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6830 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6831 arm-linux-tdep.o.
6832
6833 2015-07-07 Yao Qi <yao.qi@linaro.org>
6834
6835 * aarch32-linux-nat.c: New file.
6836 * aarch32-linux-nat.h: New file.
6837 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6838 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6839 aarch32_gp_regcache_supply.
6840 (store_regs): Move code to aarch32-linux-nat.c. Call
6841 aarch32_gp_regcache_collect.
6842 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6843 aarch32_vfp_regcache_supply.
6844 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6845 aarch32_vfp_regcache_collect.
6846 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6847
6848 2015-07-07 Yao Qi <yao.qi@linaro.org>
6849
6850 * arm-linux-nat.c (store_fpregister): Remove.
6851 (store_register): Likewise.
6852 (fetch_fpregister): Likewise.
6853 (fetch_register): Likewise.
6854 (arm_linux_store_inferior_registers): Call store_regs and
6855 store_fpregs instead.
6856 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6857 fetch_regs instead.
6858
6859 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6860
6861 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6862 and focus commands.
6863
6864 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6865
6866 * NEWS: Create a new section for the next release branch.
6867 Rename the section of the current branch, now that it has
6868 been cut.
6869
6870 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6871
6872 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6873 * version.in: Bump version to 7.10.50.DATE-cvs.
6874
6875 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6876
6877 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6878 breakpoints in a special way.
6879 (remove_breakpoint): Likewise.
6880 (mark_breakpoints_out): Likewise.
6881
6882 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6883
6884 * doc/gdb.texinfo (TUI): Add comma after @xref.
6885
6886 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6887
6888 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6889 instead of casting the structure type.
6890
6891 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6892
6893 * valops.c (search_struct_field): Remove OFFSET parameter.
6894 (value_cast_structs): Adjust calls to search_struct_field.
6895 (value_struct_elt): Same.
6896 (find_overload_match): Same.
6897
6898 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6899
6900 * value.c (value_fetch_lazy): Update comment, change return
6901 value to void.
6902 * value.h (value_fetch_lazy): Change return value to void.
6903
6904 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6905
6906 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6907 (tui_win_name): Make parameter and result const.
6908 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6909
6910 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6911
6912 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6913 use printf_unfiltered.
6914 (set_mpx_cmd): Add missing trailing space to command string
6915 literal.
6916 (_initialize_i386_tdep): Give the "mpx" prefix command its
6917 correct name.
6918
6919 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6920
6921 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6922 (enum rx_frame_type): New.
6923 (struct rx_prologue): Add new field `frame_type'.
6924 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6925 parameter in the prologue struct. Add code for recording
6926 locations of PC and PSW for fast interrupt and exception frames.
6927 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6928 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6929 (rx_frame_type): New function.
6930 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6931 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6932 `this_cache'.
6933 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6934 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6935 RX_FRAME_TYPE_FAST_INTERRUPT.
6936 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6937 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6938 (rx_frame_unwind): Use rx_frame_sniffer instead of
6939 default_frame_sniffer.
6940 (rx_frame_unwind): New unwinder.
6941 (rx_gdbarch_init): Register new unwinder.
6942
6943 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6944
6945 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6946 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6947 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6948 and RX_FPSW_REGNUM.
6949 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6950
6951 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6952
6953 Fix GCC false warning.
6954 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6955
6956 2015-07-02 Yao Qi <yao.qi@linaro.org>
6957
6958 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6959 typo in the debugging message.
6960
6961 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6962
6963 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6964 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6965 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6966 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6967 (btrace_maint_clear): New.
6968 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6969 (pt_print_packet, btrace_maint_decode_pt)
6970 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6971 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6972 (maint_btrace_packet_history_cmd)
6973 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6974 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6975 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6976 (maint_info_btrace_cmd, _initialize_btrace): New.
6977 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6978 (btrace_maint_packet_history, btrace_maint_info): New.
6979 (btrace_thread_info) <maint>: New.
6980 * NEWS: Announce it.
6981
6982 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6983
6984 * btrace.c (btrace_fetch): Append the new trace data.
6985 (btrace_clear): Clear the stored trace data.
6986 * btrace.h (btrace_thread_info) <data>: New.
6987 * common/btrace-common.h (btrace_data_clear)
6988 (btrace_data_append): New.
6989 * common/btrace-common.c (btrace_data_clear)
6990 (btrace_data_append): New.
6991
6992 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6993
6994 * nat/linux-btrace.c (linux_enable_bts): Check for
6995 PERF_ATTR_SIZE_VER5.
6996 Check for data_offset and data_size fields. Use them.
6997
6998 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6999
7000 * NEWS: Announce new commands "record btrace pt" and "record pt".
7001 Announce new options "set|show record btrace pt buffer-size".
7002 * btrace.c: Include "rsp-low.h".
7003 Include "inttypes.h".
7004 (btrace_add_pc): Add forward declaration.
7005 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7006 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7007 (btrace_compute_ftrace_pt): New.
7008 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7009 (check_xml_btrace_version): Update version check.
7010 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7011 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7012 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7013 (btrace_pt_children): New.
7014 (btrace_children): Add support for "pt".
7015 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7016 (btrace_conf_children): Add support for "pt".
7017 * btrace.h: Include "intel-pt.h".
7018 (btrace_pt_error): New.
7019 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7020 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7021 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7022 (struct btrace_config_pt): New.
7023 (struct btrace_config)<pt>: New.
7024 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7025 (struct btrace_data)<pt>: New.
7026 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7027 (pt): New.
7028 * features/btrace.dtd (btrace)<pt>: New.
7029 (pt, pt-config, cpu): New.
7030 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7031 (perf_event_pt_event_type, kernel_supports_pt)
7032 (linux_supports_pt): New.
7033 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7034 (linux_enable_bts): Free tinfo on error.
7035 (linux_enable_pt): New.
7036 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7037 (linux_disable_pt): New.
7038 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7039 (linux_fill_btrace_pt_config, linux_read_pt): New.
7040 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7041 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7042 (struct btrace_target_info)<pt>: New.
7043 * record-btrace.c (set_record_btrace_pt_cmdlist)
7044 (show_record_btrace_pt_cmdlist): New.
7045 (record_btrace_print_pt_conf): New.
7046 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7047 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7048 (cmd_record_btrace_pt_start): New.
7049 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7050 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7051 (_initialize_record_btrace): Add new commands.
7052 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7053 (remote_protocol_features): Add "Qbtrace:pt".
7054 Add "Qbtrace-conf:pt:size".
7055 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7056 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7057 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7058 (_initialize_remote): Add new commands.
7059
7060 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7061
7062 * configure.ac: check for libipt
7063 * configure: Regenerate.
7064 * config.in: Regenerate.
7065 * Makefile.in (LIBIPT): New.
7066 (CLIBS): Add $LIBIPT.
7067 * NEWS: document new configure options
7068
7069 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7070
7071 * compile/compile-object-load.c (compile_object_load): Replace debug
7072 message "lookup undefined ELF symbol" by 3 more specific messages.
7073
7074 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7075
7076 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7077 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7078 (rl78_gdbarch_init): Initialize rl78_psw_type.
7079
7080 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7081
7082 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7083 Update commentary. Always refresh the registers when frame
7084 information has changed.
7085 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7086 Change return type to int. Return 1 if frame information has
7087 changed, 0 otherwise.
7088 (tui_before_prompt): Update commentary.
7089 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7090 int.
7091
7092 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7093
7094 PR tui/13378
7095 * frame.c (select_frame): Remove reference to
7096 deprecated_selected_frame_level_changed_hook.
7097 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7098 declaration.
7099 * stack.c (deprecated_selected_frame_level_changed_hook):
7100 Likewise.
7101 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7102 Rename to ...
7103 (tui_refresh_frame_and_register_information): ... this. Bail
7104 out if there is no stack. Don't update register information
7105 unless registers_too_p is true.
7106 (tui_print_frame_info_listing_hook): Rename to ...
7107 (tui_dummy_print_frame_info_listing_hook): ... this.
7108 (tui_before_prompt): New function.
7109 (tui_normal_stop): New function.
7110 (tui_before_prompt_observer): New observer.
7111 (tui_normal_stop_observer): New observer.
7112 (tui_install_hooks): Set
7113 deprecated_print_frame_info_listing_hook to
7114 tui_dummy_print_frame_info_listing_hook. Register
7115 tui_before_prompt_observer to call tui_before_prompt and
7116 tui_normal_stop_observer to call tui_normal_stop. Remove
7117 reference to deprecated_selected_frame_level_changed_hook.
7118 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7119 and tui_normal_stop_observer. Remove reference to
7120 deprecated_selected_frame_level_changed_hook.
7121
7122 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7123
7124 PR tui/13378
7125 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7126 return an int instead of void. Return whether the locator
7127 window has changed.
7128 (tui_show_frame_info): If the locator info has not changed, then
7129 bail out early to avoid refreshing the windows.
7130
7131 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7132
7133 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7134 LOCATOR_WIN to tui_alloc_content.
7135
7136 2015-06-30 Yao Qi <yao.qi@linaro.org>
7137
7138 PR tdep/18605
7139 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7140 instructions.
7141
7142 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7143
7144 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7145 (rx_dwarf_reg_to_regnum): New function.
7146 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7147 unwinding.
7148
7149 2015-06-29 Pedro Alves <palves@redhat.com>
7150
7151 PR threads/18127
7152 * infcall.c (run_inferior_call): On infcall success, if the thread
7153 was marked stopped before, reset it back to stopped.
7154 * infrun.c (resume): Don't suppress the set_running calls when
7155 doing an infcall.
7156 (normal_stop): Only discard the finish_thread_state cleanup if the
7157 infcall succeeded.
7158
7159 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7160
7161 * MAINTAINERS (Write After Approval): Update my email address.
7162
7163 2015-06-26 Keith Seitz <keiths@redhat.com>
7164 Doug Evans <dje@google.com>
7165
7166 PR 16253
7167 * block.c (block_lookup_symbol): For non-function blocks,
7168 continue to search for a symbol with an exact domain match
7169 Otherwise, return any previously found "best domain" symbol.
7170 (block_lookup_symbol_primary): Likewise.
7171
7172 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7173
7174 * NEWS: Mention the new option "history remove-duplicates".
7175 * top.c (history_remove_duplicates): New static variable.
7176 (show_history_remove_duplicates): New static function.
7177 (gdb_add_history): Conditionally remove duplicate history
7178 entries.
7179 (init_main): Add "history remove-duplicates" option.
7180
7181 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7182
7183 * tui/tui-win.c (focus_completer): New static function.
7184 (_initialize_tui_win): Set the completion function of the
7185 "focus" command to focus_completer.
7186
7187 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7188
7189 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7190 and language_asm..
7191 * symtab.c (find_function_start_sal): Likewise.
7192
7193 2015-06-25 Gary Benson <gbenson@redhat.com>
7194
7195 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7196 it is the empty string after trailing slashes have been stripped.
7197
7198 2015-06-25 Gary Benson <gbenson@redhat.com>
7199
7200 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7201 * infrun.c (follow_exec): Likewise.
7202 * remote.c (remote_filesystem_is_local): Likewise.
7203 * solib.c (solib_find_1): Likewise.
7204
7205 2015-06-24 Keith Seitz <keiths@redhat.com>
7206
7207 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7208 return value from lrealpath.
7209
7210 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7211
7212 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7213
7214 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7215
7216 * remote-sim.c: Include gdb_bfd.h.
7217 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7218 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7219
7220 2015-06-24 Yao Qi <yao.qi@linaro.org>
7221
7222 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7223 set_gdbarch_get_siginfo_type.
7224 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7225 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7226 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7227 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7228 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7229 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7230 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7231 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7232 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7233 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7234
7235 2015-06-24 Gary Benson <gbenson@redhat.com>
7236
7237 * common/buffer.c (stdint.h): Do not include.
7238 * common/print-utils.c (stdint.h): Likewise.
7239 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7240 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7241 * ft32-tdep.c (gdb_assert.h): Likewise.
7242 * guile/scm-utils.c (stdint.h): Likewise.
7243 * i386-linux-tdep.c (stdint.h): Likewise.
7244 * i386-tdep.c (stdint.h): Likewise.
7245 * nat/linux-btrace.c (stdint.h): Likewise.
7246 * nat/linux-btrace.h (stdint.h): Likewise.
7247 * nat/linux-ptrace.c (stdint.h): Likewise.
7248 * nat/mips-linux-watch.h (stdint.h): Likewise.
7249 * ppc-linux-nat.c (stdint.h): Likewise.
7250 * python/python-internal.h (stdint.h): Likewise.
7251 * stub-termcap.c (stdlib.h): Likewise.
7252 * target/target.h (stdint.h): Likewise.
7253 * xtensa-linux-nat.c (stdint.h): Likewise.
7254
7255 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7256
7257 * top.c (init_history): Look at errno after calling strtol to
7258 properly map large GDBHISTSIZE values to infinity.
7259
7260 2015-06-23 Doug Evans <dje@google.com>
7261
7262 * inferior.h (struct inferior_suspend_state): Delete, unused.
7263 All references deleted.
7264
7265 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7266
7267 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7268 (microblaze_push_dummy_call): Likewise.
7269 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7270 and set_gdbarch_push_dummy_call.
7271
7272 2015-06-23 Yao Qi <yao.qi@linaro.org>
7273
7274 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7275 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7276 (amd64_linux_store_inferior_registers): Likewise.
7277 * arm-linux-nat.c (fetch_fpregister): Likewise.
7278 (fetch_fpregs, store_fpregister): Likewise.
7279 (store_fpregister, store_fpregs): Likewise.
7280 (fetch_register, fetch_regs): Likewise.
7281 (store_register, store_regs): Likewise.
7282 (fetch_vfp_regs, store_vfp_regs): Likewise.
7283 (arm_linux_read_description): Check have_ptrace_getregset is
7284 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7285 or TRIBOOL_FALSE.
7286 * i386-linux-nat.c (fetch_xstateregs): Check
7287 have_ptrace_getregset is not TRIBOOL_TRUE.
7288 (store_xstateregs): Likewise.
7289 * linux-nat.c (have_ptrace_getregset): Change its type to
7290 enum tribool.
7291 * linux-nat.h (tribool): New enum.
7292 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7293 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7294
7295 2015-06-19 Doug Evans <dje@google.com>
7296
7297 * NEWS: Mention Sun's version of stabs is no longer supported.
7298 * elfread.c (free_elfinfo): Delete. All uses updated.
7299 (elfstab_offset_sections): Delete. All uses updated.
7300 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7301 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7302 All uses updated.
7303 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7304 All callers updated.
7305
7306 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7307
7308 * common/rsp-low.c (needs_escaping): New.
7309 (remote_escape_output): Add unit_size parameter. Refactor to
7310 support multi-byte addressable units. Rename parameters.
7311 * common/rsp-low.h (remote_escape_output): Add unit_size
7312 parameter and rename others. Update doc.
7313 * remote.c (align_for_efficient_write): New.
7314 (remote_write_bytes_aux): Add unit_size parameter and use it.
7315 Rename some variables. Update doc.
7316 (remote_xfer_partial): Get unit size and use it.
7317 (remote_read_bytes_1): Add unit_size parameter and use it.
7318 Rename some variables. Update doc.
7319 (remote_write_bytes): Same.
7320 (remote_xfer_live_readonly_partial): Same.
7321 (remote_read_bytes): Same.
7322 (remote_flash_write): Update call to remote_write_bytes_aux.
7323 (remote_write_qxfer): Update call to remote_escape_output.
7324 (remote_search_memory): Same.
7325 (remote_hostio_pwrite): Same.
7326
7327 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7328
7329 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7330 locations as inserted.
7331 Update and expand comment about permanent locations.
7332 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7333 Move comment to add_location_to_breakpoint.
7334 (update_global_location_list): Don't error out if a permanent
7335 breakpoint is not marked inserted.
7336 Don't error out if a non-permanent breakpoint location is inserted on
7337 top of a permanent breakpoint.
7338
7339 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7340
7341 * breakpoint.c (make_breakpoint_permanent): Remove unused
7342 function.
7343 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7344
7345 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7346
7347 PR gdb/16999
7348 * NEWS: Mention new GDBHISTSIZE behavior.
7349 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7350 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7351
7352 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7353
7354 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7355 * top.c (init_history): Read from GDBHISTSIZE instead of
7356 HISTSIZE.
7357 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7358
7359 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7360
7361 * top.c (gdb_safe_append_history): Do not call
7362 history_truncate_file if the history is not stifled.
7363
7364 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7365
7366 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7367 * syscalls/s390x-linux.xml: Likewise.
7368
7369 2015-06-16 Michael Eager <eager@eagercon.com>
7370
7371 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7372
7373 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7374
7375 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7376 target_terminal_ours_for_output() before calling
7377 tui_show_frame_info(), and restore the original terminal
7378 settings afterwards.
7379
7380 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7381
7382 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7383
7384 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7385
7386 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7387 memory unit size.
7388 (mi_cmd_data_write_memory_bytes): Same.
7389
7390 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7391
7392 * corefile.c (write_memory): Update doc.
7393 * gdbcore.h (write_memory): Same.
7394
7395 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7396
7397 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7398 (dump_mapping_p): Use it for parameter filterflags.
7399 (linux_find_memory_regions_full): Use it for variable filterflags.
7400
7401 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7402 Jan Kratochvil <jan.kratochvil@redhat.com>
7403
7404 Merge multiple hex conversions.
7405 * monitor.c: Include rsp-low.h.
7406 (fromhex): Remove definition.
7407
7408 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7409 Jan Kratochvil <jan.kratochvil@redhat.com>
7410
7411 Move utility functions to common/.
7412 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7413 Move defs to common/common-utils.c.
7414 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7415 (skip_to_space_const): Move decls to common/common-utils.h.
7416 * common/common-defs.h: Move include of common-types.h before
7417 common-utils.h.
7418 * common/common-utils.c: Include host-defs.h and ctype.h.
7419 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7420 from utils.c.
7421 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7422 cli/cli-utils.c.
7423 * common/common-utils.h (strtoulst): Move decl from utils.h.
7424 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7425 Move from cli/cli-utils.h.
7426 * common/host-defs.h: Include limits.h.
7427 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7428 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7429 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7430 common/common-utils.h.
7431 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7432 (strtoulst): Move to common/common-utils.c.
7433 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7434
7435 2015-06-15 Yao Qi <yao.qi@linaro.org>
7436
7437 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7438
7439 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7440
7441 * build-id.c: Don't include elf-bfd.h.
7442 (build_id_bfd_get): Use bfd_build_id.
7443 (build_id_verify): Ditto.
7444 * build-id.h: Ditto.
7445 (find_separate_debug_file_by_buildid): Ditto.
7446 * python/py-objfile.c: Don't include elf-bfd.h.
7447 (objfpy_get_build_id) Use bfd_build_id.
7448 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7449 * coffread.c: Include build-id.h.
7450 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7451
7452 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7453
7454 * windows-nat.c (do_windows_fetch_inferior_registers)
7455 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7456 conditional with __CYGWIN__.
7457
7458 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7459
7460 * completer.c: Add arch-utils.h include.
7461 (enum reg_completer_targets): New enum.
7462 (reg_or_group_completer_1): New function containing old
7463 reg_or_group_completer, add and use new parameter to control what
7464 is completed on. Use get_current_arch rather than architecture of
7465 currently selected frame.
7466 (reg_or_group_completer): Call new reg_or_group_completer_1.
7467 (reggroup_completer): Call new reg_or_group_completer_1.
7468 * completer.h (reggroup_completer): Add declaration.
7469 * tui/tui-regs.c: Add 'completer.h' include.
7470 (tui_reg_next_command): Renamed to...
7471 (tui_reg_next): ...this. Adjust parameters and return rather than
7472 display new group.
7473 (tui_reg_prev_command): Renamed to...
7474 (tui_reg_prev): ...this. Adjust parameters and return rather than
7475 display new group.
7476 (tui_reg_float_command): Delete.
7477 (tui_reg_general_command): Delete.
7478 (tui_reg_system_command): Delete.
7479 (tui_reg_command): Rewrite to perform switching of register group.
7480 Add header comment.
7481 (tuireglist): Remove.
7482 (tui_reggroup_completer): New function.
7483 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7484 creation of 'tui reg' command.
7485 * NEWS: Add comment about 'tui reg' changes.
7486
7487 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7488
7489 * target.c (target_read): Consider addressable unit size when
7490 reading from a memory object.
7491 (read_memory_robust): Same.
7492 (read_whatever_is_readable): Same.
7493 (target_write_with_progress): Consider addressable unit size
7494 when writing to a memory object.
7495 * target.h (target_read): Update documentation.
7496 (target_write): Add documentation.
7497
7498 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7499
7500 * arch-utils.h (default_addressable_memory_unit_size): New.
7501 * arch-utils.c (default_addressable_memory_unit_size): New.
7502 * gdbarch.sh (addressable_memory_unit_size): New.
7503 * gdbarch.h: Re-generate.
7504 * gdbarch.c: Re-generate.
7505
7506 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7507
7508 * target.c (target_read): Rename variables and use
7509 TARGET_XFER_E_IO.
7510 (target_read_with_progress): Same.
7511 (read_memory_robust): Constify parameters and rename
7512 variables.
7513 (read_whatever_is_readable): Constify parameters,
7514 rename variables, adjust formatting.
7515 * target.h (read_memory_robust): Constify parameters.
7516
7517 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7518
7519 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7520 synthetic (non-AltiVec) vector types.
7521 (ppc64_sysv_abi_return_value): Likewise.
7522
7523 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7524
7525 PR breakpoints/16465
7526 * breakpoint.c (create_breakpoint): Save extra_string for
7527 pending breakpoints.
7528
7529 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7530
7531 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7532 and bt_mask to CORE_ADDR.
7533
7534 2015-06-11 Gary Benson <gbenson@redhat.com>
7535
7536 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7537 (mnsh_recv_message): Likewise.
7538
7539 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7540
7541 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7542 long long int and plongest instead of %ll.
7543
7544 2015-06-11 Gary Benson <gbenson@redhat.com>
7545
7546 * nat/linux-namespaces.c (gdb_wait.h): New include.
7547 (sys/wait.h): Do not include.
7548
7549 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7550
7551 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7552 end_sequence is true.
7553
7554 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7555
7556 Code cleanup.
7557 * solib-target.c (library_list_start_list): Use explicit NULL
7558 comparison.
7559
7560 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7561
7562 * solib-target.c (library_list_start_list): Do not dereference
7563 variable version in its initialization. Make the VERSION check handle
7564 NULL.
7565 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7566
7567 2015-06-10 Gary Benson <gbenson@redhat.com>
7568
7569 * NEWS: Announce support for direct access of executable and
7570 shared library files when attaching to inferiors in containers
7571 on GNU/Linux systems.
7572
7573 2015-06-10 Gary Benson <gbenson@redhat.com>
7574
7575 * remote.c (struct remote_state) <fs_pid>: New field.
7576 (new_remote_state): Initialize the above.
7577 (PACKET_vFile_setfs): New enum value.
7578 (remote_hostio_set_filesystem): New function.
7579 (remote_hostio_open): Call the above.
7580 (remote_hostio_unlink): Likewise.
7581 (remote_hostio_readlink): Likewise.
7582 (_initialize_remote): Register new "set/show remote
7583 hostio-setfs-packet" command.
7584 * NEWS: Announce new vFile:setfs packet.
7585
7586 2015-06-10 Gary Benson <gbenson@redhat.com>
7587
7588 * linux-nat.c (nat/linux-namespaces.h): New include.
7589 (fileio.h): Likewise.
7590 (linux_nat_filesystem_is_local): New function.
7591 (linux_nat_fileio_pid_of): Likewise.
7592 (linux_nat_fileio_open): Likewise.
7593 (linux_nat_fileio_readlink): Likewise.
7594 (linux_nat_fileio_unlink): Likewise.
7595 (linux_nat_add_target): Initialize to_filesystem_is_local,
7596 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7597 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7598 commands.
7599 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7600
7601 2015-06-10 Gary Benson <gbenson@redhat.com>
7602
7603 * target.h (struct inferior): New forward declaration.
7604 (struct target_ops) <to_filesystem_is_local>: Update comment.
7605 (struct target_ops) <to_fileio_open>: New argument inf.
7606 Update comment. All implementations updated.
7607 (struct target_ops) <to_fileio_unlink>: Likewise.
7608 (struct target_ops) <to_fileio_readlink>: Likewise.
7609 (target_filesystem_is_local): Update comment.
7610 (target_fileio_open): New argument inf. Update comment.
7611 (target_fileio_unlink): Likewise.
7612 (target_fileio_readlink): Likewise.
7613 (target_fileio_read_alloc): Likewise.
7614 (target_fileio_read_stralloc): Likewise.
7615 * target.c (target_fileio_open): New argument inf.
7616 Pass inf to implementation. Update debug printing.
7617 (target_fileio_unlink): Likewise.
7618 (target_fileio_readlink): Likewise.
7619 (target_fileio_read_alloc_1): New argument inf. Pass inf
7620 to target_fileio_open.
7621 (target_fileio_read_alloc): New argument inf. Pass inf to
7622 target_fileio_read_alloc_1.
7623 (target_fileio_read_stralloc): Likewise.
7624 * gdb_bfd.c (inferior.h): New include.
7625 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7626 argument with new argument "inferior". Pass inferior to
7627 target_fileio_open.
7628 (gdb_bfd_open): Supply inferior argument to
7629 gdb_bfd_iovec_fileio_open.
7630 * linux-tdep.c (linux_info_proc): Supply inf argument to
7631 relevant target_fileio calls.
7632 (linux_find_memory_regions_full): Likewise.
7633 (linux_fill_prpsinfo): Likewise.
7634 * remote.c (remote_filesystem_is_local): Supply inf
7635 argument to remote_hostio_open.
7636 (remote_file_put): Likewise.
7637 (remote_file_get): Likewise.
7638 (remote_file_delete): Supply inf argument to
7639 remote_hostio_unlink.
7640
7641 2015-06-10 Gary Benson <gbenson@redhat.com>
7642
7643 * inf-child.c (inf_child_fileio_open): Replace comment.
7644 (inf_child_fileio_pwrite): Likewise.
7645 (inf_child_fileio_pread): Likewise.
7646 (inf_child_fileio_fstat): Insert blank line before comment.
7647 (inf_child_fileio_close): Replace comment.
7648 (inf_child_fileio_unlink): Likewise.
7649 (inf_child_fileio_readlink): Likewise.
7650 * remote.c (remote_hostio_open): Likewise.
7651 (remote_hostio_pread): Likewise.
7652 (remote_hostio_pwrite): Likewise.
7653 (remote_hostio_close): Likewise.
7654 (remote_hostio_unlink): Likewise.
7655 (remote_hostio_readlink): Likewise.
7656 (remote_hostio_fstat): Likewise.
7657 (remote_filesystem_is_local): Likewise.
7658 * target.c (target_fileio_open): Likewise.
7659 (target_fileio_pwrite): Likewise.
7660 (target_fileio_pread): Likewise.
7661 (target_fileio_fstat): Insert blank line before comment.
7662 (target_fileio_close): Replace comment.
7663 (target_fileio_unlink): Likewise.
7664 (target_fileio_readlink): Likewise.
7665 (target_fileio_read_alloc): Likewise.
7666 (target_fileio_read_stralloc): Likewise.
7667
7668 2015-06-10 Gary Benson <gbenson@redhat.com>
7669
7670 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7671 (check_pid_namespace_match): Use linux_ns_same rather than
7672 linux_proc_pid_get_ns to spot PID namespace mismatches.
7673 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7674 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7675
7676 2015-06-10 Gary Benson <gbenson@redhat.com>
7677
7678 * configure.ac (AC_CHECK_FUNCS): Add setns.
7679 * config.in: Regenerate.
7680 * configure: Likewise.
7681 * nat/linux-namespaces.h: New file.
7682 * nat/linux-namespaces.c: Likewise.
7683 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7684 (linux-namespaces.o): New rule.
7685 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7686 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7687 * config/arm/linux.mh (NATDEPFILES): Likewise.
7688 * config/i386/linux.mh (NATDEPFILES): Likewise.
7689 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7690 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7691 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7692 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7693 * config/mips/linux.mh (NATDEPFILES): Likewise.
7694 * config/pa/linux.mh (NATDEPFILES): Likewise.
7695 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7696 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7697 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7698 * config/s390/linux.mh (NATDEPFILES): Likewise.
7699 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7700 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7701 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7702 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7703
7704 2015-06-10 Gary Benson <gbenson@redhat.com>
7705
7706 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7707 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7708 (make_cleanup_close): Likewise.
7709 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7710 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7711 (make_cleanup_close): Likewise.
7712
7713 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7714
7715 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7716 from SuspendThread().
7717
7718 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7719
7720 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7721 from OutputDebugString.
7722
7723 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7724 Mircea Gherzan <mircea.gherzan@intel.com>
7725
7726 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7727 MPX_BT_MASK_32): New macros.
7728 (i386_mpx_set_bounds): New function that implements
7729 the command "set-mpx-bound".
7730 (i386_mpx_enabled): Helper function to test MPX availability.
7731 (i386_mpx_bd_base): Helper function to calculate the base directory
7732 address.
7733 (i386_mpx_get_bt_entry): Helper function to access a bound
7734 table entry.
7735 (i386_mpx_print_bounds): Effectively display bound information.
7736 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7737 "show mpx".
7738 (_initialize_i386_tdep):
7739 Add "bound" to the commands "show mpx" and "set mpx" commands.
7740 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7741 and "show mpx" commands.
7742 * NEWS: List new commands for MPX support.
7743
7744 2015-06-09 Gary Benson <gbenson@redhat.com>
7745
7746 * common/fileio.h (fileio_to_host_mode): New declaration.
7747 * common/fileio.c (fileio_to_host_mode): New Function.
7748 * inf-child.c (inf_child_fileio_open): Process mode argument
7749 with fileio_to_host_mode.
7750
7751 2015-06-09 Gary Benson <gbenson@redhat.com>
7752
7753 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7754 conditional.
7755
7756 2015-06-05 Gary Benson <gbenson@redhat.com>
7757
7758 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7759 * remote.c (remote_filesystem_is_local): ...here.
7760
7761 2015-06-04 Yao Qi <yao.qi@linaro.org>
7762
7763 * gdbarch.c: Regenerate it.
7764
7765 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7766
7767 * arch-utils.c (default_infcall_munmap): New.
7768 * arch-utils.h (default_infcall_munmap): New declaration.
7769 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7770 (munmap_list_free, munmap_listp_free_cleanup): New.
7771 (struct setup_sections_data): Add field munmap_list_headp.
7772 (setup_sections): Call munmap_list_add.
7773 (compile_object_load): New variable munmap_list_head, initialize
7774 setup_sections_data.munmap_list_headp, return munmap_list_head.
7775 * compile/compile-object-load.h (struct munmap_list): New declaration.
7776 (struct compile_module): Add field munmap_list_head.
7777 (munmap_list_free): New declaration.
7778 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7779 munmap_list_head.
7780 (do_module_cleanup): Call munmap_list_free.
7781 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7782 * gdbarch.c: Regenerate.
7783 * gdbarch.h: Regenerate.
7784 * gdbarch.sh (infcall_munmap): New.
7785 * linux-tdep.c (linux_infcall_munmap): New.
7786 (linux_init_abi): Install it.
7787
7788 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7789
7790 PR gdb/15564
7791 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7792
7793 2015-06-02 Yao Qi <yao.qi@linaro.org>
7794
7795 * i386-linux-nat.c: Include linux-nat.h.
7796
7797 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7798 Jan Kratochvil <jan.kratochvil@redhat.com>
7799
7800 PR symtab/18392
7801 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7802 assertion.
7803 * dwarf2loc.c (chain_candidate): Likewise.
7804
7805 2015-06-01 Yao Qi <yao.qi@linaro.org>
7806
7807 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7808 (store_vfp_regs): Use PTRACE_SETREGSET.
7809
7810 2015-06-01 Yao Qi <yao.qi@linaro.org>
7811
7812 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7813 (fetch_fpregs): Likewise.
7814 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7815 (store_fpregs): Likewise.
7816
7817 2015-06-01 Yao Qi <yao.qi@linaro.org>
7818
7819 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7820 (fetch_regs): Likewise.
7821 (store_regs): Use PTRACE_SETREGSET.
7822 (store_register): Likewise.
7823
7824 2015-06-01 Yao Qi <yao.qi@linaro.org>
7825
7826 * arm-linux-nat.c (arm_linux_read_description): Check whether
7827 kernel supports PTRACE_GETREGSET.
7828
7829 2015-06-01 Yao Qi <yao.qi@linaro.org>
7830
7831 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7832 * linux-nat.c: ... here.
7833 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7834 to ...
7835 * linux-nat.h: ... here.
7836
7837 2015-06-01 Yao Qi <yao.qi@linaro.org>
7838
7839 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7840 * i386-linux-nat.c: Likewise.
7841 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7842 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7843 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7844 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7845 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7846
7847 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7848
7849 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7850 compatible to what read_child and write_child return. This
7851 unbreaks that DJGPP build of GDB which was broken since v7.7.
7852
7853 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7854
7855 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7856
7857 2015-05-29 Roland McGrath <mcgrathr@google.com>
7858
7859 PR gdb/18464
7860 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7861 rather than internal_error for an unrecognized value.
7862
7863 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7864
7865 * xtensa-tdep.c (xtensa_pseudo_register_read)
7866 (xtensa_pseudo_register_write): Don't alias last pseudo register
7867 to a1.
7868
7869 2015-05-28 Don Breazeal <donb@codesourcery.com>
7870
7871 * infrun.c (follow_fork_inferior): Ensure the use of
7872 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7873 messages.
7874
7875 2015-05-28 Doug Evans <dje@google.com>
7876
7877 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7878
7879 2015-05-28 Yao Qi <yao.qi@linaro.org>
7880
7881 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7882 (arm_linux_fetch_inferior_registers): Use
7883 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7884 (arm_linux_store_inferior_registers): Likewise.
7885 (arm_linux_read_description): Don't set
7886 arm_linux_has_wmmx_registers.
7887 * arm-tdep.c (arm_gdbarch_init): Set
7888 tdep->have_wmmx_registers according target descriptions.
7889 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7890 field.
7891
7892 2015-05-28 Yao Qi <yao.qi@linaro.org>
7893
7894 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7895 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7896 instead of arm_linux_vfp_register_count.
7897 (store_vfp_regs): Likewise.
7898 (arm_linux_fetch_inferior_registers): Likewise.
7899 (arm_linux_store_inferior_registers): Likewise.
7900 (arm_linux_read_description): Don't set
7901 arm_linux_vfp_register_count.
7902 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7903 Adjust.
7904 * arm-tdep.c (arm_gdbarch_init): Add assert on
7905 vfp_register_count.
7906 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7907 field to vfp_register_count. All users updated.
7908
7909 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7910
7911 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7912 ELFOSABI_GNU binaries.
7913
7914 2015-05-27 Doug Evans <dje@google.com>
7915
7916 * dwarf2read.c (lnp_state_machine): New typedef.
7917 (lnp_reader_state): New typedef.
7918 (dwarf_record_line_1): Renamed from dwarf_record_line.
7919 All callers updated.
7920 (dwarf_record_line): New function.
7921 (init_lnp_state_machine): New function.
7922 (check_line_address): Replace p_record_line parameter with state.
7923 All callers updated.
7924 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7925 Update to record state in lnp_state_machine.
7926
7927 2015-05-27 Doug Evans <dje@google.com>
7928
7929 * dwarf2read.c (record_line_ftype): New typedef.
7930 (check_line_address): New function.
7931 (dwarf_decode_lines_1): Call it.
7932
7933 2015-05-27 Doug Evans <dje@google.com>
7934
7935 * NEWS: Mention "set debug dwarf-line".
7936 * dwarf2read.c (dwarf_line_debug): New static global.
7937 (add_include_dir): Add debug dwarf-line support.
7938 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7939 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7940
7941 2015-05-27 Doug Evans <dje@google.com>
7942
7943 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7944 All callers updated.
7945 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7946 * cp-support.h (cp_lookup_nested_symbol): Update.
7947
7948 2015-05-27 Doug Evans <dje@google.com>
7949
7950 PR symtab/18258
7951 * block.c (block_find_symbol): New function.
7952 (block_find_non_opaque_type): Ditto.
7953 (block_find_non_opaque_type_preferred): Ditto.
7954 * block.h (block_symbol_matcher_ftype): New typedef.
7955 (block_find_symbol): Declare.
7956 (block_find_non_opaque_type): Ditto.
7957 (block_find_non_opaque_type_preferred): Ditto.
7958 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7959 * psymtab.c (psym_lookup_symbol): Ditto.
7960 * symtab.c (basic_lookup_transparent_type_1): New function.
7961 (basic_lookup_transparent_type): Call it.
7962
7963 2015-05-27 Yao Qi <yao.qi@linaro.org>
7964
7965 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7966 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7967
7968 2015-05-27 Yao Qi <yao.qi@linaro.org>
7969
7970 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7971 before operator &&.
7972 (aarch64_record_load_store): Likewise.
7973
7974 2015-05-26 Doug Evans <dje@google.com>
7975
7976 PR c++/18141, c++/18417.
7977 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7978 a typedef.
7979
7980 2015-05-26 Doug Evans <dje@google.com>
7981
7982 * NEWS: Add entries for command renamings.
7983 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7984 All uses updated.
7985 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7986 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7987 All uses updated.
7988 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7989 All callers updated. Fix spelling of DWARF in help text.
7990 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7991 All uses updated.
7992 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7993 All uses updated.
7994 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7995 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7996 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7997 All uses updated.
7998 (show_dwarf_always_disassemble): Renamed from
7999 show_dwarf2_always_disassemble. All callers updated.
8000 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8001 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8002 "set/show dwarf max-cache-age". Rename
8003 "set/show dwarf2 always-disassemble" to
8004 "set/show dwarf always-disassemble". Rename
8005 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8006 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8007
8008 2015-05-26 Doug Evans <dje@google.com>
8009
8010 PR python/18438
8011 * python/py-lazy-string.c (stpy_convert_to_value): Use
8012 gdbpy_gdb_memory_error not PyExc_MemoryError.
8013 (gdbpy_create_lazy_string_object): Ditto.
8014
8015 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8016
8017 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8018
8019 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8020
8021 * tui/tui-regs.c (tui_reg_prev_command): New function.
8022 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8023 * reggroups.c (reggroup_prev): New function.
8024 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8025
8026 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8027 Yao Qi <yao.qi@linaro.org>
8028
8029 * aarch64-linux-tdep.c: Include linux-record.h and
8030 record-full.h.
8031 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8032 (aarch64_syscall): New enum.
8033 (aarch64_canonicalize_syscall): New function.
8034 (aarch64_all_but_pc_registers_record): New function.
8035 (aarch64_linux_syscall_record): New function.
8036 (aarch64_linux_init_abi): Install AArch64 process record
8037 handler. Update to handle syscall recording.
8038 * aarch64-tdep.c: Include record.h and record-full.h.
8039 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8040 (struct aarch64_mem_r): Define.
8041 (aarch64_record_result): New enum.
8042 (struct insn_decode_record): Define.
8043 (insn_decode_record): New typedef.
8044 (aarch64_record_data_proc_reg): New function.
8045 (aarch64_record_data_proc_imm): New function.
8046 (aarch64_record_branch_except_sys): New function.
8047 (aarch64_record_load_store): New function.
8048 (aarch64_record_data_proc_simd_fp): New function.
8049 (aarch64_record_asimd_load_store): New function.
8050 (aarch64_record_decode_insn_handler): New function.
8051 (deallocate_reg_mem): New function.
8052 (aarch64_process_record): New function.
8053 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8054 New field.
8055 (aarch64_process_record): New extern declaration.
8056 * configure.tgt: Add linux-record.o to gdb_target_obs.
8057 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8058
8059 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8060
8061 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8062 targets.
8063
8064 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8065
8066 * amd64-tdep.c: Replace in_function_epilogue_p with
8067 stack_frame_destroyed_p throughout.
8068 * arch-utils.c: Ditto.
8069 * arch-utils.h: Ditto.
8070 * arm-tdep.c: Ditto.
8071 * breakpoint.c: Ditto.
8072 * gdbarch.sh: Ditto.
8073 * hppa-tdep.c: Ditto.
8074 * i386-tdep.c: Ditto.
8075 * mips-tdep.c: Ditto.
8076 * nios2-tdep.c: Ditto.
8077 * rs6000-tdep.c: Ditto.
8078 * s390-linux-tdep.c: Ditto.
8079 * score-tdep.c: Ditto.
8080 * sh-tdep.c: Ditto.
8081 * sparc-tdep.c: Ditto.
8082 * sparc-tdep.h: Ditto.
8083 * sparc64-tdep.c: Ditto.
8084 * spu-tdep.c: Ditto.
8085 * tic6x-tdep.c: Ditto.
8086 * tilegx-tdep.c: Ditto.
8087 * xstormy16-tdep.c: Ditto.
8088 * gdbarch.c, gdbarch.h: Re-generated.
8089
8090 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8091
8092 * NEWS: Mention 'tui enable' and 'tui disable'.
8093 * tui/tui.c (tui_enable_command): New function.
8094 (tui_disable_command): New function.
8095 (_initialize_tui): New function.
8096
8097 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8098
8099 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8100
8101 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8102
8103 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8104 buf_ptr is freed.
8105
8106 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8107
8108 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8109 into ...
8110 (tui_set_layout_for_display_command): ...here, before calling
8111 tui_set_layout. Only set the layout if gdb has not already
8112 entered the TUI_FAILURE state.
8113
8114 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8115
8116 * tui/tui-layout.c (layout_completer): New function.
8117 (_initialize_tui_layout): Set completer on layout command.
8118
8119 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8120
8121 * tui/tui-layout.c (tui_set_layout): Remove
8122 tui_register_display_type parameter. Remove all checking of this
8123 parameter, and reindent function. Update header comment.
8124 (tui_set_layout_for_display_command): Rename to...
8125 (tui_set_layout_by_name): ...this, and don't check for different
8126 register class types, don't pass a tui_register_display_type to
8127 tui_set_layout. Update header comment.
8128 (layout_names): Remove register set specific names.
8129 * tui/tui-layout.h (tui_set_layout): Remove
8130 tui_register_display_type parameter.
8131 * tui/tui.c (tui_rl_change_windows): Don't pass a
8132 tui_register_display_type to tui_set_layout.
8133 (tui_rl_delete_other_windows): Likewise.
8134 (tui_enable): Likewise.
8135 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8136 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8137 (TUI_GENERAL_REGS_NAME): Remove.
8138 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8139 (TUI_SPECIAL_REGS_NAME): Remove.
8140 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8141 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8142 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8143 (enum tui_register_display_type): Remove.
8144 (struct tui_layout_def): Remove regs_display_type and
8145 float_regs_display_type fields.
8146 (struct tui_data_info): Remove regs_display_type field.
8147 (tui_layout_command): Use new name for
8148 tui_set_layout_for_display_command.
8149 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8150 (tui_clear_win_detail): Don't initialise removed fields of
8151 win_info.
8152 * tui/tui-regs.c (tui_show_registers): Use new name for
8153 tui_set_layout_for_display_command.
8154 * tui/tui.h (tui_set_layout_for_display_command): Rename
8155 declaration to...
8156 (tui_set_layout_by_name): ...this.
8157 * printcmd.c (display_command): Remove tui related layout call,
8158 and reindent.
8159
8160 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8161
8162 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8163 (handle_inferior_event): New function.
8164
8165 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8166
8167 * ada-lang.c (to_fixed_array_type): Rename local variable
8168 typename into type_name.
8169
8170 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8171
8172 Fix ASAN crash for gdb.compile/compile.exp.
8173 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8174
8175 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8176
8177 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8178 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8179 * compile/compile-object-load.c (setup_sections, compile_object_load):
8180 Likewise.
8181 * compile/compile.c (compile_to_object): Likewise.
8182
8183 2015-05-16 Doug Evans <xdje42@gmail.com>
8184
8185 * NEWS: Mention support for unbuffered Guile memory ports.
8186 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8187 (ioscm_lseek_address): Improve overflow calculation.
8188 (gdbscm_memory_port_fill_input): Add assert.
8189 (gdbscm_memory_port_write): Handle unbuffered ports.
8190 Handle large writes identical to Guile's fport_write.
8191 (gdbscm_memory_port_seek): Fix seeking past end check.
8192 (gdbscm_memory_port_close): Handle closing unbuffered port.
8193 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8194 (ioscm_init_memory_port): Handle unbuffered ports.
8195 (ioscm_reinit_memory_port): Ditto.
8196 (ioscm_init_memory_port): Update size calculation.
8197 (gdbscm_open_memory): Support zero sized ports.
8198
8199 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8200
8201 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8202 variable compiler warnings.
8203
8204 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8205
8206 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8207
8208 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8209 Phil Muldoon <pmuldoon@redhat.com>
8210
8211 * NEWS (Changes since GDB 7.9): Add compile print.
8212 * compile/compile-c-support.c (add_code_header, add_code_footer)
8213 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8214 COMPILE_I_PRINT_VALUE_SCOPE.
8215 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8216 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8217 New.
8218 * compile/compile-object-load.c: Include block.h.
8219 (get_out_value_type): New function.
8220 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8221 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8222 OUT_VALUE_TYPE.
8223 * compile/compile-object-load.h (struct compile_module): Add fields
8224 out_value_addr and out_value_type.
8225 * compile/compile-object-run.c: Include valprint.h and compile.h.
8226 (struct do_module_cleanup): Add fields out_value_addr and
8227 out_value_type.
8228 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8229 COMPILE_I_PRINT_VALUE_SCOPE.
8230 (compile_object_run): Propagate out_value_addr and out_value_type.
8231 Pass OUT_VALUE_ADDR.
8232 * compile/compile.c: Include valprint.h.
8233 (compile_print_value, compile_print_command): New functions.
8234 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8235 (_initialize_compile): Update compile code help text. Install
8236 compile_print_command.
8237 * compile/compile.h (compile_print_value): New prototype.
8238 * defs.h (enum compile_i_scope_types): Add
8239 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8240
8241 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8242
8243 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8244 Rely on its parameter count.
8245 (compile_object_load): Replace lookup_minimal_symbol_text by
8246 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8247 return value.
8248 * compile/compile-object-load.h (struct compile_module): Replace
8249 func_addr by func_sym.
8250 * compile/compile-object-run.c: Include block.h.
8251 (compile_object_run): Reset module variable after it is freed. Use
8252 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8253
8254 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8255
8256 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8257 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8258 (c_compute_program): Call generate_register_struct after typedefs.
8259 * compile/compile-loc2c.c (push, pushf_register_address)
8260 (pushf_register): Cast to GCC_UINTPTR.
8261 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8262 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8263 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8264 * compile/compile.c (_initialize_compile): Enable warnings for
8265 COMPILE_ARGS.
8266
8267 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8268
8269 * cli/cli-script.c (execute_control_command): Update
8270 eval_compile_command caller.
8271 * compile/compile-object-load.c (compile_object_load): Add parameters
8272 scope and scope_data. Set them.
8273 * compile/compile-object-load.h (struct compile_module): Add fields
8274 scope and scope_data.
8275 (compile_object_load): Add parameters scope and scope_data.
8276 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8277 scope and scope_data.
8278 (compile_object_run): Propagate the fields scope and scope_data.
8279 * compile/compile.c (compile_file_command, compile_code_command):
8280 Update eval_compile_command callers.
8281 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8282 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8283 * defs.h (struct command_line): Add field scope_data.
8284
8285 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8286
8287 * printcmd.c (struct format_data): Move it to valprint.h.
8288 (print_command_parse_format, print_value): New functions from ...
8289 (print_command_1): ... here. Call them.
8290 * valprint.h (struct format_data): Move it here from printcmd.c.
8291 (print_command_parse_format, print_value): New declarations.
8292
8293 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8294
8295 * compile/compile-object-load.c (compile_object_load): Add
8296 COMPILE_DEBUG message.
8297
8298 2015-05-15 Jerome Guitton <guitton@adacore.com>
8299
8300 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8301 index to get element instead of enum value.
8302 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8303 of index to compute length, but enum values to compute bounds.
8304 (ada_array_length): Use enum position of index instead of enum value.
8305 (pos_atr): Move position computation to...
8306 (ada_evaluate_subexp): Use enum values to compute bounds.
8307 * gdbtypes.c (discrete_position): ...this new function.
8308 * gdbtypes.h (discrete_position): New function declaration.
8309 * valprint.c (val_print_array_elements): Call discrete_position
8310 to handle array indexed by non-contiguous enumeration types.
8311
8312 2015-05-15 Jerome Guitton <guitton@adacore.com>
8313
8314 * ada-lang.c (find_parallel_type_by_descriptive_type):
8315 Go through typedefs during lookup.
8316 (to_fixed_array_type): Add support for non-bit packed arrays
8317 as variable-length fields.
8318
8319 2015-05-15 Pedro Alves <palves@redhat.com>
8320 Simon Marchi <simon.marchi@ericsson.com>
8321
8322 * event-loop.c (gdb_notifier) <next_file_handler,
8323 next_poll_fds_index>: New fields.
8324 (get_next_file_handler_to_handle_and_advance): New function.
8325 (delete_file_handler): If deleting the next file handler to
8326 handle, advance to the next file handler.
8327 (gdb_wait_for_event): Bail early if no event fired. Poll file
8328 handlers in round-robin fashion.
8329
8330 2015-05-15 Pedro Alves <palves@redhat.com>
8331
8332 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8333 'private' to 'priv'.
8334
8335 2015-05-15 Pedro Alves <palves@redhat.com>
8336
8337 * nat/linux-nat.h: Include "target/waitstatus.h".
8338
8339 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8340
8341 * python/py-unwind.c (struct reg_info): Move out of ...
8342 (struct cached_frame_info): ... this scope.
8343 (pending_frame_object_type, unwind_info_object_type): Make extern.
8344
8345 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8346
8347 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8348 accumSize is never negative.
8349
8350 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8351
8352 * tui/tui-command.c: Remove include of <ctype.h>.
8353 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8354
8355 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8356
8357 * dwarf2read.c (die_needs_namespace): Return 1 for
8358 DW_TAG_inlined_subroutine.
8359
8360 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8361
8362 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8363 (regcache_cpy_no_passthrough): Make it static, add function comment.
8364 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8365 (regcache_cpy_no_passthrough): Remove declaration.
8366
8367 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8368
8369 * gdbthread.h (struct thread_control_state): Update comment for
8370 proceed_to_finish.
8371 * infcall.c (run_inferior_call): Update comment about
8372 proceed_to_finish.
8373 * infcmd.c (get_return_value): Update comment about stop_registers.
8374 (finish_forward): Update comment about proceed_to_finish.
8375 * infrun.c (stop_registers): Remove.
8376 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8377 * infrun.h (stop_registers): Remove.
8378
8379 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8380
8381 * infcall.c (struct dummy_frame_context_saver)
8382 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8383 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8384 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8385 New.
8386 (call_function_by_hand_dummy): Move discard_cleanups of
8387 inf_status_cleanup before dummy_frame_push. Call
8388 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8389 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8390 * infcall.h (struct dummy_frame_context_saver)
8391 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8392 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8393 New declarations.
8394 * infcmd.c: Include infcall.h.
8395 (get_return_value): Add parameter ctx_saver, use it instead of
8396 stop_registers.
8397 (print_return_value): Add parameter ctx_saver, pass it.
8398 (struct finish_command_continuation_args): Add field ctx_saver.
8399 (finish_command_continuation): Update print_return_value caller.
8400 (finish_command_continuation_free_arg): Free also ctx_saver.
8401 (finish_forward): Call dummy_frame_context_saver_setup.
8402 * inferior.h (struct dummy_frame_context_saver): New declaration.
8403 (get_return_value): Add parameter ctx_saver.
8404 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8405 get_return_value caller.
8406
8407 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8408
8409 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8410 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8411 (remove_dummy_frame): Process dtor_list.
8412 (pop_dummy_frame): Process dtor_list.
8413 (register_dummy_frame_dtor): Maintain dtor_list.
8414 (find_dummy_frame_dtor): Handle dtor_list.
8415 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8416 Update comments.
8417
8418 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8419
8420 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8421 registers_valid.
8422 (compile_object_run): Update do_module_cleanup caller.
8423 * dummy-frame.c: Include infcall.h.
8424 (struct dummy_frame): Update dtor comment.
8425 (remove_dummy_frame): Call dtor.
8426 (pop_dummy_frame): Update dtor caller.
8427 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8428 registers_valid.
8429
8430 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8431
8432 GDB 7.9.1 released.
8433
8434 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8435
8436 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8437 Xmethods now being able to specify a result type to that new
8438 sectioin.
8439
8440 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8441
8442 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8443 first before resizing the window.
8444 * tui/tui.c (tui_enable): Likewise.
8445
8446 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8447
8448 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8449 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8450 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8451 dummy_dtor parameter.
8452 * infcall.h: Include dummy-frame.h.
8453 (call_function_by_hand_dummy_dtor_ftype): Remove.
8454 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8455 parameter.
8456
8457 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8458
8459 PR gdb/17820
8460 * top.c (history_size_setshow_var): Change type to signed.
8461 Initialize to -2. Update documentation.
8462 (set_readline_history_size): Define.
8463 (set_history_size_command): Use it. Remove logic for handling
8464 out-of-range sizes.
8465 (init_history): Use set_readline_history_size(). Test for a
8466 value of -2 instead of 0 when determining whether to set a
8467 default history size.
8468 (init_main): Decode the argument of the "size" command as a
8469 zuinteger_unlimited.
8470
8471 2015-05-12 Doug Evans <dje@google.com>
8472
8473 * dwarf2read.c (struct file_entry): Tweak comments.
8474 (get_debug_line_section): Tweak comments.
8475
8476 2015-05-12 Don Breazeal <donb@codesourcery.com>
8477
8478 * NEWS: Announce fork support in the RSP and support
8479 for fork debugging in extended mode.
8480
8481 2015-05-12 Don Breazeal <donb@codesourcery.com>
8482
8483 * remote.c (remote_insert_fork_catchpoint): New function.
8484 (remote_remove_fork_catchpoint): New function.
8485 (remote_insert_vfork_catchpoint): New function.
8486 (remote_remove_vfork_catchpoint): New function.
8487 (pending_fork_parent_callback): New function.
8488 (remove_new_fork_child): New function.
8489 (remote_update_thread_list): Call remote_notif_get_pending_events
8490 and remove_new_fork_child.
8491 (extended_remote_kill): Kill fork child when killing the
8492 parent before follow_fork completes.
8493 (init_extended_remote_ops): Initialize target vector with
8494 new fork catchpoint functions.
8495
8496 2015-05-12 Don Breazeal <donb@codesourcery.com>
8497
8498 * remote.c (remove_vfork_event_p): New function.
8499 (remote_follow_fork): Add vfork event type to event checking.
8500 (remote_parse_stop_reply): New stop reasons "vfork" and
8501 "vforkdone" for RSP 'T' Stop Reply Packet.
8502
8503 2015-05-12 Don Breazeal <donb@codesourcery.com>
8504
8505 * linux-nat.c (linux_nat_ptrace_options): New function.
8506 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8507 Call linux_nat_ptrace_options and use different argument to
8508 linux_enable_event_reporting.
8509 (_initialize_linux_nat): Delete call to
8510 linux_ptrace_set_additional_flags.
8511 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8512 supported_ptrace_options.
8513 (additional_flags): Delete variable.
8514 (linux_check_ptrace_features): Use supported_ptrace_options.
8515 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8516 Likewise, and remove additional_flags check.
8517 (linux_enable_event_reporting): Change 'attached' argument to
8518 'options'. Use supported_ptrace_options.
8519 (ptrace_supports_feature): Change comment. Use
8520 supported_ptrace_options.
8521 (linux_ptrace_set_additional_flags): Delete function.
8522 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8523 Delete function prototype.
8524 * remote.c (remote_fork_event_p): New function.
8525 (remote_detach_pid): New function.
8526 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8527 if doing detach-on-fork.
8528 (remote_follow_fork): New function.
8529 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8530 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8531 (init_extended_remote_ops): Initialize to_follow_fork.
8532
8533 2015-05-12 Don Breazeal <donb@codesourcery.com>
8534
8535 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8536 from static to extern.
8537 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8538 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8539 * PACKET_vfork_event_feature>: New enumeration constants.
8540 (remote_protocol_features): Add table entries for new packets.
8541 (remote_query_supported): Add new feature queries to qSupported
8542 packet.
8543
8544 2015-05-12 Gary Benson <gbenson@redhat.com>
8545
8546 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8547 for fake PIDs as well as real ones.
8548 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8549
8550 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8551
8552 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8553 * python/py-value.c (valpy_reference_value): New function.
8554 (valpy_const_value): Likewise.
8555 (value_object_methods): Add new methods.
8556 * value.c (make_cv_value): New function.
8557 * value.h (make_cv_value): Declare.
8558
8559 2015-05-08 Yao Qi <yao@codesourcery.com>
8560 Sandra Loosemore <sandra@codesourcery.com>
8561
8562 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8563 to 'lh->include_dirs' before accessing to it.
8564 (psymtab_include_file_name): Likewise.
8565 (dwarf_decode_lines_1): Likewise.
8566 (dwarf_decode_lines): Likewise.
8567 (file_file_name): Likewise.
8568
8569 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8570
8571 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8572 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8573 (nios2_linux_rt_sigreturn_init): Adjust base address of
8574 register save area.
8575
8576 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8577
8578 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8579 "trap 31" as the breakpoint instruction on all targets.
8580
8581 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8582
8583 * infcmd.c (print_return_value): Remove unused declaration.
8584
8585 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8586
8587 * dwarf2read.c (attr_to_dynamic_prop)
8588 <DW_AT_data_member_location>: Use read_type_die isntead of
8589 get_die_type.
8590
8591 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8592
8593 * ada-lang.c (ada_convert_actual): Add handling of formals
8594 passed inside an aligner type.
8595
8596 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8597
8598 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8599
8600 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8601
8602 PR python/18291
8603 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8604 Print xmethod matcher status.
8605
8606 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8607
8608 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8609 register in the regcache when treating the PSWM register, and vice
8610 versa.
8611
8612 2015-05-07 Gary Benson <gbenson@redhat.com>
8613
8614 * linux-thread-db.c (struct thread_db_info)
8615 <td_ta_map_id2thr_p>: Remove field.
8616 (try_thread_db_load_1): Remove initialization for the above.
8617
8618 2015-05-07 Gary Benson <gbenson@redhat.com>
8619
8620 * linux-thread-db.c (struct thread_db_info)
8621 <td_thr_validate_p>: Remove field.
8622 (try_thread_db_load_1): Remove initialization for the above.
8623
8624 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8625
8626 * compile/compile-object-load.c (compile_object_load): Support
8627 mst_text_gnu_ifunc.
8628
8629 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8630
8631 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8632 const. Use new variables for the const compatibility.
8633 (eval_compile_command): Make the cmd_string parameter const.
8634 * compile/compile.h (eval_compile_command): Make the cmd_string
8635 parameter const.
8636
8637 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8638
8639 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8640 comment.
8641 * top.c (deprecated_init_ui_hook): Delete.
8642 (gdb_init): Remove handling of deprecated_init_ui_hook.
8643 * interps.c (clear_interpreter_hooks): Remove handling of
8644 deprecated_init_ui_hook.
8645 * main.c (captured_main): Update comment.
8646
8647 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8648
8649 * solib.c (_initialize_solib): Add "info dll" alias creation.
8650 * windows-nat.c (set_windows_aliases): Delete.
8651 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8652 assignment.
8653 * NEWS: Add news entry about "info dll" now being available
8654 on all platforms.
8655
8656 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8657
8658 * ada-lang.c (value_assign_to_component): Reformat and improve
8659 documentation. Remove all trailing spaces.
8660
8661 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8662
8663 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8664 Stop counting inlined frames as soon as an out-of-line function
8665 is found.
8666
8667 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8668
8669 * dwarf2read.c (inherit_abstract_dies): Skip
8670 DW_TAG_GNU_call_site dies while inheriting children of an
8671 abstract DIE into a scope.
8672 (read_lexical_block_scope): Inherit abstract DIE's for
8673 lexical scopes.
8674
8675 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8676
8677 * ada-valprint.c (val_print_packed_array_elements): Delete
8678 variable "len". Add a type-length check when comparing two
8679 consecutive elements of the array. Use the element's actual
8680 length in call to value_contents_eq.
8681 * ada-lang.c (ada_value_primitive_packed_val): Always return
8682 a value whose type has been resolved.
8683
8684 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8685
8686 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8687 BIT_SIZE and LEN if the size of the resolved type is smaller
8688 than BIT_SIZE * HOST_CHAR_BIT.
8689
8690 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8691
8692 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8693 correct address in call to value_at. Adjust call to
8694 value_address accordingly.
8695
8696 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8697
8698 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8699 to print it.
8700
8701 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8702
8703 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8704 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8705 pinfo->valaddr.
8706 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8707 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8708 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8709 Add handling of addr_stack->valaddr.
8710 (resolve_dynamic_type): Add "valaddr" parameter.
8711 Set pinfo.valaddr field.
8712 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8713 resolve_dynamic_type.
8714 (ada_discrete_type_low_bound): Likewise.
8715 * findvar.c (default_read_var_value): Likewise.
8716 * value.c (value_from_contents_and_address): Likewise.
8717
8718 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8719
8720 * gdbtypes.c (resolve_dynamic_array): Use
8721 create_array_type_with_stride instead of create_array_type.
8722
8723 2015-04-30 DJ Delorie <dj@redhat.com>
8724
8725 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8726 rl78_decode_opcode
8727
8728 2015-04-29 Doug Evans <dje@google.com>
8729
8730 PR python/18285
8731 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8732 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8733 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8734 * extension-priv.h (struct extension_language_ops)
8735 <get_xmethod_result_type>: New member.
8736 * extension.c (get_xmethod_result_type): New function.
8737 * extension.h (get_xmethod_result_type): Declare.
8738 * python/py-xmethods.c (get_result_type_method_name): New static
8739 global.
8740 (py_get_result_type_method_name): Ditto.
8741 (gdbpy_get_xmethod_result_type): New function.
8742 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8743 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8744 * python/python.c (python_extension_ops): Add
8745 gdbpy_get_xmethod_result_type.
8746 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8747 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8748 xmethods.
8749 (value_x_unop): Ditto.
8750 * value.c (result_type_of_xmethod): New function.
8751 * value.h (result_type_of_xmethod): Declare.
8752
8753 2015-04-29 Gary Benson <gbenson@redhat.com>
8754
8755 * solib.c (solib_find_1): Allow fd argument to be NULL.
8756 (exec_file_find): Update comment.
8757 (solib_find): Likewise.
8758 * exec.c (exec_file_locate_attach): Use NULL as fd
8759 argument to exec_file_find to avoid having to close
8760 the opened file.
8761 * infrun.c (follow_exec): Likewise.
8762
8763 2015-04-28 Doug Evans <dje@google.com>
8764
8765 PR python/18299
8766 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8767 name or __name__ attributes. Handle gdb module as first argument.
8768
8769 2015-04-28 Doug Evans <dje@google.com>
8770
8771 PR python/18089
8772 * python/py-prettyprint.c (print_children): Verify result of children
8773 iterator. Provide better error message.
8774 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8775 * python/python.c (gdbpy_print_python_errors_p): New function.
8776
8777 2015-04-28 Doug Evans <dje@google.com>
8778
8779 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8780
8781 2015-04-28 Sasha Smundak <asmundak@google.com>
8782
8783 * NEWS: Mention gdb.Type.optimized_out method.
8784 * python/py-type.c (typy_optimized_out): New function.
8785
8786 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8787
8788 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8789
8790 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8791
8792 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8793 (initialize_utils): Move call of init_page_info() to ...
8794 * top.c (gdb_init): ... here.
8795
8796 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8797
8798 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8799 (tui_sigwinch_handler): Still update our idea of
8800 the terminal's width and height even when TUI is not active.
8801
8802 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8803
8804 * utils.h (set_screen_width_and_height): Declare.
8805 * utils.c (set_screen_width_and_height): Define.
8806 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8807
8808 2015-04-28 Gary Benson <gbenson@redhat.com>
8809
8810 * infrun.c (solist.h): New include.
8811 (follow_exec): Use exec_file_find to prefix execd_pathname
8812 with gdb_sysroot.
8813
8814 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8815
8816 * tui/tui-source.c (tui_set_source_content): Avoid calling
8817 strcpy() when offset is 0.
8818
8819 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8820
8821 PR gdb/18155
8822 * tui/tui-data.c (tui_free_window): Don't free the locator
8823 window when passed an SRC_WIN or a DISASSEM_WIN.
8824
8825 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8826
8827 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8828 (tui_win_content): Move declaration.
8829 (struct tui_gen_win_info): Give 'content' field the
8830 type tui_win_content.
8831 * tui/tui-data.c (init_content_element): Remove redundant and
8832 erroneous casts.
8833 (tui_add_content_elements): Remove erroneous cast.
8834 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8835 casts.
8836 (tui_get_begin_asm_address): Likewise.
8837 * tui/tui-regs.c (tui_show_registers): Likewise.
8838 (tui_show_register_group): Likewise.
8839 (tui_display_registers_from): Likewise.
8840 (tui_check_register_values): Likewise.
8841 * tui/tui-source.c (tui_set_source_content): Likewise.
8842 (tui_set_source_content_nil): Likewise.
8843 (tui_source_is_displayed): Likewise.
8844 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8845 (tui_set_locator_fullname): Likewise.
8846 (tui_set_locator_info): Likewise.
8847 (tui_show_frame_info): Likewise.
8848 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8849 (tui_show_source_line): Likewise.
8850 (tui_horizontal_source_scroll): Likewise.
8851 (tui_update_breakpoint_info): Likewise.
8852 (tui_set_exec_info_content): Likewise.
8853 (tui_show_exec_info_content): Likewise.
8854 (tui_alloc_source_buffer): Likewise.
8855 (tui_line_is_displayed): Likewise.
8856 (tui_addr_is_displayed): Likewise.
8857
8858 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8859
8860 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8861 event if PL_FLAG_EXEC is set.
8862 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8863 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8864 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8865 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8866 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8867
8868 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8869
8870 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8871 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8872 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8873 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8874 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8875 [PT_LWPINFO] (fbsd_wait): New function.
8876 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8877 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8878 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8879 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8880 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8881 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8882 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8883 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8884 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8885 "fbsd_wait".
8886 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8887 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8888 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8889 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8890 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8891 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8892 Set "to_post_attach" to "fbsd_post_attach".
8893
8894 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8895
8896 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8897 (fbsd_find_memory_regions): Mark static.
8898 (fbsd_nat_add_target): New function.
8899 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8900 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8901 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8902 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8903 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8904 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8905
8906 2015-04-27 Gary Benson <gbenson@redhat.com>
8907
8908 * objfiles.c (allocate_objfile): Do not attempt to expand name
8909 if name is a "target:" filename.
8910 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8911 to load auto-load scripts for objfiles with "target:" filenames.
8912
8913 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8914
8915 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8916 (enum s390_vector_abi_kind): New enum.
8917 (struct gdbarch_tdep)<vector_abi>: New field.
8918 (s390_effective_inner_type): Add parameter min_size. Stop
8919 unwrapping if the inner type is smaller than min_size.
8920 (s390_function_arg_float): Adjust call to
8921 s390_effective_inner_type.
8922 (s390_function_arg_vector): New function.
8923 (s390_function_arg_integer): Adjust comment.
8924 (struct s390_arg_state)<vr>: New field.
8925 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8926 arguments according to vector ABI when appropriate.
8927 (s390_push_dummy_call): Initialize the argument state's field
8928 'vr'. Adjust calls to s390_handle_arg.
8929 (s390_register_return_value): Handle vector return values.
8930 (s390_return_value): Apply the "register" return value convention
8931 to a vector when appropriate.
8932 (s390_gdbarch_init): Initialize tdep->vector_abi.
8933 * NEWS: Announce S390 vector ABI support.
8934
8935 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8936
8937 * s390-linux-tdep.c (s390_return_value_convention): Remove
8938 function. Inline its logic...
8939 (s390_return_value): ...here. Instead, move the handling of the
8940 "register" return value convention...
8941 (s390_register_return_value): ...here. New function.
8942
8943 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8944
8945 * s390-linux-tdep.c
8946 (is_float_singleton): Remove function. Move the "singleton" part
8947 of the logic...
8948 (s390_effective_inner_type): ...here. New function.
8949 (is_float_like): Remove function. Inline its logic...
8950 (s390_function_arg_float): ...here.
8951 (is_pointer_like, is_integer_like, is_struct_like): Remove
8952 functions. Inline their logic...
8953 (s390_function_arg_integer): ...here.
8954 (s390_function_arg_pass_by_reference): Remove function.
8955 (extend_simple_arg): Remove function.
8956 (alignment_of): Remove function.
8957 (struct s390_arg_state): New structure.
8958 (s390_handle_arg): New function.
8959 (s390_push_dummy_call): Move parameter placement logic to the new
8960 function s390_handle_arg. Call it for calculating the stack area
8961 sizes first, and again for actually writing the parameters.
8962
8963 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8964
8965 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8966 false if the argument is zero.
8967
8968 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8969
8970 * ada-lang.c (template_to_static_fixed_type): Return input type
8971 when it is already fixed. Cache the input type itself when not
8972 creating a static fixed copy. Make it explicit that we never
8973 molestate the input type.
8974 * gdbtypes.c (resolve_dynamic_struct): Reset the
8975 TYPE_TARGET_TYPE field for resolved copies.
8976
8977 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8978
8979 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8980 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8981 (template_to_static_fixed_type): Call ada_check_typedef only
8982 when necessary.
8983
8984 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8985
8986 * cli/cli-dump.c (srec_dump_command): Add internationalization
8987 mark ups.
8988 (ihex_dump_command): Likewise.
8989 (tekhex_dump_command): Likewise.
8990 (binary_dump_command): Likewise.
8991 (binary_append_command): Likewise.
8992
8993 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8994
8995 * cli/cli-dump.c (verilog_cmdlist): New variable.
8996 (dump_verilog_memory): New function.
8997 (dump_verilog_value): New function.
8998 (verilog_dump_command): New function.
8999 (_initialize_cli_dump): Add new commands to support verilog dump
9000 format.
9001 * NEWS: Add entry for "dump verilog".
9002
9003 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9004
9005 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9006 descriptive type when there is none.
9007
9008 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9009
9010 * tui/tui-win.c (tui_async_resize_screen): Call
9011 rl_resize_terminal().
9012
9013 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9014
9015 * windows-nat.c (handle_output_debug_string): Don't change
9016 current_event.dwThreadId.
9017 (get_windows_debug_event): Use thread_id, rather than relying on
9018 current_event.dwThreadId being changed.
9019
9020 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9021
9022 * windows-nat.c (windows_continue): Report an error if
9023 ContinueDebugEvent() fails.
9024
9025 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9026
9027 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9028
9029 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9030
9031 * windows-nat.c (get_windows_debug_event): Replace retval with
9032 thread_id throughout. Update stale comment.
9033
9034 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9035
9036 * windows-nat.c (get_windows_debug_event): Don't use ternary
9037 conditional operator.
9038
9039 2015-04-21 Pierre Muller <muller@sourceware.org>
9040
9041 PR pascal/17815
9042 p-exp.y (yylex): Reorganize code to return the matched pattern
9043 for a field of this.
9044
9045 2015-04-21 Gary Benson <gbenson@redhat.com>
9046
9047 * common/fileio.h (fileio_to_host_openflags): New declaration.
9048 * common/fileio.c (fcntl.h): New include.
9049 (fileio_to_host_openflags): New function, factored out from...
9050 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9051 Single use updated.
9052
9053 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9054
9055 * rl78-tdep.c (RL78_SP_ADDR): Define.
9056 (opc_reg_to_gdb_regnum): New static function.
9057 (rl78_analyze_prologue): Recognize instructions forming slightly
9058 more interesting prologues.
9059
9060 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9061
9062 Revert:
9063 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9064 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9065 TYPE_CODE_REF types so that they are not considered as dynamic
9066 depending on the referenced type.
9067 (resolve_dynamic_type_internal): Likewise.
9068
9069 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9070
9071 Revert:
9072 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9073 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9074 "top_level" parameter.
9075 (resolve_dynamic_type_internal): Remove the unused "top_level"
9076 parameter. Update call to is_dynamic_type_internal.
9077 (is_dynamic_type): Update call to is_dynamic_type_internal.
9078 (resolve_dynamic_range): Update call to
9079 resolve_dynamic_type_internal.
9080 (resolve_dynamic_union): Likewise.
9081 (resolve_dynamic_struct): Likewise.
9082 (resolve_dynamic_type): Likewise.
9083
9084 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9085
9086 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9087 xmalloc.
9088
9089 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9090
9091 * reply_mig_hack.awk: Robustify parsing.
9092
9093 * reply_mig_hack.awk: Don't bother to declare an intermediate
9094 function pointer variable.
9095
9096 2015-04-17 Doug Evans <dje@google.com>
9097
9098 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9099 to "exec_displacement" to avoid confusion with inner use of the name.
9100
9101 2015-04-17 Pedro Alves <palves@redhat.com>
9102
9103 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9104 if HW point of TYPE isn't supported.
9105
9106 2015-04-17 Yao Qi <yao.qi@linaro.org>
9107 Pedro Alves <palves@redhat.com>
9108
9109 * target.h (target_can_use_hardware_watchpoint): Update comments.
9110 Remove trailing ";".
9111
9112 2015-04-17 Gary Benson <gbenson@redhat.com>
9113
9114 * remote.c (remote_add_inferior): New argument try_open_exec.
9115 If nonzero, attempt to open the inferior's executable file as
9116 the main executable if no main executable is open already.
9117 All callers updated.
9118 * NEWS: Mention that GDB now supports automatic location and
9119 retrieval of executable + files from remote targets.
9120
9121 2015-04-17 Gary Benson <gbenson@redhat.com>
9122
9123 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9124 * remote.c (PACKET_qXfer_exec_file): Likewise.
9125 (remote_protocol_features): Register the
9126 "qXfer:exec-file:read" feature.
9127 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9128 (remote_pid_to_exec_file): New function.
9129 (init_remote_ops): Initialize to_pid_to_exec_file.
9130 (_initialize_remote): Register new "set/show remote
9131 pid-to-exec-file-packet" command.
9132 * NEWS: Announce new qXfer:exec-file:read packet.
9133
9134 2015-04-17 Gary Benson <gbenson@redhat.com>
9135
9136 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9137 New declaration.
9138 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9139 New function, factored out from...
9140 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9141
9142 2015-04-17 Gary Benson <gbenson@redhat.com>
9143
9144 * exec.c (solist.h): New include.
9145 (exec_file_locate_attach): Prefix absolute executable
9146 paths with gdb_sysroot if set.
9147 * NEWS: Mention that executable paths may be prepended
9148 with sysroot.
9149
9150 2015-04-17 Gary Benson <gbenson@redhat.com>
9151
9152 * solist.h (exec_file_find): New declaration.
9153 * solib.c (solib_find_1): New function, factored out from...
9154 (solib_find): ...here.
9155 (exec_file_find): New function.
9156
9157 2015-04-17 Gary Benson <gbenson@redhat.com>
9158
9159 * gdbcore.h (exec_file_locate_attach): New declaration.
9160 * exec.c (exec_file_locate_attach): New function, factored
9161 out from...
9162 * infcmd.c (attach_command_post_wait): ...here.
9163
9164 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9165
9166 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9167
9168 2015-04-16 Yao Qi <yao.qi@linaro.org>
9169
9170 * infrun.c (maybe_software_singlestep): Declare.
9171 (displaced_step_fixup): Call maybe_software_singlestep.
9172
9173 2015-04-15 Doug Evans <dje@google.com>
9174
9175 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9176
9177 2015-04-15 Doug Evans <dje@google.com>
9178
9179 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9180
9181 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9182
9183 * python/lib/gdb/command/unwinders.py: Add parentheses.
9184
9185 2015-04-15 Yao Qi <yao.qi@linaro.org>
9186
9187 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9188
9189 2015-04-15 Yao Qi <yao.qi@linaro.org>
9190
9191 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9192
9193 2015-04-15 Yao Qi <yao.qi@linaro.org>
9194
9195 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9196 dsc->insn_size instead of 4.
9197
9198 2015-04-14 Gary Benson <gbenson@redhat.com>
9199
9200 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9201 * minidebug.c (lzma_stat): Likewise.
9202 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9203 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9204
9205 2015-04-13 Stan Shebs <stanshebs@google.com>
9206
9207 * MAINTAINERS: Update my email address.
9208
9209 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9210
9211 * amd64-tdep.c (amd64_target_description): New function.
9212 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9213 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9214 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9215 x86 extended save area.
9216 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9217 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9218 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9219 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9220 "amd64fbsd_read_description".
9221 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9222 (amd64fbsd_supply_xstateregset): New function.
9223 (amd64fbsd_collect_xstateregset): New function.
9224 Add "amd64fbsd_xstateregset".
9225 (amd64fbsd_iterate_over_regset_sections): New function.
9226 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9227 "I386_FBSD_XSAVE_XCR0_OFFSET".
9228 Add "iterate_over_regset_sections" gdbarch method.
9229 Add "core_read_description" gdbarch method.
9230 * i386-tdep.c (i386_target_description): New function.
9231 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9232 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9233 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9234 x86 extended save area.
9235 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9236 * i386bsd-nat.h: Export i386bsd_xsave_len.
9237 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9238 (_initialize_i386fbsd_nat): Set "to_read_description" to
9239 "i386fbsd_read_description".
9240 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9241 (i386fbsd_core_read_description): New function.
9242 (i386fbsd_supply_xstateregset): New function.
9243 (i386fbsd_collect_xstateregset): New function.
9244 Add "i386fbsd_xstateregset".
9245 (i386fbsd_iterate_over_regset_sections): New function.
9246 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9247 "I386_FBSD_XSAVE_XCR0_OFFSET".
9248 Add "iterate_over_regset_sections" gdbarch method.
9249 Add "core_read_description" gdbarch method.
9250 * i386fbsd-tdep.h: New file.
9251
9252 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9253
9254 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9255 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9256 conditional.
9257 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9258 and lb.
9259 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9260 va.
9261 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9262 conditional.
9263 * defs.h (xdb_commands): Remove declaration.
9264 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9265 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9266 * infcmd.c (run_no_args_command, go_command): Remove.
9267 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9268 * infrun.c (xdb_handle_command): Remove.
9269 (_initialize_infrun): Remove xdb_commands for lz and z.
9270 * main.c (xdb_commands): Remove variable.
9271 (captured_main): Remove "xdb" from long_options.
9272 (print_gdb_help): Remove --xdb from help.
9273 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9274 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9275 * stack.c (backtrace_full_command, args_plus_locals_info)
9276 (current_frame_command): Remove.
9277 (_initialize_stack): Remove xdb_commands for t, T and l.
9278 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9279 * thread.c (_initialize_thread): Remove xdb_commands condition.
9280 * tui/tui-layout.c (tui_toggle_layout_command)
9281 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9282 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9283 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9284 (tui_scroll_regs_backward_command): Remove.
9285 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9286 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9287 (_initialize_tui_win): Remove xdb_commands for U and w.
9288 * utils.c (pagination_on_command, pagination_off_command): Remove.
9289 (initialize_utils): Remove xdb_commands for am and sm.
9290
9291 2015-04-10 Pedro Alves <palves@redhat.com>
9292
9293 * infrun.c (displaced_step_fixup): Switch to the event ptid
9294 earlier. If the thread stopped for a watchpoint and the
9295 target/arch has non-continuable watchpoints, cancel the displaced
9296 step.
9297 (resume): Don't start a displaced step if in-line step-over info
9298 is valid.
9299
9300 2015-04-10 Pedro Alves <palves@redhat.com>
9301
9302 * infrun.c (displaced_step_in_progress): New function.
9303 (do_target_resume): Advise target to report all signals if
9304 displaced stepping.
9305
9306 2015-04-10 Pedro Alves <palves@redhat.com>
9307
9308 PR gdb/18216
9309 * infrun.c (process_event_stop_test): Don't assume a step-resume
9310 is set if tp->stepped_breakpoint is true.
9311
9312 2015-04-10 Yao Qi <yao.qi@linaro.org>
9313
9314 * arm-tdep.c (install_alu_reg): Update comment.
9315 (thumb_copy_alu_reg): Remove local variable rn. Update
9316 debugging message. Use r2 instead of r1 in the modified
9317 instruction.
9318
9319 2015-04-10 Pedro Alves <palves@redhat.com>
9320
9321 PR gdb/13858
9322 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9323 linux_displaced_step_location as gdbarch_displaced_step_location
9324 hook.
9325 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9326 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9327 * linux-tdep.c (linux_displaced_step_location): New function,
9328 based on ppc_linux_displaced_step_location.
9329 * linux-tdep.h (linux_displaced_step_location): New declaration.
9330 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9331 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9332 Delete.
9333 (ppc_linux_init_abi): Install linux_displaced_step_location as
9334 gdbarch_displaced_step_location hook, even without Cell/B.E..
9335 (_initialize_ppc_linux_tdep): Don't install
9336 ppc_linux_inferior_created as inferior_created observer.
9337 * s390-linux-tdep.c (s390_gdbarch_init): Install
9338 linux_displaced_step_location as gdbarch_displaced_step_location
9339 hook.
9340
9341 2015-04-09 Gary Benson <gbenson@redhat.com>
9342
9343 * common/common-remote-fileio.h: Rename to...
9344 * common/fileio.h: ...this. Update all references.
9345 (remote_fileio_to_fio_error): Rename to...
9346 (host_to_fileio_error): ...this.
9347 (remote_fileio_to_be): Rename to...
9348 (host_to_bigendian): ...this. Update all callers.
9349 (remote_fileio_to_fio_uint): Rename to...
9350 (host_to_fileio_uint): ...this. Update all callers.
9351 (remote_fileio_to_fio_time): Rename to...
9352 (host_to_fileio_time): ...this. Update all callers.
9353 (remote_fileio_to_fio_stat): Rename to...
9354 (host_to_fileio_stat): ...this.
9355 Update all references.
9356 * common/common-remote-fileio.c: Rename to...
9357 * common/fileio.c: ...this. Update all references.
9358 (remote_fileio_to_fio_error): Rename to...
9359 (host_to_fileio_error): ...this. Update all callers.
9360 (remote_fileio_mode_to_target): Rename to...
9361 (fileio_mode_pack): ...this. Update all callers.
9362 (remote_fileio_to_fio_mode): Rename to...
9363 (host_to_fileio_mode): ...this. Update all callers.
9364 (remote_fileio_to_fio_ulong): Rename to...
9365 (host_to_fileio_ulong): ...this. Update all callers.
9366 (remote_fileio_to_fio_stat): Rename to...
9367 (host_to_fileio_stat): ...this. Update all callers.
9368
9369 2015-04-09 Andy Wingo <wingo@igalia.com>
9370
9371 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9372 (frame_functions): Bind gdbscm_frame_read_register to
9373 frame-read-register.
9374 * guile/lib/gdb.scm (frame-read-register): Export.
9375
9376 2015-04-09 Gary Benson <gbenson@redhat.com>
9377
9378 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9379 New declaration.
9380 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9381 New function, factored out the named functions below.
9382 * inf-child.c (gdb/fileio.h): Remove include.
9383 (common-remote-fileio.h): New include.
9384 (inf_child_errno_to_fileio_error): Remove function. Update
9385 all callers to use remote_fileio_to_fio_error.
9386 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9387
9388 2015-04-09 Andy Wingo <wingo@igalia.com>
9389
9390 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9391
9392 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9393
9394 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9395 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9396 * configure: Regenerated.
9397
9398 2015-04-09 Pedro Alves <palves@redhat.com>
9399
9400 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9401 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9402 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9403 * gnulib/import/Makefile.am: Update.
9404 * gnulib/import/Makefile.in: Update.
9405 * gnulib/import/m4/gnulib-cache.m4: Update.
9406 * gnulib/import/m4/gnulib-comp.m4: Update.
9407 * gnulib/import/m4/strtok_r.m4: New file.
9408 * gnulib/import/strtok_r.c: New file.
9409
9410 2015-04-09 Pedro Alves <palves@redhat.com>
9411
9412 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9413 "called too early to check prototype".
9414
9415 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9416
9417 PR python/16699
9418 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9419 use a caching mechanism. Adjust comments and code to reflect
9420 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9421 (cmdpy_completer_handle_brkchars): Adjust call to
9422 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9423 (cmdpy_completer): Likewise.
9424
9425 2015-04-08 Yao Qi <yao.qi@linaro.org>
9426
9427 * spu-tdep.c (spu_gdbarch_init): Don't call
9428 set_gdbarch_cannot_step_breakpoint.
9429
9430 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9431
9432 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9433
9434 2015-04-07 Pedro Alves <palves@redhat.com>
9435
9436 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9437 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9438 (delete_exited_threads): New declaration.
9439 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9440 * linux-nat.c (linux_nat_update_thread_list): New function.
9441 (linux_nat_add_target): Install it.
9442 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9443 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9444 (delete_exited_threads): New function.
9445
9446 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9447
9448 * infrun.c (resume) <displaced stepping debug output>: Get the
9449 leader thread's regcache, not resume_ptid's.
9450
9451 2015-04-06 Doug Evans <xdje42@gmail.com>
9452
9453 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9454 VAR_DOMAIN.
9455 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9456 Include symbol domain in debugging output.
9457
9458 2015-04-06 Pedro Alves <palves@redhat.com>
9459 Bernd Edlinger <bernd.edlinger@hotmail.de>
9460
9461 * configure.ac: Remove the mingw32-specific stub-termcap.o
9462 fallback, and instead fallback to the stub termcap on all hosts.
9463 * configure: Regenerate.
9464 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9465 symbols.
9466
9467 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9468
9469 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9470 "top_level" parameter.
9471 (resolve_dynamic_type_internal): Remove the unused "top_level"
9472 parameter. Update call to is_dynamic_type_internal.
9473 (is_dynamic_type): Update call to is_dynamic_type_internal.
9474 (resolve_dynamic_range): Update call to
9475 resolve_dynamic_type_internal.
9476 (resolve_dynamic_union): Likewise.
9477 (resolve_dynamic_struct): Likewise.
9478 (resolve_dynamic_type): Likewise.
9479
9480 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9481
9482 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9483 TYPE_CODE_REF types so that they are not considered as dynamic
9484 depending on the referenced type.
9485 (resolve_dynamic_type_internal): Likewise.
9486
9487 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9488
9489 * Makefile.in (top_srcdir): New.
9490 * configure: Regenerated.
9491
9492 2015-04-02 Gary Benson <gbenson@redhat.com>
9493
9494 * NEWS: Announce the new default sysroot of "target:".
9495
9496 2015-04-02 Gary Benson <gbenson@redhat.com>
9497
9498 * main.c (captured_main): Set gdb_sysroot to "target:"
9499 if not otherwise set.
9500
9501 2015-04-02 Gary Benson <gbenson@redhat.com>
9502
9503 * exec.c (exec_file_attach): Support "target:" filenames.
9504
9505 2015-04-02 Gary Benson <gbenson@redhat.com>
9506
9507 * solib.c (solib_find): Strip "target:" prefix from sysroot
9508 if accessing local files.
9509
9510 2015-04-02 Gary Benson <gbenson@redhat.com>
9511
9512 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9513 checks and error messages.
9514
9515 2015-04-02 Gary Benson <gbenson@redhat.com>
9516
9517 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9518 (remote_filename_p): Remove declaration.
9519 (remote_bfd_open): Likewise.
9520 * remote.c (remote_bfd_iovec_open): Remove function.
9521 (remote_bfd_iovec_close): Likewise.
9522 (remote_bfd_iovec_pread): Likewise.
9523 (remote_bfd_iovec_stat): Likewise.
9524 (remote_filename_p): Likewise.
9525 (remote_bfd_open): Likewise.
9526 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9527 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9528 (gdb_bfd_open_maybe_remote): Remove function.
9529 (symfile_bfd_open): Replace remote filename check with
9530 target filename check.
9531 (reread_symbols): Use gdb_bfd_open.
9532 * build-id.c (gdbcore.h): New include.
9533 (build_id_to_debug_bfd): Use gdb_bfd_open.
9534 * infcmd.c (attach_command_post_wait): Remove remote filename
9535 check.
9536 * solib.c (solib_find): Replace remote-specific handling with
9537 target-specific handling. Update comments where necessary.
9538 (solib_bfd_open): Replace remote-specific handling with
9539 target-specific handling.
9540 (gdb_sysroot_changed): New function.
9541 (_initialize_solib): Call the above when gdb_sysroot changes.
9542 * windows-tdep.c (gdbcore.h): New include.
9543 (windows_xfer_shared_library): Use gdb_bfd_open.
9544
9545 2015-04-02 Gary Benson <gbenson@redhat.com>
9546
9547 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9548 (is_target_filename): New declaration.
9549 (gdb_bfd_has_target_filename): Likewise.
9550 (gdb_bfd_open): Update documentation comment.
9551 * gdb_bfd.c (target.h): New include.
9552 (gdb/fileio.h): Likewise.
9553 (is_target_filename): New function.
9554 (gdb_bfd_has_target_filename): Likewise.
9555 (fileio_errno_to_host): Likewise.
9556 (gdb_bfd_iovec_fileio_open): Likewise.
9557 (gdb_bfd_iovec_fileio_pread): Likewise.
9558 (gdb_bfd_iovec_fileio_close): Likewise.
9559 (gdb_bfd_iovec_fileio_fstat): Likewise.
9560 (gdb_bfd_open): Use target fileio to access paths prefixed
9561 with "target:" where necessary.
9562
9563 2015-04-02 Gary Benson <gbenson@redhat.com>
9564
9565 * target.h (struct target_ops) <to_filesystem_is_local>:
9566 New field.
9567 (target_filesystem_is_local): New macro.
9568 * target-delegates.c: Regenerate.
9569 * remote.c (remote_filesystem_is_local): New function.
9570 (init_remote_ops): Initialize to_filesystem_is_local.
9571
9572 2015-04-02 Gary Benson <gbenson@redhat.com>
9573
9574 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9575 (target_fileio_fstat): New declaration.
9576 * target.c (target_fileio_fstat): New function.
9577 * inf-child.c (inf_child_fileio_fstat): Likewise.
9578 (inf_child_target): Initialize to_fileio_fstat.
9579 * remote.c (init_remote_ops): Likewise.
9580
9581 2015-04-01 Sasha Smundak <asmundak@google.com>
9582
9583 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9584 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9585 (py-unwind.o): New recipe.
9586 * NEWS: mention Python frame unwinding.
9587 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9588 gdb/unwinder.py and gdb/command/unwinder.py
9589 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9590 list.
9591 (execute_unwinders): New function.
9592 * python/lib/gdb/command/unwinders.py: New file.
9593 * python/lib/gdb/unwinder.py: New file.
9594 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9595 (objfpy_dealloc): Decrement frame_unwinders reference count.
9596 (objfpy_initialize): Create frame_unwinders list.
9597 (objfpy_get_frame_unwinders): New function.
9598 (objfpy_set_frame_unwinders): Ditto.
9599 (objfile_getset): Add frame_unwinders attribute to Objfile.
9600 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9601 (pspy_dealloc): Decrement frame_unwinders reference count.
9602 (pspy_initialize): Create frame_unwinders list.
9603 (pspy_get_frame_unwinders): New function.
9604 (pspy_set_frame_unwinders): Ditto.
9605 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9606 * python/py-unwind.c: New file.
9607 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9608 (objpy_get_frame_unwinders): New prototype.
9609 (gdbpy_initialize_unwind): New prototype.
9610 * python/python.c (gdbpy_apply_type_printers): Call
9611 gdbpy_initialize_unwind.
9612
9613 2015-04-01 Pedro Alves <palves@redhat.com>
9614
9615 * infrun.c (resume): Check currently_stepping after clearing
9616 stepped_breakpoint, not before.
9617
9618 2015-04-01 Pedro Alves <palves@redhat.com>
9619
9620 * infrun.c (print_target_wait_results): Print all the ptid
9621 elements.
9622
9623 2015-04-01 Pedro Alves <palves@redhat.com>
9624
9625 * infrun.c (keep_going): Also discard cleanups if inserting
9626 breakpoints fails.
9627
9628 2015-04-01 Pedro Alves <palves@redhat.com>
9629
9630 * infrun.c (wait_for_inferior): Install the
9631 finish_thread_state_cleanup cleanup across the whole function, not
9632 just around handle_inferior_event.
9633
9634 2015-04-01 Pedro Alves <palves@redhat.com>
9635
9636 * infrun.c (resume) <step past permanent breakpoint>: Use
9637 do_target_resume.
9638
9639 2015-04-01 Pedro Alves <palves@redhat.com>
9640
9641 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9642
9643 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9644
9645 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9646
9647 2015-04-01 Pedro Alves <palves@redhat.com>
9648
9649 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9650 list if it was marked exited.
9651
9652 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9653
9654 * configure: Regenerated.
9655
9656 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9657 Jan Kratochvil <jan.kratochvil@redhat.com>
9658 Oleg Nesterov <oleg@redhat.com>
9659
9660 PR corefiles/16092
9661 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9662 New enum identifying the various options of the coredump_filter
9663 file.
9664 (struct smaps_vmflags): New struct.
9665 (use_coredump_filter): New variable.
9666 (decode_vmflags): New function.
9667 (mapping_is_anonymous_p): Likewise.
9668 (dump_mapping_p): Likewise.
9669 (linux_find_memory_regions_full): New variables
9670 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9671 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9672 parsing of its information. Implement memory mapping filtering
9673 based on its contents.
9674 (show_use_coredump_filter): New function.
9675 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9676 * NEWS: Mention the possibility of using the
9677 '/proc/PID/coredump_filter' file when generating a corefile.
9678 Mention new command 'set use-coredump-filter'.
9679
9680 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9681
9682 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9683 read_memory_unsigned_integer.
9684
9685 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9686
9687 * Makefile.in (ZLIB): New.
9688 (ZLIBINC): Likewise.
9689 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9690 (CLIBS): Add $(ZLIB).
9691 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9692 Add -lz to LIBS.
9693 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9694 * top.c (print_gdb_configuration): Remove --with-zlib and
9695 --without-zlib.
9696 * config.in: Regenerated.
9697 * configure: Likewise.
9698
9699 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9700
9701 * NEWS: Mention info os cpus support.
9702 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9703 (struct osdata_type): Add cpus entry, reorder the entries in
9704 alphabetical order.
9705
9706 2015-03-31 Matthias Klose <doko@ubuntu.com>
9707
9708 * compile/compile.c (compile_to_object): Allow triplets with or
9709 without vendor set.
9710
9711 2015-03-30 Doug Evans <dje@google.com>
9712
9713 PR c++/18141
9714 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9715 klass in VAR_DOMAIN.
9716
9717 2015-03-30 Gary Benson <gbenson@redhat.com>
9718
9719 * remote.c (remote_mourn_1): Remove function. Update all callers
9720 to use remote_mourn.
9721 (extended_remote_mourn_1): Remove function. Update all callers
9722 to use extended_remote_mourn.
9723 (extended_remote_attach_1): Remove function. Update all callers
9724 to use extended_remote_attach.
9725
9726 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9727
9728 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9729 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9730 (ALLDEPFILES): Add ft32-tdep.c.
9731 * configure.tgt: Add FT32 entry.
9732 * ft32-tdep.c: New file, FT32 target-dependent code.
9733 * ft32-tdep.h: New file, FT32 target-dependent code.
9734
9735 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9736
9737 Revert:
9738 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9739 Code cleanup.
9740 * printcmd.c (print_command_1): Move expr variable scope.
9741
9742 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9743
9744 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9745
9746 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9747
9748 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9749 sections.
9750
9751 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9752
9753 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9754 exception raised while parsing the probe arguments.
9755 Force parsing to be done using the C language parser.
9756 * expression.h (parse_expression_with_language): Declare.
9757 * parse.c (parse_expression_with_language): New function.
9758
9759 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9760
9761 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9762
9763 2015-03-26 Andy Wingo <wingo@igalia.com>
9764
9765 PR symtab/18148
9766 * dwarf2read.c (struct partial_die_info): Add has_const_value
9767 member.
9768 (add_partial_symbol): Don't punt on symbols that have const_value
9769 attributes.
9770 (read_partial_die): Detect DW_AT_const_value.
9771
9772 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9773
9774 Code cleanup.
9775 * printcmd.c (print_command_1): Move expr variable scope.
9776
9777 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9778
9779 Code cleanup.
9780 * printcmd.c (validate_format): Make the parameter cmdname const.
9781
9782 2015-03-26 Don Breazeal <donb@codesourcery.com>
9783
9784 * remote.c (_initialize_remote): Update comment.
9785
9786 2015-03-26 Pedro Alves <palves@redhat.com>
9787 Jon TURNEY <jon.turney@dronecode.org.uk>
9788
9789 * coffread.c (coff_symfile_read): When constructing the name of an
9790 import stub symbol from import symbol for amd64, only skip the
9791 char after _imp_ if the target is underscored (like i386) and the
9792 char is indeed the target's leading char.
9793
9794 2015-03-25 Pedro Alves <palves@redhat.com>
9795
9796 * target.h <to_async>: Replace 'callback' and 'context' parameters
9797 with boolean 'enable' parameter.
9798 (target_async): Replace CALLBACK and CONTEXT parameters with
9799 boolean ENABLE parameter.
9800 * inf-loop.c (inferior_event_handler): Adjust.
9801 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9802 (linux_nat_resume): Adjust.
9803 (async_client_callback, async_client_context): Delete.
9804 (handle_target_event): Call inferior_event_handler directly.
9805 (linux_nat_async): Replace 'callback' and 'context' parameters
9806 with boolean 'enable' parameter. Adjust. Remove references to
9807 async_client_callback and async_client_context.
9808 (linux_nat_close): Adjust.
9809 * record-btrace.c (record_btrace_async): Replace 'callback' and
9810 'context' parameters with boolean 'enable' parameter. Adjust.
9811 (record_btrace_resume): Adjust.
9812 * record-full.c (record_full_async): Replace 'callback' and
9813 'context' parameters with boolean 'enable' parameter. Adjust.
9814 (record_full_resume, record_full_core_resume): Adjust.
9815 * remote.c (struct remote_state) <async_client_callback,
9816 async_client_context>: Delete fields.
9817 (remote_start_remote, extended_remote_attach_1, remote_resume)
9818 (extended_remote_create_inferior): Adjust.
9819 (remote_async_serial_handler): Call inferior_event_handler
9820 directly.
9821 (remote_async): Replace 'callback' and 'context' parameters with
9822 boolean 'enable' parameter. Adjust.
9823 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9824 Adjust.
9825 * target-delegates.c: Regenerate.
9826
9827 2015-03-25 Gary Benson <gbenson@redhat.com>
9828 Pedro Alves <palves@redhat.com>
9829
9830 * target.c (fileio_ft_t): New typedef, define object vector.
9831 (fileio_fhandles): New static variable.
9832 (is_closed_fileio_fh): New macro.
9833 (lowest_closed_fd): New static variable.
9834 (acquire_fileio_fd): New function.
9835 (release_fileio_fd): Likewise.
9836 (fileio_fd_to_fh): New macro.
9837 (target_fileio_open): Wrap the file descriptor on success.
9838 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9839 (target_fileio_pread): Likewise.
9840 (target_fileio_close): Likewise.
9841
9842 2015-03-24 Pedro Alves <palves@redhat.com>
9843
9844 * thread.c (thread_apply_all_command): Take exited threads into
9845 account.
9846
9847 2015-03-24 Pedro Alves <palves@redhat.com>
9848
9849 * infrun.c (resume, proceed): Mention
9850 switch_back_to_stepped_thread, not switch_back_to_stepping.
9851
9852 2015-03-24 Pedro Alves <palves@redhat.com>
9853
9854 * infrun.c (user_visible_resume_ptid): Rewrite going from
9855 most-locked to unlocked instead of the opposite. Move comment ...
9856 * infrun.h (user_visible_resume_ptid): ... here.
9857
9858 2015-03-24 Pedro Alves <palves@redhat.com>
9859
9860 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9861 to resume the event lwp. Use the lwp's ptid instead of the passed
9862 in (maybe wildcard) ptid.
9863 (stop_wait_callback): Tweak debug log output.
9864 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9865 TRAP_TRACE.
9866 (linux_nat_filter_event): In debug output, distinguish a
9867 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9868 before trying to resume the lwp.
9869
9870 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9871
9872 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9873 pointer indirection.
9874 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9875 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9876
9877 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9878
9879 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9880 Renames DYN_ATTR_DATA_LOCATION.
9881 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9882 DYN_ATTR_DATA_LOCATION.
9883 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9884 instead of DYN_ATTR_DATA_LOCATION.
9885
9886 2015-03-24 Pedro Alves <palves@redhat.com>
9887
9888 * breakpoint.c (until_break_command): Adjust call to proceed.
9889 * gdbthread.h (struct thread_control_state) <stepping_command>:
9890 New field.
9891 * infcall.c (run_inferior_call): Adjust call to proceed.
9892 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9893 Adjust calls to proceed.
9894 (set_step_frame): Set the current thread's step_start_function
9895 here.
9896 (step_once): Adjust calls to proceed.
9897 (jump_command, signal_command, until_next_command)
9898 (finish_backward, finish_forward, proceed_after_attach_callback)
9899 (attach_command_post_wait): Adjust calls to proceed.
9900 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9901 (do_target_resume): New function, factored out from ...
9902 (resume): ... here. Remove 'step' parameter. Instead, check
9903 currently_stepping to determine whether the thread should be
9904 single-stepped.
9905 (proceed): Remove 'step' parameter and don't set the thread's
9906 step_start_function here. Adjust call to 'resume'.
9907 (handle_inferior_event): Adjust calls to 'resume'.
9908 (switch_back_to_stepped_thread): Use do_target_resume instead of
9909 'resume'.
9910 (keep_going): Adjust calls to 'resume'.
9911 * infrun.h (proceed): Remove 'step' parameter.
9912 (resume): Likewise.
9913 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9914 'resume'.
9915 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9916
9917 2015-03-24 Pedro Alves <palves@redhat.com>
9918
9919 * gdbthread.h (struct thread_control_state) <stepping_command>:
9920 New field.
9921 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9922 the thread's stepping_command field.
9923 * infrun.c (resume): Check the thread's stepping_command flag to
9924 determine which threads should be resumed. Rename 'entry_step'
9925 local to user_step.
9926 (clear_proceed_status_thread): Clear 'stepping_command'.
9927 (schedlock_applies): Change parameter type to struct thread_info
9928 pointer. Adjust.
9929 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9930 (switch_back_to_stepped_thread): Adjust calls to
9931 'schedlock_applies'.
9932 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9933
9934 2015-03-24 Pedro Alves <palves@redhat.com>
9935
9936 * infrun.c (step_start_function): Delete and ...
9937 * gdbthread.h (struct thread_control_state) <step_start_function>:
9938 ... now a field here.
9939 * infrun.c (clear_proceed_status_thread): Clear the thread's
9940 step_start_function.
9941 (proceed, process_event_stop_test, print_stop_event): Adjust.
9942
9943 2015-03-24 Pedro Alves <palves@redhat.com>
9944
9945 * infrun.c (proceed): No longer handle negative step.
9946
9947 2015-03-24 Gary Benson <gbenson@redhat.com>
9948
9949 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9950 (x86_linux_prepare_to_resume): Likewise.
9951 * x86-linux-nat.c (x86_linux_new_thread):
9952 Moved to nat/x86-linux.c.
9953 (x86_linux_prepare_to_resume): Likewise.
9954 * nat/x86-linux.c (x86_linux_new_thread): New function.
9955 (x86_linux_prepare_to_resume): Likewise.
9956
9957 2015-03-24 Gary Benson <gbenson@redhat.com>
9958
9959 * nat/x86-linux-dregs.h: New file.
9960 * nat/x86-linux-dregs.c: Likewise.
9961 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9962 (x86-linux-dregs.o): New rule.
9963 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9964 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9965 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9966 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9967 (x86_linux_dr_get): Likewise.
9968 (x86_linux_dr_set): Likewise.
9969 (x86_linux_dr_get_addr): Likewise.
9970 (x86_linux_dr_get_control): Likewise.
9971 (x86_linux_dr_get_status): Likewise.
9972 (update_debug_registers_callback): Likewise.
9973 (x86_linux_dr_set_control): Likewise.
9974 (x86_linux_dr_set_addr): Likewise.
9975 (x86_linux_update_debug_registers): Likewise.
9976
9977 2015-03-24 Gary Benson <gbenson@redhat.com>
9978
9979 * x86-linux-nat.c (x86_linux_update_debug_registers):
9980 New function, factored out from...
9981 (x86_linux_prepare_to_resume): ...this.
9982
9983 2015-03-24 Gary Benson <gbenson@redhat.com>
9984
9985 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9986 (x86_linux_dr_set): Likewise.
9987 (x86_linux_dr_get_addr): Likewise.
9988 (x86_linux_dr_get_control): Likewise.
9989 (x86_linux_dr_get_status): Likewise.
9990 (update_debug_registers_callback): Likewise.
9991 (x86_linux_dr_set_control): Likewise.
9992 (x86_linux_dr_set_addr): Likewise.
9993 (x86_linux_prepare_to_resume): Likewise.
9994 (x86_linux_new_thread): Likewise.
9995
9996 2015-03-24 Gary Benson <gbenson@redhat.com>
9997
9998 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9999 (x86_linux_new_thread): Rename argument.
10000
10001 2015-03-24 Gary Benson <gbenson@redhat.com>
10002
10003 * nat/x86-linux.h: New file.
10004 * nat/x86-linux.c: Likewise.
10005 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10006 (x86-linux.o): New rule.
10007 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10008 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10009 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10010 (lwp_set_arch_private_info): New declaration.
10011 (lwp_arch_private_info): Likewise.
10012 * linux-nat.c (lwp_set_arch_private_info): New function.
10013 (lwp_arch_private_info): Likewise.
10014 * x86-linux-nat.c: Include nat/x86-linux.h.
10015 (arch_lwp_info): Removed structure.
10016 (update_debug_registers_callback):
10017 Use lwp_set_debug_registers_changed.
10018 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10019 and lwp_set_debug_registers_changed.
10020 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10021
10022 2015-03-24 Gary Benson <gbenson@redhat.com>
10023
10024 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10025 (lwp_is_stopped): Likewise.
10026 (lwp_stop_reason): Likewise.
10027 * linux-nat.c (ptid_of_lwp): New function.
10028 (lwp_is_stopped): Likewise.
10029 (lwp_is_stopped_by_watchpoint): Likewise.
10030 * x86-linux-nat.c (update_debug_registers_callback):
10031 Use lwp_is_stopped.
10032 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10033 lwp_stop_reason.
10034
10035 2015-03-24 Gary Benson <gbenson@redhat.com>
10036
10037 * linux-nat.h (linux_stop_lwp): Move declaration to...
10038 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10039
10040 2015-03-24 Gary Benson <gbenson@redhat.com>
10041
10042 * linux-nat.h: Include nat/linux-nat.h.
10043 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10044 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10045 (iterate_over_lwps_ftype): New typedef.
10046 (iterate_over_lwps): New declaration.
10047 * linux-nat.h (iterate_over_lwps): Update comment. Use
10048 iterate_over_lwps_ftype. Update callback return value check.
10049
10050 2015-03-24 Gary Benson <gbenson@redhat.com>
10051
10052 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10053 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10054
10055 2015-03-24 Gary Benson <gbenson@redhat.com>
10056
10057 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10058 * linux-nat.c (current_lwp_ptid): New function.
10059 * x86-linux-nat.c: Include nat/linux-nat.h.
10060 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10061 (x86_linux_dr_get_control): Likewise.
10062 (x86_linux_dr_get_status): Likewise.
10063 (x86_linux_dr_set_control): Likewise.
10064 (x86_linux_dr_set_addr): Likewise.
10065
10066 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10067
10068 PR breakpoints/16466
10069 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10070
10071 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10072
10073 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10074 * ser-unix.c (hardwire_setparity): Likewise.
10075
10076 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10077
10078 * NEWS: Mention set/show serial parity command.
10079 * monitor.c (monitor_open): Call serial_setparity.
10080 * remote.c (remote_open_1): Likewise.
10081 * ser-base.c (ser_base_serparity): New function.
10082 * ser-base.h (ser_base_setparity): Add declaration.
10083 * ser-go32.c (dos_ops): Set "setparity" field.
10084 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10085 state.Parity.
10086 (ser_windows_setparity): New function.
10087 (hardwire_ops): Add ser_windows_setparity.
10088 (tty_ops): Add NULL for setparity field.
10089 (pipe_ops): Add ser_base_setparity.
10090 (tcp_ops): Likewise.
10091 * ser-pipe.c (pipe_ops): Likewise.
10092 * ser-tcp.c (tcp_ops): Likewise.
10093 * ser-unix.c (hardwire_setparity): Add declaration.
10094 (hardwire_raw): Don't reset PARENB flag.
10095 (hardwire_setparity): New function.
10096 (hardwire_ops): Add hardwire_setparity.
10097 * serial.c (serial_setparity): New function.
10098 (serial_parity): New global.
10099 (parity_none, parity_odd, parity_even, parity_enums, parity):
10100 New static globals.
10101 (set_parity): New function.
10102 (_initialize_serial): Add set/show serial parity commands.
10103 * serial.h (GDBPARITY_NONE): Define.
10104 (GDBPARITY_ODD): Define.
10105 (GDBPARITY_EVEN): Define.
10106 (serial_setparity) Add declaration.
10107 (struct serial_ops): Add setparity field.
10108 * target.h (serial_parity): Add declaration.
10109
10110 2015-03-23 Keith Seitz <keiths@redhat.com>
10111
10112 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10113
10114 2015-03-23 Keith Seitz <keiths@redhat.com>
10115
10116 * breakpoint.c (parse_breakpoint_sals): Use
10117 linespec_lexer_lex_keyword to ascertain if the user specified
10118 a NULL location.
10119 * linespec.c [IF_KEYWORD_INDEX]: Define.
10120 (linespec_lexer_lex_keyword): Export.
10121 (struct ls_parser) <keyword_ok>: Remove.
10122 A keyword is only a keyword if not followed by another keyword.
10123 (linespec_lexer_lex_one): Remove keyword_ok handling.
10124 Add comment explaining why the parsing stream is not advanced
10125 when a keyword is seen.
10126 (parse_linespec): Remove parser->keyword_ok.
10127 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10128
10129 2015-03-23 Keith Seitz <keiths@redhat.com>
10130
10131 PR gdb/18021
10132 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10133 if we find a static method with DW_AT_vtable_elem_location.
10134
10135 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10136
10137 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10138 before the second loop, to avoid undefined behavior. Reported by
10139 Anton Blanchard <anton@samba.org>.
10140
10141 2015-03-20 Keven Boell <keven.boell@intel.com>
10142
10143 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10144 data_location usage to linked list.
10145 (resolve_dynamic_type_internal): Adapt data_location to
10146 linked list.
10147 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10148 (copy_type_recursive, copy_type): Add copy of linked list.
10149 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10150 (struct dynamic_prop_list): New struct.
10151 * dwarf2read.c (set_die_type): Set data_location data.
10152
10153 2015-03-20 Pedro Alves <palves@redhat.com>
10154
10155 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10156 inner block and make it const.
10157 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10158
10159 2015-03-20 Pedro Alves <palves@redhat.com>
10160
10161 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10162 * breakpoint.h (set_breakpoint_condition): Update declaration.
10163
10164 2015-03-20 Pedro Alves <palves@redhat.com>
10165
10166 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10167
10168 2015-03-20 Pedro Alves <palves@redhat.com>
10169
10170 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10171
10172 2015-03-20 Pedro Alves <palves@redhat.com>
10173
10174 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10175
10176 2015-03-20 Pedro Alves <palves@redhat.com>
10177
10178 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10179 (nto_init_solib_absolute_prefix): Likewise.
10180
10181 2015-03-20 Pedro Alves <palves@redhat.com>
10182
10183 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10184 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10185
10186 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10187
10188 * config/djgpp/README: Remove gdb.hp.
10189
10190 2015-03-20 Yao Qi <yao.qi@linaro.org>
10191
10192 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10193 set_gdbarch_cannot_step_breakpoint.
10194
10195 2015-03-19 Pedro Alves <palves@redhat.com>
10196
10197 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10198 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10199 instead call perror_with_name.
10200 (check_ptrace_stopped_lwp_gone): New function.
10201 (linux_resume_one_lwp): Reimplement as wrapper around
10202 linux_resume_one_lwp_throw that swallows errors if the LWP is
10203 gone.
10204 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10205 swallows errors if the LWP is gone. Use
10206 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10207
10208 2015-03-19 Pedro Alves <palves@redhat.com>
10209
10210 * linux-nat.c (status_callback): Return early if the LWP has no
10211 status pending.
10212
10213 2015-03-19 Pedro Alves <palves@redhat.com>
10214
10215 * linux-nat.c (select_event_lwp_callback): Update comment to no
10216 longer mention SIGTRAP.
10217
10218 2015-03-18 Tristan Gingold <gingold@adacore.com>
10219
10220 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10221 redirection code to ...
10222 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10223 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10224
10225 2015-03-18 Gary Benson <gbenson@redhat.com>
10226
10227 (remote_protocol_features): Remove the "vFile:fstat" feature.
10228 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10229
10230 2015-03-11 Yao Qi <yao.qi@linaro.org>
10231
10232 PR tdep/18107
10233 * aarch64-linux-tdep.c: Include xml-syscall.h
10234 (aarch64_linux_get_syscall_number): New function.
10235 (aarch64_linux_init_abi): Call
10236 set_gdbarch_get_syscall_number.
10237 * syscalls/aarch64-linux.xml: New file.
10238
10239 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10240
10241 * ser-base.h (ser_base_setstopbits): Change second argument name
10242 from "rate" to "num".
10243
10244 2015-03-17 Gary Benson <gbenson@redhat.com>
10245 Luke Allardyce <lukeallardyce@gmail.com>
10246
10247 PR gdb/18131
10248 * common/common-remote-fileio.h (sys/stat.h): New include.
10249 (stuct stat): Remove forward declaration.
10250
10251 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10252
10253 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10254 before writing core register notes.
10255
10256 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10257 Pedro Alves <palves@redhat.com>
10258
10259 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10260 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10261 (tgoto): Wrap with extern "C".
10262
10263 2015-03-16 Pedro Alves <palves@redhat.com>
10264 Yuanhui Zhang <asmwarrior@gmail.com>
10265
10266 * stub-termcap.c (tputs): Change prototype.
10267
10268 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10269 Pedro Alves <palves@redhat.com>
10270
10271 * windows-nat.c (struct thread_info_struct): Rename to ...
10272 (struct windows_thread_info_struct): ... this.
10273 (thread_info): Rename to ...
10274 (windows_thread_info): ... this.
10275 All users updated.
10276
10277 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10278 Pedro Alves <palves@redhat.com>
10279
10280 * NEWS: New Removed targets and native configurations.
10281
10282 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10283
10284 Remove HPUX.
10285 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10286 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10287 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10288 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10289 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10290 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10291 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10292 hppa-hpux-tdep.c.
10293 * config/ia64/hpux.mh: Remove file.
10294 * config/pa/hpux.mh: Remove file.
10295 * configure: Rebuilt.
10296 * configure.ac (dlgetmodinfo, somread.o): Remove.
10297 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10298 (ia64-*-hpux*): Remove its float format exception.
10299 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10300 * hppa-hpux-nat.c: Remove file.
10301 * hppa-hpux-tdep.c: Remove file.
10302 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10303 Move them here from hppa-tdep.h
10304 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10305 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10306 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10307 Move them to hppa-tdep.c.
10308 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10309 declarations.
10310 * ia64-hpux-nat.c: Remove file.
10311 * ia64-hpux-tdep.c: Remove file.
10312 * ia64-hpux-tdep.h: Remove file.
10313 * inf-ttrace.c: Remove file.
10314 * inf-ttrace.h: Remove file.
10315 * solib-ia64-hpux.c: Remove file.
10316 * solib-ia64-hpux.h: Remove file.
10317 * solib-pa64.c: Remove file.
10318 * solib-pa64.h: Remove file.
10319 * solib-som.c: Remove file.
10320 * solib-som.h: Remove file.
10321 * somread.c: Remove file.
10322
10323 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10324
10325 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10326 * config.in: Regenerate.
10327 * configure: Regenerate.
10328 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10329 define.
10330 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10331 enumerate memory regions if present.
10332
10333 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10334
10335 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10336 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10337 expressions.
10338 (i386fbsd_sigtramp_p): Likewise.
10339
10340 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10341
10342 * MAINTAINERS (Write After Approval): Add John Baldwin.
10343
10344 2015-03-12 Gary Benson <gbenson@redhat.com>
10345
10346 * solib.c (_initialize_solib): Make "set/show sysroot" use
10347 add_setshow_optional_filename_cmd so it can be restored to
10348 empty after being set.
10349
10350 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10351
10352 * Makefile.in (SFILES): New source break-catch-syscall.c.
10353 (COMMON_OBS): New object break-catch-syscall.o.
10354 * break-catch-syscall.c: New file.
10355 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10356 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10357 (struct syscall_catchpoint): Likewise.
10358 (dtor_catch_syscall): Likewise.
10359 (catch_syscall_inferior_data): Likewise.
10360 (struct catch_syscall_inferior_data): Likewise.
10361 (get_catch_syscall_inferior_data): Likewise.
10362 (catch_syscall_inferior_data_cleanup): Likewise.
10363 (insert_catch_syscall): Likewise.
10364 (remove_catch_syscall): Likewise.
10365 (breakpoint_hit_catch_syscall): Likewise.
10366 (print_it_catch_syscall): Likewise.
10367 (print_one_catch_syscall): Likewise.
10368 (print_mention_catch_syscall): Likewise.
10369 (print_recreate_catch_syscall): Likewise.
10370 (catch_syscall_breakpoint_ops): Likewise.
10371 (syscall_catchpoint_p): Likewise.
10372 (create_syscall_event_catchpoint): Likewise.
10373 (catch_syscall_split_args): Likewise.
10374 (catch_syscall_command_1): Likewise.
10375 (is_syscall_catchpoint_enabled): Likewise.
10376 (catch_syscall_enabled): Likewise.
10377 (catching_syscall_number): Likewise.
10378 (catch_syscall_completer): Likewise.
10379 (clear_syscall_counts): Likewise.
10380 (initialize_breakpoint_ops): Move initialization of syscall
10381 catchpoints to break-catch-syscall.c.
10382 (_initialize_breakpoint): Move code related to syscall catchpoints
10383 to break-catch-syscall.c.
10384
10385 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10386
10387 * breakpoint.c (breakpoint_find_if): New function.
10388 * breakpoint.h (breakpoint_find_if): New prototype.
10389
10390 2015-03-11 Gary Benson <gbenson@redhat.com>
10391
10392 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10393 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10394 (remote_fileio_to_host_ulong): Likewise.
10395 (remote_fileio_to_host_mode): Likewise.
10396 (remote_fileio_to_host_time): Likewise.
10397 (remote_fileio_to_host_stat): Likewise.
10398 * remote.c (PACKET_vFile_fstat): New enum value.
10399 (remote_protocol_features): Register the "vFile:fstat" feature.
10400 (remote_hostio_fstat): New function.
10401 (remote_bfd_iovec_stat): Use the above.
10402 (_initialize_remote): Register new "set/show remote
10403 hostio-fstat-packet" command.
10404 * symfile.c (separate_debug_file_exists): Update comment.
10405 * NEWS: Announce new vFile:fstat packet.
10406
10407 2015-03-11 Gary Benson <gbenson@redhat.com>
10408
10409 * common/common-remote-fileio.h: New file.
10410 * common/common-remote-fileio.c: Likewise.
10411 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10412 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10413 (COMMON_OBS): Add common-remote-fileio.o.
10414 (common-remote-fileio.o): New rule.
10415 * remote-fileio.h (common-remote-fileio.h): New include.
10416 * remote-fileio.c (gdb/fileio.h): Do not include.
10417 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10418 (remote_fileio_to_fio_uint): Likewise.
10419 (remote_fileio_to_fio_time): Likewise.
10420 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10421 (remote_fileio_to_fio_mode): Likewise.
10422 (remote_fileio_to_fio_ulong): Likewise.
10423 (remote_fileio_to_fio_stat): Likewise.
10424
10425 2015-03-11 Andy Wingo <wingo@igalia.com>
10426
10427 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10428 we were checking the cached type, not the cached dynamic type.
10429
10430 2015-03-11 Andy Wingo <wingo@igalia.com>
10431
10432 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10433 other strings, as these are on the GC'd heap, and will be
10434 collected along with the smob.
10435
10436 2015-03-11 Andy Wingo <wingo@igalia.com>
10437
10438 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10439 (objfile_functions): Bind gdbscm_objfile_progspace to
10440 objfile-progspace.
10441 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10442
10443 2015-03-11 Andy Wingo <wingo@igalia.com>
10444
10445 * guile/guile.c (_initialize_guile): Disable automatic
10446 finalization, if Guile offers us that possibility.
10447 * guile/guile.c (call_initialize_gdb_module):
10448 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10449 finalizers in appropriate places.
10450 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10451 scm_set_automatic_finalization_enabled.
10452 * configure: Regenerated.
10453
10454 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10455
10456 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10457 SAL, if possible.
10458
10459 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10460
10461 * s390-linux-nat.c (struct arch_lwp_info): New.
10462 (s390_fix_watch_points): Rename to...
10463 (s390_prepare_to_resume): ...this. Skip the PER info update
10464 unless the watch points have changed.
10465 (s390_refresh_per_info, s390_new_thread): New functions.
10466 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10467 s390_fix_watch_points.
10468 (s390_remove_watchpoint): Likewise.
10469 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10470 Register s390_prepare_to_resume.
10471
10472 2015-03-09 Pedro Alves <palves@redhat.com>
10473
10474 Revert:
10475 2015-03-07 Pedro Alves <palves@redhat.com>
10476 * common/gdb_socket.h: New file.
10477 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10478 sys/socket.h.
10479 (net_open): Use union gdb_sockaddr_u.
10480
10481 2015-03-07 Pedro Alves <palves@redhat.com>
10482
10483 * configure.ac (build_warnings): Move -Wmissing-prototypes
10484 -Wdeclaration-after-statement -Wmissing-parameter-type
10485 -Wold-style-declaration -Wold-style-definition to the C-specific
10486 set.
10487 * configure: Regenerate.
10488
10489 2015-03-07 Pedro Alves <palves@redhat.com>
10490
10491 * common/gdb_socket.h: New file.
10492 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10493 sys/socket.h.
10494 (net_open): Use union gdb_sockaddr_u.
10495
10496 2015-03-07 Pedro Alves <palves@redhat.com>
10497
10498 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10499 (exceptions_state_mc_action_iter)
10500 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10501 Don't define.
10502 [__cplusplus] (try_scope_depth): New global.
10503 [__cplusplus] (exception_try_scope_entry)
10504 (exception_try_scope_exit, gdb_exception_sliced_copy)
10505 (exception_rethrow): New functions.
10506 (throw_exception): In C++ mode, throw
10507 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10508 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10509 (throw_it): In C++ mode, use try_scope_depth.
10510 * common/common-exceptions.h [!__cplusplus]
10511 (exceptions_state_mc_action_iter)
10512 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10513 Don't declare.
10514 [__cplusplus] (exception_try_scope_entry)
10515 (exception_try_scope_exit, exception_rethrow): Declare.
10516 [__cplusplus] (struct exception_try_scope): New struct.
10517 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10518 C++ exceptions.
10519 (struct gdb_exception_RETURN_MASK_ALL)
10520 (struct gdb_exception_RETURN_MASK_ERROR)
10521 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10522
10523 2015-03-07 Pedro Alves <palves@redhat.com>
10524
10525 * main.c (handle_command_errors): Remove volatile qualifier from
10526 parameter.
10527
10528 2015-03-07 Pedro Alves <palves@redhat.com>
10529
10530 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10531 TRY and CATCH.
10532 * gdbtypes.c (safe_parse_type): Remove empty line.
10533 (types_deeply_equal):
10534 * guile/scm-frame.c (gdbscm_frame_name):
10535 * linux-thread-db.c (find_new_threads_once):
10536 * python/py-breakpoint.c (bppy_get_commands):
10537 * record-btrace.c (record_btrace_insert_breakpoint)
10538 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10539 (record_btrace_start_replaying): Adjust to avoid code between TRY
10540 and CATCH.
10541
10542 2015-03-07 Pedro Alves <palves@redhat.com>
10543
10544 * common/common-exceptions.c (struct catcher) <exception>: No
10545 longer a pointer to volatile exception. Now an exception value.
10546 <mask>: Delete field.
10547 (exceptions_state_mc_init): Remove all parameters. Adjust.
10548 (exceptions_state_mc): No longer pop the catcher here.
10549 (exceptions_state_mc_catch): New function.
10550 (throw_exception): Adjust.
10551 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10552 all parameters.
10553 (exceptions_state_mc_catch): Declare.
10554 (TRY_CATCH): Rename to ...
10555 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10556 (CATCH, END_CATCH): New.
10557 All callers adjusted.
10558
10559 2015-03-07 Tom Tromey <tromey@redhat.com>
10560
10561 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10562
10563 2015-03-07 Pedro Alves <palves@redhat.com>
10564
10565 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10566 (amd64_epilogue_frame_cache): Normal exception handling code.
10567 * break-catch-throw.c (check_status_exception_catchpoint)
10568 (re_set_exception_catchpoint): Ditto.
10569 * cli/cli-interp.c (safe_execute_command):
10570 * cli/cli-script.c (script_from_file): Ditto.
10571 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10572 Ditto.
10573 * compile/compile-object-run.c (compile_object_run): Ditto.
10574 * cp-abi.c (baseclass_offset): Ditto.
10575 * cp-valprint.c (cp_print_value): Ditto.
10576 * exceptions.c (catch_exceptions_with_msg):
10577 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10578 * frame.c (get_frame_address_in_block_if_available): Ditto.
10579 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10580 (i386_sigtramp_frame_cache): Ditto.
10581 * infcmd.c (post_create_inferior): Ditto.
10582 * linespec.c (parse_linespec, find_linespec_symbols):
10583 * p-valprint.c (pascal_object_print_value): Ditto.
10584 * parse.c (parse_expression_for_completion): Ditto.
10585 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10586 * remote.c (remote_get_noisy_reply): Ditto.
10587 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10588 * solib-svr4.c (solib_svr4_r_map): Ditto.
10589
10590 2015-03-06 Gary Benson <gbenson@redhat.com>
10591
10592 * common/common-utils.h (startswith): New inline function.
10593 All places where this logic was used updated to use the above.
10594
10595 2015-03-05 Pedro Alves <palves@redhat.com>
10596
10597 PR gdb/18002
10598 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10599 after reading the breakpoint's shadow memory.
10600
10601 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10602
10603 * hppabsd-nat.c: Remove file.
10604 * hppaobsd-nat.c: New file.
10605 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10606 hppaobsd-nat.c.
10607 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10608 hppaobsd-nat.o.
10609
10610 2015-03-04 Pedro Alves <palves@redhat.com>
10611
10612 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10613 (target_decr_pc_after_break): Delete declaration.
10614 * target.c (default_target_decr_pc_after_break)
10615 (target_decr_pc_after_break): Delete.
10616 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10617 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10618 * linux-thread-db.c (check_event): Likewise.
10619 * infrun.c (adjust_pc_after_break): Likewise.
10620 * darwin-nat.c (cancel_breakpoint): Likewise.
10621 * aix-thread.c (aix_thread_wait): Likewise.
10622 * target-delegates.c: Regenerate.
10623
10624 2015-03-04 Pedro Alves <palves@redhat.com>
10625
10626 * linux-nat.c (save_sigtrap): Check for breakpoints before
10627 checking watchpoints.
10628 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10629 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10630 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10631 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10632 (linux_nat_stopped_by_sw_breakpoint)
10633 (linux_nat_supports_stopped_by_sw_breakpoint)
10634 (linux_nat_stopped_by_hw_breakpoint)
10635 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10636 (linux_nat_wait_1): Don't re-increment the PC if relying on
10637 SIGTRAP's siginfo->si_code.
10638 (linux_nat_add_target): Install new target methods.
10639 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10640 offset if the target already adjusted the PC.
10641 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10642 (GDB_ARCH_TRAP_BRKPT): New.
10643 (TRAP_HWBKPT): Define if not already defined.
10644
10645 2015-03-04 Pedro Alves <palves@redhat.com>
10646
10647 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10648 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10649 Delete field.
10650 <stop_reason>: New field.
10651 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10652 (packet_set_cmd_state): New function.
10653 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10654 features.
10655 (remote_query_supported): If not disabled with the corresponding
10656 "set remote foo-packet" command, report support for the swbreak
10657 and hwbreak features.
10658 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10659 field.
10660 <stop_reason>: New field.
10661 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10662 (remote_wait_as): Adjust.
10663 (remote_stopped_by_sw_breakpoint)
10664 (remote_supports_stopped_by_sw_breakpoint)
10665 (remote_stopped_by_hw_breakpoint)
10666 (remote_supports_stopped_by_hw_breakpoint): New functions.
10667 (remote_stopped_by_watchpoint): New function.
10668 (init_remote_ops): Install them.
10669 (_initialize_remote): Register new "set/show remote
10670 swbreak-feature-packet" and "set/show remote
10671 swbreak-feature-packet" commands.
10672
10673 2015-03-04 Pedro Alves <palves@redhat.com>
10674
10675 * btrace.h: Include target/waitstatus.h.
10676 (struct btrace_thread_info) <stop_reason>: New field.
10677 * record-btrace.c (record_btrace_step_thread): Use
10678 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10679 (record_btrace_decr_pc_after_break): Delete.
10680 (record_btrace_stopped_by_sw_breakpoint)
10681 (record_btrace_supports_stopped_by_sw_breakpoint)
10682 (record_btrace_stopped_by_hw_breakpoint)
10683 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10684 (init_record_btrace_ops): Install them.
10685 * record-full.c (record_full_hw_watchpoint): Delete and replace
10686 with ...
10687 (record_full_stop_reason): ... this throughout.
10688 (record_full_exec_insn): Adjust.
10689 (record_full_wait_1): Adjust. No longer re-increment the PC.
10690 (record_full_wait_1): Adjust. Use
10691 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10692 (record_full_stopped_by_watchpoint): Adjust.
10693 (record_full_stopped_by_sw_breakpoint)
10694 (record_full_supports_stopped_by_sw_breakpoint)
10695 (record_full_supports_stopped_by_sw_breakpoint)
10696 (record_full_stopped_by_hw_breakpoint)
10697 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10698 (init_record_full_ops, init_record_full_core_ops): Install them.
10699 * record.c (record_check_stopped_by_breakpoint): New function.
10700 * record.h: Include target/waitstatus.h.
10701 (record_check_stopped_by_breakpoint): New declaration.
10702
10703 2015-03-04 Pedro Alves <palves@redhat.com>
10704
10705 enum lwp_stop_reason -> enum target_stop_reason
10706 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10707 (linux_nat_stopped_by_watchpoint, status_callback)
10708 (linux_nat_wait_1): Adjust.
10709 * linux-nat.h (enum lwp_stop_reason): Delete.
10710 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10711 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10712 * target/waitstatus.h (enum target_stop_reason): New.
10713
10714 2015-03-04 Pedro Alves <palves@redhat.com>
10715
10716 * breakpoint.c (need_moribund_for_location_type): New function.
10717 (bpstat_stop_status): Don't skipping checking moribund locations
10718 of breakpoint types which the target tell caused a stop.
10719 (program_breakpoint_here_p): New function, factored out from ...
10720 (bp_loc_is_permanent): ... this.
10721 (update_global_location_list): Don't create a moribund location if
10722 the target supports reporting stops of the type of the removed
10723 breakpoint.
10724 * breakpoint.h (program_breakpoint_here_p): New declaration.
10725 * infrun.c (adjust_pc_after_break): Return early if the target has
10726 already adjusted the PC. Add comments.
10727 (handle_signal_stop): If nothing explains a signal, and the target
10728 tells us the stop was caused by a software breakpoint, check if
10729 there's a breakpoint instruction in the memory. If so, adjust the
10730 PC before presenting the stop to the user. Otherwise, ignore the
10731 trap. If nothing explains a signal, and the target tells us the
10732 stop was caused by a hardware breakpoint, ignore the trap.
10733 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10734 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10735 to_supports_stopped_by_hw_breakpoint>: New fields.
10736 (target_stopped_by_sw_breakpoint)
10737 (target_supports_stopped_by_sw_breakpoint)
10738 (target_stopped_by_hw_breakpoint)
10739 (target_supports_stopped_by_hw_breakpoint): Define.
10740 * target-delegates.c: Regenerate.
10741
10742 2015-03-04 Pedro Alves <palves@redhat.com>
10743
10744 * infrun.c (follow_fork_inferior): Use the whole of the
10745 inferior_ptid and pending_follow.related_pid ptids instead of
10746 building ptids from the process components. Adjust verbose output
10747 to use target_pid_to_str.
10748 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10749 inferior_ptid and pending_follow.related_pid ptids instead of
10750 building ptids from the process components.
10751
10752 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10753
10754 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10755 (inf_ptrace_insert_fork_catchpoint): New function.
10756 (inf_ptrace_remove_fork_catchpoint): New function.
10757 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10758
10759 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10760
10761 * s390-linux-tdep.c (s390_register_name): Return empty string
10762 instead of NULL for registers that shouldn't be visible.
10763
10764 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10765
10766 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10767 XML file for 64-bit targets.
10768
10769 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10770
10771 * target.h (find_default_create_inferior): Remove declaration.
10772 (find_default_attach): Likewise.
10773
10774 2015-03-03 Pedro Alves <palves@redhat.com>
10775
10776 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10777 Use ptid_get_pid to get the overall process id when resuming all
10778 threads.
10779
10780 2015-03-03 Pedro Alves <palves@redhat.com>
10781
10782 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10783 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10784 * inf-ptrace.c (get_ptrace_pid): New function.
10785 (inf_ptrace_resume): Use it.
10786 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10787 to the lower layer.
10788
10789 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10790
10791 * nat/linux-btrace.c: Include sys/utsname.h.
10792 (linux_determine_kernel_ptr_bits): New.
10793 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10794 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10795 ptr_bits.
10796
10797 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10798
10799 * btrace.c (ftrace_update_function): Treat return as tailcall for
10800 "_dl_runtime_resolve".
10801
10802 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10803
10804 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10805 * btrace.c (ftrace_debug): Do not print the line range.
10806 (ftrace_skip_file, ftrace_update_lines): Remove.
10807 (ftrace_new_function): Remove lbegin and lend initialization.
10808 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10809 * record-btrace.c (btrace_compute_src_line_range): New.
10810 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10811
10812 2015-03-02 Pedro Alves <palves@redhat.com>
10813
10814 * infrun.c (follow_exec): Delete all threads of the process except
10815 the event thread. Extended comments.
10816
10817 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10818
10819 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10820
10821 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10822
10823 * utils.h: Remove <stdbool.h> #include.
10824 (producer_is_gcc): Change return type to "int".
10825 * utils.c (producer_is_gcc): Change return type to int.
10826 Return 1 instead of true, and 0 instead of false.
10827 Adjust function documentation accordingly.
10828
10829 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10830
10831 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10832 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10833 present.
10834 (s390_linux_store_inferior_registers): Likewise.
10835 (s390_get_hwcap): Remove function. Embed its logic...
10836 (s390_read_description): ...here. Yield a target description with
10837 vector registers if applicable.
10838 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10839 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10840 "features/s390x-tevx-linux64.c".
10841 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10842 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10843 for "GNU/Linux-specific registers".
10844 (s390_dwarf_reg_r0l): New enum value.
10845 (s390_dwarf_reg_to_regnum): Support vector registers.
10846 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10847 of GPR lower halves.
10848 (regnum_is_vxr_full): New function.
10849 (s390_register_name): New function.
10850 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10851 f0-f15 and v0l-v15l.
10852 (s390_pseudo_register_type): Likewise.
10853 (s390_pseudo_register_read): Likewise.
10854 (s390_pseudo_register_write): Likewise.
10855 (s390_value_from_register): Account for the fact that values are
10856 placed left-justified in vector registers.
10857 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10858 the vector reggroup and omit them from the general reggroup.
10859 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10860 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10861 (s390_iterate_over_regset_sections): Add iterations for the two
10862 new vector regsets.
10863 (s390_core_read_description): Yield a target description with
10864 vector registers if applicable.
10865 (s390_gdbarch_init): Handle target descriptions with vector
10866 registers. Add "register_name" gdbarch method.
10867 (_initialize_s390_tdep): Call new tdesc initialization functions.
10868 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10869 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10870 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10871 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10872 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10873 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10874 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10875 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10876 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10877 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10878 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10879 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10880 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10881 (S390_NUM_REGS): Adjust value.
10882 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10883 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10884 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10885 * NEWS: Announce S/390 vector register support.
10886
10887 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10888
10889 * features/s390-tevx-linux64.xml: New file.
10890 * features/s390-vx-linux64.xml: New file.
10891 * features/s390-vx.xml: New file.
10892 * features/s390x-tevx-linux64.xml: New file.
10893 * features/s390x-vx-linux64.xml: New file.
10894 * features/Makefile (WHICH): Add s390-vx-linux64,
10895 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10896 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10897 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10898 macros.
10899 * features/s390-tevx-linux64.c: New generated file.
10900 * features/s390-vx-linux64.c: Likewise.
10901 * features/s390x-tevx-linux64.c: Likewise.
10902 * features/s390x-vx-linux64.c: Likewise.
10903 * regformats/s390-tevx-linux64.dat: Likewise.
10904 * regformats/s390-vx-linux64.dat: Likewise.
10905 * regformats/s390x-tevx-linux64.dat: Likewise.
10906 * regformats/s390x-vx-linux64.dat: Likewise.
10907
10908 2015-02-28 Doug Evans <xdje42@gmail.com>
10909
10910 * symtab.h (struct symtab) <next>: Fix comment.
10911
10912 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10913
10914 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10915 python_GdbMethods.
10916
10917 2015-02-27 Pedro Alves <palves@redhat.com>
10918
10919 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10920
10921 2015-02-27 Pedro Alves <palves@redhat.com>
10922
10923 * common/common-exceptions.h (exception_none): Declare.
10924 * common/common-exceptions.c (exception_none): Moved from
10925 exceptions.c.
10926 (exceptions_state_mc_init): Use exception_none.
10927 * exceptions.c (exception_none): Move to
10928 common/common-exceptions.c.
10929 * exceptions.h (exception_none): Move to
10930 common/common-exceptions.h.
10931
10932 2015-02-27 Pedro Alves <palves@redhat.com>
10933
10934 * main.c (catch_command_errors, catch_command_errors_const):
10935 Remove 'mask' argument. Adjust.
10936 (captured_main): Adjust callers.
10937
10938 2015-02-27 Pedro Alves <palves@redhat.com>
10939
10940 * python/python-internal.h: Include "extension-priv.h".
10941
10942 2015-02-27 Pedro Alves <palves@redhat.com>
10943
10944 * breakpoint.h (enum print_stop_action): Move further up in the
10945 file.
10946
10947 2015-02-27 Pedro Alves <palves@redhat.com>
10948
10949 * gdbarch.sh: Include regcache.h.
10950 * gdbarch.h: Regenerate.
10951
10952 2015-02-27 Pedro Alves <palves@redhat.com>
10953
10954 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10955 Remove duplicate const.
10956 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10957 duplicate const.
10958
10959 2015-02-27 Pedro Alves <palves@redhat.com>
10960
10961 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10962 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10963 * features/feature_to_c.sh: Tag the generated xml_builtin array
10964 with extern const in C++ mode.
10965
10966 2015-02-27 Tom Tromey <tromey@redhat.com>
10967
10968 * minidebug.c (struct lzma_stream): Rename to ...
10969 (struct gdb_lzma_stream): ... this.
10970 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10971
10972 2015-02-27 Pedro Alves <palves@redhat.com>
10973
10974 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10975 function.
10976 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10977 (mi_cmd_stack_list_variables): Use it.
10978
10979 2015-02-27 Pedro Alves <palves@redhat.com>
10980
10981 * x86-linux-nat.c (u_debugreg_offset): New function.
10982 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10983
10984 2015-02-27 Pedro Alves <palves@redhat.com>
10985
10986 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10987 declaration.
10988 Include break-common.h.
10989
10990 2015-02-27 Tom Tromey <tromey@redhat.com>
10991 Pedro Alves <palves@redhat.com>
10992
10993 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10994 local used to iterate over enums.
10995 * completer.c (signal_completer): Likewise.
10996 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10997 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10998 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10999 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11000 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11001 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11002 * tui-wingeneral.c (tui_refresh_all): Likewise.
11003
11004 2015-02-27 Pedro Alves <palves@redhat.com>
11005
11006 * target.h: Include "infrun.h".
11007
11008 2015-02-27 Pedro Alves <palves@redhat.com>
11009
11010 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11011
11012 2015-02-27 Pedro Alves <palves@redhat.com>
11013
11014 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11015 (IPA_SYM): Use it.
11016 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11017
11018 2015-02-27 Pedro Alves <palves@redhat.com>
11019
11020 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11021 cli_mld_erase_entire_line, and make it extern "C".
11022 * common/common-defs.h (EXTERN_C): New.
11023 * completer.c (_rl_completion_prefix_display_length)
11024 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11025 out of gdb_display_match_list_1.
11026 (_rl_qsort_string_compare): Move declaration out of
11027 gdb_display_match_list_1, and make it extern "C".
11028 * defs.h (re_comp): Use EXTERN_C.
11029 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11030 and make it extern "C".
11031 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11032 and make it extern "C".
11033 (main): Move declaration out of maintenance_set_profile_cmd.
11034 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11035 EXTERN_C.
11036
11037 2015-02-27 Pedro Alves <palves@redhat.com>
11038
11039 * python/python.c (GdbMethods): Rename to ...
11040 (python_GdbMethods): ... this and make extern.
11041 (GdbModuleDef): Rename to ...
11042 (python_GdbModuleDef): ... this and make extern.
11043
11044 2015-02-27 Pedro Alves <palves@redhat.com>
11045
11046 * record-btrace.c (set_record_btrace_cmdlist)
11047 (show_record_btrace_cmdlist): Remove redefinitions.
11048
11049 2015-02-27 Tom Tromey <tromey@redhat.com>
11050 Pedro Alves <palves@redhat.com>
11051
11052 * dwarf2-frame.c (enum cfa_how_kind, struct
11053 dwarf2_frame_state_reg_info): Move out of struct
11054 dwarf2_frame_state.
11055 * dwarf2read.c (struct tu_stats): Move out of struct
11056 dwarf2_per_objfile.
11057 (struct file_entry): Move out of struct line_header.
11058 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11059 typedef_field_list): Move out of struct field_info.
11060 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11061 Move out of struct dynamic_prop.
11062 (union type_owner, union field_location, struct field, struct
11063 range_bounds, union type_specific): Move out of struct main_type.
11064 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11065 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11066 (struct call_site_target, union call_site_parameter_u, struct
11067 call_site_parameter): Move out of struct call_site.
11068 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11069 m32c_prologue.
11070 (enum srcdest_kind): Move out of struct srcdest.
11071 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11072 * prologue-value.h (enum prologue_value_kind): Move out of struct
11073 prologue_value.
11074 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11075 gdbarch_tdep.
11076 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11077 out of struct field_info.
11078 * symfile.h (struct other_sections): Move out of struct
11079 section_addr_info.
11080 * symtab.c (struct symbol_cache_slot): Move out struct
11081 block_symbol_cache.
11082 * target-descriptions.c (enum tdesc_type_kind): Move out of
11083 typedef struct tdesc_type.
11084 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11085 struct tui_line_or_address.
11086 * value.c (enum internalvar_kind, union internalvar_data): Move
11087 out of struct internalvar.
11088 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11089 gdbarch_tdep.
11090
11091 2015-02-27 Tom Tromey <tromey@redhat.com>
11092 Pedro Alves <palves@redhat.com>
11093
11094 Rename symbols whose names are reserved C++ keywords throughout.
11095
11096 2015-02-27 Pedro Alves <palves@redhat.com>
11097
11098 * Makefile.in (COMPILER): New, get it from autoconf.
11099 (COMPILE.pre, CC_LD): Use COMPILER.
11100 (CXX): Get from autoconf instead.
11101 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11102 * acinclude.m4: Include build-with-cxx.m4.
11103 * build-with-cxx.m4: New file.
11104 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11105 Disable -Werror by default if building in C++ mode.
11106 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11107 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11108 Run supported-warning-flags tests with the C++ compiler.
11109 Save/restore CXXFLAGS too.
11110 * configure: Regenerate.
11111
11112 2015-02-27 Pedro Alves <palves@redhat.com>
11113
11114 * libiberty.m4: New file.
11115 * acinclude.m4: Include libiberty.m4.
11116 * configure.ac: Call libiberty_INIT.
11117 * config.in, configure: Regenerate.
11118
11119 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11120
11121 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11122 31-bit targets, but 64-bit targets as well.
11123 (s390_gnu_triplet_regexp): New function.
11124 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11125 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11126 method.
11127
11128 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11129
11130 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11131 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11132 from CONTEXT_DEBUGGER.
11133
11134 2015-02-26 Doug Evans <dje@google.com>
11135
11136 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11137 CHECK_TYPEDEF.
11138 (set_type_vptr_fieldno): Ditto.
11139 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11140 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11141
11142 2015-02-26 Pedro Alves <palves@redhat.com>
11143
11144 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11145 * complaints.c (vcomplaint): Pass argument FMT directly to
11146 printf-like functions instead of complaint->fmt.
11147 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11148 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11149 * compile/compile-loc2c.c (pushf, unary, binary): Add
11150 ATTRIBUTE_PRINTF.
11151 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11152 to pushf.
11153 (BINARY): Pass string literal as format string to 'binary'.
11154 * compile/compile-object-load.c (link_callbacks_einfo): Add
11155 ATTRIBUTE_PRINTF.
11156 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11157
11158 2015-02-26 Pedro Alves <palves@redhat.com>
11159
11160 * windows-termcap.c: Rename to ...
11161 * stub-termcap.c: ... this. Adjust header line.
11162 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11163 windows-termcap.c.
11164 * configure: Regenerate.
11165 * configure.ac: Refer to stub-termcap.o instead of
11166 windows-termcap.o.
11167 * gdb_curses.h: Mention stub-termcap.c instead of
11168 windows-termcap.c.
11169
11170 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11171
11172 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11173 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11174
11175 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11176
11177 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11178
11179 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11180
11181 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11182 bfd_canonicalize_symtab.
11183
11184 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11185
11186 * amd64fbsd-nat.c: Include sys/user.h.
11187 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11188 instead of KERN_PS_STRINGS to locate the signal trampoline.
11189 * i386fbsd-nat.c: Include sys/user.h.
11190 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11191 instead of KERN_PS_STRINGS to locate the signal trampoline.
11192 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11193 (amd64fbsd_sigtramp_p): New.
11194 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11195 longer set default values.
11196 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11197 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11198 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11199 (i386fbsd_freebsd4_sigtramp_start)
11200 (i386fbsd_freebsd4_sigtramp_middle)
11201 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11202 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11203 (i386fbsd_sigtramp_p): New.
11204 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11205 longer set default values.
11206 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11207
11208 2015-02-25 John Baldwin <jhb@freebsd.org>
11209
11210 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11211 get_frame_register instead of frame_unwind_register_unsigned.
11212
11213 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11214
11215 PR build/18033
11216 * compile/compile-c-support.c (c_compute_program): Change // comment.
11217 * compile/compile-object-load.c (setup_sections): Change // comment.
11218
11219 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11220
11221 PR build/18033:
11222 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11223
11224 2015-02-23 Pedro Alves <palves@redhat.com>
11225
11226 * remote.c (skip_to_semicolon): New function.
11227 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11228 special case the stop reasons that look like hex numbers
11229 upfront. Instead handle real register numbers after matching
11230 all the known stop reasons.
11231
11232 2015-02-21 Doug Evans <dje@google.com>
11233
11234 PR c++/17976, symtab/17821
11235 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11236 is_in_anonymous. All callers updated.
11237 (find_symbol_in_baseclass): Ditto.
11238 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11239 for symbols in an anonymous namespace.
11240 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11241 DW_AT_name directly.
11242 (dwarf2_name): Convert missing namespace name to
11243 CP_ANONYMOUS_NAMESPACE_STR.
11244
11245 2015-02-20 Pedro Alves <palves@redhat.com>
11246
11247 * linux-nat.c (linux_handle_extended_wait): Call
11248 thread_db_notice_clone whenever a new clone LWP is detected.
11249 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11250 functions.
11251 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11252 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11253 (linux_unstop_all_lwps): Declare.
11254 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11255 (thread_get_info_callback): Delete.
11256 (thread_from_lwp): Use td_thr_get_info and record_thread.
11257 (thread_db_attach_lwp): Delete.
11258 (thread_db_notice_clone): New function.
11259 (try_thread_db_load_1): If /proc is mounted and shows the
11260 process'es task list, walk over all LWPs and call thread_from_lwp
11261 instead of relying on td_ta_thr_iter.
11262 (attach_thread): Don't call check_thread_signals here. Split the
11263 tail part of the function (which adds the thread to the core GDB
11264 thread list) to ...
11265 (record_thread): ... this function. Call check_thread_signals
11266 here.
11267 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11268 call thread_from_lwp.
11269 (thread_db_update_thread_list): Rename to ...
11270 (thread_db_update_thread_list_org): ... this.
11271 (thread_db_update_thread_list): New function.
11272 (thread_db_find_thread_from_tid): Delete.
11273 (thread_db_get_ada_task_ptid): Simplify.
11274 * nat/linux-procfs.c: Include <sys/stat.h>.
11275 (linux_proc_task_list_dir_exists): New function.
11276 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11277
11278 2015-02-20 Pedro Alves <palves@redhat.com>
11279
11280 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11281 main LWP. Handle the case of waitpid returning 0 if we're already
11282 attached to the LWP. Don't set the LWP's last_resume_kind to
11283 resume_stop if we already knew about the LWP.
11284 (linux_nat_filter_event): Add debug logs.
11285
11286 2015-02-20 Pedro Alves <palves@redhat.com>
11287
11288 * target.h (forward_target_decr_pc_after_break): Delete
11289 declaration.
11290
11291 2015-02-20 Pedro Alves <palves@redhat.com>
11292
11293 PR threads/18006
11294 * linux-thread-db.c (thread_get_info_callback): Return early if
11295 the thread's lwp id is -1.
11296
11297 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11298
11299 GDB 7.9 released.
11300
11301 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11302
11303 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11304 (dtrace_get_probes) Change type of variable 'dof'.
11305
11306 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11307
11308 PR breakpoints/16812
11309 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11310 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11311 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11312
11313 2015-02-19 David Taylor <dtaylor@emc.com>
11314
11315 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11316
11317 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11318
11319 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11320 function.
11321 (tui_putc): Don't call tui_handle_resize_during_io.
11322 (tui_getc): Likewise.
11323 (tui_mld_getc): Likewise.
11324 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11325 (tui_sigwinch_token): New static variable.
11326 (tui_initialize_win): Adjust documentation. Set
11327 tui_sigwinch_token.
11328 (tui_async_resize_screen): New asynchronous callback.
11329 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11330 invoke tui_async_resize_screen.
11331
11332 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11333
11334 * configure: Regenerated.
11335 * configure.ac: Use GDB_AC_TRANSFORM.
11336 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11337 * acinclude.m4: sinclude transform.m4.
11338 * transform.m4: New file.
11339 (GDB_AC_TRANSFORM): New macro.
11340
11341 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11342
11343 * NEWS: Announce the support for DTrace SDT probes.
11344
11345 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11346
11347 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11348 (amd64_dtrace_parse_probe_argument): New function.
11349 (amd64_dtrace_probe_is_enabled): Likewise.
11350 (amd64_dtrace_enable_probe): Likewise.
11351 (amd64_dtrace_disable_probe): Likewise.
11352 (amd64_linux_init_abi): Register the
11353 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11354 `gdbarch_dtrace_disable_probe' and
11355 `gdbarch_dtrace_probe_is_enabled' hooks.
11356 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11357 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11358 (amd64_dtrace_enable_probe_sequence): Likewise.
11359 (amd64_dtrace_disable_probe_sequence): Likewise.
11360
11361 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11362
11363 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11364 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11365 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11366 handle ELF files.
11367 * Makefile.in (SFILES): dtrace-probe.c added.
11368 * configure: Regenerate.
11369 * dtrace-probe.c: New file.
11370 (SHT_SUNW_dof): New constant.
11371 (dtrace_probe_type): New enum.
11372 (dtrace_probe_arg): New struct.
11373 (dtrace_probe_arg_s): New typedef.
11374 (struct dtrace_probe_enabler): New struct.
11375 (dtrace_probe_enabler_s): New typedef.
11376 (dtrace_probe): New struct.
11377 (dtrace_probe_is_linespec): New function.
11378 (dtrace_dof_sect_type): New enum.
11379 (dtrace_dof_dofh_ident): Likewise.
11380 (dtrace_dof_encoding): Likewise.
11381 (DTRACE_DOF_ENCODE_LSB): Likewise.
11382 (DTRACE_DOF_ENCODE_MSB): Likewise.
11383 (dtrace_dof_hdr): New struct.
11384 (dtrace_dof_sect): Likewise.
11385 (dtrace_dof_provider): Likewise.
11386 (dtrace_dof_probe): Likewise.
11387 (DOF_UINT): New macro.
11388 (DTRACE_DOF_PTR): Likewise.
11389 (DTRACE_DOF_SECT): Likewise.
11390 (dtrace_process_dof_probe): New function.
11391 (dtrace_process_dof): Likewise.
11392 (dtrace_build_arg_exprs): Likewise.
11393 (dtrace_get_arg): Likewise.
11394 (dtrace_get_probes): Likewise.
11395 (dtrace_get_probe_argument_count): Likewise.
11396 (dtrace_can_evaluate_probe_arguments): Likewise.
11397 (dtrace_evaluate_probe_argument): Likewise.
11398 (dtrace_compile_to_ax): Likewise.
11399 (dtrace_probe_destroy): Likewise.
11400 (dtrace_gen_info_probes_table_header): Likewise.
11401 (dtrace_gen_info_probes_table_values): Likewise.
11402 (dtrace_probe_is_enabled): Likewise.
11403 (dtrace_probe_ops): New variable.
11404 (info_probes_dtrace_command): New function.
11405 (_initialize_dtrace_probe): Likewise.
11406 (dtrace_type_name): Likewise.
11407
11408 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11409
11410 * gdbarch.sh (dtrace_parse_probe_argument): New.
11411 (dtrace_probe_is_enabled): Likewise.
11412 (dtrace_enable_probe): Likewise.
11413 (dtrace_disable_probe): Likewise.
11414 * gdbarch.c: Regenerate.
11415 * gdbarch.h: Regenerate.
11416
11417 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11418
11419 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11420 stap_probe_ops for `enable_probe' and `disable_probe'.
11421 * probe.c (enable_probes_command): New function.
11422 (disable_probes_command): Likewise.
11423 (_initialize_probe): Define the cli commands `enable probe' and
11424 `disable probe'.
11425 (parse_probe_linespec): New function.
11426 (info_probes_for_ops): Use parse_probe_linespec.
11427 * probe.h (probe_ops): New hooks `enable_probe' and
11428 `disable_probe'.
11429
11430 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11431
11432 * probe.c (compute_probe_arg): Moved from stap-probe.c
11433 (compile_probe_arg): Likewise.
11434 (probe_funcs): Likewise.
11435 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11436 (compile_probe_arg): Likewise.
11437 (probe_funcs): Likewise.
11438
11439 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11440
11441 * probe.c (print_ui_out_not_applicables): New function.
11442 (exists_probe_with_pops): Likewise.
11443 (info_probes_for_ops): Do not include column headers for probe
11444 types for which no probe has been actually found on any object.
11445 Also invoke `print_ui_out_not_applicables' in order to match the
11446 column rows with the header when probes of several types are
11447 listed.
11448 Print the "Type" column.
11449 * probe.h (probe_ops): Added a new probe operation `type_name'.
11450 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11451 (stap_type_name): New function.
11452
11453 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11454
11455 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11456 (key_is_command_char): Delete.
11457
11458 2015-02-17 Pedro Alves <palves@redhat.com>
11459
11460 * tui/tui.c (tui_enable): Resize windows before anything
11461 might show a window.
11462
11463 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11464
11465 PR gdb/17984
11466 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11467 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11468 call.
11469 * aarch64-tdep.h (tdesc_aarch64): Declare.
11470
11471 2015-02-12 Mark Wielaard <mjw@redhat.com>
11472
11473 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11474
11475 2015-02-13 Doug Evans <dje@google.com>
11476
11477 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11478 anonymous_namespace to is_in_anonymous for consistency with the rest
11479 of the file.
11480 (cp_lookup_bare_symbol): Fix typo in comment.
11481 (cp_search_static_and_baseclasses): Ditto.
11482 (search_symbol_list): Use vertical space in comment better.
11483 (reset_directive_searched): Ditto. Fix typo.
11484 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11485
11486 2015-02-13 Yao Qi <yao.qi@arm.com>
11487
11488 * MAINTAINERS: Update my email address.
11489
11490 2015-02-12 Doug Evans <dje@google.com>
11491
11492 * symtab.c (completion_list_add_name): Fix memory leak.
11493
11494 2015-02-12 Doug Evans <dje@google.com>
11495
11496 * completer.c (complete_line): Remove incorrect comment.
11497
11498 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11499
11500 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11501 (py_print_frame): Use RETURN_MASK_ERROR.
11502
11503 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11504
11505 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11506 function comment. Wrap all function that can throw in cleanups.
11507 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11508 cleanups.
11509
11510 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11511
11512 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11513 Remove the error label.
11514
11515 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11516
11517 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11518 with goto first, indent the former else codepath left. Put variable
11519 'elided' to a new inner block.
11520
11521 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11522
11523 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11524
11525 2015-02-11 Pedro Alves <palves@redhat.com>
11526
11527 * xcoffread.c (within_function): Delete.
11528
11529 2015-02-11 Tom Tromey <tromey@redhat.com>
11530 Pedro Alves <palves@redhat.com>
11531
11532 * breakpoint.c (base_breakpoint_ops): Delete.
11533 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11534 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11535 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11536 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11537 * python/py-arch.c (arch_object_type): Make extern.
11538 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11539 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11540 * python/py-cmd.c (cmdpy_object_type): Make extern.
11541 * python/py-continueevent.c (continue_event_object_type)
11542 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11543 parameter. Update all callers.
11544 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11545 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11546 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11547 * python/py-function.c (fnpy_object_type): Make extern.
11548 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11549 * python/py-infevents.c (call_pre_event_object_type)
11550 (inferior_call_post_event_object_type).
11551 (memory_changed_event_object_type): Make extern.
11552 * python/py-infthread.c (thread_object_type): Make extern.
11553 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11554 * python/py-linetable.c (linetable_entry_object_type)
11555 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11556 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11557 (clear_objfiles_event_object_type): Make extern.
11558 * python/py-objfile.c (objfile_object_type): Make extern.
11559 * python/py-param.c (parmpy_object_type): Make extern.
11560 * python/py-progspace.c (pspace_object_type): Make extern.
11561 * python/py-signalevent.c (signal_event_object_type): Make extern.
11562 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11563 * python/py-type.c (type_object_type, field_object_type)
11564 (type_iterator_object_type): Make extern.
11565 * python/python.c (python_extension_script_ops)
11566 (python_extension_ops): Make extern.
11567 * stap-probe.c (stap_probe_ops): Make extern.
11568
11569 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11570
11571 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11572 because the event thread is not the current thread.
11573
11574 2015-02-11 Doug Evans <xdje42@gmail.com>
11575
11576 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11577 been initialized yet, return NULL.
11578
11579 2015-02-11 Doug Evans <dje@google.com>
11580
11581 * symfile.h (new_symfile_objfile): Delete.
11582 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11583 All callers updated.
11584
11585 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11586
11587 * tui/tui-io.c (tui_handle_resize_during_io): Call
11588 tui_update_gdb_sizes() after resizing the screen.
11589 * tui/tui.c (tui_enable): Resize the terminal before
11590 calling tui_update_gdb_sizes().
11591
11592 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11593
11594 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11595 line before printing a newline.
11596
11597 2015-02-11 Mark Wielaard <mjw@redhat.com>
11598
11599 * utils.c (producer_is_gcc): Return true or false.
11600
11601 2015-02-10 Mark Wielaard <mjw@redhat.com>
11602
11603 * utils.h (producer_is_gcc): Change return type to bool. Add major
11604 argument.
11605 * utils.c (producer_is_gcc): Likewise.
11606 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11607 * dwarf2read.c (check_producer): Likewise.
11608
11609 2015-02-10 Pedro Alves <palves@redhat.com>
11610
11611 * infrun.c (displaced_step_fixup): Switch to the event thread
11612 before calling gdbarch_displaced_step_fixup.
11613
11614 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11615
11616 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11617
11618 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11619
11620 * ada-varobj.c (ada_name_of_child): Constify parent.
11621 (ada_path_expr_of_child): Same.
11622 (ada_value_of_child): Same.
11623 (ada_type_of_child): Same.
11624 * c-varobj.c (c_is_path_expr_parent): Same.
11625 (c_describe_child): Same.
11626 (c_name_of_child): Same.
11627 (c_value_of_child): Same.
11628 (c_type_of_child): Same.
11629 (cplus_number_of_children): Same.
11630 (cplus_describe_child): Constify var.
11631 (cplus_name_of_child): Constify parent.
11632 (cplus_value_of_child): Same.
11633 (cplus_type_of_child): Same.
11634 * jv-varobj.c (java_name_of_child): Same.
11635 (java_value_of_child): Same.
11636 (java_type_of_child): Same.
11637 * varobj.c (value_of_child): Same.
11638 (varobj_default_is_path_expr_parent): Constify var, parent and return
11639 value.
11640 (varobj_get_path_expr): Constify var, modify path_expr through
11641 mutable_var.
11642 (install_new_value): Constify parent.
11643 (value_of_child): Constify parent.
11644 * varobj.h (struct varobj): Constify parent.
11645 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11646 type_of_child.
11647 (varobj_get_path_expr): Constify var.
11648 (varobj_get_path_expr_parent): Constify var and return value.
11649
11650 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11651
11652 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11653 (arm_prologue_this_id): Move PC and SP limit checks to
11654 arm_prologue_unwind_stop_reason.
11655 (arm_prologue_unwind) <stop_reason> : Set to
11656 arm_prologue_unwind_stop_reason.
11657
11658 2015-02-09 Mark Wielaard <mjw@redhat.com>
11659
11660 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11661 DW_LANG_Fortran08 as language_fortran.
11662
11663 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11664
11665 PR remote/17946
11666 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11667 of pointer against char.
11668
11669 2015-02-09 Mark Wielaard <mjw@redhat.com>
11670
11671 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11672 (c_type_print_modifier): Likewise.
11673 * dwarf2read.c (read_tag_atomic_type): New function.
11674 (read_type_die_1): Handle DW_TAG_atomic_type.
11675 * gdbtypes.c (make_atomic_type): New function.
11676 (recursive_dump_type): Handle TYPE_ATOMIC.
11677 * gdbtypes.h (enum type_flag_values): Renumber.
11678 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11679 (TYPE_ATOMIC): New macro.
11680 (make_atomic_type): Declare.
11681
11682 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11683
11684 * btrace.c (ftrace_find_call): Skip gaps.
11685 (ftrace_new_function): Initialize level.
11686 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11687 (ftrace_new_switch): Update
11688 level computation.
11689 (ftrace_new_gap): New.
11690 (ftrace_update_function): Create new function after gap.
11691 (btrace_compute_ftrace_bts): Create gap on error.
11692 (btrace_stitch_bts): Update parameters. Clear trace if it
11693 becomes empty.
11694 (btrace_stitch_trace): Update parameters. Update callers.
11695 (btrace_clear): Reset the number of gaps.
11696 (btrace_insn_get): Return NULL if the iterator points to a gap.
11697 (btrace_insn_number): Return zero if the iterator points to a gap.
11698 (btrace_insn_end): Allow gaps at the end.
11699 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11700 (btrace_find_insn_by_number): Assert that the found iterator does
11701 not point to a gap.
11702 (btrace_call_next, btrace_call_prev): Assert that the last function
11703 is not a gap.
11704 * btrace.h (btrace_bts_error): New.
11705 (btrace_function): Update comment.
11706 (btrace_function) <insn, insn_offset, number>: Update comment.
11707 (btrace_function) <errcode>: New.
11708 (btrace_thread_info) <ngaps>: New.
11709 (btrace_thread_info) <replay>: Update comment.
11710 (btrace_insn_get): Update comment.
11711 * record-btrace.c (btrace_ui_out_decode_error): New.
11712 (record_btrace_info): Print number of gaps.
11713 (btrace_insn_history, btrace_call_history): Call
11714 btrace_ui_out_decode_error for gaps.
11715 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11716
11717 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11718
11719 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11720 * nat/linux-btrace.c: (btrace_this_cpu): New.
11721 (cpu_supports_bts): Call btrace_this_cpu.
11722 (intel_supports_bts): Add cpu parameter.
11723
11724 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11725
11726 * btrace.h (btrace_insn_class): New.
11727 (btrace_insn) <size, iclass>: New.
11728 * btrace.c (ftrace_find_call): Update parameters. Update users.
11729 Use instruction classification.
11730 (ftrace_new_return): Update parameters. Update users.
11731 (ftrace_update_function): Update parameters. Update users. Use
11732 instruction classification.
11733 (ftrace_update_insns): Update parameters. Update users.
11734 (ftrace_classify_insn): New.
11735 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11736 TRY_CATCH around call to gdb_insn_length.
11737
11738 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11739
11740 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11741 Update parameters. Update users.
11742
11743 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11744
11745 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11746 (btrace_conf_bts_attributes): New.
11747 (btrace_conf_children): Add attributes.
11748 * common/btrace-common.h (btrace_config_bts): New.
11749 (btrace_config)<bts>: New.
11750 (btrace_config): Update comment.
11751 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11752 Use config.
11753 * features/btrace-conf.dtd: Increment version. Add size
11754 attribute to bts element.
11755 * record-btrace.c (set_record_btrace_bts_cmdlist,
11756 show_record_btrace_bts_cmdlist): New.
11757 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11758 record_btrace_print_conf, cmd_set_record_btrace_bts,
11759 cmd_show_record_btrace_bts): New.
11760 (record_btrace_info): Call record_btrace_print_conf.
11761 (_initialize_record_btrace): Add commands.
11762 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11763 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11764 (btrace_sync_conf): Synchronize bts size.
11765 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11766 * NEWS: Announce new commands and new packets.
11767
11768 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11769
11770 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11771 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11772 (x86_linux_btrace_conf): New.
11773 (x86_linux_create_target): Initialize to_btrace_conf.
11774 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11775 Check format. Split into this and ...
11776 (linux_enable_bts): ... this.
11777 (linux_btrace_conf): New.
11778 (perf_event_skip_record): Renamed into ...
11779 (perf_event_skip_bts_record): ... this. Updated users.
11780 (linux_disable_btrace): Split into this and ...
11781 (linux_disable_bts): ... this.
11782 (linux_read_btrace): Check format.
11783 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11784 (linux_btrace_conf): New.
11785 (btrace_target_info)<ptid>: Moved.
11786 (btrace_target_info)<conf>: New.
11787 (btrace_target_info): Split into this and ...
11788 (btrace_tinfo_bts): ... this. Updated users.
11789 * btrace.c (btrace_enable): Update parameters.
11790 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11791 (btrace_conf_children, btrace_conf_attributes)
11792 (btrace_conf_elements): New.
11793 * btrace.h (btrace_enable): Update parameters.
11794 (btrace_conf, parse_xml_btrace_conf): New.
11795 * common/btrace-common.h (btrace_config): New.
11796 * feature/btrace-conf.dtd: New.
11797 * record-btrace.c (record_btrace_conf): New.
11798 (record_btrace_cmdlist): New.
11799 (record_btrace_enable_warn, record_btrace_open): Pass
11800 &record_btrace_conf.
11801 (record_btrace_info): Print recording format.
11802 (cmd_record_btrace_bts_start): New.
11803 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11804 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11805 Add "record bts" alias command.
11806 * remote.c (remote_state)<btrace_config>: New.
11807 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11808 (remote_protocol_features): Add qXfer:btrace-conf:read.
11809 (remote_open_1): Call remote_btrace_reset.
11810 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11811 (btrace_target_info)<conf>: New.
11812 (btrace_sync_conf, btrace_read_config): New.
11813 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11814 btrace_read_conf.
11815 (remote_btrace_conf): New.
11816 (init_remote_ops): Initialize to_btrace_conf.
11817 (_initialize_remote): Add qXfer:btrace-conf packet.
11818 * target.c (target_enable_btrace): Update parameters.
11819 (target_btrace_conf): New.
11820 * target.h (target_enable_btrace): Update parameters.
11821 (target_btrace_conf): New.
11822 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11823 (target_ops)<to_enable_btrace>: Update parameters and comment.
11824 (target_ops)<to_btrace_conf>: New.
11825 * target-delegates: Regenerate.
11826 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11827 (target_debug_print_const_struct_btrace_target_info_p): New.
11828 * NEWS: Announce new command and new packet.
11829
11830 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11831
11832 * nat/linux-btrace.h (perf_event_buffer): New.
11833 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11834 <bts>: ... this.
11835 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11836 (perf_event_buffer_size, perf_event_buffer_begin)
11837 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11838 Updated users.
11839 (perf_event_new_data): New.
11840
11841 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11842
11843 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11844 * record-btrace.c (record_btrace_open): Remove call to
11845 target_supports_btrace.
11846 * remote.c (remote_supports_btrace): Update parameters.
11847 * target.c (target_supports_btrace): Update parameters.
11848 * target.h (to_supports_btrace, target_supports_btrace): Update
11849 parameters.
11850 * target-delegates.c: Regenerate.
11851 * target-debug.h (target_debug_print_enum_btrace_format): New.
11852 * nat/linux-btrace.c
11853 (kernel_supports_btrace): Rename into ...
11854 (kernel_supports_bts): ... this. Update users. Update warning text.
11855 (intel_supports_btrace): Rename into ...
11856 (intel_supports_bts): ... this. Update users.
11857 (cpu_supports_btrace): Rename into ...
11858 (cpu_supports_bts): ... this. Update users.
11859 (linux_supports_btrace): Update parameters. Split into this and ...
11860 (linux_supports_bts): ... this.
11861 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11862
11863 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11864
11865 * Makefile.in (SFILES): Add common/btrace-common.c.
11866 (COMMON_OBS): Add common/btrace-common.o.
11867 (btrace-common.o): Add build rules.
11868 * btrace.c (parse_xml_btrace): Update parameters.
11869 (parse_xml_btrace_block): Set format field.
11870 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11871 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11872 (btrace_compute_ftrace): Split into this and...
11873 (btrace_compute_ftrace_bts): ...this.
11874 (btrace_stitch_trace): Split into this and...
11875 (btrace_stitch_bts): ...this.
11876 * btrace.h (parse_xml_btrace): Update parameters.
11877 (make_cleanup_btrace_data): New.
11878 * common/btrace-common.c: New.
11879 * common/btrace-common.h: Include common-defs.h.
11880 (btrace_block_s): Update comment.
11881 (btrace_format): New.
11882 (btrace_format_string): New.
11883 (btrace_data_bts): New.
11884 (btrace_data): New.
11885 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11886 * remote.c (remote_read_btrace): Update parameters.
11887 * target.c (target_read_btrace): Update parameters.
11888 * target.h (target_read_btrace): Update parameters.
11889 (target_ops)<to_read_btrace>: Update parameters.
11890 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11891 * target-delegates.c: Regenerate.
11892 * target-debug (target_debug_print_struct_btrace_data_p): New.
11893 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11894 (linux_read_bts): ...this.
11895 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11896
11897 2015-02-06 Doug Evans <dje@google.com>
11898
11899 * remote-m32r-sdi.c: Include symfile.h.
11900
11901 2015-02-06 Doug Evans <dje@google.com>
11902
11903 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11904 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11905 to here.
11906
11907 2015-02-06 Pedro Alves <palves@redhat.com>
11908
11909 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11910
11911 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11912
11913 PR gdb/15678
11914 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11915 (enable_count_command): Check args for NULL value.
11916
11917 2015-02-05 Doug Evans <xdje42@gmail.com>
11918
11919 * guile/scm-frame.c: Fix spelling errors in a comment.
11920
11921 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11922
11923 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11924 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11925 return type.
11926
11927 2015-02-04 Pedro Alves <palves@redhat.com>
11928
11929 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11930 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11931 returns true.
11932 (resume_stopped_resumed_lwps): Don't check whether the thread is
11933 marked as executing.
11934 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11935
11936 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11937
11938 * regset.h (struct regset): Add flags field.
11939 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11940 * corelow.c (get_core_register_section): Add warning if the size
11941 exceeds the requested size and the regset does not have the
11942 REGSET_VARIABLE_SIZE flag set.
11943 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11944 flag.
11945 * armbsd-tdep.c (armbsd_gregset): Likewise.
11946 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11947 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11948 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11949 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11950
11951 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11952
11953 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11954 For ".reg-xstate", explicitly specify the requested section size
11955 via X86_XSTATE_SIZE instead of just 0 on input and
11956 X86_XSTATE_MAX_SIZE on output.
11957 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11958 Likewise.
11959
11960 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11961
11962 PR corefiles/17808:
11963 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11964 function type, particularly its SIZE parameter.
11965 * gdbarch.h: Regenerate.
11966 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11967 actual against required size using ">=" instead of "==".
11968 (amd64_collect_fpregset): Likewise.
11969 * i386-tdep.c (i386_supply_gregset): Likewise.
11970 (i386_collect_gregset): Likewise.
11971 (i386_supply_fpregset): Likewise.
11972 (i386_collect_fpregset): Likewise.
11973 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11974 (mips_fill_gregset_wrapper): Likewise.
11975 (mips_supply_fpregset_wrapper): Likewise.
11976 (mips_fill_fpregset_wrapper): Likewise.
11977 (mips64_supply_gregset_wrapper): Likewise.
11978 (mips64_fill_gregset_wrapper): Likewise.
11979 (mips64_supply_fpregset_wrapper): Likewise.
11980 (mips64_fill_fpregset_wrapper): Likewise.
11981 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11982 (am33_supply_fpregset_method): Likewise.
11983 (am33_collect_gregset_method): Likewise.
11984 (am33_collect_fpregset_method): Likewise.
11985
11986 2015-02-04 Doug Evans <dje@google.com>
11987 Pedro Alves <palves@redhat.com>
11988 Eli Zaretskii <eliz@gnu.org>
11989
11990 PR tui/17810
11991 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11992 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11993 * tui/tui-file.c: #include tui/tui-command.h.
11994 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11995 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11996 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11997
11998 2015-02-04 Pedro Alves <palves@redhat.com>
11999
12000 Fix build breakage.
12001 * event-loop.c (gdb_do_one_event): Add default switch case.
12002
12003 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12004
12005 Filter out inferior gcc option -fpreprocessed.
12006 * compile/compile.c (filter_args): New function.
12007 (get_args): Use it.
12008
12009 2015-02-03 Pedro Alves <palves@redhat.com>
12010
12011 * event-loop.c: Don't declare nor define a queue type for
12012 gdb_event_p.
12013 (event_queue): Delete.
12014 (create_event, create_file_event, gdb_event_xfree)
12015 (initialize_event_loop, process_event): Delete.
12016 (gdb_do_one_event): Return as soon as one event is handled.
12017 (handle_file_event): Change prototype. Used the passed in
12018 file_handler pointer and ready_mask instead of looping over all
12019 file handlers.
12020 (gdb_wait_for_event): Update the poll/select timeouts before
12021 blocking. Run event handlers directly instead of queueing events.
12022 Return as soon as one event is handled.
12023 (struct async_event_handler_data): Delete.
12024 (invoke_async_event_handler): Delete.
12025 (check_async_event_handlers): Change return type to int. Run
12026 event handlers directly instead of queueing events. Return as
12027 soon as one event is handled.
12028 (handle_timer_event): Delete.
12029 (update_wait_timeout): New function, factored out from
12030 poll_timers.
12031 (poll_timers): Reimplement.
12032 * event-loop.h (initialize_event_loop): Delete declaration.
12033 * top.c (gdb_init): Don't call initialize_event_loop.
12034
12035 2015-02-03 Pedro Alves <palves@redhat.com>
12036
12037 * event-loop.c (clear_async_event_handler): New function.
12038 * event-loop.h (clear_async_event_handler): New declaration.
12039 * record-btrace.c (record_btrace_async): New function.
12040 (init_record_btrace_ops): Install record_btrace_async.
12041 * record-full.c (record_full_async): New function.
12042 (record_full_resume): Don't mark the async event source here.
12043 (init_record_full_ops): Install record_full_async.
12044 (record_full_core_resume): Don't mark the async event source here.
12045 (init_record_full_core_ops): Install record_full_async.
12046 * remote.c (remote_async): Mark and clear the async stop reply
12047 queue event-loop token as appropriate.
12048
12049 2015-02-03 Pedro Alves <palves@redhat.com>
12050
12051 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12052 target_is_async_p instead of target_can_async.
12053 (linux_nat_wait): Use target_is_async_p instead of
12054 target_can_async. Don't enable async here.
12055 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12056 target_is_async_p instead of target_can_async.
12057
12058 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12059
12060 * varobj.h (lang_varobj_ops): Mention which return values need
12061 to be freed.
12062
12063 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12064
12065 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12066
12067 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12068
12069 PR gdb/17856:
12070 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12071 results found in the cache.
12072
12073 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12074
12075 PR gdb/17854:
12076 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12077 when allocating a new one.
12078
12079 2015-02-01 Tom Tromey <tom@tromey.com>
12080
12081 * MAINTAINERS: Remove myself.
12082
12083 2015-01-31 Doug Evans <xdje42@gmail.com>
12084
12085 * dwarf2read.c (process_structure_scope): Update setting of
12086 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12087 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12088 (set_type_vptr_fieldno): New function.
12089 (internal_type_vptr_basetype): New function.
12090 (set_type_vptr_basetype): New function.
12091 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12092 TYPE_VPTR_BASETYPE.
12093 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12094 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12095 (print_cplus_stuff): ... moved here.
12096 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12097 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12098 moved to ...
12099 (struct cplus_struct_type): ... here. All uses updated.
12100 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12101 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12102 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12103 * stabsread.c (read_tilde_fields): Update setting of
12104 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12105
12106 2015-01-31 Doug Evans <xdje42@gmail.com>
12107
12108 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12109 to self_p.
12110 (cp_print_class_member): Rename local domain to self_type.
12111 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12112 domain_type to self_type.
12113 (set_die_type) <need_gnat_info>: Handle
12114 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12115 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12116 TYPE_SPECIFIC_SELF_TYPE.
12117 * gdbtypes.c (internal_type_self_type): New function.
12118 (set_type_self_type): New function.
12119 (smash_to_memberptr_type): Rename parameter domain to self_type.
12120 Update setting of TYPE_SELF_TYPE.
12121 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12122 (smash_to_method_type): Rename parameter domain to self_type.
12123 Update setting of TYPE_SELF_TYPE.
12124 (check_stub_method): Call smash_to_method_type.
12125 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12126 (copy_type_recursive): Ditto.
12127 * gdbtypes.h (enum type_specific_kind): New value
12128 TYPE_SPECIFIC_SELF_TYPE.
12129 (struct main_type) <type_specific>: New member self_type.
12130 (struct cplus_struct_type) <fn_field.type>: Update comment.
12131 (TYPE_SELF_TYPE): Rewrite.
12132 (internal_type_self_type, set_type_self_type): Declare.
12133 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12134 self_type.
12135 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12136 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12137 TYPE_TARGET_TYPE.
12138 * stabsread.c (read_member_functions): Mark methods with
12139 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12140 TYPE_SELF_TYPE.
12141
12142 2015-01-31 Doug Evans <xdje42@gmail.com>
12143
12144 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12145 All uses updated.
12146
12147 2015-01-31 Doug Evans <xdje42@gmail.com>
12148
12149 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12150 or unions. Return zero if union.
12151 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12152 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12153 gnuv3_get_vtable.
12154 (compute_vtable_size): Assert only passed structs.
12155 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12156
12157 2015-01-31 Doug Evans <xdje42@gmail.com>
12158
12159 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12160 kinds.
12161
12162 2015-01-31 Gary Benson <gbenson@redhat.com>
12163 Doug Evans <dje@google.com>
12164
12165 PR cli/9007
12166 PR cli/11920
12167 PR cli/15548
12168 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12169 reached.
12170 * common/common-exceptions.h (enum errors)
12171 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12172 * completer.h (get_max_completions_reached_message): New declaration.
12173 (max_completions): Likewise.
12174 (completion_tracker_t): New typedef.
12175 (new_completion_tracker): New declaration.
12176 (make_cleanup_free_completion_tracker): Likewise.
12177 (maybe_add_completion_enum): New enum.
12178 (maybe_add_completion): New declaration.
12179 (throw_max_completions_reached_error): Likewise.
12180 * completer.c (max_completions): New global variable.
12181 (new_completion_tracker): New function.
12182 (free_completion_tracker): Likewise.
12183 (make_cleanup_free_completion_tracker): Likewise.
12184 (maybe_add_completions): Likewise.
12185 (throw_max_completions_reached_error): Likewise.
12186 (complete_line): Remove duplicates and limit result to max_completions
12187 entries.
12188 (get_max_completions_reached_message): New function.
12189 (gdb_display_match_list): Handle max_completions.
12190 (_initialize_completer): New declaration and function.
12191 * symtab.c: Include completer.h.
12192 (completion_tracker): New static variable.
12193 (completion_list_add_name): Call maybe_add_completion.
12194 (default_make_symbol_completion_list_break_on_1): Renamed from
12195 default_make_symbol_completion_list_break_on. Maintain
12196 completion_tracker across calls to completion_list_add_name.
12197 (default_make_symbol_completion_list_break_on): New function.
12198 * top.c (init_main): Set rl_completion_display_matches_hook.
12199 * tui/tui-io.c: Include completer.h.
12200 (tui_old_rl_display_matches_hook): New static global.
12201 (tui_rl_display_match_list): Notify user if max-completions reached.
12202 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12203 * NEWS (New Options): Mention set/show max-completions.
12204
12205 2015-01-31 Gary Benson <gbenson@redhat.com>
12206
12207 * symtab.c (struct add_name_data) <code>: New field.
12208 Updated comments.
12209 (add_symtab_completions): New function.
12210 (symtab_expansion_callback): Likewise.
12211 (default_make_symbol_completion_list_break_on): Set datum.code.
12212 Move minimal symbol scan before calling expand_symtabs_matching.
12213 Scan known primary symtabs for externs and statics before calling
12214 expand_symtabs_matching. Pass symtab_expansion_callback as
12215 expansion_notify argument to expand_symtabs_matching. Do not scan
12216 primary symtabs for externs and statics after calling
12217 expand_symtabs_matching.
12218
12219 2015-01-31 Gary Benson <gbenson@redhat.com>
12220
12221 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12222 (struct quick_symbol_functions) <expand_symtabs_matching>:
12223 New argument expansion_notify. All uses updated.
12224 (expand_symtabs_matching): New argument expansion_notify.
12225 All uses updated.
12226 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12227 Also print expansion notify.
12228 * symtab.c (expand_symtabs_matching_via_partial): Call
12229 expansion_notify whenever a partial symbol table is expanded.
12230 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12231 expansion_notify whenever a symbol table is instantiated.
12232
12233 2015-01-31 Doug Evans <xdje42@gmail.com>
12234
12235 * cli-out.c: #include completer.h, readline/readline.h.
12236 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12237 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12238 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12239 * cli-out.h (cli_display_match_list): Declare.
12240 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12241 (ELLIPSIS_LEN): Ditto.
12242 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12243 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12244 (gdb_fnprint, gdb_print_filename): Ditto.
12245 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12246 (gdb_display_match_list): Ditto.
12247 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12248 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12249 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12250 (match_list_displayer): New struct.
12251 (gdb_display_match_list): Declare.
12252 * top.c (init_main): Set rl_completion_display_matches_hook.
12253 * tui/tui-io.c: #include completer.h.
12254 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12255 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12256 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12257 (tui_mld_getc, tui_mld_read_key): Ditto.
12258 (tui_rl_display_match_list): Rewrite.
12259 (tui_handle_resize_during_io): New arg for_completion. All callers
12260 updated.
12261
12262 2015-01-31 Doug Evans <xdje42@gmail.com>
12263
12264 Add symbol lookup cache.
12265 * NEWS: Document new options and commands.
12266 * symtab.c (symbol_cache_key): New static global.
12267 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12268 (SYMBOL_LOOKUP_FAILED): New macro.
12269 (symbol_cache_slot_state): New enum.
12270 (block_symbol_cache): New struct.
12271 (symbol_cache): New struct.
12272 (new_symbol_cache_size, symbol_cache_size): New static globals.
12273 (hash_symbol_entry, eq_symbol_entry): New functions.
12274 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12275 (make_symbol_cache, free_symbol_cache): New functions.
12276 (get_symbol_cache, symbol_cache_cleanup): New function.
12277 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12278 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12279 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12280 (symbol_cache_flush, symbol_cache_dump): New functions.
12281 (maintenance_print_symbol_cache): New function.
12282 (maintenance_flush_symbol_cache): New function.
12283 (symbol_cache_stats): New function.
12284 (maintenance_print_symbol_cache_statistics): New function.
12285 (symtab_new_objfile_observer): New function.
12286 (symtab_free_objfile_observer): New function.
12287 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12288 (_initialize_symtab): Init symbol_cache_key. New parameter
12289 maint symbol-cache-size. New maint commands print symbol-cache,
12290 print symbol-cache-statistics, flush-symbol-cache.
12291 Install new_objfile, free_objfile observers.
12292
12293 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12294
12295 PR symtab/17855
12296 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12297 to end.
12298
12299 2015-01-31 Doug Evans <xdje42@gmail.com>
12300
12301 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12302 * auto-load.c: #include ctype.h.
12303 (struct auto_load_pspace_info): Replace member loaded_scripts with
12304 new members loaded_script_files, loaded_script_texts.
12305 (auto_load_pspace_data_cleanup): Update.
12306 (init_loaded_scripts_info): Update.
12307 (get_auto_load_pspace_data_for_loading): Update.
12308 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12309 updated.
12310 (maybe_add_script_text): New function.
12311 (clear_section_scripts): Update.
12312 (source_script_file, execute_script_contents): New functions.
12313 (source_section_scripts): Add support for
12314 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12315 (print_scripts): New function.
12316 (auto_load_info_scripts): Also print inlined scripts.
12317 (maybe_print_unsupported_script_warning): Renamed from
12318 unsupported_script_warning_print. All callers updated.
12319 (maybe_print_script_not_found_warning): Renamed from
12320 script_not_found_warning_print. All callers updated.
12321 * extension-priv.h (struct extension_language_script_ops): New member
12322 objfile_script_executor.
12323 * extension.c (ext_lang_objfile_script_executor): New function.
12324 * extension.h (objfile_script_executor_func): New typedef.
12325 (ext_lang_objfile_script_executor): Declare.
12326 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12327 * guile/guile.c (guile_extension_script_ops): Update.
12328 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12329 * python/python.c (python_extension_script_ops): Update.
12330 (gdbpy_execute_objfile_script): New function.
12331
12332 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12333
12334 * tui/tui-io.c (tui_expand_tabs): New function.
12335 (tui_puts, tui_redisplay_readline): Expand TABs into the
12336 appropriate number of spaces.
12337 * tui/tui-regs.c: Include tui-io.h.
12338 (tui_register_format): Call tui_expand_tabs to expand TABs into
12339 the appropriate number of spaces.
12340 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12341
12342 2015-01-30 Doug Evans <dje@google.com>
12343
12344 * NEWS: "info source" command now display producer string if present.
12345 * source.c (source_info): Print producer string if present.
12346
12347 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12348
12349 * varobj.c (varobj_delete): Fix comment.
12350
12351 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12352
12353 * varobj.c (create_child): Modify comment.
12354
12355 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12356
12357 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12358 parameter.
12359 (ada_name_of_variable): Same.
12360 (ada_path_expr_of_child): Same.
12361 (ada_value_of_variable): Same.
12362 (ada_value_is_changeable_p): Same.
12363 (ada_value_has_mutated): Same.
12364 * c-varobj.c (varobj_is_anonymous_child): Same.
12365 (c_is_path_expr_parent): Same.
12366 (c_number_of_children): Same.
12367 (c_name_of_variable): Same.
12368 (c_path_expr_of_child): Same.
12369 (get_type): Same.
12370 (c_value_of_variable): Same.
12371 (cplus_number_of_children): Same.
12372 (cplus_name_of_variable): Same.
12373 (cplus_path_expr_of_child): Same.
12374 (cplus_value_of_variable): Same.
12375 * jv-varobj.c (java_number_of_children): Same.
12376 (java_name_of_variable): Same.
12377 (java_path_expr_of_child): Same.
12378 (java_value_of_variable): Same.
12379 * varobj.c (number_of_children): Same.
12380 (name_of_variable): Same.
12381 (is_root_p): Same.
12382 (varobj_ensure_python_env): Same.
12383 (varobj_get_objname): Same.
12384 (varobj_get_expression): Same.
12385 (varobj_get_display_format): Same.
12386 (varobj_get_display_hint): Same.
12387 (varobj_has_more): Same.
12388 (varobj_get_thread_id): Same.
12389 (varobj_get_frozen): Same.
12390 (dynamic_varobj_has_child_method): Same.
12391 (varobj_get_gdb_type): Same.
12392 (is_path_expr_parent): Same.
12393 (varobj_default_is_path_expr_parent): Same.
12394 (varobj_get_language): Same.
12395 (varobj_get_attributes): Same.
12396 (varobj_is_dynamic_p): Same.
12397 (varobj_get_child_range): Same.
12398 (varobj_value_has_mutated): Same.
12399 (varobj_get_value_type): Same.
12400 (number_of_children): Same.
12401 (name_of_variable): Same.
12402 (check_scope): Same.
12403 (varobj_editable_p): Same.
12404 (varobj_value_is_changeable_p): Same.
12405 (varobj_floating_p): Same.
12406 (varobj_default_value_is_changeable_p): Same.
12407
12408 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12409
12410 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12411 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12412 child->path_expr.
12413 (cplus_path_expr_of_child): Same.
12414
12415 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12416
12417 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12418 result.
12419 (mi_cmd_var_info_expression): Same.
12420 * varobj.c (varobj_get_expression): Mention in the comment that
12421 the result must by freed by the caller.
12422
12423 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12424
12425 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12426 varobj_get_type.
12427 (varobj_update_one): Same.
12428 * varobj.c (update_type_if_necessary): Free curr_type_str and
12429 new_type_str.
12430 (varobj_get_type): Specify in comment that the result needs to be
12431 freed by the caller.
12432
12433 2015-01-29 Doug Evans <dje@google.com>
12434
12435 PR symtab/17890
12436 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12437
12438 2015-01-25 Mark Wielaard <mjw@redhat.com>
12439
12440 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12441 * utils.c (producer_is_gcc_ge_4): Likewise.
12442 (producer_is_gcc): New function.
12443 * utils.h (producer_is_gcc): New declaration.
12444
12445 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12446
12447 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12448 kind.
12449 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12450 parameter by "addr_stack" parameter.
12451 (resolve_dynamic_range): Replace "addr" parameter by
12452 "stack_addr" parameter. Update function documentation.
12453 Update code accordingly.
12454 (resolve_dynamic_array, resolve_dynamic_union)
12455 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12456 (resolve_dynamic_type): Update code, following the changes made
12457 to resolve_dynamic_type_internal's interface.
12458 * dwarf2loc.h (struct property_addr_info): New.
12459 (dwarf2_evaluate_property): Replace "address" parameter
12460 by "addr_stack" parameter. Adjust function documentation.
12461 (struct dwarf2_offset_baton): New.
12462 (struct dwarf2_property_baton): Update documentation of
12463 field "referenced_type" to be more general. New field
12464 "offset_info" in union data field.
12465 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12466 parameter by "addr_stack" parameter. Adjust code accordingly.
12467 Add support for PROP_ADDR_OFFSET properties.
12468 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12469 DW_AT_data_member_location attributes as well. Use case
12470 statements instead of if/else condition.
12471
12472 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12473
12474 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12475 Return zero if PARENT_VALUE is NULL and parent_type's
12476 range type is dynamic.
12477
12478 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12479
12480 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12481 nonzero if the type's subtype is dynamic.
12482 (resolve_dynamic_range): Also resolve the range's subtype.
12483
12484 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12485
12486 Pushed by Joel Brobecker <brobecker@adacore.com>.
12487 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12488
12489 2015-01-27 Doug Evans <dje@google.com>
12490
12491 * NEWS: Mention gdb.Objfile.username.
12492 * python/py-objfile.c (objfpy_get_username): New function.
12493 (objfile_getset): Add "username".
12494
12495 2015-01-24 Mark Wielaard <mjw@redhat.com>
12496
12497 * stack.c (return_command): Markup warning message with _.
12498
12499 2015-01-24 Doug Evans <xdje42@gmail.com>
12500
12501 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12502
12503 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12504
12505 Fix 100x slowdown regression on DWZ files.
12506 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12507 (struct line_header): Add offset and offset_in_dwz.
12508 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12509 (free_line_header_voidp): New declaration.
12510 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12511 functions.
12512 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12513 (handle_DW_AT_stmt_list): Use line_header_hash.
12514 (free_line_header_voidp): New function.
12515 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12516 (dwarf_decode_lines): New parameter decode_mapping, use it.
12517 (dwarf2_free_objfile): Free line_header_hash.
12518
12519 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12520
12521 PR gdb/17416
12522 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12523 value_ind.
12524
12525 2015-01-15 Mark Wielaard <mjw@redhat.com>
12526
12527 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12528 DW_AT_noreturn.
12529 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12530 calling_convention an 8 bit bit field.
12531 (TYPE_NO_RETURN): New macro.
12532 * infcmd.c (finish_command): Query if function does not return
12533 normally.
12534 * stack.c (return_command): Likewise.
12535
12536 2015-01-23 Pedro Alves <palves@redhat.com>
12537
12538 * linux-nat.c (linux_is_async_p): New macro.
12539 (linux_nat_is_async_p):
12540 (linux_nat_terminal_inferior): Check whether the target can async
12541 instead of whether it is already async.
12542 (linux_nat_terminal_ours): Don't check whether the target is
12543 async.
12544 (linux_async_pipe): Use linux_is_async_p.
12545
12546 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12547
12548 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12549 '-ascending'.
12550 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12551 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12552 Sort tp_array using tp_array_compar.
12553 (_initialize_thread): Extend thread_apply_all_command help.
12554
12555 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12556
12557 * corelow.c (core_open): Call also thread_command.
12558 * gdbthread.h (thread_command): New prototype moved from ...
12559 * thread.c (thread_command): ... here.
12560 (thread_command): Make it global.
12561
12562 2015-01-22 Pedro Alves <palves@redhat.com>
12563
12564 * configure.ac [*mingw32*]: Check $curses_found instead of
12565 $prefer_curses.
12566 * configure: Regenerate.
12567 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12568 HAVE_NCURSES_NCURSES_H checks.
12569
12570 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12571
12572 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12573 fails with the 1st arg NULL, try again with "unknown". Don't test
12574 the "cup" capability: it isn't supported by the Windows port of
12575 ncurses, but the Windows console driver is still capable of
12576 supporting TUI.
12577
12578 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12579
12580 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12581
12582 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12583
12584 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12585 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12586 reason that "make TAGS" is broken.
12587
12588 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12589
12590 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12591 and check additional store instructions.
12592
12593 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12594
12595 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12596
12597 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12598
12599 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12600 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12601 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12602 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12603 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12604 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12605 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12606 ppc_process_record_op19, ppc_process_record_op31,
12607 ppc_process_record_op59, ppc_process_record_op60,
12608 ppc_process_record_op63): Likewise.
12609
12610 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12611
12612 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12613 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12614 strerror.
12615
12616 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12617
12618 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12619 ppc_process_record_op31, ppc_process_record_op59,
12620 ppc_process_record_op60, ppc_process_record_op63,
12621 ppc_process_record): Fix -Wformat warning.
12622 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12623 Remove unused variables.
12624
12625 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12626
12627 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12628
12629 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12630
12631 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12632 CONFIG_OBS if not building with a curses library.
12633 * configure: Regenerate.
12634
12635 * windows-termcap.c: Include defs.h. Make the whole body empty if
12636 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12637 HAVE_NCURSES_NCURSES_H is defined.
12638
12639 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12640
12641 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12642 from end of line to start of next line.
12643
12644 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12645
12646 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12647 Scan PLT stub backward for reverse debugging.
12648 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12649
12650 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12651 Ulrich Weigand <uweigand@de.ibm.com>
12652
12653 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12654 gdb_target_obs.
12655 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12656 record.
12657 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12658 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12659 (ppc_linux_init_abi): Set process_record, process_record_signal.
12660 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12661 ppc_linux_record_tdep to gdbarch_tdep.
12662 (ppc_process_record): New declaration.
12663 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12664 ppc_process_record_op19, ppc_process_record_op31,
12665 ppc_process_record_op59, ppc_process_record_op60,
12666 ppc_process_record_op63, ppc_process_record): New functions.
12667
12668 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12669
12670 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12671 rs6000_in_function_epilogue_frame_p and add an argument
12672 for frame_info.
12673 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12674 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12675 New functions.
12676 (rs6000_epilogue_frame_unwind): New.
12677 (rs6000_gdbarch_init): Append epilogue unwinder.
12678
12679 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12680
12681 * nat/linux-personality.c: Replace "#ifndef
12682 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12683 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12684 systems.
12685
12686 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12687
12688 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12689 functions.
12690 (_initialize_tui_win) <border-kind, border-mode>:
12691 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12692 (tui_set_tab_width_command): Fix the commentary.
12693
12694 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12695
12696 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12697 Doc fix.
12698 (tui_set_tab_width_command): Delete and recreate the source and
12699 the disassembly windows, to show the effect of the changed tab
12700 size immediately.
12701
12702 * tui/tui-data.h (LINE_PREFIX): Make shorter
12703 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12704 "Thread NNNNN.XXXX" thread ID notation on Windows.
12705
12706 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12707
12708 Fix gcc-5 compilation.
12709 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12710
12711 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12712
12713 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12714 (linux-personality.o): New rule.
12715 * common/common-defs.h: Include <stdint.h>.
12716 * config/aarch64/linux.mh (NATDEPFILES): Include
12717 linux-personality.o.
12718 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12719 * config/arm/linux.mh (NATDEPFILES): Likewise.
12720 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12721 * config/i386/linux.mh (NATDEPFILES): Likewise.
12722 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12723 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12724 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12725 * config/mips/linux.mh (NATDEPFILES): Likewise.
12726 * config/pa/linux.mh (NATDEPFILES): Likewise.
12727 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12728 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12729 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12730 * config/s390/linux.mh (NATDEPFILES): Likewise.
12731 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12732 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12733 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12734 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12735 * defs.h: Remove #include <stdint.h> (moved to
12736 common/common-defs.h).
12737 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12738 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12739 nat/linux-personality.c).
12740 (linux_nat_create_inferior): Remove code to disable address space
12741 randomization (moved to nat/linux-personality.c). Create cleanup
12742 to disable address space randomization.
12743 * nat/linux-personality.c: New file.
12744 * nat/linux-personality.h: Likewise.
12745
12746 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12747
12748 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12749 common/posix-strerror.c.
12750 (posix-strerror.o): New rule.
12751 (mingw-strerror.o): Likewise.
12752 * common/common-utils.h (safe_strerror): Move prototype to here,
12753 from utils.h.
12754 * common/common.host: New file.
12755 * common/mingw-strerror.c: Likewise.
12756 * common/posix-strerror.c: Likewise.
12757 * configure: Regenerated.
12758 * configure.ac: Source common/common.host. Add variable
12759 common_host_obs to gdb_host_obs.
12760 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12761 gdb/common/posix-strerror.c when warning about the use of
12762 strerror.
12763 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12764 common/mingw-strerror.c.
12765 * posix-hdep.c (safe_strerror): Remove definition; move it to
12766 common/posix-hdep.c.
12767 * utils.h (safe_strerror): Remove prototype; move to
12768 common/common-utils.h.
12769
12770 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12771
12772 GDB 7.8.2 released.
12773
12774 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12775
12776 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12777 ___XA type if the array has already been fixed.
12778
12779 2015-01-14 Yao Qi <yao@codesourcery.com>
12780
12781 * Makefile.in (ppc-linux.o): New rule.
12782 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12783 * configure.ac: AC_CHECK_FUNCS(getauxval).
12784 * config.in: Re-generated.
12785 * configure: Re-generated.
12786 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12787 Declare.
12788 * nat/ppc-linux.c: New file.
12789 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12790 Call ppc64_64bit_inferior_p.
12791
12792 2015-01-14 Yao Qi <yao@codesourcery.com>
12793
12794 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12795 nat/ppc-linux.h.
12796 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12797 (PPC_FEATURE_HAS_DFP): Likewise.
12798 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12799 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12800 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12801 Include "nat/ppc-linux.h".
12802 * nat/ppc-linux.h: New file.
12803 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12804
12805 2015-01-14 Pedro Alves <palves@redhat.com>
12806
12807 PR gdb/17525
12808 * breakpoint.c: Include "interps.h".
12809 (bpstat_do_actions_1): Also check whether the interpreter is
12810 async.
12811
12812 2015-01-14 Pedro Alves <palves@redhat.com>
12813
12814 PR cli/17828
12815 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12816 reinstall if the interpreter is sync.
12817
12818 2015-01-13 Doug Evans <dje@google.com>
12819
12820 * objfiles.c (objfile_filename): New function.
12821 * objfiles.h (objfile_filename): Declare it.
12822 (objfile_name): Add function comment.
12823 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12824 bfd file name (which may be realpath'd), and the original name.
12825
12826 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12827
12828 * NEWS: Create a new section for the next release branch.
12829 Rename the section of the current branch, now that it has
12830 been cut.
12831
12832 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12833
12834 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12835 * version.in: Bump version to 7.9.50.DATE-cvs.
12836
12837 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12838
12839 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12840 Remove trailing new-line in argument of call to warning.
12841
12842 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12843
12844 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12845 new-line in argument of call to "warning".
12846
12847 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12848
12849 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12850 in static block, then try searching for primitive types.
12851
12852 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12853
12854 * top.h (gdb_add_history): Declare.
12855 * top.c (command_count): New variable.
12856 (gdb_add_history): New function.
12857 (gdb_safe_append_history): New static function.
12858 (quit_force): Call it.
12859 (command_line_input): Use gdb_add_history instead of
12860 add_history.
12861 * event-top.c (command_line_handler): Likewise.
12862
12863 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12864
12865 PR gdb/17046
12866 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12867 <setjmp.h> #include.
12868
12869 2015-01-11 Doug Evans <xdje42@gmail.com>
12870
12871 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12872
12873 2015-01-11 Doug Evans <xdje42@gmail.com>
12874
12875 PR gdb/15830
12876 * NEWS: The "maint demangle" command is renamed as "demangle".
12877 * demangle.c: #include cli/cli-utils.h, language.h.
12878 (demangle_command): New function.
12879 (_initialize_demangle): Add new command "demangle".
12880 * maint.c (maintenance_demangle): Stub out.
12881 (_initialize_maint_cmds): Update help text for "maint demangle",
12882 and mark as deprecated.
12883
12884 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12885
12886 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12887 inferior_thread is a function.
12888
12889 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12890
12891 * Makefile.in (.y.c): Don't munge yacc's #line
12892 directives.
12893
12894 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12895
12896 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12897 to prompt for input.
12898 * tui/tui-hooks.c (tui_query_hook): Remove.
12899 (tui_install_hooks): Don't set deprecated_query_hook.
12900 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12901 height calculation. Always update the command window's cur_line.
12902
12903 2015-01-09 Pedro Alves <palves@redhat.com>
12904
12905 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12906 function.
12907 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12908 declaration.
12909 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12910 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12911 stop_reason.
12912 (check_stopped_by_watchpoint): New function.
12913 (save_sigtrap): Reimplement.
12914 (linux_nat_stopped_by_watchpoint): Adjust.
12915 (linux_nat_lp_status_is_event): Delete.
12916 (stop_wait_callback): Only call save_sigtrap after storing the
12917 pending status.
12918 (status_callback): If the thread had been stopped for a breakpoint
12919 that has since been removed, discard the event and resume the LWP.
12920 (count_events_callback, select_event_lwp_callback): Use
12921 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12922 (cancel_breakpoint): Rename to ...
12923 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12924 stopped for a software breakpoint or hardware breakpoint.
12925 (select_event_lwp): Only give preference to the stepping LWP in
12926 all-stop mode. Adjust comments.
12927 (stop_and_resume_callback): Remove references to new_pending_p.
12928 (linux_nat_filter_event): Likewise. Leave exit events of the
12929 leader thread pending here. Handle signal short circuiting here.
12930 Only call save_sigtrap after storing the pending waitstatus.
12931 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12932 new_pending. Don't handle leaving events the caller is not
12933 interested in pending here, nor handle signal short-circuiting
12934 here. Also give equal priority to all LWPs that have had events
12935 in non-stop mode. If reporting a software breakpoint event,
12936 unadjust the LWP's PC.
12937 * linux-nat.h (enum lwp_stop_reason): New.
12938 (struct lwp_info) <stop_pc>: New field.
12939 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12940 (struct lwp_info) <stop_reason>: New field.
12941 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12942
12943 2015-01-09 Pedro Alves <palves@redhat.com>
12944
12945 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12946 Set the LWP's 'resumed' flag.
12947
12948 2015-01-09 Pedro Alves <palves@redhat.com>
12949
12950 * linux-nat.c (linux_resume_one_lwp): New function.
12951 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12952 (linux_nat_resume): Use lwp_status_pending_p and
12953 linux_resume_one_lwp.
12954 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12955 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12956 (status_callback, running_callback): Use lwp_status_pending_p.
12957 (lwp_status_pending_p): New function.
12958 (stop_and_resume_callback): Use lwp_status_pending_p.
12959 (linux_nat_filter_event): Use linux_resume_one_lwp.
12960 (linux_nat_wait_1): Always use status_callback to look for an LWP
12961 with a pending status. Use linux_resume_one_lwp.
12962 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12963 linux_resume_one_lwp.
12964
12965 2015-01-09 Pedro Alves <palves@redhat.com>
12966
12967 * breakpoint.c (bp_location_inserted_here_p): New function,
12968 factored out from ...
12969 (breakpoint_inserted_here_p): ... here. Use
12970 ALL_BP_LOCATIONS_AT_ADDR.
12971 (software_breakpoint_inserted_here_p): Use
12972 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12973
12974 2014-01-09 Pedro Alves <palves@redhat.com>
12975
12976 Skip enabling event reporting if the kernel supports
12977 PTRACE_EVENT_CLONE.
12978 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12979 (thread_db_use_events): New function.
12980 (try_thread_db_load_1): Check thread_db_use_events before enabling
12981 event reporting.
12982 (update_thread_state): New function.
12983 (attach_thread): Use it. Check thread_db_use_events before
12984 enabling event reporting.
12985 (thread_db_detach): Check thread_db_use_events before disabling
12986 event reporting.
12987 (find_new_threads_callback): Check thread_db_use_events before
12988 enabling event reporting. Update the thread's state if not using
12989 libthread_db events.
12990
12991 2015-01-09 Pedro Alves <palves@redhat.com>
12992
12993 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12994 about to wait for is > 0.
12995 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12996 the kernel thread ID is -1.
12997
12998 2015-01-09 Pedro Alves <palves@redhat.com>
12999
13000 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13001 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13002 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13003 ptrace option flags.
13004 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13005 field.
13006 * nat/linux-procfs.c: Include <dirent.h>.
13007 (linux_proc_get_int): New parameter "warn". Handle it.
13008 (linux_proc_get_tgid): Adjust.
13009 (linux_proc_get_tracerpid): Rename to ...
13010 (linux_proc_get_tracerpid_nowarn): ... this.
13011 (linux_proc_pid_get_state): New function, factored out from
13012 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13013 and handle it.
13014 (linux_proc_pid_is_gone): New function.
13015 (linux_proc_pid_is_stopped): Adjust.
13016 (linux_proc_pid_is_zombie_maybe_warn)
13017 (linux_proc_pid_is_zombie_nowarn): New functions.
13018 (linux_proc_pid_is_zombie): Use
13019 linux_proc_pid_is_zombie_maybe_warn.
13020 (linux_proc_attach_tgid_threads): New function.
13021 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13022 (linux_proc_get_tracerpid): Rename to ...
13023 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13024 (linux_proc_pid_is_gone): New declaration.
13025 (linux_proc_pid_is_zombie): Update comment.
13026 (linux_proc_pid_is_zombie_nowarn): New declaration.
13027 (linux_proc_attach_lwp_func): New typedef.
13028 (linux_proc_attach_tgid_threads): New declaration.
13029 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13030 use nowarn functions.
13031 (linux_ptrace_attach_fail_reason_string): Move here from
13032 gdbserver/linux-low.c and rename.
13033 (ptrace_supports_feature): If the current ptrace options are not
13034 known yet, check them now, instead of asserting.
13035 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13036 Declare.
13037
13038 2015-01-09 Pedro Alves <palves@redhat.com>
13039
13040 * linux-thread-db.c (thread_db_find_new_threads_silently)
13041 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13042 (find_new_threads_once): Print debug output on gdb_stdlog.
13043
13044 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13045 Pedro Alves <palves@redhat.com>
13046
13047 * compile/compile.c: Include "gdb_wait.h".
13048 (do_rmdir): Check return value, and free 'zap'.
13049
13050 2015-01-08 Pedro Alves <palves@redhat.com>
13051 Yao Qi <yao@codesourcery.com>
13052
13053 * dwarf2loc.c (indirect_pieced_value): Don't call
13054 gdb_sign_extend. Call extract_signed_integer instead.
13055 * utils.c (gdb_sign_extend): Remove.
13056 * utils.h (gdb_sign_extend): Remove declaration.
13057
13058 2015-01-07 Pierre Muller <muller@sourceware.org>
13059
13060 PR symtab/17811
13061 * stabsread.c (define_symbol): Set language for C++ special symbols.
13062
13063 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13064
13065 * inflow.c (initial_gdb_ttystate): Tweak comment.
13066
13067 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13068
13069 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13070 comment documenting function.
13071
13072 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13073
13074 * terminal.h (set_initial_gdb_ttystate): Declare.
13075 * inflow.c (initial_gdb_ttystate): New static variable.
13076 (set_initial_gdb_ttystate): New setter.
13077 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13078 instead of our current terminal state.
13079 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13080
13081 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13082
13083 * guile/scm-type.c (tyscm_array_1): Add comment.
13084 * python/py-type.c (typy_array_1): Add comment.
13085
13086 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13087
13088 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13089 error if N2 is equal to N1 - 1.
13090
13091 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13092
13093 * python/py-type.c (typy_array_1): Do not raise negative-length
13094 exception if N2 is equal to N1 - 1.
13095
13096 2015-01-03 Doug Evans <xdje42@gmail.com>
13097
13098 * c-exp.y: Whitespace cleanup.
13099 (classify_inner_name): Remove extra ;.
13100
13101 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13102
13103 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13104 offset signed.
13105
13106 2015-01-02 Doug Evans <dje@google.com>
13107
13108 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13109
13110 2015-01-02 Doug Evans <dje@google.com>
13111
13112 * symtab.h (struct symbol): Fix typo in comment.
13113
13114 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13115
13116 Update year range in copyright notice of all files.
13117
13118 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13119
13120 * top.c (print_gdb_version): Update copyright year to 2015.
13121
13122 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13123
13124 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13125
13126 For older changes see ChangeLog-2014.
13127 \f
13128 Local Variables:
13129 mode: change-log
13130 left-margin: 8
13131 fill-column: 74
13132 version-control: never
13133 coding: utf-8
13134 End:
This page took 0.295401 seconds and 4 git commands to generate.