gdbserver/tracepoint: Add casts out of tpoint->handle
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-10-29 Pedro Alves <palves@redhat.com>
2
3 * common/common-exceptions.c (exception_none): Add cast.
4
5 2015-10-29 Pedro Alves <palves@redhat.com>
6
7 * compile/compile-c-types.c (struct type_map_instance)
8 <gcc_type>: Rename to gcc_type_handle.
9 (insert_type, convert_type): Adjust.
10
11 2015-10-29 Pedro Alves <palves@redhat.com>
12
13 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
14 assume that "break" breaks out of a TRY/CATCH.
15 * python/py-framefilter.c (py_print_single_arg): Don't assume
16 "continue" breaks out of a TRY/CATCH.
17 * python/py-value.c (valpy_binop_throw): New function, factored
18 out from ...
19 (valpy_binop): ... this.
20 (valpy_richcompare_throw): New function, factored
21 out from ...
22 (valpy_richcompare): ... this.
23 * solib.c (solib_read_symbols): Don't assume "break" breaks out
24 of a TRY/CATCH.
25 * common/common-exceptions.h [USE_RAW_CXX_TRY]
26 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
27
28 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
29
30 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
31 as move along with [d]addu.
32
33 2015-10-28 Yao Qi <yao.qi@linaro.org>
34
35 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
36 aarch64_decode_insn.
37
38 2015-10-27 Pedro Alves <palves@redhat.com>
39
40 * common/print-utils.c (host_address_to_string): Rename to ...
41 (host_address_to_string_1): ... this.
42 * common/print-utils.h (host_address_to_string): Reimplement as
43 wrapper around host_address_to_string_1.
44 * utils.c (gdb_print_host_address): Rename to ...
45 (gdb_print_host_address_1): ... this.
46 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
47 around host_address_to_string_1.
48
49 2015-10-27 Pedro Alves <palves@redhat.com>
50
51 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
52 memory_error. Rename local 'status' to 'res'.
53 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
54 memory_error.
55 * corefile.c (read_stack, read_code, write_memory): Always pass
56 TARGET_XFER_E_IO to memory_error.
57 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
58 memory_error. Rename parameter 'status' to 'err'.
59 (dump_insns): Rename local 'status' to 'err'.
60 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
61 to 'errp'. Rename local 'status' to 'err'. Always pass
62 TARGET_XFER_E_IO to memory_error.
63 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
64 * target.c (target_read_memory, target_read_raw_memory)
65 (target_read_stack, target_read_code, target_write_memory)
66 (target_write_raw_memory): Return -1 on error instead of
67 TARGET_XFER_E_IO.
68 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
69 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
70
71 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
72
73 * guile/guile-internal.h (gdbscm_with_guile): Change return
74 types to const char *.
75 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
76 (struct c_data) <func>: Likewise.
77 (struct c_data) <result>: Change type to const char *.
78 (scscm_eval_scheme_string): Change return type to
79 const char *.
80 (scscm_source_scheme_script): Likewise.
81 (gdbscm_safe_eval_string): Change type of result variable to
82 const char * and remove cast.
83 (gdbscm_safe_source_script): Likewise.
84 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
85 Change return type to const char *.
86 (gdbscm_disasm_read_memory): Change type of status to
87 const char *.
88
89 2015-10-27 Pedro Alves <palves@redhat.com>
90
91 * source.c (openp): New local 'last_errno'. Use it to
92 save/restore errno.
93
94 2015-10-27 Pedro Alves <palves@redhat.com>
95
96 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
97
98 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * ctf.c (SET_ENUM_FIELD): New macro.
101 (ctf_read_status): Use it.
102 (ctf_read_tp): Use it.
103
104 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
105
106 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
107 scm_t_dynwind_flags casts.
108 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
109 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
110 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
111
112 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
113
114 * ax.h (ax_raw_byte): New declaration.
115 * ax-general.c (ax_raw_byte): New function.
116 (ax_simple): Use ax_raw_byte.
117 * ax-gdb.c (gen_printf): Likewise.
118
119 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
120
121 * ada-lang.h (GROW_VECT): Add cast.
122
123 2015-10-26 Doug Evans <xdje42@gmail.com>
124
125 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
126
127 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
128
129 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
130 pointer.
131 (simple_search_memory): Cast return of memmem.
132
133 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
134
135 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
136
137 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
138
139 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
140 -1 on error.
141
142 2015-10-26 Doug Evans <dje@google.com>
143
144 PR symtab/17391
145 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
146 instead of gdbarch_dwarf2_reg_to_regnum.
147 (dwarf2_frame_cache): Ditto.
148 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
149 gdbarch_dwarf2_reg_to_regnum.
150 (get_reg_value): Ditto.
151 (dwarf2_fetch_cfa_info): Ditto.
152 (dwarf2_frame_prev_register): Ditto.
153 * dwarf2loc.c: #include "complaints.h".
154 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
155 instead of gdbarch_dwarf2_reg_to_regnum.
156 (dwarf_expr_get_reg_value): Ditto.
157 (read_pieced_value): Ditto.
158 (write_pieced_value): Ditto.
159 (dwarf2_evaluate_loc_desc_full): Ditto.
160 (dwarf_reg_to_regnum): New function.
161 (throw_bad_regnum_error): New function.
162 (dwarf_reg_to_regnum_or_error): Renamed from
163 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
164 All callers updated. Call throw_bad_regnum_error.
165 (locexpr_regname): Improve text of bad register number.
166 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
167 (dwarf_reg_to_regnum_or_error): Update prototype.
168 * dwarf2expr.c: #include "dwarf2loc.h".
169 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
170 gdbarch_dwarf2_reg_to_regnum.
171 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
172 * gdbarch.h: Regenerate.
173 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
174 register.
175 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
176 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
177 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
178 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
179 Remove warning for bad register.
180 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
181 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
182 i386_svr4_reg_to_regnum. Return -1 for bad registers.
183 (i386_svr4_reg_to_regnum): New function.
184 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
185 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
186 on bad registers, return -1.
187 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
188 Remove warning for bad register.
189 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
190 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
191 Remove warning for bad register. Return -1 for bad register.
192 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
193 for bad register, return -1.
194 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
195 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
196 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
197 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
198 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
199 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
200 for bad regs.
201 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
202 bad regs. Fix error result.
203 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
204 (reg_value_complaint): Update complaint text.
205 * mdebugread.c (reg_value_complaint): New function.
206 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
207
208 2015-10-26 Doug Evans <dje@google.com>
209
210 PR python/18938
211 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
212 All callers updated.
213
214 2015-10-26 Doug Evans <dje@google.com>
215
216 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
217 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
218 (maintenance_print_psymbols): Print address map.
219
220 2015-10-26 Doug Evans <dje@google.com>
221
222 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
223
224 2015-10-26 Doug Evans <dje@google.com>
225
226 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
227 gdbserver/linux-low.c.
228 (WSETSTOP): Simplify.
229
230 2015-10-26 Doug Evans <dje@google.com>
231
232 * linux-thread-db.c (find_new_threads_callback): Ditto.
233 (thread_db_pid_to_str): Ditto.
234
235 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
236
237 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
238 local char array to scm_mode_bits, use a cast instead.
239
240 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
241
242 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
243 result. Change type of element_block_ptr. Change allocation to
244 use XNEWVEC.
245
246 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
247
248 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
249 catch_errors call instead of NULL.
250
251 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
252
253 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
254 char pointer to scm_mode_bits.
255
256 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
257
258 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
259 cast.
260
261 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
264 "data" local variable and use it.
265
266 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
267
268 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
269 domain_enum cast.
270 (gdbscm_lookup_symbol): Likewise.
271
272 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
273
274 * d-exp.y: Remove an obsolete comment and propagate the block
275 information to the produced expression.
276
277 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
280 cast.
281 (tui_add_content_elements): Likewise.
282
283 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
284
285 * cli/cli-setshow.c (do_set_command): Constify p.
286
287 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
290 (void *) cast with (gdb_byte *).
291
292 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
293
294 * proc-service.c (ps_pdread): Add cast.
295
296 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
297
298 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
299 valbuf.
300
301 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
304 (ia64_push_dummy_call): Remove cast and change type of "to" to
305 array of gdb_byte.
306
307 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
308
309 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
310
311 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
312
313 * observer.h (observer_${event}_notification_stub): Add cast.
314
315 2015-10-23 Yao Qi <yao.qi@linaro.org>
316
317 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
318 dsd.insn_count to zero.
319
320 2015-10-22 Pedro Alves <palves@redhat.com>
321
322 * infrun.c (stop_after_trap): Delete.
323 (clear_proceed_status, handle_signal_stop, struct
324 infcall_control_state, save_infcall_control_state)
325 (restore_infcall_control_state): Remove references to
326 stop_after_trap.
327
328 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
329
330 * python/python.c (_initialize_python): Add cast.
331
332 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
333
334 * nto-tdep.c (nto_inferior_data): Add cast.
335
336 2015-10-22 Pedro Alves <palves@redhat.com>
337
338 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
339 windows_wait and windows_resume directly instead of
340 wait_for_inferior and resume.
341
342 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
343
344 * xtensa-tdep.h (XTREG): Add casts.
345 (XTREG_END): Likewise.
346
347 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
350
351 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
354
355 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
356
357 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
358 buf to gdb_byte*.
359 (supply_32bit_reg): Add cast.
360 (mips64_fill_gregset): Likewise.
361
362 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
363
364 PR python/18073
365 * python/py-type.c (typy_get_composite): Allow returning a
366 function type.
367
368 2015-10-21 Keven Boell <keven.boell@intel.com>
369
370 * dwarf2read.c (set_die_type): Add read of
371 DW_AT_allocated and DW_AT_associated.
372 * f-typeprint.c: New include of typeprint.h
373 (f_print_type): Add check for allocated/associated
374 status of type.
375 (f_type_print_varspec_suffix): Add check for
376 * gdbtypes.c (create_array_type_with_stride):
377 Add check for valid data location of type in
378 case allocated or associated attributes are set.
379 Length of an array should be only calculated if
380 allocated or associated is resolved as true.
381 (is_dynamic_type_internal): Add check for allocated/
382 associated.
383 (resolve_dynamic_array): Evaluate allocated/associated
384 properties.
385 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
386 <DYN_PROP_ASSOCIATED>: New enums.
387 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
388 (type_not_allocated): New function.
389 (type_not_associated): New function.
390 * valarith.c (value_subscripted_rvalue): Add check for
391 allocated/associated.
392 * valprint.c: New include of typeprint.h.
393 (valprint_check_validity): Add check for allocated/associated.
394 (value_check_printable): Add check for allocated/
395 associated.
396 * typeprint.h (val_print_not_allocated): New function.
397 (val_print_not_associated): New function.
398 * typeprint.c (val_print_not_allocated): New function.
399 (val_print_not_associated): New function.
400
401 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
402
403 * Makefile.in: Add arm.c/o.
404 * arch/arm.c: New file.
405 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
406 (MAKE_THUMB_ADDR): Likewise.
407 (UNMAKE_THUMB_ADDR): Likewise.
408 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
409 (IS_THUMB_ADDR): Move to arm.h.
410 (MAKE_THUMB_ADDR): Likewise.
411 (UNMAKE_THUMB_ADDR): Likewise.
412 * configure.tgt: Add arm.o to all ARM configs.
413
414 2015-10-21 Yao Qi <yao.qi@linaro.org>
415
416 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
417 Remove argument exp_vCont_s.
418 * gdb.base/range-stepping.exp: Callers updated.
419 * gdb.trace/range-stepping.exp: Likewise.
420
421 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
422
423 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
424 (nto_sniff_abi_note_section): New function.
425 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
426 binary.
427
428 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
429
430 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
431 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
432 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
433 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
434 New functions.
435 (_initialize_nto_tdep): New forward declaration, new function.
436 * nto-tdep.h (struct nto_inferior_data): New struct.
437 (nto_inferior_data): New function declaration.
438
439 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
440
441 * findvar.c (address_from_register): Check REGNUM validity.
442
443 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
444
445 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
446 (init_procfs_targets): Wire new function.
447
448 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
449
450 * nto-procfs.c (sys/auxv.h): Include.
451 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
452 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
453 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
454
455 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
456
457 * nto-procfs.c (nto_procfs_path): Rename to...
458 (nodestr): ... this, and change type.
459 (nto_node): Use new variable and logic accordingly.
460 (procfs_open_1): Use new variable name. Use local buffer to construct
461 procfrs path.
462 (procfs_pidlist): Use NODESTR to construct procfs path.
463 (procfs_files_info): Use NODESTR to output meaningful text.
464 (do_attach): Construct procfs using NODESTR.
465 (procfs_create_inferior): Compare pointer to NULL.
466
467 2015-10-19 Josh Stone <jistone@redhat.com>
468
469 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
470 return state, even when not actively catching syscalls at all.
471 (linux_handle_extended_wait): Mark syscall_state like an entry.
472 (wait_lwp): Set syscall_state ignored for other traps.
473 (linux_nat_filter_event): Likewise.
474
475 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
476
477 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
478 when handling 'E', 'T', 'S', 'X' and 'W' packets.
479 Do not set rs->waiting_for_stop_reply back to 1.
480
481 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
482
483 * nto-procfs.c (common/filestuff.h): Include.
484 (procfs_can_use_hw_breakpoint): Fix enum name.
485 (procfs_open_1): Fix compiler warning.
486 (procfs_pidlist): Make static.
487 (procfs_meminfo): Make static, fix type name, add missing argument.
488 (procfs_store_registers): Make static.
489 (procfs_thread_info): Remove unused function.
490 (_initialize_procfs): Forward declare.
491
492 2015-10-16 Yao Qi <yao.qi@arm.com>
493
494 * MAINTAINERS: Update my email address.
495
496 2015-10-15 Yao Qi <yao.qi@linaro.org>
497
498 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
499 Call gdbarch_breakpoint_from_pc to instruction length.
500 (aarch64_linux_remove_hw_breakpoint): Likewise.
501 * common/common-regcache.h (regcache_register_size): Declare.
502 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
503 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
504 the process is 32bit, otherwise set alignment to 4.
505 (aarch64_handle_breakpoint): Update comments.
506 * regcache.c (regcache_register_size): New function.
507
508 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
509
510 * gdbarch.sh (core_regset_section): Remove.
511 * gdbarch.h: Regenerate.
512
513 2015-10-14 Yao Qi <yao.qi@linaro.org>
514
515 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
516 out of it.
517 (enum aarch64_memory_operand_type): New.
518
519 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
520
521 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
522
523 2015-10-13 Pedro Alves <palves@redhat.com>
524
525 * ada-lang.c (ada_enum_name): Constify local.
526 * ada-typeprint.c (print_range_bound): Constify locals.
527 * c-varobj.c (c_describe_child): Likewise.
528 * cli/cli-setshow.c (do_set_command): Likewise.
529 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
530 * dwarf2read.c (find_file_and_directory): Likewise.
531 (anonymous_struct_prefix, dwarf2_name): Likewise.
532 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
533 * go-lang.c (unpack_mangled_go_symbol): Likewise.
534 * jv-typeprint.c (java_type_print_base): Likewise.
535 * ser-tcp.c (net_open): Likewise.
536 * symfile.c (deduce_language_from_filename): Likewise.
537 * symtab.c (gdb_mangle_name): Likewise.
538 * tui/tui-io.c (tui_redisplay_readline): Likewise.
539
540 2015-10-13 Pedro Alves <palves@redhat.com>
541
542 * infrun.c (restore_execution_direction): New function.
543 (fetch_inferior_event): Use it instead of
544 make_cleanup_restore_integer.
545 (execution_direction): Change type to enum
546 exec_direction_kind.
547 * infrun.h (execution_direction): Likewise.
548
549 2015-10-13 Pedro Alves <palves@redhat.com>
550
551 * ada-lang.c (ada_value_primitive_packed_val): Constify
552 locals. Use value_contents_writeable. Remove casts.
553
554 2015-10-13 Pedro Alves <palves@redhat.com>
555
556 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
557 and alloca calls.
558
559 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
560
561 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
562 write_memory with write_memory_unsigned_integer.
563
564 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
565
566 * solib-dsbt.c (cmp_name): Constify arguments.
567 * solib-frv.c (cmp_name): Likewise.
568 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
569 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
570 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
571 (gdb_bfd_lookup_symbol): Likewise.
572 * solib.h (gdb_bfd_lookup_symbol): Likewise.
573 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
574
575 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
576
577 * stack.c (parse_frame_specification): Remove message parameter,
578 replace with fixed string in function body, update function
579 comment.
580 (frame_info): Remove message to parse_frame_specification.
581 (select_frame_command): Likewise.
582
583 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * stack.c (parse_frame_specification): Delete.
586 (parse_frame_specification_1): Rename to
587 parse_frame_specification.
588 (frame_info): Use parse_frame_specification.
589 (select_frame_command): Likewise.
590 (return_command): Use select_frame and print_stack_frame rather
591 than frame_command and select_frame_command.
592 (func_command): Use get_current_frame rather than
593 parse_frame_specification.
594
595 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
596
597 * stack.c (func_command): Return early when there is no ARG
598 string.
599
600 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
601
602 * stack.c: Include safe-ctype.h not ctype.h.
603 (parse_frame_specification): Use ISSPACE not isspace.
604 (backtrace_command): Use TOLOWER not tolower.
605
606 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * mep-tdep.c (current_me_module): Add cast.
609 (mep_gdbarch_init): Likewise.
610
611 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
612
613 * m32c-tdep.c (m32c_move_reg_t): Replace with...
614 (m32c_write_reg_t): ...this and...
615 (m32c_read_reg_t): ...this.
616 (struct m32c_reg): Update types of read and write.
617 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
618 adjust definition.
619 (m32c_banked_read): Likewise.
620 (m32c_sb_read): Likewise.
621 (m32c_part_read): Likewise.
622 (m32c_cat_read): Likewise.
623 (m32c_r3r2r1r0_read): Likewise.
624 (m32c_raw_write): Change declaration type to m32c_write_reg_t
625 and adjust definition.
626 (m32c_banked_write): Likewise.
627 (m32c_sb_write): Likewise.
628 (m32c_part_write): Likewise.
629 (m32c_cat_write): Likewise.
630 (m32c_r3r2r1r0_write): Likewise.
631
632 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
633
634 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
635
636 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
637
638 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
639 gdb_sys_no_syscall instead of -1.
640
641 2015-10-12 Yao Qi <yao.qi@linaro.org>
642
643 * NEWS: Mention the change.
644
645 2015-10-12 Yao Qi <yao.qi@linaro.org>
646
647 * arch/aarch64-insn.c (emit_load_store): Rename to ...
648 (aarch64_emit_load_store): ... it. All callers updated.
649
650 2015-10-12 Yao Qi <yao.qi@linaro.org>
651
652 * arch/aarch64-insn.c (emit_insn): Rename to ...
653 (aarch64_emit_insn): ... it. All callers updated.
654
655 2015-10-12 Yao Qi <yao.qi@linaro.org>
656
657 * aarch64-linux-tdep.c: Include arch-utils.h.
658 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
659 set_gdbarch_displaced_step_copy_insn,
660 set_gdbarch_displaced_step_fixup,
661 set_gdbarch_displaced_step_free_closure,
662 set_gdbarch_displaced_step_location,
663 and set_gdbarch_displaced_step_hw_singlestep.
664 * aarch64-tdep.c (struct displaced_step_closure): New.
665 (struct aarch64_displaced_step_data): New.
666 (aarch64_displaced_step_b): New function.
667 (aarch64_displaced_step_b_cond): Likewise.
668 (aarch64_register): Likewise.
669 (aarch64_displaced_step_cb): Likewise.
670 (aarch64_displaced_step_tb): Likewise.
671 (aarch64_displaced_step_adr): Likewise.
672 (aarch64_displaced_step_ldr_literal): Likewise.
673 (aarch64_displaced_step_others): Likewise.
674 (aarch64_displaced_step_copy_insn): Likewise.
675 (aarch64_displaced_step_fixup): Likewise.
676 (aarch64_displaced_step_hw_singlestep): Likewise.
677 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
678 (aarch64_displaced_step_copy_insn): Declare.
679 (aarch64_displaced_step_fixup): Declare.
680 (aarch64_displaced_step_hw_singlestep): Declare.
681 * arch/aarch64-insn.c (emit_insn): Moved from
682 gdbserver/linux-aarch64-low.c.
683 (emit_load_store): Likewise.
684 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
685 gdbserver/linux-aarch64-low.c.
686 (struct aarch64_register): Likewise.
687 (struct aarch64_memory_operand): Likewise.
688 (ENCODE): Likewise.
689 (can_encode_int32): New macro.
690 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
691 (emit_tb, emit_nop): Likewise.
692 (emit_insn): Declare.
693 (emit_load_store): Declare.
694
695 2015-10-12 Yao Qi <yao.qi@linaro.org>
696
697 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
698 gdbserver/linux-aarch64-low.c.
699 (aarch64_relocate_instruction): Likewise.
700 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
701 (struct aarch64_insn_data): Moved from
702 gdbserver/linux-aarch64-low.c.
703 (struct aarch64_insn_visitor): Likewise.
704 (aarch64_relocate_instruction): Declare.
705
706 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
707
708 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
709 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
710 to the returned value.
711
712 2015-10-09 Joel Brobecker <brobecker@adacore.com>
713
714 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
715 is large enough for BIT_SIZE. Update function comment.
716
717 2015-10-09 Joel Brobecker <brobecker@adacore.com>
718
719 * ada-lang.c (ada_value_primitive_packed_val): Move
720 src_len variable to local block where used. Override
721 BIT_SIZE if bigger than size of resolved type.
722
723 2015-10-09 Joel Brobecker <brobecker@adacore.com>
724
725 * gdbtypes.h (is_scalar_type): Add extern declaration.
726 * gdbtypes.c (is_scalar_type): Make non-static.
727 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
728 to compute IS_SCALAR instead of doing it ourselves.
729
730 2015-10-09 Joel Brobecker <brobecker@adacore.com>
731
732 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
733 of case where TYPE is dynamic.
734
735 2015-10-09 Joel Brobecker <brobecker@adacore.com>
736
737 * ada-lang.c (ada_unpack_from_contents): New function,
738 extracted from ada_value_primitive_packed_val.
739 (ada_value_primitive_packed_val): Replace extracted out code
740 by call to ada_unpack_from_contents.
741
742 2015-10-09 Joel Brobecker <brobecker@adacore.com>
743
744 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
745 variable declarations.
746
747 2015-10-09 Joel Brobecker <brobecker@adacore.com>
748
749 * ada-lang.c (ada_value_primitive_packed_val): Change the type
750 of local variables src and unpacked to "gdb_type *" instead of
751 "unsigned char *".
752
753 2015-10-09 Joel Brobecker <brobecker@adacore.com>
754
755 * ada-lang.c (ada_value_primitive_packed_val): Make the name
756 of various local variables more explicit and consistent.
757 No real code change otherwise.
758
759 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
760
761 * i386-tdep.h (struct gdbarch_tdep): Change type of
762 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
763
764 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
765
766 * cris-tdep.c (struct instruction_environment): Change type of
767 byte_order to enum bfd_endian.
768
769 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
770
771 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
772 enum gdb_syscall casts.
773
774 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
775
776 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
777 * arm-tdep.c (struct stack_item): Likewise.
778 (push_stack_item): Add gdb_byte* cast.
779 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
780 (push_stack_item): Add gdb_byte* cast.
781 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
782 and add cast.
783 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
784 (push_stack_item): Add gdb_byte* cast.
785 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
786 add cast.
787 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
788 gdb_byte*.
789 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
790 gdb_byte* and remove unnecessary cast.
791 (h8300h_extract_return_value): Likewise.
792 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
793 (h8300h_store_return_value): Likewise.
794 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
795 gdb_byte* and remove unnecessary cast.
796 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
797 and add cast.
798 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
799 gdb_byte* and remove unnecessary cast.
800 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
801 valbuf.
802 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
803 (mep_pseudo_cr64_read): Likewise.
804 (mep_pseudo_csr_write): Likewise.
805 (mep_pseudo_cr32_write): Likewise.
806 (mep_pseudo_cr64_write): Likewise.
807 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
808 gdb_byte* and add cast.
809 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
810 gdb_byte* and remove unnecessary cast.
811 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
812 valbuf.
813 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
814 gdb_byte*.
815 * printcmd.c (void): Likewise.
816 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
817 gdb_byte* and add cast.
818 (infpy_write_memory): Likewise.
819 (infpy_search_memory): Likewise.
820 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
821 and add cast.
822 (regcache_raw_write_unsigned): Likewise.
823 (regcache_cooked_write_signed): Likewise.
824 (regcache_cooked_write_unsigned): Likewise.
825 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
826 gdb_byte*.
827
828 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
829
830 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
831 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
832
833 2015-10-09 Eli Zaretskii <eliz@gnu.org>
834
835 * stack.c (print_stack_frame):
836 * utils.c (printchar): Fix typos in commentary.
837
838 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
839
840 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
841 (PostfixExpression): Support `expr.sizeof' expressions.
842 (PrimaryExpression): Support `typeof(expr)' expressions.
843
844 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
845
846 * MAINTAINERS: Update my email address.
847
848 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
849
850 * record-btrace.c (record_btrace_resume): Fix void return.
851
852 2015-10-07 Yao Qi <yao.qi@linaro.org>
853
854 * aarch64-tdep.c: Include opcode/aarch64.h.
855 (submask): Move it above.
856 (bit): Likewise.
857 (bits): Likewise.
858 (aarch64_software_single_step): Call aarch64_decode_insn.
859 Decode instruction by aarch64_inst instead of using
860 aarch64_decode_bcond and decode_masked_match.
861
862 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
863
864 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
865 only when the file is binary.
866
867 2015-10-02 James Bowman <james.bowman@ftdichip.com>
868
869 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
870 subroutine handling.
871
872 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
873
874 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
875
876 2015-09-30 Doug Evans <dje@google.com>
877
878 * dwarf2read.c (setup_type_unit_groups): Add comment.
879
880 2015-09-30 Pedro Alves <palves@redhat.com>
881
882 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
883 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
884 (x86_linux_create_target): Don't install
885 x86_linux_always_non_stop_p.
886
887 2015-09-30 Don Breazeal <donb@codesourcery.com>
888
889 * remote.c (remote_parse_stop_reply): Call strprefix instead
890 of strncmp.
891
892 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
893
894 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
895 * gdbarch.h: Regenerate.
896 * i386-tdep.c (i386_gdbarch_init): Remove cast to
897 struct gdbarch_tdep_info *.
898 * mips-tdep.c (mips_gdbarch_init): Likewise.
899 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
900 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
901 * spu-multiarch.c (spu_gdbarch): Likewise.
902
903 2015-09-30 Kevin Buettner <kevinb@redhat.com>
904
905 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
906 record a NULL value.
907
908 2015-09-29 Kevin Buettner <kevinb@redhat.com>
909
910 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
911 and union arguments the same as pointer arguments when determining
912 size of argument.
913
914 2015-09-29 James Bowman <james.bowman@ftdichip.com>
915
916 * ft32-tdep.c: #include "opcode/ft32.h".
917 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
918 (ft32_analyze_prologue): Use FT32_* macros.
919
920 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
921
922 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
923 comment.
924
925 2015-09-28 Doug Evans <dje@google.com>
926
927 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
928
929 2015-09-28 Doug Evans <dje@google.com>
930
931 * common/filestuff.c (make_cleanup_close): Update comment.
932
933 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
934
935 * btrace.c (parse_xml_btrace_block): Fix cast of
936 xml_find_attribute's return value.
937 * memory-map.c (memory_map_start_memory): Likewise.
938 * solib-svr4.c (library_list_start_library): Likewise.
939 * solib-target.c (library_list_start_segment): Likewise.
940 (library_list_start_section): Likewise.
941 * tracepoint.c (traceframe_info_start_memory): Likewise.
942
943 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
944
945 * d-namespace.c (d_lookup_symbol): New arg langdef.
946 All callers updated. Support looking up symbol as a primitive type.
947 (lookup_module_scope): New arg langdef. All callers updated.
948 Call d_lookup_symbol directly for simple bare symbols.
949
950 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
951
952 * macrocmd.c (print_macro_callback): Add cast(s).
953 * macrotab.c (macro_bcache_str): Likewise.
954 (new_macro_definition): Likewise.
955 * main.c (captured_main): Likewise.
956 * maint.c (print_bfd_section_info): Likewise.
957 * mdebugread.c (mdebug_build_psymtabs): Likewise.
958 (basic_type): Likewise.
959 * memattr.c (mem_region_cmp): Likewise.
960 * memory-map.c (memory_map_start_memory): Likewise.
961 (memory_map_end_memory): Likewise.
962 (memory_map_start_property): Likewise.
963 (memory_map_end_property): Likewise.
964 (clear_result): Likewise.
965 * memrange.c (compare_mem_ranges): Likewise.
966 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
967 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
968 * mi/mi-console.c (mi_console_file_delete): Likewise.
969 (mi_console_file_fputs): Likewise.
970 (mi_console_raw_packet): Likewise.
971 (mi_console_file_flush): Likewise.
972 (mi_console_set_raw): Likewise.
973 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
974 (mi_new_thread): Likewise.
975 (mi_thread_exit): Likewise.
976 (mi_record_changed): Likewise.
977 (mi_inferior_added): Likewise.
978 (mi_inferior_appeared): Likewise.
979 (mi_inferior_exit): Likewise.
980 (mi_inferior_removed): Likewise.
981 (mi_interp_data): Likewise.
982 (mi_on_normal_stop): Likewise.
983 (mi_traceframe_changed): Likewise.
984 (mi_tsv_created): Likewise.
985 (mi_tsv_deleted): Likewise.
986 (mi_tsv_modified): Likewise.
987 (mi_breakpoint_created): Likewise.
988 (mi_breakpoint_deleted): Likewise.
989 (mi_breakpoint_modified): Likewise.
990 (mi_output_running_pid): Likewise.
991 (mi_inferior_count): Likewise.
992 (mi_solib_loaded): Likewise.
993 (mi_solib_unloaded): Likewise.
994 (mi_command_param_changed): Likewise.
995 (mi_memory_changed): Likewise.
996 (report_initial_inferior): Likewise.
997 (mi_ui_out): Likewise.
998 (mi_set_logging): Likewise.
999 * mi/mi-main.c (collect_cores): Likewise.
1000 (print_one_inferior): Likewise.
1001 (free_vector_of_ints): Likewise.
1002 (free_splay_tree): Likewise.
1003 (mi_execute_command): Likewise.
1004 * mi/mi-out.c (mi_table_body): Likewise.
1005 (mi_table_end): Likewise.
1006 (mi_table_header): Likewise.
1007 (mi_begin): Likewise.
1008 (mi_end): Likewise.
1009 (mi_field_int): Likewise.
1010 (mi_field_string): Likewise.
1011 (mi_field_fmt): Likewise.
1012 (mi_flush): Likewise.
1013 (mi_redirect): Likewise.
1014 (field_separator): Likewise.
1015 (mi_open): Likewise.
1016 (mi_close): Likewise.
1017 (mi_out_buffered): Likewise.
1018 (mi_out_rewind): Likewise.
1019 (mi_out_put): Likewise.
1020 (mi_version): Likewise.
1021 (mi_out_data_dtor): Likewise.
1022 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1023 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1024 * minidebug.c (lzma_open): Likewise.
1025 (lzma_pread): Likewise.
1026 (lzma_close): Likewise.
1027 (lzma_stat): Likewise.
1028 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1029 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1030 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1031 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1032 (mips_micro_frame_cache): Likewise.
1033 (mips_insn32_frame_cache): Likewise.
1034 (mips_stub_frame_cache): Likewise.
1035 (gdb_print_insn_mips): Likewise.
1036 (value_of_mips_user_reg): Likewise.
1037 (mips_gdbarch_init): Likewise.
1038 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1039 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1040 (mipsnbsd_supply_gregset): Likewise.
1041 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1042 (am33_collect_gregset_method): Likewise.
1043 (am33_collect_fpregset_method): Likewise.
1044 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1045 * moxie-tdep.c (moxie_frame_cache): Likewise.
1046 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1047 (msp430_analyze_frame_prologue): Likewise.
1048 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1049 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1050 (nios2_collect_gregset): Likewise.
1051 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1052 (nios2_stub_frame_cache): Likewise.
1053 * objc-lang.c (find_methods): Likewise.
1054 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1055 (get_objfile_pspace_data): Likewise.
1056 (get_objfile_bfd_data): Likewise.
1057 (objfile_bfd_data_free): Likewise.
1058 (add_to_objfile_sections): Likewise.
1059 (do_free_objfile_cleanup): Likewise.
1060 (resume_section_map_updates_cleanup): Likewise.
1061 * opencl-lang.c (builtin_opencl_type): Likewise.
1062 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1063 * osdata.c (osdata_start_osdata): Likewise.
1064 (osdata_start_item): Likewise.
1065 (osdata_start_column): Likewise.
1066 (osdata_end_column): Likewise.
1067 (clear_parsing_data): Likewise.
1068 (osdata_free_cleanup): Likewise.
1069 * parse.c (type_stack_cleanup): Likewise.
1070 (exp_uses_objfile_iter): Likewise.
1071 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1072 (ppc_linux_collect_gregset): Likewise.
1073 (ppu2spu_prev_arch): Likewise.
1074 (ppu2spu_this_id): Likewise.
1075 (ppu2spu_prev_register): Likewise.
1076 (ppu2spu_unwind_register): Likewise.
1077 (ppu2spu_sniffer): Likewise.
1078 (ppu2spu_dealloc_cache): Likewise.
1079 (ppc_linux_init_abi): Likewise.
1080 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1081 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1082 * progspace.c (restore_program_space): Likewise.
1083 * psymtab.c (find_pc_sect_psymtab): Likewise.
1084 (compare_psymbols): Likewise.
1085 (psymbol_bcache_full): Likewise.
1086 (allocate_psymtab): Likewise.
1087 (discard_psymtabs_upto): Likewise.
1088 * python/py-block.c (set_block): Likewise.
1089 (del_objfile_blocks): Likewise.
1090 * python/py-breakpoint.c (build_bp_list): Likewise.
1091 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1092 (build_inferior_list): Likewise.
1093 (py_free_inferior): Likewise.
1094 * python/py-objfile.c (py_free_objfile): Likewise.
1095 (objfile_to_objfile_object): Likewise.
1096 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1097 * python/py-progspace.c (py_free_pspace): Likewise.
1098 (pspace_to_pspace_object): Likewise.
1099 * python/py-symbol.c (set_symbol): Likewise.
1100 (del_objfile_symbols): Likewise.
1101 * python/py-symtab.c (set_sal): Likewise.
1102 (set_symtab): Likewise.
1103 (del_objfile_symtab): Likewise.
1104 (del_objfile_sal): Likewise.
1105 * python/py-type.c (save_objfile_types): Likewise.
1106 (set_type): Likewise.
1107 * python/py-unwind.c (pyuw_prev_register): Likewise.
1108 (pyuw_on_new_gdbarch): Likewise.
1109 * python/py-utils.c (py_decref): Likewise.
1110 (py_xdecref): Likewise.
1111 (gdb_py_generic_dict): Likewise.
1112 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1113 (gdbpy_clone_xmethod_worker_data): Likewise.
1114 (gdbpy_get_xmethod_arg_types): Likewise.
1115 (gdbpy_get_xmethod_result_type): Likewise.
1116 (gdbpy_invoke_xmethod): Likewise.
1117 * python/python.c (gdbpy_apply_type_printers): Likewise.
1118 (gdbpy_free_type_printers): Likewise.
1119 * record-btrace.c (record_btrace_disable_callback): Likewise.
1120 (bfcache_hash): Likewise.
1121 (bfcache_eq): Likewise.
1122 (btrace_get_frame_function): Likewise.
1123 (record_btrace_frame_unwind_stop_reason): Likewise.
1124 (record_btrace_frame_this_id): Likewise.
1125 (record_btrace_frame_prev_register): Likewise.
1126 (record_btrace_frame_dealloc_cache): Likewise.
1127 * record-full.c (record_full_message_wrapper): Likewise.
1128 (record_full_save_cleanups): Likewise.
1129 * regcache.c (regcache_descr): Likewise.
1130 (do_regcache_xfree): Likewise.
1131 (do_regcache_invalidate): Likewise.
1132 (do_cooked_read): Likewise.
1133 (regcache_transfer_regset): Likewise.
1134 * reggroups.c (reggroup_add): Likewise.
1135 (reggroup_next): Likewise.
1136 (reggroup_prev): Likewise.
1137 * remote-fileio.c (do_remote_fileio_request): Likewise.
1138 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1139 (do_notif_event_xfree): Likewise.
1140 * remote.c (get_remote_arch_state): Likewise.
1141 (remote_pspace_data_cleanup): Likewise.
1142 (get_remote_exec_file): Likewise.
1143 (set_pspace_remote_exec_file): Likewise.
1144 (compare_pnums): Likewise.
1145 (clear_threads_listing_context): Likewise.
1146 (remote_newthread_step): Likewise.
1147 (start_thread): Likewise.
1148 (end_thread): Likewise.
1149 (remove_child_of_pending_fork): Likewise.
1150 (remove_stop_reply_for_inferior): Likewise.
1151 (remove_stop_reply_of_remote_state): Likewise.
1152 (remote_notif_remove_once_on_match): Likewise.
1153 (stop_reply_match_ptid_and_ws): Likewise.
1154 (kill_child_of_pending_fork): Likewise.
1155 (register_remote_g_packet_guess): Likewise.
1156 (remote_read_description_p): Likewise.
1157 (remote_read_description): Likewise.
1158 (free_actions_list_cleanup_wrapper): Likewise.
1159 (remote_async_serial_handler): Likewise.
1160 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1161 (rl78_analyze_frame_prologue): Likewise.
1162 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1163 (ppc_supply_fpregset): Likewise.
1164 (ppc_supply_vsxregset): Likewise.
1165 (ppc_supply_vrregset): Likewise.
1166 (ppc_collect_gregset): Likewise.
1167 (ppc_collect_fpregset): Likewise.
1168 (ppc_collect_vsxregset): Likewise.
1169 (ppc_collect_vrregset): Likewise.
1170 (e500_move_ev_register): Likewise.
1171 (do_regcache_raw_write): Likewise.
1172 (rs6000_frame_cache): Likewise.
1173 (rs6000_epilogue_frame_cache): Likewise.
1174 (rs6000_gdbarch_init): Likewise.
1175 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1176 (rx_analyze_frame_prologue): Likewise.
1177 (rx_frame_type): Likewise.
1178 (rx_frame_sniffer_common): Likewise.
1179 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1180 (s390_frame_unwind_cache): Likewise.
1181 (s390_stub_frame_unwind_cache): Likewise.
1182 (s390_sigtramp_frame_unwind_cache): Likewise.
1183 * score-tdep.c (score_make_prologue_cache): Likewise.
1184 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1185 (sentinel_frame_prev_arch): Likewise.
1186 * ser-base.c (fd_event): Likewise.
1187 (push_event): Likewise.
1188 (ser_base_write): Likewise.
1189 * ser-pipe.c (pipe_close): Likewise.
1190 * serial.c (serial_write): Likewise.
1191 * sh-tdep.c (sh_frame_cache): Likewise.
1192 (sh_stub_this_id): Likewise.
1193 * sh64-tdep.c (sh64_frame_cache): Likewise.
1194 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1195 (library_list_start_library): Likewise.
1196 (library_list_start_list): Likewise.
1197 (solib_aix_free_library_list): Likewise.
1198 * solib-darwin.c (get_darwin_info): Likewise.
1199 * solib-dsbt.c (get_dsbt_info): Likewise.
1200 * solib-spu.c (append_ocl_sos): Likewise.
1201 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1202 (get_svr4_info): Likewise.
1203 (library_list_start_library): Likewise.
1204 (svr4_library_list_start_list): Likewise.
1205 (hash_probe_and_action): Likewise.
1206 (equal_probe_and_action): Likewise.
1207 (svr4_update_solib_event_breakpoint): Likewise.
1208 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1209 (svr4_fetch_link_map_offsets): Likewise.
1210 (svr4_have_link_map_offsets): Likewise.
1211 * solib-target.c (library_list_start_segment): Likewise.
1212 (library_list_start_section): Likewise.
1213 (library_list_start_library): Likewise.
1214 (library_list_end_library): Likewise.
1215 (library_list_start_list): Likewise.
1216 (solib_target_free_library_list): Likewise.
1217 * solib.c (solib_ops): Likewise.
1218 (set_solib_ops): Likewise.
1219 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1220 * sparc-tdep.c (sparc_frame_cache): Likewise.
1221 (sparc32_frame_cache): Likewise.
1222 (sparc32_supply_gregset): Likewise.
1223 (sparc32_collect_gregset): Likewise.
1224 (sparc32_supply_fpregset): Likewise.
1225 (sparc32_collect_fpregset): Likewise.
1226 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1227 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1228 (sparc64_collect_gregset): Likewise.
1229 (sparc64_supply_fpregset): Likewise.
1230 (sparc64_collect_fpregset): Likewise.
1231 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1232 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1233 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1234 (sparc64obsd_trapframe_cache): Likewise.
1235 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1236 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1237 * spu-multiarch.c (spu_gdbarch): Likewise.
1238 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1239 (spu2ppu_prev_arch): Likewise.
1240 (spu2ppu_this_id): Likewise.
1241 (spu2ppu_prev_register): Likewise.
1242 (spu2ppu_dealloc_cache): Likewise.
1243 (spu_dis_asm_print_address): Likewise.
1244 (gdb_print_insn_spu): Likewise.
1245 (spu_get_overlay_table): Likewise.
1246 * stabsread.c (rs6000_builtin_type): Likewise.
1247 * stack.c (do_print_variable_and_value): Likewise.
1248 * stap-probe.c (get_stap_base_address_1): Likewise.
1249 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1250 (debug_qf_find_last_source_symtab): Likewise.
1251 (debug_qf_forget_cached_source_info): Likewise.
1252 (debug_qf_map_symtabs_matching_filename): Likewise.
1253 (debug_qf_lookup_symbol): Likewise.
1254 (debug_qf_print_stats): Likewise.
1255 (debug_qf_dump): Likewise.
1256 (debug_qf_relocate): Likewise.
1257 (debug_qf_expand_symtabs_for_function): Likewise.
1258 (debug_qf_expand_all_symtabs): Likewise.
1259 (debug_qf_expand_symtabs_with_fullname): Likewise.
1260 (debug_qf_map_matching_symbols): Likewise.
1261 (debug_qf_expand_symtabs_matching): Likewise.
1262 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1263 (debug_qf_map_symbol_filenames): Likewise.
1264 (debug_sym_get_probes): Likewise.
1265 (debug_sym_new_init): Likewise.
1266 (debug_sym_init): Likewise.
1267 (debug_sym_read): Likewise.
1268 (debug_sym_read_psymbols): Likewise.
1269 (debug_sym_finish): Likewise.
1270 (debug_sym_offsets): Likewise.
1271 (debug_sym_read_linetable): Likewise.
1272 (debug_sym_relocate): Likewise.
1273 (uninstall_symfile_debug_logging): Likewise.
1274 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1275 * symfile.c (place_section): Likewise.
1276 (add_section_size_callback): Likewise.
1277 (load_progress): Likewise.
1278 (load_section_callback): Likewise.
1279 (clear_memory_write_data): Likewise.
1280 (allocate_symtab): Likewise.
1281 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1282 * symtab.c (lookup_symtab_callback): Likewise.
1283 (hash_demangled_name_entry): Likewise.
1284 (eq_demangled_name_entry): Likewise.
1285 (get_symbol_cache): Likewise.
1286 (symbol_cache_cleanup): Likewise.
1287 (set_symbol_cache_size): Likewise.
1288 (symbol_cache_flush): Likewise.
1289 (maintenance_print_symbol_cache): Likewise.
1290 (maintenance_print_symbol_cache_statistics): Likewise.
1291 (delete_filename_seen_cache): Likewise.
1292 (output_partial_symbol_filename): Likewise.
1293 (search_symbols_file_matches): Likewise.
1294 (search_symbols_name_matches): Likewise.
1295 (do_free_completion_list): Likewise.
1296 (maybe_add_partial_symtab_filename): Likewise.
1297 (get_main_info): Likewise.
1298 (main_info_cleanup): Likewise.
1299 * target-dcache.c (target_dcache_cleanup): Likewise.
1300 (target_dcache_init_p): Likewise.
1301 (target_dcache_invalidate): Likewise.
1302 (target_dcache_get): Likewise.
1303 (target_dcache_get_or_init): Likewise.
1304 * target-descriptions.c (target_find_description): Likewise.
1305 (tdesc_find_type): Likewise.
1306 (tdesc_data_cleanup): Likewise.
1307 (tdesc_find_arch_register): Likewise.
1308 (tdesc_register_name): Likewise.
1309 (tdesc_register_type): Likewise.
1310 (tdesc_register_reggroup_p): Likewise.
1311 (set_tdesc_pseudo_register_name): Likewise.
1312 (set_tdesc_pseudo_register_type): Likewise.
1313 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1314 (tdesc_use_registers): Likewise.
1315 (free_target_description): Likewise.
1316 * target-memory.c (compare_block_starting_address): Likewise.
1317 (cleanup_request_data): Likewise.
1318 (cleanup_write_requests_vector): Likewise.
1319 * target.c (open_target): Likewise.
1320 (cleanup_restore_target_terminal): Likewise.
1321 (free_memory_read_result_vector): Likewise.
1322 * thread.c (disable_thread_stack_temporaries): Likewise.
1323 (finish_thread_state_cleanup): Likewise.
1324 (do_restore_current_thread_cleanup): Likewise.
1325 (restore_current_thread_cleanup_dtor): Likewise.
1326 (set_thread_refcount): Likewise.
1327 (tp_array_compar): Likewise.
1328 (do_captured_thread_select): Likewise.
1329 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1330 (tic6x_stub_this_id): Likewise.
1331 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1332 * top.c (do_restore_instream_cleanup): Likewise.
1333 (gdb_readline_wrapper_cleanup): Likewise.
1334 (kill_or_detach): Likewise.
1335 (print_inferior_quit_action): Likewise.
1336 * tracefile-tfile.c (match_blocktype): Likewise.
1337 (build_traceframe_info): Likewise.
1338 * tracefile.c (trace_file_writer_xfree): Likewise.
1339 * tracepoint.c (memrange_cmp): Likewise.
1340 (do_collect_symbol): Likewise.
1341 (do_clear_collection_list): Likewise.
1342 (do_restore_current_traceframe_cleanup): Likewise.
1343 (restore_current_traceframe_cleanup_dtor): Likewise.
1344 (free_current_marker): Likewise.
1345 (traceframe_info_start_memory): Likewise.
1346 (traceframe_info_start_tvar): Likewise.
1347 (free_result): Likewise.
1348 * tramp-frame.c (tramp_frame_cache): Likewise.
1349 * tui/tui-file.c (tui_file_delete): Likewise.
1350 (tui_fileopen): Likewise.
1351 (tui_sfileopen): Likewise.
1352 (tui_file_isatty): Likewise.
1353 (tui_file_rewind): Likewise.
1354 (tui_file_put): Likewise.
1355 (tui_file_fputs): Likewise.
1356 (tui_file_get_strbuf): Likewise.
1357 (tui_file_adjust_strbuf): Likewise.
1358 (tui_file_flush): Likewise.
1359 * tui/tui-layout.c (make_command_window): Likewise.
1360 (make_data_window): Likewise.
1361 (show_source_disasm_command): Likewise.
1362 (show_data): Likewise.
1363 (make_source_or_disasm_window): Likewise.
1364 (show_source_or_disasm_and_command): Likewise.
1365 * tui/tui-out.c (tui_field_int): Likewise.
1366 (tui_field_string): Likewise.
1367 (tui_field_fmt): Likewise.
1368 (tui_text): Likewise.
1369 * typeprint.c (hash_typedef_field): Likewise.
1370 (eq_typedef_field): Likewise.
1371 (do_free_typedef_hash): Likewise.
1372 (copy_typedef_hash_element): Likewise.
1373 (do_free_global_table): Likewise.
1374 (find_global_typedef): Likewise.
1375 (find_typedef_in_hash): Likewise.
1376 * ui-file.c (ui_file_write_for_put): Likewise.
1377 (do_ui_file_xstrdup): Likewise.
1378 (mem_file_delete): Likewise.
1379 (mem_file_rewind): Likewise.
1380 (mem_file_put): Likewise.
1381 (mem_file_write): Likewise.
1382 (stdio_file_delete): Likewise.
1383 (stdio_file_flush): Likewise.
1384 (stdio_file_read): Likewise.
1385 (stdio_file_write): Likewise.
1386 (stdio_file_write_async_safe): Likewise.
1387 (stdio_file_fputs): Likewise.
1388 (stdio_file_isatty): Likewise.
1389 (stdio_file_fseek): Likewise.
1390 (tee_file_delete): Likewise.
1391 (tee_file_flush): Likewise.
1392 (tee_file_write): Likewise.
1393 (tee_file_fputs): Likewise.
1394 (tee_file_isatty): Likewise.
1395 * ui-out.c (do_cleanup_table_end): Likewise.
1396 (do_cleanup_end): Likewise.
1397 * user-regs.c (user_reg_add): Likewise.
1398 (user_reg_map_name_to_regnum): Likewise.
1399 (usernum_to_user_reg): Likewise.
1400 (maintenance_print_user_registers): Likewise.
1401 * utils.c (do_bfd_close_cleanup): Likewise.
1402 (do_fclose_cleanup): Likewise.
1403 (do_obstack_free): Likewise.
1404 (do_ui_file_delete): Likewise.
1405 (do_ui_out_redirect_pop): Likewise.
1406 (do_free_section_addr_info): Likewise.
1407 (restore_integer): Likewise.
1408 (do_unpush_target): Likewise.
1409 (do_htab_delete_cleanup): Likewise.
1410 (do_restore_ui_file): Likewise.
1411 (do_value_free): Likewise.
1412 (do_free_so): Likewise.
1413 (free_current_contents): Likewise.
1414 (do_regfree_cleanup): Likewise.
1415 (core_addr_hash): Likewise.
1416 (core_addr_eq): Likewise.
1417 (do_free_char_ptr_vec): Likewise.
1418 * v850-tdep.c (v850_frame_cache): Likewise.
1419 * varobj.c (do_free_variable_cleanup): Likewise.
1420 * vax-tdep.c (vax_supply_gregset): Likewise.
1421 (vax_frame_cache): Likewise.
1422 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1423 * xml-support.c (gdb_xml_body_text): Likewise.
1424 (gdb_xml_values_cleanup): Likewise.
1425 (gdb_xml_start_element): Likewise.
1426 (gdb_xml_start_element_wrapper): Likewise.
1427 (gdb_xml_end_element): Likewise.
1428 (gdb_xml_end_element_wrapper): Likewise.
1429 (gdb_xml_cleanup): Likewise.
1430 (gdb_xml_fetch_external_entity): Likewise.
1431 (gdb_xml_parse_attr_enum): Likewise.
1432 (xinclude_start_include): Likewise.
1433 (xinclude_end_include): Likewise.
1434 (xml_xinclude_default): Likewise.
1435 (xml_xinclude_start_doctype): Likewise.
1436 (xml_xinclude_end_doctype): Likewise.
1437 (xml_xinclude_cleanup): Likewise.
1438 (xml_fetch_content_from_file): Likewise.
1439 * xml-syscall.c (free_syscalls_info): Likewise.
1440 (syscall_start_syscall): Likewise.
1441 * xml-tdesc.c (tdesc_end_arch): Likewise.
1442 (tdesc_end_osabi): Likewise.
1443 (tdesc_end_compatible): Likewise.
1444 (tdesc_start_target): Likewise.
1445 (tdesc_start_feature): Likewise.
1446 (tdesc_start_reg): Likewise.
1447 (tdesc_start_union): Likewise.
1448 (tdesc_start_struct): Likewise.
1449 (tdesc_start_flags): Likewise.
1450 (tdesc_start_field): Likewise.
1451 (tdesc_start_vector): Likewise.
1452 (fetch_available_features_from_target): Likewise.
1453 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1454 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1455 (xtensa_frame_cache): Likewise.
1456 (xtensa_frame_prev_register): Likewise.
1457 (xtensa_extract_return_value): Likewise.
1458
1459 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1460
1461 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1462 (aarch64_make_stub_cache): Likewise.
1463 (value_of_aarch64_user_reg): Likewise.
1464 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1465 (get_ada_inferior_data): Likewise.
1466 (get_ada_pspace_data): Likewise.
1467 (ada_pspace_data_cleanup): Likewise.
1468 (ada_complete_symbol_matcher): Likewise.
1469 (ada_exc_search_name_matches): Likewise.
1470 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1471 (get_ada_tasks_inferior_data): Likewise.
1472 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1473 (splay_obstack_alloc): Likewise.
1474 (splay_obstack_free): Likewise.
1475 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1476 (alpha_linux_collect_gregset): Likewise.
1477 (alpha_linux_supply_fpregset): Likewise.
1478 (alpha_linux_collect_fpregset): Likewise.
1479 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1480 * alpha-tdep.c (alpha_lds): Likewise.
1481 (alpha_sts): Likewise.
1482 (alpha_sigtramp_frame_unwind_cache): Likewise.
1483 (alpha_heuristic_frame_unwind_cache): Likewise.
1484 (alpha_supply_int_regs): Likewise.
1485 (alpha_fill_int_regs): Likewise.
1486 (alpha_supply_fp_regs): Likewise.
1487 (alpha_fill_fp_regs): Likewise.
1488 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1489 (alphanbsd_aout_supply_gregset): Likewise.
1490 (alphanbsd_supply_gregset): Likewise.
1491 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1492 (amd64_x32_linux_init_abi): Likewise.
1493 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1494 (amd64_collect_native_gregset): Likewise.
1495 * amd64-tdep.c (amd64_frame_cache): Likewise.
1496 (amd64_sigtramp_frame_cache): Likewise.
1497 (amd64_epilogue_frame_cache): Likewise.
1498 (amd64_supply_fxsave): Likewise.
1499 (amd64_supply_xsave): Likewise.
1500 (amd64_collect_fxsave): Likewise.
1501 (amd64_collect_xsave): Likewise.
1502 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1503 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1504 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1505 (arm_linux_collect_gregset): Likewise.
1506 (arm_linux_supply_nwfpe): Likewise.
1507 (arm_linux_collect_nwfpe): Likewise.
1508 (arm_linux_supply_vfp): Likewise.
1509 (arm_linux_collect_vfp): Likewise.
1510 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1511 (arm_prologue_unwind_stop_reason): Likewise.
1512 (arm_prologue_this_id): Likewise.
1513 (arm_prologue_prev_register): Likewise.
1514 (arm_exidx_data_free): Likewise.
1515 (arm_find_exidx_entry): Likewise.
1516 (arm_stub_this_id): Likewise.
1517 (arm_m_exception_this_id): Likewise.
1518 (arm_m_exception_prev_register): Likewise.
1519 (arm_normal_frame_base): Likewise.
1520 (gdb_print_insn_arm): Likewise.
1521 (arm_objfile_data_free): Likewise.
1522 (arm_record_special_symbol): Likewise.
1523 (value_of_arm_user_reg): Likewise.
1524 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1525 (armbsd_supply_gregset): Likewise.
1526 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1527 (get_auto_load_pspace_data): Likewise.
1528 (hash_loaded_script_entry): Likewise.
1529 (eq_loaded_script_entry): Likewise.
1530 (clear_section_scripts): Likewise.
1531 (collect_matching_scripts): Likewise.
1532 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1533 (get_auxv_inferior_data): Likewise.
1534 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1535 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1536 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1537 (target_bfd_xclose): Likewise.
1538 (target_bfd_get_section_table): Likewise.
1539 * bfin-tdep.c (bfin_frame_cache): Likewise.
1540 * block.c (find_block_in_blockvector): Likewise.
1541 (call_site_for_pc): Likewise.
1542 (block_find_non_opaque_type_preferred): Likewise.
1543 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1544 (signal_catchpoint_remove_location): Likewise.
1545 (signal_catchpoint_breakpoint_hit): Likewise.
1546 (signal_catchpoint_print_one): Likewise.
1547 (signal_catchpoint_print_mention): Likewise.
1548 (signal_catchpoint_print_recreate): Likewise.
1549 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1550 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1551 (bp_location_compare_addrs): Likewise.
1552 (get_first_locp_gte_addr): Likewise.
1553 (check_tracepoint_command): Likewise.
1554 (do_map_commands_command): Likewise.
1555 (get_breakpoint_objfile_data): Likewise.
1556 (free_breakpoint_probes): Likewise.
1557 (do_captured_breakpoint_query): Likewise.
1558 (compare_breakpoints): Likewise.
1559 (bp_location_compare): Likewise.
1560 (bpstat_remove_breakpoint_callback): Likewise.
1561 (do_delete_breakpoint_cleanup): Likewise.
1562 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1563 (bsd_uthread_set_collect_uthread): Likewise.
1564 (bsd_uthread_activate): Likewise.
1565 (bsd_uthread_fetch_registers): Likewise.
1566 (bsd_uthread_store_registers): Likewise.
1567 * btrace.c (check_xml_btrace_version): Likewise.
1568 (parse_xml_btrace_block): Likewise.
1569 (parse_xml_btrace_pt_config_cpu): Likewise.
1570 (parse_xml_btrace_pt_raw): Likewise.
1571 (parse_xml_btrace_pt): Likewise.
1572 (parse_xml_btrace_conf_bts): Likewise.
1573 (parse_xml_btrace_conf_pt): Likewise.
1574 (do_btrace_data_cleanup): Likewise.
1575 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1576 * charset.c (cleanup_iconv): Likewise.
1577 (do_cleanup_iterator): Likewise.
1578 * cli-out.c (cli_uiout_dtor): Likewise.
1579 (cli_table_begin): Likewise.
1580 (cli_table_body): Likewise.
1581 (cli_table_end): Likewise.
1582 (cli_table_header): Likewise.
1583 (cli_begin): Likewise.
1584 (cli_end): Likewise.
1585 (cli_field_int): Likewise.
1586 (cli_field_skip): Likewise.
1587 (cli_field_string): Likewise.
1588 (cli_field_fmt): Likewise.
1589 (cli_spaces): Likewise.
1590 (cli_text): Likewise.
1591 (cli_message): Likewise.
1592 (cli_wrap_hint): Likewise.
1593 (cli_flush): Likewise.
1594 (cli_redirect): Likewise.
1595 (out_field_fmt): Likewise.
1596 (field_separator): Likewise.
1597 (cli_out_set_stream): Likewise.
1598 * cli/cli-cmds.c (compare_symtabs): Likewise.
1599 * cli/cli-dump.c (call_dump_func): Likewise.
1600 (restore_section_callback): Likewise.
1601 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1602 (do_restore_user_call_depth): Likewise.
1603 (do_free_command_lines_cleanup): Likewise.
1604 * coff-pe-read.c (get_section_vmas): Likewise.
1605 (pe_as16): Likewise.
1606 (pe_as32): Likewise.
1607 * coffread.c (coff_symfile_read): Likewise.
1608 * common/agent.c (agent_look_up_symbols): Likewise.
1609 * common/filestuff.c (do_close_cleanup): Likewise.
1610 * common/format.c (free_format_pieces_cleanup): Likewise.
1611 * common/vec.c (vec_o_reserve): Likewise.
1612 * compile/compile-c-support.c (print_one_macro): Likewise.
1613 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1614 (eq_symbol_error): Likewise.
1615 (del_symbol_error): Likewise.
1616 (error_symbol_once): Likewise.
1617 (gcc_convert_symbol): Likewise.
1618 (gcc_symbol_address): Likewise.
1619 (hash_symname): Likewise.
1620 (eq_symname): Likewise.
1621 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1622 (eq_type_map_instance): Likewise.
1623 (insert_type): Likewise.
1624 (convert_type): Likewise.
1625 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1626 (setup_sections): Likewise.
1627 (link_hash_table_free): Likewise.
1628 (copy_sections): Likewise.
1629 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1630 * compile/compile.c (compile_print_value): Likewise.
1631 (do_rmdir): Likewise.
1632 (cleanup_compile_instance): Likewise.
1633 (cleanup_unlink_file): Likewise.
1634 * completer.c (free_completion_tracker): Likewise.
1635 * corelow.c (add_to_spuid_list): Likewise.
1636 * cp-namespace.c (reset_directive_searched): Likewise.
1637 * cp-support.c (reset_directive_searched): Likewise.
1638 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1639 (cris_frame_unwind_cache): Likewise.
1640 * d-lang.c (builtin_d_type): Likewise.
1641 * d-namespace.c (reset_directive_searched): Likewise.
1642 * dbxread.c (dbx_free_symfile_info): Likewise.
1643 (do_free_bincl_list_cleanup): Likewise.
1644 * disasm.c (hash_dis_line_entry): Likewise.
1645 (eq_dis_line_entry): Likewise.
1646 (dis_asm_print_address): Likewise.
1647 (fprintf_disasm): Likewise.
1648 (do_ui_file_delete): Likewise.
1649 * doublest.c (convert_floatformat_to_doublest): Likewise.
1650 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1651 (dummy_frame_prev_register): Likewise.
1652 (dummy_frame_this_id): Likewise.
1653 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1654 (cache_eq): Likewise.
1655 (cache_find): Likewise.
1656 (tailcall_frame_this_id): Likewise.
1657 (dwarf2_tailcall_prev_register_first): Likewise.
1658 (tailcall_frame_prev_register): Likewise.
1659 (tailcall_frame_dealloc_cache): Likewise.
1660 (tailcall_frame_prev_arch): Likewise.
1661 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1662 (dwarf2_frame_set_init_reg): Likewise.
1663 (dwarf2_frame_init_reg): Likewise.
1664 (dwarf2_frame_set_signal_frame_p): Likewise.
1665 (dwarf2_frame_signal_frame_p): Likewise.
1666 (dwarf2_frame_set_adjust_regnum): Likewise.
1667 (dwarf2_frame_adjust_regnum): Likewise.
1668 (clear_pointer_cleanup): Likewise.
1669 (dwarf2_frame_cache): Likewise.
1670 (find_cie): Likewise.
1671 (dwarf2_frame_find_fde): Likewise.
1672 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1673 (free_dwarf_expr_context_cleanup): Likewise.
1674 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1675 (locexpr_get_frame_base): Likewise.
1676 (loclist_find_frame_base_location): Likewise.
1677 (loclist_get_frame_base): Likewise.
1678 (dwarf_expr_dwarf_call): Likewise.
1679 (dwarf_expr_get_base_type): Likewise.
1680 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1681 (dwarf_expr_get_obj_addr): Likewise.
1682 (entry_data_value_coerce_ref): Likewise.
1683 (entry_data_value_copy_closure): Likewise.
1684 (entry_data_value_free_closure): Likewise.
1685 (get_frame_address_in_block_wrapper): Likewise.
1686 (dwarf2_evaluate_property): Likewise.
1687 (dwarf2_compile_property_to_c): Likewise.
1688 (needs_frame_read_addr_from_reg): Likewise.
1689 (needs_frame_get_reg_value): Likewise.
1690 (needs_frame_frame_base): Likewise.
1691 (needs_frame_frame_cfa): Likewise.
1692 (needs_frame_tls_address): Likewise.
1693 (needs_frame_dwarf_call): Likewise.
1694 (needs_dwarf_reg_entry_value): Likewise.
1695 (get_ax_pc): Likewise.
1696 (locexpr_read_variable): Likewise.
1697 (locexpr_read_variable_at_entry): Likewise.
1698 (locexpr_read_needs_frame): Likewise.
1699 (locexpr_describe_location): Likewise.
1700 (locexpr_tracepoint_var_ref): Likewise.
1701 (locexpr_generate_c_location): Likewise.
1702 (loclist_read_variable): Likewise.
1703 (loclist_read_variable_at_entry): Likewise.
1704 (loclist_describe_location): Likewise.
1705 (loclist_tracepoint_var_ref): Likewise.
1706 (loclist_generate_c_location): Likewise.
1707 * dwarf2read.c (line_header_hash_voidp): Likewise.
1708 (line_header_eq_voidp): Likewise.
1709 (dwarf2_has_info): Likewise.
1710 (dwarf2_get_section_info): Likewise.
1711 (locate_dwz_sections): Likewise.
1712 (hash_file_name_entry): Likewise.
1713 (eq_file_name_entry): Likewise.
1714 (delete_file_name_entry): Likewise.
1715 (dw2_setup): Likewise.
1716 (dw2_get_file_names_reader): Likewise.
1717 (dw2_find_pc_sect_compunit_symtab): Likewise.
1718 (hash_signatured_type): Likewise.
1719 (eq_signatured_type): Likewise.
1720 (add_signatured_type_cu_to_table): Likewise.
1721 (create_debug_types_hash_table): Likewise.
1722 (lookup_dwo_signatured_type): Likewise.
1723 (lookup_dwp_signatured_type): Likewise.
1724 (lookup_signatured_type): Likewise.
1725 (hash_type_unit_group): Likewise.
1726 (eq_type_unit_group): Likewise.
1727 (get_type_unit_group): Likewise.
1728 (process_psymtab_comp_unit_reader): Likewise.
1729 (sort_tu_by_abbrev_offset): Likewise.
1730 (process_skeletonless_type_unit): Likewise.
1731 (psymtabs_addrmap_cleanup): Likewise.
1732 (dwarf2_read_symtab): Likewise.
1733 (psymtab_to_symtab_1): Likewise.
1734 (die_hash): Likewise.
1735 (die_eq): Likewise.
1736 (load_full_comp_unit_reader): Likewise.
1737 (reset_die_in_process): Likewise.
1738 (free_cu_line_header): Likewise.
1739 (handle_DW_AT_stmt_list): Likewise.
1740 (hash_dwo_file): Likewise.
1741 (eq_dwo_file): Likewise.
1742 (hash_dwo_unit): Likewise.
1743 (eq_dwo_unit): Likewise.
1744 (create_dwo_cu_reader): Likewise.
1745 (create_dwo_unit_in_dwp_v1): Likewise.
1746 (create_dwo_unit_in_dwp_v2): Likewise.
1747 (lookup_dwo_unit_in_dwp): Likewise.
1748 (dwarf2_locate_dwo_sections): Likewise.
1749 (dwarf2_locate_common_dwp_sections): Likewise.
1750 (dwarf2_locate_v2_dwp_sections): Likewise.
1751 (hash_dwp_loaded_cutus): Likewise.
1752 (eq_dwp_loaded_cutus): Likewise.
1753 (lookup_dwo_cutu): Likewise.
1754 (abbrev_table_free_cleanup): Likewise.
1755 (dwarf2_free_abbrev_table): Likewise.
1756 (find_partial_die_in_comp_unit): Likewise.
1757 (free_line_header_voidp): Likewise.
1758 (follow_die_offset): Likewise.
1759 (follow_die_sig_1): Likewise.
1760 (free_heap_comp_unit): Likewise.
1761 (free_stack_comp_unit): Likewise.
1762 (dwarf2_free_objfile): Likewise.
1763 (per_cu_offset_and_type_hash): Likewise.
1764 (per_cu_offset_and_type_eq): Likewise.
1765 (get_die_type_at_offset): Likewise.
1766 (partial_die_hash): Likewise.
1767 (partial_die_eq): Likewise.
1768 (dwarf2_per_objfile_free): Likewise.
1769 (hash_strtab_entry): Likewise.
1770 (eq_strtab_entry): Likewise.
1771 (add_string): Likewise.
1772 (hash_symtab_entry): Likewise.
1773 (eq_symtab_entry): Likewise.
1774 (delete_symtab_entry): Likewise.
1775 (cleanup_mapped_symtab): Likewise.
1776 (add_indices_to_cpool): Likewise.
1777 (hash_psymtab_cu_index): Likewise.
1778 (eq_psymtab_cu_index): Likewise.
1779 (add_address_entry_worker): Likewise.
1780 (unlink_if_set): Likewise.
1781 (write_one_signatured_type): Likewise.
1782 (save_gdb_index_command): Likewise.
1783 * elfread.c (elf_symtab_read): Likewise.
1784 (elf_gnu_ifunc_cache_hash): Likewise.
1785 (elf_gnu_ifunc_cache_eq): Likewise.
1786 (elf_gnu_ifunc_record_cache): Likewise.
1787 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1788 (elf_get_probes): Likewise.
1789 (probe_key_free): Likewise.
1790 * f-lang.c (builtin_f_type): Likewise.
1791 * frame-base.c (frame_base_append_sniffer): Likewise.
1792 (frame_base_set_default): Likewise.
1793 (frame_base_find_by_frame): Likewise.
1794 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1795 (frame_unwind_append_unwinder): Likewise.
1796 (frame_unwind_find_by_frame): Likewise.
1797 * frame.c (frame_addr_hash): Likewise.
1798 (frame_addr_hash_eq): Likewise.
1799 (frame_stash_find): Likewise.
1800 (do_frame_register_read): Likewise.
1801 (unwind_to_current_frame): Likewise.
1802 (frame_cleanup_after_sniffer): Likewise.
1803 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1804 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1805 * ft32-tdep.c (ft32_frame_cache): Likewise.
1806 * gcore.c (do_bfd_delete_cleanup): Likewise.
1807 (gcore_create_callback): Likewise.
1808 * gdb_bfd.c (hash_bfd): Likewise.
1809 (eq_bfd): Likewise.
1810 (gdb_bfd_open): Likewise.
1811 (free_one_bfd_section): Likewise.
1812 (gdb_bfd_ref): Likewise.
1813 (gdb_bfd_unref): Likewise.
1814 (get_section_descriptor): Likewise.
1815 (gdb_bfd_map_section): Likewise.
1816 (gdb_bfd_crc): Likewise.
1817 (gdb_bfd_mark_parent): Likewise.
1818 (gdb_bfd_record_inclusion): Likewise.
1819 (gdb_bfd_requires_relocations): Likewise.
1820 (print_one_bfd): Likewise.
1821 * gdbtypes.c (type_pair_hash): Likewise.
1822 (type_pair_eq): Likewise.
1823 (builtin_type): Likewise.
1824 (objfile_type): Likewise.
1825 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1826 (vtable_address_point_offset): Likewise.
1827 (gnuv3_get_vtable): Likewise.
1828 (hash_value_and_voffset): Likewise.
1829 (eq_value_and_voffset): Likewise.
1830 (compare_value_and_voffset): Likewise.
1831 (compute_vtable_size): Likewise.
1832 (gnuv3_get_typeid_type): Likewise.
1833 * go-lang.c (builtin_go_type): Likewise.
1834 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1835 (bkscm_eq_block_smob): Likewise.
1836 (bkscm_objfile_block_map): Likewise.
1837 (bkscm_del_objfile_blocks): Likewise.
1838 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1839 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1840 (gdbscm_disasm_print_address): Likewise.
1841 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1842 (frscm_eq_frame_smob): Likewise.
1843 (frscm_inferior_frame_map): Likewise.
1844 (frscm_del_inferior_frames): Likewise.
1845 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1846 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1847 (ofscm_objfile_smob_from_objfile): Likewise.
1848 * guile/scm-ports.c (ioscm_write): Likewise.
1849 (ioscm_file_port_delete): Likewise.
1850 (ioscm_file_port_rewind): Likewise.
1851 (ioscm_file_port_put): Likewise.
1852 (ioscm_file_port_write): Likewise.
1853 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1854 (psscm_pspace_smob_from_pspace): Likewise.
1855 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1856 (scscm_recording_unwind_handler): Likewise.
1857 (gdbscm_with_catch): Likewise.
1858 (scscm_call_0_body): Likewise.
1859 (scscm_call_1_body): Likewise.
1860 (scscm_call_2_body): Likewise.
1861 (scscm_call_3_body): Likewise.
1862 (scscm_call_4_body): Likewise.
1863 (scscm_apply_1_body): Likewise.
1864 (scscm_eval_scheme_string): Likewise.
1865 (gdbscm_safe_eval_string): Likewise.
1866 (scscm_source_scheme_script): Likewise.
1867 (gdbscm_safe_source_script): Likewise.
1868 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1869 (gdbscm_call_scm_from_stringn): Likewise.
1870 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1871 (syscm_eq_symbol_smob): Likewise.
1872 (syscm_get_symbol_map): Likewise.
1873 (syscm_del_objfile_symbols): Likewise.
1874 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1875 (stscm_eq_symtab_smob): Likewise.
1876 (stscm_objfile_symtab_map): Likewise.
1877 (stscm_del_objfile_symtabs): Likewise.
1878 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1879 (tyscm_eq_type_smob): Likewise.
1880 (tyscm_type_map): Likewise.
1881 (tyscm_copy_type_recursive): Likewise.
1882 (save_objfile_types): Likewise.
1883 * guile/scm-utils.c (extract_arg): Likewise.
1884 * h8300-tdep.c (h8300_frame_cache): Likewise.
1885 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1886 * hppa-tdep.c (compare_unwind_entries): Likewise.
1887 (find_unwind_entry): Likewise.
1888 (hppa_frame_cache): Likewise.
1889 (hppa_stub_frame_unwind_cache): Likewise.
1890 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1891 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1892 (hppaobsd_supply_fpregset): Likewise.
1893 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1894 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1895 * i386-tdep.c (i386_frame_cache): Likewise.
1896 (i386_epilogue_frame_cache): Likewise.
1897 (i386_sigtramp_frame_cache): Likewise.
1898 (i386_supply_gregset): Likewise.
1899 (i386_collect_gregset): Likewise.
1900 (i386_gdbarch_init): Likewise.
1901 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1902 (i386obsd_trapframe_cache): Likewise.
1903 * i387-tdep.c (i387_supply_fsave): Likewise.
1904 (i387_collect_fsave): Likewise.
1905 (i387_supply_fxsave): Likewise.
1906 (i387_collect_fxsave): Likewise.
1907 (i387_supply_xsave): Likewise.
1908 (i387_collect_xsave): Likewise.
1909 * ia64-tdep.c (ia64_frame_cache): Likewise.
1910 (ia64_sigtramp_frame_cache): Likewise.
1911 * infcmd.c (attach_command_continuation): Likewise.
1912 (attach_command_continuation_free_args): Likewise.
1913 * inferior.c (restore_inferior): Likewise.
1914 (delete_thread_of_inferior): Likewise.
1915 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1916 (get_inflow_inferior_data): Likewise.
1917 (inflow_inferior_exit): Likewise.
1918 * infrun.c (displaced_step_clear_cleanup): Likewise.
1919 (restore_current_uiout_cleanup): Likewise.
1920 (release_stop_context_cleanup): Likewise.
1921 (do_restore_infcall_suspend_state_cleanup): Likewise.
1922 (do_restore_infcall_control_state_cleanup): Likewise.
1923 (restore_inferior_ptid): Likewise.
1924 * inline-frame.c (block_starting_point_at): Likewise.
1925 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1926 * jit.c (get_jit_objfile_data): Likewise.
1927 (get_jit_program_space_data): Likewise.
1928 (jit_object_close_impl): Likewise.
1929 (jit_find_objf_with_entry_addr): Likewise.
1930 (jit_breakpoint_deleted): Likewise.
1931 (jit_unwind_reg_set_impl): Likewise.
1932 (jit_unwind_reg_get_impl): Likewise.
1933 (jit_dealloc_cache): Likewise.
1934 (jit_frame_sniffer): Likewise.
1935 (jit_frame_prev_register): Likewise.
1936 (jit_prepend_unwinder): Likewise.
1937 (jit_inferior_exit_hook): Likewise.
1938 (free_objfile_data): Likewise.
1939 * jv-lang.c (jv_per_objfile_free): Likewise.
1940 (get_dynamics_objfile): Likewise.
1941 (get_java_class_symtab): Likewise.
1942 (builtin_java_type): Likewise.
1943 * language.c (language_string_char_type): Likewise.
1944 (language_bool_type): Likewise.
1945 (language_lookup_primitive_type): Likewise.
1946 (language_lookup_primitive_type_as_symbol): Likewise.
1947 * linespec.c (hash_address_entry): Likewise.
1948 (eq_address_entry): Likewise.
1949 (iterate_inline_only): Likewise.
1950 (iterate_name_matcher): Likewise.
1951 (decode_line_2_compare_items): Likewise.
1952 (collect_one_symbol): Likewise.
1953 (compare_symbols): Likewise.
1954 (compare_msymbols): Likewise.
1955 (add_symtabs_to_list): Likewise.
1956 (collect_symbols): Likewise.
1957 (compare_msyms): Likewise.
1958 (add_minsym): Likewise.
1959 (cleanup_linespec_result): Likewise.
1960 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1961 * linux-nat.c (delete_lwp_cleanup): Likewise.
1962 (count_events_callback): Likewise.
1963 (select_event_lwp_callback): Likewise.
1964 (resume_stopped_resumed_lwps): Likewise.
1965 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1966 (invalidate_linux_cache_inf): Likewise.
1967 (get_linux_inferior_data): Likewise.
1968 (linux_find_memory_regions_thunk): Likewise.
1969 (linux_make_mappings_callback): Likewise.
1970 (linux_corefile_thread_callback): Likewise.
1971 (find_mapping_size): Likewise.
1972 * linux-thread-db.c (find_new_threads_callback): Likewise.
1973 * lm32-tdep.c (lm32_frame_cache): Likewise.
1974 * m2-lang.c (builtin_m2_type): Likewise.
1975 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1976 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1977 (m32r_linux_supply_gregset): Likewise.
1978 (m32r_linux_collect_gregset): Likewise.
1979 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1980 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1981 * m68k-tdep.c (m68k_frame_cache): Likewise.
1982 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1983 (m68kbsd_supply_gregset): Likewise.
1984 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1985 * m88k-tdep.c (m88k_frame_cache): Likewise.
1986 (m88k_supply_gregset): Likewise.
1987
1988 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1989
1990 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1991 to allocation result assignment.
1992 * ada-exp.y (write_object_renaming): Likewise.
1993 (write_ambiguous_var): Likewise.
1994 (ada_nget_field_index): Likewise.
1995 (write_var_or_type): Likewise.
1996 * ada-lang.c (ada_decode_symbol): Likewise.
1997 (ada_value_assign): Likewise.
1998 (value_pointer): Likewise.
1999 (cache_symbol): Likewise.
2000 (add_nonlocal_symbols): Likewise.
2001 (ada_name_for_lookup): Likewise.
2002 (symbol_completion_add): Likewise.
2003 (ada_to_fixed_type_1): Likewise.
2004 (ada_get_next_arg): Likewise.
2005 (defns_collected): Likewise.
2006 * ada-lex.l (processId): Likewise.
2007 (processString): Likewise.
2008 * ada-tasks.c (read_known_tasks_array): Likewise.
2009 (read_known_tasks_list): Likewise.
2010 * ada-typeprint.c (decoded_type_name): Likewise.
2011 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2012 * amd64-tdep.c (amd64_push_arguments): Likewise.
2013 (amd64_displaced_step_copy_insn): Likewise.
2014 (amd64_classify_insn_at): Likewise.
2015 (amd64_relocate_instruction): Likewise.
2016 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2017 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2018 (initialize_current_architecture): Likewise.
2019 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2020 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2021 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2022 (arm_push_dummy_call): Likewise.
2023 (extend_buffer_earlier): Likewise.
2024 (arm_adjust_breakpoint_address): Likewise.
2025 (arm_skip_stub): Likewise.
2026 * auto-load.c (filename_is_in_pattern): Likewise.
2027 (maybe_add_script_file): Likewise.
2028 (maybe_add_script_text): Likewise.
2029 (auto_load_objfile_script_1): Likewise.
2030 * auxv.c (ld_so_xfer_auxv): Likewise.
2031 * ax-general.c (new_agent_expr): Likewise.
2032 (grow_expr): Likewise.
2033 (ax_reg_mask): Likewise.
2034 * bcache.c (bcache_full): Likewise.
2035 * breakpoint.c (program_breakpoint_here_p): Likewise.
2036 * btrace.c (parse_xml_raw): Likewise.
2037 * build-id.c (build_id_to_debug_bfd): Likewise.
2038 * buildsym.c (end_symtab_with_blockvector): Likewise.
2039 * c-exp.y (string_exp): Likewise.
2040 (qualified_name): Likewise.
2041 (write_destructor_name): Likewise.
2042 (operator_stoken): Likewise.
2043 (parse_number): Likewise.
2044 (scan_macro_expansion): Likewise.
2045 (yylex): Likewise.
2046 (c_print_token): Likewise.
2047 * c-lang.c (c_get_string): Likewise.
2048 (emit_numeric_character): Likewise.
2049 * charset.c (wchar_iterate): Likewise.
2050 * cli/cli-cmds.c (complete_command): Likewise.
2051 (make_command): Likewise.
2052 * cli/cli-dump.c (restore_section_callback): Likewise.
2053 (restore_binary_file): Likewise.
2054 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2055 * cli/cli-script.c (execute_control_command): Likewise.
2056 * cli/cli-setshow.c (do_set_command): Likewise.
2057 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2058 (read_pe_exported_syms): Likewise.
2059 * coffread.c (coff_read_struct_type): Likewise.
2060 (coff_read_enum_type): Likewise.
2061 * common/btrace-common.c (btrace_data_append): Likewise.
2062 * common/buffer.c (buffer_grow): Likewise.
2063 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2064 * common/format.c (parse_format_string): Likewise.
2065 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2066 * common/xml-utils.c (xml_escape_text): Likewise.
2067 * compile/compile-object-load.c (copy_sections): Likewise.
2068 (compile_object_load): Likewise.
2069 * compile/compile-object-run.c (compile_object_run): Likewise.
2070 * completer.c (filename_completer): Likewise.
2071 * corefile.c (read_memory_typed_address): Likewise.
2072 (write_memory_unsigned_integer): Likewise.
2073 (write_memory_signed_integer): Likewise.
2074 (complete_set_gnutarget): Likewise.
2075 * corelow.c (get_core_register_section): Likewise.
2076 * cp-name-parser.y (d_grab): Likewise.
2077 (allocate_info): Likewise.
2078 (cp_new_demangle_parse_info): Likewise.
2079 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2080 (cp_lookup_symbol_in_namespace): Likewise.
2081 (lookup_namespace_scope): Likewise.
2082 (find_symbol_in_baseclass): Likewise.
2083 (cp_lookup_nested_symbol): Likewise.
2084 (cp_lookup_transparent_type_loop): Likewise.
2085 * cp-support.c (copy_string_to_obstack): Likewise.
2086 (make_symbol_overload_list): Likewise.
2087 (make_symbol_overload_list_namespace): Likewise.
2088 (make_symbol_overload_list_adl_namespace): Likewise.
2089 (first_component_command): Likewise.
2090 * cp-valprint.c (cp_print_value): Likewise.
2091 * ctf.c (ctf_xfer_partial): Likewise.
2092 * d-exp.y (StringExp): Likewise.
2093 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2094 (lookup_module_scope): Likewise.
2095 (find_symbol_in_baseclass): Likewise.
2096 (d_lookup_nested_symbol): Likewise.
2097 * dbxread.c (find_stab_function_addr): Likewise.
2098 (read_dbx_symtab): Likewise.
2099 (dbx_end_psymtab): Likewise.
2100 (cp_set_block_scope): Likewise.
2101 * dcache.c (dcache_alloc): Likewise.
2102 * demangle.c (_initialize_demangler): Likewise.
2103 * dicos-tdep.c (dicos_load_module_p): Likewise.
2104 * dictionary.c (dict_create_hashed_expandable): Likewise.
2105 (dict_create_linear_expandable): Likewise.
2106 (expand_hashtable): Likewise.
2107 (add_symbol_linear_expandable): Likewise.
2108 * dwarf2-frame.c (add_cie): Likewise.
2109 (add_fde): Likewise.
2110 (dwarf2_build_frame_info): Likewise.
2111 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2112 (dwarf_expr_fetch_address): Likewise.
2113 (add_piece): Likewise.
2114 (execute_stack_op): Likewise.
2115 * dwarf2loc.c (chain_candidate): Likewise.
2116 (dwarf_entry_parameter_to_value): Likewise.
2117 (read_pieced_value): Likewise.
2118 (write_pieced_value): Likewise.
2119 * dwarf2read.c (dwarf2_read_section): Likewise.
2120 (add_type_unit): Likewise.
2121 (read_comp_units_from_section): Likewise.
2122 (fixup_go_packaging): Likewise.
2123 (dwarf2_compute_name): Likewise.
2124 (dwarf2_physname): Likewise.
2125 (create_dwo_unit_in_dwp_v1): Likewise.
2126 (create_dwo_unit_in_dwp_v2): Likewise.
2127 (read_func_scope): Likewise.
2128 (read_call_site_scope): Likewise.
2129 (dwarf2_attach_fields_to_type): Likewise.
2130 (process_structure_scope): Likewise.
2131 (mark_common_block_symbol_computed): Likewise.
2132 (read_common_block): Likewise.
2133 (abbrev_table_read_table): Likewise.
2134 (guess_partial_die_structure_name): Likewise.
2135 (fixup_partial_die): Likewise.
2136 (add_file_name): Likewise.
2137 (dwarf2_const_value_data): Likewise.
2138 (dwarf2_const_value_attr): Likewise.
2139 (build_error_marker_type): Likewise.
2140 (guess_full_die_structure_name): Likewise.
2141 (anonymous_struct_prefix): Likewise.
2142 (typename_concat): Likewise.
2143 (dwarf2_canonicalize_name): Likewise.
2144 (dwarf2_name): Likewise.
2145 (write_constant_as_bytes): Likewise.
2146 (dwarf2_fetch_constant_bytes): Likewise.
2147 (copy_string): Likewise.
2148 (parse_macro_definition): Likewise.
2149 * elfread.c (elf_symfile_segments): Likewise.
2150 (elf_rel_plt_read): Likewise.
2151 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2152 (elf_gnu_ifunc_resolve_by_got): Likewise.
2153 (elf_read_minimal_symbols): Likewise.
2154 (elf_gnu_ifunc_record_cache): Likewise.
2155 * event-top.c (top_level_prompt): Likewise.
2156 (command_line_handler): Likewise.
2157 * exec.c (resize_section_table): Likewise.
2158 * expprint.c (print_subexp_standard): Likewise.
2159 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2160 * findcmd.c (parse_find_args): Likewise.
2161 * findvar.c (address_from_register): Likewise.
2162 * frame.c (get_prev_frame_always): Likewise.
2163 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2164 (get_section_descriptor): Likewise.
2165 * gdb_obstack.c (obconcat): Likewise.
2166 (obstack_strdup): Likewise.
2167 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2168 (create_set_type): Likewise.
2169 (lookup_unsigned_typename): Likewise.
2170 (lookup_signed_typename): Likewise.
2171 (resolve_dynamic_union): Likewise.
2172 (resolve_dynamic_struct): Likewise.
2173 (add_dyn_prop): Likewise.
2174 (copy_dynamic_prop_list): Likewise.
2175 (arch_flags_type): Likewise.
2176 (append_composite_type_field_raw): Likewise.
2177 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2178 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2179 * go-exp.y (string_exp): Likewise.
2180 * go-lang.c (go_demangle): Likewise.
2181 * guile/guile.c (compute_scheme_string): Likewise.
2182 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2183 (gdbscm_canonicalize_command_name): Likewise.
2184 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2185 (ioscm_init_memory_port): Likewise.
2186 (ioscm_reinit_memory_port): Likewise.
2187 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2188 (gdbscm_gc_dup_argv): Likewise.
2189 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2190 * hppa-tdep.c (internalize_unwinds): Likewise.
2191 (read_unwind_info): Likewise.
2192 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2193 (windows_core_xfer_shared_libraries): Likewise.
2194 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2195 (i386_stap_parse_special_token_triplet): Likewise.
2196 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2197 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2198 * inf-child.c (inf_child_fileio_readlink): Likewise.
2199 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2200 (inf_ptrace_store_register): Likewise.
2201 * infrun.c (follow_exec): Likewise.
2202 (displaced_step_prepare_throw): Likewise.
2203 (save_stop_context): Likewise.
2204 (save_infcall_suspend_state): Likewise.
2205 * jit.c (jit_read_descriptor): Likewise.
2206 (jit_read_code_entry): Likewise.
2207 (jit_symtab_line_mapping_add_impl): Likewise.
2208 (finalize_symtab): Likewise.
2209 (jit_unwind_reg_get_impl): Likewise.
2210 * jv-exp.y (QualifiedName): Likewise.
2211 * jv-lang.c (get_java_utf8_name): Likewise.
2212 (type_from_class): Likewise.
2213 (java_demangle_type_signature): Likewise.
2214 (java_class_name_from_physname): Likewise.
2215 * jv-typeprint.c (java_type_print_base): Likewise.
2216 * jv-valprint.c (java_value_print): Likewise.
2217 * language.c (add_language): Likewise.
2218 * linespec.c (add_sal_to_sals_basic): Likewise.
2219 (add_sal_to_sals): Likewise.
2220 (decode_objc): Likewise.
2221 (find_linespec_symbols): Likewise.
2222 * linux-fork.c (fork_save_infrun_state): Likewise.
2223 * linux-nat.c (linux_nat_detach): Likewise.
2224 (linux_nat_fileio_readlink): Likewise.
2225 * linux-record.c (record_linux_sockaddr): Likewise.
2226 (record_linux_msghdr): Likewise.
2227 (Do): Likewise.
2228 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2229 (linux_collect_regset_section_cb): Likewise.
2230 (linux_get_siginfo_data): Likewise.
2231 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2232 (try_thread_db_load_from_dir): Likewise.
2233 (thread_db_load_search): Likewise.
2234 (info_auto_load_libthread_db): Likewise.
2235 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2236 (m32c_m16c_pointer_to_address): Likewise.
2237 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2238 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2239 * machoread.c (macho_check_dsym): Likewise.
2240 * macroexp.c (resize_buffer): Likewise.
2241 (gather_arguments): Likewise.
2242 (maybe_expand): Likewise.
2243 * macrotab.c (new_macro_key): Likewise.
2244 (new_source_file): Likewise.
2245 (new_macro_definition): Likewise.
2246 * mdebugread.c (parse_symbol): Likewise.
2247 (parse_type): Likewise.
2248 (parse_partial_symbols): Likewise.
2249 (psymtab_to_symtab_1): Likewise.
2250 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2251 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2252 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2253 (mi_cmd_data_read_memory_bytes): Likewise.
2254 (mi_cmd_data_write_memory_bytes): Likewise.
2255 (mi_cmd_trace_frame_collected): Likewise.
2256 * mi/mi-parse.c (mi_parse_argv): Likewise.
2257 (mi_parse): Likewise.
2258 * minidebug.c (lzma_open): Likewise.
2259 (lzma_pread): Likewise.
2260 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2261 (mips_print_fp_register): Likewise.
2262 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2263 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2264 * mt-tdep.c (mt_register_name): Likewise.
2265 (mt_registers_info): Likewise.
2266 (mt_push_dummy_call): Likewise.
2267 * namespace.c (add_using_directive): Likewise.
2268 * nat/linux-btrace.c (perf_event_read): Likewise.
2269 (linux_enable_bts): Likewise.
2270 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2271 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2272 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2273 (nto_parse_redirection): Likewise.
2274 * objc-lang.c (objc_demangle): Likewise.
2275 (find_methods): Likewise.
2276 * objfiles.c (get_objfile_bfd_data): Likewise.
2277 (set_objfile_main_name): Likewise.
2278 (allocate_objfile): Likewise.
2279 (objfile_relocate): Likewise.
2280 (update_section_map): Likewise.
2281 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2282 * p-exp.y (exp): Likewise.
2283 (yylex): Likewise.
2284 * p-valprint.c (pascal_object_print_value): Likewise.
2285 * parse.c (initialize_expout): Likewise.
2286 (mark_completion_tag): Likewise.
2287 (copy_name): Likewise.
2288 (parse_float): Likewise.
2289 (type_stack_reserve): Likewise.
2290 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2291 (ppu2spu_prev_register): Likewise.
2292 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2293 * printcmd.c (printf_wide_c_string): Likewise.
2294 (printf_pointer): Likewise.
2295 * probe.c (parse_probes): Likewise.
2296 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2297 (cmdpy_init): Likewise.
2298 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2299 * python/py-symtab.c (set_sal): Likewise.
2300 * python/py-unwind.c (pyuw_sniffer): Likewise.
2301 * python/python.c (python_interactive_command): Likewise.
2302 (compute_python_string): Likewise.
2303 * ravenscar-thread.c (get_running_thread_id): Likewise.
2304 * record-full.c (record_full_exec_insn): Likewise.
2305 (record_full_core_open_1): Likewise.
2306 * regcache.c (regcache_raw_read_signed): Likewise.
2307 (regcache_raw_read_unsigned): Likewise.
2308 (regcache_cooked_read_signed): Likewise.
2309 (regcache_cooked_read_unsigned): Likewise.
2310 * remote-fileio.c (remote_fileio_func_open): Likewise.
2311 (remote_fileio_func_rename): Likewise.
2312 (remote_fileio_func_unlink): Likewise.
2313 (remote_fileio_func_stat): Likewise.
2314 (remote_fileio_func_system): Likewise.
2315 * remote-mips.c (mips_xfer_memory): Likewise.
2316 (mips_load_srec): Likewise.
2317 (pmon_end_download): Likewise.
2318 * remote.c (new_remote_state): Likewise.
2319 (map_regcache_remote_table): Likewise.
2320 (remote_register_number_and_offset): Likewise.
2321 (init_remote_state): Likewise.
2322 (get_memory_packet_size): Likewise.
2323 (remote_pass_signals): Likewise.
2324 (remote_program_signals): Likewise.
2325 (remote_start_remote): Likewise.
2326 (remote_check_symbols): Likewise.
2327 (remote_query_supported): Likewise.
2328 (extended_remote_attach): Likewise.
2329 (process_g_packet): Likewise.
2330 (store_registers_using_G): Likewise.
2331 (putpkt_binary): Likewise.
2332 (read_frame): Likewise.
2333 (compare_sections_command): Likewise.
2334 (remote_hostio_pread): Likewise.
2335 (remote_hostio_readlink): Likewise.
2336 (remote_file_put): Likewise.
2337 (remote_file_get): Likewise.
2338 (remote_pid_to_exec_file): Likewise.
2339 (_initialize_remote): Likewise.
2340 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2341 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2342 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2343 (bfd_uses_spe_extensions): Likewise.
2344 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2345 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2346 * solib-dsbt.c (decode_loadmap): Likewise.
2347 (fetch_loadmap): Likewise.
2348 (scan_dyntag): Likewise.
2349 (enable_break): Likewise.
2350 (dsbt_relocate_main_executable): Likewise.
2351 * solib-frv.c (fetch_loadmap): Likewise.
2352 (enable_break2): Likewise.
2353 (frv_relocate_main_executable): Likewise.
2354 * solib-spu.c (spu_relocate_main_executable): Likewise.
2355 (spu_bfd_open): Likewise.
2356 * solib-svr4.c (lm_info_read): Likewise.
2357 (read_program_header): Likewise.
2358 (find_program_interpreter): Likewise.
2359 (scan_dyntag): Likewise.
2360 (elf_locate_base): Likewise.
2361 (open_symbol_file_object): Likewise.
2362 (read_program_headers_from_bfd): Likewise.
2363 (svr4_relocate_main_executable): Likewise.
2364 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2365 * solib.c (solib_find_1): Likewise.
2366 (exec_file_find): Likewise.
2367 (solib_find): Likewise.
2368 * source.c (openp): Likewise.
2369 (print_source_lines_base): Likewise.
2370 (forward_search_command): Likewise.
2371 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2372 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2373 (spu_get_overlay_table): Likewise.
2374 * stabsread.c (patch_block_stabs): Likewise.
2375 (define_symbol): Likewise.
2376 (again:): Likewise.
2377 (read_member_functions): Likewise.
2378 (read_one_struct_field): Likewise.
2379 (read_enum_type): Likewise.
2380 (common_block_start): Likewise.
2381 * stack.c (read_frame_arg): Likewise.
2382 (backtrace_command): Likewise.
2383 * stap-probe.c (stap_parse_register_operand): Likewise.
2384 * symfile.c (syms_from_objfile_1): Likewise.
2385 (find_separate_debug_file): Likewise.
2386 (load_command): Likewise.
2387 (load_progress): Likewise.
2388 (load_section_callback): Likewise.
2389 (reread_symbols): Likewise.
2390 (add_filename_language): Likewise.
2391 (allocate_compunit_symtab): Likewise.
2392 (read_target_long_array): Likewise.
2393 (simple_read_overlay_table): Likewise.
2394 * symtab.c (symbol_set_names): Likewise.
2395 (resize_symbol_cache): Likewise.
2396 (rbreak_command): Likewise.
2397 (completion_list_add_name): Likewise.
2398 (completion_list_objc_symbol): Likewise.
2399 (add_filename_to_list): Likewise.
2400 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2401 * target-memory.c (target_write_memory_blocks): Likewise.
2402 * target.c (target_read_string): Likewise.
2403 (read_whatever_is_readable): Likewise.
2404 (target_read_alloc_1): Likewise.
2405 (simple_search_memory): Likewise.
2406 (target_fileio_read_alloc_1): Likewise.
2407 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2408 * top.c (command_line_input): Likewise.
2409 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2410 * tracefile.c (tracefile_fetch_registers): Likewise.
2411 * tracepoint.c (add_memrange): Likewise.
2412 (init_collection_list): Likewise.
2413 (add_aexpr): Likewise.
2414 (trace_dump_actions): Likewise.
2415 (parse_trace_status): Likewise.
2416 (parse_tracepoint_definition): Likewise.
2417 (parse_tsv_definition): Likewise.
2418 (parse_static_tracepoint_marker_definition): Likewise.
2419 * tui/tui-file.c (tui_sfileopen): Likewise.
2420 (tui_file_adjust_strbuf): Likewise.
2421 * tui/tui-io.c (tui_expand_tabs): Likewise.
2422 * tui/tui-source.c (tui_set_source_content): Likewise.
2423 * typeprint.c (find_global_typedef): Likewise.
2424 * ui-file.c (do_ui_file_xstrdup): Likewise.
2425 (ui_file_obsavestring): Likewise.
2426 (mem_file_write): Likewise.
2427 * utils.c (make_hex_string): Likewise.
2428 (get_regcomp_error): Likewise.
2429 (puts_filtered_tabular): Likewise.
2430 (gdb_realpath_keepfile): Likewise.
2431 (ldirname): Likewise.
2432 (gdb_bfd_errmsg): Likewise.
2433 (substitute_path_component): Likewise.
2434 * valops.c (search_struct_method): Likewise.
2435 (find_oload_champ_namespace_loop): Likewise.
2436 * valprint.c (print_decimal_chars): Likewise.
2437 (read_string): Likewise.
2438 (generic_emit_char): Likewise.
2439 * varobj.c (varobj_delete): Likewise.
2440 (varobj_value_get_print_value): Likewise.
2441 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2442 * windows-tdep.c (display_one_tib): Likewise.
2443 * xcoffread.c (read_xcoff_symtab): Likewise.
2444 (process_xcoff_symbol): Likewise.
2445 (swap_sym): Likewise.
2446 (scan_xcoff_symtab): Likewise.
2447 (xcoff_initial_scan): Likewise.
2448 * xml-support.c (gdb_xml_end_element): Likewise.
2449 (xml_process_xincludes): Likewise.
2450 (xml_fetch_content_from_file): Likewise.
2451 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2452 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2453
2454 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2455
2456 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2457 instead of builtin_func_ptr.
2458 (ft32_pointer_to_address): New function.
2459 (ft32_address_class_type_flags): New function.
2460 (ft32_address_class_type_flags_to_name): New function.
2461 (ft32_address_class_name_to_type_flags): New function.
2462 (ft32_gdbarch_init): Set tdep->pc_type. Call
2463 set_gdbarch_pointer_to_address,
2464 set_gdbarch_address_class_type_flags
2465 set_gdbarch_address_class_name_to_type_flags,
2466 and set_gdbarch_address_class_type_flags_to_name.
2467 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2468
2469 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2470
2471 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2472 value is a reference, actually dereference it in order to get
2473 the underlying value.
2474
2475 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2476
2477 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2478
2479 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2480
2481 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2482 * linespec.c (linespec_lexer_lex_string): Same.
2483
2484 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2485
2486 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2487
2488 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2489
2490 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2491 variable. Call aarch64_decode_adr instead of
2492 aarch64_decode_adrp.
2493 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2494 (aarch64_decode_adr): New function declaration.
2495 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2496 (aarch64_decode_adr): New function, factored out from
2497 aarch64_decode_adrp to decode both adr and adrp instructions.
2498
2499 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2500
2501 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2502 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2503 (aarch64-insn.o): New rule.
2504 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2505 (aarch64*-*-linux*): Likewise.
2506 * arch/aarch64-insn.c: New file.
2507 * arch/aarch64-insn.h: New file.
2508 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2509 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2510 arch/aarch64-insn.h.
2511 (decode_add_sub_imm): Rename to ...
2512 (aarch64_decode_add_sub_imm): ... this.
2513 (decode_adrp): Rename to ...
2514 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2515 Declare in arch/aarch64-insn.h.
2516 (decode_b): Rename to ...
2517 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2518 Declare in arch/aarch64-insn.h.
2519 (decode_bcond): Rename to ...
2520 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2521 Declare in arch/aarch64-insn.h.
2522 (decode_br): Rename to ...
2523 (aarch64_decode_br): ... this.
2524 (decode_cb): Rename to ...
2525 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2526 Declare in arch/aarch64-insn.h.
2527 (decode_eret): Rename to ...
2528 (aarch64_decode_eret): ... this.
2529 (decode_movz): Rename to ...
2530 (aarch64_decode_movz): ... this.
2531 (decode_orr_shifted_register_x): Rename to ...
2532 (aarch64_decode_orr_shifted_register_x): ... this.
2533 (decode_ret): Rename to ...
2534 (aarch64_decode_ret): ... this.
2535 (decode_stp_offset): Rename to ...
2536 (aarch64_decode_stp_offset): ... this.
2537 (decode_stp_offset_wb): Rename to ...
2538 (aarch64_decode_stp_offset_wb): ... this.
2539 (decode_stur): Rename to ...
2540 (aarch64_decode_stur): ... this.
2541 (decode_tb): Rename to ...
2542 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2543 Declare in arch/aarch64-insn.h.
2544 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2545
2546 2015-09-20 Doug Evans <xdje42@gmail.com>
2547
2548 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2549
2550 2015-09-20 Doug Evans <xdje42@gmail.com>
2551
2552 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2553 variable name that collides with a parameter.
2554
2555 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2556
2557 * dwarf2loc.c (locexpr_get_frame_base): Renames
2558 block_op_get_frame_base.
2559 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2560 block_op_get_frame_base by reference to locexpr_get_frame_base.
2561 (loclist_get_frame_base): New function, near identical copy of
2562 locexpr_get_frame_base.
2563 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2564 block_op_get_frame_base by reference to loclist_get_frame_base.
2565
2566 2015-09-19 Doug Evans <xdje42@gmail.com>
2567
2568 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2569 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2570
2571 2015-09-18 Doug Evans <xdje42@gmail.com>
2572
2573 * linux-thread-db.c (record_thread): Return the created thread.
2574 (thread_from_lwp): Likewise.
2575 (thread_db_get_thread_local_address): Update.
2576
2577 2015-09-18 Doug Evans <xdje42@gmail.com>
2578
2579 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2580 move only member demangled_name up. All uses updated.
2581
2582 2015-09-18 Doug Evans <xdje42@gmail.com>
2583
2584 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2585 kind of minimal symbol in the error message.
2586 * objfiles.c (objfile_flavour_name): New function.
2587 * objfiles.h (objfile_flavour_name): Declare.
2588
2589 2015-09-18 Yao Qi <yao.qi@linaro.org>
2590
2591 * nat/aarch64-linux.c: Include elf/common.h,
2592 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2593 (aarch64_ps_get_thread_area): New function.
2594 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2595 (aarch64_ps_get_thread_area): Declare.
2596 * aarch64-linux-nat.c (ps_get_thread_area): Call
2597 aarch64_ps_get_thread_area.
2598
2599 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2600
2601 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2602
2603 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2604
2605 * NEWS: Announce new scheduler-locking mode.
2606 * infrun.c (schedlock_replay): New.
2607 (scheduler_enums): Add schedlock_replay.
2608 (scheduler_mode): Change default to schedlock_replay.
2609 (user_visible_resume_ptid): Handle schedlock_replay.
2610 (clear_proceed_status_thread): Stop replaying if resumed thread is
2611 not replaying.
2612 (schedlock_applies): Handle schedlock_replay.
2613 (_initialize_infrun): Document new scheduler-locking mode.
2614 * record-btrace.c (record_btrace_resume): Remove code to stop other
2615 threads when not replaying the resumed thread.
2616
2617 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2618
2619 * record-btrace.c ((record_btrace_will_replay): New.
2620 (init_record_btrace_ops): Initialize to_record_will_replay.
2621 * record-full.c ((record_full_will_replay): New.
2622 (init_record_full_ops): Initialize to_record_will_replay.
2623 * target-delegates.c: Regenerated.
2624 * target.c (target_record_will_replay): New.
2625 * target.h (struct target_ops) <to_record_will_replay>: New.
2626 (target_record_will_replay): New.
2627
2628 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2629
2630 * record-btrace.c (record_btrace_resume): Call
2631 target_record_stop_replaying.
2632 (record_btrace_stop_replaying_all): New.
2633 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2634 * record-full.c (record_full_stop_replaying): New.
2635 (init_record_full_ops ): Initialize to_record_stop_replaying.
2636 * target-delegates.c: Regenerated.
2637 * target.c (target_record_stop_replaying): New.
2638 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2639 (target_record_stop_replaying): New.
2640
2641 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2642
2643 * record-btrace.c (record_btrace_xfer_partial)
2644 (record_btrace_store_registers, record_btrace_prepare_to_store):
2645 Call record_btrace_is_replaying with inferior_ptid instead of
2646 minus_one_ptid.
2647 (record_btrace_store_registers): Change error message.
2648
2649 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2650
2651 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2652 Update users to pass minus_one_ptid.
2653 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2654 * record.c (cmd_record_delete): Pass inferior_ptid to
2655 target_record_is_replaying.
2656 * target-delegates.c: Regenerated.
2657 * target.c (target_record_is_replaying): Add ptid argument.
2658 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2659 argument.
2660 (target_record_is_replaying): Add ptid argument.
2661
2662 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2663
2664 * record-btrace.c (record_btrace_open): Remove non_stop check.
2665 * NEWS: Announce that record btrace supports non-stop mode.
2666
2667 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2668
2669 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2670 in the TARKET_WAITKIND_NO_HISTORY case.
2671
2672 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2673
2674 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2675 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2676
2677 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2678
2679 * record-btrace.c (get_thread_current_frame): New.
2680 (record_btrace_start_replaying): Call get_thread_current_frame.
2681
2682 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2683
2684 * record-btrace.c (record_btrace_resume_thread): A move request
2685 overwrites a previous move request.
2686 (record_btrace_find_resume_thread): Removed.
2687 (record_btrace_resume): Resume all requested threads.
2688
2689 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2690
2691 * record-btrace.c: Include vec.h.
2692 (record_btrace_find_thread_to_move): Removed.
2693 (btrace_step_no_resumed, btrace_step_again)
2694 (record_btrace_stop_replaying_at_end): New.
2695 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2696 (record_btrace_single_step_forward): Remove calls to
2697 record_btrace_stop_replaying.
2698 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2699 BTHR_RCONT. Keep threads at the end of their history moving.
2700 (record_btrace_wait): Call record_btrace_step_thread for all threads
2701 until one reports an event. Call record_btrace_stop_replaying_at_end
2702 for the eventing thread.
2703
2704 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2705
2706 * record-btrace.c (record_btrace_single_step_forward): Return
2707 NO_HISTORY if a step brings us to the end of the execution history.
2708
2709 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2710
2711 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2712 to ...
2713 (record_btrace_single_step_forward): ... here and
2714 (record_btrace_single_step_backward): ... here.
2715
2716 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2717
2718 * record-btrace.c (btrace_step_spurious)
2719 (record_btrace_single_step_forward)
2720 (record_btrace_single_step_backward): New.
2721 (record_btrace_step_thread): Call record_btrace_single_step_forward
2722 and record_btrace_single_step_backward.
2723
2724 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2725
2726 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2727 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2728
2729 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2730
2731 * record-btrace.c (btrace_thread_flag_to_str)
2732 (record_btrace_cancel_resume): New.
2733 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2734 (record_btrace_resume): Print execution direction.
2735 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2736 (record_btrace_wait): Call record_btrace_cancel_resume.
2737
2738 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2739
2740 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2741 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2742 (record_btrace_find_thread_to_move): Also accept threads that have
2743 BTHR_STOP set.
2744 (btrace_step_stopped_on_request, record_btrace_stop): New.
2745 (record_btrace_step_thread): Support BTHR_STOP.
2746 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2747 (init_record_btrace_ops): Initialize to_stop.
2748
2749 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2750
2751 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2752 target_is_non_stop_p ().
2753
2754 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2755
2756 * ada-typeprint.c (print_array_type): Do not describe arrays as
2757 packed when they embed dynamic elements.
2758
2759 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2760
2761 * symtab.h (address_class): Document that TLS variables
2762 are handled by LOC_UNRESOLVED.
2763 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2764 * printcmd.c (address_info): Don't relocate TLS variables.
2765
2766 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2767
2768 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2769 (decode_adrp): Likewise.
2770 (decode_b): Likewise.
2771 (decode_bcond): Likewise.
2772 (decode_br): Likewise.
2773 (decode_cb): Likewise.
2774 (decode_eret): Likewise.
2775 (decode_movz): Likewise.
2776 (decode_orr_shifted_register_x): Likewise.
2777 (decode_ret): Likewise.
2778 (decode_stp_offset): Likewise.
2779 (decode_stp_offset_wb): Likewise.
2780 (decode_stur): Likewise.
2781 (decode_tb): Likewise.
2782 (aarch64_analyze_prologue): Likewise.
2783 (pass_in_x): Likewise.
2784 (pass_in_v): Likewise.
2785 (pass_on_stack): Likewise.
2786 (aarch64_push_dummy_call): Likewise.
2787 (aarch64_extract_return_value): Likewise.
2788 (aarch64_store_return_value): Likewise.
2789 (aarch64_return_value): Likewise.
2790 (aarch64_record_asimd_load_store): Likewise.
2791 (aarch64_record_load_store): Likewise.
2792 (aarch64_record_data_proc_simd_fp): Likewise.
2793
2794 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2797 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2798 (ppc64_skip_trampoline_code_1): ... here.
2799 (ppc64_skip_trampoline_code): New wrapper function.
2800 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2801
2802 2015-09-15 Yao Qi <yao.qi@linaro.org>
2803
2804 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2805 function.
2806 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2807 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2808 if target_can_do_single_step returns 1.
2809 * remote.c (struct vCont_action_support) <s, S>: New fields.
2810 (PACKET_vContSupported): New enum.
2811 (remote_protocol_features): New element for vContSupported.
2812 (remote_query_supported): Append "vContSupported+".
2813 (remote_vcont_probe): Remove support_s and support_S, use
2814 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2815 vCont packet if c and C actions are not supported.
2816 (remote_can_do_single_step): New function.
2817 (init_remote_ops): Install it to to_can_do_single_step.
2818 (_initialize_remote): Call add_packet_config_cmd.
2819 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2820 (target_can_do_single_step): New macro.
2821 * target-delegates.c: Re-generated.
2822
2823 2015-09-15 Yao Qi <yao.qi@linaro.org>
2824
2825 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2826 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2827 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2828 New function.
2829 (aarch64_siginfo_from_compat_siginfo): New function.
2830 * nat/aarch64-linux.h: Include signal.h.
2831 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2832 (compat_timer_t, compat_clock_t): Likewise.
2833 (struct compat_timeval): New.
2834 (union compat_sigval): New.
2835 (struct compat_siginfo): New.
2836 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2837 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2838 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2839 (cpt_si_band, cpt_si_fd): Likewise.
2840
2841 2015-09-14 Pedro Alves <palves@redhat.com>
2842
2843 * infrun.c (current_stop_id): New global.
2844 (get_stop_id, new_stop_id): New functions.
2845 (fetch_inferior_event): Handle normal_stop proceeding the target.
2846 (struct stop_context): New.
2847 (save_stop_context, release_stop_context_cleanup)
2848 (stop_context_changed): New functions.
2849 (normal_stop): Return true if the hook-stop changes the stop
2850 context.
2851 * infrun.h (get_stop_id): Declare.
2852 (normal_stop): Now returns int. Add documentation.
2853
2854 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2855
2856 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2857 comment. Handle packed arrays.
2858
2859 2015-09-14 Pedro Alves <palves@redhat.com>
2860
2861 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2862 mention of maint set/show target-non-stop.
2863
2864 2015-09-11 Don Breazeal <donb@codesourcery.com>
2865
2866 * NEWS: Announce new remote packets for the exec-events
2867 feature and the exec-events feature and associated commands.
2868
2869 2015-09-11 Don Breazeal <donb@codesourcery.com>
2870
2871 * remote.c (remote_exec_event_p): New function.
2872 (remote_insert_exec_catchpoint): New function.
2873 (remote_remove_exec_catchpoint): New function.
2874 (init_extended_remote_ops): Initialize extended_remote_ops
2875 members to_insert_exec_catchpoint and
2876 to_remove_exec_catchpoint.
2877
2878 2015-09-11 Don Breazeal <donb@codesourcery.com>
2879 Luis Machado <lgustavo@codesourcery.com>
2880
2881 * infrun.c (follow_exec): Use process-style ptid for
2882 exec message. Call add_inferior_with_spaces and
2883 target_follow_exec.
2884 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2885 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2886 * remote.c (remote_pspace_data): New static variable.
2887 (remote_pspace_data_cleanup): New function.
2888 (get_remote_exec_file): New function.
2889 (set_remote_exec_file_1): New function.
2890 (set_remote_exec_file): New function.
2891 (show_remote_exec_file): New function.
2892 (remote_exec_file): Delete static variable.
2893 (anonymous enum) <PACKET_exec_event_feature>: New
2894 enumeration constant.
2895 (remote_protocol_features): Add entry for exec-events feature.
2896 (remote_query_supported): Add client side of qSupported query
2897 for exec-events feature.
2898 (remote_follow_exec): New function.
2899 (remote_parse_stop_reply): Handle 'exec' stop reason.
2900 (extended_remote_run, extended_remote_create_inferior): Call
2901 get_remote_exec_file and set_remote_exec_file_1.
2902 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2903 member.
2904 (_initialize_remote): Call
2905 register_program_space_data_with_cleanup. Call
2906 add_packet_config_cmd for remote exec-events feature.
2907 Modify call to add_setshow_string_noescape_cmd for exec-file
2908 to use new functions set_remote_exec_file and
2909 show_remote_exec_file.
2910 * target-debug.h, target-delegates.c: Regenerated.
2911 * target.c (target_follow_exec): New function.
2912 * target.h (struct target_ops) <to_follow_exec>: New member.
2913 (target_follow_exec): Declare new function.
2914
2915 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2916
2917 * aarch64-tdep.c (decode_cb): Move up comment describing the
2918 encoding.
2919 (decode_tb): Fix a typo in comment above the function. Move up
2920 comment describing the encoding.
2921
2922 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2923
2924 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2925
2926 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2927
2928 PR gdb/18947
2929 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2930 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2931
2932 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2933
2934 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2935 operations.
2936
2937 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2938
2939 * ada-lang.c (ada_search_struct_field): Constify parameters
2940 and/or variables..
2941 (xget_renaming_scope): Likewise.
2942 (ada_is_redundant_range_encoding): Likewise.
2943 (scan_discrim_bound): Likewise.
2944 (to_fixed_range_type): Likewise.
2945
2946 2015-09-10 Yao Qi <yao.qi@linaro.org>
2947
2948 * breakpoint.c (download_tracepoint_locations): New local
2949 can_download_tracepoint. Check the result of
2950 target_can_download_tracepoint and save it in
2951 can_download_tracepoint if there are tracepoints to download.
2952 * linux-nat.h (enum tribool): Move it to ...
2953 * common/common-types.h: ... here.
2954
2955 2015-09-09 Pedro Alves <palves@redhat.com>
2956
2957 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2958 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2959
2960 2015-09-09 Pedro Alves <palves@redhat.com>
2961
2962 * continuations.c (add_continuation, restore_thread_cleanup)
2963 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2964 (do_all_continuations_thread, do_all_continuations)
2965 (discard_all_continuations_thread_callback)
2966 (discard_all_continuations_thread, discard_all_continuations)
2967 (add_intermediate_continuation)
2968 (do_all_intermediate_continuations_thread_callback)
2969 (do_all_intermediate_continuations_thread)
2970 (do_all_intermediate_continuations)
2971 (discard_all_intermediate_continuations_thread_callback)
2972 (discard_all_intermediate_continuations_thread)
2973 (discard_all_intermediate_continuations): Delete.
2974 * continuations.h (add_continuation, do_all_continuations)
2975 (do_all_continuations_thread, discard_all_continuations)
2976 (discard_all_continuations_thread, add_intermediate_continuation)
2977 (do_all_intermediate_continuations)
2978 (do_all_intermediate_continuations_thread)
2979 (discard_all_intermediate_continuations)
2980 (discard_all_intermediate_continuations_thread): Delete
2981 declarations.
2982 * event-top.c (stdin_event_handler): Delete references to
2983 continuations.
2984 * gdbthread.h (struct thread_info): Delete continuations and
2985 intermediate_continuations fields.
2986 * inf-loop.c (inferior_event_handler): Remove references to
2987 continuations.
2988 * infrun.c (infrun_thread_stop_requested_callback): Remove
2989 references to continuations.
2990 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2991 * thread.c: Don't include "continuations.h".
2992 (clear_thread_inferior_resources): Remove references to
2993 continuations.
2994
2995 2015-09-09 Pedro Alves <palves@redhat.com>
2996
2997 * infcall.c (struct dummy_frame_context_saver): Delete.
2998 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2999 (dummy_frame_context_saver_drop)
3000 (dummy_frame_context_saver_cleanup)
3001 (dummy_frame_context_saver_get_regs)
3002 (dummy_frame_context_saver_setup): Delete.
3003 * infcall.h (dummy_frame_context_saver_drop)
3004 (dummy_frame_context_saver_cleanup)
3005 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3006 Delete.
3007 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3008 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3009 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3010
3011 2015-09-09 Pedro Alves <palves@redhat.com>
3012
3013 * breakpoint.c: Include "thread-fsm.h".
3014 (struct until_break_command_continuation_args): Delete.
3015 (struct until_break_fsm): New.
3016 (until_break_fsm_ops): New global.
3017 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3018 (until_break_command_continuation): Delete.
3019 (until_break_fsm_clean_up): New function.
3020 (until_break_fsm_async_reply_reason): New function.
3021 (until_break_command): Adjust to create an until_break_fsm instead
3022 of a continuation.
3023 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3024 here.
3025 * infcmd.c (struct until_next_fsm): New.
3026 (until_next_fsm_ops): New global.
3027 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3028 (until_next_continuation): Delete.
3029 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3030 functions.
3031 (until_next_command): Adjust to create a new until_next_fsm
3032 instead of a continuation.
3033
3034 2015-09-09 Pedro Alves <palves@redhat.com>
3035
3036 * infcall.c: Include thread_fsm.h.
3037 (struct call_return_meta_info): New.
3038 (get_call_return_value): New function, factored out from
3039 call_function_by_hand_dummy.
3040 (struct call_thread_fsm): New.
3041 (call_thread_fsm_ops): New global.
3042 (new_call_thread_fsm, call_thread_fsm_should_stop)
3043 (call_thread_fsm_should_notify_stop): New functions.
3044 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3045 the thread.
3046 (call_function_by_hand_dummy): Create a new call_thread_fsm
3047 instance, associate it with the thread, and wait for the FSM to
3048 finish. If finished successfully, fetch the function's result
3049 value out of the FSM.
3050 * infrun.c (fetch_inferior_event): If the FSM says the stop
3051 shouldn't be notified, don't call normal_stop.
3052 (maybe_remove_breakpoints): New function, factored out from ...
3053 (normal_stop): ... here. Simplify.
3054 * infrun.h (maybe_remove_breakpoints): Declare.
3055 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3056 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3057 (thread_fsm_should_notify_stop): Declare.
3058
3059 2015-09-09 Pedro Alves <palves@redhat.com>
3060
3061 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3062 * breakpoint.c (handle_jit_event): Print debug output.
3063 (bpstat_what): Split event callback handling to ...
3064 (bpstat_run_callbacks): ... this new function.
3065 (momentary_bkpt_print_it): No longer handle bp_finish here.
3066 * breakpoint.h (bpstat_run_callbacks): Declare.
3067 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3068 <thread_fsm>: New field.
3069 (thread_cancel_execution_command): Declare.
3070 * infcmd.c: Include thread-fsm.h.
3071 (struct step_command_fsm): New.
3072 (step_command_fsm_ops): New global.
3073 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3074 (step_1): Adjust to use step_command_fsm_prepare and
3075 prepare_one_step.
3076 (struct step_1_continuation_args): Delete.
3077 (step_1_continuation): Delete.
3078 (step_command_fsm_should_stop): New function.
3079 (step_once): Delete.
3080 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3081 (prepare_one_step): New function, based on step_once.
3082 (until_next_command): Remove step_multi reference.
3083 (struct return_value_info): New.
3084 (print_return_value): Rename to ...
3085 (print_return_value_1): ... this. New struct return_value_info
3086 parameter. Adjust.
3087 (print_return_value): Reimplement as wrapper around
3088 print_return_value_1.
3089 (struct finish_command_fsm): New.
3090 (finish_command_continuation): Delete.
3091 (finish_command_fsm_ops): New global.
3092 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3093 functions.
3094 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3095 New.
3096 (finish_command_continuation_free_arg): Delete.
3097 (finish_command_fsm_async_reply_reason): New.
3098 (finish_backward, finish_forward): Change symbol parameter to a
3099 finish_command_fsm. Adjust.
3100 (finish_command): Create a finish_command_fsm. Adjust.
3101 * infrun.c: Include "thread-fsm.h".
3102 (clear_proceed_status_thread): Delete the thread's FSM.
3103 (infrun_thread_stop_requested_callback): Cancel the thread's
3104 execution command.
3105 (clean_up_just_stopped_threads_fsms): New function.
3106 (fetch_inferior_event): Handle the event_thread's should_stop
3107 method saying the command isn't done yet.
3108 (process_event_stop_test): Run breakpoint callbacks here.
3109 (print_stop_event): Rename to ...
3110 (print_stop_location): ... this.
3111 (restore_current_uiout_cleanup): New function.
3112 (print_stop_event): Reimplement.
3113 (normal_stop): No longer notify the end_stepping_range observers
3114 here handle "step N" nor "finish" here. No longer call
3115 print_stop_event here.
3116 * infrun.h (struct return_value_info): Forward declare.
3117 (print_return_value): Declare.
3118 (print_stop_event): Change prototype.
3119 * thread-fsm.c: New file.
3120 * thread-fsm.h: New file.
3121 * thread.c: Include "thread-fsm.h".
3122 (thread_cancel_execution_command): New function.
3123 (clear_thread_inferior_resources): Call it.
3124 * cli/cli-interp.c (cli_on_normal_stop): New function.
3125 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3126 observer.
3127 * mi/mi-interp.c: Include "thread-fsm.h".
3128 (restore_current_uiout_cleanup): Delete.
3129 (mi_on_normal_stop): If the thread has an FSM associated, and it
3130 finished, ask it for the async-reply-reason to print. Always call
3131 print_stop_event here, regardless of the top-level interpreter.
3132 Check bpstat_what to tell whether an asynchronous breakpoint hit
3133 triggered.
3134 * tui/tui-interp.c (tui_on_normal_stop): New function.
3135 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3136
3137 2015-09-09 Pedro Alves <palves@redhat.com>
3138
3139 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3140 check whether the target can async.
3141 * inf-loop.c (inferior_event_handler): Only call target_async if
3142 the target can async.
3143 * infcall.c: Include top.h and interps.h.
3144 (run_inferior_call): For the interpreter to sync mode while
3145 running the infcall. Call wait_sync_command_done instead of
3146 wait_for_inferior plus normal_stop.
3147 * infcmd.c (prepare_execution_command): Don't check whether the
3148 target can async when running in the foreground.
3149 (step_1): Delete synchronous case handling.
3150 (step_once): Always install a continuation, even in sync mode.
3151 (until_next_command, finish_forward): Don't check whether the
3152 target can async.
3153 (attach_command_post_wait, notice_new_inferior): Always install a
3154 continuation, even in sync mode.
3155 * infrun.c (mark_infrun_async_event_handler): New function.
3156 (proceed): In sync mode, mark infrun's event source instead of
3157 waiting for events here.
3158 (fetch_inferior_event): If the target can't async, do a blocking
3159 wait.
3160 (prepare_to_wait): In sync mode, mark infrun's event source.
3161 (infrun_async_inferior_event_handler): No longer bail out if the
3162 target can't async.
3163 * infrun.h (mark_infrun_async_event_handler): New declaration.
3164 * linux-nat.c (linux_nat_wait_1): Remove calls to
3165 set_sigint_trap/clear_sigint_trap.
3166 (linux_nat_terminal_inferior): No longer check whether the target
3167 can async.
3168 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3169 comment.
3170 (mi_execute_command_input_handler): No longer check whether the
3171 target is async. Update and simplify comment.
3172 * target.c (default_target_wait): New function.
3173 * target.h (struct target_ops) <to_wait>: Now defaults to
3174 default_target_wait.
3175 (default_target_wait): Declare.
3176 * top.c (wait_sync_command_done): New function, factored out from
3177 ...
3178 (maybe_wait_sync_command_done): ... this.
3179 * top.h (wait_sync_command_done): Declare.
3180 * target-delegates.c: Regenerate.
3181
3182 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3183
3184 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3185 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3186 Remove include of sys/utsname.h.
3187 (linux_determine_kernel_ptr_bits): Remove.
3188 (linux_determine_kernel_start): New.
3189 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3190 Update check.
3191 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3192 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3193 initialization.
3194 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3195 assignment.
3196
3197 2015-09-07 Pedro Alves <palves@redhat.com>
3198
3199 * guile/guile-internal.h (as_a_scm_t_subr): New.
3200 * guile/guile.c (misc_guile_functions): Use it.
3201 * guile/scm-arch.c (arch_functions): Use it.
3202 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3203 Use it.
3204 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3205 * guile/scm-cmd.c (command_functions): Use it.
3206 * guile/scm-disasm.c (disasm_functions): Use it.
3207 * guile/scm-exception.c (exception_functions)
3208 (private_exception_functions): Use it.
3209 * guile/scm-frame.c (frame_functions)
3210 * guile/scm-gsmob.c (gsmob_functions): Use it.
3211 * guile/scm-iterator.c (iterator_functions): Use it.
3212 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3213 * guile/scm-math.c (math_functions): Use it.
3214 * guile/scm-objfile.c (objfile_functions): Use it.
3215 * guile/scm-param.c (parameter_functions): Use it.
3216 * guile/scm-ports.c (port_functions, private_port_functions): Use
3217 it.
3218 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3219 * guile/scm-progspace.c (pspace_functions): Use it.
3220 * guile/scm-string.c (string_functions): Use it.
3221 * guile/scm-symbol.c (symbol_functions): Use it.
3222 * guile/scm-symtab.c (symtab_functions): Use it.
3223 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3224 it.
3225 * guile/scm-value.c (value_functions): Use it.
3226
3227 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3228
3229 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3230 (tui_next_win): Likewise.
3231 (tui_prev_win): Likewise.
3232 (tui_partial_win_by_name): Likewise.
3233 (tui_init_generic_part): Likewise.
3234 (init_content_element): Likewise.
3235 (tui_del_window): Likewise.
3236 (tui_free_window): Likewise.
3237 (tui_del_data_windows): Likewise.
3238 (tui_free_data_content): Likewise.
3239 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3240 * tui/tui-regs.c (tui_show_register_group): Likewise.
3241 * tui/tui-win.c (tui_resize_all): Likewise.
3242 (tui_set_focus): Likewise.
3243 (tui_set_win_height): Likewise.
3244 (make_invisible_and_set_new_height): Likewise.
3245 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3246 * tui/tui-wingeneral.c (make_visible): Likewise.
3247
3248 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3249
3250 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3251
3252 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3255 pointer.
3256 * dbxread.c (dbx_end_psymtab): Likewise.
3257 * gnu-nat.c (gnu_write_inferior): Likewise.
3258 * mdebugread.c (cross_ref): Likewise.
3259 * p-valprint.c (pascal_val_print): Likewise.
3260 * xcoffread.c (xcoff_end_psymtab): Likewise.
3261
3262 2015-09-04 Yao Qi <yao.qi@linaro.org>
3263
3264 * NEWS: Mention the aarch64 multi-arch debugging support.
3265
3266 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3267
3268 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3269 type instead of a TYPE_CODE_INT one for the string_char_type
3270 and the ada_primitive_type_char types.
3271
3272 2015-09-03 Yao Qi <yao.qi@linaro.org>
3273
3274 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3275 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3276 aarch64_linux_region_ok_for_watchpoint.
3277 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3278 New function.
3279 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3280 Declare it.
3281
3282 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3283
3284 * gdb_obstack.h (obstack_strdup): Declare.
3285 * gdb_obstack.c (obstack_strdup): Define.
3286 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3287 * gdbarch.c: Regenerate.
3288 * gdbarch.h: Regenerate.
3289 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3290
3291 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3292
3293 * gdbtypes.c (copy_type_recursive): Update documentation.
3294
3295 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3296
3297 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3298 as zero.
3299
3300 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3301
3302 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3303
3304 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3305
3306 * solib-svr4.c (solib_event_probe_action): Call
3307 get_probe_argument_count using TRY...CATCH.
3308 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3309
3310 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3311
3312 * probe.h (struct probe_ops) <get_probe_argument_count,
3313 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3314 the comment that the function can throw an exception.
3315 (get_probe_argument_count): Likewise.
3316 (evaluate_probe_argument): Likewise.
3317 * stap-probe.c (stap_get_opcode): Call error instead of
3318 internal_error.
3319 (stap_get_expected_argument_type): Likewise. Add argument
3320 'probe'. Improve error message by mentioning the probe's name.
3321 (stap_parse_probe_arguments): Adjust call to
3322 stap_get_expected_argument_type.
3323 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3324 not zero. Call internal_error if GDB requests an argument but the
3325 probe has no arguments.
3326
3327 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3328
3329 * ada-lang.c (ada_resolve_function): Do not ask the user what
3330 match to use when in completion mode.
3331
3332 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3335 cast of NULL.
3336
3337 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3338
3339 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3340 call_abi using XSHAL_ABI macro.
3341
3342 2015-08-29 Doug Evans <xdje42@gmail.com>
3343
3344 * symtab.h (struct symbol): Tweak comment.
3345
3346 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3347
3348 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3349 gdbarch obstack instead of on the heap. Update commentary
3350 accordingly.
3351
3352 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3353
3354 GDB 7.10 released.
3355
3356 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3357
3358 * NEWS: Update entry about non-8-bits addressable memory.
3359
3360 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3361
3362 Revert:
3363 2014-11-06 Doug Evans <xdje42@gmail.com>
3364 * solib.c (solib_global_lookup): Fetch arch from objfile,
3365 not target_gdbarch.
3366
3367 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3368
3369 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3370 attempt to relocate a TLS variable offset.
3371
3372 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3373
3374 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3375 registered yet. Set inferior_ptid while calling target_read_memory.
3376
3377 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3378
3379 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3380 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3381 * linux-nat.c (check_stopped_by_breakpoint): Use
3382 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3383
3384 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3385
3386 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3387 thread was not yet discovered, use thread_from_lwp instead of
3388 calling thread_db_find_new_threads_1.
3389
3390 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3391
3392 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3393 statements.
3394
3395 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3396
3397 * NEWS: Document support for non-8-bits addressable memory.
3398
3399 2015-08-27 Pedro Alves <palves@redhat.com>
3400
3401 * configure.ac: Remove AC_TYPE_SIGNAL call.
3402 * configure, config.in: Regenerate.
3403
3404 2015-08-27 Pedro Alves <palves@redhat.com>
3405
3406 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3407 * extension-priv.h: Include signal.h.
3408 (struct signal_handler) <handler>: Change type to sighandler_t.
3409 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3410 * inflow.c (sigint_ours, sigquit_ours): Change type to
3411 sighandler_t.
3412 (child_terminal_inferior): Remove casts.
3413 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3414 (osig): Change type to sighandler_t.
3415 * nto-procfs.c (ofunc): Change type to sighandler_t.
3416 (procfs_wait): Remove casts.
3417 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3418 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3419 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3420
3421 2015-08-27 Pedro Alves <palves@redhat.com>
3422
3423 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3424 * gnulib/aclocal.m4: Renegerate.
3425 * gnulib/config.in: Renegerate.
3426 * gnulib/configure: Renegerate.
3427 * gnulib/import/Makefile.am: Update.
3428 * gnulib/import/Makefile.in: Regenerate.
3429 * gnulib/import/m4/gnulib-cache.m4: Update.
3430 * gnulib/import/m4/gnulib-comp.m4: Update.
3431 * gnulib/import/m4/signal_h.m4: New file.
3432 * gnulib/import/signal.in.h: New file.
3433
3434 2015-08-27 Pedro Alves <palves@redhat.com>
3435
3436 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3437 (MIN_MEMORY_PACKET_SIZE): New.
3438 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3439 (get_memory_packet_size): Adjust. No longer limit the max packet
3440 size.
3441 (set_memory_packet_size): Adjust, and remove dead code.
3442 (remote_check_symbols): Use xmalloc and a cleanup instead of
3443 alloca.
3444 (remote_packet_size): No longer cap the packet size.
3445 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3446
3447 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3448
3449 * compile/compile.c (compile_to_object): Mention language in
3450 error message.
3451
3452 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3453
3454 * target.c (target_pre_inferior): Unset attach_flag.
3455
3456 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3457
3458 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3459 * gdbarch.c: Re-generate.
3460
3461 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3462
3463 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3464 function with the XNEW-family equivalent.
3465 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3466 * ada-exp.y (write_ambiguous_var): Likewise.
3467 * ada-lang.c (resolve_subexp): Likewise.
3468 (user_select_syms): Likewise.
3469 (assign_aggregate): Likewise.
3470 (ada_evaluate_subexp): Likewise.
3471 (cache_symbol): Likewise.
3472 * addrmap.c (allocate_key): Likewise.
3473 (addrmap_create_mutable): Likewise.
3474 * aix-thread.c (sync_threadlists): Likewise.
3475 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3476 (alpha_gdbarch_init): Likewise.
3477 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3478 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3479 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3480 * arm-tdep.c (push_stack_item): Likewise.
3481 (arm_displaced_step_copy_insn): Likewise.
3482 (arm_gdbarch_init): Likewise.
3483 (_initialize_arm_tdep): Likewise.
3484 * avr-tdep.c (push_stack_item): Likewise.
3485 * ax-general.c (new_agent_expr): Likewise.
3486 * block.c (block_initialize_namespace): Likewise.
3487 * breakpoint.c (alloc_counted_command_line): Likewise.
3488 (update_dprintf_command_list): Likewise.
3489 (parse_breakpoint_sals): Likewise.
3490 (decode_static_tracepoint_spec): Likewise.
3491 (until_break_command): Likewise.
3492 (clear_command): Likewise.
3493 (update_global_location_list): Likewise.
3494 (get_breakpoint_objfile_data) Likewise.
3495 * btrace.c (ftrace_new_function): Likewise.
3496 (btrace_set_insn_history): Likewise.
3497 (btrace_set_call_history): Likewise.
3498 * buildsym.c (add_symbol_to_list): Likewise.
3499 (record_pending_block): Likewise.
3500 (start_subfile): Likewise.
3501 (start_buildsym_compunit): Likewise.
3502 (push_subfile): Likewise.
3503 (end_symtab_get_static_block): Likewise.
3504 (buildsym_init): Likewise.
3505 * cli/cli-cmds.c (source_command): Likewise.
3506 * cli/cli-decode.c (add_cmd): Likewise.
3507 * cli/cli-script.c (build_command_line): Likewise.
3508 (setup_user_args): Likewise.
3509 (realloc_body_list): Likewise.
3510 (process_next_line): Likewise.
3511 (copy_command_lines): Likewise.
3512 * cli/cli-setshow.c (do_set_command): Likewise.
3513 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3514 * coffread.c (coff_locate_sections): Likewise.
3515 (coff_symtab_read): Likewise.
3516 (coff_read_struct_type): Likewise.
3517 * common/cleanups.c (make_my_cleanup2): Likewise.
3518 * common/common-exceptions.c (throw_it): Likewise.
3519 * common/filestuff.c (make_cleanup_close): Likewise.
3520 * common/format.c (parse_format_string): Likewise.
3521 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3522 * compile/compile-object-load.c (munmap_list_add): Likewise.
3523 (compile_object_load): Likewise.
3524 * compile/compile-object-run.c (compile_object_run): Likewise.
3525 * compile/compile.c (append_args): Likewise.
3526 * corefile.c (specify_exec_file_hook): Likewise.
3527 * cp-support.c (make_symbol_overload_list): Likewise.
3528 * cris-tdep.c (push_stack_item): Likewise.
3529 (cris_gdbarch_init): Likewise.
3530 * ctf.c (ctf_trace_file_writer_new): Likewise.
3531 * dbxread.c (init_header_files): Likewise.
3532 (add_new_header_file): Likewise.
3533 (init_bincl_list): Likewise.
3534 (dbx_end_psymtab): Likewise.
3535 (start_psymtab): Likewise.
3536 (dbx_end_psymtab): Likewise.
3537 * dcache.c (dcache_init): Likewise.
3538 * dictionary.c (dict_create_hashed): Likewise.
3539 (dict_create_hashed_expandable): Likewise.
3540 (dict_create_linear): Likewise.
3541 (dict_create_linear_expandable): Likewise.
3542 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3543 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3544 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3545 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3546 (decode_frame_entry_1): Likewise.
3547 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3548 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3549 * dwarf2read.c (dwarf2_has_info): Likewise.
3550 (create_signatured_type_table_from_index): Likewise.
3551 (dwarf2_read_index): Likewise.
3552 (dw2_get_file_names_reader): Likewise.
3553 (create_all_type_units): Likewise.
3554 (read_cutu_die_from_dwo): Likewise.
3555 (init_tu_and_read_dwo_dies): Likewise.
3556 (init_cutu_and_read_dies): Likewise.
3557 (create_all_comp_units): Likewise.
3558 (queue_comp_unit): Likewise.
3559 (inherit_abstract_dies): Likewise.
3560 (read_call_site_scope): Likewise.
3561 (dwarf2_add_field): Likewise.
3562 (dwarf2_add_typedef): Likewise.
3563 (dwarf2_add_member_fn): Likewise.
3564 (attr_to_dynamic_prop): Likewise.
3565 (abbrev_table_alloc_abbrev): Likewise.
3566 (abbrev_table_read_table): Likewise.
3567 (add_include_dir): Likewise.
3568 (add_file_name): Likewise.
3569 (dwarf_decode_line_header): Likewise.
3570 (dwarf2_const_value_attr): Likewise.
3571 (dwarf_alloc_block): Likewise.
3572 (parse_macro_definition): Likewise.
3573 (set_die_type): Likewise.
3574 (write_psymtabs_to_index): Likewise.
3575 (create_cus_from_index): Likewise.
3576 (dwarf2_create_include_psymtab): Likewise.
3577 (process_psymtab_comp_unit_reader): Likewise.
3578 (build_type_psymtab_dependencies): Likewise.
3579 (read_comp_units_from_section): Likewise.
3580 (compute_compunit_symtab_includes): Likewise.
3581 (create_dwo_unit_in_dwp_v1): Likewise.
3582 (create_dwo_unit_in_dwp_v2): Likewise.
3583 (read_func_scope): Likewise.
3584 (process_structure_scope): Likewise.
3585 (mark_common_block_symbol_computed): Likewise.
3586 (load_partial_dies): Likewise.
3587 (dwarf2_symbol_mark_computed): Likewise.
3588 * elfread.c (elf_symfile_segments): Likewise.
3589 (elf_read_minimal_symbols): Likewise.
3590 * environ.c (make_environ): Likewise.
3591 * eval.c (evaluate_subexp_standard): Likewise.
3592 * event-loop.c (create_file_handler): Likewise.
3593 (create_async_signal_handler): Likewise.
3594 (create_async_event_handler): Likewise.
3595 (create_timer): Likewise.
3596 * exec.c (build_section_table): Likewise.
3597 * fbsd-nat.c (fbsd_remember_child): Likewise.
3598 * fork-child.c (fork_inferior): Likewise.
3599 * frv-tdep.c (new_variant): Likewise.
3600 * gdbarch.sh (gdbarch_alloc): Likewise.
3601 (append_name): Likewise.
3602 * gdbtypes.c (rank_function): Likewise.
3603 (copy_type_recursive): Likewise.
3604 (add_dyn_prop): Likewise.
3605 * gnu-nat.c (make_proc): Likewise.
3606 (make_inf): Likewise.
3607 (gnu_write_inferior): Likewise.
3608 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3609 (build_std_type_info_type): Likewise.
3610 * guile/scm-param.c (compute_enum_list): Likewise.
3611 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3612 * guile/scm-value.c (gdbscm_value_call): Likewise.
3613 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3614 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3615 (read_unwind_info): Likewise.
3616 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3617 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3618 (call_function_by_hand_dummy): Likewise.
3619 * infcmd.c (step_once): Likewise.
3620 (finish_forward): Likewise.
3621 (attach_command): Likewise.
3622 (notice_new_inferior): Likewise.
3623 * inferior.c (add_inferior_silent): Likewise.
3624 * infrun.c (add_displaced_stepping_state): Likewise.
3625 (save_infcall_control_state): Likewise.
3626 (save_inferior_ptid): Likewise.
3627 (_initialize_infrun): Likewise.
3628 * jit.c (bfd_open_from_target_memory): Likewise.
3629 (jit_gdbarch_data_init): Likewise.
3630 * language.c (add_language): Likewise.
3631 * linespec.c (decode_line_2): Likewise.
3632 * linux-nat.c (add_to_pid_list): Likewise.
3633 (add_initial_lwp): Likewise.
3634 * linux-thread-db.c (add_thread_db_info): Likewise.
3635 (record_thread): Likewise.
3636 (info_auto_load_libthread_db): Likewise.
3637 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3638 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3639 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3640 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3641 * macrocmd.c (macro_define_command): Likewise.
3642 * macroexp.c (gather_arguments): Likewise.
3643 * macroscope.c (sal_macro_scope): Likewise.
3644 * macrotab.c (new_macro_table): Likewise.
3645 * mdebugread.c (push_parse_stack): Likewise.
3646 (parse_partial_symbols): Likewise.
3647 (parse_symbol): Likewise.
3648 (psymtab_to_symtab_1): Likewise.
3649 (new_block): Likewise.
3650 (new_psymtab): Likewise.
3651 (mdebug_build_psymtabs): Likewise.
3652 (add_pending): Likewise.
3653 (elfmdebug_build_psymtabs): Likewise.
3654 * mep-tdep.c (mep_gdbarch_init): Likewise.
3655 * mi/mi-main.c (mi_execute_command): Likewise.
3656 * mi/mi-parse.c (mi_parse_argv): Likewise.
3657 * minidebug.c (lzma_open): Likewise.
3658 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3659 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3660 * mips-tdep.c (mips_gdbarch_init): Likewise.
3661 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3662 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3663 * mt-tdep.c (mt_registers_info): Likewise.
3664 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3665 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3666 (linux_enable_pt): Likewise.
3667 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3668 (linux_xfer_osdata_processgroups): Likewise.
3669 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3670 * nto-procfs.c (procfs_meminfo): Likewise.
3671 * objc-lang.c (start_msglist): Likewise.
3672 (selectors_info): Likewise.
3673 (classes_info): Likewise.
3674 (find_methods): Likewise.
3675 * objfiles.c (allocate_objfile): Likewise.
3676 (update_section_map): Likewise.
3677 * osabi.c (gdbarch_register_osabi): Likewise.
3678 (gdbarch_register_osabi_sniffer): Likewise.
3679 * parse.c (start_arglist): Likewise.
3680 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3681 (hwdebug_insert_point): Likewise.
3682 * printcmd.c (display_command): Likewise.
3683 (ui_printf): Likewise.
3684 * procfs.c (create_procinfo): Likewise.
3685 (load_syscalls): Likewise.
3686 (proc_get_LDT_entry): Likewise.
3687 (proc_update_threads): Likewise.
3688 * prologue-value.c (make_pv_area): Likewise.
3689 (pv_area_store): Likewise.
3690 * psymtab.c (extend_psymbol_list): Likewise.
3691 (init_psymbol_list): Likewise.
3692 (allocate_psymtab): Likewise.
3693 * python/py-inferior.c (add_thread_object): Likewise.
3694 * python/py-param.c (compute_enum_values): Likewise.
3695 * python/py-value.c (valpy_call): Likewise.
3696 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3697 * python/python.c (ensure_python_env): Likewise.
3698 * record-btrace.c (record_btrace_start_replaying): Likewise.
3699 * record-full.c (record_full_reg_alloc): Likewise.
3700 (record_full_mem_alloc): Likewise.
3701 (record_full_end_alloc): Likewise.
3702 (record_full_core_xfer_partial): Likewise.
3703 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3704 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3705 * remote-notif.c (remote_notif_state_allocate): Likewise.
3706 * remote.c (demand_private_info): Likewise.
3707 (remote_notif_stop_alloc_reply): Likewise.
3708 (remote_enable_btrace): Likewise.
3709 * reverse.c (save_bookmark_command): Likewise.
3710 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3711 * rx-tdep.c (rx_gdbarch_init): Likewise.
3712 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3713 * ser-go32.c (dos_get_tty_state): Likewise.
3714 (dos_copy_tty_state): Likewise.
3715 * ser-mingw.c (ser_windows_open): Likewise.
3716 (ser_console_wait_handle): Likewise.
3717 (ser_console_get_tty_state): Likewise.
3718 (make_pipe_state): Likewise.
3719 (net_windows_open): Likewise.
3720 * ser-unix.c (hardwire_get_tty_state): Likewise.
3721 (hardwire_copy_tty_state): Likewise.
3722 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3723 * solib-dsbt.c (dsbt_current_sos): Likewise.
3724 (dsbt_relocate_main_executable): Likewise.
3725 * solib-frv.c (frv_current_sos): Likewise.
3726 (frv_relocate_main_executable): Likewise.
3727 * solib-spu.c (spu_bfd_fopen): Likewise.
3728 * solib-svr4.c (lm_info_read): Likewise.
3729 (svr4_copy_library_list): Likewise.
3730 (svr4_default_sos): Likewise.
3731 * source.c (find_source_lines): Likewise.
3732 (line_info): Likewise.
3733 (add_substitute_path_rule): Likewise.
3734 * spu-linux-nat.c (spu_bfd_open): Likewise.
3735 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3736 * stabsread.c (dbx_lookup_type): Likewise.
3737 (read_type): Likewise.
3738 (read_member_functions): Likewise.
3739 (read_struct_fields): Likewise.
3740 (read_baseclasses): Likewise.
3741 (read_args): Likewise.
3742 (_initialize_stabsread): Likewise.
3743 * stack.c (func_command): Likewise.
3744 * stap-probe.c (handle_stap_probe): Likewise.
3745 * symfile.c (addrs_section_sort): Likewise.
3746 (addr_info_make_relative): Likewise.
3747 (load_section_callback): Likewise.
3748 (add_symbol_file_command): Likewise.
3749 (init_filename_language_table): Likewise.
3750 * symtab.c (create_filename_seen_cache): Likewise.
3751 (sort_search_symbols_remove_dups): Likewise.
3752 (search_symbols): Likewise.
3753 * target.c (make_cleanup_restore_target_terminal): Likewise.
3754 * thread.c (new_thread): Likewise.
3755 (enable_thread_stack_temporaries): Likewise.
3756 (make_cleanup_restore_current_thread): Likewise.
3757 (thread_apply_all_command): Likewise.
3758 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3759 * top.c (gdb_readline_wrapper): Likewise.
3760 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3761 * tracepoint.c (trace_find_line_command): Likewise.
3762 (all_tracepoint_actions_and_cleanup): Likewise.
3763 (make_cleanup_restore_current_traceframe): Likewise.
3764 (get_uploaded_tp): Likewise.
3765 (get_uploaded_tsv): Likewise.
3766 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3767 (tui_alloc_win_info): Likewise.
3768 (tui_alloc_content): Likewise.
3769 (tui_add_content_elements): Likewise.
3770 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3771 (tui_set_disassem_content): Likewise.
3772 * ui-file.c (ui_file_new): Likewise.
3773 (stdio_file_new): Likewise.
3774 (tee_file_new): Likewise.
3775 * utils.c (make_cleanup_restore_integer): Likewise.
3776 (add_internal_problem_command): Likewise.
3777 * v850-tdep.c (v850_gdbarch_init): Likewise.
3778 * valops.c (find_oload_champ): Likewise.
3779 * value.c (allocate_value_lazy): Likewise.
3780 (record_latest_value): Likewise.
3781 (create_internalvar): Likewise.
3782 * varobj.c (install_variable): Likewise.
3783 (new_variable): Likewise.
3784 (new_root_variable): Likewise.
3785 (cppush): Likewise.
3786 (_initialize_varobj): Likewise.
3787 * windows-nat.c (windows_make_so): Likewise.
3788 * x86-nat.c (x86_add_process): Likewise.
3789 * xcoffread.c (arrange_linetable): Likewise.
3790 (allocate_include_entry): Likewise.
3791 (process_linenos): Likewise.
3792 (SYMBOL_DUP): Likewise.
3793 (xcoff_start_psymtab): Likewise.
3794 (xcoff_end_psymtab): Likewise.
3795 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3796 * xtensa-tdep.c (xtensa_register_type): Likewise.
3797 * gdbarch.c: Regenerate.
3798 * gdbarch.h: Regenerate.
3799
3800 2015-08-25 Don Breazeal <donb@codesourcery.com>
3801
3802 * infrun.c (follow_exec): Re-order operations for
3803 handling follow-exec-mode "new".
3804 (handle_inferior_event_1): Assign ecs->event_thread
3805 to the current thread.
3806 * remote.c (get_remote_arch_state): Add an assertion.
3807
3808 2015-08-26 Pedro Alves <palves@redhat.com>
3809
3810 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3811
3812 2015-08-25 Pedro Alves <palves@redhat.com>
3813
3814 PR gdb/18804
3815 * defs.h (maybe_quit): Declare.
3816 (QUIT): Now calls maybe_quit.
3817 * event-loop.c (clear_async_signal_handler)
3818 (async_signal_handler_is_marked): New functions.
3819 * event-loop.h (async_signal_handler_is_marked)
3820 (clear_async_signal_handler): New declarations.
3821 * remote.c (remote_check_pending_interrupt): New function.
3822 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3823 longer check whether the target is async. If waiting for a stop
3824 reply, and a Ctrl-C as been sent to the target, offer to
3825 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3826 Otherwise do not disconnect and throw a quit.
3827 (_initialize_remote): Install remote_check_pending_interrupt as
3828 to_check_pending_interrupt.
3829 * target.c (target_check_pending_interrupt): New function.
3830 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3831 field.
3832 (target_check_pending_interrupt): New declaration.
3833 * utils.c (maybe_quit): New function.
3834 * target-delegates.c: Regenerate.
3835
3836 2015-08-25 Yao Qi <yao.qi@linaro.org>
3837
3838 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3839 Rename local variable pid to tid, and get lwpid of lwp. Update
3840 debug output.
3841
3842 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3843
3844 * ada-lang.c (ada_read_var_value): Add a var_block argument
3845 and pass it to default_read_var_value.
3846 * block.c (block_static_link): New accessor.
3847 * block.h (block_static_link): Declare it.
3848 * buildsym.c (finish_block_internal): Add a static_link
3849 argument. If there is a static link, associate it to the new
3850 block.
3851 (finish_block): Add a static link argument and pass it to
3852 finish_block_internal.
3853 (end_symtab_get_static_block): Update calls to finish_block and
3854 to finish_block_internal.
3855 (end_symtab_with_blockvector): Update call to
3856 finish_block_internal.
3857 * buildsym.h: Forward-declare struct dynamic_prop.
3858 (struct context_stack): Add a static_link field.
3859 (finish_block): Add a static link argument.
3860 * c-exp.y: Remove an obsolete comment (evaluation of variables
3861 already start from the selected frame, and now they climb *up*
3862 the call stack) and propagate the block information to the
3863 produced expression.
3864 * d-exp.y: Likewise.
3865 * f-exp.y: Likewise.
3866 * go-exp.y: Likewise.
3867 * jv-exp.y: Likewise.
3868 * m2-exp.y: Likewise.
3869 * p-exp.y: Likewise.
3870 * coffread.c (coff_symtab_read): Update calls to finish_block.
3871 * dbxread.c (process_one_symbol): Likewise.
3872 * xcoffread.c (read_xcoff_symtab): Likewise.
3873 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3874 "sym" parameter to struct block_symbol, update its uses and pass
3875 its block to calls to read_var_value.
3876 (convert_symbol_sym): Update the calls to convert_one_symbol.
3877 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3878 call to read_var_value.
3879 * dwarf2loc.c (block_op_get_frame_base): New.
3880 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3881 get_frame_base method.
3882 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3883 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3884 instead of the selected frame in order to evaluate the
3885 expression.
3886 (dwarf2_evaluate_property): Add a frame argument. Update call
3887 to dwarf2_locexpr_baton_eval to provide a frame in available and
3888 to handle the absence of address stack.
3889 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3890 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3891 declaration.
3892 (read_func_scope): Record any available static link description.
3893 Update call to finish_block.
3894 (read_lexical_block_scope): Update call to finish_block.
3895 * findvar.c (follow_static_link): New.
3896 (get_hosting_frame): New.
3897 (default_read_var_value): Add a var_block argument. Use
3898 get_hosting_frame to handle non-local references.
3899 (read_var_value): Add a var_block argument and pass it to the
3900 LA_READ_VAR_VALUE method.
3901 * gdbtypes.c (resolve_dynamic_range): Update calls to
3902 dwarf2_evaluate_property.
3903 (resolve_dynamic_type_internal): Likewise.
3904 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3905 read_var_value, passing it the block coming from symbol lookup.
3906 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3907 read_var_value (TODO).
3908 * infcmd.c (finish_command_continuation): Update call to
3909 read_var_value, passing it the block coming from symbol lookup.
3910 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3911 * language.h (struct language_defn): Add a var_block argument to
3912 the LA_READ_VAR_VALUE method.
3913 * objfiles.c (struct static_link_htab_entry): New.
3914 (static_link_htab_entry_hash): New.
3915 (static_link_htab_entry_eq): New.
3916 (objfile_register_static_link): New.
3917 (objfile_lookup_static_link): New.
3918 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3919 * objfiles.h: Include hashtab.h.
3920 (struct objfile): Add a static_links field.
3921 (objfile_register_static_link): New.
3922 (objfile_lookup_static_link): New.
3923 * printcmd.c (print_variable_and_value): Update call to
3924 read_var_value.
3925 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3926 * python/py-frame.c (frapy_read_var): Update call to
3927 read_var_value, passing it the block coming from symbol lookup.
3928 * python/py-framefilter.c (extract_sym): Add a sym_block
3929 parameter and set the pointed value to NULL (TODO).
3930 (enumerate_args): Update call to extract_sym.
3931 (enumerate_locals): Update calls to extract_sym and to
3932 read_var_value.
3933 * python/py-symbol.c (sympy_value): Update call to
3934 read_var_value (TODO).
3935 * stack.c (read_frame_local): Update call to read_var_value.
3936 (read_frame_arg): Likewise.
3937 (return_command): Likewise.
3938 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3939 method.
3940 (struct symbol): Add a block field.
3941 (SYMBOL_BLOCK): New accessor.
3942 * valops.c (value_of_variable): Remove frame/block handling and
3943 pass the block argument to read_var_value, which does this job
3944 now.
3945 (value_struct_elt_for_reference): Update calls to
3946 read_var_value.
3947 (value_of_this): Pass the block found to read_var_value.
3948 * value.h (read_var_value): Add a var_block argument.
3949 (default_read_var_value): Likewise.
3950
3951 2015-08-25 Yao Qi <yao.qi@linaro.org>
3952
3953 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3954 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3955 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3956
3957 2015-08-25 Yao Qi <yao.qi@linaro.org>
3958
3959 * Makefile.in (aarch64-liunx.o): New rule.
3960 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3961 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3962 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3963 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3964 extern.
3965 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3966 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3967 * nat/aarch64-linux.c: New file.
3968 * nat/aarch64-linux.h: New file.
3969
3970 2015-08-25 Yao Qi <yao.qi@linaro.org>
3971
3972 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3973 lwp_arch_private_info and ptid_of_lwp.
3974
3975 2015-08-25 Yao Qi <yao.qi@linaro.org>
3976
3977 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3978 Move it to nat/aarch64-linux-hw-point.c.
3979 (debug_reg_change_callback): Likewise.
3980 (aarch64_notify_debug_reg_change): :Likewise.
3981 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3982 (aarch64_dr_update_callback_param): New.
3983 (debug_reg_change_callback): New function.
3984 (aarch64_notify_debug_reg_change): Likewise.
3985 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3986 Remove the declaration.
3987
3988 2015-08-25 Yao Qi <yao.qi@linaro.org>
3989
3990 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3991 Call current_lwp_ptid.
3992
3993 2015-08-25 Yao Qi <yao.qi@linaro.org>
3994
3995 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3996 debug_printf.
3997
3998 2015-08-25 Yao Qi <yao.qi@linaro.org>
3999
4000 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4001 ptid_get_pid rather than ptid_get_lwp.
4002
4003 2015-08-24 Pedro Alves <palves@redhat.com>
4004
4005 * NEWS (New commands): Mention set/show remote
4006 multiprocess-extensions-packet.
4007 * remote.c (remote_query_supported): Only tell the server to use
4008 the multiprocess extensions if the user hasn't force-disabled them
4009 with "set remote multiprocess-extensions-packet off".
4010
4011 2015-08-24 Pedro Alves <palves@redhat.com>
4012
4013 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4014 1029a8112290f6eee9d7878a391c49db42c999bd.
4015 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4016 Regenerate.
4017 * gnulib/import/Makefile.am: Update.
4018 * gnulib/import/Makefile.in: Update.
4019 * gnulib/import/alloca.in.h: Update.
4020 * gnulib/import/basename-lgpl.c: Update.
4021 * gnulib/import/canonicalize-lgpl.c: Update.
4022 * gnulib/import/config.charset: Update.
4023 * gnulib/import/dirent.in.h: Update.
4024 * gnulib/import/dirfd.c: Update.
4025 * gnulib/import/dirname-lgpl.c: Update.
4026 * gnulib/import/dirname.h: Update.
4027 * gnulib/import/dosname.h: Update.
4028 * gnulib/import/errno.in.h: Update.
4029 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4030 * gnulib/import/extra/snippet/c++defs.h: Update.
4031 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4032 * gnulib/import/extra/update-copyright: Update.
4033 * gnulib/import/float+.h: Update.
4034 * gnulib/import/float.c: Update.
4035 * gnulib/import/float.in.h: Update.
4036 * gnulib/import/fnmatch.c: Update.
4037 * gnulib/import/fnmatch.in.h: Update.
4038 * gnulib/import/fnmatch_loop.c: Update.
4039 * gnulib/import/fpucw.h: Update.
4040 * gnulib/import/frexp.c: Update.
4041 * gnulib/import/frexpl.c: Update.
4042 * gnulib/import/gettimeofday.c: Update.
4043 * gnulib/import/inttypes.in.h: Update.
4044 * gnulib/import/isnan.c: Update.
4045 * gnulib/import/isnand-nolibm.h: Update.
4046 * gnulib/import/isnand.c: Update.
4047 * gnulib/import/isnanl-nolibm.h: Update.
4048 * gnulib/import/isnanl.c: Update.
4049 * gnulib/import/itold.c: Update.
4050 * gnulib/import/localcharset.c: Update.
4051 * gnulib/import/localcharset.h: Update.
4052 * gnulib/import/lstat.c: Update.
4053 * gnulib/import/m4/00gnulib.m4: Update.
4054 * gnulib/import/m4/absolute-header.m4: Update.
4055 * gnulib/import/m4/alloca.m4: Update.
4056 * gnulib/import/m4/canonicalize.m4: Update.
4057 * gnulib/import/m4/codeset.m4: Update.
4058 * gnulib/import/m4/configmake.m4: Update.
4059 * gnulib/import/m4/dirent_h.m4: Update.
4060 * gnulib/import/m4/dirfd.m4: Update.
4061 * gnulib/import/m4/dirname.m4: Update.
4062 * gnulib/import/m4/double-slash-root.m4: Update.
4063 * gnulib/import/m4/eealloc.m4: Update.
4064 * gnulib/import/m4/errno_h.m4: Update.
4065 * gnulib/import/m4/exponentd.m4: Update.
4066 * gnulib/import/m4/exponentl.m4: Update.
4067 * gnulib/import/m4/extensions.m4: Update.
4068 * gnulib/import/m4/extern-inline.m4: Update.
4069 * gnulib/import/m4/fcntl-o.m4: Update.
4070 * gnulib/import/m4/float_h.m4: Update.
4071 * gnulib/import/m4/fnmatch.m4: Update.
4072 * gnulib/import/m4/fpieee.m4: Update.
4073 * gnulib/import/m4/frexp.m4: Update.
4074 * gnulib/import/m4/frexpl.m4: Update.
4075 * gnulib/import/m4/gettimeofday.m4: Update.
4076 * gnulib/import/m4/glibc21.m4: Update.
4077 * gnulib/import/m4/gnulib-cache.m4: Update.
4078 * gnulib/import/m4/gnulib-common.m4: Update.
4079 * gnulib/import/m4/gnulib-comp.m4: Update.
4080 * gnulib/import/m4/gnulib-tool.m4: Update.
4081 * gnulib/import/m4/include_next.m4: Update.
4082 * gnulib/import/m4/inttypes-pri.m4: Update.
4083 * gnulib/import/m4/inttypes.m4: Update.
4084 * gnulib/import/m4/isnand.m4: Update.
4085 * gnulib/import/m4/isnanl.m4: Update.
4086 * gnulib/import/m4/largefile.m4: Update.
4087 * gnulib/import/m4/localcharset.m4: Update.
4088 * gnulib/import/m4/locale-fr.m4: Update.
4089 * gnulib/import/m4/locale-ja.m4: Update.
4090 * gnulib/import/m4/locale-zh.m4: Update.
4091 * gnulib/import/m4/longlong.m4: Update.
4092 * gnulib/import/m4/lstat.m4: Update.
4093 * gnulib/import/m4/malloc.m4: Update.
4094 * gnulib/import/m4/malloca.m4: Update.
4095 * gnulib/import/m4/math_h.m4: Update.
4096 * gnulib/import/m4/mbrtowc.m4: Update.
4097 * gnulib/import/m4/mbsinit.m4: Update.
4098 * gnulib/import/m4/mbsrtowcs.m4: Update.
4099 * gnulib/import/m4/mbstate_t.m4: Update.
4100 * gnulib/import/m4/memchr.m4: Update.
4101 * gnulib/import/m4/memmem.m4: Update.
4102 * gnulib/import/m4/mmap-anon.m4: Update.
4103 * gnulib/import/m4/multiarch.m4: Update.
4104 * gnulib/import/m4/nocrash.m4: Update.
4105 * gnulib/import/m4/off_t.m4: Update.
4106 * gnulib/import/m4/pathmax.m4: Update.
4107 * gnulib/import/m4/readlink.m4: Update.
4108 * gnulib/import/m4/rename.m4: Update.
4109 * gnulib/import/m4/rmdir.m4: Update.
4110 * gnulib/import/m4/ssize_t.m4: Update.
4111 * gnulib/import/m4/stat.m4: Update.
4112 * gnulib/import/m4/stdbool.m4: Update.
4113 * gnulib/import/m4/stddef_h.m4: Update.
4114 * gnulib/import/m4/stdint.m4: Update.
4115 * gnulib/import/m4/stdio_h.m4: Update.
4116 * gnulib/import/m4/stdlib_h.m4: Update.
4117 * gnulib/import/m4/string_h.m4: Update.
4118 * gnulib/import/m4/strstr.m4: Update.
4119 * gnulib/import/m4/strtok_r.m4: Update.
4120 * gnulib/import/m4/sys_socket_h.m4: Update.
4121 * gnulib/import/m4/sys_stat_h.m4: Update.
4122 * gnulib/import/m4/sys_time_h.m4: Update.
4123 * gnulib/import/m4/sys_types_h.m4: Update.
4124 * gnulib/import/m4/time_h.m4: Update.
4125 * gnulib/import/m4/unistd_h.m4: Update.
4126 * gnulib/import/m4/warn-on-use.m4: Update.
4127 * gnulib/import/m4/wchar_h.m4: Update.
4128 * gnulib/import/m4/wchar_t.m4: Update.
4129 * gnulib/import/m4/wctype_h.m4: Update.
4130 * gnulib/import/m4/wint_t.m4: Update.
4131 * gnulib/import/malloc.c: Update.
4132 * gnulib/import/malloca.c: Update.
4133 * gnulib/import/malloca.h: Update.
4134 * gnulib/import/math.in.h: Update.
4135 * gnulib/import/mbrtowc.c: Update.
4136 * gnulib/import/mbsinit.c: Update.
4137 * gnulib/import/mbsrtowcs-impl.h: Update.
4138 * gnulib/import/mbsrtowcs-state.c: Update.
4139 * gnulib/import/mbsrtowcs.c: Update.
4140 * gnulib/import/memchr.c: Update.
4141 * gnulib/import/memmem.c: Update.
4142 * gnulib/import/pathmax.h: Update.
4143 * gnulib/import/readlink.c: Update.
4144 * gnulib/import/ref-add.sin: Update.
4145 * gnulib/import/ref-del.sin: Update.
4146 * gnulib/import/rename.c: Update.
4147 * gnulib/import/rmdir.c: Update.
4148 * gnulib/import/same-inode.h: Update.
4149 * gnulib/import/stat.c: Update.
4150 * gnulib/import/stdbool.in.h: Update.
4151 * gnulib/import/stddef.in.h: Update.
4152 * gnulib/import/stdint.in.h: Update.
4153 * gnulib/import/stdio.c: Update.
4154 * gnulib/import/stdio.in.h: Update.
4155 * gnulib/import/stdlib.in.h: Update.
4156 * gnulib/import/str-two-way.h: Update.
4157 * gnulib/import/streq.h: Update.
4158 * gnulib/import/string.in.h: Update.
4159 * gnulib/import/stripslash.c: Update.
4160 * gnulib/import/strnlen1.c: Update.
4161 * gnulib/import/strnlen1.h: Update.
4162 * gnulib/import/strstr.c: Update.
4163 * gnulib/import/strtok_r.c: Update.
4164 * gnulib/import/sys_stat.in.h: Update.
4165 * gnulib/import/sys_time.in.h: Update.
4166 * gnulib/import/sys_types.in.h: Update.
4167 * gnulib/import/time.in.h: Update.
4168 * gnulib/import/unistd.in.h: Update.
4169 * gnulib/import/verify.h: Update.
4170 * gnulib/import/wchar.in.h: Update.
4171 * gnulib/import/wctype.in.h: Update.
4172 * gnulib/import/gettimeofday.c: New file.
4173 * gnulib/import/m4/absolute-header.m4: New file.
4174 * gnulib/import/m4/gettimeofday.m4: New file.
4175 * gnulib/import/m4/sys_socket_h.m4: New file.
4176 * gnulib/import/m4/sys_time_h.m4: New file.
4177 * gnulib/import/stdio.c: Delete file.
4178 * gnulib/import/sys_time.in.h: New file.
4179
4180 2015-08-24 Pedro Alves <palves@redhat.com>
4181
4182 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4183 * common/gdb_sys_time.h: New file.
4184 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4185 * gdb_select.h: Likewise.
4186 * gdb_usleep.c: Likewise.
4187 * maint.c: Likewise.
4188 * mi/mi-main.c: Likewise.
4189 * mi/mi-parse.h: Likewise.
4190 * remote-fileio.c: Likewise.
4191 * remote-m32r-sdi.c: Likewise.
4192 * remote.c: Likewise.
4193 * ser-base.c: Likewise.
4194 * ser-pipe.c: Likewise.
4195 * ser-tcp.c: Likewise.
4196 * ser-unix.c: Likewise.
4197 * symfile.c: Likewise.
4198 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4199 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4200 * utils.c: Likewise.
4201
4202 2015-08-24 Pedro Alves <palves@redhat.com>
4203
4204 * NEWS: Mention removed support for the various ROM monitors.
4205 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4206 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4207 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4208 gdb_target_obs.
4209 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4210 gdb_target_obs.
4211 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4212 dsrec.o from gdb_target_obs.
4213 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4214 from gdb_target_obs.
4215 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4216 gdb_target_obs.
4217 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4218 dink32-rom.o from gdb_target_obs.
4219 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4220 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4221 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4222 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4223
4224 2015-08-21 Pedro Alves <palves@redhat.com>
4225
4226 * frame.c (null_frame_id): Explicitly zero-initialize.
4227
4228 2015-08-21 Tom Tromey <tromey@redhat.com>
4229
4230 * dwarf2read.c (struct dwarf2_section_info): Rename field
4231 'asection' to 'section'.
4232 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4233 (dwarf2_locate_sections, dwarf2_locate_sections)
4234 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4235 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4236 (dwarf2_locate_v2_dwp_sections): Adjust.
4237
4238 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4239
4240 * top.h (gdb_in_secondary_prompt_p): Declare.
4241 * top.c (gdb_secondary_prompt_depth): Define.
4242 (gdb_in_secondary_prompt_p): Define.
4243 (gdb_readline_wrapper_cleanup): Decrement
4244 gdb_secondary_prompt_depth.
4245 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4246 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4247 are in a secondary prompt.
4248
4249 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4250
4251 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4252 emit the newline.
4253
4254 2015-08-21 Gary Benson <gbenson@redhat.com>
4255
4256 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4257
4258 2015-08-21 Gary Benson <gbenson@redhat.com>
4259
4260 * target.h (struct target_ops) <to_fileio_open>: New argument
4261 warn_if_slow. Update comment. All implementations updated.
4262 (target_fileio_open_warn_if_slow): New declaration.
4263 * target.c (target_fileio_open): Renamed as...
4264 (target_fileio_open_1): ...this. New argument warn_if_slow.
4265 Pass warn_if_slow to implementation. Update debug printing.
4266 (target_fileio_open): New function.
4267 (target_fileio_open_warn_if_slow): Likewise.
4268 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4269 target_fileio_open_warn_if_slow.
4270
4271 2015-08-21 Gary Benson <gbenson@redhat.com>
4272
4273 * nat/linux-namespaces.c (linux_mntns_access_fs):
4274 Do not overwrite old_chain.
4275
4276 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4277
4278 * arch/xtensa.h: New file.
4279 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4280 (ps_get_thread_area): New function.
4281 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4282 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4283 * xtensa-tdep.c (osabi.h): New #include.
4284 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4285 xtensa-specific hooks.
4286 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4287 member and move the structure to arch/xtensa.h.
4288
4289 2015-08-21 Pedro Alves <palves@redhat.com>
4290
4291 * remote.c (struct readahead_cache): New.
4292 (struct remote_state) <readahead_cache>: New field.
4293 (remote_open_1): Invalidate the cache.
4294 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4295 functions.
4296 (remote_hostio_pwrite): Invalidate the readahead cache.
4297 (remote_hostio_pread): Rename to ...
4298 (remote_hostio_pread_vFile): ... this.
4299 (remote_hostio_pread_from_cache): New function.
4300 (remote_hostio_pread): Reimplement.
4301 (remote_hostio_close): Invalidate the readahead cache.
4302
4303 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4304
4305 PR build/18843
4306 * procfs.c: Include "filestuff.h".
4307
4308 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4309
4310 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4311 curch.
4312 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4313 cur_line or curch, instead call wmove().
4314 (init_win_info) [CMD_WIN]: Likewise.
4315 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4316 instead call getcury().
4317 (tui_redisplay_readline): Don't set cur_line or curch.
4318 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4319 getcury().
4320 (tui_cont_sig): Remove call to wmove.
4321 (tui_getc): Don't read cur_line or curch, instead call getcury()
4322 or getyx(). Don't set curch.
4323 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4324 set cur_line or curch. Always move cursor to (0,0).
4325
4326 2015-08-20 Pedro Alves <palves@redhat.com>
4327
4328 * infrun.c (print_target_wait_results): Make extern.
4329 * infrun.h (print_target_wait_results): Declare.
4330 * remote.c (set_stop_requested_callback): Delete.
4331 (process_initial_stop_replies): New function.
4332 (remote_start_remote): Use it.
4333 (stop_reply_queue_length): New function.
4334
4335 2015-08-20 Pedro Alves <palves@redhat.com>
4336
4337 * dwarf2read.c (process_full_comp_unit): To tell whether
4338 start_subfile managed to deduce a language, test for
4339 language_unknown instead of language_c.
4340
4341 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4342
4343 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4344 matches attributes.
4345
4346 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4347
4348 * dwarf2read.c (dwarf2_string_attr): New function.
4349 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4350 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4351 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4352 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4353 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4354
4355 2015-08-18 Doug Evans <dje@google.com>
4356 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4357
4358 PR mi/18833
4359 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4360 if MI-like.
4361 * mi/mi-out.c: #include "vec.h".
4362 (ui_filep): New type.
4363 (DEV_VEC_P (ui_filep)): New type.
4364 (struct ui_out_data) <buffer, original_buffer>: Delete.
4365 (struct ui_out_data) <streams>: New member.
4366 (mi_ui_out_impl): Add data_destroy field.
4367 (mi_field_string, mi_field_fmt): Update.
4368 (mi_flush, mi_redirect, field_separator): Update.
4369 (mi_open, mi_close): Update.
4370 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4371 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4372 (mi_out_new): Call mi_out_data_ctor.
4373
4374 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4375
4376 * remote.c (strprefix): New.
4377 (remote_parse_stop_reply): Use strprefix instead of strncmp
4378 to ensure exact match of keyword.
4379
4380 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4381
4382 * gdb_bfd.c (debug_bfd_cache): New variable.
4383 (show_bfd_cache_debug): New function.
4384 (gdb_bfd_open): Add debug logging.
4385 (gdb_bfd_ref): Likewise.
4386 (gdb_bfd_unref): Likewise.
4387 (_initialize_gdb_bfd): Add new set/show command.
4388 * NEWS: Mention new command.
4389
4390 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4391
4392 * gdb_bfd.c (bfd_sharing): New variable.
4393 (show_bfd_sharing): New function.
4394 (gdb_bfd_open): Check bfd_sharing variable.
4395 (_initialize_gdb_bfd): Add new set/show command.
4396 * NEWS: Mention new command.
4397
4398 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4399
4400 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4401 field.
4402 (struct gdb_bfd_cache_search): Likewise.
4403 (eq_bfd): Compare the size, inode, and device id fields.
4404 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4405 (gdb_bfd_ref): Likewise.
4406 (gdb_bfd_unref): Likewise.
4407
4408 2015-08-18 Pedro Alves <palves@redhat.com>
4409
4410 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4411 target implements to_always_non_stop_p, call it.
4412 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4413 (x86_linux_create_target): Install it as to_always_non_stop_p
4414 method.
4415
4416 2015-08-17 Doug Evans <dje@google.com>
4417
4418 * ui-out.c (default_ui_out_impl): Add comment.
4419
4420 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4421
4422 * d-exp.y (type_aggregate_p): New function.
4423 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4424 (classify_inner_name): Likewise.
4425 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4426
4427 2015-08-15 Doug Evans <xdje42@gmail.com>
4428
4429 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4430 updated.
4431 (add_psymbol_to_list): Ditto.
4432
4433 2015-08-15 Doug Evans <xdje42@gmail.com>
4434
4435 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4436 updated. Call end_psymtab_common.
4437 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4438 end_psymtab_common.
4439 (build_type_psymtabs_reader): Ditto.
4440 * psympriv.h (sort_pst_symbols): Delete.
4441 (end_psymtab_common): Declare.
4442 * psymtab.c (sort_pst_symbols): Make static.
4443 (end_psymtab_common): New function.
4444 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4445
4446 2015-08-15 Doug Evans <xdje42@gmail.com>
4447
4448 * defs.h (LANGUAGE_BITS): Define.
4449 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4450 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4451 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4452 (minimal_symbol_type): Add nr_minsym_types.
4453 (MINSYM_TYPE_BITS): Define.
4454 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4455 (domain_enum_tag): Add NR_DOMAINS.
4456 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4457 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4458
4459 2015-08-15 Doug Evans <xdje42@gmail.com>
4460
4461 * objfiles.h: Whitespace cleanup.
4462 * psympriv.h: Whitespace cleanup.
4463 * psymtab.c: Whitespace/coding convention cleanup.
4464
4465 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4466
4467 * inferior.c (detach_inferior_command): Don't call
4468 any_thread_of_process when pid is 0.
4469 (kill_inferior_command): Likewise.
4470
4471 2015-08-14 Doug Evans <xdje42@gmail.com>
4472
4473 PR gdb/11833
4474 * NEWS: Document new /s modifier for the disassemble command.
4475 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4476 (_initialize_cli_cmds): Update online docs of disassemble command.
4477 * disasm.c: #include "source.h".
4478 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4479 All uses updated.
4480 (dis_line_entry): New struct.
4481 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4482 (allocate_dis_line_table): New functions.
4483 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4484 (dump_insns): New arg end_pc. All callers updated.
4485 (do_mixed_source_and_assembly_deprecated): Renamed from
4486 do_mixed_source_and_assembly. All callers updated.
4487 (do_mixed_source_and_assembly): New function.
4488 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4489 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4490 DISASSEMBLY_SOURCE. All uses updated.
4491 (DISASSEMBLY_SOURCE): New macro.
4492 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4493
4494 2015-08-14 Keith Seitz <keiths@redhat.com>
4495
4496 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4497 `typename' to `type_name' to avoid C++ reserved word.
4498
4499 2015-08-14 Keith Seitz <keiths@redhat.com>
4500
4501 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4502 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4503 silence ARI errors.
4504
4505 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4506
4507 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4508 xstrprintf instead of malloc and sprintf.
4509 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4510 (lex_one_token): Likewise.
4511
4512 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4513
4514 * solib-svr4.c (read_program_header): Add base_addr argument to
4515 report the runtime address of the segment.
4516 (find_program_interpreter): Update read_program_header call to pass
4517 a NULL pointer for the new argument.
4518 (scan_dyntag): Add ptr_addr argument to report the runtime address
4519 of the tag payload.
4520 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4521 read_program_header to get the base address of the dynamic segment.
4522 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4523 read_program_header.
4524 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4525
4526 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4527
4528 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4529
4530 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4531
4532 * d-exp.y (%union): Add voidval.
4533 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4534 name in the lexing stage.
4535 (PostfixExpression): Move symbol completion handling in grammar here
4536 from PrimaryExpression.
4537 (PrimaryExpression): Move routines to handle resolving identifier
4538 tokens in the grammar here from push_expression_name.
4539 (IdentifierExp): Remove the handling of alternating '.' and identifier
4540 tokens.
4541 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4542 (BasicType): Remove C-style typename rules.
4543 (d_type_from_name, d_module_from_name, push_variable)
4544 (push_fieldnames, push_type_name, push_module_name)
4545 (push_expression_name): Remove.
4546 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4547 (token_and_value): New type.
4548 (token_fifo, popping, name_obstack): New globals.
4549 (classify_name): New function.
4550 (classify_inner_name): Likewise.
4551 (yylex): Likewise.
4552 (d_parse): Initialize token_fifo, popping and name_obstack.
4553
4554 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4555
4556 * Makefile.in (SFILES): Add d-namespace.c.
4557 (COMMON_OBS): Add d-namespace.o.
4558 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4559 la_lookup_symbol_nonlocal callback function pointer.
4560 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4561 (d_lookup_nested_symbol): New declaration.
4562 * d-namespace.c: New file.
4563
4564 2015-08-13 Pedro Alves <palves@redhat.com>
4565
4566 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4567 cleanup after the decref cleanup, not before.
4568
4569 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4570
4571 * ada-lang.c: Include namespace.h
4572 (aux_add_nonlocal_symbols): Fix a function name in comment.
4573 (ada_add_block_renamings): New.
4574 (add_nonlocal_symbols): Add global renamings handling.
4575 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4576 to...
4577 (ada_add_all_symbols): ... this new function.
4578 (ada_add_block_symbols): Try to match the input name against the
4579 "using directives list", perform a recursive symbol lookup on
4580 the matched declarations.
4581 * block.h (struct block): Move the_namespace to top-level as
4582 namespace_info. Remove the language_specific field.
4583 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4584 * buildsym.h (using_directives): Rename into...
4585 (local_using_directives): ... this.
4586 (global_using_directives): New.
4587 (struct context_stack): Rename the using_directives field into
4588 local_using_directives.
4589 * buildsym.c (finish_block_internal): Deal with the proper
4590 using directives repository (local or global).
4591 (prepare_for_building): Reset local_using_directives. Assert
4592 that there is no pending global using directive.
4593 (reset_symtab_globals): Reset global_using_directives and
4594 local_using_directives.
4595 (end_symtab_get_static_block): Don't ignore symtabs that have
4596 only using directives.
4597 (push_context): Update references to local_using_directives.
4598 (buildsym_init): Do not reset using_directives.
4599 * cp-support.c: Include namespace.h.
4600 * cp-support.h (struct using_direct): Move to namespace.h.
4601 (cp_add_using_directives): Move to namespace.h.
4602 * cp-namespace.c: Include namespace.h
4603 (cp_add_using_directive): Move to namespace.c, rename it to
4604 add_using_directive, add a "using_directives" argument and use
4605 it as the pending using directives repository. All callers
4606 updated.
4607 * dwarf2read.c (using_directives): New.
4608 (read_import_statement): Call using_directives.
4609 (read_func_scope): Update references to local_using_directives.
4610 (read_lexical_block_scope): Likewise.
4611 (read_namespace): Update the heading comment, call
4612 using_directives.
4613 * namespace.h: New file.
4614 * namespace.c: New file.
4615 * Makefile.in (SFILES): Add namespace.c.
4616 (COMMON_OBS): Add namespace.o
4617
4618 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4619
4620 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4621 compute RETADDR.
4622
4623 2015-08-12 Keith Seitz <keiths@redhat.com>
4624
4625 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4626 reserved C++ keyword "explicit" to "explicit_loc".
4627 * breakpoint.c (create_overlay_event_breakpoint)
4628 (create_longjmp_master_breakpoint)
4629 (create_std_terminate_master_breakpoint)
4630 (create_exception_master_breakpoint, update_static_tracepoint):
4631 Rename reserved C++ keyword "explicit" to "explicit_loc".
4632 * completer.c (collect_explicit_location_matches)
4633 (explicit_location_completer): Rename reserved C++ keyword
4634 "explicit" to "explicit_loc".
4635 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4636 (canonicalize_linespec, create_sals_line_offset)
4637 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4638 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4639 "explicit" to "explicit_loc".
4640 * location.c (struct event_location) <explicit>: Rename to
4641 "explicit_loc".
4642 (initialize_explicit_location, new_explicit_location)
4643 (explicit_location_to_string_internal, explicit_location_to_linespec):
4644 Rename reserved C++ keyword "explicit" to "explicit_loc".
4645 * location.h (explicit_location_to_string)
4646 (explicit_location_to_linespec, initialize_explicit_location)
4647 (new_explicit_location): Rename reserved C++ keyword "explicit"
4648 to "explicit_loc".
4649 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4650 keyword "explicit" to "explicit_loc".
4651
4652 2015-08-12 Keith Seitz <keiths@redhat.com>
4653
4654 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4655 and only call decode_line_1 when it is non-NULL.
4656
4657 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4658
4659 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4660 location address is not meaningful.
4661 (breakpoint_address_is_meaningful): Update comment.
4662
4663 2015-08-11 Keith Seitz <keiths@redhat.com>
4664
4665 * NEWS: Mention explicit locations.
4666 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4667 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4668 (_initialize_breakpoint): Update documentation for
4669 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4670
4671 2015-08-11 Keith Seitz <keiths@redhat.com>
4672
4673 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4674 explicit locations, options "--source", "--function",
4675 "--label", and "--line".
4676
4677 2015-08-11 Keith Seitz <keiths@redhat.com>
4678
4679 * completer.c: Include location.h.
4680 (enum match_type): New enum.
4681 (location_completer): Rename to ...
4682 (linespec_completer): ... this.
4683 (collect_explicit_location_matches, backup_text_ptr)
4684 (explicit_location_completer): New functions.
4685 (location_completer): "New" function; handle linespec
4686 and explicit location completions.
4687 (complete_line_internal): Remove all location completer-specific
4688 handling.
4689 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4690 (find_toplevel_char): Export.
4691 (linespec_parse_line_offset): Export.
4692 Issue error if STRING is not numerical.
4693 (gdb_get_linespec_parser_quote_characters): New function.
4694 * linespec.h (linespec_parse_line_offset): Declare.
4695 (get_gdb_linespec_parser_quote_characters): Declare.
4696 (is_ada_operator): Declare.
4697 (find_toplevel_char): Declare.
4698 (linespec_lexer_lex_keyword): Declare.
4699 * location.c (explicit_to_event_location): New function.
4700 (explicit_location_lex_one): New function.
4701 (string_to_explicit_location): New function.
4702 (string_to_event_location): Handle explicit locations.
4703 * location.h (explicit_to_event_location): Declare.
4704 (string_to_explicit_location): Declare.
4705
4706 2015-08-11 Keith Seitz <keiths@redhat.com>
4707
4708 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4709 linespec into explicit location.
4710 * breakpoint.c (create_overlay_breakpoint)
4711 (create_longjmp_master_breakpoint)
4712 (create_std_terminate_master_breakpoint)
4713 (create_exception_master_breakpoint): Convert linespec into explicit
4714 location.
4715 (update_static_tracepoint): Convert linespec into explicit location.
4716 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4717 location.h.
4718 (struct linespec) <expression, expr_pc, source_filename>
4719 <function_name, label_name, line_offset>: Replace with ...
4720 <explicit>: ... this.
4721 <is_linespec>: New member.
4722 (PARSER_EXPLICIT): New accessor macro.
4723 (undefined_label_error): New function.
4724 (source_file_not_found_error): New function.
4725 (linespec_parse_basic): The parser result is now an explicit location.
4726 Use PARSER_EXPLICIT to access it.
4727 Use undefined_label_error.
4728 (canonicalize_linespec): Convert canonical linespec into explicit
4729 location.
4730 Move string representation of location to explicit_location_to_linespec
4731 and use it and explicit_location_to_string to save string
4732 representations of the canonical location.
4733 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4734 explicit location. Update all references.
4735 (convert_explicit_location_to_sals): New function.
4736 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4737 result's explicit location.
4738 (linespec_state_constructor): Initialize is_linespec.
4739 Use PARSER_EXPLICIT.
4740 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4741 result.
4742 (event_location_to_sals): For linespec locations, set is_linespec.
4743 Handle explicit locations.
4744 (decode_objc): 'ls' contains an explicit location now. Update all
4745 references.
4746 (symtabs_from_filename): Use source_file_not_found_error.
4747 * location.c (struct event_location.u) <explicit>: New member.
4748 (initialize_explicit_location): New function.
4749 (initialize_event_location): Initialize explicit locations.
4750 (new_explicit_location, get_explicit_location)
4751 (get_explicit_location_const): New functions.
4752 (explicit_to_string_internal): New function; most of contents moved
4753 from canonicalize_linespec.
4754 (explicit_location_to_string): New function.
4755 (explicit_location_to_linespec): New function.
4756 (copy_event_location, delete_event_location)
4757 (event_location_to_string_const, event_location_empty_p): Handle
4758 explicit locations.
4759 * location.h (enum offset_relative_sign, struct line_offset): Move
4760 here from linespec.h.
4761 (enum event_location_type): Add EXPLICIT_LOCATION.
4762 (struct explicit_location): New structure.
4763 (explicit_location_to_string): Declare.
4764 (explicit_location_to_linespec): Declare.
4765 (new_explicit_location, get_explicit_locationp
4766 (get_explicit_location_const, initialize_explicit_location): Declare.
4767
4768 2015-08-11 Keith Seitz <keiths@redhat.com>
4769
4770 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4771 linespec for stap probe to probe location.
4772 * breakpoint.c (create_longjmp_master_breakpoint)
4773 (create_exception_master_breakpoint): Likewise.
4774 (break_command_1): Remove local variable `arg_cp'.
4775 Check location type to set appropriate breakpoint ops methods.
4776 (trace_command): Likewise.
4777 * linespec.c (event_location_to_sals): Assert on probe locations.
4778 * location.c (EL_PROBE): Add macro definition.
4779 (new_probe_location, get_probe_location): New functions.
4780 (copy_event_location, delete_event_location, event_location_to_string)
4781 (string_to_event_location, event_location_empty_p): Handle probe
4782 locations.
4783 * location.h (enum event_location_type): Add PROBE_LOCATION.
4784 (new_probe_location, get_probe_location): Declare.
4785 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4786 Convert linespec into probe location.
4787
4788 2015-08-11 Keith Seitz <keiths@redhat.com>
4789
4790 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4791 Convert linespec to address location.
4792 * linespec.c (canonicalize_linespec): Do not handle address
4793 locations here.
4794 (convert_address_location_to_sals): New function; contents moved
4795 from ...
4796 (convert_linespc_to_sals): ... here.
4797 (parse_linespec): Remove address locations from linespec grammar.
4798 Remove handling of address locations.
4799 (linespec_lex_to_end): Remove handling of address linespecs.
4800 (event_location_to_sals): Handle ADDRESS_LOCATION.
4801 (linespec_expression_to_pc): Export.
4802 * linespec.h (linespec_expression_to_pc): Add declaration.
4803 * location.c (struct event_location.u) <address>: New member.
4804 (new_address_location, get_address_location): New functions.
4805 (copy_event_location, delete_event_location, event_location_to_string)
4806 (string_to_event_location, event_location_empty_p): Handle address
4807 locations.
4808 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4809 (new_address_location, get_address_location): Declare.
4810 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4811 to address location.
4812 * spu-tdep.c (spu_catch_start): Likewise.
4813
4814 2015-08-11 Keith Seitz <keiths@redhat.com>
4815
4816 * ax-gdb.c: Include location.h.
4817 (agent_command_1) Use linespec location instead of address
4818 string.
4819 * break-catch-throw.c: Include location.h.
4820 (re_set_exception_catchpoint): Use linespec locations instead
4821 of address strings.
4822 * breakpoint.c: Include location.h.
4823 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4824 (create_std_terminate_master_breakpoint)
4825 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4826 Use linespec location instead of address string.
4827 (print_breakpoint_location): Use locations and
4828 event_location_to_string.
4829 Print extra_string for pending locations for non-MI streams.
4830 (print_one_breakpoint_location): Use locations and
4831 event_location_to_string.
4832 (init_raw_breakpoint_without_location): Initialize b->location.
4833 (create_thread_event_breakpoint): Use linespec location instead of
4834 address string.
4835 (init_breakpoint_sal): Likewise.
4836 Only save extra_string if it is non-NULL and not the empty string.
4837 Use event_location_to_string instead of `addr_string'.
4838 Constify `p' and `endp'.
4839 Use skip_spaces_const/skip_space_const instead of non-const versions.
4840 Copy the location into the breakpoint.
4841 If LOCATION is NULL, save the breakpoint address as a linespec location
4842 instead of an address string.
4843 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4844 event_location. All uses updated.
4845 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4846 (parse_breakpoint_sals): Use locations instead of address strings.
4847 Remove check for empty linespec with conditional.
4848 Refactor.
4849 (decode_static_tracepoint_spec): Make argument const and update
4850 function.
4851 (create_breakpoint): Change `arg' to a struct event_location and
4852 rename.
4853 Remove `copy_arg' and `addr_start'.
4854 If EXTRA_STRING is empty, set it to NULL.
4855 Don't populate `canonical' for pending breakpoints.
4856 Pass `extra_string' to find_condition_and_thread.
4857 Clear `extra_string' if `rest' was NULL.
4858 Do not error with "garbage after location" if setting a dprintf
4859 breakpoint.
4860 Copy the location into the breakpoint instead of an address string.
4861 (break_command_1): Use string_to_event_location and pass this to
4862 create_breakpoint instead of an address string.
4863 Check against `arg_cp' for a probe linespec.
4864 (dprintf_command): Use string_to_event_location and pass this to
4865 create_breakpoint instead of an address string.
4866 Throw an exception if no format string was specified.
4867 (print_recreate_ranged_breakpoint): Use event_location_to_string
4868 instead of address strings.
4869 (break_range_command, until_break_command)
4870 (init_ada_exception_breakpoint): Use locations instead
4871 of address strings.
4872 (say_where): Print out extra_string for pending locations.
4873 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4874 the breakpoint.
4875 (base_breakpoint_create_sals_from_location): Use struct event_location
4876 instead of address string.
4877 Remove `addr_start' and `copy_arg' parameters.
4878 (base_breakpoint_decode_location): Use struct event_location instead of
4879 address string.
4880 (bkpt_re_set): Use locations instead of address strings.
4881 Use event_location_empty_p to check for unset location.
4882 (bkpt_print_recreate): Use event_location_to_string instead of
4883 an address string.
4884 Print out extra_string for pending locations.
4885 (bkpt_create_sals_from_location, bkpt_decode_location)
4886 (bkpt_probe_create_sals_from_location): Use struct event_location
4887 instead of address string.
4888 (bkpt_probe_decode_location): Use struct event_location instead of
4889 address string.
4890 (tracepoint_print_recreate): Use event_location_to_string to
4891 recreate the tracepoint.
4892 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4893 (tracepoint_probe_create_sals_from_location)
4894 (tracepoint_probe_decode_location): Use struct event_location
4895 instead of address string.
4896 (dprintf_print_recreate): Use event_location_to_string to recreate
4897 the dprintf.
4898 (dprintf_re_set): Remove check for valid/missing format string.
4899 (strace_marker_create_sals_from_location)
4900 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4901 (update_static_tracepoint): Use struct event_location instead of
4902 address string.
4903 (location_to_sals): Likewise.
4904 Pass `extra_string' to find_condition_and_thread.
4905 For newly resolved pending breakpoint locations, clear the location's
4906 string representation.
4907 Assert that the breakpoint's condition string is NULL when
4908 condition_not_parsed.
4909 (breakpoint_re_set_default, create_sals_from_location_default)
4910 (decode_location_default, trace_command, ftrace_command)
4911 (strace_command, create_tracepoint_from_upload): Use locations
4912 instead of address strings.
4913 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4914 Use struct event_location instead of address string.
4915 Update all uses.
4916 <decode_location>: Likewise.
4917 (struct breakpoint) <addr_string>: Change to struct event_location
4918 and rename `location'.
4919 <addr_string_range_end>: Change to struct event_location and rename
4920 `location_range_end'.
4921 (create_breakpoint): Use struct event_location instead of address
4922 string.
4923 * cli/cli-cmds.c: Include location.h.
4924 (edit_command, list_command): Use locations instead of address strings.
4925 * elfread.c: Include location.h.
4926 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4927 * guile/scm-breakpoint.c: Include location.h.
4928 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4929 (gdbscm_register_breakpoint): Use locations instead of address
4930 strings.
4931 * linespec.c: Include location.h.
4932 (struct ls_parser) <stream>: Change to const char *.
4933 (PARSER_STREAM): Update.
4934 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4935 keywords must be followed by whitespace.
4936 (canonicalize_linespec): Save a linespec location into `canonical'.
4937 Save a canonical linespec into `canonical'.
4938 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4939 All uses updated.
4940 Update function description.
4941 (linespec_parser_new): Initialize `parser'.
4942 Update initialization of parsing stream.
4943 (event_location_to_sals): New function.
4944 (decode_line_full): Change `argptr' to a struct event_location and
4945 rename it `location'.
4946 Use locations instead of address strings.
4947 Call event_location_to_sals instead of parse_linespec.
4948 (decode_line_1): Likewise.
4949 (decode_line_with_current_source, decode_line_with_last_displayed)
4950 Use locations instead of address strings.
4951 (decode_objc): Likewise.
4952 Change `argptr' to const char * and rename `arg'.
4953 (destroy_linespec_result): Delete the linespec result's location
4954 instead of freeing the address string.
4955 * linespec.h (struct linespec_result) <addr_string>: Change to
4956 struct event_location and rename to ...
4957 <location>: ... this.
4958 (decode_line_1, decode_line_full): Change `argptr' to struct
4959 event_location. All callers updated.
4960 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4961 (mi_cmd_break_insert_1): Use locations instead of address strings.
4962 Throw an error if there was "garbage" at the end of the specified
4963 linespec.
4964 * probe.c: Include location.h.
4965 (parse_probes): Change `argptr' to struct event_location.
4966 Use event locations instead of address strings.
4967 * probe.h (parse_probes): Change `argptr' to struct event_location.
4968 * python/py-breakpoint.c: Include location.h.
4969 (bppy_get_location): Constify local variable `str'.
4970 Use event_location_to_string.
4971 (bppy_init): Use locations instead of address strings.
4972 * python/py-finishbreakpoint.c: Include location.h.
4973 (bpfinishpy_init): Remove local variable `addr_str'.
4974 Use locations instead of address strings.
4975 * python/python.c: Include location.h.
4976 (gdbpy_decode_line): Use locations instead of address strings.
4977 * remote.c: Include location.h.
4978 (remote_download_tracepoint): Use locations instead of address
4979 strings.
4980 * spu-tdep.c: Include location.h.
4981 (spu_catch_start): Remove local variable `buf'.
4982 Use locations instead of address strings.
4983 * tracepoint.c: Include location.h.
4984 (scope_info): Use locations instead of address strings.
4985 (encode_source_string): Constify parameter `src'.
4986 * tracepoint.h (encode_source_string): Likewise.
4987
4988 2015-08-11 Keith Seitz <keiths@redhat.com>
4989
4990 * Makefile.in (SFILES): Add location.c.
4991 (HFILES_NO_SRCDIR): Add location.h.
4992 (COMMON_OBS): Add location.o.
4993 * linespec.c (linespec_lex_to_end): New function.
4994 * linespec.h (linespec_lex_to_end): Declare.
4995 * location.c: New file.
4996 * location.h: New file.
4997
4998 2015-08-11 Keith Seitz <keiths@redhat.com>
4999
5000 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5001 Renamed to create_sals_from_location.
5002 <decode_linespec>: Renamed to decode_location.
5003 Update all callers.
5004 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5005 (create_sals_from_location_default): ... this.
5006 (addr_string_to_sals): Renamed to ...
5007 (location_to_sals): ... this.
5008 (decode_linespec_default): Renamed to ...
5009 (decode_location_default): ... this.
5010 (base_breakpoint_create_sals_from_address): Renamed to ...
5011 (base_breakpoint_create_sals_from_location): ... this.
5012 (bkpt_create_sals_from_address): Renamed to ...
5013 (bkpt_create_sals_from_location): ... this.
5014 (bkpt_decode_linespec): Renamed to ...
5015 (bkpt_decode_location): ... this.
5016 (bkpt_probe_create_sals_from_address): Renamed to ...
5017 (bkpt_probe_create_sals_from_location): ... this.
5018 (tracepoint_create_sals_from_address): Renamed to ...
5019 (tracepoint_create_sals_from_location): ... this.
5020 (tracepoint_decode_linespec): Renamed to ...
5021 (tracepoint_decode_location): ... this.
5022 (tracepoint_probe_create_sals_from_address): Renamed to ...
5023 (tracepoint_probe_create_sals_from_location): ... this.
5024 (tracepoint_probe_decode_linespec): Renamed to ...
5025 (tracepoint_probe_decode_location): ... this.
5026 (strace_marker_create_sals_from_address): Renamed to ...
5027 (strace_marker_create_sals_from_location): ... this.
5028 (decode_linespec_default): Renamed to ...
5029 (decode_location_default): ... this.
5030
5031 2015-08-10 Doug Evans <dje@google.com>
5032 Keith Seitz <keiths@redhat.com>
5033
5034 PR gdb/17960
5035 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5036 make_file_symbol_completion_list and made static.
5037 (make_file_symbol_completion_list): New function.
5038
5039 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5040
5041 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5042 trailing new-line at end of warning message.
5043 (proceed): Add i18n marker to error messages.
5044
5045 2015-08-07 Pedro Alves <palves@redhat.com>
5046
5047 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5048
5049 2015-08-07 Pedro Alves <palves@redhat.com>
5050
5051 * s390-linux-tdep.c (is_non_branch_ril)
5052 (s390_displaced_step_copy_insn): New functions.
5053 (s390_displaced_step_fixup): Update comment.
5054 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5055 gdbarch_displaced_step_copy_insn hook.
5056
5057 2015-08-07 Pedro Alves <palves@redhat.com>
5058
5059 * infrun.c (displaced_step_prepare_throw): Return -1 if
5060 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5061 comment.
5062 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5063 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5064 in file.
5065 (ppc_displaced_step_copy_insn): New function.
5066 (ppc_displaced_step_fixup): Update comment.
5067 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5068 gdbarch_displaced_step_copy_insn hook.
5069 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5070 NULL return.
5071 * gdbarch.h: Regenerate.
5072
5073 2015-08-07 Pedro Alves <palves@redhat.com>
5074
5075 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5076 field.
5077 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5078 Return false if dispaced stepping failed before.
5079 (resume): Pass the current inferior to
5080 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5081 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5082 displaced_stepping_failed flag, and fall back to an in-line
5083 step-over.
5084
5085 2015-08-07 Pedro Alves <palves@redhat.com>
5086
5087 * darwin-nat.c (darwin_stop): Rename to ...
5088 (darwin_interrupt): ... this.
5089 (_initialize_darwin_inferior): Adjust.
5090 * gnu-nat.c (gnu_stop): Delete.
5091 (gnu_target): Don't install gnu_stop.
5092 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5093 (inf_ptrace_interrupt): ... this.
5094 (inf_ptrace_target): Adjust.
5095 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5096 target_stop.
5097 * linux-nat (linux_nat_stop): Rename to ...
5098 (linux_nat_interrupt): ... this.
5099 (linux_nat_stop): Reimplement.
5100 (linux_nat_add_target): Install linux_nat_interrupt.
5101 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5102 (nto_handle_sigint_twice): ... this.
5103 (nto_interrupt): Rename to ...
5104 (nto_handle_sigint): ... this. Call target_interrupt instead of
5105 target_stop.
5106 (procfs_wait): Adjust.
5107 (procfs_stop): Rename to ...
5108 (procfs_interrupt): ... this.
5109 (init_procfs_targets): Adjust.
5110 * procfs.c (procfs_stop): Rename to ...
5111 (procfs_interrupt): ... this.
5112 (procfs_target): Adjust.
5113 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5114 (m32r_interrupt): ... this.
5115 (init_m32r_ops): Adjust.
5116 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5117 (gdbsim_interrupt_inferior): ... this.
5118 (gdbsim_stop): Rename to ...
5119 (gdbsim_interrupt): ... this.
5120 (gdbsim_cntrl_c): Adjust.
5121 (init_gdbsim_ops): Adjust.
5122 * remote.c (sync_remote_interrupt): Adjust comments.
5123 (remote_stop_as): Rename to ...
5124 (remote_interrupt_as): ... this.
5125 (remote_stop): Adjust comment.
5126 (remote_interrupt): New function.
5127 (init_remote_ops): Install remote_interrupt.
5128 * target.c (target_interrupt): New function.
5129 * target.h (struct target_ops) <to_interrupt>: New field.
5130 (target_interrupt): New declaration.
5131 * windows-nat.c (windows_stop): Rename to ...
5132 (windows_interrupt): ... this.
5133 * target-delegates.c: Regenerate.
5134
5135 2015-08-07 Pedro Alves <palves@redhat.com>
5136
5137 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5138 threads" as alternative to "switching back to stepped thread".
5139
5140 2015-08-07 Pedro Alves <palves@redhat.com>
5141
5142 * NEWS: Mention "maint set/show target-non-stop".
5143 * breakpoint.c (update_global_location_list): Check
5144 target_is_non_stop_p instead of non_stop.
5145 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5146 * infrun.c (show_can_use_displaced_stepping)
5147 (can_use_displaced_stepping_p, start_step_over_inferior):
5148 Likewise.
5149 (internal_resume_ptid): New function.
5150 (resume): Use it.
5151 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5152 all-stop mode but the target is always in non-stop mode, start all
5153 the other threads that are implicitly resumed too.
5154 (for_each_just_stopped_thread, fetch_inferior_event)
5155 (adjust_pc_after_break, stop_all_threads): Check
5156 target_is_non_stop_p instead of non_stop.
5157 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5158 with the target always in non-stop mode.
5159 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5160 instead of non_stop.
5161 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5162 instead of non_stop.
5163 (keep_going_stepped_thread): Use internal_resume_ptid.
5164 (stop_waiting): If in all-stop mode, and the target is in non-stop
5165 mode, stop all threads.
5166 (keep_going_pass): Likewise, when starting a new in-line step-over
5167 sequence.
5168 * linux-nat.c (get_pending_status, select_event_lwp)
5169 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5170 target_is_non_stop_p instead of non_stop.
5171 (linux_nat_always_non_stop_p): New function.
5172 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5173 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5174 * target-delegates.c: Regenerate.
5175 * target.c (target_is_non_stop_p): New function.
5176 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5177 (maint_set_target_non_stop_command)
5178 (maint_show_target_non_stop_command): New functions.
5179 (_initilize_target): Install "maint set/show target-non-stop"
5180 commands.
5181 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5182 (target_non_stop_enabled): New declaration.
5183 (target_is_non_stop_p): New declaration.
5184
5185 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5186
5187 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5188 has a pending status, return true.
5189 * gdbthread.h: Include target/waitstatus.h.
5190 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5191 stop_pc>: New fields.
5192 (struct thread_info) <resumed>: New field.
5193 (set_resumed): Declare.
5194 * infrun.c: Include "event-loop.h".
5195 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5196 (infrun_async): New function.
5197 (clear_step_over_info): Add debug output.
5198 (displaced_step_in_progress_any_inferior): New function.
5199 (displaced_step_fixup): New returns int.
5200 (start_step_over): Handle in-line step-overs too. Assert the
5201 thread is marked resumed.
5202 (resume_cleanups): Clear the thread's resumed flag.
5203 (resume): Set the thread's resumed flag. Return early if the
5204 thread has a pending status. Allow stepping a breakpoint with no
5205 signal.
5206 (proceed): Adjust to check 'resumed' instead of 'executing'.
5207 (clear_proceed_status_thread): If the thread has a pending status,
5208 and that status is a finished step, discard the pending status.
5209 (clear_proceed_status): Don't clear step_over_info here.
5210 (random_pending_event_thread, do_target_wait): New functions.
5211 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5212 do_target_wait.
5213 (wait_one): New function.
5214 (THREAD_STOPPED_BY): New macro.
5215 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5216 (thread_stopped_by_hw_breakpoint): New functions.
5217 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5218 functions.
5219 (handle_inferior_event): Also call set_resumed(false) on all
5220 threads implicitly stopped by the event.
5221 (restart_threads, resumed_thread_with_pending_status): New
5222 functions.
5223 (finish_step_over): If we were doing an in-line step-over before,
5224 and no longer are after trying to start a new step-over, restart
5225 all threads. If we have multiple threads with pending events,
5226 save the current event and go through the event loop again.
5227 (handle_signal_stop): Return early if finish_step_over returns
5228 false.
5229 <random signal>: If we get a signal while stepping over a
5230 breakpoint in-line in non-stop mode, restart all threads. Clear
5231 step_over_info before delivering the signal.
5232 (keep_going_stepped_thread): Use internal_error instead of
5233 gdb_assert. Mark the thread as resumed.
5234 (keep_going_pass_signal): Assert the thread isn't already resumed.
5235 If some other thread is doing an in-line step-over, defer the
5236 resume. If we just started a new in-line step-over, stop all
5237 threads. Don't clear step_over_info.
5238 (infrun_async_inferior_event_handler): New function.
5239 (_initialize_infrun): Create async event handler with
5240 infrun_async_inferior_event_handler as callback.
5241 (infrun_async): New declaration.
5242 * target.c (target_async): New function.
5243 * target.h (target_async): Declare macro and readd as function
5244 declaration.
5245 * target/waitstatus.h (enum target_stop_reason)
5246 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5247 * thread.c (new_thread): Clear the new waitstatus field.
5248 (set_resumed): New function.
5249
5250 2015-08-07 Pedro Alves <palves@redhat.com>
5251
5252 * infrun.c (keep_going_stepped_thread): New function, factored out
5253 from ...
5254 (switch_back_to_stepped_thread): ... here.
5255
5256 2015-08-07 Pedro Alves <palves@redhat.com>
5257
5258 * infrun.c (currently_stepping): Extend intro comment.
5259 * target.h (target_resume): Extend intro comment.
5260
5261 2015-08-07 Pedro Alves <palves@redhat.com>
5262
5263 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5264 of inferior_ptid. If the stepped thread vanished, return 0
5265 instead of resuming here. Use reset_ecs. Print the prev_pc and
5266 the current stop_pc in log message. Clear trap_expected if the
5267 thread advanced. Don't pass currently_stepping to
5268 do_target_resume.
5269
5270 2015-08-07 Pedro Alves <palves@redhat.com>
5271
5272 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5273 * infrun.c (struct execution_control_state): Move higher up in the
5274 file.
5275 (reset_ecs): New function.
5276 (start_step_over): Now returns int. Rewrite to use
5277 keep_going_pass_signal instead of manually starting a displaced step.
5278 (resume): Don't call set_running here. If displaced stepping
5279 can't start now, clear trap_expected.
5280 (find_thread_needs_step_over): Delete function.
5281 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5282 If the current thread needs a step over, push it in the step-over
5283 chain. Don't set insert breakpoints nor call resume directly
5284 here. Instead rewrite to use start_step_over and
5285 keep_going_pass_signal.
5286 (finish_step_over): New function.
5287 (handle_signal_stop): Call finish_step_over instead of
5288 start_step_over.
5289 (switch_back_to_stepped_thread): If the event thread needs another
5290 step-over do that first. Use start_step_over.
5291 (keep_going_pass_signal): New function, factored out from ...
5292 (keep_going): ... here.
5293 (_initialize_infrun): Comment moved here.
5294 * thread.c (set_running_thread): New function.
5295 (set_running, finish_thread_state): Use set_running_thread.
5296
5297 2015-08-07 Pedro Alves <palves@redhat.com>
5298
5299 * gdbthread.h (struct thread_info) <step_over_prev,
5300 step_over_next>: New fields.
5301 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5302 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5303 declarations.
5304 * infrun.c (struct displaced_step_request): Delete.
5305 (struct displaced_step_inferior_state) <step_request_queue>:
5306 Delete field.
5307 (displaced_step_prepare): Assert that trap_expected is set. Use
5308 thread_step_over_chain_enqueue. Split starting a new displaced
5309 step to ...
5310 (start_step_over): ... this new function.
5311 (resume): Assert the thread isn't waiting for a step over already.
5312 (proceed): Assert the thread isn't waiting for a step over
5313 already.
5314 (infrun_thread_stop_requested): Adjust to remove threads from the
5315 embedded step-over chain.
5316 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5317 displaced_step_fixup.
5318 (handle_signal_stop): Call start_step_over after
5319 displaced_step_fixup.
5320 * infrun.h (step_over_queue_head): New declaration.
5321 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5322 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5323 (thread_step_over_chain_enqueue)
5324 (thread_step_over_chain_remove): New functions.
5325 (delete_thread_1): Remove thread from the step-over chain.
5326
5327 2015-08-07 Pedro Alves <palves@redhat.com>
5328
5329 * infrun.c (thread_still_needs_step_over): Rename to ...
5330 (thread_still_needs_step_over_bp): ... this.
5331 (enum step_over_what): New.
5332 (thread_still_needs_step_over): Reimplement.
5333
5334 2015-08-07 Pedro Alves <palves@redhat.com>
5335
5336 * remote.c (remote_wait_as): If not waiting for a stop reply,
5337 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5338 requested, don't block waiting forever.
5339
5340 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5341
5342 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5343 waitstatus pointers instead of an ecs. Adjust.
5344 (handle_inferior_event): Adjust caller.
5345
5346 2015-08-07 Pedro Alves <palves@redhat.com>
5347
5348 * infrun.c (handle_inferior_event): If we get
5349 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5350 mode, mark all threads of the exiting process as not-executing.
5351 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5352 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5353 exiting process, if inferior_ptid still points at a process.
5354 * thread.c (struct current_thread_cleanup) <next>: New field.
5355 (current_thread_cleanup_chain): New global.
5356 (restore_current_thread_ptid_changed): New function.
5357 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5358 current_thread_cleanup_chain list.
5359 (make_cleanup_restore_current_thread): Add the cleanup data to the
5360 current_thread_cleanup_chain list.
5361 (_initialize_thread): Install restore_current_thread_ptid_changed
5362 as thread_ptid_changed observer.
5363
5364 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5365
5366 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5367 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5368 smaller than expected.
5369
5370 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5371
5372 * stack.c (get_frame_language): Moved ...
5373 * frame.c (get_frame_language): ... to here.
5374 * language.h (get_frame_language): Declaration moved to frame.h.
5375 * frame.h: Add language.h include, for language enum.
5376 (get_frame_language): Declaration moved from language.h.
5377 * language.c: Add frame.h include.
5378 * top.c: Add frame.h include.
5379 * symtab.h (struct obj_section): Declare.
5380 (struct cmd_list_element): Declare.
5381
5382 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5383
5384 * language.c (show_language_command): Find selected frame before
5385 asking for the language of that frame.
5386 (set_language_command): Likewise.
5387 * language.h (get_frame_language): Add frame parameter.
5388 * stack.c (get_frame_language): Add frame parameter, assert
5389 parameter is not NULL, update comment and reindent.
5390 * top.c (check_frame_language_change): Pass the selected frame
5391 into get_frame_language.
5392
5393 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5394
5395 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5396 (pt_btrace_insn_flags): New.
5397 (ftrace_add_pt): Call pt_btrace_insn_flags.
5398 * btrace.h (btrace_insn_flag): New.
5399 (btrace_insn) <flags>: New.
5400 * record-btrace.c (btrace_insn_history): Print insn prefix.
5401 * NEWS: Announce it.
5402
5403 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5404
5405 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5406 * configure: Regenerate.
5407
5408 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5409
5410 * Makefile.in (LIBICONV): Define.
5411 (CLIBS): Add LIBICONV.
5412 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5413 * configure: Regenerate.
5414
5415 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5416 Pedro Alves <palves@redhat.com>
5417
5418 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5419 (arm_set_abi): Likewise.
5420 * ax-general.c (ax_print): Likewise.
5421 * c-exp.y (exp : string_exp): Likewise.
5422 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5423 (do_compile_dwarf_expr_to_c): Likewise.
5424 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5425 Likewise.
5426 * dwarf2expr.c (execute_stack_op): Likewise.
5427 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5428 (disassemble_dwarf_expression): Likewise.
5429 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5430 (read_array_order): Likewise.
5431 (abbrev_table_read_table): Likewise.
5432 (read_attribute_value): Likewise.
5433 (skip_unknown_opcode): Likewise.
5434 (dwarf_decode_macro_bytes): Likewise.
5435 (dwarf_decode_macros): Likewise.
5436 * eval.c (value_f90_subarray): Likewise.
5437 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5438 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5439 * infrun.c (handle_command): Likewise.
5440 * memory-map.c (memory_map_start_memory): Likewise.
5441 * osabi.c (set_osabi): Likewise.
5442 * parse.c (operator_length_standard): Likewise.
5443 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5444 single return point.
5445 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5446 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5447 (gdbpy_lookup_global_symbol): Likewise.
5448 * record-full.c (record_full_restore): Likewise.
5449 * regcache.c (regcache_register_status): Likewise.
5450 (regcache_raw_read): Likewise.
5451 (regcache_cooked_read): Likewise.
5452 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5453 * symtab.c (initialize_ordinary_address_classes): Likewise.
5454 * target-debug.h (target_debug_print_signals): Likewise.
5455 * utils.c (do_restore_current_language): Likewise.
5456
5457 2015-08-06 Clem Dickey <clemd@acm.org>
5458
5459 PR python/17136
5460 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5461
5462 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5463
5464 * complaints.c (enum complaint_series): Add newlines and remove
5465 out of date comment.
5466 (struct complaints) <series>: Change type to enum
5467 complaint_series and remove out of date comment.
5468 (symfile_complaint_hook): Use equivalent enum value
5469 ISOLATED_MESSAGE instead of 0.
5470
5471 2015-08-06 Pedro Alves <palves@redhat.com>
5472
5473 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5474 returned > 0.
5475
5476 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5477
5478 * common/agent.c (symbol_list) <required>: Remove.
5479
5480 2015-08-06 Pedro Alves <palves@redhat.com>
5481
5482 * target/waitstatus.h (enum target_stop_reason)
5483 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5484
5485 2015-08-05 Pedro Alves <palves@redhat.com>
5486 Joel Brobecker <brobecker@adacore.com>
5487
5488 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5489 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5490 case where BS->STOP is not set.
5491
5492 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5493
5494 * nat/gdb_thread_db.h: Add copyright header.
5495 Protect against multiple inclusion.
5496
5497 2015-08-05 Yao Qi <yao.qi@linaro.org>
5498
5499 * aarch64-linux-nat.c (get_thread_id): Remove.
5500 (debug_reg_change_callback): Call ptid_get_lwp instead of
5501 get_thread_id.
5502 (fetch_gregs_from_thread): Likewise.
5503 (store_gregs_to_thread): Likewise.
5504 (fetch_fpregs_from_thread): Likewise.
5505 (store_fpregs_to_thread): Likewise.
5506 (aarch64_linux_get_debug_reg_capacity): Likewise.
5507 * arm-linux-nat.c (get_thread_id): Remove.
5508 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5509 * xtensa-linux-nat.c (get_thread_id): Remove.
5510 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5511 * arm-linux-nat.c (get_thread_id): Remove.
5512 (GET_THREAD_ID): Remove.
5513 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5514 (store_fpregs, fetch_regs, store_regs): Likewise.
5515 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5516 (fetch_vfp_regs, store_vfp_regs): Likewise.
5517 (arm_linux_read_description): Likewise.
5518 (arm_linux_get_hwbp_cap): Likewise.
5519 * xtensa-linux-nat.c (get_thread_id): Remove.
5520 (GET_THREAD_ID): Remove.
5521 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5522 GET_THREAD_ID.
5523
5524 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5525
5526 * python/py-linetable.c: Fix case of Linetable to LineTable
5527 in docstrings and code comments.
5528 * python/py-symtab.c: Same.
5529
5530 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5531
5532 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5533
5534 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5535
5536 PR gdb/18767
5537 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5538 use.
5539
5540 2015-08-04 Pedro Alves <palves@redhat.com>
5541
5542 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5543 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5544 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5545 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5546 (td_thr_validate_ftype, td_thr_get_info_ftype)
5547 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5548 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5549 New typedefs.
5550 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5551 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5552 local macros and use them instead of verbose_dlsym and dlsym
5553 calls.
5554
5555 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5556
5557 * nios2-tdep.h: Include opcode/nios2.h here.
5558 (NIOS2_CDX_OPCODE_SIZE): New.
5559 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5560 * nios2-tdep.c: Don't include opcode/nios2.h here.
5561 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5562 4-byte read fails.
5563 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5564 (nios2_match_addi, nios2_match_orhi): Likewise.
5565 (nios2_match_stw, nios2_match_ldw): Likewise.
5566 (nios2_match_rdctl): Likewise.
5567 (nios2_match_stwm, nios2_match_ldwm): New.
5568 (nios2_match_branch): Add cases for R2 encodings.
5569 (nios2_match_jmpi, nios2_match_calli): Likewise.
5570 (nios2_match_jmpr, nios2_match_callr): Likewise.
5571 (nios2_match_break, nios2_match_trap): Likewise.
5572 (nios2_in_epilogue_p): Add R2 support.
5573 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5574 prologues.
5575 (nios2_breakpoint_from_pc): Handle R2 instructions.
5576 (nios2_get_next_pc): Likewise. Adjust call to
5577 tdep->syscall_next_pc.
5578 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5579 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5580 instruction field macros instead of literal hex values.
5581 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5582 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5583 Use size field from OP instead of assuming all instructions
5584 are the same size.
5585 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5586
5587 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5588
5589 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5590 variable warning with some compilers.
5591
5592 2015-08-03 Yao Qi <yao.qi@linaro.org>
5593
5594 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5595 in comment. Replace "rw" with "type".
5596 (arm_linux_remove_watchpoint): Change type of "rw" to
5597 "enum target_hw_bp_type".
5598
5599 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5600
5601 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5602 lookup_symbol.
5603 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5604 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5605 * mt-tdep.c (mt_skip_prologue): Likewise.
5606 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5607
5608 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5609
5610 * ada-exp.y (write_object_renaming): Replace struct
5611 ada_symbol_info with struct block_symbol. Update field
5612 references accordingly.
5613 (block_lookup, select_possible_type_sym): Likewise.
5614 (find_primitive_type): Likewise. Also update call to
5615 ada_lookup_symbol to extract the symbol itself.
5616 (write_var_or_type, write_name_assoc): Likewise.
5617 * ada-lang.h (struct ada_symbol_info): Remove.
5618 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5619 struct block_symbol.
5620 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5621 (ada_lookup_symbol): Return struct block_symbol instead of a
5622 mere symbol.
5623 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5624 with struct block_symbol.
5625 (resolve_subexp, ada_resolve_function, sort_choices,
5626 user_select_syms, is_nonfunction, add_defn_to_vec,
5627 num_defns_collected, defns_collected,
5628 symbols_are_identical_enums, remove_extra_symbols,
5629 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5630 ada_lookup_symbol_list, ada_iterate_over_symbols,
5631 ada_lookup_encoded_symbol, get_var_value): Likewise.
5632 (ada_lookup_symbol): Return a block_symbol instead of a mere
5633 symbol. Replace struct ada_symbol_info with struct
5634 block_symbol.
5635 (ada_lookup_symbol_nonlocal): Likewise.
5636 (standard_lookup): Make block passing explicit through
5637 lookup_symbol_in_language.
5638 * ada-tasks.c (get_tcb_types_info): Update the calls to
5639 lookup_symbol_in_language to extract the mere symbol out of the
5640 returned value.
5641 (ada_tasks_inferior_data_sniffer): Likewise.
5642 * ax-gdb.c (gen_static_field): Likewise for the call to
5643 lookup_symbol.
5644 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5645 lookup functions.
5646 (gen_expr): Likewise.
5647 * c-exp.y: Likewise. Remove uses of block_found.
5648 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5649 (classify_name): Likewise. Rename the "sym" local variable to
5650 "bsym".
5651 * c-valprint.c (print_unpacked_pointer): Likewise.
5652 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5653 "sym" parameter from struct symbol * to struct block_symbol.
5654 Use it to remove uses of block_found. Deal with struct
5655 block_symbol from lookup functions.
5656 (gcc_convert_symbol): Likewise. Update the call to
5657 convert_symbol_sym.
5658 * compile/compile-object-load.c (compile_object_load): Deal with
5659 struct block_symbol from lookup functions.
5660 * cp-namespace.c (cp_lookup_nested_symbol_1,
5661 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5662 cp_search_static_and_baseclasses,
5663 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5664 cp_lookup_symbol_imports_or_template,
5665 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5666 lookup_namespace_scope, cp_lookup_nonlocal,
5667 find_symbol_in_baseclass): Return struct block_symbol instead of
5668 mere symbols and deal with struct block_symbol from lookup
5669 functions.
5670 * cp-support.c (inspect_type, replace_typedefs,
5671 cp_lookup_rtti_type): Deal with struct block_symbol from
5672 lookup functions.
5673 * cp-support.h (cp_lookup_symbol_nonlocal,
5674 cp_lookup_symbol_from_namespace,
5675 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5676 Return struct block_symbol instead of mere symbols.
5677 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5678 push_module_name):
5679 Deal with struct block_symbol from lookup functions. Remove
5680 uses of block_found.
5681 * eval.c (evaluate_subexp_standard): Update call to
5682 cp_lookup_symbol_namespace.
5683 * f-exp.y: Deal with struct block_symbol from lookup functions.
5684 Remove uses of block_found.
5685 (yylex): Likewise.
5686 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5687 lookup_enum, lookup_template_type, check_typedef): Deal with
5688 struct block_symbol from lookup functions.
5689 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5690 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5691 (gdbscm_lookup_global_symbol): Likewise.
5692 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5693 * go-exp.y: Likewise. Remove uses of block_found.
5694 (package_name_p, classify_packaged_name, classify_name):
5695 Likewise.
5696 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5697 * jv-exp.y (push_variable): Likewise.
5698 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5699 * language.c (language_bool_type): Likewise.
5700 * language.h (struct language_defn): Update
5701 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5702 than a mere symbol.
5703 * linespec.c (find_label_symbols): Deal with struct block_symbol
5704 from lookup functions.
5705 * m2-exp.y: Likewise. Remove uses of block_found.
5706 (yylex): Likewise.
5707 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5708 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5709 * p-exp.y: Likewise. Remove uses of block_found.
5710 (yylex): Likewise.
5711 * p-valprint.c (pascal_val_print): Likewise.
5712 * parse.c (write_dollar_variable): Likewise. Remove uses of
5713 block_found.
5714 * parser-defs.h (struct symtoken): Turn the SYM field into a
5715 struct block_symbol.
5716 * printcmd.c (address_info): Deal with struct block_symbol from
5717 lookup functions.
5718 * python/py-frame.c (frapy_read_var): Likewise.
5719 * python/py-symbol.c (gdbpy_lookup_symbol,
5720 gdbpy_lookup_global_symbol): Likewise.
5721 * skip.c (skip_function_command): Likewise.
5722 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5723 block_symbol instead of a mere symbol.
5724 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5725 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5726 * solib.c (solib_global_lookup): Likewise.
5727 * solist.h (solib_global_lookup): Likewise.
5728 (struct target_so_ops): Update lookup_lib_global_symbol to
5729 return a struct block_symbol rather than a mere symbol.
5730 * source.c (select_source_symtab): Deal with struct block_symbol
5731 from lookup functions.
5732 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5733 Likewise.
5734 * symfile.c (set_initial_language): Likewise.
5735 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5736 block_symbol.
5737 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5738 (struct symbol_cache_slot): Turn the FOUND field into a struct
5739 block_symbol.
5740 (block_found): Remove.
5741 (eq_symbol_entry): Update to deal with struct block_symbol in
5742 cache slots.
5743 (symbol_cache_lookup): Return a struct block_symbol rather than
5744 a mere symbol.
5745 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5746 appropriately the cache slots. Update callers.
5747 (symbol_cache_dump): Update cache slots handling to the type
5748 change.
5749 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5750 lookup_symbol_aux, lookup_local_symbol,
5751 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5752 lookup_symbol_in_objfile_symtabs,
5753 lookup_symbol_in_objfile_from_linkage_name,
5754 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5755 lookup_symbol_in_static_block, lookup_static_symbol,
5756 lookup_global_symbol):
5757 Return a struct block_symbol rather than a mere symbol. Deal
5758 with struct block_symbol from other lookup functions. Remove
5759 uses of block_found.
5760 (lookup_symbol_in_block): Remove uses of block_found.
5761 (struct global_sym_lookup_data): Turn the RESULT field into a
5762 struct block_symbol.
5763 (lookup_symbol_global_iterator_cb): Update references to the
5764 RESULT field.
5765 (search_symbols): Deal with struct block_symbol from lookup
5766 functions.
5767 * symtab.h (struct block_symbol): New structure.
5768 (block_found): Remove.
5769 (lookup_symbol_in_language, lookup_symbol,
5770 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5771 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5772 lookup_global_symbol_from_objfile): Return a struct block_symbol
5773 rather than just a mere symbol. Update comments to remove
5774 mentions of block_found.
5775 * valops.c (find_function_in_inferior,
5776 value_struct_elt_for_reference, value_maybe_namespace_elt,
5777 value_of_this): Deal with struct block_symbol from lookup
5778 functions.
5779 * value.c (value_static_field, value_fn_field): Likewise.
5780
5781 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5782
5783 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5784 instead of integer.
5785
5786 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5787 Pedro Alves <palves@redhat.com>
5788
5789 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5790 type or value instead of integer.
5791 (aarch64_linux_insert_watchpoint): Likewise.
5792 (aarch64_linux_remove_watchpoint): Likewise.
5793 * ada-lang.c (ada_op_print_tab): Likewise.
5794 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5795 (amd64_linux_syscall_record_common): Likewise.
5796 * arch-utils.c (target_byte_order_user): Likewise.
5797 (default_byte_order): Likewise.
5798 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5799 (arm_linux_get_hwbp_type): Likewise.
5800 (arm_linux_hw_watchpoint_initialize): Likewise.
5801 (arm_linux_insert_watchpoint): Likewise.
5802 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5803 (arm_linux_syscall_record): Likewise.
5804 * breakpoint.c (update_watchpoint): Likewise.
5805 (breakpoint_here_p): Likewise.
5806 (bpstat_print): Likewise.
5807 (enable_breakpoint_disp): Likewise.
5808 * c-lang.c (c_op_print_tab): Likewise.
5809 * cli/cli-decode.c (add_info_alias): Likewise.
5810 * d-lang.c (d_op_print_tab): Likewise.
5811 * eval.c (evaluate_subexp_standard): Likewise.
5812 * f-exp.y (dot_ops): Likewise.
5813 (f77_keywords): Likewise.
5814 * f-lang.c (f_op_print_tab): Likewise.
5815 * go-lang.c (go_op_print_tab): Likewise.
5816 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5817 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5818 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5819 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5820 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5821 (struct scm_from_stringn_data): Likewise.
5822 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5823 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5824 (ia64_linux_remove_watchpoint): Likewise.
5825 (ia64_linux_can_use_hw_breakpoint): Likewise.
5826 * infrun.c (print_stop_event): Likewise.
5827 * jv-lang.c (java_op_print_tab): Likewise.
5828 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5829 * linux-nat.h (struct lwp_info): Likewise.
5830 * linux-thread-db.c (enable_thread_event): Likewise.
5831 * m2-lang.c (m2_op_print_tab): Likewise.
5832 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5833 (mi_cmd_stack_list_variables): Likewise.
5834 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5835 * mi/mi-out.c (mi_table_begin): Likewise.
5836 (mi_table_header): Likewise.
5837 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5838 (mips_linux_insert_watchpoint): Likewise.
5839 (mips_linux_remove_watchpoint): Likewise.
5840 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5841 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5842 (mips_linux_watch_type_to_irw): Likewise.
5843 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5844 (procfs_insert_hw_watchpoint): Likewise.
5845 (procfs_remove_hw_watchpoint): Likewise.
5846 (procfs_hw_watchpoint): Likewise.
5847 (procfs_can_use_hw_breakpoint): Likewise.
5848 (procfs_remove_hw_watchpoint): Likewise.
5849 (procfs_insert_hw_watchpoint): Likewise.
5850 * p-lang.c (pascal_op_print_tab): Likewise.
5851 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5852 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5853 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5854 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5855 (procfs_insert_watchpoint): Likewise.
5856 (procfs_remove_watchpoint): Likewise.
5857 * psymtab.c (recursively_search_psymtabs): Likewise.
5858 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5859 (m32r_insert_watchpoint): Likewise.
5860 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5861 (mips_insert_watchpoint): Likewise.
5862 (mips_remove_watchpoint): Likewise.
5863 * remote.c (watchpoint_to_Z_packet): Likewise.
5864 (remote_insert_watchpoint): Likewise.
5865 (remote_remove_watchpoint): Likewise.
5866 (remote_check_watch_resources): Likewise.
5867 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5868 (s390_remove_watchpoint): Likewise.
5869 (s390_can_use_hw_breakpoint): Likewise.
5870 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5871 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5872 * target.h (struct target_ops): Likewise.
5873 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5874 * ui-out.c (struct ui_out_hdr): Likewise.
5875 (append_header_to_list): Likewise.
5876 (get_next_header): Likewise.
5877 (verify_field): Likewise.
5878 (ui_out_begin): Likewise.
5879 (ui_out_field_int): Likewise.
5880 (ui_out_field_fmt_int): Likewise.
5881 (ui_out_field_skip): Likewise.
5882 (ui_out_field_string): Likewise.
5883 (ui_out_field_fmt): Likewise.
5884 * varobj.c (new_variable): Likewise.
5885 * x86-nat.c (x86_insert_watchpoint): Likewise.
5886 (x86_remove_watchpoint): Likewise.
5887 (x86_can_use_hw_breakpoint): Likewise.
5888 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5889 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5890 previously anonymous enumeration type..
5891 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5892 value.
5893 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5894 (target_debug_print_enum_bptype): New.
5895 * target-delegates.c: Regenerate.
5896
5897 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5898
5899 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5900 already says and disallow non-stack memory writes in the prologue.
5901
5902 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5903
5904 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5905 reflect how current GCC emits stack overflow checks. Match
5906 both trap and break instructions for backward compatbility.
5907 Disallow other trap and break instructions in the prologue.
5908
5909 2015-07-30 Pedro Alves <palves@redhat.com>
5910
5911 PR threads/18600
5912 * linux-nat.c (wait_lwp): Report to the core when thread group
5913 leader exits.
5914
5915 2015-07-30 Pedro Alves <palves@redhat.com>
5916 Simon Marchi <simon.marchi@ericsson.com>
5917
5918 PR threads/18600
5919 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5920 mark the new thread as resumed. Remove STOPPING parameter.
5921 (wait_lwp): Adjust call to linux_handle_extended_wait.
5922 (linux_nat_filter_event): Adjust call to
5923 linux_handle_extended_wait.
5924 (resume_stopped_resumed_lwps): Add debug output.
5925
5926 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5927
5928 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5929 isize argument.
5930 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5931 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5932 gdbarch_fast_tracepoint_valid_at.
5933 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5934 * gdbarch.h: Regenerate.
5935 * gdbarch.c: Regenerate.
5936 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5937 argument. Do not set it.
5938 * remote.c (remote_download_tracepoint): Adjust call to
5939 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5940 the instruction length.
5941
5942 2015-07-30 Yao Qi <yao.qi@linaro.org>
5943
5944 * arm-tdep.h (enum gdb_regnum): Move it to ...
5945 * arch/arm.h: ... here. New file.
5946 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5947
5948 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5949
5950 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5951 Change its type to int *.
5952 (decode_br): Rename link argument to is_blr. Change its type to
5953 int *.
5954 (decode_cb): Rename op argument to is_cbnz. Change its type to
5955 int *.
5956 (decode_tb): Rename op argument to is_tbnz. Change its type to
5957 int *. Set is_tbnz to either 1 or 0.
5958 (aarch64_analyze_prologue): Change type of is_link to int. Add
5959 new variables is_cbnz and is_tbnz. Adjust call to
5960 aarch64_decode_cb and aarch64_decode_tb.
5961
5962 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5963
5964 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5965 parameter.
5966 (mips_linux_new_thread): Likewise.
5967 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5968
5969 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5970
5971 * top.c: Include "tui/tui.h".
5972 (undo_terminal_modifications_before_exit): New static function.
5973 (quit_force): Use it.
5974
5975 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5976
5977 * target.c (terminal_state): Initialize to terminal_is_ours.
5978
5979 2015-07-29 Yao Qi <yao.qi@linaro.org>
5980
5981 PR record/18691
5982 * dcache.c (dcache_read_memory_partial): Call
5983 raw_memory_xfer_partial.
5984 * target.c (raw_memory_xfer_partial): Make it non-static.
5985 * target.h (raw_memory_xfer_partial): Declare.
5986
5987 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5988
5989 * c-valprint.c (c_val_print_array): Consider addressable memory
5990 unit size.
5991 (c_val_print_ptr): Likewise.
5992 (c_val_print_int): Likewise.
5993 * findvar.c (read_frame_register_value): Likewise.
5994 * valarith.c (find_size_for_pointer_math): Likewise.
5995 (value_ptrdiff): Likewise.
5996 (value_subscripted_rvalue): Likewise.
5997 * valops.c (read_value_memory): Likewise (and rename variables).
5998 (value_assign): Likewise.
5999 (value_repeat): Likewise.
6000 (value_array): Likewise.
6001 (value_slice): Likewise.
6002 * valprint.c (generic_val_print_ptr): Likewise.
6003 (generic_val_print_enum): Likewise.
6004 (generic_val_print_bool): Likewise.
6005 (generic_val_print_int): Likewise.
6006 (generic_val_print_char): Likewise.
6007 (generic_val_print_float): Likewise.
6008 (generic_val_print_decfloat): Likewise.
6009 (generic_val_print_complex): Likewise.
6010 (val_print_scalar_formatted): Likewise.
6011 (val_print_array_elements): Likewise.
6012 * value.c (set_value_parent): Likewise.
6013 (value_contents_copy_raw): Likewise.
6014 (set_internalvar_component): Likewise.
6015 (value_primitive_field): Likewise.
6016 (value_fetch_lazy): Likewise.
6017 * value.h (read_value_memory): Update comment.
6018
6019 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6020
6021 * value.c (get_value_arch): New function.
6022 * value.h (get_value_arch): New declaration.
6023
6024 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6025
6026 * value.c (struct value): Update comments.
6027
6028 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6029
6030 * gdbtypes.c (type_length_units): New function.
6031 * gdbtypes.h (type_length_units): New declaration.
6032 (struct type) <length>: Update comment.
6033
6034 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6035
6036 * valprint.c (generic_val_print): Factor out complex
6037 printing code to ...
6038 (generic_val_print_complex): ... this new function.
6039
6040 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6041
6042 * valprint.c (generic_val_print): Factor out decfloat
6043 printing code to ...
6044 (generic_val_print_decfloat): ... this new function.
6045
6046 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6047
6048 * valprint.c (generic_val_print): Factor out float
6049 printing code to ...
6050 (generic_val_print_float): ... this new function.
6051
6052 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6053
6054 * valprint.c (generic_val_print): Factor out char
6055 printing code to ...
6056 (generic_val_print_char): ... this new function.
6057
6058 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6059
6060 * valprint.c (generic_val_print): Factor out integer
6061 printing code to ...
6062 (generic_val_print_int): ... this new function.
6063
6064 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6065
6066 * valprint.c (generic_val_print): Factor out bool
6067 printing code to ...
6068 (generic_val_print_bool): ... this new function.
6069
6070 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6071
6072 * valprint.c (generic_val_print): Factor out function/method
6073 printing code to ...
6074 (generic_val_print_func): ... this new function.
6075
6076 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6077
6078 * valprint.c (generic_val_print): Factor out flags
6079 printing code to ...
6080 (generic_val_print_flags): ... this new function.
6081
6082 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6083
6084 * valprint.c (generic_val_print): Factor out enum
6085 printing code to ...
6086 (generic_val_print_enum): ... this new function.
6087
6088 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6089
6090 * valprint.c (generic_val_print): Factor out reference
6091 printing code to ...
6092 (generic_val_print_ref): ... this new function.
6093
6094 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6095
6096 * valprint.c (generic_val_print): Factor out memberptr
6097 printing code to ...
6098 (generic_val_print_memberptr): ... this new function.
6099
6100 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6101
6102 * valprint.c (generic_val_print): Factor out pointer
6103 printing code to ...
6104 (generic_val_print_ptr): ... this new function.
6105
6106 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6107
6108 * valprint.c (generic_val_print): Factor out array
6109 printing code to ...
6110 (generic_val_print_array): ... this new function.
6111
6112 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6113
6114 * valprint.c (generic_val_print): Factor out
6115 print_unpacked_pointer code to ...
6116 (print_unpacked_pointer): ... this new function.
6117
6118 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6119
6120 * event-top.c (handle_sigterm): Don't inspect
6121 target_can_async_p. Always set the quit flag and always mark
6122 the async signal handler.
6123
6124 2015-07-27 Yao Qi <yao.qi@linaro.org>
6125
6126 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6127
6128 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6129
6130 * remote.c (read_ptid): Return null_ptid when no thread id
6131 is found.
6132 (remote_current_thread): Add log warning for malformed
6133 qC reply.
6134 (remote_start_remote): Add log warning when current thread
6135 not found.
6136
6137 2015-07-24 Pedro Alves <palves@redhat.com>
6138
6139 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6140 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6141 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6142
6143 2015-07-24 Pedro Alves <palves@redhat.com>
6144
6145 PR gdb/18717
6146 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6147 is resumed, and extend the debug log.
6148
6149 2015-07-24 Pedro Alves <palves@redhat.com>
6150
6151 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6152
6153 2015-07-24 Pedro Alves <palves@redhat.com>
6154
6155 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6156 sys/ptrace.h.
6157 * alpha-linux-nat.c: Likewise.
6158 * amd64-linux-nat.c: Likewise.
6159 * arm-linux-nat.c: Likewise.
6160 * hppa-linux-nat.c: Likewise.
6161 * i386-linux-nat.c: Likewise.
6162 * ia64-linux-nat.c: Likewise.
6163 * linux-fork.c: Likewise.
6164 * linux-nat.c: Likewise.
6165 * m32r-linux-nat.c: Likewise.
6166 * m68klinux-nat.c: Likewise.
6167 * mips-linux-nat.c: Likewise.
6168 * nat/linux-btrace.c: Likewise.
6169 * nat/linux-ptrace.c: Likewise.
6170 * nat/linux-ptrace.h
6171 * nat/mips-linux-watch.c: Likewise.
6172 * nat/x86-linux-dregs.c: Likewise.
6173 * ppc-linux-nat.c: Likewise.
6174 * s390-linux-nat.c: Likewise.
6175 * spu-linux-nat.c: Likewise.
6176 * tilegx-linux-nat.c: Likewise.
6177 * x86-linux-nat.c: Likewise.
6178 * xtensa-linux-nat.c: Likewise.
6179
6180 2015-07-24 Pedro Alves <palves@redhat.com>
6181
6182 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6183 __ptrace_request as first parameter type instead of int.
6184 (PTRACE_TYPE_ARG1): Define.
6185 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6186 that casts first argument to PTRACE_TYPE_ARG1.
6187 * config.in: Regenerate.
6188 * configure: Regenerate.
6189
6190 2015-07-24 Pedro Alves <palves@redhat.com>
6191
6192 * gdb_ptrace.h: Move ...
6193 * nat/gdb_ptrace.h: ... here.
6194 * inf-ptrace.c: Adjust.
6195
6196 2015-07-24 Pedro Alves <palves@redhat.com>
6197
6198 * acinclude.m4: Include ptrace.m4.
6199 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6200 * ptrace.m4: ... to this new file.
6201
6202 2015-07-23 Doug Evans <dje@google.com>
6203
6204 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6205 (load_cu): Handle dummy CUs.
6206 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6207 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6208
6209 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6210
6211 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6212 documentation to say that it returns a list rather than
6213 a FrozenSet.
6214 (linetable_object_methods): Update the docstring of the
6215 "source_line" entry.
6216
6217 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6218
6219 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6220 type to the recursive call instead of the original (maybe
6221 TYPE_CODE_TYPEDEF) type.
6222
6223 2015-07-23 Yao Qi <yao.qi@linaro.org>
6224
6225 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6226 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6227 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6228
6229 2015-07-21 Yao Qi <yao.qi@linaro.org>
6230
6231 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6232 Move it to nat/aarch64-linux-hw-point.c.
6233 (aarch64_linux_child_post_startup_inferior): Update.
6234 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6235 New function.
6236 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6237 Declare it.
6238
6239 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6240
6241 * common/btrace-common.c (btrace_data_append): Change case label.
6242
6243 2015-07-20 Yao Qi <yao.qi@linaro.org>
6244
6245 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6246 Re-indent the code.
6247 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6248 "unsigned long long".
6249
6250 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6251
6252 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6253 to be set for SEC_ALLOC sections too.
6254
6255 2015-07-17 Yao Qi <yao.qi@linaro.org>
6256
6257 * Makefile.in (HFILES_NO_SRCDIR): Add
6258 nat/aarch64-linux-hw-point.h.
6259 (aarch64-linux-hw-point.o): New rule.
6260 * nat/aarch64-linux-hw-point.h: New file.
6261 * nat/aarch64-linux-hw-point.c: New file.
6262 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6263 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6264 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6265 (AARCH64_HWP_ALIGNMENT): Likewise.
6266 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6267 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6268 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6269 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6270 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6271 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6272 (struct aarch64_debug_reg_state): Likewise.
6273 (struct arch_lwp_info): Likewise.
6274 (aarch64_linux_set_debug_regs): Likewise.
6275 (aarch64_notify_debug_reg_change): Remove static.
6276 (aarch64_align_watchpoint): Likewise.
6277 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6278 (aarch64_watchpoint_length): Likewise.
6279 (aarch64_point_encode_ctrl_reg): Likewise
6280 (aarch64_point_is_aligned): Likewise.
6281 (aarch64_dr_state_insert_one_point): Likewise.
6282 (aarch64_dr_state_remove_one_point): Likewise.
6283 (aarch64_handle_breakpoint): Likewise.
6284 (aarch64_handle_aligned_watchpoint): Likewise.
6285 (aarch64_handle_unaligned_watchpoint): Likewise.
6286 (aarch64_handle_watchpoint): Likewise.
6287 * config/aarch64/linux.mh (NAT_FILE): Add
6288 aarch64-linux-hw-point.o.
6289
6290 2015-07-17 Yao Qi <yao.qi@linaro.org>
6291
6292 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6293 state and don't call aarch64_get_debug_reg_state. All callers
6294 update.
6295 (aarch64_linux_insert_hw_breakpoint): Call
6296 aarch64_get_debug_reg_state earlier.
6297 (aarch64_linux_remove_hw_breakpoint): Likewise.
6298 (aarch64_handle_aligned_watchpoint): Add argument state and
6299 don't call aarch64_get_debug_reg_state. All callers update.
6300 (aarch64_handle_unaligned_watchpoint): Likewise.
6301 (aarch64_handle_watchpoint): Add argument state.
6302 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6303 earlier.
6304 (aarch64_linux_remove_watchpoint): Likewise.
6305
6306 2015-07-17 Yao Qi <yao.qi@linaro.org>
6307
6308 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6309 debug_printf.
6310 (aarch64_handle_unaligned_watchpoint): Likewise.
6311
6312 2015-07-17 Yao Qi <yao.qi@linaro.org>
6313
6314 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6315 argument type's type to 'enum target_hw_bp_type'.
6316 (aarch64_dr_state_remove_one_point): Likewise.
6317 (aarch64_handle_breakpoint): Likewise.
6318 (aarch64_linux_insert_hw_breakpoint): Likewise.
6319 (aarch64_linux_remove_hw_breakpoint): Likewise.
6320 (aarch64_handle_aligned_watchpoint): Likewise.
6321
6322 2015-07-17 Yao Qi <yao.qi@linaro.org>
6323
6324 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6325 ptid_get_pid instead of get_thread_id.
6326
6327 2015-07-17 Yao Qi <yao.qi@linaro.org>
6328
6329 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6330 (add_current_inferior_and_thread): Don't initialise ptid.
6331
6332 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6333
6334 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6335 unavailable if invalid.
6336
6337 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6338
6339 Revert the previous 6 commits:
6340 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6341 Move gdb_regex* to common/
6342 Prepare linux_find_memory_regions_full & co. for move
6343 Move linux_find_memory_regions_full & co.
6344 gdbserver build-id attribute generator
6345 Validate symbol file using build-id
6346
6347 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6348 Jan Kratochvil <jan.kratochvil@redhat.com>
6349
6350 Validate symbol file using build-id.
6351 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6352 and 'show validate-build-id'. Add build-id attribute.
6353 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6354 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6355 * solib-frv.c (_initialize_frv_solib): Ditto.
6356 * solib-spu.c (set_spu_solib_ops): Ditto.
6357 * solib-svr4.c: Include rsp-low.h.
6358 (NOTE_GNU_BUILD_ID_NAME): New define.
6359 (svr4_validate): New function.
6360 (svr4_copy_library_list): Duplicate field build_id.
6361 (library_list_start_library): Parse 'build-id' attribute.
6362 (svr4_library_attributes): Add 'build-id' attribute.
6363 (_initialize_svr4_solib): Assign validate value.
6364 * solib-target.c (solib.h): Include.
6365 (_initialize_solib_target): Assign validate value.
6366 * solib.c (validate_build_id, show_validate_build_id): New.
6367 (solib_map_sections): Use ops->validate.
6368 (clear_so): Free build_id.
6369 (default_solib_validate): New function.
6370 (_initialize_solib): Add "validate-build-id".
6371 * solib.h (default_solib_validate): New declaration.
6372 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6373 (target_so_ops): New field 'validate'.
6374
6375 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6376 Jan Kratochvil <jan.kratochvil@redhat.com>
6377
6378 gdbserver build-id attribute generator.
6379 * features/library-list-svr4.dtd (library-list-svr4): New
6380 'build-id' attribute.
6381
6382 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6383 Jan Kratochvil <jan.kratochvil@redhat.com>
6384
6385 Move linux_find_memory_regions_full & co.
6386 * linux-tdep.c (nat/linux-maps.h): Include.
6387 (gdb_regex.h): Remove the include.
6388 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6389 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6390 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6391 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6392 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6393 and target/target.h.
6394 (struct smaps_vmflags, read_mapping, decode_vmflags)
6395 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6396 (linux_find_memory_regions_full): Move from linux-tdep.c.
6397 * nat/linux-maps.h (read_mapping): New declaration.
6398 (linux_find_memory_region_ftype, enum filterflags): Moved from
6399 linux-tdep.c.
6400 (linux_find_memory_regions_full): New declaration.
6401 * target.c (target/target-utils.h): Include.
6402 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6403 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6404 definitions to target/target-utils.c.
6405 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6406 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6407 from target.c.
6408 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6409 (read_alloc): New declaration.
6410 (read_stralloc_func_ftype): New typedef.
6411 (read_stralloc): New declaration.
6412 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6413
6414 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6415 Jan Kratochvil <jan.kratochvil@redhat.com>
6416
6417 Prepare linux_find_memory_regions_full & co. for move.
6418 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6419 (linux_find_memory_regions_full): Change signature and prepare
6420 for moving to linux-maps.
6421 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6422 (linux_find_memory_regions_thunk): New.
6423 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6424 (linux_find_memory_regions_gdb): New.
6425 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6426 (linux_make_mappings_corefile_notes): Use
6427 linux_find_memory_regions_gdb.
6428 * target.c (read_alloc_pread_ftype): New typedef.
6429 (target_fileio_read_alloc_1_pread): New function.
6430 (read_alloc): Refactor from target_fileio_read_alloc_1.
6431 (read_stralloc_func_ftype): New typedef.
6432 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6433 (read_stralloc): Refactored from target_fileio_read_stralloc.
6434 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6435
6436 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6437
6438 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6439 common/gdb_regex.h.
6440 (COMMON_OBS): Add gdb_regex.o.
6441 (gdb_regex.o): New.
6442 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6443 --without-included-regex and USE_INCLUDED_REGEX.
6444 * common/gdb_regex.c: New file from utils.c functions.
6445 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6446 file wrapping define name.
6447 * configure: Rebuilt.
6448 * configure.ac (gdb_use_included_regex, --without-included-regex)
6449 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6450 * gdb_regex.h: Move it to common/gdb_regex.h.
6451 * utils.c: Remove include gdb_regex.h.
6452 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6453 (compile_rx_or_error): Move them to common/gdb_regex.c.
6454
6455 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6456 Jan Kratochvil <jan.kratochvil@redhat.com>
6457
6458 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6459 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6460 common/target-utils.h.
6461 (COMMON_OBS): Add target-utils.o.
6462 (linux-maps.o, target-utils.o): New.
6463 * target/target-utils.c: New file.
6464 * target/target-utils.h: New file.
6465 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6466 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6467 * nat/linux-maps.c: New file.
6468 * nat/linux-maps.h: New file.
6469
6470 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6471 Pedro Alves <palves@redhat.com>
6472
6473 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6474 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6475 (perf_event_read_bts): Change the type of SIZE and READ.
6476 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6477 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6478 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6479 mmap page.
6480 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6481 buffer size to UINT_MAX.
6482 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6483 DATA_TAIL.
6484 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6485 <last_head>: Change type.
6486 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6487 * common/btrace-common.c (btrace_data_append): Change the type of
6488 SIZE.
6489 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6490 check.
6491
6492 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6493
6494 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6495 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6496 with check_typedef.
6497 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6498 (ada_array_length): Likewise.
6499 (find_parallel_type_by_descriptive_type): Likewise.
6500 (ada_check_typedef): Likewise.
6501 * arm-tdep.c (arm_return_in_memory): Likewise.
6502 * ax-gdb.c (gen_trace_static_fields): Likewise.
6503 (gen_struct_ref_recursive): Likewise.
6504 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6505 (variable: block COLONCOLON name): Likewise.
6506 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6507 * c-lang.c (classify_type): Likewise.
6508 * c-typeprint.c (c_print_type): Likewise.
6509 (c_print_typedef): Likewise.
6510 (c_type_print_base): Likewise.
6511 * c-valprint.c (c_val_print): Likewise.
6512 * compile/compile-c-types.c (convert_type): Likewise.
6513 * compile/compile-object-load.c (get_out_value_type): Likewise.
6514 * completer.c (add_struct_fields): Likewise.
6515 (expression_completer): Likewise.
6516 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6517 (cp_lookup_nested_symbol_1): Likewise.
6518 (cp_lookup_nested_symbol): Likewise.
6519 * cp-valprint.c (cp_print_value_fields): Likewise.
6520 (cp_print_static_field): Likewise.
6521 * d-valprint.c (d_val_print): Likewise.
6522 * eval.c (evaluate_subexp_standard): Likewise.
6523 (evaluate_subexp_for_sizeof): Likewise.
6524 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6525 * f-typeprint.c (f_type_print_base): Likewise.
6526 * f-valprint.c (f_val_print): Likewise.
6527 * gdbtypes.c (get_discrete_bounds): Likewise.
6528 (create_array_type_with_stride): Likewise.
6529 (type_name_no_tag_or_error): Likewise.
6530 (lookup_struct_elt_type): Likewise.
6531 (get_unsigned_type_max): Likewise.
6532 (internal_type_vptr_fieldno): Likewise.
6533 (set_type_vptr_fieldno): Likewise.
6534 (internal_type_vptr_basetype): Likewise.
6535 (set_type_vptr_basetype): Likewise.
6536 (get_vptr_fieldno): Likewise.
6537 (is_integral_type): Likewise.
6538 (is_scalar_type): Likewise.
6539 (is_scalar_type_recursive): Likewise.
6540 (distance_to_ancestor): Likewise.
6541 (is_unique_ancestor_worker): Likewise.
6542 (check_types_equal): Likewise.
6543 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6544
6545 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6546
6547 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6548 also test for language_d.
6549 (dwarf2_compute_name): Likewise.
6550 (read_func_scope): Likewise.
6551 (read_structure_type): Likewise.
6552 (new_symbol_full): Likewise.
6553 (determine_prefix): Likewise.
6554 (read_import_statement): Use dot as the separator for language_d.
6555 (typename_concat): Likewise, but don't prefix the D main function.
6556
6557 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6558
6559 * nat/linux-namespaces.c (setns): Rename from this ...
6560 (do_setns): ... to this. Support calling setns if it exists.
6561 (mnsh_handle_setns): Call do_setns.
6562
6563 2015-07-13 Yao Qi <yao.qi@linaro.org>
6564
6565 * exec.c (exec_file_attach): Add period at the end of error
6566 message.
6567
6568 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6569
6570 * tui/tui-win.c (window_name_completer): New function.
6571 (focus_completer): Call window_name_completer. All old content
6572 moved into window_name_completer.
6573 (winheight_completer): New function.
6574 (_initialize_tui_win): Rename variable. Add completer to
6575 winheight command. Update doc string on winheight.
6576
6577 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6578
6579 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6580 all nios2 mach variants.
6581
6582 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6583
6584 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6585 of target_read_memory.
6586
6587 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6588
6589 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6590 string copy.
6591 (parse_scrolling_args): Likewise.
6592
6593 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6594
6595 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6596 names in this function.
6597
6598 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6601 (CMD_NAME): Likewise.
6602 (DATA_NAME): Likewise.
6603 (DISASSEM_NAME): Likewise.
6604 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6605 (tui_set_win_height): Likewise.
6606 (parse_scrolling_args): Likewise.
6607
6608 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6609
6610 * record-btrace.c (record_btrace_goto_begin)
6611 (record_btrace_goto_end, record_btrace_goto): Move call to
6612 print_stack_frame ...
6613 (record_btrace_set_replay): ... here. Set stop_pc.
6614 * record-full.c (record_full_goto_entry): Set stop_pc.
6615
6616 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6617
6618 * NEWS: Mention support for tracepoints on aarch64-linux.
6619
6620 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6621
6622 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6623 function. Return 1.
6624 (the_low_target): Install it.
6625
6626 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6627
6628 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6629 * gdb.trace/collection.exp: Likewise.
6630 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6631 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6632 * gdb.trace/report.exp: Likewise.
6633 * gdb.trace/trace-break.exp: Likewise.
6634 * gdb.trace/unavailable.exp: Likewise.
6635 * gdb.trace/while-dyn.exp: Likewise.
6636
6637 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6638
6639 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6640 (aarch64_gen_return_address): New function.
6641 (aarch64_gdbarch_init): Hook it.
6642
6643 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6644
6645 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6646 swallow NOT_AVAILABLE_ERROR.
6647 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6648 available_p is not set.
6649 (aarch64_stub_frame_unwind_stop_reason): New function.
6650 (aarch64_stub_unwind): Install it.
6651
6652 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6653
6654 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6655 field.
6656 (aarch64_make_prologue_cache_1): New function, factored out from
6657 aarch64_make_prologue_cache. Do not allocate cache. Set
6658 available_p.
6659 (aarch64_make_prologue_cache): Reimplement wrapping
6660 aarch64_make_prologue_cache_1, and swallowing
6661 NOT_AVAILABLE_ERROR.
6662 (aarch64_prologue_frame_unwind_stop_reason): New function.
6663 Return UNWIND_UNAVAILABLE if available_p is not set.
6664 (aarch64_prologue_unwind): Install it.
6665 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6666 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6667 frame_id_build_unavailable_stack if available_p is not set.
6668
6669 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6670
6671 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6672 fields.
6673 (aarch64_scan_prologue): Set prev_pc.
6674 (aarch64_make_prologue_cache): Set func.
6675 (aarch64_make_stub_cache): Set prev_pc.
6676 (aarch64_prologue_this_id): Remove local variables id, pc and
6677 func. Read prev_pc and func from cache.
6678 (aarch64_stub_this_id): Read prev_pc from cache.
6679
6680 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6681
6682 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6683 argument this_cache. Remove unused local variables reg and
6684 unwound_fp. Return early if this_cache is already set. Set
6685 this_cache.
6686 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6687
6688 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6689
6690 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6691 New argument this_cache. Return early if this_cache is already
6692 set. Set this_cache.
6693 (aarch64_prologue_this_id): Update call to
6694 aarch64_make_prologue_cache.
6695 (aarch64_prologue_prev_register): Likewise.
6696 (aarch64_normal_frame_base): Likewise.
6697
6698 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6699
6700 * c-valprint.c (c_val_print): Factor out memberptr printing code
6701 from c_val_print to ...
6702 (c_val_print_memberptr): ... this new function.
6703
6704 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6705
6706 * c-valprint.c (c_val_print): Factor out int printing code to ...
6707 (c_val_print_int): ... this new function.
6708
6709 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6710
6711 * c-valprint.c (c_val_print): Factor out struct and union
6712 printing code to ...
6713 (c_val_print_struct): ... this new function ...
6714 (c_val_print_union): ... and this new function.
6715
6716 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6717
6718 * c-valprint.c (c_val_print): Factor out pointer printing code
6719 to ...
6720 (c_val_print_ptr): ... this new function.
6721
6722 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6723
6724 * c-valprint.c (c_valprint): Factor our array printing code from
6725 c_val_print to ...
6726 (c_val_print_array): ... this new function.
6727
6728 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6729
6730 * c-valprint.c (c_val_print): Factor out pointer printing code
6731 to ...
6732 (print_unpacked_pointer): ... this new function.
6733
6734 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6735
6736 * c-valprint.c (c_val_print): Remove an assignment to i and move
6737 its declaration.
6738
6739 2015-07-09 Yao Qi <yao.qi@linaro.org>
6740
6741 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6742 argument ptid. Update comments. Caller update.
6743
6744 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6745
6746 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6747 mnt packets.
6748
6749 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6750
6751 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6752
6753 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6754
6755 * progspace.c (delete_program_space): Add missing spaces.
6756
6757 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6758
6759 * inferior.c (delete_inferior_1): Rename to ...
6760 (delete_inferior): ..., remove 'silent' parameter, delete
6761 program space when unused and remove call to prune_program_spaces.
6762 Remove the old, unused, delete_inferior.
6763 (delete_inferior_silent): Remove.
6764 (prune_inferiors): Change call from delete_inferior_1 to
6765 delete_inferior and remove 'silent' parameter. Remove call to
6766 prune_program_spaces.
6767 (remove_inferior_command): Idem.
6768 * inferior.h (delete_inferior_1): Rename to...
6769 (delete_inferior): ..., remove 'silent' parameter and remove the
6770 original delete_inferior.
6771 (delete_inferior_silent): Remove.
6772 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6773 delete_inferior_1 to delete_inferior and remove 'silent'
6774 parameter.
6775 * progspace.c (prune_program_spaces): Remove.
6776 (pspace_empty_p): Rename to...
6777 (program_space_empty_p): ... and make non-static.
6778 (delete_program_space): New.
6779 * progspace.h (prune_program_spaces): Remove declaration.
6780 (program_space_empty_p): New declaration.
6781 (delete_program_space): New declaration.
6782 * monitor.c (monitor_close): Replace call to
6783 delete_thread_silent and delete_inferior_silent with
6784 discard_all_inferiors.
6785
6786 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6787
6788 * defs.h (deprecated_register_changed_hook): Remove prototype.
6789 * interps.c (clear_iterpreter_hooks): Remove reference to
6790 deprecated_register_changed_hook.
6791 * top.c (deprecated_register_changed_hook): Remove prototype.
6792 * valops.c (value_assign): Remove reference to
6793 deprecated_register_changed_hook.
6794 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6795 Add comment documenting the function.
6796 (tui_register_changed_observer): Define.
6797 (tui_install_hooks): Remove reference to
6798 deprecated_register_changed_hook. Set
6799 tui_register_changed_observer.
6800 (tui_remove_hooks): Remove reference to
6801 deprecated_register_changed_hook. Unset
6802 tui_register_changed_observer.
6803
6804 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6805
6806 PR compile/18484
6807 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6808
6809 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6810
6811 PR exp/18617
6812 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6813
6814 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6815
6816 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6817
6818 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6819
6820 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6821 Use safe_strerror() instead of strerror().
6822
6823 2015-07-07 Yao Qi <yao.qi@linaro.org>
6824
6825 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6826 * features/arm-with-m-fpa-layout.c: Regenerated.
6827 * features/arm-with-m-vfp-d16.xml: Likewise.
6828 * features/arm-with-m-vfp-d16.c: Regenerated.
6829 * features/arm-with-m.xml: Likewise.
6830 * features/arm-with-m.c: Regenerated.
6831 * features/arm-with-neon.xml: Likewise.
6832 * features/arm-with-neon.c: Regenerated.
6833 * features/arm-with-vfpv2.xml: Likewise.
6834 * features/arm-with-vfpv2.c: Regenerated.
6835 * features/arm-with-vfpv3.xml: Likewise.
6836 * features/arm-with-vfpv3.c: Regenerated.
6837
6838 2015-07-07 Yao Qi <yao.qi@linaro.org>
6839
6840 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6841 arm-linux-nat.c.
6842 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6843 elf/external.h.
6844 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6845 if target is 32-bit.
6846 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6847 if target is 32-bit.
6848 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6849 if target is 32-bit.
6850 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6851 if target is 32-bit.
6852 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6853 (aarch64_linux_read_description): Return the right target
6854 description.
6855 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6856 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6857 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6858 arm-linux-tdep.o.
6859
6860 2015-07-07 Yao Qi <yao.qi@linaro.org>
6861
6862 * aarch32-linux-nat.c: New file.
6863 * aarch32-linux-nat.h: New file.
6864 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6865 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6866 aarch32_gp_regcache_supply.
6867 (store_regs): Move code to aarch32-linux-nat.c. Call
6868 aarch32_gp_regcache_collect.
6869 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6870 aarch32_vfp_regcache_supply.
6871 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6872 aarch32_vfp_regcache_collect.
6873 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6874
6875 2015-07-07 Yao Qi <yao.qi@linaro.org>
6876
6877 * arm-linux-nat.c (store_fpregister): Remove.
6878 (store_register): Likewise.
6879 (fetch_fpregister): Likewise.
6880 (fetch_register): Likewise.
6881 (arm_linux_store_inferior_registers): Call store_regs and
6882 store_fpregs instead.
6883 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6884 fetch_regs instead.
6885
6886 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6887
6888 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6889 and focus commands.
6890
6891 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6892
6893 * NEWS: Create a new section for the next release branch.
6894 Rename the section of the current branch, now that it has
6895 been cut.
6896
6897 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6898
6899 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6900 * version.in: Bump version to 7.10.50.DATE-cvs.
6901
6902 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6903
6904 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6905 breakpoints in a special way.
6906 (remove_breakpoint): Likewise.
6907 (mark_breakpoints_out): Likewise.
6908
6909 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6910
6911 * doc/gdb.texinfo (TUI): Add comma after @xref.
6912
6913 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6914
6915 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6916 instead of casting the structure type.
6917
6918 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6919
6920 * valops.c (search_struct_field): Remove OFFSET parameter.
6921 (value_cast_structs): Adjust calls to search_struct_field.
6922 (value_struct_elt): Same.
6923 (find_overload_match): Same.
6924
6925 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6926
6927 * value.c (value_fetch_lazy): Update comment, change return
6928 value to void.
6929 * value.h (value_fetch_lazy): Change return value to void.
6930
6931 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6932
6933 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6934 (tui_win_name): Make parameter and result const.
6935 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6936
6937 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6938
6939 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6940 use printf_unfiltered.
6941 (set_mpx_cmd): Add missing trailing space to command string
6942 literal.
6943 (_initialize_i386_tdep): Give the "mpx" prefix command its
6944 correct name.
6945
6946 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6947
6948 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6949 (enum rx_frame_type): New.
6950 (struct rx_prologue): Add new field `frame_type'.
6951 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6952 parameter in the prologue struct. Add code for recording
6953 locations of PC and PSW for fast interrupt and exception frames.
6954 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6955 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6956 (rx_frame_type): New function.
6957 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6958 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6959 `this_cache'.
6960 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6961 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6962 RX_FRAME_TYPE_FAST_INTERRUPT.
6963 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6964 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6965 (rx_frame_unwind): Use rx_frame_sniffer instead of
6966 default_frame_sniffer.
6967 (rx_frame_unwind): New unwinder.
6968 (rx_gdbarch_init): Register new unwinder.
6969
6970 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6971
6972 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6973 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6974 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6975 and RX_FPSW_REGNUM.
6976 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6977
6978 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6979
6980 Fix GCC false warning.
6981 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6982
6983 2015-07-02 Yao Qi <yao.qi@linaro.org>
6984
6985 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6986 typo in the debugging message.
6987
6988 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6989
6990 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6991 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6992 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6993 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6994 (btrace_maint_clear): New.
6995 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6996 (pt_print_packet, btrace_maint_decode_pt)
6997 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6998 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6999 (maint_btrace_packet_history_cmd)
7000 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7001 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7002 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7003 (maint_info_btrace_cmd, _initialize_btrace): New.
7004 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7005 (btrace_maint_packet_history, btrace_maint_info): New.
7006 (btrace_thread_info) <maint>: New.
7007 * NEWS: Announce it.
7008
7009 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7010
7011 * btrace.c (btrace_fetch): Append the new trace data.
7012 (btrace_clear): Clear the stored trace data.
7013 * btrace.h (btrace_thread_info) <data>: New.
7014 * common/btrace-common.h (btrace_data_clear)
7015 (btrace_data_append): New.
7016 * common/btrace-common.c (btrace_data_clear)
7017 (btrace_data_append): New.
7018
7019 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7020
7021 * nat/linux-btrace.c (linux_enable_bts): Check for
7022 PERF_ATTR_SIZE_VER5.
7023 Check for data_offset and data_size fields. Use them.
7024
7025 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7026
7027 * NEWS: Announce new commands "record btrace pt" and "record pt".
7028 Announce new options "set|show record btrace pt buffer-size".
7029 * btrace.c: Include "rsp-low.h".
7030 Include "inttypes.h".
7031 (btrace_add_pc): Add forward declaration.
7032 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7033 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7034 (btrace_compute_ftrace_pt): New.
7035 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7036 (check_xml_btrace_version): Update version check.
7037 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7038 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7039 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7040 (btrace_pt_children): New.
7041 (btrace_children): Add support for "pt".
7042 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7043 (btrace_conf_children): Add support for "pt".
7044 * btrace.h: Include "intel-pt.h".
7045 (btrace_pt_error): New.
7046 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7047 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7048 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7049 (struct btrace_config_pt): New.
7050 (struct btrace_config)<pt>: New.
7051 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7052 (struct btrace_data)<pt>: New.
7053 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7054 (pt): New.
7055 * features/btrace.dtd (btrace)<pt>: New.
7056 (pt, pt-config, cpu): New.
7057 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7058 (perf_event_pt_event_type, kernel_supports_pt)
7059 (linux_supports_pt): New.
7060 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7061 (linux_enable_bts): Free tinfo on error.
7062 (linux_enable_pt): New.
7063 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7064 (linux_disable_pt): New.
7065 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7066 (linux_fill_btrace_pt_config, linux_read_pt): New.
7067 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7068 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7069 (struct btrace_target_info)<pt>: New.
7070 * record-btrace.c (set_record_btrace_pt_cmdlist)
7071 (show_record_btrace_pt_cmdlist): New.
7072 (record_btrace_print_pt_conf): New.
7073 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7074 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7075 (cmd_record_btrace_pt_start): New.
7076 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7077 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7078 (_initialize_record_btrace): Add new commands.
7079 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7080 (remote_protocol_features): Add "Qbtrace:pt".
7081 Add "Qbtrace-conf:pt:size".
7082 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7083 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7084 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7085 (_initialize_remote): Add new commands.
7086
7087 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7088
7089 * configure.ac: check for libipt
7090 * configure: Regenerate.
7091 * config.in: Regenerate.
7092 * Makefile.in (LIBIPT): New.
7093 (CLIBS): Add $LIBIPT.
7094 * NEWS: document new configure options
7095
7096 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7097
7098 * compile/compile-object-load.c (compile_object_load): Replace debug
7099 message "lookup undefined ELF symbol" by 3 more specific messages.
7100
7101 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7102
7103 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7104 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7105 (rl78_gdbarch_init): Initialize rl78_psw_type.
7106
7107 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7108
7109 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7110 Update commentary. Always refresh the registers when frame
7111 information has changed.
7112 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7113 Change return type to int. Return 1 if frame information has
7114 changed, 0 otherwise.
7115 (tui_before_prompt): Update commentary.
7116 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7117 int.
7118
7119 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7120
7121 PR tui/13378
7122 * frame.c (select_frame): Remove reference to
7123 deprecated_selected_frame_level_changed_hook.
7124 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7125 declaration.
7126 * stack.c (deprecated_selected_frame_level_changed_hook):
7127 Likewise.
7128 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7129 Rename to ...
7130 (tui_refresh_frame_and_register_information): ... this. Bail
7131 out if there is no stack. Don't update register information
7132 unless registers_too_p is true.
7133 (tui_print_frame_info_listing_hook): Rename to ...
7134 (tui_dummy_print_frame_info_listing_hook): ... this.
7135 (tui_before_prompt): New function.
7136 (tui_normal_stop): New function.
7137 (tui_before_prompt_observer): New observer.
7138 (tui_normal_stop_observer): New observer.
7139 (tui_install_hooks): Set
7140 deprecated_print_frame_info_listing_hook to
7141 tui_dummy_print_frame_info_listing_hook. Register
7142 tui_before_prompt_observer to call tui_before_prompt and
7143 tui_normal_stop_observer to call tui_normal_stop. Remove
7144 reference to deprecated_selected_frame_level_changed_hook.
7145 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7146 and tui_normal_stop_observer. Remove reference to
7147 deprecated_selected_frame_level_changed_hook.
7148
7149 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7150
7151 PR tui/13378
7152 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7153 return an int instead of void. Return whether the locator
7154 window has changed.
7155 (tui_show_frame_info): If the locator info has not changed, then
7156 bail out early to avoid refreshing the windows.
7157
7158 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7159
7160 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7161 LOCATOR_WIN to tui_alloc_content.
7162
7163 2015-06-30 Yao Qi <yao.qi@linaro.org>
7164
7165 PR tdep/18605
7166 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7167 instructions.
7168
7169 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7170
7171 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7172 (rx_dwarf_reg_to_regnum): New function.
7173 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7174 unwinding.
7175
7176 2015-06-29 Pedro Alves <palves@redhat.com>
7177
7178 PR threads/18127
7179 * infcall.c (run_inferior_call): On infcall success, if the thread
7180 was marked stopped before, reset it back to stopped.
7181 * infrun.c (resume): Don't suppress the set_running calls when
7182 doing an infcall.
7183 (normal_stop): Only discard the finish_thread_state cleanup if the
7184 infcall succeeded.
7185
7186 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7187
7188 * MAINTAINERS (Write After Approval): Update my email address.
7189
7190 2015-06-26 Keith Seitz <keiths@redhat.com>
7191 Doug Evans <dje@google.com>
7192
7193 PR 16253
7194 * block.c (block_lookup_symbol): For non-function blocks,
7195 continue to search for a symbol with an exact domain match
7196 Otherwise, return any previously found "best domain" symbol.
7197 (block_lookup_symbol_primary): Likewise.
7198
7199 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7200
7201 * NEWS: Mention the new option "history remove-duplicates".
7202 * top.c (history_remove_duplicates): New static variable.
7203 (show_history_remove_duplicates): New static function.
7204 (gdb_add_history): Conditionally remove duplicate history
7205 entries.
7206 (init_main): Add "history remove-duplicates" option.
7207
7208 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7209
7210 * tui/tui-win.c (focus_completer): New static function.
7211 (_initialize_tui_win): Set the completion function of the
7212 "focus" command to focus_completer.
7213
7214 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7215
7216 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7217 and language_asm..
7218 * symtab.c (find_function_start_sal): Likewise.
7219
7220 2015-06-25 Gary Benson <gbenson@redhat.com>
7221
7222 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7223 it is the empty string after trailing slashes have been stripped.
7224
7225 2015-06-25 Gary Benson <gbenson@redhat.com>
7226
7227 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7228 * infrun.c (follow_exec): Likewise.
7229 * remote.c (remote_filesystem_is_local): Likewise.
7230 * solib.c (solib_find_1): Likewise.
7231
7232 2015-06-24 Keith Seitz <keiths@redhat.com>
7233
7234 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7235 return value from lrealpath.
7236
7237 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7238
7239 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7240
7241 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7242
7243 * remote-sim.c: Include gdb_bfd.h.
7244 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7245 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7246
7247 2015-06-24 Yao Qi <yao.qi@linaro.org>
7248
7249 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7250 set_gdbarch_get_siginfo_type.
7251 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7252 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7253 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7254 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7255 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7256 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7257 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7258 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7259 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7260 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7261
7262 2015-06-24 Gary Benson <gbenson@redhat.com>
7263
7264 * common/buffer.c (stdint.h): Do not include.
7265 * common/print-utils.c (stdint.h): Likewise.
7266 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7267 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7268 * ft32-tdep.c (gdb_assert.h): Likewise.
7269 * guile/scm-utils.c (stdint.h): Likewise.
7270 * i386-linux-tdep.c (stdint.h): Likewise.
7271 * i386-tdep.c (stdint.h): Likewise.
7272 * nat/linux-btrace.c (stdint.h): Likewise.
7273 * nat/linux-btrace.h (stdint.h): Likewise.
7274 * nat/linux-ptrace.c (stdint.h): Likewise.
7275 * nat/mips-linux-watch.h (stdint.h): Likewise.
7276 * ppc-linux-nat.c (stdint.h): Likewise.
7277 * python/python-internal.h (stdint.h): Likewise.
7278 * stub-termcap.c (stdlib.h): Likewise.
7279 * target/target.h (stdint.h): Likewise.
7280 * xtensa-linux-nat.c (stdint.h): Likewise.
7281
7282 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7283
7284 * top.c (init_history): Look at errno after calling strtol to
7285 properly map large GDBHISTSIZE values to infinity.
7286
7287 2015-06-23 Doug Evans <dje@google.com>
7288
7289 * inferior.h (struct inferior_suspend_state): Delete, unused.
7290 All references deleted.
7291
7292 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7293
7294 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7295 (microblaze_push_dummy_call): Likewise.
7296 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7297 and set_gdbarch_push_dummy_call.
7298
7299 2015-06-23 Yao Qi <yao.qi@linaro.org>
7300
7301 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7302 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7303 (amd64_linux_store_inferior_registers): Likewise.
7304 * arm-linux-nat.c (fetch_fpregister): Likewise.
7305 (fetch_fpregs, store_fpregister): Likewise.
7306 (store_fpregister, store_fpregs): Likewise.
7307 (fetch_register, fetch_regs): Likewise.
7308 (store_register, store_regs): Likewise.
7309 (fetch_vfp_regs, store_vfp_regs): Likewise.
7310 (arm_linux_read_description): Check have_ptrace_getregset is
7311 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7312 or TRIBOOL_FALSE.
7313 * i386-linux-nat.c (fetch_xstateregs): Check
7314 have_ptrace_getregset is not TRIBOOL_TRUE.
7315 (store_xstateregs): Likewise.
7316 * linux-nat.c (have_ptrace_getregset): Change its type to
7317 enum tribool.
7318 * linux-nat.h (tribool): New enum.
7319 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7320 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7321
7322 2015-06-19 Doug Evans <dje@google.com>
7323
7324 * NEWS: Mention Sun's version of stabs is no longer supported.
7325 * elfread.c (free_elfinfo): Delete. All uses updated.
7326 (elfstab_offset_sections): Delete. All uses updated.
7327 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7328 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7329 All uses updated.
7330 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7331 All callers updated.
7332
7333 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7334
7335 * common/rsp-low.c (needs_escaping): New.
7336 (remote_escape_output): Add unit_size parameter. Refactor to
7337 support multi-byte addressable units. Rename parameters.
7338 * common/rsp-low.h (remote_escape_output): Add unit_size
7339 parameter and rename others. Update doc.
7340 * remote.c (align_for_efficient_write): New.
7341 (remote_write_bytes_aux): Add unit_size parameter and use it.
7342 Rename some variables. Update doc.
7343 (remote_xfer_partial): Get unit size and use it.
7344 (remote_read_bytes_1): Add unit_size parameter and use it.
7345 Rename some variables. Update doc.
7346 (remote_write_bytes): Same.
7347 (remote_xfer_live_readonly_partial): Same.
7348 (remote_read_bytes): Same.
7349 (remote_flash_write): Update call to remote_write_bytes_aux.
7350 (remote_write_qxfer): Update call to remote_escape_output.
7351 (remote_search_memory): Same.
7352 (remote_hostio_pwrite): Same.
7353
7354 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7355
7356 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7357 locations as inserted.
7358 Update and expand comment about permanent locations.
7359 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7360 Move comment to add_location_to_breakpoint.
7361 (update_global_location_list): Don't error out if a permanent
7362 breakpoint is not marked inserted.
7363 Don't error out if a non-permanent breakpoint location is inserted on
7364 top of a permanent breakpoint.
7365
7366 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7367
7368 * breakpoint.c (make_breakpoint_permanent): Remove unused
7369 function.
7370 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7371
7372 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7373
7374 PR gdb/16999
7375 * NEWS: Mention new GDBHISTSIZE behavior.
7376 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7377 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7378
7379 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7380
7381 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7382 * top.c (init_history): Read from GDBHISTSIZE instead of
7383 HISTSIZE.
7384 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7385
7386 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7387
7388 * top.c (gdb_safe_append_history): Do not call
7389 history_truncate_file if the history is not stifled.
7390
7391 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7392
7393 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7394 * syscalls/s390x-linux.xml: Likewise.
7395
7396 2015-06-16 Michael Eager <eager@eagercon.com>
7397
7398 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7399
7400 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7401
7402 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7403 target_terminal_ours_for_output() before calling
7404 tui_show_frame_info(), and restore the original terminal
7405 settings afterwards.
7406
7407 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7408
7409 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7410
7411 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7412
7413 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7414 memory unit size.
7415 (mi_cmd_data_write_memory_bytes): Same.
7416
7417 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7418
7419 * corefile.c (write_memory): Update doc.
7420 * gdbcore.h (write_memory): Same.
7421
7422 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7423
7424 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7425 (dump_mapping_p): Use it for parameter filterflags.
7426 (linux_find_memory_regions_full): Use it for variable filterflags.
7427
7428 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7429 Jan Kratochvil <jan.kratochvil@redhat.com>
7430
7431 Merge multiple hex conversions.
7432 * monitor.c: Include rsp-low.h.
7433 (fromhex): Remove definition.
7434
7435 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7436 Jan Kratochvil <jan.kratochvil@redhat.com>
7437
7438 Move utility functions to common/.
7439 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7440 Move defs to common/common-utils.c.
7441 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7442 (skip_to_space_const): Move decls to common/common-utils.h.
7443 * common/common-defs.h: Move include of common-types.h before
7444 common-utils.h.
7445 * common/common-utils.c: Include host-defs.h and ctype.h.
7446 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7447 from utils.c.
7448 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7449 cli/cli-utils.c.
7450 * common/common-utils.h (strtoulst): Move decl from utils.h.
7451 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7452 Move from cli/cli-utils.h.
7453 * common/host-defs.h: Include limits.h.
7454 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7455 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7456 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7457 common/common-utils.h.
7458 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7459 (strtoulst): Move to common/common-utils.c.
7460 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7461
7462 2015-06-15 Yao Qi <yao.qi@linaro.org>
7463
7464 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7465
7466 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7467
7468 * build-id.c: Don't include elf-bfd.h.
7469 (build_id_bfd_get): Use bfd_build_id.
7470 (build_id_verify): Ditto.
7471 * build-id.h: Ditto.
7472 (find_separate_debug_file_by_buildid): Ditto.
7473 * python/py-objfile.c: Don't include elf-bfd.h.
7474 (objfpy_get_build_id) Use bfd_build_id.
7475 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7476 * coffread.c: Include build-id.h.
7477 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7478
7479 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7480
7481 * windows-nat.c (do_windows_fetch_inferior_registers)
7482 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7483 conditional with __CYGWIN__.
7484
7485 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7486
7487 * completer.c: Add arch-utils.h include.
7488 (enum reg_completer_targets): New enum.
7489 (reg_or_group_completer_1): New function containing old
7490 reg_or_group_completer, add and use new parameter to control what
7491 is completed on. Use get_current_arch rather than architecture of
7492 currently selected frame.
7493 (reg_or_group_completer): Call new reg_or_group_completer_1.
7494 (reggroup_completer): Call new reg_or_group_completer_1.
7495 * completer.h (reggroup_completer): Add declaration.
7496 * tui/tui-regs.c: Add 'completer.h' include.
7497 (tui_reg_next_command): Renamed to...
7498 (tui_reg_next): ...this. Adjust parameters and return rather than
7499 display new group.
7500 (tui_reg_prev_command): Renamed to...
7501 (tui_reg_prev): ...this. Adjust parameters and return rather than
7502 display new group.
7503 (tui_reg_float_command): Delete.
7504 (tui_reg_general_command): Delete.
7505 (tui_reg_system_command): Delete.
7506 (tui_reg_command): Rewrite to perform switching of register group.
7507 Add header comment.
7508 (tuireglist): Remove.
7509 (tui_reggroup_completer): New function.
7510 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7511 creation of 'tui reg' command.
7512 * NEWS: Add comment about 'tui reg' changes.
7513
7514 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7515
7516 * target.c (target_read): Consider addressable unit size when
7517 reading from a memory object.
7518 (read_memory_robust): Same.
7519 (read_whatever_is_readable): Same.
7520 (target_write_with_progress): Consider addressable unit size
7521 when writing to a memory object.
7522 * target.h (target_read): Update documentation.
7523 (target_write): Add documentation.
7524
7525 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7526
7527 * arch-utils.h (default_addressable_memory_unit_size): New.
7528 * arch-utils.c (default_addressable_memory_unit_size): New.
7529 * gdbarch.sh (addressable_memory_unit_size): New.
7530 * gdbarch.h: Re-generate.
7531 * gdbarch.c: Re-generate.
7532
7533 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7534
7535 * target.c (target_read): Rename variables and use
7536 TARGET_XFER_E_IO.
7537 (target_read_with_progress): Same.
7538 (read_memory_robust): Constify parameters and rename
7539 variables.
7540 (read_whatever_is_readable): Constify parameters,
7541 rename variables, adjust formatting.
7542 * target.h (read_memory_robust): Constify parameters.
7543
7544 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7545
7546 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7547 synthetic (non-AltiVec) vector types.
7548 (ppc64_sysv_abi_return_value): Likewise.
7549
7550 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7551
7552 PR breakpoints/16465
7553 * breakpoint.c (create_breakpoint): Save extra_string for
7554 pending breakpoints.
7555
7556 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7557
7558 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7559 and bt_mask to CORE_ADDR.
7560
7561 2015-06-11 Gary Benson <gbenson@redhat.com>
7562
7563 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7564 (mnsh_recv_message): Likewise.
7565
7566 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7567
7568 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7569 long long int and plongest instead of %ll.
7570
7571 2015-06-11 Gary Benson <gbenson@redhat.com>
7572
7573 * nat/linux-namespaces.c (gdb_wait.h): New include.
7574 (sys/wait.h): Do not include.
7575
7576 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7577
7578 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7579 end_sequence is true.
7580
7581 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7582
7583 Code cleanup.
7584 * solib-target.c (library_list_start_list): Use explicit NULL
7585 comparison.
7586
7587 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7588
7589 * solib-target.c (library_list_start_list): Do not dereference
7590 variable version in its initialization. Make the VERSION check handle
7591 NULL.
7592 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7593
7594 2015-06-10 Gary Benson <gbenson@redhat.com>
7595
7596 * NEWS: Announce support for direct access of executable and
7597 shared library files when attaching to inferiors in containers
7598 on GNU/Linux systems.
7599
7600 2015-06-10 Gary Benson <gbenson@redhat.com>
7601
7602 * remote.c (struct remote_state) <fs_pid>: New field.
7603 (new_remote_state): Initialize the above.
7604 (PACKET_vFile_setfs): New enum value.
7605 (remote_hostio_set_filesystem): New function.
7606 (remote_hostio_open): Call the above.
7607 (remote_hostio_unlink): Likewise.
7608 (remote_hostio_readlink): Likewise.
7609 (_initialize_remote): Register new "set/show remote
7610 hostio-setfs-packet" command.
7611 * NEWS: Announce new vFile:setfs packet.
7612
7613 2015-06-10 Gary Benson <gbenson@redhat.com>
7614
7615 * linux-nat.c (nat/linux-namespaces.h): New include.
7616 (fileio.h): Likewise.
7617 (linux_nat_filesystem_is_local): New function.
7618 (linux_nat_fileio_pid_of): Likewise.
7619 (linux_nat_fileio_open): Likewise.
7620 (linux_nat_fileio_readlink): Likewise.
7621 (linux_nat_fileio_unlink): Likewise.
7622 (linux_nat_add_target): Initialize to_filesystem_is_local,
7623 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7624 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7625 commands.
7626 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7627
7628 2015-06-10 Gary Benson <gbenson@redhat.com>
7629
7630 * target.h (struct inferior): New forward declaration.
7631 (struct target_ops) <to_filesystem_is_local>: Update comment.
7632 (struct target_ops) <to_fileio_open>: New argument inf.
7633 Update comment. All implementations updated.
7634 (struct target_ops) <to_fileio_unlink>: Likewise.
7635 (struct target_ops) <to_fileio_readlink>: Likewise.
7636 (target_filesystem_is_local): Update comment.
7637 (target_fileio_open): New argument inf. Update comment.
7638 (target_fileio_unlink): Likewise.
7639 (target_fileio_readlink): Likewise.
7640 (target_fileio_read_alloc): Likewise.
7641 (target_fileio_read_stralloc): Likewise.
7642 * target.c (target_fileio_open): New argument inf.
7643 Pass inf to implementation. Update debug printing.
7644 (target_fileio_unlink): Likewise.
7645 (target_fileio_readlink): Likewise.
7646 (target_fileio_read_alloc_1): New argument inf. Pass inf
7647 to target_fileio_open.
7648 (target_fileio_read_alloc): New argument inf. Pass inf to
7649 target_fileio_read_alloc_1.
7650 (target_fileio_read_stralloc): Likewise.
7651 * gdb_bfd.c (inferior.h): New include.
7652 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7653 argument with new argument "inferior". Pass inferior to
7654 target_fileio_open.
7655 (gdb_bfd_open): Supply inferior argument to
7656 gdb_bfd_iovec_fileio_open.
7657 * linux-tdep.c (linux_info_proc): Supply inf argument to
7658 relevant target_fileio calls.
7659 (linux_find_memory_regions_full): Likewise.
7660 (linux_fill_prpsinfo): Likewise.
7661 * remote.c (remote_filesystem_is_local): Supply inf
7662 argument to remote_hostio_open.
7663 (remote_file_put): Likewise.
7664 (remote_file_get): Likewise.
7665 (remote_file_delete): Supply inf argument to
7666 remote_hostio_unlink.
7667
7668 2015-06-10 Gary Benson <gbenson@redhat.com>
7669
7670 * inf-child.c (inf_child_fileio_open): Replace comment.
7671 (inf_child_fileio_pwrite): Likewise.
7672 (inf_child_fileio_pread): Likewise.
7673 (inf_child_fileio_fstat): Insert blank line before comment.
7674 (inf_child_fileio_close): Replace comment.
7675 (inf_child_fileio_unlink): Likewise.
7676 (inf_child_fileio_readlink): Likewise.
7677 * remote.c (remote_hostio_open): Likewise.
7678 (remote_hostio_pread): Likewise.
7679 (remote_hostio_pwrite): Likewise.
7680 (remote_hostio_close): Likewise.
7681 (remote_hostio_unlink): Likewise.
7682 (remote_hostio_readlink): Likewise.
7683 (remote_hostio_fstat): Likewise.
7684 (remote_filesystem_is_local): Likewise.
7685 * target.c (target_fileio_open): Likewise.
7686 (target_fileio_pwrite): Likewise.
7687 (target_fileio_pread): Likewise.
7688 (target_fileio_fstat): Insert blank line before comment.
7689 (target_fileio_close): Replace comment.
7690 (target_fileio_unlink): Likewise.
7691 (target_fileio_readlink): Likewise.
7692 (target_fileio_read_alloc): Likewise.
7693 (target_fileio_read_stralloc): Likewise.
7694
7695 2015-06-10 Gary Benson <gbenson@redhat.com>
7696
7697 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7698 (check_pid_namespace_match): Use linux_ns_same rather than
7699 linux_proc_pid_get_ns to spot PID namespace mismatches.
7700 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7701 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7702
7703 2015-06-10 Gary Benson <gbenson@redhat.com>
7704
7705 * configure.ac (AC_CHECK_FUNCS): Add setns.
7706 * config.in: Regenerate.
7707 * configure: Likewise.
7708 * nat/linux-namespaces.h: New file.
7709 * nat/linux-namespaces.c: Likewise.
7710 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7711 (linux-namespaces.o): New rule.
7712 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7713 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7714 * config/arm/linux.mh (NATDEPFILES): Likewise.
7715 * config/i386/linux.mh (NATDEPFILES): Likewise.
7716 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7717 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7718 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7719 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7720 * config/mips/linux.mh (NATDEPFILES): Likewise.
7721 * config/pa/linux.mh (NATDEPFILES): Likewise.
7722 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7723 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7724 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7725 * config/s390/linux.mh (NATDEPFILES): Likewise.
7726 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7727 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7728 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7729 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7730
7731 2015-06-10 Gary Benson <gbenson@redhat.com>
7732
7733 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7734 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7735 (make_cleanup_close): Likewise.
7736 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7737 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7738 (make_cleanup_close): Likewise.
7739
7740 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7741
7742 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7743 from SuspendThread().
7744
7745 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7746
7747 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7748 from OutputDebugString.
7749
7750 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7751 Mircea Gherzan <mircea.gherzan@intel.com>
7752
7753 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7754 MPX_BT_MASK_32): New macros.
7755 (i386_mpx_set_bounds): New function that implements
7756 the command "set-mpx-bound".
7757 (i386_mpx_enabled): Helper function to test MPX availability.
7758 (i386_mpx_bd_base): Helper function to calculate the base directory
7759 address.
7760 (i386_mpx_get_bt_entry): Helper function to access a bound
7761 table entry.
7762 (i386_mpx_print_bounds): Effectively display bound information.
7763 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7764 "show mpx".
7765 (_initialize_i386_tdep):
7766 Add "bound" to the commands "show mpx" and "set mpx" commands.
7767 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7768 and "show mpx" commands.
7769 * NEWS: List new commands for MPX support.
7770
7771 2015-06-09 Gary Benson <gbenson@redhat.com>
7772
7773 * common/fileio.h (fileio_to_host_mode): New declaration.
7774 * common/fileio.c (fileio_to_host_mode): New Function.
7775 * inf-child.c (inf_child_fileio_open): Process mode argument
7776 with fileio_to_host_mode.
7777
7778 2015-06-09 Gary Benson <gbenson@redhat.com>
7779
7780 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7781 conditional.
7782
7783 2015-06-05 Gary Benson <gbenson@redhat.com>
7784
7785 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7786 * remote.c (remote_filesystem_is_local): ...here.
7787
7788 2015-06-04 Yao Qi <yao.qi@linaro.org>
7789
7790 * gdbarch.c: Regenerate it.
7791
7792 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7793
7794 * arch-utils.c (default_infcall_munmap): New.
7795 * arch-utils.h (default_infcall_munmap): New declaration.
7796 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7797 (munmap_list_free, munmap_listp_free_cleanup): New.
7798 (struct setup_sections_data): Add field munmap_list_headp.
7799 (setup_sections): Call munmap_list_add.
7800 (compile_object_load): New variable munmap_list_head, initialize
7801 setup_sections_data.munmap_list_headp, return munmap_list_head.
7802 * compile/compile-object-load.h (struct munmap_list): New declaration.
7803 (struct compile_module): Add field munmap_list_head.
7804 (munmap_list_free): New declaration.
7805 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7806 munmap_list_head.
7807 (do_module_cleanup): Call munmap_list_free.
7808 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7809 * gdbarch.c: Regenerate.
7810 * gdbarch.h: Regenerate.
7811 * gdbarch.sh (infcall_munmap): New.
7812 * linux-tdep.c (linux_infcall_munmap): New.
7813 (linux_init_abi): Install it.
7814
7815 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7816
7817 PR gdb/15564
7818 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7819
7820 2015-06-02 Yao Qi <yao.qi@linaro.org>
7821
7822 * i386-linux-nat.c: Include linux-nat.h.
7823
7824 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7825 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 PR symtab/18392
7828 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7829 assertion.
7830 * dwarf2loc.c (chain_candidate): Likewise.
7831
7832 2015-06-01 Yao Qi <yao.qi@linaro.org>
7833
7834 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7835 (store_vfp_regs): Use PTRACE_SETREGSET.
7836
7837 2015-06-01 Yao Qi <yao.qi@linaro.org>
7838
7839 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7840 (fetch_fpregs): Likewise.
7841 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7842 (store_fpregs): Likewise.
7843
7844 2015-06-01 Yao Qi <yao.qi@linaro.org>
7845
7846 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7847 (fetch_regs): Likewise.
7848 (store_regs): Use PTRACE_SETREGSET.
7849 (store_register): Likewise.
7850
7851 2015-06-01 Yao Qi <yao.qi@linaro.org>
7852
7853 * arm-linux-nat.c (arm_linux_read_description): Check whether
7854 kernel supports PTRACE_GETREGSET.
7855
7856 2015-06-01 Yao Qi <yao.qi@linaro.org>
7857
7858 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7859 * linux-nat.c: ... here.
7860 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7861 to ...
7862 * linux-nat.h: ... here.
7863
7864 2015-06-01 Yao Qi <yao.qi@linaro.org>
7865
7866 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7867 * i386-linux-nat.c: Likewise.
7868 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7869 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7870 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7871 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7872 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7873
7874 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7875
7876 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7877 compatible to what read_child and write_child return. This
7878 unbreaks that DJGPP build of GDB which was broken since v7.7.
7879
7880 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7881
7882 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7883
7884 2015-05-29 Roland McGrath <mcgrathr@google.com>
7885
7886 PR gdb/18464
7887 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7888 rather than internal_error for an unrecognized value.
7889
7890 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7891
7892 * xtensa-tdep.c (xtensa_pseudo_register_read)
7893 (xtensa_pseudo_register_write): Don't alias last pseudo register
7894 to a1.
7895
7896 2015-05-28 Don Breazeal <donb@codesourcery.com>
7897
7898 * infrun.c (follow_fork_inferior): Ensure the use of
7899 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7900 messages.
7901
7902 2015-05-28 Doug Evans <dje@google.com>
7903
7904 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7905
7906 2015-05-28 Yao Qi <yao.qi@linaro.org>
7907
7908 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7909 (arm_linux_fetch_inferior_registers): Use
7910 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7911 (arm_linux_store_inferior_registers): Likewise.
7912 (arm_linux_read_description): Don't set
7913 arm_linux_has_wmmx_registers.
7914 * arm-tdep.c (arm_gdbarch_init): Set
7915 tdep->have_wmmx_registers according target descriptions.
7916 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7917 field.
7918
7919 2015-05-28 Yao Qi <yao.qi@linaro.org>
7920
7921 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7922 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7923 instead of arm_linux_vfp_register_count.
7924 (store_vfp_regs): Likewise.
7925 (arm_linux_fetch_inferior_registers): Likewise.
7926 (arm_linux_store_inferior_registers): Likewise.
7927 (arm_linux_read_description): Don't set
7928 arm_linux_vfp_register_count.
7929 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7930 Adjust.
7931 * arm-tdep.c (arm_gdbarch_init): Add assert on
7932 vfp_register_count.
7933 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7934 field to vfp_register_count. All users updated.
7935
7936 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7937
7938 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7939 ELFOSABI_GNU binaries.
7940
7941 2015-05-27 Doug Evans <dje@google.com>
7942
7943 * dwarf2read.c (lnp_state_machine): New typedef.
7944 (lnp_reader_state): New typedef.
7945 (dwarf_record_line_1): Renamed from dwarf_record_line.
7946 All callers updated.
7947 (dwarf_record_line): New function.
7948 (init_lnp_state_machine): New function.
7949 (check_line_address): Replace p_record_line parameter with state.
7950 All callers updated.
7951 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7952 Update to record state in lnp_state_machine.
7953
7954 2015-05-27 Doug Evans <dje@google.com>
7955
7956 * dwarf2read.c (record_line_ftype): New typedef.
7957 (check_line_address): New function.
7958 (dwarf_decode_lines_1): Call it.
7959
7960 2015-05-27 Doug Evans <dje@google.com>
7961
7962 * NEWS: Mention "set debug dwarf-line".
7963 * dwarf2read.c (dwarf_line_debug): New static global.
7964 (add_include_dir): Add debug dwarf-line support.
7965 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7966 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7967
7968 2015-05-27 Doug Evans <dje@google.com>
7969
7970 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7971 All callers updated.
7972 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7973 * cp-support.h (cp_lookup_nested_symbol): Update.
7974
7975 2015-05-27 Doug Evans <dje@google.com>
7976
7977 PR symtab/18258
7978 * block.c (block_find_symbol): New function.
7979 (block_find_non_opaque_type): Ditto.
7980 (block_find_non_opaque_type_preferred): Ditto.
7981 * block.h (block_symbol_matcher_ftype): New typedef.
7982 (block_find_symbol): Declare.
7983 (block_find_non_opaque_type): Ditto.
7984 (block_find_non_opaque_type_preferred): Ditto.
7985 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7986 * psymtab.c (psym_lookup_symbol): Ditto.
7987 * symtab.c (basic_lookup_transparent_type_1): New function.
7988 (basic_lookup_transparent_type): Call it.
7989
7990 2015-05-27 Yao Qi <yao.qi@linaro.org>
7991
7992 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7993 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7994
7995 2015-05-27 Yao Qi <yao.qi@linaro.org>
7996
7997 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7998 before operator &&.
7999 (aarch64_record_load_store): Likewise.
8000
8001 2015-05-26 Doug Evans <dje@google.com>
8002
8003 PR c++/18141, c++/18417.
8004 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8005 a typedef.
8006
8007 2015-05-26 Doug Evans <dje@google.com>
8008
8009 * NEWS: Add entries for command renamings.
8010 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8011 All uses updated.
8012 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8013 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8014 All uses updated.
8015 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8016 All callers updated. Fix spelling of DWARF in help text.
8017 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8018 All uses updated.
8019 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8020 All uses updated.
8021 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8022 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8023 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8024 All uses updated.
8025 (show_dwarf_always_disassemble): Renamed from
8026 show_dwarf2_always_disassemble. All callers updated.
8027 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8028 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8029 "set/show dwarf max-cache-age". Rename
8030 "set/show dwarf2 always-disassemble" to
8031 "set/show dwarf always-disassemble". Rename
8032 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8033 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8034
8035 2015-05-26 Doug Evans <dje@google.com>
8036
8037 PR python/18438
8038 * python/py-lazy-string.c (stpy_convert_to_value): Use
8039 gdbpy_gdb_memory_error not PyExc_MemoryError.
8040 (gdbpy_create_lazy_string_object): Ditto.
8041
8042 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8043
8044 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8045
8046 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8047
8048 * tui/tui-regs.c (tui_reg_prev_command): New function.
8049 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8050 * reggroups.c (reggroup_prev): New function.
8051 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8052
8053 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8054 Yao Qi <yao.qi@linaro.org>
8055
8056 * aarch64-linux-tdep.c: Include linux-record.h and
8057 record-full.h.
8058 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8059 (aarch64_syscall): New enum.
8060 (aarch64_canonicalize_syscall): New function.
8061 (aarch64_all_but_pc_registers_record): New function.
8062 (aarch64_linux_syscall_record): New function.
8063 (aarch64_linux_init_abi): Install AArch64 process record
8064 handler. Update to handle syscall recording.
8065 * aarch64-tdep.c: Include record.h and record-full.h.
8066 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8067 (struct aarch64_mem_r): Define.
8068 (aarch64_record_result): New enum.
8069 (struct insn_decode_record): Define.
8070 (insn_decode_record): New typedef.
8071 (aarch64_record_data_proc_reg): New function.
8072 (aarch64_record_data_proc_imm): New function.
8073 (aarch64_record_branch_except_sys): New function.
8074 (aarch64_record_load_store): New function.
8075 (aarch64_record_data_proc_simd_fp): New function.
8076 (aarch64_record_asimd_load_store): New function.
8077 (aarch64_record_decode_insn_handler): New function.
8078 (deallocate_reg_mem): New function.
8079 (aarch64_process_record): New function.
8080 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8081 New field.
8082 (aarch64_process_record): New extern declaration.
8083 * configure.tgt: Add linux-record.o to gdb_target_obs.
8084 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8085
8086 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8087
8088 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8089 targets.
8090
8091 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8092
8093 * amd64-tdep.c: Replace in_function_epilogue_p with
8094 stack_frame_destroyed_p throughout.
8095 * arch-utils.c: Ditto.
8096 * arch-utils.h: Ditto.
8097 * arm-tdep.c: Ditto.
8098 * breakpoint.c: Ditto.
8099 * gdbarch.sh: Ditto.
8100 * hppa-tdep.c: Ditto.
8101 * i386-tdep.c: Ditto.
8102 * mips-tdep.c: Ditto.
8103 * nios2-tdep.c: Ditto.
8104 * rs6000-tdep.c: Ditto.
8105 * s390-linux-tdep.c: Ditto.
8106 * score-tdep.c: Ditto.
8107 * sh-tdep.c: Ditto.
8108 * sparc-tdep.c: Ditto.
8109 * sparc-tdep.h: Ditto.
8110 * sparc64-tdep.c: Ditto.
8111 * spu-tdep.c: Ditto.
8112 * tic6x-tdep.c: Ditto.
8113 * tilegx-tdep.c: Ditto.
8114 * xstormy16-tdep.c: Ditto.
8115 * gdbarch.c, gdbarch.h: Re-generated.
8116
8117 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8118
8119 * NEWS: Mention 'tui enable' and 'tui disable'.
8120 * tui/tui.c (tui_enable_command): New function.
8121 (tui_disable_command): New function.
8122 (_initialize_tui): New function.
8123
8124 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8125
8126 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8127
8128 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8129
8130 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8131 buf_ptr is freed.
8132
8133 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8134
8135 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8136 into ...
8137 (tui_set_layout_for_display_command): ...here, before calling
8138 tui_set_layout. Only set the layout if gdb has not already
8139 entered the TUI_FAILURE state.
8140
8141 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8142
8143 * tui/tui-layout.c (layout_completer): New function.
8144 (_initialize_tui_layout): Set completer on layout command.
8145
8146 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8147
8148 * tui/tui-layout.c (tui_set_layout): Remove
8149 tui_register_display_type parameter. Remove all checking of this
8150 parameter, and reindent function. Update header comment.
8151 (tui_set_layout_for_display_command): Rename to...
8152 (tui_set_layout_by_name): ...this, and don't check for different
8153 register class types, don't pass a tui_register_display_type to
8154 tui_set_layout. Update header comment.
8155 (layout_names): Remove register set specific names.
8156 * tui/tui-layout.h (tui_set_layout): Remove
8157 tui_register_display_type parameter.
8158 * tui/tui.c (tui_rl_change_windows): Don't pass a
8159 tui_register_display_type to tui_set_layout.
8160 (tui_rl_delete_other_windows): Likewise.
8161 (tui_enable): Likewise.
8162 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8163 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8164 (TUI_GENERAL_REGS_NAME): Remove.
8165 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8166 (TUI_SPECIAL_REGS_NAME): Remove.
8167 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8168 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8169 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8170 (enum tui_register_display_type): Remove.
8171 (struct tui_layout_def): Remove regs_display_type and
8172 float_regs_display_type fields.
8173 (struct tui_data_info): Remove regs_display_type field.
8174 (tui_layout_command): Use new name for
8175 tui_set_layout_for_display_command.
8176 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8177 (tui_clear_win_detail): Don't initialise removed fields of
8178 win_info.
8179 * tui/tui-regs.c (tui_show_registers): Use new name for
8180 tui_set_layout_for_display_command.
8181 * tui/tui.h (tui_set_layout_for_display_command): Rename
8182 declaration to...
8183 (tui_set_layout_by_name): ...this.
8184 * printcmd.c (display_command): Remove tui related layout call,
8185 and reindent.
8186
8187 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8188
8189 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8190 (handle_inferior_event): New function.
8191
8192 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8193
8194 * ada-lang.c (to_fixed_array_type): Rename local variable
8195 typename into type_name.
8196
8197 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8198
8199 Fix ASAN crash for gdb.compile/compile.exp.
8200 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8201
8202 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8203
8204 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8205 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8206 * compile/compile-object-load.c (setup_sections, compile_object_load):
8207 Likewise.
8208 * compile/compile.c (compile_to_object): Likewise.
8209
8210 2015-05-16 Doug Evans <xdje42@gmail.com>
8211
8212 * NEWS: Mention support for unbuffered Guile memory ports.
8213 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8214 (ioscm_lseek_address): Improve overflow calculation.
8215 (gdbscm_memory_port_fill_input): Add assert.
8216 (gdbscm_memory_port_write): Handle unbuffered ports.
8217 Handle large writes identical to Guile's fport_write.
8218 (gdbscm_memory_port_seek): Fix seeking past end check.
8219 (gdbscm_memory_port_close): Handle closing unbuffered port.
8220 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8221 (ioscm_init_memory_port): Handle unbuffered ports.
8222 (ioscm_reinit_memory_port): Ditto.
8223 (ioscm_init_memory_port): Update size calculation.
8224 (gdbscm_open_memory): Support zero sized ports.
8225
8226 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8227
8228 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8229 variable compiler warnings.
8230
8231 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8232
8233 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8234
8235 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8236 Phil Muldoon <pmuldoon@redhat.com>
8237
8238 * NEWS (Changes since GDB 7.9): Add compile print.
8239 * compile/compile-c-support.c (add_code_header, add_code_footer)
8240 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8241 COMPILE_I_PRINT_VALUE_SCOPE.
8242 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8243 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8244 New.
8245 * compile/compile-object-load.c: Include block.h.
8246 (get_out_value_type): New function.
8247 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8248 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8249 OUT_VALUE_TYPE.
8250 * compile/compile-object-load.h (struct compile_module): Add fields
8251 out_value_addr and out_value_type.
8252 * compile/compile-object-run.c: Include valprint.h and compile.h.
8253 (struct do_module_cleanup): Add fields out_value_addr and
8254 out_value_type.
8255 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8256 COMPILE_I_PRINT_VALUE_SCOPE.
8257 (compile_object_run): Propagate out_value_addr and out_value_type.
8258 Pass OUT_VALUE_ADDR.
8259 * compile/compile.c: Include valprint.h.
8260 (compile_print_value, compile_print_command): New functions.
8261 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8262 (_initialize_compile): Update compile code help text. Install
8263 compile_print_command.
8264 * compile/compile.h (compile_print_value): New prototype.
8265 * defs.h (enum compile_i_scope_types): Add
8266 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8267
8268 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8269
8270 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8271 Rely on its parameter count.
8272 (compile_object_load): Replace lookup_minimal_symbol_text by
8273 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8274 return value.
8275 * compile/compile-object-load.h (struct compile_module): Replace
8276 func_addr by func_sym.
8277 * compile/compile-object-run.c: Include block.h.
8278 (compile_object_run): Reset module variable after it is freed. Use
8279 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8280
8281 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8282
8283 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8284 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8285 (c_compute_program): Call generate_register_struct after typedefs.
8286 * compile/compile-loc2c.c (push, pushf_register_address)
8287 (pushf_register): Cast to GCC_UINTPTR.
8288 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8289 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8290 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8291 * compile/compile.c (_initialize_compile): Enable warnings for
8292 COMPILE_ARGS.
8293
8294 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8295
8296 * cli/cli-script.c (execute_control_command): Update
8297 eval_compile_command caller.
8298 * compile/compile-object-load.c (compile_object_load): Add parameters
8299 scope and scope_data. Set them.
8300 * compile/compile-object-load.h (struct compile_module): Add fields
8301 scope and scope_data.
8302 (compile_object_load): Add parameters scope and scope_data.
8303 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8304 scope and scope_data.
8305 (compile_object_run): Propagate the fields scope and scope_data.
8306 * compile/compile.c (compile_file_command, compile_code_command):
8307 Update eval_compile_command callers.
8308 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8309 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8310 * defs.h (struct command_line): Add field scope_data.
8311
8312 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8313
8314 * printcmd.c (struct format_data): Move it to valprint.h.
8315 (print_command_parse_format, print_value): New functions from ...
8316 (print_command_1): ... here. Call them.
8317 * valprint.h (struct format_data): Move it here from printcmd.c.
8318 (print_command_parse_format, print_value): New declarations.
8319
8320 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8321
8322 * compile/compile-object-load.c (compile_object_load): Add
8323 COMPILE_DEBUG message.
8324
8325 2015-05-15 Jerome Guitton <guitton@adacore.com>
8326
8327 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8328 index to get element instead of enum value.
8329 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8330 of index to compute length, but enum values to compute bounds.
8331 (ada_array_length): Use enum position of index instead of enum value.
8332 (pos_atr): Move position computation to...
8333 (ada_evaluate_subexp): Use enum values to compute bounds.
8334 * gdbtypes.c (discrete_position): ...this new function.
8335 * gdbtypes.h (discrete_position): New function declaration.
8336 * valprint.c (val_print_array_elements): Call discrete_position
8337 to handle array indexed by non-contiguous enumeration types.
8338
8339 2015-05-15 Jerome Guitton <guitton@adacore.com>
8340
8341 * ada-lang.c (find_parallel_type_by_descriptive_type):
8342 Go through typedefs during lookup.
8343 (to_fixed_array_type): Add support for non-bit packed arrays
8344 as variable-length fields.
8345
8346 2015-05-15 Pedro Alves <palves@redhat.com>
8347 Simon Marchi <simon.marchi@ericsson.com>
8348
8349 * event-loop.c (gdb_notifier) <next_file_handler,
8350 next_poll_fds_index>: New fields.
8351 (get_next_file_handler_to_handle_and_advance): New function.
8352 (delete_file_handler): If deleting the next file handler to
8353 handle, advance to the next file handler.
8354 (gdb_wait_for_event): Bail early if no event fired. Poll file
8355 handlers in round-robin fashion.
8356
8357 2015-05-15 Pedro Alves <palves@redhat.com>
8358
8359 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8360 'private' to 'priv'.
8361
8362 2015-05-15 Pedro Alves <palves@redhat.com>
8363
8364 * nat/linux-nat.h: Include "target/waitstatus.h".
8365
8366 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8367
8368 * python/py-unwind.c (struct reg_info): Move out of ...
8369 (struct cached_frame_info): ... this scope.
8370 (pending_frame_object_type, unwind_info_object_type): Make extern.
8371
8372 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8373
8374 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8375 accumSize is never negative.
8376
8377 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8378
8379 * tui/tui-command.c: Remove include of <ctype.h>.
8380 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8381
8382 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8383
8384 * dwarf2read.c (die_needs_namespace): Return 1 for
8385 DW_TAG_inlined_subroutine.
8386
8387 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8388
8389 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8390 (regcache_cpy_no_passthrough): Make it static, add function comment.
8391 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8392 (regcache_cpy_no_passthrough): Remove declaration.
8393
8394 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8395
8396 * gdbthread.h (struct thread_control_state): Update comment for
8397 proceed_to_finish.
8398 * infcall.c (run_inferior_call): Update comment about
8399 proceed_to_finish.
8400 * infcmd.c (get_return_value): Update comment about stop_registers.
8401 (finish_forward): Update comment about proceed_to_finish.
8402 * infrun.c (stop_registers): Remove.
8403 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8404 * infrun.h (stop_registers): Remove.
8405
8406 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8407
8408 * infcall.c (struct dummy_frame_context_saver)
8409 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8410 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8411 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8412 New.
8413 (call_function_by_hand_dummy): Move discard_cleanups of
8414 inf_status_cleanup before dummy_frame_push. Call
8415 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8416 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8417 * infcall.h (struct dummy_frame_context_saver)
8418 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8419 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8420 New declarations.
8421 * infcmd.c: Include infcall.h.
8422 (get_return_value): Add parameter ctx_saver, use it instead of
8423 stop_registers.
8424 (print_return_value): Add parameter ctx_saver, pass it.
8425 (struct finish_command_continuation_args): Add field ctx_saver.
8426 (finish_command_continuation): Update print_return_value caller.
8427 (finish_command_continuation_free_arg): Free also ctx_saver.
8428 (finish_forward): Call dummy_frame_context_saver_setup.
8429 * inferior.h (struct dummy_frame_context_saver): New declaration.
8430 (get_return_value): Add parameter ctx_saver.
8431 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8432 get_return_value caller.
8433
8434 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8435
8436 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8437 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8438 (remove_dummy_frame): Process dtor_list.
8439 (pop_dummy_frame): Process dtor_list.
8440 (register_dummy_frame_dtor): Maintain dtor_list.
8441 (find_dummy_frame_dtor): Handle dtor_list.
8442 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8443 Update comments.
8444
8445 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8446
8447 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8448 registers_valid.
8449 (compile_object_run): Update do_module_cleanup caller.
8450 * dummy-frame.c: Include infcall.h.
8451 (struct dummy_frame): Update dtor comment.
8452 (remove_dummy_frame): Call dtor.
8453 (pop_dummy_frame): Update dtor caller.
8454 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8455 registers_valid.
8456
8457 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8458
8459 GDB 7.9.1 released.
8460
8461 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8462
8463 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8464 Xmethods now being able to specify a result type to that new
8465 sectioin.
8466
8467 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8468
8469 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8470 first before resizing the window.
8471 * tui/tui.c (tui_enable): Likewise.
8472
8473 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8474
8475 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8476 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8477 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8478 dummy_dtor parameter.
8479 * infcall.h: Include dummy-frame.h.
8480 (call_function_by_hand_dummy_dtor_ftype): Remove.
8481 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8482 parameter.
8483
8484 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8485
8486 PR gdb/17820
8487 * top.c (history_size_setshow_var): Change type to signed.
8488 Initialize to -2. Update documentation.
8489 (set_readline_history_size): Define.
8490 (set_history_size_command): Use it. Remove logic for handling
8491 out-of-range sizes.
8492 (init_history): Use set_readline_history_size(). Test for a
8493 value of -2 instead of 0 when determining whether to set a
8494 default history size.
8495 (init_main): Decode the argument of the "size" command as a
8496 zuinteger_unlimited.
8497
8498 2015-05-12 Doug Evans <dje@google.com>
8499
8500 * dwarf2read.c (struct file_entry): Tweak comments.
8501 (get_debug_line_section): Tweak comments.
8502
8503 2015-05-12 Don Breazeal <donb@codesourcery.com>
8504
8505 * NEWS: Announce fork support in the RSP and support
8506 for fork debugging in extended mode.
8507
8508 2015-05-12 Don Breazeal <donb@codesourcery.com>
8509
8510 * remote.c (remote_insert_fork_catchpoint): New function.
8511 (remote_remove_fork_catchpoint): New function.
8512 (remote_insert_vfork_catchpoint): New function.
8513 (remote_remove_vfork_catchpoint): New function.
8514 (pending_fork_parent_callback): New function.
8515 (remove_new_fork_child): New function.
8516 (remote_update_thread_list): Call remote_notif_get_pending_events
8517 and remove_new_fork_child.
8518 (extended_remote_kill): Kill fork child when killing the
8519 parent before follow_fork completes.
8520 (init_extended_remote_ops): Initialize target vector with
8521 new fork catchpoint functions.
8522
8523 2015-05-12 Don Breazeal <donb@codesourcery.com>
8524
8525 * remote.c (remove_vfork_event_p): New function.
8526 (remote_follow_fork): Add vfork event type to event checking.
8527 (remote_parse_stop_reply): New stop reasons "vfork" and
8528 "vforkdone" for RSP 'T' Stop Reply Packet.
8529
8530 2015-05-12 Don Breazeal <donb@codesourcery.com>
8531
8532 * linux-nat.c (linux_nat_ptrace_options): New function.
8533 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8534 Call linux_nat_ptrace_options and use different argument to
8535 linux_enable_event_reporting.
8536 (_initialize_linux_nat): Delete call to
8537 linux_ptrace_set_additional_flags.
8538 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8539 supported_ptrace_options.
8540 (additional_flags): Delete variable.
8541 (linux_check_ptrace_features): Use supported_ptrace_options.
8542 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8543 Likewise, and remove additional_flags check.
8544 (linux_enable_event_reporting): Change 'attached' argument to
8545 'options'. Use supported_ptrace_options.
8546 (ptrace_supports_feature): Change comment. Use
8547 supported_ptrace_options.
8548 (linux_ptrace_set_additional_flags): Delete function.
8549 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8550 Delete function prototype.
8551 * remote.c (remote_fork_event_p): New function.
8552 (remote_detach_pid): New function.
8553 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8554 if doing detach-on-fork.
8555 (remote_follow_fork): New function.
8556 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8557 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8558 (init_extended_remote_ops): Initialize to_follow_fork.
8559
8560 2015-05-12 Don Breazeal <donb@codesourcery.com>
8561
8562 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8563 from static to extern.
8564 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8565 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8566 * PACKET_vfork_event_feature>: New enumeration constants.
8567 (remote_protocol_features): Add table entries for new packets.
8568 (remote_query_supported): Add new feature queries to qSupported
8569 packet.
8570
8571 2015-05-12 Gary Benson <gbenson@redhat.com>
8572
8573 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8574 for fake PIDs as well as real ones.
8575 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8576
8577 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8578
8579 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8580 * python/py-value.c (valpy_reference_value): New function.
8581 (valpy_const_value): Likewise.
8582 (value_object_methods): Add new methods.
8583 * value.c (make_cv_value): New function.
8584 * value.h (make_cv_value): Declare.
8585
8586 2015-05-08 Yao Qi <yao@codesourcery.com>
8587 Sandra Loosemore <sandra@codesourcery.com>
8588
8589 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8590 to 'lh->include_dirs' before accessing to it.
8591 (psymtab_include_file_name): Likewise.
8592 (dwarf_decode_lines_1): Likewise.
8593 (dwarf_decode_lines): Likewise.
8594 (file_file_name): Likewise.
8595
8596 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8597
8598 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8599 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8600 (nios2_linux_rt_sigreturn_init): Adjust base address of
8601 register save area.
8602
8603 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8604
8605 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8606 "trap 31" as the breakpoint instruction on all targets.
8607
8608 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8609
8610 * infcmd.c (print_return_value): Remove unused declaration.
8611
8612 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8613
8614 * dwarf2read.c (attr_to_dynamic_prop)
8615 <DW_AT_data_member_location>: Use read_type_die isntead of
8616 get_die_type.
8617
8618 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8619
8620 * ada-lang.c (ada_convert_actual): Add handling of formals
8621 passed inside an aligner type.
8622
8623 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8624
8625 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8626
8627 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8628
8629 PR python/18291
8630 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8631 Print xmethod matcher status.
8632
8633 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8634
8635 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8636 register in the regcache when treating the PSWM register, and vice
8637 versa.
8638
8639 2015-05-07 Gary Benson <gbenson@redhat.com>
8640
8641 * linux-thread-db.c (struct thread_db_info)
8642 <td_ta_map_id2thr_p>: Remove field.
8643 (try_thread_db_load_1): Remove initialization for the above.
8644
8645 2015-05-07 Gary Benson <gbenson@redhat.com>
8646
8647 * linux-thread-db.c (struct thread_db_info)
8648 <td_thr_validate_p>: Remove field.
8649 (try_thread_db_load_1): Remove initialization for the above.
8650
8651 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8652
8653 * compile/compile-object-load.c (compile_object_load): Support
8654 mst_text_gnu_ifunc.
8655
8656 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8657
8658 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8659 const. Use new variables for the const compatibility.
8660 (eval_compile_command): Make the cmd_string parameter const.
8661 * compile/compile.h (eval_compile_command): Make the cmd_string
8662 parameter const.
8663
8664 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8665
8666 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8667 comment.
8668 * top.c (deprecated_init_ui_hook): Delete.
8669 (gdb_init): Remove handling of deprecated_init_ui_hook.
8670 * interps.c (clear_interpreter_hooks): Remove handling of
8671 deprecated_init_ui_hook.
8672 * main.c (captured_main): Update comment.
8673
8674 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8675
8676 * solib.c (_initialize_solib): Add "info dll" alias creation.
8677 * windows-nat.c (set_windows_aliases): Delete.
8678 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8679 assignment.
8680 * NEWS: Add news entry about "info dll" now being available
8681 on all platforms.
8682
8683 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8684
8685 * ada-lang.c (value_assign_to_component): Reformat and improve
8686 documentation. Remove all trailing spaces.
8687
8688 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8689
8690 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8691 Stop counting inlined frames as soon as an out-of-line function
8692 is found.
8693
8694 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8695
8696 * dwarf2read.c (inherit_abstract_dies): Skip
8697 DW_TAG_GNU_call_site dies while inheriting children of an
8698 abstract DIE into a scope.
8699 (read_lexical_block_scope): Inherit abstract DIE's for
8700 lexical scopes.
8701
8702 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8703
8704 * ada-valprint.c (val_print_packed_array_elements): Delete
8705 variable "len". Add a type-length check when comparing two
8706 consecutive elements of the array. Use the element's actual
8707 length in call to value_contents_eq.
8708 * ada-lang.c (ada_value_primitive_packed_val): Always return
8709 a value whose type has been resolved.
8710
8711 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8712
8713 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8714 BIT_SIZE and LEN if the size of the resolved type is smaller
8715 than BIT_SIZE * HOST_CHAR_BIT.
8716
8717 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8718
8719 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8720 correct address in call to value_at. Adjust call to
8721 value_address accordingly.
8722
8723 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8724
8725 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8726 to print it.
8727
8728 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8729
8730 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8731 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8732 pinfo->valaddr.
8733 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8734 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8735 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8736 Add handling of addr_stack->valaddr.
8737 (resolve_dynamic_type): Add "valaddr" parameter.
8738 Set pinfo.valaddr field.
8739 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8740 resolve_dynamic_type.
8741 (ada_discrete_type_low_bound): Likewise.
8742 * findvar.c (default_read_var_value): Likewise.
8743 * value.c (value_from_contents_and_address): Likewise.
8744
8745 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8746
8747 * gdbtypes.c (resolve_dynamic_array): Use
8748 create_array_type_with_stride instead of create_array_type.
8749
8750 2015-04-30 DJ Delorie <dj@redhat.com>
8751
8752 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8753 rl78_decode_opcode
8754
8755 2015-04-29 Doug Evans <dje@google.com>
8756
8757 PR python/18285
8758 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8759 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8760 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8761 * extension-priv.h (struct extension_language_ops)
8762 <get_xmethod_result_type>: New member.
8763 * extension.c (get_xmethod_result_type): New function.
8764 * extension.h (get_xmethod_result_type): Declare.
8765 * python/py-xmethods.c (get_result_type_method_name): New static
8766 global.
8767 (py_get_result_type_method_name): Ditto.
8768 (gdbpy_get_xmethod_result_type): New function.
8769 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8770 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8771 * python/python.c (python_extension_ops): Add
8772 gdbpy_get_xmethod_result_type.
8773 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8774 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8775 xmethods.
8776 (value_x_unop): Ditto.
8777 * value.c (result_type_of_xmethod): New function.
8778 * value.h (result_type_of_xmethod): Declare.
8779
8780 2015-04-29 Gary Benson <gbenson@redhat.com>
8781
8782 * solib.c (solib_find_1): Allow fd argument to be NULL.
8783 (exec_file_find): Update comment.
8784 (solib_find): Likewise.
8785 * exec.c (exec_file_locate_attach): Use NULL as fd
8786 argument to exec_file_find to avoid having to close
8787 the opened file.
8788 * infrun.c (follow_exec): Likewise.
8789
8790 2015-04-28 Doug Evans <dje@google.com>
8791
8792 PR python/18299
8793 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8794 name or __name__ attributes. Handle gdb module as first argument.
8795
8796 2015-04-28 Doug Evans <dje@google.com>
8797
8798 PR python/18089
8799 * python/py-prettyprint.c (print_children): Verify result of children
8800 iterator. Provide better error message.
8801 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8802 * python/python.c (gdbpy_print_python_errors_p): New function.
8803
8804 2015-04-28 Doug Evans <dje@google.com>
8805
8806 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8807
8808 2015-04-28 Sasha Smundak <asmundak@google.com>
8809
8810 * NEWS: Mention gdb.Type.optimized_out method.
8811 * python/py-type.c (typy_optimized_out): New function.
8812
8813 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8814
8815 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8816
8817 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8818
8819 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8820 (initialize_utils): Move call of init_page_info() to ...
8821 * top.c (gdb_init): ... here.
8822
8823 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8824
8825 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8826 (tui_sigwinch_handler): Still update our idea of
8827 the terminal's width and height even when TUI is not active.
8828
8829 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8830
8831 * utils.h (set_screen_width_and_height): Declare.
8832 * utils.c (set_screen_width_and_height): Define.
8833 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8834
8835 2015-04-28 Gary Benson <gbenson@redhat.com>
8836
8837 * infrun.c (solist.h): New include.
8838 (follow_exec): Use exec_file_find to prefix execd_pathname
8839 with gdb_sysroot.
8840
8841 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8842
8843 * tui/tui-source.c (tui_set_source_content): Avoid calling
8844 strcpy() when offset is 0.
8845
8846 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8847
8848 PR gdb/18155
8849 * tui/tui-data.c (tui_free_window): Don't free the locator
8850 window when passed an SRC_WIN or a DISASSEM_WIN.
8851
8852 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8853
8854 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8855 (tui_win_content): Move declaration.
8856 (struct tui_gen_win_info): Give 'content' field the
8857 type tui_win_content.
8858 * tui/tui-data.c (init_content_element): Remove redundant and
8859 erroneous casts.
8860 (tui_add_content_elements): Remove erroneous cast.
8861 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8862 casts.
8863 (tui_get_begin_asm_address): Likewise.
8864 * tui/tui-regs.c (tui_show_registers): Likewise.
8865 (tui_show_register_group): Likewise.
8866 (tui_display_registers_from): Likewise.
8867 (tui_check_register_values): Likewise.
8868 * tui/tui-source.c (tui_set_source_content): Likewise.
8869 (tui_set_source_content_nil): Likewise.
8870 (tui_source_is_displayed): Likewise.
8871 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8872 (tui_set_locator_fullname): Likewise.
8873 (tui_set_locator_info): Likewise.
8874 (tui_show_frame_info): Likewise.
8875 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8876 (tui_show_source_line): Likewise.
8877 (tui_horizontal_source_scroll): Likewise.
8878 (tui_update_breakpoint_info): Likewise.
8879 (tui_set_exec_info_content): Likewise.
8880 (tui_show_exec_info_content): Likewise.
8881 (tui_alloc_source_buffer): Likewise.
8882 (tui_line_is_displayed): Likewise.
8883 (tui_addr_is_displayed): Likewise.
8884
8885 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8886
8887 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8888 event if PL_FLAG_EXEC is set.
8889 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8890 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8891 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8892 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8893 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8894
8895 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8896
8897 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8898 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8899 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8900 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8901 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8902 [PT_LWPINFO] (fbsd_wait): New function.
8903 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8904 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8905 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8906 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8907 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8908 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8909 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8910 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8911 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8912 "fbsd_wait".
8913 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8914 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8915 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8916 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8917 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8918 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8919 Set "to_post_attach" to "fbsd_post_attach".
8920
8921 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8922
8923 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8924 (fbsd_find_memory_regions): Mark static.
8925 (fbsd_nat_add_target): New function.
8926 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8927 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8928 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8929 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8930 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8931 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8932
8933 2015-04-27 Gary Benson <gbenson@redhat.com>
8934
8935 * objfiles.c (allocate_objfile): Do not attempt to expand name
8936 if name is a "target:" filename.
8937 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8938 to load auto-load scripts for objfiles with "target:" filenames.
8939
8940 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8941
8942 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8943 (enum s390_vector_abi_kind): New enum.
8944 (struct gdbarch_tdep)<vector_abi>: New field.
8945 (s390_effective_inner_type): Add parameter min_size. Stop
8946 unwrapping if the inner type is smaller than min_size.
8947 (s390_function_arg_float): Adjust call to
8948 s390_effective_inner_type.
8949 (s390_function_arg_vector): New function.
8950 (s390_function_arg_integer): Adjust comment.
8951 (struct s390_arg_state)<vr>: New field.
8952 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8953 arguments according to vector ABI when appropriate.
8954 (s390_push_dummy_call): Initialize the argument state's field
8955 'vr'. Adjust calls to s390_handle_arg.
8956 (s390_register_return_value): Handle vector return values.
8957 (s390_return_value): Apply the "register" return value convention
8958 to a vector when appropriate.
8959 (s390_gdbarch_init): Initialize tdep->vector_abi.
8960 * NEWS: Announce S390 vector ABI support.
8961
8962 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8963
8964 * s390-linux-tdep.c (s390_return_value_convention): Remove
8965 function. Inline its logic...
8966 (s390_return_value): ...here. Instead, move the handling of the
8967 "register" return value convention...
8968 (s390_register_return_value): ...here. New function.
8969
8970 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8971
8972 * s390-linux-tdep.c
8973 (is_float_singleton): Remove function. Move the "singleton" part
8974 of the logic...
8975 (s390_effective_inner_type): ...here. New function.
8976 (is_float_like): Remove function. Inline its logic...
8977 (s390_function_arg_float): ...here.
8978 (is_pointer_like, is_integer_like, is_struct_like): Remove
8979 functions. Inline their logic...
8980 (s390_function_arg_integer): ...here.
8981 (s390_function_arg_pass_by_reference): Remove function.
8982 (extend_simple_arg): Remove function.
8983 (alignment_of): Remove function.
8984 (struct s390_arg_state): New structure.
8985 (s390_handle_arg): New function.
8986 (s390_push_dummy_call): Move parameter placement logic to the new
8987 function s390_handle_arg. Call it for calculating the stack area
8988 sizes first, and again for actually writing the parameters.
8989
8990 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8991
8992 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8993 false if the argument is zero.
8994
8995 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8996
8997 * ada-lang.c (template_to_static_fixed_type): Return input type
8998 when it is already fixed. Cache the input type itself when not
8999 creating a static fixed copy. Make it explicit that we never
9000 molestate the input type.
9001 * gdbtypes.c (resolve_dynamic_struct): Reset the
9002 TYPE_TARGET_TYPE field for resolved copies.
9003
9004 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9005
9006 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9007 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9008 (template_to_static_fixed_type): Call ada_check_typedef only
9009 when necessary.
9010
9011 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9012
9013 * cli/cli-dump.c (srec_dump_command): Add internationalization
9014 mark ups.
9015 (ihex_dump_command): Likewise.
9016 (tekhex_dump_command): Likewise.
9017 (binary_dump_command): Likewise.
9018 (binary_append_command): Likewise.
9019
9020 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9021
9022 * cli/cli-dump.c (verilog_cmdlist): New variable.
9023 (dump_verilog_memory): New function.
9024 (dump_verilog_value): New function.
9025 (verilog_dump_command): New function.
9026 (_initialize_cli_dump): Add new commands to support verilog dump
9027 format.
9028 * NEWS: Add entry for "dump verilog".
9029
9030 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9031
9032 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9033 descriptive type when there is none.
9034
9035 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9036
9037 * tui/tui-win.c (tui_async_resize_screen): Call
9038 rl_resize_terminal().
9039
9040 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9041
9042 * windows-nat.c (handle_output_debug_string): Don't change
9043 current_event.dwThreadId.
9044 (get_windows_debug_event): Use thread_id, rather than relying on
9045 current_event.dwThreadId being changed.
9046
9047 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9048
9049 * windows-nat.c (windows_continue): Report an error if
9050 ContinueDebugEvent() fails.
9051
9052 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9053
9054 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9055
9056 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9057
9058 * windows-nat.c (get_windows_debug_event): Replace retval with
9059 thread_id throughout. Update stale comment.
9060
9061 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9062
9063 * windows-nat.c (get_windows_debug_event): Don't use ternary
9064 conditional operator.
9065
9066 2015-04-21 Pierre Muller <muller@sourceware.org>
9067
9068 PR pascal/17815
9069 p-exp.y (yylex): Reorganize code to return the matched pattern
9070 for a field of this.
9071
9072 2015-04-21 Gary Benson <gbenson@redhat.com>
9073
9074 * common/fileio.h (fileio_to_host_openflags): New declaration.
9075 * common/fileio.c (fcntl.h): New include.
9076 (fileio_to_host_openflags): New function, factored out from...
9077 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9078 Single use updated.
9079
9080 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9081
9082 * rl78-tdep.c (RL78_SP_ADDR): Define.
9083 (opc_reg_to_gdb_regnum): New static function.
9084 (rl78_analyze_prologue): Recognize instructions forming slightly
9085 more interesting prologues.
9086
9087 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9088
9089 Revert:
9090 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9091 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9092 TYPE_CODE_REF types so that they are not considered as dynamic
9093 depending on the referenced type.
9094 (resolve_dynamic_type_internal): Likewise.
9095
9096 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9097
9098 Revert:
9099 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9100 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9101 "top_level" parameter.
9102 (resolve_dynamic_type_internal): Remove the unused "top_level"
9103 parameter. Update call to is_dynamic_type_internal.
9104 (is_dynamic_type): Update call to is_dynamic_type_internal.
9105 (resolve_dynamic_range): Update call to
9106 resolve_dynamic_type_internal.
9107 (resolve_dynamic_union): Likewise.
9108 (resolve_dynamic_struct): Likewise.
9109 (resolve_dynamic_type): Likewise.
9110
9111 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9112
9113 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9114 xmalloc.
9115
9116 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9117
9118 * reply_mig_hack.awk: Robustify parsing.
9119
9120 * reply_mig_hack.awk: Don't bother to declare an intermediate
9121 function pointer variable.
9122
9123 2015-04-17 Doug Evans <dje@google.com>
9124
9125 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9126 to "exec_displacement" to avoid confusion with inner use of the name.
9127
9128 2015-04-17 Pedro Alves <palves@redhat.com>
9129
9130 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9131 if HW point of TYPE isn't supported.
9132
9133 2015-04-17 Yao Qi <yao.qi@linaro.org>
9134 Pedro Alves <palves@redhat.com>
9135
9136 * target.h (target_can_use_hardware_watchpoint): Update comments.
9137 Remove trailing ";".
9138
9139 2015-04-17 Gary Benson <gbenson@redhat.com>
9140
9141 * remote.c (remote_add_inferior): New argument try_open_exec.
9142 If nonzero, attempt to open the inferior's executable file as
9143 the main executable if no main executable is open already.
9144 All callers updated.
9145 * NEWS: Mention that GDB now supports automatic location and
9146 retrieval of executable + files from remote targets.
9147
9148 2015-04-17 Gary Benson <gbenson@redhat.com>
9149
9150 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9151 * remote.c (PACKET_qXfer_exec_file): Likewise.
9152 (remote_protocol_features): Register the
9153 "qXfer:exec-file:read" feature.
9154 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9155 (remote_pid_to_exec_file): New function.
9156 (init_remote_ops): Initialize to_pid_to_exec_file.
9157 (_initialize_remote): Register new "set/show remote
9158 pid-to-exec-file-packet" command.
9159 * NEWS: Announce new qXfer:exec-file:read packet.
9160
9161 2015-04-17 Gary Benson <gbenson@redhat.com>
9162
9163 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9164 New declaration.
9165 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9166 New function, factored out from...
9167 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9168
9169 2015-04-17 Gary Benson <gbenson@redhat.com>
9170
9171 * exec.c (solist.h): New include.
9172 (exec_file_locate_attach): Prefix absolute executable
9173 paths with gdb_sysroot if set.
9174 * NEWS: Mention that executable paths may be prepended
9175 with sysroot.
9176
9177 2015-04-17 Gary Benson <gbenson@redhat.com>
9178
9179 * solist.h (exec_file_find): New declaration.
9180 * solib.c (solib_find_1): New function, factored out from...
9181 (solib_find): ...here.
9182 (exec_file_find): New function.
9183
9184 2015-04-17 Gary Benson <gbenson@redhat.com>
9185
9186 * gdbcore.h (exec_file_locate_attach): New declaration.
9187 * exec.c (exec_file_locate_attach): New function, factored
9188 out from...
9189 * infcmd.c (attach_command_post_wait): ...here.
9190
9191 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9192
9193 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9194
9195 2015-04-16 Yao Qi <yao.qi@linaro.org>
9196
9197 * infrun.c (maybe_software_singlestep): Declare.
9198 (displaced_step_fixup): Call maybe_software_singlestep.
9199
9200 2015-04-15 Doug Evans <dje@google.com>
9201
9202 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9203
9204 2015-04-15 Doug Evans <dje@google.com>
9205
9206 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9207
9208 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9209
9210 * python/lib/gdb/command/unwinders.py: Add parentheses.
9211
9212 2015-04-15 Yao Qi <yao.qi@linaro.org>
9213
9214 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9215
9216 2015-04-15 Yao Qi <yao.qi@linaro.org>
9217
9218 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9219
9220 2015-04-15 Yao Qi <yao.qi@linaro.org>
9221
9222 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9223 dsc->insn_size instead of 4.
9224
9225 2015-04-14 Gary Benson <gbenson@redhat.com>
9226
9227 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9228 * minidebug.c (lzma_stat): Likewise.
9229 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9230 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9231
9232 2015-04-13 Stan Shebs <stanshebs@google.com>
9233
9234 * MAINTAINERS: Update my email address.
9235
9236 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9237
9238 * amd64-tdep.c (amd64_target_description): New function.
9239 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9240 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9241 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9242 x86 extended save area.
9243 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9244 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9245 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9246 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9247 "amd64fbsd_read_description".
9248 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9249 (amd64fbsd_supply_xstateregset): New function.
9250 (amd64fbsd_collect_xstateregset): New function.
9251 Add "amd64fbsd_xstateregset".
9252 (amd64fbsd_iterate_over_regset_sections): New function.
9253 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9254 "I386_FBSD_XSAVE_XCR0_OFFSET".
9255 Add "iterate_over_regset_sections" gdbarch method.
9256 Add "core_read_description" gdbarch method.
9257 * i386-tdep.c (i386_target_description): New function.
9258 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9259 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9260 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9261 x86 extended save area.
9262 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9263 * i386bsd-nat.h: Export i386bsd_xsave_len.
9264 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9265 (_initialize_i386fbsd_nat): Set "to_read_description" to
9266 "i386fbsd_read_description".
9267 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9268 (i386fbsd_core_read_description): New function.
9269 (i386fbsd_supply_xstateregset): New function.
9270 (i386fbsd_collect_xstateregset): New function.
9271 Add "i386fbsd_xstateregset".
9272 (i386fbsd_iterate_over_regset_sections): New function.
9273 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9274 "I386_FBSD_XSAVE_XCR0_OFFSET".
9275 Add "iterate_over_regset_sections" gdbarch method.
9276 Add "core_read_description" gdbarch method.
9277 * i386fbsd-tdep.h: New file.
9278
9279 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9280
9281 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9282 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9283 conditional.
9284 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9285 and lb.
9286 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9287 va.
9288 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9289 conditional.
9290 * defs.h (xdb_commands): Remove declaration.
9291 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9292 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9293 * infcmd.c (run_no_args_command, go_command): Remove.
9294 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9295 * infrun.c (xdb_handle_command): Remove.
9296 (_initialize_infrun): Remove xdb_commands for lz and z.
9297 * main.c (xdb_commands): Remove variable.
9298 (captured_main): Remove "xdb" from long_options.
9299 (print_gdb_help): Remove --xdb from help.
9300 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9301 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9302 * stack.c (backtrace_full_command, args_plus_locals_info)
9303 (current_frame_command): Remove.
9304 (_initialize_stack): Remove xdb_commands for t, T and l.
9305 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9306 * thread.c (_initialize_thread): Remove xdb_commands condition.
9307 * tui/tui-layout.c (tui_toggle_layout_command)
9308 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9309 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9310 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9311 (tui_scroll_regs_backward_command): Remove.
9312 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9313 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9314 (_initialize_tui_win): Remove xdb_commands for U and w.
9315 * utils.c (pagination_on_command, pagination_off_command): Remove.
9316 (initialize_utils): Remove xdb_commands for am and sm.
9317
9318 2015-04-10 Pedro Alves <palves@redhat.com>
9319
9320 * infrun.c (displaced_step_fixup): Switch to the event ptid
9321 earlier. If the thread stopped for a watchpoint and the
9322 target/arch has non-continuable watchpoints, cancel the displaced
9323 step.
9324 (resume): Don't start a displaced step if in-line step-over info
9325 is valid.
9326
9327 2015-04-10 Pedro Alves <palves@redhat.com>
9328
9329 * infrun.c (displaced_step_in_progress): New function.
9330 (do_target_resume): Advise target to report all signals if
9331 displaced stepping.
9332
9333 2015-04-10 Pedro Alves <palves@redhat.com>
9334
9335 PR gdb/18216
9336 * infrun.c (process_event_stop_test): Don't assume a step-resume
9337 is set if tp->stepped_breakpoint is true.
9338
9339 2015-04-10 Yao Qi <yao.qi@linaro.org>
9340
9341 * arm-tdep.c (install_alu_reg): Update comment.
9342 (thumb_copy_alu_reg): Remove local variable rn. Update
9343 debugging message. Use r2 instead of r1 in the modified
9344 instruction.
9345
9346 2015-04-10 Pedro Alves <palves@redhat.com>
9347
9348 PR gdb/13858
9349 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9350 linux_displaced_step_location as gdbarch_displaced_step_location
9351 hook.
9352 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9353 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9354 * linux-tdep.c (linux_displaced_step_location): New function,
9355 based on ppc_linux_displaced_step_location.
9356 * linux-tdep.h (linux_displaced_step_location): New declaration.
9357 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9358 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9359 Delete.
9360 (ppc_linux_init_abi): Install linux_displaced_step_location as
9361 gdbarch_displaced_step_location hook, even without Cell/B.E..
9362 (_initialize_ppc_linux_tdep): Don't install
9363 ppc_linux_inferior_created as inferior_created observer.
9364 * s390-linux-tdep.c (s390_gdbarch_init): Install
9365 linux_displaced_step_location as gdbarch_displaced_step_location
9366 hook.
9367
9368 2015-04-09 Gary Benson <gbenson@redhat.com>
9369
9370 * common/common-remote-fileio.h: Rename to...
9371 * common/fileio.h: ...this. Update all references.
9372 (remote_fileio_to_fio_error): Rename to...
9373 (host_to_fileio_error): ...this.
9374 (remote_fileio_to_be): Rename to...
9375 (host_to_bigendian): ...this. Update all callers.
9376 (remote_fileio_to_fio_uint): Rename to...
9377 (host_to_fileio_uint): ...this. Update all callers.
9378 (remote_fileio_to_fio_time): Rename to...
9379 (host_to_fileio_time): ...this. Update all callers.
9380 (remote_fileio_to_fio_stat): Rename to...
9381 (host_to_fileio_stat): ...this.
9382 Update all references.
9383 * common/common-remote-fileio.c: Rename to...
9384 * common/fileio.c: ...this. Update all references.
9385 (remote_fileio_to_fio_error): Rename to...
9386 (host_to_fileio_error): ...this. Update all callers.
9387 (remote_fileio_mode_to_target): Rename to...
9388 (fileio_mode_pack): ...this. Update all callers.
9389 (remote_fileio_to_fio_mode): Rename to...
9390 (host_to_fileio_mode): ...this. Update all callers.
9391 (remote_fileio_to_fio_ulong): Rename to...
9392 (host_to_fileio_ulong): ...this. Update all callers.
9393 (remote_fileio_to_fio_stat): Rename to...
9394 (host_to_fileio_stat): ...this. Update all callers.
9395
9396 2015-04-09 Andy Wingo <wingo@igalia.com>
9397
9398 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9399 (frame_functions): Bind gdbscm_frame_read_register to
9400 frame-read-register.
9401 * guile/lib/gdb.scm (frame-read-register): Export.
9402
9403 2015-04-09 Gary Benson <gbenson@redhat.com>
9404
9405 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9406 New declaration.
9407 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9408 New function, factored out the named functions below.
9409 * inf-child.c (gdb/fileio.h): Remove include.
9410 (common-remote-fileio.h): New include.
9411 (inf_child_errno_to_fileio_error): Remove function. Update
9412 all callers to use remote_fileio_to_fio_error.
9413 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9414
9415 2015-04-09 Andy Wingo <wingo@igalia.com>
9416
9417 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9418
9419 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9420
9421 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9422 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9423 * configure: Regenerated.
9424
9425 2015-04-09 Pedro Alves <palves@redhat.com>
9426
9427 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9428 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9429 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9430 * gnulib/import/Makefile.am: Update.
9431 * gnulib/import/Makefile.in: Update.
9432 * gnulib/import/m4/gnulib-cache.m4: Update.
9433 * gnulib/import/m4/gnulib-comp.m4: Update.
9434 * gnulib/import/m4/strtok_r.m4: New file.
9435 * gnulib/import/strtok_r.c: New file.
9436
9437 2015-04-09 Pedro Alves <palves@redhat.com>
9438
9439 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9440 "called too early to check prototype".
9441
9442 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9443
9444 PR python/16699
9445 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9446 use a caching mechanism. Adjust comments and code to reflect
9447 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9448 (cmdpy_completer_handle_brkchars): Adjust call to
9449 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9450 (cmdpy_completer): Likewise.
9451
9452 2015-04-08 Yao Qi <yao.qi@linaro.org>
9453
9454 * spu-tdep.c (spu_gdbarch_init): Don't call
9455 set_gdbarch_cannot_step_breakpoint.
9456
9457 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9458
9459 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9460
9461 2015-04-07 Pedro Alves <palves@redhat.com>
9462
9463 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9464 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9465 (delete_exited_threads): New declaration.
9466 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9467 * linux-nat.c (linux_nat_update_thread_list): New function.
9468 (linux_nat_add_target): Install it.
9469 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9470 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9471 (delete_exited_threads): New function.
9472
9473 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9474
9475 * infrun.c (resume) <displaced stepping debug output>: Get the
9476 leader thread's regcache, not resume_ptid's.
9477
9478 2015-04-06 Doug Evans <xdje42@gmail.com>
9479
9480 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9481 VAR_DOMAIN.
9482 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9483 Include symbol domain in debugging output.
9484
9485 2015-04-06 Pedro Alves <palves@redhat.com>
9486 Bernd Edlinger <bernd.edlinger@hotmail.de>
9487
9488 * configure.ac: Remove the mingw32-specific stub-termcap.o
9489 fallback, and instead fallback to the stub termcap on all hosts.
9490 * configure: Regenerate.
9491 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9492 symbols.
9493
9494 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9495
9496 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9497 "top_level" parameter.
9498 (resolve_dynamic_type_internal): Remove the unused "top_level"
9499 parameter. Update call to is_dynamic_type_internal.
9500 (is_dynamic_type): Update call to is_dynamic_type_internal.
9501 (resolve_dynamic_range): Update call to
9502 resolve_dynamic_type_internal.
9503 (resolve_dynamic_union): Likewise.
9504 (resolve_dynamic_struct): Likewise.
9505 (resolve_dynamic_type): Likewise.
9506
9507 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9508
9509 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9510 TYPE_CODE_REF types so that they are not considered as dynamic
9511 depending on the referenced type.
9512 (resolve_dynamic_type_internal): Likewise.
9513
9514 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9515
9516 * Makefile.in (top_srcdir): New.
9517 * configure: Regenerated.
9518
9519 2015-04-02 Gary Benson <gbenson@redhat.com>
9520
9521 * NEWS: Announce the new default sysroot of "target:".
9522
9523 2015-04-02 Gary Benson <gbenson@redhat.com>
9524
9525 * main.c (captured_main): Set gdb_sysroot to "target:"
9526 if not otherwise set.
9527
9528 2015-04-02 Gary Benson <gbenson@redhat.com>
9529
9530 * exec.c (exec_file_attach): Support "target:" filenames.
9531
9532 2015-04-02 Gary Benson <gbenson@redhat.com>
9533
9534 * solib.c (solib_find): Strip "target:" prefix from sysroot
9535 if accessing local files.
9536
9537 2015-04-02 Gary Benson <gbenson@redhat.com>
9538
9539 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9540 checks and error messages.
9541
9542 2015-04-02 Gary Benson <gbenson@redhat.com>
9543
9544 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9545 (remote_filename_p): Remove declaration.
9546 (remote_bfd_open): Likewise.
9547 * remote.c (remote_bfd_iovec_open): Remove function.
9548 (remote_bfd_iovec_close): Likewise.
9549 (remote_bfd_iovec_pread): Likewise.
9550 (remote_bfd_iovec_stat): Likewise.
9551 (remote_filename_p): Likewise.
9552 (remote_bfd_open): Likewise.
9553 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9554 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9555 (gdb_bfd_open_maybe_remote): Remove function.
9556 (symfile_bfd_open): Replace remote filename check with
9557 target filename check.
9558 (reread_symbols): Use gdb_bfd_open.
9559 * build-id.c (gdbcore.h): New include.
9560 (build_id_to_debug_bfd): Use gdb_bfd_open.
9561 * infcmd.c (attach_command_post_wait): Remove remote filename
9562 check.
9563 * solib.c (solib_find): Replace remote-specific handling with
9564 target-specific handling. Update comments where necessary.
9565 (solib_bfd_open): Replace remote-specific handling with
9566 target-specific handling.
9567 (gdb_sysroot_changed): New function.
9568 (_initialize_solib): Call the above when gdb_sysroot changes.
9569 * windows-tdep.c (gdbcore.h): New include.
9570 (windows_xfer_shared_library): Use gdb_bfd_open.
9571
9572 2015-04-02 Gary Benson <gbenson@redhat.com>
9573
9574 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9575 (is_target_filename): New declaration.
9576 (gdb_bfd_has_target_filename): Likewise.
9577 (gdb_bfd_open): Update documentation comment.
9578 * gdb_bfd.c (target.h): New include.
9579 (gdb/fileio.h): Likewise.
9580 (is_target_filename): New function.
9581 (gdb_bfd_has_target_filename): Likewise.
9582 (fileio_errno_to_host): Likewise.
9583 (gdb_bfd_iovec_fileio_open): Likewise.
9584 (gdb_bfd_iovec_fileio_pread): Likewise.
9585 (gdb_bfd_iovec_fileio_close): Likewise.
9586 (gdb_bfd_iovec_fileio_fstat): Likewise.
9587 (gdb_bfd_open): Use target fileio to access paths prefixed
9588 with "target:" where necessary.
9589
9590 2015-04-02 Gary Benson <gbenson@redhat.com>
9591
9592 * target.h (struct target_ops) <to_filesystem_is_local>:
9593 New field.
9594 (target_filesystem_is_local): New macro.
9595 * target-delegates.c: Regenerate.
9596 * remote.c (remote_filesystem_is_local): New function.
9597 (init_remote_ops): Initialize to_filesystem_is_local.
9598
9599 2015-04-02 Gary Benson <gbenson@redhat.com>
9600
9601 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9602 (target_fileio_fstat): New declaration.
9603 * target.c (target_fileio_fstat): New function.
9604 * inf-child.c (inf_child_fileio_fstat): Likewise.
9605 (inf_child_target): Initialize to_fileio_fstat.
9606 * remote.c (init_remote_ops): Likewise.
9607
9608 2015-04-01 Sasha Smundak <asmundak@google.com>
9609
9610 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9611 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9612 (py-unwind.o): New recipe.
9613 * NEWS: mention Python frame unwinding.
9614 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9615 gdb/unwinder.py and gdb/command/unwinder.py
9616 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9617 list.
9618 (execute_unwinders): New function.
9619 * python/lib/gdb/command/unwinders.py: New file.
9620 * python/lib/gdb/unwinder.py: New file.
9621 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9622 (objfpy_dealloc): Decrement frame_unwinders reference count.
9623 (objfpy_initialize): Create frame_unwinders list.
9624 (objfpy_get_frame_unwinders): New function.
9625 (objfpy_set_frame_unwinders): Ditto.
9626 (objfile_getset): Add frame_unwinders attribute to Objfile.
9627 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9628 (pspy_dealloc): Decrement frame_unwinders reference count.
9629 (pspy_initialize): Create frame_unwinders list.
9630 (pspy_get_frame_unwinders): New function.
9631 (pspy_set_frame_unwinders): Ditto.
9632 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9633 * python/py-unwind.c: New file.
9634 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9635 (objpy_get_frame_unwinders): New prototype.
9636 (gdbpy_initialize_unwind): New prototype.
9637 * python/python.c (gdbpy_apply_type_printers): Call
9638 gdbpy_initialize_unwind.
9639
9640 2015-04-01 Pedro Alves <palves@redhat.com>
9641
9642 * infrun.c (resume): Check currently_stepping after clearing
9643 stepped_breakpoint, not before.
9644
9645 2015-04-01 Pedro Alves <palves@redhat.com>
9646
9647 * infrun.c (print_target_wait_results): Print all the ptid
9648 elements.
9649
9650 2015-04-01 Pedro Alves <palves@redhat.com>
9651
9652 * infrun.c (keep_going): Also discard cleanups if inserting
9653 breakpoints fails.
9654
9655 2015-04-01 Pedro Alves <palves@redhat.com>
9656
9657 * infrun.c (wait_for_inferior): Install the
9658 finish_thread_state_cleanup cleanup across the whole function, not
9659 just around handle_inferior_event.
9660
9661 2015-04-01 Pedro Alves <palves@redhat.com>
9662
9663 * infrun.c (resume) <step past permanent breakpoint>: Use
9664 do_target_resume.
9665
9666 2015-04-01 Pedro Alves <palves@redhat.com>
9667
9668 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9669
9670 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9671
9672 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9673
9674 2015-04-01 Pedro Alves <palves@redhat.com>
9675
9676 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9677 list if it was marked exited.
9678
9679 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9680
9681 * configure: Regenerated.
9682
9683 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9684 Jan Kratochvil <jan.kratochvil@redhat.com>
9685 Oleg Nesterov <oleg@redhat.com>
9686
9687 PR corefiles/16092
9688 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9689 New enum identifying the various options of the coredump_filter
9690 file.
9691 (struct smaps_vmflags): New struct.
9692 (use_coredump_filter): New variable.
9693 (decode_vmflags): New function.
9694 (mapping_is_anonymous_p): Likewise.
9695 (dump_mapping_p): Likewise.
9696 (linux_find_memory_regions_full): New variables
9697 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9698 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9699 parsing of its information. Implement memory mapping filtering
9700 based on its contents.
9701 (show_use_coredump_filter): New function.
9702 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9703 * NEWS: Mention the possibility of using the
9704 '/proc/PID/coredump_filter' file when generating a corefile.
9705 Mention new command 'set use-coredump-filter'.
9706
9707 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9708
9709 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9710 read_memory_unsigned_integer.
9711
9712 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9713
9714 * Makefile.in (ZLIB): New.
9715 (ZLIBINC): Likewise.
9716 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9717 (CLIBS): Add $(ZLIB).
9718 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9719 Add -lz to LIBS.
9720 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9721 * top.c (print_gdb_configuration): Remove --with-zlib and
9722 --without-zlib.
9723 * config.in: Regenerated.
9724 * configure: Likewise.
9725
9726 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9727
9728 * NEWS: Mention info os cpus support.
9729 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9730 (struct osdata_type): Add cpus entry, reorder the entries in
9731 alphabetical order.
9732
9733 2015-03-31 Matthias Klose <doko@ubuntu.com>
9734
9735 * compile/compile.c (compile_to_object): Allow triplets with or
9736 without vendor set.
9737
9738 2015-03-30 Doug Evans <dje@google.com>
9739
9740 PR c++/18141
9741 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9742 klass in VAR_DOMAIN.
9743
9744 2015-03-30 Gary Benson <gbenson@redhat.com>
9745
9746 * remote.c (remote_mourn_1): Remove function. Update all callers
9747 to use remote_mourn.
9748 (extended_remote_mourn_1): Remove function. Update all callers
9749 to use extended_remote_mourn.
9750 (extended_remote_attach_1): Remove function. Update all callers
9751 to use extended_remote_attach.
9752
9753 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9754
9755 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9756 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9757 (ALLDEPFILES): Add ft32-tdep.c.
9758 * configure.tgt: Add FT32 entry.
9759 * ft32-tdep.c: New file, FT32 target-dependent code.
9760 * ft32-tdep.h: New file, FT32 target-dependent code.
9761
9762 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9763
9764 Revert:
9765 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9766 Code cleanup.
9767 * printcmd.c (print_command_1): Move expr variable scope.
9768
9769 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9770
9771 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9772
9773 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9774
9775 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9776 sections.
9777
9778 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9779
9780 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9781 exception raised while parsing the probe arguments.
9782 Force parsing to be done using the C language parser.
9783 * expression.h (parse_expression_with_language): Declare.
9784 * parse.c (parse_expression_with_language): New function.
9785
9786 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9787
9788 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9789
9790 2015-03-26 Andy Wingo <wingo@igalia.com>
9791
9792 PR symtab/18148
9793 * dwarf2read.c (struct partial_die_info): Add has_const_value
9794 member.
9795 (add_partial_symbol): Don't punt on symbols that have const_value
9796 attributes.
9797 (read_partial_die): Detect DW_AT_const_value.
9798
9799 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9800
9801 Code cleanup.
9802 * printcmd.c (print_command_1): Move expr variable scope.
9803
9804 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9805
9806 Code cleanup.
9807 * printcmd.c (validate_format): Make the parameter cmdname const.
9808
9809 2015-03-26 Don Breazeal <donb@codesourcery.com>
9810
9811 * remote.c (_initialize_remote): Update comment.
9812
9813 2015-03-26 Pedro Alves <palves@redhat.com>
9814 Jon TURNEY <jon.turney@dronecode.org.uk>
9815
9816 * coffread.c (coff_symfile_read): When constructing the name of an
9817 import stub symbol from import symbol for amd64, only skip the
9818 char after _imp_ if the target is underscored (like i386) and the
9819 char is indeed the target's leading char.
9820
9821 2015-03-25 Pedro Alves <palves@redhat.com>
9822
9823 * target.h <to_async>: Replace 'callback' and 'context' parameters
9824 with boolean 'enable' parameter.
9825 (target_async): Replace CALLBACK and CONTEXT parameters with
9826 boolean ENABLE parameter.
9827 * inf-loop.c (inferior_event_handler): Adjust.
9828 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9829 (linux_nat_resume): Adjust.
9830 (async_client_callback, async_client_context): Delete.
9831 (handle_target_event): Call inferior_event_handler directly.
9832 (linux_nat_async): Replace 'callback' and 'context' parameters
9833 with boolean 'enable' parameter. Adjust. Remove references to
9834 async_client_callback and async_client_context.
9835 (linux_nat_close): Adjust.
9836 * record-btrace.c (record_btrace_async): Replace 'callback' and
9837 'context' parameters with boolean 'enable' parameter. Adjust.
9838 (record_btrace_resume): Adjust.
9839 * record-full.c (record_full_async): Replace 'callback' and
9840 'context' parameters with boolean 'enable' parameter. Adjust.
9841 (record_full_resume, record_full_core_resume): Adjust.
9842 * remote.c (struct remote_state) <async_client_callback,
9843 async_client_context>: Delete fields.
9844 (remote_start_remote, extended_remote_attach_1, remote_resume)
9845 (extended_remote_create_inferior): Adjust.
9846 (remote_async_serial_handler): Call inferior_event_handler
9847 directly.
9848 (remote_async): Replace 'callback' and 'context' parameters with
9849 boolean 'enable' parameter. Adjust.
9850 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9851 Adjust.
9852 * target-delegates.c: Regenerate.
9853
9854 2015-03-25 Gary Benson <gbenson@redhat.com>
9855 Pedro Alves <palves@redhat.com>
9856
9857 * target.c (fileio_ft_t): New typedef, define object vector.
9858 (fileio_fhandles): New static variable.
9859 (is_closed_fileio_fh): New macro.
9860 (lowest_closed_fd): New static variable.
9861 (acquire_fileio_fd): New function.
9862 (release_fileio_fd): Likewise.
9863 (fileio_fd_to_fh): New macro.
9864 (target_fileio_open): Wrap the file descriptor on success.
9865 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9866 (target_fileio_pread): Likewise.
9867 (target_fileio_close): Likewise.
9868
9869 2015-03-24 Pedro Alves <palves@redhat.com>
9870
9871 * thread.c (thread_apply_all_command): Take exited threads into
9872 account.
9873
9874 2015-03-24 Pedro Alves <palves@redhat.com>
9875
9876 * infrun.c (resume, proceed): Mention
9877 switch_back_to_stepped_thread, not switch_back_to_stepping.
9878
9879 2015-03-24 Pedro Alves <palves@redhat.com>
9880
9881 * infrun.c (user_visible_resume_ptid): Rewrite going from
9882 most-locked to unlocked instead of the opposite. Move comment ...
9883 * infrun.h (user_visible_resume_ptid): ... here.
9884
9885 2015-03-24 Pedro Alves <palves@redhat.com>
9886
9887 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9888 to resume the event lwp. Use the lwp's ptid instead of the passed
9889 in (maybe wildcard) ptid.
9890 (stop_wait_callback): Tweak debug log output.
9891 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9892 TRAP_TRACE.
9893 (linux_nat_filter_event): In debug output, distinguish a
9894 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9895 before trying to resume the lwp.
9896
9897 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9898
9899 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9900 pointer indirection.
9901 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9902 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9903
9904 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9905
9906 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9907 Renames DYN_ATTR_DATA_LOCATION.
9908 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9909 DYN_ATTR_DATA_LOCATION.
9910 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9911 instead of DYN_ATTR_DATA_LOCATION.
9912
9913 2015-03-24 Pedro Alves <palves@redhat.com>
9914
9915 * breakpoint.c (until_break_command): Adjust call to proceed.
9916 * gdbthread.h (struct thread_control_state) <stepping_command>:
9917 New field.
9918 * infcall.c (run_inferior_call): Adjust call to proceed.
9919 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9920 Adjust calls to proceed.
9921 (set_step_frame): Set the current thread's step_start_function
9922 here.
9923 (step_once): Adjust calls to proceed.
9924 (jump_command, signal_command, until_next_command)
9925 (finish_backward, finish_forward, proceed_after_attach_callback)
9926 (attach_command_post_wait): Adjust calls to proceed.
9927 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9928 (do_target_resume): New function, factored out from ...
9929 (resume): ... here. Remove 'step' parameter. Instead, check
9930 currently_stepping to determine whether the thread should be
9931 single-stepped.
9932 (proceed): Remove 'step' parameter and don't set the thread's
9933 step_start_function here. Adjust call to 'resume'.
9934 (handle_inferior_event): Adjust calls to 'resume'.
9935 (switch_back_to_stepped_thread): Use do_target_resume instead of
9936 'resume'.
9937 (keep_going): Adjust calls to 'resume'.
9938 * infrun.h (proceed): Remove 'step' parameter.
9939 (resume): Likewise.
9940 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9941 'resume'.
9942 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9943
9944 2015-03-24 Pedro Alves <palves@redhat.com>
9945
9946 * gdbthread.h (struct thread_control_state) <stepping_command>:
9947 New field.
9948 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9949 the thread's stepping_command field.
9950 * infrun.c (resume): Check the thread's stepping_command flag to
9951 determine which threads should be resumed. Rename 'entry_step'
9952 local to user_step.
9953 (clear_proceed_status_thread): Clear 'stepping_command'.
9954 (schedlock_applies): Change parameter type to struct thread_info
9955 pointer. Adjust.
9956 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9957 (switch_back_to_stepped_thread): Adjust calls to
9958 'schedlock_applies'.
9959 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9960
9961 2015-03-24 Pedro Alves <palves@redhat.com>
9962
9963 * infrun.c (step_start_function): Delete and ...
9964 * gdbthread.h (struct thread_control_state) <step_start_function>:
9965 ... now a field here.
9966 * infrun.c (clear_proceed_status_thread): Clear the thread's
9967 step_start_function.
9968 (proceed, process_event_stop_test, print_stop_event): Adjust.
9969
9970 2015-03-24 Pedro Alves <palves@redhat.com>
9971
9972 * infrun.c (proceed): No longer handle negative step.
9973
9974 2015-03-24 Gary Benson <gbenson@redhat.com>
9975
9976 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9977 (x86_linux_prepare_to_resume): Likewise.
9978 * x86-linux-nat.c (x86_linux_new_thread):
9979 Moved to nat/x86-linux.c.
9980 (x86_linux_prepare_to_resume): Likewise.
9981 * nat/x86-linux.c (x86_linux_new_thread): New function.
9982 (x86_linux_prepare_to_resume): Likewise.
9983
9984 2015-03-24 Gary Benson <gbenson@redhat.com>
9985
9986 * nat/x86-linux-dregs.h: New file.
9987 * nat/x86-linux-dregs.c: Likewise.
9988 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9989 (x86-linux-dregs.o): New rule.
9990 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9991 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9992 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9993 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9994 (x86_linux_dr_get): Likewise.
9995 (x86_linux_dr_set): Likewise.
9996 (x86_linux_dr_get_addr): Likewise.
9997 (x86_linux_dr_get_control): Likewise.
9998 (x86_linux_dr_get_status): Likewise.
9999 (update_debug_registers_callback): Likewise.
10000 (x86_linux_dr_set_control): Likewise.
10001 (x86_linux_dr_set_addr): Likewise.
10002 (x86_linux_update_debug_registers): Likewise.
10003
10004 2015-03-24 Gary Benson <gbenson@redhat.com>
10005
10006 * x86-linux-nat.c (x86_linux_update_debug_registers):
10007 New function, factored out from...
10008 (x86_linux_prepare_to_resume): ...this.
10009
10010 2015-03-24 Gary Benson <gbenson@redhat.com>
10011
10012 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10013 (x86_linux_dr_set): Likewise.
10014 (x86_linux_dr_get_addr): Likewise.
10015 (x86_linux_dr_get_control): Likewise.
10016 (x86_linux_dr_get_status): Likewise.
10017 (update_debug_registers_callback): Likewise.
10018 (x86_linux_dr_set_control): Likewise.
10019 (x86_linux_dr_set_addr): Likewise.
10020 (x86_linux_prepare_to_resume): Likewise.
10021 (x86_linux_new_thread): Likewise.
10022
10023 2015-03-24 Gary Benson <gbenson@redhat.com>
10024
10025 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10026 (x86_linux_new_thread): Rename argument.
10027
10028 2015-03-24 Gary Benson <gbenson@redhat.com>
10029
10030 * nat/x86-linux.h: New file.
10031 * nat/x86-linux.c: Likewise.
10032 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10033 (x86-linux.o): New rule.
10034 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10035 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10036 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10037 (lwp_set_arch_private_info): New declaration.
10038 (lwp_arch_private_info): Likewise.
10039 * linux-nat.c (lwp_set_arch_private_info): New function.
10040 (lwp_arch_private_info): Likewise.
10041 * x86-linux-nat.c: Include nat/x86-linux.h.
10042 (arch_lwp_info): Removed structure.
10043 (update_debug_registers_callback):
10044 Use lwp_set_debug_registers_changed.
10045 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10046 and lwp_set_debug_registers_changed.
10047 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10048
10049 2015-03-24 Gary Benson <gbenson@redhat.com>
10050
10051 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10052 (lwp_is_stopped): Likewise.
10053 (lwp_stop_reason): Likewise.
10054 * linux-nat.c (ptid_of_lwp): New function.
10055 (lwp_is_stopped): Likewise.
10056 (lwp_is_stopped_by_watchpoint): Likewise.
10057 * x86-linux-nat.c (update_debug_registers_callback):
10058 Use lwp_is_stopped.
10059 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10060 lwp_stop_reason.
10061
10062 2015-03-24 Gary Benson <gbenson@redhat.com>
10063
10064 * linux-nat.h (linux_stop_lwp): Move declaration to...
10065 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10066
10067 2015-03-24 Gary Benson <gbenson@redhat.com>
10068
10069 * linux-nat.h: Include nat/linux-nat.h.
10070 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10071 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10072 (iterate_over_lwps_ftype): New typedef.
10073 (iterate_over_lwps): New declaration.
10074 * linux-nat.h (iterate_over_lwps): Update comment. Use
10075 iterate_over_lwps_ftype. Update callback return value check.
10076
10077 2015-03-24 Gary Benson <gbenson@redhat.com>
10078
10079 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10080 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10081
10082 2015-03-24 Gary Benson <gbenson@redhat.com>
10083
10084 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10085 * linux-nat.c (current_lwp_ptid): New function.
10086 * x86-linux-nat.c: Include nat/linux-nat.h.
10087 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10088 (x86_linux_dr_get_control): Likewise.
10089 (x86_linux_dr_get_status): Likewise.
10090 (x86_linux_dr_set_control): Likewise.
10091 (x86_linux_dr_set_addr): Likewise.
10092
10093 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10094
10095 PR breakpoints/16466
10096 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10097
10098 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10099
10100 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10101 * ser-unix.c (hardwire_setparity): Likewise.
10102
10103 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10104
10105 * NEWS: Mention set/show serial parity command.
10106 * monitor.c (monitor_open): Call serial_setparity.
10107 * remote.c (remote_open_1): Likewise.
10108 * ser-base.c (ser_base_serparity): New function.
10109 * ser-base.h (ser_base_setparity): Add declaration.
10110 * ser-go32.c (dos_ops): Set "setparity" field.
10111 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10112 state.Parity.
10113 (ser_windows_setparity): New function.
10114 (hardwire_ops): Add ser_windows_setparity.
10115 (tty_ops): Add NULL for setparity field.
10116 (pipe_ops): Add ser_base_setparity.
10117 (tcp_ops): Likewise.
10118 * ser-pipe.c (pipe_ops): Likewise.
10119 * ser-tcp.c (tcp_ops): Likewise.
10120 * ser-unix.c (hardwire_setparity): Add declaration.
10121 (hardwire_raw): Don't reset PARENB flag.
10122 (hardwire_setparity): New function.
10123 (hardwire_ops): Add hardwire_setparity.
10124 * serial.c (serial_setparity): New function.
10125 (serial_parity): New global.
10126 (parity_none, parity_odd, parity_even, parity_enums, parity):
10127 New static globals.
10128 (set_parity): New function.
10129 (_initialize_serial): Add set/show serial parity commands.
10130 * serial.h (GDBPARITY_NONE): Define.
10131 (GDBPARITY_ODD): Define.
10132 (GDBPARITY_EVEN): Define.
10133 (serial_setparity) Add declaration.
10134 (struct serial_ops): Add setparity field.
10135 * target.h (serial_parity): Add declaration.
10136
10137 2015-03-23 Keith Seitz <keiths@redhat.com>
10138
10139 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10140
10141 2015-03-23 Keith Seitz <keiths@redhat.com>
10142
10143 * breakpoint.c (parse_breakpoint_sals): Use
10144 linespec_lexer_lex_keyword to ascertain if the user specified
10145 a NULL location.
10146 * linespec.c [IF_KEYWORD_INDEX]: Define.
10147 (linespec_lexer_lex_keyword): Export.
10148 (struct ls_parser) <keyword_ok>: Remove.
10149 A keyword is only a keyword if not followed by another keyword.
10150 (linespec_lexer_lex_one): Remove keyword_ok handling.
10151 Add comment explaining why the parsing stream is not advanced
10152 when a keyword is seen.
10153 (parse_linespec): Remove parser->keyword_ok.
10154 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10155
10156 2015-03-23 Keith Seitz <keiths@redhat.com>
10157
10158 PR gdb/18021
10159 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10160 if we find a static method with DW_AT_vtable_elem_location.
10161
10162 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10163
10164 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10165 before the second loop, to avoid undefined behavior. Reported by
10166 Anton Blanchard <anton@samba.org>.
10167
10168 2015-03-20 Keven Boell <keven.boell@intel.com>
10169
10170 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10171 data_location usage to linked list.
10172 (resolve_dynamic_type_internal): Adapt data_location to
10173 linked list.
10174 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10175 (copy_type_recursive, copy_type): Add copy of linked list.
10176 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10177 (struct dynamic_prop_list): New struct.
10178 * dwarf2read.c (set_die_type): Set data_location data.
10179
10180 2015-03-20 Pedro Alves <palves@redhat.com>
10181
10182 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10183 inner block and make it const.
10184 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10185
10186 2015-03-20 Pedro Alves <palves@redhat.com>
10187
10188 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10189 * breakpoint.h (set_breakpoint_condition): Update declaration.
10190
10191 2015-03-20 Pedro Alves <palves@redhat.com>
10192
10193 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10194
10195 2015-03-20 Pedro Alves <palves@redhat.com>
10196
10197 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10198
10199 2015-03-20 Pedro Alves <palves@redhat.com>
10200
10201 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10202
10203 2015-03-20 Pedro Alves <palves@redhat.com>
10204
10205 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10206 (nto_init_solib_absolute_prefix): Likewise.
10207
10208 2015-03-20 Pedro Alves <palves@redhat.com>
10209
10210 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10211 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10212
10213 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10214
10215 * config/djgpp/README: Remove gdb.hp.
10216
10217 2015-03-20 Yao Qi <yao.qi@linaro.org>
10218
10219 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10220 set_gdbarch_cannot_step_breakpoint.
10221
10222 2015-03-19 Pedro Alves <palves@redhat.com>
10223
10224 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10225 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10226 instead call perror_with_name.
10227 (check_ptrace_stopped_lwp_gone): New function.
10228 (linux_resume_one_lwp): Reimplement as wrapper around
10229 linux_resume_one_lwp_throw that swallows errors if the LWP is
10230 gone.
10231 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10232 swallows errors if the LWP is gone. Use
10233 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10234
10235 2015-03-19 Pedro Alves <palves@redhat.com>
10236
10237 * linux-nat.c (status_callback): Return early if the LWP has no
10238 status pending.
10239
10240 2015-03-19 Pedro Alves <palves@redhat.com>
10241
10242 * linux-nat.c (select_event_lwp_callback): Update comment to no
10243 longer mention SIGTRAP.
10244
10245 2015-03-18 Tristan Gingold <gingold@adacore.com>
10246
10247 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10248 redirection code to ...
10249 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10250 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10251
10252 2015-03-18 Gary Benson <gbenson@redhat.com>
10253
10254 (remote_protocol_features): Remove the "vFile:fstat" feature.
10255 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10256
10257 2015-03-11 Yao Qi <yao.qi@linaro.org>
10258
10259 PR tdep/18107
10260 * aarch64-linux-tdep.c: Include xml-syscall.h
10261 (aarch64_linux_get_syscall_number): New function.
10262 (aarch64_linux_init_abi): Call
10263 set_gdbarch_get_syscall_number.
10264 * syscalls/aarch64-linux.xml: New file.
10265
10266 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10267
10268 * ser-base.h (ser_base_setstopbits): Change second argument name
10269 from "rate" to "num".
10270
10271 2015-03-17 Gary Benson <gbenson@redhat.com>
10272 Luke Allardyce <lukeallardyce@gmail.com>
10273
10274 PR gdb/18131
10275 * common/common-remote-fileio.h (sys/stat.h): New include.
10276 (stuct stat): Remove forward declaration.
10277
10278 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10279
10280 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10281 before writing core register notes.
10282
10283 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10284 Pedro Alves <palves@redhat.com>
10285
10286 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10287 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10288 (tgoto): Wrap with extern "C".
10289
10290 2015-03-16 Pedro Alves <palves@redhat.com>
10291 Yuanhui Zhang <asmwarrior@gmail.com>
10292
10293 * stub-termcap.c (tputs): Change prototype.
10294
10295 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10296 Pedro Alves <palves@redhat.com>
10297
10298 * windows-nat.c (struct thread_info_struct): Rename to ...
10299 (struct windows_thread_info_struct): ... this.
10300 (thread_info): Rename to ...
10301 (windows_thread_info): ... this.
10302 All users updated.
10303
10304 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10305 Pedro Alves <palves@redhat.com>
10306
10307 * NEWS: New Removed targets and native configurations.
10308
10309 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10310
10311 Remove HPUX.
10312 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10313 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10314 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10315 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10316 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10317 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10318 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10319 hppa-hpux-tdep.c.
10320 * config/ia64/hpux.mh: Remove file.
10321 * config/pa/hpux.mh: Remove file.
10322 * configure: Rebuilt.
10323 * configure.ac (dlgetmodinfo, somread.o): Remove.
10324 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10325 (ia64-*-hpux*): Remove its float format exception.
10326 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10327 * hppa-hpux-nat.c: Remove file.
10328 * hppa-hpux-tdep.c: Remove file.
10329 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10330 Move them here from hppa-tdep.h
10331 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10332 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10333 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10334 Move them to hppa-tdep.c.
10335 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10336 declarations.
10337 * ia64-hpux-nat.c: Remove file.
10338 * ia64-hpux-tdep.c: Remove file.
10339 * ia64-hpux-tdep.h: Remove file.
10340 * inf-ttrace.c: Remove file.
10341 * inf-ttrace.h: Remove file.
10342 * solib-ia64-hpux.c: Remove file.
10343 * solib-ia64-hpux.h: Remove file.
10344 * solib-pa64.c: Remove file.
10345 * solib-pa64.h: Remove file.
10346 * solib-som.c: Remove file.
10347 * solib-som.h: Remove file.
10348 * somread.c: Remove file.
10349
10350 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10351
10352 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10353 * config.in: Regenerate.
10354 * configure: Regenerate.
10355 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10356 define.
10357 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10358 enumerate memory regions if present.
10359
10360 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10361
10362 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10363 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10364 expressions.
10365 (i386fbsd_sigtramp_p): Likewise.
10366
10367 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10368
10369 * MAINTAINERS (Write After Approval): Add John Baldwin.
10370
10371 2015-03-12 Gary Benson <gbenson@redhat.com>
10372
10373 * solib.c (_initialize_solib): Make "set/show sysroot" use
10374 add_setshow_optional_filename_cmd so it can be restored to
10375 empty after being set.
10376
10377 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10378
10379 * Makefile.in (SFILES): New source break-catch-syscall.c.
10380 (COMMON_OBS): New object break-catch-syscall.o.
10381 * break-catch-syscall.c: New file.
10382 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10383 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10384 (struct syscall_catchpoint): Likewise.
10385 (dtor_catch_syscall): Likewise.
10386 (catch_syscall_inferior_data): Likewise.
10387 (struct catch_syscall_inferior_data): Likewise.
10388 (get_catch_syscall_inferior_data): Likewise.
10389 (catch_syscall_inferior_data_cleanup): Likewise.
10390 (insert_catch_syscall): Likewise.
10391 (remove_catch_syscall): Likewise.
10392 (breakpoint_hit_catch_syscall): Likewise.
10393 (print_it_catch_syscall): Likewise.
10394 (print_one_catch_syscall): Likewise.
10395 (print_mention_catch_syscall): Likewise.
10396 (print_recreate_catch_syscall): Likewise.
10397 (catch_syscall_breakpoint_ops): Likewise.
10398 (syscall_catchpoint_p): Likewise.
10399 (create_syscall_event_catchpoint): Likewise.
10400 (catch_syscall_split_args): Likewise.
10401 (catch_syscall_command_1): Likewise.
10402 (is_syscall_catchpoint_enabled): Likewise.
10403 (catch_syscall_enabled): Likewise.
10404 (catching_syscall_number): Likewise.
10405 (catch_syscall_completer): Likewise.
10406 (clear_syscall_counts): Likewise.
10407 (initialize_breakpoint_ops): Move initialization of syscall
10408 catchpoints to break-catch-syscall.c.
10409 (_initialize_breakpoint): Move code related to syscall catchpoints
10410 to break-catch-syscall.c.
10411
10412 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10413
10414 * breakpoint.c (breakpoint_find_if): New function.
10415 * breakpoint.h (breakpoint_find_if): New prototype.
10416
10417 2015-03-11 Gary Benson <gbenson@redhat.com>
10418
10419 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10420 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10421 (remote_fileio_to_host_ulong): Likewise.
10422 (remote_fileio_to_host_mode): Likewise.
10423 (remote_fileio_to_host_time): Likewise.
10424 (remote_fileio_to_host_stat): Likewise.
10425 * remote.c (PACKET_vFile_fstat): New enum value.
10426 (remote_protocol_features): Register the "vFile:fstat" feature.
10427 (remote_hostio_fstat): New function.
10428 (remote_bfd_iovec_stat): Use the above.
10429 (_initialize_remote): Register new "set/show remote
10430 hostio-fstat-packet" command.
10431 * symfile.c (separate_debug_file_exists): Update comment.
10432 * NEWS: Announce new vFile:fstat packet.
10433
10434 2015-03-11 Gary Benson <gbenson@redhat.com>
10435
10436 * common/common-remote-fileio.h: New file.
10437 * common/common-remote-fileio.c: Likewise.
10438 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10439 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10440 (COMMON_OBS): Add common-remote-fileio.o.
10441 (common-remote-fileio.o): New rule.
10442 * remote-fileio.h (common-remote-fileio.h): New include.
10443 * remote-fileio.c (gdb/fileio.h): Do not include.
10444 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10445 (remote_fileio_to_fio_uint): Likewise.
10446 (remote_fileio_to_fio_time): Likewise.
10447 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10448 (remote_fileio_to_fio_mode): Likewise.
10449 (remote_fileio_to_fio_ulong): Likewise.
10450 (remote_fileio_to_fio_stat): Likewise.
10451
10452 2015-03-11 Andy Wingo <wingo@igalia.com>
10453
10454 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10455 we were checking the cached type, not the cached dynamic type.
10456
10457 2015-03-11 Andy Wingo <wingo@igalia.com>
10458
10459 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10460 other strings, as these are on the GC'd heap, and will be
10461 collected along with the smob.
10462
10463 2015-03-11 Andy Wingo <wingo@igalia.com>
10464
10465 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10466 (objfile_functions): Bind gdbscm_objfile_progspace to
10467 objfile-progspace.
10468 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10469
10470 2015-03-11 Andy Wingo <wingo@igalia.com>
10471
10472 * guile/guile.c (_initialize_guile): Disable automatic
10473 finalization, if Guile offers us that possibility.
10474 * guile/guile.c (call_initialize_gdb_module):
10475 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10476 finalizers in appropriate places.
10477 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10478 scm_set_automatic_finalization_enabled.
10479 * configure: Regenerated.
10480
10481 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10482
10483 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10484 SAL, if possible.
10485
10486 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10487
10488 * s390-linux-nat.c (struct arch_lwp_info): New.
10489 (s390_fix_watch_points): Rename to...
10490 (s390_prepare_to_resume): ...this. Skip the PER info update
10491 unless the watch points have changed.
10492 (s390_refresh_per_info, s390_new_thread): New functions.
10493 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10494 s390_fix_watch_points.
10495 (s390_remove_watchpoint): Likewise.
10496 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10497 Register s390_prepare_to_resume.
10498
10499 2015-03-09 Pedro Alves <palves@redhat.com>
10500
10501 Revert:
10502 2015-03-07 Pedro Alves <palves@redhat.com>
10503 * common/gdb_socket.h: New file.
10504 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10505 sys/socket.h.
10506 (net_open): Use union gdb_sockaddr_u.
10507
10508 2015-03-07 Pedro Alves <palves@redhat.com>
10509
10510 * configure.ac (build_warnings): Move -Wmissing-prototypes
10511 -Wdeclaration-after-statement -Wmissing-parameter-type
10512 -Wold-style-declaration -Wold-style-definition to the C-specific
10513 set.
10514 * configure: Regenerate.
10515
10516 2015-03-07 Pedro Alves <palves@redhat.com>
10517
10518 * common/gdb_socket.h: New file.
10519 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10520 sys/socket.h.
10521 (net_open): Use union gdb_sockaddr_u.
10522
10523 2015-03-07 Pedro Alves <palves@redhat.com>
10524
10525 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10526 (exceptions_state_mc_action_iter)
10527 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10528 Don't define.
10529 [__cplusplus] (try_scope_depth): New global.
10530 [__cplusplus] (exception_try_scope_entry)
10531 (exception_try_scope_exit, gdb_exception_sliced_copy)
10532 (exception_rethrow): New functions.
10533 (throw_exception): In C++ mode, throw
10534 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10535 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10536 (throw_it): In C++ mode, use try_scope_depth.
10537 * common/common-exceptions.h [!__cplusplus]
10538 (exceptions_state_mc_action_iter)
10539 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10540 Don't declare.
10541 [__cplusplus] (exception_try_scope_entry)
10542 (exception_try_scope_exit, exception_rethrow): Declare.
10543 [__cplusplus] (struct exception_try_scope): New struct.
10544 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10545 C++ exceptions.
10546 (struct gdb_exception_RETURN_MASK_ALL)
10547 (struct gdb_exception_RETURN_MASK_ERROR)
10548 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10549
10550 2015-03-07 Pedro Alves <palves@redhat.com>
10551
10552 * main.c (handle_command_errors): Remove volatile qualifier from
10553 parameter.
10554
10555 2015-03-07 Pedro Alves <palves@redhat.com>
10556
10557 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10558 TRY and CATCH.
10559 * gdbtypes.c (safe_parse_type): Remove empty line.
10560 (types_deeply_equal):
10561 * guile/scm-frame.c (gdbscm_frame_name):
10562 * linux-thread-db.c (find_new_threads_once):
10563 * python/py-breakpoint.c (bppy_get_commands):
10564 * record-btrace.c (record_btrace_insert_breakpoint)
10565 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10566 (record_btrace_start_replaying): Adjust to avoid code between TRY
10567 and CATCH.
10568
10569 2015-03-07 Pedro Alves <palves@redhat.com>
10570
10571 * common/common-exceptions.c (struct catcher) <exception>: No
10572 longer a pointer to volatile exception. Now an exception value.
10573 <mask>: Delete field.
10574 (exceptions_state_mc_init): Remove all parameters. Adjust.
10575 (exceptions_state_mc): No longer pop the catcher here.
10576 (exceptions_state_mc_catch): New function.
10577 (throw_exception): Adjust.
10578 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10579 all parameters.
10580 (exceptions_state_mc_catch): Declare.
10581 (TRY_CATCH): Rename to ...
10582 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10583 (CATCH, END_CATCH): New.
10584 All callers adjusted.
10585
10586 2015-03-07 Tom Tromey <tromey@redhat.com>
10587
10588 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10589
10590 2015-03-07 Pedro Alves <palves@redhat.com>
10591
10592 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10593 (amd64_epilogue_frame_cache): Normal exception handling code.
10594 * break-catch-throw.c (check_status_exception_catchpoint)
10595 (re_set_exception_catchpoint): Ditto.
10596 * cli/cli-interp.c (safe_execute_command):
10597 * cli/cli-script.c (script_from_file): Ditto.
10598 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10599 Ditto.
10600 * compile/compile-object-run.c (compile_object_run): Ditto.
10601 * cp-abi.c (baseclass_offset): Ditto.
10602 * cp-valprint.c (cp_print_value): Ditto.
10603 * exceptions.c (catch_exceptions_with_msg):
10604 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10605 * frame.c (get_frame_address_in_block_if_available): Ditto.
10606 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10607 (i386_sigtramp_frame_cache): Ditto.
10608 * infcmd.c (post_create_inferior): Ditto.
10609 * linespec.c (parse_linespec, find_linespec_symbols):
10610 * p-valprint.c (pascal_object_print_value): Ditto.
10611 * parse.c (parse_expression_for_completion): Ditto.
10612 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10613 * remote.c (remote_get_noisy_reply): Ditto.
10614 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10615 * solib-svr4.c (solib_svr4_r_map): Ditto.
10616
10617 2015-03-06 Gary Benson <gbenson@redhat.com>
10618
10619 * common/common-utils.h (startswith): New inline function.
10620 All places where this logic was used updated to use the above.
10621
10622 2015-03-05 Pedro Alves <palves@redhat.com>
10623
10624 PR gdb/18002
10625 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10626 after reading the breakpoint's shadow memory.
10627
10628 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10629
10630 * hppabsd-nat.c: Remove file.
10631 * hppaobsd-nat.c: New file.
10632 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10633 hppaobsd-nat.c.
10634 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10635 hppaobsd-nat.o.
10636
10637 2015-03-04 Pedro Alves <palves@redhat.com>
10638
10639 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10640 (target_decr_pc_after_break): Delete declaration.
10641 * target.c (default_target_decr_pc_after_break)
10642 (target_decr_pc_after_break): Delete.
10643 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10644 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10645 * linux-thread-db.c (check_event): Likewise.
10646 * infrun.c (adjust_pc_after_break): Likewise.
10647 * darwin-nat.c (cancel_breakpoint): Likewise.
10648 * aix-thread.c (aix_thread_wait): Likewise.
10649 * target-delegates.c: Regenerate.
10650
10651 2015-03-04 Pedro Alves <palves@redhat.com>
10652
10653 * linux-nat.c (save_sigtrap): Check for breakpoints before
10654 checking watchpoints.
10655 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10656 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10657 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10658 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10659 (linux_nat_stopped_by_sw_breakpoint)
10660 (linux_nat_supports_stopped_by_sw_breakpoint)
10661 (linux_nat_stopped_by_hw_breakpoint)
10662 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10663 (linux_nat_wait_1): Don't re-increment the PC if relying on
10664 SIGTRAP's siginfo->si_code.
10665 (linux_nat_add_target): Install new target methods.
10666 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10667 offset if the target already adjusted the PC.
10668 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10669 (GDB_ARCH_TRAP_BRKPT): New.
10670 (TRAP_HWBKPT): Define if not already defined.
10671
10672 2015-03-04 Pedro Alves <palves@redhat.com>
10673
10674 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10675 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10676 Delete field.
10677 <stop_reason>: New field.
10678 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10679 (packet_set_cmd_state): New function.
10680 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10681 features.
10682 (remote_query_supported): If not disabled with the corresponding
10683 "set remote foo-packet" command, report support for the swbreak
10684 and hwbreak features.
10685 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10686 field.
10687 <stop_reason>: New field.
10688 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10689 (remote_wait_as): Adjust.
10690 (remote_stopped_by_sw_breakpoint)
10691 (remote_supports_stopped_by_sw_breakpoint)
10692 (remote_stopped_by_hw_breakpoint)
10693 (remote_supports_stopped_by_hw_breakpoint): New functions.
10694 (remote_stopped_by_watchpoint): New function.
10695 (init_remote_ops): Install them.
10696 (_initialize_remote): Register new "set/show remote
10697 swbreak-feature-packet" and "set/show remote
10698 swbreak-feature-packet" commands.
10699
10700 2015-03-04 Pedro Alves <palves@redhat.com>
10701
10702 * btrace.h: Include target/waitstatus.h.
10703 (struct btrace_thread_info) <stop_reason>: New field.
10704 * record-btrace.c (record_btrace_step_thread): Use
10705 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10706 (record_btrace_decr_pc_after_break): Delete.
10707 (record_btrace_stopped_by_sw_breakpoint)
10708 (record_btrace_supports_stopped_by_sw_breakpoint)
10709 (record_btrace_stopped_by_hw_breakpoint)
10710 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10711 (init_record_btrace_ops): Install them.
10712 * record-full.c (record_full_hw_watchpoint): Delete and replace
10713 with ...
10714 (record_full_stop_reason): ... this throughout.
10715 (record_full_exec_insn): Adjust.
10716 (record_full_wait_1): Adjust. No longer re-increment the PC.
10717 (record_full_wait_1): Adjust. Use
10718 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10719 (record_full_stopped_by_watchpoint): Adjust.
10720 (record_full_stopped_by_sw_breakpoint)
10721 (record_full_supports_stopped_by_sw_breakpoint)
10722 (record_full_supports_stopped_by_sw_breakpoint)
10723 (record_full_stopped_by_hw_breakpoint)
10724 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10725 (init_record_full_ops, init_record_full_core_ops): Install them.
10726 * record.c (record_check_stopped_by_breakpoint): New function.
10727 * record.h: Include target/waitstatus.h.
10728 (record_check_stopped_by_breakpoint): New declaration.
10729
10730 2015-03-04 Pedro Alves <palves@redhat.com>
10731
10732 enum lwp_stop_reason -> enum target_stop_reason
10733 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10734 (linux_nat_stopped_by_watchpoint, status_callback)
10735 (linux_nat_wait_1): Adjust.
10736 * linux-nat.h (enum lwp_stop_reason): Delete.
10737 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10738 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10739 * target/waitstatus.h (enum target_stop_reason): New.
10740
10741 2015-03-04 Pedro Alves <palves@redhat.com>
10742
10743 * breakpoint.c (need_moribund_for_location_type): New function.
10744 (bpstat_stop_status): Don't skipping checking moribund locations
10745 of breakpoint types which the target tell caused a stop.
10746 (program_breakpoint_here_p): New function, factored out from ...
10747 (bp_loc_is_permanent): ... this.
10748 (update_global_location_list): Don't create a moribund location if
10749 the target supports reporting stops of the type of the removed
10750 breakpoint.
10751 * breakpoint.h (program_breakpoint_here_p): New declaration.
10752 * infrun.c (adjust_pc_after_break): Return early if the target has
10753 already adjusted the PC. Add comments.
10754 (handle_signal_stop): If nothing explains a signal, and the target
10755 tells us the stop was caused by a software breakpoint, check if
10756 there's a breakpoint instruction in the memory. If so, adjust the
10757 PC before presenting the stop to the user. Otherwise, ignore the
10758 trap. If nothing explains a signal, and the target tells us the
10759 stop was caused by a hardware breakpoint, ignore the trap.
10760 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10761 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10762 to_supports_stopped_by_hw_breakpoint>: New fields.
10763 (target_stopped_by_sw_breakpoint)
10764 (target_supports_stopped_by_sw_breakpoint)
10765 (target_stopped_by_hw_breakpoint)
10766 (target_supports_stopped_by_hw_breakpoint): Define.
10767 * target-delegates.c: Regenerate.
10768
10769 2015-03-04 Pedro Alves <palves@redhat.com>
10770
10771 * infrun.c (follow_fork_inferior): Use the whole of the
10772 inferior_ptid and pending_follow.related_pid ptids instead of
10773 building ptids from the process components. Adjust verbose output
10774 to use target_pid_to_str.
10775 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10776 inferior_ptid and pending_follow.related_pid ptids instead of
10777 building ptids from the process components.
10778
10779 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10780
10781 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10782 (inf_ptrace_insert_fork_catchpoint): New function.
10783 (inf_ptrace_remove_fork_catchpoint): New function.
10784 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10785
10786 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10787
10788 * s390-linux-tdep.c (s390_register_name): Return empty string
10789 instead of NULL for registers that shouldn't be visible.
10790
10791 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10792
10793 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10794 XML file for 64-bit targets.
10795
10796 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10797
10798 * target.h (find_default_create_inferior): Remove declaration.
10799 (find_default_attach): Likewise.
10800
10801 2015-03-03 Pedro Alves <palves@redhat.com>
10802
10803 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10804 Use ptid_get_pid to get the overall process id when resuming all
10805 threads.
10806
10807 2015-03-03 Pedro Alves <palves@redhat.com>
10808
10809 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10810 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10811 * inf-ptrace.c (get_ptrace_pid): New function.
10812 (inf_ptrace_resume): Use it.
10813 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10814 to the lower layer.
10815
10816 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10817
10818 * nat/linux-btrace.c: Include sys/utsname.h.
10819 (linux_determine_kernel_ptr_bits): New.
10820 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10821 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10822 ptr_bits.
10823
10824 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10825
10826 * btrace.c (ftrace_update_function): Treat return as tailcall for
10827 "_dl_runtime_resolve".
10828
10829 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10830
10831 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10832 * btrace.c (ftrace_debug): Do not print the line range.
10833 (ftrace_skip_file, ftrace_update_lines): Remove.
10834 (ftrace_new_function): Remove lbegin and lend initialization.
10835 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10836 * record-btrace.c (btrace_compute_src_line_range): New.
10837 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10838
10839 2015-03-02 Pedro Alves <palves@redhat.com>
10840
10841 * infrun.c (follow_exec): Delete all threads of the process except
10842 the event thread. Extended comments.
10843
10844 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10845
10846 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10847
10848 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10849
10850 * utils.h: Remove <stdbool.h> #include.
10851 (producer_is_gcc): Change return type to "int".
10852 * utils.c (producer_is_gcc): Change return type to int.
10853 Return 1 instead of true, and 0 instead of false.
10854 Adjust function documentation accordingly.
10855
10856 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10857
10858 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10859 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10860 present.
10861 (s390_linux_store_inferior_registers): Likewise.
10862 (s390_get_hwcap): Remove function. Embed its logic...
10863 (s390_read_description): ...here. Yield a target description with
10864 vector registers if applicable.
10865 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10866 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10867 "features/s390x-tevx-linux64.c".
10868 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10869 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10870 for "GNU/Linux-specific registers".
10871 (s390_dwarf_reg_r0l): New enum value.
10872 (s390_dwarf_reg_to_regnum): Support vector registers.
10873 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10874 of GPR lower halves.
10875 (regnum_is_vxr_full): New function.
10876 (s390_register_name): New function.
10877 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10878 f0-f15 and v0l-v15l.
10879 (s390_pseudo_register_type): Likewise.
10880 (s390_pseudo_register_read): Likewise.
10881 (s390_pseudo_register_write): Likewise.
10882 (s390_value_from_register): Account for the fact that values are
10883 placed left-justified in vector registers.
10884 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10885 the vector reggroup and omit them from the general reggroup.
10886 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10887 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10888 (s390_iterate_over_regset_sections): Add iterations for the two
10889 new vector regsets.
10890 (s390_core_read_description): Yield a target description with
10891 vector registers if applicable.
10892 (s390_gdbarch_init): Handle target descriptions with vector
10893 registers. Add "register_name" gdbarch method.
10894 (_initialize_s390_tdep): Call new tdesc initialization functions.
10895 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10896 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10897 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10898 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10899 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10900 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10901 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10902 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10903 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10904 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10905 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10906 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10907 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10908 (S390_NUM_REGS): Adjust value.
10909 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10910 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10911 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10912 * NEWS: Announce S/390 vector register support.
10913
10914 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10915
10916 * features/s390-tevx-linux64.xml: New file.
10917 * features/s390-vx-linux64.xml: New file.
10918 * features/s390-vx.xml: New file.
10919 * features/s390x-tevx-linux64.xml: New file.
10920 * features/s390x-vx-linux64.xml: New file.
10921 * features/Makefile (WHICH): Add s390-vx-linux64,
10922 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10923 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10924 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10925 macros.
10926 * features/s390-tevx-linux64.c: New generated file.
10927 * features/s390-vx-linux64.c: Likewise.
10928 * features/s390x-tevx-linux64.c: Likewise.
10929 * features/s390x-vx-linux64.c: Likewise.
10930 * regformats/s390-tevx-linux64.dat: Likewise.
10931 * regformats/s390-vx-linux64.dat: Likewise.
10932 * regformats/s390x-tevx-linux64.dat: Likewise.
10933 * regformats/s390x-vx-linux64.dat: Likewise.
10934
10935 2015-02-28 Doug Evans <xdje42@gmail.com>
10936
10937 * symtab.h (struct symtab) <next>: Fix comment.
10938
10939 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10940
10941 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10942 python_GdbMethods.
10943
10944 2015-02-27 Pedro Alves <palves@redhat.com>
10945
10946 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10947
10948 2015-02-27 Pedro Alves <palves@redhat.com>
10949
10950 * common/common-exceptions.h (exception_none): Declare.
10951 * common/common-exceptions.c (exception_none): Moved from
10952 exceptions.c.
10953 (exceptions_state_mc_init): Use exception_none.
10954 * exceptions.c (exception_none): Move to
10955 common/common-exceptions.c.
10956 * exceptions.h (exception_none): Move to
10957 common/common-exceptions.h.
10958
10959 2015-02-27 Pedro Alves <palves@redhat.com>
10960
10961 * main.c (catch_command_errors, catch_command_errors_const):
10962 Remove 'mask' argument. Adjust.
10963 (captured_main): Adjust callers.
10964
10965 2015-02-27 Pedro Alves <palves@redhat.com>
10966
10967 * python/python-internal.h: Include "extension-priv.h".
10968
10969 2015-02-27 Pedro Alves <palves@redhat.com>
10970
10971 * breakpoint.h (enum print_stop_action): Move further up in the
10972 file.
10973
10974 2015-02-27 Pedro Alves <palves@redhat.com>
10975
10976 * gdbarch.sh: Include regcache.h.
10977 * gdbarch.h: Regenerate.
10978
10979 2015-02-27 Pedro Alves <palves@redhat.com>
10980
10981 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10982 Remove duplicate const.
10983 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10984 duplicate const.
10985
10986 2015-02-27 Pedro Alves <palves@redhat.com>
10987
10988 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10989 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10990 * features/feature_to_c.sh: Tag the generated xml_builtin array
10991 with extern const in C++ mode.
10992
10993 2015-02-27 Tom Tromey <tromey@redhat.com>
10994
10995 * minidebug.c (struct lzma_stream): Rename to ...
10996 (struct gdb_lzma_stream): ... this.
10997 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10998
10999 2015-02-27 Pedro Alves <palves@redhat.com>
11000
11001 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11002 function.
11003 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11004 (mi_cmd_stack_list_variables): Use it.
11005
11006 2015-02-27 Pedro Alves <palves@redhat.com>
11007
11008 * x86-linux-nat.c (u_debugreg_offset): New function.
11009 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11010
11011 2015-02-27 Pedro Alves <palves@redhat.com>
11012
11013 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11014 declaration.
11015 Include break-common.h.
11016
11017 2015-02-27 Tom Tromey <tromey@redhat.com>
11018 Pedro Alves <palves@redhat.com>
11019
11020 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11021 local used to iterate over enums.
11022 * completer.c (signal_completer): Likewise.
11023 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11024 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11025 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11026 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11027 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11028 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11029 * tui-wingeneral.c (tui_refresh_all): Likewise.
11030
11031 2015-02-27 Pedro Alves <palves@redhat.com>
11032
11033 * target.h: Include "infrun.h".
11034
11035 2015-02-27 Pedro Alves <palves@redhat.com>
11036
11037 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11038
11039 2015-02-27 Pedro Alves <palves@redhat.com>
11040
11041 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11042 (IPA_SYM): Use it.
11043 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11044
11045 2015-02-27 Pedro Alves <palves@redhat.com>
11046
11047 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11048 cli_mld_erase_entire_line, and make it extern "C".
11049 * common/common-defs.h (EXTERN_C): New.
11050 * completer.c (_rl_completion_prefix_display_length)
11051 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11052 out of gdb_display_match_list_1.
11053 (_rl_qsort_string_compare): Move declaration out of
11054 gdb_display_match_list_1, and make it extern "C".
11055 * defs.h (re_comp): Use EXTERN_C.
11056 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11057 and make it extern "C".
11058 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11059 and make it extern "C".
11060 (main): Move declaration out of maintenance_set_profile_cmd.
11061 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11062 EXTERN_C.
11063
11064 2015-02-27 Pedro Alves <palves@redhat.com>
11065
11066 * python/python.c (GdbMethods): Rename to ...
11067 (python_GdbMethods): ... this and make extern.
11068 (GdbModuleDef): Rename to ...
11069 (python_GdbModuleDef): ... this and make extern.
11070
11071 2015-02-27 Pedro Alves <palves@redhat.com>
11072
11073 * record-btrace.c (set_record_btrace_cmdlist)
11074 (show_record_btrace_cmdlist): Remove redefinitions.
11075
11076 2015-02-27 Tom Tromey <tromey@redhat.com>
11077 Pedro Alves <palves@redhat.com>
11078
11079 * dwarf2-frame.c (enum cfa_how_kind, struct
11080 dwarf2_frame_state_reg_info): Move out of struct
11081 dwarf2_frame_state.
11082 * dwarf2read.c (struct tu_stats): Move out of struct
11083 dwarf2_per_objfile.
11084 (struct file_entry): Move out of struct line_header.
11085 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11086 typedef_field_list): Move out of struct field_info.
11087 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11088 Move out of struct dynamic_prop.
11089 (union type_owner, union field_location, struct field, struct
11090 range_bounds, union type_specific): Move out of struct main_type.
11091 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11092 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11093 (struct call_site_target, union call_site_parameter_u, struct
11094 call_site_parameter): Move out of struct call_site.
11095 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11096 m32c_prologue.
11097 (enum srcdest_kind): Move out of struct srcdest.
11098 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11099 * prologue-value.h (enum prologue_value_kind): Move out of struct
11100 prologue_value.
11101 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11102 gdbarch_tdep.
11103 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11104 out of struct field_info.
11105 * symfile.h (struct other_sections): Move out of struct
11106 section_addr_info.
11107 * symtab.c (struct symbol_cache_slot): Move out struct
11108 block_symbol_cache.
11109 * target-descriptions.c (enum tdesc_type_kind): Move out of
11110 typedef struct tdesc_type.
11111 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11112 struct tui_line_or_address.
11113 * value.c (enum internalvar_kind, union internalvar_data): Move
11114 out of struct internalvar.
11115 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11116 gdbarch_tdep.
11117
11118 2015-02-27 Tom Tromey <tromey@redhat.com>
11119 Pedro Alves <palves@redhat.com>
11120
11121 Rename symbols whose names are reserved C++ keywords throughout.
11122
11123 2015-02-27 Pedro Alves <palves@redhat.com>
11124
11125 * Makefile.in (COMPILER): New, get it from autoconf.
11126 (COMPILE.pre, CC_LD): Use COMPILER.
11127 (CXX): Get from autoconf instead.
11128 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11129 * acinclude.m4: Include build-with-cxx.m4.
11130 * build-with-cxx.m4: New file.
11131 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11132 Disable -Werror by default if building in C++ mode.
11133 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11134 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11135 Run supported-warning-flags tests with the C++ compiler.
11136 Save/restore CXXFLAGS too.
11137 * configure: Regenerate.
11138
11139 2015-02-27 Pedro Alves <palves@redhat.com>
11140
11141 * libiberty.m4: New file.
11142 * acinclude.m4: Include libiberty.m4.
11143 * configure.ac: Call libiberty_INIT.
11144 * config.in, configure: Regenerate.
11145
11146 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11147
11148 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11149 31-bit targets, but 64-bit targets as well.
11150 (s390_gnu_triplet_regexp): New function.
11151 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11152 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11153 method.
11154
11155 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11156
11157 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11158 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11159 from CONTEXT_DEBUGGER.
11160
11161 2015-02-26 Doug Evans <dje@google.com>
11162
11163 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11164 CHECK_TYPEDEF.
11165 (set_type_vptr_fieldno): Ditto.
11166 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11167 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11168
11169 2015-02-26 Pedro Alves <palves@redhat.com>
11170
11171 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11172 * complaints.c (vcomplaint): Pass argument FMT directly to
11173 printf-like functions instead of complaint->fmt.
11174 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11175 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11176 * compile/compile-loc2c.c (pushf, unary, binary): Add
11177 ATTRIBUTE_PRINTF.
11178 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11179 to pushf.
11180 (BINARY): Pass string literal as format string to 'binary'.
11181 * compile/compile-object-load.c (link_callbacks_einfo): Add
11182 ATTRIBUTE_PRINTF.
11183 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11184
11185 2015-02-26 Pedro Alves <palves@redhat.com>
11186
11187 * windows-termcap.c: Rename to ...
11188 * stub-termcap.c: ... this. Adjust header line.
11189 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11190 windows-termcap.c.
11191 * configure: Regenerate.
11192 * configure.ac: Refer to stub-termcap.o instead of
11193 windows-termcap.o.
11194 * gdb_curses.h: Mention stub-termcap.c instead of
11195 windows-termcap.c.
11196
11197 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11198
11199 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11200 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11201
11202 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11203
11204 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11205
11206 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11207
11208 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11209 bfd_canonicalize_symtab.
11210
11211 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11212
11213 * amd64fbsd-nat.c: Include sys/user.h.
11214 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11215 instead of KERN_PS_STRINGS to locate the signal trampoline.
11216 * i386fbsd-nat.c: Include sys/user.h.
11217 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11218 instead of KERN_PS_STRINGS to locate the signal trampoline.
11219 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11220 (amd64fbsd_sigtramp_p): New.
11221 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11222 longer set default values.
11223 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11224 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11225 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11226 (i386fbsd_freebsd4_sigtramp_start)
11227 (i386fbsd_freebsd4_sigtramp_middle)
11228 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11229 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11230 (i386fbsd_sigtramp_p): New.
11231 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11232 longer set default values.
11233 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11234
11235 2015-02-25 John Baldwin <jhb@freebsd.org>
11236
11237 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11238 get_frame_register instead of frame_unwind_register_unsigned.
11239
11240 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11241
11242 PR build/18033
11243 * compile/compile-c-support.c (c_compute_program): Change // comment.
11244 * compile/compile-object-load.c (setup_sections): Change // comment.
11245
11246 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11247
11248 PR build/18033:
11249 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11250
11251 2015-02-23 Pedro Alves <palves@redhat.com>
11252
11253 * remote.c (skip_to_semicolon): New function.
11254 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11255 special case the stop reasons that look like hex numbers
11256 upfront. Instead handle real register numbers after matching
11257 all the known stop reasons.
11258
11259 2015-02-21 Doug Evans <dje@google.com>
11260
11261 PR c++/17976, symtab/17821
11262 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11263 is_in_anonymous. All callers updated.
11264 (find_symbol_in_baseclass): Ditto.
11265 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11266 for symbols in an anonymous namespace.
11267 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11268 DW_AT_name directly.
11269 (dwarf2_name): Convert missing namespace name to
11270 CP_ANONYMOUS_NAMESPACE_STR.
11271
11272 2015-02-20 Pedro Alves <palves@redhat.com>
11273
11274 * linux-nat.c (linux_handle_extended_wait): Call
11275 thread_db_notice_clone whenever a new clone LWP is detected.
11276 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11277 functions.
11278 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11279 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11280 (linux_unstop_all_lwps): Declare.
11281 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11282 (thread_get_info_callback): Delete.
11283 (thread_from_lwp): Use td_thr_get_info and record_thread.
11284 (thread_db_attach_lwp): Delete.
11285 (thread_db_notice_clone): New function.
11286 (try_thread_db_load_1): If /proc is mounted and shows the
11287 process'es task list, walk over all LWPs and call thread_from_lwp
11288 instead of relying on td_ta_thr_iter.
11289 (attach_thread): Don't call check_thread_signals here. Split the
11290 tail part of the function (which adds the thread to the core GDB
11291 thread list) to ...
11292 (record_thread): ... this function. Call check_thread_signals
11293 here.
11294 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11295 call thread_from_lwp.
11296 (thread_db_update_thread_list): Rename to ...
11297 (thread_db_update_thread_list_org): ... this.
11298 (thread_db_update_thread_list): New function.
11299 (thread_db_find_thread_from_tid): Delete.
11300 (thread_db_get_ada_task_ptid): Simplify.
11301 * nat/linux-procfs.c: Include <sys/stat.h>.
11302 (linux_proc_task_list_dir_exists): New function.
11303 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11304
11305 2015-02-20 Pedro Alves <palves@redhat.com>
11306
11307 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11308 main LWP. Handle the case of waitpid returning 0 if we're already
11309 attached to the LWP. Don't set the LWP's last_resume_kind to
11310 resume_stop if we already knew about the LWP.
11311 (linux_nat_filter_event): Add debug logs.
11312
11313 2015-02-20 Pedro Alves <palves@redhat.com>
11314
11315 * target.h (forward_target_decr_pc_after_break): Delete
11316 declaration.
11317
11318 2015-02-20 Pedro Alves <palves@redhat.com>
11319
11320 PR threads/18006
11321 * linux-thread-db.c (thread_get_info_callback): Return early if
11322 the thread's lwp id is -1.
11323
11324 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11325
11326 GDB 7.9 released.
11327
11328 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11329
11330 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11331 (dtrace_get_probes) Change type of variable 'dof'.
11332
11333 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11334
11335 PR breakpoints/16812
11336 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11337 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11338 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11339
11340 2015-02-19 David Taylor <dtaylor@emc.com>
11341
11342 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11343
11344 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11345
11346 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11347 function.
11348 (tui_putc): Don't call tui_handle_resize_during_io.
11349 (tui_getc): Likewise.
11350 (tui_mld_getc): Likewise.
11351 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11352 (tui_sigwinch_token): New static variable.
11353 (tui_initialize_win): Adjust documentation. Set
11354 tui_sigwinch_token.
11355 (tui_async_resize_screen): New asynchronous callback.
11356 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11357 invoke tui_async_resize_screen.
11358
11359 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11360
11361 * configure: Regenerated.
11362 * configure.ac: Use GDB_AC_TRANSFORM.
11363 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11364 * acinclude.m4: sinclude transform.m4.
11365 * transform.m4: New file.
11366 (GDB_AC_TRANSFORM): New macro.
11367
11368 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11369
11370 * NEWS: Announce the support for DTrace SDT probes.
11371
11372 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11373
11374 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11375 (amd64_dtrace_parse_probe_argument): New function.
11376 (amd64_dtrace_probe_is_enabled): Likewise.
11377 (amd64_dtrace_enable_probe): Likewise.
11378 (amd64_dtrace_disable_probe): Likewise.
11379 (amd64_linux_init_abi): Register the
11380 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11381 `gdbarch_dtrace_disable_probe' and
11382 `gdbarch_dtrace_probe_is_enabled' hooks.
11383 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11384 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11385 (amd64_dtrace_enable_probe_sequence): Likewise.
11386 (amd64_dtrace_disable_probe_sequence): Likewise.
11387
11388 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11389
11390 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11391 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11392 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11393 handle ELF files.
11394 * Makefile.in (SFILES): dtrace-probe.c added.
11395 * configure: Regenerate.
11396 * dtrace-probe.c: New file.
11397 (SHT_SUNW_dof): New constant.
11398 (dtrace_probe_type): New enum.
11399 (dtrace_probe_arg): New struct.
11400 (dtrace_probe_arg_s): New typedef.
11401 (struct dtrace_probe_enabler): New struct.
11402 (dtrace_probe_enabler_s): New typedef.
11403 (dtrace_probe): New struct.
11404 (dtrace_probe_is_linespec): New function.
11405 (dtrace_dof_sect_type): New enum.
11406 (dtrace_dof_dofh_ident): Likewise.
11407 (dtrace_dof_encoding): Likewise.
11408 (DTRACE_DOF_ENCODE_LSB): Likewise.
11409 (DTRACE_DOF_ENCODE_MSB): Likewise.
11410 (dtrace_dof_hdr): New struct.
11411 (dtrace_dof_sect): Likewise.
11412 (dtrace_dof_provider): Likewise.
11413 (dtrace_dof_probe): Likewise.
11414 (DOF_UINT): New macro.
11415 (DTRACE_DOF_PTR): Likewise.
11416 (DTRACE_DOF_SECT): Likewise.
11417 (dtrace_process_dof_probe): New function.
11418 (dtrace_process_dof): Likewise.
11419 (dtrace_build_arg_exprs): Likewise.
11420 (dtrace_get_arg): Likewise.
11421 (dtrace_get_probes): Likewise.
11422 (dtrace_get_probe_argument_count): Likewise.
11423 (dtrace_can_evaluate_probe_arguments): Likewise.
11424 (dtrace_evaluate_probe_argument): Likewise.
11425 (dtrace_compile_to_ax): Likewise.
11426 (dtrace_probe_destroy): Likewise.
11427 (dtrace_gen_info_probes_table_header): Likewise.
11428 (dtrace_gen_info_probes_table_values): Likewise.
11429 (dtrace_probe_is_enabled): Likewise.
11430 (dtrace_probe_ops): New variable.
11431 (info_probes_dtrace_command): New function.
11432 (_initialize_dtrace_probe): Likewise.
11433 (dtrace_type_name): Likewise.
11434
11435 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11436
11437 * gdbarch.sh (dtrace_parse_probe_argument): New.
11438 (dtrace_probe_is_enabled): Likewise.
11439 (dtrace_enable_probe): Likewise.
11440 (dtrace_disable_probe): Likewise.
11441 * gdbarch.c: Regenerate.
11442 * gdbarch.h: Regenerate.
11443
11444 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11445
11446 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11447 stap_probe_ops for `enable_probe' and `disable_probe'.
11448 * probe.c (enable_probes_command): New function.
11449 (disable_probes_command): Likewise.
11450 (_initialize_probe): Define the cli commands `enable probe' and
11451 `disable probe'.
11452 (parse_probe_linespec): New function.
11453 (info_probes_for_ops): Use parse_probe_linespec.
11454 * probe.h (probe_ops): New hooks `enable_probe' and
11455 `disable_probe'.
11456
11457 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11458
11459 * probe.c (compute_probe_arg): Moved from stap-probe.c
11460 (compile_probe_arg): Likewise.
11461 (probe_funcs): Likewise.
11462 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11463 (compile_probe_arg): Likewise.
11464 (probe_funcs): Likewise.
11465
11466 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11467
11468 * probe.c (print_ui_out_not_applicables): New function.
11469 (exists_probe_with_pops): Likewise.
11470 (info_probes_for_ops): Do not include column headers for probe
11471 types for which no probe has been actually found on any object.
11472 Also invoke `print_ui_out_not_applicables' in order to match the
11473 column rows with the header when probes of several types are
11474 listed.
11475 Print the "Type" column.
11476 * probe.h (probe_ops): Added a new probe operation `type_name'.
11477 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11478 (stap_type_name): New function.
11479
11480 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11481
11482 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11483 (key_is_command_char): Delete.
11484
11485 2015-02-17 Pedro Alves <palves@redhat.com>
11486
11487 * tui/tui.c (tui_enable): Resize windows before anything
11488 might show a window.
11489
11490 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11491
11492 PR gdb/17984
11493 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11494 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11495 call.
11496 * aarch64-tdep.h (tdesc_aarch64): Declare.
11497
11498 2015-02-12 Mark Wielaard <mjw@redhat.com>
11499
11500 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11501
11502 2015-02-13 Doug Evans <dje@google.com>
11503
11504 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11505 anonymous_namespace to is_in_anonymous for consistency with the rest
11506 of the file.
11507 (cp_lookup_bare_symbol): Fix typo in comment.
11508 (cp_search_static_and_baseclasses): Ditto.
11509 (search_symbol_list): Use vertical space in comment better.
11510 (reset_directive_searched): Ditto. Fix typo.
11511 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11512
11513 2015-02-13 Yao Qi <yao.qi@arm.com>
11514
11515 * MAINTAINERS: Update my email address.
11516
11517 2015-02-12 Doug Evans <dje@google.com>
11518
11519 * symtab.c (completion_list_add_name): Fix memory leak.
11520
11521 2015-02-12 Doug Evans <dje@google.com>
11522
11523 * completer.c (complete_line): Remove incorrect comment.
11524
11525 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11526
11527 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11528 (py_print_frame): Use RETURN_MASK_ERROR.
11529
11530 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11531
11532 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11533 function comment. Wrap all function that can throw in cleanups.
11534 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11535 cleanups.
11536
11537 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11538
11539 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11540 Remove the error label.
11541
11542 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11543
11544 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11545 with goto first, indent the former else codepath left. Put variable
11546 'elided' to a new inner block.
11547
11548 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11549
11550 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11551
11552 2015-02-11 Pedro Alves <palves@redhat.com>
11553
11554 * xcoffread.c (within_function): Delete.
11555
11556 2015-02-11 Tom Tromey <tromey@redhat.com>
11557 Pedro Alves <palves@redhat.com>
11558
11559 * breakpoint.c (base_breakpoint_ops): Delete.
11560 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11561 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11562 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11563 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11564 * python/py-arch.c (arch_object_type): Make extern.
11565 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11566 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11567 * python/py-cmd.c (cmdpy_object_type): Make extern.
11568 * python/py-continueevent.c (continue_event_object_type)
11569 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11570 parameter. Update all callers.
11571 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11572 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11573 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11574 * python/py-function.c (fnpy_object_type): Make extern.
11575 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11576 * python/py-infevents.c (call_pre_event_object_type)
11577 (inferior_call_post_event_object_type).
11578 (memory_changed_event_object_type): Make extern.
11579 * python/py-infthread.c (thread_object_type): Make extern.
11580 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11581 * python/py-linetable.c (linetable_entry_object_type)
11582 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11583 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11584 (clear_objfiles_event_object_type): Make extern.
11585 * python/py-objfile.c (objfile_object_type): Make extern.
11586 * python/py-param.c (parmpy_object_type): Make extern.
11587 * python/py-progspace.c (pspace_object_type): Make extern.
11588 * python/py-signalevent.c (signal_event_object_type): Make extern.
11589 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11590 * python/py-type.c (type_object_type, field_object_type)
11591 (type_iterator_object_type): Make extern.
11592 * python/python.c (python_extension_script_ops)
11593 (python_extension_ops): Make extern.
11594 * stap-probe.c (stap_probe_ops): Make extern.
11595
11596 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11597
11598 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11599 because the event thread is not the current thread.
11600
11601 2015-02-11 Doug Evans <xdje42@gmail.com>
11602
11603 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11604 been initialized yet, return NULL.
11605
11606 2015-02-11 Doug Evans <dje@google.com>
11607
11608 * symfile.h (new_symfile_objfile): Delete.
11609 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11610 All callers updated.
11611
11612 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11613
11614 * tui/tui-io.c (tui_handle_resize_during_io): Call
11615 tui_update_gdb_sizes() after resizing the screen.
11616 * tui/tui.c (tui_enable): Resize the terminal before
11617 calling tui_update_gdb_sizes().
11618
11619 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11620
11621 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11622 line before printing a newline.
11623
11624 2015-02-11 Mark Wielaard <mjw@redhat.com>
11625
11626 * utils.c (producer_is_gcc): Return true or false.
11627
11628 2015-02-10 Mark Wielaard <mjw@redhat.com>
11629
11630 * utils.h (producer_is_gcc): Change return type to bool. Add major
11631 argument.
11632 * utils.c (producer_is_gcc): Likewise.
11633 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11634 * dwarf2read.c (check_producer): Likewise.
11635
11636 2015-02-10 Pedro Alves <palves@redhat.com>
11637
11638 * infrun.c (displaced_step_fixup): Switch to the event thread
11639 before calling gdbarch_displaced_step_fixup.
11640
11641 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11642
11643 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11644
11645 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11646
11647 * ada-varobj.c (ada_name_of_child): Constify parent.
11648 (ada_path_expr_of_child): Same.
11649 (ada_value_of_child): Same.
11650 (ada_type_of_child): Same.
11651 * c-varobj.c (c_is_path_expr_parent): Same.
11652 (c_describe_child): Same.
11653 (c_name_of_child): Same.
11654 (c_value_of_child): Same.
11655 (c_type_of_child): Same.
11656 (cplus_number_of_children): Same.
11657 (cplus_describe_child): Constify var.
11658 (cplus_name_of_child): Constify parent.
11659 (cplus_value_of_child): Same.
11660 (cplus_type_of_child): Same.
11661 * jv-varobj.c (java_name_of_child): Same.
11662 (java_value_of_child): Same.
11663 (java_type_of_child): Same.
11664 * varobj.c (value_of_child): Same.
11665 (varobj_default_is_path_expr_parent): Constify var, parent and return
11666 value.
11667 (varobj_get_path_expr): Constify var, modify path_expr through
11668 mutable_var.
11669 (install_new_value): Constify parent.
11670 (value_of_child): Constify parent.
11671 * varobj.h (struct varobj): Constify parent.
11672 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11673 type_of_child.
11674 (varobj_get_path_expr): Constify var.
11675 (varobj_get_path_expr_parent): Constify var and return value.
11676
11677 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11678
11679 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11680 (arm_prologue_this_id): Move PC and SP limit checks to
11681 arm_prologue_unwind_stop_reason.
11682 (arm_prologue_unwind) <stop_reason> : Set to
11683 arm_prologue_unwind_stop_reason.
11684
11685 2015-02-09 Mark Wielaard <mjw@redhat.com>
11686
11687 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11688 DW_LANG_Fortran08 as language_fortran.
11689
11690 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11691
11692 PR remote/17946
11693 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11694 of pointer against char.
11695
11696 2015-02-09 Mark Wielaard <mjw@redhat.com>
11697
11698 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11699 (c_type_print_modifier): Likewise.
11700 * dwarf2read.c (read_tag_atomic_type): New function.
11701 (read_type_die_1): Handle DW_TAG_atomic_type.
11702 * gdbtypes.c (make_atomic_type): New function.
11703 (recursive_dump_type): Handle TYPE_ATOMIC.
11704 * gdbtypes.h (enum type_flag_values): Renumber.
11705 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11706 (TYPE_ATOMIC): New macro.
11707 (make_atomic_type): Declare.
11708
11709 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11710
11711 * btrace.c (ftrace_find_call): Skip gaps.
11712 (ftrace_new_function): Initialize level.
11713 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11714 (ftrace_new_switch): Update
11715 level computation.
11716 (ftrace_new_gap): New.
11717 (ftrace_update_function): Create new function after gap.
11718 (btrace_compute_ftrace_bts): Create gap on error.
11719 (btrace_stitch_bts): Update parameters. Clear trace if it
11720 becomes empty.
11721 (btrace_stitch_trace): Update parameters. Update callers.
11722 (btrace_clear): Reset the number of gaps.
11723 (btrace_insn_get): Return NULL if the iterator points to a gap.
11724 (btrace_insn_number): Return zero if the iterator points to a gap.
11725 (btrace_insn_end): Allow gaps at the end.
11726 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11727 (btrace_find_insn_by_number): Assert that the found iterator does
11728 not point to a gap.
11729 (btrace_call_next, btrace_call_prev): Assert that the last function
11730 is not a gap.
11731 * btrace.h (btrace_bts_error): New.
11732 (btrace_function): Update comment.
11733 (btrace_function) <insn, insn_offset, number>: Update comment.
11734 (btrace_function) <errcode>: New.
11735 (btrace_thread_info) <ngaps>: New.
11736 (btrace_thread_info) <replay>: Update comment.
11737 (btrace_insn_get): Update comment.
11738 * record-btrace.c (btrace_ui_out_decode_error): New.
11739 (record_btrace_info): Print number of gaps.
11740 (btrace_insn_history, btrace_call_history): Call
11741 btrace_ui_out_decode_error for gaps.
11742 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11743
11744 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11745
11746 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11747 * nat/linux-btrace.c: (btrace_this_cpu): New.
11748 (cpu_supports_bts): Call btrace_this_cpu.
11749 (intel_supports_bts): Add cpu parameter.
11750
11751 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11752
11753 * btrace.h (btrace_insn_class): New.
11754 (btrace_insn) <size, iclass>: New.
11755 * btrace.c (ftrace_find_call): Update parameters. Update users.
11756 Use instruction classification.
11757 (ftrace_new_return): Update parameters. Update users.
11758 (ftrace_update_function): Update parameters. Update users. Use
11759 instruction classification.
11760 (ftrace_update_insns): Update parameters. Update users.
11761 (ftrace_classify_insn): New.
11762 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11763 TRY_CATCH around call to gdb_insn_length.
11764
11765 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11766
11767 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11768 Update parameters. Update users.
11769
11770 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11771
11772 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11773 (btrace_conf_bts_attributes): New.
11774 (btrace_conf_children): Add attributes.
11775 * common/btrace-common.h (btrace_config_bts): New.
11776 (btrace_config)<bts>: New.
11777 (btrace_config): Update comment.
11778 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11779 Use config.
11780 * features/btrace-conf.dtd: Increment version. Add size
11781 attribute to bts element.
11782 * record-btrace.c (set_record_btrace_bts_cmdlist,
11783 show_record_btrace_bts_cmdlist): New.
11784 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11785 record_btrace_print_conf, cmd_set_record_btrace_bts,
11786 cmd_show_record_btrace_bts): New.
11787 (record_btrace_info): Call record_btrace_print_conf.
11788 (_initialize_record_btrace): Add commands.
11789 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11790 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11791 (btrace_sync_conf): Synchronize bts size.
11792 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11793 * NEWS: Announce new commands and new packets.
11794
11795 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11796
11797 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11798 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11799 (x86_linux_btrace_conf): New.
11800 (x86_linux_create_target): Initialize to_btrace_conf.
11801 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11802 Check format. Split into this and ...
11803 (linux_enable_bts): ... this.
11804 (linux_btrace_conf): New.
11805 (perf_event_skip_record): Renamed into ...
11806 (perf_event_skip_bts_record): ... this. Updated users.
11807 (linux_disable_btrace): Split into this and ...
11808 (linux_disable_bts): ... this.
11809 (linux_read_btrace): Check format.
11810 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11811 (linux_btrace_conf): New.
11812 (btrace_target_info)<ptid>: Moved.
11813 (btrace_target_info)<conf>: New.
11814 (btrace_target_info): Split into this and ...
11815 (btrace_tinfo_bts): ... this. Updated users.
11816 * btrace.c (btrace_enable): Update parameters.
11817 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11818 (btrace_conf_children, btrace_conf_attributes)
11819 (btrace_conf_elements): New.
11820 * btrace.h (btrace_enable): Update parameters.
11821 (btrace_conf, parse_xml_btrace_conf): New.
11822 * common/btrace-common.h (btrace_config): New.
11823 * feature/btrace-conf.dtd: New.
11824 * record-btrace.c (record_btrace_conf): New.
11825 (record_btrace_cmdlist): New.
11826 (record_btrace_enable_warn, record_btrace_open): Pass
11827 &record_btrace_conf.
11828 (record_btrace_info): Print recording format.
11829 (cmd_record_btrace_bts_start): New.
11830 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11831 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11832 Add "record bts" alias command.
11833 * remote.c (remote_state)<btrace_config>: New.
11834 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11835 (remote_protocol_features): Add qXfer:btrace-conf:read.
11836 (remote_open_1): Call remote_btrace_reset.
11837 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11838 (btrace_target_info)<conf>: New.
11839 (btrace_sync_conf, btrace_read_config): New.
11840 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11841 btrace_read_conf.
11842 (remote_btrace_conf): New.
11843 (init_remote_ops): Initialize to_btrace_conf.
11844 (_initialize_remote): Add qXfer:btrace-conf packet.
11845 * target.c (target_enable_btrace): Update parameters.
11846 (target_btrace_conf): New.
11847 * target.h (target_enable_btrace): Update parameters.
11848 (target_btrace_conf): New.
11849 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11850 (target_ops)<to_enable_btrace>: Update parameters and comment.
11851 (target_ops)<to_btrace_conf>: New.
11852 * target-delegates: Regenerate.
11853 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11854 (target_debug_print_const_struct_btrace_target_info_p): New.
11855 * NEWS: Announce new command and new packet.
11856
11857 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11858
11859 * nat/linux-btrace.h (perf_event_buffer): New.
11860 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11861 <bts>: ... this.
11862 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11863 (perf_event_buffer_size, perf_event_buffer_begin)
11864 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11865 Updated users.
11866 (perf_event_new_data): New.
11867
11868 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11869
11870 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11871 * record-btrace.c (record_btrace_open): Remove call to
11872 target_supports_btrace.
11873 * remote.c (remote_supports_btrace): Update parameters.
11874 * target.c (target_supports_btrace): Update parameters.
11875 * target.h (to_supports_btrace, target_supports_btrace): Update
11876 parameters.
11877 * target-delegates.c: Regenerate.
11878 * target-debug.h (target_debug_print_enum_btrace_format): New.
11879 * nat/linux-btrace.c
11880 (kernel_supports_btrace): Rename into ...
11881 (kernel_supports_bts): ... this. Update users. Update warning text.
11882 (intel_supports_btrace): Rename into ...
11883 (intel_supports_bts): ... this. Update users.
11884 (cpu_supports_btrace): Rename into ...
11885 (cpu_supports_bts): ... this. Update users.
11886 (linux_supports_btrace): Update parameters. Split into this and ...
11887 (linux_supports_bts): ... this.
11888 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11889
11890 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11891
11892 * Makefile.in (SFILES): Add common/btrace-common.c.
11893 (COMMON_OBS): Add common/btrace-common.o.
11894 (btrace-common.o): Add build rules.
11895 * btrace.c (parse_xml_btrace): Update parameters.
11896 (parse_xml_btrace_block): Set format field.
11897 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11898 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11899 (btrace_compute_ftrace): Split into this and...
11900 (btrace_compute_ftrace_bts): ...this.
11901 (btrace_stitch_trace): Split into this and...
11902 (btrace_stitch_bts): ...this.
11903 * btrace.h (parse_xml_btrace): Update parameters.
11904 (make_cleanup_btrace_data): New.
11905 * common/btrace-common.c: New.
11906 * common/btrace-common.h: Include common-defs.h.
11907 (btrace_block_s): Update comment.
11908 (btrace_format): New.
11909 (btrace_format_string): New.
11910 (btrace_data_bts): New.
11911 (btrace_data): New.
11912 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11913 * remote.c (remote_read_btrace): Update parameters.
11914 * target.c (target_read_btrace): Update parameters.
11915 * target.h (target_read_btrace): Update parameters.
11916 (target_ops)<to_read_btrace>: Update parameters.
11917 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11918 * target-delegates.c: Regenerate.
11919 * target-debug (target_debug_print_struct_btrace_data_p): New.
11920 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11921 (linux_read_bts): ...this.
11922 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11923
11924 2015-02-06 Doug Evans <dje@google.com>
11925
11926 * remote-m32r-sdi.c: Include symfile.h.
11927
11928 2015-02-06 Doug Evans <dje@google.com>
11929
11930 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11931 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11932 to here.
11933
11934 2015-02-06 Pedro Alves <palves@redhat.com>
11935
11936 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11937
11938 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11939
11940 PR gdb/15678
11941 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11942 (enable_count_command): Check args for NULL value.
11943
11944 2015-02-05 Doug Evans <xdje42@gmail.com>
11945
11946 * guile/scm-frame.c: Fix spelling errors in a comment.
11947
11948 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11949
11950 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11951 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11952 return type.
11953
11954 2015-02-04 Pedro Alves <palves@redhat.com>
11955
11956 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11957 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11958 returns true.
11959 (resume_stopped_resumed_lwps): Don't check whether the thread is
11960 marked as executing.
11961 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11962
11963 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11964
11965 * regset.h (struct regset): Add flags field.
11966 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11967 * corelow.c (get_core_register_section): Add warning if the size
11968 exceeds the requested size and the regset does not have the
11969 REGSET_VARIABLE_SIZE flag set.
11970 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11971 flag.
11972 * armbsd-tdep.c (armbsd_gregset): Likewise.
11973 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11974 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11975 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11976 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11977
11978 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11979
11980 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11981 For ".reg-xstate", explicitly specify the requested section size
11982 via X86_XSTATE_SIZE instead of just 0 on input and
11983 X86_XSTATE_MAX_SIZE on output.
11984 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11985 Likewise.
11986
11987 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11988
11989 PR corefiles/17808:
11990 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11991 function type, particularly its SIZE parameter.
11992 * gdbarch.h: Regenerate.
11993 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11994 actual against required size using ">=" instead of "==".
11995 (amd64_collect_fpregset): Likewise.
11996 * i386-tdep.c (i386_supply_gregset): Likewise.
11997 (i386_collect_gregset): Likewise.
11998 (i386_supply_fpregset): Likewise.
11999 (i386_collect_fpregset): Likewise.
12000 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12001 (mips_fill_gregset_wrapper): Likewise.
12002 (mips_supply_fpregset_wrapper): Likewise.
12003 (mips_fill_fpregset_wrapper): Likewise.
12004 (mips64_supply_gregset_wrapper): Likewise.
12005 (mips64_fill_gregset_wrapper): Likewise.
12006 (mips64_supply_fpregset_wrapper): Likewise.
12007 (mips64_fill_fpregset_wrapper): Likewise.
12008 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12009 (am33_supply_fpregset_method): Likewise.
12010 (am33_collect_gregset_method): Likewise.
12011 (am33_collect_fpregset_method): Likewise.
12012
12013 2015-02-04 Doug Evans <dje@google.com>
12014 Pedro Alves <palves@redhat.com>
12015 Eli Zaretskii <eliz@gnu.org>
12016
12017 PR tui/17810
12018 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12019 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12020 * tui/tui-file.c: #include tui/tui-command.h.
12021 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12022 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12023 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12024
12025 2015-02-04 Pedro Alves <palves@redhat.com>
12026
12027 Fix build breakage.
12028 * event-loop.c (gdb_do_one_event): Add default switch case.
12029
12030 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12031
12032 Filter out inferior gcc option -fpreprocessed.
12033 * compile/compile.c (filter_args): New function.
12034 (get_args): Use it.
12035
12036 2015-02-03 Pedro Alves <palves@redhat.com>
12037
12038 * event-loop.c: Don't declare nor define a queue type for
12039 gdb_event_p.
12040 (event_queue): Delete.
12041 (create_event, create_file_event, gdb_event_xfree)
12042 (initialize_event_loop, process_event): Delete.
12043 (gdb_do_one_event): Return as soon as one event is handled.
12044 (handle_file_event): Change prototype. Used the passed in
12045 file_handler pointer and ready_mask instead of looping over all
12046 file handlers.
12047 (gdb_wait_for_event): Update the poll/select timeouts before
12048 blocking. Run event handlers directly instead of queueing events.
12049 Return as soon as one event is handled.
12050 (struct async_event_handler_data): Delete.
12051 (invoke_async_event_handler): Delete.
12052 (check_async_event_handlers): Change return type to int. Run
12053 event handlers directly instead of queueing events. Return as
12054 soon as one event is handled.
12055 (handle_timer_event): Delete.
12056 (update_wait_timeout): New function, factored out from
12057 poll_timers.
12058 (poll_timers): Reimplement.
12059 * event-loop.h (initialize_event_loop): Delete declaration.
12060 * top.c (gdb_init): Don't call initialize_event_loop.
12061
12062 2015-02-03 Pedro Alves <palves@redhat.com>
12063
12064 * event-loop.c (clear_async_event_handler): New function.
12065 * event-loop.h (clear_async_event_handler): New declaration.
12066 * record-btrace.c (record_btrace_async): New function.
12067 (init_record_btrace_ops): Install record_btrace_async.
12068 * record-full.c (record_full_async): New function.
12069 (record_full_resume): Don't mark the async event source here.
12070 (init_record_full_ops): Install record_full_async.
12071 (record_full_core_resume): Don't mark the async event source here.
12072 (init_record_full_core_ops): Install record_full_async.
12073 * remote.c (remote_async): Mark and clear the async stop reply
12074 queue event-loop token as appropriate.
12075
12076 2015-02-03 Pedro Alves <palves@redhat.com>
12077
12078 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12079 target_is_async_p instead of target_can_async.
12080 (linux_nat_wait): Use target_is_async_p instead of
12081 target_can_async. Don't enable async here.
12082 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12083 target_is_async_p instead of target_can_async.
12084
12085 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12086
12087 * varobj.h (lang_varobj_ops): Mention which return values need
12088 to be freed.
12089
12090 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12091
12092 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12093
12094 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12095
12096 PR gdb/17856:
12097 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12098 results found in the cache.
12099
12100 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12101
12102 PR gdb/17854:
12103 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12104 when allocating a new one.
12105
12106 2015-02-01 Tom Tromey <tom@tromey.com>
12107
12108 * MAINTAINERS: Remove myself.
12109
12110 2015-01-31 Doug Evans <xdje42@gmail.com>
12111
12112 * dwarf2read.c (process_structure_scope): Update setting of
12113 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12114 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12115 (set_type_vptr_fieldno): New function.
12116 (internal_type_vptr_basetype): New function.
12117 (set_type_vptr_basetype): New function.
12118 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12119 TYPE_VPTR_BASETYPE.
12120 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12121 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12122 (print_cplus_stuff): ... moved here.
12123 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12124 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12125 moved to ...
12126 (struct cplus_struct_type): ... here. All uses updated.
12127 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12128 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12129 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12130 * stabsread.c (read_tilde_fields): Update setting of
12131 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12132
12133 2015-01-31 Doug Evans <xdje42@gmail.com>
12134
12135 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12136 to self_p.
12137 (cp_print_class_member): Rename local domain to self_type.
12138 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12139 domain_type to self_type.
12140 (set_die_type) <need_gnat_info>: Handle
12141 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12142 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12143 TYPE_SPECIFIC_SELF_TYPE.
12144 * gdbtypes.c (internal_type_self_type): New function.
12145 (set_type_self_type): New function.
12146 (smash_to_memberptr_type): Rename parameter domain to self_type.
12147 Update setting of TYPE_SELF_TYPE.
12148 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12149 (smash_to_method_type): Rename parameter domain to self_type.
12150 Update setting of TYPE_SELF_TYPE.
12151 (check_stub_method): Call smash_to_method_type.
12152 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12153 (copy_type_recursive): Ditto.
12154 * gdbtypes.h (enum type_specific_kind): New value
12155 TYPE_SPECIFIC_SELF_TYPE.
12156 (struct main_type) <type_specific>: New member self_type.
12157 (struct cplus_struct_type) <fn_field.type>: Update comment.
12158 (TYPE_SELF_TYPE): Rewrite.
12159 (internal_type_self_type, set_type_self_type): Declare.
12160 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12161 self_type.
12162 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12163 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12164 TYPE_TARGET_TYPE.
12165 * stabsread.c (read_member_functions): Mark methods with
12166 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12167 TYPE_SELF_TYPE.
12168
12169 2015-01-31 Doug Evans <xdje42@gmail.com>
12170
12171 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12172 All uses updated.
12173
12174 2015-01-31 Doug Evans <xdje42@gmail.com>
12175
12176 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12177 or unions. Return zero if union.
12178 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12179 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12180 gnuv3_get_vtable.
12181 (compute_vtable_size): Assert only passed structs.
12182 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12183
12184 2015-01-31 Doug Evans <xdje42@gmail.com>
12185
12186 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12187 kinds.
12188
12189 2015-01-31 Gary Benson <gbenson@redhat.com>
12190 Doug Evans <dje@google.com>
12191
12192 PR cli/9007
12193 PR cli/11920
12194 PR cli/15548
12195 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12196 reached.
12197 * common/common-exceptions.h (enum errors)
12198 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12199 * completer.h (get_max_completions_reached_message): New declaration.
12200 (max_completions): Likewise.
12201 (completion_tracker_t): New typedef.
12202 (new_completion_tracker): New declaration.
12203 (make_cleanup_free_completion_tracker): Likewise.
12204 (maybe_add_completion_enum): New enum.
12205 (maybe_add_completion): New declaration.
12206 (throw_max_completions_reached_error): Likewise.
12207 * completer.c (max_completions): New global variable.
12208 (new_completion_tracker): New function.
12209 (free_completion_tracker): Likewise.
12210 (make_cleanup_free_completion_tracker): Likewise.
12211 (maybe_add_completions): Likewise.
12212 (throw_max_completions_reached_error): Likewise.
12213 (complete_line): Remove duplicates and limit result to max_completions
12214 entries.
12215 (get_max_completions_reached_message): New function.
12216 (gdb_display_match_list): Handle max_completions.
12217 (_initialize_completer): New declaration and function.
12218 * symtab.c: Include completer.h.
12219 (completion_tracker): New static variable.
12220 (completion_list_add_name): Call maybe_add_completion.
12221 (default_make_symbol_completion_list_break_on_1): Renamed from
12222 default_make_symbol_completion_list_break_on. Maintain
12223 completion_tracker across calls to completion_list_add_name.
12224 (default_make_symbol_completion_list_break_on): New function.
12225 * top.c (init_main): Set rl_completion_display_matches_hook.
12226 * tui/tui-io.c: Include completer.h.
12227 (tui_old_rl_display_matches_hook): New static global.
12228 (tui_rl_display_match_list): Notify user if max-completions reached.
12229 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12230 * NEWS (New Options): Mention set/show max-completions.
12231
12232 2015-01-31 Gary Benson <gbenson@redhat.com>
12233
12234 * symtab.c (struct add_name_data) <code>: New field.
12235 Updated comments.
12236 (add_symtab_completions): New function.
12237 (symtab_expansion_callback): Likewise.
12238 (default_make_symbol_completion_list_break_on): Set datum.code.
12239 Move minimal symbol scan before calling expand_symtabs_matching.
12240 Scan known primary symtabs for externs and statics before calling
12241 expand_symtabs_matching. Pass symtab_expansion_callback as
12242 expansion_notify argument to expand_symtabs_matching. Do not scan
12243 primary symtabs for externs and statics after calling
12244 expand_symtabs_matching.
12245
12246 2015-01-31 Gary Benson <gbenson@redhat.com>
12247
12248 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12249 (struct quick_symbol_functions) <expand_symtabs_matching>:
12250 New argument expansion_notify. All uses updated.
12251 (expand_symtabs_matching): New argument expansion_notify.
12252 All uses updated.
12253 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12254 Also print expansion notify.
12255 * symtab.c (expand_symtabs_matching_via_partial): Call
12256 expansion_notify whenever a partial symbol table is expanded.
12257 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12258 expansion_notify whenever a symbol table is instantiated.
12259
12260 2015-01-31 Doug Evans <xdje42@gmail.com>
12261
12262 * cli-out.c: #include completer.h, readline/readline.h.
12263 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12264 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12265 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12266 * cli-out.h (cli_display_match_list): Declare.
12267 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12268 (ELLIPSIS_LEN): Ditto.
12269 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12270 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12271 (gdb_fnprint, gdb_print_filename): Ditto.
12272 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12273 (gdb_display_match_list): Ditto.
12274 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12275 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12276 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12277 (match_list_displayer): New struct.
12278 (gdb_display_match_list): Declare.
12279 * top.c (init_main): Set rl_completion_display_matches_hook.
12280 * tui/tui-io.c: #include completer.h.
12281 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12282 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12283 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12284 (tui_mld_getc, tui_mld_read_key): Ditto.
12285 (tui_rl_display_match_list): Rewrite.
12286 (tui_handle_resize_during_io): New arg for_completion. All callers
12287 updated.
12288
12289 2015-01-31 Doug Evans <xdje42@gmail.com>
12290
12291 Add symbol lookup cache.
12292 * NEWS: Document new options and commands.
12293 * symtab.c (symbol_cache_key): New static global.
12294 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12295 (SYMBOL_LOOKUP_FAILED): New macro.
12296 (symbol_cache_slot_state): New enum.
12297 (block_symbol_cache): New struct.
12298 (symbol_cache): New struct.
12299 (new_symbol_cache_size, symbol_cache_size): New static globals.
12300 (hash_symbol_entry, eq_symbol_entry): New functions.
12301 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12302 (make_symbol_cache, free_symbol_cache): New functions.
12303 (get_symbol_cache, symbol_cache_cleanup): New function.
12304 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12305 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12306 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12307 (symbol_cache_flush, symbol_cache_dump): New functions.
12308 (maintenance_print_symbol_cache): New function.
12309 (maintenance_flush_symbol_cache): New function.
12310 (symbol_cache_stats): New function.
12311 (maintenance_print_symbol_cache_statistics): New function.
12312 (symtab_new_objfile_observer): New function.
12313 (symtab_free_objfile_observer): New function.
12314 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12315 (_initialize_symtab): Init symbol_cache_key. New parameter
12316 maint symbol-cache-size. New maint commands print symbol-cache,
12317 print symbol-cache-statistics, flush-symbol-cache.
12318 Install new_objfile, free_objfile observers.
12319
12320 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12321
12322 PR symtab/17855
12323 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12324 to end.
12325
12326 2015-01-31 Doug Evans <xdje42@gmail.com>
12327
12328 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12329 * auto-load.c: #include ctype.h.
12330 (struct auto_load_pspace_info): Replace member loaded_scripts with
12331 new members loaded_script_files, loaded_script_texts.
12332 (auto_load_pspace_data_cleanup): Update.
12333 (init_loaded_scripts_info): Update.
12334 (get_auto_load_pspace_data_for_loading): Update.
12335 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12336 updated.
12337 (maybe_add_script_text): New function.
12338 (clear_section_scripts): Update.
12339 (source_script_file, execute_script_contents): New functions.
12340 (source_section_scripts): Add support for
12341 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12342 (print_scripts): New function.
12343 (auto_load_info_scripts): Also print inlined scripts.
12344 (maybe_print_unsupported_script_warning): Renamed from
12345 unsupported_script_warning_print. All callers updated.
12346 (maybe_print_script_not_found_warning): Renamed from
12347 script_not_found_warning_print. All callers updated.
12348 * extension-priv.h (struct extension_language_script_ops): New member
12349 objfile_script_executor.
12350 * extension.c (ext_lang_objfile_script_executor): New function.
12351 * extension.h (objfile_script_executor_func): New typedef.
12352 (ext_lang_objfile_script_executor): Declare.
12353 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12354 * guile/guile.c (guile_extension_script_ops): Update.
12355 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12356 * python/python.c (python_extension_script_ops): Update.
12357 (gdbpy_execute_objfile_script): New function.
12358
12359 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12360
12361 * tui/tui-io.c (tui_expand_tabs): New function.
12362 (tui_puts, tui_redisplay_readline): Expand TABs into the
12363 appropriate number of spaces.
12364 * tui/tui-regs.c: Include tui-io.h.
12365 (tui_register_format): Call tui_expand_tabs to expand TABs into
12366 the appropriate number of spaces.
12367 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12368
12369 2015-01-30 Doug Evans <dje@google.com>
12370
12371 * NEWS: "info source" command now display producer string if present.
12372 * source.c (source_info): Print producer string if present.
12373
12374 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12375
12376 * varobj.c (varobj_delete): Fix comment.
12377
12378 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12379
12380 * varobj.c (create_child): Modify comment.
12381
12382 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12383
12384 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12385 parameter.
12386 (ada_name_of_variable): Same.
12387 (ada_path_expr_of_child): Same.
12388 (ada_value_of_variable): Same.
12389 (ada_value_is_changeable_p): Same.
12390 (ada_value_has_mutated): Same.
12391 * c-varobj.c (varobj_is_anonymous_child): Same.
12392 (c_is_path_expr_parent): Same.
12393 (c_number_of_children): Same.
12394 (c_name_of_variable): Same.
12395 (c_path_expr_of_child): Same.
12396 (get_type): Same.
12397 (c_value_of_variable): Same.
12398 (cplus_number_of_children): Same.
12399 (cplus_name_of_variable): Same.
12400 (cplus_path_expr_of_child): Same.
12401 (cplus_value_of_variable): Same.
12402 * jv-varobj.c (java_number_of_children): Same.
12403 (java_name_of_variable): Same.
12404 (java_path_expr_of_child): Same.
12405 (java_value_of_variable): Same.
12406 * varobj.c (number_of_children): Same.
12407 (name_of_variable): Same.
12408 (is_root_p): Same.
12409 (varobj_ensure_python_env): Same.
12410 (varobj_get_objname): Same.
12411 (varobj_get_expression): Same.
12412 (varobj_get_display_format): Same.
12413 (varobj_get_display_hint): Same.
12414 (varobj_has_more): Same.
12415 (varobj_get_thread_id): Same.
12416 (varobj_get_frozen): Same.
12417 (dynamic_varobj_has_child_method): Same.
12418 (varobj_get_gdb_type): Same.
12419 (is_path_expr_parent): Same.
12420 (varobj_default_is_path_expr_parent): Same.
12421 (varobj_get_language): Same.
12422 (varobj_get_attributes): Same.
12423 (varobj_is_dynamic_p): Same.
12424 (varobj_get_child_range): Same.
12425 (varobj_value_has_mutated): Same.
12426 (varobj_get_value_type): Same.
12427 (number_of_children): Same.
12428 (name_of_variable): Same.
12429 (check_scope): Same.
12430 (varobj_editable_p): Same.
12431 (varobj_value_is_changeable_p): Same.
12432 (varobj_floating_p): Same.
12433 (varobj_default_value_is_changeable_p): Same.
12434
12435 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12436
12437 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12438 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12439 child->path_expr.
12440 (cplus_path_expr_of_child): Same.
12441
12442 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12443
12444 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12445 result.
12446 (mi_cmd_var_info_expression): Same.
12447 * varobj.c (varobj_get_expression): Mention in the comment that
12448 the result must by freed by the caller.
12449
12450 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12451
12452 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12453 varobj_get_type.
12454 (varobj_update_one): Same.
12455 * varobj.c (update_type_if_necessary): Free curr_type_str and
12456 new_type_str.
12457 (varobj_get_type): Specify in comment that the result needs to be
12458 freed by the caller.
12459
12460 2015-01-29 Doug Evans <dje@google.com>
12461
12462 PR symtab/17890
12463 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12464
12465 2015-01-25 Mark Wielaard <mjw@redhat.com>
12466
12467 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12468 * utils.c (producer_is_gcc_ge_4): Likewise.
12469 (producer_is_gcc): New function.
12470 * utils.h (producer_is_gcc): New declaration.
12471
12472 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12473
12474 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12475 kind.
12476 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12477 parameter by "addr_stack" parameter.
12478 (resolve_dynamic_range): Replace "addr" parameter by
12479 "stack_addr" parameter. Update function documentation.
12480 Update code accordingly.
12481 (resolve_dynamic_array, resolve_dynamic_union)
12482 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12483 (resolve_dynamic_type): Update code, following the changes made
12484 to resolve_dynamic_type_internal's interface.
12485 * dwarf2loc.h (struct property_addr_info): New.
12486 (dwarf2_evaluate_property): Replace "address" parameter
12487 by "addr_stack" parameter. Adjust function documentation.
12488 (struct dwarf2_offset_baton): New.
12489 (struct dwarf2_property_baton): Update documentation of
12490 field "referenced_type" to be more general. New field
12491 "offset_info" in union data field.
12492 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12493 parameter by "addr_stack" parameter. Adjust code accordingly.
12494 Add support for PROP_ADDR_OFFSET properties.
12495 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12496 DW_AT_data_member_location attributes as well. Use case
12497 statements instead of if/else condition.
12498
12499 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12500
12501 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12502 Return zero if PARENT_VALUE is NULL and parent_type's
12503 range type is dynamic.
12504
12505 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12506
12507 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12508 nonzero if the type's subtype is dynamic.
12509 (resolve_dynamic_range): Also resolve the range's subtype.
12510
12511 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12512
12513 Pushed by Joel Brobecker <brobecker@adacore.com>.
12514 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12515
12516 2015-01-27 Doug Evans <dje@google.com>
12517
12518 * NEWS: Mention gdb.Objfile.username.
12519 * python/py-objfile.c (objfpy_get_username): New function.
12520 (objfile_getset): Add "username".
12521
12522 2015-01-24 Mark Wielaard <mjw@redhat.com>
12523
12524 * stack.c (return_command): Markup warning message with _.
12525
12526 2015-01-24 Doug Evans <xdje42@gmail.com>
12527
12528 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12529
12530 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12531
12532 Fix 100x slowdown regression on DWZ files.
12533 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12534 (struct line_header): Add offset and offset_in_dwz.
12535 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12536 (free_line_header_voidp): New declaration.
12537 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12538 functions.
12539 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12540 (handle_DW_AT_stmt_list): Use line_header_hash.
12541 (free_line_header_voidp): New function.
12542 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12543 (dwarf_decode_lines): New parameter decode_mapping, use it.
12544 (dwarf2_free_objfile): Free line_header_hash.
12545
12546 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12547
12548 PR gdb/17416
12549 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12550 value_ind.
12551
12552 2015-01-15 Mark Wielaard <mjw@redhat.com>
12553
12554 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12555 DW_AT_noreturn.
12556 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12557 calling_convention an 8 bit bit field.
12558 (TYPE_NO_RETURN): New macro.
12559 * infcmd.c (finish_command): Query if function does not return
12560 normally.
12561 * stack.c (return_command): Likewise.
12562
12563 2015-01-23 Pedro Alves <palves@redhat.com>
12564
12565 * linux-nat.c (linux_is_async_p): New macro.
12566 (linux_nat_is_async_p):
12567 (linux_nat_terminal_inferior): Check whether the target can async
12568 instead of whether it is already async.
12569 (linux_nat_terminal_ours): Don't check whether the target is
12570 async.
12571 (linux_async_pipe): Use linux_is_async_p.
12572
12573 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12574
12575 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12576 '-ascending'.
12577 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12578 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12579 Sort tp_array using tp_array_compar.
12580 (_initialize_thread): Extend thread_apply_all_command help.
12581
12582 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12583
12584 * corelow.c (core_open): Call also thread_command.
12585 * gdbthread.h (thread_command): New prototype moved from ...
12586 * thread.c (thread_command): ... here.
12587 (thread_command): Make it global.
12588
12589 2015-01-22 Pedro Alves <palves@redhat.com>
12590
12591 * configure.ac [*mingw32*]: Check $curses_found instead of
12592 $prefer_curses.
12593 * configure: Regenerate.
12594 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12595 HAVE_NCURSES_NCURSES_H checks.
12596
12597 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12598
12599 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12600 fails with the 1st arg NULL, try again with "unknown". Don't test
12601 the "cup" capability: it isn't supported by the Windows port of
12602 ncurses, but the Windows console driver is still capable of
12603 supporting TUI.
12604
12605 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12606
12607 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12608
12609 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12610
12611 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12612 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12613 reason that "make TAGS" is broken.
12614
12615 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12616
12617 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12618 and check additional store instructions.
12619
12620 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12621
12622 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12623
12624 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12625
12626 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12627 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12628 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12629 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12630 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12631 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12632 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12633 ppc_process_record_op19, ppc_process_record_op31,
12634 ppc_process_record_op59, ppc_process_record_op60,
12635 ppc_process_record_op63): Likewise.
12636
12637 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12638
12639 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12640 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12641 strerror.
12642
12643 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12644
12645 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12646 ppc_process_record_op31, ppc_process_record_op59,
12647 ppc_process_record_op60, ppc_process_record_op63,
12648 ppc_process_record): Fix -Wformat warning.
12649 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12650 Remove unused variables.
12651
12652 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12653
12654 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12655
12656 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12657
12658 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12659 CONFIG_OBS if not building with a curses library.
12660 * configure: Regenerate.
12661
12662 * windows-termcap.c: Include defs.h. Make the whole body empty if
12663 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12664 HAVE_NCURSES_NCURSES_H is defined.
12665
12666 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12667
12668 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12669 from end of line to start of next line.
12670
12671 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12672
12673 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12674 Scan PLT stub backward for reverse debugging.
12675 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12676
12677 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12678 Ulrich Weigand <uweigand@de.ibm.com>
12679
12680 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12681 gdb_target_obs.
12682 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12683 record.
12684 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12685 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12686 (ppc_linux_init_abi): Set process_record, process_record_signal.
12687 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12688 ppc_linux_record_tdep to gdbarch_tdep.
12689 (ppc_process_record): New declaration.
12690 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12691 ppc_process_record_op19, ppc_process_record_op31,
12692 ppc_process_record_op59, ppc_process_record_op60,
12693 ppc_process_record_op63, ppc_process_record): New functions.
12694
12695 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12696
12697 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12698 rs6000_in_function_epilogue_frame_p and add an argument
12699 for frame_info.
12700 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12701 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12702 New functions.
12703 (rs6000_epilogue_frame_unwind): New.
12704 (rs6000_gdbarch_init): Append epilogue unwinder.
12705
12706 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12707
12708 * nat/linux-personality.c: Replace "#ifndef
12709 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12710 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12711 systems.
12712
12713 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12714
12715 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12716 functions.
12717 (_initialize_tui_win) <border-kind, border-mode>:
12718 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12719 (tui_set_tab_width_command): Fix the commentary.
12720
12721 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12722
12723 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12724 Doc fix.
12725 (tui_set_tab_width_command): Delete and recreate the source and
12726 the disassembly windows, to show the effect of the changed tab
12727 size immediately.
12728
12729 * tui/tui-data.h (LINE_PREFIX): Make shorter
12730 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12731 "Thread NNNNN.XXXX" thread ID notation on Windows.
12732
12733 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12734
12735 Fix gcc-5 compilation.
12736 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12737
12738 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12739
12740 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12741 (linux-personality.o): New rule.
12742 * common/common-defs.h: Include <stdint.h>.
12743 * config/aarch64/linux.mh (NATDEPFILES): Include
12744 linux-personality.o.
12745 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12746 * config/arm/linux.mh (NATDEPFILES): Likewise.
12747 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12748 * config/i386/linux.mh (NATDEPFILES): Likewise.
12749 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12750 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12751 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12752 * config/mips/linux.mh (NATDEPFILES): Likewise.
12753 * config/pa/linux.mh (NATDEPFILES): Likewise.
12754 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12755 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12756 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12757 * config/s390/linux.mh (NATDEPFILES): Likewise.
12758 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12759 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12760 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12761 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12762 * defs.h: Remove #include <stdint.h> (moved to
12763 common/common-defs.h).
12764 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12765 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12766 nat/linux-personality.c).
12767 (linux_nat_create_inferior): Remove code to disable address space
12768 randomization (moved to nat/linux-personality.c). Create cleanup
12769 to disable address space randomization.
12770 * nat/linux-personality.c: New file.
12771 * nat/linux-personality.h: Likewise.
12772
12773 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12774
12775 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12776 common/posix-strerror.c.
12777 (posix-strerror.o): New rule.
12778 (mingw-strerror.o): Likewise.
12779 * common/common-utils.h (safe_strerror): Move prototype to here,
12780 from utils.h.
12781 * common/common.host: New file.
12782 * common/mingw-strerror.c: Likewise.
12783 * common/posix-strerror.c: Likewise.
12784 * configure: Regenerated.
12785 * configure.ac: Source common/common.host. Add variable
12786 common_host_obs to gdb_host_obs.
12787 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12788 gdb/common/posix-strerror.c when warning about the use of
12789 strerror.
12790 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12791 common/mingw-strerror.c.
12792 * posix-hdep.c (safe_strerror): Remove definition; move it to
12793 common/posix-hdep.c.
12794 * utils.h (safe_strerror): Remove prototype; move to
12795 common/common-utils.h.
12796
12797 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12798
12799 GDB 7.8.2 released.
12800
12801 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12802
12803 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12804 ___XA type if the array has already been fixed.
12805
12806 2015-01-14 Yao Qi <yao@codesourcery.com>
12807
12808 * Makefile.in (ppc-linux.o): New rule.
12809 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12810 * configure.ac: AC_CHECK_FUNCS(getauxval).
12811 * config.in: Re-generated.
12812 * configure: Re-generated.
12813 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12814 Declare.
12815 * nat/ppc-linux.c: New file.
12816 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12817 Call ppc64_64bit_inferior_p.
12818
12819 2015-01-14 Yao Qi <yao@codesourcery.com>
12820
12821 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12822 nat/ppc-linux.h.
12823 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12824 (PPC_FEATURE_HAS_DFP): Likewise.
12825 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12826 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12827 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12828 Include "nat/ppc-linux.h".
12829 * nat/ppc-linux.h: New file.
12830 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12831
12832 2015-01-14 Pedro Alves <palves@redhat.com>
12833
12834 PR gdb/17525
12835 * breakpoint.c: Include "interps.h".
12836 (bpstat_do_actions_1): Also check whether the interpreter is
12837 async.
12838
12839 2015-01-14 Pedro Alves <palves@redhat.com>
12840
12841 PR cli/17828
12842 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12843 reinstall if the interpreter is sync.
12844
12845 2015-01-13 Doug Evans <dje@google.com>
12846
12847 * objfiles.c (objfile_filename): New function.
12848 * objfiles.h (objfile_filename): Declare it.
12849 (objfile_name): Add function comment.
12850 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12851 bfd file name (which may be realpath'd), and the original name.
12852
12853 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12854
12855 * NEWS: Create a new section for the next release branch.
12856 Rename the section of the current branch, now that it has
12857 been cut.
12858
12859 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12860
12861 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12862 * version.in: Bump version to 7.9.50.DATE-cvs.
12863
12864 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12865
12866 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12867 Remove trailing new-line in argument of call to warning.
12868
12869 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12870
12871 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12872 new-line in argument of call to "warning".
12873
12874 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12875
12876 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12877 in static block, then try searching for primitive types.
12878
12879 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12880
12881 * top.h (gdb_add_history): Declare.
12882 * top.c (command_count): New variable.
12883 (gdb_add_history): New function.
12884 (gdb_safe_append_history): New static function.
12885 (quit_force): Call it.
12886 (command_line_input): Use gdb_add_history instead of
12887 add_history.
12888 * event-top.c (command_line_handler): Likewise.
12889
12890 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12891
12892 PR gdb/17046
12893 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12894 <setjmp.h> #include.
12895
12896 2015-01-11 Doug Evans <xdje42@gmail.com>
12897
12898 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12899
12900 2015-01-11 Doug Evans <xdje42@gmail.com>
12901
12902 PR gdb/15830
12903 * NEWS: The "maint demangle" command is renamed as "demangle".
12904 * demangle.c: #include cli/cli-utils.h, language.h.
12905 (demangle_command): New function.
12906 (_initialize_demangle): Add new command "demangle".
12907 * maint.c (maintenance_demangle): Stub out.
12908 (_initialize_maint_cmds): Update help text for "maint demangle",
12909 and mark as deprecated.
12910
12911 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12912
12913 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12914 inferior_thread is a function.
12915
12916 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12917
12918 * Makefile.in (.y.c): Don't munge yacc's #line
12919 directives.
12920
12921 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12922
12923 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12924 to prompt for input.
12925 * tui/tui-hooks.c (tui_query_hook): Remove.
12926 (tui_install_hooks): Don't set deprecated_query_hook.
12927 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12928 height calculation. Always update the command window's cur_line.
12929
12930 2015-01-09 Pedro Alves <palves@redhat.com>
12931
12932 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12933 function.
12934 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12935 declaration.
12936 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12937 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12938 stop_reason.
12939 (check_stopped_by_watchpoint): New function.
12940 (save_sigtrap): Reimplement.
12941 (linux_nat_stopped_by_watchpoint): Adjust.
12942 (linux_nat_lp_status_is_event): Delete.
12943 (stop_wait_callback): Only call save_sigtrap after storing the
12944 pending status.
12945 (status_callback): If the thread had been stopped for a breakpoint
12946 that has since been removed, discard the event and resume the LWP.
12947 (count_events_callback, select_event_lwp_callback): Use
12948 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12949 (cancel_breakpoint): Rename to ...
12950 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12951 stopped for a software breakpoint or hardware breakpoint.
12952 (select_event_lwp): Only give preference to the stepping LWP in
12953 all-stop mode. Adjust comments.
12954 (stop_and_resume_callback): Remove references to new_pending_p.
12955 (linux_nat_filter_event): Likewise. Leave exit events of the
12956 leader thread pending here. Handle signal short circuiting here.
12957 Only call save_sigtrap after storing the pending waitstatus.
12958 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12959 new_pending. Don't handle leaving events the caller is not
12960 interested in pending here, nor handle signal short-circuiting
12961 here. Also give equal priority to all LWPs that have had events
12962 in non-stop mode. If reporting a software breakpoint event,
12963 unadjust the LWP's PC.
12964 * linux-nat.h (enum lwp_stop_reason): New.
12965 (struct lwp_info) <stop_pc>: New field.
12966 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12967 (struct lwp_info) <stop_reason>: New field.
12968 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12969
12970 2015-01-09 Pedro Alves <palves@redhat.com>
12971
12972 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12973 Set the LWP's 'resumed' flag.
12974
12975 2015-01-09 Pedro Alves <palves@redhat.com>
12976
12977 * linux-nat.c (linux_resume_one_lwp): New function.
12978 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12979 (linux_nat_resume): Use lwp_status_pending_p and
12980 linux_resume_one_lwp.
12981 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12982 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12983 (status_callback, running_callback): Use lwp_status_pending_p.
12984 (lwp_status_pending_p): New function.
12985 (stop_and_resume_callback): Use lwp_status_pending_p.
12986 (linux_nat_filter_event): Use linux_resume_one_lwp.
12987 (linux_nat_wait_1): Always use status_callback to look for an LWP
12988 with a pending status. Use linux_resume_one_lwp.
12989 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12990 linux_resume_one_lwp.
12991
12992 2015-01-09 Pedro Alves <palves@redhat.com>
12993
12994 * breakpoint.c (bp_location_inserted_here_p): New function,
12995 factored out from ...
12996 (breakpoint_inserted_here_p): ... here. Use
12997 ALL_BP_LOCATIONS_AT_ADDR.
12998 (software_breakpoint_inserted_here_p): Use
12999 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13000
13001 2014-01-09 Pedro Alves <palves@redhat.com>
13002
13003 Skip enabling event reporting if the kernel supports
13004 PTRACE_EVENT_CLONE.
13005 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13006 (thread_db_use_events): New function.
13007 (try_thread_db_load_1): Check thread_db_use_events before enabling
13008 event reporting.
13009 (update_thread_state): New function.
13010 (attach_thread): Use it. Check thread_db_use_events before
13011 enabling event reporting.
13012 (thread_db_detach): Check thread_db_use_events before disabling
13013 event reporting.
13014 (find_new_threads_callback): Check thread_db_use_events before
13015 enabling event reporting. Update the thread's state if not using
13016 libthread_db events.
13017
13018 2015-01-09 Pedro Alves <palves@redhat.com>
13019
13020 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13021 about to wait for is > 0.
13022 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13023 the kernel thread ID is -1.
13024
13025 2015-01-09 Pedro Alves <palves@redhat.com>
13026
13027 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13028 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13029 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13030 ptrace option flags.
13031 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13032 field.
13033 * nat/linux-procfs.c: Include <dirent.h>.
13034 (linux_proc_get_int): New parameter "warn". Handle it.
13035 (linux_proc_get_tgid): Adjust.
13036 (linux_proc_get_tracerpid): Rename to ...
13037 (linux_proc_get_tracerpid_nowarn): ... this.
13038 (linux_proc_pid_get_state): New function, factored out from
13039 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13040 and handle it.
13041 (linux_proc_pid_is_gone): New function.
13042 (linux_proc_pid_is_stopped): Adjust.
13043 (linux_proc_pid_is_zombie_maybe_warn)
13044 (linux_proc_pid_is_zombie_nowarn): New functions.
13045 (linux_proc_pid_is_zombie): Use
13046 linux_proc_pid_is_zombie_maybe_warn.
13047 (linux_proc_attach_tgid_threads): New function.
13048 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13049 (linux_proc_get_tracerpid): Rename to ...
13050 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13051 (linux_proc_pid_is_gone): New declaration.
13052 (linux_proc_pid_is_zombie): Update comment.
13053 (linux_proc_pid_is_zombie_nowarn): New declaration.
13054 (linux_proc_attach_lwp_func): New typedef.
13055 (linux_proc_attach_tgid_threads): New declaration.
13056 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13057 use nowarn functions.
13058 (linux_ptrace_attach_fail_reason_string): Move here from
13059 gdbserver/linux-low.c and rename.
13060 (ptrace_supports_feature): If the current ptrace options are not
13061 known yet, check them now, instead of asserting.
13062 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13063 Declare.
13064
13065 2015-01-09 Pedro Alves <palves@redhat.com>
13066
13067 * linux-thread-db.c (thread_db_find_new_threads_silently)
13068 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13069 (find_new_threads_once): Print debug output on gdb_stdlog.
13070
13071 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13072 Pedro Alves <palves@redhat.com>
13073
13074 * compile/compile.c: Include "gdb_wait.h".
13075 (do_rmdir): Check return value, and free 'zap'.
13076
13077 2015-01-08 Pedro Alves <palves@redhat.com>
13078 Yao Qi <yao@codesourcery.com>
13079
13080 * dwarf2loc.c (indirect_pieced_value): Don't call
13081 gdb_sign_extend. Call extract_signed_integer instead.
13082 * utils.c (gdb_sign_extend): Remove.
13083 * utils.h (gdb_sign_extend): Remove declaration.
13084
13085 2015-01-07 Pierre Muller <muller@sourceware.org>
13086
13087 PR symtab/17811
13088 * stabsread.c (define_symbol): Set language for C++ special symbols.
13089
13090 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13091
13092 * inflow.c (initial_gdb_ttystate): Tweak comment.
13093
13094 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13095
13096 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13097 comment documenting function.
13098
13099 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13100
13101 * terminal.h (set_initial_gdb_ttystate): Declare.
13102 * inflow.c (initial_gdb_ttystate): New static variable.
13103 (set_initial_gdb_ttystate): New setter.
13104 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13105 instead of our current terminal state.
13106 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13107
13108 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13109
13110 * guile/scm-type.c (tyscm_array_1): Add comment.
13111 * python/py-type.c (typy_array_1): Add comment.
13112
13113 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13114
13115 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13116 error if N2 is equal to N1 - 1.
13117
13118 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13119
13120 * python/py-type.c (typy_array_1): Do not raise negative-length
13121 exception if N2 is equal to N1 - 1.
13122
13123 2015-01-03 Doug Evans <xdje42@gmail.com>
13124
13125 * c-exp.y: Whitespace cleanup.
13126 (classify_inner_name): Remove extra ;.
13127
13128 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13129
13130 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13131 offset signed.
13132
13133 2015-01-02 Doug Evans <dje@google.com>
13134
13135 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13136
13137 2015-01-02 Doug Evans <dje@google.com>
13138
13139 * symtab.h (struct symbol): Fix typo in comment.
13140
13141 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13142
13143 Update year range in copyright notice of all files.
13144
13145 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13146
13147 * top.c (print_gdb_version): Update copyright year to 2015.
13148
13149 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13150
13151 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13152
13153 For older changes see ChangeLog-2014.
13154 \f
13155 Local Variables:
13156 mode: change-log
13157 left-margin: 8
13158 fill-column: 74
13159 version-control: never
13160 coding: utf-8
13161 End:
This page took 0.314033 seconds and 4 git commands to generate.