gdb/linux-record: Fix old_select syscall handling
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
2
3 * linux-record.c (record_linux_system_call): Fix old_select.
4
5 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
6
7 * linux-record.c (record_linux_system_call): Fix newstatat.
8
9 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
10
11 * linux-record.c (record_linux_system_call): Fix [gs]etgroups16.
12
13 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
14
15 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Add size_time_t.
16 * amd64-linux-tdep.c (amd64_linux_init_abi): Add size_time_t.
17 (amd64_x32_linux_init_abi): Add size_time_t.
18 * arm-linux-tdep.c (arm_linux_init_abi): Add size_time_t.
19 * i386-linux-tdep.c (i386_linux_init_abi): Add size_time_t.
20 * linux-record.c (record_linux_system_call): Add time, waitpid, pipe
21 handling.
22 * linux-record.h (struct linux_record_tdep): Add size_time_t.
23 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Add size_time_t.
24
25 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
26
27 * linux-record.c (record_linux_msghdr): Fix msg_namelen handling.
28
29 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
30
31 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove
32 size_dirent{,64}, add size_old_dirent.
33 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_dirent{,64},
34 add size_old_dirent.
35 (amd64_x32_linux_init_abi): Remove size_dirent{,64}, add
36 size_old_dirent.
37 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_dirent{,64},
38 add size_old_dirent.
39 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_dirent{,64},
40 add size_old_dirent.
41 * linux-record.c (record_linux_system_call): Fix handling of readdir
42 and getdents{,64}.
43 * linux-record.h (struct linux_record_tdep): Remove size_dirent{,64},
44 add size_old_dirent.
45 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove
46 size_dirent{,64}, add size_old_dirent.
47
48 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
49
50 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Fix size_sigaction,
51 size_sigset_t, size_old_sigaction, size_old_sigset_t.
52 * amd64-linux-tdep.c (amd64_linux_init_abi): Fix size_sigaction,
53 size_sigset_t, size_old_sigaction, size_old_sigset_t.
54 (amd64_x32_linux_init_abi): Fix size_sigaction, size_sigset_t,
55 size_old_sigaction, size_old_sigset_t.
56 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_sigaction,
57 size_old_sigaction, size_old_sigset_t.
58 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_sigaction,
59 size_old_sigaction, size_old_sigset_t.
60 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Fix size_sigaction,
61 size_sigset_t, size_old_sigaction, size_old_sigset_t.
62
63 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
64
65 * arm-linux-tdep.c (arm_linux_init_abi): Fix size_[ug]id.
66 * i386-linux-tdep.c (i386_linux_init_abi): Fix size_[ug]id.
67
68 2015-10-30 Marcin Kościelnicki <koriakin@0x04.net>
69
70 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Remove size_siginfo.
71 * amd64-linux-tdep.c (amd64_linux_init_abi): Remove size_siginfo.
72 (amd64_x32_linux_init_abi): Remove size_siginfo.
73 * arm-linux-tdep.c (arm_linux_init_abi): Remove size_siginfo.
74 * i386-linux-tdep.c (i386_linux_init_abi): Remove size_siginfo.
75 * linux-record.c (record_linux_system_call): Change size_siginfo
76 to size_siginfo_t.
77 * linux-record.h (struct linux_record_tdep): Remove size_siginfo.
78 * ppc-linux-tdep.c (ppc_init_linux_record_tdep): Remove size_siginfo.
79
80 2015-10-29 Pedro Alves <palves@redhat.com>
81
82 * mdebugread.c (add_data_symbol): New function, factored out from
83 ...
84 (parse_symbol): ... here. Delete 'theclass' local.
85
86 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
87
88 * jit.c (jit_target_read_impl): Add cast.
89
90 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
91
92 * jit.c (jit_reader_load): Add cast.
93
94 2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * dwarf2read.c (partial_die_full_name): Add cast.
97
98 2015-10-29 Pedro Alves <palves@redhat.com>
99
100 * common/vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
101
102 2015-10-29 Pedro Alves <palves@redhat.com>
103
104 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Add cast.
105
106 2015-10-29 Eli Zaretskii <eliz@gnu.org>
107
108 * utils.c (init_page_info): Disable paging if INSIDE_EMACS is set
109 in the environment.
110
111 2015-10-29 Pedro Alves <palves@redhat.com>
112
113 * gnu-v2-abi.c (gnuv2_is_destructor_name)
114 (gnuv2_is_constructor_name): Add casts.
115
116 2015-10-29 Pedro Alves <palves@redhat.com>
117
118 * common/common-exceptions.c (exception_none): Add cast.
119
120 2015-10-29 Pedro Alves <palves@redhat.com>
121
122 * compile/compile-c-types.c (struct type_map_instance)
123 <gcc_type>: Rename to gcc_type_handle.
124 (insert_type, convert_type): Adjust.
125
126 2015-10-29 Pedro Alves <palves@redhat.com>
127
128 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Don't
129 assume that "break" breaks out of a TRY/CATCH.
130 * python/py-framefilter.c (py_print_single_arg): Don't assume
131 "continue" breaks out of a TRY/CATCH.
132 * python/py-value.c (valpy_binop_throw): New function, factored
133 out from ...
134 (valpy_binop): ... this.
135 (valpy_richcompare_throw): New function, factored
136 out from ...
137 (valpy_richcompare): ... this.
138 * solib.c (solib_read_symbols): Don't assume "break" breaks out
139 of a TRY/CATCH.
140 * common/common-exceptions.h [USE_RAW_CXX_TRY]
141 <TRY/CATCH/END_CATCH>: Define as 1-1 wrappers around try/catch.
142
143 2015-10-28 Simon Dardis <Simon.Dardis@imgtec.com>
144
145 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Recognise 'or'
146 as move along with [d]addu.
147
148 2015-10-28 Yao Qi <yao.qi@linaro.org>
149
150 * aarch64-tdep.c (aarch64_software_single_step): Pass 1 to
151 aarch64_decode_insn.
152
153 2015-10-27 Pedro Alves <palves@redhat.com>
154
155 * common/print-utils.c (host_address_to_string): Rename to ...
156 (host_address_to_string_1): ... this.
157 * common/print-utils.h (host_address_to_string): Reimplement as
158 wrapper around host_address_to_string_1.
159 * utils.c (gdb_print_host_address): Rename to ...
160 (gdb_print_host_address_1): ... this.
161 * utils.h (gdb_print_host_address): Reimplement as wrapper macro
162 around host_address_to_string_1.
163
164 2015-10-27 Pedro Alves <palves@redhat.com>
165
166 * alpha-tdep.c (alpha_read_insn): Always pass TARGET_XFER_E_IO to
167 memory_error. Rename local 'status' to 'res'.
168 * c-lang.c (c_get_string): Always pass TARGET_XFER_E_IO to
169 memory_error.
170 * corefile.c (read_stack, read_code, write_memory): Always pass
171 TARGET_XFER_E_IO to memory_error.
172 * disasm.c (dis_asm_memory_error): Always pass TARGET_XFER_E_IO to
173 memory_error. Rename parameter 'status' to 'err'.
174 (dump_insns): Rename local 'status' to 'err'.
175 * mips-tdep.c (mips_fetch_instruction): Rename parameter 'statusp'
176 to 'errp'. Rename local 'status' to 'err'. Always pass
177 TARGET_XFER_E_IO to memory_error.
178 (mips_breakpoint_from_pc): Rename local 'status' to 'err'.
179 * target.c (target_read_memory, target_read_raw_memory)
180 (target_read_stack, target_read_code, target_write_memory)
181 (target_write_raw_memory): Return -1 on error instead of
182 TARGET_XFER_E_IO.
183 * valprint.c (val_print_string): Rename local 'errcode' to 'err'.
184 Always pass TARGET_XFER_E_IO to memory_error. Update comment.
185
186 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
187
188 * guile/guile-internal.h (gdbscm_with_guile): Change return
189 types to const char *.
190 * guile/scm-safe-call.c (gdbscm_with_guile): Likewise.
191 (struct c_data) <func>: Likewise.
192 (struct c_data) <result>: Change type to const char *.
193 (scscm_eval_scheme_string): Change return type to
194 const char *.
195 (scscm_source_scheme_script): Likewise.
196 (gdbscm_safe_eval_string): Change type of result variable to
197 const char * and remove cast.
198 (gdbscm_safe_source_script): Likewise.
199 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker):
200 Change return type to const char *.
201 (gdbscm_disasm_read_memory): Change type of status to
202 const char *.
203
204 2015-10-27 Pedro Alves <palves@redhat.com>
205
206 * source.c (openp): New local 'last_errno'. Use it to
207 save/restore errno.
208
209 2015-10-27 Pedro Alves <palves@redhat.com>
210
211 * psymtab.c (dump_psymtab_addrmap_1): Add casts.
212
213 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * ctf.c (SET_ENUM_FIELD): New macro.
216 (ctf_read_status): Use it.
217 (ctf_read_tp): Use it.
218
219 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
220
221 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_stop_x): Add
222 scm_t_dynwind_flags casts.
223 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
224 * guile/scm-ports.c (gdbscm_open_memory): Likewise.
225 * guile/scm-value.c (gdbscm_value_to_string): Likewise.
226
227 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
228
229 * ax.h (ax_raw_byte): New declaration.
230 * ax-general.c (ax_raw_byte): New function.
231 (ax_simple): Use ax_raw_byte.
232 * ax-gdb.c (gen_printf): Likewise.
233
234 2015-10-27 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * ada-lang.h (GROW_VECT): Add cast.
237
238 2015-10-26 Doug Evans <xdje42@gmail.com>
239
240 * symtab.h (struct general_symbol_info> <ada_mangled>: Update comment.
241
242 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
243
244 * target.c (memory_xfer_partial): Change type of buf to gdb_byte
245 pointer.
246 (simple_search_memory): Cast return of memmem.
247
248 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * stap-probe.c (handle_stap_probe): Add (const char *) casts.
251
252 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * ctf.c (ctf_xfer_partial): Return TARGET_XFER_E_IO instead of
255 -1 on error.
256
257 2015-10-26 Doug Evans <dje@google.com>
258
259 PR symtab/17391
260 * dwarf2-frame.c (dwarf2_restore_rule): Call dwarf_reg_to_regnum
261 instead of gdbarch_dwarf2_reg_to_regnum.
262 (dwarf2_frame_cache): Ditto.
263 (read_addr_from_reg): Call dwarf_reg_to_regnum_or_error instead of
264 gdbarch_dwarf2_reg_to_regnum.
265 (get_reg_value): Ditto.
266 (dwarf2_fetch_cfa_info): Ditto.
267 (dwarf2_frame_prev_register): Ditto.
268 * dwarf2loc.c: #include "complaints.h".
269 (dwarf_expr_read_addr_from_reg): Call dwarf_reg_to_regnum_or_error
270 instead of gdbarch_dwarf2_reg_to_regnum.
271 (dwarf_expr_get_reg_value): Ditto.
272 (read_pieced_value): Ditto.
273 (write_pieced_value): Ditto.
274 (dwarf2_evaluate_loc_desc_full): Ditto.
275 (dwarf_reg_to_regnum): New function.
276 (throw_bad_regnum_error): New function.
277 (dwarf_reg_to_regnum_or_error): Renamed from
278 dwarf2_reg_to_regnum_or_errorChange to take a ULONGEST regnum.
279 All callers updated. Call throw_bad_regnum_error.
280 (locexpr_regname): Improve text of bad register number.
281 * dwarf2loc.h (dwarf_reg_to_regnum): Declare.
282 (dwarf_reg_to_regnum_or_error): Update prototype.
283 * dwarf2expr.c: #include "dwarf2loc.h".
284 (dwarf_block_to_sp_offset): Call dwarf_reg_to_regnum instead of
285 gdbarch_dwarf2_reg_to_regnum.
286 * gdbarch.sh (dwarf2_reg_to_regnum): Add comment.
287 * gdbarch.h: Regenerate.
288 * amd64-tdep.c (amd64_dwarf_reg_to_regnum): Remove warning for bad
289 register.
290 * avr-tdep.c (avr_dwarf_reg_to_regnum): Ditto.
291 * cris-tdep.c (cris_dwarf2_reg_to_regnum): Ditto.
292 * bfin-tdep.c (bfin_reg_to_regnum): Fix error checking.
293 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum): Improve error checking.
294 Remove warning for bad register.
295 * hppa-tdep.c (hppa64_dwarf_reg_to_regnum): Ditto.
296 * i386-tdep.c (i386_svr4_dwarf_reg_to_regnum): Renamed from
297 i386_svr4_reg_to_regnum. Return -1 for bad registers.
298 (i386_svr4_reg_to_regnum): New function.
299 (i386_gdbarch_init): Update call to set_gdbarch_dwarf2_reg_to_regnum.
300 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Don't assert
301 on bad registers, return -1.
302 * msp430-tdep.c (msp430_dwarf2_reg_to_regnum): Improve error checking.
303 Remove warning for bad register.
304 * nios2-tdep.c: Add static assert for NIOS2_NUM_REGS.
305 (nios2_dwarf_reg_to_regnum): Fix off-by-one error.
306 Remove warning for bad register. Return -1 for bad register.
307 * rl78-tdep.c (rl78_dwarf_reg_to_regnum): Don't flag an internal error
308 for bad register, return -1.
309 * rx-tdep.c (rx_dwarf_reg_to_regnum): Ditto.
310 * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Fix error result.
311 * mep-tdep.c (mep_debug_reg_to_regnum): Ditto.
312 * mips-tdep.c (mips_stab_reg_to_regnum): Ditto.
313 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
314 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Remove warning
315 for bad regs.
316 * xtensa-tdep.c (xtensa_reg_to_regnum): Remove internal error for
317 bad regs. Fix error result.
318 * stabsread.c (stab_reg_to_regnum): Watch for negative regno.
319 (reg_value_complaint): Update complaint text.
320 * mdebugread.c (reg_value_complaint): New function.
321 (mdebug_reg_to_regnum): Rewrite to watch for bad reg numbers.
322
323 2015-10-26 Doug Evans <dje@google.com>
324
325 PR python/18938
326 * cli/cli-cmds (source_script_fron_sctream): New arg file_to_open.
327 All callers updated.
328
329 2015-10-26 Doug Evans <dje@google.com>
330
331 * psymtab.c (struct dump_psymtab_addrmap_data): Define.
332 (dump_psymtab_addrmap_1, dump_psymtab_addrmap): New functions.
333 (maintenance_print_psymbols): Print address map.
334
335 2015-10-26 Doug Evans <dje@google.com>
336
337 * nat/linux-nat.h (__SIGRTMIN): Move here from gdbserver/linux-low.c.
338
339 2015-10-26 Doug Evans <dje@google.com>
340
341 * common/gdb_wait.h (W_STOPCODE): Define, moved here from
342 gdbserver/linux-low.c.
343 (WSETSTOP): Simplify.
344
345 2015-10-26 Doug Evans <dje@google.com>
346
347 * linux-thread-db.c (find_new_threads_callback): Ditto.
348 (thread_db_pid_to_str): Ditto.
349
350 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
351
352 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Do not pass a
353 local char array to scm_mode_bits, use a cast instead.
354
355 2015-10-26 Simon Marchi <simon.marchi@ericsson.com>
356
357 * tui/tui-data.c (tui_alloc_content): Don't check xmalloc
358 result. Change type of element_block_ptr. Change allocation to
359 use XNEWVEC.
360
361 2015-10-26 Luis Machado <lgustavo@codesourcery.com>
362
363 * record-full.c (record_full_message_wrapper_safe): Pass empty string to
364 catch_errors call instead of NULL.
365
366 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
367
368 * guile/scm-ports.c (ioscm_make_gdb_stdio_port): Pass non-const
369 char pointer to scm_mode_bits.
370
371 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
372
373 * symtab.c (default_make_symbol_completion_list_break_on_1): Add
374 cast.
375
376 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
377
378 * guile/scm-ports.c (gdbscm_memory_port_write): Declare new
379 "data" local variable and use it.
380
381 2015-10-26 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * guile/scm-symbol.c (gdbscm_lookup_global_symbol): Add
384 domain_enum cast.
385 (gdbscm_lookup_symbol): Likewise.
386
387 2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
388
389 * d-exp.y: Remove an obsolete comment and propagate the block
390 information to the produced expression.
391
392 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
393
394 * tui/tui-data.c (tui_add_to_source_windows): Remove void *
395 cast.
396 (tui_add_content_elements): Likewise.
397
398 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
399
400 * cli/cli-setshow.c (do_set_command): Constify p.
401
402 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
403
404 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace
405 (void *) cast with (gdb_byte *).
406
407 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
408
409 * proc-service.c (ps_pdread): Add cast.
410
411 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
412
413 * sparc64-tdep.c (sparc64_store_arguments): Split assignment of
414 valbuf.
415
416 2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
417
418 * ia64-tdep.c (ia64_pseudo_register_write): Remove cast.
419 (ia64_push_dummy_call): Remove cast and change type of "to" to
420 array of gdb_byte.
421
422 2015-10-23 Simon Marchi <simon.marchi@polymtl.ca>
423
424 * linux-btrace.c (linux_enable_pt): Add cast to mmap return.
425
426 2015-10-23 Simon Marchi <simon.marchi@ericsson.com>
427
428 * observer.h (observer_${event}_notification_stub): Add cast.
429
430 2015-10-23 Yao Qi <yao.qi@linaro.org>
431
432 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Set
433 dsd.insn_count to zero.
434
435 2015-10-22 Pedro Alves <palves@redhat.com>
436
437 * infrun.c (stop_after_trap): Delete.
438 (clear_proceed_status, handle_signal_stop, struct
439 infcall_control_state, save_infcall_control_state)
440 (restore_infcall_control_state): Remove references to
441 stop_after_trap.
442
443 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
444
445 * python/python.c (_initialize_python): Add cast.
446
447 2015-10-22 Simon Marchi <simon.marchi@ericsson.com>
448
449 * nto-tdep.c (nto_inferior_data): Add cast.
450
451 2015-10-22 Pedro Alves <palves@redhat.com>
452
453 * windows-nat.c (do_initial_windows_stuff): Rewrite loop using
454 windows_wait and windows_resume directly instead of
455 wait_for_inferior and resume.
456
457 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * xtensa-tdep.h (XTREG): Add casts.
460 (XTREG_END): Likewise.
461
462 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
463
464 * solib-spu.c (spu_bfd_iovec_pread): Add (gdb_byte *) cast.
465
466 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * rs6000-tdep.c (variants): Add (enum bfd_architecture) cast.
469
470 2015-10-22 Simon Marchi <simon.marchi@polymtl.ca>
471
472 * mips-linux-tdep.c (mips64_linux_get_longjmp_target): Change type of
473 buf to gdb_byte*.
474 (supply_32bit_reg): Add cast.
475 (mips64_fill_gregset): Likewise.
476
477 2015-10-21 Simon Marchi <simon.marchi@polymtl.ca>
478
479 PR python/18073
480 * python/py-type.c (typy_get_composite): Allow returning a
481 function type.
482
483 2015-10-21 Keven Boell <keven.boell@intel.com>
484
485 * dwarf2read.c (set_die_type): Add read of
486 DW_AT_allocated and DW_AT_associated.
487 * f-typeprint.c: New include of typeprint.h
488 (f_print_type): Add check for allocated/associated
489 status of type.
490 (f_type_print_varspec_suffix): Add check for
491 * gdbtypes.c (create_array_type_with_stride):
492 Add check for valid data location of type in
493 case allocated or associated attributes are set.
494 Length of an array should be only calculated if
495 allocated or associated is resolved as true.
496 (is_dynamic_type_internal): Add check for allocated/
497 associated.
498 (resolve_dynamic_array): Evaluate allocated/associated
499 properties.
500 * gdbtypes.h (enum dynamic_prop_node_kind): <DYN_PROP_ALLOCATED>
501 <DYN_PROP_ASSOCIATED>: New enums.
502 (TYPE_ALLOCATED_PROP, TYPE_ASSOCIATED_PROP): New macros.
503 (type_not_allocated): New function.
504 (type_not_associated): New function.
505 * valarith.c (value_subscripted_rvalue): Add check for
506 allocated/associated.
507 * valprint.c: New include of typeprint.h.
508 (valprint_check_validity): Add check for allocated/associated.
509 (value_check_printable): Add check for allocated/
510 associated.
511 * typeprint.h (val_print_not_allocated): New function.
512 (val_print_not_associated): New function.
513 * typeprint.c (val_print_not_allocated): New function.
514 (val_print_not_associated): New function.
515
516 2015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
517
518 * Makefile.in: Add arm.c/o.
519 * arch/arm.c: New file.
520 * arch/arm.h: (IS_THUMB_ADDR): Move macro from arm-tdep.c.
521 (MAKE_THUMB_ADDR): Likewise.
522 (UNMAKE_THUMB_ADDR): Likewise.
523 * arm-tdep.c (int thumb_insn_size): Move to arm.c.
524 (IS_THUMB_ADDR): Move to arm.h.
525 (MAKE_THUMB_ADDR): Likewise.
526 (UNMAKE_THUMB_ADDR): Likewise.
527 * configure.tgt: Add arm.o to all ARM configs.
528
529 2015-10-21 Yao Qi <yao.qi@linaro.org>
530
531 * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
532 Remove argument exp_vCont_s.
533 * gdb.base/range-stepping.exp: Callers updated.
534 * gdb.trace/range-stepping.exp: Likewise.
535
536 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
537
538 * gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
539 (nto_sniff_abi_note_section): New function.
540 (nto_elf_osabi_sniffer): Use new function to recognize nto specific
541 binary.
542
543 2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
544
545 * nto-procfs.c (procfs_wait): Set stopped_flags nad stopped_pc.
546 (procfs_stopped_by_watchpoint): Use flags stored in inferior data.
547 * nto-tdep.c (nto_new_inferior_data_reg): New definition.
548 (nto_new_inferior_data, nto_inferior_data_cleanup, nto_inferior_data):
549 New functions.
550 (_initialize_nto_tdep): New forward declaration, new function.
551 * nto-tdep.h (struct nto_inferior_data): New struct.
552 (nto_inferior_data): New function declaration.
553
554 2015-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
555
556 * findvar.c (address_from_register): Check REGNUM validity.
557
558 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
559
560 * gdb/nto-procfs.c (procfs_pid_to_exec_file): New function.
561 (init_procfs_targets): Wire new function.
562
563 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
564
565 * nto-procfs.c (sys/auxv.h): Include.
566 (procfs_xfer_partial): Implement TARGET_OBJECT_AUXV.
567 * nto-tdep.c (nto_read_auxv_from_initial_stack): New function.
568 * nto-tdep.h (nto_read_auxv_from_initial_stack): New declaration.
569
570 2015-10-20 Aleksandar Ristovski <aristovski@qnx.com>
571
572 * nto-procfs.c (nto_procfs_path): Rename to...
573 (nodestr): ... this, and change type.
574 (nto_node): Use new variable and logic accordingly.
575 (procfs_open_1): Use new variable name. Use local buffer to construct
576 procfrs path.
577 (procfs_pidlist): Use NODESTR to construct procfs path.
578 (procfs_files_info): Use NODESTR to output meaningful text.
579 (do_attach): Construct procfs using NODESTR.
580 (procfs_create_inferior): Compare pointer to NULL.
581
582 2015-10-19 Josh Stone <jistone@redhat.com>
583
584 * linux-nat.c (linux_handle_syscall_trap): Always update entry/
585 return state, even when not actively catching syscalls at all.
586 (linux_handle_extended_wait): Mark syscall_state like an entry.
587 (wait_lwp): Set syscall_state ignored for other traps.
588 (linux_nat_filter_event): Likewise.
589
590 2015-10-19 Luis Machado <lgustavo@codesourcery.com>
591
592 * remote.c (remote_wait_as): Set rs->waiting_for_stop_reply to 0
593 when handling 'E', 'T', 'S', 'X' and 'W' packets.
594 Do not set rs->waiting_for_stop_reply back to 1.
595
596 2015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
597
598 * nto-procfs.c (common/filestuff.h): Include.
599 (procfs_can_use_hw_breakpoint): Fix enum name.
600 (procfs_open_1): Fix compiler warning.
601 (procfs_pidlist): Make static.
602 (procfs_meminfo): Make static, fix type name, add missing argument.
603 (procfs_store_registers): Make static.
604 (procfs_thread_info): Remove unused function.
605 (_initialize_procfs): Forward declare.
606
607 2015-10-16 Yao Qi <yao.qi@arm.com>
608
609 * MAINTAINERS: Update my email address.
610
611 2015-10-15 Yao Qi <yao.qi@linaro.org>
612
613 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint):
614 Call gdbarch_breakpoint_from_pc to instruction length.
615 (aarch64_linux_remove_hw_breakpoint): Likewise.
616 * common/common-regcache.h (regcache_register_size): Declare.
617 * nat/aarch64-linux-hw-point.c: Include "common-regcache.h".
618 (aarch64_point_is_aligned): Set alignment to 2 for breakpoint if
619 the process is 32bit, otherwise set alignment to 4.
620 (aarch64_handle_breakpoint): Update comments.
621 * regcache.c (regcache_register_size): New function.
622
623 2015-10-15 Aleksandar Ristovski <aristovski@qnx.com>
624
625 * gdbarch.sh (core_regset_section): Remove.
626 * gdbarch.h: Regenerate.
627
628 2015-10-14 Yao Qi <yao.qi@linaro.org>
629
630 * arch/aarch64-insn.h (struct aarch64_memory_operand): Move enum
631 out of it.
632 (enum aarch64_memory_operand_type): New.
633
634 2015-10-13 David Edelsohn <dje.gcc@gmail.com>
635
636 * xcoffread.c (dwarf2_xcoff_names): Add .dwmac and .dwpbtyp.
637
638 2015-10-13 Pedro Alves <palves@redhat.com>
639
640 * ada-lang.c (ada_enum_name): Constify local.
641 * ada-typeprint.c (print_range_bound): Constify locals.
642 * c-varobj.c (c_describe_child): Likewise.
643 * cli/cli-setshow.c (do_set_command): Likewise.
644 * gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
645 * dwarf2read.c (find_file_and_directory): Likewise.
646 (anonymous_struct_prefix, dwarf2_name): Likewise.
647 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
648 * go-lang.c (unpack_mangled_go_symbol): Likewise.
649 * jv-typeprint.c (java_type_print_base): Likewise.
650 * ser-tcp.c (net_open): Likewise.
651 * symfile.c (deduce_language_from_filename): Likewise.
652 * symtab.c (gdb_mangle_name): Likewise.
653 * tui/tui-io.c (tui_redisplay_readline): Likewise.
654
655 2015-10-13 Pedro Alves <palves@redhat.com>
656
657 * infrun.c (restore_execution_direction): New function.
658 (fetch_inferior_event): Use it instead of
659 make_cleanup_restore_integer.
660 (execution_direction): Change type to enum
661 exec_direction_kind.
662 * infrun.h (execution_direction): Likewise.
663
664 2015-10-13 Pedro Alves <palves@redhat.com>
665
666 * ada-lang.c (ada_value_primitive_packed_val): Constify
667 locals. Use value_contents_writeable. Remove casts.
668
669 2015-10-13 Pedro Alves <palves@redhat.com>
670
671 * ada-lang.c (ada_value_primitive_packed_val): Add casts to malloc
672 and alloca calls.
673
674 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
675
676 * lm32-tdep.c (lm32_push_dummy_call): Replace call to
677 write_memory with write_memory_unsigned_integer.
678
679 2015-10-13 Simon Marchi <simon.marchi@polymtl.ca>
680
681 * solib-dsbt.c (cmp_name): Constify arguments.
682 * solib-frv.c (cmp_name): Likewise.
683 * solib-svr4.c (svr4_create_solib_event_breakpoints): Likewise.
684 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Likewise.
685 (bfd_lookup_symbol_from_dyn_symtab): Likewise.
686 (gdb_bfd_lookup_symbol): Likewise.
687 * solib.h (gdb_bfd_lookup_symbol): Likewise.
688 (gdb_bfd_lookup_symbol_from_symtab): Likewise.
689
690 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
691
692 * stack.c (parse_frame_specification): Remove message parameter,
693 replace with fixed string in function body, update function
694 comment.
695 (frame_info): Remove message to parse_frame_specification.
696 (select_frame_command): Likewise.
697
698 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
699
700 * stack.c (parse_frame_specification): Delete.
701 (parse_frame_specification_1): Rename to
702 parse_frame_specification.
703 (frame_info): Use parse_frame_specification.
704 (select_frame_command): Likewise.
705 (return_command): Use select_frame and print_stack_frame rather
706 than frame_command and select_frame_command.
707 (func_command): Use get_current_frame rather than
708 parse_frame_specification.
709
710 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * stack.c (func_command): Return early when there is no ARG
713 string.
714
715 2015-10-12 Andrew Burgess <andrew.burgess@embecosm.com>
716
717 * stack.c: Include safe-ctype.h not ctype.h.
718 (parse_frame_specification): Use ISSPACE not isspace.
719 (backtrace_command): Use TOLOWER not tolower.
720
721 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
722
723 * mep-tdep.c (current_me_module): Add cast.
724 (mep_gdbarch_init): Likewise.
725
726 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
727
728 * m32c-tdep.c (m32c_move_reg_t): Replace with...
729 (m32c_write_reg_t): ...this and...
730 (m32c_read_reg_t): ...this.
731 (struct m32c_reg): Update types of read and write.
732 (m32c_raw_read): Change declaration type to m32c_read_reg_t and
733 adjust definition.
734 (m32c_banked_read): Likewise.
735 (m32c_sb_read): Likewise.
736 (m32c_part_read): Likewise.
737 (m32c_cat_read): Likewise.
738 (m32c_r3r2r1r0_read): Likewise.
739 (m32c_raw_write): Change declaration type to m32c_write_reg_t
740 and adjust definition.
741 (m32c_banked_write): Likewise.
742 (m32c_sb_write): Likewise.
743 (m32c_part_write): Likewise.
744 (m32c_cat_write): Likewise.
745 (m32c_r3r2r1r0_write): Likewise.
746
747 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
748
749 * aarch64-linux-tdep.c (aarch64_linux_syscall_record): Add cast.
750
751 2015-10-12 Simon Marchi <simon.marchi@polymtl.ca>
752
753 * aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Return
754 gdb_sys_no_syscall instead of -1.
755
756 2015-10-12 Yao Qi <yao.qi@linaro.org>
757
758 * NEWS: Mention the change.
759
760 2015-10-12 Yao Qi <yao.qi@linaro.org>
761
762 * arch/aarch64-insn.c (emit_load_store): Rename to ...
763 (aarch64_emit_load_store): ... it. All callers updated.
764
765 2015-10-12 Yao Qi <yao.qi@linaro.org>
766
767 * arch/aarch64-insn.c (emit_insn): Rename to ...
768 (aarch64_emit_insn): ... it. All callers updated.
769
770 2015-10-12 Yao Qi <yao.qi@linaro.org>
771
772 * aarch64-linux-tdep.c: Include arch-utils.h.
773 (aarch64_linux_init_abi): Call set_gdbarch_max_insn_length,
774 set_gdbarch_displaced_step_copy_insn,
775 set_gdbarch_displaced_step_fixup,
776 set_gdbarch_displaced_step_free_closure,
777 set_gdbarch_displaced_step_location,
778 and set_gdbarch_displaced_step_hw_singlestep.
779 * aarch64-tdep.c (struct displaced_step_closure): New.
780 (struct aarch64_displaced_step_data): New.
781 (aarch64_displaced_step_b): New function.
782 (aarch64_displaced_step_b_cond): Likewise.
783 (aarch64_register): Likewise.
784 (aarch64_displaced_step_cb): Likewise.
785 (aarch64_displaced_step_tb): Likewise.
786 (aarch64_displaced_step_adr): Likewise.
787 (aarch64_displaced_step_ldr_literal): Likewise.
788 (aarch64_displaced_step_others): Likewise.
789 (aarch64_displaced_step_copy_insn): Likewise.
790 (aarch64_displaced_step_fixup): Likewise.
791 (aarch64_displaced_step_hw_singlestep): Likewise.
792 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): New macro.
793 (aarch64_displaced_step_copy_insn): Declare.
794 (aarch64_displaced_step_fixup): Declare.
795 (aarch64_displaced_step_hw_singlestep): Declare.
796 * arch/aarch64-insn.c (emit_insn): Moved from
797 gdbserver/linux-aarch64-low.c.
798 (emit_load_store): Likewise.
799 * arch/aarch64-insn.h (enum aarch64_opcodes): Moved from
800 gdbserver/linux-aarch64-low.c.
801 (struct aarch64_register): Likewise.
802 (struct aarch64_memory_operand): Likewise.
803 (ENCODE): Likewise.
804 (can_encode_int32): New macro.
805 (emit_b, emit_bcond, emit_cb, emit_ldr, emit_ldrsw): Likewise.
806 (emit_tb, emit_nop): Likewise.
807 (emit_insn): Declare.
808 (emit_load_store): Declare.
809
810 2015-10-12 Yao Qi <yao.qi@linaro.org>
811
812 * arch/aarch64-insn.c (aarch64_decode_ldr_literal): Moved from
813 gdbserver/linux-aarch64-low.c.
814 (aarch64_relocate_instruction): Likewise.
815 * arch/aarch64-insn.h (aarch64_decode_ldr_literal): Declare.
816 (struct aarch64_insn_data): Moved from
817 gdbserver/linux-aarch64-low.c.
818 (struct aarch64_insn_visitor): Likewise.
819 (aarch64_relocate_instruction): Declare.
820
821 2015-10-12 Pierre-Marie de Rodat <derodat@adacore.com>
822
823 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT>: If
824 EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute
825 to the returned value.
826
827 2015-10-09 Joel Brobecker <brobecker@adacore.com>
828
829 * ada-lang.c (ada_unpack_from_contents): Add guard that unpacked
830 is large enough for BIT_SIZE. Update function comment.
831
832 2015-10-09 Joel Brobecker <brobecker@adacore.com>
833
834 * ada-lang.c (ada_value_primitive_packed_val): Move
835 src_len variable to local block where used. Override
836 BIT_SIZE if bigger than size of resolved type.
837
838 2015-10-09 Joel Brobecker <brobecker@adacore.com>
839
840 * gdbtypes.h (is_scalar_type): Add extern declaration.
841 * gdbtypes.c (is_scalar_type): Make non-static.
842 * ada-lang.c (ada_value_primitive_packed_val): Use is_scalar_type
843 to compute IS_SCALAR instead of doing it ourselves.
844
845 2015-10-09 Joel Brobecker <brobecker@adacore.com>
846
847 * ada-lang.c (ada_value_primitive_packed_val): Rework handling
848 of case where TYPE is dynamic.
849
850 2015-10-09 Joel Brobecker <brobecker@adacore.com>
851
852 * ada-lang.c (ada_unpack_from_contents): New function,
853 extracted from ada_value_primitive_packed_val.
854 (ada_value_primitive_packed_val): Replace extracted out code
855 by call to ada_unpack_from_contents.
856
857 2015-10-09 Joel Brobecker <brobecker@adacore.com>
858
859 * ada-lang.c (ada_value_primitive_packed_val): Reorder local
860 variable declarations.
861
862 2015-10-09 Joel Brobecker <brobecker@adacore.com>
863
864 * ada-lang.c (ada_value_primitive_packed_val): Change the type
865 of local variables src and unpacked to "gdb_type *" instead of
866 "unsigned char *".
867
868 2015-10-09 Joel Brobecker <brobecker@adacore.com>
869
870 * ada-lang.c (ada_value_primitive_packed_val): Make the name
871 of various local variables more explicit and consistent.
872 No real code change otherwise.
873
874 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
875
876 * i386-tdep.h (struct gdbarch_tdep): Change type of
877 register_reggroup_p to gdbarch_register_reggroup_p_ftype.
878
879 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
880
881 * cris-tdep.c (struct instruction_environment): Change type of
882 byte_order to enum bfd_endian.
883
884 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
885
886 * arm-linux-tdep.c (arm_canonicalize_syscall): Add
887 enum gdb_syscall casts.
888
889 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
890
891 * aarch64-tdep.c (stack_item_t): Change type of data to gdb_byte*.
892 * arm-tdep.c (struct stack_item): Likewise.
893 (push_stack_item): Add gdb_byte* cast.
894 * avr-tdep.c (struct stack_item): Change type of data to gdb_byte*.
895 (push_stack_item): Add gdb_byte* cast.
896 * cli/cli-dump.c (dump_memory_to_file): Change type of buf to gdb_byte*
897 and add cast.
898 * cris-tdep.c (struct stack_item): Change type of data to gdb_byte*.
899 (push_stack_item): Add gdb_byte* cast.
900 * gcore.c (gcore_copy_callback): Change type of memhunk to gdb_byte* and
901 add cast.
902 * gdbtypes.h (print_scalar_formatted): Change type of first parameter to
903 gdb_byte*.
904 * h8300-tdep.c (h8300_extract_return_value): Change type of valbuf to
905 gdb_byte* and remove unnecessary cast.
906 (h8300h_extract_return_value): Likewise.
907 (h8300_store_return_value): Change type of valbuf to gdb_byte*.
908 (h8300h_store_return_value): Likewise.
909 * iq2000-tdep.c (iq2000_extract_return_value): Change type of valbuf to
910 gdb_byte* and remove unnecessary cast.
911 * jit.c (jit_reader_try_read_symtab): Change type of gdb_mem to gdb_byte*
912 and add cast.
913 * m32r-tdep.c (m32r_store_return_value): Change type of valbuf to
914 gdb_byte* and remove unnecessary cast.
915 (m32r_extract_return_value): Change type of dst to gdb_byte* and remove
916 valbuf.
917 * mep-tdep.c (mep_pseudo_cr32_read): Change type of buf to gdb_byte*.
918 (mep_pseudo_cr64_read): Likewise.
919 (mep_pseudo_csr_write): Likewise.
920 (mep_pseudo_cr32_write): Likewise.
921 (mep_pseudo_cr64_write): Likewise.
922 * mi/mi-main.c (mi_cmd_data_write_memory): Change type of buffer to
923 gdb_byte* and add cast.
924 * moxie-tdep.c (moxie_store_return_value): Change type of valbuf to
925 gdb_byte* and remove unnecessary cast.
926 (moxie_extract_return_value): Change type of dst to gdb_byte* and remove
927 valbuf.
928 * p-valprint.c (print_scalar_formatted): Change type of valaddr to
929 gdb_byte*.
930 * printcmd.c (void): Likewise.
931 * python/py-inferior.c (infpy_read_memory): Change type of buffer to
932 gdb_byte* and add cast.
933 (infpy_write_memory): Likewise.
934 (infpy_search_memory): Likewise.
935 * regcache.c (regcache_raw_write_signed): Change type of buf to gdb_byte*
936 and add cast.
937 (regcache_raw_write_unsigned): Likewise.
938 (regcache_cooked_write_signed): Likewise.
939 (regcache_cooked_write_unsigned): Likewise.
940 * sh64-tdep.c (h64_extract_return_value): Change type of valbuf to
941 gdb_byte*.
942
943 2015-10-09 Simon Marchi <simon.marchi@ericsson.com>
944
945 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Add cast.
946 * linux-tdep.c (linux_collect_regset_section_cb_data): Likewise.
947
948 2015-10-09 Eli Zaretskii <eliz@gnu.org>
949
950 * stack.c (print_stack_frame):
951 * utils.c (printchar): Fix typos in commentary.
952
953 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
954
955 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
956 (PostfixExpression): Support `expr.sizeof' expressions.
957 (PrimaryExpression): Support `typeof(expr)' expressions.
958
959 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
960
961 * MAINTAINERS: Update my email address.
962
963 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
964
965 * record-btrace.c (record_btrace_resume): Fix void return.
966
967 2015-10-07 Yao Qi <yao.qi@linaro.org>
968
969 * aarch64-tdep.c: Include opcode/aarch64.h.
970 (submask): Move it above.
971 (bit): Likewise.
972 (bits): Likewise.
973 (aarch64_software_single_step): Call aarch64_decode_insn.
974 Decode instruction by aarch64_inst instead of using
975 aarch64_decode_bcond and decode_masked_match.
976
977 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
978
979 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
980 only when the file is binary.
981
982 2015-10-02 James Bowman <james.bowman@ftdichip.com>
983
984 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
985 subroutine handling.
986
987 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
988
989 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
990
991 2015-09-30 Doug Evans <dje@google.com>
992
993 * dwarf2read.c (setup_type_unit_groups): Add comment.
994
995 2015-09-30 Pedro Alves <palves@redhat.com>
996
997 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
998 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
999 (x86_linux_create_target): Don't install
1000 x86_linux_always_non_stop_p.
1001
1002 2015-09-30 Don Breazeal <donb@codesourcery.com>
1003
1004 * remote.c (remote_parse_stop_reply): Call strprefix instead
1005 of strncmp.
1006
1007 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
1008
1009 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
1010 * gdbarch.h: Regenerate.
1011 * i386-tdep.c (i386_gdbarch_init): Remove cast to
1012 struct gdbarch_tdep_info *.
1013 * mips-tdep.c (mips_gdbarch_init): Likewise.
1014 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
1015 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
1016 * spu-multiarch.c (spu_gdbarch): Likewise.
1017
1018 2015-09-30 Kevin Buettner <kevinb@redhat.com>
1019
1020 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
1021 record a NULL value.
1022
1023 2015-09-29 Kevin Buettner <kevinb@redhat.com>
1024
1025 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
1026 and union arguments the same as pointer arguments when determining
1027 size of argument.
1028
1029 2015-09-29 James Bowman <james.bowman@ftdichip.com>
1030
1031 * ft32-tdep.c: #include "opcode/ft32.h".
1032 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
1033 (ft32_analyze_prologue): Use FT32_* macros.
1034
1035 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
1036
1037 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
1038 comment.
1039
1040 2015-09-28 Doug Evans <dje@google.com>
1041
1042 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
1043
1044 2015-09-28 Doug Evans <dje@google.com>
1045
1046 * common/filestuff.c (make_cleanup_close): Update comment.
1047
1048 2015-09-26 Simon Marchi <simon.marchi@polymtl.ca>
1049
1050 * btrace.c (parse_xml_btrace_block): Fix cast of
1051 xml_find_attribute's return value.
1052 * memory-map.c (memory_map_start_memory): Likewise.
1053 * solib-svr4.c (library_list_start_library): Likewise.
1054 * solib-target.c (library_list_start_segment): Likewise.
1055 (library_list_start_section): Likewise.
1056 * tracepoint.c (traceframe_info_start_memory): Likewise.
1057
1058 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
1059
1060 * d-namespace.c (d_lookup_symbol): New arg langdef.
1061 All callers updated. Support looking up symbol as a primitive type.
1062 (lookup_module_scope): New arg langdef. All callers updated.
1063 Call d_lookup_symbol directly for simple bare symbols.
1064
1065 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1066
1067 * macrocmd.c (print_macro_callback): Add cast(s).
1068 * macrotab.c (macro_bcache_str): Likewise.
1069 (new_macro_definition): Likewise.
1070 * main.c (captured_main): Likewise.
1071 * maint.c (print_bfd_section_info): Likewise.
1072 * mdebugread.c (mdebug_build_psymtabs): Likewise.
1073 (basic_type): Likewise.
1074 * memattr.c (mem_region_cmp): Likewise.
1075 * memory-map.c (memory_map_start_memory): Likewise.
1076 (memory_map_end_memory): Likewise.
1077 (memory_map_start_property): Likewise.
1078 (memory_map_end_property): Likewise.
1079 (clear_result): Likewise.
1080 * memrange.c (compare_mem_ranges): Likewise.
1081 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
1082 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
1083 * mi/mi-console.c (mi_console_file_delete): Likewise.
1084 (mi_console_file_fputs): Likewise.
1085 (mi_console_raw_packet): Likewise.
1086 (mi_console_file_flush): Likewise.
1087 (mi_console_set_raw): Likewise.
1088 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
1089 (mi_new_thread): Likewise.
1090 (mi_thread_exit): Likewise.
1091 (mi_record_changed): Likewise.
1092 (mi_inferior_added): Likewise.
1093 (mi_inferior_appeared): Likewise.
1094 (mi_inferior_exit): Likewise.
1095 (mi_inferior_removed): Likewise.
1096 (mi_interp_data): Likewise.
1097 (mi_on_normal_stop): Likewise.
1098 (mi_traceframe_changed): Likewise.
1099 (mi_tsv_created): Likewise.
1100 (mi_tsv_deleted): Likewise.
1101 (mi_tsv_modified): Likewise.
1102 (mi_breakpoint_created): Likewise.
1103 (mi_breakpoint_deleted): Likewise.
1104 (mi_breakpoint_modified): Likewise.
1105 (mi_output_running_pid): Likewise.
1106 (mi_inferior_count): Likewise.
1107 (mi_solib_loaded): Likewise.
1108 (mi_solib_unloaded): Likewise.
1109 (mi_command_param_changed): Likewise.
1110 (mi_memory_changed): Likewise.
1111 (report_initial_inferior): Likewise.
1112 (mi_ui_out): Likewise.
1113 (mi_set_logging): Likewise.
1114 * mi/mi-main.c (collect_cores): Likewise.
1115 (print_one_inferior): Likewise.
1116 (free_vector_of_ints): Likewise.
1117 (free_splay_tree): Likewise.
1118 (mi_execute_command): Likewise.
1119 * mi/mi-out.c (mi_table_body): Likewise.
1120 (mi_table_end): Likewise.
1121 (mi_table_header): Likewise.
1122 (mi_begin): Likewise.
1123 (mi_end): Likewise.
1124 (mi_field_int): Likewise.
1125 (mi_field_string): Likewise.
1126 (mi_field_fmt): Likewise.
1127 (mi_flush): Likewise.
1128 (mi_redirect): Likewise.
1129 (field_separator): Likewise.
1130 (mi_open): Likewise.
1131 (mi_close): Likewise.
1132 (mi_out_buffered): Likewise.
1133 (mi_out_rewind): Likewise.
1134 (mi_out_put): Likewise.
1135 (mi_version): Likewise.
1136 (mi_out_data_dtor): Likewise.
1137 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
1138 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
1139 * minidebug.c (lzma_open): Likewise.
1140 (lzma_pread): Likewise.
1141 (lzma_close): Likewise.
1142 (lzma_stat): Likewise.
1143 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
1144 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
1145 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
1146 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
1147 (mips_micro_frame_cache): Likewise.
1148 (mips_insn32_frame_cache): Likewise.
1149 (mips_stub_frame_cache): Likewise.
1150 (gdb_print_insn_mips): Likewise.
1151 (value_of_mips_user_reg): Likewise.
1152 (mips_gdbarch_init): Likewise.
1153 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
1154 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
1155 (mipsnbsd_supply_gregset): Likewise.
1156 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
1157 (am33_collect_gregset_method): Likewise.
1158 (am33_collect_fpregset_method): Likewise.
1159 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
1160 * moxie-tdep.c (moxie_frame_cache): Likewise.
1161 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
1162 (msp430_analyze_frame_prologue): Likewise.
1163 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
1164 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
1165 (nios2_collect_gregset): Likewise.
1166 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
1167 (nios2_stub_frame_cache): Likewise.
1168 * objc-lang.c (find_methods): Likewise.
1169 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
1170 (get_objfile_pspace_data): Likewise.
1171 (get_objfile_bfd_data): Likewise.
1172 (objfile_bfd_data_free): Likewise.
1173 (add_to_objfile_sections): Likewise.
1174 (do_free_objfile_cleanup): Likewise.
1175 (resume_section_map_updates_cleanup): Likewise.
1176 * opencl-lang.c (builtin_opencl_type): Likewise.
1177 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1178 * osdata.c (osdata_start_osdata): Likewise.
1179 (osdata_start_item): Likewise.
1180 (osdata_start_column): Likewise.
1181 (osdata_end_column): Likewise.
1182 (clear_parsing_data): Likewise.
1183 (osdata_free_cleanup): Likewise.
1184 * parse.c (type_stack_cleanup): Likewise.
1185 (exp_uses_objfile_iter): Likewise.
1186 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
1187 (ppc_linux_collect_gregset): Likewise.
1188 (ppu2spu_prev_arch): Likewise.
1189 (ppu2spu_this_id): Likewise.
1190 (ppu2spu_prev_register): Likewise.
1191 (ppu2spu_unwind_register): Likewise.
1192 (ppu2spu_sniffer): Likewise.
1193 (ppu2spu_dealloc_cache): Likewise.
1194 (ppc_linux_init_abi): Likewise.
1195 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
1196 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
1197 * progspace.c (restore_program_space): Likewise.
1198 * psymtab.c (find_pc_sect_psymtab): Likewise.
1199 (compare_psymbols): Likewise.
1200 (psymbol_bcache_full): Likewise.
1201 (allocate_psymtab): Likewise.
1202 (discard_psymtabs_upto): Likewise.
1203 * python/py-block.c (set_block): Likewise.
1204 (del_objfile_blocks): Likewise.
1205 * python/py-breakpoint.c (build_bp_list): Likewise.
1206 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
1207 (build_inferior_list): Likewise.
1208 (py_free_inferior): Likewise.
1209 * python/py-objfile.c (py_free_objfile): Likewise.
1210 (objfile_to_objfile_object): Likewise.
1211 * python/py-prettyprint.c (py_restore_tstate): Likewise.
1212 * python/py-progspace.c (py_free_pspace): Likewise.
1213 (pspace_to_pspace_object): Likewise.
1214 * python/py-symbol.c (set_symbol): Likewise.
1215 (del_objfile_symbols): Likewise.
1216 * python/py-symtab.c (set_sal): Likewise.
1217 (set_symtab): Likewise.
1218 (del_objfile_symtab): Likewise.
1219 (del_objfile_sal): Likewise.
1220 * python/py-type.c (save_objfile_types): Likewise.
1221 (set_type): Likewise.
1222 * python/py-unwind.c (pyuw_prev_register): Likewise.
1223 (pyuw_on_new_gdbarch): Likewise.
1224 * python/py-utils.c (py_decref): Likewise.
1225 (py_xdecref): Likewise.
1226 (gdb_py_generic_dict): Likewise.
1227 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
1228 (gdbpy_clone_xmethod_worker_data): Likewise.
1229 (gdbpy_get_xmethod_arg_types): Likewise.
1230 (gdbpy_get_xmethod_result_type): Likewise.
1231 (gdbpy_invoke_xmethod): Likewise.
1232 * python/python.c (gdbpy_apply_type_printers): Likewise.
1233 (gdbpy_free_type_printers): Likewise.
1234 * record-btrace.c (record_btrace_disable_callback): Likewise.
1235 (bfcache_hash): Likewise.
1236 (bfcache_eq): Likewise.
1237 (btrace_get_frame_function): Likewise.
1238 (record_btrace_frame_unwind_stop_reason): Likewise.
1239 (record_btrace_frame_this_id): Likewise.
1240 (record_btrace_frame_prev_register): Likewise.
1241 (record_btrace_frame_dealloc_cache): Likewise.
1242 * record-full.c (record_full_message_wrapper): Likewise.
1243 (record_full_save_cleanups): Likewise.
1244 * regcache.c (regcache_descr): Likewise.
1245 (do_regcache_xfree): Likewise.
1246 (do_regcache_invalidate): Likewise.
1247 (do_cooked_read): Likewise.
1248 (regcache_transfer_regset): Likewise.
1249 * reggroups.c (reggroup_add): Likewise.
1250 (reggroup_next): Likewise.
1251 (reggroup_prev): Likewise.
1252 * remote-fileio.c (do_remote_fileio_request): Likewise.
1253 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
1254 (do_notif_event_xfree): Likewise.
1255 * remote.c (get_remote_arch_state): Likewise.
1256 (remote_pspace_data_cleanup): Likewise.
1257 (get_remote_exec_file): Likewise.
1258 (set_pspace_remote_exec_file): Likewise.
1259 (compare_pnums): Likewise.
1260 (clear_threads_listing_context): Likewise.
1261 (remote_newthread_step): Likewise.
1262 (start_thread): Likewise.
1263 (end_thread): Likewise.
1264 (remove_child_of_pending_fork): Likewise.
1265 (remove_stop_reply_for_inferior): Likewise.
1266 (remove_stop_reply_of_remote_state): Likewise.
1267 (remote_notif_remove_once_on_match): Likewise.
1268 (stop_reply_match_ptid_and_ws): Likewise.
1269 (kill_child_of_pending_fork): Likewise.
1270 (register_remote_g_packet_guess): Likewise.
1271 (remote_read_description_p): Likewise.
1272 (remote_read_description): Likewise.
1273 (free_actions_list_cleanup_wrapper): Likewise.
1274 (remote_async_serial_handler): Likewise.
1275 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
1276 (rl78_analyze_frame_prologue): Likewise.
1277 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
1278 (ppc_supply_fpregset): Likewise.
1279 (ppc_supply_vsxregset): Likewise.
1280 (ppc_supply_vrregset): Likewise.
1281 (ppc_collect_gregset): Likewise.
1282 (ppc_collect_fpregset): Likewise.
1283 (ppc_collect_vsxregset): Likewise.
1284 (ppc_collect_vrregset): Likewise.
1285 (e500_move_ev_register): Likewise.
1286 (do_regcache_raw_write): Likewise.
1287 (rs6000_frame_cache): Likewise.
1288 (rs6000_epilogue_frame_cache): Likewise.
1289 (rs6000_gdbarch_init): Likewise.
1290 * rx-tdep.c (rx_get_opcode_byte): Likewise.
1291 (rx_analyze_frame_prologue): Likewise.
1292 (rx_frame_type): Likewise.
1293 (rx_frame_sniffer_common): Likewise.
1294 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
1295 (s390_frame_unwind_cache): Likewise.
1296 (s390_stub_frame_unwind_cache): Likewise.
1297 (s390_sigtramp_frame_unwind_cache): Likewise.
1298 * score-tdep.c (score_make_prologue_cache): Likewise.
1299 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
1300 (sentinel_frame_prev_arch): Likewise.
1301 * ser-base.c (fd_event): Likewise.
1302 (push_event): Likewise.
1303 (ser_base_write): Likewise.
1304 * ser-pipe.c (pipe_close): Likewise.
1305 * serial.c (serial_write): Likewise.
1306 * sh-tdep.c (sh_frame_cache): Likewise.
1307 (sh_stub_this_id): Likewise.
1308 * sh64-tdep.c (sh64_frame_cache): Likewise.
1309 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
1310 (library_list_start_library): Likewise.
1311 (library_list_start_list): Likewise.
1312 (solib_aix_free_library_list): Likewise.
1313 * solib-darwin.c (get_darwin_info): Likewise.
1314 * solib-dsbt.c (get_dsbt_info): Likewise.
1315 * solib-spu.c (append_ocl_sos): Likewise.
1316 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
1317 (get_svr4_info): Likewise.
1318 (library_list_start_library): Likewise.
1319 (svr4_library_list_start_list): Likewise.
1320 (hash_probe_and_action): Likewise.
1321 (equal_probe_and_action): Likewise.
1322 (svr4_update_solib_event_breakpoint): Likewise.
1323 (set_solib_svr4_fetch_link_map_offsets): Likewise.
1324 (svr4_fetch_link_map_offsets): Likewise.
1325 (svr4_have_link_map_offsets): Likewise.
1326 * solib-target.c (library_list_start_segment): Likewise.
1327 (library_list_start_section): Likewise.
1328 (library_list_start_library): Likewise.
1329 (library_list_end_library): Likewise.
1330 (library_list_start_list): Likewise.
1331 (solib_target_free_library_list): Likewise.
1332 * solib.c (solib_ops): Likewise.
1333 (set_solib_ops): Likewise.
1334 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
1335 * sparc-tdep.c (sparc_frame_cache): Likewise.
1336 (sparc32_frame_cache): Likewise.
1337 (sparc32_supply_gregset): Likewise.
1338 (sparc32_collect_gregset): Likewise.
1339 (sparc32_supply_fpregset): Likewise.
1340 (sparc32_collect_fpregset): Likewise.
1341 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
1342 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1343 (sparc64_collect_gregset): Likewise.
1344 (sparc64_supply_fpregset): Likewise.
1345 (sparc64_collect_fpregset): Likewise.
1346 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
1347 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
1348 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
1349 (sparc64obsd_trapframe_cache): Likewise.
1350 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
1351 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
1352 * spu-multiarch.c (spu_gdbarch): Likewise.
1353 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
1354 (spu2ppu_prev_arch): Likewise.
1355 (spu2ppu_this_id): Likewise.
1356 (spu2ppu_prev_register): Likewise.
1357 (spu2ppu_dealloc_cache): Likewise.
1358 (spu_dis_asm_print_address): Likewise.
1359 (gdb_print_insn_spu): Likewise.
1360 (spu_get_overlay_table): Likewise.
1361 * stabsread.c (rs6000_builtin_type): Likewise.
1362 * stack.c (do_print_variable_and_value): Likewise.
1363 * stap-probe.c (get_stap_base_address_1): Likewise.
1364 * symfile-debug.c (debug_qf_has_symbols): Likewise.
1365 (debug_qf_find_last_source_symtab): Likewise.
1366 (debug_qf_forget_cached_source_info): Likewise.
1367 (debug_qf_map_symtabs_matching_filename): Likewise.
1368 (debug_qf_lookup_symbol): Likewise.
1369 (debug_qf_print_stats): Likewise.
1370 (debug_qf_dump): Likewise.
1371 (debug_qf_relocate): Likewise.
1372 (debug_qf_expand_symtabs_for_function): Likewise.
1373 (debug_qf_expand_all_symtabs): Likewise.
1374 (debug_qf_expand_symtabs_with_fullname): Likewise.
1375 (debug_qf_map_matching_symbols): Likewise.
1376 (debug_qf_expand_symtabs_matching): Likewise.
1377 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
1378 (debug_qf_map_symbol_filenames): Likewise.
1379 (debug_sym_get_probes): Likewise.
1380 (debug_sym_new_init): Likewise.
1381 (debug_sym_init): Likewise.
1382 (debug_sym_read): Likewise.
1383 (debug_sym_read_psymbols): Likewise.
1384 (debug_sym_finish): Likewise.
1385 (debug_sym_offsets): Likewise.
1386 (debug_sym_read_linetable): Likewise.
1387 (debug_sym_relocate): Likewise.
1388 (uninstall_symfile_debug_logging): Likewise.
1389 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
1390 * symfile.c (place_section): Likewise.
1391 (add_section_size_callback): Likewise.
1392 (load_progress): Likewise.
1393 (load_section_callback): Likewise.
1394 (clear_memory_write_data): Likewise.
1395 (allocate_symtab): Likewise.
1396 * symmisc.c (maintenance_expand_file_matcher): Likewise.
1397 * symtab.c (lookup_symtab_callback): Likewise.
1398 (hash_demangled_name_entry): Likewise.
1399 (eq_demangled_name_entry): Likewise.
1400 (get_symbol_cache): Likewise.
1401 (symbol_cache_cleanup): Likewise.
1402 (set_symbol_cache_size): Likewise.
1403 (symbol_cache_flush): Likewise.
1404 (maintenance_print_symbol_cache): Likewise.
1405 (maintenance_print_symbol_cache_statistics): Likewise.
1406 (delete_filename_seen_cache): Likewise.
1407 (output_partial_symbol_filename): Likewise.
1408 (search_symbols_file_matches): Likewise.
1409 (search_symbols_name_matches): Likewise.
1410 (do_free_completion_list): Likewise.
1411 (maybe_add_partial_symtab_filename): Likewise.
1412 (get_main_info): Likewise.
1413 (main_info_cleanup): Likewise.
1414 * target-dcache.c (target_dcache_cleanup): Likewise.
1415 (target_dcache_init_p): Likewise.
1416 (target_dcache_invalidate): Likewise.
1417 (target_dcache_get): Likewise.
1418 (target_dcache_get_or_init): Likewise.
1419 * target-descriptions.c (target_find_description): Likewise.
1420 (tdesc_find_type): Likewise.
1421 (tdesc_data_cleanup): Likewise.
1422 (tdesc_find_arch_register): Likewise.
1423 (tdesc_register_name): Likewise.
1424 (tdesc_register_type): Likewise.
1425 (tdesc_register_reggroup_p): Likewise.
1426 (set_tdesc_pseudo_register_name): Likewise.
1427 (set_tdesc_pseudo_register_type): Likewise.
1428 (set_tdesc_pseudo_register_reggroup_p): Likewise.
1429 (tdesc_use_registers): Likewise.
1430 (free_target_description): Likewise.
1431 * target-memory.c (compare_block_starting_address): Likewise.
1432 (cleanup_request_data): Likewise.
1433 (cleanup_write_requests_vector): Likewise.
1434 * target.c (open_target): Likewise.
1435 (cleanup_restore_target_terminal): Likewise.
1436 (free_memory_read_result_vector): Likewise.
1437 * thread.c (disable_thread_stack_temporaries): Likewise.
1438 (finish_thread_state_cleanup): Likewise.
1439 (do_restore_current_thread_cleanup): Likewise.
1440 (restore_current_thread_cleanup_dtor): Likewise.
1441 (set_thread_refcount): Likewise.
1442 (tp_array_compar): Likewise.
1443 (do_captured_thread_select): Likewise.
1444 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
1445 (tic6x_stub_this_id): Likewise.
1446 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
1447 * top.c (do_restore_instream_cleanup): Likewise.
1448 (gdb_readline_wrapper_cleanup): Likewise.
1449 (kill_or_detach): Likewise.
1450 (print_inferior_quit_action): Likewise.
1451 * tracefile-tfile.c (match_blocktype): Likewise.
1452 (build_traceframe_info): Likewise.
1453 * tracefile.c (trace_file_writer_xfree): Likewise.
1454 * tracepoint.c (memrange_cmp): Likewise.
1455 (do_collect_symbol): Likewise.
1456 (do_clear_collection_list): Likewise.
1457 (do_restore_current_traceframe_cleanup): Likewise.
1458 (restore_current_traceframe_cleanup_dtor): Likewise.
1459 (free_current_marker): Likewise.
1460 (traceframe_info_start_memory): Likewise.
1461 (traceframe_info_start_tvar): Likewise.
1462 (free_result): Likewise.
1463 * tramp-frame.c (tramp_frame_cache): Likewise.
1464 * tui/tui-file.c (tui_file_delete): Likewise.
1465 (tui_fileopen): Likewise.
1466 (tui_sfileopen): Likewise.
1467 (tui_file_isatty): Likewise.
1468 (tui_file_rewind): Likewise.
1469 (tui_file_put): Likewise.
1470 (tui_file_fputs): Likewise.
1471 (tui_file_get_strbuf): Likewise.
1472 (tui_file_adjust_strbuf): Likewise.
1473 (tui_file_flush): Likewise.
1474 * tui/tui-layout.c (make_command_window): Likewise.
1475 (make_data_window): Likewise.
1476 (show_source_disasm_command): Likewise.
1477 (show_data): Likewise.
1478 (make_source_or_disasm_window): Likewise.
1479 (show_source_or_disasm_and_command): Likewise.
1480 * tui/tui-out.c (tui_field_int): Likewise.
1481 (tui_field_string): Likewise.
1482 (tui_field_fmt): Likewise.
1483 (tui_text): Likewise.
1484 * typeprint.c (hash_typedef_field): Likewise.
1485 (eq_typedef_field): Likewise.
1486 (do_free_typedef_hash): Likewise.
1487 (copy_typedef_hash_element): Likewise.
1488 (do_free_global_table): Likewise.
1489 (find_global_typedef): Likewise.
1490 (find_typedef_in_hash): Likewise.
1491 * ui-file.c (ui_file_write_for_put): Likewise.
1492 (do_ui_file_xstrdup): Likewise.
1493 (mem_file_delete): Likewise.
1494 (mem_file_rewind): Likewise.
1495 (mem_file_put): Likewise.
1496 (mem_file_write): Likewise.
1497 (stdio_file_delete): Likewise.
1498 (stdio_file_flush): Likewise.
1499 (stdio_file_read): Likewise.
1500 (stdio_file_write): Likewise.
1501 (stdio_file_write_async_safe): Likewise.
1502 (stdio_file_fputs): Likewise.
1503 (stdio_file_isatty): Likewise.
1504 (stdio_file_fseek): Likewise.
1505 (tee_file_delete): Likewise.
1506 (tee_file_flush): Likewise.
1507 (tee_file_write): Likewise.
1508 (tee_file_fputs): Likewise.
1509 (tee_file_isatty): Likewise.
1510 * ui-out.c (do_cleanup_table_end): Likewise.
1511 (do_cleanup_end): Likewise.
1512 * user-regs.c (user_reg_add): Likewise.
1513 (user_reg_map_name_to_regnum): Likewise.
1514 (usernum_to_user_reg): Likewise.
1515 (maintenance_print_user_registers): Likewise.
1516 * utils.c (do_bfd_close_cleanup): Likewise.
1517 (do_fclose_cleanup): Likewise.
1518 (do_obstack_free): Likewise.
1519 (do_ui_file_delete): Likewise.
1520 (do_ui_out_redirect_pop): Likewise.
1521 (do_free_section_addr_info): Likewise.
1522 (restore_integer): Likewise.
1523 (do_unpush_target): Likewise.
1524 (do_htab_delete_cleanup): Likewise.
1525 (do_restore_ui_file): Likewise.
1526 (do_value_free): Likewise.
1527 (do_free_so): Likewise.
1528 (free_current_contents): Likewise.
1529 (do_regfree_cleanup): Likewise.
1530 (core_addr_hash): Likewise.
1531 (core_addr_eq): Likewise.
1532 (do_free_char_ptr_vec): Likewise.
1533 * v850-tdep.c (v850_frame_cache): Likewise.
1534 * varobj.c (do_free_variable_cleanup): Likewise.
1535 * vax-tdep.c (vax_supply_gregset): Likewise.
1536 (vax_frame_cache): Likewise.
1537 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
1538 * xml-support.c (gdb_xml_body_text): Likewise.
1539 (gdb_xml_values_cleanup): Likewise.
1540 (gdb_xml_start_element): Likewise.
1541 (gdb_xml_start_element_wrapper): Likewise.
1542 (gdb_xml_end_element): Likewise.
1543 (gdb_xml_end_element_wrapper): Likewise.
1544 (gdb_xml_cleanup): Likewise.
1545 (gdb_xml_fetch_external_entity): Likewise.
1546 (gdb_xml_parse_attr_enum): Likewise.
1547 (xinclude_start_include): Likewise.
1548 (xinclude_end_include): Likewise.
1549 (xml_xinclude_default): Likewise.
1550 (xml_xinclude_start_doctype): Likewise.
1551 (xml_xinclude_end_doctype): Likewise.
1552 (xml_xinclude_cleanup): Likewise.
1553 (xml_fetch_content_from_file): Likewise.
1554 * xml-syscall.c (free_syscalls_info): Likewise.
1555 (syscall_start_syscall): Likewise.
1556 * xml-tdesc.c (tdesc_end_arch): Likewise.
1557 (tdesc_end_osabi): Likewise.
1558 (tdesc_end_compatible): Likewise.
1559 (tdesc_start_target): Likewise.
1560 (tdesc_start_feature): Likewise.
1561 (tdesc_start_reg): Likewise.
1562 (tdesc_start_union): Likewise.
1563 (tdesc_start_struct): Likewise.
1564 (tdesc_start_flags): Likewise.
1565 (tdesc_start_field): Likewise.
1566 (tdesc_start_vector): Likewise.
1567 (fetch_available_features_from_target): Likewise.
1568 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
1569 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
1570 (xtensa_frame_cache): Likewise.
1571 (xtensa_frame_prev_register): Likewise.
1572 (xtensa_extract_return_value): Likewise.
1573
1574 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1575
1576 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
1577 (aarch64_make_stub_cache): Likewise.
1578 (value_of_aarch64_user_reg): Likewise.
1579 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
1580 (get_ada_inferior_data): Likewise.
1581 (get_ada_pspace_data): Likewise.
1582 (ada_pspace_data_cleanup): Likewise.
1583 (ada_complete_symbol_matcher): Likewise.
1584 (ada_exc_search_name_matches): Likewise.
1585 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
1586 (get_ada_tasks_inferior_data): Likewise.
1587 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
1588 (splay_obstack_alloc): Likewise.
1589 (splay_obstack_free): Likewise.
1590 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
1591 (alpha_linux_collect_gregset): Likewise.
1592 (alpha_linux_supply_fpregset): Likewise.
1593 (alpha_linux_collect_fpregset): Likewise.
1594 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
1595 * alpha-tdep.c (alpha_lds): Likewise.
1596 (alpha_sts): Likewise.
1597 (alpha_sigtramp_frame_unwind_cache): Likewise.
1598 (alpha_heuristic_frame_unwind_cache): Likewise.
1599 (alpha_supply_int_regs): Likewise.
1600 (alpha_fill_int_regs): Likewise.
1601 (alpha_supply_fp_regs): Likewise.
1602 (alpha_fill_fp_regs): Likewise.
1603 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
1604 (alphanbsd_aout_supply_gregset): Likewise.
1605 (alphanbsd_supply_gregset): Likewise.
1606 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
1607 (amd64_x32_linux_init_abi): Likewise.
1608 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
1609 (amd64_collect_native_gregset): Likewise.
1610 * amd64-tdep.c (amd64_frame_cache): Likewise.
1611 (amd64_sigtramp_frame_cache): Likewise.
1612 (amd64_epilogue_frame_cache): Likewise.
1613 (amd64_supply_fxsave): Likewise.
1614 (amd64_supply_xsave): Likewise.
1615 (amd64_collect_fxsave): Likewise.
1616 (amd64_collect_xsave): Likewise.
1617 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
1618 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
1619 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
1620 (arm_linux_collect_gregset): Likewise.
1621 (arm_linux_supply_nwfpe): Likewise.
1622 (arm_linux_collect_nwfpe): Likewise.
1623 (arm_linux_supply_vfp): Likewise.
1624 (arm_linux_collect_vfp): Likewise.
1625 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
1626 (arm_prologue_unwind_stop_reason): Likewise.
1627 (arm_prologue_this_id): Likewise.
1628 (arm_prologue_prev_register): Likewise.
1629 (arm_exidx_data_free): Likewise.
1630 (arm_find_exidx_entry): Likewise.
1631 (arm_stub_this_id): Likewise.
1632 (arm_m_exception_this_id): Likewise.
1633 (arm_m_exception_prev_register): Likewise.
1634 (arm_normal_frame_base): Likewise.
1635 (gdb_print_insn_arm): Likewise.
1636 (arm_objfile_data_free): Likewise.
1637 (arm_record_special_symbol): Likewise.
1638 (value_of_arm_user_reg): Likewise.
1639 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
1640 (armbsd_supply_gregset): Likewise.
1641 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
1642 (get_auto_load_pspace_data): Likewise.
1643 (hash_loaded_script_entry): Likewise.
1644 (eq_loaded_script_entry): Likewise.
1645 (clear_section_scripts): Likewise.
1646 (collect_matching_scripts): Likewise.
1647 * auxv.c (auxv_inferior_data_cleanup): Likewise.
1648 (get_auxv_inferior_data): Likewise.
1649 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
1650 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
1651 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1652 (target_bfd_xclose): Likewise.
1653 (target_bfd_get_section_table): Likewise.
1654 * bfin-tdep.c (bfin_frame_cache): Likewise.
1655 * block.c (find_block_in_blockvector): Likewise.
1656 (call_site_for_pc): Likewise.
1657 (block_find_non_opaque_type_preferred): Likewise.
1658 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
1659 (signal_catchpoint_remove_location): Likewise.
1660 (signal_catchpoint_breakpoint_hit): Likewise.
1661 (signal_catchpoint_print_one): Likewise.
1662 (signal_catchpoint_print_mention): Likewise.
1663 (signal_catchpoint_print_recreate): Likewise.
1664 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
1665 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
1666 (bp_location_compare_addrs): Likewise.
1667 (get_first_locp_gte_addr): Likewise.
1668 (check_tracepoint_command): Likewise.
1669 (do_map_commands_command): Likewise.
1670 (get_breakpoint_objfile_data): Likewise.
1671 (free_breakpoint_probes): Likewise.
1672 (do_captured_breakpoint_query): Likewise.
1673 (compare_breakpoints): Likewise.
1674 (bp_location_compare): Likewise.
1675 (bpstat_remove_breakpoint_callback): Likewise.
1676 (do_delete_breakpoint_cleanup): Likewise.
1677 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
1678 (bsd_uthread_set_collect_uthread): Likewise.
1679 (bsd_uthread_activate): Likewise.
1680 (bsd_uthread_fetch_registers): Likewise.
1681 (bsd_uthread_store_registers): Likewise.
1682 * btrace.c (check_xml_btrace_version): Likewise.
1683 (parse_xml_btrace_block): Likewise.
1684 (parse_xml_btrace_pt_config_cpu): Likewise.
1685 (parse_xml_btrace_pt_raw): Likewise.
1686 (parse_xml_btrace_pt): Likewise.
1687 (parse_xml_btrace_conf_bts): Likewise.
1688 (parse_xml_btrace_conf_pt): Likewise.
1689 (do_btrace_data_cleanup): Likewise.
1690 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
1691 * charset.c (cleanup_iconv): Likewise.
1692 (do_cleanup_iterator): Likewise.
1693 * cli-out.c (cli_uiout_dtor): Likewise.
1694 (cli_table_begin): Likewise.
1695 (cli_table_body): Likewise.
1696 (cli_table_end): Likewise.
1697 (cli_table_header): Likewise.
1698 (cli_begin): Likewise.
1699 (cli_end): Likewise.
1700 (cli_field_int): Likewise.
1701 (cli_field_skip): Likewise.
1702 (cli_field_string): Likewise.
1703 (cli_field_fmt): Likewise.
1704 (cli_spaces): Likewise.
1705 (cli_text): Likewise.
1706 (cli_message): Likewise.
1707 (cli_wrap_hint): Likewise.
1708 (cli_flush): Likewise.
1709 (cli_redirect): Likewise.
1710 (out_field_fmt): Likewise.
1711 (field_separator): Likewise.
1712 (cli_out_set_stream): Likewise.
1713 * cli/cli-cmds.c (compare_symtabs): Likewise.
1714 * cli/cli-dump.c (call_dump_func): Likewise.
1715 (restore_section_callback): Likewise.
1716 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
1717 (do_restore_user_call_depth): Likewise.
1718 (do_free_command_lines_cleanup): Likewise.
1719 * coff-pe-read.c (get_section_vmas): Likewise.
1720 (pe_as16): Likewise.
1721 (pe_as32): Likewise.
1722 * coffread.c (coff_symfile_read): Likewise.
1723 * common/agent.c (agent_look_up_symbols): Likewise.
1724 * common/filestuff.c (do_close_cleanup): Likewise.
1725 * common/format.c (free_format_pieces_cleanup): Likewise.
1726 * common/vec.c (vec_o_reserve): Likewise.
1727 * compile/compile-c-support.c (print_one_macro): Likewise.
1728 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
1729 (eq_symbol_error): Likewise.
1730 (del_symbol_error): Likewise.
1731 (error_symbol_once): Likewise.
1732 (gcc_convert_symbol): Likewise.
1733 (gcc_symbol_address): Likewise.
1734 (hash_symname): Likewise.
1735 (eq_symname): Likewise.
1736 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
1737 (eq_type_map_instance): Likewise.
1738 (insert_type): Likewise.
1739 (convert_type): Likewise.
1740 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
1741 (setup_sections): Likewise.
1742 (link_hash_table_free): Likewise.
1743 (copy_sections): Likewise.
1744 * compile/compile-object-run.c (do_module_cleanup): Likewise.
1745 * compile/compile.c (compile_print_value): Likewise.
1746 (do_rmdir): Likewise.
1747 (cleanup_compile_instance): Likewise.
1748 (cleanup_unlink_file): Likewise.
1749 * completer.c (free_completion_tracker): Likewise.
1750 * corelow.c (add_to_spuid_list): Likewise.
1751 * cp-namespace.c (reset_directive_searched): Likewise.
1752 * cp-support.c (reset_directive_searched): Likewise.
1753 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
1754 (cris_frame_unwind_cache): Likewise.
1755 * d-lang.c (builtin_d_type): Likewise.
1756 * d-namespace.c (reset_directive_searched): Likewise.
1757 * dbxread.c (dbx_free_symfile_info): Likewise.
1758 (do_free_bincl_list_cleanup): Likewise.
1759 * disasm.c (hash_dis_line_entry): Likewise.
1760 (eq_dis_line_entry): Likewise.
1761 (dis_asm_print_address): Likewise.
1762 (fprintf_disasm): Likewise.
1763 (do_ui_file_delete): Likewise.
1764 * doublest.c (convert_floatformat_to_doublest): Likewise.
1765 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
1766 (dummy_frame_prev_register): Likewise.
1767 (dummy_frame_this_id): Likewise.
1768 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
1769 (cache_eq): Likewise.
1770 (cache_find): Likewise.
1771 (tailcall_frame_this_id): Likewise.
1772 (dwarf2_tailcall_prev_register_first): Likewise.
1773 (tailcall_frame_prev_register): Likewise.
1774 (tailcall_frame_dealloc_cache): Likewise.
1775 (tailcall_frame_prev_arch): Likewise.
1776 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
1777 (dwarf2_frame_set_init_reg): Likewise.
1778 (dwarf2_frame_init_reg): Likewise.
1779 (dwarf2_frame_set_signal_frame_p): Likewise.
1780 (dwarf2_frame_signal_frame_p): Likewise.
1781 (dwarf2_frame_set_adjust_regnum): Likewise.
1782 (dwarf2_frame_adjust_regnum): Likewise.
1783 (clear_pointer_cleanup): Likewise.
1784 (dwarf2_frame_cache): Likewise.
1785 (find_cie): Likewise.
1786 (dwarf2_frame_find_fde): Likewise.
1787 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
1788 (free_dwarf_expr_context_cleanup): Likewise.
1789 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
1790 (locexpr_get_frame_base): Likewise.
1791 (loclist_find_frame_base_location): Likewise.
1792 (loclist_get_frame_base): Likewise.
1793 (dwarf_expr_dwarf_call): Likewise.
1794 (dwarf_expr_get_base_type): Likewise.
1795 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
1796 (dwarf_expr_get_obj_addr): Likewise.
1797 (entry_data_value_coerce_ref): Likewise.
1798 (entry_data_value_copy_closure): Likewise.
1799 (entry_data_value_free_closure): Likewise.
1800 (get_frame_address_in_block_wrapper): Likewise.
1801 (dwarf2_evaluate_property): Likewise.
1802 (dwarf2_compile_property_to_c): Likewise.
1803 (needs_frame_read_addr_from_reg): Likewise.
1804 (needs_frame_get_reg_value): Likewise.
1805 (needs_frame_frame_base): Likewise.
1806 (needs_frame_frame_cfa): Likewise.
1807 (needs_frame_tls_address): Likewise.
1808 (needs_frame_dwarf_call): Likewise.
1809 (needs_dwarf_reg_entry_value): Likewise.
1810 (get_ax_pc): Likewise.
1811 (locexpr_read_variable): Likewise.
1812 (locexpr_read_variable_at_entry): Likewise.
1813 (locexpr_read_needs_frame): Likewise.
1814 (locexpr_describe_location): Likewise.
1815 (locexpr_tracepoint_var_ref): Likewise.
1816 (locexpr_generate_c_location): Likewise.
1817 (loclist_read_variable): Likewise.
1818 (loclist_read_variable_at_entry): Likewise.
1819 (loclist_describe_location): Likewise.
1820 (loclist_tracepoint_var_ref): Likewise.
1821 (loclist_generate_c_location): Likewise.
1822 * dwarf2read.c (line_header_hash_voidp): Likewise.
1823 (line_header_eq_voidp): Likewise.
1824 (dwarf2_has_info): Likewise.
1825 (dwarf2_get_section_info): Likewise.
1826 (locate_dwz_sections): Likewise.
1827 (hash_file_name_entry): Likewise.
1828 (eq_file_name_entry): Likewise.
1829 (delete_file_name_entry): Likewise.
1830 (dw2_setup): Likewise.
1831 (dw2_get_file_names_reader): Likewise.
1832 (dw2_find_pc_sect_compunit_symtab): Likewise.
1833 (hash_signatured_type): Likewise.
1834 (eq_signatured_type): Likewise.
1835 (add_signatured_type_cu_to_table): Likewise.
1836 (create_debug_types_hash_table): Likewise.
1837 (lookup_dwo_signatured_type): Likewise.
1838 (lookup_dwp_signatured_type): Likewise.
1839 (lookup_signatured_type): Likewise.
1840 (hash_type_unit_group): Likewise.
1841 (eq_type_unit_group): Likewise.
1842 (get_type_unit_group): Likewise.
1843 (process_psymtab_comp_unit_reader): Likewise.
1844 (sort_tu_by_abbrev_offset): Likewise.
1845 (process_skeletonless_type_unit): Likewise.
1846 (psymtabs_addrmap_cleanup): Likewise.
1847 (dwarf2_read_symtab): Likewise.
1848 (psymtab_to_symtab_1): Likewise.
1849 (die_hash): Likewise.
1850 (die_eq): Likewise.
1851 (load_full_comp_unit_reader): Likewise.
1852 (reset_die_in_process): Likewise.
1853 (free_cu_line_header): Likewise.
1854 (handle_DW_AT_stmt_list): Likewise.
1855 (hash_dwo_file): Likewise.
1856 (eq_dwo_file): Likewise.
1857 (hash_dwo_unit): Likewise.
1858 (eq_dwo_unit): Likewise.
1859 (create_dwo_cu_reader): Likewise.
1860 (create_dwo_unit_in_dwp_v1): Likewise.
1861 (create_dwo_unit_in_dwp_v2): Likewise.
1862 (lookup_dwo_unit_in_dwp): Likewise.
1863 (dwarf2_locate_dwo_sections): Likewise.
1864 (dwarf2_locate_common_dwp_sections): Likewise.
1865 (dwarf2_locate_v2_dwp_sections): Likewise.
1866 (hash_dwp_loaded_cutus): Likewise.
1867 (eq_dwp_loaded_cutus): Likewise.
1868 (lookup_dwo_cutu): Likewise.
1869 (abbrev_table_free_cleanup): Likewise.
1870 (dwarf2_free_abbrev_table): Likewise.
1871 (find_partial_die_in_comp_unit): Likewise.
1872 (free_line_header_voidp): Likewise.
1873 (follow_die_offset): Likewise.
1874 (follow_die_sig_1): Likewise.
1875 (free_heap_comp_unit): Likewise.
1876 (free_stack_comp_unit): Likewise.
1877 (dwarf2_free_objfile): Likewise.
1878 (per_cu_offset_and_type_hash): Likewise.
1879 (per_cu_offset_and_type_eq): Likewise.
1880 (get_die_type_at_offset): Likewise.
1881 (partial_die_hash): Likewise.
1882 (partial_die_eq): Likewise.
1883 (dwarf2_per_objfile_free): Likewise.
1884 (hash_strtab_entry): Likewise.
1885 (eq_strtab_entry): Likewise.
1886 (add_string): Likewise.
1887 (hash_symtab_entry): Likewise.
1888 (eq_symtab_entry): Likewise.
1889 (delete_symtab_entry): Likewise.
1890 (cleanup_mapped_symtab): Likewise.
1891 (add_indices_to_cpool): Likewise.
1892 (hash_psymtab_cu_index): Likewise.
1893 (eq_psymtab_cu_index): Likewise.
1894 (add_address_entry_worker): Likewise.
1895 (unlink_if_set): Likewise.
1896 (write_one_signatured_type): Likewise.
1897 (save_gdb_index_command): Likewise.
1898 * elfread.c (elf_symtab_read): Likewise.
1899 (elf_gnu_ifunc_cache_hash): Likewise.
1900 (elf_gnu_ifunc_cache_eq): Likewise.
1901 (elf_gnu_ifunc_record_cache): Likewise.
1902 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1903 (elf_get_probes): Likewise.
1904 (probe_key_free): Likewise.
1905 * f-lang.c (builtin_f_type): Likewise.
1906 * frame-base.c (frame_base_append_sniffer): Likewise.
1907 (frame_base_set_default): Likewise.
1908 (frame_base_find_by_frame): Likewise.
1909 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
1910 (frame_unwind_append_unwinder): Likewise.
1911 (frame_unwind_find_by_frame): Likewise.
1912 * frame.c (frame_addr_hash): Likewise.
1913 (frame_addr_hash_eq): Likewise.
1914 (frame_stash_find): Likewise.
1915 (do_frame_register_read): Likewise.
1916 (unwind_to_current_frame): Likewise.
1917 (frame_cleanup_after_sniffer): Likewise.
1918 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
1919 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
1920 * ft32-tdep.c (ft32_frame_cache): Likewise.
1921 * gcore.c (do_bfd_delete_cleanup): Likewise.
1922 (gcore_create_callback): Likewise.
1923 * gdb_bfd.c (hash_bfd): Likewise.
1924 (eq_bfd): Likewise.
1925 (gdb_bfd_open): Likewise.
1926 (free_one_bfd_section): Likewise.
1927 (gdb_bfd_ref): Likewise.
1928 (gdb_bfd_unref): Likewise.
1929 (get_section_descriptor): Likewise.
1930 (gdb_bfd_map_section): Likewise.
1931 (gdb_bfd_crc): Likewise.
1932 (gdb_bfd_mark_parent): Likewise.
1933 (gdb_bfd_record_inclusion): Likewise.
1934 (gdb_bfd_requires_relocations): Likewise.
1935 (print_one_bfd): Likewise.
1936 * gdbtypes.c (type_pair_hash): Likewise.
1937 (type_pair_eq): Likewise.
1938 (builtin_type): Likewise.
1939 (objfile_type): Likewise.
1940 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
1941 (vtable_address_point_offset): Likewise.
1942 (gnuv3_get_vtable): Likewise.
1943 (hash_value_and_voffset): Likewise.
1944 (eq_value_and_voffset): Likewise.
1945 (compare_value_and_voffset): Likewise.
1946 (compute_vtable_size): Likewise.
1947 (gnuv3_get_typeid_type): Likewise.
1948 * go-lang.c (builtin_go_type): Likewise.
1949 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1950 (bkscm_eq_block_smob): Likewise.
1951 (bkscm_objfile_block_map): Likewise.
1952 (bkscm_del_objfile_blocks): Likewise.
1953 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1954 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1955 (gdbscm_disasm_print_address): Likewise.
1956 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1957 (frscm_eq_frame_smob): Likewise.
1958 (frscm_inferior_frame_map): Likewise.
1959 (frscm_del_inferior_frames): Likewise.
1960 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1961 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1962 (ofscm_objfile_smob_from_objfile): Likewise.
1963 * guile/scm-ports.c (ioscm_write): Likewise.
1964 (ioscm_file_port_delete): Likewise.
1965 (ioscm_file_port_rewind): Likewise.
1966 (ioscm_file_port_put): Likewise.
1967 (ioscm_file_port_write): Likewise.
1968 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1969 (psscm_pspace_smob_from_pspace): Likewise.
1970 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1971 (scscm_recording_unwind_handler): Likewise.
1972 (gdbscm_with_catch): Likewise.
1973 (scscm_call_0_body): Likewise.
1974 (scscm_call_1_body): Likewise.
1975 (scscm_call_2_body): Likewise.
1976 (scscm_call_3_body): Likewise.
1977 (scscm_call_4_body): Likewise.
1978 (scscm_apply_1_body): Likewise.
1979 (scscm_eval_scheme_string): Likewise.
1980 (gdbscm_safe_eval_string): Likewise.
1981 (scscm_source_scheme_script): Likewise.
1982 (gdbscm_safe_source_script): Likewise.
1983 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1984 (gdbscm_call_scm_from_stringn): Likewise.
1985 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1986 (syscm_eq_symbol_smob): Likewise.
1987 (syscm_get_symbol_map): Likewise.
1988 (syscm_del_objfile_symbols): Likewise.
1989 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1990 (stscm_eq_symtab_smob): Likewise.
1991 (stscm_objfile_symtab_map): Likewise.
1992 (stscm_del_objfile_symtabs): Likewise.
1993 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1994 (tyscm_eq_type_smob): Likewise.
1995 (tyscm_type_map): Likewise.
1996 (tyscm_copy_type_recursive): Likewise.
1997 (save_objfile_types): Likewise.
1998 * guile/scm-utils.c (extract_arg): Likewise.
1999 * h8300-tdep.c (h8300_frame_cache): Likewise.
2000 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
2001 * hppa-tdep.c (compare_unwind_entries): Likewise.
2002 (find_unwind_entry): Likewise.
2003 (hppa_frame_cache): Likewise.
2004 (hppa_stub_frame_unwind_cache): Likewise.
2005 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
2006 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
2007 (hppaobsd_supply_fpregset): Likewise.
2008 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2009 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
2010 * i386-tdep.c (i386_frame_cache): Likewise.
2011 (i386_epilogue_frame_cache): Likewise.
2012 (i386_sigtramp_frame_cache): Likewise.
2013 (i386_supply_gregset): Likewise.
2014 (i386_collect_gregset): Likewise.
2015 (i386_gdbarch_init): Likewise.
2016 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
2017 (i386obsd_trapframe_cache): Likewise.
2018 * i387-tdep.c (i387_supply_fsave): Likewise.
2019 (i387_collect_fsave): Likewise.
2020 (i387_supply_fxsave): Likewise.
2021 (i387_collect_fxsave): Likewise.
2022 (i387_supply_xsave): Likewise.
2023 (i387_collect_xsave): Likewise.
2024 * ia64-tdep.c (ia64_frame_cache): Likewise.
2025 (ia64_sigtramp_frame_cache): Likewise.
2026 * infcmd.c (attach_command_continuation): Likewise.
2027 (attach_command_continuation_free_args): Likewise.
2028 * inferior.c (restore_inferior): Likewise.
2029 (delete_thread_of_inferior): Likewise.
2030 * inflow.c (inflow_inferior_data_cleanup): Likewise.
2031 (get_inflow_inferior_data): Likewise.
2032 (inflow_inferior_exit): Likewise.
2033 * infrun.c (displaced_step_clear_cleanup): Likewise.
2034 (restore_current_uiout_cleanup): Likewise.
2035 (release_stop_context_cleanup): Likewise.
2036 (do_restore_infcall_suspend_state_cleanup): Likewise.
2037 (do_restore_infcall_control_state_cleanup): Likewise.
2038 (restore_inferior_ptid): Likewise.
2039 * inline-frame.c (block_starting_point_at): Likewise.
2040 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
2041 * jit.c (get_jit_objfile_data): Likewise.
2042 (get_jit_program_space_data): Likewise.
2043 (jit_object_close_impl): Likewise.
2044 (jit_find_objf_with_entry_addr): Likewise.
2045 (jit_breakpoint_deleted): Likewise.
2046 (jit_unwind_reg_set_impl): Likewise.
2047 (jit_unwind_reg_get_impl): Likewise.
2048 (jit_dealloc_cache): Likewise.
2049 (jit_frame_sniffer): Likewise.
2050 (jit_frame_prev_register): Likewise.
2051 (jit_prepend_unwinder): Likewise.
2052 (jit_inferior_exit_hook): Likewise.
2053 (free_objfile_data): Likewise.
2054 * jv-lang.c (jv_per_objfile_free): Likewise.
2055 (get_dynamics_objfile): Likewise.
2056 (get_java_class_symtab): Likewise.
2057 (builtin_java_type): Likewise.
2058 * language.c (language_string_char_type): Likewise.
2059 (language_bool_type): Likewise.
2060 (language_lookup_primitive_type): Likewise.
2061 (language_lookup_primitive_type_as_symbol): Likewise.
2062 * linespec.c (hash_address_entry): Likewise.
2063 (eq_address_entry): Likewise.
2064 (iterate_inline_only): Likewise.
2065 (iterate_name_matcher): Likewise.
2066 (decode_line_2_compare_items): Likewise.
2067 (collect_one_symbol): Likewise.
2068 (compare_symbols): Likewise.
2069 (compare_msymbols): Likewise.
2070 (add_symtabs_to_list): Likewise.
2071 (collect_symbols): Likewise.
2072 (compare_msyms): Likewise.
2073 (add_minsym): Likewise.
2074 (cleanup_linespec_result): Likewise.
2075 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
2076 * linux-nat.c (delete_lwp_cleanup): Likewise.
2077 (count_events_callback): Likewise.
2078 (select_event_lwp_callback): Likewise.
2079 (resume_stopped_resumed_lwps): Likewise.
2080 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
2081 (invalidate_linux_cache_inf): Likewise.
2082 (get_linux_inferior_data): Likewise.
2083 (linux_find_memory_regions_thunk): Likewise.
2084 (linux_make_mappings_callback): Likewise.
2085 (linux_corefile_thread_callback): Likewise.
2086 (find_mapping_size): Likewise.
2087 * linux-thread-db.c (find_new_threads_callback): Likewise.
2088 * lm32-tdep.c (lm32_frame_cache): Likewise.
2089 * m2-lang.c (builtin_m2_type): Likewise.
2090 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
2091 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
2092 (m32r_linux_supply_gregset): Likewise.
2093 (m32r_linux_collect_gregset): Likewise.
2094 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2095 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2096 * m68k-tdep.c (m68k_frame_cache): Likewise.
2097 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
2098 (m68kbsd_supply_gregset): Likewise.
2099 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
2100 * m88k-tdep.c (m88k_frame_cache): Likewise.
2101 (m88k_supply_gregset): Likewise.
2102
2103 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2104
2105 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
2106 to allocation result assignment.
2107 * ada-exp.y (write_object_renaming): Likewise.
2108 (write_ambiguous_var): Likewise.
2109 (ada_nget_field_index): Likewise.
2110 (write_var_or_type): Likewise.
2111 * ada-lang.c (ada_decode_symbol): Likewise.
2112 (ada_value_assign): Likewise.
2113 (value_pointer): Likewise.
2114 (cache_symbol): Likewise.
2115 (add_nonlocal_symbols): Likewise.
2116 (ada_name_for_lookup): Likewise.
2117 (symbol_completion_add): Likewise.
2118 (ada_to_fixed_type_1): Likewise.
2119 (ada_get_next_arg): Likewise.
2120 (defns_collected): Likewise.
2121 * ada-lex.l (processId): Likewise.
2122 (processString): Likewise.
2123 * ada-tasks.c (read_known_tasks_array): Likewise.
2124 (read_known_tasks_list): Likewise.
2125 * ada-typeprint.c (decoded_type_name): Likewise.
2126 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
2127 * amd64-tdep.c (amd64_push_arguments): Likewise.
2128 (amd64_displaced_step_copy_insn): Likewise.
2129 (amd64_classify_insn_at): Likewise.
2130 (amd64_relocate_instruction): Likewise.
2131 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2132 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
2133 (initialize_current_architecture): Likewise.
2134 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2135 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
2136 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
2137 (arm_push_dummy_call): Likewise.
2138 (extend_buffer_earlier): Likewise.
2139 (arm_adjust_breakpoint_address): Likewise.
2140 (arm_skip_stub): Likewise.
2141 * auto-load.c (filename_is_in_pattern): Likewise.
2142 (maybe_add_script_file): Likewise.
2143 (maybe_add_script_text): Likewise.
2144 (auto_load_objfile_script_1): Likewise.
2145 * auxv.c (ld_so_xfer_auxv): Likewise.
2146 * ax-general.c (new_agent_expr): Likewise.
2147 (grow_expr): Likewise.
2148 (ax_reg_mask): Likewise.
2149 * bcache.c (bcache_full): Likewise.
2150 * breakpoint.c (program_breakpoint_here_p): Likewise.
2151 * btrace.c (parse_xml_raw): Likewise.
2152 * build-id.c (build_id_to_debug_bfd): Likewise.
2153 * buildsym.c (end_symtab_with_blockvector): Likewise.
2154 * c-exp.y (string_exp): Likewise.
2155 (qualified_name): Likewise.
2156 (write_destructor_name): Likewise.
2157 (operator_stoken): Likewise.
2158 (parse_number): Likewise.
2159 (scan_macro_expansion): Likewise.
2160 (yylex): Likewise.
2161 (c_print_token): Likewise.
2162 * c-lang.c (c_get_string): Likewise.
2163 (emit_numeric_character): Likewise.
2164 * charset.c (wchar_iterate): Likewise.
2165 * cli/cli-cmds.c (complete_command): Likewise.
2166 (make_command): Likewise.
2167 * cli/cli-dump.c (restore_section_callback): Likewise.
2168 (restore_binary_file): Likewise.
2169 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
2170 * cli/cli-script.c (execute_control_command): Likewise.
2171 * cli/cli-setshow.c (do_set_command): Likewise.
2172 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2173 (read_pe_exported_syms): Likewise.
2174 * coffread.c (coff_read_struct_type): Likewise.
2175 (coff_read_enum_type): Likewise.
2176 * common/btrace-common.c (btrace_data_append): Likewise.
2177 * common/buffer.c (buffer_grow): Likewise.
2178 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
2179 * common/format.c (parse_format_string): Likewise.
2180 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
2181 * common/xml-utils.c (xml_escape_text): Likewise.
2182 * compile/compile-object-load.c (copy_sections): Likewise.
2183 (compile_object_load): Likewise.
2184 * compile/compile-object-run.c (compile_object_run): Likewise.
2185 * completer.c (filename_completer): Likewise.
2186 * corefile.c (read_memory_typed_address): Likewise.
2187 (write_memory_unsigned_integer): Likewise.
2188 (write_memory_signed_integer): Likewise.
2189 (complete_set_gnutarget): Likewise.
2190 * corelow.c (get_core_register_section): Likewise.
2191 * cp-name-parser.y (d_grab): Likewise.
2192 (allocate_info): Likewise.
2193 (cp_new_demangle_parse_info): Likewise.
2194 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
2195 (cp_lookup_symbol_in_namespace): Likewise.
2196 (lookup_namespace_scope): Likewise.
2197 (find_symbol_in_baseclass): Likewise.
2198 (cp_lookup_nested_symbol): Likewise.
2199 (cp_lookup_transparent_type_loop): Likewise.
2200 * cp-support.c (copy_string_to_obstack): Likewise.
2201 (make_symbol_overload_list): Likewise.
2202 (make_symbol_overload_list_namespace): Likewise.
2203 (make_symbol_overload_list_adl_namespace): Likewise.
2204 (first_component_command): Likewise.
2205 * cp-valprint.c (cp_print_value): Likewise.
2206 * ctf.c (ctf_xfer_partial): Likewise.
2207 * d-exp.y (StringExp): Likewise.
2208 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
2209 (lookup_module_scope): Likewise.
2210 (find_symbol_in_baseclass): Likewise.
2211 (d_lookup_nested_symbol): Likewise.
2212 * dbxread.c (find_stab_function_addr): Likewise.
2213 (read_dbx_symtab): Likewise.
2214 (dbx_end_psymtab): Likewise.
2215 (cp_set_block_scope): Likewise.
2216 * dcache.c (dcache_alloc): Likewise.
2217 * demangle.c (_initialize_demangler): Likewise.
2218 * dicos-tdep.c (dicos_load_module_p): Likewise.
2219 * dictionary.c (dict_create_hashed_expandable): Likewise.
2220 (dict_create_linear_expandable): Likewise.
2221 (expand_hashtable): Likewise.
2222 (add_symbol_linear_expandable): Likewise.
2223 * dwarf2-frame.c (add_cie): Likewise.
2224 (add_fde): Likewise.
2225 (dwarf2_build_frame_info): Likewise.
2226 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
2227 (dwarf_expr_fetch_address): Likewise.
2228 (add_piece): Likewise.
2229 (execute_stack_op): Likewise.
2230 * dwarf2loc.c (chain_candidate): Likewise.
2231 (dwarf_entry_parameter_to_value): Likewise.
2232 (read_pieced_value): Likewise.
2233 (write_pieced_value): Likewise.
2234 * dwarf2read.c (dwarf2_read_section): Likewise.
2235 (add_type_unit): Likewise.
2236 (read_comp_units_from_section): Likewise.
2237 (fixup_go_packaging): Likewise.
2238 (dwarf2_compute_name): Likewise.
2239 (dwarf2_physname): Likewise.
2240 (create_dwo_unit_in_dwp_v1): Likewise.
2241 (create_dwo_unit_in_dwp_v2): Likewise.
2242 (read_func_scope): Likewise.
2243 (read_call_site_scope): Likewise.
2244 (dwarf2_attach_fields_to_type): Likewise.
2245 (process_structure_scope): Likewise.
2246 (mark_common_block_symbol_computed): Likewise.
2247 (read_common_block): Likewise.
2248 (abbrev_table_read_table): Likewise.
2249 (guess_partial_die_structure_name): Likewise.
2250 (fixup_partial_die): Likewise.
2251 (add_file_name): Likewise.
2252 (dwarf2_const_value_data): Likewise.
2253 (dwarf2_const_value_attr): Likewise.
2254 (build_error_marker_type): Likewise.
2255 (guess_full_die_structure_name): Likewise.
2256 (anonymous_struct_prefix): Likewise.
2257 (typename_concat): Likewise.
2258 (dwarf2_canonicalize_name): Likewise.
2259 (dwarf2_name): Likewise.
2260 (write_constant_as_bytes): Likewise.
2261 (dwarf2_fetch_constant_bytes): Likewise.
2262 (copy_string): Likewise.
2263 (parse_macro_definition): Likewise.
2264 * elfread.c (elf_symfile_segments): Likewise.
2265 (elf_rel_plt_read): Likewise.
2266 (elf_gnu_ifunc_resolve_by_cache): Likewise.
2267 (elf_gnu_ifunc_resolve_by_got): Likewise.
2268 (elf_read_minimal_symbols): Likewise.
2269 (elf_gnu_ifunc_record_cache): Likewise.
2270 * event-top.c (top_level_prompt): Likewise.
2271 (command_line_handler): Likewise.
2272 * exec.c (resize_section_table): Likewise.
2273 * expprint.c (print_subexp_standard): Likewise.
2274 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
2275 * findcmd.c (parse_find_args): Likewise.
2276 * findvar.c (address_from_register): Likewise.
2277 * frame.c (get_prev_frame_always): Likewise.
2278 * gdb_bfd.c (gdb_bfd_ref): Likewise.
2279 (get_section_descriptor): Likewise.
2280 * gdb_obstack.c (obconcat): Likewise.
2281 (obstack_strdup): Likewise.
2282 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
2283 (create_set_type): Likewise.
2284 (lookup_unsigned_typename): Likewise.
2285 (lookup_signed_typename): Likewise.
2286 (resolve_dynamic_union): Likewise.
2287 (resolve_dynamic_struct): Likewise.
2288 (add_dyn_prop): Likewise.
2289 (copy_dynamic_prop_list): Likewise.
2290 (arch_flags_type): Likewise.
2291 (append_composite_type_field_raw): Likewise.
2292 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
2293 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
2294 * go-exp.y (string_exp): Likewise.
2295 * go-lang.c (go_demangle): Likewise.
2296 * guile/guile.c (compute_scheme_string): Likewise.
2297 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2298 (gdbscm_canonicalize_command_name): Likewise.
2299 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
2300 (ioscm_init_memory_port): Likewise.
2301 (ioscm_reinit_memory_port): Likewise.
2302 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
2303 (gdbscm_gc_dup_argv): Likewise.
2304 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2305 * hppa-tdep.c (internalize_unwinds): Likewise.
2306 (read_unwind_info): Likewise.
2307 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
2308 (windows_core_xfer_shared_libraries): Likewise.
2309 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
2310 (i386_stap_parse_special_token_triplet): Likewise.
2311 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2312 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2313 * inf-child.c (inf_child_fileio_readlink): Likewise.
2314 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
2315 (inf_ptrace_store_register): Likewise.
2316 * infrun.c (follow_exec): Likewise.
2317 (displaced_step_prepare_throw): Likewise.
2318 (save_stop_context): Likewise.
2319 (save_infcall_suspend_state): Likewise.
2320 * jit.c (jit_read_descriptor): Likewise.
2321 (jit_read_code_entry): Likewise.
2322 (jit_symtab_line_mapping_add_impl): Likewise.
2323 (finalize_symtab): Likewise.
2324 (jit_unwind_reg_get_impl): Likewise.
2325 * jv-exp.y (QualifiedName): Likewise.
2326 * jv-lang.c (get_java_utf8_name): Likewise.
2327 (type_from_class): Likewise.
2328 (java_demangle_type_signature): Likewise.
2329 (java_class_name_from_physname): Likewise.
2330 * jv-typeprint.c (java_type_print_base): Likewise.
2331 * jv-valprint.c (java_value_print): Likewise.
2332 * language.c (add_language): Likewise.
2333 * linespec.c (add_sal_to_sals_basic): Likewise.
2334 (add_sal_to_sals): Likewise.
2335 (decode_objc): Likewise.
2336 (find_linespec_symbols): Likewise.
2337 * linux-fork.c (fork_save_infrun_state): Likewise.
2338 * linux-nat.c (linux_nat_detach): Likewise.
2339 (linux_nat_fileio_readlink): Likewise.
2340 * linux-record.c (record_linux_sockaddr): Likewise.
2341 (record_linux_msghdr): Likewise.
2342 (Do): Likewise.
2343 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
2344 (linux_collect_regset_section_cb): Likewise.
2345 (linux_get_siginfo_data): Likewise.
2346 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
2347 (try_thread_db_load_from_dir): Likewise.
2348 (thread_db_load_search): Likewise.
2349 (info_auto_load_libthread_db): Likewise.
2350 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
2351 (m32c_m16c_pointer_to_address): Likewise.
2352 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
2353 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2354 * machoread.c (macho_check_dsym): Likewise.
2355 * macroexp.c (resize_buffer): Likewise.
2356 (gather_arguments): Likewise.
2357 (maybe_expand): Likewise.
2358 * macrotab.c (new_macro_key): Likewise.
2359 (new_source_file): Likewise.
2360 (new_macro_definition): Likewise.
2361 * mdebugread.c (parse_symbol): Likewise.
2362 (parse_type): Likewise.
2363 (parse_partial_symbols): Likewise.
2364 (psymtab_to_symtab_1): Likewise.
2365 * mem-break.c (default_memory_insert_breakpoint): Likewise.
2366 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
2367 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2368 (mi_cmd_data_read_memory_bytes): Likewise.
2369 (mi_cmd_data_write_memory_bytes): Likewise.
2370 (mi_cmd_trace_frame_collected): Likewise.
2371 * mi/mi-parse.c (mi_parse_argv): Likewise.
2372 (mi_parse): Likewise.
2373 * minidebug.c (lzma_open): Likewise.
2374 (lzma_pread): Likewise.
2375 * mips-tdep.c (mips_read_fp_register_single): Likewise.
2376 (mips_print_fp_register): Likewise.
2377 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2378 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2379 * mt-tdep.c (mt_register_name): Likewise.
2380 (mt_registers_info): Likewise.
2381 (mt_push_dummy_call): Likewise.
2382 * namespace.c (add_using_directive): Likewise.
2383 * nat/linux-btrace.c (perf_event_read): Likewise.
2384 (linux_enable_bts): Likewise.
2385 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
2386 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
2387 * nto-tdep.c (nto_find_and_open_solib): Likewise.
2388 (nto_parse_redirection): Likewise.
2389 * objc-lang.c (objc_demangle): Likewise.
2390 (find_methods): Likewise.
2391 * objfiles.c (get_objfile_bfd_data): Likewise.
2392 (set_objfile_main_name): Likewise.
2393 (allocate_objfile): Likewise.
2394 (objfile_relocate): Likewise.
2395 (update_section_map): Likewise.
2396 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
2397 * p-exp.y (exp): Likewise.
2398 (yylex): Likewise.
2399 * p-valprint.c (pascal_object_print_value): Likewise.
2400 * parse.c (initialize_expout): Likewise.
2401 (mark_completion_tag): Likewise.
2402 (copy_name): Likewise.
2403 (parse_float): Likewise.
2404 (type_stack_reserve): Likewise.
2405 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2406 (ppu2spu_prev_register): Likewise.
2407 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
2408 * printcmd.c (printf_wide_c_string): Likewise.
2409 (printf_pointer): Likewise.
2410 * probe.c (parse_probes): Likewise.
2411 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2412 (cmdpy_init): Likewise.
2413 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
2414 * python/py-symtab.c (set_sal): Likewise.
2415 * python/py-unwind.c (pyuw_sniffer): Likewise.
2416 * python/python.c (python_interactive_command): Likewise.
2417 (compute_python_string): Likewise.
2418 * ravenscar-thread.c (get_running_thread_id): Likewise.
2419 * record-full.c (record_full_exec_insn): Likewise.
2420 (record_full_core_open_1): Likewise.
2421 * regcache.c (regcache_raw_read_signed): Likewise.
2422 (regcache_raw_read_unsigned): Likewise.
2423 (regcache_cooked_read_signed): Likewise.
2424 (regcache_cooked_read_unsigned): Likewise.
2425 * remote-fileio.c (remote_fileio_func_open): Likewise.
2426 (remote_fileio_func_rename): Likewise.
2427 (remote_fileio_func_unlink): Likewise.
2428 (remote_fileio_func_stat): Likewise.
2429 (remote_fileio_func_system): Likewise.
2430 * remote-mips.c (mips_xfer_memory): Likewise.
2431 (mips_load_srec): Likewise.
2432 (pmon_end_download): Likewise.
2433 * remote.c (new_remote_state): Likewise.
2434 (map_regcache_remote_table): Likewise.
2435 (remote_register_number_and_offset): Likewise.
2436 (init_remote_state): Likewise.
2437 (get_memory_packet_size): Likewise.
2438 (remote_pass_signals): Likewise.
2439 (remote_program_signals): Likewise.
2440 (remote_start_remote): Likewise.
2441 (remote_check_symbols): Likewise.
2442 (remote_query_supported): Likewise.
2443 (extended_remote_attach): Likewise.
2444 (process_g_packet): Likewise.
2445 (store_registers_using_G): Likewise.
2446 (putpkt_binary): Likewise.
2447 (read_frame): Likewise.
2448 (compare_sections_command): Likewise.
2449 (remote_hostio_pread): Likewise.
2450 (remote_hostio_readlink): Likewise.
2451 (remote_file_put): Likewise.
2452 (remote_file_get): Likewise.
2453 (remote_pid_to_exec_file): Likewise.
2454 (_initialize_remote): Likewise.
2455 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2456 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2457 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
2458 (bfd_uses_spe_extensions): Likewise.
2459 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
2460 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
2461 * solib-dsbt.c (decode_loadmap): Likewise.
2462 (fetch_loadmap): Likewise.
2463 (scan_dyntag): Likewise.
2464 (enable_break): Likewise.
2465 (dsbt_relocate_main_executable): Likewise.
2466 * solib-frv.c (fetch_loadmap): Likewise.
2467 (enable_break2): Likewise.
2468 (frv_relocate_main_executable): Likewise.
2469 * solib-spu.c (spu_relocate_main_executable): Likewise.
2470 (spu_bfd_open): Likewise.
2471 * solib-svr4.c (lm_info_read): Likewise.
2472 (read_program_header): Likewise.
2473 (find_program_interpreter): Likewise.
2474 (scan_dyntag): Likewise.
2475 (elf_locate_base): Likewise.
2476 (open_symbol_file_object): Likewise.
2477 (read_program_headers_from_bfd): Likewise.
2478 (svr4_relocate_main_executable): Likewise.
2479 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
2480 * solib.c (solib_find_1): Likewise.
2481 (exec_file_find): Likewise.
2482 (solib_find): Likewise.
2483 * source.c (openp): Likewise.
2484 (print_source_lines_base): Likewise.
2485 (forward_search_command): Likewise.
2486 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
2487 * spu-tdep.c (spu2ppu_prev_register): Likewise.
2488 (spu_get_overlay_table): Likewise.
2489 * stabsread.c (patch_block_stabs): Likewise.
2490 (define_symbol): Likewise.
2491 (again:): Likewise.
2492 (read_member_functions): Likewise.
2493 (read_one_struct_field): Likewise.
2494 (read_enum_type): Likewise.
2495 (common_block_start): Likewise.
2496 * stack.c (read_frame_arg): Likewise.
2497 (backtrace_command): Likewise.
2498 * stap-probe.c (stap_parse_register_operand): Likewise.
2499 * symfile.c (syms_from_objfile_1): Likewise.
2500 (find_separate_debug_file): Likewise.
2501 (load_command): Likewise.
2502 (load_progress): Likewise.
2503 (load_section_callback): Likewise.
2504 (reread_symbols): Likewise.
2505 (add_filename_language): Likewise.
2506 (allocate_compunit_symtab): Likewise.
2507 (read_target_long_array): Likewise.
2508 (simple_read_overlay_table): Likewise.
2509 * symtab.c (symbol_set_names): Likewise.
2510 (resize_symbol_cache): Likewise.
2511 (rbreak_command): Likewise.
2512 (completion_list_add_name): Likewise.
2513 (completion_list_objc_symbol): Likewise.
2514 (add_filename_to_list): Likewise.
2515 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
2516 * target-memory.c (target_write_memory_blocks): Likewise.
2517 * target.c (target_read_string): Likewise.
2518 (read_whatever_is_readable): Likewise.
2519 (target_read_alloc_1): Likewise.
2520 (simple_search_memory): Likewise.
2521 (target_fileio_read_alloc_1): Likewise.
2522 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2523 * top.c (command_line_input): Likewise.
2524 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
2525 * tracefile.c (tracefile_fetch_registers): Likewise.
2526 * tracepoint.c (add_memrange): Likewise.
2527 (init_collection_list): Likewise.
2528 (add_aexpr): Likewise.
2529 (trace_dump_actions): Likewise.
2530 (parse_trace_status): Likewise.
2531 (parse_tracepoint_definition): Likewise.
2532 (parse_tsv_definition): Likewise.
2533 (parse_static_tracepoint_marker_definition): Likewise.
2534 * tui/tui-file.c (tui_sfileopen): Likewise.
2535 (tui_file_adjust_strbuf): Likewise.
2536 * tui/tui-io.c (tui_expand_tabs): Likewise.
2537 * tui/tui-source.c (tui_set_source_content): Likewise.
2538 * typeprint.c (find_global_typedef): Likewise.
2539 * ui-file.c (do_ui_file_xstrdup): Likewise.
2540 (ui_file_obsavestring): Likewise.
2541 (mem_file_write): Likewise.
2542 * utils.c (make_hex_string): Likewise.
2543 (get_regcomp_error): Likewise.
2544 (puts_filtered_tabular): Likewise.
2545 (gdb_realpath_keepfile): Likewise.
2546 (ldirname): Likewise.
2547 (gdb_bfd_errmsg): Likewise.
2548 (substitute_path_component): Likewise.
2549 * valops.c (search_struct_method): Likewise.
2550 (find_oload_champ_namespace_loop): Likewise.
2551 * valprint.c (print_decimal_chars): Likewise.
2552 (read_string): Likewise.
2553 (generic_emit_char): Likewise.
2554 * varobj.c (varobj_delete): Likewise.
2555 (varobj_value_get_print_value): Likewise.
2556 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
2557 * windows-tdep.c (display_one_tib): Likewise.
2558 * xcoffread.c (read_xcoff_symtab): Likewise.
2559 (process_xcoff_symbol): Likewise.
2560 (swap_sym): Likewise.
2561 (scan_xcoff_symtab): Likewise.
2562 (xcoff_initial_scan): Likewise.
2563 * xml-support.c (gdb_xml_end_element): Likewise.
2564 (xml_process_xincludes): Likewise.
2565 (xml_fetch_content_from_file): Likewise.
2566 * xml-syscall.c (xml_list_of_syscalls): Likewise.
2567 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2568
2569 2015-09-23 James Bowman <james.bowman@ftdichip.com>
2570
2571 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
2572 instead of builtin_func_ptr.
2573 (ft32_pointer_to_address): New function.
2574 (ft32_address_class_type_flags): New function.
2575 (ft32_address_class_type_flags_to_name): New function.
2576 (ft32_address_class_name_to_type_flags): New function.
2577 (ft32_gdbarch_init): Set tdep->pc_type. Call
2578 set_gdbarch_pointer_to_address,
2579 set_gdbarch_address_class_type_flags
2580 set_gdbarch_address_class_name_to_type_flags,
2581 and set_gdbarch_address_class_type_flags_to_name.
2582 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
2583
2584 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
2585
2586 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
2587 value is a reference, actually dereference it in order to get
2588 the underlying value.
2589
2590 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
2591
2592 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
2593
2594 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
2595
2596 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
2597 * linespec.c (linespec_lexer_lex_string): Same.
2598
2599 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2600
2601 * NEWS: Mention support for fast tracepoints on aarch64-linux.
2602
2603 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2604
2605 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
2606 variable. Call aarch64_decode_adr instead of
2607 aarch64_decode_adrp.
2608 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
2609 (aarch64_decode_adr): New function declaration.
2610 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
2611 (aarch64_decode_adr): New function, factored out from
2612 aarch64_decode_adrp to decode both adr and adrp instructions.
2613
2614 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
2615
2616 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
2617 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
2618 (aarch64-insn.o): New rule.
2619 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
2620 (aarch64*-*-linux*): Likewise.
2621 * arch/aarch64-insn.c: New file.
2622 * arch/aarch64-insn.h: New file.
2623 * aarch64-tdep.c: Include arch/aarch64-insn.h.
2624 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
2625 arch/aarch64-insn.h.
2626 (decode_add_sub_imm): Rename to ...
2627 (aarch64_decode_add_sub_imm): ... this.
2628 (decode_adrp): Rename to ...
2629 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
2630 Declare in arch/aarch64-insn.h.
2631 (decode_b): Rename to ...
2632 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
2633 Declare in arch/aarch64-insn.h.
2634 (decode_bcond): Rename to ...
2635 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
2636 Declare in arch/aarch64-insn.h.
2637 (decode_br): Rename to ...
2638 (aarch64_decode_br): ... this.
2639 (decode_cb): Rename to ...
2640 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
2641 Declare in arch/aarch64-insn.h.
2642 (decode_eret): Rename to ...
2643 (aarch64_decode_eret): ... this.
2644 (decode_movz): Rename to ...
2645 (aarch64_decode_movz): ... this.
2646 (decode_orr_shifted_register_x): Rename to ...
2647 (aarch64_decode_orr_shifted_register_x): ... this.
2648 (decode_ret): Rename to ...
2649 (aarch64_decode_ret): ... this.
2650 (decode_stp_offset): Rename to ...
2651 (aarch64_decode_stp_offset): ... this.
2652 (decode_stp_offset_wb): Rename to ...
2653 (aarch64_decode_stp_offset_wb): ... this.
2654 (decode_stur): Rename to ...
2655 (aarch64_decode_stur): ... this.
2656 (decode_tb): Rename to ...
2657 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
2658 Declare in arch/aarch64-insn.h.
2659 (aarch64_analyze_prologue): Adjust calls to renamed functions.
2660
2661 2015-09-20 Doug Evans <xdje42@gmail.com>
2662
2663 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
2664
2665 2015-09-20 Doug Evans <xdje42@gmail.com>
2666
2667 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
2668 variable name that collides with a parameter.
2669
2670 2015-09-20 Joel Brobecker <brobecker@adacore.com>
2671
2672 * dwarf2loc.c (locexpr_get_frame_base): Renames
2673 block_op_get_frame_base.
2674 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
2675 block_op_get_frame_base by reference to locexpr_get_frame_base.
2676 (loclist_get_frame_base): New function, near identical copy of
2677 locexpr_get_frame_base.
2678 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
2679 block_op_get_frame_base by reference to loclist_get_frame_base.
2680
2681 2015-09-19 Doug Evans <xdje42@gmail.com>
2682
2683 * ravenscar-thread.c (ravenscar_inferior_created): Replace
2684 current_inferior ()->gdbarch with its wrapper target_gdbarch.
2685
2686 2015-09-18 Doug Evans <xdje42@gmail.com>
2687
2688 * linux-thread-db.c (record_thread): Return the created thread.
2689 (thread_from_lwp): Likewise.
2690 (thread_db_get_thread_local_address): Update.
2691
2692 2015-09-18 Doug Evans <xdje42@gmail.com>
2693
2694 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
2695 move only member demangled_name up. All uses updated.
2696
2697 2015-09-18 Doug Evans <xdje42@gmail.com>
2698
2699 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
2700 kind of minimal symbol in the error message.
2701 * objfiles.c (objfile_flavour_name): New function.
2702 * objfiles.h (objfile_flavour_name): Declare.
2703
2704 2015-09-18 Yao Qi <yao.qi@linaro.org>
2705
2706 * nat/aarch64-linux.c: Include elf/common.h,
2707 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
2708 (aarch64_ps_get_thread_area): New function.
2709 * nat/aarch64-linux.h: Include gdb_proc_service.h.
2710 (aarch64_ps_get_thread_area): Declare.
2711 * aarch64-linux-nat.c (ps_get_thread_area): Call
2712 aarch64_ps_get_thread_area.
2713
2714 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2715
2716 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
2717
2718 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2719
2720 * NEWS: Announce new scheduler-locking mode.
2721 * infrun.c (schedlock_replay): New.
2722 (scheduler_enums): Add schedlock_replay.
2723 (scheduler_mode): Change default to schedlock_replay.
2724 (user_visible_resume_ptid): Handle schedlock_replay.
2725 (clear_proceed_status_thread): Stop replaying if resumed thread is
2726 not replaying.
2727 (schedlock_applies): Handle schedlock_replay.
2728 (_initialize_infrun): Document new scheduler-locking mode.
2729 * record-btrace.c (record_btrace_resume): Remove code to stop other
2730 threads when not replaying the resumed thread.
2731
2732 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2733
2734 * record-btrace.c ((record_btrace_will_replay): New.
2735 (init_record_btrace_ops): Initialize to_record_will_replay.
2736 * record-full.c ((record_full_will_replay): New.
2737 (init_record_full_ops): Initialize to_record_will_replay.
2738 * target-delegates.c: Regenerated.
2739 * target.c (target_record_will_replay): New.
2740 * target.h (struct target_ops) <to_record_will_replay>: New.
2741 (target_record_will_replay): New.
2742
2743 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2744
2745 * record-btrace.c (record_btrace_resume): Call
2746 target_record_stop_replaying.
2747 (record_btrace_stop_replaying_all): New.
2748 (init_record_btrace_ops): Initialize to_record_stop_replaying.
2749 * record-full.c (record_full_stop_replaying): New.
2750 (init_record_full_ops ): Initialize to_record_stop_replaying.
2751 * target-delegates.c: Regenerated.
2752 * target.c (target_record_stop_replaying): New.
2753 * target.h (struct target_ops) <to_record_stop_replaying>: New.
2754 (target_record_stop_replaying): New.
2755
2756 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2757
2758 * record-btrace.c (record_btrace_xfer_partial)
2759 (record_btrace_store_registers, record_btrace_prepare_to_store):
2760 Call record_btrace_is_replaying with inferior_ptid instead of
2761 minus_one_ptid.
2762 (record_btrace_store_registers): Change error message.
2763
2764 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2765
2766 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
2767 Update users to pass minus_one_ptid.
2768 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
2769 * record.c (cmd_record_delete): Pass inferior_ptid to
2770 target_record_is_replaying.
2771 * target-delegates.c: Regenerated.
2772 * target.c (target_record_is_replaying): Add ptid argument.
2773 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
2774 argument.
2775 (target_record_is_replaying): Add ptid argument.
2776
2777 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2778
2779 * record-btrace.c (record_btrace_open): Remove non_stop check.
2780 * NEWS: Announce that record btrace supports non-stop mode.
2781
2782 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2783
2784 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
2785 in the TARKET_WAITKIND_NO_HISTORY case.
2786
2787 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2788
2789 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
2790 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
2791
2792 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2793
2794 * record-btrace.c (get_thread_current_frame): New.
2795 (record_btrace_start_replaying): Call get_thread_current_frame.
2796
2797 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2798
2799 * record-btrace.c (record_btrace_resume_thread): A move request
2800 overwrites a previous move request.
2801 (record_btrace_find_resume_thread): Removed.
2802 (record_btrace_resume): Resume all requested threads.
2803
2804 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2805
2806 * record-btrace.c: Include vec.h.
2807 (record_btrace_find_thread_to_move): Removed.
2808 (btrace_step_no_resumed, btrace_step_again)
2809 (record_btrace_stop_replaying_at_end): New.
2810 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
2811 (record_btrace_single_step_forward): Remove calls to
2812 record_btrace_stop_replaying.
2813 (record_btrace_step_thread): Do only one step for BTHR_CONT and
2814 BTHR_RCONT. Keep threads at the end of their history moving.
2815 (record_btrace_wait): Call record_btrace_step_thread for all threads
2816 until one reports an event. Call record_btrace_stop_replaying_at_end
2817 for the eventing thread.
2818
2819 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2820
2821 * record-btrace.c (record_btrace_single_step_forward): Return
2822 NO_HISTORY if a step brings us to the end of the execution history.
2823
2824 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2825
2826 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
2827 to ...
2828 (record_btrace_single_step_forward): ... here and
2829 (record_btrace_single_step_backward): ... here.
2830
2831 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2832
2833 * record-btrace.c (btrace_step_spurious)
2834 (record_btrace_single_step_forward)
2835 (record_btrace_single_step_backward): New.
2836 (record_btrace_step_thread): Call record_btrace_single_step_forward
2837 and record_btrace_single_step_backward.
2838
2839 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2840
2841 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
2842 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
2843
2844 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2845
2846 * record-btrace.c (btrace_thread_flag_to_str)
2847 (record_btrace_cancel_resume): New.
2848 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
2849 (record_btrace_resume): Print execution direction.
2850 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
2851 (record_btrace_wait): Call record_btrace_cancel_resume.
2852
2853 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2854
2855 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
2856 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
2857 (record_btrace_find_thread_to_move): Also accept threads that have
2858 BTHR_STOP set.
2859 (btrace_step_stopped_on_request, record_btrace_stop): New.
2860 (record_btrace_step_thread): Support BTHR_STOP.
2861 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
2862 (init_record_btrace_ops): Initialize to_stop.
2863
2864 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
2865
2866 * record-btrace.c (record_btrace_wait): Replace non_stop check with
2867 target_is_non_stop_p ().
2868
2869 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
2870
2871 * ada-typeprint.c (print_array_type): Do not describe arrays as
2872 packed when they embed dynamic elements.
2873
2874 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2875
2876 * symtab.h (address_class): Document that TLS variables
2877 are handled by LOC_UNRESOLVED.
2878 * findvar.c (default_read_var_value): Don't relocate TLS variables.
2879 * printcmd.c (address_info): Don't relocate TLS variables.
2880
2881 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
2882
2883 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
2884 (decode_adrp): Likewise.
2885 (decode_b): Likewise.
2886 (decode_bcond): Likewise.
2887 (decode_br): Likewise.
2888 (decode_cb): Likewise.
2889 (decode_eret): Likewise.
2890 (decode_movz): Likewise.
2891 (decode_orr_shifted_register_x): Likewise.
2892 (decode_ret): Likewise.
2893 (decode_stp_offset): Likewise.
2894 (decode_stp_offset_wb): Likewise.
2895 (decode_stur): Likewise.
2896 (decode_tb): Likewise.
2897 (aarch64_analyze_prologue): Likewise.
2898 (pass_in_x): Likewise.
2899 (pass_in_v): Likewise.
2900 (pass_on_stack): Likewise.
2901 (aarch64_push_dummy_call): Likewise.
2902 (aarch64_extract_return_value): Likewise.
2903 (aarch64_store_return_value): Likewise.
2904 (aarch64_return_value): Likewise.
2905 (aarch64_record_asimd_load_store): Likewise.
2906 (aarch64_record_load_store): Likewise.
2907 (aarch64_record_data_proc_simd_fp): Likewise.
2908
2909 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2910
2911 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
2912 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
2913 (ppc64_skip_trampoline_code_1): ... here.
2914 (ppc64_skip_trampoline_code): New wrapper function.
2915 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
2916
2917 2015-09-15 Yao Qi <yao.qi@linaro.org>
2918
2919 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
2920 function.
2921 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
2922 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
2923 if target_can_do_single_step returns 1.
2924 * remote.c (struct vCont_action_support) <s, S>: New fields.
2925 (PACKET_vContSupported): New enum.
2926 (remote_protocol_features): New element for vContSupported.
2927 (remote_query_supported): Append "vContSupported+".
2928 (remote_vcont_probe): Remove support_s and support_S, use
2929 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
2930 vCont packet if c and C actions are not supported.
2931 (remote_can_do_single_step): New function.
2932 (init_remote_ops): Install it to to_can_do_single_step.
2933 (_initialize_remote): Call add_packet_config_cmd.
2934 * target.h (struct target_ops) <to_can_do_single_step>: New field.
2935 (target_can_do_single_step): New macro.
2936 * target-delegates.c: Re-generated.
2937
2938 2015-09-15 Yao Qi <yao.qi@linaro.org>
2939
2940 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
2941 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
2942 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
2943 New function.
2944 (aarch64_siginfo_from_compat_siginfo): New function.
2945 * nat/aarch64-linux.h: Include signal.h.
2946 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2947 (compat_timer_t, compat_clock_t): Likewise.
2948 (struct compat_timeval): New.
2949 (union compat_sigval): New.
2950 (struct compat_siginfo): New.
2951 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2952 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2953 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2954 (cpt_si_band, cpt_si_fd): Likewise.
2955
2956 2015-09-14 Pedro Alves <palves@redhat.com>
2957
2958 * infrun.c (current_stop_id): New global.
2959 (get_stop_id, new_stop_id): New functions.
2960 (fetch_inferior_event): Handle normal_stop proceeding the target.
2961 (struct stop_context): New.
2962 (save_stop_context, release_stop_context_cleanup)
2963 (stop_context_changed): New functions.
2964 (normal_stop): Return true if the hook-stop changes the stop
2965 context.
2966 * infrun.h (get_stop_id): Declare.
2967 (normal_stop): Now returns int. Add documentation.
2968
2969 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2970
2971 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2972 comment. Handle packed arrays.
2973
2974 2015-09-14 Pedro Alves <palves@redhat.com>
2975
2976 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2977 mention of maint set/show target-non-stop.
2978
2979 2015-09-11 Don Breazeal <donb@codesourcery.com>
2980
2981 * NEWS: Announce new remote packets for the exec-events
2982 feature and the exec-events feature and associated commands.
2983
2984 2015-09-11 Don Breazeal <donb@codesourcery.com>
2985
2986 * remote.c (remote_exec_event_p): New function.
2987 (remote_insert_exec_catchpoint): New function.
2988 (remote_remove_exec_catchpoint): New function.
2989 (init_extended_remote_ops): Initialize extended_remote_ops
2990 members to_insert_exec_catchpoint and
2991 to_remove_exec_catchpoint.
2992
2993 2015-09-11 Don Breazeal <donb@codesourcery.com>
2994 Luis Machado <lgustavo@codesourcery.com>
2995
2996 * infrun.c (follow_exec): Use process-style ptid for
2997 exec message. Call add_inferior_with_spaces and
2998 target_follow_exec.
2999 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
3000 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
3001 * remote.c (remote_pspace_data): New static variable.
3002 (remote_pspace_data_cleanup): New function.
3003 (get_remote_exec_file): New function.
3004 (set_remote_exec_file_1): New function.
3005 (set_remote_exec_file): New function.
3006 (show_remote_exec_file): New function.
3007 (remote_exec_file): Delete static variable.
3008 (anonymous enum) <PACKET_exec_event_feature>: New
3009 enumeration constant.
3010 (remote_protocol_features): Add entry for exec-events feature.
3011 (remote_query_supported): Add client side of qSupported query
3012 for exec-events feature.
3013 (remote_follow_exec): New function.
3014 (remote_parse_stop_reply): Handle 'exec' stop reason.
3015 (extended_remote_run, extended_remote_create_inferior): Call
3016 get_remote_exec_file and set_remote_exec_file_1.
3017 (init_extended_remote_ops) <to_follow_exec>: Initialize new
3018 member.
3019 (_initialize_remote): Call
3020 register_program_space_data_with_cleanup. Call
3021 add_packet_config_cmd for remote exec-events feature.
3022 Modify call to add_setshow_string_noescape_cmd for exec-file
3023 to use new functions set_remote_exec_file and
3024 show_remote_exec_file.
3025 * target-debug.h, target-delegates.c: Regenerated.
3026 * target.c (target_follow_exec): New function.
3027 * target.h (struct target_ops) <to_follow_exec>: New member.
3028 (target_follow_exec): Declare new function.
3029
3030 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3031
3032 * aarch64-tdep.c (decode_cb): Move up comment describing the
3033 encoding.
3034 (decode_tb): Fix a typo in comment above the function. Move up
3035 comment describing the encoding.
3036
3037 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
3038
3039 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
3040
3041 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
3042
3043 PR gdb/18947
3044 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
3045 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
3046
3047 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3048
3049 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
3050 operations.
3051
3052 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
3053
3054 * ada-lang.c (ada_search_struct_field): Constify parameters
3055 and/or variables..
3056 (xget_renaming_scope): Likewise.
3057 (ada_is_redundant_range_encoding): Likewise.
3058 (scan_discrim_bound): Likewise.
3059 (to_fixed_range_type): Likewise.
3060
3061 2015-09-10 Yao Qi <yao.qi@linaro.org>
3062
3063 * breakpoint.c (download_tracepoint_locations): New local
3064 can_download_tracepoint. Check the result of
3065 target_can_download_tracepoint and save it in
3066 can_download_tracepoint if there are tracepoints to download.
3067 * linux-nat.h (enum tribool): Move it to ...
3068 * common/common-types.h: ... here.
3069
3070 2015-09-09 Pedro Alves <palves@redhat.com>
3071
3072 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
3073 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
3074
3075 2015-09-09 Pedro Alves <palves@redhat.com>
3076
3077 * continuations.c (add_continuation, restore_thread_cleanup)
3078 (do_all_continuations_ptid, do_all_continuations_thread_callback)
3079 (do_all_continuations_thread, do_all_continuations)
3080 (discard_all_continuations_thread_callback)
3081 (discard_all_continuations_thread, discard_all_continuations)
3082 (add_intermediate_continuation)
3083 (do_all_intermediate_continuations_thread_callback)
3084 (do_all_intermediate_continuations_thread)
3085 (do_all_intermediate_continuations)
3086 (discard_all_intermediate_continuations_thread_callback)
3087 (discard_all_intermediate_continuations_thread)
3088 (discard_all_intermediate_continuations): Delete.
3089 * continuations.h (add_continuation, do_all_continuations)
3090 (do_all_continuations_thread, discard_all_continuations)
3091 (discard_all_continuations_thread, add_intermediate_continuation)
3092 (do_all_intermediate_continuations)
3093 (do_all_intermediate_continuations_thread)
3094 (discard_all_intermediate_continuations)
3095 (discard_all_intermediate_continuations_thread): Delete
3096 declarations.
3097 * event-top.c (stdin_event_handler): Delete references to
3098 continuations.
3099 * gdbthread.h (struct thread_info): Delete continuations and
3100 intermediate_continuations fields.
3101 * inf-loop.c (inferior_event_handler): Remove references to
3102 continuations.
3103 * infrun.c (infrun_thread_stop_requested_callback): Remove
3104 references to continuations.
3105 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
3106 * thread.c: Don't include "continuations.h".
3107 (clear_thread_inferior_resources): Remove references to
3108 continuations.
3109
3110 2015-09-09 Pedro Alves <palves@redhat.com>
3111
3112 * infcall.c (struct dummy_frame_context_saver): Delete.
3113 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
3114 (dummy_frame_context_saver_drop)
3115 (dummy_frame_context_saver_cleanup)
3116 (dummy_frame_context_saver_get_regs)
3117 (dummy_frame_context_saver_setup): Delete.
3118 * infcall.h (dummy_frame_context_saver_drop)
3119 (dummy_frame_context_saver_cleanup)
3120 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
3121 Delete.
3122 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
3123 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
3124 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
3125
3126 2015-09-09 Pedro Alves <palves@redhat.com>
3127
3128 * breakpoint.c: Include "thread-fsm.h".
3129 (struct until_break_command_continuation_args): Delete.
3130 (struct until_break_fsm): New.
3131 (until_break_fsm_ops): New global.
3132 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
3133 (until_break_command_continuation): Delete.
3134 (until_break_fsm_clean_up): New function.
3135 (until_break_fsm_async_reply_reason): New function.
3136 (until_break_command): Adjust to create an until_break_fsm instead
3137 of a continuation.
3138 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
3139 here.
3140 * infcmd.c (struct until_next_fsm): New.
3141 (until_next_fsm_ops): New global.
3142 (new_until_next_fsm, until_next_fsm_should_stop): New function.
3143 (until_next_continuation): Delete.
3144 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
3145 functions.
3146 (until_next_command): Adjust to create a new until_next_fsm
3147 instead of a continuation.
3148
3149 2015-09-09 Pedro Alves <palves@redhat.com>
3150
3151 * infcall.c: Include thread_fsm.h.
3152 (struct call_return_meta_info): New.
3153 (get_call_return_value): New function, factored out from
3154 call_function_by_hand_dummy.
3155 (struct call_thread_fsm): New.
3156 (call_thread_fsm_ops): New global.
3157 (new_call_thread_fsm, call_thread_fsm_should_stop)
3158 (call_thread_fsm_should_notify_stop): New functions.
3159 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
3160 the thread.
3161 (call_function_by_hand_dummy): Create a new call_thread_fsm
3162 instance, associate it with the thread, and wait for the FSM to
3163 finish. If finished successfully, fetch the function's result
3164 value out of the FSM.
3165 * infrun.c (fetch_inferior_event): If the FSM says the stop
3166 shouldn't be notified, don't call normal_stop.
3167 (maybe_remove_breakpoints): New function, factored out from ...
3168 (normal_stop): ... here. Simplify.
3169 * infrun.h (maybe_remove_breakpoints): Declare.
3170 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
3171 (thread-fsm.h) <struct thread_fsm_ops>: New field.
3172 (thread_fsm_should_notify_stop): Declare.
3173
3174 2015-09-09 Pedro Alves <palves@redhat.com>
3175
3176 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
3177 * breakpoint.c (handle_jit_event): Print debug output.
3178 (bpstat_what): Split event callback handling to ...
3179 (bpstat_run_callbacks): ... this new function.
3180 (momentary_bkpt_print_it): No longer handle bp_finish here.
3181 * breakpoint.h (bpstat_run_callbacks): Declare.
3182 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
3183 <thread_fsm>: New field.
3184 (thread_cancel_execution_command): Declare.
3185 * infcmd.c: Include thread-fsm.h.
3186 (struct step_command_fsm): New.
3187 (step_command_fsm_ops): New global.
3188 (new_step_command_fsm, step_command_fsm_prepare): New functions.
3189 (step_1): Adjust to use step_command_fsm_prepare and
3190 prepare_one_step.
3191 (struct step_1_continuation_args): Delete.
3192 (step_1_continuation): Delete.
3193 (step_command_fsm_should_stop): New function.
3194 (step_once): Delete.
3195 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
3196 (prepare_one_step): New function, based on step_once.
3197 (until_next_command): Remove step_multi reference.
3198 (struct return_value_info): New.
3199 (print_return_value): Rename to ...
3200 (print_return_value_1): ... this. New struct return_value_info
3201 parameter. Adjust.
3202 (print_return_value): Reimplement as wrapper around
3203 print_return_value_1.
3204 (struct finish_command_fsm): New.
3205 (finish_command_continuation): Delete.
3206 (finish_command_fsm_ops): New global.
3207 (new_finish_command_fsm, finish_command_fsm_should_stop): New
3208 functions.
3209 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
3210 New.
3211 (finish_command_continuation_free_arg): Delete.
3212 (finish_command_fsm_async_reply_reason): New.
3213 (finish_backward, finish_forward): Change symbol parameter to a
3214 finish_command_fsm. Adjust.
3215 (finish_command): Create a finish_command_fsm. Adjust.
3216 * infrun.c: Include "thread-fsm.h".
3217 (clear_proceed_status_thread): Delete the thread's FSM.
3218 (infrun_thread_stop_requested_callback): Cancel the thread's
3219 execution command.
3220 (clean_up_just_stopped_threads_fsms): New function.
3221 (fetch_inferior_event): Handle the event_thread's should_stop
3222 method saying the command isn't done yet.
3223 (process_event_stop_test): Run breakpoint callbacks here.
3224 (print_stop_event): Rename to ...
3225 (print_stop_location): ... this.
3226 (restore_current_uiout_cleanup): New function.
3227 (print_stop_event): Reimplement.
3228 (normal_stop): No longer notify the end_stepping_range observers
3229 here handle "step N" nor "finish" here. No longer call
3230 print_stop_event here.
3231 * infrun.h (struct return_value_info): Forward declare.
3232 (print_return_value): Declare.
3233 (print_stop_event): Change prototype.
3234 * thread-fsm.c: New file.
3235 * thread-fsm.h: New file.
3236 * thread.c: Include "thread-fsm.h".
3237 (thread_cancel_execution_command): New function.
3238 (clear_thread_inferior_resources): Call it.
3239 * cli/cli-interp.c (cli_on_normal_stop): New function.
3240 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
3241 observer.
3242 * mi/mi-interp.c: Include "thread-fsm.h".
3243 (restore_current_uiout_cleanup): Delete.
3244 (mi_on_normal_stop): If the thread has an FSM associated, and it
3245 finished, ask it for the async-reply-reason to print. Always call
3246 print_stop_event here, regardless of the top-level interpreter.
3247 Check bpstat_what to tell whether an asynchronous breakpoint hit
3248 triggered.
3249 * tui/tui-interp.c (tui_on_normal_stop): New function.
3250 (tui_init): Install tui_on_normal_stop as normal_stop observer.
3251
3252 2015-09-09 Pedro Alves <palves@redhat.com>
3253
3254 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
3255 check whether the target can async.
3256 * inf-loop.c (inferior_event_handler): Only call target_async if
3257 the target can async.
3258 * infcall.c: Include top.h and interps.h.
3259 (run_inferior_call): For the interpreter to sync mode while
3260 running the infcall. Call wait_sync_command_done instead of
3261 wait_for_inferior plus normal_stop.
3262 * infcmd.c (prepare_execution_command): Don't check whether the
3263 target can async when running in the foreground.
3264 (step_1): Delete synchronous case handling.
3265 (step_once): Always install a continuation, even in sync mode.
3266 (until_next_command, finish_forward): Don't check whether the
3267 target can async.
3268 (attach_command_post_wait, notice_new_inferior): Always install a
3269 continuation, even in sync mode.
3270 * infrun.c (mark_infrun_async_event_handler): New function.
3271 (proceed): In sync mode, mark infrun's event source instead of
3272 waiting for events here.
3273 (fetch_inferior_event): If the target can't async, do a blocking
3274 wait.
3275 (prepare_to_wait): In sync mode, mark infrun's event source.
3276 (infrun_async_inferior_event_handler): No longer bail out if the
3277 target can't async.
3278 * infrun.h (mark_infrun_async_event_handler): New declaration.
3279 * linux-nat.c (linux_nat_wait_1): Remove calls to
3280 set_sigint_trap/clear_sigint_trap.
3281 (linux_nat_terminal_inferior): No longer check whether the target
3282 can async.
3283 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
3284 comment.
3285 (mi_execute_command_input_handler): No longer check whether the
3286 target is async. Update and simplify comment.
3287 * target.c (default_target_wait): New function.
3288 * target.h (struct target_ops) <to_wait>: Now defaults to
3289 default_target_wait.
3290 (default_target_wait): Declare.
3291 * top.c (wait_sync_command_done): New function, factored out from
3292 ...
3293 (maybe_wait_sync_command_done): ... this.
3294 * top.h (wait_sync_command_done): Declare.
3295 * target-delegates.c: Regenerate.
3296
3297 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
3298
3299 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
3300 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
3301 Remove include of sys/utsname.h.
3302 (linux_determine_kernel_ptr_bits): Remove.
3303 (linux_determine_kernel_start): New.
3304 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
3305 Update check.
3306 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
3307 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
3308 initialization.
3309 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
3310 assignment.
3311
3312 2015-09-07 Pedro Alves <palves@redhat.com>
3313
3314 * guile/guile-internal.h (as_a_scm_t_subr): New.
3315 * guile/guile.c (misc_guile_functions): Use it.
3316 * guile/scm-arch.c (arch_functions): Use it.
3317 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
3318 Use it.
3319 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
3320 * guile/scm-cmd.c (command_functions): Use it.
3321 * guile/scm-disasm.c (disasm_functions): Use it.
3322 * guile/scm-exception.c (exception_functions)
3323 (private_exception_functions): Use it.
3324 * guile/scm-frame.c (frame_functions)
3325 * guile/scm-gsmob.c (gsmob_functions): Use it.
3326 * guile/scm-iterator.c (iterator_functions): Use it.
3327 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
3328 * guile/scm-math.c (math_functions): Use it.
3329 * guile/scm-objfile.c (objfile_functions): Use it.
3330 * guile/scm-param.c (parameter_functions): Use it.
3331 * guile/scm-ports.c (port_functions, private_port_functions): Use
3332 it.
3333 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
3334 * guile/scm-progspace.c (pspace_functions): Use it.
3335 * guile/scm-string.c (string_functions): Use it.
3336 * guile/scm-symbol.c (symbol_functions): Use it.
3337 * guile/scm-symtab.c (symtab_functions): Use it.
3338 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
3339 it.
3340 * guile/scm-value.c (value_functions): Use it.
3341
3342 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3343
3344 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
3345 (tui_next_win): Likewise.
3346 (tui_prev_win): Likewise.
3347 (tui_partial_win_by_name): Likewise.
3348 (tui_init_generic_part): Likewise.
3349 (init_content_element): Likewise.
3350 (tui_del_window): Likewise.
3351 (tui_free_window): Likewise.
3352 (tui_del_data_windows): Likewise.
3353 (tui_free_data_content): Likewise.
3354 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
3355 * tui/tui-regs.c (tui_show_register_group): Likewise.
3356 * tui/tui-win.c (tui_resize_all): Likewise.
3357 (tui_set_focus): Likewise.
3358 (tui_set_win_height): Likewise.
3359 (make_invisible_and_set_new_height): Likewise.
3360 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
3361 * tui/tui-wingeneral.c (make_visible): Likewise.
3362
3363 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
3366
3367 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
3368
3369 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
3370 pointer.
3371 * dbxread.c (dbx_end_psymtab): Likewise.
3372 * gnu-nat.c (gnu_write_inferior): Likewise.
3373 * mdebugread.c (cross_ref): Likewise.
3374 * p-valprint.c (pascal_val_print): Likewise.
3375 * xcoffread.c (xcoff_end_psymtab): Likewise.
3376
3377 2015-09-04 Yao Qi <yao.qi@linaro.org>
3378
3379 * NEWS: Mention the aarch64 multi-arch debugging support.
3380
3381 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
3382
3383 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
3384 type instead of a TYPE_CODE_INT one for the string_char_type
3385 and the ada_primitive_type_char types.
3386
3387 2015-09-03 Yao Qi <yao.qi@linaro.org>
3388
3389 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
3390 Move code to aarch64_linux_region_ok_for_watchpoint. Call
3391 aarch64_linux_region_ok_for_watchpoint.
3392 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
3393 New function.
3394 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
3395 Declare it.
3396
3397 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3398
3399 * gdb_obstack.h (obstack_strdup): Declare.
3400 * gdb_obstack.c (obstack_strdup): Define.
3401 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
3402 * gdbarch.c: Regenerate.
3403 * gdbarch.h: Regenerate.
3404 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
3405
3406 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
3407
3408 * gdbtypes.c (copy_type_recursive): Update documentation.
3409
3410 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3411
3412 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
3413 as zero.
3414
3415 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3416
3417 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
3418
3419 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3420
3421 * solib-svr4.c (solib_event_probe_action): Call
3422 get_probe_argument_count using TRY...CATCH.
3423 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
3424
3425 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
3426
3427 * probe.h (struct probe_ops) <get_probe_argument_count,
3428 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
3429 the comment that the function can throw an exception.
3430 (get_probe_argument_count): Likewise.
3431 (evaluate_probe_argument): Likewise.
3432 * stap-probe.c (stap_get_opcode): Call error instead of
3433 internal_error.
3434 (stap_get_expected_argument_type): Likewise. Add argument
3435 'probe'. Improve error message by mentioning the probe's name.
3436 (stap_parse_probe_arguments): Adjust call to
3437 stap_get_expected_argument_type.
3438 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
3439 not zero. Call internal_error if GDB requests an argument but the
3440 probe has no arguments.
3441
3442 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
3443
3444 * ada-lang.c (ada_resolve_function): Do not ask the user what
3445 match to use when in completion mode.
3446
3447 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
3448
3449 * tui/tui-data.c (tui_win_name): Make local variable const, remove
3450 cast of NULL.
3451
3452 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
3453
3454 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
3455 call_abi using XSHAL_ABI macro.
3456
3457 2015-08-29 Doug Evans <xdje42@gmail.com>
3458
3459 * symtab.h (struct symbol): Tweak comment.
3460
3461 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
3462
3463 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
3464 gdbarch obstack instead of on the heap. Update commentary
3465 accordingly.
3466
3467 2015-08-28 Joel Brobecker <brobecker@adacore.com>
3468
3469 GDB 7.10 released.
3470
3471 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3472
3473 * NEWS: Update entry about non-8-bits addressable memory.
3474
3475 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3476
3477 Revert:
3478 2014-11-06 Doug Evans <xdje42@gmail.com>
3479 * solib.c (solib_global_lookup): Fetch arch from objfile,
3480 not target_gdbarch.
3481
3482 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3483
3484 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
3485 attempt to relocate a TLS variable offset.
3486
3487 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3488
3489 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
3490 registered yet. Set inferior_ptid while calling target_read_memory.
3491
3492 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3493
3494 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
3495 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
3496 * linux-nat.c (check_stopped_by_breakpoint): Use
3497 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
3498
3499 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3500
3501 * linux-thread-db.c (thread_db_get_thread_local_address): If the
3502 thread was not yet discovered, use thread_from_lwp instead of
3503 calling thread_db_find_new_threads_1.
3504
3505 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3506
3507 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
3508 statements.
3509
3510 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
3511
3512 * NEWS: Document support for non-8-bits addressable memory.
3513
3514 2015-08-27 Pedro Alves <palves@redhat.com>
3515
3516 * configure.ac: Remove AC_TYPE_SIGNAL call.
3517 * configure, config.in: Regenerate.
3518
3519 2015-08-27 Pedro Alves <palves@redhat.com>
3520
3521 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
3522 * extension-priv.h: Include signal.h.
3523 (struct signal_handler) <handler>: Change type to sighandler_t.
3524 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
3525 * inflow.c (sigint_ours, sigquit_ours): Change type to
3526 sighandler_t.
3527 (child_terminal_inferior): Remove casts.
3528 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
3529 (osig): Change type to sighandler_t.
3530 * nto-procfs.c (ofunc): Change type to sighandler_t.
3531 (procfs_wait): Remove casts.
3532 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
3533 * remote-sim.c (gdbsim_wait): Use sighandler_t.
3534 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
3535
3536 2015-08-27 Pedro Alves <palves@redhat.com>
3537
3538 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
3539 * gnulib/aclocal.m4: Renegerate.
3540 * gnulib/config.in: Renegerate.
3541 * gnulib/configure: Renegerate.
3542 * gnulib/import/Makefile.am: Update.
3543 * gnulib/import/Makefile.in: Regenerate.
3544 * gnulib/import/m4/gnulib-cache.m4: Update.
3545 * gnulib/import/m4/gnulib-comp.m4: Update.
3546 * gnulib/import/m4/signal_h.m4: New file.
3547 * gnulib/import/signal.in.h: New file.
3548
3549 2015-08-27 Pedro Alves <palves@redhat.com>
3550
3551 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
3552 (MIN_MEMORY_PACKET_SIZE): New.
3553 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
3554 (get_memory_packet_size): Adjust. No longer limit the max packet
3555 size.
3556 (set_memory_packet_size): Adjust, and remove dead code.
3557 (remote_check_symbols): Use xmalloc and a cleanup instead of
3558 alloca.
3559 (remote_packet_size): No longer cap the packet size.
3560 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
3561
3562 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
3563
3564 * compile/compile.c (compile_to_object): Mention language in
3565 error message.
3566
3567 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
3568
3569 * target.c (target_pre_inferior): Unset attach_flag.
3570
3571 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3572
3573 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
3574 * gdbarch.c: Re-generate.
3575
3576 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
3577
3578 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
3579 function with the XNEW-family equivalent.
3580 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
3581 * ada-exp.y (write_ambiguous_var): Likewise.
3582 * ada-lang.c (resolve_subexp): Likewise.
3583 (user_select_syms): Likewise.
3584 (assign_aggregate): Likewise.
3585 (ada_evaluate_subexp): Likewise.
3586 (cache_symbol): Likewise.
3587 * addrmap.c (allocate_key): Likewise.
3588 (addrmap_create_mutable): Likewise.
3589 * aix-thread.c (sync_threadlists): Likewise.
3590 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
3591 (alpha_gdbarch_init): Likewise.
3592 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
3593 * arm-linux-nat.c (arm_linux_add_process): Likewise.
3594 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3595 * arm-tdep.c (push_stack_item): Likewise.
3596 (arm_displaced_step_copy_insn): Likewise.
3597 (arm_gdbarch_init): Likewise.
3598 (_initialize_arm_tdep): Likewise.
3599 * avr-tdep.c (push_stack_item): Likewise.
3600 * ax-general.c (new_agent_expr): Likewise.
3601 * block.c (block_initialize_namespace): Likewise.
3602 * breakpoint.c (alloc_counted_command_line): Likewise.
3603 (update_dprintf_command_list): Likewise.
3604 (parse_breakpoint_sals): Likewise.
3605 (decode_static_tracepoint_spec): Likewise.
3606 (until_break_command): Likewise.
3607 (clear_command): Likewise.
3608 (update_global_location_list): Likewise.
3609 (get_breakpoint_objfile_data) Likewise.
3610 * btrace.c (ftrace_new_function): Likewise.
3611 (btrace_set_insn_history): Likewise.
3612 (btrace_set_call_history): Likewise.
3613 * buildsym.c (add_symbol_to_list): Likewise.
3614 (record_pending_block): Likewise.
3615 (start_subfile): Likewise.
3616 (start_buildsym_compunit): Likewise.
3617 (push_subfile): Likewise.
3618 (end_symtab_get_static_block): Likewise.
3619 (buildsym_init): Likewise.
3620 * cli/cli-cmds.c (source_command): Likewise.
3621 * cli/cli-decode.c (add_cmd): Likewise.
3622 * cli/cli-script.c (build_command_line): Likewise.
3623 (setup_user_args): Likewise.
3624 (realloc_body_list): Likewise.
3625 (process_next_line): Likewise.
3626 (copy_command_lines): Likewise.
3627 * cli/cli-setshow.c (do_set_command): Likewise.
3628 * coff-pe-read.c (read_pe_exported_syms): Likewise.
3629 * coffread.c (coff_locate_sections): Likewise.
3630 (coff_symtab_read): Likewise.
3631 (coff_read_struct_type): Likewise.
3632 * common/cleanups.c (make_my_cleanup2): Likewise.
3633 * common/common-exceptions.c (throw_it): Likewise.
3634 * common/filestuff.c (make_cleanup_close): Likewise.
3635 * common/format.c (parse_format_string): Likewise.
3636 * common/queue.h (DEFINE_QUEUE_P): Likewise.
3637 * compile/compile-object-load.c (munmap_list_add): Likewise.
3638 (compile_object_load): Likewise.
3639 * compile/compile-object-run.c (compile_object_run): Likewise.
3640 * compile/compile.c (append_args): Likewise.
3641 * corefile.c (specify_exec_file_hook): Likewise.
3642 * cp-support.c (make_symbol_overload_list): Likewise.
3643 * cris-tdep.c (push_stack_item): Likewise.
3644 (cris_gdbarch_init): Likewise.
3645 * ctf.c (ctf_trace_file_writer_new): Likewise.
3646 * dbxread.c (init_header_files): Likewise.
3647 (add_new_header_file): Likewise.
3648 (init_bincl_list): Likewise.
3649 (dbx_end_psymtab): Likewise.
3650 (start_psymtab): Likewise.
3651 (dbx_end_psymtab): Likewise.
3652 * dcache.c (dcache_init): Likewise.
3653 * dictionary.c (dict_create_hashed): Likewise.
3654 (dict_create_hashed_expandable): Likewise.
3655 (dict_create_linear): Likewise.
3656 (dict_create_linear_expandable): Likewise.
3657 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
3658 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
3659 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
3660 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
3661 (decode_frame_entry_1): Likewise.
3662 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
3663 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3664 * dwarf2read.c (dwarf2_has_info): Likewise.
3665 (create_signatured_type_table_from_index): Likewise.
3666 (dwarf2_read_index): Likewise.
3667 (dw2_get_file_names_reader): Likewise.
3668 (create_all_type_units): Likewise.
3669 (read_cutu_die_from_dwo): Likewise.
3670 (init_tu_and_read_dwo_dies): Likewise.
3671 (init_cutu_and_read_dies): Likewise.
3672 (create_all_comp_units): Likewise.
3673 (queue_comp_unit): Likewise.
3674 (inherit_abstract_dies): Likewise.
3675 (read_call_site_scope): Likewise.
3676 (dwarf2_add_field): Likewise.
3677 (dwarf2_add_typedef): Likewise.
3678 (dwarf2_add_member_fn): Likewise.
3679 (attr_to_dynamic_prop): Likewise.
3680 (abbrev_table_alloc_abbrev): Likewise.
3681 (abbrev_table_read_table): Likewise.
3682 (add_include_dir): Likewise.
3683 (add_file_name): Likewise.
3684 (dwarf_decode_line_header): Likewise.
3685 (dwarf2_const_value_attr): Likewise.
3686 (dwarf_alloc_block): Likewise.
3687 (parse_macro_definition): Likewise.
3688 (set_die_type): Likewise.
3689 (write_psymtabs_to_index): Likewise.
3690 (create_cus_from_index): Likewise.
3691 (dwarf2_create_include_psymtab): Likewise.
3692 (process_psymtab_comp_unit_reader): Likewise.
3693 (build_type_psymtab_dependencies): Likewise.
3694 (read_comp_units_from_section): Likewise.
3695 (compute_compunit_symtab_includes): Likewise.
3696 (create_dwo_unit_in_dwp_v1): Likewise.
3697 (create_dwo_unit_in_dwp_v2): Likewise.
3698 (read_func_scope): Likewise.
3699 (process_structure_scope): Likewise.
3700 (mark_common_block_symbol_computed): Likewise.
3701 (load_partial_dies): Likewise.
3702 (dwarf2_symbol_mark_computed): Likewise.
3703 * elfread.c (elf_symfile_segments): Likewise.
3704 (elf_read_minimal_symbols): Likewise.
3705 * environ.c (make_environ): Likewise.
3706 * eval.c (evaluate_subexp_standard): Likewise.
3707 * event-loop.c (create_file_handler): Likewise.
3708 (create_async_signal_handler): Likewise.
3709 (create_async_event_handler): Likewise.
3710 (create_timer): Likewise.
3711 * exec.c (build_section_table): Likewise.
3712 * fbsd-nat.c (fbsd_remember_child): Likewise.
3713 * fork-child.c (fork_inferior): Likewise.
3714 * frv-tdep.c (new_variant): Likewise.
3715 * gdbarch.sh (gdbarch_alloc): Likewise.
3716 (append_name): Likewise.
3717 * gdbtypes.c (rank_function): Likewise.
3718 (copy_type_recursive): Likewise.
3719 (add_dyn_prop): Likewise.
3720 * gnu-nat.c (make_proc): Likewise.
3721 (make_inf): Likewise.
3722 (gnu_write_inferior): Likewise.
3723 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3724 (build_std_type_info_type): Likewise.
3725 * guile/scm-param.c (compute_enum_list): Likewise.
3726 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
3727 * guile/scm-value.c (gdbscm_value_call): Likewise.
3728 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3729 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
3730 (read_unwind_info): Likewise.
3731 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3732 * infcall.c (dummy_frame_context_saver_setup): Likewise.
3733 (call_function_by_hand_dummy): Likewise.
3734 * infcmd.c (step_once): Likewise.
3735 (finish_forward): Likewise.
3736 (attach_command): Likewise.
3737 (notice_new_inferior): Likewise.
3738 * inferior.c (add_inferior_silent): Likewise.
3739 * infrun.c (add_displaced_stepping_state): Likewise.
3740 (save_infcall_control_state): Likewise.
3741 (save_inferior_ptid): Likewise.
3742 (_initialize_infrun): Likewise.
3743 * jit.c (bfd_open_from_target_memory): Likewise.
3744 (jit_gdbarch_data_init): Likewise.
3745 * language.c (add_language): Likewise.
3746 * linespec.c (decode_line_2): Likewise.
3747 * linux-nat.c (add_to_pid_list): Likewise.
3748 (add_initial_lwp): Likewise.
3749 * linux-thread-db.c (add_thread_db_info): Likewise.
3750 (record_thread): Likewise.
3751 (info_auto_load_libthread_db): Likewise.
3752 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
3753 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3754 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3755 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
3756 * macrocmd.c (macro_define_command): Likewise.
3757 * macroexp.c (gather_arguments): Likewise.
3758 * macroscope.c (sal_macro_scope): Likewise.
3759 * macrotab.c (new_macro_table): Likewise.
3760 * mdebugread.c (push_parse_stack): Likewise.
3761 (parse_partial_symbols): Likewise.
3762 (parse_symbol): Likewise.
3763 (psymtab_to_symtab_1): Likewise.
3764 (new_block): Likewise.
3765 (new_psymtab): Likewise.
3766 (mdebug_build_psymtabs): Likewise.
3767 (add_pending): Likewise.
3768 (elfmdebug_build_psymtabs): Likewise.
3769 * mep-tdep.c (mep_gdbarch_init): Likewise.
3770 * mi/mi-main.c (mi_execute_command): Likewise.
3771 * mi/mi-parse.c (mi_parse_argv): Likewise.
3772 * minidebug.c (lzma_open): Likewise.
3773 * minsyms.c (terminate_minimal_symbol_table): Likewise.
3774 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
3775 * mips-tdep.c (mips_gdbarch_init): Likewise.
3776 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3777 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
3778 * mt-tdep.c (mt_registers_info): Likewise.
3779 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
3780 * nat/linux-btrace.c (linux_enable_bts): Likewise.
3781 (linux_enable_pt): Likewise.
3782 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
3783 (linux_xfer_osdata_processgroups): Likewise.
3784 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
3785 * nto-procfs.c (procfs_meminfo): Likewise.
3786 * objc-lang.c (start_msglist): Likewise.
3787 (selectors_info): Likewise.
3788 (classes_info): Likewise.
3789 (find_methods): Likewise.
3790 * objfiles.c (allocate_objfile): Likewise.
3791 (update_section_map): Likewise.
3792 * osabi.c (gdbarch_register_osabi): Likewise.
3793 (gdbarch_register_osabi_sniffer): Likewise.
3794 * parse.c (start_arglist): Likewise.
3795 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
3796 (hwdebug_insert_point): Likewise.
3797 * printcmd.c (display_command): Likewise.
3798 (ui_printf): Likewise.
3799 * procfs.c (create_procinfo): Likewise.
3800 (load_syscalls): Likewise.
3801 (proc_get_LDT_entry): Likewise.
3802 (proc_update_threads): Likewise.
3803 * prologue-value.c (make_pv_area): Likewise.
3804 (pv_area_store): Likewise.
3805 * psymtab.c (extend_psymbol_list): Likewise.
3806 (init_psymbol_list): Likewise.
3807 (allocate_psymtab): Likewise.
3808 * python/py-inferior.c (add_thread_object): Likewise.
3809 * python/py-param.c (compute_enum_values): Likewise.
3810 * python/py-value.c (valpy_call): Likewise.
3811 * python/py-varobj.c (py_varobj_iter_next): Likewise.
3812 * python/python.c (ensure_python_env): Likewise.
3813 * record-btrace.c (record_btrace_start_replaying): Likewise.
3814 * record-full.c (record_full_reg_alloc): Likewise.
3815 (record_full_mem_alloc): Likewise.
3816 (record_full_end_alloc): Likewise.
3817 (record_full_core_xfer_partial): Likewise.
3818 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
3819 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
3820 * remote-notif.c (remote_notif_state_allocate): Likewise.
3821 * remote.c (demand_private_info): Likewise.
3822 (remote_notif_stop_alloc_reply): Likewise.
3823 (remote_enable_btrace): Likewise.
3824 * reverse.c (save_bookmark_command): Likewise.
3825 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
3826 * rx-tdep.c (rx_gdbarch_init): Likewise.
3827 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3828 * ser-go32.c (dos_get_tty_state): Likewise.
3829 (dos_copy_tty_state): Likewise.
3830 * ser-mingw.c (ser_windows_open): Likewise.
3831 (ser_console_wait_handle): Likewise.
3832 (ser_console_get_tty_state): Likewise.
3833 (make_pipe_state): Likewise.
3834 (net_windows_open): Likewise.
3835 * ser-unix.c (hardwire_get_tty_state): Likewise.
3836 (hardwire_copy_tty_state): Likewise.
3837 * solib-aix.c (solib_aix_new_lm_info): Likewise.
3838 * solib-dsbt.c (dsbt_current_sos): Likewise.
3839 (dsbt_relocate_main_executable): Likewise.
3840 * solib-frv.c (frv_current_sos): Likewise.
3841 (frv_relocate_main_executable): Likewise.
3842 * solib-spu.c (spu_bfd_fopen): Likewise.
3843 * solib-svr4.c (lm_info_read): Likewise.
3844 (svr4_copy_library_list): Likewise.
3845 (svr4_default_sos): Likewise.
3846 * source.c (find_source_lines): Likewise.
3847 (line_info): Likewise.
3848 (add_substitute_path_rule): Likewise.
3849 * spu-linux-nat.c (spu_bfd_open): Likewise.
3850 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
3851 * stabsread.c (dbx_lookup_type): Likewise.
3852 (read_type): Likewise.
3853 (read_member_functions): Likewise.
3854 (read_struct_fields): Likewise.
3855 (read_baseclasses): Likewise.
3856 (read_args): Likewise.
3857 (_initialize_stabsread): Likewise.
3858 * stack.c (func_command): Likewise.
3859 * stap-probe.c (handle_stap_probe): Likewise.
3860 * symfile.c (addrs_section_sort): Likewise.
3861 (addr_info_make_relative): Likewise.
3862 (load_section_callback): Likewise.
3863 (add_symbol_file_command): Likewise.
3864 (init_filename_language_table): Likewise.
3865 * symtab.c (create_filename_seen_cache): Likewise.
3866 (sort_search_symbols_remove_dups): Likewise.
3867 (search_symbols): Likewise.
3868 * target.c (make_cleanup_restore_target_terminal): Likewise.
3869 * thread.c (new_thread): Likewise.
3870 (enable_thread_stack_temporaries): Likewise.
3871 (make_cleanup_restore_current_thread): Likewise.
3872 (thread_apply_all_command): Likewise.
3873 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
3874 * top.c (gdb_readline_wrapper): Likewise.
3875 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
3876 * tracepoint.c (trace_find_line_command): Likewise.
3877 (all_tracepoint_actions_and_cleanup): Likewise.
3878 (make_cleanup_restore_current_traceframe): Likewise.
3879 (get_uploaded_tp): Likewise.
3880 (get_uploaded_tsv): Likewise.
3881 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3882 (tui_alloc_win_info): Likewise.
3883 (tui_alloc_content): Likewise.
3884 (tui_add_content_elements): Likewise.
3885 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
3886 (tui_set_disassem_content): Likewise.
3887 * ui-file.c (ui_file_new): Likewise.
3888 (stdio_file_new): Likewise.
3889 (tee_file_new): Likewise.
3890 * utils.c (make_cleanup_restore_integer): Likewise.
3891 (add_internal_problem_command): Likewise.
3892 * v850-tdep.c (v850_gdbarch_init): Likewise.
3893 * valops.c (find_oload_champ): Likewise.
3894 * value.c (allocate_value_lazy): Likewise.
3895 (record_latest_value): Likewise.
3896 (create_internalvar): Likewise.
3897 * varobj.c (install_variable): Likewise.
3898 (new_variable): Likewise.
3899 (new_root_variable): Likewise.
3900 (cppush): Likewise.
3901 (_initialize_varobj): Likewise.
3902 * windows-nat.c (windows_make_so): Likewise.
3903 * x86-nat.c (x86_add_process): Likewise.
3904 * xcoffread.c (arrange_linetable): Likewise.
3905 (allocate_include_entry): Likewise.
3906 (process_linenos): Likewise.
3907 (SYMBOL_DUP): Likewise.
3908 (xcoff_start_psymtab): Likewise.
3909 (xcoff_end_psymtab): Likewise.
3910 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
3911 * xtensa-tdep.c (xtensa_register_type): Likewise.
3912 * gdbarch.c: Regenerate.
3913 * gdbarch.h: Regenerate.
3914
3915 2015-08-25 Don Breazeal <donb@codesourcery.com>
3916
3917 * infrun.c (follow_exec): Re-order operations for
3918 handling follow-exec-mode "new".
3919 (handle_inferior_event_1): Assign ecs->event_thread
3920 to the current thread.
3921 * remote.c (get_remote_arch_state): Add an assertion.
3922
3923 2015-08-26 Pedro Alves <palves@redhat.com>
3924
3925 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
3926
3927 2015-08-25 Pedro Alves <palves@redhat.com>
3928
3929 PR gdb/18804
3930 * defs.h (maybe_quit): Declare.
3931 (QUIT): Now calls maybe_quit.
3932 * event-loop.c (clear_async_signal_handler)
3933 (async_signal_handler_is_marked): New functions.
3934 * event-loop.h (async_signal_handler_is_marked)
3935 (clear_async_signal_handler): New declarations.
3936 * remote.c (remote_check_pending_interrupt): New function.
3937 (interrupt_query): Use make_cleanup_restore_target_terminal. No
3938 longer check whether the target is async. If waiting for a stop
3939 reply, and a Ctrl-C as been sent to the target, offer to
3940 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
3941 Otherwise do not disconnect and throw a quit.
3942 (_initialize_remote): Install remote_check_pending_interrupt as
3943 to_check_pending_interrupt.
3944 * target.c (target_check_pending_interrupt): New function.
3945 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3946 field.
3947 (target_check_pending_interrupt): New declaration.
3948 * utils.c (maybe_quit): New function.
3949 * target-delegates.c: Regenerate.
3950
3951 2015-08-25 Yao Qi <yao.qi@linaro.org>
3952
3953 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3954 Rename local variable pid to tid, and get lwpid of lwp. Update
3955 debug output.
3956
3957 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3958
3959 * ada-lang.c (ada_read_var_value): Add a var_block argument
3960 and pass it to default_read_var_value.
3961 * block.c (block_static_link): New accessor.
3962 * block.h (block_static_link): Declare it.
3963 * buildsym.c (finish_block_internal): Add a static_link
3964 argument. If there is a static link, associate it to the new
3965 block.
3966 (finish_block): Add a static link argument and pass it to
3967 finish_block_internal.
3968 (end_symtab_get_static_block): Update calls to finish_block and
3969 to finish_block_internal.
3970 (end_symtab_with_blockvector): Update call to
3971 finish_block_internal.
3972 * buildsym.h: Forward-declare struct dynamic_prop.
3973 (struct context_stack): Add a static_link field.
3974 (finish_block): Add a static link argument.
3975 * c-exp.y: Remove an obsolete comment (evaluation of variables
3976 already start from the selected frame, and now they climb *up*
3977 the call stack) and propagate the block information to the
3978 produced expression.
3979 * d-exp.y: Likewise.
3980 * f-exp.y: Likewise.
3981 * go-exp.y: Likewise.
3982 * jv-exp.y: Likewise.
3983 * m2-exp.y: Likewise.
3984 * p-exp.y: Likewise.
3985 * coffread.c (coff_symtab_read): Update calls to finish_block.
3986 * dbxread.c (process_one_symbol): Likewise.
3987 * xcoffread.c (read_xcoff_symtab): Likewise.
3988 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3989 "sym" parameter to struct block_symbol, update its uses and pass
3990 its block to calls to read_var_value.
3991 (convert_symbol_sym): Update the calls to convert_one_symbol.
3992 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3993 call to read_var_value.
3994 * dwarf2loc.c (block_op_get_frame_base): New.
3995 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3996 get_frame_base method.
3997 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3998 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3999 instead of the selected frame in order to evaluate the
4000 expression.
4001 (dwarf2_evaluate_property): Add a frame argument. Update call
4002 to dwarf2_locexpr_baton_eval to provide a frame in available and
4003 to handle the absence of address stack.
4004 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
4005 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
4006 declaration.
4007 (read_func_scope): Record any available static link description.
4008 Update call to finish_block.
4009 (read_lexical_block_scope): Update call to finish_block.
4010 * findvar.c (follow_static_link): New.
4011 (get_hosting_frame): New.
4012 (default_read_var_value): Add a var_block argument. Use
4013 get_hosting_frame to handle non-local references.
4014 (read_var_value): Add a var_block argument and pass it to the
4015 LA_READ_VAR_VALUE method.
4016 * gdbtypes.c (resolve_dynamic_range): Update calls to
4017 dwarf2_evaluate_property.
4018 (resolve_dynamic_type_internal): Likewise.
4019 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
4020 read_var_value, passing it the block coming from symbol lookup.
4021 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
4022 read_var_value (TODO).
4023 * infcmd.c (finish_command_continuation): Update call to
4024 read_var_value, passing it the block coming from symbol lookup.
4025 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4026 * language.h (struct language_defn): Add a var_block argument to
4027 the LA_READ_VAR_VALUE method.
4028 * objfiles.c (struct static_link_htab_entry): New.
4029 (static_link_htab_entry_hash): New.
4030 (static_link_htab_entry_eq): New.
4031 (objfile_register_static_link): New.
4032 (objfile_lookup_static_link): New.
4033 (free_objfile): Free the STATIC_LINKS hashed map if needed.
4034 * objfiles.h: Include hashtab.h.
4035 (struct objfile): Add a static_links field.
4036 (objfile_register_static_link): New.
4037 (objfile_lookup_static_link): New.
4038 * printcmd.c (print_variable_and_value): Update call to
4039 read_var_value.
4040 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
4041 * python/py-frame.c (frapy_read_var): Update call to
4042 read_var_value, passing it the block coming from symbol lookup.
4043 * python/py-framefilter.c (extract_sym): Add a sym_block
4044 parameter and set the pointed value to NULL (TODO).
4045 (enumerate_args): Update call to extract_sym.
4046 (enumerate_locals): Update calls to extract_sym and to
4047 read_var_value.
4048 * python/py-symbol.c (sympy_value): Update call to
4049 read_var_value (TODO).
4050 * stack.c (read_frame_local): Update call to read_var_value.
4051 (read_frame_arg): Likewise.
4052 (return_command): Likewise.
4053 * symtab.h (struct symbol_block_ops): Add a get_frame_base
4054 method.
4055 (struct symbol): Add a block field.
4056 (SYMBOL_BLOCK): New accessor.
4057 * valops.c (value_of_variable): Remove frame/block handling and
4058 pass the block argument to read_var_value, which does this job
4059 now.
4060 (value_struct_elt_for_reference): Update calls to
4061 read_var_value.
4062 (value_of_this): Pass the block found to read_var_value.
4063 * value.h (read_var_value): Add a var_block argument.
4064 (default_read_var_value): Likewise.
4065
4066 2015-08-25 Yao Qi <yao.qi@linaro.org>
4067
4068 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
4069 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
4070 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
4071
4072 2015-08-25 Yao Qi <yao.qi@linaro.org>
4073
4074 * Makefile.in (aarch64-liunx.o): New rule.
4075 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
4076 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
4077 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
4078 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
4079 extern.
4080 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
4081 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
4082 * nat/aarch64-linux.c: New file.
4083 * nat/aarch64-linux.h: New file.
4084
4085 2015-08-25 Yao Qi <yao.qi@linaro.org>
4086
4087 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
4088 lwp_arch_private_info and ptid_of_lwp.
4089
4090 2015-08-25 Yao Qi <yao.qi@linaro.org>
4091
4092 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
4093 Move it to nat/aarch64-linux-hw-point.c.
4094 (debug_reg_change_callback): Likewise.
4095 (aarch64_notify_debug_reg_change): :Likewise.
4096 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
4097 (aarch64_dr_update_callback_param): New.
4098 (debug_reg_change_callback): New function.
4099 (aarch64_notify_debug_reg_change): Likewise.
4100 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
4101 Remove the declaration.
4102
4103 2015-08-25 Yao Qi <yao.qi@linaro.org>
4104
4105 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
4106 Call current_lwp_ptid.
4107
4108 2015-08-25 Yao Qi <yao.qi@linaro.org>
4109
4110 * aarch64-linux-nat.c (debug_reg_change_callback): Use
4111 debug_printf.
4112
4113 2015-08-25 Yao Qi <yao.qi@linaro.org>
4114
4115 * aarch64-linux-nat.c (debug_reg_change_callback): Call
4116 ptid_get_pid rather than ptid_get_lwp.
4117
4118 2015-08-24 Pedro Alves <palves@redhat.com>
4119
4120 * NEWS (New commands): Mention set/show remote
4121 multiprocess-extensions-packet.
4122 * remote.c (remote_query_supported): Only tell the server to use
4123 the multiprocess extensions if the user hasn't force-disabled them
4124 with "set remote multiprocess-extensions-packet off".
4125
4126 2015-08-24 Pedro Alves <palves@redhat.com>
4127
4128 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
4129 1029a8112290f6eee9d7878a391c49db42c999bd.
4130 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
4131 Regenerate.
4132 * gnulib/import/Makefile.am: Update.
4133 * gnulib/import/Makefile.in: Update.
4134 * gnulib/import/alloca.in.h: Update.
4135 * gnulib/import/basename-lgpl.c: Update.
4136 * gnulib/import/canonicalize-lgpl.c: Update.
4137 * gnulib/import/config.charset: Update.
4138 * gnulib/import/dirent.in.h: Update.
4139 * gnulib/import/dirfd.c: Update.
4140 * gnulib/import/dirname-lgpl.c: Update.
4141 * gnulib/import/dirname.h: Update.
4142 * gnulib/import/dosname.h: Update.
4143 * gnulib/import/errno.in.h: Update.
4144 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
4145 * gnulib/import/extra/snippet/c++defs.h: Update.
4146 * gnulib/import/extra/snippet/warn-on-use.h: Update.
4147 * gnulib/import/extra/update-copyright: Update.
4148 * gnulib/import/float+.h: Update.
4149 * gnulib/import/float.c: Update.
4150 * gnulib/import/float.in.h: Update.
4151 * gnulib/import/fnmatch.c: Update.
4152 * gnulib/import/fnmatch.in.h: Update.
4153 * gnulib/import/fnmatch_loop.c: Update.
4154 * gnulib/import/fpucw.h: Update.
4155 * gnulib/import/frexp.c: Update.
4156 * gnulib/import/frexpl.c: Update.
4157 * gnulib/import/gettimeofday.c: Update.
4158 * gnulib/import/inttypes.in.h: Update.
4159 * gnulib/import/isnan.c: Update.
4160 * gnulib/import/isnand-nolibm.h: Update.
4161 * gnulib/import/isnand.c: Update.
4162 * gnulib/import/isnanl-nolibm.h: Update.
4163 * gnulib/import/isnanl.c: Update.
4164 * gnulib/import/itold.c: Update.
4165 * gnulib/import/localcharset.c: Update.
4166 * gnulib/import/localcharset.h: Update.
4167 * gnulib/import/lstat.c: Update.
4168 * gnulib/import/m4/00gnulib.m4: Update.
4169 * gnulib/import/m4/absolute-header.m4: Update.
4170 * gnulib/import/m4/alloca.m4: Update.
4171 * gnulib/import/m4/canonicalize.m4: Update.
4172 * gnulib/import/m4/codeset.m4: Update.
4173 * gnulib/import/m4/configmake.m4: Update.
4174 * gnulib/import/m4/dirent_h.m4: Update.
4175 * gnulib/import/m4/dirfd.m4: Update.
4176 * gnulib/import/m4/dirname.m4: Update.
4177 * gnulib/import/m4/double-slash-root.m4: Update.
4178 * gnulib/import/m4/eealloc.m4: Update.
4179 * gnulib/import/m4/errno_h.m4: Update.
4180 * gnulib/import/m4/exponentd.m4: Update.
4181 * gnulib/import/m4/exponentl.m4: Update.
4182 * gnulib/import/m4/extensions.m4: Update.
4183 * gnulib/import/m4/extern-inline.m4: Update.
4184 * gnulib/import/m4/fcntl-o.m4: Update.
4185 * gnulib/import/m4/float_h.m4: Update.
4186 * gnulib/import/m4/fnmatch.m4: Update.
4187 * gnulib/import/m4/fpieee.m4: Update.
4188 * gnulib/import/m4/frexp.m4: Update.
4189 * gnulib/import/m4/frexpl.m4: Update.
4190 * gnulib/import/m4/gettimeofday.m4: Update.
4191 * gnulib/import/m4/glibc21.m4: Update.
4192 * gnulib/import/m4/gnulib-cache.m4: Update.
4193 * gnulib/import/m4/gnulib-common.m4: Update.
4194 * gnulib/import/m4/gnulib-comp.m4: Update.
4195 * gnulib/import/m4/gnulib-tool.m4: Update.
4196 * gnulib/import/m4/include_next.m4: Update.
4197 * gnulib/import/m4/inttypes-pri.m4: Update.
4198 * gnulib/import/m4/inttypes.m4: Update.
4199 * gnulib/import/m4/isnand.m4: Update.
4200 * gnulib/import/m4/isnanl.m4: Update.
4201 * gnulib/import/m4/largefile.m4: Update.
4202 * gnulib/import/m4/localcharset.m4: Update.
4203 * gnulib/import/m4/locale-fr.m4: Update.
4204 * gnulib/import/m4/locale-ja.m4: Update.
4205 * gnulib/import/m4/locale-zh.m4: Update.
4206 * gnulib/import/m4/longlong.m4: Update.
4207 * gnulib/import/m4/lstat.m4: Update.
4208 * gnulib/import/m4/malloc.m4: Update.
4209 * gnulib/import/m4/malloca.m4: Update.
4210 * gnulib/import/m4/math_h.m4: Update.
4211 * gnulib/import/m4/mbrtowc.m4: Update.
4212 * gnulib/import/m4/mbsinit.m4: Update.
4213 * gnulib/import/m4/mbsrtowcs.m4: Update.
4214 * gnulib/import/m4/mbstate_t.m4: Update.
4215 * gnulib/import/m4/memchr.m4: Update.
4216 * gnulib/import/m4/memmem.m4: Update.
4217 * gnulib/import/m4/mmap-anon.m4: Update.
4218 * gnulib/import/m4/multiarch.m4: Update.
4219 * gnulib/import/m4/nocrash.m4: Update.
4220 * gnulib/import/m4/off_t.m4: Update.
4221 * gnulib/import/m4/pathmax.m4: Update.
4222 * gnulib/import/m4/readlink.m4: Update.
4223 * gnulib/import/m4/rename.m4: Update.
4224 * gnulib/import/m4/rmdir.m4: Update.
4225 * gnulib/import/m4/ssize_t.m4: Update.
4226 * gnulib/import/m4/stat.m4: Update.
4227 * gnulib/import/m4/stdbool.m4: Update.
4228 * gnulib/import/m4/stddef_h.m4: Update.
4229 * gnulib/import/m4/stdint.m4: Update.
4230 * gnulib/import/m4/stdio_h.m4: Update.
4231 * gnulib/import/m4/stdlib_h.m4: Update.
4232 * gnulib/import/m4/string_h.m4: Update.
4233 * gnulib/import/m4/strstr.m4: Update.
4234 * gnulib/import/m4/strtok_r.m4: Update.
4235 * gnulib/import/m4/sys_socket_h.m4: Update.
4236 * gnulib/import/m4/sys_stat_h.m4: Update.
4237 * gnulib/import/m4/sys_time_h.m4: Update.
4238 * gnulib/import/m4/sys_types_h.m4: Update.
4239 * gnulib/import/m4/time_h.m4: Update.
4240 * gnulib/import/m4/unistd_h.m4: Update.
4241 * gnulib/import/m4/warn-on-use.m4: Update.
4242 * gnulib/import/m4/wchar_h.m4: Update.
4243 * gnulib/import/m4/wchar_t.m4: Update.
4244 * gnulib/import/m4/wctype_h.m4: Update.
4245 * gnulib/import/m4/wint_t.m4: Update.
4246 * gnulib/import/malloc.c: Update.
4247 * gnulib/import/malloca.c: Update.
4248 * gnulib/import/malloca.h: Update.
4249 * gnulib/import/math.in.h: Update.
4250 * gnulib/import/mbrtowc.c: Update.
4251 * gnulib/import/mbsinit.c: Update.
4252 * gnulib/import/mbsrtowcs-impl.h: Update.
4253 * gnulib/import/mbsrtowcs-state.c: Update.
4254 * gnulib/import/mbsrtowcs.c: Update.
4255 * gnulib/import/memchr.c: Update.
4256 * gnulib/import/memmem.c: Update.
4257 * gnulib/import/pathmax.h: Update.
4258 * gnulib/import/readlink.c: Update.
4259 * gnulib/import/ref-add.sin: Update.
4260 * gnulib/import/ref-del.sin: Update.
4261 * gnulib/import/rename.c: Update.
4262 * gnulib/import/rmdir.c: Update.
4263 * gnulib/import/same-inode.h: Update.
4264 * gnulib/import/stat.c: Update.
4265 * gnulib/import/stdbool.in.h: Update.
4266 * gnulib/import/stddef.in.h: Update.
4267 * gnulib/import/stdint.in.h: Update.
4268 * gnulib/import/stdio.c: Update.
4269 * gnulib/import/stdio.in.h: Update.
4270 * gnulib/import/stdlib.in.h: Update.
4271 * gnulib/import/str-two-way.h: Update.
4272 * gnulib/import/streq.h: Update.
4273 * gnulib/import/string.in.h: Update.
4274 * gnulib/import/stripslash.c: Update.
4275 * gnulib/import/strnlen1.c: Update.
4276 * gnulib/import/strnlen1.h: Update.
4277 * gnulib/import/strstr.c: Update.
4278 * gnulib/import/strtok_r.c: Update.
4279 * gnulib/import/sys_stat.in.h: Update.
4280 * gnulib/import/sys_time.in.h: Update.
4281 * gnulib/import/sys_types.in.h: Update.
4282 * gnulib/import/time.in.h: Update.
4283 * gnulib/import/unistd.in.h: Update.
4284 * gnulib/import/verify.h: Update.
4285 * gnulib/import/wchar.in.h: Update.
4286 * gnulib/import/wctype.in.h: Update.
4287 * gnulib/import/gettimeofday.c: New file.
4288 * gnulib/import/m4/absolute-header.m4: New file.
4289 * gnulib/import/m4/gettimeofday.m4: New file.
4290 * gnulib/import/m4/sys_socket_h.m4: New file.
4291 * gnulib/import/m4/sys_time_h.m4: New file.
4292 * gnulib/import/stdio.c: Delete file.
4293 * gnulib/import/sys_time.in.h: New file.
4294
4295 2015-08-24 Pedro Alves <palves@redhat.com>
4296
4297 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
4298 * common/gdb_sys_time.h: New file.
4299 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
4300 * gdb_select.h: Likewise.
4301 * gdb_usleep.c: Likewise.
4302 * maint.c: Likewise.
4303 * mi/mi-main.c: Likewise.
4304 * mi/mi-parse.h: Likewise.
4305 * remote-fileio.c: Likewise.
4306 * remote-m32r-sdi.c: Likewise.
4307 * remote.c: Likewise.
4308 * ser-base.c: Likewise.
4309 * ser-pipe.c: Likewise.
4310 * ser-tcp.c: Likewise.
4311 * ser-unix.c: Likewise.
4312 * symfile.c: Likewise.
4313 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
4314 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
4315 * utils.c: Likewise.
4316
4317 2015-08-24 Pedro Alves <palves@redhat.com>
4318
4319 * NEWS: Mention removed support for the various ROM monitors.
4320 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
4321 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
4322 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
4323 gdb_target_obs.
4324 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
4325 gdb_target_obs.
4326 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
4327 dsrec.o from gdb_target_obs.
4328 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
4329 from gdb_target_obs.
4330 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
4331 gdb_target_obs.
4332 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
4333 dink32-rom.o from gdb_target_obs.
4334 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
4335 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
4336 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
4337 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
4338
4339 2015-08-21 Pedro Alves <palves@redhat.com>
4340
4341 * frame.c (null_frame_id): Explicitly zero-initialize.
4342
4343 2015-08-21 Tom Tromey <tromey@redhat.com>
4344
4345 * dwarf2read.c (struct dwarf2_section_info): Rename field
4346 'asection' to 'section'.
4347 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
4348 (dwarf2_locate_sections, dwarf2_locate_sections)
4349 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
4350 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
4351 (dwarf2_locate_v2_dwp_sections): Adjust.
4352
4353 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4354
4355 * top.h (gdb_in_secondary_prompt_p): Declare.
4356 * top.c (gdb_secondary_prompt_depth): Define.
4357 (gdb_in_secondary_prompt_p): Define.
4358 (gdb_readline_wrapper_cleanup): Decrement
4359 gdb_secondary_prompt_depth.
4360 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
4361 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
4362 are in a secondary prompt.
4363
4364 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4365
4366 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
4367 emit the newline.
4368
4369 2015-08-21 Gary Benson <gbenson@redhat.com>
4370
4371 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
4372
4373 2015-08-21 Gary Benson <gbenson@redhat.com>
4374
4375 * target.h (struct target_ops) <to_fileio_open>: New argument
4376 warn_if_slow. Update comment. All implementations updated.
4377 (target_fileio_open_warn_if_slow): New declaration.
4378 * target.c (target_fileio_open): Renamed as...
4379 (target_fileio_open_1): ...this. New argument warn_if_slow.
4380 Pass warn_if_slow to implementation. Update debug printing.
4381 (target_fileio_open): New function.
4382 (target_fileio_open_warn_if_slow): Likewise.
4383 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
4384 target_fileio_open_warn_if_slow.
4385
4386 2015-08-21 Gary Benson <gbenson@redhat.com>
4387
4388 * nat/linux-namespaces.c (linux_mntns_access_fs):
4389 Do not overwrite old_chain.
4390
4391 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
4392
4393 * arch/xtensa.h: New file.
4394 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
4395 (ps_get_thread_area): New function.
4396 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
4397 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
4398 * xtensa-tdep.c (osabi.h): New #include.
4399 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
4400 xtensa-specific hooks.
4401 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
4402 member and move the structure to arch/xtensa.h.
4403
4404 2015-08-21 Pedro Alves <palves@redhat.com>
4405
4406 * remote.c (struct readahead_cache): New.
4407 (struct remote_state) <readahead_cache>: New field.
4408 (remote_open_1): Invalidate the cache.
4409 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
4410 functions.
4411 (remote_hostio_pwrite): Invalidate the readahead cache.
4412 (remote_hostio_pread): Rename to ...
4413 (remote_hostio_pread_vFile): ... this.
4414 (remote_hostio_pread_from_cache): New function.
4415 (remote_hostio_pread): Reimplement.
4416 (remote_hostio_close): Invalidate the readahead cache.
4417
4418 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
4419
4420 PR build/18843
4421 * procfs.c: Include "filestuff.h".
4422
4423 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
4424
4425 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
4426 curch.
4427 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
4428 cur_line or curch, instead call wmove().
4429 (init_win_info) [CMD_WIN]: Likewise.
4430 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
4431 instead call getcury().
4432 (tui_redisplay_readline): Don't set cur_line or curch.
4433 (tui_mld_erase_entire_line): Don't read cur_line, instead call
4434 getcury().
4435 (tui_cont_sig): Remove call to wmove.
4436 (tui_getc): Don't read cur_line or curch, instead call getcury()
4437 or getyx(). Don't set curch.
4438 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
4439 set cur_line or curch. Always move cursor to (0,0).
4440
4441 2015-08-20 Pedro Alves <palves@redhat.com>
4442
4443 * infrun.c (print_target_wait_results): Make extern.
4444 * infrun.h (print_target_wait_results): Declare.
4445 * remote.c (set_stop_requested_callback): Delete.
4446 (process_initial_stop_replies): New function.
4447 (remote_start_remote): Use it.
4448 (stop_reply_queue_length): New function.
4449
4450 2015-08-20 Pedro Alves <palves@redhat.com>
4451
4452 * dwarf2read.c (process_full_comp_unit): To tell whether
4453 start_subfile managed to deduce a language, test for
4454 language_unknown instead of language_c.
4455
4456 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
4457
4458 * ada-lex.l: Reset the start condition to INITIAL in the rule that
4459 matches attributes.
4460
4461 2015-08-19 Kevin Buettner <kevinb@redhat.com>
4462
4463 * dwarf2read.c (dwarf2_string_attr): New function.
4464 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
4465 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
4466 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
4467 (anonymous_struct_prefix, prepare_one_comp_unit): Use
4468 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
4469
4470 2015-08-18 Doug Evans <dje@google.com>
4471 Adrian Sendroiu <adrian.sendroiu@freescale.com>
4472
4473 PR mi/18833
4474 * cli/cli-logging.c (pop_output_files): Don't restore redirection
4475 if MI-like.
4476 * mi/mi-out.c: #include "vec.h".
4477 (ui_filep): New type.
4478 (DEV_VEC_P (ui_filep)): New type.
4479 (struct ui_out_data) <buffer, original_buffer>: Delete.
4480 (struct ui_out_data) <streams>: New member.
4481 (mi_ui_out_impl): Add data_destroy field.
4482 (mi_field_string, mi_field_fmt): Update.
4483 (mi_flush, mi_redirect, field_separator): Update.
4484 (mi_open, mi_close): Update.
4485 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
4486 (mi_out_data_ctor, mi_out_data_dtor): New functions.
4487 (mi_out_new): Call mi_out_data_ctor.
4488
4489 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
4490
4491 * remote.c (strprefix): New.
4492 (remote_parse_stop_reply): Use strprefix instead of strncmp
4493 to ensure exact match of keyword.
4494
4495 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4496
4497 * gdb_bfd.c (debug_bfd_cache): New variable.
4498 (show_bfd_cache_debug): New function.
4499 (gdb_bfd_open): Add debug logging.
4500 (gdb_bfd_ref): Likewise.
4501 (gdb_bfd_unref): Likewise.
4502 (_initialize_gdb_bfd): Add new set/show command.
4503 * NEWS: Mention new command.
4504
4505 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4506
4507 * gdb_bfd.c (bfd_sharing): New variable.
4508 (show_bfd_sharing): New function.
4509 (gdb_bfd_open): Check bfd_sharing variable.
4510 (_initialize_gdb_bfd): Add new set/show command.
4511 * NEWS: Mention new command.
4512
4513 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
4514
4515 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
4516 field.
4517 (struct gdb_bfd_cache_search): Likewise.
4518 (eq_bfd): Compare the size, inode, and device id fields.
4519 (gdb_bfd_open): Initialise the size, inode, and device id fields.
4520 (gdb_bfd_ref): Likewise.
4521 (gdb_bfd_unref): Likewise.
4522
4523 2015-08-18 Pedro Alves <palves@redhat.com>
4524
4525 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
4526 target implements to_always_non_stop_p, call it.
4527 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
4528 (x86_linux_create_target): Install it as to_always_non_stop_p
4529 method.
4530
4531 2015-08-17 Doug Evans <dje@google.com>
4532
4533 * ui-out.c (default_ui_out_impl): Add comment.
4534
4535 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
4536
4537 * d-exp.y (type_aggregate_p): New function.
4538 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
4539 (classify_inner_name): Likewise.
4540 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
4541
4542 2015-08-15 Doug Evans <xdje42@gmail.com>
4543
4544 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
4545 updated.
4546 (add_psymbol_to_list): Ditto.
4547
4548 2015-08-15 Doug Evans <xdje42@gmail.com>
4549
4550 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
4551 updated. Call end_psymtab_common.
4552 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
4553 end_psymtab_common.
4554 (build_type_psymtabs_reader): Ditto.
4555 * psympriv.h (sort_pst_symbols): Delete.
4556 (end_psymtab_common): Declare.
4557 * psymtab.c (sort_pst_symbols): Make static.
4558 (end_psymtab_common): New function.
4559 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
4560
4561 2015-08-15 Doug Evans <xdje42@gmail.com>
4562
4563 * defs.h (LANGUAGE_BITS): Define.
4564 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
4565 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
4566 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
4567 (minimal_symbol_type): Add nr_minsym_types.
4568 (MINSYM_TYPE_BITS): Define.
4569 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
4570 (domain_enum_tag): Add NR_DOMAINS.
4571 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
4572 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
4573
4574 2015-08-15 Doug Evans <xdje42@gmail.com>
4575
4576 * objfiles.h: Whitespace cleanup.
4577 * psympriv.h: Whitespace cleanup.
4578 * psymtab.c: Whitespace/coding convention cleanup.
4579
4580 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
4581
4582 * inferior.c (detach_inferior_command): Don't call
4583 any_thread_of_process when pid is 0.
4584 (kill_inferior_command): Likewise.
4585
4586 2015-08-14 Doug Evans <xdje42@gmail.com>
4587
4588 PR gdb/11833
4589 * NEWS: Document new /s modifier for the disassemble command.
4590 * cli/cli-cmds.c (disassemble_command): Add support for /s.
4591 (_initialize_cli_cmds): Update online docs of disassemble command.
4592 * disasm.c: #include "source.h".
4593 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
4594 All uses updated.
4595 (dis_line_entry): New struct.
4596 (hash_dis_line_entry, eq_dis_line_entry): New functions.
4597 (allocate_dis_line_table): New functions.
4598 (maybe_add_dis_line_entry, line_has_code_p): New functions.
4599 (dump_insns): New arg end_pc. All callers updated.
4600 (do_mixed_source_and_assembly_deprecated): Renamed from
4601 do_mixed_source_and_assembly. All callers updated.
4602 (do_mixed_source_and_assembly): New function.
4603 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
4604 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
4605 DISASSEMBLY_SOURCE. All uses updated.
4606 (DISASSEMBLY_SOURCE): New macro.
4607 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
4608
4609 2015-08-14 Keith Seitz <keiths@redhat.com>
4610
4611 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
4612 `typename' to `type_name' to avoid C++ reserved word.
4613
4614 2015-08-14 Keith Seitz <keiths@redhat.com>
4615
4616 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
4617 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
4618 silence ARI errors.
4619
4620 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
4621
4622 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
4623 xstrprintf instead of malloc and sprintf.
4624 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
4625 (lex_one_token): Likewise.
4626
4627 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4628
4629 * solib-svr4.c (read_program_header): Add base_addr argument to
4630 report the runtime address of the segment.
4631 (find_program_interpreter): Update read_program_header call to pass
4632 a NULL pointer for the new argument.
4633 (scan_dyntag): Add ptr_addr argument to report the runtime address
4634 of the tag payload.
4635 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
4636 read_program_header to get the base address of the dynamic segment.
4637 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
4638 read_program_header.
4639 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
4640
4641 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
4642
4643 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
4644
4645 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4646
4647 * d-exp.y (%union): Add voidval.
4648 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
4649 name in the lexing stage.
4650 (PostfixExpression): Move symbol completion handling in grammar here
4651 from PrimaryExpression.
4652 (PrimaryExpression): Move routines to handle resolving identifier
4653 tokens in the grammar here from push_expression_name.
4654 (IdentifierExp): Remove the handling of alternating '.' and identifier
4655 tokens.
4656 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
4657 (BasicType): Remove C-style typename rules.
4658 (d_type_from_name, d_module_from_name, push_variable)
4659 (push_fieldnames, push_type_name, push_module_name)
4660 (push_expression_name): Remove.
4661 (lex_one_token): Rename from yylex. Replace pstate with par_state.
4662 (token_and_value): New type.
4663 (token_fifo, popping, name_obstack): New globals.
4664 (classify_name): New function.
4665 (classify_inner_name): Likewise.
4666 (yylex): Likewise.
4667 (d_parse): Initialize token_fifo, popping and name_obstack.
4668
4669 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
4670
4671 * Makefile.in (SFILES): Add d-namespace.c.
4672 (COMMON_OBS): Add d-namespace.o.
4673 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
4674 la_lookup_symbol_nonlocal callback function pointer.
4675 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
4676 (d_lookup_nested_symbol): New declaration.
4677 * d-namespace.c: New file.
4678
4679 2015-08-13 Pedro Alves <palves@redhat.com>
4680
4681 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
4682 cleanup after the decref cleanup, not before.
4683
4684 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
4685
4686 * ada-lang.c: Include namespace.h
4687 (aux_add_nonlocal_symbols): Fix a function name in comment.
4688 (ada_add_block_renamings): New.
4689 (add_nonlocal_symbols): Add global renamings handling.
4690 (ada_lookup_symbol_list_worker): Move the symbol lookup part
4691 to...
4692 (ada_add_all_symbols): ... this new function.
4693 (ada_add_block_symbols): Try to match the input name against the
4694 "using directives list", perform a recursive symbol lookup on
4695 the matched declarations.
4696 * block.h (struct block): Move the_namespace to top-level as
4697 namespace_info. Remove the language_specific field.
4698 (BLOCK_NAMESPACE): Update access to the namespace_info field.
4699 * buildsym.h (using_directives): Rename into...
4700 (local_using_directives): ... this.
4701 (global_using_directives): New.
4702 (struct context_stack): Rename the using_directives field into
4703 local_using_directives.
4704 * buildsym.c (finish_block_internal): Deal with the proper
4705 using directives repository (local or global).
4706 (prepare_for_building): Reset local_using_directives. Assert
4707 that there is no pending global using directive.
4708 (reset_symtab_globals): Reset global_using_directives and
4709 local_using_directives.
4710 (end_symtab_get_static_block): Don't ignore symtabs that have
4711 only using directives.
4712 (push_context): Update references to local_using_directives.
4713 (buildsym_init): Do not reset using_directives.
4714 * cp-support.c: Include namespace.h.
4715 * cp-support.h (struct using_direct): Move to namespace.h.
4716 (cp_add_using_directives): Move to namespace.h.
4717 * cp-namespace.c: Include namespace.h
4718 (cp_add_using_directive): Move to namespace.c, rename it to
4719 add_using_directive, add a "using_directives" argument and use
4720 it as the pending using directives repository. All callers
4721 updated.
4722 * dwarf2read.c (using_directives): New.
4723 (read_import_statement): Call using_directives.
4724 (read_func_scope): Update references to local_using_directives.
4725 (read_lexical_block_scope): Likewise.
4726 (read_namespace): Update the heading comment, call
4727 using_directives.
4728 * namespace.h: New file.
4729 * namespace.c: New file.
4730 * Makefile.in (SFILES): Add namespace.c.
4731 (COMMON_OBS): Add namespace.o
4732
4733 2015-08-12 Joel Brobecker <brobecker@adacore.com>
4734
4735 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
4736 compute RETADDR.
4737
4738 2015-08-12 Keith Seitz <keiths@redhat.com>
4739
4740 * break-catch-throw.c (re_set_exception_catchpoint) Rename
4741 reserved C++ keyword "explicit" to "explicit_loc".
4742 * breakpoint.c (create_overlay_event_breakpoint)
4743 (create_longjmp_master_breakpoint)
4744 (create_std_terminate_master_breakpoint)
4745 (create_exception_master_breakpoint, update_static_tracepoint):
4746 Rename reserved C++ keyword "explicit" to "explicit_loc".
4747 * completer.c (collect_explicit_location_matches)
4748 (explicit_location_completer): Rename reserved C++ keyword
4749 "explicit" to "explicit_loc".
4750 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
4751 (canonicalize_linespec, create_sals_line_offset)
4752 (convert_linespec_to_sals, convert_explicit_location_to_sals)
4753 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
4754 "explicit" to "explicit_loc".
4755 * location.c (struct event_location) <explicit>: Rename to
4756 "explicit_loc".
4757 (initialize_explicit_location, new_explicit_location)
4758 (explicit_location_to_string_internal, explicit_location_to_linespec):
4759 Rename reserved C++ keyword "explicit" to "explicit_loc".
4760 * location.h (explicit_location_to_string)
4761 (explicit_location_to_linespec, initialize_explicit_location)
4762 (new_explicit_location): Rename reserved C++ keyword "explicit"
4763 to "explicit_loc".
4764 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
4765 keyword "explicit" to "explicit_loc".
4766
4767 2015-08-12 Keith Seitz <keiths@redhat.com>
4768
4769 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
4770 and only call decode_line_1 when it is non-NULL.
4771
4772 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
4773
4774 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
4775 location address is not meaningful.
4776 (breakpoint_address_is_meaningful): Update comment.
4777
4778 2015-08-11 Keith Seitz <keiths@redhat.com>
4779
4780 * NEWS: Mention explicit locations.
4781 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
4782 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
4783 (_initialize_breakpoint): Update documentation for
4784 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
4785
4786 2015-08-11 Keith Seitz <keiths@redhat.com>
4787
4788 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
4789 explicit locations, options "--source", "--function",
4790 "--label", and "--line".
4791
4792 2015-08-11 Keith Seitz <keiths@redhat.com>
4793
4794 * completer.c: Include location.h.
4795 (enum match_type): New enum.
4796 (location_completer): Rename to ...
4797 (linespec_completer): ... this.
4798 (collect_explicit_location_matches, backup_text_ptr)
4799 (explicit_location_completer): New functions.
4800 (location_completer): "New" function; handle linespec
4801 and explicit location completions.
4802 (complete_line_internal): Remove all location completer-specific
4803 handling.
4804 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
4805 (find_toplevel_char): Export.
4806 (linespec_parse_line_offset): Export.
4807 Issue error if STRING is not numerical.
4808 (gdb_get_linespec_parser_quote_characters): New function.
4809 * linespec.h (linespec_parse_line_offset): Declare.
4810 (get_gdb_linespec_parser_quote_characters): Declare.
4811 (is_ada_operator): Declare.
4812 (find_toplevel_char): Declare.
4813 (linespec_lexer_lex_keyword): Declare.
4814 * location.c (explicit_to_event_location): New function.
4815 (explicit_location_lex_one): New function.
4816 (string_to_explicit_location): New function.
4817 (string_to_event_location): Handle explicit locations.
4818 * location.h (explicit_to_event_location): Declare.
4819 (string_to_explicit_location): Declare.
4820
4821 2015-08-11 Keith Seitz <keiths@redhat.com>
4822
4823 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4824 linespec into explicit location.
4825 * breakpoint.c (create_overlay_breakpoint)
4826 (create_longjmp_master_breakpoint)
4827 (create_std_terminate_master_breakpoint)
4828 (create_exception_master_breakpoint): Convert linespec into explicit
4829 location.
4830 (update_static_tracepoint): Convert linespec into explicit location.
4831 * linespec.c (enum offset_relative_sign, struct line_offset): Move
4832 location.h.
4833 (struct linespec) <expression, expr_pc, source_filename>
4834 <function_name, label_name, line_offset>: Replace with ...
4835 <explicit>: ... this.
4836 <is_linespec>: New member.
4837 (PARSER_EXPLICIT): New accessor macro.
4838 (undefined_label_error): New function.
4839 (source_file_not_found_error): New function.
4840 (linespec_parse_basic): The parser result is now an explicit location.
4841 Use PARSER_EXPLICIT to access it.
4842 Use undefined_label_error.
4843 (canonicalize_linespec): Convert canonical linespec into explicit
4844 location.
4845 Move string representation of location to explicit_location_to_linespec
4846 and use it and explicit_location_to_string to save string
4847 representations of the canonical location.
4848 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
4849 explicit location. Update all references.
4850 (convert_explicit_location_to_sals): New function.
4851 (parse_linespec): Use PARSER_EXPLICIT to access the parser
4852 result's explicit location.
4853 (linespec_state_constructor): Initialize is_linespec.
4854 Use PARSER_EXPLICIT.
4855 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
4856 result.
4857 (event_location_to_sals): For linespec locations, set is_linespec.
4858 Handle explicit locations.
4859 (decode_objc): 'ls' contains an explicit location now. Update all
4860 references.
4861 (symtabs_from_filename): Use source_file_not_found_error.
4862 * location.c (struct event_location.u) <explicit>: New member.
4863 (initialize_explicit_location): New function.
4864 (initialize_event_location): Initialize explicit locations.
4865 (new_explicit_location, get_explicit_location)
4866 (get_explicit_location_const): New functions.
4867 (explicit_to_string_internal): New function; most of contents moved
4868 from canonicalize_linespec.
4869 (explicit_location_to_string): New function.
4870 (explicit_location_to_linespec): New function.
4871 (copy_event_location, delete_event_location)
4872 (event_location_to_string_const, event_location_empty_p): Handle
4873 explicit locations.
4874 * location.h (enum offset_relative_sign, struct line_offset): Move
4875 here from linespec.h.
4876 (enum event_location_type): Add EXPLICIT_LOCATION.
4877 (struct explicit_location): New structure.
4878 (explicit_location_to_string): Declare.
4879 (explicit_location_to_linespec): Declare.
4880 (new_explicit_location, get_explicit_locationp
4881 (get_explicit_location_const, initialize_explicit_location): Declare.
4882
4883 2015-08-11 Keith Seitz <keiths@redhat.com>
4884
4885 * break-catch-throw.c (re_set_exception_catchpoint): Convert
4886 linespec for stap probe to probe location.
4887 * breakpoint.c (create_longjmp_master_breakpoint)
4888 (create_exception_master_breakpoint): Likewise.
4889 (break_command_1): Remove local variable `arg_cp'.
4890 Check location type to set appropriate breakpoint ops methods.
4891 (trace_command): Likewise.
4892 * linespec.c (event_location_to_sals): Assert on probe locations.
4893 * location.c (EL_PROBE): Add macro definition.
4894 (new_probe_location, get_probe_location): New functions.
4895 (copy_event_location, delete_event_location, event_location_to_string)
4896 (string_to_event_location, event_location_empty_p): Handle probe
4897 locations.
4898 * location.h (enum event_location_type): Add PROBE_LOCATION.
4899 (new_probe_location, get_probe_location): Declare.
4900 * probe.c (parse_probes): Assert that LOCATION is a probe location.
4901 Convert linespec into probe location.
4902
4903 2015-08-11 Keith Seitz <keiths@redhat.com>
4904
4905 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
4906 Convert linespec to address location.
4907 * linespec.c (canonicalize_linespec): Do not handle address
4908 locations here.
4909 (convert_address_location_to_sals): New function; contents moved
4910 from ...
4911 (convert_linespc_to_sals): ... here.
4912 (parse_linespec): Remove address locations from linespec grammar.
4913 Remove handling of address locations.
4914 (linespec_lex_to_end): Remove handling of address linespecs.
4915 (event_location_to_sals): Handle ADDRESS_LOCATION.
4916 (linespec_expression_to_pc): Export.
4917 * linespec.h (linespec_expression_to_pc): Add declaration.
4918 * location.c (struct event_location.u) <address>: New member.
4919 (new_address_location, get_address_location): New functions.
4920 (copy_event_location, delete_event_location, event_location_to_string)
4921 (string_to_event_location, event_location_empty_p): Handle address
4922 locations.
4923 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
4924 (new_address_location, get_address_location): Declare.
4925 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
4926 to address location.
4927 * spu-tdep.c (spu_catch_start): Likewise.
4928
4929 2015-08-11 Keith Seitz <keiths@redhat.com>
4930
4931 * ax-gdb.c: Include location.h.
4932 (agent_command_1) Use linespec location instead of address
4933 string.
4934 * break-catch-throw.c: Include location.h.
4935 (re_set_exception_catchpoint): Use linespec locations instead
4936 of address strings.
4937 * breakpoint.c: Include location.h.
4938 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
4939 (create_std_terminate_master_breakpoint)
4940 (create_exception_master_breakpoint, update_breakpoints_after_exec):
4941 Use linespec location instead of address string.
4942 (print_breakpoint_location): Use locations and
4943 event_location_to_string.
4944 Print extra_string for pending locations for non-MI streams.
4945 (print_one_breakpoint_location): Use locations and
4946 event_location_to_string.
4947 (init_raw_breakpoint_without_location): Initialize b->location.
4948 (create_thread_event_breakpoint): Use linespec location instead of
4949 address string.
4950 (init_breakpoint_sal): Likewise.
4951 Only save extra_string if it is non-NULL and not the empty string.
4952 Use event_location_to_string instead of `addr_string'.
4953 Constify `p' and `endp'.
4954 Use skip_spaces_const/skip_space_const instead of non-const versions.
4955 Copy the location into the breakpoint.
4956 If LOCATION is NULL, save the breakpoint address as a linespec location
4957 instead of an address string.
4958 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4959 event_location. All uses updated.
4960 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4961 (parse_breakpoint_sals): Use locations instead of address strings.
4962 Remove check for empty linespec with conditional.
4963 Refactor.
4964 (decode_static_tracepoint_spec): Make argument const and update
4965 function.
4966 (create_breakpoint): Change `arg' to a struct event_location and
4967 rename.
4968 Remove `copy_arg' and `addr_start'.
4969 If EXTRA_STRING is empty, set it to NULL.
4970 Don't populate `canonical' for pending breakpoints.
4971 Pass `extra_string' to find_condition_and_thread.
4972 Clear `extra_string' if `rest' was NULL.
4973 Do not error with "garbage after location" if setting a dprintf
4974 breakpoint.
4975 Copy the location into the breakpoint instead of an address string.
4976 (break_command_1): Use string_to_event_location and pass this to
4977 create_breakpoint instead of an address string.
4978 Check against `arg_cp' for a probe linespec.
4979 (dprintf_command): Use string_to_event_location and pass this to
4980 create_breakpoint instead of an address string.
4981 Throw an exception if no format string was specified.
4982 (print_recreate_ranged_breakpoint): Use event_location_to_string
4983 instead of address strings.
4984 (break_range_command, until_break_command)
4985 (init_ada_exception_breakpoint): Use locations instead
4986 of address strings.
4987 (say_where): Print out extra_string for pending locations.
4988 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4989 the breakpoint.
4990 (base_breakpoint_create_sals_from_location): Use struct event_location
4991 instead of address string.
4992 Remove `addr_start' and `copy_arg' parameters.
4993 (base_breakpoint_decode_location): Use struct event_location instead of
4994 address string.
4995 (bkpt_re_set): Use locations instead of address strings.
4996 Use event_location_empty_p to check for unset location.
4997 (bkpt_print_recreate): Use event_location_to_string instead of
4998 an address string.
4999 Print out extra_string for pending locations.
5000 (bkpt_create_sals_from_location, bkpt_decode_location)
5001 (bkpt_probe_create_sals_from_location): Use struct event_location
5002 instead of address string.
5003 (bkpt_probe_decode_location): Use struct event_location instead of
5004 address string.
5005 (tracepoint_print_recreate): Use event_location_to_string to
5006 recreate the tracepoint.
5007 (tracepoint_create_sals_from_location, tracepoint_decode_location)
5008 (tracepoint_probe_create_sals_from_location)
5009 (tracepoint_probe_decode_location): Use struct event_location
5010 instead of address string.
5011 (dprintf_print_recreate): Use event_location_to_string to recreate
5012 the dprintf.
5013 (dprintf_re_set): Remove check for valid/missing format string.
5014 (strace_marker_create_sals_from_location)
5015 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
5016 (update_static_tracepoint): Use struct event_location instead of
5017 address string.
5018 (location_to_sals): Likewise.
5019 Pass `extra_string' to find_condition_and_thread.
5020 For newly resolved pending breakpoint locations, clear the location's
5021 string representation.
5022 Assert that the breakpoint's condition string is NULL when
5023 condition_not_parsed.
5024 (breakpoint_re_set_default, create_sals_from_location_default)
5025 (decode_location_default, trace_command, ftrace_command)
5026 (strace_command, create_tracepoint_from_upload): Use locations
5027 instead of address strings.
5028 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
5029 Use struct event_location instead of address string.
5030 Update all uses.
5031 <decode_location>: Likewise.
5032 (struct breakpoint) <addr_string>: Change to struct event_location
5033 and rename `location'.
5034 <addr_string_range_end>: Change to struct event_location and rename
5035 `location_range_end'.
5036 (create_breakpoint): Use struct event_location instead of address
5037 string.
5038 * cli/cli-cmds.c: Include location.h.
5039 (edit_command, list_command): Use locations instead of address strings.
5040 * elfread.c: Include location.h.
5041 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
5042 * guile/scm-breakpoint.c: Include location.h.
5043 (bpscm_print_breakpoint_smob): Use event_location_to_string.
5044 (gdbscm_register_breakpoint): Use locations instead of address
5045 strings.
5046 * linespec.c: Include location.h.
5047 (struct ls_parser) <stream>: Change to const char *.
5048 (PARSER_STREAM): Update.
5049 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
5050 keywords must be followed by whitespace.
5051 (canonicalize_linespec): Save a linespec location into `canonical'.
5052 Save a canonical linespec into `canonical'.
5053 (parse_linespec): Change `argptr' to const char * and rename `arg'.
5054 All uses updated.
5055 Update function description.
5056 (linespec_parser_new): Initialize `parser'.
5057 Update initialization of parsing stream.
5058 (event_location_to_sals): New function.
5059 (decode_line_full): Change `argptr' to a struct event_location and
5060 rename it `location'.
5061 Use locations instead of address strings.
5062 Call event_location_to_sals instead of parse_linespec.
5063 (decode_line_1): Likewise.
5064 (decode_line_with_current_source, decode_line_with_last_displayed)
5065 Use locations instead of address strings.
5066 (decode_objc): Likewise.
5067 Change `argptr' to const char * and rename `arg'.
5068 (destroy_linespec_result): Delete the linespec result's location
5069 instead of freeing the address string.
5070 * linespec.h (struct linespec_result) <addr_string>: Change to
5071 struct event_location and rename to ...
5072 <location>: ... this.
5073 (decode_line_1, decode_line_full): Change `argptr' to struct
5074 event_location. All callers updated.
5075 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
5076 (mi_cmd_break_insert_1): Use locations instead of address strings.
5077 Throw an error if there was "garbage" at the end of the specified
5078 linespec.
5079 * probe.c: Include location.h.
5080 (parse_probes): Change `argptr' to struct event_location.
5081 Use event locations instead of address strings.
5082 * probe.h (parse_probes): Change `argptr' to struct event_location.
5083 * python/py-breakpoint.c: Include location.h.
5084 (bppy_get_location): Constify local variable `str'.
5085 Use event_location_to_string.
5086 (bppy_init): Use locations instead of address strings.
5087 * python/py-finishbreakpoint.c: Include location.h.
5088 (bpfinishpy_init): Remove local variable `addr_str'.
5089 Use locations instead of address strings.
5090 * python/python.c: Include location.h.
5091 (gdbpy_decode_line): Use locations instead of address strings.
5092 * remote.c: Include location.h.
5093 (remote_download_tracepoint): Use locations instead of address
5094 strings.
5095 * spu-tdep.c: Include location.h.
5096 (spu_catch_start): Remove local variable `buf'.
5097 Use locations instead of address strings.
5098 * tracepoint.c: Include location.h.
5099 (scope_info): Use locations instead of address strings.
5100 (encode_source_string): Constify parameter `src'.
5101 * tracepoint.h (encode_source_string): Likewise.
5102
5103 2015-08-11 Keith Seitz <keiths@redhat.com>
5104
5105 * Makefile.in (SFILES): Add location.c.
5106 (HFILES_NO_SRCDIR): Add location.h.
5107 (COMMON_OBS): Add location.o.
5108 * linespec.c (linespec_lex_to_end): New function.
5109 * linespec.h (linespec_lex_to_end): Declare.
5110 * location.c: New file.
5111 * location.h: New file.
5112
5113 2015-08-11 Keith Seitz <keiths@redhat.com>
5114
5115 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
5116 Renamed to create_sals_from_location.
5117 <decode_linespec>: Renamed to decode_location.
5118 Update all callers.
5119 * breakpoint.c (create_sals_from_address_default): Renamed to ...
5120 (create_sals_from_location_default): ... this.
5121 (addr_string_to_sals): Renamed to ...
5122 (location_to_sals): ... this.
5123 (decode_linespec_default): Renamed to ...
5124 (decode_location_default): ... this.
5125 (base_breakpoint_create_sals_from_address): Renamed to ...
5126 (base_breakpoint_create_sals_from_location): ... this.
5127 (bkpt_create_sals_from_address): Renamed to ...
5128 (bkpt_create_sals_from_location): ... this.
5129 (bkpt_decode_linespec): Renamed to ...
5130 (bkpt_decode_location): ... this.
5131 (bkpt_probe_create_sals_from_address): Renamed to ...
5132 (bkpt_probe_create_sals_from_location): ... this.
5133 (tracepoint_create_sals_from_address): Renamed to ...
5134 (tracepoint_create_sals_from_location): ... this.
5135 (tracepoint_decode_linespec): Renamed to ...
5136 (tracepoint_decode_location): ... this.
5137 (tracepoint_probe_create_sals_from_address): Renamed to ...
5138 (tracepoint_probe_create_sals_from_location): ... this.
5139 (tracepoint_probe_decode_linespec): Renamed to ...
5140 (tracepoint_probe_decode_location): ... this.
5141 (strace_marker_create_sals_from_address): Renamed to ...
5142 (strace_marker_create_sals_from_location): ... this.
5143 (decode_linespec_default): Renamed to ...
5144 (decode_location_default): ... this.
5145
5146 2015-08-10 Doug Evans <dje@google.com>
5147 Keith Seitz <keiths@redhat.com>
5148
5149 PR gdb/17960
5150 * symtab.c (make_file_symbol_completion_list_1): Renamed from
5151 make_file_symbol_completion_list and made static.
5152 (make_file_symbol_completion_list): New function.
5153
5154 2015-08-10 Joel Brobecker <brobecker@adacore.com>
5155
5156 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
5157 trailing new-line at end of warning message.
5158 (proceed): Add i18n marker to error messages.
5159
5160 2015-08-07 Pedro Alves <palves@redhat.com>
5161
5162 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
5163
5164 2015-08-07 Pedro Alves <palves@redhat.com>
5165
5166 * s390-linux-tdep.c (is_non_branch_ril)
5167 (s390_displaced_step_copy_insn): New functions.
5168 (s390_displaced_step_fixup): Update comment.
5169 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
5170 gdbarch_displaced_step_copy_insn hook.
5171
5172 2015-08-07 Pedro Alves <palves@redhat.com>
5173
5174 * infrun.c (displaced_step_prepare_throw): Return -1 if
5175 gdbarch_displaced_step_copy_insn returns NULL. Update intro
5176 comment.
5177 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
5178 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
5179 in file.
5180 (ppc_displaced_step_copy_insn): New function.
5181 (ppc_displaced_step_fixup): Update comment.
5182 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
5183 gdbarch_displaced_step_copy_insn hook.
5184 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
5185 NULL return.
5186 * gdbarch.h: Regenerate.
5187
5188 2015-08-07 Pedro Alves <palves@redhat.com>
5189
5190 * inferior.h (struct inferior) <displaced_stepping_failed>: New
5191 field.
5192 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
5193 Return false if dispaced stepping failed before.
5194 (resume): Pass the current inferior to
5195 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
5196 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
5197 displaced_stepping_failed flag, and fall back to an in-line
5198 step-over.
5199
5200 2015-08-07 Pedro Alves <palves@redhat.com>
5201
5202 * darwin-nat.c (darwin_stop): Rename to ...
5203 (darwin_interrupt): ... this.
5204 (_initialize_darwin_inferior): Adjust.
5205 * gnu-nat.c (gnu_stop): Delete.
5206 (gnu_target): Don't install gnu_stop.
5207 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
5208 (inf_ptrace_interrupt): ... this.
5209 (inf_ptrace_target): Adjust.
5210 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
5211 target_stop.
5212 * linux-nat (linux_nat_stop): Rename to ...
5213 (linux_nat_interrupt): ... this.
5214 (linux_nat_stop): Reimplement.
5215 (linux_nat_add_target): Install linux_nat_interrupt.
5216 * nto-procfs.c (nto_interrupt_twice): Rename to ...
5217 (nto_handle_sigint_twice): ... this.
5218 (nto_interrupt): Rename to ...
5219 (nto_handle_sigint): ... this. Call target_interrupt instead of
5220 target_stop.
5221 (procfs_wait): Adjust.
5222 (procfs_stop): Rename to ...
5223 (procfs_interrupt): ... this.
5224 (init_procfs_targets): Adjust.
5225 * procfs.c (procfs_stop): Rename to ...
5226 (procfs_interrupt): ... this.
5227 (procfs_target): Adjust.
5228 * remote-m32r-sdi.c (m32r_stop): Rename to ...
5229 (m32r_interrupt): ... this.
5230 (init_m32r_ops): Adjust.
5231 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
5232 (gdbsim_interrupt_inferior): ... this.
5233 (gdbsim_stop): Rename to ...
5234 (gdbsim_interrupt): ... this.
5235 (gdbsim_cntrl_c): Adjust.
5236 (init_gdbsim_ops): Adjust.
5237 * remote.c (sync_remote_interrupt): Adjust comments.
5238 (remote_stop_as): Rename to ...
5239 (remote_interrupt_as): ... this.
5240 (remote_stop): Adjust comment.
5241 (remote_interrupt): New function.
5242 (init_remote_ops): Install remote_interrupt.
5243 * target.c (target_interrupt): New function.
5244 * target.h (struct target_ops) <to_interrupt>: New field.
5245 (target_interrupt): New declaration.
5246 * windows-nat.c (windows_stop): Rename to ...
5247 (windows_interrupt): ... this.
5248 * target-delegates.c: Regenerate.
5249
5250 2015-08-07 Pedro Alves <palves@redhat.com>
5251
5252 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
5253 threads" as alternative to "switching back to stepped thread".
5254
5255 2015-08-07 Pedro Alves <palves@redhat.com>
5256
5257 * NEWS: Mention "maint set/show target-non-stop".
5258 * breakpoint.c (update_global_location_list): Check
5259 target_is_non_stop_p instead of non_stop.
5260 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
5261 * infrun.c (show_can_use_displaced_stepping)
5262 (can_use_displaced_stepping_p, start_step_over_inferior):
5263 Likewise.
5264 (internal_resume_ptid): New function.
5265 (resume): Use it.
5266 (proceed): Check target_is_non_stop_p instead of non_stop. If in
5267 all-stop mode but the target is always in non-stop mode, start all
5268 the other threads that are implicitly resumed too.
5269 (for_each_just_stopped_thread, fetch_inferior_event)
5270 (adjust_pc_after_break, stop_all_threads): Check
5271 target_is_non_stop_p instead of non_stop.
5272 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
5273 with the target always in non-stop mode.
5274 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
5275 instead of non_stop.
5276 (switch_back_to_stepped_thread): Check target_is_non_stop_p
5277 instead of non_stop.
5278 (keep_going_stepped_thread): Use internal_resume_ptid.
5279 (stop_waiting): If in all-stop mode, and the target is in non-stop
5280 mode, stop all threads.
5281 (keep_going_pass): Likewise, when starting a new in-line step-over
5282 sequence.
5283 * linux-nat.c (get_pending_status, select_event_lwp)
5284 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
5285 target_is_non_stop_p instead of non_stop.
5286 (linux_nat_always_non_stop_p): New function.
5287 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
5288 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
5289 * target-delegates.c: Regenerate.
5290 * target.c (target_is_non_stop_p): New function.
5291 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
5292 (maint_set_target_non_stop_command)
5293 (maint_show_target_non_stop_command): New functions.
5294 (_initilize_target): Install "maint set/show target-non-stop"
5295 commands.
5296 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
5297 (target_non_stop_enabled): New declaration.
5298 (target_is_non_stop_p): New declaration.
5299
5300 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5301
5302 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
5303 has a pending status, return true.
5304 * gdbthread.h: Include target/waitstatus.h.
5305 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
5306 stop_pc>: New fields.
5307 (struct thread_info) <resumed>: New field.
5308 (set_resumed): Declare.
5309 * infrun.c: Include "event-loop.h".
5310 (infrun_async_inferior_event_token, infrun_is_async): New globals.
5311 (infrun_async): New function.
5312 (clear_step_over_info): Add debug output.
5313 (displaced_step_in_progress_any_inferior): New function.
5314 (displaced_step_fixup): New returns int.
5315 (start_step_over): Handle in-line step-overs too. Assert the
5316 thread is marked resumed.
5317 (resume_cleanups): Clear the thread's resumed flag.
5318 (resume): Set the thread's resumed flag. Return early if the
5319 thread has a pending status. Allow stepping a breakpoint with no
5320 signal.
5321 (proceed): Adjust to check 'resumed' instead of 'executing'.
5322 (clear_proceed_status_thread): If the thread has a pending status,
5323 and that status is a finished step, discard the pending status.
5324 (clear_proceed_status): Don't clear step_over_info here.
5325 (random_pending_event_thread, do_target_wait): New functions.
5326 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
5327 do_target_wait.
5328 (wait_one): New function.
5329 (THREAD_STOPPED_BY): New macro.
5330 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5331 (thread_stopped_by_hw_breakpoint): New functions.
5332 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
5333 functions.
5334 (handle_inferior_event): Also call set_resumed(false) on all
5335 threads implicitly stopped by the event.
5336 (restart_threads, resumed_thread_with_pending_status): New
5337 functions.
5338 (finish_step_over): If we were doing an in-line step-over before,
5339 and no longer are after trying to start a new step-over, restart
5340 all threads. If we have multiple threads with pending events,
5341 save the current event and go through the event loop again.
5342 (handle_signal_stop): Return early if finish_step_over returns
5343 false.
5344 <random signal>: If we get a signal while stepping over a
5345 breakpoint in-line in non-stop mode, restart all threads. Clear
5346 step_over_info before delivering the signal.
5347 (keep_going_stepped_thread): Use internal_error instead of
5348 gdb_assert. Mark the thread as resumed.
5349 (keep_going_pass_signal): Assert the thread isn't already resumed.
5350 If some other thread is doing an in-line step-over, defer the
5351 resume. If we just started a new in-line step-over, stop all
5352 threads. Don't clear step_over_info.
5353 (infrun_async_inferior_event_handler): New function.
5354 (_initialize_infrun): Create async event handler with
5355 infrun_async_inferior_event_handler as callback.
5356 (infrun_async): New declaration.
5357 * target.c (target_async): New function.
5358 * target.h (target_async): Declare macro and readd as function
5359 declaration.
5360 * target/waitstatus.h (enum target_stop_reason)
5361 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5362 * thread.c (new_thread): Clear the new waitstatus field.
5363 (set_resumed): New function.
5364
5365 2015-08-07 Pedro Alves <palves@redhat.com>
5366
5367 * infrun.c (keep_going_stepped_thread): New function, factored out
5368 from ...
5369 (switch_back_to_stepped_thread): ... here.
5370
5371 2015-08-07 Pedro Alves <palves@redhat.com>
5372
5373 * infrun.c (currently_stepping): Extend intro comment.
5374 * target.h (target_resume): Extend intro comment.
5375
5376 2015-08-07 Pedro Alves <palves@redhat.com>
5377
5378 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
5379 of inferior_ptid. If the stepped thread vanished, return 0
5380 instead of resuming here. Use reset_ecs. Print the prev_pc and
5381 the current stop_pc in log message. Clear trap_expected if the
5382 thread advanced. Don't pass currently_stepping to
5383 do_target_resume.
5384
5385 2015-08-07 Pedro Alves <palves@redhat.com>
5386
5387 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
5388 * infrun.c (struct execution_control_state): Move higher up in the
5389 file.
5390 (reset_ecs): New function.
5391 (start_step_over): Now returns int. Rewrite to use
5392 keep_going_pass_signal instead of manually starting a displaced step.
5393 (resume): Don't call set_running here. If displaced stepping
5394 can't start now, clear trap_expected.
5395 (find_thread_needs_step_over): Delete function.
5396 (proceed): Set up finish_thread_state_cleanup. Call set_running.
5397 If the current thread needs a step over, push it in the step-over
5398 chain. Don't set insert breakpoints nor call resume directly
5399 here. Instead rewrite to use start_step_over and
5400 keep_going_pass_signal.
5401 (finish_step_over): New function.
5402 (handle_signal_stop): Call finish_step_over instead of
5403 start_step_over.
5404 (switch_back_to_stepped_thread): If the event thread needs another
5405 step-over do that first. Use start_step_over.
5406 (keep_going_pass_signal): New function, factored out from ...
5407 (keep_going): ... here.
5408 (_initialize_infrun): Comment moved here.
5409 * thread.c (set_running_thread): New function.
5410 (set_running, finish_thread_state): Use set_running_thread.
5411
5412 2015-08-07 Pedro Alves <palves@redhat.com>
5413
5414 * gdbthread.h (struct thread_info) <step_over_prev,
5415 step_over_next>: New fields.
5416 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
5417 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
5418 declarations.
5419 * infrun.c (struct displaced_step_request): Delete.
5420 (struct displaced_step_inferior_state) <step_request_queue>:
5421 Delete field.
5422 (displaced_step_prepare): Assert that trap_expected is set. Use
5423 thread_step_over_chain_enqueue. Split starting a new displaced
5424 step to ...
5425 (start_step_over): ... this new function.
5426 (resume): Assert the thread isn't waiting for a step over already.
5427 (proceed): Assert the thread isn't waiting for a step over
5428 already.
5429 (infrun_thread_stop_requested): Adjust to remove threads from the
5430 embedded step-over chain.
5431 (handle_inferior_event) <fork/vfork>: Call start_step_over after
5432 displaced_step_fixup.
5433 (handle_signal_stop): Call start_step_over after
5434 displaced_step_fixup.
5435 * infrun.h (step_over_queue_head): New declaration.
5436 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
5437 (thread_step_over_chain_next, thread_is_in_step_over_chain)
5438 (thread_step_over_chain_enqueue)
5439 (thread_step_over_chain_remove): New functions.
5440 (delete_thread_1): Remove thread from the step-over chain.
5441
5442 2015-08-07 Pedro Alves <palves@redhat.com>
5443
5444 * infrun.c (thread_still_needs_step_over): Rename to ...
5445 (thread_still_needs_step_over_bp): ... this.
5446 (enum step_over_what): New.
5447 (thread_still_needs_step_over): Reimplement.
5448
5449 2015-08-07 Pedro Alves <palves@redhat.com>
5450
5451 * remote.c (remote_wait_as): If not waiting for a stop reply,
5452 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
5453 requested, don't block waiting forever.
5454
5455 2015-08-07 Pedro Alves <pedro@codesourcery.com>
5456
5457 * infrun.c (adjust_pc_after_break): Now takes thread_info and
5458 waitstatus pointers instead of an ecs. Adjust.
5459 (handle_inferior_event): Adjust caller.
5460
5461 2015-08-07 Pedro Alves <palves@redhat.com>
5462
5463 * infrun.c (handle_inferior_event): If we get
5464 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
5465 mode, mark all threads of the exiting process as not-executing.
5466 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
5467 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
5468 exiting process, if inferior_ptid still points at a process.
5469 * thread.c (struct current_thread_cleanup) <next>: New field.
5470 (current_thread_cleanup_chain): New global.
5471 (restore_current_thread_ptid_changed): New function.
5472 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
5473 current_thread_cleanup_chain list.
5474 (make_cleanup_restore_current_thread): Add the cleanup data to the
5475 current_thread_cleanup_chain list.
5476 (_initialize_thread): Install restore_current_thread_ptid_changed
5477 as thread_ptid_changed observer.
5478
5479 2015-08-07 Joel Brobecker <brobecker@adacore.com>
5480
5481 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
5482 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
5483 smaller than expected.
5484
5485 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * stack.c (get_frame_language): Moved ...
5488 * frame.c (get_frame_language): ... to here.
5489 * language.h (get_frame_language): Declaration moved to frame.h.
5490 * frame.h: Add language.h include, for language enum.
5491 (get_frame_language): Declaration moved from language.h.
5492 * language.c: Add frame.h include.
5493 * top.c: Add frame.h include.
5494 * symtab.h (struct obj_section): Declare.
5495 (struct cmd_list_element): Declare.
5496
5497 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
5498
5499 * language.c (show_language_command): Find selected frame before
5500 asking for the language of that frame.
5501 (set_language_command): Likewise.
5502 * language.h (get_frame_language): Add frame parameter.
5503 * stack.c (get_frame_language): Add frame parameter, assert
5504 parameter is not NULL, update comment and reindent.
5505 * top.c (check_frame_language_change): Pass the selected frame
5506 into get_frame_language.
5507
5508 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5509
5510 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
5511 (pt_btrace_insn_flags): New.
5512 (ftrace_add_pt): Call pt_btrace_insn_flags.
5513 * btrace.h (btrace_insn_flag): New.
5514 (btrace_insn) <flags>: New.
5515 * record-btrace.c (btrace_insn_history): Print insn prefix.
5516 * NEWS: Announce it.
5517
5518 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
5519
5520 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
5521 * configure: Regenerate.
5522
5523 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
5524
5525 * Makefile.in (LIBICONV): Define.
5526 (CLIBS): Add LIBICONV.
5527 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
5528 * configure: Regenerate.
5529
5530 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5531 Pedro Alves <palves@redhat.com>
5532
5533 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
5534 (arm_set_abi): Likewise.
5535 * ax-general.c (ax_print): Likewise.
5536 * c-exp.y (exp : string_exp): Likewise.
5537 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
5538 (do_compile_dwarf_expr_to_c): Likewise.
5539 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
5540 Likewise.
5541 * dwarf2expr.c (execute_stack_op): Likewise.
5542 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
5543 (disassemble_dwarf_expression): Likewise.
5544 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
5545 (read_array_order): Likewise.
5546 (abbrev_table_read_table): Likewise.
5547 (read_attribute_value): Likewise.
5548 (skip_unknown_opcode): Likewise.
5549 (dwarf_decode_macro_bytes): Likewise.
5550 (dwarf_decode_macros): Likewise.
5551 * eval.c (value_f90_subarray): Likewise.
5552 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5553 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5554 * infrun.c (handle_command): Likewise.
5555 * memory-map.c (memory_map_start_memory): Likewise.
5556 * osabi.c (set_osabi): Likewise.
5557 * parse.c (operator_length_standard): Likewise.
5558 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
5559 single return point.
5560 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
5561 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
5562 (gdbpy_lookup_global_symbol): Likewise.
5563 * record-full.c (record_full_restore): Likewise.
5564 * regcache.c (regcache_register_status): Likewise.
5565 (regcache_raw_read): Likewise.
5566 (regcache_cooked_read): Likewise.
5567 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5568 * symtab.c (initialize_ordinary_address_classes): Likewise.
5569 * target-debug.h (target_debug_print_signals): Likewise.
5570 * utils.c (do_restore_current_language): Likewise.
5571
5572 2015-08-06 Clem Dickey <clemd@acm.org>
5573
5574 PR python/17136
5575 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
5576
5577 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
5578
5579 * complaints.c (enum complaint_series): Add newlines and remove
5580 out of date comment.
5581 (struct complaints) <series>: Change type to enum
5582 complaint_series and remove out of date comment.
5583 (symfile_complaint_hook): Use equivalent enum value
5584 ISOLATED_MESSAGE instead of 0.
5585
5586 2015-08-06 Pedro Alves <palves@redhat.com>
5587
5588 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
5589 returned > 0.
5590
5591 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
5592
5593 * common/agent.c (symbol_list) <required>: Remove.
5594
5595 2015-08-06 Pedro Alves <palves@redhat.com>
5596
5597 * target/waitstatus.h (enum target_stop_reason)
5598 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
5599
5600 2015-08-05 Pedro Alves <palves@redhat.com>
5601 Joel Brobecker <brobecker@adacore.com>
5602
5603 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
5604 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
5605 case where BS->STOP is not set.
5606
5607 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
5608
5609 * nat/gdb_thread_db.h: Add copyright header.
5610 Protect against multiple inclusion.
5611
5612 2015-08-05 Yao Qi <yao.qi@linaro.org>
5613
5614 * aarch64-linux-nat.c (get_thread_id): Remove.
5615 (debug_reg_change_callback): Call ptid_get_lwp instead of
5616 get_thread_id.
5617 (fetch_gregs_from_thread): Likewise.
5618 (store_gregs_to_thread): Likewise.
5619 (fetch_fpregs_from_thread): Likewise.
5620 (store_fpregs_to_thread): Likewise.
5621 (aarch64_linux_get_debug_reg_capacity): Likewise.
5622 * arm-linux-nat.c (get_thread_id): Remove.
5623 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5624 * xtensa-linux-nat.c (get_thread_id): Remove.
5625 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
5626 * arm-linux-nat.c (get_thread_id): Remove.
5627 (GET_THREAD_ID): Remove.
5628 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
5629 (store_fpregs, fetch_regs, store_regs): Likewise.
5630 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
5631 (fetch_vfp_regs, store_vfp_regs): Likewise.
5632 (arm_linux_read_description): Likewise.
5633 (arm_linux_get_hwbp_cap): Likewise.
5634 * xtensa-linux-nat.c (get_thread_id): Remove.
5635 (GET_THREAD_ID): Remove.
5636 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
5637 GET_THREAD_ID.
5638
5639 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
5640
5641 * python/py-linetable.c: Fix case of Linetable to LineTable
5642 in docstrings and code comments.
5643 * python/py-symtab.c: Same.
5644
5645 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5646
5647 * infcmd.c (signal_command): Call do_cleanups for args_chain.
5648
5649 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5650
5651 PR gdb/18767
5652 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
5653 use.
5654
5655 2015-08-04 Pedro Alves <palves@redhat.com>
5656
5657 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
5658 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
5659 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
5660 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
5661 (td_thr_validate_ftype, td_thr_get_info_ftype)
5662 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
5663 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
5664 New typedefs.
5665 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
5666 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
5667 local macros and use them instead of verbose_dlsym and dlsym
5668 calls.
5669
5670 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
5671
5672 * nios2-tdep.h: Include opcode/nios2.h here.
5673 (NIOS2_CDX_OPCODE_SIZE): New.
5674 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
5675 * nios2-tdep.c: Don't include opcode/nios2.h here.
5676 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
5677 4-byte read fails.
5678 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
5679 (nios2_match_addi, nios2_match_orhi): Likewise.
5680 (nios2_match_stw, nios2_match_ldw): Likewise.
5681 (nios2_match_rdctl): Likewise.
5682 (nios2_match_stwm, nios2_match_ldwm): New.
5683 (nios2_match_branch): Add cases for R2 encodings.
5684 (nios2_match_jmpi, nios2_match_calli): Likewise.
5685 (nios2_match_jmpr, nios2_match_callr): Likewise.
5686 (nios2_match_break, nios2_match_trap): Likewise.
5687 (nios2_in_epilogue_p): Add R2 support.
5688 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
5689 prologues.
5690 (nios2_breakpoint_from_pc): Handle R2 instructions.
5691 (nios2_get_next_pc): Likewise. Adjust call to
5692 tdep->syscall_next_pc.
5693 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
5694 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
5695 instruction field macros instead of literal hex values.
5696 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
5697 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
5698 Use size field from OP instead of assuming all instructions
5699 are the same size.
5700 (nios2_linux_init_abi): Register appropriate unwinder for mach.
5701
5702 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
5703
5704 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
5705 variable warning with some compilers.
5706
5707 2015-08-03 Yao Qi <yao.qi@linaro.org>
5708
5709 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
5710 in comment. Replace "rw" with "type".
5711 (arm_linux_remove_watchpoint): Change type of "rw" to
5712 "enum target_hw_bp_type".
5713
5714 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
5715
5716 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
5717 lookup_symbol.
5718 * ft32-tdep.c (ft32_skip_prologue): Likewise.
5719 * moxie-tdep.c (moxie_skip_prologue): Likewise.
5720 * mt-tdep.c (mt_skip_prologue): Likewise.
5721 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
5722
5723 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
5724
5725 * ada-exp.y (write_object_renaming): Replace struct
5726 ada_symbol_info with struct block_symbol. Update field
5727 references accordingly.
5728 (block_lookup, select_possible_type_sym): Likewise.
5729 (find_primitive_type): Likewise. Also update call to
5730 ada_lookup_symbol to extract the symbol itself.
5731 (write_var_or_type, write_name_assoc): Likewise.
5732 * ada-lang.h (struct ada_symbol_info): Remove.
5733 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
5734 struct block_symbol.
5735 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
5736 (ada_lookup_symbol): Return struct block_symbol instead of a
5737 mere symbol.
5738 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
5739 with struct block_symbol.
5740 (resolve_subexp, ada_resolve_function, sort_choices,
5741 user_select_syms, is_nonfunction, add_defn_to_vec,
5742 num_defns_collected, defns_collected,
5743 symbols_are_identical_enums, remove_extra_symbols,
5744 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
5745 ada_lookup_symbol_list, ada_iterate_over_symbols,
5746 ada_lookup_encoded_symbol, get_var_value): Likewise.
5747 (ada_lookup_symbol): Return a block_symbol instead of a mere
5748 symbol. Replace struct ada_symbol_info with struct
5749 block_symbol.
5750 (ada_lookup_symbol_nonlocal): Likewise.
5751 (standard_lookup): Make block passing explicit through
5752 lookup_symbol_in_language.
5753 * ada-tasks.c (get_tcb_types_info): Update the calls to
5754 lookup_symbol_in_language to extract the mere symbol out of the
5755 returned value.
5756 (ada_tasks_inferior_data_sniffer): Likewise.
5757 * ax-gdb.c (gen_static_field): Likewise for the call to
5758 lookup_symbol.
5759 (gen_maybe_namespace_elt): Deal with struct block_symbol from
5760 lookup functions.
5761 (gen_expr): Likewise.
5762 * c-exp.y: Likewise. Remove uses of block_found.
5763 (lex_one_token, classify_inner_name, c_print_token): Likewise.
5764 (classify_name): Likewise. Rename the "sym" local variable to
5765 "bsym".
5766 * c-valprint.c (print_unpacked_pointer): Likewise.
5767 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
5768 "sym" parameter from struct symbol * to struct block_symbol.
5769 Use it to remove uses of block_found. Deal with struct
5770 block_symbol from lookup functions.
5771 (gcc_convert_symbol): Likewise. Update the call to
5772 convert_symbol_sym.
5773 * compile/compile-object-load.c (compile_object_load): Deal with
5774 struct block_symbol from lookup functions.
5775 * cp-namespace.c (cp_lookup_nested_symbol_1,
5776 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
5777 cp_search_static_and_baseclasses,
5778 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
5779 cp_lookup_symbol_imports_or_template,
5780 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
5781 lookup_namespace_scope, cp_lookup_nonlocal,
5782 find_symbol_in_baseclass): Return struct block_symbol instead of
5783 mere symbols and deal with struct block_symbol from lookup
5784 functions.
5785 * cp-support.c (inspect_type, replace_typedefs,
5786 cp_lookup_rtti_type): Deal with struct block_symbol from
5787 lookup functions.
5788 * cp-support.h (cp_lookup_symbol_nonlocal,
5789 cp_lookup_symbol_from_namespace,
5790 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
5791 Return struct block_symbol instead of mere symbols.
5792 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
5793 push_module_name):
5794 Deal with struct block_symbol from lookup functions. Remove
5795 uses of block_found.
5796 * eval.c (evaluate_subexp_standard): Update call to
5797 cp_lookup_symbol_namespace.
5798 * f-exp.y: Deal with struct block_symbol from lookup functions.
5799 Remove uses of block_found.
5800 (yylex): Likewise.
5801 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
5802 lookup_enum, lookup_template_type, check_typedef): Deal with
5803 struct block_symbol from lookup functions.
5804 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
5805 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
5806 (gdbscm_lookup_global_symbol): Likewise.
5807 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
5808 * go-exp.y: Likewise. Remove uses of block_found.
5809 (package_name_p, classify_packaged_name, classify_name):
5810 Likewise.
5811 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5812 * jv-exp.y (push_variable): Likewise.
5813 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
5814 * language.c (language_bool_type): Likewise.
5815 * language.h (struct language_defn): Update
5816 la_lookup_symbol_nonlocal to return a struct block_symbol rather
5817 than a mere symbol.
5818 * linespec.c (find_label_symbols): Deal with struct block_symbol
5819 from lookup functions.
5820 * m2-exp.y: Likewise. Remove uses of block_found.
5821 (yylex): Likewise.
5822 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
5823 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
5824 * p-exp.y: Likewise. Remove uses of block_found.
5825 (yylex): Likewise.
5826 * p-valprint.c (pascal_val_print): Likewise.
5827 * parse.c (write_dollar_variable): Likewise. Remove uses of
5828 block_found.
5829 * parser-defs.h (struct symtoken): Turn the SYM field into a
5830 struct block_symbol.
5831 * printcmd.c (address_info): Deal with struct block_symbol from
5832 lookup functions.
5833 * python/py-frame.c (frapy_read_var): Likewise.
5834 * python/py-symbol.c (gdbpy_lookup_symbol,
5835 gdbpy_lookup_global_symbol): Likewise.
5836 * skip.c (skip_function_command): Likewise.
5837 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
5838 block_symbol instead of a mere symbol.
5839 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
5840 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
5841 * solib.c (solib_global_lookup): Likewise.
5842 * solist.h (solib_global_lookup): Likewise.
5843 (struct target_so_ops): Update lookup_lib_global_symbol to
5844 return a struct block_symbol rather than a mere symbol.
5845 * source.c (select_source_symtab): Deal with struct block_symbol
5846 from lookup functions.
5847 * stack.c (print_frame_args, iterate_over_block_arg_vars):
5848 Likewise.
5849 * symfile.c (set_initial_language): Likewise.
5850 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
5851 block_symbol.
5852 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
5853 (struct symbol_cache_slot): Turn the FOUND field into a struct
5854 block_symbol.
5855 (block_found): Remove.
5856 (eq_symbol_entry): Update to deal with struct block_symbol in
5857 cache slots.
5858 (symbol_cache_lookup): Return a struct block_symbol rather than
5859 a mere symbol.
5860 (symbol_cache_mark_found): Add a BLOCK parameter to fill
5861 appropriately the cache slots. Update callers.
5862 (symbol_cache_dump): Update cache slots handling to the type
5863 change.
5864 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
5865 lookup_symbol_aux, lookup_local_symbol,
5866 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
5867 lookup_symbol_in_objfile_symtabs,
5868 lookup_symbol_in_objfile_from_linkage_name,
5869 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
5870 lookup_symbol_in_static_block, lookup_static_symbol,
5871 lookup_global_symbol):
5872 Return a struct block_symbol rather than a mere symbol. Deal
5873 with struct block_symbol from other lookup functions. Remove
5874 uses of block_found.
5875 (lookup_symbol_in_block): Remove uses of block_found.
5876 (struct global_sym_lookup_data): Turn the RESULT field into a
5877 struct block_symbol.
5878 (lookup_symbol_global_iterator_cb): Update references to the
5879 RESULT field.
5880 (search_symbols): Deal with struct block_symbol from lookup
5881 functions.
5882 * symtab.h (struct block_symbol): New structure.
5883 (block_found): Remove.
5884 (lookup_symbol_in_language, lookup_symbol,
5885 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
5886 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
5887 lookup_global_symbol_from_objfile): Return a struct block_symbol
5888 rather than just a mere symbol. Update comments to remove
5889 mentions of block_found.
5890 * valops.c (find_function_in_inferior,
5891 value_struct_elt_for_reference, value_maybe_namespace_elt,
5892 value_of_this): Deal with struct block_symbol from lookup
5893 functions.
5894 * value.c (value_static_field, value_fn_field): Likewise.
5895
5896 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5897
5898 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
5899 instead of integer.
5900
5901 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
5902 Pedro Alves <palves@redhat.com>
5903
5904 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
5905 type or value instead of integer.
5906 (aarch64_linux_insert_watchpoint): Likewise.
5907 (aarch64_linux_remove_watchpoint): Likewise.
5908 * ada-lang.c (ada_op_print_tab): Likewise.
5909 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
5910 (amd64_linux_syscall_record_common): Likewise.
5911 * arch-utils.c (target_byte_order_user): Likewise.
5912 (default_byte_order): Likewise.
5913 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
5914 (arm_linux_get_hwbp_type): Likewise.
5915 (arm_linux_hw_watchpoint_initialize): Likewise.
5916 (arm_linux_insert_watchpoint): Likewise.
5917 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
5918 (arm_linux_syscall_record): Likewise.
5919 * breakpoint.c (update_watchpoint): Likewise.
5920 (breakpoint_here_p): Likewise.
5921 (bpstat_print): Likewise.
5922 (enable_breakpoint_disp): Likewise.
5923 * c-lang.c (c_op_print_tab): Likewise.
5924 * cli/cli-decode.c (add_info_alias): Likewise.
5925 * d-lang.c (d_op_print_tab): Likewise.
5926 * eval.c (evaluate_subexp_standard): Likewise.
5927 * f-exp.y (dot_ops): Likewise.
5928 (f77_keywords): Likewise.
5929 * f-lang.c (f_op_print_tab): Likewise.
5930 * go-lang.c (go_op_print_tab): Likewise.
5931 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
5932 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
5933 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
5934 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
5935 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
5936 (struct scm_from_stringn_data): Likewise.
5937 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
5938 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
5939 (ia64_linux_remove_watchpoint): Likewise.
5940 (ia64_linux_can_use_hw_breakpoint): Likewise.
5941 * infrun.c (print_stop_event): Likewise.
5942 * jv-lang.c (java_op_print_tab): Likewise.
5943 * linux-nat.c (linux_proc_xfer_partial): Likewise.
5944 * linux-nat.h (struct lwp_info): Likewise.
5945 * linux-thread-db.c (enable_thread_event): Likewise.
5946 * m2-lang.c (m2_op_print_tab): Likewise.
5947 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5948 (mi_cmd_stack_list_variables): Likewise.
5949 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5950 * mi/mi-out.c (mi_table_begin): Likewise.
5951 (mi_table_header): Likewise.
5952 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5953 (mips_linux_insert_watchpoint): Likewise.
5954 (mips_linux_remove_watchpoint): Likewise.
5955 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5956 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5957 (mips_linux_watch_type_to_irw): Likewise.
5958 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5959 (procfs_insert_hw_watchpoint): Likewise.
5960 (procfs_remove_hw_watchpoint): Likewise.
5961 (procfs_hw_watchpoint): Likewise.
5962 (procfs_can_use_hw_breakpoint): Likewise.
5963 (procfs_remove_hw_watchpoint): Likewise.
5964 (procfs_insert_hw_watchpoint): Likewise.
5965 * p-lang.c (pascal_op_print_tab): Likewise.
5966 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5967 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5968 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5969 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5970 (procfs_insert_watchpoint): Likewise.
5971 (procfs_remove_watchpoint): Likewise.
5972 * psymtab.c (recursively_search_psymtabs): Likewise.
5973 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5974 (m32r_insert_watchpoint): Likewise.
5975 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5976 (mips_insert_watchpoint): Likewise.
5977 (mips_remove_watchpoint): Likewise.
5978 * remote.c (watchpoint_to_Z_packet): Likewise.
5979 (remote_insert_watchpoint): Likewise.
5980 (remote_remove_watchpoint): Likewise.
5981 (remote_check_watch_resources): Likewise.
5982 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5983 (s390_remove_watchpoint): Likewise.
5984 (s390_can_use_hw_breakpoint): Likewise.
5985 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5986 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5987 * target.h (struct target_ops): Likewise.
5988 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5989 * ui-out.c (struct ui_out_hdr): Likewise.
5990 (append_header_to_list): Likewise.
5991 (get_next_header): Likewise.
5992 (verify_field): Likewise.
5993 (ui_out_begin): Likewise.
5994 (ui_out_field_int): Likewise.
5995 (ui_out_field_fmt_int): Likewise.
5996 (ui_out_field_skip): Likewise.
5997 (ui_out_field_string): Likewise.
5998 (ui_out_field_fmt): Likewise.
5999 * varobj.c (new_variable): Likewise.
6000 * x86-nat.c (x86_insert_watchpoint): Likewise.
6001 (x86_remove_watchpoint): Likewise.
6002 (x86_can_use_hw_breakpoint): Likewise.
6003 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
6004 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
6005 previously anonymous enumeration type..
6006 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
6007 value.
6008 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
6009 (target_debug_print_enum_bptype): New.
6010 * target-delegates.c: Regenerate.
6011
6012 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6013
6014 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
6015 already says and disallow non-stack memory writes in the prologue.
6016
6017 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
6018
6019 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
6020 reflect how current GCC emits stack overflow checks. Match
6021 both trap and break instructions for backward compatbility.
6022 Disallow other trap and break instructions in the prologue.
6023
6024 2015-07-30 Pedro Alves <palves@redhat.com>
6025
6026 PR threads/18600
6027 * linux-nat.c (wait_lwp): Report to the core when thread group
6028 leader exits.
6029
6030 2015-07-30 Pedro Alves <palves@redhat.com>
6031 Simon Marchi <simon.marchi@ericsson.com>
6032
6033 PR threads/18600
6034 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
6035 mark the new thread as resumed. Remove STOPPING parameter.
6036 (wait_lwp): Adjust call to linux_handle_extended_wait.
6037 (linux_nat_filter_event): Adjust call to
6038 linux_handle_extended_wait.
6039 (resume_stopped_resumed_lwps): Add debug output.
6040
6041 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6042
6043 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
6044 isize argument.
6045 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
6046 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
6047 gdbarch_fast_tracepoint_valid_at.
6048 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
6049 * gdbarch.h: Regenerate.
6050 * gdbarch.c: Regenerate.
6051 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
6052 argument. Do not set it.
6053 * remote.c (remote_download_tracepoint): Adjust call to
6054 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
6055 the instruction length.
6056
6057 2015-07-30 Yao Qi <yao.qi@linaro.org>
6058
6059 * arm-tdep.h (enum gdb_regnum): Move it to ...
6060 * arch/arm.h: ... here. New file.
6061 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
6062
6063 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
6064
6065 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
6066 Change its type to int *.
6067 (decode_br): Rename link argument to is_blr. Change its type to
6068 int *.
6069 (decode_cb): Rename op argument to is_cbnz. Change its type to
6070 int *.
6071 (decode_tb): Rename op argument to is_tbnz. Change its type to
6072 int *. Set is_tbnz to either 1 or 0.
6073 (aarch64_analyze_prologue): Change type of is_link to int. Add
6074 new variables is_cbnz and is_tbnz. Adjust call to
6075 aarch64_decode_cb and aarch64_decode_tb.
6076
6077 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
6078
6079 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
6080 parameter.
6081 (mips_linux_new_thread): Likewise.
6082 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
6083
6084 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6085
6086 * top.c: Include "tui/tui.h".
6087 (undo_terminal_modifications_before_exit): New static function.
6088 (quit_force): Use it.
6089
6090 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
6091
6092 * target.c (terminal_state): Initialize to terminal_is_ours.
6093
6094 2015-07-29 Yao Qi <yao.qi@linaro.org>
6095
6096 PR record/18691
6097 * dcache.c (dcache_read_memory_partial): Call
6098 raw_memory_xfer_partial.
6099 * target.c (raw_memory_xfer_partial): Make it non-static.
6100 * target.h (raw_memory_xfer_partial): Declare.
6101
6102 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6103
6104 * c-valprint.c (c_val_print_array): Consider addressable memory
6105 unit size.
6106 (c_val_print_ptr): Likewise.
6107 (c_val_print_int): Likewise.
6108 * findvar.c (read_frame_register_value): Likewise.
6109 * valarith.c (find_size_for_pointer_math): Likewise.
6110 (value_ptrdiff): Likewise.
6111 (value_subscripted_rvalue): Likewise.
6112 * valops.c (read_value_memory): Likewise (and rename variables).
6113 (value_assign): Likewise.
6114 (value_repeat): Likewise.
6115 (value_array): Likewise.
6116 (value_slice): Likewise.
6117 * valprint.c (generic_val_print_ptr): Likewise.
6118 (generic_val_print_enum): Likewise.
6119 (generic_val_print_bool): Likewise.
6120 (generic_val_print_int): Likewise.
6121 (generic_val_print_char): Likewise.
6122 (generic_val_print_float): Likewise.
6123 (generic_val_print_decfloat): Likewise.
6124 (generic_val_print_complex): Likewise.
6125 (val_print_scalar_formatted): Likewise.
6126 (val_print_array_elements): Likewise.
6127 * value.c (set_value_parent): Likewise.
6128 (value_contents_copy_raw): Likewise.
6129 (set_internalvar_component): Likewise.
6130 (value_primitive_field): Likewise.
6131 (value_fetch_lazy): Likewise.
6132 * value.h (read_value_memory): Update comment.
6133
6134 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6135
6136 * value.c (get_value_arch): New function.
6137 * value.h (get_value_arch): New declaration.
6138
6139 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6140
6141 * value.c (struct value): Update comments.
6142
6143 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
6144
6145 * gdbtypes.c (type_length_units): New function.
6146 * gdbtypes.h (type_length_units): New declaration.
6147 (struct type) <length>: Update comment.
6148
6149 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6150
6151 * valprint.c (generic_val_print): Factor out complex
6152 printing code to ...
6153 (generic_val_print_complex): ... this new function.
6154
6155 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6156
6157 * valprint.c (generic_val_print): Factor out decfloat
6158 printing code to ...
6159 (generic_val_print_decfloat): ... this new function.
6160
6161 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6162
6163 * valprint.c (generic_val_print): Factor out float
6164 printing code to ...
6165 (generic_val_print_float): ... this new function.
6166
6167 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6168
6169 * valprint.c (generic_val_print): Factor out char
6170 printing code to ...
6171 (generic_val_print_char): ... this new function.
6172
6173 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6174
6175 * valprint.c (generic_val_print): Factor out integer
6176 printing code to ...
6177 (generic_val_print_int): ... this new function.
6178
6179 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6180
6181 * valprint.c (generic_val_print): Factor out bool
6182 printing code to ...
6183 (generic_val_print_bool): ... this new function.
6184
6185 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6186
6187 * valprint.c (generic_val_print): Factor out function/method
6188 printing code to ...
6189 (generic_val_print_func): ... this new function.
6190
6191 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6192
6193 * valprint.c (generic_val_print): Factor out flags
6194 printing code to ...
6195 (generic_val_print_flags): ... this new function.
6196
6197 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6198
6199 * valprint.c (generic_val_print): Factor out enum
6200 printing code to ...
6201 (generic_val_print_enum): ... this new function.
6202
6203 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6204
6205 * valprint.c (generic_val_print): Factor out reference
6206 printing code to ...
6207 (generic_val_print_ref): ... this new function.
6208
6209 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6210
6211 * valprint.c (generic_val_print): Factor out memberptr
6212 printing code to ...
6213 (generic_val_print_memberptr): ... this new function.
6214
6215 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6216
6217 * valprint.c (generic_val_print): Factor out pointer
6218 printing code to ...
6219 (generic_val_print_ptr): ... this new function.
6220
6221 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6222
6223 * valprint.c (generic_val_print): Factor out array
6224 printing code to ...
6225 (generic_val_print_array): ... this new function.
6226
6227 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
6228
6229 * valprint.c (generic_val_print): Factor out
6230 print_unpacked_pointer code to ...
6231 (print_unpacked_pointer): ... this new function.
6232
6233 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
6234
6235 * event-top.c (handle_sigterm): Don't inspect
6236 target_can_async_p. Always set the quit flag and always mark
6237 the async signal handler.
6238
6239 2015-07-27 Yao Qi <yao.qi@linaro.org>
6240
6241 * Makefile.in (REMOTE_EXAMPLES): Remove it.
6242
6243 2015-07-25 Kevin Buettner <kevinb@redhat.com>
6244
6245 * remote.c (read_ptid): Return null_ptid when no thread id
6246 is found.
6247 (remote_current_thread): Add log warning for malformed
6248 qC reply.
6249 (remote_start_remote): Add log warning when current thread
6250 not found.
6251
6252 2015-07-24 Pedro Alves <palves@redhat.com>
6253
6254 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
6255 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
6256 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
6257
6258 2015-07-24 Pedro Alves <palves@redhat.com>
6259
6260 PR gdb/18717
6261 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
6262 is resumed, and extend the debug log.
6263
6264 2015-07-24 Pedro Alves <palves@redhat.com>
6265
6266 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
6267
6268 2015-07-24 Pedro Alves <palves@redhat.com>
6269
6270 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
6271 sys/ptrace.h.
6272 * alpha-linux-nat.c: Likewise.
6273 * amd64-linux-nat.c: Likewise.
6274 * arm-linux-nat.c: Likewise.
6275 * hppa-linux-nat.c: Likewise.
6276 * i386-linux-nat.c: Likewise.
6277 * ia64-linux-nat.c: Likewise.
6278 * linux-fork.c: Likewise.
6279 * linux-nat.c: Likewise.
6280 * m32r-linux-nat.c: Likewise.
6281 * m68klinux-nat.c: Likewise.
6282 * mips-linux-nat.c: Likewise.
6283 * nat/linux-btrace.c: Likewise.
6284 * nat/linux-ptrace.c: Likewise.
6285 * nat/linux-ptrace.h
6286 * nat/mips-linux-watch.c: Likewise.
6287 * nat/x86-linux-dregs.c: Likewise.
6288 * ppc-linux-nat.c: Likewise.
6289 * s390-linux-nat.c: Likewise.
6290 * spu-linux-nat.c: Likewise.
6291 * tilegx-linux-nat.c: Likewise.
6292 * x86-linux-nat.c: Likewise.
6293 * xtensa-linux-nat.c: Likewise.
6294
6295 2015-07-24 Pedro Alves <palves@redhat.com>
6296
6297 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
6298 __ptrace_request as first parameter type instead of int.
6299 (PTRACE_TYPE_ARG1): Define.
6300 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
6301 that casts first argument to PTRACE_TYPE_ARG1.
6302 * config.in: Regenerate.
6303 * configure: Regenerate.
6304
6305 2015-07-24 Pedro Alves <palves@redhat.com>
6306
6307 * gdb_ptrace.h: Move ...
6308 * nat/gdb_ptrace.h: ... here.
6309 * inf-ptrace.c: Adjust.
6310
6311 2015-07-24 Pedro Alves <palves@redhat.com>
6312
6313 * acinclude.m4: Include ptrace.m4.
6314 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
6315 * ptrace.m4: ... to this new file.
6316
6317 2015-07-23 Doug Evans <dje@google.com>
6318
6319 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
6320 (load_cu): Handle dummy CUs.
6321 (dw2_do_instantiate_symtab, process_queuef): Ditto.
6322 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
6323
6324 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
6325
6326 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
6327 documentation to say that it returns a list rather than
6328 a FrozenSet.
6329 (linetable_object_methods): Update the docstring of the
6330 "source_line" entry.
6331
6332 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
6333
6334 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
6335 type to the recursive call instead of the original (maybe
6336 TYPE_CODE_TYPEDEF) type.
6337
6338 2015-07-23 Yao Qi <yao.qi@linaro.org>
6339
6340 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
6341 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
6342 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
6343
6344 2015-07-21 Yao Qi <yao.qi@linaro.org>
6345
6346 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6347 Move it to nat/aarch64-linux-hw-point.c.
6348 (aarch64_linux_child_post_startup_inferior): Update.
6349 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
6350 New function.
6351 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
6352 Declare it.
6353
6354 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
6355
6356 * common/btrace-common.c (btrace_data_append): Change case label.
6357
6358 2015-07-20 Yao Qi <yao.qi@linaro.org>
6359
6360 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
6361 Re-indent the code.
6362 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
6363 "unsigned long long".
6364
6365 2015-07-18 Kevin Buettner <kevinb@redhat.com>
6366
6367 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
6368 to be set for SEC_ALLOC sections too.
6369
6370 2015-07-17 Yao Qi <yao.qi@linaro.org>
6371
6372 * Makefile.in (HFILES_NO_SRCDIR): Add
6373 nat/aarch64-linux-hw-point.h.
6374 (aarch64-linux-hw-point.o): New rule.
6375 * nat/aarch64-linux-hw-point.h: New file.
6376 * nat/aarch64-linux-hw-point.c: New file.
6377 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
6378 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
6379 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
6380 (AARCH64_HWP_ALIGNMENT): Likewise.
6381 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
6382 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
6383 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
6384 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
6385 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
6386 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
6387 (struct aarch64_debug_reg_state): Likewise.
6388 (struct arch_lwp_info): Likewise.
6389 (aarch64_linux_set_debug_regs): Likewise.
6390 (aarch64_notify_debug_reg_change): Remove static.
6391 (aarch64_align_watchpoint): Likewise.
6392 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
6393 (aarch64_watchpoint_length): Likewise.
6394 (aarch64_point_encode_ctrl_reg): Likewise
6395 (aarch64_point_is_aligned): Likewise.
6396 (aarch64_dr_state_insert_one_point): Likewise.
6397 (aarch64_dr_state_remove_one_point): Likewise.
6398 (aarch64_handle_breakpoint): Likewise.
6399 (aarch64_handle_aligned_watchpoint): Likewise.
6400 (aarch64_handle_unaligned_watchpoint): Likewise.
6401 (aarch64_handle_watchpoint): Likewise.
6402 * config/aarch64/linux.mh (NAT_FILE): Add
6403 aarch64-linux-hw-point.o.
6404
6405 2015-07-17 Yao Qi <yao.qi@linaro.org>
6406
6407 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
6408 state and don't call aarch64_get_debug_reg_state. All callers
6409 update.
6410 (aarch64_linux_insert_hw_breakpoint): Call
6411 aarch64_get_debug_reg_state earlier.
6412 (aarch64_linux_remove_hw_breakpoint): Likewise.
6413 (aarch64_handle_aligned_watchpoint): Add argument state and
6414 don't call aarch64_get_debug_reg_state. All callers update.
6415 (aarch64_handle_unaligned_watchpoint): Likewise.
6416 (aarch64_handle_watchpoint): Add argument state.
6417 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
6418 earlier.
6419 (aarch64_linux_remove_watchpoint): Likewise.
6420
6421 2015-07-17 Yao Qi <yao.qi@linaro.org>
6422
6423 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
6424 debug_printf.
6425 (aarch64_handle_unaligned_watchpoint): Likewise.
6426
6427 2015-07-17 Yao Qi <yao.qi@linaro.org>
6428
6429 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
6430 argument type's type to 'enum target_hw_bp_type'.
6431 (aarch64_dr_state_remove_one_point): Likewise.
6432 (aarch64_handle_breakpoint): Likewise.
6433 (aarch64_linux_insert_hw_breakpoint): Likewise.
6434 (aarch64_linux_remove_hw_breakpoint): Likewise.
6435 (aarch64_handle_aligned_watchpoint): Likewise.
6436
6437 2015-07-17 Yao Qi <yao.qi@linaro.org>
6438
6439 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
6440 ptid_get_pid instead of get_thread_id.
6441
6442 2015-07-17 Yao Qi <yao.qi@linaro.org>
6443
6444 * remote.c (get_current_thread): Initialise ptid to null_ptid.
6445 (add_current_inferior_and_thread): Don't initialise ptid.
6446
6447 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
6448
6449 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
6450 unavailable if invalid.
6451
6452 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6453
6454 Revert the previous 6 commits:
6455 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6456 Move gdb_regex* to common/
6457 Prepare linux_find_memory_regions_full & co. for move
6458 Move linux_find_memory_regions_full & co.
6459 gdbserver build-id attribute generator
6460 Validate symbol file using build-id
6461
6462 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6463 Jan Kratochvil <jan.kratochvil@redhat.com>
6464
6465 Validate symbol file using build-id.
6466 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
6467 and 'show validate-build-id'. Add build-id attribute.
6468 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
6469 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
6470 * solib-frv.c (_initialize_frv_solib): Ditto.
6471 * solib-spu.c (set_spu_solib_ops): Ditto.
6472 * solib-svr4.c: Include rsp-low.h.
6473 (NOTE_GNU_BUILD_ID_NAME): New define.
6474 (svr4_validate): New function.
6475 (svr4_copy_library_list): Duplicate field build_id.
6476 (library_list_start_library): Parse 'build-id' attribute.
6477 (svr4_library_attributes): Add 'build-id' attribute.
6478 (_initialize_svr4_solib): Assign validate value.
6479 * solib-target.c (solib.h): Include.
6480 (_initialize_solib_target): Assign validate value.
6481 * solib.c (validate_build_id, show_validate_build_id): New.
6482 (solib_map_sections): Use ops->validate.
6483 (clear_so): Free build_id.
6484 (default_solib_validate): New function.
6485 (_initialize_solib): Add "validate-build-id".
6486 * solib.h (default_solib_validate): New declaration.
6487 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
6488 (target_so_ops): New field 'validate'.
6489
6490 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6491 Jan Kratochvil <jan.kratochvil@redhat.com>
6492
6493 gdbserver build-id attribute generator.
6494 * features/library-list-svr4.dtd (library-list-svr4): New
6495 'build-id' attribute.
6496
6497 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6498 Jan Kratochvil <jan.kratochvil@redhat.com>
6499
6500 Move linux_find_memory_regions_full & co.
6501 * linux-tdep.c (nat/linux-maps.h): Include.
6502 (gdb_regex.h): Remove the include.
6503 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
6504 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
6505 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
6506 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
6507 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
6508 and target/target.h.
6509 (struct smaps_vmflags, read_mapping, decode_vmflags)
6510 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
6511 (linux_find_memory_regions_full): Move from linux-tdep.c.
6512 * nat/linux-maps.h (read_mapping): New declaration.
6513 (linux_find_memory_region_ftype, enum filterflags): Moved from
6514 linux-tdep.c.
6515 (linux_find_memory_regions_full): New declaration.
6516 * target.c (target/target-utils.h): Include.
6517 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
6518 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
6519 definitions to target/target-utils.c.
6520 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
6521 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
6522 from target.c.
6523 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
6524 (read_alloc): New declaration.
6525 (read_stralloc_func_ftype): New typedef.
6526 (read_stralloc): New declaration.
6527 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
6528
6529 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6530 Jan Kratochvil <jan.kratochvil@redhat.com>
6531
6532 Prepare linux_find_memory_regions_full & co. for move.
6533 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
6534 (linux_find_memory_regions_full): Change signature and prepare
6535 for moving to linux-maps.
6536 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
6537 (linux_find_memory_regions_thunk): New.
6538 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
6539 (linux_find_memory_regions_gdb): New.
6540 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
6541 (linux_make_mappings_corefile_notes): Use
6542 linux_find_memory_regions_gdb.
6543 * target.c (read_alloc_pread_ftype): New typedef.
6544 (target_fileio_read_alloc_1_pread): New function.
6545 (read_alloc): Refactor from target_fileio_read_alloc_1.
6546 (read_stralloc_func_ftype): New typedef.
6547 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
6548 (read_stralloc): Refactored from target_fileio_read_stralloc.
6549 (target_fileio_read_stralloc): New implementation, use read_stralloc.
6550
6551 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6552
6553 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
6554 common/gdb_regex.h.
6555 (COMMON_OBS): Add gdb_regex.o.
6556 (gdb_regex.o): New.
6557 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
6558 --without-included-regex and USE_INCLUDED_REGEX.
6559 * common/gdb_regex.c: New file from utils.c functions.
6560 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
6561 file wrapping define name.
6562 * configure: Rebuilt.
6563 * configure.ac (gdb_use_included_regex, --without-included-regex)
6564 (USE_INCLUDED_REGEX): Move them to common/common.m4.
6565 * gdb_regex.h: Move it to common/gdb_regex.h.
6566 * utils.c: Remove include gdb_regex.h.
6567 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
6568 (compile_rx_or_error): Move them to common/gdb_regex.c.
6569
6570 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
6571 Jan Kratochvil <jan.kratochvil@redhat.com>
6572
6573 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
6574 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
6575 common/target-utils.h.
6576 (COMMON_OBS): Add target-utils.o.
6577 (linux-maps.o, target-utils.o): New.
6578 * target/target-utils.c: New file.
6579 * target/target-utils.h: New file.
6580 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
6581 * config/i386/linux64.mh (NATDEPFILES): Ditto.
6582 * nat/linux-maps.c: New file.
6583 * nat/linux-maps.h: New file.
6584
6585 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
6586 Pedro Alves <palves@redhat.com>
6587
6588 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
6589 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
6590 (perf_event_read_bts): Change the type of SIZE and READ.
6591 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
6592 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
6593 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
6594 mmap page.
6595 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
6596 buffer size to UINT_MAX.
6597 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
6598 DATA_TAIL.
6599 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
6600 <last_head>: Change type.
6601 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
6602 * common/btrace-common.c (btrace_data_append): Change the type of
6603 SIZE.
6604 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
6605 check.
6606
6607 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
6608
6609 * gdbtypes.h (CHECK_TYPEDEF): Remove.
6610 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
6611 with check_typedef.
6612 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
6613 (ada_array_length): Likewise.
6614 (find_parallel_type_by_descriptive_type): Likewise.
6615 (ada_check_typedef): Likewise.
6616 * arm-tdep.c (arm_return_in_memory): Likewise.
6617 * ax-gdb.c (gen_trace_static_fields): Likewise.
6618 (gen_struct_ref_recursive): Likewise.
6619 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6620 (variable: block COLONCOLON name): Likewise.
6621 (qualified_name: TYPENAME COLONCOLON name): Likewise.
6622 * c-lang.c (classify_type): Likewise.
6623 * c-typeprint.c (c_print_type): Likewise.
6624 (c_print_typedef): Likewise.
6625 (c_type_print_base): Likewise.
6626 * c-valprint.c (c_val_print): Likewise.
6627 * compile/compile-c-types.c (convert_type): Likewise.
6628 * compile/compile-object-load.c (get_out_value_type): Likewise.
6629 * completer.c (add_struct_fields): Likewise.
6630 (expression_completer): Likewise.
6631 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
6632 (cp_lookup_nested_symbol_1): Likewise.
6633 (cp_lookup_nested_symbol): Likewise.
6634 * cp-valprint.c (cp_print_value_fields): Likewise.
6635 (cp_print_static_field): Likewise.
6636 * d-valprint.c (d_val_print): Likewise.
6637 * eval.c (evaluate_subexp_standard): Likewise.
6638 (evaluate_subexp_for_sizeof): Likewise.
6639 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
6640 * f-typeprint.c (f_type_print_base): Likewise.
6641 * f-valprint.c (f_val_print): Likewise.
6642 * gdbtypes.c (get_discrete_bounds): Likewise.
6643 (create_array_type_with_stride): Likewise.
6644 (type_name_no_tag_or_error): Likewise.
6645 (lookup_struct_elt_type): Likewise.
6646 (get_unsigned_type_max): Likewise.
6647 (internal_type_vptr_fieldno): Likewise.
6648 (set_type_vptr_fieldno): Likewise.
6649 (internal_type_vptr_basetype): Likewise.
6650 (set_type_vptr_basetype): Likewise.
6651 (get_vptr_fieldno): Likewise.
6652 (is_integral_type): Likewise.
6653 (is_scalar_type): Likewise.
6654 (is_scalar_type_recursive): Likewise.
6655 (distance_to_ancestor): Likewise.
6656 (is_unique_ancestor_worker): Likewise.
6657 (check_types_equal): Likewise.
6658 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
6659
6660 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
6661
6662 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
6663 also test for language_d.
6664 (dwarf2_compute_name): Likewise.
6665 (read_func_scope): Likewise.
6666 (read_structure_type): Likewise.
6667 (new_symbol_full): Likewise.
6668 (determine_prefix): Likewise.
6669 (read_import_statement): Use dot as the separator for language_d.
6670 (typename_concat): Likewise, but don't prefix the D main function.
6671
6672 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
6673
6674 * nat/linux-namespaces.c (setns): Rename from this ...
6675 (do_setns): ... to this. Support calling setns if it exists.
6676 (mnsh_handle_setns): Call do_setns.
6677
6678 2015-07-13 Yao Qi <yao.qi@linaro.org>
6679
6680 * exec.c (exec_file_attach): Add period at the end of error
6681 message.
6682
6683 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
6684
6685 * tui/tui-win.c (window_name_completer): New function.
6686 (focus_completer): Call window_name_completer. All old content
6687 moved into window_name_completer.
6688 (winheight_completer): New function.
6689 (_initialize_tui_win): Rename variable. Add completer to
6690 winheight command. Update doc string on winheight.
6691
6692 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
6693
6694 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
6695 all nios2 mach variants.
6696
6697 2015-07-10 Kevin Buettner <kevinb@redhat.com>
6698
6699 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
6700 of target_read_memory.
6701
6702 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6703
6704 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
6705 string copy.
6706 (parse_scrolling_args): Likewise.
6707
6708 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6709
6710 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
6711 names in this function.
6712
6713 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
6714
6715 * tui/tui-data.h (SRC_NAME): Convert to lower case.
6716 (CMD_NAME): Likewise.
6717 (DATA_NAME): Likewise.
6718 (DISASSEM_NAME): Likewise.
6719 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
6720 (tui_set_win_height): Likewise.
6721 (parse_scrolling_args): Likewise.
6722
6723 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
6724
6725 * record-btrace.c (record_btrace_goto_begin)
6726 (record_btrace_goto_end, record_btrace_goto): Move call to
6727 print_stack_frame ...
6728 (record_btrace_set_replay): ... here. Set stop_pc.
6729 * record-full.c (record_full_goto_entry): Set stop_pc.
6730
6731 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6732
6733 * NEWS: Mention support for tracepoints on aarch64-linux.
6734
6735 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6736
6737 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
6738 function. Return 1.
6739 (the_low_target): Install it.
6740
6741 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6742
6743 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
6744 * gdb.trace/collection.exp: Likewise.
6745 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
6746 * gdb.trace/mi-trace-unavailable.exp: Likewise.
6747 * gdb.trace/report.exp: Likewise.
6748 * gdb.trace/trace-break.exp: Likewise.
6749 * gdb.trace/unavailable.exp: Likewise.
6750 * gdb.trace/while-dyn.exp: Likewise.
6751
6752 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6753
6754 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
6755 (aarch64_gen_return_address): New function.
6756 (aarch64_gdbarch_init): Hook it.
6757
6758 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6759
6760 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
6761 swallow NOT_AVAILABLE_ERROR.
6762 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
6763 available_p is not set.
6764 (aarch64_stub_frame_unwind_stop_reason): New function.
6765 (aarch64_stub_unwind): Install it.
6766
6767 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6768
6769 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
6770 field.
6771 (aarch64_make_prologue_cache_1): New function, factored out from
6772 aarch64_make_prologue_cache. Do not allocate cache. Set
6773 available_p.
6774 (aarch64_make_prologue_cache): Reimplement wrapping
6775 aarch64_make_prologue_cache_1, and swallowing
6776 NOT_AVAILABLE_ERROR.
6777 (aarch64_prologue_frame_unwind_stop_reason): New function.
6778 Return UNWIND_UNAVAILABLE if available_p is not set.
6779 (aarch64_prologue_unwind): Install it.
6780 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
6781 checks into aarch64_prologue_frame_unwind_stop_reason. Call
6782 frame_id_build_unavailable_stack if available_p is not set.
6783
6784 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6785
6786 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
6787 fields.
6788 (aarch64_scan_prologue): Set prev_pc.
6789 (aarch64_make_prologue_cache): Set func.
6790 (aarch64_make_stub_cache): Set prev_pc.
6791 (aarch64_prologue_this_id): Remove local variables id, pc and
6792 func. Read prev_pc and func from cache.
6793 (aarch64_stub_this_id): Read prev_pc from cache.
6794
6795 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6796
6797 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
6798 argument this_cache. Remove unused local variables reg and
6799 unwound_fp. Return early if this_cache is already set. Set
6800 this_cache.
6801 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
6802
6803 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
6804
6805 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
6806 New argument this_cache. Return early if this_cache is already
6807 set. Set this_cache.
6808 (aarch64_prologue_this_id): Update call to
6809 aarch64_make_prologue_cache.
6810 (aarch64_prologue_prev_register): Likewise.
6811 (aarch64_normal_frame_base): Likewise.
6812
6813 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6814
6815 * c-valprint.c (c_val_print): Factor out memberptr printing code
6816 from c_val_print to ...
6817 (c_val_print_memberptr): ... this new function.
6818
6819 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6820
6821 * c-valprint.c (c_val_print): Factor out int printing code to ...
6822 (c_val_print_int): ... this new function.
6823
6824 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6825
6826 * c-valprint.c (c_val_print): Factor out struct and union
6827 printing code to ...
6828 (c_val_print_struct): ... this new function ...
6829 (c_val_print_union): ... and this new function.
6830
6831 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6832
6833 * c-valprint.c (c_val_print): Factor out pointer printing code
6834 to ...
6835 (c_val_print_ptr): ... this new function.
6836
6837 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6838
6839 * c-valprint.c (c_valprint): Factor our array printing code from
6840 c_val_print to ...
6841 (c_val_print_array): ... this new function.
6842
6843 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6844
6845 * c-valprint.c (c_val_print): Factor out pointer printing code
6846 to ...
6847 (print_unpacked_pointer): ... this new function.
6848
6849 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
6850
6851 * c-valprint.c (c_val_print): Remove an assignment to i and move
6852 its declaration.
6853
6854 2015-07-09 Yao Qi <yao.qi@linaro.org>
6855
6856 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
6857 argument ptid. Update comments. Caller update.
6858
6859 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6860
6861 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
6862 mnt packets.
6863
6864 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
6865
6866 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
6867
6868 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6869
6870 * progspace.c (delete_program_space): Add missing spaces.
6871
6872 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
6873
6874 * inferior.c (delete_inferior_1): Rename to ...
6875 (delete_inferior): ..., remove 'silent' parameter, delete
6876 program space when unused and remove call to prune_program_spaces.
6877 Remove the old, unused, delete_inferior.
6878 (delete_inferior_silent): Remove.
6879 (prune_inferiors): Change call from delete_inferior_1 to
6880 delete_inferior and remove 'silent' parameter. Remove call to
6881 prune_program_spaces.
6882 (remove_inferior_command): Idem.
6883 * inferior.h (delete_inferior_1): Rename to...
6884 (delete_inferior): ..., remove 'silent' parameter and remove the
6885 original delete_inferior.
6886 (delete_inferior_silent): Remove.
6887 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
6888 delete_inferior_1 to delete_inferior and remove 'silent'
6889 parameter.
6890 * progspace.c (prune_program_spaces): Remove.
6891 (pspace_empty_p): Rename to...
6892 (program_space_empty_p): ... and make non-static.
6893 (delete_program_space): New.
6894 * progspace.h (prune_program_spaces): Remove declaration.
6895 (program_space_empty_p): New declaration.
6896 (delete_program_space): New declaration.
6897 * monitor.c (monitor_close): Replace call to
6898 delete_thread_silent and delete_inferior_silent with
6899 discard_all_inferiors.
6900
6901 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
6902
6903 * defs.h (deprecated_register_changed_hook): Remove prototype.
6904 * interps.c (clear_iterpreter_hooks): Remove reference to
6905 deprecated_register_changed_hook.
6906 * top.c (deprecated_register_changed_hook): Remove prototype.
6907 * valops.c (value_assign): Remove reference to
6908 deprecated_register_changed_hook.
6909 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
6910 Add comment documenting the function.
6911 (tui_register_changed_observer): Define.
6912 (tui_install_hooks): Remove reference to
6913 deprecated_register_changed_hook. Set
6914 tui_register_changed_observer.
6915 (tui_remove_hooks): Remove reference to
6916 deprecated_register_changed_hook. Unset
6917 tui_register_changed_observer.
6918
6919 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6920
6921 PR compile/18484
6922 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
6923
6924 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
6925
6926 PR exp/18617
6927 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
6928
6929 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6930
6931 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
6932
6933 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
6934
6935 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
6936 Use safe_strerror() instead of strerror().
6937
6938 2015-07-07 Yao Qi <yao.qi@linaro.org>
6939
6940 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
6941 * features/arm-with-m-fpa-layout.c: Regenerated.
6942 * features/arm-with-m-vfp-d16.xml: Likewise.
6943 * features/arm-with-m-vfp-d16.c: Regenerated.
6944 * features/arm-with-m.xml: Likewise.
6945 * features/arm-with-m.c: Regenerated.
6946 * features/arm-with-neon.xml: Likewise.
6947 * features/arm-with-neon.c: Regenerated.
6948 * features/arm-with-vfpv2.xml: Likewise.
6949 * features/arm-with-vfpv2.c: Regenerated.
6950 * features/arm-with-vfpv3.xml: Likewise.
6951 * features/arm-with-vfpv3.c: Regenerated.
6952
6953 2015-07-07 Yao Qi <yao.qi@linaro.org>
6954
6955 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6956 arm-linux-nat.c.
6957 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6958 elf/external.h.
6959 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6960 if target is 32-bit.
6961 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6962 if target is 32-bit.
6963 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6964 if target is 32-bit.
6965 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6966 if target is 32-bit.
6967 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6968 (aarch64_linux_read_description): Return the right target
6969 description.
6970 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6971 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6972 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6973 arm-linux-tdep.o.
6974
6975 2015-07-07 Yao Qi <yao.qi@linaro.org>
6976
6977 * aarch32-linux-nat.c: New file.
6978 * aarch32-linux-nat.h: New file.
6979 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6980 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6981 aarch32_gp_regcache_supply.
6982 (store_regs): Move code to aarch32-linux-nat.c. Call
6983 aarch32_gp_regcache_collect.
6984 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6985 aarch32_vfp_regcache_supply.
6986 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6987 aarch32_vfp_regcache_collect.
6988 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6989
6990 2015-07-07 Yao Qi <yao.qi@linaro.org>
6991
6992 * arm-linux-nat.c (store_fpregister): Remove.
6993 (store_register): Likewise.
6994 (fetch_fpregister): Likewise.
6995 (fetch_register): Likewise.
6996 (arm_linux_store_inferior_registers): Call store_regs and
6997 store_fpregs instead.
6998 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6999 fetch_regs instead.
7000
7001 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7002
7003 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
7004 and focus commands.
7005
7006 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7007
7008 * NEWS: Create a new section for the next release branch.
7009 Rename the section of the current branch, now that it has
7010 been cut.
7011
7012 2015-07-06 Joel Brobecker <brobecker@adacore.com>
7013
7014 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
7015 * version.in: Bump version to 7.10.50.DATE-cvs.
7016
7017 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
7018
7019 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
7020 breakpoints in a special way.
7021 (remove_breakpoint): Likewise.
7022 (mark_breakpoints_out): Likewise.
7023
7024 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7025
7026 * doc/gdb.texinfo (TUI): Add comma after @xref.
7027
7028 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7029
7030 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
7031 instead of casting the structure type.
7032
7033 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7034
7035 * valops.c (search_struct_field): Remove OFFSET parameter.
7036 (value_cast_structs): Adjust calls to search_struct_field.
7037 (value_struct_elt): Same.
7038 (find_overload_match): Same.
7039
7040 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
7041
7042 * value.c (value_fetch_lazy): Update comment, change return
7043 value to void.
7044 * value.h (value_fetch_lazy): Change return value to void.
7045
7046 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
7047
7048 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
7049 (tui_win_name): Make parameter and result const.
7050 * tui/tui-data.h (tui_win_name): Make parameter and result const.
7051
7052 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
7053
7054 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
7055 use printf_unfiltered.
7056 (set_mpx_cmd): Add missing trailing space to command string
7057 literal.
7058 (_initialize_i386_tdep): Give the "mpx" prefix command its
7059 correct name.
7060
7061 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7062
7063 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
7064 (enum rx_frame_type): New.
7065 (struct rx_prologue): Add new field `frame_type'.
7066 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
7067 parameter in the prologue struct. Add code for recording
7068 locations of PC and PSW for fast interrupt and exception frames.
7069 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
7070 (rx_analyze_frame_prologue): Add `frame_type' parameter.
7071 (rx_frame_type): New function.
7072 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
7073 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
7074 `this_cache'.
7075 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
7076 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
7077 RX_FRAME_TYPE_FAST_INTERRUPT.
7078 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
7079 (rx_frame_sniffer, rx_exception_sniffer): New functions.
7080 (rx_frame_unwind): Use rx_frame_sniffer instead of
7081 default_frame_sniffer.
7082 (rx_frame_unwind): New unwinder.
7083 (rx_gdbarch_init): Register new unwinder.
7084
7085 2015-07-02 Kevin Buettner <kevinb@redhat.com>
7086
7087 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
7088 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
7089 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
7090 and RX_FPSW_REGNUM.
7091 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
7092
7093 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7094
7095 Fix GCC false warning.
7096 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
7097
7098 2015-07-02 Yao Qi <yao.qi@linaro.org>
7099
7100 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
7101 typo in the debugging message.
7102
7103 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7104
7105 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
7106 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
7107 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
7108 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
7109 (btrace_maint_clear): New.
7110 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
7111 (pt_print_packet, btrace_maint_decode_pt)
7112 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
7113 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
7114 (maint_btrace_packet_history_cmd)
7115 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
7116 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
7117 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
7118 (maint_info_btrace_cmd, _initialize_btrace): New.
7119 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
7120 (btrace_maint_packet_history, btrace_maint_info): New.
7121 (btrace_thread_info) <maint>: New.
7122 * NEWS: Announce it.
7123
7124 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7125
7126 * btrace.c (btrace_fetch): Append the new trace data.
7127 (btrace_clear): Clear the stored trace data.
7128 * btrace.h (btrace_thread_info) <data>: New.
7129 * common/btrace-common.h (btrace_data_clear)
7130 (btrace_data_append): New.
7131 * common/btrace-common.c (btrace_data_clear)
7132 (btrace_data_append): New.
7133
7134 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7135
7136 * nat/linux-btrace.c (linux_enable_bts): Check for
7137 PERF_ATTR_SIZE_VER5.
7138 Check for data_offset and data_size fields. Use them.
7139
7140 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7141
7142 * NEWS: Announce new commands "record btrace pt" and "record pt".
7143 Announce new options "set|show record btrace pt buffer-size".
7144 * btrace.c: Include "rsp-low.h".
7145 Include "inttypes.h".
7146 (btrace_add_pc): Add forward declaration.
7147 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
7148 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
7149 (btrace_compute_ftrace_pt): New.
7150 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
7151 (check_xml_btrace_version): Update version check.
7152 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
7153 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
7154 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
7155 (btrace_pt_children): New.
7156 (btrace_children): Add support for "pt".
7157 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
7158 (btrace_conf_children): Add support for "pt".
7159 * btrace.h: Include "intel-pt.h".
7160 (btrace_pt_error): New.
7161 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
7162 (btrace_data_empty): Support BTRACE_FORMAT_PT.
7163 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
7164 (struct btrace_config_pt): New.
7165 (struct btrace_config)<pt>: New.
7166 (struct btrace_data_pt_config, struct btrace_data_pt): New.
7167 (struct btrace_data)<pt>: New.
7168 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
7169 (pt): New.
7170 * features/btrace.dtd (btrace)<pt>: New.
7171 (pt, pt-config, cpu): New.
7172 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
7173 (perf_event_pt_event_type, kernel_supports_pt)
7174 (linux_supports_pt): New.
7175 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
7176 (linux_enable_bts): Free tinfo on error.
7177 (linux_enable_pt): New.
7178 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
7179 (linux_disable_pt): New.
7180 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
7181 (linux_fill_btrace_pt_config, linux_read_pt): New.
7182 (linux_read_btrace): Support BTRACE_FORMAT_PT.
7183 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
7184 (struct btrace_target_info)<pt>: New.
7185 * record-btrace.c (set_record_btrace_pt_cmdlist)
7186 (show_record_btrace_pt_cmdlist): New.
7187 (record_btrace_print_pt_conf): New.
7188 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
7189 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
7190 (cmd_record_btrace_pt_start): New.
7191 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
7192 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
7193 (_initialize_record_btrace): Add new commands.
7194 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
7195 (remote_protocol_features): Add "Qbtrace:pt".
7196 Add "Qbtrace-conf:pt:size".
7197 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
7198 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
7199 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
7200 (_initialize_remote): Add new commands.
7201
7202 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7203
7204 * configure.ac: check for libipt
7205 * configure: Regenerate.
7206 * config.in: Regenerate.
7207 * Makefile.in (LIBIPT): New.
7208 (CLIBS): Add $LIBIPT.
7209 * NEWS: document new configure options
7210
7211 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7212
7213 * compile/compile-object-load.c (compile_object_load): Replace debug
7214 message "lookup undefined ELF symbol" by 3 more specific messages.
7215
7216 2015-07-01 Kevin Buettner <kevinb@redhat.com>
7217
7218 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
7219 (rl78_register_type): Add case for RL78_PSW_REGNUM.
7220 (rl78_gdbarch_init): Initialize rl78_psw_type.
7221
7222 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
7223
7224 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
7225 Update commentary. Always refresh the registers when frame
7226 information has changed.
7227 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
7228 Change return type to int. Return 1 if frame information has
7229 changed, 0 otherwise.
7230 (tui_before_prompt): Update commentary.
7231 * tui/tui-stack.h (tui_show_frame_info): Change return type to
7232 int.
7233
7234 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7235
7236 PR tui/13378
7237 * frame.c (select_frame): Remove reference to
7238 deprecated_selected_frame_level_changed_hook.
7239 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
7240 declaration.
7241 * stack.c (deprecated_selected_frame_level_changed_hook):
7242 Likewise.
7243 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
7244 Rename to ...
7245 (tui_refresh_frame_and_register_information): ... this. Bail
7246 out if there is no stack. Don't update register information
7247 unless registers_too_p is true.
7248 (tui_print_frame_info_listing_hook): Rename to ...
7249 (tui_dummy_print_frame_info_listing_hook): ... this.
7250 (tui_before_prompt): New function.
7251 (tui_normal_stop): New function.
7252 (tui_before_prompt_observer): New observer.
7253 (tui_normal_stop_observer): New observer.
7254 (tui_install_hooks): Set
7255 deprecated_print_frame_info_listing_hook to
7256 tui_dummy_print_frame_info_listing_hook. Register
7257 tui_before_prompt_observer to call tui_before_prompt and
7258 tui_normal_stop_observer to call tui_normal_stop. Remove
7259 reference to deprecated_selected_frame_level_changed_hook.
7260 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
7261 and tui_normal_stop_observer. Remove reference to
7262 deprecated_selected_frame_level_changed_hook.
7263
7264 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7265
7266 PR tui/13378
7267 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
7268 return an int instead of void. Return whether the locator
7269 window has changed.
7270 (tui_show_frame_info): If the locator info has not changed, then
7271 bail out early to avoid refreshing the windows.
7272
7273 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
7274
7275 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
7276 LOCATOR_WIN to tui_alloc_content.
7277
7278 2015-06-30 Yao Qi <yao.qi@linaro.org>
7279
7280 PR tdep/18605
7281 * arm-tdep.c (arm_get_next_pc_raw): Break for media
7282 instructions.
7283
7284 2015-06-29 Kevin Buettner <kevinb@redhat.com>
7285
7286 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
7287 (rx_dwarf_reg_to_regnum): New function.
7288 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
7289 unwinding.
7290
7291 2015-06-29 Pedro Alves <palves@redhat.com>
7292
7293 PR threads/18127
7294 * infcall.c (run_inferior_call): On infcall success, if the thread
7295 was marked stopped before, reset it back to stopped.
7296 * infrun.c (resume): Don't suppress the set_running calls when
7297 doing an infcall.
7298 (normal_stop): Only discard the finish_thread_state cleanup if the
7299 infcall succeeded.
7300
7301 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7302
7303 * MAINTAINERS (Write After Approval): Update my email address.
7304
7305 2015-06-26 Keith Seitz <keiths@redhat.com>
7306 Doug Evans <dje@google.com>
7307
7308 PR 16253
7309 * block.c (block_lookup_symbol): For non-function blocks,
7310 continue to search for a symbol with an exact domain match
7311 Otherwise, return any previously found "best domain" symbol.
7312 (block_lookup_symbol_primary): Likewise.
7313
7314 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7315
7316 * NEWS: Mention the new option "history remove-duplicates".
7317 * top.c (history_remove_duplicates): New static variable.
7318 (show_history_remove_duplicates): New static function.
7319 (gdb_add_history): Conditionally remove duplicate history
7320 entries.
7321 (init_main): Add "history remove-duplicates" option.
7322
7323 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
7324
7325 * tui/tui-win.c (focus_completer): New static function.
7326 (_initialize_tui_win): Set the completion function of the
7327 "focus" command to focus_completer.
7328
7329 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7330
7331 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
7332 and language_asm..
7333 * symtab.c (find_function_start_sal): Likewise.
7334
7335 2015-06-25 Gary Benson <gbenson@redhat.com>
7336
7337 * solib.c (solib_find_1): Set local variable sysroot to NULL if
7338 it is the empty string after trailing slashes have been stripped.
7339
7340 2015-06-25 Gary Benson <gbenson@redhat.com>
7341
7342 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
7343 * infrun.c (follow_exec): Likewise.
7344 * remote.c (remote_filesystem_is_local): Likewise.
7345 * solib.c (solib_find_1): Likewise.
7346
7347 2015-06-24 Keith Seitz <keiths@redhat.com>
7348
7349 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
7350 return value from lrealpath.
7351
7352 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7353
7354 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
7355
7356 2015-06-24 Mike Frysinger <vapier@gentoo.org>
7357
7358 * remote-sim.c: Include gdb_bfd.h.
7359 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
7360 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
7361
7362 2015-06-24 Yao Qi <yao.qi@linaro.org>
7363
7364 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
7365 set_gdbarch_get_siginfo_type.
7366 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
7367 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7368 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7369 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
7370 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
7371 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7372 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
7373 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
7374 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
7375 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
7376
7377 2015-06-24 Gary Benson <gbenson@redhat.com>
7378
7379 * common/buffer.c (stdint.h): Do not include.
7380 * common/print-utils.c (stdint.h): Likewise.
7381 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
7382 * compile/compile-c-types.c (gdb_assert.h): Likewise.
7383 * ft32-tdep.c (gdb_assert.h): Likewise.
7384 * guile/scm-utils.c (stdint.h): Likewise.
7385 * i386-linux-tdep.c (stdint.h): Likewise.
7386 * i386-tdep.c (stdint.h): Likewise.
7387 * nat/linux-btrace.c (stdint.h): Likewise.
7388 * nat/linux-btrace.h (stdint.h): Likewise.
7389 * nat/linux-ptrace.c (stdint.h): Likewise.
7390 * nat/mips-linux-watch.h (stdint.h): Likewise.
7391 * ppc-linux-nat.c (stdint.h): Likewise.
7392 * python/python-internal.h (stdint.h): Likewise.
7393 * stub-termcap.c (stdlib.h): Likewise.
7394 * target/target.h (stdint.h): Likewise.
7395 * xtensa-linux-nat.c (stdint.h): Likewise.
7396
7397 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
7398
7399 * top.c (init_history): Look at errno after calling strtol to
7400 properly map large GDBHISTSIZE values to infinity.
7401
7402 2015-06-23 Doug Evans <dje@google.com>
7403
7404 * inferior.h (struct inferior_suspend_state): Delete, unused.
7405 All references deleted.
7406
7407 2015-06-23 Mike Frysinger <vapier@gentoo.org>
7408
7409 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
7410 (microblaze_push_dummy_call): Likewise.
7411 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
7412 and set_gdbarch_push_dummy_call.
7413
7414 2015-06-23 Yao Qi <yao.qi@linaro.org>
7415
7416 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
7417 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
7418 (amd64_linux_store_inferior_registers): Likewise.
7419 * arm-linux-nat.c (fetch_fpregister): Likewise.
7420 (fetch_fpregs, store_fpregister): Likewise.
7421 (store_fpregister, store_fpregs): Likewise.
7422 (fetch_register, fetch_regs): Likewise.
7423 (store_register, store_regs): Likewise.
7424 (fetch_vfp_regs, store_vfp_regs): Likewise.
7425 (arm_linux_read_description): Check have_ptrace_getregset is
7426 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
7427 or TRIBOOL_FALSE.
7428 * i386-linux-nat.c (fetch_xstateregs): Check
7429 have_ptrace_getregset is not TRIBOOL_TRUE.
7430 (store_xstateregs): Likewise.
7431 * linux-nat.c (have_ptrace_getregset): Change its type to
7432 enum tribool.
7433 * linux-nat.h (tribool): New enum.
7434 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
7435 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
7436
7437 2015-06-19 Doug Evans <dje@google.com>
7438
7439 * NEWS: Mention Sun's version of stabs is no longer supported.
7440 * elfread.c (free_elfinfo): Delete. All uses updated.
7441 (elfstab_offset_sections): Delete. All uses updated.
7442 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
7443 * psympriv.h (partial_symtab) <section_offsets>: Delete.
7444 All uses updated.
7445 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
7446 All callers updated.
7447
7448 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7449
7450 * common/rsp-low.c (needs_escaping): New.
7451 (remote_escape_output): Add unit_size parameter. Refactor to
7452 support multi-byte addressable units. Rename parameters.
7453 * common/rsp-low.h (remote_escape_output): Add unit_size
7454 parameter and rename others. Update doc.
7455 * remote.c (align_for_efficient_write): New.
7456 (remote_write_bytes_aux): Add unit_size parameter and use it.
7457 Rename some variables. Update doc.
7458 (remote_xfer_partial): Get unit size and use it.
7459 (remote_read_bytes_1): Add unit_size parameter and use it.
7460 Rename some variables. Update doc.
7461 (remote_write_bytes): Same.
7462 (remote_xfer_live_readonly_partial): Same.
7463 (remote_read_bytes): Same.
7464 (remote_flash_write): Update call to remote_write_bytes_aux.
7465 (remote_write_qxfer): Update call to remote_escape_output.
7466 (remote_search_memory): Same.
7467 (remote_hostio_pwrite): Same.
7468
7469 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7470
7471 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
7472 locations as inserted.
7473 Update and expand comment about permanent locations.
7474 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
7475 Move comment to add_location_to_breakpoint.
7476 (update_global_location_list): Don't error out if a permanent
7477 breakpoint is not marked inserted.
7478 Don't error out if a non-permanent breakpoint location is inserted on
7479 top of a permanent breakpoint.
7480
7481 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
7482
7483 * breakpoint.c (make_breakpoint_permanent): Remove unused
7484 function.
7485 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
7486
7487 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7488
7489 PR gdb/16999
7490 * NEWS: Mention new GDBHISTSIZE behavior.
7491 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
7492 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
7493
7494 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7495
7496 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
7497 * top.c (init_history): Read from GDBHISTSIZE instead of
7498 HISTSIZE.
7499 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
7500
7501 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
7502
7503 * top.c (gdb_safe_append_history): Do not call
7504 history_truncate_file if the history is not stifled.
7505
7506 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
7507
7508 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
7509 * syscalls/s390x-linux.xml: Likewise.
7510
7511 2015-06-16 Michael Eager <eager@eagercon.com>
7512
7513 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
7514
7515 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
7516
7517 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
7518 target_terminal_ours_for_output() before calling
7519 tui_show_frame_info(), and restore the original terminal
7520 settings afterwards.
7521
7522 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
7523
7524 * arm-linux-nat.c: Include nat/linux-ptrace.h.
7525
7526 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7527
7528 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
7529 memory unit size.
7530 (mi_cmd_data_write_memory_bytes): Same.
7531
7532 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
7533
7534 * corefile.c (write_memory): Update doc.
7535 * gdbcore.h (write_memory): Same.
7536
7537 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7538
7539 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
7540 (dump_mapping_p): Use it for parameter filterflags.
7541 (linux_find_memory_regions_full): Use it for variable filterflags.
7542
7543 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7544 Jan Kratochvil <jan.kratochvil@redhat.com>
7545
7546 Merge multiple hex conversions.
7547 * monitor.c: Include rsp-low.h.
7548 (fromhex): Remove definition.
7549
7550 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7551 Jan Kratochvil <jan.kratochvil@redhat.com>
7552
7553 Move utility functions to common/.
7554 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
7555 Move defs to common/common-utils.c.
7556 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
7557 (skip_to_space_const): Move decls to common/common-utils.h.
7558 * common/common-defs.h: Move include of common-types.h before
7559 common-utils.h.
7560 * common/common-utils.c: Include host-defs.h and ctype.h.
7561 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
7562 from utils.c.
7563 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
7564 cli/cli-utils.c.
7565 * common/common-utils.h (strtoulst): Move decl from utils.h.
7566 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
7567 Move from cli/cli-utils.h.
7568 * common/host-defs.h: Include limits.h.
7569 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
7570 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
7571 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
7572 common/common-utils.h.
7573 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
7574 (strtoulst): Move to common/common-utils.c.
7575 * utils.h (strtoulst): Moved decl to common/common-utils.h.
7576
7577 2015-06-15 Yao Qi <yao.qi@linaro.org>
7578
7579 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
7580
7581 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
7582
7583 * build-id.c: Don't include elf-bfd.h.
7584 (build_id_bfd_get): Use bfd_build_id.
7585 (build_id_verify): Ditto.
7586 * build-id.h: Ditto.
7587 (find_separate_debug_file_by_buildid): Ditto.
7588 * python/py-objfile.c: Don't include elf-bfd.h.
7589 (objfpy_get_build_id) Use bfd_build_id.
7590 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
7591 * coffread.c: Include build-id.h.
7592 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
7593
7594 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7595
7596 * windows-nat.c (do_windows_fetch_inferior_registers)
7597 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
7598 conditional with __CYGWIN__.
7599
7600 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
7601
7602 * completer.c: Add arch-utils.h include.
7603 (enum reg_completer_targets): New enum.
7604 (reg_or_group_completer_1): New function containing old
7605 reg_or_group_completer, add and use new parameter to control what
7606 is completed on. Use get_current_arch rather than architecture of
7607 currently selected frame.
7608 (reg_or_group_completer): Call new reg_or_group_completer_1.
7609 (reggroup_completer): Call new reg_or_group_completer_1.
7610 * completer.h (reggroup_completer): Add declaration.
7611 * tui/tui-regs.c: Add 'completer.h' include.
7612 (tui_reg_next_command): Renamed to...
7613 (tui_reg_next): ...this. Adjust parameters and return rather than
7614 display new group.
7615 (tui_reg_prev_command): Renamed to...
7616 (tui_reg_prev): ...this. Adjust parameters and return rather than
7617 display new group.
7618 (tui_reg_float_command): Delete.
7619 (tui_reg_general_command): Delete.
7620 (tui_reg_system_command): Delete.
7621 (tui_reg_command): Rewrite to perform switching of register group.
7622 Add header comment.
7623 (tuireglist): Remove.
7624 (tui_reggroup_completer): New function.
7625 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
7626 creation of 'tui reg' command.
7627 * NEWS: Add comment about 'tui reg' changes.
7628
7629 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7630
7631 * target.c (target_read): Consider addressable unit size when
7632 reading from a memory object.
7633 (read_memory_robust): Same.
7634 (read_whatever_is_readable): Same.
7635 (target_write_with_progress): Consider addressable unit size
7636 when writing to a memory object.
7637 * target.h (target_read): Update documentation.
7638 (target_write): Add documentation.
7639
7640 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7641
7642 * arch-utils.h (default_addressable_memory_unit_size): New.
7643 * arch-utils.c (default_addressable_memory_unit_size): New.
7644 * gdbarch.sh (addressable_memory_unit_size): New.
7645 * gdbarch.h: Re-generate.
7646 * gdbarch.c: Re-generate.
7647
7648 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
7649
7650 * target.c (target_read): Rename variables and use
7651 TARGET_XFER_E_IO.
7652 (target_read_with_progress): Same.
7653 (read_memory_robust): Constify parameters and rename
7654 variables.
7655 (read_whatever_is_readable): Constify parameters,
7656 rename variables, adjust formatting.
7657 * target.h (read_memory_robust): Constify parameters.
7658
7659 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
7660
7661 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
7662 synthetic (non-AltiVec) vector types.
7663 (ppc64_sysv_abi_return_value): Likewise.
7664
7665 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
7666
7667 PR breakpoints/16465
7668 * breakpoint.c (create_breakpoint): Save extra_string for
7669 pending breakpoints.
7670
7671 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7672
7673 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
7674 and bt_mask to CORE_ADDR.
7675
7676 2015-06-11 Gary Benson <gbenson@redhat.com>
7677
7678 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
7679 (mnsh_recv_message): Likewise.
7680
7681 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
7682
7683 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
7684 long long int and plongest instead of %ll.
7685
7686 2015-06-11 Gary Benson <gbenson@redhat.com>
7687
7688 * nat/linux-namespaces.c (gdb_wait.h): New include.
7689 (sys/wait.h): Do not include.
7690
7691 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
7692
7693 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
7694 end_sequence is true.
7695
7696 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7697
7698 Code cleanup.
7699 * solib-target.c (library_list_start_list): Use explicit NULL
7700 comparison.
7701
7702 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7703
7704 * solib-target.c (library_list_start_list): Do not dereference
7705 variable version in its initialization. Make the VERSION check handle
7706 NULL.
7707 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
7708
7709 2015-06-10 Gary Benson <gbenson@redhat.com>
7710
7711 * NEWS: Announce support for direct access of executable and
7712 shared library files when attaching to inferiors in containers
7713 on GNU/Linux systems.
7714
7715 2015-06-10 Gary Benson <gbenson@redhat.com>
7716
7717 * remote.c (struct remote_state) <fs_pid>: New field.
7718 (new_remote_state): Initialize the above.
7719 (PACKET_vFile_setfs): New enum value.
7720 (remote_hostio_set_filesystem): New function.
7721 (remote_hostio_open): Call the above.
7722 (remote_hostio_unlink): Likewise.
7723 (remote_hostio_readlink): Likewise.
7724 (_initialize_remote): Register new "set/show remote
7725 hostio-setfs-packet" command.
7726 * NEWS: Announce new vFile:setfs packet.
7727
7728 2015-06-10 Gary Benson <gbenson@redhat.com>
7729
7730 * linux-nat.c (nat/linux-namespaces.h): New include.
7731 (fileio.h): Likewise.
7732 (linux_nat_filesystem_is_local): New function.
7733 (linux_nat_fileio_pid_of): Likewise.
7734 (linux_nat_fileio_open): Likewise.
7735 (linux_nat_fileio_readlink): Likewise.
7736 (linux_nat_fileio_unlink): Likewise.
7737 (linux_nat_add_target): Initialize to_filesystem_is_local,
7738 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
7739 (_initialize_linux_nat): New "set/show debug linux-namespaces"
7740 commands.
7741 * NEWS: Mention new "set/show debug linux-namespaces" commands.
7742
7743 2015-06-10 Gary Benson <gbenson@redhat.com>
7744
7745 * target.h (struct inferior): New forward declaration.
7746 (struct target_ops) <to_filesystem_is_local>: Update comment.
7747 (struct target_ops) <to_fileio_open>: New argument inf.
7748 Update comment. All implementations updated.
7749 (struct target_ops) <to_fileio_unlink>: Likewise.
7750 (struct target_ops) <to_fileio_readlink>: Likewise.
7751 (target_filesystem_is_local): Update comment.
7752 (target_fileio_open): New argument inf. Update comment.
7753 (target_fileio_unlink): Likewise.
7754 (target_fileio_readlink): Likewise.
7755 (target_fileio_read_alloc): Likewise.
7756 (target_fileio_read_stralloc): Likewise.
7757 * target.c (target_fileio_open): New argument inf.
7758 Pass inf to implementation. Update debug printing.
7759 (target_fileio_unlink): Likewise.
7760 (target_fileio_readlink): Likewise.
7761 (target_fileio_read_alloc_1): New argument inf. Pass inf
7762 to target_fileio_open.
7763 (target_fileio_read_alloc): New argument inf. Pass inf to
7764 target_fileio_read_alloc_1.
7765 (target_fileio_read_stralloc): Likewise.
7766 * gdb_bfd.c (inferior.h): New include.
7767 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
7768 argument with new argument "inferior". Pass inferior to
7769 target_fileio_open.
7770 (gdb_bfd_open): Supply inferior argument to
7771 gdb_bfd_iovec_fileio_open.
7772 * linux-tdep.c (linux_info_proc): Supply inf argument to
7773 relevant target_fileio calls.
7774 (linux_find_memory_regions_full): Likewise.
7775 (linux_fill_prpsinfo): Likewise.
7776 * remote.c (remote_filesystem_is_local): Supply inf
7777 argument to remote_hostio_open.
7778 (remote_file_put): Likewise.
7779 (remote_file_get): Likewise.
7780 (remote_file_delete): Supply inf argument to
7781 remote_hostio_unlink.
7782
7783 2015-06-10 Gary Benson <gbenson@redhat.com>
7784
7785 * inf-child.c (inf_child_fileio_open): Replace comment.
7786 (inf_child_fileio_pwrite): Likewise.
7787 (inf_child_fileio_pread): Likewise.
7788 (inf_child_fileio_fstat): Insert blank line before comment.
7789 (inf_child_fileio_close): Replace comment.
7790 (inf_child_fileio_unlink): Likewise.
7791 (inf_child_fileio_readlink): Likewise.
7792 * remote.c (remote_hostio_open): Likewise.
7793 (remote_hostio_pread): Likewise.
7794 (remote_hostio_pwrite): Likewise.
7795 (remote_hostio_close): Likewise.
7796 (remote_hostio_unlink): Likewise.
7797 (remote_hostio_readlink): Likewise.
7798 (remote_hostio_fstat): Likewise.
7799 (remote_filesystem_is_local): Likewise.
7800 * target.c (target_fileio_open): Likewise.
7801 (target_fileio_pwrite): Likewise.
7802 (target_fileio_pread): Likewise.
7803 (target_fileio_fstat): Insert blank line before comment.
7804 (target_fileio_close): Replace comment.
7805 (target_fileio_unlink): Likewise.
7806 (target_fileio_readlink): Likewise.
7807 (target_fileio_read_alloc): Likewise.
7808 (target_fileio_read_stralloc): Likewise.
7809
7810 2015-06-10 Gary Benson <gbenson@redhat.com>
7811
7812 * linux-thread-db.c (nat/linux-namespaces.h): New include.
7813 (check_pid_namespace_match): Use linux_ns_same rather than
7814 linux_proc_pid_get_ns to spot PID namespace mismatches.
7815 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
7816 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
7817
7818 2015-06-10 Gary Benson <gbenson@redhat.com>
7819
7820 * configure.ac (AC_CHECK_FUNCS): Add setns.
7821 * config.in: Regenerate.
7822 * configure: Likewise.
7823 * nat/linux-namespaces.h: New file.
7824 * nat/linux-namespaces.c: Likewise.
7825 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
7826 (linux-namespaces.o): New rule.
7827 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
7828 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7829 * config/arm/linux.mh (NATDEPFILES): Likewise.
7830 * config/i386/linux.mh (NATDEPFILES): Likewise.
7831 * config/i386/linux64.mh (NATDEPFILES): Likewise.
7832 * config/ia64/linux.mh (NATDEPFILES): Likewise.
7833 * config/m32r/linux.mh (NATDEPFILES): Likewise.
7834 * config/m68k/linux.mh (NATDEPFILES): Likewise.
7835 * config/mips/linux.mh (NATDEPFILES): Likewise.
7836 * config/pa/linux.mh (NATDEPFILES): Likewise.
7837 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7838 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7839 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7840 * config/s390/linux.mh (NATDEPFILES): Likewise.
7841 * config/sparc/linux.mh (NATDEPFILES): Likewise.
7842 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7843 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7844 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7845
7846 2015-06-10 Gary Benson <gbenson@redhat.com>
7847
7848 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
7849 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
7850 (make_cleanup_close): Likewise.
7851 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
7852 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
7853 (make_cleanup_close): Likewise.
7854
7855 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7856
7857 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
7858 from SuspendThread().
7859
7860 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
7861
7862 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
7863 from OutputDebugString.
7864
7865 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
7866 Mircea Gherzan <mircea.gherzan@intel.com>
7867
7868 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
7869 MPX_BT_MASK_32): New macros.
7870 (i386_mpx_set_bounds): New function that implements
7871 the command "set-mpx-bound".
7872 (i386_mpx_enabled): Helper function to test MPX availability.
7873 (i386_mpx_bd_base): Helper function to calculate the base directory
7874 address.
7875 (i386_mpx_get_bt_entry): Helper function to access a bound
7876 table entry.
7877 (i386_mpx_print_bounds): Effectively display bound information.
7878 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
7879 "show mpx".
7880 (_initialize_i386_tdep):
7881 Add "bound" to the commands "show mpx" and "set mpx" commands.
7882 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
7883 and "show mpx" commands.
7884 * NEWS: List new commands for MPX support.
7885
7886 2015-06-09 Gary Benson <gbenson@redhat.com>
7887
7888 * common/fileio.h (fileio_to_host_mode): New declaration.
7889 * common/fileio.c (fileio_to_host_mode): New Function.
7890 * inf-child.c (inf_child_fileio_open): Process mode argument
7891 with fileio_to_host_mode.
7892
7893 2015-06-09 Gary Benson <gbenson@redhat.com>
7894
7895 * common/fileio.c (fileio_mode_pack): Fix preprocessor
7896 conditional.
7897
7898 2015-06-05 Gary Benson <gbenson@redhat.com>
7899
7900 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
7901 * remote.c (remote_filesystem_is_local): ...here.
7902
7903 2015-06-04 Yao Qi <yao.qi@linaro.org>
7904
7905 * gdbarch.c: Regenerate it.
7906
7907 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7908
7909 * arch-utils.c (default_infcall_munmap): New.
7910 * arch-utils.h (default_infcall_munmap): New declaration.
7911 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
7912 (munmap_list_free, munmap_listp_free_cleanup): New.
7913 (struct setup_sections_data): Add field munmap_list_headp.
7914 (setup_sections): Call munmap_list_add.
7915 (compile_object_load): New variable munmap_list_head, initialize
7916 setup_sections_data.munmap_list_headp, return munmap_list_head.
7917 * compile/compile-object-load.h (struct munmap_list): New declaration.
7918 (struct compile_module): Add field munmap_list_head.
7919 (munmap_list_free): New declaration.
7920 * compile/compile-object-run.c (struct do_module_cleanup): Add field
7921 munmap_list_head.
7922 (do_module_cleanup): Call munmap_list_free.
7923 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
7924 * gdbarch.c: Regenerate.
7925 * gdbarch.h: Regenerate.
7926 * gdbarch.sh (infcall_munmap): New.
7927 * linux-tdep.c (linux_infcall_munmap): New.
7928 (linux_init_abi): Install it.
7929
7930 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
7931
7932 PR gdb/15564
7933 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
7934
7935 2015-06-02 Yao Qi <yao.qi@linaro.org>
7936
7937 * i386-linux-nat.c: Include linux-nat.h.
7938
7939 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
7940 Jan Kratochvil <jan.kratochvil@redhat.com>
7941
7942 PR symtab/18392
7943 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
7944 assertion.
7945 * dwarf2loc.c (chain_candidate): Likewise.
7946
7947 2015-06-01 Yao Qi <yao.qi@linaro.org>
7948
7949 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7950 (store_vfp_regs): Use PTRACE_SETREGSET.
7951
7952 2015-06-01 Yao Qi <yao.qi@linaro.org>
7953
7954 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7955 (fetch_fpregs): Likewise.
7956 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7957 (store_fpregs): Likewise.
7958
7959 2015-06-01 Yao Qi <yao.qi@linaro.org>
7960
7961 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7962 (fetch_regs): Likewise.
7963 (store_regs): Use PTRACE_SETREGSET.
7964 (store_register): Likewise.
7965
7966 2015-06-01 Yao Qi <yao.qi@linaro.org>
7967
7968 * arm-linux-nat.c (arm_linux_read_description): Check whether
7969 kernel supports PTRACE_GETREGSET.
7970
7971 2015-06-01 Yao Qi <yao.qi@linaro.org>
7972
7973 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7974 * linux-nat.c: ... here.
7975 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7976 to ...
7977 * linux-nat.h: ... here.
7978
7979 2015-06-01 Yao Qi <yao.qi@linaro.org>
7980
7981 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7982 * i386-linux-nat.c: Likewise.
7983 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7984 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7985 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7986 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7987 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7988
7989 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7990
7991 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7992 compatible to what read_child and write_child return. This
7993 unbreaks that DJGPP build of GDB which was broken since v7.7.
7994
7995 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7996
7997 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7998
7999 2015-05-29 Roland McGrath <mcgrathr@google.com>
8000
8001 PR gdb/18464
8002 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
8003 rather than internal_error for an unrecognized value.
8004
8005 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
8006
8007 * xtensa-tdep.c (xtensa_pseudo_register_read)
8008 (xtensa_pseudo_register_write): Don't alias last pseudo register
8009 to a1.
8010
8011 2015-05-28 Don Breazeal <donb@codesourcery.com>
8012
8013 * infrun.c (follow_fork_inferior): Ensure the use of
8014 process-style ptids (pid,0,0) in verbose/debug "Detaching"
8015 messages.
8016
8017 2015-05-28 Doug Evans <dje@google.com>
8018
8019 * dwarf2read.c (record_line_ftype): Remove, duplicate.
8020
8021 2015-05-28 Yao Qi <yao.qi@linaro.org>
8022
8023 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
8024 (arm_linux_fetch_inferior_registers): Use
8025 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
8026 (arm_linux_store_inferior_registers): Likewise.
8027 (arm_linux_read_description): Don't set
8028 arm_linux_has_wmmx_registers.
8029 * arm-tdep.c (arm_gdbarch_init): Set
8030 tdep->have_wmmx_registers according target descriptions.
8031 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
8032 field.
8033
8034 2015-05-28 Yao Qi <yao.qi@linaro.org>
8035
8036 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
8037 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
8038 instead of arm_linux_vfp_register_count.
8039 (store_vfp_regs): Likewise.
8040 (arm_linux_fetch_inferior_registers): Likewise.
8041 (arm_linux_store_inferior_registers): Likewise.
8042 (arm_linux_read_description): Don't set
8043 arm_linux_vfp_register_count.
8044 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
8045 Adjust.
8046 * arm-tdep.c (arm_gdbarch_init): Add assert on
8047 vfp_register_count.
8048 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
8049 field to vfp_register_count. All users updated.
8050
8051 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
8052
8053 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
8054 ELFOSABI_GNU binaries.
8055
8056 2015-05-27 Doug Evans <dje@google.com>
8057
8058 * dwarf2read.c (lnp_state_machine): New typedef.
8059 (lnp_reader_state): New typedef.
8060 (dwarf_record_line_1): Renamed from dwarf_record_line.
8061 All callers updated.
8062 (dwarf_record_line): New function.
8063 (init_lnp_state_machine): New function.
8064 (check_line_address): Replace p_record_line parameter with state.
8065 All callers updated.
8066 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
8067 Update to record state in lnp_state_machine.
8068
8069 2015-05-27 Doug Evans <dje@google.com>
8070
8071 * dwarf2read.c (record_line_ftype): New typedef.
8072 (check_line_address): New function.
8073 (dwarf_decode_lines_1): Call it.
8074
8075 2015-05-27 Doug Evans <dje@google.com>
8076
8077 * NEWS: Mention "set debug dwarf-line".
8078 * dwarf2read.c (dwarf_line_debug): New static global.
8079 (add_include_dir): Add debug dwarf-line support.
8080 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
8081 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
8082
8083 2015-05-27 Doug Evans <dje@google.com>
8084
8085 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
8086 All callers updated.
8087 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
8088 * cp-support.h (cp_lookup_nested_symbol): Update.
8089
8090 2015-05-27 Doug Evans <dje@google.com>
8091
8092 PR symtab/18258
8093 * block.c (block_find_symbol): New function.
8094 (block_find_non_opaque_type): Ditto.
8095 (block_find_non_opaque_type_preferred): Ditto.
8096 * block.h (block_symbol_matcher_ftype): New typedef.
8097 (block_find_symbol): Declare.
8098 (block_find_non_opaque_type): Ditto.
8099 (block_find_non_opaque_type_preferred): Ditto.
8100 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
8101 * psymtab.c (psym_lookup_symbol): Ditto.
8102 * symtab.c (basic_lookup_transparent_type_1): New function.
8103 (basic_lookup_transparent_type): Call it.
8104
8105 2015-05-27 Yao Qi <yao.qi@linaro.org>
8106
8107 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
8108 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
8109
8110 2015-05-27 Yao Qi <yao.qi@linaro.org>
8111
8112 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
8113 before operator &&.
8114 (aarch64_record_load_store): Likewise.
8115
8116 2015-05-26 Doug Evans <dje@google.com>
8117
8118 PR c++/18141, c++/18417.
8119 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
8120 a typedef.
8121
8122 2015-05-26 Doug Evans <dje@google.com>
8123
8124 * NEWS: Add entries for command renamings.
8125 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
8126 All uses updated.
8127 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
8128 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
8129 All uses updated.
8130 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
8131 All callers updated. Fix spelling of DWARF in help text.
8132 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
8133 All uses updated.
8134 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
8135 All uses updated.
8136 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
8137 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
8138 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
8139 All uses updated.
8140 (show_dwarf_always_disassemble): Renamed from
8141 show_dwarf2_always_disassemble. All callers updated.
8142 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
8143 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
8144 "set/show dwarf max-cache-age". Rename
8145 "set/show dwarf2 always-disassemble" to
8146 "set/show dwarf always-disassemble". Rename
8147 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
8148 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
8149
8150 2015-05-26 Doug Evans <dje@google.com>
8151
8152 PR python/18438
8153 * python/py-lazy-string.c (stpy_convert_to_value): Use
8154 gdbpy_gdb_memory_error not PyExc_MemoryError.
8155 (gdbpy_create_lazy_string_object): Ditto.
8156
8157 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8158
8159 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
8160
8161 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
8162
8163 * tui/tui-regs.c (tui_reg_prev_command): New function.
8164 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
8165 * reggroups.c (reggroup_prev): New function.
8166 * reggroups.h (reggroup_prev): Add declaration. Update comment.
8167
8168 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8169 Yao Qi <yao.qi@linaro.org>
8170
8171 * aarch64-linux-tdep.c: Include linux-record.h and
8172 record-full.h.
8173 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
8174 (aarch64_syscall): New enum.
8175 (aarch64_canonicalize_syscall): New function.
8176 (aarch64_all_but_pc_registers_record): New function.
8177 (aarch64_linux_syscall_record): New function.
8178 (aarch64_linux_init_abi): Install AArch64 process record
8179 handler. Update to handle syscall recording.
8180 * aarch64-tdep.c: Include record.h and record-full.h.
8181 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
8182 (struct aarch64_mem_r): Define.
8183 (aarch64_record_result): New enum.
8184 (struct insn_decode_record): Define.
8185 (insn_decode_record): New typedef.
8186 (aarch64_record_data_proc_reg): New function.
8187 (aarch64_record_data_proc_imm): New function.
8188 (aarch64_record_branch_except_sys): New function.
8189 (aarch64_record_load_store): New function.
8190 (aarch64_record_data_proc_simd_fp): New function.
8191 (aarch64_record_asimd_load_store): New function.
8192 (aarch64_record_decode_insn_handler): New function.
8193 (deallocate_reg_mem): New function.
8194 (aarch64_process_record): New function.
8195 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
8196 New field.
8197 (aarch64_process_record): New extern declaration.
8198 * configure.tgt: Add linux-record.o to gdb_target_obs.
8199 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
8200
8201 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
8202
8203 * NEWS: Add a note on process record-replay support on aarch64*-linux*
8204 targets.
8205
8206 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
8207
8208 * amd64-tdep.c: Replace in_function_epilogue_p with
8209 stack_frame_destroyed_p throughout.
8210 * arch-utils.c: Ditto.
8211 * arch-utils.h: Ditto.
8212 * arm-tdep.c: Ditto.
8213 * breakpoint.c: Ditto.
8214 * gdbarch.sh: Ditto.
8215 * hppa-tdep.c: Ditto.
8216 * i386-tdep.c: Ditto.
8217 * mips-tdep.c: Ditto.
8218 * nios2-tdep.c: Ditto.
8219 * rs6000-tdep.c: Ditto.
8220 * s390-linux-tdep.c: Ditto.
8221 * score-tdep.c: Ditto.
8222 * sh-tdep.c: Ditto.
8223 * sparc-tdep.c: Ditto.
8224 * sparc-tdep.h: Ditto.
8225 * sparc64-tdep.c: Ditto.
8226 * spu-tdep.c: Ditto.
8227 * tic6x-tdep.c: Ditto.
8228 * tilegx-tdep.c: Ditto.
8229 * xstormy16-tdep.c: Ditto.
8230 * gdbarch.c, gdbarch.h: Re-generated.
8231
8232 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8233
8234 * NEWS: Mention 'tui enable' and 'tui disable'.
8235 * tui/tui.c (tui_enable_command): New function.
8236 (tui_disable_command): New function.
8237 (_initialize_tui): New function.
8238
8239 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8240
8241 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
8242
8243 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8244
8245 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
8246 buf_ptr is freed.
8247
8248 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8249
8250 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
8251 into ...
8252 (tui_set_layout_for_display_command): ...here, before calling
8253 tui_set_layout. Only set the layout if gdb has not already
8254 entered the TUI_FAILURE state.
8255
8256 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8257
8258 * tui/tui-layout.c (layout_completer): New function.
8259 (_initialize_tui_layout): Set completer on layout command.
8260
8261 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
8262
8263 * tui/tui-layout.c (tui_set_layout): Remove
8264 tui_register_display_type parameter. Remove all checking of this
8265 parameter, and reindent function. Update header comment.
8266 (tui_set_layout_for_display_command): Rename to...
8267 (tui_set_layout_by_name): ...this, and don't check for different
8268 register class types, don't pass a tui_register_display_type to
8269 tui_set_layout. Update header comment.
8270 (layout_names): Remove register set specific names.
8271 * tui/tui-layout.h (tui_set_layout): Remove
8272 tui_register_display_type parameter.
8273 * tui/tui.c (tui_rl_change_windows): Don't pass a
8274 tui_register_display_type to tui_set_layout.
8275 (tui_rl_delete_other_windows): Likewise.
8276 (tui_enable): Likewise.
8277 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
8278 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
8279 (TUI_GENERAL_REGS_NAME): Remove.
8280 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
8281 (TUI_SPECIAL_REGS_NAME): Remove.
8282 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
8283 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
8284 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
8285 (enum tui_register_display_type): Remove.
8286 (struct tui_layout_def): Remove regs_display_type and
8287 float_regs_display_type fields.
8288 (struct tui_data_info): Remove regs_display_type field.
8289 (tui_layout_command): Use new name for
8290 tui_set_layout_for_display_command.
8291 * tui/tui-data.c (layout_def): Don't initialise removed fields.
8292 (tui_clear_win_detail): Don't initialise removed fields of
8293 win_info.
8294 * tui/tui-regs.c (tui_show_registers): Use new name for
8295 tui_set_layout_for_display_command.
8296 * tui/tui.h (tui_set_layout_for_display_command): Rename
8297 declaration to...
8298 (tui_set_layout_by_name): ...this.
8299 * printcmd.c (display_command): Remove tui related layout call,
8300 and reindent.
8301
8302 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8303
8304 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
8305 (handle_inferior_event): New function.
8306
8307 2015-05-20 Joel Brobecker <brobecker@adacore.com>
8308
8309 * ada-lang.c (to_fixed_array_type): Rename local variable
8310 typename into type_name.
8311
8312 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8313
8314 Fix ASAN crash for gdb.compile/compile.exp.
8315 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
8316
8317 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8318
8319 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
8320 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
8321 * compile/compile-object-load.c (setup_sections, compile_object_load):
8322 Likewise.
8323 * compile/compile.c (compile_to_object): Likewise.
8324
8325 2015-05-16 Doug Evans <xdje42@gmail.com>
8326
8327 * NEWS: Mention support for unbuffered Guile memory ports.
8328 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
8329 (ioscm_lseek_address): Improve overflow calculation.
8330 (gdbscm_memory_port_fill_input): Add assert.
8331 (gdbscm_memory_port_write): Handle unbuffered ports.
8332 Handle large writes identical to Guile's fport_write.
8333 (gdbscm_memory_port_seek): Fix seeking past end check.
8334 (gdbscm_memory_port_close): Handle closing unbuffered port.
8335 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
8336 (ioscm_init_memory_port): Handle unbuffered ports.
8337 (ioscm_reinit_memory_port): Ditto.
8338 (ioscm_init_memory_port): Update size calculation.
8339 (gdbscm_open_memory): Support zero sized ports.
8340
8341 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8342
8343 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
8344 variable compiler warnings.
8345
8346 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8347
8348 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
8349
8350 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8351 Phil Muldoon <pmuldoon@redhat.com>
8352
8353 * NEWS (Changes since GDB 7.9): Add compile print.
8354 * compile/compile-c-support.c (add_code_header, add_code_footer)
8355 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
8356 COMPILE_I_PRINT_VALUE_SCOPE.
8357 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
8358 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
8359 New.
8360 * compile/compile-object-load.c: Include block.h.
8361 (get_out_value_type): New function.
8362 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8363 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
8364 OUT_VALUE_TYPE.
8365 * compile/compile-object-load.h (struct compile_module): Add fields
8366 out_value_addr and out_value_type.
8367 * compile/compile-object-run.c: Include valprint.h and compile.h.
8368 (struct do_module_cleanup): Add fields out_value_addr and
8369 out_value_type.
8370 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
8371 COMPILE_I_PRINT_VALUE_SCOPE.
8372 (compile_object_run): Propagate out_value_addr and out_value_type.
8373 Pass OUT_VALUE_ADDR.
8374 * compile/compile.c: Include valprint.h.
8375 (compile_print_value, compile_print_command): New functions.
8376 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
8377 (_initialize_compile): Update compile code help text. Install
8378 compile_print_command.
8379 * compile/compile.h (compile_print_value): New prototype.
8380 * defs.h (enum compile_i_scope_types): Add
8381 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
8382
8383 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8384
8385 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
8386 Rely on its parameter count.
8387 (compile_object_load): Replace lookup_minimal_symbol_text by
8388 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
8389 return value.
8390 * compile/compile-object-load.h (struct compile_module): Replace
8391 func_addr by func_sym.
8392 * compile/compile-object-run.c: Include block.h.
8393 (compile_object_run): Reset module variable after it is freed. Use
8394 FUNC_SYM instead of FUNC_ADDR. Rely on it.
8395
8396 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8397
8398 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
8399 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
8400 (c_compute_program): Call generate_register_struct after typedefs.
8401 * compile/compile-loc2c.c (push, pushf_register_address)
8402 (pushf_register): Cast to GCC_UINTPTR.
8403 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
8404 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
8405 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
8406 * compile/compile.c (_initialize_compile): Enable warnings for
8407 COMPILE_ARGS.
8408
8409 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8410
8411 * cli/cli-script.c (execute_control_command): Update
8412 eval_compile_command caller.
8413 * compile/compile-object-load.c (compile_object_load): Add parameters
8414 scope and scope_data. Set them.
8415 * compile/compile-object-load.h (struct compile_module): Add fields
8416 scope and scope_data.
8417 (compile_object_load): Add parameters scope and scope_data.
8418 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
8419 scope and scope_data.
8420 (compile_object_run): Propagate the fields scope and scope_data.
8421 * compile/compile.c (compile_file_command, compile_code_command):
8422 Update eval_compile_command callers.
8423 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
8424 * compile/compile.h (eval_compile_command): Add parameter scope_data.
8425 * defs.h (struct command_line): Add field scope_data.
8426
8427 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8428
8429 * printcmd.c (struct format_data): Move it to valprint.h.
8430 (print_command_parse_format, print_value): New functions from ...
8431 (print_command_1): ... here. Call them.
8432 * valprint.h (struct format_data): Move it here from printcmd.c.
8433 (print_command_parse_format, print_value): New declarations.
8434
8435 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8436
8437 * compile/compile-object-load.c (compile_object_load): Add
8438 COMPILE_DEBUG message.
8439
8440 2015-05-15 Jerome Guitton <guitton@adacore.com>
8441
8442 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
8443 index to get element instead of enum value.
8444 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
8445 of index to compute length, but enum values to compute bounds.
8446 (ada_array_length): Use enum position of index instead of enum value.
8447 (pos_atr): Move position computation to...
8448 (ada_evaluate_subexp): Use enum values to compute bounds.
8449 * gdbtypes.c (discrete_position): ...this new function.
8450 * gdbtypes.h (discrete_position): New function declaration.
8451 * valprint.c (val_print_array_elements): Call discrete_position
8452 to handle array indexed by non-contiguous enumeration types.
8453
8454 2015-05-15 Jerome Guitton <guitton@adacore.com>
8455
8456 * ada-lang.c (find_parallel_type_by_descriptive_type):
8457 Go through typedefs during lookup.
8458 (to_fixed_array_type): Add support for non-bit packed arrays
8459 as variable-length fields.
8460
8461 2015-05-15 Pedro Alves <palves@redhat.com>
8462 Simon Marchi <simon.marchi@ericsson.com>
8463
8464 * event-loop.c (gdb_notifier) <next_file_handler,
8465 next_poll_fds_index>: New fields.
8466 (get_next_file_handler_to_handle_and_advance): New function.
8467 (delete_file_handler): If deleting the next file handler to
8468 handle, advance to the next file handler.
8469 (gdb_wait_for_event): Bail early if no event fired. Poll file
8470 handlers in round-robin fashion.
8471
8472 2015-05-15 Pedro Alves <palves@redhat.com>
8473
8474 * linux-tdep.c (linux_find_memory_regions_full): Rename local
8475 'private' to 'priv'.
8476
8477 2015-05-15 Pedro Alves <palves@redhat.com>
8478
8479 * nat/linux-nat.h: Include "target/waitstatus.h".
8480
8481 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
8482
8483 * python/py-unwind.c (struct reg_info): Move out of ...
8484 (struct cached_frame_info): ... this scope.
8485 (pending_frame_object_type, unwind_info_object_type): Make extern.
8486
8487 2015-05-15 Joel Brobecker <brobecker@adacore.com>
8488
8489 * ada-lang.c (ada_value_primitive_packed_val): Make sure
8490 accumSize is never negative.
8491
8492 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
8493
8494 * tui/tui-command.c: Remove include of <ctype.h>.
8495 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
8496
8497 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
8498
8499 * dwarf2read.c (die_needs_namespace): Return 1 for
8500 DW_TAG_inlined_subroutine.
8501
8502 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8503
8504 * regcache.c (regcache_cpy_no_passthrough): New declaration.
8505 (regcache_cpy_no_passthrough): Make it static, add function comment.
8506 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
8507 (regcache_cpy_no_passthrough): Remove declaration.
8508
8509 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8510
8511 * gdbthread.h (struct thread_control_state): Update comment for
8512 proceed_to_finish.
8513 * infcall.c (run_inferior_call): Update comment about
8514 proceed_to_finish.
8515 * infcmd.c (get_return_value): Update comment about stop_registers.
8516 (finish_forward): Update comment about proceed_to_finish.
8517 * infrun.c (stop_registers): Remove.
8518 (clear_proceed_status, normal_stop): Remove stop_registers handling.
8519 * infrun.h (stop_registers): Remove.
8520
8521 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8522
8523 * infcall.c (struct dummy_frame_context_saver)
8524 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
8525 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8526 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8527 New.
8528 (call_function_by_hand_dummy): Move discard_cleanups of
8529 inf_status_cleanup before dummy_frame_push. Call
8530 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
8531 Use dummy_frame_context_saver_get_regs instead of stop_registers.
8532 * infcall.h (struct dummy_frame_context_saver)
8533 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
8534 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
8535 New declarations.
8536 * infcmd.c: Include infcall.h.
8537 (get_return_value): Add parameter ctx_saver, use it instead of
8538 stop_registers.
8539 (print_return_value): Add parameter ctx_saver, pass it.
8540 (struct finish_command_continuation_args): Add field ctx_saver.
8541 (finish_command_continuation): Update print_return_value caller.
8542 (finish_command_continuation_free_arg): Free also ctx_saver.
8543 (finish_forward): Call dummy_frame_context_saver_setup.
8544 * inferior.h (struct dummy_frame_context_saver): New declaration.
8545 (get_return_value): Add parameter ctx_saver.
8546 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
8547 get_return_value caller.
8548
8549 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8550
8551 * dummy-frame.c (struct dummy_frame_dtor_list): New.
8552 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
8553 (remove_dummy_frame): Process dtor_list.
8554 (pop_dummy_frame): Process dtor_list.
8555 (register_dummy_frame_dtor): Maintain dtor_list.
8556 (find_dummy_frame_dtor): Handle dtor_list.
8557 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
8558 Update comments.
8559
8560 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8561
8562 * compile/compile-object-run.c (do_module_cleanup): Add parameter
8563 registers_valid.
8564 (compile_object_run): Update do_module_cleanup caller.
8565 * dummy-frame.c: Include infcall.h.
8566 (struct dummy_frame): Update dtor comment.
8567 (remove_dummy_frame): Call dtor.
8568 (pop_dummy_frame): Update dtor caller.
8569 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
8570 registers_valid.
8571
8572 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8573
8574 GDB 7.9.1 released.
8575
8576 2015-05-13 Joel Brobecker <brobecker@adacore.com>
8577
8578 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
8579 Xmethods now being able to specify a result type to that new
8580 sectioin.
8581
8582 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8583
8584 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
8585 first before resizing the window.
8586 * tui/tui.c (tui_enable): Likewise.
8587
8588 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8589
8590 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
8591 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
8592 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
8593 dummy_dtor parameter.
8594 * infcall.h: Include dummy-frame.h.
8595 (call_function_by_hand_dummy_dtor_ftype): Remove.
8596 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
8597 parameter.
8598
8599 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
8600
8601 PR gdb/17820
8602 * top.c (history_size_setshow_var): Change type to signed.
8603 Initialize to -2. Update documentation.
8604 (set_readline_history_size): Define.
8605 (set_history_size_command): Use it. Remove logic for handling
8606 out-of-range sizes.
8607 (init_history): Use set_readline_history_size(). Test for a
8608 value of -2 instead of 0 when determining whether to set a
8609 default history size.
8610 (init_main): Decode the argument of the "size" command as a
8611 zuinteger_unlimited.
8612
8613 2015-05-12 Doug Evans <dje@google.com>
8614
8615 * dwarf2read.c (struct file_entry): Tweak comments.
8616 (get_debug_line_section): Tweak comments.
8617
8618 2015-05-12 Don Breazeal <donb@codesourcery.com>
8619
8620 * NEWS: Announce fork support in the RSP and support
8621 for fork debugging in extended mode.
8622
8623 2015-05-12 Don Breazeal <donb@codesourcery.com>
8624
8625 * remote.c (remote_insert_fork_catchpoint): New function.
8626 (remote_remove_fork_catchpoint): New function.
8627 (remote_insert_vfork_catchpoint): New function.
8628 (remote_remove_vfork_catchpoint): New function.
8629 (pending_fork_parent_callback): New function.
8630 (remove_new_fork_child): New function.
8631 (remote_update_thread_list): Call remote_notif_get_pending_events
8632 and remove_new_fork_child.
8633 (extended_remote_kill): Kill fork child when killing the
8634 parent before follow_fork completes.
8635 (init_extended_remote_ops): Initialize target vector with
8636 new fork catchpoint functions.
8637
8638 2015-05-12 Don Breazeal <donb@codesourcery.com>
8639
8640 * remote.c (remove_vfork_event_p): New function.
8641 (remote_follow_fork): Add vfork event type to event checking.
8642 (remote_parse_stop_reply): New stop reasons "vfork" and
8643 "vforkdone" for RSP 'T' Stop Reply Packet.
8644
8645 2015-05-12 Don Breazeal <donb@codesourcery.com>
8646
8647 * linux-nat.c (linux_nat_ptrace_options): New function.
8648 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
8649 Call linux_nat_ptrace_options and use different argument to
8650 linux_enable_event_reporting.
8651 (_initialize_linux_nat): Delete call to
8652 linux_ptrace_set_additional_flags.
8653 * nat/linux-ptrace.c (current_ptrace_options): Rename to
8654 supported_ptrace_options.
8655 (additional_flags): Delete variable.
8656 (linux_check_ptrace_features): Use supported_ptrace_options.
8657 (linux_test_for_tracesysgood, linux_test_for_tracefork):
8658 Likewise, and remove additional_flags check.
8659 (linux_enable_event_reporting): Change 'attached' argument to
8660 'options'. Use supported_ptrace_options.
8661 (ptrace_supports_feature): Change comment. Use
8662 supported_ptrace_options.
8663 (linux_ptrace_set_additional_flags): Delete function.
8664 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
8665 Delete function prototype.
8666 * remote.c (remote_fork_event_p): New function.
8667 (remote_detach_pid): New function.
8668 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
8669 if doing detach-on-fork.
8670 (remote_follow_fork): New function.
8671 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
8672 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
8673 (init_extended_remote_ops): Initialize to_follow_fork.
8674
8675 2015-05-12 Don Breazeal <donb@codesourcery.com>
8676
8677 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
8678 from static to extern.
8679 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
8680 * remote.c (anonymous enum): <PACKET_fork_event_feature,
8681 * PACKET_vfork_event_feature>: New enumeration constants.
8682 (remote_protocol_features): Add table entries for new packets.
8683 (remote_query_supported): Add new feature queries to qSupported
8684 packet.
8685
8686 2015-05-12 Gary Benson <gbenson@redhat.com>
8687
8688 * remote.c (remote_add_inferior): Call exec_file_locate_attach
8689 for fake PIDs as well as real ones.
8690 (remote_pid_to_exec_file): Send empty annex if PID is fake.
8691
8692 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
8693
8694 * NEWS (Python Scripting): Mention the new gdb.Value methods.
8695 * python/py-value.c (valpy_reference_value): New function.
8696 (valpy_const_value): Likewise.
8697 (value_object_methods): Add new methods.
8698 * value.c (make_cv_value): New function.
8699 * value.h (make_cv_value): Declare.
8700
8701 2015-05-08 Yao Qi <yao@codesourcery.com>
8702 Sandra Loosemore <sandra@codesourcery.com>
8703
8704 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
8705 to 'lh->include_dirs' before accessing to it.
8706 (psymtab_include_file_name): Likewise.
8707 (dwarf_decode_lines_1): Likewise.
8708 (dwarf_decode_lines): Likewise.
8709 (file_file_name): Likewise.
8710
8711 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8712
8713 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
8714 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
8715 (nios2_linux_rt_sigreturn_init): Adjust base address of
8716 register save area.
8717
8718 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
8719
8720 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
8721 "trap 31" as the breakpoint instruction on all targets.
8722
8723 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8724
8725 * infcmd.c (print_return_value): Remove unused declaration.
8726
8727 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8728
8729 * dwarf2read.c (attr_to_dynamic_prop)
8730 <DW_AT_data_member_location>: Use read_type_die isntead of
8731 get_die_type.
8732
8733 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8734
8735 * ada-lang.c (ada_convert_actual): Add handling of formals
8736 passed inside an aligner type.
8737
8738 2015-05-08 Joel Brobecker <brobecker@adacore.com>
8739
8740 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
8741
8742 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
8743
8744 PR python/18291
8745 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
8746 Print xmethod matcher status.
8747
8748 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
8749
8750 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
8751 register in the regcache when treating the PSWM register, and vice
8752 versa.
8753
8754 2015-05-07 Gary Benson <gbenson@redhat.com>
8755
8756 * linux-thread-db.c (struct thread_db_info)
8757 <td_ta_map_id2thr_p>: Remove field.
8758 (try_thread_db_load_1): Remove initialization for the above.
8759
8760 2015-05-07 Gary Benson <gbenson@redhat.com>
8761
8762 * linux-thread-db.c (struct thread_db_info)
8763 <td_thr_validate_p>: Remove field.
8764 (try_thread_db_load_1): Remove initialization for the above.
8765
8766 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8767
8768 * compile/compile-object-load.c (compile_object_load): Support
8769 mst_text_gnu_ifunc.
8770
8771 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
8772
8773 * compile/compile.c (compile_to_object): Make the cmd_string parameter
8774 const. Use new variables for the const compatibility.
8775 (eval_compile_command): Make the cmd_string parameter const.
8776 * compile/compile.h (eval_compile_command): Make the cmd_string
8777 parameter const.
8778
8779 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8780
8781 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
8782 comment.
8783 * top.c (deprecated_init_ui_hook): Delete.
8784 (gdb_init): Remove handling of deprecated_init_ui_hook.
8785 * interps.c (clear_interpreter_hooks): Remove handling of
8786 deprecated_init_ui_hook.
8787 * main.c (captured_main): Update comment.
8788
8789 2015-05-06 Joel Brobecker <brobecker@adacore.com>
8790
8791 * solib.c (_initialize_solib): Add "info dll" alias creation.
8792 * windows-nat.c (set_windows_aliases): Delete.
8793 (_initialize_windows_nat): Remove deprecated_init_ui_hook
8794 assignment.
8795 * NEWS: Add news entry about "info dll" now being available
8796 on all platforms.
8797
8798 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8799
8800 * ada-lang.c (value_assign_to_component): Reformat and improve
8801 documentation. Remove all trailing spaces.
8802
8803 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8804
8805 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
8806 Stop counting inlined frames as soon as an out-of-line function
8807 is found.
8808
8809 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
8810
8811 * dwarf2read.c (inherit_abstract_dies): Skip
8812 DW_TAG_GNU_call_site dies while inheriting children of an
8813 abstract DIE into a scope.
8814 (read_lexical_block_scope): Inherit abstract DIE's for
8815 lexical scopes.
8816
8817 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8818
8819 * ada-valprint.c (val_print_packed_array_elements): Delete
8820 variable "len". Add a type-length check when comparing two
8821 consecutive elements of the array. Use the element's actual
8822 length in call to value_contents_eq.
8823 * ada-lang.c (ada_value_primitive_packed_val): Always return
8824 a value whose type has been resolved.
8825
8826 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8827
8828 * ada-lang.c (ada_value_primitive_packed_val): Recompute
8829 BIT_SIZE and LEN if the size of the resolved type is smaller
8830 than BIT_SIZE * HOST_CHAR_BIT.
8831
8832 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8833
8834 * ada-lang.c (ada_value_primitive_packed_val): Use a more
8835 correct address in call to value_at. Adjust call to
8836 value_address accordingly.
8837
8838 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8839
8840 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
8841 to print it.
8842
8843 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8844
8845 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
8846 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
8847 pinfo->valaddr.
8848 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
8849 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
8850 (resolve_dynamic_type_internal): Set pinfo.valaddr.
8851 Add handling of addr_stack->valaddr.
8852 (resolve_dynamic_type): Add "valaddr" parameter.
8853 Set pinfo.valaddr field.
8854 * ada-lang.c (ada_discrete_type_high_bound): Update call to
8855 resolve_dynamic_type.
8856 (ada_discrete_type_low_bound): Likewise.
8857 * findvar.c (default_read_var_value): Likewise.
8858 * value.c (value_from_contents_and_address): Likewise.
8859
8860 2015-05-05 Joel Brobecker <brobecker@adacore.com>
8861
8862 * gdbtypes.c (resolve_dynamic_array): Use
8863 create_array_type_with_stride instead of create_array_type.
8864
8865 2015-04-30 DJ Delorie <dj@redhat.com>
8866
8867 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
8868 rl78_decode_opcode
8869
8870 2015-04-29 Doug Evans <dje@google.com>
8871
8872 PR python/18285
8873 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
8874 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
8875 EVAL_AVOID_SIDE_EFFECTS for xmethods.
8876 * extension-priv.h (struct extension_language_ops)
8877 <get_xmethod_result_type>: New member.
8878 * extension.c (get_xmethod_result_type): New function.
8879 * extension.h (get_xmethod_result_type): Declare.
8880 * python/py-xmethods.c (get_result_type_method_name): New static
8881 global.
8882 (py_get_result_type_method_name): Ditto.
8883 (gdbpy_get_xmethod_result_type): New function.
8884 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
8885 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
8886 * python/python.c (python_extension_ops): Add
8887 gdbpy_get_xmethod_result_type.
8888 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
8889 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
8890 xmethods.
8891 (value_x_unop): Ditto.
8892 * value.c (result_type_of_xmethod): New function.
8893 * value.h (result_type_of_xmethod): Declare.
8894
8895 2015-04-29 Gary Benson <gbenson@redhat.com>
8896
8897 * solib.c (solib_find_1): Allow fd argument to be NULL.
8898 (exec_file_find): Update comment.
8899 (solib_find): Likewise.
8900 * exec.c (exec_file_locate_attach): Use NULL as fd
8901 argument to exec_file_find to avoid having to close
8902 the opened file.
8903 * infrun.c (follow_exec): Likewise.
8904
8905 2015-04-28 Doug Evans <dje@google.com>
8906
8907 PR python/18299
8908 * python/lib/gdb/printing.py (register_pretty_printer): Handle
8909 name or __name__ attributes. Handle gdb module as first argument.
8910
8911 2015-04-28 Doug Evans <dje@google.com>
8912
8913 PR python/18089
8914 * python/py-prettyprint.c (print_children): Verify result of children
8915 iterator. Provide better error message.
8916 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
8917 * python/python.c (gdbpy_print_python_errors_p): New function.
8918
8919 2015-04-28 Doug Evans <dje@google.com>
8920
8921 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
8922
8923 2015-04-28 Sasha Smundak <asmundak@google.com>
8924
8925 * NEWS: Mention gdb.Type.optimized_out method.
8926 * python/py-type.c (typy_optimized_out): New function.
8927
8928 2015-04-28 John Baldwin <jhb@FreeBSD.org>
8929
8930 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
8931
8932 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8933
8934 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
8935 (initialize_utils): Move call of init_page_info() to ...
8936 * top.c (gdb_init): ... here.
8937
8938 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8939
8940 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
8941 (tui_sigwinch_handler): Still update our idea of
8942 the terminal's width and height even when TUI is not active.
8943
8944 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8945
8946 * utils.h (set_screen_width_and_height): Declare.
8947 * utils.c (set_screen_width_and_height): Define.
8948 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8949
8950 2015-04-28 Gary Benson <gbenson@redhat.com>
8951
8952 * infrun.c (solist.h): New include.
8953 (follow_exec): Use exec_file_find to prefix execd_pathname
8954 with gdb_sysroot.
8955
8956 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8957
8958 * tui/tui-source.c (tui_set_source_content): Avoid calling
8959 strcpy() when offset is 0.
8960
8961 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8962
8963 PR gdb/18155
8964 * tui/tui-data.c (tui_free_window): Don't free the locator
8965 window when passed an SRC_WIN or a DISASSEM_WIN.
8966
8967 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8968
8969 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8970 (tui_win_content): Move declaration.
8971 (struct tui_gen_win_info): Give 'content' field the
8972 type tui_win_content.
8973 * tui/tui-data.c (init_content_element): Remove redundant and
8974 erroneous casts.
8975 (tui_add_content_elements): Remove erroneous cast.
8976 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8977 casts.
8978 (tui_get_begin_asm_address): Likewise.
8979 * tui/tui-regs.c (tui_show_registers): Likewise.
8980 (tui_show_register_group): Likewise.
8981 (tui_display_registers_from): Likewise.
8982 (tui_check_register_values): Likewise.
8983 * tui/tui-source.c (tui_set_source_content): Likewise.
8984 (tui_set_source_content_nil): Likewise.
8985 (tui_source_is_displayed): Likewise.
8986 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8987 (tui_set_locator_fullname): Likewise.
8988 (tui_set_locator_info): Likewise.
8989 (tui_show_frame_info): Likewise.
8990 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8991 (tui_show_source_line): Likewise.
8992 (tui_horizontal_source_scroll): Likewise.
8993 (tui_update_breakpoint_info): Likewise.
8994 (tui_set_exec_info_content): Likewise.
8995 (tui_show_exec_info_content): Likewise.
8996 (tui_alloc_source_buffer): Likewise.
8997 (tui_line_is_displayed): Likewise.
8998 (tui_addr_is_displayed): Likewise.
8999
9000 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9001
9002 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
9003 event if PL_FLAG_EXEC is set.
9004 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
9005 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
9006 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
9007 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
9008 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
9009
9010 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9011
9012 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
9013 [TDP_RFPPWAIT] New variable fbsd_pending_children.
9014 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
9015 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
9016 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
9017 [PT_LWPINFO] (fbsd_wait): New function.
9018 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
9019 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
9020 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
9021 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
9022 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
9023 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
9024 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
9025 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
9026 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
9027 "fbsd_wait".
9028 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
9029 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
9030 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
9031 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
9032 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
9033 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
9034 Set "to_post_attach" to "fbsd_post_attach".
9035
9036 2015-04-27 John Baldwin <jhb@FreeBSD.org>
9037
9038 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
9039 (fbsd_find_memory_regions): Mark static.
9040 (fbsd_nat_add_target): New function.
9041 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
9042 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
9043 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
9044 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
9045 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
9046 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
9047
9048 2015-04-27 Gary Benson <gbenson@redhat.com>
9049
9050 * objfiles.c (allocate_objfile): Do not attempt to expand name
9051 if name is a "target:" filename.
9052 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
9053 to load auto-load scripts for objfiles with "target:" filenames.
9054
9055 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9056
9057 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
9058 (enum s390_vector_abi_kind): New enum.
9059 (struct gdbarch_tdep)<vector_abi>: New field.
9060 (s390_effective_inner_type): Add parameter min_size. Stop
9061 unwrapping if the inner type is smaller than min_size.
9062 (s390_function_arg_float): Adjust call to
9063 s390_effective_inner_type.
9064 (s390_function_arg_vector): New function.
9065 (s390_function_arg_integer): Adjust comment.
9066 (struct s390_arg_state)<vr>: New field.
9067 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
9068 arguments according to vector ABI when appropriate.
9069 (s390_push_dummy_call): Initialize the argument state's field
9070 'vr'. Adjust calls to s390_handle_arg.
9071 (s390_register_return_value): Handle vector return values.
9072 (s390_return_value): Apply the "register" return value convention
9073 to a vector when appropriate.
9074 (s390_gdbarch_init): Initialize tdep->vector_abi.
9075 * NEWS: Announce S390 vector ABI support.
9076
9077 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9078
9079 * s390-linux-tdep.c (s390_return_value_convention): Remove
9080 function. Inline its logic...
9081 (s390_return_value): ...here. Instead, move the handling of the
9082 "register" return value convention...
9083 (s390_register_return_value): ...here. New function.
9084
9085 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9086
9087 * s390-linux-tdep.c
9088 (is_float_singleton): Remove function. Move the "singleton" part
9089 of the logic...
9090 (s390_effective_inner_type): ...here. New function.
9091 (is_float_like): Remove function. Inline its logic...
9092 (s390_function_arg_float): ...here.
9093 (is_pointer_like, is_integer_like, is_struct_like): Remove
9094 functions. Inline their logic...
9095 (s390_function_arg_integer): ...here.
9096 (s390_function_arg_pass_by_reference): Remove function.
9097 (extend_simple_arg): Remove function.
9098 (alignment_of): Remove function.
9099 (struct s390_arg_state): New structure.
9100 (s390_handle_arg): New function.
9101 (s390_push_dummy_call): Move parameter placement logic to the new
9102 function s390_handle_arg. Call it for calculating the stack area
9103 sizes first, and again for actually writing the parameters.
9104
9105 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9106
9107 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
9108 false if the argument is zero.
9109
9110 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
9111
9112 * ada-lang.c (template_to_static_fixed_type): Return input type
9113 when it is already fixed. Cache the input type itself when not
9114 creating a static fixed copy. Make it explicit that we never
9115 molestate the input type.
9116 * gdbtypes.c (resolve_dynamic_struct): Reset the
9117 TYPE_TARGET_TYPE field for resolved copies.
9118
9119 2015-04-27 Joel Brobecker <brobecker@adacore.com>
9120
9121 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
9122 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
9123 (template_to_static_fixed_type): Call ada_check_typedef only
9124 when necessary.
9125
9126 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9127
9128 * cli/cli-dump.c (srec_dump_command): Add internationalization
9129 mark ups.
9130 (ihex_dump_command): Likewise.
9131 (tekhex_dump_command): Likewise.
9132 (binary_dump_command): Likewise.
9133 (binary_append_command): Likewise.
9134
9135 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
9136
9137 * cli/cli-dump.c (verilog_cmdlist): New variable.
9138 (dump_verilog_memory): New function.
9139 (dump_verilog_value): New function.
9140 (verilog_dump_command): New function.
9141 (_initialize_cli_dump): Add new commands to support verilog dump
9142 format.
9143 * NEWS: Add entry for "dump verilog".
9144
9145 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
9146
9147 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
9148 descriptive type when there is none.
9149
9150 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
9151
9152 * tui/tui-win.c (tui_async_resize_screen): Call
9153 rl_resize_terminal().
9154
9155 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9156
9157 * windows-nat.c (handle_output_debug_string): Don't change
9158 current_event.dwThreadId.
9159 (get_windows_debug_event): Use thread_id, rather than relying on
9160 current_event.dwThreadId being changed.
9161
9162 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
9163
9164 * windows-nat.c (windows_continue): Report an error if
9165 ContinueDebugEvent() fails.
9166
9167 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9168
9169 * windows-nat.c (windows_resume): Fix misspelling in debug output.
9170
9171 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9172
9173 * windows-nat.c (get_windows_debug_event): Replace retval with
9174 thread_id throughout. Update stale comment.
9175
9176 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
9177
9178 * windows-nat.c (get_windows_debug_event): Don't use ternary
9179 conditional operator.
9180
9181 2015-04-21 Pierre Muller <muller@sourceware.org>
9182
9183 PR pascal/17815
9184 p-exp.y (yylex): Reorganize code to return the matched pattern
9185 for a field of this.
9186
9187 2015-04-21 Gary Benson <gbenson@redhat.com>
9188
9189 * common/fileio.h (fileio_to_host_openflags): New declaration.
9190 * common/fileio.c (fcntl.h): New include.
9191 (fileio_to_host_openflags): New function, factored out from...
9192 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
9193 Single use updated.
9194
9195 2015-04-21 Kevin Buettner <kevinb@redhat.com>
9196
9197 * rl78-tdep.c (RL78_SP_ADDR): Define.
9198 (opc_reg_to_gdb_regnum): New static function.
9199 (rl78_analyze_prologue): Recognize instructions forming slightly
9200 more interesting prologues.
9201
9202 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9203
9204 Revert:
9205 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9206 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9207 TYPE_CODE_REF types so that they are not considered as dynamic
9208 depending on the referenced type.
9209 (resolve_dynamic_type_internal): Likewise.
9210
9211 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
9212
9213 Revert:
9214 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9215 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9216 "top_level" parameter.
9217 (resolve_dynamic_type_internal): Remove the unused "top_level"
9218 parameter. Update call to is_dynamic_type_internal.
9219 (is_dynamic_type): Update call to is_dynamic_type_internal.
9220 (resolve_dynamic_range): Update call to
9221 resolve_dynamic_type_internal.
9222 (resolve_dynamic_union): Likewise.
9223 (resolve_dynamic_struct): Likewise.
9224 (resolve_dynamic_type): Likewise.
9225
9226 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
9227
9228 * breakpoint.c (update_dprintf_command_list): Remove duplicated
9229 xmalloc.
9230
9231 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
9232
9233 * reply_mig_hack.awk: Robustify parsing.
9234
9235 * reply_mig_hack.awk: Don't bother to declare an intermediate
9236 function pointer variable.
9237
9238 2015-04-17 Doug Evans <dje@google.com>
9239
9240 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
9241 to "exec_displacement" to avoid confusion with inner use of the name.
9242
9243 2015-04-17 Pedro Alves <palves@redhat.com>
9244
9245 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
9246 if HW point of TYPE isn't supported.
9247
9248 2015-04-17 Yao Qi <yao.qi@linaro.org>
9249 Pedro Alves <palves@redhat.com>
9250
9251 * target.h (target_can_use_hardware_watchpoint): Update comments.
9252 Remove trailing ";".
9253
9254 2015-04-17 Gary Benson <gbenson@redhat.com>
9255
9256 * remote.c (remote_add_inferior): New argument try_open_exec.
9257 If nonzero, attempt to open the inferior's executable file as
9258 the main executable if no main executable is open already.
9259 All callers updated.
9260 * NEWS: Mention that GDB now supports automatic location and
9261 retrieval of executable + files from remote targets.
9262
9263 2015-04-17 Gary Benson <gbenson@redhat.com>
9264
9265 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
9266 * remote.c (PACKET_qXfer_exec_file): Likewise.
9267 (remote_protocol_features): Register the
9268 "qXfer:exec-file:read" feature.
9269 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
9270 (remote_pid_to_exec_file): New function.
9271 (init_remote_ops): Initialize to_pid_to_exec_file.
9272 (_initialize_remote): Register new "set/show remote
9273 pid-to-exec-file-packet" command.
9274 * NEWS: Announce new qXfer:exec-file:read packet.
9275
9276 2015-04-17 Gary Benson <gbenson@redhat.com>
9277
9278 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
9279 New declaration.
9280 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
9281 New function, factored out from...
9282 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
9283
9284 2015-04-17 Gary Benson <gbenson@redhat.com>
9285
9286 * exec.c (solist.h): New include.
9287 (exec_file_locate_attach): Prefix absolute executable
9288 paths with gdb_sysroot if set.
9289 * NEWS: Mention that executable paths may be prepended
9290 with sysroot.
9291
9292 2015-04-17 Gary Benson <gbenson@redhat.com>
9293
9294 * solist.h (exec_file_find): New declaration.
9295 * solib.c (solib_find_1): New function, factored out from...
9296 (solib_find): ...here.
9297 (exec_file_find): New function.
9298
9299 2015-04-17 Gary Benson <gbenson@redhat.com>
9300
9301 * gdbcore.h (exec_file_locate_attach): New declaration.
9302 * exec.c (exec_file_locate_attach): New function, factored
9303 out from...
9304 * infcmd.c (attach_command_post_wait): ...here.
9305
9306 2015-04-17 Mike Frysinger <vapier@gentoo.org>
9307
9308 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
9309
9310 2015-04-16 Yao Qi <yao.qi@linaro.org>
9311
9312 * infrun.c (maybe_software_singlestep): Declare.
9313 (displaced_step_fixup): Call maybe_software_singlestep.
9314
9315 2015-04-15 Doug Evans <dje@google.com>
9316
9317 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
9318
9319 2015-04-15 Doug Evans <dje@google.com>
9320
9321 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
9322
9323 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
9324
9325 * python/lib/gdb/command/unwinders.py: Add parentheses.
9326
9327 2015-04-15 Yao Qi <yao.qi@linaro.org>
9328
9329 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
9330
9331 2015-04-15 Yao Qi <yao.qi@linaro.org>
9332
9333 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
9334
9335 2015-04-15 Yao Qi <yao.qi@linaro.org>
9336
9337 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
9338 dsc->insn_size instead of 4.
9339
9340 2015-04-14 Gary Benson <gbenson@redhat.com>
9341
9342 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
9343 * minidebug.c (lzma_stat): Likewise.
9344 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
9345 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
9346
9347 2015-04-13 Stan Shebs <stanshebs@google.com>
9348
9349 * MAINTAINERS: Update my email address.
9350
9351 2015-04-13 John Baldwin <jhb@FreeBSD.org>
9352
9353 * amd64-tdep.c (amd64_target_description): New function.
9354 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
9355 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
9356 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9357 x86 extended save area.
9358 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9359 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
9360 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
9361 (_initialize_amd64fbsd_nat): Set "to_read_description" to
9362 "amd64fbsd_read_description".
9363 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
9364 (amd64fbsd_supply_xstateregset): New function.
9365 (amd64fbsd_collect_xstateregset): New function.
9366 Add "amd64fbsd_xstateregset".
9367 (amd64fbsd_iterate_over_regset_sections): New function.
9368 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
9369 "I386_FBSD_XSAVE_XCR0_OFFSET".
9370 Add "iterate_over_regset_sections" gdbarch method.
9371 Add "core_read_description" gdbarch method.
9372 * i386-tdep.c (i386_target_description): New function.
9373 * i386-tdep.h: Export i386_target_description and tdesc_i386.
9374 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
9375 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
9376 x86 extended save area.
9377 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
9378 * i386bsd-nat.h: Export i386bsd_xsave_len.
9379 * i386fbsd-nat.c (i386fbsd_read_description): New function.
9380 (_initialize_i386fbsd_nat): Set "to_read_description" to
9381 "i386fbsd_read_description".
9382 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
9383 (i386fbsd_core_read_description): New function.
9384 (i386fbsd_supply_xstateregset): New function.
9385 (i386fbsd_collect_xstateregset): New function.
9386 Add "i386fbsd_xstateregset".
9387 (i386fbsd_iterate_over_regset_sections): New function.
9388 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
9389 "I386_FBSD_XSAVE_XCR0_OFFSET".
9390 Add "iterate_over_regset_sections" gdbarch method.
9391 Add "core_read_description" gdbarch method.
9392 * i386fbsd-tdep.h: New file.
9393
9394 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9395
9396 * NEWS (Changes since GDB 7.9): Add removed -xdb.
9397 * breakpoint.c (command_line_is_silent): Remove xdb_commands
9398 conditional.
9399 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
9400 and lb.
9401 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
9402 va.
9403 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
9404 conditional.
9405 * defs.h (xdb_commands): Remove declaration.
9406 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
9407 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
9408 * infcmd.c (run_no_args_command, go_command): Remove.
9409 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
9410 * infrun.c (xdb_handle_command): Remove.
9411 (_initialize_infrun): Remove xdb_commands for lz and z.
9412 * main.c (xdb_commands): Remove variable.
9413 (captured_main): Remove "xdb" from long_options.
9414 (print_gdb_help): Remove --xdb from help.
9415 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
9416 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
9417 * stack.c (backtrace_full_command, args_plus_locals_info)
9418 (current_frame_command): Remove.
9419 (_initialize_stack): Remove xdb_commands for t, T and l.
9420 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
9421 * thread.c (_initialize_thread): Remove xdb_commands condition.
9422 * tui/tui-layout.c (tui_toggle_layout_command)
9423 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
9424 (_initialize_tui_layout): Remove xdb_commands for td and ts.
9425 * tui/tui-regs.c (tui_scroll_regs_forward_command)
9426 (tui_scroll_regs_backward_command): Remove.
9427 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
9428 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
9429 (_initialize_tui_win): Remove xdb_commands for U and w.
9430 * utils.c (pagination_on_command, pagination_off_command): Remove.
9431 (initialize_utils): Remove xdb_commands for am and sm.
9432
9433 2015-04-10 Pedro Alves <palves@redhat.com>
9434
9435 * infrun.c (displaced_step_fixup): Switch to the event ptid
9436 earlier. If the thread stopped for a watchpoint and the
9437 target/arch has non-continuable watchpoints, cancel the displaced
9438 step.
9439 (resume): Don't start a displaced step if in-line step-over info
9440 is valid.
9441
9442 2015-04-10 Pedro Alves <palves@redhat.com>
9443
9444 * infrun.c (displaced_step_in_progress): New function.
9445 (do_target_resume): Advise target to report all signals if
9446 displaced stepping.
9447
9448 2015-04-10 Pedro Alves <palves@redhat.com>
9449
9450 PR gdb/18216
9451 * infrun.c (process_event_stop_test): Don't assume a step-resume
9452 is set if tp->stepped_breakpoint is true.
9453
9454 2015-04-10 Yao Qi <yao.qi@linaro.org>
9455
9456 * arm-tdep.c (install_alu_reg): Update comment.
9457 (thumb_copy_alu_reg): Remove local variable rn. Update
9458 debugging message. Use r2 instead of r1 in the modified
9459 instruction.
9460
9461 2015-04-10 Pedro Alves <palves@redhat.com>
9462
9463 PR gdb/13858
9464 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
9465 linux_displaced_step_location as gdbarch_displaced_step_location
9466 hook.
9467 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
9468 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
9469 * linux-tdep.c (linux_displaced_step_location): New function,
9470 based on ppc_linux_displaced_step_location.
9471 * linux-tdep.h (linux_displaced_step_location): New declaration.
9472 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
9473 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
9474 Delete.
9475 (ppc_linux_init_abi): Install linux_displaced_step_location as
9476 gdbarch_displaced_step_location hook, even without Cell/B.E..
9477 (_initialize_ppc_linux_tdep): Don't install
9478 ppc_linux_inferior_created as inferior_created observer.
9479 * s390-linux-tdep.c (s390_gdbarch_init): Install
9480 linux_displaced_step_location as gdbarch_displaced_step_location
9481 hook.
9482
9483 2015-04-09 Gary Benson <gbenson@redhat.com>
9484
9485 * common/common-remote-fileio.h: Rename to...
9486 * common/fileio.h: ...this. Update all references.
9487 (remote_fileio_to_fio_error): Rename to...
9488 (host_to_fileio_error): ...this.
9489 (remote_fileio_to_be): Rename to...
9490 (host_to_bigendian): ...this. Update all callers.
9491 (remote_fileio_to_fio_uint): Rename to...
9492 (host_to_fileio_uint): ...this. Update all callers.
9493 (remote_fileio_to_fio_time): Rename to...
9494 (host_to_fileio_time): ...this. Update all callers.
9495 (remote_fileio_to_fio_stat): Rename to...
9496 (host_to_fileio_stat): ...this.
9497 Update all references.
9498 * common/common-remote-fileio.c: Rename to...
9499 * common/fileio.c: ...this. Update all references.
9500 (remote_fileio_to_fio_error): Rename to...
9501 (host_to_fileio_error): ...this. Update all callers.
9502 (remote_fileio_mode_to_target): Rename to...
9503 (fileio_mode_pack): ...this. Update all callers.
9504 (remote_fileio_to_fio_mode): Rename to...
9505 (host_to_fileio_mode): ...this. Update all callers.
9506 (remote_fileio_to_fio_ulong): Rename to...
9507 (host_to_fileio_ulong): ...this. Update all callers.
9508 (remote_fileio_to_fio_stat): Rename to...
9509 (host_to_fileio_stat): ...this. Update all callers.
9510
9511 2015-04-09 Andy Wingo <wingo@igalia.com>
9512
9513 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
9514 (frame_functions): Bind gdbscm_frame_read_register to
9515 frame-read-register.
9516 * guile/lib/gdb.scm (frame-read-register): Export.
9517
9518 2015-04-09 Gary Benson <gbenson@redhat.com>
9519
9520 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
9521 New declaration.
9522 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
9523 New function, factored out the named functions below.
9524 * inf-child.c (gdb/fileio.h): Remove include.
9525 (common-remote-fileio.h): New include.
9526 (inf_child_errno_to_fileio_error): Remove function. Update
9527 all callers to use remote_fileio_to_fio_error.
9528 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
9529
9530 2015-04-09 Andy Wingo <wingo@igalia.com>
9531
9532 * MAINTAINERS (Write After Approval): Add Andy Wingo.
9533
9534 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
9535
9536 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
9537 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
9538 * configure: Regenerated.
9539
9540 2015-04-09 Pedro Alves <palves@redhat.com>
9541
9542 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
9543 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
9544 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
9545 * gnulib/import/Makefile.am: Update.
9546 * gnulib/import/Makefile.in: Update.
9547 * gnulib/import/m4/gnulib-cache.m4: Update.
9548 * gnulib/import/m4/gnulib-comp.m4: Update.
9549 * gnulib/import/m4/strtok_r.m4: New file.
9550 * gnulib/import/strtok_r.c: New file.
9551
9552 2015-04-09 Pedro Alves <palves@redhat.com>
9553
9554 * gnulib/update-gnulib.sh (aclocal version check): Filter out
9555 "called too early to check prototype".
9556
9557 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
9558
9559 PR python/16699
9560 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
9561 use a caching mechanism. Adjust comments and code to reflect
9562 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
9563 (cmdpy_completer_handle_brkchars): Adjust call to
9564 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
9565 (cmdpy_completer): Likewise.
9566
9567 2015-04-08 Yao Qi <yao.qi@linaro.org>
9568
9569 * spu-tdep.c (spu_gdbarch_init): Don't call
9570 set_gdbarch_cannot_step_breakpoint.
9571
9572 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
9573
9574 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
9575
9576 2015-04-07 Pedro Alves <palves@redhat.com>
9577
9578 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
9579 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
9580 (delete_exited_threads): New declaration.
9581 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
9582 * linux-nat.c (linux_nat_update_thread_list): New function.
9583 (linux_nat_add_target): Install it.
9584 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
9585 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
9586 (delete_exited_threads): New function.
9587
9588 2015-04-07 Pedro Alves <pedro@codesourcery.com>
9589
9590 * infrun.c (resume) <displaced stepping debug output>: Get the
9591 leader thread's regcache, not resume_ptid's.
9592
9593 2015-04-06 Doug Evans <xdje42@gmail.com>
9594
9595 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
9596 VAR_DOMAIN.
9597 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
9598 Include symbol domain in debugging output.
9599
9600 2015-04-06 Pedro Alves <palves@redhat.com>
9601 Bernd Edlinger <bernd.edlinger@hotmail.de>
9602
9603 * configure.ac: Remove the mingw32-specific stub-termcap.o
9604 fallback, and instead fallback to the stub termcap on all hosts.
9605 * configure: Regenerate.
9606 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
9607 symbols.
9608
9609 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9610
9611 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
9612 "top_level" parameter.
9613 (resolve_dynamic_type_internal): Remove the unused "top_level"
9614 parameter. Update call to is_dynamic_type_internal.
9615 (is_dynamic_type): Update call to is_dynamic_type_internal.
9616 (resolve_dynamic_range): Update call to
9617 resolve_dynamic_type_internal.
9618 (resolve_dynamic_union): Likewise.
9619 (resolve_dynamic_struct): Likewise.
9620 (resolve_dynamic_type): Likewise.
9621
9622 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
9623
9624 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
9625 TYPE_CODE_REF types so that they are not considered as dynamic
9626 depending on the referenced type.
9627 (resolve_dynamic_type_internal): Likewise.
9628
9629 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
9630
9631 * Makefile.in (top_srcdir): New.
9632 * configure: Regenerated.
9633
9634 2015-04-02 Gary Benson <gbenson@redhat.com>
9635
9636 * NEWS: Announce the new default sysroot of "target:".
9637
9638 2015-04-02 Gary Benson <gbenson@redhat.com>
9639
9640 * main.c (captured_main): Set gdb_sysroot to "target:"
9641 if not otherwise set.
9642
9643 2015-04-02 Gary Benson <gbenson@redhat.com>
9644
9645 * exec.c (exec_file_attach): Support "target:" filenames.
9646
9647 2015-04-02 Gary Benson <gbenson@redhat.com>
9648
9649 * solib.c (solib_find): Strip "target:" prefix from sysroot
9650 if accessing local files.
9651
9652 2015-04-02 Gary Benson <gbenson@redhat.com>
9653
9654 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
9655 checks and error messages.
9656
9657 2015-04-02 Gary Benson <gbenson@redhat.com>
9658
9659 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
9660 (remote_filename_p): Remove declaration.
9661 (remote_bfd_open): Likewise.
9662 * remote.c (remote_bfd_iovec_open): Remove function.
9663 (remote_bfd_iovec_close): Likewise.
9664 (remote_bfd_iovec_pread): Likewise.
9665 (remote_bfd_iovec_stat): Likewise.
9666 (remote_filename_p): Likewise.
9667 (remote_bfd_open): Likewise.
9668 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
9669 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
9670 (gdb_bfd_open_maybe_remote): Remove function.
9671 (symfile_bfd_open): Replace remote filename check with
9672 target filename check.
9673 (reread_symbols): Use gdb_bfd_open.
9674 * build-id.c (gdbcore.h): New include.
9675 (build_id_to_debug_bfd): Use gdb_bfd_open.
9676 * infcmd.c (attach_command_post_wait): Remove remote filename
9677 check.
9678 * solib.c (solib_find): Replace remote-specific handling with
9679 target-specific handling. Update comments where necessary.
9680 (solib_bfd_open): Replace remote-specific handling with
9681 target-specific handling.
9682 (gdb_sysroot_changed): New function.
9683 (_initialize_solib): Call the above when gdb_sysroot changes.
9684 * windows-tdep.c (gdbcore.h): New include.
9685 (windows_xfer_shared_library): Use gdb_bfd_open.
9686
9687 2015-04-02 Gary Benson <gbenson@redhat.com>
9688
9689 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
9690 (is_target_filename): New declaration.
9691 (gdb_bfd_has_target_filename): Likewise.
9692 (gdb_bfd_open): Update documentation comment.
9693 * gdb_bfd.c (target.h): New include.
9694 (gdb/fileio.h): Likewise.
9695 (is_target_filename): New function.
9696 (gdb_bfd_has_target_filename): Likewise.
9697 (fileio_errno_to_host): Likewise.
9698 (gdb_bfd_iovec_fileio_open): Likewise.
9699 (gdb_bfd_iovec_fileio_pread): Likewise.
9700 (gdb_bfd_iovec_fileio_close): Likewise.
9701 (gdb_bfd_iovec_fileio_fstat): Likewise.
9702 (gdb_bfd_open): Use target fileio to access paths prefixed
9703 with "target:" where necessary.
9704
9705 2015-04-02 Gary Benson <gbenson@redhat.com>
9706
9707 * target.h (struct target_ops) <to_filesystem_is_local>:
9708 New field.
9709 (target_filesystem_is_local): New macro.
9710 * target-delegates.c: Regenerate.
9711 * remote.c (remote_filesystem_is_local): New function.
9712 (init_remote_ops): Initialize to_filesystem_is_local.
9713
9714 2015-04-02 Gary Benson <gbenson@redhat.com>
9715
9716 * target.h (struct target_ops) <to_fileio_fstat>: New field.
9717 (target_fileio_fstat): New declaration.
9718 * target.c (target_fileio_fstat): New function.
9719 * inf-child.c (inf_child_fileio_fstat): Likewise.
9720 (inf_child_target): Initialize to_fileio_fstat.
9721 * remote.c (init_remote_ops): Likewise.
9722
9723 2015-04-01 Sasha Smundak <asmundak@google.com>
9724
9725 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
9726 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
9727 (py-unwind.o): New recipe.
9728 * NEWS: mention Python frame unwinding.
9729 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
9730 gdb/unwinder.py and gdb/command/unwinder.py
9731 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
9732 list.
9733 (execute_unwinders): New function.
9734 * python/lib/gdb/command/unwinders.py: New file.
9735 * python/lib/gdb/unwinder.py: New file.
9736 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
9737 (objfpy_dealloc): Decrement frame_unwinders reference count.
9738 (objfpy_initialize): Create frame_unwinders list.
9739 (objfpy_get_frame_unwinders): New function.
9740 (objfpy_set_frame_unwinders): Ditto.
9741 (objfile_getset): Add frame_unwinders attribute to Objfile.
9742 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
9743 (pspy_dealloc): Decrement frame_unwinders reference count.
9744 (pspy_initialize): Create frame_unwinders list.
9745 (pspy_get_frame_unwinders): New function.
9746 (pspy_set_frame_unwinders): Ditto.
9747 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
9748 * python/py-unwind.c: New file.
9749 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
9750 (objpy_get_frame_unwinders): New prototype.
9751 (gdbpy_initialize_unwind): New prototype.
9752 * python/python.c (gdbpy_apply_type_printers): Call
9753 gdbpy_initialize_unwind.
9754
9755 2015-04-01 Pedro Alves <palves@redhat.com>
9756
9757 * infrun.c (resume): Check currently_stepping after clearing
9758 stepped_breakpoint, not before.
9759
9760 2015-04-01 Pedro Alves <palves@redhat.com>
9761
9762 * infrun.c (print_target_wait_results): Print all the ptid
9763 elements.
9764
9765 2015-04-01 Pedro Alves <palves@redhat.com>
9766
9767 * infrun.c (keep_going): Also discard cleanups if inserting
9768 breakpoints fails.
9769
9770 2015-04-01 Pedro Alves <palves@redhat.com>
9771
9772 * infrun.c (wait_for_inferior): Install the
9773 finish_thread_state_cleanup cleanup across the whole function, not
9774 just around handle_inferior_event.
9775
9776 2015-04-01 Pedro Alves <palves@redhat.com>
9777
9778 * infrun.c (resume) <step past permanent breakpoint>: Use
9779 do_target_resume.
9780
9781 2015-04-01 Pedro Alves <palves@redhat.com>
9782
9783 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
9784
9785 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
9786
9787 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
9788
9789 2015-04-01 Pedro Alves <palves@redhat.com>
9790
9791 * linux-thread-db.c (record_thread): Readd the thread to gdb's
9792 list if it was marked exited.
9793
9794 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
9795
9796 * configure: Regenerated.
9797
9798 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9799 Jan Kratochvil <jan.kratochvil@redhat.com>
9800 Oleg Nesterov <oleg@redhat.com>
9801
9802 PR corefiles/16092
9803 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
9804 New enum identifying the various options of the coredump_filter
9805 file.
9806 (struct smaps_vmflags): New struct.
9807 (use_coredump_filter): New variable.
9808 (decode_vmflags): New function.
9809 (mapping_is_anonymous_p): Likewise.
9810 (dump_mapping_p): Likewise.
9811 (linux_find_memory_regions_full): New variables
9812 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
9813 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
9814 parsing of its information. Implement memory mapping filtering
9815 based on its contents.
9816 (show_use_coredump_filter): New function.
9817 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
9818 * NEWS: Mention the possibility of using the
9819 '/proc/PID/coredump_filter' file when generating a corefile.
9820 Mention new command 'set use-coredump-filter'.
9821
9822 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
9823
9824 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
9825 read_memory_unsigned_integer.
9826
9827 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
9828
9829 * Makefile.in (ZLIB): New.
9830 (ZLIBINC): Likewise.
9831 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
9832 (CLIBS): Add $(ZLIB).
9833 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
9834 Add -lz to LIBS.
9835 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
9836 * top.c (print_gdb_configuration): Remove --with-zlib and
9837 --without-zlib.
9838 * config.in: Regenerated.
9839 * configure: Likewise.
9840
9841 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
9842
9843 * NEWS: Mention info os cpus support.
9844 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
9845 (struct osdata_type): Add cpus entry, reorder the entries in
9846 alphabetical order.
9847
9848 2015-03-31 Matthias Klose <doko@ubuntu.com>
9849
9850 * compile/compile.c (compile_to_object): Allow triplets with or
9851 without vendor set.
9852
9853 2015-03-30 Doug Evans <dje@google.com>
9854
9855 PR c++/18141
9856 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
9857 klass in VAR_DOMAIN.
9858
9859 2015-03-30 Gary Benson <gbenson@redhat.com>
9860
9861 * remote.c (remote_mourn_1): Remove function. Update all callers
9862 to use remote_mourn.
9863 (extended_remote_mourn_1): Remove function. Update all callers
9864 to use extended_remote_mourn.
9865 (extended_remote_attach_1): Remove function. Update all callers
9866 to use extended_remote_attach.
9867
9868 2015-03-28 James Bowman <james.bowman@ftdichip.com>
9869
9870 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
9871 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
9872 (ALLDEPFILES): Add ft32-tdep.c.
9873 * configure.tgt: Add FT32 entry.
9874 * ft32-tdep.c: New file, FT32 target-dependent code.
9875 * ft32-tdep.h: New file, FT32 target-dependent code.
9876
9877 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9878
9879 Revert:
9880 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9881 Code cleanup.
9882 * printcmd.c (print_command_1): Move expr variable scope.
9883
9884 2015-03-27 Joel Brobecker <brobecker@adacore.com>
9885
9886 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
9887
9888 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
9889
9890 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
9891 sections.
9892
9893 2015-03-26 Joel Brobecker <brobecker@adacore.com>
9894
9895 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
9896 exception raised while parsing the probe arguments.
9897 Force parsing to be done using the C language parser.
9898 * expression.h (parse_expression_with_language): Declare.
9899 * parse.c (parse_expression_with_language): New function.
9900
9901 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
9902
9903 * MAINTAINERS (Write After Approval): Add "Jon Turney".
9904
9905 2015-03-26 Andy Wingo <wingo@igalia.com>
9906
9907 PR symtab/18148
9908 * dwarf2read.c (struct partial_die_info): Add has_const_value
9909 member.
9910 (add_partial_symbol): Don't punt on symbols that have const_value
9911 attributes.
9912 (read_partial_die): Detect DW_AT_const_value.
9913
9914 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9915
9916 Code cleanup.
9917 * printcmd.c (print_command_1): Move expr variable scope.
9918
9919 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9920
9921 Code cleanup.
9922 * printcmd.c (validate_format): Make the parameter cmdname const.
9923
9924 2015-03-26 Don Breazeal <donb@codesourcery.com>
9925
9926 * remote.c (_initialize_remote): Update comment.
9927
9928 2015-03-26 Pedro Alves <palves@redhat.com>
9929 Jon TURNEY <jon.turney@dronecode.org.uk>
9930
9931 * coffread.c (coff_symfile_read): When constructing the name of an
9932 import stub symbol from import symbol for amd64, only skip the
9933 char after _imp_ if the target is underscored (like i386) and the
9934 char is indeed the target's leading char.
9935
9936 2015-03-25 Pedro Alves <palves@redhat.com>
9937
9938 * target.h <to_async>: Replace 'callback' and 'context' parameters
9939 with boolean 'enable' parameter.
9940 (target_async): Replace CALLBACK and CONTEXT parameters with
9941 boolean ENABLE parameter.
9942 * inf-loop.c (inferior_event_handler): Adjust.
9943 * linux-nat.c (linux_nat_attach, linux_nat_resume)
9944 (linux_nat_resume): Adjust.
9945 (async_client_callback, async_client_context): Delete.
9946 (handle_target_event): Call inferior_event_handler directly.
9947 (linux_nat_async): Replace 'callback' and 'context' parameters
9948 with boolean 'enable' parameter. Adjust. Remove references to
9949 async_client_callback and async_client_context.
9950 (linux_nat_close): Adjust.
9951 * record-btrace.c (record_btrace_async): Replace 'callback' and
9952 'context' parameters with boolean 'enable' parameter. Adjust.
9953 (record_btrace_resume): Adjust.
9954 * record-full.c (record_full_async): Replace 'callback' and
9955 'context' parameters with boolean 'enable' parameter. Adjust.
9956 (record_full_resume, record_full_core_resume): Adjust.
9957 * remote.c (struct remote_state) <async_client_callback,
9958 async_client_context>: Delete fields.
9959 (remote_start_remote, extended_remote_attach_1, remote_resume)
9960 (extended_remote_create_inferior): Adjust.
9961 (remote_async_serial_handler): Call inferior_event_handler
9962 directly.
9963 (remote_async): Replace 'callback' and 'context' parameters with
9964 boolean 'enable' parameter. Adjust.
9965 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9966 Adjust.
9967 * target-delegates.c: Regenerate.
9968
9969 2015-03-25 Gary Benson <gbenson@redhat.com>
9970 Pedro Alves <palves@redhat.com>
9971
9972 * target.c (fileio_ft_t): New typedef, define object vector.
9973 (fileio_fhandles): New static variable.
9974 (is_closed_fileio_fh): New macro.
9975 (lowest_closed_fd): New static variable.
9976 (acquire_fileio_fd): New function.
9977 (release_fileio_fd): Likewise.
9978 (fileio_fd_to_fh): New macro.
9979 (target_fileio_open): Wrap the file descriptor on success.
9980 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9981 (target_fileio_pread): Likewise.
9982 (target_fileio_close): Likewise.
9983
9984 2015-03-24 Pedro Alves <palves@redhat.com>
9985
9986 * thread.c (thread_apply_all_command): Take exited threads into
9987 account.
9988
9989 2015-03-24 Pedro Alves <palves@redhat.com>
9990
9991 * infrun.c (resume, proceed): Mention
9992 switch_back_to_stepped_thread, not switch_back_to_stepping.
9993
9994 2015-03-24 Pedro Alves <palves@redhat.com>
9995
9996 * infrun.c (user_visible_resume_ptid): Rewrite going from
9997 most-locked to unlocked instead of the opposite. Move comment ...
9998 * infrun.h (user_visible_resume_ptid): ... here.
9999
10000 2015-03-24 Pedro Alves <palves@redhat.com>
10001
10002 * linux-nat.c (linux_nat_resume): Output debug logs before trying
10003 to resume the event lwp. Use the lwp's ptid instead of the passed
10004 in (maybe wildcard) ptid.
10005 (stop_wait_callback): Tweak debug log output.
10006 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
10007 TRAP_TRACE.
10008 (linux_nat_filter_event): In debug output, distinguish a
10009 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
10010 before trying to resume the lwp.
10011
10012 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10013
10014 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
10015 pointer indirection.
10016 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
10017 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
10018
10019 2015-03-24 Joel Brobecker <brobecker@adacore.com>
10020
10021 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
10022 Renames DYN_ATTR_DATA_LOCATION.
10023 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
10024 DYN_ATTR_DATA_LOCATION.
10025 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
10026 instead of DYN_ATTR_DATA_LOCATION.
10027
10028 2015-03-24 Pedro Alves <palves@redhat.com>
10029
10030 * breakpoint.c (until_break_command): Adjust call to proceed.
10031 * gdbthread.h (struct thread_control_state) <stepping_command>:
10032 New field.
10033 * infcall.c (run_inferior_call): Adjust call to proceed.
10034 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
10035 Adjust calls to proceed.
10036 (set_step_frame): Set the current thread's step_start_function
10037 here.
10038 (step_once): Adjust calls to proceed.
10039 (jump_command, signal_command, until_next_command)
10040 (finish_backward, finish_forward, proceed_after_attach_callback)
10041 (attach_command_post_wait): Adjust calls to proceed.
10042 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
10043 (do_target_resume): New function, factored out from ...
10044 (resume): ... here. Remove 'step' parameter. Instead, check
10045 currently_stepping to determine whether the thread should be
10046 single-stepped.
10047 (proceed): Remove 'step' parameter and don't set the thread's
10048 step_start_function here. Adjust call to 'resume'.
10049 (handle_inferior_event): Adjust calls to 'resume'.
10050 (switch_back_to_stepped_thread): Use do_target_resume instead of
10051 'resume'.
10052 (keep_going): Adjust calls to 'resume'.
10053 * infrun.h (proceed): Remove 'step' parameter.
10054 (resume): Likewise.
10055 * windows-nat.c (do_initial_windows_stuff): Adjust call to
10056 'resume'.
10057 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
10058
10059 2015-03-24 Pedro Alves <palves@redhat.com>
10060
10061 * gdbthread.h (struct thread_control_state) <stepping_command>:
10062 New field.
10063 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
10064 the thread's stepping_command field.
10065 * infrun.c (resume): Check the thread's stepping_command flag to
10066 determine which threads should be resumed. Rename 'entry_step'
10067 local to user_step.
10068 (clear_proceed_status_thread): Clear 'stepping_command'.
10069 (schedlock_applies): Change parameter type to struct thread_info
10070 pointer. Adjust.
10071 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
10072 (switch_back_to_stepped_thread): Adjust calls to
10073 'schedlock_applies'.
10074 (_initialize_infrun): Adjust "set scheduler-locking step" help.
10075
10076 2015-03-24 Pedro Alves <palves@redhat.com>
10077
10078 * infrun.c (step_start_function): Delete and ...
10079 * gdbthread.h (struct thread_control_state) <step_start_function>:
10080 ... now a field here.
10081 * infrun.c (clear_proceed_status_thread): Clear the thread's
10082 step_start_function.
10083 (proceed, process_event_stop_test, print_stop_event): Adjust.
10084
10085 2015-03-24 Pedro Alves <palves@redhat.com>
10086
10087 * infrun.c (proceed): No longer handle negative step.
10088
10089 2015-03-24 Gary Benson <gbenson@redhat.com>
10090
10091 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
10092 (x86_linux_prepare_to_resume): Likewise.
10093 * x86-linux-nat.c (x86_linux_new_thread):
10094 Moved to nat/x86-linux.c.
10095 (x86_linux_prepare_to_resume): Likewise.
10096 * nat/x86-linux.c (x86_linux_new_thread): New function.
10097 (x86_linux_prepare_to_resume): Likewise.
10098
10099 2015-03-24 Gary Benson <gbenson@redhat.com>
10100
10101 * nat/x86-linux-dregs.h: New file.
10102 * nat/x86-linux-dregs.c: Likewise.
10103 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
10104 (x86-linux-dregs.o): New rule.
10105 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
10106 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10107 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
10108 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
10109 (x86_linux_dr_get): Likewise.
10110 (x86_linux_dr_set): Likewise.
10111 (x86_linux_dr_get_addr): Likewise.
10112 (x86_linux_dr_get_control): Likewise.
10113 (x86_linux_dr_get_status): Likewise.
10114 (update_debug_registers_callback): Likewise.
10115 (x86_linux_dr_set_control): Likewise.
10116 (x86_linux_dr_set_addr): Likewise.
10117 (x86_linux_update_debug_registers): Likewise.
10118
10119 2015-03-24 Gary Benson <gbenson@redhat.com>
10120
10121 * x86-linux-nat.c (x86_linux_update_debug_registers):
10122 New function, factored out from...
10123 (x86_linux_prepare_to_resume): ...this.
10124
10125 2015-03-24 Gary Benson <gbenson@redhat.com>
10126
10127 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
10128 (x86_linux_dr_set): Likewise.
10129 (x86_linux_dr_get_addr): Likewise.
10130 (x86_linux_dr_get_control): Likewise.
10131 (x86_linux_dr_get_status): Likewise.
10132 (update_debug_registers_callback): Likewise.
10133 (x86_linux_dr_set_control): Likewise.
10134 (x86_linux_dr_set_addr): Likewise.
10135 (x86_linux_prepare_to_resume): Likewise.
10136 (x86_linux_new_thread): Likewise.
10137
10138 2015-03-24 Gary Benson <gbenson@redhat.com>
10139
10140 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
10141 (x86_linux_new_thread): Rename argument.
10142
10143 2015-03-24 Gary Benson <gbenson@redhat.com>
10144
10145 * nat/x86-linux.h: New file.
10146 * nat/x86-linux.c: Likewise.
10147 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
10148 (x86-linux.o): New rule.
10149 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
10150 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10151 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
10152 (lwp_set_arch_private_info): New declaration.
10153 (lwp_arch_private_info): Likewise.
10154 * linux-nat.c (lwp_set_arch_private_info): New function.
10155 (lwp_arch_private_info): Likewise.
10156 * x86-linux-nat.c: Include nat/x86-linux.h.
10157 (arch_lwp_info): Removed structure.
10158 (update_debug_registers_callback):
10159 Use lwp_set_debug_registers_changed.
10160 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
10161 and lwp_set_debug_registers_changed.
10162 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
10163
10164 2015-03-24 Gary Benson <gbenson@redhat.com>
10165
10166 * nat/linux-nat.h (ptid_of_lwp): New declaration.
10167 (lwp_is_stopped): Likewise.
10168 (lwp_stop_reason): Likewise.
10169 * linux-nat.c (ptid_of_lwp): New function.
10170 (lwp_is_stopped): Likewise.
10171 (lwp_is_stopped_by_watchpoint): Likewise.
10172 * x86-linux-nat.c (update_debug_registers_callback):
10173 Use lwp_is_stopped.
10174 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
10175 lwp_stop_reason.
10176
10177 2015-03-24 Gary Benson <gbenson@redhat.com>
10178
10179 * linux-nat.h (linux_stop_lwp): Move declaration to...
10180 * nat/linux-nat.h (linux_stop_lwp): New declaration.
10181
10182 2015-03-24 Gary Benson <gbenson@redhat.com>
10183
10184 * linux-nat.h: Include nat/linux-nat.h.
10185 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
10186 * nat/linux-nat.h (struct lwp_info): New forward declaration.
10187 (iterate_over_lwps_ftype): New typedef.
10188 (iterate_over_lwps): New declaration.
10189 * linux-nat.h (iterate_over_lwps): Update comment. Use
10190 iterate_over_lwps_ftype. Update callback return value check.
10191
10192 2015-03-24 Gary Benson <gbenson@redhat.com>
10193
10194 * x86-nat.h (x86_debug_reg_state): Move declaration to...
10195 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
10196
10197 2015-03-24 Gary Benson <gbenson@redhat.com>
10198
10199 * nat/linux-nat.h (current_lwp_ptid): New declaration.
10200 * linux-nat.c (current_lwp_ptid): New function.
10201 * x86-linux-nat.c: Include nat/linux-nat.h.
10202 (x86_linux_dr_get_addr): Use current_lwp_ptid.
10203 (x86_linux_dr_get_control): Likewise.
10204 (x86_linux_dr_get_status): Likewise.
10205 (x86_linux_dr_set_control): Likewise.
10206 (x86_linux_dr_set_addr): Likewise.
10207
10208 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
10209
10210 PR breakpoints/16466
10211 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
10212
10213 2015-03-23 Joel Brobecker <brobecker@adacore.com>
10214
10215 * ser-mingw.c (ser_windows_setparity): Fix indentation.
10216 * ser-unix.c (hardwire_setparity): Likewise.
10217
10218 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10219
10220 * NEWS: Mention set/show serial parity command.
10221 * monitor.c (monitor_open): Call serial_setparity.
10222 * remote.c (remote_open_1): Likewise.
10223 * ser-base.c (ser_base_serparity): New function.
10224 * ser-base.h (ser_base_setparity): Add declaration.
10225 * ser-go32.c (dos_ops): Set "setparity" field.
10226 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
10227 state.Parity.
10228 (ser_windows_setparity): New function.
10229 (hardwire_ops): Add ser_windows_setparity.
10230 (tty_ops): Add NULL for setparity field.
10231 (pipe_ops): Add ser_base_setparity.
10232 (tcp_ops): Likewise.
10233 * ser-pipe.c (pipe_ops): Likewise.
10234 * ser-tcp.c (tcp_ops): Likewise.
10235 * ser-unix.c (hardwire_setparity): Add declaration.
10236 (hardwire_raw): Don't reset PARENB flag.
10237 (hardwire_setparity): New function.
10238 (hardwire_ops): Add hardwire_setparity.
10239 * serial.c (serial_setparity): New function.
10240 (serial_parity): New global.
10241 (parity_none, parity_odd, parity_even, parity_enums, parity):
10242 New static globals.
10243 (set_parity): New function.
10244 (_initialize_serial): Add set/show serial parity commands.
10245 * serial.h (GDBPARITY_NONE): Define.
10246 (GDBPARITY_ODD): Define.
10247 (GDBPARITY_EVEN): Define.
10248 (serial_setparity) Add declaration.
10249 (struct serial_ops): Add setparity field.
10250 * target.h (serial_parity): Add declaration.
10251
10252 2015-03-23 Keith Seitz <keiths@redhat.com>
10253
10254 * linespec.c (linespec_lexer_lex_keyword): Update comment.
10255
10256 2015-03-23 Keith Seitz <keiths@redhat.com>
10257
10258 * breakpoint.c (parse_breakpoint_sals): Use
10259 linespec_lexer_lex_keyword to ascertain if the user specified
10260 a NULL location.
10261 * linespec.c [IF_KEYWORD_INDEX]: Define.
10262 (linespec_lexer_lex_keyword): Export.
10263 (struct ls_parser) <keyword_ok>: Remove.
10264 A keyword is only a keyword if not followed by another keyword.
10265 (linespec_lexer_lex_one): Remove keyword_ok handling.
10266 Add comment explaining why the parsing stream is not advanced
10267 when a keyword is seen.
10268 (parse_linespec): Remove parser->keyword_ok.
10269 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
10270
10271 2015-03-23 Keith Seitz <keiths@redhat.com>
10272
10273 PR gdb/18021
10274 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
10275 if we find a static method with DW_AT_vtable_elem_location.
10276
10277 2015-03-21 Eli Zaretskii <eliz@gnu.org>
10278
10279 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
10280 before the second loop, to avoid undefined behavior. Reported by
10281 Anton Blanchard <anton@samba.org>.
10282
10283 2015-03-20 Keven Boell <keven.boell@intel.com>
10284
10285 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
10286 data_location usage to linked list.
10287 (resolve_dynamic_type_internal): Adapt data_location to
10288 linked list.
10289 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
10290 (copy_type_recursive, copy_type): Add copy of linked list.
10291 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
10292 (struct dynamic_prop_list): New struct.
10293 * dwarf2read.c (set_die_type): Set data_location data.
10294
10295 2015-03-20 Pedro Alves <palves@redhat.com>
10296
10297 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
10298 inner block and make it const.
10299 * machoread.c (get_archive_prefix_len): Make "lparen" const.
10300
10301 2015-03-20 Pedro Alves <palves@redhat.com>
10302
10303 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
10304 * breakpoint.h (set_breakpoint_condition): Update declaration.
10305
10306 2015-03-20 Pedro Alves <palves@redhat.com>
10307
10308 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
10309
10310 2015-03-20 Pedro Alves <palves@redhat.com>
10311
10312 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
10313
10314 2015-03-20 Pedro Alves <palves@redhat.com>
10315
10316 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
10317
10318 2015-03-20 Pedro Alves <palves@redhat.com>
10319
10320 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
10321 (nto_init_solib_absolute_prefix): Likewise.
10322
10323 2015-03-20 Pedro Alves <palves@redhat.com>
10324
10325 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
10326 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
10327
10328 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10329
10330 * config/djgpp/README: Remove gdb.hp.
10331
10332 2015-03-20 Yao Qi <yao.qi@linaro.org>
10333
10334 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
10335 set_gdbarch_cannot_step_breakpoint.
10336
10337 2015-03-19 Pedro Alves <palves@redhat.com>
10338
10339 * linux-nat.c (linux_resume_one_lwp): Rename to ...
10340 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
10341 instead call perror_with_name.
10342 (check_ptrace_stopped_lwp_gone): New function.
10343 (linux_resume_one_lwp): Reimplement as wrapper around
10344 linux_resume_one_lwp_throw that swallows errors if the LWP is
10345 gone.
10346 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
10347 swallows errors if the LWP is gone. Use
10348 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
10349
10350 2015-03-19 Pedro Alves <palves@redhat.com>
10351
10352 * linux-nat.c (status_callback): Return early if the LWP has no
10353 status pending.
10354
10355 2015-03-19 Pedro Alves <palves@redhat.com>
10356
10357 * linux-nat.c (select_event_lwp_callback): Update comment to no
10358 longer mention SIGTRAP.
10359
10360 2015-03-18 Tristan Gingold <gingold@adacore.com>
10361
10362 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
10363 redirection code to ...
10364 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
10365 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
10366
10367 2015-03-18 Gary Benson <gbenson@redhat.com>
10368
10369 (remote_protocol_features): Remove the "vFile:fstat" feature.
10370 (remote_hostio_fstat): Probe for "vFile:fstat" support.
10371
10372 2015-03-11 Yao Qi <yao.qi@linaro.org>
10373
10374 PR tdep/18107
10375 * aarch64-linux-tdep.c: Include xml-syscall.h
10376 (aarch64_linux_get_syscall_number): New function.
10377 (aarch64_linux_init_abi): Call
10378 set_gdbarch_get_syscall_number.
10379 * syscalls/aarch64-linux.xml: New file.
10380
10381 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
10382
10383 * ser-base.h (ser_base_setstopbits): Change second argument name
10384 from "rate" to "num".
10385
10386 2015-03-17 Gary Benson <gbenson@redhat.com>
10387 Luke Allardyce <lukeallardyce@gmail.com>
10388
10389 PR gdb/18131
10390 * common/common-remote-fileio.h (sys/stat.h): New include.
10391 (stuct stat): Remove forward declaration.
10392
10393 2015-03-16 John Baldwin <jhb@FreeBSD.org>
10394
10395 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
10396 before writing core register notes.
10397
10398 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10399 Pedro Alves <palves@redhat.com>
10400
10401 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
10402 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
10403 (tgoto): Wrap with extern "C".
10404
10405 2015-03-16 Pedro Alves <palves@redhat.com>
10406 Yuanhui Zhang <asmwarrior@gmail.com>
10407
10408 * stub-termcap.c (tputs): Change prototype.
10409
10410 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
10411 Pedro Alves <palves@redhat.com>
10412
10413 * windows-nat.c (struct thread_info_struct): Rename to ...
10414 (struct windows_thread_info_struct): ... this.
10415 (thread_info): Rename to ...
10416 (windows_thread_info): ... this.
10417 All users updated.
10418
10419 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10420 Pedro Alves <palves@redhat.com>
10421
10422 * NEWS: New Removed targets and native configurations.
10423
10424 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10425
10426 Remove HPUX.
10427 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
10428 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
10429 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
10430 ia64-hpux-tdep.h, solib-ia64-hpux.h.
10431 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
10432 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
10433 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
10434 hppa-hpux-tdep.c.
10435 * config/ia64/hpux.mh: Remove file.
10436 * config/pa/hpux.mh: Remove file.
10437 * configure: Rebuilt.
10438 * configure.ac (dlgetmodinfo, somread.o): Remove.
10439 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10440 (ia64-*-hpux*): Remove its float format exception.
10441 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
10442 * hppa-hpux-nat.c: Remove file.
10443 * hppa-hpux-tdep.c: Remove file.
10444 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
10445 Move them here from hppa-tdep.h
10446 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
10447 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
10448 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
10449 Move them to hppa-tdep.c.
10450 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
10451 declarations.
10452 * ia64-hpux-nat.c: Remove file.
10453 * ia64-hpux-tdep.c: Remove file.
10454 * ia64-hpux-tdep.h: Remove file.
10455 * inf-ttrace.c: Remove file.
10456 * inf-ttrace.h: Remove file.
10457 * solib-ia64-hpux.c: Remove file.
10458 * solib-ia64-hpux.h: Remove file.
10459 * solib-pa64.c: Remove file.
10460 * solib-pa64.h: Remove file.
10461 * solib-som.c: Remove file.
10462 * solib-som.h: Remove file.
10463 * somread.c: Remove file.
10464
10465 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10466
10467 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
10468 * config.in: Regenerate.
10469 * configure: Regenerate.
10470 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
10471 define.
10472 (fbsd_find_memory_regions): Use kinfo_getvmmap to
10473 enumerate memory regions if present.
10474
10475 2015-03-13 John Baldwin <jhb@FreeBSD.org>
10476
10477 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
10478 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
10479 expressions.
10480 (i386fbsd_sigtramp_p): Likewise.
10481
10482 2015-03-12 John Baldwin <jhb@FreeBSD.org>
10483
10484 * MAINTAINERS (Write After Approval): Add John Baldwin.
10485
10486 2015-03-12 Gary Benson <gbenson@redhat.com>
10487
10488 * solib.c (_initialize_solib): Make "set/show sysroot" use
10489 add_setshow_optional_filename_cmd so it can be restored to
10490 empty after being set.
10491
10492 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10493
10494 * Makefile.in (SFILES): New source break-catch-syscall.c.
10495 (COMMON_OBS): New object break-catch-syscall.o.
10496 * break-catch-syscall.c: New file.
10497 * breakpoint.c: Remove inclusion of "xml-syscall.h".
10498 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
10499 (struct syscall_catchpoint): Likewise.
10500 (dtor_catch_syscall): Likewise.
10501 (catch_syscall_inferior_data): Likewise.
10502 (struct catch_syscall_inferior_data): Likewise.
10503 (get_catch_syscall_inferior_data): Likewise.
10504 (catch_syscall_inferior_data_cleanup): Likewise.
10505 (insert_catch_syscall): Likewise.
10506 (remove_catch_syscall): Likewise.
10507 (breakpoint_hit_catch_syscall): Likewise.
10508 (print_it_catch_syscall): Likewise.
10509 (print_one_catch_syscall): Likewise.
10510 (print_mention_catch_syscall): Likewise.
10511 (print_recreate_catch_syscall): Likewise.
10512 (catch_syscall_breakpoint_ops): Likewise.
10513 (syscall_catchpoint_p): Likewise.
10514 (create_syscall_event_catchpoint): Likewise.
10515 (catch_syscall_split_args): Likewise.
10516 (catch_syscall_command_1): Likewise.
10517 (is_syscall_catchpoint_enabled): Likewise.
10518 (catch_syscall_enabled): Likewise.
10519 (catching_syscall_number): Likewise.
10520 (catch_syscall_completer): Likewise.
10521 (clear_syscall_counts): Likewise.
10522 (initialize_breakpoint_ops): Move initialization of syscall
10523 catchpoints to break-catch-syscall.c.
10524 (_initialize_breakpoint): Move code related to syscall catchpoints
10525 to break-catch-syscall.c.
10526
10527 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
10528
10529 * breakpoint.c (breakpoint_find_if): New function.
10530 * breakpoint.h (breakpoint_find_if): New prototype.
10531
10532 2015-03-11 Gary Benson <gbenson@redhat.com>
10533
10534 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
10535 * remote-fileio.c (remote_fileio_to_host_uint): New function.
10536 (remote_fileio_to_host_ulong): Likewise.
10537 (remote_fileio_to_host_mode): Likewise.
10538 (remote_fileio_to_host_time): Likewise.
10539 (remote_fileio_to_host_stat): Likewise.
10540 * remote.c (PACKET_vFile_fstat): New enum value.
10541 (remote_protocol_features): Register the "vFile:fstat" feature.
10542 (remote_hostio_fstat): New function.
10543 (remote_bfd_iovec_stat): Use the above.
10544 (_initialize_remote): Register new "set/show remote
10545 hostio-fstat-packet" command.
10546 * symfile.c (separate_debug_file_exists): Update comment.
10547 * NEWS: Announce new vFile:fstat packet.
10548
10549 2015-03-11 Gary Benson <gbenson@redhat.com>
10550
10551 * common/common-remote-fileio.h: New file.
10552 * common/common-remote-fileio.c: Likewise.
10553 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
10554 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
10555 (COMMON_OBS): Add common-remote-fileio.o.
10556 (common-remote-fileio.o): New rule.
10557 * remote-fileio.h (common-remote-fileio.h): New include.
10558 * remote-fileio.c (gdb/fileio.h): Do not include.
10559 (remote_fileio_to_be): Moved to common-remote-fileio.h.
10560 (remote_fileio_to_fio_uint): Likewise.
10561 (remote_fileio_to_fio_time): Likewise.
10562 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
10563 (remote_fileio_to_fio_mode): Likewise.
10564 (remote_fileio_to_fio_ulong): Likewise.
10565 (remote_fileio_to_fio_stat): Likewise.
10566
10567 2015-03-11 Andy Wingo <wingo@igalia.com>
10568
10569 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
10570 we were checking the cached type, not the cached dynamic type.
10571
10572 2015-03-11 Andy Wingo <wingo@igalia.com>
10573
10574 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
10575 other strings, as these are on the GC'd heap, and will be
10576 collected along with the smob.
10577
10578 2015-03-11 Andy Wingo <wingo@igalia.com>
10579
10580 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
10581 (objfile_functions): Bind gdbscm_objfile_progspace to
10582 objfile-progspace.
10583 * guile/lib/gdb.scm: Add objfile-progspace to exports.
10584
10585 2015-03-11 Andy Wingo <wingo@igalia.com>
10586
10587 * guile/guile.c (_initialize_guile): Disable automatic
10588 finalization, if Guile offers us that possibility.
10589 * guile/guile.c (call_initialize_gdb_module):
10590 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
10591 finalizers in appropriate places.
10592 * configure.ac (AC_TRY_LIBGUILE): Add a check for
10593 scm_set_automatic_finalization_enabled.
10594 * configure: Regenerated.
10595
10596 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10597
10598 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
10599 SAL, if possible.
10600
10601 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
10602
10603 * s390-linux-nat.c (struct arch_lwp_info): New.
10604 (s390_fix_watch_points): Rename to...
10605 (s390_prepare_to_resume): ...this. Skip the PER info update
10606 unless the watch points have changed.
10607 (s390_refresh_per_info, s390_new_thread): New functions.
10608 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
10609 s390_fix_watch_points.
10610 (s390_remove_watchpoint): Likewise.
10611 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
10612 Register s390_prepare_to_resume.
10613
10614 2015-03-09 Pedro Alves <palves@redhat.com>
10615
10616 Revert:
10617 2015-03-07 Pedro Alves <palves@redhat.com>
10618 * common/gdb_socket.h: New file.
10619 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10620 sys/socket.h.
10621 (net_open): Use union gdb_sockaddr_u.
10622
10623 2015-03-07 Pedro Alves <palves@redhat.com>
10624
10625 * configure.ac (build_warnings): Move -Wmissing-prototypes
10626 -Wdeclaration-after-statement -Wmissing-parameter-type
10627 -Wold-style-declaration -Wold-style-definition to the C-specific
10628 set.
10629 * configure: Regenerate.
10630
10631 2015-03-07 Pedro Alves <palves@redhat.com>
10632
10633 * common/gdb_socket.h: New file.
10634 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
10635 sys/socket.h.
10636 (net_open): Use union gdb_sockaddr_u.
10637
10638 2015-03-07 Pedro Alves <palves@redhat.com>
10639
10640 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
10641 (exceptions_state_mc_action_iter)
10642 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10643 Don't define.
10644 [__cplusplus] (try_scope_depth): New global.
10645 [__cplusplus] (exception_try_scope_entry)
10646 (exception_try_scope_exit, gdb_exception_sliced_copy)
10647 (exception_rethrow): New functions.
10648 (throw_exception): In C++ mode, throw
10649 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
10650 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
10651 (throw_it): In C++ mode, use try_scope_depth.
10652 * common/common-exceptions.h [!__cplusplus]
10653 (exceptions_state_mc_action_iter)
10654 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
10655 Don't declare.
10656 [__cplusplus] (exception_try_scope_entry)
10657 (exception_try_scope_exit, exception_rethrow): Declare.
10658 [__cplusplus] (struct exception_try_scope): New struct.
10659 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
10660 C++ exceptions.
10661 (struct gdb_exception_RETURN_MASK_ALL)
10662 (struct gdb_exception_RETURN_MASK_ERROR)
10663 (struct gdb_exception_RETURN_MASK_QUIT): New types.
10664
10665 2015-03-07 Pedro Alves <palves@redhat.com>
10666
10667 * main.c (handle_command_errors): Remove volatile qualifier from
10668 parameter.
10669
10670 2015-03-07 Pedro Alves <palves@redhat.com>
10671
10672 * breakpoint.c (save_breakpoints): Adjust to avoid code between
10673 TRY and CATCH.
10674 * gdbtypes.c (safe_parse_type): Remove empty line.
10675 (types_deeply_equal):
10676 * guile/scm-frame.c (gdbscm_frame_name):
10677 * linux-thread-db.c (find_new_threads_once):
10678 * python/py-breakpoint.c (bppy_get_commands):
10679 * record-btrace.c (record_btrace_insert_breakpoint)
10680 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
10681 (record_btrace_start_replaying): Adjust to avoid code between TRY
10682 and CATCH.
10683
10684 2015-03-07 Pedro Alves <palves@redhat.com>
10685
10686 * common/common-exceptions.c (struct catcher) <exception>: No
10687 longer a pointer to volatile exception. Now an exception value.
10688 <mask>: Delete field.
10689 (exceptions_state_mc_init): Remove all parameters. Adjust.
10690 (exceptions_state_mc): No longer pop the catcher here.
10691 (exceptions_state_mc_catch): New function.
10692 (throw_exception): Adjust.
10693 * common/common-exceptions.h (exceptions_state_mc_init): Remove
10694 all parameters.
10695 (exceptions_state_mc_catch): Declare.
10696 (TRY_CATCH): Rename to ...
10697 (TRY): ... this. Remove EXCEPTION and MASK parameters.
10698 (CATCH, END_CATCH): New.
10699 All callers adjusted.
10700
10701 2015-03-07 Tom Tromey <tromey@redhat.com>
10702
10703 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
10704
10705 2015-03-07 Pedro Alves <palves@redhat.com>
10706
10707 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
10708 (amd64_epilogue_frame_cache): Normal exception handling code.
10709 * break-catch-throw.c (check_status_exception_catchpoint)
10710 (re_set_exception_catchpoint): Ditto.
10711 * cli/cli-interp.c (safe_execute_command):
10712 * cli/cli-script.c (script_from_file): Ditto.
10713 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
10714 Ditto.
10715 * compile/compile-object-run.c (compile_object_run): Ditto.
10716 * cp-abi.c (baseclass_offset): Ditto.
10717 * cp-valprint.c (cp_print_value): Ditto.
10718 * exceptions.c (catch_exceptions_with_msg):
10719 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
10720 * frame.c (get_frame_address_in_block_if_available): Ditto.
10721 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
10722 (i386_sigtramp_frame_cache): Ditto.
10723 * infcmd.c (post_create_inferior): Ditto.
10724 * linespec.c (parse_linespec, find_linespec_symbols):
10725 * p-valprint.c (pascal_object_print_value): Ditto.
10726 * parse.c (parse_expression_for_completion): Ditto.
10727 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
10728 * remote.c (remote_get_noisy_reply): Ditto.
10729 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
10730 * solib-svr4.c (solib_svr4_r_map): Ditto.
10731
10732 2015-03-06 Gary Benson <gbenson@redhat.com>
10733
10734 * common/common-utils.h (startswith): New inline function.
10735 All places where this logic was used updated to use the above.
10736
10737 2015-03-05 Pedro Alves <palves@redhat.com>
10738
10739 PR gdb/18002
10740 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
10741 after reading the breakpoint's shadow memory.
10742
10743 2015-03-05 Mark Kettenis <kettenis@gnu.org>
10744
10745 * hppabsd-nat.c: Remove file.
10746 * hppaobsd-nat.c: New file.
10747 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
10748 hppaobsd-nat.c.
10749 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
10750 hppaobsd-nat.o.
10751
10752 2015-03-04 Pedro Alves <palves@redhat.com>
10753
10754 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
10755 (target_decr_pc_after_break): Delete declaration.
10756 * target.c (default_target_decr_pc_after_break)
10757 (target_decr_pc_after_break): Delete.
10758 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
10759 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
10760 * linux-thread-db.c (check_event): Likewise.
10761 * infrun.c (adjust_pc_after_break): Likewise.
10762 * darwin-nat.c (cancel_breakpoint): Likewise.
10763 * aix-thread.c (aix_thread_wait): Likewise.
10764 * target-delegates.c: Regenerate.
10765
10766 2015-03-04 Pedro Alves <palves@redhat.com>
10767
10768 * linux-nat.c (save_sigtrap): Check for breakpoints before
10769 checking watchpoints.
10770 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
10771 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
10772 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
10773 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
10774 (linux_nat_stopped_by_sw_breakpoint)
10775 (linux_nat_supports_stopped_by_sw_breakpoint)
10776 (linux_nat_stopped_by_hw_breakpoint)
10777 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
10778 (linux_nat_wait_1): Don't re-increment the PC if relying on
10779 SIGTRAP's siginfo->si_code.
10780 (linux_nat_add_target): Install new target methods.
10781 * linux-thread-db.c (check_event): Don't account for breakpoint PC
10782 offset if the target already adjusted the PC.
10783 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
10784 (GDB_ARCH_TRAP_BRKPT): New.
10785 (TRAP_HWBKPT): Define if not already defined.
10786
10787 2015-03-04 Pedro Alves <palves@redhat.com>
10788
10789 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
10790 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
10791 Delete field.
10792 <stop_reason>: New field.
10793 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
10794 (packet_set_cmd_state): New function.
10795 (remote_protocol_features): Register the "swbreak" and "hwbreak"
10796 features.
10797 (remote_query_supported): If not disabled with the corresponding
10798 "set remote foo-packet" command, report support for the swbreak
10799 and hwbreak features.
10800 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
10801 field.
10802 <stop_reason>: New field.
10803 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
10804 (remote_wait_as): Adjust.
10805 (remote_stopped_by_sw_breakpoint)
10806 (remote_supports_stopped_by_sw_breakpoint)
10807 (remote_stopped_by_hw_breakpoint)
10808 (remote_supports_stopped_by_hw_breakpoint): New functions.
10809 (remote_stopped_by_watchpoint): New function.
10810 (init_remote_ops): Install them.
10811 (_initialize_remote): Register new "set/show remote
10812 swbreak-feature-packet" and "set/show remote
10813 swbreak-feature-packet" commands.
10814
10815 2015-03-04 Pedro Alves <palves@redhat.com>
10816
10817 * btrace.h: Include target/waitstatus.h.
10818 (struct btrace_thread_info) <stop_reason>: New field.
10819 * record-btrace.c (record_btrace_step_thread): Use
10820 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10821 (record_btrace_decr_pc_after_break): Delete.
10822 (record_btrace_stopped_by_sw_breakpoint)
10823 (record_btrace_supports_stopped_by_sw_breakpoint)
10824 (record_btrace_stopped_by_hw_breakpoint)
10825 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
10826 (init_record_btrace_ops): Install them.
10827 * record-full.c (record_full_hw_watchpoint): Delete and replace
10828 with ...
10829 (record_full_stop_reason): ... this throughout.
10830 (record_full_exec_insn): Adjust.
10831 (record_full_wait_1): Adjust. No longer re-increment the PC.
10832 (record_full_wait_1): Adjust. Use
10833 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
10834 (record_full_stopped_by_watchpoint): Adjust.
10835 (record_full_stopped_by_sw_breakpoint)
10836 (record_full_supports_stopped_by_sw_breakpoint)
10837 (record_full_supports_stopped_by_sw_breakpoint)
10838 (record_full_stopped_by_hw_breakpoint)
10839 (record_full_supports_stopped_by_hw_breakpoint): New functions.
10840 (init_record_full_ops, init_record_full_core_ops): Install them.
10841 * record.c (record_check_stopped_by_breakpoint): New function.
10842 * record.h: Include target/waitstatus.h.
10843 (record_check_stopped_by_breakpoint): New declaration.
10844
10845 2015-03-04 Pedro Alves <palves@redhat.com>
10846
10847 enum lwp_stop_reason -> enum target_stop_reason
10848 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
10849 (linux_nat_stopped_by_watchpoint, status_callback)
10850 (linux_nat_wait_1): Adjust.
10851 * linux-nat.h (enum lwp_stop_reason): Delete.
10852 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
10853 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10854 * target/waitstatus.h (enum target_stop_reason): New.
10855
10856 2015-03-04 Pedro Alves <palves@redhat.com>
10857
10858 * breakpoint.c (need_moribund_for_location_type): New function.
10859 (bpstat_stop_status): Don't skipping checking moribund locations
10860 of breakpoint types which the target tell caused a stop.
10861 (program_breakpoint_here_p): New function, factored out from ...
10862 (bp_loc_is_permanent): ... this.
10863 (update_global_location_list): Don't create a moribund location if
10864 the target supports reporting stops of the type of the removed
10865 breakpoint.
10866 * breakpoint.h (program_breakpoint_here_p): New declaration.
10867 * infrun.c (adjust_pc_after_break): Return early if the target has
10868 already adjusted the PC. Add comments.
10869 (handle_signal_stop): If nothing explains a signal, and the target
10870 tells us the stop was caused by a software breakpoint, check if
10871 there's a breakpoint instruction in the memory. If so, adjust the
10872 PC before presenting the stop to the user. Otherwise, ignore the
10873 trap. If nothing explains a signal, and the target tells us the
10874 stop was caused by a hardware breakpoint, ignore the trap.
10875 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
10876 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
10877 to_supports_stopped_by_hw_breakpoint>: New fields.
10878 (target_stopped_by_sw_breakpoint)
10879 (target_supports_stopped_by_sw_breakpoint)
10880 (target_stopped_by_hw_breakpoint)
10881 (target_supports_stopped_by_hw_breakpoint): Define.
10882 * target-delegates.c: Regenerate.
10883
10884 2015-03-04 Pedro Alves <palves@redhat.com>
10885
10886 * infrun.c (follow_fork_inferior): Use the whole of the
10887 inferior_ptid and pending_follow.related_pid ptids instead of
10888 building ptids from the process components. Adjust verbose output
10889 to use target_pid_to_str.
10890 * linux-nat.c (linux_child_follow_fork): Use the whole of the
10891 inferior_ptid and pending_follow.related_pid ptids instead of
10892 building ptids from the process components.
10893
10894 2015-03-04 Mark Kettenis <kettenis@gnu.org>
10895
10896 * inf-ptrace.c [PT_GET_PROCESS_STATE]
10897 (inf_ptrace_insert_fork_catchpoint): New function.
10898 (inf_ptrace_remove_fork_catchpoint): New function.
10899 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
10900
10901 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10902
10903 * s390-linux-tdep.c (s390_register_name): Return empty string
10904 instead of NULL for registers that shouldn't be visible.
10905
10906 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10907
10908 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
10909 XML file for 64-bit targets.
10910
10911 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
10912
10913 * target.h (find_default_create_inferior): Remove declaration.
10914 (find_default_attach): Likewise.
10915
10916 2015-03-03 Pedro Alves <palves@redhat.com>
10917
10918 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
10919 Use ptid_get_pid to get the overall process id when resuming all
10920 threads.
10921
10922 2015-03-03 Pedro Alves <palves@redhat.com>
10923
10924 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
10925 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
10926 * inf-ptrace.c (get_ptrace_pid): New function.
10927 (inf_ptrace_resume): Use it.
10928 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
10929 to the lower layer.
10930
10931 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10932
10933 * nat/linux-btrace.c: Include sys/utsname.h.
10934 (linux_determine_kernel_ptr_bits): New.
10935 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
10936 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
10937 ptr_bits.
10938
10939 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10940
10941 * btrace.c (ftrace_update_function): Treat return as tailcall for
10942 "_dl_runtime_resolve".
10943
10944 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
10945
10946 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10947 * btrace.c (ftrace_debug): Do not print the line range.
10948 (ftrace_skip_file, ftrace_update_lines): Remove.
10949 (ftrace_new_function): Remove lbegin and lend initialization.
10950 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10951 * record-btrace.c (btrace_compute_src_line_range): New.
10952 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10953
10954 2015-03-02 Pedro Alves <palves@redhat.com>
10955
10956 * infrun.c (follow_exec): Delete all threads of the process except
10957 the event thread. Extended comments.
10958
10959 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10960
10961 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10962
10963 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10964
10965 * utils.h: Remove <stdbool.h> #include.
10966 (producer_is_gcc): Change return type to "int".
10967 * utils.c (producer_is_gcc): Change return type to int.
10968 Return 1 instead of true, and 0 instead of false.
10969 Adjust function documentation accordingly.
10970
10971 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10972
10973 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10974 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10975 present.
10976 (s390_linux_store_inferior_registers): Likewise.
10977 (s390_get_hwcap): Remove function. Embed its logic...
10978 (s390_read_description): ...here. Yield a target description with
10979 vector registers if applicable.
10980 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10981 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10982 "features/s390x-tevx-linux64.c".
10983 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10984 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10985 for "GNU/Linux-specific registers".
10986 (s390_dwarf_reg_r0l): New enum value.
10987 (s390_dwarf_reg_to_regnum): Support vector registers.
10988 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10989 of GPR lower halves.
10990 (regnum_is_vxr_full): New function.
10991 (s390_register_name): New function.
10992 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10993 f0-f15 and v0l-v15l.
10994 (s390_pseudo_register_type): Likewise.
10995 (s390_pseudo_register_read): Likewise.
10996 (s390_pseudo_register_write): Likewise.
10997 (s390_value_from_register): Account for the fact that values are
10998 placed left-justified in vector registers.
10999 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
11000 the vector reggroup and omit them from the general reggroup.
11001 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
11002 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
11003 (s390_iterate_over_regset_sections): Add iterations for the two
11004 new vector regsets.
11005 (s390_core_read_description): Yield a target description with
11006 vector registers if applicable.
11007 (s390_gdbarch_init): Handle target descriptions with vector
11008 registers. Add "register_name" gdbarch method.
11009 (_initialize_s390_tdep): Call new tdesc initialization functions.
11010 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
11011 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
11012 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
11013 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
11014 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
11015 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
11016 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
11017 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
11018 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
11019 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
11020 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
11021 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
11022 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
11023 (S390_NUM_REGS): Adjust value.
11024 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
11025 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
11026 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
11027 * NEWS: Announce S/390 vector register support.
11028
11029 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
11030
11031 * features/s390-tevx-linux64.xml: New file.
11032 * features/s390-vx-linux64.xml: New file.
11033 * features/s390-vx.xml: New file.
11034 * features/s390x-tevx-linux64.xml: New file.
11035 * features/s390x-vx-linux64.xml: New file.
11036 * features/Makefile (WHICH): Add s390-vx-linux64,
11037 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
11038 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
11039 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
11040 macros.
11041 * features/s390-tevx-linux64.c: New generated file.
11042 * features/s390-vx-linux64.c: Likewise.
11043 * features/s390x-tevx-linux64.c: Likewise.
11044 * features/s390x-vx-linux64.c: Likewise.
11045 * regformats/s390-tevx-linux64.dat: Likewise.
11046 * regformats/s390-vx-linux64.dat: Likewise.
11047 * regformats/s390x-tevx-linux64.dat: Likewise.
11048 * regformats/s390x-vx-linux64.dat: Likewise.
11049
11050 2015-02-28 Doug Evans <xdje42@gmail.com>
11051
11052 * symtab.h (struct symtab) <next>: Fix comment.
11053
11054 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
11055
11056 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
11057 python_GdbMethods.
11058
11059 2015-02-27 Pedro Alves <palves@redhat.com>
11060
11061 * dtrace-probe.c (dtrace_probe_ops): Make extern.
11062
11063 2015-02-27 Pedro Alves <palves@redhat.com>
11064
11065 * common/common-exceptions.h (exception_none): Declare.
11066 * common/common-exceptions.c (exception_none): Moved from
11067 exceptions.c.
11068 (exceptions_state_mc_init): Use exception_none.
11069 * exceptions.c (exception_none): Move to
11070 common/common-exceptions.c.
11071 * exceptions.h (exception_none): Move to
11072 common/common-exceptions.h.
11073
11074 2015-02-27 Pedro Alves <palves@redhat.com>
11075
11076 * main.c (catch_command_errors, catch_command_errors_const):
11077 Remove 'mask' argument. Adjust.
11078 (captured_main): Adjust callers.
11079
11080 2015-02-27 Pedro Alves <palves@redhat.com>
11081
11082 * python/python-internal.h: Include "extension-priv.h".
11083
11084 2015-02-27 Pedro Alves <palves@redhat.com>
11085
11086 * breakpoint.h (enum print_stop_action): Move further up in the
11087 file.
11088
11089 2015-02-27 Pedro Alves <palves@redhat.com>
11090
11091 * gdbarch.sh: Include regcache.h.
11092 * gdbarch.h: Regenerate.
11093
11094 2015-02-27 Pedro Alves <palves@redhat.com>
11095
11096 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
11097 Remove duplicate const.
11098 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
11099 duplicate const.
11100
11101 2015-02-27 Pedro Alves <palves@redhat.com>
11102
11103 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
11104 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
11105 * features/feature_to_c.sh: Tag the generated xml_builtin array
11106 with extern const in C++ mode.
11107
11108 2015-02-27 Tom Tromey <tromey@redhat.com>
11109
11110 * minidebug.c (struct lzma_stream): Rename to ...
11111 (struct gdb_lzma_stream): ... this.
11112 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
11113
11114 2015-02-27 Pedro Alves <palves@redhat.com>
11115
11116 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
11117 function.
11118 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
11119 (mi_cmd_stack_list_variables): Use it.
11120
11121 2015-02-27 Pedro Alves <palves@redhat.com>
11122
11123 * x86-linux-nat.c (u_debugreg_offset): New function.
11124 (x86_linux_dr_get, x86_linux_dr_set): Use it.
11125
11126 2015-02-27 Pedro Alves <palves@redhat.com>
11127
11128 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
11129 declaration.
11130 Include break-common.h.
11131
11132 2015-02-27 Tom Tromey <tromey@redhat.com>
11133 Pedro Alves <palves@redhat.com>
11134
11135 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
11136 local used to iterate over enums.
11137 * completer.c (signal_completer): Likewise.
11138 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
11139 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
11140 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
11141 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
11142 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
11143 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
11144 * tui-wingeneral.c (tui_refresh_all): Likewise.
11145
11146 2015-02-27 Pedro Alves <palves@redhat.com>
11147
11148 * target.h: Include "infrun.h".
11149
11150 2015-02-27 Pedro Alves <palves@redhat.com>
11151
11152 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
11153
11154 2015-02-27 Pedro Alves <palves@redhat.com>
11155
11156 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
11157 (IPA_SYM): Use it.
11158 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
11159
11160 2015-02-27 Pedro Alves <palves@redhat.com>
11161
11162 * cli-out.c (_rl_erase_entire_line): Move declaration out of
11163 cli_mld_erase_entire_line, and make it extern "C".
11164 * common/common-defs.h (EXTERN_C): New.
11165 * completer.c (_rl_completion_prefix_display_length)
11166 (_rl_print_completions_horizontally, QSFUNC): Move declarations
11167 out of gdb_display_match_list_1.
11168 (_rl_qsort_string_compare): Move declaration out of
11169 gdb_display_match_list_1, and make it extern "C".
11170 * defs.h (re_comp): Use EXTERN_C.
11171 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
11172 and make it extern "C".
11173 (monstartup): Move declaration out of maintenance_set_profile_cmd,
11174 and make it extern "C".
11175 (main): Move declaration out of maintenance_set_profile_cmd.
11176 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
11177 EXTERN_C.
11178
11179 2015-02-27 Pedro Alves <palves@redhat.com>
11180
11181 * python/python.c (GdbMethods): Rename to ...
11182 (python_GdbMethods): ... this and make extern.
11183 (GdbModuleDef): Rename to ...
11184 (python_GdbModuleDef): ... this and make extern.
11185
11186 2015-02-27 Pedro Alves <palves@redhat.com>
11187
11188 * record-btrace.c (set_record_btrace_cmdlist)
11189 (show_record_btrace_cmdlist): Remove redefinitions.
11190
11191 2015-02-27 Tom Tromey <tromey@redhat.com>
11192 Pedro Alves <palves@redhat.com>
11193
11194 * dwarf2-frame.c (enum cfa_how_kind, struct
11195 dwarf2_frame_state_reg_info): Move out of struct
11196 dwarf2_frame_state.
11197 * dwarf2read.c (struct tu_stats): Move out of struct
11198 dwarf2_per_objfile.
11199 (struct file_entry): Move out of struct line_header.
11200 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
11201 typedef_field_list): Move out of struct field_info.
11202 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
11203 Move out of struct dynamic_prop.
11204 (union type_owner, union field_location, struct field, struct
11205 range_bounds, union type_specific): Move out of struct main_type.
11206 (struct fn_fieldlist, struct fn_field, struct typedef_field)
11207 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
11208 (struct call_site_target, union call_site_parameter_u, struct
11209 call_site_parameter): Move out of struct call_site.
11210 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
11211 m32c_prologue.
11212 (enum srcdest_kind): Move out of struct srcdest.
11213 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
11214 * prologue-value.h (enum prologue_value_kind): Move out of struct
11215 prologue_value.
11216 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
11217 gdbarch_tdep.
11218 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
11219 out of struct field_info.
11220 * symfile.h (struct other_sections): Move out of struct
11221 section_addr_info.
11222 * symtab.c (struct symbol_cache_slot): Move out struct
11223 block_symbol_cache.
11224 * target-descriptions.c (enum tdesc_type_kind): Move out of
11225 typedef struct tdesc_type.
11226 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
11227 struct tui_line_or_address.
11228 * value.c (enum internalvar_kind, union internalvar_data): Move
11229 out of struct internalvar.
11230 * xtensa-tdep.h (struct ctype_cache): Move out of struct
11231 gdbarch_tdep.
11232
11233 2015-02-27 Tom Tromey <tromey@redhat.com>
11234 Pedro Alves <palves@redhat.com>
11235
11236 Rename symbols whose names are reserved C++ keywords throughout.
11237
11238 2015-02-27 Pedro Alves <palves@redhat.com>
11239
11240 * Makefile.in (COMPILER): New, get it from autoconf.
11241 (COMPILE.pre, CC_LD): Use COMPILER.
11242 (CXX): Get from autoconf instead.
11243 (CXX_FOR_TARGET): Default to g++ instead of gcc.
11244 * acinclude.m4: Include build-with-cxx.m4.
11245 * build-with-cxx.m4: New file.
11246 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
11247 Disable -Werror by default if building in C++ mode.
11248 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
11249 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
11250 Run supported-warning-flags tests with the C++ compiler.
11251 Save/restore CXXFLAGS too.
11252 * configure: Regenerate.
11253
11254 2015-02-27 Pedro Alves <palves@redhat.com>
11255
11256 * libiberty.m4: New file.
11257 * acinclude.m4: Include libiberty.m4.
11258 * configure.ac: Call libiberty_INIT.
11259 * config.in, configure: Regenerate.
11260
11261 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
11262
11263 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
11264 31-bit targets, but 64-bit targets as well.
11265 (s390_gnu_triplet_regexp): New function.
11266 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
11267 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
11268 method.
11269
11270 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
11271
11272 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
11273 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
11274 from CONTEXT_DEBUGGER.
11275
11276 2015-02-26 Doug Evans <dje@google.com>
11277
11278 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
11279 CHECK_TYPEDEF.
11280 (set_type_vptr_fieldno): Ditto.
11281 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
11282 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
11283
11284 2015-02-26 Pedro Alves <palves@redhat.com>
11285
11286 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
11287 * complaints.c (vcomplaint): Pass argument FMT directly to
11288 printf-like functions instead of complaint->fmt.
11289 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
11290 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
11291 * compile/compile-loc2c.c (pushf, unary, binary): Add
11292 ATTRIBUTE_PRINTF.
11293 (do_compile_dwarf_expr_to_c): Pass string literal as format string
11294 to pushf.
11295 (BINARY): Pass string literal as format string to 'binary'.
11296 * compile/compile-object-load.c (link_callbacks_einfo): Add
11297 ATTRIBUTE_PRINTF.
11298 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
11299
11300 2015-02-26 Pedro Alves <palves@redhat.com>
11301
11302 * windows-termcap.c: Rename to ...
11303 * stub-termcap.c: ... this. Adjust header line.
11304 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
11305 windows-termcap.c.
11306 * configure: Regenerate.
11307 * configure.ac: Refer to stub-termcap.o instead of
11308 windows-termcap.o.
11309 * gdb_curses.h: Mention stub-termcap.c instead of
11310 windows-termcap.c.
11311
11312 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11313
11314 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
11315 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
11316
11317 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
11318
11319 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
11320
11321 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11322
11323 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
11324 bfd_canonicalize_symtab.
11325
11326 2015-02-25 John Baldwin <jhb@FreeBSD.org>
11327
11328 * amd64fbsd-nat.c: Include sys/user.h.
11329 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11330 instead of KERN_PS_STRINGS to locate the signal trampoline.
11331 * i386fbsd-nat.c: Include sys/user.h.
11332 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
11333 instead of KERN_PS_STRINGS to locate the signal trampoline.
11334 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
11335 (amd64fbsd_sigtramp_p): New.
11336 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
11337 longer set default values.
11338 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
11339 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
11340 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
11341 (i386fbsd_freebsd4_sigtramp_start)
11342 (i386fbsd_freebsd4_sigtramp_middle)
11343 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
11344 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
11345 (i386fbsd_sigtramp_p): New.
11346 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
11347 longer set default values.
11348 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
11349
11350 2015-02-25 John Baldwin <jhb@freebsd.org>
11351
11352 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
11353 get_frame_register instead of frame_unwind_register_unsigned.
11354
11355 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11356
11357 PR build/18033
11358 * compile/compile-c-support.c (c_compute_program): Change // comment.
11359 * compile/compile-object-load.c (setup_sections): Change // comment.
11360
11361 2015-02-26 Joel Brobecker <brobecker@adacore.com>
11362
11363 PR build/18033:
11364 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
11365
11366 2015-02-23 Pedro Alves <palves@redhat.com>
11367
11368 * remote.c (skip_to_semicolon): New function.
11369 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
11370 special case the stop reasons that look like hex numbers
11371 upfront. Instead handle real register numbers after matching
11372 all the known stop reasons.
11373
11374 2015-02-21 Doug Evans <dje@google.com>
11375
11376 PR c++/17976, symtab/17821
11377 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
11378 is_in_anonymous. All callers updated.
11379 (find_symbol_in_baseclass): Ditto.
11380 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
11381 for symbols in an anonymous namespace.
11382 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
11383 DW_AT_name directly.
11384 (dwarf2_name): Convert missing namespace name to
11385 CP_ANONYMOUS_NAMESPACE_STR.
11386
11387 2015-02-20 Pedro Alves <palves@redhat.com>
11388
11389 * linux-nat.c (linux_handle_extended_wait): Call
11390 thread_db_notice_clone whenever a new clone LWP is detected.
11391 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
11392 functions.
11393 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
11394 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
11395 (linux_unstop_all_lwps): Declare.
11396 * linux-thread-db.c (struct thread_get_info_inout): Delete.
11397 (thread_get_info_callback): Delete.
11398 (thread_from_lwp): Use td_thr_get_info and record_thread.
11399 (thread_db_attach_lwp): Delete.
11400 (thread_db_notice_clone): New function.
11401 (try_thread_db_load_1): If /proc is mounted and shows the
11402 process'es task list, walk over all LWPs and call thread_from_lwp
11403 instead of relying on td_ta_thr_iter.
11404 (attach_thread): Don't call check_thread_signals here. Split the
11405 tail part of the function (which adds the thread to the core GDB
11406 thread list) to ...
11407 (record_thread): ... this function. Call check_thread_signals
11408 here.
11409 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
11410 call thread_from_lwp.
11411 (thread_db_update_thread_list): Rename to ...
11412 (thread_db_update_thread_list_org): ... this.
11413 (thread_db_update_thread_list): New function.
11414 (thread_db_find_thread_from_tid): Delete.
11415 (thread_db_get_ada_task_ptid): Simplify.
11416 * nat/linux-procfs.c: Include <sys/stat.h>.
11417 (linux_proc_task_list_dir_exists): New function.
11418 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
11419
11420 2015-02-20 Pedro Alves <palves@redhat.com>
11421
11422 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
11423 main LWP. Handle the case of waitpid returning 0 if we're already
11424 attached to the LWP. Don't set the LWP's last_resume_kind to
11425 resume_stop if we already knew about the LWP.
11426 (linux_nat_filter_event): Add debug logs.
11427
11428 2015-02-20 Pedro Alves <palves@redhat.com>
11429
11430 * target.h (forward_target_decr_pc_after_break): Delete
11431 declaration.
11432
11433 2015-02-20 Pedro Alves <palves@redhat.com>
11434
11435 PR threads/18006
11436 * linux-thread-db.c (thread_get_info_callback): Return early if
11437 the thread's lwp id is -1.
11438
11439 2015-02-20 Joel Brobecker <brobecker@adacore.com>
11440
11441 GDB 7.9 released.
11442
11443 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
11444
11445 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
11446 (dtrace_get_probes) Change type of variable 'dof'.
11447
11448 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
11449
11450 PR breakpoints/16812
11451 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
11452 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
11453 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
11454
11455 2015-02-19 David Taylor <dtaylor@emc.com>
11456
11457 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
11458
11459 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
11460
11461 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
11462 function.
11463 (tui_putc): Don't call tui_handle_resize_during_io.
11464 (tui_getc): Likewise.
11465 (tui_mld_getc): Likewise.
11466 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
11467 (tui_sigwinch_token): New static variable.
11468 (tui_initialize_win): Adjust documentation. Set
11469 tui_sigwinch_token.
11470 (tui_async_resize_screen): New asynchronous callback.
11471 (tui_sigwinch_handler): Adjust documentation. Asynchronously
11472 invoke tui_async_resize_screen.
11473
11474 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
11475
11476 * configure: Regenerated.
11477 * configure.ac: Use GDB_AC_TRANSFORM.
11478 * Makefile.in (aclocal_m4_deps): Added transform.m4.
11479 * acinclude.m4: sinclude transform.m4.
11480 * transform.m4: New file.
11481 (GDB_AC_TRANSFORM): New macro.
11482
11483 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11484
11485 * NEWS: Announce the support for DTrace SDT probes.
11486
11487 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11488
11489 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
11490 (amd64_dtrace_parse_probe_argument): New function.
11491 (amd64_dtrace_probe_is_enabled): Likewise.
11492 (amd64_dtrace_enable_probe): Likewise.
11493 (amd64_dtrace_disable_probe): Likewise.
11494 (amd64_linux_init_abi): Register the
11495 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
11496 `gdbarch_dtrace_disable_probe' and
11497 `gdbarch_dtrace_probe_is_enabled' hooks.
11498 (amd64_dtrace_disabled_probe_sequence_1): New constant.
11499 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
11500 (amd64_dtrace_enable_probe_sequence): Likewise.
11501 (amd64_dtrace_disable_probe_sequence): Likewise.
11502
11503 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11504
11505 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
11506 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
11507 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
11508 handle ELF files.
11509 * Makefile.in (SFILES): dtrace-probe.c added.
11510 * configure: Regenerate.
11511 * dtrace-probe.c: New file.
11512 (SHT_SUNW_dof): New constant.
11513 (dtrace_probe_type): New enum.
11514 (dtrace_probe_arg): New struct.
11515 (dtrace_probe_arg_s): New typedef.
11516 (struct dtrace_probe_enabler): New struct.
11517 (dtrace_probe_enabler_s): New typedef.
11518 (dtrace_probe): New struct.
11519 (dtrace_probe_is_linespec): New function.
11520 (dtrace_dof_sect_type): New enum.
11521 (dtrace_dof_dofh_ident): Likewise.
11522 (dtrace_dof_encoding): Likewise.
11523 (DTRACE_DOF_ENCODE_LSB): Likewise.
11524 (DTRACE_DOF_ENCODE_MSB): Likewise.
11525 (dtrace_dof_hdr): New struct.
11526 (dtrace_dof_sect): Likewise.
11527 (dtrace_dof_provider): Likewise.
11528 (dtrace_dof_probe): Likewise.
11529 (DOF_UINT): New macro.
11530 (DTRACE_DOF_PTR): Likewise.
11531 (DTRACE_DOF_SECT): Likewise.
11532 (dtrace_process_dof_probe): New function.
11533 (dtrace_process_dof): Likewise.
11534 (dtrace_build_arg_exprs): Likewise.
11535 (dtrace_get_arg): Likewise.
11536 (dtrace_get_probes): Likewise.
11537 (dtrace_get_probe_argument_count): Likewise.
11538 (dtrace_can_evaluate_probe_arguments): Likewise.
11539 (dtrace_evaluate_probe_argument): Likewise.
11540 (dtrace_compile_to_ax): Likewise.
11541 (dtrace_probe_destroy): Likewise.
11542 (dtrace_gen_info_probes_table_header): Likewise.
11543 (dtrace_gen_info_probes_table_values): Likewise.
11544 (dtrace_probe_is_enabled): Likewise.
11545 (dtrace_probe_ops): New variable.
11546 (info_probes_dtrace_command): New function.
11547 (_initialize_dtrace_probe): Likewise.
11548 (dtrace_type_name): Likewise.
11549
11550 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11551
11552 * gdbarch.sh (dtrace_parse_probe_argument): New.
11553 (dtrace_probe_is_enabled): Likewise.
11554 (dtrace_enable_probe): Likewise.
11555 (dtrace_disable_probe): Likewise.
11556 * gdbarch.c: Regenerate.
11557 * gdbarch.h: Regenerate.
11558
11559 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11560
11561 * stap-probe.c (stap_probe_ops): Add NULLs in the static
11562 stap_probe_ops for `enable_probe' and `disable_probe'.
11563 * probe.c (enable_probes_command): New function.
11564 (disable_probes_command): Likewise.
11565 (_initialize_probe): Define the cli commands `enable probe' and
11566 `disable probe'.
11567 (parse_probe_linespec): New function.
11568 (info_probes_for_ops): Use parse_probe_linespec.
11569 * probe.h (probe_ops): New hooks `enable_probe' and
11570 `disable_probe'.
11571
11572 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11573
11574 * probe.c (compute_probe_arg): Moved from stap-probe.c
11575 (compile_probe_arg): Likewise.
11576 (probe_funcs): Likewise.
11577 * stap-probe.c (compute_probe_arg): Moved to probe.c.
11578 (compile_probe_arg): Likewise.
11579 (probe_funcs): Likewise.
11580
11581 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
11582
11583 * probe.c (print_ui_out_not_applicables): New function.
11584 (exists_probe_with_pops): Likewise.
11585 (info_probes_for_ops): Do not include column headers for probe
11586 types for which no probe has been actually found on any object.
11587 Also invoke `print_ui_out_not_applicables' in order to match the
11588 column rows with the header when probes of several types are
11589 listed.
11590 Print the "Type" column.
11591 * probe.h (probe_ops): Added a new probe operation `type_name'.
11592 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
11593 (stap_type_name): New function.
11594
11595 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
11596
11597 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
11598 (key_is_command_char): Delete.
11599
11600 2015-02-17 Pedro Alves <palves@redhat.com>
11601
11602 * tui/tui.c (tui_enable): Resize windows before anything
11603 might show a window.
11604
11605 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
11606
11607 PR gdb/17984
11608 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
11609 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
11610 call.
11611 * aarch64-tdep.h (tdesc_aarch64): Declare.
11612
11613 2015-02-12 Mark Wielaard <mjw@redhat.com>
11614
11615 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
11616
11617 2015-02-13 Doug Evans <dje@google.com>
11618
11619 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
11620 anonymous_namespace to is_in_anonymous for consistency with the rest
11621 of the file.
11622 (cp_lookup_bare_symbol): Fix typo in comment.
11623 (cp_search_static_and_baseclasses): Ditto.
11624 (search_symbol_list): Use vertical space in comment better.
11625 (reset_directive_searched): Ditto. Fix typo.
11626 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
11627
11628 2015-02-13 Yao Qi <yao.qi@arm.com>
11629
11630 * MAINTAINERS: Update my email address.
11631
11632 2015-02-12 Doug Evans <dje@google.com>
11633
11634 * symtab.c (completion_list_add_name): Fix memory leak.
11635
11636 2015-02-12 Doug Evans <dje@google.com>
11637
11638 * completer.c (complete_line): Remove incorrect comment.
11639
11640 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11641
11642 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
11643 (py_print_frame): Use RETURN_MASK_ERROR.
11644
11645 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11646
11647 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
11648 function comment. Wrap all function that can throw in cleanups.
11649 (gdbpy_apply_frame_filter): Wrap all function that can throw in
11650 cleanups.
11651
11652 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11653
11654 * python/py-framefilter.c (py_print_frame): Substitute goto error.
11655 Remove the error label.
11656
11657 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11658
11659 * python/py-framefilter.c (py_print_frame): Put conditional code paths
11660 with goto first, indent the former else codepath left. Put variable
11661 'elided' to a new inner block.
11662
11663 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
11664
11665 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
11666
11667 2015-02-11 Pedro Alves <palves@redhat.com>
11668
11669 * xcoffread.c (within_function): Delete.
11670
11671 2015-02-11 Tom Tromey <tromey@redhat.com>
11672 Pedro Alves <palves@redhat.com>
11673
11674 * breakpoint.c (base_breakpoint_ops): Delete.
11675 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
11676 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
11677 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
11678 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
11679 * python/py-arch.c (arch_object_type): Make extern.
11680 * python/py-block.c (block_syms_iterator_object_type): Make extern.
11681 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
11682 * python/py-cmd.c (cmdpy_object_type): Make extern.
11683 * python/py-continueevent.c (continue_event_object_type)
11684 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
11685 parameter. Update all callers.
11686 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
11687 * python/py-exitedevent.c (exited_event_object_type): Make extern.
11688 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
11689 * python/py-function.c (fnpy_object_type): Make extern.
11690 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
11691 * python/py-infevents.c (call_pre_event_object_type)
11692 (inferior_call_post_event_object_type).
11693 (memory_changed_event_object_type): Make extern.
11694 * python/py-infthread.c (thread_object_type): Make extern.
11695 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
11696 * python/py-linetable.c (linetable_entry_object_type)
11697 (linetable_object_type, ltpy_iterator_object_type): Make extern.
11698 * python/py-newobjfileevent.c (new_objfile_event_object_type)
11699 (clear_objfiles_event_object_type): Make extern.
11700 * python/py-objfile.c (objfile_object_type): Make extern.
11701 * python/py-param.c (parmpy_object_type): Make extern.
11702 * python/py-progspace.c (pspace_object_type): Make extern.
11703 * python/py-signalevent.c (signal_event_object_type): Make extern.
11704 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
11705 * python/py-type.c (type_object_type, field_object_type)
11706 (type_iterator_object_type): Make extern.
11707 * python/python.c (python_extension_script_ops)
11708 (python_extension_ops): Make extern.
11709 * stap-probe.c (stap_probe_ops): Make extern.
11710
11711 2015-02-11 Pedro Alves <pedro@codesourcery.com>
11712
11713 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
11714 because the event thread is not the current thread.
11715
11716 2015-02-11 Doug Evans <xdje42@gmail.com>
11717
11718 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
11719 been initialized yet, return NULL.
11720
11721 2015-02-11 Doug Evans <dje@google.com>
11722
11723 * symfile.h (new_symfile_objfile): Delete.
11724 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
11725 All callers updated.
11726
11727 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11728
11729 * tui/tui-io.c (tui_handle_resize_during_io): Call
11730 tui_update_gdb_sizes() after resizing the screen.
11731 * tui/tui.c (tui_enable): Resize the terminal before
11732 calling tui_update_gdb_sizes().
11733
11734 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
11735
11736 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
11737 line before printing a newline.
11738
11739 2015-02-11 Mark Wielaard <mjw@redhat.com>
11740
11741 * utils.c (producer_is_gcc): Return true or false.
11742
11743 2015-02-10 Mark Wielaard <mjw@redhat.com>
11744
11745 * utils.h (producer_is_gcc): Change return type to bool. Add major
11746 argument.
11747 * utils.c (producer_is_gcc): Likewise.
11748 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
11749 * dwarf2read.c (check_producer): Likewise.
11750
11751 2015-02-10 Pedro Alves <palves@redhat.com>
11752
11753 * infrun.c (displaced_step_fixup): Switch to the event thread
11754 before calling gdbarch_displaced_step_fixup.
11755
11756 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
11757
11758 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
11759
11760 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
11761
11762 * ada-varobj.c (ada_name_of_child): Constify parent.
11763 (ada_path_expr_of_child): Same.
11764 (ada_value_of_child): Same.
11765 (ada_type_of_child): Same.
11766 * c-varobj.c (c_is_path_expr_parent): Same.
11767 (c_describe_child): Same.
11768 (c_name_of_child): Same.
11769 (c_value_of_child): Same.
11770 (c_type_of_child): Same.
11771 (cplus_number_of_children): Same.
11772 (cplus_describe_child): Constify var.
11773 (cplus_name_of_child): Constify parent.
11774 (cplus_value_of_child): Same.
11775 (cplus_type_of_child): Same.
11776 * jv-varobj.c (java_name_of_child): Same.
11777 (java_value_of_child): Same.
11778 (java_type_of_child): Same.
11779 * varobj.c (value_of_child): Same.
11780 (varobj_default_is_path_expr_parent): Constify var, parent and return
11781 value.
11782 (varobj_get_path_expr): Constify var, modify path_expr through
11783 mutable_var.
11784 (install_new_value): Constify parent.
11785 (value_of_child): Constify parent.
11786 * varobj.h (struct varobj): Constify parent.
11787 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
11788 type_of_child.
11789 (varobj_get_path_expr): Constify var.
11790 (varobj_get_path_expr_parent): Constify var and return value.
11791
11792 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
11793
11794 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
11795 (arm_prologue_this_id): Move PC and SP limit checks to
11796 arm_prologue_unwind_stop_reason.
11797 (arm_prologue_unwind) <stop_reason> : Set to
11798 arm_prologue_unwind_stop_reason.
11799
11800 2015-02-09 Mark Wielaard <mjw@redhat.com>
11801
11802 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
11803 DW_LANG_Fortran08 as language_fortran.
11804
11805 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
11806
11807 PR remote/17946
11808 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
11809 of pointer against char.
11810
11811 2015-02-09 Mark Wielaard <mjw@redhat.com>
11812
11813 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
11814 (c_type_print_modifier): Likewise.
11815 * dwarf2read.c (read_tag_atomic_type): New function.
11816 (read_type_die_1): Handle DW_TAG_atomic_type.
11817 * gdbtypes.c (make_atomic_type): New function.
11818 (recursive_dump_type): Handle TYPE_ATOMIC.
11819 * gdbtypes.h (enum type_flag_values): Renumber.
11820 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
11821 (TYPE_ATOMIC): New macro.
11822 (make_atomic_type): Declare.
11823
11824 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11825
11826 * btrace.c (ftrace_find_call): Skip gaps.
11827 (ftrace_new_function): Initialize level.
11828 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
11829 (ftrace_new_switch): Update
11830 level computation.
11831 (ftrace_new_gap): New.
11832 (ftrace_update_function): Create new function after gap.
11833 (btrace_compute_ftrace_bts): Create gap on error.
11834 (btrace_stitch_bts): Update parameters. Clear trace if it
11835 becomes empty.
11836 (btrace_stitch_trace): Update parameters. Update callers.
11837 (btrace_clear): Reset the number of gaps.
11838 (btrace_insn_get): Return NULL if the iterator points to a gap.
11839 (btrace_insn_number): Return zero if the iterator points to a gap.
11840 (btrace_insn_end): Allow gaps at the end.
11841 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
11842 (btrace_find_insn_by_number): Assert that the found iterator does
11843 not point to a gap.
11844 (btrace_call_next, btrace_call_prev): Assert that the last function
11845 is not a gap.
11846 * btrace.h (btrace_bts_error): New.
11847 (btrace_function): Update comment.
11848 (btrace_function) <insn, insn_offset, number>: Update comment.
11849 (btrace_function) <errcode>: New.
11850 (btrace_thread_info) <ngaps>: New.
11851 (btrace_thread_info) <replay>: Update comment.
11852 (btrace_insn_get): Update comment.
11853 * record-btrace.c (btrace_ui_out_decode_error): New.
11854 (record_btrace_info): Print number of gaps.
11855 (btrace_insn_history, btrace_call_history): Call
11856 btrace_ui_out_decode_error for gaps.
11857 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
11858
11859 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11860
11861 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
11862 * nat/linux-btrace.c: (btrace_this_cpu): New.
11863 (cpu_supports_bts): Call btrace_this_cpu.
11864 (intel_supports_bts): Add cpu parameter.
11865
11866 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11867
11868 * btrace.h (btrace_insn_class): New.
11869 (btrace_insn) <size, iclass>: New.
11870 * btrace.c (ftrace_find_call): Update parameters. Update users.
11871 Use instruction classification.
11872 (ftrace_new_return): Update parameters. Update users.
11873 (ftrace_update_function): Update parameters. Update users. Use
11874 instruction classification.
11875 (ftrace_update_insns): Update parameters. Update users.
11876 (ftrace_classify_insn): New.
11877 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
11878 TRY_CATCH around call to gdb_insn_length.
11879
11880 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11881
11882 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
11883 Update parameters. Update users.
11884
11885 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11886
11887 * btrace.c (parse_xml_btrace_conf_bts): Add size.
11888 (btrace_conf_bts_attributes): New.
11889 (btrace_conf_children): Add attributes.
11890 * common/btrace-common.h (btrace_config_bts): New.
11891 (btrace_config)<bts>: New.
11892 (btrace_config): Update comment.
11893 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
11894 Use config.
11895 * features/btrace-conf.dtd: Increment version. Add size
11896 attribute to bts element.
11897 * record-btrace.c (set_record_btrace_bts_cmdlist,
11898 show_record_btrace_bts_cmdlist): New.
11899 (record_btrace_adjust_size, record_btrace_print_bts_conf,
11900 record_btrace_print_conf, cmd_set_record_btrace_bts,
11901 cmd_show_record_btrace_bts): New.
11902 (record_btrace_info): Call record_btrace_print_conf.
11903 (_initialize_record_btrace): Add commands.
11904 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
11905 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
11906 (btrace_sync_conf): Synchronize bts size.
11907 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
11908 * NEWS: Announce new commands and new packets.
11909
11910 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11911
11912 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
11913 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
11914 (x86_linux_btrace_conf): New.
11915 (x86_linux_create_target): Initialize to_btrace_conf.
11916 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
11917 Check format. Split into this and ...
11918 (linux_enable_bts): ... this.
11919 (linux_btrace_conf): New.
11920 (perf_event_skip_record): Renamed into ...
11921 (perf_event_skip_bts_record): ... this. Updated users.
11922 (linux_disable_btrace): Split into this and ...
11923 (linux_disable_bts): ... this.
11924 (linux_read_btrace): Check format.
11925 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
11926 (linux_btrace_conf): New.
11927 (btrace_target_info)<ptid>: Moved.
11928 (btrace_target_info)<conf>: New.
11929 (btrace_target_info): Split into this and ...
11930 (btrace_tinfo_bts): ... this. Updated users.
11931 * btrace.c (btrace_enable): Update parameters.
11932 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
11933 (btrace_conf_children, btrace_conf_attributes)
11934 (btrace_conf_elements): New.
11935 * btrace.h (btrace_enable): Update parameters.
11936 (btrace_conf, parse_xml_btrace_conf): New.
11937 * common/btrace-common.h (btrace_config): New.
11938 * feature/btrace-conf.dtd: New.
11939 * record-btrace.c (record_btrace_conf): New.
11940 (record_btrace_cmdlist): New.
11941 (record_btrace_enable_warn, record_btrace_open): Pass
11942 &record_btrace_conf.
11943 (record_btrace_info): Print recording format.
11944 (cmd_record_btrace_bts_start): New.
11945 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
11946 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11947 Add "record bts" alias command.
11948 * remote.c (remote_state)<btrace_config>: New.
11949 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11950 (remote_protocol_features): Add qXfer:btrace-conf:read.
11951 (remote_open_1): Call remote_btrace_reset.
11952 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11953 (btrace_target_info)<conf>: New.
11954 (btrace_sync_conf, btrace_read_config): New.
11955 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11956 btrace_read_conf.
11957 (remote_btrace_conf): New.
11958 (init_remote_ops): Initialize to_btrace_conf.
11959 (_initialize_remote): Add qXfer:btrace-conf packet.
11960 * target.c (target_enable_btrace): Update parameters.
11961 (target_btrace_conf): New.
11962 * target.h (target_enable_btrace): Update parameters.
11963 (target_btrace_conf): New.
11964 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11965 (target_ops)<to_enable_btrace>: Update parameters and comment.
11966 (target_ops)<to_btrace_conf>: New.
11967 * target-delegates: Regenerate.
11968 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11969 (target_debug_print_const_struct_btrace_target_info_p): New.
11970 * NEWS: Announce new command and new packet.
11971
11972 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11973
11974 * nat/linux-btrace.h (perf_event_buffer): New.
11975 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11976 <bts>: ... this.
11977 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11978 (perf_event_buffer_size, perf_event_buffer_begin)
11979 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11980 Updated users.
11981 (perf_event_new_data): New.
11982
11983 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11984
11985 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11986 * record-btrace.c (record_btrace_open): Remove call to
11987 target_supports_btrace.
11988 * remote.c (remote_supports_btrace): Update parameters.
11989 * target.c (target_supports_btrace): Update parameters.
11990 * target.h (to_supports_btrace, target_supports_btrace): Update
11991 parameters.
11992 * target-delegates.c: Regenerate.
11993 * target-debug.h (target_debug_print_enum_btrace_format): New.
11994 * nat/linux-btrace.c
11995 (kernel_supports_btrace): Rename into ...
11996 (kernel_supports_bts): ... this. Update users. Update warning text.
11997 (intel_supports_btrace): Rename into ...
11998 (intel_supports_bts): ... this. Update users.
11999 (cpu_supports_btrace): Rename into ...
12000 (cpu_supports_bts): ... this. Update users.
12001 (linux_supports_btrace): Update parameters. Split into this and ...
12002 (linux_supports_bts): ... this.
12003 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
12004
12005 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
12006
12007 * Makefile.in (SFILES): Add common/btrace-common.c.
12008 (COMMON_OBS): Add common/btrace-common.o.
12009 (btrace-common.o): Add build rules.
12010 * btrace.c (parse_xml_btrace): Update parameters.
12011 (parse_xml_btrace_block): Set format field.
12012 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
12013 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
12014 (btrace_compute_ftrace): Split into this and...
12015 (btrace_compute_ftrace_bts): ...this.
12016 (btrace_stitch_trace): Split into this and...
12017 (btrace_stitch_bts): ...this.
12018 * btrace.h (parse_xml_btrace): Update parameters.
12019 (make_cleanup_btrace_data): New.
12020 * common/btrace-common.c: New.
12021 * common/btrace-common.h: Include common-defs.h.
12022 (btrace_block_s): Update comment.
12023 (btrace_format): New.
12024 (btrace_format_string): New.
12025 (btrace_data_bts): New.
12026 (btrace_data): New.
12027 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
12028 * remote.c (remote_read_btrace): Update parameters.
12029 * target.c (target_read_btrace): Update parameters.
12030 * target.h (target_read_btrace): Update parameters.
12031 (target_ops)<to_read_btrace>: Update parameters.
12032 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
12033 * target-delegates.c: Regenerate.
12034 * target-debug (target_debug_print_struct_btrace_data_p): New.
12035 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
12036 (linux_read_bts): ...this.
12037 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
12038
12039 2015-02-06 Doug Evans <dje@google.com>
12040
12041 * remote-m32r-sdi.c: Include symfile.h.
12042
12043 2015-02-06 Doug Evans <dje@google.com>
12044
12045 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
12046 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
12047 to here.
12048
12049 2015-02-06 Pedro Alves <palves@redhat.com>
12050
12051 * linux-thread-db.c (find_new_threads_callback): Add debug output.
12052
12053 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
12054
12055 PR gdb/15678
12056 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
12057 (enable_count_command): Check args for NULL value.
12058
12059 2015-02-05 Doug Evans <xdje42@gmail.com>
12060
12061 * guile/scm-frame.c: Fix spelling errors in a comment.
12062
12063 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12064
12065 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
12066 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
12067 return type.
12068
12069 2015-02-04 Pedro Alves <palves@redhat.com>
12070
12071 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
12072 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
12073 returns true.
12074 (resume_stopped_resumed_lwps): Don't check whether the thread is
12075 marked as executing.
12076 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
12077
12078 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12079
12080 * regset.h (struct regset): Add flags field.
12081 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
12082 * corelow.c (get_core_register_section): Add warning if the size
12083 exceeds the requested size and the regset does not have the
12084 REGSET_VARIABLE_SIZE flag set.
12085 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
12086 flag.
12087 * armbsd-tdep.c (armbsd_gregset): Likewise.
12088 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
12089 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
12090 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
12091 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
12092
12093 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12094
12095 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
12096 For ".reg-xstate", explicitly specify the requested section size
12097 via X86_XSTATE_SIZE instead of just 0 on input and
12098 X86_XSTATE_MAX_SIZE on output.
12099 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
12100 Likewise.
12101
12102 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
12103
12104 PR corefiles/17808:
12105 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
12106 function type, particularly its SIZE parameter.
12107 * gdbarch.h: Regenerate.
12108 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
12109 actual against required size using ">=" instead of "==".
12110 (amd64_collect_fpregset): Likewise.
12111 * i386-tdep.c (i386_supply_gregset): Likewise.
12112 (i386_collect_gregset): Likewise.
12113 (i386_supply_fpregset): Likewise.
12114 (i386_collect_fpregset): Likewise.
12115 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
12116 (mips_fill_gregset_wrapper): Likewise.
12117 (mips_supply_fpregset_wrapper): Likewise.
12118 (mips_fill_fpregset_wrapper): Likewise.
12119 (mips64_supply_gregset_wrapper): Likewise.
12120 (mips64_fill_gregset_wrapper): Likewise.
12121 (mips64_supply_fpregset_wrapper): Likewise.
12122 (mips64_fill_fpregset_wrapper): Likewise.
12123 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
12124 (am33_supply_fpregset_method): Likewise.
12125 (am33_collect_gregset_method): Likewise.
12126 (am33_collect_fpregset_method): Likewise.
12127
12128 2015-02-04 Doug Evans <dje@google.com>
12129 Pedro Alves <palves@redhat.com>
12130 Eli Zaretskii <eliz@gnu.org>
12131
12132 PR tui/17810
12133 * tui/tui-command.c (tui_refresh_cmd_win): New function.
12134 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
12135 * tui/tui-file.c: #include tui/tui-command.h.
12136 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
12137 (tui_file_flush): Refresh command window if stream is gdb_stdout.
12138 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
12139
12140 2015-02-04 Pedro Alves <palves@redhat.com>
12141
12142 Fix build breakage.
12143 * event-loop.c (gdb_do_one_event): Add default switch case.
12144
12145 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12146
12147 Filter out inferior gcc option -fpreprocessed.
12148 * compile/compile.c (filter_args): New function.
12149 (get_args): Use it.
12150
12151 2015-02-03 Pedro Alves <palves@redhat.com>
12152
12153 * event-loop.c: Don't declare nor define a queue type for
12154 gdb_event_p.
12155 (event_queue): Delete.
12156 (create_event, create_file_event, gdb_event_xfree)
12157 (initialize_event_loop, process_event): Delete.
12158 (gdb_do_one_event): Return as soon as one event is handled.
12159 (handle_file_event): Change prototype. Used the passed in
12160 file_handler pointer and ready_mask instead of looping over all
12161 file handlers.
12162 (gdb_wait_for_event): Update the poll/select timeouts before
12163 blocking. Run event handlers directly instead of queueing events.
12164 Return as soon as one event is handled.
12165 (struct async_event_handler_data): Delete.
12166 (invoke_async_event_handler): Delete.
12167 (check_async_event_handlers): Change return type to int. Run
12168 event handlers directly instead of queueing events. Return as
12169 soon as one event is handled.
12170 (handle_timer_event): Delete.
12171 (update_wait_timeout): New function, factored out from
12172 poll_timers.
12173 (poll_timers): Reimplement.
12174 * event-loop.h (initialize_event_loop): Delete declaration.
12175 * top.c (gdb_init): Don't call initialize_event_loop.
12176
12177 2015-02-03 Pedro Alves <palves@redhat.com>
12178
12179 * event-loop.c (clear_async_event_handler): New function.
12180 * event-loop.h (clear_async_event_handler): New declaration.
12181 * record-btrace.c (record_btrace_async): New function.
12182 (init_record_btrace_ops): Install record_btrace_async.
12183 * record-full.c (record_full_async): New function.
12184 (record_full_resume): Don't mark the async event source here.
12185 (init_record_full_ops): Install record_full_async.
12186 (record_full_core_resume): Don't mark the async event source here.
12187 (init_record_full_core_ops): Install record_full_async.
12188 * remote.c (remote_async): Mark and clear the async stop reply
12189 queue event-loop token as appropriate.
12190
12191 2015-02-03 Pedro Alves <palves@redhat.com>
12192
12193 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
12194 target_is_async_p instead of target_can_async.
12195 (linux_nat_wait): Use target_is_async_p instead of
12196 target_can_async. Don't enable async here.
12197 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
12198 target_is_async_p instead of target_can_async.
12199
12200 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
12201
12202 * varobj.h (lang_varobj_ops): Mention which return values need
12203 to be freed.
12204
12205 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12206
12207 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
12208
12209 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12210
12211 PR gdb/17856:
12212 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
12213 results found in the cache.
12214
12215 2015-02-02 Joel Brobecker <brobecker@adacore.com>
12216
12217 PR gdb/17854:
12218 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
12219 when allocating a new one.
12220
12221 2015-02-01 Tom Tromey <tom@tromey.com>
12222
12223 * MAINTAINERS: Remove myself.
12224
12225 2015-01-31 Doug Evans <xdje42@gmail.com>
12226
12227 * dwarf2read.c (process_structure_scope): Update setting of
12228 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
12229 * gdbtypes.c (internal_type_vptr_fieldno): New function.
12230 (set_type_vptr_fieldno): New function.
12231 (internal_type_vptr_basetype): New function.
12232 (set_type_vptr_basetype): New function.
12233 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
12234 TYPE_VPTR_BASETYPE.
12235 (allocate_cplus_struct_type): Initialize vptr_fieldno.
12236 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
12237 (print_cplus_stuff): ... moved here.
12238 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
12239 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
12240 moved to ...
12241 (struct cplus_struct_type): ... here. All uses updated.
12242 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
12243 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
12244 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
12245 * stabsread.c (read_tilde_fields): Update setting of
12246 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
12247
12248 2015-01-31 Doug Evans <xdje42@gmail.com>
12249
12250 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
12251 to self_p.
12252 (cp_print_class_member): Rename local domain to self_type.
12253 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
12254 domain_type to self_type.
12255 (set_die_type) <need_gnat_info>: Handle
12256 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
12257 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
12258 TYPE_SPECIFIC_SELF_TYPE.
12259 * gdbtypes.c (internal_type_self_type): New function.
12260 (set_type_self_type): New function.
12261 (smash_to_memberptr_type): Rename parameter domain to self_type.
12262 Update setting of TYPE_SELF_TYPE.
12263 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
12264 (smash_to_method_type): Rename parameter domain to self_type.
12265 Update setting of TYPE_SELF_TYPE.
12266 (check_stub_method): Call smash_to_method_type.
12267 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
12268 (copy_type_recursive): Ditto.
12269 * gdbtypes.h (enum type_specific_kind): New value
12270 TYPE_SPECIFIC_SELF_TYPE.
12271 (struct main_type) <type_specific>: New member self_type.
12272 (struct cplus_struct_type) <fn_field.type>: Update comment.
12273 (TYPE_SELF_TYPE): Rewrite.
12274 (internal_type_self_type, set_type_self_type): Declare.
12275 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
12276 self_type.
12277 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
12278 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
12279 TYPE_TARGET_TYPE.
12280 * stabsread.c (read_member_functions): Mark methods with
12281 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
12282 TYPE_SELF_TYPE.
12283
12284 2015-01-31 Doug Evans <xdje42@gmail.com>
12285
12286 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
12287 All uses updated.
12288
12289 2015-01-31 Doug Evans <xdje42@gmail.com>
12290
12291 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
12292 or unions. Return zero if union.
12293 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
12294 (gnuv3_rtti_type): Pass already-check_typedef'd value to
12295 gnuv3_get_vtable.
12296 (compute_vtable_size): Assert only passed structs.
12297 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
12298
12299 2015-01-31 Doug Evans <xdje42@gmail.com>
12300
12301 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
12302 kinds.
12303
12304 2015-01-31 Gary Benson <gbenson@redhat.com>
12305 Doug Evans <dje@google.com>
12306
12307 PR cli/9007
12308 PR cli/11920
12309 PR cli/15548
12310 * cli/cli-cmds.c (complete_command): Notify user if max-completions
12311 reached.
12312 * common/common-exceptions.h (enum errors)
12313 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
12314 * completer.h (get_max_completions_reached_message): New declaration.
12315 (max_completions): Likewise.
12316 (completion_tracker_t): New typedef.
12317 (new_completion_tracker): New declaration.
12318 (make_cleanup_free_completion_tracker): Likewise.
12319 (maybe_add_completion_enum): New enum.
12320 (maybe_add_completion): New declaration.
12321 (throw_max_completions_reached_error): Likewise.
12322 * completer.c (max_completions): New global variable.
12323 (new_completion_tracker): New function.
12324 (free_completion_tracker): Likewise.
12325 (make_cleanup_free_completion_tracker): Likewise.
12326 (maybe_add_completions): Likewise.
12327 (throw_max_completions_reached_error): Likewise.
12328 (complete_line): Remove duplicates and limit result to max_completions
12329 entries.
12330 (get_max_completions_reached_message): New function.
12331 (gdb_display_match_list): Handle max_completions.
12332 (_initialize_completer): New declaration and function.
12333 * symtab.c: Include completer.h.
12334 (completion_tracker): New static variable.
12335 (completion_list_add_name): Call maybe_add_completion.
12336 (default_make_symbol_completion_list_break_on_1): Renamed from
12337 default_make_symbol_completion_list_break_on. Maintain
12338 completion_tracker across calls to completion_list_add_name.
12339 (default_make_symbol_completion_list_break_on): New function.
12340 * top.c (init_main): Set rl_completion_display_matches_hook.
12341 * tui/tui-io.c: Include completer.h.
12342 (tui_old_rl_display_matches_hook): New static global.
12343 (tui_rl_display_match_list): Notify user if max-completions reached.
12344 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
12345 * NEWS (New Options): Mention set/show max-completions.
12346
12347 2015-01-31 Gary Benson <gbenson@redhat.com>
12348
12349 * symtab.c (struct add_name_data) <code>: New field.
12350 Updated comments.
12351 (add_symtab_completions): New function.
12352 (symtab_expansion_callback): Likewise.
12353 (default_make_symbol_completion_list_break_on): Set datum.code.
12354 Move minimal symbol scan before calling expand_symtabs_matching.
12355 Scan known primary symtabs for externs and statics before calling
12356 expand_symtabs_matching. Pass symtab_expansion_callback as
12357 expansion_notify argument to expand_symtabs_matching. Do not scan
12358 primary symtabs for externs and statics after calling
12359 expand_symtabs_matching.
12360
12361 2015-01-31 Gary Benson <gbenson@redhat.com>
12362
12363 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
12364 (struct quick_symbol_functions) <expand_symtabs_matching>:
12365 New argument expansion_notify. All uses updated.
12366 (expand_symtabs_matching): New argument expansion_notify.
12367 All uses updated.
12368 * symfile-debug.c (debug_qf_expand_symtabs_matching):
12369 Also print expansion notify.
12370 * symtab.c (expand_symtabs_matching_via_partial): Call
12371 expansion_notify whenever a partial symbol table is expanded.
12372 * dwarf2read.c (dw2_expand_symtabs_matching): Call
12373 expansion_notify whenever a symbol table is instantiated.
12374
12375 2015-01-31 Doug Evans <xdje42@gmail.com>
12376
12377 * cli-out.c: #include completer.h, readline/readline.h.
12378 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
12379 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
12380 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
12381 * cli-out.h (cli_display_match_list): Declare.
12382 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
12383 (ELLIPSIS_LEN): Ditto.
12384 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
12385 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
12386 (gdb_fnprint, gdb_print_filename): Ditto.
12387 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
12388 (gdb_display_match_list): Ditto.
12389 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
12390 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
12391 (mld_beep_ftype, mld_read_key_ftype): Ditto.
12392 (match_list_displayer): New struct.
12393 (gdb_display_match_list): Declare.
12394 * top.c (init_main): Set rl_completion_display_matches_hook.
12395 * tui/tui-io.c: #include completer.h.
12396 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
12397 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
12398 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
12399 (tui_mld_getc, tui_mld_read_key): Ditto.
12400 (tui_rl_display_match_list): Rewrite.
12401 (tui_handle_resize_during_io): New arg for_completion. All callers
12402 updated.
12403
12404 2015-01-31 Doug Evans <xdje42@gmail.com>
12405
12406 Add symbol lookup cache.
12407 * NEWS: Document new options and commands.
12408 * symtab.c (symbol_cache_key): New static global.
12409 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
12410 (SYMBOL_LOOKUP_FAILED): New macro.
12411 (symbol_cache_slot_state): New enum.
12412 (block_symbol_cache): New struct.
12413 (symbol_cache): New struct.
12414 (new_symbol_cache_size, symbol_cache_size): New static globals.
12415 (hash_symbol_entry, eq_symbol_entry): New functions.
12416 (symbol_cache_byte_size, resize_symbol_cache): New functions.
12417 (make_symbol_cache, free_symbol_cache): New functions.
12418 (get_symbol_cache, symbol_cache_cleanup): New function.
12419 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
12420 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
12421 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
12422 (symbol_cache_flush, symbol_cache_dump): New functions.
12423 (maintenance_print_symbol_cache): New function.
12424 (maintenance_flush_symbol_cache): New function.
12425 (symbol_cache_stats): New function.
12426 (maintenance_print_symbol_cache_statistics): New function.
12427 (symtab_new_objfile_observer): New function.
12428 (symtab_free_objfile_observer): New function.
12429 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
12430 (_initialize_symtab): Init symbol_cache_key. New parameter
12431 maint symbol-cache-size. New maint commands print symbol-cache,
12432 print symbol-cache-statistics, flush-symbol-cache.
12433 Install new_objfile, free_objfile observers.
12434
12435 2015-01-31 Joel Brobecker <brobecker@adacore.com>
12436
12437 PR symtab/17855
12438 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
12439 to end.
12440
12441 2015-01-31 Doug Evans <xdje42@gmail.com>
12442
12443 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
12444 * auto-load.c: #include ctype.h.
12445 (struct auto_load_pspace_info): Replace member loaded_scripts with
12446 new members loaded_script_files, loaded_script_texts.
12447 (auto_load_pspace_data_cleanup): Update.
12448 (init_loaded_scripts_info): Update.
12449 (get_auto_load_pspace_data_for_loading): Update.
12450 (maybe_add_script_file): Renamed from maybe_add_script. All callers
12451 updated.
12452 (maybe_add_script_text): New function.
12453 (clear_section_scripts): Update.
12454 (source_script_file, execute_script_contents): New functions.
12455 (source_section_scripts): Add support for
12456 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
12457 (print_scripts): New function.
12458 (auto_load_info_scripts): Also print inlined scripts.
12459 (maybe_print_unsupported_script_warning): Renamed from
12460 unsupported_script_warning_print. All callers updated.
12461 (maybe_print_script_not_found_warning): Renamed from
12462 script_not_found_warning_print. All callers updated.
12463 * extension-priv.h (struct extension_language_script_ops): New member
12464 objfile_script_executor.
12465 * extension.c (ext_lang_objfile_script_executor): New function.
12466 * extension.h (objfile_script_executor_func): New typedef.
12467 (ext_lang_objfile_script_executor): Declare.
12468 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
12469 * guile/guile.c (guile_extension_script_ops): Update.
12470 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
12471 * python/python.c (python_extension_script_ops): Update.
12472 (gdbpy_execute_objfile_script): New function.
12473
12474 2015-01-31 Eli Zaretskii <eliz@gnu.org>
12475
12476 * tui/tui-io.c (tui_expand_tabs): New function.
12477 (tui_puts, tui_redisplay_readline): Expand TABs into the
12478 appropriate number of spaces.
12479 * tui/tui-regs.c: Include tui-io.h.
12480 (tui_register_format): Call tui_expand_tabs to expand TABs into
12481 the appropriate number of spaces.
12482 * tui/tui-io.h: Add prototype for tui_expand_tabs.
12483
12484 2015-01-30 Doug Evans <dje@google.com>
12485
12486 * NEWS: "info source" command now display producer string if present.
12487 * source.c (source_info): Print producer string if present.
12488
12489 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12490
12491 * varobj.c (varobj_delete): Fix comment.
12492
12493 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12494
12495 * varobj.c (create_child): Modify comment.
12496
12497 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12498
12499 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
12500 parameter.
12501 (ada_name_of_variable): Same.
12502 (ada_path_expr_of_child): Same.
12503 (ada_value_of_variable): Same.
12504 (ada_value_is_changeable_p): Same.
12505 (ada_value_has_mutated): Same.
12506 * c-varobj.c (varobj_is_anonymous_child): Same.
12507 (c_is_path_expr_parent): Same.
12508 (c_number_of_children): Same.
12509 (c_name_of_variable): Same.
12510 (c_path_expr_of_child): Same.
12511 (get_type): Same.
12512 (c_value_of_variable): Same.
12513 (cplus_number_of_children): Same.
12514 (cplus_name_of_variable): Same.
12515 (cplus_path_expr_of_child): Same.
12516 (cplus_value_of_variable): Same.
12517 * jv-varobj.c (java_number_of_children): Same.
12518 (java_name_of_variable): Same.
12519 (java_path_expr_of_child): Same.
12520 (java_value_of_variable): Same.
12521 * varobj.c (number_of_children): Same.
12522 (name_of_variable): Same.
12523 (is_root_p): Same.
12524 (varobj_ensure_python_env): Same.
12525 (varobj_get_objname): Same.
12526 (varobj_get_expression): Same.
12527 (varobj_get_display_format): Same.
12528 (varobj_get_display_hint): Same.
12529 (varobj_has_more): Same.
12530 (varobj_get_thread_id): Same.
12531 (varobj_get_frozen): Same.
12532 (dynamic_varobj_has_child_method): Same.
12533 (varobj_get_gdb_type): Same.
12534 (is_path_expr_parent): Same.
12535 (varobj_default_is_path_expr_parent): Same.
12536 (varobj_get_language): Same.
12537 (varobj_get_attributes): Same.
12538 (varobj_is_dynamic_p): Same.
12539 (varobj_get_child_range): Same.
12540 (varobj_value_has_mutated): Same.
12541 (varobj_get_value_type): Same.
12542 (number_of_children): Same.
12543 (name_of_variable): Same.
12544 (check_scope): Same.
12545 (varobj_editable_p): Same.
12546 (varobj_value_is_changeable_p): Same.
12547 (varobj_floating_p): Same.
12548 (varobj_default_value_is_changeable_p): Same.
12549
12550 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12551
12552 * varobj.c (varobj_get_path_expr): Set var->path_expr.
12553 * c-varobj.c (c_path_expr_of_child): Set local var instead of
12554 child->path_expr.
12555 (cplus_path_expr_of_child): Same.
12556
12557 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12558
12559 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
12560 result.
12561 (mi_cmd_var_info_expression): Same.
12562 * varobj.c (varobj_get_expression): Mention in the comment that
12563 the result must by freed by the caller.
12564
12565 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
12566
12567 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
12568 varobj_get_type.
12569 (varobj_update_one): Same.
12570 * varobj.c (update_type_if_necessary): Free curr_type_str and
12571 new_type_str.
12572 (varobj_get_type): Specify in comment that the result needs to be
12573 freed by the caller.
12574
12575 2015-01-29 Doug Evans <dje@google.com>
12576
12577 PR symtab/17890
12578 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
12579
12580 2015-01-25 Mark Wielaard <mjw@redhat.com>
12581
12582 * dwarf2read.c (checkproducer): Call producer_is_gcc.
12583 * utils.c (producer_is_gcc_ge_4): Likewise.
12584 (producer_is_gcc): New function.
12585 * utils.h (producer_is_gcc): New declaration.
12586
12587 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12588
12589 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
12590 kind.
12591 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
12592 parameter by "addr_stack" parameter.
12593 (resolve_dynamic_range): Replace "addr" parameter by
12594 "stack_addr" parameter. Update function documentation.
12595 Update code accordingly.
12596 (resolve_dynamic_array, resolve_dynamic_union)
12597 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
12598 (resolve_dynamic_type): Update code, following the changes made
12599 to resolve_dynamic_type_internal's interface.
12600 * dwarf2loc.h (struct property_addr_info): New.
12601 (dwarf2_evaluate_property): Replace "address" parameter
12602 by "addr_stack" parameter. Adjust function documentation.
12603 (struct dwarf2_offset_baton): New.
12604 (struct dwarf2_property_baton): Update documentation of
12605 field "referenced_type" to be more general. New field
12606 "offset_info" in union data field.
12607 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
12608 parameter by "addr_stack" parameter. Adjust code accordingly.
12609 Add support for PROP_ADDR_OFFSET properties.
12610 * dwarf2read.c (attr_to_dynamic_prop): Add support for
12611 DW_AT_data_member_location attributes as well. Use case
12612 statements instead of if/else condition.
12613
12614 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12615
12616 * ada-varobj.c (ada_varobj_get_array_number_of_children):
12617 Return zero if PARENT_VALUE is NULL and parent_type's
12618 range type is dynamic.
12619
12620 2015-01-29 Joel Brobecker <brobecker@adacore.com>
12621
12622 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
12623 nonzero if the type's subtype is dynamic.
12624 (resolve_dynamic_range): Also resolve the range's subtype.
12625
12626 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
12627
12628 Pushed by Joel Brobecker <brobecker@adacore.com>.
12629 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
12630
12631 2015-01-27 Doug Evans <dje@google.com>
12632
12633 * NEWS: Mention gdb.Objfile.username.
12634 * python/py-objfile.c (objfpy_get_username): New function.
12635 (objfile_getset): Add "username".
12636
12637 2015-01-24 Mark Wielaard <mjw@redhat.com>
12638
12639 * stack.c (return_command): Markup warning message with _.
12640
12641 2015-01-24 Doug Evans <xdje42@gmail.com>
12642
12643 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
12644
12645 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12646
12647 Fix 100x slowdown regression on DWZ files.
12648 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
12649 (struct line_header): Add offset and offset_in_dwz.
12650 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
12651 (free_line_header_voidp): New declaration.
12652 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
12653 functions.
12654 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
12655 (handle_DW_AT_stmt_list): Use line_header_hash.
12656 (free_line_header_voidp): New function.
12657 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
12658 (dwarf_decode_lines): New parameter decode_mapping, use it.
12659 (dwarf2_free_objfile): Free line_header_hash.
12660
12661 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
12662
12663 PR gdb/17416
12664 * valops.c (value_rtti_indirect_type): Catch exception thrown by
12665 value_ind.
12666
12667 2015-01-15 Mark Wielaard <mjw@redhat.com>
12668
12669 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
12670 DW_AT_noreturn.
12671 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
12672 calling_convention an 8 bit bit field.
12673 (TYPE_NO_RETURN): New macro.
12674 * infcmd.c (finish_command): Query if function does not return
12675 normally.
12676 * stack.c (return_command): Likewise.
12677
12678 2015-01-23 Pedro Alves <palves@redhat.com>
12679
12680 * linux-nat.c (linux_is_async_p): New macro.
12681 (linux_nat_is_async_p):
12682 (linux_nat_terminal_inferior): Check whether the target can async
12683 instead of whether it is already async.
12684 (linux_nat_terminal_ours): Don't check whether the target is
12685 async.
12686 (linux_async_pipe): Use linux_is_async_p.
12687
12688 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12689
12690 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
12691 '-ascending'.
12692 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
12693 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
12694 Sort tp_array using tp_array_compar.
12695 (_initialize_thread): Extend thread_apply_all_command help.
12696
12697 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12698
12699 * corelow.c (core_open): Call also thread_command.
12700 * gdbthread.h (thread_command): New prototype moved from ...
12701 * thread.c (thread_command): ... here.
12702 (thread_command): Make it global.
12703
12704 2015-01-22 Pedro Alves <palves@redhat.com>
12705
12706 * configure.ac [*mingw32*]: Check $curses_found instead of
12707 $prefer_curses.
12708 * configure: Regenerate.
12709 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
12710 HAVE_NCURSES_NCURSES_H checks.
12711
12712 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12713
12714 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
12715 fails with the 1st arg NULL, try again with "unknown". Don't test
12716 the "cup" capability: it isn't supported by the Windows port of
12717 ncurses, but the Windows console driver is still capable of
12718 supporting TUI.
12719
12720 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
12721
12722 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
12723
12724 2015-01-22 Eli Zaretskii <eliz@gnu.org>
12725
12726 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
12727 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
12728 reason that "make TAGS" is broken.
12729
12730 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
12731
12732 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
12733 and check additional store instructions.
12734
12735 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12736
12737 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
12738
12739 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
12740
12741 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
12742 ppc_canonicalize_syscall, ppc_linux_syscall_record,
12743 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
12744 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12745 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
12746 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
12747 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
12748 ppc_process_record_op19, ppc_process_record_op31,
12749 ppc_process_record_op59, ppc_process_record_op60,
12750 ppc_process_record_op63): Likewise.
12751
12752 2015-01-20 Joel Brobecker <brobecker@adacore.com>
12753
12754 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
12755 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
12756 strerror.
12757
12758 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
12759
12760 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
12761 ppc_process_record_op31, ppc_process_record_op59,
12762 ppc_process_record_op60, ppc_process_record_op63,
12763 ppc_process_record): Fix -Wformat warning.
12764 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
12765 Remove unused variables.
12766
12767 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
12768
12769 * MAINTAINERS (Write After Approval): Add "Chen Gang".
12770
12771 2015-01-19 Eli Zaretskii <eliz@gnu.org>
12772
12773 * configure.ac [*mingw32*]: Only add windows-termcap.o to
12774 CONFIG_OBS if not building with a curses library.
12775 * configure: Regenerate.
12776
12777 * windows-termcap.c: Include defs.h. Make the whole body empty if
12778 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
12779 HAVE_NCURSES_NCURSES_H is defined.
12780
12781 2015-01-19 Joel Brobecker <brobecker@adacore.com>
12782
12783 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
12784 from end of line to start of next line.
12785
12786 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12787
12788 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
12789 Scan PLT stub backward for reverse debugging.
12790 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
12791
12792 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12793 Ulrich Weigand <uweigand@de.ibm.com>
12794
12795 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
12796 gdb_target_obs.
12797 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
12798 record.
12799 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
12800 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
12801 (ppc_linux_init_abi): Set process_record, process_record_signal.
12802 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
12803 ppc_linux_record_tdep to gdbarch_tdep.
12804 (ppc_process_record): New declaration.
12805 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
12806 ppc_process_record_op19, ppc_process_record_op31,
12807 ppc_process_record_op59, ppc_process_record_op60,
12808 ppc_process_record_op63, ppc_process_record): New functions.
12809
12810 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
12811
12812 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
12813 rs6000_in_function_epilogue_frame_p and add an argument
12814 for frame_info.
12815 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
12816 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
12817 New functions.
12818 (rs6000_epilogue_frame_unwind): New.
12819 (rs6000_gdbarch_init): Append epilogue unwinder.
12820
12821 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12822
12823 * nat/linux-personality.c: Replace "#ifndef
12824 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
12825 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
12826 systems.
12827
12828 2015-01-16 Eli Zaretskii <eliz@gnu.org>
12829
12830 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
12831 functions.
12832 (_initialize_tui_win) <border-kind, border-mode>:
12833 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
12834 (tui_set_tab_width_command): Fix the commentary.
12835
12836 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
12837
12838 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
12839 Doc fix.
12840 (tui_set_tab_width_command): Delete and recreate the source and
12841 the disassembly windows, to show the effect of the changed tab
12842 size immediately.
12843
12844 * tui/tui-data.h (LINE_PREFIX): Make shorter
12845 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
12846 "Thread NNNNN.XXXX" thread ID notation on Windows.
12847
12848 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12849
12850 Fix gcc-5 compilation.
12851 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
12852
12853 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12854
12855 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
12856 (linux-personality.o): New rule.
12857 * common/common-defs.h: Include <stdint.h>.
12858 * config/aarch64/linux.mh (NATDEPFILES): Include
12859 linux-personality.o.
12860 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
12861 * config/arm/linux.mh (NATDEPFILES): Likewise.
12862 * config/i386/linux64.mh (NATDEPFILES): Likewise.
12863 * config/i386/linux.mh (NATDEPFILES): Likewise.
12864 * config/ia64/linux.mh (NATDEPFILES): Likewise.
12865 * config/m32r/linux.mh (NATDEPFILES): Likewise.
12866 * config/m68k/linux.mh (NATDEPFILES): Likewise.
12867 * config/mips/linux.mh (NATDEPFILES): Likewise.
12868 * config/pa/linux.mh (NATDEPFILES): Likewise.
12869 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
12870 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
12871 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
12872 * config/s390/linux.mh (NATDEPFILES): Likewise.
12873 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
12874 * config/sparc/linux.mh (NATDEPFILES): Likewise.
12875 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
12876 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
12877 * defs.h: Remove #include <stdint.h> (moved to
12878 common/common-defs.h).
12879 * linux-nat.c: Include nat/linux-personality.h. Remove #include
12880 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
12881 nat/linux-personality.c).
12882 (linux_nat_create_inferior): Remove code to disable address space
12883 randomization (moved to nat/linux-personality.c). Create cleanup
12884 to disable address space randomization.
12885 * nat/linux-personality.c: New file.
12886 * nat/linux-personality.h: Likewise.
12887
12888 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
12889
12890 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
12891 common/posix-strerror.c.
12892 (posix-strerror.o): New rule.
12893 (mingw-strerror.o): Likewise.
12894 * common/common-utils.h (safe_strerror): Move prototype to here,
12895 from utils.h.
12896 * common/common.host: New file.
12897 * common/mingw-strerror.c: Likewise.
12898 * common/posix-strerror.c: Likewise.
12899 * configure: Regenerated.
12900 * configure.ac: Source common/common.host. Add variable
12901 common_host_obs to gdb_host_obs.
12902 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
12903 gdb/common/posix-strerror.c when warning about the use of
12904 strerror.
12905 * mingw-hdep.c (safe_strerror): Remove definition; move it to
12906 common/mingw-strerror.c.
12907 * posix-hdep.c (safe_strerror): Remove definition; move it to
12908 common/posix-hdep.c.
12909 * utils.h (safe_strerror): Remove prototype; move to
12910 common/common-utils.h.
12911
12912 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12913
12914 GDB 7.8.2 released.
12915
12916 2015-01-15 Joel Brobecker <brobecker@adacore.com>
12917
12918 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
12919 ___XA type if the array has already been fixed.
12920
12921 2015-01-14 Yao Qi <yao@codesourcery.com>
12922
12923 * Makefile.in (ppc-linux.o): New rule.
12924 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
12925 * configure.ac: AC_CHECK_FUNCS(getauxval).
12926 * config.in: Re-generated.
12927 * configure: Re-generated.
12928 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
12929 Declare.
12930 * nat/ppc-linux.c: New file.
12931 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
12932 Call ppc64_64bit_inferior_p.
12933
12934 2015-01-14 Yao Qi <yao@codesourcery.com>
12935
12936 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
12937 nat/ppc-linux.h.
12938 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
12939 (PPC_FEATURE_HAS_DFP): Likewise.
12940 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
12941 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
12942 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
12943 Include "nat/ppc-linux.h".
12944 * nat/ppc-linux.h: New file.
12945 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12946
12947 2015-01-14 Pedro Alves <palves@redhat.com>
12948
12949 PR gdb/17525
12950 * breakpoint.c: Include "interps.h".
12951 (bpstat_do_actions_1): Also check whether the interpreter is
12952 async.
12953
12954 2015-01-14 Pedro Alves <palves@redhat.com>
12955
12956 PR cli/17828
12957 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12958 reinstall if the interpreter is sync.
12959
12960 2015-01-13 Doug Evans <dje@google.com>
12961
12962 * objfiles.c (objfile_filename): New function.
12963 * objfiles.h (objfile_filename): Declare it.
12964 (objfile_name): Add function comment.
12965 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12966 bfd file name (which may be realpath'd), and the original name.
12967
12968 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12969
12970 * NEWS: Create a new section for the next release branch.
12971 Rename the section of the current branch, now that it has
12972 been cut.
12973
12974 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12975
12976 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12977 * version.in: Bump version to 7.9.50.DATE-cvs.
12978
12979 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12980
12981 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12982 Remove trailing new-line in argument of call to warning.
12983
12984 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12985
12986 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12987 new-line in argument of call to "warning".
12988
12989 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12990
12991 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12992 in static block, then try searching for primitive types.
12993
12994 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12995
12996 * top.h (gdb_add_history): Declare.
12997 * top.c (command_count): New variable.
12998 (gdb_add_history): New function.
12999 (gdb_safe_append_history): New static function.
13000 (quit_force): Call it.
13001 (command_line_input): Use gdb_add_history instead of
13002 add_history.
13003 * event-top.c (command_line_handler): Likewise.
13004
13005 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
13006
13007 PR gdb/17046
13008 * darwin-nat.c: Replace <machine/setjmp.h> #include by
13009 <setjmp.h> #include.
13010
13011 2015-01-11 Doug Evans <xdje42@gmail.com>
13012
13013 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
13014
13015 2015-01-11 Doug Evans <xdje42@gmail.com>
13016
13017 PR gdb/15830
13018 * NEWS: The "maint demangle" command is renamed as "demangle".
13019 * demangle.c: #include cli/cli-utils.h, language.h.
13020 (demangle_command): New function.
13021 (_initialize_demangle): Add new command "demangle".
13022 * maint.c (maintenance_demangle): Stub out.
13023 (_initialize_maint_cmds): Update help text for "maint demangle",
13024 and mark as deprecated.
13025
13026 2015-01-11 Mark Kettenis <kettenis@gnu.org>
13027
13028 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
13029 inferior_thread is a function.
13030
13031 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13032
13033 * Makefile.in (.y.c): Don't munge yacc's #line
13034 directives.
13035
13036 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
13037
13038 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
13039 to prompt for input.
13040 * tui/tui-hooks.c (tui_query_hook): Remove.
13041 (tui_install_hooks): Don't set deprecated_query_hook.
13042 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
13043 height calculation. Always update the command window's cur_line.
13044
13045 2015-01-09 Pedro Alves <palves@redhat.com>
13046
13047 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
13048 function.
13049 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
13050 declaration.
13051 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
13052 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
13053 stop_reason.
13054 (check_stopped_by_watchpoint): New function.
13055 (save_sigtrap): Reimplement.
13056 (linux_nat_stopped_by_watchpoint): Adjust.
13057 (linux_nat_lp_status_is_event): Delete.
13058 (stop_wait_callback): Only call save_sigtrap after storing the
13059 pending status.
13060 (status_callback): If the thread had been stopped for a breakpoint
13061 that has since been removed, discard the event and resume the LWP.
13062 (count_events_callback, select_event_lwp_callback): Use
13063 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
13064 (cancel_breakpoint): Rename to ...
13065 (check_stopped_by_breakpoint): ... this. Record whether the LWP
13066 stopped for a software breakpoint or hardware breakpoint.
13067 (select_event_lwp): Only give preference to the stepping LWP in
13068 all-stop mode. Adjust comments.
13069 (stop_and_resume_callback): Remove references to new_pending_p.
13070 (linux_nat_filter_event): Likewise. Leave exit events of the
13071 leader thread pending here. Handle signal short circuiting here.
13072 Only call save_sigtrap after storing the pending waitstatus.
13073 (linux_nat_wait_1): Remove 'retry' label. Remove references to
13074 new_pending. Don't handle leaving events the caller is not
13075 interested in pending here, nor handle signal short-circuiting
13076 here. Also give equal priority to all LWPs that have had events
13077 in non-stop mode. If reporting a software breakpoint event,
13078 unadjust the LWP's PC.
13079 * linux-nat.h (enum lwp_stop_reason): New.
13080 (struct lwp_info) <stop_pc>: New field.
13081 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
13082 (struct lwp_info) <stop_reason>: New field.
13083 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
13084
13085 2015-01-09 Pedro Alves <palves@redhat.com>
13086
13087 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
13088 Set the LWP's 'resumed' flag.
13089
13090 2015-01-09 Pedro Alves <palves@redhat.com>
13091
13092 * linux-nat.c (linux_resume_one_lwp): New function.
13093 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
13094 (linux_nat_resume): Use lwp_status_pending_p and
13095 linux_resume_one_lwp.
13096 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
13097 (linux_handle_extended_wait): Use linux_resume_one_lwp.
13098 (status_callback, running_callback): Use lwp_status_pending_p.
13099 (lwp_status_pending_p): New function.
13100 (stop_and_resume_callback): Use lwp_status_pending_p.
13101 (linux_nat_filter_event): Use linux_resume_one_lwp.
13102 (linux_nat_wait_1): Always use status_callback to look for an LWP
13103 with a pending status. Use linux_resume_one_lwp.
13104 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
13105 linux_resume_one_lwp.
13106
13107 2015-01-09 Pedro Alves <palves@redhat.com>
13108
13109 * breakpoint.c (bp_location_inserted_here_p): New function,
13110 factored out from ...
13111 (breakpoint_inserted_here_p): ... here. Use
13112 ALL_BP_LOCATIONS_AT_ADDR.
13113 (software_breakpoint_inserted_here_p): Use
13114 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
13115
13116 2014-01-09 Pedro Alves <palves@redhat.com>
13117
13118 Skip enabling event reporting if the kernel supports
13119 PTRACE_EVENT_CLONE.
13120 * linux-thread-db.c: Include "nat/linux-ptrace.h".
13121 (thread_db_use_events): New function.
13122 (try_thread_db_load_1): Check thread_db_use_events before enabling
13123 event reporting.
13124 (update_thread_state): New function.
13125 (attach_thread): Use it. Check thread_db_use_events before
13126 enabling event reporting.
13127 (thread_db_detach): Check thread_db_use_events before disabling
13128 event reporting.
13129 (find_new_threads_callback): Check thread_db_use_events before
13130 enabling event reporting. Update the thread's state if not using
13131 libthread_db events.
13132
13133 2015-01-09 Pedro Alves <palves@redhat.com>
13134
13135 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
13136 about to wait for is > 0.
13137 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
13138 the kernel thread ID is -1.
13139
13140 2015-01-09 Pedro Alves <palves@redhat.com>
13141
13142 * linux-nat.c (attach_proc_task_lwp_callback): New function.
13143 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
13144 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
13145 ptrace option flags.
13146 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
13147 field.
13148 * nat/linux-procfs.c: Include <dirent.h>.
13149 (linux_proc_get_int): New parameter "warn". Handle it.
13150 (linux_proc_get_tgid): Adjust.
13151 (linux_proc_get_tracerpid): Rename to ...
13152 (linux_proc_get_tracerpid_nowarn): ... this.
13153 (linux_proc_pid_get_state): New function, factored out from
13154 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
13155 and handle it.
13156 (linux_proc_pid_is_gone): New function.
13157 (linux_proc_pid_is_stopped): Adjust.
13158 (linux_proc_pid_is_zombie_maybe_warn)
13159 (linux_proc_pid_is_zombie_nowarn): New functions.
13160 (linux_proc_pid_is_zombie): Use
13161 linux_proc_pid_is_zombie_maybe_warn.
13162 (linux_proc_attach_tgid_threads): New function.
13163 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
13164 (linux_proc_get_tracerpid): Rename to ...
13165 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
13166 (linux_proc_pid_is_gone): New declaration.
13167 (linux_proc_pid_is_zombie): Update comment.
13168 (linux_proc_pid_is_zombie_nowarn): New declaration.
13169 (linux_proc_attach_lwp_func): New typedef.
13170 (linux_proc_attach_tgid_threads): New declaration.
13171 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
13172 use nowarn functions.
13173 (linux_ptrace_attach_fail_reason_string): Move here from
13174 gdbserver/linux-low.c and rename.
13175 (ptrace_supports_feature): If the current ptrace options are not
13176 known yet, check them now, instead of asserting.
13177 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
13178 Declare.
13179
13180 2015-01-09 Pedro Alves <palves@redhat.com>
13181
13182 * linux-thread-db.c (thread_db_find_new_threads_silently)
13183 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
13184 (find_new_threads_once): Print debug output on gdb_stdlog.
13185
13186 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
13187 Pedro Alves <palves@redhat.com>
13188
13189 * compile/compile.c: Include "gdb_wait.h".
13190 (do_rmdir): Check return value, and free 'zap'.
13191
13192 2015-01-08 Pedro Alves <palves@redhat.com>
13193 Yao Qi <yao@codesourcery.com>
13194
13195 * dwarf2loc.c (indirect_pieced_value): Don't call
13196 gdb_sign_extend. Call extract_signed_integer instead.
13197 * utils.c (gdb_sign_extend): Remove.
13198 * utils.h (gdb_sign_extend): Remove declaration.
13199
13200 2015-01-07 Pierre Muller <muller@sourceware.org>
13201
13202 PR symtab/17811
13203 * stabsread.c (define_symbol): Set language for C++ special symbols.
13204
13205 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13206
13207 * inflow.c (initial_gdb_ttystate): Tweak comment.
13208
13209 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13210
13211 * inflow.c (set_initial_gdb_ttystate): Add empty line after
13212 comment documenting function.
13213
13214 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
13215
13216 * terminal.h (set_initial_gdb_ttystate): Declare.
13217 * inflow.c (initial_gdb_ttystate): New static variable.
13218 (set_initial_gdb_ttystate): New setter.
13219 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
13220 instead of our current terminal state.
13221 * top.c (gdb_init): Call set_initial_gdb_ttystate.
13222
13223 2015-01-07 Joel Brobecker <brobecker@adacore.com>
13224
13225 * guile/scm-type.c (tyscm_array_1): Add comment.
13226 * python/py-type.c (typy_array_1): Add comment.
13227
13228 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13229
13230 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
13231 error if N2 is equal to N1 - 1.
13232
13233 2015-01-06 Joel Brobecker <brobecker@adacore.com>
13234
13235 * python/py-type.c (typy_array_1): Do not raise negative-length
13236 exception if N2 is equal to N1 - 1.
13237
13238 2015-01-03 Doug Evans <xdje42@gmail.com>
13239
13240 * c-exp.y: Whitespace cleanup.
13241 (classify_inner_name): Remove extra ;.
13242
13243 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
13244
13245 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
13246 offset signed.
13247
13248 2015-01-02 Doug Evans <dje@google.com>
13249
13250 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
13251
13252 2015-01-02 Doug Evans <dje@google.com>
13253
13254 * symtab.h (struct symbol): Fix typo in comment.
13255
13256 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13257
13258 Update year range in copyright notice of all files.
13259
13260 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13261
13262 * top.c (print_gdb_version): Update copyright year to 2015.
13263
13264 2015-01-01 Joel Brobecker <brobecker@adacore.com>
13265
13266 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
13267
13268 For older changes see ChangeLog-2014.
13269 \f
13270 Local Variables:
13271 mode: change-log
13272 left-margin: 8
13273 fill-column: 74
13274 version-control: never
13275 coding: utf-8
13276 End:
This page took 0.297049 seconds and 5 git commands to generate.