Mention multi-arch debugging support in NEWS
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
02f024f9
YQ
12015-09-04 Yao Qi <yao.qi@linaro.org>
2
3 * NEWS: Mention the aarch64 multi-arch debugging support.
4
cd7c1778
PMR
52015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
6
7 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
8 type instead of a TYPE_CODE_INT one for the string_char_type
9 and the ada_primitive_type_char types.
10
39edd165
YQ
112015-09-03 Yao Qi <yao.qi@linaro.org>
12
13 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
14 Move code to aarch64_linux_region_ok_for_watchpoint. Call
15 aarch64_linux_region_ok_for_watchpoint.
16 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
17 New function.
18 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
19 Declare it.
20
6c214e7c
PP
212015-09-02 Patrick Palka <patrick@parcs.ath.cx>
22
23 * gdb_obstack.h (obstack_strdup): Declare.
24 * gdb_obstack.c (obstack_strdup): Define.
25 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
26 * gdbarch.c: Regenerate.
27 * gdbarch.h: Regenerate.
28 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
29
eed8b28a
PP
302015-09-02 Patrick Palka <patrick@parcs.ath.cx>
31
32 * gdbtypes.c (copy_type_recursive): Update documentation.
33
73c6b475
SDJ
342015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
35
36 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
37 as zero.
38
ad1c917a
SDJ
392015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
40
41 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
42
3bd7e5b7
SDJ
432015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
44
45 * solib-svr4.c (solib_event_probe_action): Call
46 get_probe_argument_count using TRY...CATCH.
47 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
48
f469e8ce
SDJ
492015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
50
51 * probe.h (struct probe_ops) <get_probe_argument_count,
52 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
53 the comment that the function can throw an exception.
54 (get_probe_argument_count): Likewise.
55 (evaluate_probe_argument): Likewise.
56 * stap-probe.c (stap_get_opcode): Call error instead of
57 internal_error.
58 (stap_get_expected_argument_type): Likewise. Add argument
59 'probe'. Improve error message by mentioning the probe's name.
60 (stap_parse_probe_arguments): Adjust call to
61 stap_get_expected_argument_type.
62 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
63 not zero. Call internal_error if GDB requests an argument but the
64 probe has no arguments.
65
dc5c8746
PMR
662015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
67
68 * ada-lang.c (ada_resolve_function): Do not ask the user what
69 match to use when in completion mode.
70
136765ea
AB
712015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * tui/tui-data.c (tui_win_name): Make local variable const, remove
74 cast of NULL.
75
90b81c5f
MF
762015-08-31 Max Filippov <jcmvbkbc@gmail.com>
77
78 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
79 call_abi using XSHAL_ABI macro.
80
1cd36e54
DE
812015-08-29 Doug Evans <xdje42@gmail.com>
82
83 * symtab.h (struct symbol): Tweak comment.
84
8f57eec2
PP
852015-08-29 Patrick Palka <patrick@parcs.ath.cx>
86
87 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
88 gdbarch obstack instead of on the heap. Update commentary
89 accordingly.
90
38eebd71
JB
912015-08-28 Joel Brobecker <brobecker@adacore.com>
92
93 GDB 7.10 released.
94
d63dd61e
SM
952015-08-28 Simon Marchi <simon.marchi@ericsson.com>
96
97 * NEWS: Update entry about non-8-bits addressable memory.
98
6f059256
UW
992015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
100
101 Revert:
102 2014-11-06 Doug Evans <xdje42@gmail.com>
103 * solib.c (solib_global_lookup): Fetch arch from objfile,
104 not target_gdbarch.
105
70987a92 1062015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
107
108 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
109 attempt to relocate a TLS variable offset.
110
70987a92 1112015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
112
113 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
114 registered yet. Set inferior_ptid while calling target_read_memory.
115
70987a92 1162015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
117
118 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
119 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
120 * linux-nat.c (check_stopped_by_breakpoint): Use
121 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
122
70987a92 1232015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
124
125 * linux-thread-db.c (thread_db_get_thread_local_address): If the
126 thread was not yet discovered, use thread_from_lwp instead of
127 calling thread_db_find_new_threads_1.
128
f5cdf498
SM
1292015-08-27 Simon Marchi <simon.marchi@ericsson.com>
130
131 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
132 statements.
133
fd2ae5d6
SM
1342015-08-27 Simon Marchi <simon.marchi@ericsson.com>
135
136 * NEWS: Document support for non-8-bits addressable memory.
137
14d88147
PA
1382015-08-27 Pedro Alves <palves@redhat.com>
139
140 * configure.ac: Remove AC_TYPE_SIGNAL call.
141 * configure, config.in: Regenerate.
142
a40805d4
PA
1432015-08-27 Pedro Alves <palves@redhat.com>
144
145 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
146 * extension-priv.h: Include signal.h.
147 (struct signal_handler) <handler>: Change type to sighandler_t.
148 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
149 * inflow.c (sigint_ours, sigquit_ours): Change type to
150 sighandler_t.
151 (child_terminal_inferior): Remove casts.
152 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
153 (osig): Change type to sighandler_t.
154 * nto-procfs.c (ofunc): Change type to sighandler_t.
155 (procfs_wait): Remove casts.
156 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
157 * remote-sim.c (gdbsim_wait): Use sighandler_t.
158 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
159
0750520d
PA
1602015-08-27 Pedro Alves <palves@redhat.com>
161
162 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
163 * gnulib/aclocal.m4: Renegerate.
164 * gnulib/config.in: Renegerate.
165 * gnulib/configure: Renegerate.
166 * gnulib/import/Makefile.am: Update.
167 * gnulib/import/Makefile.in: Regenerate.
168 * gnulib/import/m4/gnulib-cache.m4: Update.
169 * gnulib/import/m4/gnulib-comp.m4: Update.
170 * gnulib/import/m4/signal_h.m4: New file.
171 * gnulib/import/signal.in.h: New file.
172
a5c0808e
PA
1732015-08-27 Pedro Alves <palves@redhat.com>
174
175 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
176 (MIN_MEMORY_PACKET_SIZE): New.
177 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
178 (get_memory_packet_size): Adjust. No longer limit the max packet
179 size.
180 (set_memory_packet_size): Adjust, and remove dead code.
181 (remote_check_symbols): Use xmalloc and a cleanup instead of
182 alloca.
183 (remote_packet_size): No longer cap the packet size.
184 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
185
cdaec3f3
LM
1862015-08-26 Luis Machado <lgustavo@codesourcery.com>
187
188 * compile/compile.c (compile_to_object): Mention language in
189 error message.
190
e9756d52
PP
1912015-08-26 Patrick Palka <patrick@parcs.ath.cx>
192
193 * target.c (target_pre_inferior): Unset attach_flag.
194
1dc7a623
SM
1952015-08-26 Simon Marchi <simon.marchi@ericsson.com>
196
197 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
198 * gdbarch.c: Re-generate.
199
8d749320
SM
2002015-08-26 Simon Marchi <simon.marchi@ericsson.com>
201
6711b7f8
SM
202 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
203 function with the XNEW-family equivalent.
8d749320
SM
204 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
205 * ada-exp.y (write_ambiguous_var): Likewise.
206 * ada-lang.c (resolve_subexp): Likewise.
207 (user_select_syms): Likewise.
208 (assign_aggregate): Likewise.
209 (ada_evaluate_subexp): Likewise.
210 (cache_symbol): Likewise.
211 * addrmap.c (allocate_key): Likewise.
212 (addrmap_create_mutable): Likewise.
213 * aix-thread.c (sync_threadlists): Likewise.
214 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
215 (alpha_gdbarch_init): Likewise.
216 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
217 * arm-linux-nat.c (arm_linux_add_process): Likewise.
218 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
219 * arm-tdep.c (push_stack_item): Likewise.
220 (arm_displaced_step_copy_insn): Likewise.
221 (arm_gdbarch_init): Likewise.
222 (_initialize_arm_tdep): Likewise.
223 * avr-tdep.c (push_stack_item): Likewise.
224 * ax-general.c (new_agent_expr): Likewise.
225 * block.c (block_initialize_namespace): Likewise.
226 * breakpoint.c (alloc_counted_command_line): Likewise.
227 (update_dprintf_command_list): Likewise.
228 (parse_breakpoint_sals): Likewise.
229 (decode_static_tracepoint_spec): Likewise.
230 (until_break_command): Likewise.
231 (clear_command): Likewise.
232 (update_global_location_list): Likewise.
233 (get_breakpoint_objfile_data) Likewise.
234 * btrace.c (ftrace_new_function): Likewise.
235 (btrace_set_insn_history): Likewise.
236 (btrace_set_call_history): Likewise.
237 * buildsym.c (add_symbol_to_list): Likewise.
238 (record_pending_block): Likewise.
239 (start_subfile): Likewise.
240 (start_buildsym_compunit): Likewise.
241 (push_subfile): Likewise.
242 (end_symtab_get_static_block): Likewise.
243 (buildsym_init): Likewise.
244 * cli/cli-cmds.c (source_command): Likewise.
245 * cli/cli-decode.c (add_cmd): Likewise.
246 * cli/cli-script.c (build_command_line): Likewise.
247 (setup_user_args): Likewise.
248 (realloc_body_list): Likewise.
249 (process_next_line): Likewise.
250 (copy_command_lines): Likewise.
251 * cli/cli-setshow.c (do_set_command): Likewise.
252 * coff-pe-read.c (read_pe_exported_syms): Likewise.
253 * coffread.c (coff_locate_sections): Likewise.
254 (coff_symtab_read): Likewise.
255 (coff_read_struct_type): Likewise.
256 * common/cleanups.c (make_my_cleanup2): Likewise.
257 * common/common-exceptions.c (throw_it): Likewise.
258 * common/filestuff.c (make_cleanup_close): Likewise.
259 * common/format.c (parse_format_string): Likewise.
260 * common/queue.h (DEFINE_QUEUE_P): Likewise.
261 * compile/compile-object-load.c (munmap_list_add): Likewise.
262 (compile_object_load): Likewise.
263 * compile/compile-object-run.c (compile_object_run): Likewise.
264 * compile/compile.c (append_args): Likewise.
265 * corefile.c (specify_exec_file_hook): Likewise.
266 * cp-support.c (make_symbol_overload_list): Likewise.
267 * cris-tdep.c (push_stack_item): Likewise.
268 (cris_gdbarch_init): Likewise.
269 * ctf.c (ctf_trace_file_writer_new): Likewise.
270 * dbxread.c (init_header_files): Likewise.
271 (add_new_header_file): Likewise.
272 (init_bincl_list): Likewise.
273 (dbx_end_psymtab): Likewise.
274 (start_psymtab): Likewise.
275 (dbx_end_psymtab): Likewise.
276 * dcache.c (dcache_init): Likewise.
277 * dictionary.c (dict_create_hashed): Likewise.
278 (dict_create_hashed_expandable): Likewise.
279 (dict_create_linear): Likewise.
280 (dict_create_linear_expandable): Likewise.
281 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
282 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
283 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
284 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
285 (decode_frame_entry_1): Likewise.
286 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
287 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
288 * dwarf2read.c (dwarf2_has_info): Likewise.
289 (create_signatured_type_table_from_index): Likewise.
290 (dwarf2_read_index): Likewise.
291 (dw2_get_file_names_reader): Likewise.
292 (create_all_type_units): Likewise.
293 (read_cutu_die_from_dwo): Likewise.
294 (init_tu_and_read_dwo_dies): Likewise.
295 (init_cutu_and_read_dies): Likewise.
296 (create_all_comp_units): Likewise.
297 (queue_comp_unit): Likewise.
298 (inherit_abstract_dies): Likewise.
299 (read_call_site_scope): Likewise.
300 (dwarf2_add_field): Likewise.
301 (dwarf2_add_typedef): Likewise.
302 (dwarf2_add_member_fn): Likewise.
303 (attr_to_dynamic_prop): Likewise.
304 (abbrev_table_alloc_abbrev): Likewise.
305 (abbrev_table_read_table): Likewise.
306 (add_include_dir): Likewise.
307 (add_file_name): Likewise.
308 (dwarf_decode_line_header): Likewise.
309 (dwarf2_const_value_attr): Likewise.
310 (dwarf_alloc_block): Likewise.
311 (parse_macro_definition): Likewise.
312 (set_die_type): Likewise.
313 (write_psymtabs_to_index): Likewise.
314 (create_cus_from_index): Likewise.
315 (dwarf2_create_include_psymtab): Likewise.
316 (process_psymtab_comp_unit_reader): Likewise.
317 (build_type_psymtab_dependencies): Likewise.
318 (read_comp_units_from_section): Likewise.
319 (compute_compunit_symtab_includes): Likewise.
320 (create_dwo_unit_in_dwp_v1): Likewise.
321 (create_dwo_unit_in_dwp_v2): Likewise.
322 (read_func_scope): Likewise.
323 (process_structure_scope): Likewise.
324 (mark_common_block_symbol_computed): Likewise.
325 (load_partial_dies): Likewise.
326 (dwarf2_symbol_mark_computed): Likewise.
327 * elfread.c (elf_symfile_segments): Likewise.
328 (elf_read_minimal_symbols): Likewise.
329 * environ.c (make_environ): Likewise.
330 * eval.c (evaluate_subexp_standard): Likewise.
331 * event-loop.c (create_file_handler): Likewise.
332 (create_async_signal_handler): Likewise.
333 (create_async_event_handler): Likewise.
334 (create_timer): Likewise.
335 * exec.c (build_section_table): Likewise.
336 * fbsd-nat.c (fbsd_remember_child): Likewise.
337 * fork-child.c (fork_inferior): Likewise.
338 * frv-tdep.c (new_variant): Likewise.
339 * gdbarch.sh (gdbarch_alloc): Likewise.
340 (append_name): Likewise.
341 * gdbtypes.c (rank_function): Likewise.
342 (copy_type_recursive): Likewise.
343 (add_dyn_prop): Likewise.
344 * gnu-nat.c (make_proc): Likewise.
345 (make_inf): Likewise.
346 (gnu_write_inferior): Likewise.
347 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
348 (build_std_type_info_type): Likewise.
349 * guile/scm-param.c (compute_enum_list): Likewise.
350 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
351 * guile/scm-value.c (gdbscm_value_call): Likewise.
352 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
353 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
354 (read_unwind_info): Likewise.
355 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
356 * infcall.c (dummy_frame_context_saver_setup): Likewise.
357 (call_function_by_hand_dummy): Likewise.
358 * infcmd.c (step_once): Likewise.
359 (finish_forward): Likewise.
360 (attach_command): Likewise.
361 (notice_new_inferior): Likewise.
362 * inferior.c (add_inferior_silent): Likewise.
363 * infrun.c (add_displaced_stepping_state): Likewise.
364 (save_infcall_control_state): Likewise.
365 (save_inferior_ptid): Likewise.
366 (_initialize_infrun): Likewise.
367 * jit.c (bfd_open_from_target_memory): Likewise.
368 (jit_gdbarch_data_init): Likewise.
369 * language.c (add_language): Likewise.
370 * linespec.c (decode_line_2): Likewise.
371 * linux-nat.c (add_to_pid_list): Likewise.
372 (add_initial_lwp): Likewise.
373 * linux-thread-db.c (add_thread_db_info): Likewise.
374 (record_thread): Likewise.
375 (info_auto_load_libthread_db): Likewise.
376 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
377 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
378 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
379 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
380 * macrocmd.c (macro_define_command): Likewise.
381 * macroexp.c (gather_arguments): Likewise.
382 * macroscope.c (sal_macro_scope): Likewise.
383 * macrotab.c (new_macro_table): Likewise.
384 * mdebugread.c (push_parse_stack): Likewise.
385 (parse_partial_symbols): Likewise.
386 (parse_symbol): Likewise.
387 (psymtab_to_symtab_1): Likewise.
388 (new_block): Likewise.
389 (new_psymtab): Likewise.
390 (mdebug_build_psymtabs): Likewise.
391 (add_pending): Likewise.
392 (elfmdebug_build_psymtabs): Likewise.
393 * mep-tdep.c (mep_gdbarch_init): Likewise.
394 * mi/mi-main.c (mi_execute_command): Likewise.
395 * mi/mi-parse.c (mi_parse_argv): Likewise.
396 * minidebug.c (lzma_open): Likewise.
397 * minsyms.c (terminate_minimal_symbol_table): Likewise.
398 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
399 * mips-tdep.c (mips_gdbarch_init): Likewise.
400 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
401 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
402 * mt-tdep.c (mt_registers_info): Likewise.
403 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
404 * nat/linux-btrace.c (linux_enable_bts): Likewise.
405 (linux_enable_pt): Likewise.
406 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
407 (linux_xfer_osdata_processgroups): Likewise.
408 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
409 * nto-procfs.c (procfs_meminfo): Likewise.
410 * objc-lang.c (start_msglist): Likewise.
411 (selectors_info): Likewise.
412 (classes_info): Likewise.
413 (find_methods): Likewise.
414 * objfiles.c (allocate_objfile): Likewise.
415 (update_section_map): Likewise.
416 * osabi.c (gdbarch_register_osabi): Likewise.
417 (gdbarch_register_osabi_sniffer): Likewise.
418 * parse.c (start_arglist): Likewise.
419 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
420 (hwdebug_insert_point): Likewise.
421 * printcmd.c (display_command): Likewise.
422 (ui_printf): Likewise.
423 * procfs.c (create_procinfo): Likewise.
424 (load_syscalls): Likewise.
425 (proc_get_LDT_entry): Likewise.
426 (proc_update_threads): Likewise.
427 * prologue-value.c (make_pv_area): Likewise.
428 (pv_area_store): Likewise.
429 * psymtab.c (extend_psymbol_list): Likewise.
430 (init_psymbol_list): Likewise.
431 (allocate_psymtab): Likewise.
432 * python/py-inferior.c (add_thread_object): Likewise.
433 * python/py-param.c (compute_enum_values): Likewise.
434 * python/py-value.c (valpy_call): Likewise.
435 * python/py-varobj.c (py_varobj_iter_next): Likewise.
436 * python/python.c (ensure_python_env): Likewise.
437 * record-btrace.c (record_btrace_start_replaying): Likewise.
438 * record-full.c (record_full_reg_alloc): Likewise.
439 (record_full_mem_alloc): Likewise.
440 (record_full_end_alloc): Likewise.
441 (record_full_core_xfer_partial): Likewise.
442 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
443 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
444 * remote-notif.c (remote_notif_state_allocate): Likewise.
445 * remote.c (demand_private_info): Likewise.
446 (remote_notif_stop_alloc_reply): Likewise.
447 (remote_enable_btrace): Likewise.
448 * reverse.c (save_bookmark_command): Likewise.
449 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
450 * rx-tdep.c (rx_gdbarch_init): Likewise.
451 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
452 * ser-go32.c (dos_get_tty_state): Likewise.
453 (dos_copy_tty_state): Likewise.
454 * ser-mingw.c (ser_windows_open): Likewise.
455 (ser_console_wait_handle): Likewise.
456 (ser_console_get_tty_state): Likewise.
457 (make_pipe_state): Likewise.
458 (net_windows_open): Likewise.
459 * ser-unix.c (hardwire_get_tty_state): Likewise.
460 (hardwire_copy_tty_state): Likewise.
461 * solib-aix.c (solib_aix_new_lm_info): Likewise.
462 * solib-dsbt.c (dsbt_current_sos): Likewise.
463 (dsbt_relocate_main_executable): Likewise.
464 * solib-frv.c (frv_current_sos): Likewise.
465 (frv_relocate_main_executable): Likewise.
466 * solib-spu.c (spu_bfd_fopen): Likewise.
467 * solib-svr4.c (lm_info_read): Likewise.
468 (svr4_copy_library_list): Likewise.
469 (svr4_default_sos): Likewise.
470 * source.c (find_source_lines): Likewise.
471 (line_info): Likewise.
472 (add_substitute_path_rule): Likewise.
473 * spu-linux-nat.c (spu_bfd_open): Likewise.
474 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
475 * stabsread.c (dbx_lookup_type): Likewise.
476 (read_type): Likewise.
477 (read_member_functions): Likewise.
478 (read_struct_fields): Likewise.
479 (read_baseclasses): Likewise.
480 (read_args): Likewise.
481 (_initialize_stabsread): Likewise.
482 * stack.c (func_command): Likewise.
483 * stap-probe.c (handle_stap_probe): Likewise.
484 * symfile.c (addrs_section_sort): Likewise.
485 (addr_info_make_relative): Likewise.
486 (load_section_callback): Likewise.
487 (add_symbol_file_command): Likewise.
488 (init_filename_language_table): Likewise.
489 * symtab.c (create_filename_seen_cache): Likewise.
490 (sort_search_symbols_remove_dups): Likewise.
491 (search_symbols): Likewise.
492 * target.c (make_cleanup_restore_target_terminal): Likewise.
493 * thread.c (new_thread): Likewise.
494 (enable_thread_stack_temporaries): Likewise.
495 (make_cleanup_restore_current_thread): Likewise.
496 (thread_apply_all_command): Likewise.
497 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
498 * top.c (gdb_readline_wrapper): Likewise.
499 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
500 * tracepoint.c (trace_find_line_command): Likewise.
501 (all_tracepoint_actions_and_cleanup): Likewise.
502 (make_cleanup_restore_current_traceframe): Likewise.
503 (get_uploaded_tp): Likewise.
504 (get_uploaded_tsv): Likewise.
505 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
506 (tui_alloc_win_info): Likewise.
507 (tui_alloc_content): Likewise.
508 (tui_add_content_elements): Likewise.
509 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
510 (tui_set_disassem_content): Likewise.
511 * ui-file.c (ui_file_new): Likewise.
512 (stdio_file_new): Likewise.
513 (tee_file_new): Likewise.
514 * utils.c (make_cleanup_restore_integer): Likewise.
515 (add_internal_problem_command): Likewise.
516 * v850-tdep.c (v850_gdbarch_init): Likewise.
517 * valops.c (find_oload_champ): Likewise.
518 * value.c (allocate_value_lazy): Likewise.
519 (record_latest_value): Likewise.
520 (create_internalvar): Likewise.
521 * varobj.c (install_variable): Likewise.
522 (new_variable): Likewise.
523 (new_root_variable): Likewise.
524 (cppush): Likewise.
525 (_initialize_varobj): Likewise.
526 * windows-nat.c (windows_make_so): Likewise.
527 * x86-nat.c (x86_add_process): Likewise.
528 * xcoffread.c (arrange_linetable): Likewise.
529 (allocate_include_entry): Likewise.
530 (process_linenos): Likewise.
531 (SYMBOL_DUP): Likewise.
532 (xcoff_start_psymtab): Likewise.
533 (xcoff_end_psymtab): Likewise.
534 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
535 * xtensa-tdep.c (xtensa_register_type): Likewise.
536 * gdbarch.c: Regenerate.
537 * gdbarch.h: Regenerate.
538
17d8546e
DB
5392015-08-25 Don Breazeal <donb@codesourcery.com>
540
541 * infrun.c (follow_exec): Re-order operations for
542 handling follow-exec-mode "new".
543 (handle_inferior_event_1): Assign ecs->event_thread
544 to the current thread.
545 * remote.c (get_remote_arch_state): Add an assertion.
546
ba49e44b
PA
5472015-08-26 Pedro Alves <palves@redhat.com>
548
549 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
550
7541ab03 5512015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 552
7541ab03 553 PR gdb/18804
abc56d60
PA
554 * defs.h (maybe_quit): Declare.
555 (QUIT): Now calls maybe_quit.
556 * event-loop.c (clear_async_signal_handler)
557 (async_signal_handler_is_marked): New functions.
558 * event-loop.h (async_signal_handler_is_marked)
559 (clear_async_signal_handler): New declarations.
560 * remote.c (remote_check_pending_interrupt): New function.
561 (interrupt_query): Use make_cleanup_restore_target_terminal. No
562 longer check whether the target is async. If waiting for a stop
563 reply, and a Ctrl-C as been sent to the target, offer to
564 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
565 Otherwise do not disconnect and throw a quit.
566 (_initialize_remote): Install remote_check_pending_interrupt as
567 to_check_pending_interrupt.
568 * target.c (target_check_pending_interrupt): New function.
569 * target.h (struct target_ops) <to_check_pending_interrupt>: New
570 field.
571 (target_check_pending_interrupt): New declaration.
572 * utils.c (maybe_quit): New function.
573 * target-delegates.c: Regenerate.
574
dfe7f77c
YQ
5752015-08-25 Yao Qi <yao.qi@linaro.org>
576
577 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
578 Rename local variable pid to tid, and get lwpid of lwp. Update
579 debug output.
580
63e43d3a
PMR
5812015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
582
583 * ada-lang.c (ada_read_var_value): Add a var_block argument
584 and pass it to default_read_var_value.
585 * block.c (block_static_link): New accessor.
586 * block.h (block_static_link): Declare it.
587 * buildsym.c (finish_block_internal): Add a static_link
588 argument. If there is a static link, associate it to the new
589 block.
590 (finish_block): Add a static link argument and pass it to
591 finish_block_internal.
592 (end_symtab_get_static_block): Update calls to finish_block and
593 to finish_block_internal.
594 (end_symtab_with_blockvector): Update call to
595 finish_block_internal.
596 * buildsym.h: Forward-declare struct dynamic_prop.
597 (struct context_stack): Add a static_link field.
598 (finish_block): Add a static link argument.
599 * c-exp.y: Remove an obsolete comment (evaluation of variables
600 already start from the selected frame, and now they climb *up*
601 the call stack) and propagate the block information to the
602 produced expression.
603 * d-exp.y: Likewise.
604 * f-exp.y: Likewise.
605 * go-exp.y: Likewise.
606 * jv-exp.y: Likewise.
607 * m2-exp.y: Likewise.
608 * p-exp.y: Likewise.
609 * coffread.c (coff_symtab_read): Update calls to finish_block.
610 * dbxread.c (process_one_symbol): Likewise.
611 * xcoffread.c (read_xcoff_symtab): Likewise.
612 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
613 "sym" parameter to struct block_symbol, update its uses and pass
614 its block to calls to read_var_value.
615 (convert_symbol_sym): Update the calls to convert_one_symbol.
616 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
617 call to read_var_value.
618 * dwarf2loc.c (block_op_get_frame_base): New.
619 (dwarf2_block_frame_base_locexpr_funcs): Implement the
620 get_frame_base method.
621 (dwarf2_block_frame_base_loclist_funcs): Likewise.
622 (dwarf2locexpr_baton_eval): Add a frame argument and use it
623 instead of the selected frame in order to evaluate the
624 expression.
625 (dwarf2_evaluate_property): Add a frame argument. Update call
626 to dwarf2_locexpr_baton_eval to provide a frame in available and
627 to handle the absence of address stack.
628 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
629 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
630 declaration.
631 (read_func_scope): Record any available static link description.
632 Update call to finish_block.
633 (read_lexical_block_scope): Update call to finish_block.
634 * findvar.c (follow_static_link): New.
635 (get_hosting_frame): New.
636 (default_read_var_value): Add a var_block argument. Use
637 get_hosting_frame to handle non-local references.
638 (read_var_value): Add a var_block argument and pass it to the
639 LA_READ_VAR_VALUE method.
640 * gdbtypes.c (resolve_dynamic_range): Update calls to
641 dwarf2_evaluate_property.
642 (resolve_dynamic_type_internal): Likewise.
643 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
644 read_var_value, passing it the block coming from symbol lookup.
645 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
646 read_var_value (TODO).
647 * infcmd.c (finish_command_continuation): Update call to
648 read_var_value, passing it the block coming from symbol lookup.
649 * infrun.c (insert_exception_resume_breakpoint): Likewise.
650 * language.h (struct language_defn): Add a var_block argument to
651 the LA_READ_VAR_VALUE method.
652 * objfiles.c (struct static_link_htab_entry): New.
653 (static_link_htab_entry_hash): New.
654 (static_link_htab_entry_eq): New.
655 (objfile_register_static_link): New.
656 (objfile_lookup_static_link): New.
657 (free_objfile): Free the STATIC_LINKS hashed map if needed.
658 * objfiles.h: Include hashtab.h.
659 (struct objfile): Add a static_links field.
660 (objfile_register_static_link): New.
661 (objfile_lookup_static_link): New.
662 * printcmd.c (print_variable_and_value): Update call to
663 read_var_value.
664 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
665 * python/py-frame.c (frapy_read_var): Update call to
666 read_var_value, passing it the block coming from symbol lookup.
667 * python/py-framefilter.c (extract_sym): Add a sym_block
668 parameter and set the pointed value to NULL (TODO).
669 (enumerate_args): Update call to extract_sym.
670 (enumerate_locals): Update calls to extract_sym and to
671 read_var_value.
672 * python/py-symbol.c (sympy_value): Update call to
673 read_var_value (TODO).
674 * stack.c (read_frame_local): Update call to read_var_value.
675 (read_frame_arg): Likewise.
676 (return_command): Likewise.
677 * symtab.h (struct symbol_block_ops): Add a get_frame_base
678 method.
679 (struct symbol): Add a block field.
680 (SYMBOL_BLOCK): New accessor.
681 * valops.c (value_of_variable): Remove frame/block handling and
682 pass the block argument to read_var_value, which does this job
683 now.
684 (value_struct_elt_for_reference): Update calls to
685 read_var_value.
686 (value_of_this): Pass the block found to read_var_value.
687 * value.h (read_var_value): Add a var_block argument.
688 (default_read_var_value): Likewise.
689
ed8b7b42
YQ
6902015-08-25 Yao Qi <yao.qi@linaro.org>
691
692 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
693 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
694 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
695
db3cb7cb
YQ
6962015-08-25 Yao Qi <yao.qi@linaro.org>
697
698 * Makefile.in (aarch64-liunx.o): New rule.
699 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
700 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
701 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
702 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
703 extern.
704 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
705 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
706 * nat/aarch64-linux.c: New file.
707 * nat/aarch64-linux.h: New file.
708
f6011a1c
YQ
7092015-08-25 Yao Qi <yao.qi@linaro.org>
710
711 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
712 lwp_arch_private_info and ptid_of_lwp.
713
5e35436e
YQ
7142015-08-25 Yao Qi <yao.qi@linaro.org>
715
716 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
717 Move it to nat/aarch64-linux-hw-point.c.
718 (debug_reg_change_callback): Likewise.
719 (aarch64_notify_debug_reg_change): :Likewise.
720 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
721 (aarch64_dr_update_callback_param): New.
722 (debug_reg_change_callback): New function.
723 (aarch64_notify_debug_reg_change): Likewise.
724 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
725 Remove the declaration.
726
4a8a7965
YQ
7272015-08-25 Yao Qi <yao.qi@linaro.org>
728
729 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
730 Call current_lwp_ptid.
731
32a271ee
YQ
7322015-08-25 Yao Qi <yao.qi@linaro.org>
733
734 * aarch64-linux-nat.c (debug_reg_change_callback): Use
735 debug_printf.
736
5e137137
YQ
7372015-08-25 Yao Qi <yao.qi@linaro.org>
738
739 * aarch64-linux-nat.c (debug_reg_change_callback): Call
740 ptid_get_pid rather than ptid_get_lwp.
741
73b8c1fd
PA
7422015-08-24 Pedro Alves <palves@redhat.com>
743
744 * NEWS (New commands): Mention set/show remote
745 multiprocess-extensions-packet.
746 * remote.c (remote_query_supported): Only tell the server to use
747 the multiprocess extensions if the user hasn't force-disabled them
748 with "set remote multiprocess-extensions-packet off".
749
4a626d0a
PA
7502015-08-24 Pedro Alves <palves@redhat.com>
751
752 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
753 1029a8112290f6eee9d7878a391c49db42c999bd.
754 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
755 Regenerate.
756 * gnulib/import/Makefile.am: Update.
757 * gnulib/import/Makefile.in: Update.
758 * gnulib/import/alloca.in.h: Update.
759 * gnulib/import/basename-lgpl.c: Update.
760 * gnulib/import/canonicalize-lgpl.c: Update.
761 * gnulib/import/config.charset: Update.
762 * gnulib/import/dirent.in.h: Update.
763 * gnulib/import/dirfd.c: Update.
764 * gnulib/import/dirname-lgpl.c: Update.
765 * gnulib/import/dirname.h: Update.
766 * gnulib/import/dosname.h: Update.
767 * gnulib/import/errno.in.h: Update.
768 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
769 * gnulib/import/extra/snippet/c++defs.h: Update.
770 * gnulib/import/extra/snippet/warn-on-use.h: Update.
771 * gnulib/import/extra/update-copyright: Update.
772 * gnulib/import/float+.h: Update.
773 * gnulib/import/float.c: Update.
774 * gnulib/import/float.in.h: Update.
775 * gnulib/import/fnmatch.c: Update.
776 * gnulib/import/fnmatch.in.h: Update.
777 * gnulib/import/fnmatch_loop.c: Update.
778 * gnulib/import/fpucw.h: Update.
779 * gnulib/import/frexp.c: Update.
780 * gnulib/import/frexpl.c: Update.
781 * gnulib/import/gettimeofday.c: Update.
782 * gnulib/import/inttypes.in.h: Update.
783 * gnulib/import/isnan.c: Update.
784 * gnulib/import/isnand-nolibm.h: Update.
785 * gnulib/import/isnand.c: Update.
786 * gnulib/import/isnanl-nolibm.h: Update.
787 * gnulib/import/isnanl.c: Update.
788 * gnulib/import/itold.c: Update.
789 * gnulib/import/localcharset.c: Update.
790 * gnulib/import/localcharset.h: Update.
791 * gnulib/import/lstat.c: Update.
792 * gnulib/import/m4/00gnulib.m4: Update.
793 * gnulib/import/m4/absolute-header.m4: Update.
794 * gnulib/import/m4/alloca.m4: Update.
795 * gnulib/import/m4/canonicalize.m4: Update.
796 * gnulib/import/m4/codeset.m4: Update.
797 * gnulib/import/m4/configmake.m4: Update.
798 * gnulib/import/m4/dirent_h.m4: Update.
799 * gnulib/import/m4/dirfd.m4: Update.
800 * gnulib/import/m4/dirname.m4: Update.
801 * gnulib/import/m4/double-slash-root.m4: Update.
802 * gnulib/import/m4/eealloc.m4: Update.
803 * gnulib/import/m4/errno_h.m4: Update.
804 * gnulib/import/m4/exponentd.m4: Update.
805 * gnulib/import/m4/exponentl.m4: Update.
806 * gnulib/import/m4/extensions.m4: Update.
807 * gnulib/import/m4/extern-inline.m4: Update.
808 * gnulib/import/m4/fcntl-o.m4: Update.
809 * gnulib/import/m4/float_h.m4: Update.
810 * gnulib/import/m4/fnmatch.m4: Update.
811 * gnulib/import/m4/fpieee.m4: Update.
812 * gnulib/import/m4/frexp.m4: Update.
813 * gnulib/import/m4/frexpl.m4: Update.
814 * gnulib/import/m4/gettimeofday.m4: Update.
815 * gnulib/import/m4/glibc21.m4: Update.
816 * gnulib/import/m4/gnulib-cache.m4: Update.
817 * gnulib/import/m4/gnulib-common.m4: Update.
818 * gnulib/import/m4/gnulib-comp.m4: Update.
819 * gnulib/import/m4/gnulib-tool.m4: Update.
820 * gnulib/import/m4/include_next.m4: Update.
821 * gnulib/import/m4/inttypes-pri.m4: Update.
822 * gnulib/import/m4/inttypes.m4: Update.
823 * gnulib/import/m4/isnand.m4: Update.
824 * gnulib/import/m4/isnanl.m4: Update.
825 * gnulib/import/m4/largefile.m4: Update.
826 * gnulib/import/m4/localcharset.m4: Update.
827 * gnulib/import/m4/locale-fr.m4: Update.
828 * gnulib/import/m4/locale-ja.m4: Update.
829 * gnulib/import/m4/locale-zh.m4: Update.
830 * gnulib/import/m4/longlong.m4: Update.
831 * gnulib/import/m4/lstat.m4: Update.
832 * gnulib/import/m4/malloc.m4: Update.
833 * gnulib/import/m4/malloca.m4: Update.
834 * gnulib/import/m4/math_h.m4: Update.
835 * gnulib/import/m4/mbrtowc.m4: Update.
836 * gnulib/import/m4/mbsinit.m4: Update.
837 * gnulib/import/m4/mbsrtowcs.m4: Update.
838 * gnulib/import/m4/mbstate_t.m4: Update.
839 * gnulib/import/m4/memchr.m4: Update.
840 * gnulib/import/m4/memmem.m4: Update.
841 * gnulib/import/m4/mmap-anon.m4: Update.
842 * gnulib/import/m4/multiarch.m4: Update.
843 * gnulib/import/m4/nocrash.m4: Update.
844 * gnulib/import/m4/off_t.m4: Update.
845 * gnulib/import/m4/pathmax.m4: Update.
846 * gnulib/import/m4/readlink.m4: Update.
847 * gnulib/import/m4/rename.m4: Update.
848 * gnulib/import/m4/rmdir.m4: Update.
849 * gnulib/import/m4/ssize_t.m4: Update.
850 * gnulib/import/m4/stat.m4: Update.
851 * gnulib/import/m4/stdbool.m4: Update.
852 * gnulib/import/m4/stddef_h.m4: Update.
853 * gnulib/import/m4/stdint.m4: Update.
854 * gnulib/import/m4/stdio_h.m4: Update.
855 * gnulib/import/m4/stdlib_h.m4: Update.
856 * gnulib/import/m4/string_h.m4: Update.
857 * gnulib/import/m4/strstr.m4: Update.
858 * gnulib/import/m4/strtok_r.m4: Update.
859 * gnulib/import/m4/sys_socket_h.m4: Update.
860 * gnulib/import/m4/sys_stat_h.m4: Update.
861 * gnulib/import/m4/sys_time_h.m4: Update.
862 * gnulib/import/m4/sys_types_h.m4: Update.
863 * gnulib/import/m4/time_h.m4: Update.
864 * gnulib/import/m4/unistd_h.m4: Update.
865 * gnulib/import/m4/warn-on-use.m4: Update.
866 * gnulib/import/m4/wchar_h.m4: Update.
867 * gnulib/import/m4/wchar_t.m4: Update.
868 * gnulib/import/m4/wctype_h.m4: Update.
869 * gnulib/import/m4/wint_t.m4: Update.
870 * gnulib/import/malloc.c: Update.
871 * gnulib/import/malloca.c: Update.
872 * gnulib/import/malloca.h: Update.
873 * gnulib/import/math.in.h: Update.
874 * gnulib/import/mbrtowc.c: Update.
875 * gnulib/import/mbsinit.c: Update.
876 * gnulib/import/mbsrtowcs-impl.h: Update.
877 * gnulib/import/mbsrtowcs-state.c: Update.
878 * gnulib/import/mbsrtowcs.c: Update.
879 * gnulib/import/memchr.c: Update.
880 * gnulib/import/memmem.c: Update.
881 * gnulib/import/pathmax.h: Update.
882 * gnulib/import/readlink.c: Update.
883 * gnulib/import/ref-add.sin: Update.
884 * gnulib/import/ref-del.sin: Update.
885 * gnulib/import/rename.c: Update.
886 * gnulib/import/rmdir.c: Update.
887 * gnulib/import/same-inode.h: Update.
888 * gnulib/import/stat.c: Update.
889 * gnulib/import/stdbool.in.h: Update.
890 * gnulib/import/stddef.in.h: Update.
891 * gnulib/import/stdint.in.h: Update.
892 * gnulib/import/stdio.c: Update.
893 * gnulib/import/stdio.in.h: Update.
894 * gnulib/import/stdlib.in.h: Update.
895 * gnulib/import/str-two-way.h: Update.
896 * gnulib/import/streq.h: Update.
897 * gnulib/import/string.in.h: Update.
898 * gnulib/import/stripslash.c: Update.
899 * gnulib/import/strnlen1.c: Update.
900 * gnulib/import/strnlen1.h: Update.
901 * gnulib/import/strstr.c: Update.
902 * gnulib/import/strtok_r.c: Update.
903 * gnulib/import/sys_stat.in.h: Update.
904 * gnulib/import/sys_time.in.h: Update.
905 * gnulib/import/sys_types.in.h: Update.
906 * gnulib/import/time.in.h: Update.
907 * gnulib/import/unistd.in.h: Update.
908 * gnulib/import/verify.h: Update.
909 * gnulib/import/wchar.in.h: Update.
910 * gnulib/import/wctype.in.h: Update.
911 * gnulib/import/gettimeofday.c: New file.
912 * gnulib/import/m4/absolute-header.m4: New file.
913 * gnulib/import/m4/gettimeofday.m4: New file.
914 * gnulib/import/m4/sys_socket_h.m4: New file.
915 * gnulib/import/m4/sys_time_h.m4: New file.
916 * gnulib/import/stdio.c: Delete file.
917 * gnulib/import/sys_time.in.h: New file.
918
438e1e42
PA
9192015-08-24 Pedro Alves <palves@redhat.com>
920
921 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
922 * common/gdb_sys_time.h: New file.
923 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
924 * gdb_select.h: Likewise.
925 * gdb_usleep.c: Likewise.
926 * maint.c: Likewise.
927 * mi/mi-main.c: Likewise.
928 * mi/mi-parse.h: Likewise.
929 * remote-fileio.c: Likewise.
930 * remote-m32r-sdi.c: Likewise.
931 * remote.c: Likewise.
932 * ser-base.c: Likewise.
933 * ser-pipe.c: Likewise.
934 * ser-tcp.c: Likewise.
935 * ser-unix.c: Likewise.
936 * symfile.c: Likewise.
937 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
938 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
939 * utils.c: Likewise.
940
40e0b271
PA
9412015-08-24 Pedro Alves <palves@redhat.com>
942
943 * NEWS: Mention removed support for the various ROM monitors.
944 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
945 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
946 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
947 gdb_target_obs.
948 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
949 gdb_target_obs.
950 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
951 dsrec.o from gdb_target_obs.
952 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
953 from gdb_target_obs.
954 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
955 gdb_target_obs.
956 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
957 dink32-rom.o from gdb_target_obs.
958 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
959 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
960 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
961 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
962
f8904751
PA
9632015-08-21 Pedro Alves <palves@redhat.com>
964
965 * frame.c (null_frame_id): Explicitly zero-initialize.
966
049412e3
TT
9672015-08-21 Tom Tromey <tromey@redhat.com>
968
969 * dwarf2read.c (struct dwarf2_section_info): Rename field
970 'asection' to 'section'.
971 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
972 (dwarf2_locate_sections, dwarf2_locate_sections)
973 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
974 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
975 (dwarf2_locate_v2_dwp_sections): Adjust.
976
948578a9
PP
9772015-08-21 Patrick Palka <patrick@parcs.ath.cx>
978
979 * top.h (gdb_in_secondary_prompt_p): Declare.
980 * top.c (gdb_secondary_prompt_depth): Define.
981 (gdb_in_secondary_prompt_p): Define.
982 (gdb_readline_wrapper_cleanup): Decrement
983 gdb_secondary_prompt_depth.
984 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
985 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
986 are in a secondary prompt.
987
7a8bcb88
PP
9882015-08-21 Patrick Palka <patrick@parcs.ath.cx>
989
990 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
991 emit the newline.
992
2d7711a3
GB
9932015-08-21 Gary Benson <gbenson@redhat.com>
994
995 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
996
4313b8c0
GB
9972015-08-21 Gary Benson <gbenson@redhat.com>
998
999 * target.h (struct target_ops) <to_fileio_open>: New argument
1000 warn_if_slow. Update comment. All implementations updated.
1001 (target_fileio_open_warn_if_slow): New declaration.
1002 * target.c (target_fileio_open): Renamed as...
1003 (target_fileio_open_1): ...this. New argument warn_if_slow.
1004 Pass warn_if_slow to implementation. Update debug printing.
1005 (target_fileio_open): New function.
1006 (target_fileio_open_warn_if_slow): Likewise.
1007 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
1008 target_fileio_open_warn_if_slow.
1009
f36b8719
GB
10102015-08-21 Gary Benson <gbenson@redhat.com>
1011
1012 * nat/linux-namespaces.c (linux_mntns_access_fs):
1013 Do not overwrite old_chain.
1014
40045d91
MF
10152015-08-20 Max Filippov <jcmvbkbc@gmail.com>
1016
1017 * arch/xtensa.h: New file.
1018 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
1019 (ps_get_thread_area): New function.
1020 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
1021 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
1022 * xtensa-tdep.c (osabi.h): New #include.
1023 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
1024 xtensa-specific hooks.
1025 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
1026 member and move the structure to arch/xtensa.h.
1027
80152258
PA
10282015-08-21 Pedro Alves <palves@redhat.com>
1029
1030 * remote.c (struct readahead_cache): New.
1031 (struct remote_state) <readahead_cache>: New field.
1032 (remote_open_1): Invalidate the cache.
1033 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
1034 functions.
1035 (remote_hostio_pwrite): Invalidate the readahead cache.
1036 (remote_hostio_pread): Rename to ...
1037 (remote_hostio_pread_vFile): ... this.
1038 (remote_hostio_pread_from_cache): New function.
1039 (remote_hostio_pread): Reimplement.
1040 (remote_hostio_close): Invalidate the readahead cache.
1041
88fc5eb7
MC
10422015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
1043
1044 PR build/18843
1045 * procfs.c: Include "filestuff.h".
1046
6f1cb6ea
PP
10472015-08-21 Patrick Palka <patrick@parcs.ath.cx>
1048
1049 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
1050 curch.
1051 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
1052 cur_line or curch, instead call wmove().
1053 (init_win_info) [CMD_WIN]: Likewise.
1054 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
1055 instead call getcury().
1056 (tui_redisplay_readline): Don't set cur_line or curch.
1057 (tui_mld_erase_entire_line): Don't read cur_line, instead call
1058 getcury().
1059 (tui_cont_sig): Remove call to wmove.
1060 (tui_getc): Don't read cur_line or curch, instead call getcury()
1061 or getyx(). Don't set curch.
1062 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
1063 set cur_line or curch. Always move cursor to (0,0).
1064
221e1a37
PA
10652015-08-20 Pedro Alves <palves@redhat.com>
1066
1067 * infrun.c (print_target_wait_results): Make extern.
1068 * infrun.h (print_target_wait_results): Declare.
1069 * remote.c (set_stop_requested_callback): Delete.
1070 (process_initial_stop_replies): New function.
1071 (remote_start_remote): Use it.
1072 (stop_reply_queue_length): New function.
1073
40e3ad0e
PA
10742015-08-20 Pedro Alves <palves@redhat.com>
1075
1076 * dwarf2read.c (process_full_comp_unit): To tell whether
1077 start_subfile managed to deduce a language, test for
1078 language_unknown instead of language_c.
1079
af39b327
PMR
10802015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
1081
1082 * ada-lex.l: Reset the start condition to INITIAL in the rule that
1083 matches attributes.
1084
7d45c7c3
KB
10852015-08-19 Kevin Buettner <kevinb@redhat.com>
1086
1087 * dwarf2read.c (dwarf2_string_attr): New function.
1088 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
1089 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
1090 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
1091 (anonymous_struct_prefix, prepare_one_comp_unit): Use
1092 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
1093
4d6cceb4
DE
10942015-08-18 Doug Evans <dje@google.com>
1095 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1096
1097 PR mi/18833
1098 * cli/cli-logging.c (pop_output_files): Don't restore redirection
1099 if MI-like.
1100 * mi/mi-out.c: #include "vec.h".
1101 (ui_filep): New type.
1102 (DEV_VEC_P (ui_filep)): New type.
1103 (struct ui_out_data) <buffer, original_buffer>: Delete.
1104 (struct ui_out_data) <streams>: New member.
1105 (mi_ui_out_impl): Add data_destroy field.
1106 (mi_field_string, mi_field_fmt): Update.
1107 (mi_flush, mi_redirect, field_separator): Update.
1108 (mi_open, mi_close): Update.
1109 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
1110 (mi_out_data_ctor, mi_out_data_dtor): New functions.
1111 (mi_out_new): Call mi_out_data_ctor.
1112
26d56a93
SL
11132015-08-18 Sandra Loosemore <sandra@codesourcery.com>
1114
1115 * remote.c (strprefix): New.
1116 (remote_parse_stop_reply): Use strprefix instead of strncmp
1117 to ensure exact match of keyword.
1118
566f5e3b
AB
11192015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * gdb_bfd.c (debug_bfd_cache): New variable.
1122 (show_bfd_cache_debug): New function.
1123 (gdb_bfd_open): Add debug logging.
1124 (gdb_bfd_ref): Likewise.
1125 (gdb_bfd_unref): Likewise.
1126 (_initialize_gdb_bfd): Add new set/show command.
1127 * NEWS: Mention new command.
1128
18989b3c
AB
11292015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * gdb_bfd.c (bfd_sharing): New variable.
1132 (show_bfd_sharing): New function.
1133 (gdb_bfd_open): Check bfd_sharing variable.
1134 (_initialize_gdb_bfd): Add new set/show command.
1135 * NEWS: Mention new command.
1136
c04fe68f
AB
11372015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1138
1139 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
1140 field.
1141 (struct gdb_bfd_cache_search): Likewise.
1142 (eq_bfd): Compare the size, inode, and device id fields.
1143 (gdb_bfd_open): Initialise the size, inode, and device id fields.
1144 (gdb_bfd_ref): Likewise.
1145 (gdb_bfd_unref): Likewise.
1146
b2a33439
PA
11472015-08-18 Pedro Alves <palves@redhat.com>
1148
1149 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
1150 target implements to_always_non_stop_p, call it.
1151 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
1152 (x86_linux_create_target): Install it as to_always_non_stop_p
1153 method.
1154
71b57e37
DE
11552015-08-17 Doug Evans <dje@google.com>
1156
1157 * ui-out.c (default_ui_out_impl): Add comment.
1158
7f3706eb
IB
11592015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
1160
1161 * d-exp.y (type_aggregate_p): New function.
1162 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
1163 (classify_inner_name): Likewise.
1164 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
1165
1762568f
DE
11662015-08-15 Doug Evans <xdje42@gmail.com>
1167
1168 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
1169 updated.
1170 (add_psymbol_to_list): Ditto.
1171
8763cede
DE
11722015-08-15 Doug Evans <xdje42@gmail.com>
1173
1174 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
1175 updated. Call end_psymtab_common.
1176 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1177 end_psymtab_common.
1178 (build_type_psymtabs_reader): Ditto.
1179 * psympriv.h (sort_pst_symbols): Delete.
1180 (end_psymtab_common): Declare.
1181 * psymtab.c (sort_pst_symbols): Make static.
1182 (end_psymtab_common): New function.
1183 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1184
51cdc993
DE
11852015-08-15 Doug Evans <xdje42@gmail.com>
1186
1187 * defs.h (LANGUAGE_BITS): Define.
1188 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1189 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1190 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1191 (minimal_symbol_type): Add nr_minsym_types.
1192 (MINSYM_TYPE_BITS): Define.
1193 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1194 (domain_enum_tag): Add NR_DOMAINS.
1195 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1196 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1197
95cf5869
DE
11982015-08-15 Doug Evans <xdje42@gmail.com>
1199
1200 * objfiles.h: Whitespace cleanup.
1201 * psympriv.h: Whitespace cleanup.
1202 * psymtab.c: Whitespace/coding convention cleanup.
1203
e3ae3c43
PP
12042015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1205
1206 * inferior.c (detach_inferior_command): Don't call
1207 any_thread_of_process when pid is 0.
1208 (kill_inferior_command): Likewise.
1209
6ff0ba5f
DE
12102015-08-14 Doug Evans <xdje42@gmail.com>
1211
1212 PR gdb/11833
1213 * NEWS: Document new /s modifier for the disassemble command.
1214 * cli/cli-cmds.c (disassemble_command): Add support for /s.
1215 (_initialize_cli_cmds): Update online docs of disassemble command.
1216 * disasm.c: #include "source.h".
1217 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
1218 All uses updated.
1219 (dis_line_entry): New struct.
1220 (hash_dis_line_entry, eq_dis_line_entry): New functions.
1221 (allocate_dis_line_table): New functions.
1222 (maybe_add_dis_line_entry, line_has_code_p): New functions.
1223 (dump_insns): New arg end_pc. All callers updated.
1224 (do_mixed_source_and_assembly_deprecated): Renamed from
1225 do_mixed_source_and_assembly. All callers updated.
1226 (do_mixed_source_and_assembly): New function.
1227 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
1228 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
1229 DISASSEMBLY_SOURCE. All uses updated.
1230 (DISASSEMBLY_SOURCE): New macro.
1231 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
1232
b56ccc20
KS
12332015-08-14 Keith Seitz <keiths@redhat.com>
1234
1235 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
1236 `typename' to `type_name' to avoid C++ reserved word.
1237
ebdad8fc
KS
12382015-08-14 Keith Seitz <keiths@redhat.com>
1239
1240 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
1241 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
1242 silence ARI errors.
1243
c0fe2ae7
IB
12442015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
1245
1246 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
1247 xstrprintf instead of malloc and sprintf.
1248 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
1249 (lex_one_token): Likewise.
1250
a738da3a
MF
12512015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1252
1253 * solib-svr4.c (read_program_header): Add base_addr argument to
1254 report the runtime address of the segment.
1255 (find_program_interpreter): Update read_program_header call to pass
1256 a NULL pointer for the new argument.
1257 (scan_dyntag): Add ptr_addr argument to report the runtime address
1258 of the tag payload.
1259 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
1260 read_program_header to get the base address of the dynamic segment.
1261 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
1262 read_program_header.
1263 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
1264
f8edc4ff
MF
12652015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1266
1267 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
1268
444c1ed8
IB
12692015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1270
1271 * d-exp.y (%union): Add voidval.
1272 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
1273 name in the lexing stage.
1274 (PostfixExpression): Move symbol completion handling in grammar here
1275 from PrimaryExpression.
1276 (PrimaryExpression): Move routines to handle resolving identifier
1277 tokens in the grammar here from push_expression_name.
1278 (IdentifierExp): Remove the handling of alternating '.' and identifier
1279 tokens.
1280 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
1281 (BasicType): Remove C-style typename rules.
1282 (d_type_from_name, d_module_from_name, push_variable)
1283 (push_fieldnames, push_type_name, push_module_name)
1284 (push_expression_name): Remove.
1285 (lex_one_token): Rename from yylex. Replace pstate with par_state.
1286 (token_and_value): New type.
1287 (token_fifo, popping, name_obstack): New globals.
1288 (classify_name): New function.
1289 (classify_inner_name): Likewise.
1290 (yylex): Likewise.
1291 (d_parse): Initialize token_fifo, popping and name_obstack.
1292
bc7c9fab
IB
12932015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1294
1295 * Makefile.in (SFILES): Add d-namespace.c.
1296 (COMMON_OBS): Add d-namespace.o.
1297 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
1298 la_lookup_symbol_nonlocal callback function pointer.
1299 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
1300 (d_lookup_nested_symbol): New declaration.
1301 * d-namespace.c: New file.
1302
3207396b
PA
13032015-08-13 Pedro Alves <palves@redhat.com>
1304
1305 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
1306 cleanup after the decref cleanup, not before.
1307
5d8c3ed3
PMR
13082015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
1309
1310 * ada-lang.c: Include namespace.h
1311 (aux_add_nonlocal_symbols): Fix a function name in comment.
1312 (ada_add_block_renamings): New.
1313 (add_nonlocal_symbols): Add global renamings handling.
1314 (ada_lookup_symbol_list_worker): Move the symbol lookup part
1315 to...
1316 (ada_add_all_symbols): ... this new function.
1317 (ada_add_block_symbols): Try to match the input name against the
1318 "using directives list", perform a recursive symbol lookup on
1319 the matched declarations.
1320 * block.h (struct block): Move the_namespace to top-level as
1321 namespace_info. Remove the language_specific field.
1322 (BLOCK_NAMESPACE): Update access to the namespace_info field.
1323 * buildsym.h (using_directives): Rename into...
1324 (local_using_directives): ... this.
1325 (global_using_directives): New.
1326 (struct context_stack): Rename the using_directives field into
1327 local_using_directives.
1328 * buildsym.c (finish_block_internal): Deal with the proper
1329 using directives repository (local or global).
1330 (prepare_for_building): Reset local_using_directives. Assert
1331 that there is no pending global using directive.
1332 (reset_symtab_globals): Reset global_using_directives and
1333 local_using_directives.
1334 (end_symtab_get_static_block): Don't ignore symtabs that have
1335 only using directives.
1336 (push_context): Update references to local_using_directives.
1337 (buildsym_init): Do not reset using_directives.
1338 * cp-support.c: Include namespace.h.
1339 * cp-support.h (struct using_direct): Move to namespace.h.
1340 (cp_add_using_directives): Move to namespace.h.
1341 * cp-namespace.c: Include namespace.h
1342 (cp_add_using_directive): Move to namespace.c, rename it to
1343 add_using_directive, add a "using_directives" argument and use
1344 it as the pending using directives repository. All callers
1345 updated.
1346 * dwarf2read.c (using_directives): New.
1347 (read_import_statement): Call using_directives.
1348 (read_func_scope): Update references to local_using_directives.
1349 (read_lexical_block_scope): Likewise.
1350 (read_namespace): Update the heading comment, call
1351 using_directives.
1352 * namespace.h: New file.
1353 * namespace.c: New file.
1354 * Makefile.in (SFILES): Add namespace.c.
1355 (COMMON_OBS): Add namespace.o
1356
4dafcdeb
JB
13572015-08-12 Joel Brobecker <brobecker@adacore.com>
1358
1359 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
1360 compute RETADDR.
1361
67994074
KS
13622015-08-12 Keith Seitz <keiths@redhat.com>
1363
1364 * break-catch-throw.c (re_set_exception_catchpoint) Rename
1365 reserved C++ keyword "explicit" to "explicit_loc".
1366 * breakpoint.c (create_overlay_event_breakpoint)
1367 (create_longjmp_master_breakpoint)
1368 (create_std_terminate_master_breakpoint)
1369 (create_exception_master_breakpoint, update_static_tracepoint):
1370 Rename reserved C++ keyword "explicit" to "explicit_loc".
1371 * completer.c (collect_explicit_location_matches)
1372 (explicit_location_completer): Rename reserved C++ keyword
1373 "explicit" to "explicit_loc".
1374 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
1375 (canonicalize_linespec, create_sals_line_offset)
1376 (convert_linespec_to_sals, convert_explicit_location_to_sals)
1377 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
1378 "explicit" to "explicit_loc".
1379 * location.c (struct event_location) <explicit>: Rename to
1380 "explicit_loc".
1381 (initialize_explicit_location, new_explicit_location)
1382 (explicit_location_to_string_internal, explicit_location_to_linespec):
1383 Rename reserved C++ keyword "explicit" to "explicit_loc".
1384 * location.h (explicit_location_to_string)
1385 (explicit_location_to_linespec, initialize_explicit_location)
1386 (new_explicit_location): Rename reserved C++ keyword "explicit"
1387 to "explicit_loc".
1388 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
1389 keyword "explicit" to "explicit_loc".
1390
59ecaff3
KS
13912015-08-12 Keith Seitz <keiths@redhat.com>
1392
1393 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
1394 and only call decode_line_1 when it is non-NULL.
1395
244558af
LM
13962015-08-12 Luis Machado <lgustavo@codesourcery.com>
1397
1398 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
1399 location address is not meaningful.
1400 (breakpoint_address_is_meaningful): Update comment.
1401
629500fa
KS
14022015-08-11 Keith Seitz <keiths@redhat.com>
1403
1404 * NEWS: Mention explicit locations.
1405 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
1406 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
1407 (_initialize_breakpoint): Update documentation for
1408 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
1409
eb8c4e2e
KS
14102015-08-11 Keith Seitz <keiths@redhat.com>
1411
1412 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
1413 explicit locations, options "--source", "--function",
1414 "--label", and "--line".
1415
87f0e720
KS
14162015-08-11 Keith Seitz <keiths@redhat.com>
1417
1418 * completer.c: Include location.h.
1419 (enum match_type): New enum.
1420 (location_completer): Rename to ...
1421 (linespec_completer): ... this.
1422 (collect_explicit_location_matches, backup_text_ptr)
1423 (explicit_location_completer): New functions.
1424 (location_completer): "New" function; handle linespec
1425 and explicit location completions.
1426 (complete_line_internal): Remove all location completer-specific
1427 handling.
1428 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
1429 (find_toplevel_char): Export.
1430 (linespec_parse_line_offset): Export.
1431 Issue error if STRING is not numerical.
1432 (gdb_get_linespec_parser_quote_characters): New function.
1433 * linespec.h (linespec_parse_line_offset): Declare.
1434 (get_gdb_linespec_parser_quote_characters): Declare.
1435 (is_ada_operator): Declare.
1436 (find_toplevel_char): Declare.
1437 (linespec_lexer_lex_keyword): Declare.
1438 * location.c (explicit_to_event_location): New function.
1439 (explicit_location_lex_one): New function.
1440 (string_to_explicit_location): New function.
1441 (string_to_event_location): Handle explicit locations.
1442 * location.h (explicit_to_event_location): Declare.
1443 (string_to_explicit_location): Declare.
1444
00e52e53
KS
14452015-08-11 Keith Seitz <keiths@redhat.com>
1446
1447 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1448 linespec into explicit location.
1449 * breakpoint.c (create_overlay_breakpoint)
1450 (create_longjmp_master_breakpoint)
1451 (create_std_terminate_master_breakpoint)
1452 (create_exception_master_breakpoint): Convert linespec into explicit
1453 location.
1454 (update_static_tracepoint): Convert linespec into explicit location.
1455 * linespec.c (enum offset_relative_sign, struct line_offset): Move
1456 location.h.
1457 (struct linespec) <expression, expr_pc, source_filename>
1458 <function_name, label_name, line_offset>: Replace with ...
1459 <explicit>: ... this.
1460 <is_linespec>: New member.
1461 (PARSER_EXPLICIT): New accessor macro.
1462 (undefined_label_error): New function.
1463 (source_file_not_found_error): New function.
1464 (linespec_parse_basic): The parser result is now an explicit location.
1465 Use PARSER_EXPLICIT to access it.
1466 Use undefined_label_error.
1467 (canonicalize_linespec): Convert canonical linespec into explicit
1468 location.
1469 Move string representation of location to explicit_location_to_linespec
1470 and use it and explicit_location_to_string to save string
1471 representations of the canonical location.
1472 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
1473 explicit location. Update all references.
1474 (convert_explicit_location_to_sals): New function.
1475 (parse_linespec): Use PARSER_EXPLICIT to access the parser
1476 result's explicit location.
1477 (linespec_state_constructor): Initialize is_linespec.
1478 Use PARSER_EXPLICIT.
1479 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
1480 result.
1481 (event_location_to_sals): For linespec locations, set is_linespec.
1482 Handle explicit locations.
1483 (decode_objc): 'ls' contains an explicit location now. Update all
1484 references.
1485 (symtabs_from_filename): Use source_file_not_found_error.
1486 * location.c (struct event_location.u) <explicit>: New member.
1487 (initialize_explicit_location): New function.
1488 (initialize_event_location): Initialize explicit locations.
1489 (new_explicit_location, get_explicit_location)
1490 (get_explicit_location_const): New functions.
1491 (explicit_to_string_internal): New function; most of contents moved
1492 from canonicalize_linespec.
1493 (explicit_location_to_string): New function.
1494 (explicit_location_to_linespec): New function.
1495 (copy_event_location, delete_event_location)
1496 (event_location_to_string_const, event_location_empty_p): Handle
1497 explicit locations.
1498 * location.h (enum offset_relative_sign, struct line_offset): Move
1499 here from linespec.h.
1500 (enum event_location_type): Add EXPLICIT_LOCATION.
1501 (struct explicit_location): New structure.
1502 (explicit_location_to_string): Declare.
1503 (explicit_location_to_linespec): Declare.
1504 (new_explicit_location, get_explicit_locationp
1505 (get_explicit_location_const, initialize_explicit_location): Declare.
1506
5b56227b
KS
15072015-08-11 Keith Seitz <keiths@redhat.com>
1508
1509 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1510 linespec for stap probe to probe location.
1511 * breakpoint.c (create_longjmp_master_breakpoint)
1512 (create_exception_master_breakpoint): Likewise.
1513 (break_command_1): Remove local variable `arg_cp'.
1514 Check location type to set appropriate breakpoint ops methods.
1515 (trace_command): Likewise.
1516 * linespec.c (event_location_to_sals): Assert on probe locations.
1517 * location.c (EL_PROBE): Add macro definition.
1518 (new_probe_location, get_probe_location): New functions.
1519 (copy_event_location, delete_event_location, event_location_to_string)
1520 (string_to_event_location, event_location_empty_p): Handle probe
1521 locations.
1522 * location.h (enum event_location_type): Add PROBE_LOCATION.
1523 (new_probe_location, get_probe_location): Declare.
1524 * probe.c (parse_probes): Assert that LOCATION is a probe location.
1525 Convert linespec into probe location.
1526
a06efdd6
KS
15272015-08-11 Keith Seitz <keiths@redhat.com>
1528
1529 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
1530 Convert linespec to address location.
1531 * linespec.c (canonicalize_linespec): Do not handle address
1532 locations here.
1533 (convert_address_location_to_sals): New function; contents moved
1534 from ...
1535 (convert_linespc_to_sals): ... here.
1536 (parse_linespec): Remove address locations from linespec grammar.
1537 Remove handling of address locations.
1538 (linespec_lex_to_end): Remove handling of address linespecs.
1539 (event_location_to_sals): Handle ADDRESS_LOCATION.
1540 (linespec_expression_to_pc): Export.
1541 * linespec.h (linespec_expression_to_pc): Add declaration.
1542 * location.c (struct event_location.u) <address>: New member.
1543 (new_address_location, get_address_location): New functions.
1544 (copy_event_location, delete_event_location, event_location_to_string)
1545 (string_to_event_location, event_location_empty_p): Handle address
1546 locations.
1547 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
1548 (new_address_location, get_address_location): Declare.
1549 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
1550 to address location.
1551 * spu-tdep.c (spu_catch_start): Likewise.
1552
f00aae0f
KS
15532015-08-11 Keith Seitz <keiths@redhat.com>
1554
1555 * ax-gdb.c: Include location.h.
1556 (agent_command_1) Use linespec location instead of address
1557 string.
1558 * break-catch-throw.c: Include location.h.
1559 (re_set_exception_catchpoint): Use linespec locations instead
1560 of address strings.
1561 * breakpoint.c: Include location.h.
1562 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
1563 (create_std_terminate_master_breakpoint)
1564 (create_exception_master_breakpoint, update_breakpoints_after_exec):
1565 Use linespec location instead of address string.
1566 (print_breakpoint_location): Use locations and
1567 event_location_to_string.
1568 Print extra_string for pending locations for non-MI streams.
1569 (print_one_breakpoint_location): Use locations and
1570 event_location_to_string.
1571 (init_raw_breakpoint_without_location): Initialize b->location.
1572 (create_thread_event_breakpoint): Use linespec location instead of
1573 address string.
1574 (init_breakpoint_sal): Likewise.
1575 Only save extra_string if it is non-NULL and not the empty string.
1576 Use event_location_to_string instead of `addr_string'.
1577 Constify `p' and `endp'.
1578 Use skip_spaces_const/skip_space_const instead of non-const versions.
1579 Copy the location into the breakpoint.
1580 If LOCATION is NULL, save the breakpoint address as a linespec location
1581 instead of an address string.
1582 (create_breakpoint_sal): Change `addr_string' parameter to a struct
1583 event_location. All uses updated.
1584 (create_breakpoints_sal): Likewise for local variable `addr_string'.
1585 (parse_breakpoint_sals): Use locations instead of address strings.
1586 Remove check for empty linespec with conditional.
1587 Refactor.
1588 (decode_static_tracepoint_spec): Make argument const and update
1589 function.
1590 (create_breakpoint): Change `arg' to a struct event_location and
1591 rename.
1592 Remove `copy_arg' and `addr_start'.
1593 If EXTRA_STRING is empty, set it to NULL.
1594 Don't populate `canonical' for pending breakpoints.
1595 Pass `extra_string' to find_condition_and_thread.
1596 Clear `extra_string' if `rest' was NULL.
1597 Do not error with "garbage after location" if setting a dprintf
1598 breakpoint.
1599 Copy the location into the breakpoint instead of an address string.
1600 (break_command_1): Use string_to_event_location and pass this to
1601 create_breakpoint instead of an address string.
1602 Check against `arg_cp' for a probe linespec.
1603 (dprintf_command): Use string_to_event_location and pass this to
1604 create_breakpoint instead of an address string.
1605 Throw an exception if no format string was specified.
1606 (print_recreate_ranged_breakpoint): Use event_location_to_string
1607 instead of address strings.
1608 (break_range_command, until_break_command)
1609 (init_ada_exception_breakpoint): Use locations instead
1610 of address strings.
1611 (say_where): Print out extra_string for pending locations.
1612 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
1613 the breakpoint.
1614 (base_breakpoint_create_sals_from_location): Use struct event_location
1615 instead of address string.
1616 Remove `addr_start' and `copy_arg' parameters.
1617 (base_breakpoint_decode_location): Use struct event_location instead of
1618 address string.
1619 (bkpt_re_set): Use locations instead of address strings.
1620 Use event_location_empty_p to check for unset location.
1621 (bkpt_print_recreate): Use event_location_to_string instead of
1622 an address string.
1623 Print out extra_string for pending locations.
1624 (bkpt_create_sals_from_location, bkpt_decode_location)
1625 (bkpt_probe_create_sals_from_location): Use struct event_location
1626 instead of address string.
1627 (bkpt_probe_decode_location): Use struct event_location instead of
1628 address string.
1629 (tracepoint_print_recreate): Use event_location_to_string to
1630 recreate the tracepoint.
1631 (tracepoint_create_sals_from_location, tracepoint_decode_location)
1632 (tracepoint_probe_create_sals_from_location)
1633 (tracepoint_probe_decode_location): Use struct event_location
1634 instead of address string.
1635 (dprintf_print_recreate): Use event_location_to_string to recreate
1636 the dprintf.
1637 (dprintf_re_set): Remove check for valid/missing format string.
1638 (strace_marker_create_sals_from_location)
1639 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
1640 (update_static_tracepoint): Use struct event_location instead of
1641 address string.
1642 (location_to_sals): Likewise.
1643 Pass `extra_string' to find_condition_and_thread.
1644 For newly resolved pending breakpoint locations, clear the location's
1645 string representation.
1646 Assert that the breakpoint's condition string is NULL when
1647 condition_not_parsed.
1648 (breakpoint_re_set_default, create_sals_from_location_default)
1649 (decode_location_default, trace_command, ftrace_command)
1650 (strace_command, create_tracepoint_from_upload): Use locations
1651 instead of address strings.
1652 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
1653 Use struct event_location instead of address string.
1654 Update all uses.
1655 <decode_location>: Likewise.
1656 (struct breakpoint) <addr_string>: Change to struct event_location
1657 and rename `location'.
1658 <addr_string_range_end>: Change to struct event_location and rename
1659 `location_range_end'.
1660 (create_breakpoint): Use struct event_location instead of address
1661 string.
1662 * cli/cli-cmds.c: Include location.h.
1663 (edit_command, list_command): Use locations instead of address strings.
1664 * elfread.c: Include location.h.
1665 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
1666 * guile/scm-breakpoint.c: Include location.h.
1667 (bpscm_print_breakpoint_smob): Use event_location_to_string.
1668 (gdbscm_register_breakpoint): Use locations instead of address
1669 strings.
1670 * linespec.c: Include location.h.
1671 (struct ls_parser) <stream>: Change to const char *.
1672 (PARSER_STREAM): Update.
1673 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
1674 keywords must be followed by whitespace.
1675 (canonicalize_linespec): Save a linespec location into `canonical'.
1676 Save a canonical linespec into `canonical'.
1677 (parse_linespec): Change `argptr' to const char * and rename `arg'.
1678 All uses updated.
1679 Update function description.
1680 (linespec_parser_new): Initialize `parser'.
1681 Update initialization of parsing stream.
1682 (event_location_to_sals): New function.
1683 (decode_line_full): Change `argptr' to a struct event_location and
1684 rename it `location'.
1685 Use locations instead of address strings.
1686 Call event_location_to_sals instead of parse_linespec.
1687 (decode_line_1): Likewise.
1688 (decode_line_with_current_source, decode_line_with_last_displayed)
1689 Use locations instead of address strings.
1690 (decode_objc): Likewise.
1691 Change `argptr' to const char * and rename `arg'.
1692 (destroy_linespec_result): Delete the linespec result's location
1693 instead of freeing the address string.
1694 * linespec.h (struct linespec_result) <addr_string>: Change to
1695 struct event_location and rename to ...
1696 <location>: ... this.
1697 (decode_line_1, decode_line_full): Change `argptr' to struct
1698 event_location. All callers updated.
1699 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
1700 (mi_cmd_break_insert_1): Use locations instead of address strings.
1701 Throw an error if there was "garbage" at the end of the specified
1702 linespec.
1703 * probe.c: Include location.h.
1704 (parse_probes): Change `argptr' to struct event_location.
1705 Use event locations instead of address strings.
1706 * probe.h (parse_probes): Change `argptr' to struct event_location.
1707 * python/py-breakpoint.c: Include location.h.
1708 (bppy_get_location): Constify local variable `str'.
1709 Use event_location_to_string.
1710 (bppy_init): Use locations instead of address strings.
1711 * python/py-finishbreakpoint.c: Include location.h.
1712 (bpfinishpy_init): Remove local variable `addr_str'.
1713 Use locations instead of address strings.
1714 * python/python.c: Include location.h.
1715 (gdbpy_decode_line): Use locations instead of address strings.
1716 * remote.c: Include location.h.
1717 (remote_download_tracepoint): Use locations instead of address
1718 strings.
1719 * spu-tdep.c: Include location.h.
1720 (spu_catch_start): Remove local variable `buf'.
1721 Use locations instead of address strings.
1722 * tracepoint.c: Include location.h.
1723 (scope_info): Use locations instead of address strings.
1724 (encode_source_string): Constify parameter `src'.
1725 * tracepoint.h (encode_source_string): Likewise.
1726
c7c1b3e9
KS
17272015-08-11 Keith Seitz <keiths@redhat.com>
1728
1729 * Makefile.in (SFILES): Add location.c.
1730 (HFILES_NO_SRCDIR): Add location.h.
1731 (COMMON_OBS): Add location.o.
1732 * linespec.c (linespec_lex_to_end): New function.
1733 * linespec.h (linespec_lex_to_end): Declare.
1734 * location.c: New file.
1735 * location.h: New file.
1736
5f700d83
KS
17372015-08-11 Keith Seitz <keiths@redhat.com>
1738
1739 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
1740 Renamed to create_sals_from_location.
1741 <decode_linespec>: Renamed to decode_location.
1742 Update all callers.
1743 * breakpoint.c (create_sals_from_address_default): Renamed to ...
1744 (create_sals_from_location_default): ... this.
1745 (addr_string_to_sals): Renamed to ...
1746 (location_to_sals): ... this.
1747 (decode_linespec_default): Renamed to ...
1748 (decode_location_default): ... this.
1749 (base_breakpoint_create_sals_from_address): Renamed to ...
1750 (base_breakpoint_create_sals_from_location): ... this.
1751 (bkpt_create_sals_from_address): Renamed to ...
1752 (bkpt_create_sals_from_location): ... this.
1753 (bkpt_decode_linespec): Renamed to ...
1754 (bkpt_decode_location): ... this.
1755 (bkpt_probe_create_sals_from_address): Renamed to ...
1756 (bkpt_probe_create_sals_from_location): ... this.
1757 (tracepoint_create_sals_from_address): Renamed to ...
1758 (tracepoint_create_sals_from_location): ... this.
1759 (tracepoint_decode_linespec): Renamed to ...
1760 (tracepoint_decode_location): ... this.
1761 (tracepoint_probe_create_sals_from_address): Renamed to ...
1762 (tracepoint_probe_create_sals_from_location): ... this.
1763 (tracepoint_probe_decode_linespec): Renamed to ...
1764 (tracepoint_probe_decode_location): ... this.
1765 (strace_marker_create_sals_from_address): Renamed to ...
1766 (strace_marker_create_sals_from_location): ... this.
1767 (decode_linespec_default): Renamed to ...
1768 (decode_location_default): ... this.
1769
e27852be
DE
17702015-08-10 Doug Evans <dje@google.com>
1771 Keith Seitz <keiths@redhat.com>
1772
1773 PR gdb/17960
1774 * symtab.c (make_file_symbol_completion_list_1): Renamed from
1775 make_file_symbol_completion_list and made static.
1776 (make_file_symbol_completion_list): New function.
80af41e0 1777
fd7dcb94
JB
17782015-08-10 Joel Brobecker <brobecker@adacore.com>
1779
1780 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
1781 trailing new-line at end of warning message.
1782 (proceed): Add i18n marker to error messages.
1783
f12899e9
PA
17842015-08-07 Pedro Alves <palves@redhat.com>
1785
1786 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
1787
5ac21343
PA
17882015-08-07 Pedro Alves <palves@redhat.com>
1789
1790 * s390-linux-tdep.c (is_non_branch_ril)
1791 (s390_displaced_step_copy_insn): New functions.
1792 (s390_displaced_step_fixup): Update comment.
1793 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
1794 gdbarch_displaced_step_copy_insn hook.
1795
7f03bd92
PA
17962015-08-07 Pedro Alves <palves@redhat.com>
1797
1798 * infrun.c (displaced_step_prepare_throw): Return -1 if
1799 gdbarch_displaced_step_copy_insn returns NULL. Update intro
1800 comment.
1801 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
1802 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
1803 in file.
1804 (ppc_displaced_step_copy_insn): New function.
1805 (ppc_displaced_step_fixup): Update comment.
1806 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
1807 gdbarch_displaced_step_copy_insn hook.
1808 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
1809 NULL return.
1810 * gdbarch.h: Regenerate.
1811
3fc8eb30
PA
18122015-08-07 Pedro Alves <palves@redhat.com>
1813
1814 * inferior.h (struct inferior) <displaced_stepping_failed>: New
1815 field.
1816 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
1817 Return false if dispaced stepping failed before.
1818 (resume): Pass the current inferior to
1819 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
1820 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
1821 displaced_stepping_failed flag, and fall back to an in-line
1822 step-over.
1823
bfedc46a
PA
18242015-08-07 Pedro Alves <palves@redhat.com>
1825
1826 * darwin-nat.c (darwin_stop): Rename to ...
1827 (darwin_interrupt): ... this.
1828 (_initialize_darwin_inferior): Adjust.
1829 * gnu-nat.c (gnu_stop): Delete.
1830 (gnu_target): Don't install gnu_stop.
1831 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
1832 (inf_ptrace_interrupt): ... this.
1833 (inf_ptrace_target): Adjust.
1834 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
1835 target_stop.
1836 * linux-nat (linux_nat_stop): Rename to ...
1837 (linux_nat_interrupt): ... this.
1838 (linux_nat_stop): Reimplement.
1839 (linux_nat_add_target): Install linux_nat_interrupt.
1840 * nto-procfs.c (nto_interrupt_twice): Rename to ...
1841 (nto_handle_sigint_twice): ... this.
1842 (nto_interrupt): Rename to ...
1843 (nto_handle_sigint): ... this. Call target_interrupt instead of
1844 target_stop.
1845 (procfs_wait): Adjust.
1846 (procfs_stop): Rename to ...
1847 (procfs_interrupt): ... this.
1848 (init_procfs_targets): Adjust.
1849 * procfs.c (procfs_stop): Rename to ...
1850 (procfs_interrupt): ... this.
1851 (procfs_target): Adjust.
1852 * remote-m32r-sdi.c (m32r_stop): Rename to ...
1853 (m32r_interrupt): ... this.
1854 (init_m32r_ops): Adjust.
1855 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
1856 (gdbsim_interrupt_inferior): ... this.
1857 (gdbsim_stop): Rename to ...
1858 (gdbsim_interrupt): ... this.
1859 (gdbsim_cntrl_c): Adjust.
1860 (init_gdbsim_ops): Adjust.
1861 * remote.c (sync_remote_interrupt): Adjust comments.
1862 (remote_stop_as): Rename to ...
1863 (remote_interrupt_as): ... this.
1864 (remote_stop): Adjust comment.
1865 (remote_interrupt): New function.
1866 (init_remote_ops): Install remote_interrupt.
1867 * target.c (target_interrupt): New function.
1868 * target.h (struct target_ops) <to_interrupt>: New field.
1869 (target_interrupt): New declaration.
1870 * windows-nat.c (windows_stop): Rename to ...
1871 (windows_interrupt): ... this.
1872 * target-delegates.c: Regenerate.
1873
d55007b5
PA
18742015-08-07 Pedro Alves <palves@redhat.com>
1875
1876 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
1877 threads" as alternative to "switching back to stepped thread".
1878
fbea99ea
PA
18792015-08-07 Pedro Alves <palves@redhat.com>
1880
1881 * NEWS: Mention "maint set/show target-non-stop".
1882 * breakpoint.c (update_global_location_list): Check
1883 target_is_non_stop_p instead of non_stop.
1884 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
1885 * infrun.c (show_can_use_displaced_stepping)
1886 (can_use_displaced_stepping_p, start_step_over_inferior):
1887 Likewise.
1888 (internal_resume_ptid): New function.
1889 (resume): Use it.
1890 (proceed): Check target_is_non_stop_p instead of non_stop. If in
1891 all-stop mode but the target is always in non-stop mode, start all
1892 the other threads that are implicitly resumed too.
1893 (for_each_just_stopped_thread, fetch_inferior_event)
1894 (adjust_pc_after_break, stop_all_threads): Check
1895 target_is_non_stop_p instead of non_stop.
1896 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
1897 with the target always in non-stop mode.
1898 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
1899 instead of non_stop.
1900 (switch_back_to_stepped_thread): Check target_is_non_stop_p
1901 instead of non_stop.
1902 (keep_going_stepped_thread): Use internal_resume_ptid.
1903 (stop_waiting): If in all-stop mode, and the target is in non-stop
1904 mode, stop all threads.
1905 (keep_going_pass): Likewise, when starting a new in-line step-over
1906 sequence.
1907 * linux-nat.c (get_pending_status, select_event_lwp)
1908 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
1909 target_is_non_stop_p instead of non_stop.
1910 (linux_nat_always_non_stop_p): New function.
1911 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
1912 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
1913 * target-delegates.c: Regenerate.
1914 * target.c (target_is_non_stop_p): New function.
1915 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
1916 (maint_set_target_non_stop_command)
1917 (maint_show_target_non_stop_command): New functions.
1918 (_initilize_target): Install "maint set/show target-non-stop"
1919 commands.
1920 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
1921 (target_non_stop_enabled): New declaration.
1922 (target_is_non_stop_p): New declaration.
1923
372316f1
PA
19242015-08-07 Pedro Alves <pedro@codesourcery.com>
1925
1926 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
1927 has a pending status, return true.
1928 * gdbthread.h: Include target/waitstatus.h.
1929 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
1930 stop_pc>: New fields.
1931 (struct thread_info) <resumed>: New field.
1932 (set_resumed): Declare.
1933 * infrun.c: Include "event-loop.h".
1934 (infrun_async_inferior_event_token, infrun_is_async): New globals.
1935 (infrun_async): New function.
1936 (clear_step_over_info): Add debug output.
1937 (displaced_step_in_progress_any_inferior): New function.
1938 (displaced_step_fixup): New returns int.
1939 (start_step_over): Handle in-line step-overs too. Assert the
1940 thread is marked resumed.
1941 (resume_cleanups): Clear the thread's resumed flag.
1942 (resume): Set the thread's resumed flag. Return early if the
1943 thread has a pending status. Allow stepping a breakpoint with no
1944 signal.
1945 (proceed): Adjust to check 'resumed' instead of 'executing'.
1946 (clear_proceed_status_thread): If the thread has a pending status,
1947 and that status is a finished step, discard the pending status.
1948 (clear_proceed_status): Don't clear step_over_info here.
1949 (random_pending_event_thread, do_target_wait): New functions.
1950 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
1951 do_target_wait.
1952 (wait_one): New function.
1953 (THREAD_STOPPED_BY): New macro.
1954 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1955 (thread_stopped_by_hw_breakpoint): New functions.
1956 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
1957 functions.
1958 (handle_inferior_event): Also call set_resumed(false) on all
1959 threads implicitly stopped by the event.
1960 (restart_threads, resumed_thread_with_pending_status): New
1961 functions.
1962 (finish_step_over): If we were doing an in-line step-over before,
1963 and no longer are after trying to start a new step-over, restart
1964 all threads. If we have multiple threads with pending events,
1965 save the current event and go through the event loop again.
1966 (handle_signal_stop): Return early if finish_step_over returns
1967 false.
1968 <random signal>: If we get a signal while stepping over a
1969 breakpoint in-line in non-stop mode, restart all threads. Clear
1970 step_over_info before delivering the signal.
1971 (keep_going_stepped_thread): Use internal_error instead of
1972 gdb_assert. Mark the thread as resumed.
1973 (keep_going_pass_signal): Assert the thread isn't already resumed.
1974 If some other thread is doing an in-line step-over, defer the
1975 resume. If we just started a new in-line step-over, stop all
1976 threads. Don't clear step_over_info.
1977 (infrun_async_inferior_event_handler): New function.
1978 (_initialize_infrun): Create async event handler with
1979 infrun_async_inferior_event_handler as callback.
1980 (infrun_async): New declaration.
1981 * target.c (target_async): New function.
1982 * target.h (target_async): Declare macro and readd as function
1983 declaration.
1984 * target/waitstatus.h (enum target_stop_reason)
1985 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
1986 * thread.c (new_thread): Clear the new waitstatus field.
1987 (set_resumed): New function.
1988
2ac7589c
PA
19892015-08-07 Pedro Alves <palves@redhat.com>
1990
1991 * infrun.c (keep_going_stepped_thread): New function, factored out
1992 from ...
1993 (switch_back_to_stepped_thread): ... here.
1994
8b061563
PA
19952015-08-07 Pedro Alves <palves@redhat.com>
1996
1997 * infrun.c (currently_stepping): Extend intro comment.
1998 * target.h (target_resume): Extend intro comment.
1999
1afd5965
PA
20002015-08-07 Pedro Alves <palves@redhat.com>
2001
2002 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
2003 of inferior_ptid. If the stepped thread vanished, return 0
2004 instead of resuming here. Use reset_ecs. Print the prev_pc and
2005 the current stop_pc in log message. Clear trap_expected if the
2006 thread advanced. Don't pass currently_stepping to
2007 do_target_resume.
2008
4d9d9d04
PA
20092015-08-07 Pedro Alves <palves@redhat.com>
2010
2011 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
2012 * infrun.c (struct execution_control_state): Move higher up in the
2013 file.
2014 (reset_ecs): New function.
2015 (start_step_over): Now returns int. Rewrite to use
2016 keep_going_pass_signal instead of manually starting a displaced step.
2017 (resume): Don't call set_running here. If displaced stepping
2018 can't start now, clear trap_expected.
2019 (find_thread_needs_step_over): Delete function.
2020 (proceed): Set up finish_thread_state_cleanup. Call set_running.
2021 If the current thread needs a step over, push it in the step-over
2022 chain. Don't set insert breakpoints nor call resume directly
2023 here. Instead rewrite to use start_step_over and
2024 keep_going_pass_signal.
2025 (finish_step_over): New function.
2026 (handle_signal_stop): Call finish_step_over instead of
2027 start_step_over.
2028 (switch_back_to_stepped_thread): If the event thread needs another
2029 step-over do that first. Use start_step_over.
2030 (keep_going_pass_signal): New function, factored out from ...
2031 (keep_going): ... here.
2032 (_initialize_infrun): Comment moved here.
2033 * thread.c (set_running_thread): New function.
2034 (set_running, finish_thread_state): Use set_running_thread.
2035
c2829269
PA
20362015-08-07 Pedro Alves <palves@redhat.com>
2037
2038 * gdbthread.h (struct thread_info) <step_over_prev,
2039 step_over_next>: New fields.
2040 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
2041 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
2042 declarations.
2043 * infrun.c (struct displaced_step_request): Delete.
2044 (struct displaced_step_inferior_state) <step_request_queue>:
2045 Delete field.
2046 (displaced_step_prepare): Assert that trap_expected is set. Use
2047 thread_step_over_chain_enqueue. Split starting a new displaced
2048 step to ...
2049 (start_step_over): ... this new function.
2050 (resume): Assert the thread isn't waiting for a step over already.
2051 (proceed): Assert the thread isn't waiting for a step over
2052 already.
2053 (infrun_thread_stop_requested): Adjust to remove threads from the
2054 embedded step-over chain.
2055 (handle_inferior_event) <fork/vfork>: Call start_step_over after
2056 displaced_step_fixup.
2057 (handle_signal_stop): Call start_step_over after
2058 displaced_step_fixup.
2059 * infrun.h (step_over_queue_head): New declaration.
2060 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
2061 (thread_step_over_chain_next, thread_is_in_step_over_chain)
2062 (thread_step_over_chain_enqueue)
2063 (thread_step_over_chain_remove): New functions.
2064 (delete_thread_1): Remove thread from the step-over chain.
2065
6c4cfb24
PA
20662015-08-07 Pedro Alves <palves@redhat.com>
2067
2068 * infrun.c (thread_still_needs_step_over): Rename to ...
2069 (thread_still_needs_step_over_bp): ... this.
2070 (enum step_over_what): New.
2071 (thread_still_needs_step_over): Reimplement.
2072
567420d1
PA
20732015-08-07 Pedro Alves <palves@redhat.com>
2074
2075 * remote.c (remote_wait_as): If not waiting for a stop reply,
2076 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
2077 requested, don't block waiting forever.
2078
d8dd4d5f
PA
20792015-08-07 Pedro Alves <pedro@codesourcery.com>
2080
2081 * infrun.c (adjust_pc_after_break): Now takes thread_info and
2082 waitstatus pointers instead of an ecs. Adjust.
2083 (handle_inferior_event): Adjust caller.
2084
e1316e60
PA
20852015-08-07 Pedro Alves <palves@redhat.com>
2086
2087 * infrun.c (handle_inferior_event): If we get
2088 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
2089 mode, mark all threads of the exiting process as not-executing.
2090 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
2091 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
2092 exiting process, if inferior_ptid still points at a process.
2093 * thread.c (struct current_thread_cleanup) <next>: New field.
2094 (current_thread_cleanup_chain): New global.
2095 (restore_current_thread_ptid_changed): New function.
2096 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
2097 current_thread_cleanup_chain list.
2098 (make_cleanup_restore_current_thread): Add the cleanup data to the
2099 current_thread_cleanup_chain list.
2100 (_initialize_thread): Install restore_current_thread_ptid_changed
2101 as thread_ptid_changed observer.
2102
47e9c225
JB
21032015-08-07 Joel Brobecker <brobecker@adacore.com>
2104
2105 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
2106 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
2107 smaller than expected.
2108
06096720
AB
21092015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * stack.c (get_frame_language): Moved ...
2112 * frame.c (get_frame_language): ... to here.
2113 * language.h (get_frame_language): Declaration moved to frame.h.
2114 * frame.h: Add language.h include, for language enum.
2115 (get_frame_language): Declaration moved from language.h.
2116 * language.c: Add frame.h include.
2117 * top.c: Add frame.h include.
2118 * symtab.h (struct obj_section): Declare.
2119 (struct cmd_list_element): Declare.
2120
7ff38b1c
AB
21212015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
2122
2123 * language.c (show_language_command): Find selected frame before
2124 asking for the language of that frame.
2125 (set_language_command): Likewise.
2126 * language.h (get_frame_language): Add frame parameter.
2127 * stack.c (get_frame_language): Add frame parameter, assert
2128 parameter is not NULL, update comment and reindent.
2129 * top.c (check_frame_language_change): Pass the selected frame
2130 into get_frame_language.
2131
da8c46d2
MM
21322015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2133
2134 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
2135 (pt_btrace_insn_flags): New.
2136 (ftrace_add_pt): Call pt_btrace_insn_flags.
2137 * btrace.h (btrace_insn_flag): New.
2138 (btrace_insn) <flags>: New.
2139 * record-btrace.c (btrace_insn_history): Print insn prefix.
2140 * NEWS: Announce it.
2141
5599c404
MM
21422015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2143
2144 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2145 * configure: Regenerate.
2146
016a3251
DD
21472015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2148
2149 * Makefile.in (LIBICONV): Define.
2150 (CLIBS): Add LIBICONV.
2151 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2152 * configure: Regenerate.
2153
aead7601
SM
21542015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2155 Pedro Alves <palves@redhat.com>
2156
2157 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
2158 (arm_set_abi): Likewise.
2159 * ax-general.c (ax_print): Likewise.
2160 * c-exp.y (exp : string_exp): Likewise.
2161 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
2162 (do_compile_dwarf_expr_to_c): Likewise.
2163 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
2164 Likewise.
2165 * dwarf2expr.c (execute_stack_op): Likewise.
2166 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2167 (disassemble_dwarf_expression): Likewise.
2168 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
2169 (read_array_order): Likewise.
2170 (abbrev_table_read_table): Likewise.
2171 (read_attribute_value): Likewise.
2172 (skip_unknown_opcode): Likewise.
2173 (dwarf_decode_macro_bytes): Likewise.
2174 (dwarf_decode_macros): Likewise.
2175 * eval.c (value_f90_subarray): Likewise.
2176 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2177 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2178 * infrun.c (handle_command): Likewise.
2179 * memory-map.c (memory_map_start_memory): Likewise.
2180 * osabi.c (set_osabi): Likewise.
2181 * parse.c (operator_length_standard): Likewise.
2182 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2183 single return point.
2184 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2185 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2186 (gdbpy_lookup_global_symbol): Likewise.
2187 * record-full.c (record_full_restore): Likewise.
2188 * regcache.c (regcache_register_status): Likewise.
2189 (regcache_raw_read): Likewise.
2190 (regcache_cooked_read): Likewise.
2191 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2192 * symtab.c (initialize_ordinary_address_classes): Likewise.
2193 * target-debug.h (target_debug_print_signals): Likewise.
2194 * utils.c (do_restore_current_language): Likewise.
2195
ca0a5f0b
CD
21962015-08-06 Clem Dickey <clemd@acm.org>
2197
2198 PR python/17136
2199 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2200
05d999b0
SM
22012015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2202
2203 * complaints.c (enum complaint_series): Add newlines and remove
2204 out of date comment.
2205 (struct complaints) <series>: Change type to enum
2206 complaint_series and remove out of date comment.
2207 (symfile_complaint_hook): Use equivalent enum value
2208 ISOLATED_MESSAGE instead of 0.
2209
bf47e248
PA
22102015-08-06 Pedro Alves <palves@redhat.com>
2211
2212 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2213 returned > 0.
2214
b6b9ffcc
PL
22152015-08-06 Pierre Langlois <pierre.langlois@arm.com>
2216
2217 * common/agent.c (symbol_list) <required>: Remove.
2218
863d01bd
PA
22192015-08-06 Pedro Alves <palves@redhat.com>
2220
2221 * target/waitstatus.h (enum target_stop_reason)
2222 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2223
0a39bb32
PA
22242015-08-05 Pedro Alves <palves@redhat.com>
2225 Joel Brobecker <brobecker@adacore.com>
2226
9d996aba 2227 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
2228 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
2229 case where BS->STOP is not set.
2230
260439cb
UW
22312015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
2232
2233 * nat/gdb_thread_db.h: Add copyright header.
2234 Protect against multiple inclusion.
2235
d89fa914
YQ
22362015-08-05 Yao Qi <yao.qi@linaro.org>
2237
2238 * aarch64-linux-nat.c (get_thread_id): Remove.
2239 (debug_reg_change_callback): Call ptid_get_lwp instead of
2240 get_thread_id.
2241 (fetch_gregs_from_thread): Likewise.
2242 (store_gregs_to_thread): Likewise.
2243 (fetch_fpregs_from_thread): Likewise.
2244 (store_fpregs_to_thread): Likewise.
2245 (aarch64_linux_get_debug_reg_capacity): Likewise.
2246 * arm-linux-nat.c (get_thread_id): Remove.
2247 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2248 * xtensa-linux-nat.c (get_thread_id): Remove.
2249 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2250 * arm-linux-nat.c (get_thread_id): Remove.
2251 (GET_THREAD_ID): Remove.
2252 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
2253 (store_fpregs, fetch_regs, store_regs): Likewise.
2254 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2255 (fetch_vfp_regs, store_vfp_regs): Likewise.
2256 (arm_linux_read_description): Likewise.
2257 (arm_linux_get_hwbp_cap): Likewise.
2258 * xtensa-linux-nat.c (get_thread_id): Remove.
2259 (GET_THREAD_ID): Remove.
2260 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
2261 GET_THREAD_ID.
2262
4efd80aa
CS
22632015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
2264
2265 * python/py-linetable.c: Fix case of Linetable to LineTable
2266 in docstrings and code comments.
2267 * python/py-symtab.c: Same.
2268
c6343a91
JK
22692015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2270
2271 * infcmd.c (signal_command): Call do_cleanups for args_chain.
2272
978b9495
JK
22732015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2274
2275 PR gdb/18767
2276 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
2277 use.
2278
96e9210f
PA
22792015-08-04 Pedro Alves <palves@redhat.com>
2280
2281 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
2282 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
2283 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
2284 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
2285 (td_thr_validate_ftype, td_thr_get_info_ftype)
2286 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
2287 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
2288 New typedefs.
2289 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
2290 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
2291 local macros and use them instead of verbose_dlsym and dlsym
2292 calls.
2293
af60a1ef
SL
22942015-08-03 Sandra Loosemore <sandra@codesourcery.com>
2295
2296 * nios2-tdep.h: Include opcode/nios2.h here.
2297 (NIOS2_CDX_OPCODE_SIZE): New.
2298 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
2299 * nios2-tdep.c: Don't include opcode/nios2.h here.
2300 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
2301 4-byte read fails.
2302 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
2303 (nios2_match_addi, nios2_match_orhi): Likewise.
2304 (nios2_match_stw, nios2_match_ldw): Likewise.
2305 (nios2_match_rdctl): Likewise.
2306 (nios2_match_stwm, nios2_match_ldwm): New.
2307 (nios2_match_branch): Add cases for R2 encodings.
2308 (nios2_match_jmpi, nios2_match_calli): Likewise.
2309 (nios2_match_jmpr, nios2_match_callr): Likewise.
2310 (nios2_match_break, nios2_match_trap): Likewise.
2311 (nios2_in_epilogue_p): Add R2 support.
2312 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
2313 prologues.
2314 (nios2_breakpoint_from_pc): Handle R2 instructions.
2315 (nios2_get_next_pc): Likewise. Adjust call to
2316 tdep->syscall_next_pc.
2317 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
2318 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
2319 instruction field macros instead of literal hex values.
2320 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
2321 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
2322 Use size field from OP instead of assuming all instructions
2323 are the same size.
2324 (nios2_linux_init_abi): Register appropriate unwinder for mach.
2325
1da03605
UW
23262015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
2327
2328 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
2329 variable warning with some compilers.
2330
8156fe7f
YQ
23312015-08-03 Yao Qi <yao.qi@linaro.org>
2332
2333 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
2334 in comment. Replace "rw" with "type".
2335 (arm_linux_remove_watchpoint): Change type of "rw" to
2336 "enum target_hw_bp_type".
2337
835a09d9
PMR
23382015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
2339
2340 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
2341 lookup_symbol.
2342 * ft32-tdep.c (ft32_skip_prologue): Likewise.
2343 * moxie-tdep.c (moxie_skip_prologue): Likewise.
2344 * mt-tdep.c (mt_skip_prologue): Likewise.
2345 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2346
d12307c1
PMR
23472015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
2348
2349 * ada-exp.y (write_object_renaming): Replace struct
2350 ada_symbol_info with struct block_symbol. Update field
2351 references accordingly.
2352 (block_lookup, select_possible_type_sym): Likewise.
2353 (find_primitive_type): Likewise. Also update call to
2354 ada_lookup_symbol to extract the symbol itself.
2355 (write_var_or_type, write_name_assoc): Likewise.
2356 * ada-lang.h (struct ada_symbol_info): Remove.
2357 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
2358 struct block_symbol.
2359 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
2360 (ada_lookup_symbol): Return struct block_symbol instead of a
2361 mere symbol.
2362 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
2363 with struct block_symbol.
2364 (resolve_subexp, ada_resolve_function, sort_choices,
2365 user_select_syms, is_nonfunction, add_defn_to_vec,
2366 num_defns_collected, defns_collected,
2367 symbols_are_identical_enums, remove_extra_symbols,
2368 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
2369 ada_lookup_symbol_list, ada_iterate_over_symbols,
2370 ada_lookup_encoded_symbol, get_var_value): Likewise.
2371 (ada_lookup_symbol): Return a block_symbol instead of a mere
2372 symbol. Replace struct ada_symbol_info with struct
2373 block_symbol.
2374 (ada_lookup_symbol_nonlocal): Likewise.
2375 (standard_lookup): Make block passing explicit through
2376 lookup_symbol_in_language.
2377 * ada-tasks.c (get_tcb_types_info): Update the calls to
2378 lookup_symbol_in_language to extract the mere symbol out of the
2379 returned value.
2380 (ada_tasks_inferior_data_sniffer): Likewise.
2381 * ax-gdb.c (gen_static_field): Likewise for the call to
2382 lookup_symbol.
a5fdf78a 2383 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
2384 lookup functions.
2385 (gen_expr): Likewise.
2386 * c-exp.y: Likewise. Remove uses of block_found.
2387 (lex_one_token, classify_inner_name, c_print_token): Likewise.
2388 (classify_name): Likewise. Rename the "sym" local variable to
2389 "bsym".
2390 * c-valprint.c (print_unpacked_pointer): Likewise.
2391 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
2392 "sym" parameter from struct symbol * to struct block_symbol.
2393 Use it to remove uses of block_found. Deal with struct
a5fdf78a 2394 block_symbol from lookup functions.
d12307c1
PMR
2395 (gcc_convert_symbol): Likewise. Update the call to
2396 convert_symbol_sym.
2397 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 2398 struct block_symbol from lookup functions.
d12307c1
PMR
2399 * cp-namespace.c (cp_lookup_nested_symbol_1,
2400 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
2401 cp_search_static_and_baseclasses,
2402 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
2403 cp_lookup_symbol_imports_or_template,
2404 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
2405 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
2406 find_symbol_in_baseclass): Return struct block_symbol instead of
2407 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
2408 functions.
2409 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 2410 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
2411 lookup functions.
2412 * cp-support.h (cp_lookup_symbol_nonlocal,
2413 cp_lookup_symbol_from_namespace,
2414 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 2415 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
2416 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
2417 push_module_name):
a5fdf78a 2418 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
2419 uses of block_found.
2420 * eval.c (evaluate_subexp_standard): Update call to
2421 cp_lookup_symbol_namespace.
a5fdf78a
PMR
2422 * f-exp.y: Deal with struct block_symbol from lookup functions.
2423 Remove uses of block_found.
d12307c1
PMR
2424 (yylex): Likewise.
2425 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
2426 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 2427 struct block_symbol from lookup functions.
d12307c1
PMR
2428 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
2429 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
2430 (gdbscm_lookup_global_symbol): Likewise.
2431 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
2432 * go-exp.y: Likewise. Remove uses of block_found.
2433 (package_name_p, classify_packaged_name, classify_name):
2434 Likewise.
2435 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2436 * jv-exp.y (push_variable): Likewise.
2437 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
2438 * language.c (language_bool_type): Likewise.
2439 * language.h (struct language_defn): Update
a5fdf78a
PMR
2440 la_lookup_symbol_nonlocal to return a struct block_symbol rather
2441 than a mere symbol.
2442 * linespec.c (find_label_symbols): Deal with struct block_symbol
2443 from lookup functions.
d12307c1
PMR
2444 * m2-exp.y: Likewise. Remove uses of block_found.
2445 (yylex): Likewise.
2446 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2447 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
2448 * p-exp.y: Likewise. Remove uses of block_found.
2449 (yylex): Likewise.
2450 * p-valprint.c (pascal_val_print): Likewise.
2451 * parse.c (write_dollar_variable): Likewise. Remove uses of
2452 block_found.
2453 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
2454 struct block_symbol.
2455 * printcmd.c (address_info): Deal with struct block_symbol from
2456 lookup functions.
d12307c1
PMR
2457 * python/py-frame.c (frapy_read_var): Likewise.
2458 * python/py-symbol.c (gdbpy_lookup_symbol,
2459 gdbpy_lookup_global_symbol): Likewise.
2460 * skip.c (skip_function_command): Likewise.
2461 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 2462 block_symbol instead of a mere symbol.
d12307c1
PMR
2463 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
2464 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2465 * solib.c (solib_global_lookup): Likewise.
2466 * solist.h (solib_global_lookup): Likewise.
2467 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
2468 return a struct block_symbol rather than a mere symbol.
2469 * source.c (select_source_symtab): Deal with struct block_symbol
2470 from lookup functions.
d12307c1
PMR
2471 * stack.c (print_frame_args, iterate_over_block_arg_vars):
2472 Likewise.
2473 * symfile.c (set_initial_language): Likewise.
2474 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 2475 block_symbol.
d12307c1
PMR
2476 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
2477 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 2478 block_symbol.
d12307c1 2479 (block_found): Remove.
a5fdf78a 2480 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 2481 cache slots.
a5fdf78a
PMR
2482 (symbol_cache_lookup): Return a struct block_symbol rather than
2483 a mere symbol.
d12307c1
PMR
2484 (symbol_cache_mark_found): Add a BLOCK parameter to fill
2485 appropriately the cache slots. Update callers.
2486 (symbol_cache_dump): Update cache slots handling to the type
2487 change.
2488 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
2489 lookup_symbol_aux, lookup_local_symbol,
2490 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
2491 lookup_symbol_in_objfile_symtabs,
2492 lookup_symbol_in_objfile_from_linkage_name,
2493 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
2494 lookup_symbol_in_static_block, lookup_static_symbol,
2495 lookup_global_symbol):
a5fdf78a
PMR
2496 Return a struct block_symbol rather than a mere symbol. Deal
2497 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
2498 uses of block_found.
2499 (lookup_symbol_in_block): Remove uses of block_found.
2500 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 2501 struct block_symbol.
d12307c1
PMR
2502 (lookup_symbol_global_iterator_cb): Update references to the
2503 RESULT field.
a5fdf78a 2504 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 2505 functions.
a5fdf78a 2506 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
2507 (block_found): Remove.
2508 (lookup_symbol_in_language, lookup_symbol,
2509 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
2510 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
2511 lookup_global_symbol_from_objfile): Return a struct block_symbol
2512 rather than just a mere symbol. Update comments to remove
2513 mentions of block_found.
d12307c1
PMR
2514 * valops.c (find_function_in_inferior,
2515 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 2516 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
2517 functions.
2518 * value.c (value_static_field, value_fn_field): Likewise.
2519
b1c59ddc
SM
25202015-07-31 Simon Marchi <simon.marchi@ericsson.com>
2521
2522 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
2523 instead of integer.
2524
f486487f 25252015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 2526 Pedro Alves <palves@redhat.com>
f486487f
SM
2527
2528 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
2529 type or value instead of integer.
2530 (aarch64_linux_insert_watchpoint): Likewise.
2531 (aarch64_linux_remove_watchpoint): Likewise.
2532 * ada-lang.c (ada_op_print_tab): Likewise.
2533 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
2534 (amd64_linux_syscall_record_common): Likewise.
2535 * arch-utils.c (target_byte_order_user): Likewise.
2536 (default_byte_order): Likewise.
2537 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
2538 (arm_linux_get_hwbp_type): Likewise.
2539 (arm_linux_hw_watchpoint_initialize): Likewise.
2540 (arm_linux_insert_watchpoint): Likewise.
2541 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
2542 (arm_linux_syscall_record): Likewise.
2543 * breakpoint.c (update_watchpoint): Likewise.
2544 (breakpoint_here_p): Likewise.
2545 (bpstat_print): Likewise.
2546 (enable_breakpoint_disp): Likewise.
2547 * c-lang.c (c_op_print_tab): Likewise.
2548 * cli/cli-decode.c (add_info_alias): Likewise.
2549 * d-lang.c (d_op_print_tab): Likewise.
2550 * eval.c (evaluate_subexp_standard): Likewise.
2551 * f-exp.y (dot_ops): Likewise.
2552 (f77_keywords): Likewise.
2553 * f-lang.c (f_op_print_tab): Likewise.
2554 * go-lang.c (go_op_print_tab): Likewise.
2555 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
2556 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
2557 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2558 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
2559 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
2560 (struct scm_from_stringn_data): Likewise.
2561 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2562 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2563 (ia64_linux_remove_watchpoint): Likewise.
2564 (ia64_linux_can_use_hw_breakpoint): Likewise.
2565 * infrun.c (print_stop_event): Likewise.
2566 * jv-lang.c (java_op_print_tab): Likewise.
2567 * linux-nat.c (linux_proc_xfer_partial): Likewise.
2568 * linux-nat.h (struct lwp_info): Likewise.
2569 * linux-thread-db.c (enable_thread_event): Likewise.
2570 * m2-lang.c (m2_op_print_tab): Likewise.
2571 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
2572 (mi_cmd_stack_list_variables): Likewise.
2573 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
2574 * mi/mi-out.c (mi_table_begin): Likewise.
2575 (mi_table_header): Likewise.
2576 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
2577 (mips_linux_insert_watchpoint): Likewise.
2578 (mips_linux_remove_watchpoint): Likewise.
2579 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
2580 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
2581 (mips_linux_watch_type_to_irw): Likewise.
2582 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2583 (procfs_insert_hw_watchpoint): Likewise.
2584 (procfs_remove_hw_watchpoint): Likewise.
2585 (procfs_hw_watchpoint): Likewise.
2586 (procfs_can_use_hw_breakpoint): Likewise.
2587 (procfs_remove_hw_watchpoint): Likewise.
2588 (procfs_insert_hw_watchpoint): Likewise.
2589 * p-lang.c (pascal_op_print_tab): Likewise.
2590 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
2591 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
2592 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
2593 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2594 (procfs_insert_watchpoint): Likewise.
2595 (procfs_remove_watchpoint): Likewise.
2596 * psymtab.c (recursively_search_psymtabs): Likewise.
2597 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
2598 (m32r_insert_watchpoint): Likewise.
2599 * remote-mips.c (mips_can_use_watchpoint): Likewise.
2600 (mips_insert_watchpoint): Likewise.
2601 (mips_remove_watchpoint): Likewise.
2602 * remote.c (watchpoint_to_Z_packet): Likewise.
2603 (remote_insert_watchpoint): Likewise.
2604 (remote_remove_watchpoint): Likewise.
2605 (remote_check_watch_resources): Likewise.
2606 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2607 (s390_remove_watchpoint): Likewise.
2608 (s390_can_use_hw_breakpoint): Likewise.
2609 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2610 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
2611 * target.h (struct target_ops): Likewise.
2612 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2613 * ui-out.c (struct ui_out_hdr): Likewise.
2614 (append_header_to_list): Likewise.
2615 (get_next_header): Likewise.
2616 (verify_field): Likewise.
2617 (ui_out_begin): Likewise.
2618 (ui_out_field_int): Likewise.
2619 (ui_out_field_fmt_int): Likewise.
2620 (ui_out_field_skip): Likewise.
2621 (ui_out_field_string): Likewise.
2622 (ui_out_field_fmt): Likewise.
2623 * varobj.c (new_variable): Likewise.
2624 * x86-nat.c (x86_insert_watchpoint): Likewise.
2625 (x86_remove_watchpoint): Likewise.
2626 (x86_can_use_hw_breakpoint): Likewise.
2627 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
2628 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
2629 previously anonymous enumeration type..
2630 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
2631 value.
2632 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
2633 (target_debug_print_enum_bptype): New.
2634 * target-delegates.c: Regenerate.
2635
e1b5381f
SL
26362015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2637
2638 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
2639 already says and disallow non-stack memory writes in the prologue.
2640
9aaf8e3a
SL
26412015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2642
2643 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
2644 reflect how current GCC emits stack overflow checks. Match
2645 both trap and break instructions for backward compatbility.
2646 Disallow other trap and break instructions in the prologue.
2647
69dde7dc
PA
26482015-07-30 Pedro Alves <palves@redhat.com>
2649
2650 PR threads/18600
2651 * linux-nat.c (wait_lwp): Report to the core when thread group
2652 leader exits.
2653
4dd63d48
PA
26542015-07-30 Pedro Alves <palves@redhat.com>
2655 Simon Marchi <simon.marchi@ericsson.com>
2656
2657 PR threads/18600
2658 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
2659 mark the new thread as resumed. Remove STOPPING parameter.
2660 (wait_lwp): Adjust call to linux_handle_extended_wait.
2661 (linux_nat_filter_event): Adjust call to
2662 linux_handle_extended_wait.
2663 (resume_stopped_resumed_lwps): Add debug output.
2664
6b940e6a
PL
26652015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2666
2667 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
2668 isize argument.
2669 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
2670 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
2671 gdbarch_fast_tracepoint_valid_at.
2672 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
2673 * gdbarch.h: Regenerate.
2674 * gdbarch.c: Regenerate.
2675 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
2676 argument. Do not set it.
2677 * remote.c (remote_download_tracepoint): Adjust call to
2678 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
2679 the instruction length.
2680
ec741292
YQ
26812015-07-30 Yao Qi <yao.qi@linaro.org>
2682
2683 * arm-tdep.h (enum gdb_regnum): Move it to ...
2684 * arch/arm.h: ... here. New file.
2685 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
2686
0ea6402e
PL
26872015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2688
2689 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
2690 Change its type to int *.
2691 (decode_br): Rename link argument to is_blr. Change its type to
2692 int *.
2693 (decode_cb): Rename op argument to is_cbnz. Change its type to
2694 int *.
2695 (decode_tb): Rename op argument to is_tbnz. Change its type to
2696 int *. Set is_tbnz to either 1 or 0.
2697 (aarch64_analyze_prologue): Change type of is_link to int. Add
2698 new variables is_cbnz and is_tbnz. Adjust call to
2699 aarch64_decode_cb and aarch64_decode_tb.
2700
aa58a496
SM
27012015-07-29 Simon Marchi <simon.marchi@ericsson.com>
2702
2703 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
2704 parameter.
2705 (mips_linux_new_thread): Likewise.
2706 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
2707
18206ca3
PP
27082015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2709
2710 * top.c: Include "tui/tui.h".
2711 (undo_terminal_modifications_before_exit): New static function.
2712 (quit_force): Use it.
2713
7afa63c6
PP
27142015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2715
2716 * target.c (terminal_state): Initialize to terminal_is_ours.
2717
cc9f16aa
YQ
27182015-07-29 Yao Qi <yao.qi@linaro.org>
2719
2720 PR record/18691
2721 * dcache.c (dcache_read_memory_partial): Call
2722 raw_memory_xfer_partial.
2723 * target.c (raw_memory_xfer_partial): Make it non-static.
2724 * target.h (raw_memory_xfer_partial): Declare.
2725
3ae385af
SM
27262015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2727
2728 * c-valprint.c (c_val_print_array): Consider addressable memory
2729 unit size.
2730 (c_val_print_ptr): Likewise.
2731 (c_val_print_int): Likewise.
2732 * findvar.c (read_frame_register_value): Likewise.
2733 * valarith.c (find_size_for_pointer_math): Likewise.
2734 (value_ptrdiff): Likewise.
2735 (value_subscripted_rvalue): Likewise.
2736 * valops.c (read_value_memory): Likewise (and rename variables).
2737 (value_assign): Likewise.
2738 (value_repeat): Likewise.
2739 (value_array): Likewise.
2740 (value_slice): Likewise.
2741 * valprint.c (generic_val_print_ptr): Likewise.
2742 (generic_val_print_enum): Likewise.
2743 (generic_val_print_bool): Likewise.
2744 (generic_val_print_int): Likewise.
2745 (generic_val_print_char): Likewise.
2746 (generic_val_print_float): Likewise.
2747 (generic_val_print_decfloat): Likewise.
2748 (generic_val_print_complex): Likewise.
2749 (val_print_scalar_formatted): Likewise.
2750 (val_print_array_elements): Likewise.
2751 * value.c (set_value_parent): Likewise.
2752 (value_contents_copy_raw): Likewise.
2753 (set_internalvar_component): Likewise.
2754 (value_primitive_field): Likewise.
2755 (value_fetch_lazy): Likewise.
2756 * value.h (read_value_memory): Update comment.
2757
e512cdbd
SM
27582015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2759
2760 * value.c (get_value_arch): New function.
2761 * value.h (get_value_arch): New declaration.
2762
3723fda8
SM
27632015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2764
2765 * value.c (struct value): Update comments.
2766
2e056931
SM
27672015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2768
2769 * gdbtypes.c (type_length_units): New function.
2770 * gdbtypes.h (type_length_units): New declaration.
2771 (struct type) <length>: Update comment.
2772
0c87c0bf
SM
27732015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2774
2775 * valprint.c (generic_val_print): Factor out complex
2776 printing code to ...
2777 (generic_val_print_complex): ... this new function.
2778
9550ae5e
SM
27792015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2780
2781 * valprint.c (generic_val_print): Factor out decfloat
2782 printing code to ...
2783 (generic_val_print_decfloat): ... this new function.
2784
7784724b
SM
27852015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2786
2787 * valprint.c (generic_val_print): Factor out float
2788 printing code to ...
2789 (generic_val_print_float): ... this new function.
2790
385f5aff
SM
27912015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2792
2793 * valprint.c (generic_val_print): Factor out char
2794 printing code to ...
2795 (generic_val_print_char): ... this new function.
2796
b21b6342
SM
27972015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2798
2799 * valprint.c (generic_val_print): Factor out integer
2800 printing code to ...
2801 (generic_val_print_int): ... this new function.
2802
e5bead4b
SM
28032015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2804
2805 * valprint.c (generic_val_print): Factor out bool
2806 printing code to ...
2807 (generic_val_print_bool): ... this new function.
2808
4a8c372f
SM
28092015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2810
2811 * valprint.c (generic_val_print): Factor out function/method
2812 printing code to ...
2813 (generic_val_print_func): ... this new function.
2814
d93880bd
SM
28152015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2816
2817 * valprint.c (generic_val_print): Factor out flags
2818 printing code to ...
2819 (generic_val_print_flags): ... this new function.
2820
ef0bc0dd
SM
28212015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2822
2823 * valprint.c (generic_val_print): Factor out enum
2824 printing code to ...
2825 (generic_val_print_enum): ... this new function.
2826
fe43fede
SM
28272015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2828
2829 * valprint.c (generic_val_print): Factor out reference
2830 printing code to ...
2831 (generic_val_print_ref): ... this new function.
2832
45000ea2
SM
28332015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2834
2835 * valprint.c (generic_val_print): Factor out memberptr
2836 printing code to ...
2837 (generic_val_print_memberptr): ... this new function.
2838
81eb921a
SM
28392015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2840
2841 * valprint.c (generic_val_print): Factor out pointer
2842 printing code to ...
2843 (generic_val_print_ptr): ... this new function.
2844
557dbe8a
SM
28452015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2846
2847 * valprint.c (generic_val_print): Factor out array
2848 printing code to ...
2849 (generic_val_print_array): ... this new function.
2850
9f436164
SM
28512015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2852
2853 * valprint.c (generic_val_print): Factor out
2854 print_unpacked_pointer code to ...
2855 (print_unpacked_pointer): ... this new function.
2856
077836f7
PP
28572015-07-27 Patrick Palka <patrick@parcs.ath.cx>
2858
2859 * event-top.c (handle_sigterm): Don't inspect
2860 target_can_async_p. Always set the quit flag and always mark
2861 the async signal handler.
2862
3a60804f
YQ
28632015-07-27 Yao Qi <yao.qi@linaro.org>
2864
2865 * Makefile.in (REMOTE_EXAMPLES): Remove it.
2866
c9f35b34
KB
28672015-07-25 Kevin Buettner <kevinb@redhat.com>
2868
2869 * remote.c (read_ptid): Return null_ptid when no thread id
2870 is found.
2871 (remote_current_thread): Add log warning for malformed
2872 qC reply.
2873 (remote_start_remote): Add log warning when current thread
2874 not found.
2875
2b4cab86
PA
28762015-07-24 Pedro Alves <palves@redhat.com>
2877
2878 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
2879 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
2880 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
2881
77598427
PA
28822015-07-24 Pedro Alves <palves@redhat.com>
2883
2884 PR gdb/18717
2885 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
2886 is resumed, and extend the debug log.
2887
fe23c31f
PA
28882015-07-24 Pedro Alves <palves@redhat.com>
2889
2890 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
2891
5826e159
PA
28922015-07-24 Pedro Alves <palves@redhat.com>
2893
2894 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
2895 sys/ptrace.h.
2896 * alpha-linux-nat.c: Likewise.
2897 * amd64-linux-nat.c: Likewise.
2898 * arm-linux-nat.c: Likewise.
2899 * hppa-linux-nat.c: Likewise.
2900 * i386-linux-nat.c: Likewise.
2901 * ia64-linux-nat.c: Likewise.
2902 * linux-fork.c: Likewise.
2903 * linux-nat.c: Likewise.
2904 * m32r-linux-nat.c: Likewise.
2905 * m68klinux-nat.c: Likewise.
2906 * mips-linux-nat.c: Likewise.
2907 * nat/linux-btrace.c: Likewise.
2908 * nat/linux-ptrace.c: Likewise.
2909 * nat/linux-ptrace.h
2910 * nat/mips-linux-watch.c: Likewise.
2911 * nat/x86-linux-dregs.c: Likewise.
2912 * ppc-linux-nat.c: Likewise.
2913 * s390-linux-nat.c: Likewise.
2914 * spu-linux-nat.c: Likewise.
2915 * tilegx-linux-nat.c: Likewise.
2916 * x86-linux-nat.c: Likewise.
2917 * xtensa-linux-nat.c: Likewise.
2918
54019719
PA
29192015-07-24 Pedro Alves <palves@redhat.com>
2920
2921 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
2922 __ptrace_request as first parameter type instead of int.
2923 (PTRACE_TYPE_ARG1): Define.
2924 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
2925 that casts first argument to PTRACE_TYPE_ARG1.
2926 * config.in: Regenerate.
2927 * configure: Regenerate.
2928
e3790375
PA
29292015-07-24 Pedro Alves <palves@redhat.com>
2930
2931 * gdb_ptrace.h: Move ...
2932 * nat/gdb_ptrace.h: ... here.
2933 * inf-ptrace.c: Adjust.
2934
eb7aa561
PA
29352015-07-24 Pedro Alves <palves@redhat.com>
2936
2937 * acinclude.m4: Include ptrace.m4.
2938 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
2939 * ptrace.m4: ... to this new file.
2940
cc12ce38
DE
29412015-07-23 Doug Evans <dje@google.com>
2942
2943 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
2944 (load_cu): Handle dummy CUs.
2945 (dw2_do_instantiate_symtab, process_queuef): Ditto.
2946 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
2947
7b849db4
CS
29482015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
2949
2950 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
2951 documentation to say that it returns a list rather than
2952 a FrozenSet.
2953 (linetable_object_methods): Update the docstring of the
2954 "source_line" entry.
2955
d0d84780
PMR
29562015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
2957
2958 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
2959 type to the recursive call instead of the original (maybe
2960 TYPE_CODE_TYPEDEF) type.
2961
c2fbdc59
YQ
29622015-07-23 Yao Qi <yao.qi@linaro.org>
2963
2964 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
2965 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
2966 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
2967
af1b22f3
YQ
29682015-07-21 Yao Qi <yao.qi@linaro.org>
2969
2970 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
2971 Move it to nat/aarch64-linux-hw-point.c.
2972 (aarch64_linux_child_post_startup_inferior): Update.
2973 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
2974 New function.
2975 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
2976 Declare it.
2977
40e050d2
MM
29782015-07-21 Markus Metzger <markus.t.metzger@intel.com>
2979
2980 * common/btrace-common.c (btrace_data_append): Change case label.
2981
3675a06a
YQ
29822015-07-20 Yao Qi <yao.qi@linaro.org>
2983
2984 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
2985 Re-indent the code.
2986 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
2987 "unsigned long long".
2988
b4e1fd61
KB
29892015-07-18 Kevin Buettner <kevinb@redhat.com>
2990
2991 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
2992 to be set for SEC_ALLOC sections too.
2993
554717a3
YQ
29942015-07-17 Yao Qi <yao.qi@linaro.org>
2995
2996 * Makefile.in (HFILES_NO_SRCDIR): Add
2997 nat/aarch64-linux-hw-point.h.
2998 (aarch64-linux-hw-point.o): New rule.
2999 * nat/aarch64-linux-hw-point.h: New file.
3000 * nat/aarch64-linux-hw-point.c: New file.
3001 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
3002 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
3003 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
3004 (AARCH64_HWP_ALIGNMENT): Likewise.
3005 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
3006 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
3007 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
3008 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
3009 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
3010 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
3011 (struct aarch64_debug_reg_state): Likewise.
3012 (struct arch_lwp_info): Likewise.
3013 (aarch64_linux_set_debug_regs): Likewise.
3014 (aarch64_notify_debug_reg_change): Remove static.
3015 (aarch64_align_watchpoint): Likewise.
3016 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
3017 (aarch64_watchpoint_length): Likewise.
3018 (aarch64_point_encode_ctrl_reg): Likewise
3019 (aarch64_point_is_aligned): Likewise.
3020 (aarch64_dr_state_insert_one_point): Likewise.
3021 (aarch64_dr_state_remove_one_point): Likewise.
3022 (aarch64_handle_breakpoint): Likewise.
3023 (aarch64_handle_aligned_watchpoint): Likewise.
3024 (aarch64_handle_unaligned_watchpoint): Likewise.
3025 (aarch64_handle_watchpoint): Likewise.
3026 * config/aarch64/linux.mh (NAT_FILE): Add
3027 aarch64-linux-hw-point.o.
3028
c67ca4de
YQ
30292015-07-17 Yao Qi <yao.qi@linaro.org>
3030
3031 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
3032 state and don't call aarch64_get_debug_reg_state. All callers
3033 update.
3034 (aarch64_linux_insert_hw_breakpoint): Call
3035 aarch64_get_debug_reg_state earlier.
3036 (aarch64_linux_remove_hw_breakpoint): Likewise.
3037 (aarch64_handle_aligned_watchpoint): Add argument state and
3038 don't call aarch64_get_debug_reg_state. All callers update.
3039 (aarch64_handle_unaligned_watchpoint): Likewise.
3040 (aarch64_handle_watchpoint): Add argument state.
3041 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
3042 earlier.
3043 (aarch64_linux_remove_watchpoint): Likewise.
3044
25abf979
YQ
30452015-07-17 Yao Qi <yao.qi@linaro.org>
3046
3047 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
3048 debug_printf.
3049 (aarch64_handle_unaligned_watchpoint): Likewise.
3050
2ecd81c2
YQ
30512015-07-17 Yao Qi <yao.qi@linaro.org>
3052
3053 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
3054 argument type's type to 'enum target_hw_bp_type'.
3055 (aarch64_dr_state_remove_one_point): Likewise.
3056 (aarch64_handle_breakpoint): Likewise.
3057 (aarch64_linux_insert_hw_breakpoint): Likewise.
3058 (aarch64_linux_remove_hw_breakpoint): Likewise.
3059 (aarch64_handle_aligned_watchpoint): Likewise.
3060
e53b6938
YQ
30612015-07-17 Yao Qi <yao.qi@linaro.org>
3062
3063 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
3064 ptid_get_pid instead of get_thread_id.
3065
6a49a997
YQ
30662015-07-17 Yao Qi <yao.qi@linaro.org>
3067
3068 * remote.c (get_current_thread): Initialise ptid to null_ptid.
3069 (add_current_inferior_and_thread): Don't initialise ptid.
3070
4bcddace
PL
30712015-07-16 Pierre Langlois <pierre.langlois@arm.com>
3072
3073 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
3074 unavailable if invalid.
3075
db1ff28b
JK
30762015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3077
3078 Revert the previous 6 commits:
3079 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3080 Move gdb_regex* to common/
3081 Prepare linux_find_memory_regions_full & co. for move
3082 Move linux_find_memory_regions_full & co.
3083 gdbserver build-id attribute generator
3084 Validate symbol file using build-id
3085
ca5268b6
JK
30862015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3087 Jan Kratochvil <jan.kratochvil@redhat.com>
3088
3089 Validate symbol file using build-id.
3090 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
3091 and 'show validate-build-id'. Add build-id attribute.
3092 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
3093 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
3094 * solib-frv.c (_initialize_frv_solib): Ditto.
3095 * solib-spu.c (set_spu_solib_ops): Ditto.
3096 * solib-svr4.c: Include rsp-low.h.
3097 (NOTE_GNU_BUILD_ID_NAME): New define.
3098 (svr4_validate): New function.
3099 (svr4_copy_library_list): Duplicate field build_id.
3100 (library_list_start_library): Parse 'build-id' attribute.
3101 (svr4_library_attributes): Add 'build-id' attribute.
3102 (_initialize_svr4_solib): Assign validate value.
3103 * solib-target.c (solib.h): Include.
3104 (_initialize_solib_target): Assign validate value.
3105 * solib.c (validate_build_id, show_validate_build_id): New.
3106 (solib_map_sections): Use ops->validate.
3107 (clear_so): Free build_id.
3108 (default_solib_validate): New function.
3109 (_initialize_solib): Add "validate-build-id".
3110 * solib.h (default_solib_validate): New declaration.
3111 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
3112 (target_so_ops): New field 'validate'.
3113
700ca40f
JK
31142015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3115 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 gdbserver build-id attribute generator.
3118 * features/library-list-svr4.dtd (library-list-svr4): New
3119 'build-id' attribute.
3120
9904185c
JK
31212015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3122 Jan Kratochvil <jan.kratochvil@redhat.com>
3123
3124 Move linux_find_memory_regions_full & co.
3125 * linux-tdep.c (nat/linux-maps.h): Include.
3126 (gdb_regex.h): Remove the include.
3127 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
3128 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
3129 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
3130 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
3131 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
3132 and target/target.h.
3133 (struct smaps_vmflags, read_mapping, decode_vmflags)
3134 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
3135 (linux_find_memory_regions_full): Move from linux-tdep.c.
3136 * nat/linux-maps.h (read_mapping): New declaration.
3137 (linux_find_memory_region_ftype, enum filterflags): Moved from
3138 linux-tdep.c.
3139 (linux_find_memory_regions_full): New declaration.
3140 * target.c (target/target-utils.h): Include.
3141 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
3142 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
3143 definitions to target/target-utils.c.
3144 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
3145 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
3146 from target.c.
3147 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
3148 (read_alloc): New declaration.
3149 (read_stralloc_func_ftype): New typedef.
3150 (read_stralloc): New declaration.
3151 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
3152
f7af1fcd
JK
31532015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3154 Jan Kratochvil <jan.kratochvil@redhat.com>
3155
3156 Prepare linux_find_memory_regions_full & co. for move.
3157 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
3158 (linux_find_memory_regions_full): Change signature and prepare
3159 for moving to linux-maps.
3160 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
3161 (linux_find_memory_regions_thunk): New.
3162 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
3163 (linux_find_memory_regions_gdb): New.
3164 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
3165 (linux_make_mappings_corefile_notes): Use
3166 linux_find_memory_regions_gdb.
3167 * target.c (read_alloc_pread_ftype): New typedef.
3168 (target_fileio_read_alloc_1_pread): New function.
3169 (read_alloc): Refactor from target_fileio_read_alloc_1.
3170 (read_stralloc_func_ftype): New typedef.
3171 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
3172 (read_stralloc): Refactored from target_fileio_read_stralloc.
3173 (target_fileio_read_stralloc): New implementation, use read_stralloc.
3174
6e5b4429
JK
31752015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3178 common/gdb_regex.h.
3179 (COMMON_OBS): Add gdb_regex.o.
3180 (gdb_regex.o): New.
3181 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3182 --without-included-regex and USE_INCLUDED_REGEX.
3183 * common/gdb_regex.c: New file from utils.c functions.
3184 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3185 file wrapping define name.
3186 * configure: Rebuilt.
3187 * configure.ac (gdb_use_included_regex, --without-included-regex)
3188 (USE_INCLUDED_REGEX): Move them to common/common.m4.
3189 * gdb_regex.h: Move it to common/gdb_regex.h.
3190 * utils.c: Remove include gdb_regex.h.
3191 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3192 (compile_rx_or_error): Move them to common/gdb_regex.c.
3193
ddc98fbf
JK
31942015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3195 Jan Kratochvil <jan.kratochvil@redhat.com>
3196
3197 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3198 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3199 common/target-utils.h.
3200 (COMMON_OBS): Add target-utils.o.
3201 (linux-maps.o, target-utils.o): New.
3202 * target/target-utils.c: New file.
3203 * target/target-utils.h: New file.
3204 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3205 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3206 * nat/linux-maps.c: New file.
3207 * nat/linux-maps.h: New file.
3208
e7b01ce0
MM
32092015-07-15 Markus Metzger <markus.t.metzger@intel.com>
3210 Pedro Alves <palves@redhat.com>
3211
3212 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3213 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3214 (perf_event_read_bts): Change the type of SIZE and READ.
3215 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3216 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
3217 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
3218 mmap page.
3219 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
3220 buffer size to UINT_MAX.
3221 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
3222 DATA_TAIL.
3223 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
3224 <last_head>: Change type.
3225 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
3226 * common/btrace-common.c (btrace_data_append): Change the type of
3227 SIZE.
3228 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
3229 check.
3230
f168693b
SM
32312015-07-14 Simon Marchi <simon.marchi@ericsson.com>
3232
3233 * gdbtypes.h (CHECK_TYPEDEF): Remove.
3234 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
3235 with check_typedef.
3236 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
3237 (ada_array_length): Likewise.
3238 (find_parallel_type_by_descriptive_type): Likewise.
3239 (ada_check_typedef): Likewise.
3240 * arm-tdep.c (arm_return_in_memory): Likewise.
3241 * ax-gdb.c (gen_trace_static_fields): Likewise.
3242 (gen_struct_ref_recursive): Likewise.
3243 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3244 (variable: block COLONCOLON name): Likewise.
3245 (qualified_name: TYPENAME COLONCOLON name): Likewise.
3246 * c-lang.c (classify_type): Likewise.
3247 * c-typeprint.c (c_print_type): Likewise.
3248 (c_print_typedef): Likewise.
3249 (c_type_print_base): Likewise.
3250 * c-valprint.c (c_val_print): Likewise.
3251 * compile/compile-c-types.c (convert_type): Likewise.
3252 * compile/compile-object-load.c (get_out_value_type): Likewise.
3253 * completer.c (add_struct_fields): Likewise.
3254 (expression_completer): Likewise.
3255 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
3256 (cp_lookup_nested_symbol_1): Likewise.
3257 (cp_lookup_nested_symbol): Likewise.
3258 * cp-valprint.c (cp_print_value_fields): Likewise.
3259 (cp_print_static_field): Likewise.
3260 * d-valprint.c (d_val_print): Likewise.
3261 * eval.c (evaluate_subexp_standard): Likewise.
3262 (evaluate_subexp_for_sizeof): Likewise.
3263 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3264 * f-typeprint.c (f_type_print_base): Likewise.
3265 * f-valprint.c (f_val_print): Likewise.
3266 * gdbtypes.c (get_discrete_bounds): Likewise.
3267 (create_array_type_with_stride): Likewise.
3268 (type_name_no_tag_or_error): Likewise.
3269 (lookup_struct_elt_type): Likewise.
3270 (get_unsigned_type_max): Likewise.
3271 (internal_type_vptr_fieldno): Likewise.
3272 (set_type_vptr_fieldno): Likewise.
3273 (internal_type_vptr_basetype): Likewise.
3274 (set_type_vptr_basetype): Likewise.
3275 (get_vptr_fieldno): Likewise.
3276 (is_integral_type): Likewise.
3277 (is_scalar_type): Likewise.
3278 (is_scalar_type_recursive): Likewise.
3279 (distance_to_ancestor): Likewise.
3280 (is_unique_ancestor_worker): Likewise.
3281 (check_types_equal): Likewise.
3282 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3283
45280282
IB
32842015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
3285
3286 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
3287 also test for language_d.
3288 (dwarf2_compute_name): Likewise.
3289 (read_func_scope): Likewise.
3290 (read_structure_type): Likewise.
3291 (new_symbol_full): Likewise.
3292 (determine_prefix): Likewise.
3293 (read_import_statement): Use dot as the separator for language_d.
3294 (typename_concat): Likewise, but don't prefix the D main function.
3295
99fe86f7
PB
32962015-07-14 Peter Bergner <bergner@vnet.ibm.com>
3297
3298 * nat/linux-namespaces.c (setns): Rename from this ...
3299 (do_setns): ... to this. Support calling setns if it exists.
3300 (mnsh_handle_setns): Call do_setns.
3301
d5131498
YQ
33022015-07-13 Yao Qi <yao.qi@linaro.org>
3303
3304 * exec.c (exec_file_attach): Add period at the end of error
3305 message.
3306
97605e61
AB
33072015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
3308
3309 * tui/tui-win.c (window_name_completer): New function.
3310 (focus_completer): Call window_name_completer. All old content
3311 moved into window_name_completer.
3312 (winheight_completer): New function.
3313 (_initialize_tui_win): Rename variable. Add completer to
3314 winheight command. Update doc string on winheight.
3315
8d6dbeb4
SL
33162015-07-12 Sandra Loosemore <sandra@codesourcery.com>
3317
3318 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
3319 all nios2 mach variants.
3320
a0e28e54
KB
33212015-07-10 Kevin Buettner <kevinb@redhat.com>
3322
3323 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
3324 of target_read_memory.
3325
c101f28f
AB
33262015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3327
3328 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
3329 string copy.
3330 (parse_scrolling_args): Likewise.
3331
150375dc
AB
33322015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
3335 names in this function.
3336
6dce28e4
AB
33372015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3338
3339 * tui/tui-data.h (SRC_NAME): Convert to lower case.
3340 (CMD_NAME): Likewise.
3341 (DATA_NAME): Likewise.
3342 (DISASSEM_NAME): Likewise.
3343 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
3344 (tui_set_win_height): Likewise.
3345 (parse_scrolling_args): Likewise.
3346
485668e5
MM
33472015-07-10 Markus Metzger <markus.t.metzger@intel.com>
3348
3349 * record-btrace.c (record_btrace_goto_begin)
3350 (record_btrace_goto_end, record_btrace_goto): Move call to
3351 print_stack_frame ...
3352 (record_btrace_set_replay): ... here. Set stop_pc.
3353 * record-full.c (record_full_goto_entry): Set stop_pc.
3354
58d2eda5
PL
33552015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3356
3357 * NEWS: Mention support for tracepoints on aarch64-linux.
3358
7671bf47
PL
33592015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3360
3361 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
3362 function. Return 1.
3363 (the_low_target): Install it.
3364
7890fb45
PL
33652015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3366
3367 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
3368 * gdb.trace/collection.exp: Likewise.
3369 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
3370 * gdb.trace/mi-trace-unavailable.exp: Likewise.
3371 * gdb.trace/report.exp: Likewise.
3372 * gdb.trace/trace-break.exp: Likewise.
3373 * gdb.trace/unavailable.exp: Likewise.
3374 * gdb.trace/while-dyn.exp: Likewise.
3375
ea873d8e
PL
33762015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3377
3378 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
3379 (aarch64_gen_return_address): New function.
3380 (aarch64_gdbarch_init): Hook it.
3381
02a2a705
PL
33822015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3383
3384 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
3385 swallow NOT_AVAILABLE_ERROR.
3386 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
3387 available_p is not set.
3388 (aarch64_stub_frame_unwind_stop_reason): New function.
3389 (aarch64_stub_unwind): Install it.
3390
7dfa3edc
PL
33912015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3392
3393 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
3394 field.
3395 (aarch64_make_prologue_cache_1): New function, factored out from
3396 aarch64_make_prologue_cache. Do not allocate cache. Set
3397 available_p.
3398 (aarch64_make_prologue_cache): Reimplement wrapping
3399 aarch64_make_prologue_cache_1, and swallowing
3400 NOT_AVAILABLE_ERROR.
3401 (aarch64_prologue_frame_unwind_stop_reason): New function.
3402 Return UNWIND_UNAVAILABLE if available_p is not set.
3403 (aarch64_prologue_unwind): Install it.
3404 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
3405 checks into aarch64_prologue_frame_unwind_stop_reason. Call
3406 frame_id_build_unavailable_stack if available_p is not set.
3407
db634143
PL
34082015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3409
3410 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
3411 fields.
3412 (aarch64_scan_prologue): Set prev_pc.
3413 (aarch64_make_prologue_cache): Set func.
3414 (aarch64_make_stub_cache): Set prev_pc.
3415 (aarch64_prologue_this_id): Remove local variables id, pc and
3416 func. Read prev_pc and func from cache.
3417 (aarch64_stub_this_id): Read prev_pc from cache.
3418
8b61f75d
PL
34192015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3420
3421 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
3422 argument this_cache. Remove unused local variables reg and
3423 unwound_fp. Return early if this_cache is already set. Set
3424 this_cache.
3425 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
3426
7c8edfae
PL
34272015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3428
3429 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
3430 New argument this_cache. Return early if this_cache is already
3431 set. Set this_cache.
3432 (aarch64_prologue_this_id): Update call to
3433 aarch64_make_prologue_cache.
3434 (aarch64_prologue_prev_register): Likewise.
3435 (aarch64_normal_frame_base): Likewise.
3436
938c69a1
SM
34372015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3438
3439 * c-valprint.c (c_val_print): Factor out memberptr printing code
3440 from c_val_print to ...
3441 (c_val_print_memberptr): ... this new function.
3442
49f7fe28
SM
34432015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3444
3445 * c-valprint.c (c_val_print): Factor out int printing code to ...
3446 (c_val_print_int): ... this new function.
3447
9e4f353c
SM
34482015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3449
3450 * c-valprint.c (c_val_print): Factor out struct and union
3451 printing code to ...
3452 (c_val_print_struct): ... this new function ...
3453 (c_val_print_union): ... and this new function.
3454
1c67f032
SM
34552015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3456
3457 * c-valprint.c (c_val_print): Factor out pointer printing code
3458 to ...
3459 (c_val_print_ptr): ... this new function.
3460
0b6ef777
SM
34612015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3462
3463 * c-valprint.c (c_valprint): Factor our array printing code from
3464 c_val_print to ...
3465 (c_val_print_array): ... this new function.
3466
1033c33c
SM
34672015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3468
3469 * c-valprint.c (c_val_print): Factor out pointer printing code
3470 to ...
3471 (print_unpacked_pointer): ... this new function.
3472
f6b93c34
SM
34732015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3474
3475 * c-valprint.c (c_val_print): Remove an assignment to i and move
3476 its declaration.
3477
0f4576e3
YQ
34782015-07-09 Yao Qi <yao.qi@linaro.org>
3479
3480 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
3481 argument ptid. Update comments. Caller update.
3482
37fdfe4c
MM
34832015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3484
3485 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
3486 mnt packets.
3487
80a2b330
MM
34882015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3489
3490 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
3491
4ab31498
SM
34922015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3493
3494 * progspace.c (delete_program_space): Add missing spaces.
3495
7a41607e
SM
34962015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3497
3498 * inferior.c (delete_inferior_1): Rename to ...
3499 (delete_inferior): ..., remove 'silent' parameter, delete
3500 program space when unused and remove call to prune_program_spaces.
3501 Remove the old, unused, delete_inferior.
3502 (delete_inferior_silent): Remove.
3503 (prune_inferiors): Change call from delete_inferior_1 to
3504 delete_inferior and remove 'silent' parameter. Remove call to
3505 prune_program_spaces.
3506 (remove_inferior_command): Idem.
3507 * inferior.h (delete_inferior_1): Rename to...
3508 (delete_inferior): ..., remove 'silent' parameter and remove the
3509 original delete_inferior.
3510 (delete_inferior_silent): Remove.
3511 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
3512 delete_inferior_1 to delete_inferior and remove 'silent'
3513 parameter.
3514 * progspace.c (prune_program_spaces): Remove.
3515 (pspace_empty_p): Rename to...
3516 (program_space_empty_p): ... and make non-static.
3517 (delete_program_space): New.
3518 * progspace.h (prune_program_spaces): Remove declaration.
3519 (program_space_empty_p): New declaration.
3520 (delete_program_space): New declaration.
3521 * monitor.c (monitor_close): Replace call to
3522 delete_thread_silent and delete_inferior_silent with
3523 discard_all_inferiors.
3524
a9bd710f
PP
35252015-07-08 Patrick Palka <patrick@parcs.ath.cx>
3526
3527 * defs.h (deprecated_register_changed_hook): Remove prototype.
3528 * interps.c (clear_iterpreter_hooks): Remove reference to
3529 deprecated_register_changed_hook.
3530 * top.c (deprecated_register_changed_hook): Remove prototype.
3531 * valops.c (value_assign): Remove reference to
3532 deprecated_register_changed_hook.
3533 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
3534 Add comment documenting the function.
3535 (tui_register_changed_observer): Define.
3536 (tui_install_hooks): Remove reference to
3537 deprecated_register_changed_hook. Set
3538 tui_register_changed_observer.
3539 (tui_remove_hooks): Remove reference to
3540 deprecated_register_changed_hook. Unset
3541 tui_register_changed_observer.
3542
08464196
JK
35432015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3544
3545 PR compile/18484
3546 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
3547
bcf5c1d9
RC
35482015-07-08 Robert O'Callahan <robert@ocallahan.org>
3549
3550 PR exp/18617
3551 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
3552
e8643a45
MM
35532015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3554
3555 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
3556
76fb6829
MM
35572015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3558
3559 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
3560 Use safe_strerror() instead of strerror().
3561
82c40d4b
YQ
35622015-07-07 Yao Qi <yao.qi@linaro.org>
3563
3564 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
3565 * features/arm-with-m-fpa-layout.c: Regenerated.
3566 * features/arm-with-m-vfp-d16.xml: Likewise.
3567 * features/arm-with-m-vfp-d16.c: Regenerated.
3568 * features/arm-with-m.xml: Likewise.
3569 * features/arm-with-m.c: Regenerated.
3570 * features/arm-with-neon.xml: Likewise.
3571 * features/arm-with-neon.c: Regenerated.
3572 * features/arm-with-vfpv2.xml: Likewise.
3573 * features/arm-with-vfpv2.c: Regenerated.
3574 * features/arm-with-vfpv3.xml: Likewise.
3575 * features/arm-with-vfpv3.c: Regenerated.
3576
607685ec
YQ
35772015-07-07 Yao Qi <yao.qi@linaro.org>
3578
3579 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
3580 arm-linux-nat.c.
3581 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
3582 elf/external.h.
3583 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
3584 if target is 32-bit.
3585 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
3586 if target is 32-bit.
3587 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
3588 if target is 32-bit.
3589 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
3590 if target is 32-bit.
3591 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
3592 (aarch64_linux_read_description): Return the right target
3593 description.
3594 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
3595 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3596 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
3597 arm-linux-tdep.o.
3598
f1b67888
YQ
35992015-07-07 Yao Qi <yao.qi@linaro.org>
3600
3601 * aarch32-linux-nat.c: New file.
3602 * aarch32-linux-nat.h: New file.
3603 * arm-linux-nat.c: Include aarch32-linux-nat.h.
3604 (fetch_regs): Move code to aarch32-linux-nat.c. Call
3605 aarch32_gp_regcache_supply.
3606 (store_regs): Move code to aarch32-linux-nat.c. Call
3607 aarch32_gp_regcache_collect.
3608 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
3609 aarch32_vfp_regcache_supply.
3610 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
3611 aarch32_vfp_regcache_collect.
3612 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3613
179bfe82
YQ
36142015-07-07 Yao Qi <yao.qi@linaro.org>
3615
3616 * arm-linux-nat.c (store_fpregister): Remove.
3617 (store_register): Likewise.
3618 (fetch_fpregister): Likewise.
3619 (fetch_register): Likewise.
3620 (arm_linux_store_inferior_registers): Call store_regs and
3621 store_fpregs instead.
3622 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
3623 fetch_regs instead.
3624
6008fc5f
AB
36252015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3626
3627 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
3628 and focus commands.
3629
7c79d316
JB
36302015-07-06 Joel Brobecker <brobecker@adacore.com>
3631
3632 * NEWS: Create a new section for the next release branch.
3633 Rename the section of the current branch, now that it has
3634 been cut.
3635
f2232bea
JB
36362015-07-06 Joel Brobecker <brobecker@adacore.com>
3637
3638 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
3639 * version.in: Bump version to 7.10.50.DATE-cvs.
3640
66c4b3e8
LM
36412015-07-06 Luis Machado <lgustavo@codesourcery.com>
3642
3643 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
3644 breakpoints in a special way.
3645 (remove_breakpoint): Likewise.
3646 (mark_breakpoints_out): Likewise.
3647
bcd8537c
AB
36482015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3649
3650 * doc/gdb.texinfo (TUI): Add comma after @xref.
3651
10e9aaa3
AB
36522015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3653
3654 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
3655 instead of casting the structure type.
3656
8a13d42d
SM
36572015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3658
3659 * valops.c (search_struct_field): Remove OFFSET parameter.
3660 (value_cast_structs): Adjust calls to search_struct_field.
3661 (value_struct_elt): Same.
3662 (find_overload_match): Same.
3663
a844296a
SM
36642015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3665
3666 * value.c (value_fetch_lazy): Update comment, change return
3667 value to void.
3668 * value.h (value_fetch_lazy): Change return value to void.
3669
f41cbf58
AB
36702015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3671
3672 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
3673 (tui_win_name): Make parameter and result const.
3674 * tui/tui-data.h (tui_win_name): Make parameter and result const.
3675
118ca224
PP
36762015-07-06 Patrick Palka <patrick@parcs.ath.cx>
3677
3678 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
3679 use printf_unfiltered.
3680 (set_mpx_cmd): Add missing trailing space to command string
3681 literal.
3682 (_initialize_i386_tdep): Give the "mpx" prefix command its
3683 correct name.
3684
1b485e67
KB
36852015-07-02 Kevin Buettner <kevinb@redhat.com>
3686
3687 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
3688 (enum rx_frame_type): New.
3689 (struct rx_prologue): Add new field `frame_type'.
3690 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
3691 parameter in the prologue struct. Add code for recording
3692 locations of PC and PSW for fast interrupt and exception frames.
3693 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
3694 (rx_analyze_frame_prologue): Add `frame_type' parameter.
3695 (rx_frame_type): New function.
3696 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
3697 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
3698 `this_cache'.
3699 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 3700 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
3701 RX_FRAME_TYPE_FAST_INTERRUPT.
3702 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
3703 (rx_frame_sniffer, rx_exception_sniffer): New functions.
3704 (rx_frame_unwind): Use rx_frame_sniffer instead of
3705 default_frame_sniffer.
3706 (rx_frame_unwind): New unwinder.
3707 (rx_gdbarch_init): Register new unwinder.
3708
0561fea4
KB
37092015-07-02 Kevin Buettner <kevinb@redhat.com>
3710
3711 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
3712 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
3713 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
3714 and RX_FPSW_REGNUM.
3715 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
3716
decf8d9a
JK
37172015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3718
3719 Fix GCC false warning.
3720 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
3721
2fd0f80d
YQ
37222015-07-02 Yao Qi <yao.qi@linaro.org>
3723
3724 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
3725 typo in the debugging message.
3726
b0627500
MM
37272015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3728
3729 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
3730 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
3731 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
3732 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
3733 (btrace_maint_clear): New.
3734 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
3735 (pt_print_packet, btrace_maint_decode_pt)
3736 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
3737 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
3738 (maint_btrace_packet_history_cmd)
3739 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3740 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
3741 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
3742 (maint_info_btrace_cmd, _initialize_btrace): New.
3743 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
3744 (btrace_maint_packet_history, btrace_maint_info): New.
3745 (btrace_thread_info) <maint>: New.
3746 * NEWS: Announce it.
3747
9be54cae
MM
37482015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3749
3750 * btrace.c (btrace_fetch): Append the new trace data.
3751 (btrace_clear): Clear the stored trace data.
3752 * btrace.h (btrace_thread_info) <data>: New.
3753 * common/btrace-common.h (btrace_data_clear)
3754 (btrace_data_append): New.
3755 * common/btrace-common.c (btrace_data_clear)
3756 (btrace_data_append): New.
3757
010a18a1
MM
37582015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3759
3760 * nat/linux-btrace.c (linux_enable_bts): Check for
3761 PERF_ATTR_SIZE_VER5.
3762 Check for data_offset and data_size fields. Use them.
3763
b20a6524
MM
37642015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3765
3766 * NEWS: Announce new commands "record btrace pt" and "record pt".
3767 Announce new options "set|show record btrace pt buffer-size".
3768 * btrace.c: Include "rsp-low.h".
3769 Include "inttypes.h".
3770 (btrace_add_pc): Add forward declaration.
3771 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
3772 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
3773 (btrace_compute_ftrace_pt): New.
3774 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
3775 (check_xml_btrace_version): Update version check.
3776 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
3777 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
3778 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
3779 (btrace_pt_children): New.
3780 (btrace_children): Add support for "pt".
3781 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
3782 (btrace_conf_children): Add support for "pt".
3783 * btrace.h: Include "intel-pt.h".
3784 (btrace_pt_error): New.
3785 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
3786 (btrace_data_empty): Support BTRACE_FORMAT_PT.
3787 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
3788 (struct btrace_config_pt): New.
3789 (struct btrace_config)<pt>: New.
3790 (struct btrace_data_pt_config, struct btrace_data_pt): New.
3791 (struct btrace_data)<pt>: New.
3792 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
3793 (pt): New.
3794 * features/btrace.dtd (btrace)<pt>: New.
3795 (pt, pt-config, cpu): New.
3796 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
3797 (perf_event_pt_event_type, kernel_supports_pt)
3798 (linux_supports_pt): New.
3799 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
3800 (linux_enable_bts): Free tinfo on error.
3801 (linux_enable_pt): New.
3802 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
3803 (linux_disable_pt): New.
3804 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
3805 (linux_fill_btrace_pt_config, linux_read_pt): New.
3806 (linux_read_btrace): Support BTRACE_FORMAT_PT.
3807 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
3808 (struct btrace_target_info)<pt>: New.
3809 * record-btrace.c (set_record_btrace_pt_cmdlist)
3810 (show_record_btrace_pt_cmdlist): New.
3811 (record_btrace_print_pt_conf): New.
3812 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
3813 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
3814 (cmd_record_btrace_pt_start): New.
3815 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
3816 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
3817 (_initialize_record_btrace): Add new commands.
3818 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
3819 (remote_protocol_features): Add "Qbtrace:pt".
3820 Add "Qbtrace-conf:pt:size".
3821 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
3822 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
3823 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
3824 (_initialize_remote): Add new commands.
3825
58bfce93
MM
38262015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3827
3828 * configure.ac: check for libipt
3829 * configure: Regenerate.
3830 * config.in: Regenerate.
3831 * Makefile.in (LIBIPT): New.
3832 (CLIBS): Add $LIBIPT.
3833 * NEWS: document new configure options
3834
b0fd6b30
JK
38352015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3836
3837 * compile/compile-object-load.c (compile_object_load): Replace debug
3838 message "lookup undefined ELF symbol" by 3 more specific messages.
3839
e6280369
KB
38402015-07-01 Kevin Buettner <kevinb@redhat.com>
3841
3842 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
3843 (rl78_register_type): Add case for RL78_PSW_REGNUM.
3844 (rl78_gdbarch_init): Initialize rl78_psw_type.
3845
bbcbf914
PP
38462015-07-01 Patrick Palka <patrick@parcs.ath.cx>
3847
3848 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3849 Update commentary. Always refresh the registers when frame
3850 information has changed.
3851 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
3852 Change return type to int. Return 1 if frame information has
3853 changed, 0 otherwise.
3854 (tui_before_prompt): Update commentary.
3855 * tui/tui-stack.h (tui_show_frame_info): Change return type to
3856 int.
3857
0986c744
PP
38582015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3859
3860 PR tui/13378
3861 * frame.c (select_frame): Remove reference to
3862 deprecated_selected_frame_level_changed_hook.
3863 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
3864 declaration.
3865 * stack.c (deprecated_selected_frame_level_changed_hook):
3866 Likewise.
3867 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
3868 Rename to ...
3869 (tui_refresh_frame_and_register_information): ... this. Bail
3870 out if there is no stack. Don't update register information
3871 unless registers_too_p is true.
3872 (tui_print_frame_info_listing_hook): Rename to ...
3873 (tui_dummy_print_frame_info_listing_hook): ... this.
3874 (tui_before_prompt): New function.
3875 (tui_normal_stop): New function.
3876 (tui_before_prompt_observer): New observer.
3877 (tui_normal_stop_observer): New observer.
3878 (tui_install_hooks): Set
3879 deprecated_print_frame_info_listing_hook to
3880 tui_dummy_print_frame_info_listing_hook. Register
3881 tui_before_prompt_observer to call tui_before_prompt and
3882 tui_normal_stop_observer to call tui_normal_stop. Remove
3883 reference to deprecated_selected_frame_level_changed_hook.
3884 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
3885 and tui_normal_stop_observer. Remove reference to
3886 deprecated_selected_frame_level_changed_hook.
3887
b5fca6d7
PP
38882015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3889
3890 PR tui/13378
3891 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
3892 return an int instead of void. Return whether the locator
3893 window has changed.
3894 (tui_show_frame_info): If the locator info has not changed, then
3895 bail out early to avoid refreshing the windows.
3896
c45613e3
PP
38972015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3898
3899 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
3900 LOCATOR_WIN to tui_alloc_content.
3901
7b9be803
YQ
39022015-06-30 Yao Qi <yao.qi@linaro.org>
3903
3904 PR tdep/18605
3905 * arm-tdep.c (arm_get_next_pc_raw): Break for media
3906 instructions.
3907
fd6e021d
KB
39082015-06-29 Kevin Buettner <kevinb@redhat.com>
3909
78ab7e9d
KB
3910 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
3911 (rx_dwarf_reg_to_regnum): New function.
3912 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
3913 unwinding.
fd6e021d 3914
28bf096c
PA
39152015-06-29 Pedro Alves <palves@redhat.com>
3916
3917 PR threads/18127
3918 * infcall.c (run_inferior_call): On infcall success, if the thread
3919 was marked stopped before, reset it back to stopped.
3920 * infrun.c (resume): Don't suppress the set_running calls when
3921 doing an infcall.
3922 (normal_stop): Only discard the finish_thread_state cleanup if the
3923 infcall succeeded.
3924
2880b51c 39252015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
3926
3927 * MAINTAINERS (Write After Approval): Update my email address.
3928
ee93cd5e
KS
39292015-06-26 Keith Seitz <keiths@redhat.com>
3930 Doug Evans <dje@google.com>
3931
3932 PR 16253
3933 * block.c (block_lookup_symbol): For non-function blocks,
3934 continue to search for a symbol with an exact domain match
3935 Otherwise, return any previously found "best domain" symbol.
3936 (block_lookup_symbol_primary): Likewise.
3937
fc637f04
PP
39382015-06-26 Patrick Palka <patrick@parcs.ath.cx>
3939
3940 * NEWS: Mention the new option "history remove-duplicates".
3941 * top.c (history_remove_duplicates): New static variable.
3942 (show_history_remove_duplicates): New static function.
3943 (gdb_add_history): Conditionally remove duplicate history
3944 entries.
3945 (init_main): Add "history remove-duplicates" option.
3946
2e52ae68
PP
39472015-06-26 Patrick Palka <patrick@parcs.ath.cx>
3948
3949 * tui/tui-win.c (focus_completer): New static function.
3950 (_initialize_tui_win): Set the completion function of the
3951 "focus" command to focus_completer.
3952
6e22494e
JK
39532015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3954
3955 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
3956 and language_asm..
3957 * symtab.c (find_function_start_sal): Likewise.
3958
f8773be1
GB
39592015-06-25 Gary Benson <gbenson@redhat.com>
3960
3961 * solib.c (solib_find_1): Set local variable sysroot to NULL if
3962 it is the empty string after trailing slashes have been stripped.
3963
a3be80c3
GB
39642015-06-25 Gary Benson <gbenson@redhat.com>
3965
3966 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
3967 * infrun.c (follow_exec): Likewise.
3968 * remote.c (remote_filesystem_is_local): Likewise.
3969 * solib.c (solib_find_1): Likewise.
3970
32fad71f
KS
39712015-06-24 Keith Seitz <keiths@redhat.com>
3972
3973 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
3974 return value from lrealpath.
3975
87d1b309
MF
39762015-06-24 Mike Frysinger <vapier@gentoo.org>
3977
3978 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
3979
23bf70af
MF
39802015-06-24 Mike Frysinger <vapier@gentoo.org>
3981
3982 * remote-sim.c: Include gdb_bfd.h.
3983 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
3984 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
3985
5cd867b4
YQ
39862015-06-24 Yao Qi <yao.qi@linaro.org>
3987
3988 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
3989 set_gdbarch_get_siginfo_type.
3990 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
3991 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
3992 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3993 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
3994 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
3995 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3996 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
3997 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
3998 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
3999 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
4000
dc06243f
GB
40012015-06-24 Gary Benson <gbenson@redhat.com>
4002
4003 * common/buffer.c (stdint.h): Do not include.
4004 * common/print-utils.c (stdint.h): Likewise.
4005 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
4006 * compile/compile-c-types.c (gdb_assert.h): Likewise.
4007 * ft32-tdep.c (gdb_assert.h): Likewise.
4008 * guile/scm-utils.c (stdint.h): Likewise.
4009 * i386-linux-tdep.c (stdint.h): Likewise.
4010 * i386-tdep.c (stdint.h): Likewise.
4011 * nat/linux-btrace.c (stdint.h): Likewise.
4012 * nat/linux-btrace.h (stdint.h): Likewise.
4013 * nat/linux-ptrace.c (stdint.h): Likewise.
4014 * nat/mips-linux-watch.h (stdint.h): Likewise.
4015 * ppc-linux-nat.c (stdint.h): Likewise.
4016 * python/python-internal.h (stdint.h): Likewise.
4017 * stub-termcap.c (stdlib.h): Likewise.
4018 * target/target.h (stdint.h): Likewise.
4019 * xtensa-linux-nat.c (stdint.h): Likewise.
4020
0fc26caf
PP
40212015-06-23 Patrick Palka <patrick@parcs.ath.cx>
4022
4023 * top.c (init_history): Look at errno after calling strtol to
4024 properly map large GDBHISTSIZE values to infinity.
4025
a38fe4fe
DE
40262015-06-23 Doug Evans <dje@google.com>
4027
4028 * inferior.h (struct inferior_suspend_state): Delete, unused.
4029 All references deleted.
4030
7564fe45
MF
40312015-06-23 Mike Frysinger <vapier@gentoo.org>
4032
4033 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
4034 (microblaze_push_dummy_call): Likewise.
4035 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
4036 and set_gdbarch_push_dummy_call.
4037
0bdb2f78
YQ
40382015-06-23 Yao Qi <yao.qi@linaro.org>
4039
4040 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
4041 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
4042 (amd64_linux_store_inferior_registers): Likewise.
4043 * arm-linux-nat.c (fetch_fpregister): Likewise.
4044 (fetch_fpregs, store_fpregister): Likewise.
4045 (store_fpregister, store_fpregs): Likewise.
4046 (fetch_register, fetch_regs): Likewise.
4047 (store_register, store_regs): Likewise.
4048 (fetch_vfp_regs, store_vfp_regs): Likewise.
4049 (arm_linux_read_description): Check have_ptrace_getregset is
4050 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
4051 or TRIBOOL_FALSE.
4052 * i386-linux-nat.c (fetch_xstateregs): Check
4053 have_ptrace_getregset is not TRIBOOL_TRUE.
4054 (store_xstateregs): Likewise.
4055 * linux-nat.c (have_ptrace_getregset): Change its type to
4056 enum tribool.
4057 * linux-nat.h (tribool): New enum.
4058 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
4059 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
4060
18a94d75
DE
40612015-06-19 Doug Evans <dje@google.com>
4062
4063 * NEWS: Mention Sun's version of stabs is no longer supported.
4064 * elfread.c (free_elfinfo): Delete. All uses updated.
4065 (elfstab_offset_sections): Delete. All uses updated.
4066 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
4067 * psympriv.h (partial_symtab) <section_offsets>: Delete.
4068 All uses updated.
4069 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
4070 All callers updated.
4071
124e13d9
SM
40722015-06-18 Simon Marchi <simon.marchi@ericsson.com>
4073
4074 * common/rsp-low.c (needs_escaping): New.
4075 (remote_escape_output): Add unit_size parameter. Refactor to
4076 support multi-byte addressable units. Rename parameters.
4077 * common/rsp-low.h (remote_escape_output): Add unit_size
4078 parameter and rename others. Update doc.
4079 * remote.c (align_for_efficient_write): New.
4080 (remote_write_bytes_aux): Add unit_size parameter and use it.
4081 Rename some variables. Update doc.
4082 (remote_xfer_partial): Get unit size and use it.
4083 (remote_read_bytes_1): Add unit_size parameter and use it.
4084 Rename some variables. Update doc.
4085 (remote_write_bytes): Same.
4086 (remote_xfer_live_readonly_partial): Same.
4087 (remote_read_bytes): Same.
4088 (remote_flash_write): Update call to remote_write_bytes_aux.
4089 (remote_write_qxfer): Update call to remote_escape_output.
4090 (remote_search_memory): Same.
4091 (remote_hostio_pwrite): Same.
4092
6ae88661
LM
40932015-06-17 Luis Machado <lgustavo@codesourcery.com>
4094
4095 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
4096 locations as inserted.
4097 Update and expand comment about permanent locations.
4098 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
4099 Move comment to add_location_to_breakpoint.
4100 (update_global_location_list): Don't error out if a permanent
4101 breakpoint is not marked inserted.
4102 Don't error out if a non-permanent breakpoint location is inserted on
4103 top of a permanent breakpoint.
4104
da4616f6
LM
41052015-06-17 Luis Machado <lgustavo@codesourcery.com>
4106
4107 * breakpoint.c (make_breakpoint_permanent): Remove unused
4108 function.
4109 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4110
bc460514
PP
41112015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4112
4113 PR gdb/16999
4114 * NEWS: Mention new GDBHISTSIZE behavior.
4115 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
4116 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
4117
b58c513b
PP
41182015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4119
4120 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4121 * top.c (init_history): Read from GDBHISTSIZE instead of
4122 HISTSIZE.
4123 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4124
2093d2d3
PP
41252015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4126
4127 * top.c (gdb_safe_append_history): Do not call
4128 history_truncate_file if the history is not stifled.
4129
fc248485
AA
41302015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4131
4132 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4133 * syscalls/s390x-linux.xml: Likewise.
4134
4da680ad
ME
41352015-06-16 Michael Eager <eager@eagercon.com>
4136
4137 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4138
0a75489f
PP
41392015-06-16 Patrick Palka <patrick@parcs.ath.cx>
4140
4141 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
4142 target_terminal_ours_for_output() before calling
4143 tui_show_frame_info(), and restore the original terminal
4144 settings afterwards.
4145
95855ca8
MS
41462015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
4147
4148 * arm-linux-nat.c: Include nat/linux-ptrace.h.
4149
cfc32360
SM
41502015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4151
4152 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4153 memory unit size.
4154 (mi_cmd_data_write_memory_bytes): Same.
4155
cb6f16cf
SM
41562015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4157
4158 * corefile.c (write_memory): Update doc.
4159 * gdbcore.h (write_memory): Same.
4160
31b7833d
JK
41612015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4162
4163 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
4164 (dump_mapping_p): Use it for parameter filterflags.
4165 (linux_find_memory_regions_full): Use it for variable filterflags.
4166
909c2cda
JK
41672015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4168 Jan Kratochvil <jan.kratochvil@redhat.com>
4169
4170 Merge multiple hex conversions.
4171 * monitor.c: Include rsp-low.h.
4172 (fromhex): Remove definition.
4173
03aef70f
JK
41742015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4175 Jan Kratochvil <jan.kratochvil@redhat.com>
4176
4177 Move utility functions to common/.
4178 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4179 Move defs to common/common-utils.c.
4180 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4181 (skip_to_space_const): Move decls to common/common-utils.h.
4182 * common/common-defs.h: Move include of common-types.h before
4183 common-utils.h.
4184 * common/common-utils.c: Include host-defs.h and ctype.h.
4185 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4186 from utils.c.
4187 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4188 cli/cli-utils.c.
4189 * common/common-utils.h (strtoulst): Move decl from utils.h.
4190 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4191 Move from cli/cli-utils.h.
4192 * common/host-defs.h: Include limits.h.
4193 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4194 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4195 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4196 common/common-utils.h.
4197 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4198 (strtoulst): Move to common/common-utils.c.
4199 * utils.h (strtoulst): Moved decl to common/common-utils.h.
4200
d1168cc1
YQ
42012015-06-15 Yao Qi <yao.qi@linaro.org>
4202
4203 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4204
c74f7d1c
JT
42052015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
4206
4207 * build-id.c: Don't include elf-bfd.h.
4208 (build_id_bfd_get): Use bfd_build_id.
4209 (build_id_verify): Ditto.
4210 * build-id.h: Ditto.
4211 (find_separate_debug_file_by_buildid): Ditto.
4212 * python/py-objfile.c: Don't include elf-bfd.h.
4213 (objfpy_get_build_id) Use bfd_build_id.
4214 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4215 * coffread.c: Include build-id.h.
4216 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
4217
f20c58f5
JT
42182015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4219
4220 * windows-nat.c (do_windows_fetch_inferior_registers)
4221 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
4222 conditional with __CYGWIN__.
4223
51f0e40d
AB
42242015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
4225
4226 * completer.c: Add arch-utils.h include.
4227 (enum reg_completer_targets): New enum.
4228 (reg_or_group_completer_1): New function containing old
4229 reg_or_group_completer, add and use new parameter to control what
4230 is completed on. Use get_current_arch rather than architecture of
4231 currently selected frame.
4232 (reg_or_group_completer): Call new reg_or_group_completer_1.
4233 (reggroup_completer): Call new reg_or_group_completer_1.
4234 * completer.h (reggroup_completer): Add declaration.
4235 * tui/tui-regs.c: Add 'completer.h' include.
4236 (tui_reg_next_command): Renamed to...
4237 (tui_reg_next): ...this. Adjust parameters and return rather than
4238 display new group.
4239 (tui_reg_prev_command): Renamed to...
4240 (tui_reg_prev): ...this. Adjust parameters and return rather than
4241 display new group.
4242 (tui_reg_float_command): Delete.
4243 (tui_reg_general_command): Delete.
4244 (tui_reg_system_command): Delete.
4245 (tui_reg_command): Rewrite to perform switching of register group.
4246 Add header comment.
4247 (tuireglist): Remove.
4248 (tui_reggroup_completer): New function.
4249 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
4250 creation of 'tui reg' command.
4251 * NEWS: Add comment about 'tui reg' changes.
4252
d309493c
SM
42532015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4254
4255 * target.c (target_read): Consider addressable unit size when
4256 reading from a memory object.
4257 (read_memory_robust): Same.
4258 (read_whatever_is_readable): Same.
4259 (target_write_with_progress): Consider addressable unit size
4260 when writing to a memory object.
4261 * target.h (target_read): Update documentation.
4262 (target_write): Add documentation.
4263
3374165f
SM
42642015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4265
4266 * arch-utils.h (default_addressable_memory_unit_size): New.
4267 * arch-utils.c (default_addressable_memory_unit_size): New.
4268 * gdbarch.sh (addressable_memory_unit_size): New.
4269 * gdbarch.h: Re-generate.
4270 * gdbarch.c: Re-generate.
4271
279a6fed
SM
42722015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4273
4274 * target.c (target_read): Rename variables and use
4275 TARGET_XFER_E_IO.
4276 (target_read_with_progress): Same.
4277 (read_memory_robust): Constify parameters and rename
4278 variables.
4279 (read_whatever_is_readable): Constify parameters,
4280 rename variables, adjust formatting.
4281 * target.h (read_memory_robust): Constify parameters.
4282
1e5338b6 42832015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
4284
4285 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
4286 synthetic (non-AltiVec) vector types.
4287 (ppc64_sysv_abi_return_value): Likewise.
4288
98aa42ee
AT
42892015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
4290
4291 PR breakpoints/16465
4292 * breakpoint.c (create_breakpoint): Save extra_string for
4293 pending breakpoints.
4294
966f0aef
WT
42952015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4296
4297 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
4298 and bt_mask to CORE_ADDR.
4299
6449ed0d
GB
43002015-06-11 Gary Benson <gbenson@redhat.com>
4301
4302 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
4303 (mnsh_recv_message): Likewise.
4304
34f8ac9f
WT
43052015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
4306
4307 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
4308 long long int and plongest instead of %ll.
4309
198c808c
GB
43102015-06-11 Gary Benson <gbenson@redhat.com>
4311
4312 * nat/linux-namespaces.c (gdb_wait.h): New include.
4313 (sys/wait.h): Do not include.
4314
e815d2d2
SM
43152015-06-10 Simon Marchi <simon.marchi@ericsson.com>
4316
4317 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
4318 end_sequence is true.
4319
8847cac2
JK
43202015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4321
4322 Code cleanup.
4323 * solib-target.c (library_list_start_list): Use explicit NULL
4324 comparison.
4325
24c05f46
JK
43262015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4327
4328 * solib-target.c (library_list_start_list): Do not dereference
4329 variable version in its initialization. Make the VERSION check handle
4330 NULL.
4331 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
4332
51aad7cc
GB
43332015-06-10 Gary Benson <gbenson@redhat.com>
4334
4335 * NEWS: Announce support for direct access of executable and
4336 shared library files when attaching to inferiors in containers
4337 on GNU/Linux systems.
4338
15a201c8
GB
43392015-06-10 Gary Benson <gbenson@redhat.com>
4340
4341 * remote.c (struct remote_state) <fs_pid>: New field.
4342 (new_remote_state): Initialize the above.
4343 (PACKET_vFile_setfs): New enum value.
4344 (remote_hostio_set_filesystem): New function.
4345 (remote_hostio_open): Call the above.
4346 (remote_hostio_unlink): Likewise.
4347 (remote_hostio_readlink): Likewise.
4348 (_initialize_remote): Register new "set/show remote
4349 hostio-setfs-packet" command.
4350 * NEWS: Announce new vFile:setfs packet.
4351
7a6a1731
GB
43522015-06-10 Gary Benson <gbenson@redhat.com>
4353
4354 * linux-nat.c (nat/linux-namespaces.h): New include.
4355 (fileio.h): Likewise.
4356 (linux_nat_filesystem_is_local): New function.
4357 (linux_nat_fileio_pid_of): Likewise.
4358 (linux_nat_fileio_open): Likewise.
4359 (linux_nat_fileio_readlink): Likewise.
4360 (linux_nat_fileio_unlink): Likewise.
4361 (linux_nat_add_target): Initialize to_filesystem_is_local,
4362 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
4363 (_initialize_linux_nat): New "set/show debug linux-namespaces"
4364 commands.
4365 * NEWS: Mention new "set/show debug linux-namespaces" commands.
4366
07c138c8
GB
43672015-06-10 Gary Benson <gbenson@redhat.com>
4368
4369 * target.h (struct inferior): New forward declaration.
4370 (struct target_ops) <to_filesystem_is_local>: Update comment.
4371 (struct target_ops) <to_fileio_open>: New argument inf.
4372 Update comment. All implementations updated.
4373 (struct target_ops) <to_fileio_unlink>: Likewise.
4374 (struct target_ops) <to_fileio_readlink>: Likewise.
4375 (target_filesystem_is_local): Update comment.
4376 (target_fileio_open): New argument inf. Update comment.
4377 (target_fileio_unlink): Likewise.
4378 (target_fileio_readlink): Likewise.
4379 (target_fileio_read_alloc): Likewise.
4380 (target_fileio_read_stralloc): Likewise.
4381 * target.c (target_fileio_open): New argument inf.
4382 Pass inf to implementation. Update debug printing.
4383 (target_fileio_unlink): Likewise.
4384 (target_fileio_readlink): Likewise.
4385 (target_fileio_read_alloc_1): New argument inf. Pass inf
4386 to target_fileio_open.
4387 (target_fileio_read_alloc): New argument inf. Pass inf to
4388 target_fileio_read_alloc_1.
4389 (target_fileio_read_stralloc): Likewise.
4390 * gdb_bfd.c (inferior.h): New include.
4391 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
4392 argument with new argument "inferior". Pass inferior to
4393 target_fileio_open.
4394 (gdb_bfd_open): Supply inferior argument to
4395 gdb_bfd_iovec_fileio_open.
4396 * linux-tdep.c (linux_info_proc): Supply inf argument to
4397 relevant target_fileio calls.
4398 (linux_find_memory_regions_full): Likewise.
4399 (linux_fill_prpsinfo): Likewise.
4400 * remote.c (remote_filesystem_is_local): Supply inf
4401 argument to remote_hostio_open.
4402 (remote_file_put): Likewise.
4403 (remote_file_get): Likewise.
4404 (remote_file_delete): Supply inf argument to
4405 remote_hostio_unlink.
4406
12e2a5fd
GB
44072015-06-10 Gary Benson <gbenson@redhat.com>
4408
4409 * inf-child.c (inf_child_fileio_open): Replace comment.
4410 (inf_child_fileio_pwrite): Likewise.
4411 (inf_child_fileio_pread): Likewise.
4412 (inf_child_fileio_fstat): Insert blank line before comment.
4413 (inf_child_fileio_close): Replace comment.
4414 (inf_child_fileio_unlink): Likewise.
4415 (inf_child_fileio_readlink): Likewise.
4416 * remote.c (remote_hostio_open): Likewise.
4417 (remote_hostio_pread): Likewise.
4418 (remote_hostio_pwrite): Likewise.
4419 (remote_hostio_close): Likewise.
4420 (remote_hostio_unlink): Likewise.
4421 (remote_hostio_readlink): Likewise.
4422 (remote_hostio_fstat): Likewise.
4423 (remote_filesystem_is_local): Likewise.
4424 * target.c (target_fileio_open): Likewise.
4425 (target_fileio_pwrite): Likewise.
4426 (target_fileio_pread): Likewise.
4427 (target_fileio_fstat): Insert blank line before comment.
4428 (target_fileio_close): Replace comment.
4429 (target_fileio_unlink): Likewise.
4430 (target_fileio_readlink): Likewise.
4431 (target_fileio_read_alloc): Likewise.
4432 (target_fileio_read_stralloc): Likewise.
4433
9bc3a976
GB
44342015-06-10 Gary Benson <gbenson@redhat.com>
4435
4436 * linux-thread-db.c (nat/linux-namespaces.h): New include.
4437 (check_pid_namespace_match): Use linux_ns_same rather than
4438 linux_proc_pid_get_ns to spot PID namespace mismatches.
4439 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
4440 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
4441
4b8b5e72
GB
44422015-06-10 Gary Benson <gbenson@redhat.com>
4443
4444 * configure.ac (AC_CHECK_FUNCS): Add setns.
4445 * config.in: Regenerate.
4446 * configure: Likewise.
4447 * nat/linux-namespaces.h: New file.
4448 * nat/linux-namespaces.c: Likewise.
4449 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
4450 (linux-namespaces.o): New rule.
4451 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
4452 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4453 * config/arm/linux.mh (NATDEPFILES): Likewise.
4454 * config/i386/linux.mh (NATDEPFILES): Likewise.
4455 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4456 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4457 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4458 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4459 * config/mips/linux.mh (NATDEPFILES): Likewise.
4460 * config/pa/linux.mh (NATDEPFILES): Likewise.
4461 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4462 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4463 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4464 * config/s390/linux.mh (NATDEPFILES): Likewise.
4465 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4466 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4467 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4468 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4469
ca095836
GB
44702015-06-10 Gary Benson <gbenson@redhat.com>
4471
4472 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
4473 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
4474 (make_cleanup_close): Likewise.
4475 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
4476 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
4477 (make_cleanup_close): Likewise.
4478
5d9c55d3
JT
44792015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4480
4481 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
4482 from SuspendThread().
4483
040ea00b
JT
44842015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4485
4486 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
4487 from OutputDebugString.
4488
7d73c23c
WT
44892015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4490 Mircea Gherzan <mircea.gherzan@intel.com>
4491
4492 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
4493 MPX_BT_MASK_32): New macros.
4494 (i386_mpx_set_bounds): New function that implements
4495 the command "set-mpx-bound".
4496 (i386_mpx_enabled): Helper function to test MPX availability.
4497 (i386_mpx_bd_base): Helper function to calculate the base directory
4498 address.
4499 (i386_mpx_get_bt_entry): Helper function to access a bound
4500 table entry.
4501 (i386_mpx_print_bounds): Effectively display bound information.
4502 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
4503 "show mpx".
4504 (_initialize_i386_tdep):
4505 Add "bound" to the commands "show mpx" and "set mpx" commands.
4506 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
4507 and "show mpx" commands.
4508 * NEWS: List new commands for MPX support.
4509
3ac2e371
GB
45102015-06-09 Gary Benson <gbenson@redhat.com>
4511
4512 * common/fileio.h (fileio_to_host_mode): New declaration.
4513 * common/fileio.c (fileio_to_host_mode): New Function.
4514 * inf-child.c (inf_child_fileio_open): Process mode argument
4515 with fileio_to_host_mode.
4516
ecef18c5
GB
45172015-06-09 Gary Benson <gbenson@redhat.com>
4518
4519 * common/fileio.c (fileio_mode_pack): Fix preprocessor
4520 conditional.
4521
e3dd7556
GB
45222015-06-05 Gary Benson <gbenson@redhat.com>
4523
4524 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
4525 * remote.c (remote_filesystem_is_local): ...here.
4526
5b74bf7d
YQ
45272015-06-04 Yao Qi <yao.qi@linaro.org>
4528
4529 * gdbarch.c: Regenerate it.
4530
7f361056
JK
45312015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4532
4533 * arch-utils.c (default_infcall_munmap): New.
4534 * arch-utils.h (default_infcall_munmap): New declaration.
4535 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
4536 (munmap_list_free, munmap_listp_free_cleanup): New.
4537 (struct setup_sections_data): Add field munmap_list_headp.
4538 (setup_sections): Call munmap_list_add.
4539 (compile_object_load): New variable munmap_list_head, initialize
4540 setup_sections_data.munmap_list_headp, return munmap_list_head.
4541 * compile/compile-object-load.h (struct munmap_list): New declaration.
4542 (struct compile_module): Add field munmap_list_head.
4543 (munmap_list_free): New declaration.
4544 * compile/compile-object-run.c (struct do_module_cleanup): Add field
4545 munmap_list_head.
4546 (do_module_cleanup): Call munmap_list_free.
4547 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
4548 * gdbarch.c: Regenerate.
4549 * gdbarch.h: Regenerate.
4550 * gdbarch.sh (infcall_munmap): New.
4551 * linux-tdep.c (linux_infcall_munmap): New.
4552 (linux_init_abi): Install it.
4553
3b462ec2
SM
45542015-06-02 Simon Marchi <simon.marchi@ericsson.com>
4555
4556 PR gdb/15564
4557 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
4558
8d683210
YQ
45592015-06-02 Yao Qi <yao.qi@linaro.org>
4560
4561 * i386-linux-nat.c: Include linux-nat.h.
4562
e0619de6
JK
45632015-06-01 Andreas Schwab <schwab@linux-m68k.org>
4564 Jan Kratochvil <jan.kratochvil@redhat.com>
4565
4566 PR symtab/18392
4567 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
4568 assertion.
4569 * dwarf2loc.c (chain_candidate): Likewise.
4570
bd16da51
YQ
45712015-06-01 Yao Qi <yao.qi@linaro.org>
4572
4573 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
4574 (store_vfp_regs): Use PTRACE_SETREGSET.
4575
df9d7ec9
YQ
45762015-06-01 Yao Qi <yao.qi@linaro.org>
4577
4578 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
4579 (fetch_fpregs): Likewise.
4580 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
4581 (store_fpregs): Likewise.
4582
10766686
YQ
45832015-06-01 Yao Qi <yao.qi@linaro.org>
4584
4585 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
4586 (fetch_regs): Likewise.
4587 (store_regs): Use PTRACE_SETREGSET.
4588 (store_register): Likewise.
4589
7efe48d1
YQ
45902015-06-01 Yao Qi <yao.qi@linaro.org>
4591
4592 * arm-linux-nat.c (arm_linux_read_description): Check whether
4593 kernel supports PTRACE_GETREGSET.
4594
433bbbf8
YQ
45952015-06-01 Yao Qi <yao.qi@linaro.org>
4596
4597 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
4598 * linux-nat.c: ... here.
4599 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
4600 to ...
4601 * linux-nat.h: ... here.
4602
ca9b78ce
YQ
46032015-06-01 Yao Qi <yao.qi@linaro.org>
4604
4605 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
4606 * i386-linux-nat.c: Likewise.
4607 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
4608 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
4609 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4610 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
4611 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4612
99cee7b7
EZ
46132015-05-30 Eli Zaretskii <eliz@gnu.org>
4614
4615 * go32-nat.c (go32_xfer_memory): Fix the return value to be
4616 compatible to what read_child and write_child return. This
4617 unbreaks that DJGPP build of GDB which was broken since v7.7.
4618
2147f5bd
MG
46192015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
4620
4621 * MAINTAINERS (Write After Approval): Add Martin Galvan.
4622
c8f6c93c
RM
46232015-05-29 Roland McGrath <mcgrathr@google.com>
4624
4625 PR gdb/18464
4626 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
4627 rather than internal_error for an unrecognized value.
4628
8c6a948d
MF
46292015-05-29 Max Filippov <jcmvbkbc@gmail.com>
4630
4631 * xtensa-tdep.c (xtensa_pseudo_register_read)
4632 (xtensa_pseudo_register_write): Don't alias last pseudo register
4633 to a1.
4634
8dd06f7a
DB
46352015-05-28 Don Breazeal <donb@codesourcery.com>
4636
4637 * infrun.c (follow_fork_inferior): Ensure the use of
4638 process-style ptids (pid,0,0) in verbose/debug "Detaching"
4639 messages.
4640
a051152b
DE
46412015-05-28 Doug Evans <dje@google.com>
4642
4643 * dwarf2read.c (record_line_ftype): Remove, duplicate.
4644
a56cc1ce
YQ
46452015-05-28 Yao Qi <yao.qi@linaro.org>
4646
4647 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
4648 (arm_linux_fetch_inferior_registers): Use
4649 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
4650 (arm_linux_store_inferior_registers): Likewise.
4651 (arm_linux_read_description): Don't set
4652 arm_linux_has_wmmx_registers.
4653 * arm-tdep.c (arm_gdbarch_init): Set
4654 tdep->have_wmmx_registers according target descriptions.
4655 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
4656 field.
4657
330c6ca9
YQ
46582015-05-28 Yao Qi <yao.qi@linaro.org>
4659
4660 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
4661 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
4662 instead of arm_linux_vfp_register_count.
4663 (store_vfp_regs): Likewise.
4664 (arm_linux_fetch_inferior_registers): Likewise.
4665 (arm_linux_store_inferior_registers): Likewise.
4666 (arm_linux_read_description): Don't set
4667 arm_linux_vfp_register_count.
4668 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
4669 Adjust.
4670 * arm-tdep.c (arm_gdbarch_init): Add assert on
4671 vfp_register_count.
4672 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
4673 field to vfp_register_count. All users updated.
4674
d403db27
KH
46752015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
4676
4677 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
4678 ELFOSABI_GNU binaries.
4679
d9b3de22
DE
46802015-05-27 Doug Evans <dje@google.com>
4681
4682 * dwarf2read.c (lnp_state_machine): New typedef.
4683 (lnp_reader_state): New typedef.
4684 (dwarf_record_line_1): Renamed from dwarf_record_line.
4685 All callers updated.
4686 (dwarf_record_line): New function.
4687 (init_lnp_state_machine): New function.
4688 (check_line_address): Replace p_record_line parameter with state.
4689 All callers updated.
4690 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
4691 Update to record state in lnp_state_machine.
4692
924c2928
DE
46932015-05-27 Doug Evans <dje@google.com>
4694
4695 * dwarf2read.c (record_line_ftype): New typedef.
4696 (check_line_address): New function.
4697 (dwarf_decode_lines_1): Call it.
4698
27e0867f
DE
46992015-05-27 Doug Evans <dje@google.com>
4700
4701 * NEWS: Mention "set debug dwarf-line".
4702 * dwarf2read.c (dwarf_line_debug): New static global.
4703 (add_include_dir): Add debug dwarf-line support.
4704 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
4705 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
4706
4dcabcc2
DE
47072015-05-27 Doug Evans <dje@google.com>
4708
4709 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
4710 All callers updated.
4711 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
4712 * cp-support.h (cp_lookup_nested_symbol): Update.
4713
b2e2f908
DE
47142015-05-27 Doug Evans <dje@google.com>
4715
4716 PR symtab/18258
4717 * block.c (block_find_symbol): New function.
4718 (block_find_non_opaque_type): Ditto.
4719 (block_find_non_opaque_type_preferred): Ditto.
4720 * block.h (block_symbol_matcher_ftype): New typedef.
4721 (block_find_symbol): Declare.
4722 (block_find_non_opaque_type): Ditto.
4723 (block_find_non_opaque_type_preferred): Ditto.
4724 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
4725 * psymtab.c (psym_lookup_symbol): Ditto.
4726 * symtab.c (basic_lookup_transparent_type_1): New function.
4727 (basic_lookup_transparent_type): Call it.
4728
f62fce35
YQ
47292015-05-27 Yao Qi <yao.qi@linaro.org>
4730
4731 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
4732 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
4733
5d98d3cd
YQ
47342015-05-27 Yao Qi <yao.qi@linaro.org>
4735
4736 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
4737 before operator &&.
4738 (aarch64_record_load_store): Likewise.
4739
82c7be31
DE
47402015-05-26 Doug Evans <dje@google.com>
4741
4742 PR c++/18141, c++/18417.
4743 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
4744 a typedef.
4745
b4f54984
DE
47462015-05-26 Doug Evans <dje@google.com>
4747
4748 * NEWS: Add entries for command renamings.
4749 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
4750 All uses updated.
4751 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
4752 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
4753 All uses updated.
4754 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
4755 All callers updated. Fix spelling of DWARF in help text.
4756 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
4757 All uses updated.
4758 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
4759 All uses updated.
4760 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
4761 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
4762 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
4763 All uses updated.
4764 (show_dwarf_always_disassemble): Renamed from
4765 show_dwarf2_always_disassemble. All callers updated.
4766 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
4767 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
4768 "set/show dwarf max-cache-age". Rename
4769 "set/show dwarf2 always-disassemble" to
4770 "set/show dwarf always-disassemble". Rename
4771 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
4772 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
4773
4ea6efe9
DE
47742015-05-26 Doug Evans <dje@google.com>
4775
4776 PR python/18438
4777 * python/py-lazy-string.c (stpy_convert_to_value): Use
4778 gdbpy_gdb_memory_error not PyExc_MemoryError.
4779 (gdbpy_create_lazy_string_object): Ditto.
4780
b93fd21d
AB
47812015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
4782
4783 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
4784
55b40027
AB
47852015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
4786
4787 * tui/tui-regs.c (tui_reg_prev_command): New function.
4788 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
4789 * reggroups.c (reggroup_prev): New function.
4790 * reggroups.h (reggroup_prev): Add declaration. Update comment.
4791
99afc88b
OJ
47922015-05-26 Omair Javaid <omair.javaid@linaro.org>
4793 Yao Qi <yao.qi@linaro.org>
4794
4795 * aarch64-linux-tdep.c: Include linux-record.h and
4796 record-full.h.
4797 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
4798 (aarch64_syscall): New enum.
4799 (aarch64_canonicalize_syscall): New function.
4800 (aarch64_all_but_pc_registers_record): New function.
4801 (aarch64_linux_syscall_record): New function.
4802 (aarch64_linux_init_abi): Install AArch64 process record
4803 handler. Update to handle syscall recording.
4804 * aarch64-tdep.c: Include record.h and record-full.h.
4805 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
4806 (struct aarch64_mem_r): Define.
4807 (aarch64_record_result): New enum.
4808 (struct insn_decode_record): Define.
4809 (insn_decode_record): New typedef.
4810 (aarch64_record_data_proc_reg): New function.
4811 (aarch64_record_data_proc_imm): New function.
4812 (aarch64_record_branch_except_sys): New function.
4813 (aarch64_record_load_store): New function.
4814 (aarch64_record_data_proc_simd_fp): New function.
4815 (aarch64_record_asimd_load_store): New function.
4816 (aarch64_record_decode_insn_handler): New function.
4817 (deallocate_reg_mem): New function.
4818 (aarch64_process_record): New function.
4819 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
4820 New field.
4821 (aarch64_process_record): New extern declaration.
4822 * configure.tgt: Add linux-record.o to gdb_target_obs.
4823 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
4824
c16a3f52
OJ
48252015-05-26 Omair Javaid <omair.javaid@linaro.org>
4826
4827 * NEWS: Add a note on process record-replay support on aarch64*-linux*
4828 targets.
4829
c9cf6e20
MG
48302015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
4831
4832 * amd64-tdep.c: Replace in_function_epilogue_p with
4833 stack_frame_destroyed_p throughout.
4834 * arch-utils.c: Ditto.
4835 * arch-utils.h: Ditto.
4836 * arm-tdep.c: Ditto.
4837 * breakpoint.c: Ditto.
4838 * gdbarch.sh: Ditto.
4839 * hppa-tdep.c: Ditto.
4840 * i386-tdep.c: Ditto.
4841 * mips-tdep.c: Ditto.
4842 * nios2-tdep.c: Ditto.
4843 * rs6000-tdep.c: Ditto.
4844 * s390-linux-tdep.c: Ditto.
4845 * score-tdep.c: Ditto.
4846 * sh-tdep.c: Ditto.
4847 * sparc-tdep.c: Ditto.
4848 * sparc-tdep.h: Ditto.
4849 * sparc64-tdep.c: Ditto.
4850 * spu-tdep.c: Ditto.
4851 * tic6x-tdep.c: Ditto.
4852 * tilegx-tdep.c: Ditto.
4853 * xstormy16-tdep.c: Ditto.
4854 * gdbarch.c, gdbarch.h: Re-generated.
4855
a4ea0946
AB
48562015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4857
4858 * NEWS: Mention 'tui enable' and 'tui disable'.
4859 * tui/tui.c (tui_enable_command): New function.
4860 (tui_disable_command): New function.
4861 (_initialize_tui): New function.
4862
b75c69bb
AB
48632015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4864
4865 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
4866
c1b009ee
AB
48672015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4868
4869 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
4870 buf_ptr is freed.
4871
880d1e40
AB
48722015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4873
4874 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
4875 into ...
4876 (tui_set_layout_for_display_command): ...here, before calling
4877 tui_set_layout. Only set the layout if gdb has not already
4878 entered the TUI_FAILURE state.
4879
a0145030
AB
48802015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4881
4882 * tui/tui-layout.c (layout_completer): New function.
4883 (_initialize_tui_layout): Set completer on layout command.
4884
7bd0be3a
AB
48852015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4886
4887 * tui/tui-layout.c (tui_set_layout): Remove
4888 tui_register_display_type parameter. Remove all checking of this
4889 parameter, and reindent function. Update header comment.
4890 (tui_set_layout_for_display_command): Rename to...
4891 (tui_set_layout_by_name): ...this, and don't check for different
4892 register class types, don't pass a tui_register_display_type to
4893 tui_set_layout. Update header comment.
4894 (layout_names): Remove register set specific names.
4895 * tui/tui-layout.h (tui_set_layout): Remove
4896 tui_register_display_type parameter.
4897 * tui/tui.c (tui_rl_change_windows): Don't pass a
4898 tui_register_display_type to tui_set_layout.
4899 (tui_rl_delete_other_windows): Likewise.
4900 (tui_enable): Likewise.
4901 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
4902 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
4903 (TUI_GENERAL_REGS_NAME): Remove.
4904 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
4905 (TUI_SPECIAL_REGS_NAME): Remove.
4906 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
4907 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
4908 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
4909 (enum tui_register_display_type): Remove.
4910 (struct tui_layout_def): Remove regs_display_type and
4911 float_regs_display_type fields.
4912 (struct tui_data_info): Remove regs_display_type field.
4913 (tui_layout_command): Use new name for
4914 tui_set_layout_for_display_command.
4915 * tui/tui-data.c (layout_def): Don't initialise removed fields.
4916 (tui_clear_win_detail): Don't initialise removed fields of
4917 win_info.
4918 * tui/tui-regs.c (tui_show_registers): Use new name for
4919 tui_set_layout_for_display_command.
4920 * tui/tui.h (tui_set_layout_for_display_command): Rename
4921 declaration to...
4922 (tui_set_layout_by_name): ...this.
4923 * printcmd.c (display_command): Remove tui related layout call,
4924 and reindent.
4925
0b6e5e10
JB
49262015-05-20 Joel Brobecker <brobecker@adacore.com>
4927
4928 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
4929 (handle_inferior_event): New function.
4930
1da0522e
JB
49312015-05-20 Joel Brobecker <brobecker@adacore.com>
4932
4933 * ada-lang.c (to_fixed_array_type): Rename local variable
4934 typename into type_name.
4935
5fe75eec
JK
49362015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4937
4938 Fix ASAN crash for gdb.compile/compile.exp.
4939 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
4940
a4063588
JK
49412015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4942
4943 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
4944 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
4945 * compile/compile-object-load.c (setup_sections, compile_object_load):
4946 Likewise.
4947 * compile/compile.c (compile_to_object): Likewise.
4948
37442ce1
DE
49492015-05-16 Doug Evans <xdje42@gmail.com>
4950
4951 * NEWS: Mention support for unbuffered Guile memory ports.
4952 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
4953 (ioscm_lseek_address): Improve overflow calculation.
4954 (gdbscm_memory_port_fill_input): Add assert.
4955 (gdbscm_memory_port_write): Handle unbuffered ports.
4956 Handle large writes identical to Guile's fport_write.
4957 (gdbscm_memory_port_seek): Fix seeking past end check.
4958 (gdbscm_memory_port_close): Handle closing unbuffered port.
4959 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
4960 (ioscm_init_memory_port): Handle unbuffered ports.
4961 (ioscm_reinit_memory_port): Ditto.
4962 (ioscm_init_memory_port): Update size calculation.
4963 (gdbscm_open_memory): Support zero sized ports.
4964
d976bace
JK
49652015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4966
4967 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
4968 variable compiler warnings.
4969
4d18dfad
JK
49702015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4971
4972 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
4973
36de76f9
JK
49742015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4975 Phil Muldoon <pmuldoon@redhat.com>
4976
4977 * NEWS (Changes since GDB 7.9): Add compile print.
4978 * compile/compile-c-support.c (add_code_header, add_code_footer)
4979 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
4980 COMPILE_I_PRINT_VALUE_SCOPE.
4981 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
4982 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
4983 New.
4984 * compile/compile-object-load.c: Include block.h.
4985 (get_out_value_type): New function.
4986 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
4987 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
4988 OUT_VALUE_TYPE.
4989 * compile/compile-object-load.h (struct compile_module): Add fields
4990 out_value_addr and out_value_type.
4991 * compile/compile-object-run.c: Include valprint.h and compile.h.
4992 (struct do_module_cleanup): Add fields out_value_addr and
4993 out_value_type.
4994 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
4995 COMPILE_I_PRINT_VALUE_SCOPE.
4996 (compile_object_run): Propagate out_value_addr and out_value_type.
4997 Pass OUT_VALUE_ADDR.
4998 * compile/compile.c: Include valprint.h.
4999 (compile_print_value, compile_print_command): New functions.
5000 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
5001 (_initialize_compile): Update compile code help text. Install
5002 compile_print_command.
5003 * compile/compile.h (compile_print_value): New prototype.
5004 * defs.h (enum compile_i_scope_types): Add
5005 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
5006
83d3415e
JK
50072015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5008
5009 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
5010 Rely on its parameter count.
5011 (compile_object_load): Replace lookup_minimal_symbol_text by
5012 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
5013 return value.
5014 * compile/compile-object-load.h (struct compile_module): Replace
5015 func_addr by func_sym.
5016 * compile/compile-object-run.c: Include block.h.
5017 (compile_object_run): Reset module variable after it is freed. Use
5018 FUNC_SYM instead of FUNC_ADDR. Rely on it.
5019
3a9558c4
JK
50202015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5021
5022 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
5023 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
5024 (c_compute_program): Call generate_register_struct after typedefs.
5025 * compile/compile-loc2c.c (push, pushf_register_address)
5026 (pushf_register): Cast to GCC_UINTPTR.
5027 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
5028 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
5029 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
5030 * compile/compile.c (_initialize_compile): Enable warnings for
5031 COMPILE_ARGS.
5032
5c65b58a
JK
50332015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5034
5035 * cli/cli-script.c (execute_control_command): Update
5036 eval_compile_command caller.
5037 * compile/compile-object-load.c (compile_object_load): Add parameters
5038 scope and scope_data. Set them.
5039 * compile/compile-object-load.h (struct compile_module): Add fields
5040 scope and scope_data.
5041 (compile_object_load): Add parameters scope and scope_data.
5042 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
5043 scope and scope_data.
5044 (compile_object_run): Propagate the fields scope and scope_data.
5045 * compile/compile.c (compile_file_command, compile_code_command):
5046 Update eval_compile_command callers.
5047 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
5048 * compile/compile.h (eval_compile_command): Add parameter scope_data.
5049 * defs.h (struct command_line): Add field scope_data.
5050
1c88ceb1
JK
50512015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5052
5053 * printcmd.c (struct format_data): Move it to valprint.h.
5054 (print_command_parse_format, print_value): New functions from ...
5055 (print_command_1): ... here. Call them.
5056 * valprint.h (struct format_data): Move it here from printcmd.c.
5057 (print_command_parse_format, print_value): New declarations.
5058
0b738f27
JK
50592015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5060
5061 * compile/compile-object-load.c (compile_object_load): Add
5062 COMPILE_DEBUG message.
5063
aa715135
JG
50642015-05-15 Jerome Guitton <guitton@adacore.com>
5065
5066 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
5067 index to get element instead of enum value.
5068 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
5069 of index to compute length, but enum values to compute bounds.
5070 (ada_array_length): Use enum position of index instead of enum value.
5071 (pos_atr): Move position computation to...
5072 (ada_evaluate_subexp): Use enum values to compute bounds.
5073 * gdbtypes.c (discrete_position): ...this new function.
5074 * gdbtypes.h (discrete_position): New function declaration.
5075 * valprint.c (val_print_array_elements): Call discrete_position
5076 to handle array indexed by non-contiguous enumeration types.
5077
931e5bc3
JG
50782015-05-15 Jerome Guitton <guitton@adacore.com>
5079
5080 * ada-lang.c (find_parallel_type_by_descriptive_type):
5081 Go through typedefs during lookup.
5082 (to_fixed_array_type): Add support for non-bit packed arrays
5083 as variable-length fields.
5084
4e63d0ac
PA
50852015-05-15 Pedro Alves <palves@redhat.com>
5086 Simon Marchi <simon.marchi@ericsson.com>
5087
5088 * event-loop.c (gdb_notifier) <next_file_handler,
5089 next_poll_fds_index>: New fields.
5090 (get_next_file_handler_to_handle_and_advance): New function.
5091 (delete_file_handler): If deleting the next file handler to
5092 handle, advance to the next file handler.
5093 (gdb_wait_for_event): Bail early if no event fired. Poll file
5094 handlers in round-robin fashion.
5095
52e48b36
PA
50962015-05-15 Pedro Alves <palves@redhat.com>
5097
5098 * linux-tdep.c (linux_find_memory_regions_full): Rename local
5099 'private' to 'priv'.
5100
2465e12e
PA
51012015-05-15 Pedro Alves <palves@redhat.com>
5102
5103 * nat/linux-nat.h: Include "target/waitstatus.h".
5104
13fa0398
YZ
51052015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
5106
5107 * python/py-unwind.c (struct reg_info): Move out of ...
5108 (struct cached_frame_info): ... this scope.
5109 (pending_frame_object_type, unwind_info_object_type): Make extern.
5110
9cd4d857
JB
51112015-05-15 Joel Brobecker <brobecker@adacore.com>
5112
5113 * ada-lang.c (ada_value_primitive_packed_val): Make sure
5114 accumSize is never negative.
5115
e3555239
PP
51162015-05-14 Patrick Palka <patrick@parcs.ath.cx>
5117
5118 * tui/tui-command.c: Remove include of <ctype.h>.
5119 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5120
08a76f8a
MG
51212015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
5122
5123 * dwarf2read.c (die_needs_namespace): Return 1 for
5124 DW_TAG_inlined_subroutine.
5125
bd49952b
JK
51262015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5127
5128 * regcache.c (regcache_cpy_no_passthrough): New declaration.
5129 (regcache_cpy_no_passthrough): Make it static, add function comment.
5130 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
5131 (regcache_cpy_no_passthrough): Remove declaration.
5132
46c03469
JK
51332015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5134
5135 * gdbthread.h (struct thread_control_state): Update comment for
5136 proceed_to_finish.
5137 * infcall.c (run_inferior_call): Update comment about
5138 proceed_to_finish.
5139 * infcmd.c (get_return_value): Update comment about stop_registers.
5140 (finish_forward): Update comment about proceed_to_finish.
5141 * infrun.c (stop_registers): Remove.
5142 (clear_proceed_status, normal_stop): Remove stop_registers handling.
5143 * infrun.h (stop_registers): Remove.
5144
8a6c4031
JK
51452015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5146
5147 * infcall.c (struct dummy_frame_context_saver)
5148 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
5149 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5150 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5151 New.
5152 (call_function_by_hand_dummy): Move discard_cleanups of
5153 inf_status_cleanup before dummy_frame_push. Call
5154 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
5155 Use dummy_frame_context_saver_get_regs instead of stop_registers.
5156 * infcall.h (struct dummy_frame_context_saver)
5157 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
5158 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
5159 New declarations.
5160 * infcmd.c: Include infcall.h.
5161 (get_return_value): Add parameter ctx_saver, use it instead of
5162 stop_registers.
5163 (print_return_value): Add parameter ctx_saver, pass it.
5164 (struct finish_command_continuation_args): Add field ctx_saver.
5165 (finish_command_continuation): Update print_return_value caller.
5166 (finish_command_continuation_free_arg): Free also ctx_saver.
5167 (finish_forward): Call dummy_frame_context_saver_setup.
5168 * inferior.h (struct dummy_frame_context_saver): New declaration.
5169 (get_return_value): Add parameter ctx_saver.
5170 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
5171 get_return_value caller.
5172
10989690
JK
51732015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5174
5175 * dummy-frame.c (struct dummy_frame_dtor_list): New.
5176 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5177 (remove_dummy_frame): Process dtor_list.
5178 (pop_dummy_frame): Process dtor_list.
5179 (register_dummy_frame_dtor): Maintain dtor_list.
5180 (find_dummy_frame_dtor): Handle dtor_list.
5181 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5182 Update comments.
5183
5e970501
JK
51842015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5185
5186 * compile/compile-object-run.c (do_module_cleanup): Add parameter
5187 registers_valid.
5188 (compile_object_run): Update do_module_cleanup caller.
5189 * dummy-frame.c: Include infcall.h.
5190 (struct dummy_frame): Update dtor comment.
5191 (remove_dummy_frame): Call dtor.
5192 (pop_dummy_frame): Update dtor caller.
5193 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5194 registers_valid.
5195
1c4eb778
JB
51962015-05-13 Joel Brobecker <brobecker@adacore.com>
5197
5198 GDB 7.9.1 released.
5199
f5f85ab9
JB
52002015-05-13 Joel Brobecker <brobecker@adacore.com>
5201
5202 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
5203 Xmethods now being able to specify a result type to that new
5204 sectioin.
5205
242cd84c
PP
52062015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5207
5208 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5209 first before resizing the window.
e3555239 5210 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
5211
52122015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
5213
5214 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5215 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5216 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
5217 dummy_dtor parameter.
5218 * infcall.h: Include dummy-frame.h.
5219 (call_function_by_hand_dummy_dtor_ftype): Remove.
5220 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
5221 parameter.
5222
ebfd00d2
PP
52232015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5224
5225 PR gdb/17820
5226 * top.c (history_size_setshow_var): Change type to signed.
5227 Initialize to -2. Update documentation.
5228 (set_readline_history_size): Define.
5229 (set_history_size_command): Use it. Remove logic for handling
5230 out-of-range sizes.
5231 (init_history): Use set_readline_history_size(). Test for a
5232 value of -2 instead of 0 when determining whether to set a
5233 default history size.
5234 (init_main): Decode the argument of the "size" command as a
5235 zuinteger_unlimited.
5236
83769d0b
DE
52372015-05-12 Doug Evans <dje@google.com>
5238
5239 * dwarf2read.c (struct file_entry): Tweak comments.
5240 (get_debug_line_section): Tweak comments.
5241
0d71eef5
DB
52422015-05-12 Don Breazeal <donb@codesourcery.com>
5243
5244 * NEWS: Announce fork support in the RSP and support
5245 for fork debugging in extended mode.
5246
cbb8991c
DB
52472015-05-12 Don Breazeal <donb@codesourcery.com>
5248
5249 * remote.c (remote_insert_fork_catchpoint): New function.
5250 (remote_remove_fork_catchpoint): New function.
5251 (remote_insert_vfork_catchpoint): New function.
5252 (remote_remove_vfork_catchpoint): New function.
5253 (pending_fork_parent_callback): New function.
5254 (remove_new_fork_child): New function.
5255 (remote_update_thread_list): Call remote_notif_get_pending_events
5256 and remove_new_fork_child.
5257 (extended_remote_kill): Kill fork child when killing the
5258 parent before follow_fork completes.
5259 (init_extended_remote_ops): Initialize target vector with
5260 new fork catchpoint functions.
5261
c269dbdb
DB
52622015-05-12 Don Breazeal <donb@codesourcery.com>
5263
5264 * remote.c (remove_vfork_event_p): New function.
5265 (remote_follow_fork): Add vfork event type to event checking.
5266 (remote_parse_stop_reply): New stop reasons "vfork" and
5267 "vforkdone" for RSP 'T' Stop Reply Packet.
5268
de0d863e
DB
52692015-05-12 Don Breazeal <donb@codesourcery.com>
5270
5271 * linux-nat.c (linux_nat_ptrace_options): New function.
5272 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
5273 Call linux_nat_ptrace_options and use different argument to
5274 linux_enable_event_reporting.
5275 (_initialize_linux_nat): Delete call to
5276 linux_ptrace_set_additional_flags.
c8f6c93c 5277 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
5278 supported_ptrace_options.
5279 (additional_flags): Delete variable.
5280 (linux_check_ptrace_features): Use supported_ptrace_options.
5281 (linux_test_for_tracesysgood, linux_test_for_tracefork):
5282 Likewise, and remove additional_flags check.
5283 (linux_enable_event_reporting): Change 'attached' argument to
5284 'options'. Use supported_ptrace_options.
c8f6c93c 5285 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
5286 supported_ptrace_options.
5287 (linux_ptrace_set_additional_flags): Delete function.
5288 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5289 Delete function prototype.
5290 * remote.c (remote_fork_event_p): New function.
5291 (remote_detach_pid): New function.
5292 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
5293 if doing detach-on-fork.
5294 (remote_follow_fork): New function.
5295 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
5296 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
5297 (init_extended_remote_ops): Initialize to_follow_fork.
5298
89245bc0
DB
52992015-05-12 Don Breazeal <donb@codesourcery.com>
5300
5301 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
5302 from static to extern.
5303 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
5304 * remote.c (anonymous enum): <PACKET_fork_event_feature,
5305 * PACKET_vfork_event_feature>: New enumeration constants.
5306 (remote_protocol_features): Add table entries for new packets.
5307 (remote_query_supported): Add new feature queries to qSupported
5308 packet.
5309
835205d0
GB
53102015-05-12 Gary Benson <gbenson@redhat.com>
5311
5312 * remote.c (remote_add_inferior): Call exec_file_locate_attach
5313 for fake PIDs as well as real ones.
5314 (remote_pid_to_exec_file): Send empty annex if PID is fake.
5315
4c082a81
SC
53162015-05-09 Siva Chandra Reddy <sivachandra@google.com>
5317
5318 * NEWS (Python Scripting): Mention the new gdb.Value methods.
5319 * python/py-value.c (valpy_reference_value): New function.
5320 (valpy_const_value): Likewise.
5321 (value_object_methods): Add new methods.
5322 * value.c (make_cv_value): New function.
5323 * value.h (make_cv_value): Declare.
5324
afa6c9ab
SL
53252015-05-08 Yao Qi <yao@codesourcery.com>
5326 Sandra Loosemore <sandra@codesourcery.com>
5327
5328 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
5329 to 'lh->include_dirs' before accessing to it.
5330 (psymtab_include_file_name): Likewise.
5331 (dwarf_decode_lines_1): Likewise.
5332 (dwarf_decode_lines): Likewise.
5333 (file_file_name): Likewise.
5334
35d54293
SL
53352015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5336
5337 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
5338 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
5339 (nios2_linux_rt_sigreturn_init): Adjust base address of
5340 register save area.
5341
b73c49b7
SL
53422015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5343
5344 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
5345 "trap 31" as the breakpoint instruction on all targets.
5346
dd9f02a0
JK
53472015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5348
5349 * infcmd.c (print_return_value): Remove unused declaration.
5350
6ad395a7
JB
53512015-05-08 Joel Brobecker <brobecker@adacore.com>
5352
5353 * dwarf2read.c (attr_to_dynamic_prop)
5354 <DW_AT_data_member_location>: Use read_type_die isntead of
5355 get_die_type.
5356
8344af1e
JB
53572015-05-08 Joel Brobecker <brobecker@adacore.com>
5358
5359 * ada-lang.c (ada_convert_actual): Add handling of formals
5360 passed inside an aligner type.
5361
80b0912b
JB
53622015-05-08 Joel Brobecker <brobecker@adacore.com>
5363
5364 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
5365
df2eb078
SC
53662015-05-08 Siva Chandra Reddy <sivachandra@google.com>
5367
5368 PR python/18291
5369 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
5370 Print xmethod matcher status.
5371
2492f0d0
AA
53722015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
5373
5374 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
5375 register in the regcache when treating the PSWM register, and vice
5376 versa.
5377
1c56a84d
GB
53782015-05-07 Gary Benson <gbenson@redhat.com>
5379
5380 * linux-thread-db.c (struct thread_db_info)
5381 <td_ta_map_id2thr_p>: Remove field.
5382 (try_thread_db_load_1): Remove initialization for the above.
5383
74850322
GB
53842015-05-07 Gary Benson <gbenson@redhat.com>
5385
5386 * linux-thread-db.c (struct thread_db_info)
5387 <td_thr_validate_p>: Remove field.
5388 (try_thread_db_load_1): Remove initialization for the above.
5389
e26efa40
JK
53902015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5391
5392 * compile/compile-object-load.c (compile_object_load): Support
5393 mst_text_gnu_ifunc.
5394
851c9091
JK
53952015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5396
5397 * compile/compile.c (compile_to_object): Make the cmd_string parameter
5398 const. Use new variables for the const compatibility.
5399 (eval_compile_command): Make the cmd_string parameter const.
5400 * compile/compile.h (eval_compile_command): Make the cmd_string
5401 parameter const.
5402
f218b647
JB
54032015-05-06 Joel Brobecker <brobecker@adacore.com>
5404
5405 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
5406 comment.
5407 * top.c (deprecated_init_ui_hook): Delete.
5408 (gdb_init): Remove handling of deprecated_init_ui_hook.
5409 * interps.c (clear_interpreter_hooks): Remove handling of
5410 deprecated_init_ui_hook.
5411 * main.c (captured_main): Update comment.
5412
b30a0bc3
JB
54132015-05-06 Joel Brobecker <brobecker@adacore.com>
5414
5415 * solib.c (_initialize_solib): Add "info dll" alias creation.
5416 * windows-nat.c (set_windows_aliases): Delete.
5417 (_initialize_windows_nat): Remove deprecated_init_ui_hook
5418 assignment.
5419 * NEWS: Add news entry about "info dll" now being available
5420 on all platforms.
5421
7c512744
JB
54222015-05-05 Joel Brobecker <brobecker@adacore.com>
5423
5424 * ada-lang.c (value_assign_to_component): Reformat and improve
5425 documentation. Remove all trailing spaces.
5426
0fa7fe50
JB
54272015-05-05 Joel Brobecker <brobecker@adacore.com>
5428
5429 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5430 Stop counting inlined frames as soon as an out-of-line function
5431 is found.
5432
3ea89b92
PMR
54332014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
5434
5435 * dwarf2read.c (inherit_abstract_dies): Skip
5436 DW_TAG_GNU_call_site dies while inheriting children of an
5437 abstract DIE into a scope.
5438 (read_lexical_block_scope): Inherit abstract DIE's for
5439 lexical scopes.
5440
2478d075
JB
54412015-05-05 Joel Brobecker <brobecker@adacore.com>
5442
5443 * ada-valprint.c (val_print_packed_array_elements): Delete
5444 variable "len". Add a type-length check when comparing two
5445 consecutive elements of the array. Use the element's actual
5446 length in call to value_contents_eq.
5447 * ada-lang.c (ada_value_primitive_packed_val): Always return
5448 a value whose type has been resolved.
5449
fc958966
JB
54502015-05-05 Joel Brobecker <brobecker@adacore.com>
5451
5452 * ada-lang.c (ada_value_primitive_packed_val): Recompute
5453 BIT_SIZE and LEN if the size of the resolved type is smaller
5454 than BIT_SIZE * HOST_CHAR_BIT.
5455
ca34b84f
JB
54562015-05-05 Joel Brobecker <brobecker@adacore.com>
5457
5458 * ada-lang.c (ada_value_primitive_packed_val): Use a more
5459 correct address in call to value_at. Adjust call to
5460 value_address accordingly.
5461
62c67f3c
JB
54622015-05-05 Joel Brobecker <brobecker@adacore.com>
5463
5464 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
5465 to print it.
5466
c3345124
JB
54672015-05-05 Joel Brobecker <brobecker@adacore.com>
5468
5469 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
5470 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
5471 pinfo->valaddr.
5472 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
5473 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
5474 (resolve_dynamic_type_internal): Set pinfo.valaddr.
5475 Add handling of addr_stack->valaddr.
5476 (resolve_dynamic_type): Add "valaddr" parameter.
5477 Set pinfo.valaddr field.
5478 * ada-lang.c (ada_discrete_type_high_bound): Update call to
5479 resolve_dynamic_type.
5480 (ada_discrete_type_low_bound): Likewise.
5481 * findvar.c (default_read_var_value): Likewise.
5482 * value.c (value_from_contents_and_address): Likewise.
5483
75ea5859
JB
54842015-05-05 Joel Brobecker <brobecker@adacore.com>
5485
5486 * gdbtypes.c (resolve_dynamic_array): Use
5487 create_array_type_with_stride instead of create_array_type.
5488
0952813b
DD
54892015-04-30 DJ Delorie <dj@redhat.com>
5490
5491 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
5492 rl78_decode_opcode
5493
2ce1cdbf
DE
54942015-04-29 Doug Evans <dje@google.com>
5495
5496 PR python/18285
5497 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
5498 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
5499 EVAL_AVOID_SIDE_EFFECTS for xmethods.
5500 * extension-priv.h (struct extension_language_ops)
5501 <get_xmethod_result_type>: New member.
5502 * extension.c (get_xmethod_result_type): New function.
5503 * extension.h (get_xmethod_result_type): Declare.
5504 * python/py-xmethods.c (get_result_type_method_name): New static
5505 global.
5506 (py_get_result_type_method_name): Ditto.
5507 (gdbpy_get_xmethod_result_type): New function.
5508 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
5509 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
5510 * python/python.c (python_extension_ops): Add
5511 gdbpy_get_xmethod_result_type.
5512 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
5513 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
5514 xmethods.
5515 (value_x_unop): Ditto.
5516 * value.c (result_type_of_xmethod): New function.
5517 * value.h (result_type_of_xmethod): Declare.
5518
998d2a3e
GB
55192015-04-29 Gary Benson <gbenson@redhat.com>
5520
5521 * solib.c (solib_find_1): Allow fd argument to be NULL.
5522 (exec_file_find): Update comment.
5523 (solib_find): Likewise.
5524 * exec.c (exec_file_locate_attach): Use NULL as fd
5525 argument to exec_file_find to avoid having to close
5526 the opened file.
5527 * infrun.c (follow_exec): Likewise.
5528
34f5f757
DE
55292015-04-28 Doug Evans <dje@google.com>
5530
5531 PR python/18299
5532 * python/lib/gdb/printing.py (register_pretty_printer): Handle
5533 name or __name__ attributes. Handle gdb module as first argument.
5534
69b4374a
DE
55352015-04-28 Doug Evans <dje@google.com>
5536
5537 PR python/18089
5538 * python/py-prettyprint.c (print_children): Verify result of children
5539 iterator. Provide better error message.
5540 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
5541 * python/python.c (gdbpy_print_python_errors_p): New function.
5542
5e7cf078
DE
55432015-04-28 Doug Evans <dje@google.com>
5544
5545 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
5546
59fb7612
SS
55472015-04-28 Sasha Smundak <asmundak@google.com>
5548
5549 * NEWS: Mention gdb.Type.optimized_out method.
5550 * python/py-type.c (typy_optimized_out): New function.
5551
cea6e4f1
JB
55522015-04-28 John Baldwin <jhb@FreeBSD.org>
5553
5554 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5555
24b73f8e
PP
55562015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5557
5558 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
5559 (initialize_utils): Move call of init_page_info() to ...
5560 * top.c (gdb_init): ... here.
5561
a88d0bb3
PP
55622015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5563
5564 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
5565 (tui_sigwinch_handler): Still update our idea of
5566 the terminal's width and height even when TUI is not active.
5567
d6e5e7f7
PP
55682015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5569
5570 * utils.h (set_screen_width_and_height): Declare.
5571 * utils.c (set_screen_width_and_height): Define.
5572 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
5573
ff862be4
GB
55742015-04-28 Gary Benson <gbenson@redhat.com>
5575
5576 * infrun.c (solist.h): New include.
5577 (follow_exec): Use exec_file_find to prefix execd_pathname
5578 with gdb_sysroot.
5579
2eb639cb
PP
55802015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5581
5582 * tui/tui-source.c (tui_set_source_content): Avoid calling
5583 strcpy() when offset is 0.
5584
97206799
PP
55852015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5586
5587 PR gdb/18155
5588 * tui/tui-data.c (tui_free_window): Don't free the locator
5589 window when passed an SRC_WIN or a DISASSEM_WIN.
5590
63ed8182
PP
55912015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5592
5593 * tui/tui-data.h (struct tui_win_element): Forward-declare.
5594 (tui_win_content): Move declaration.
5595 (struct tui_gen_win_info): Give 'content' field the
5596 type tui_win_content.
5597 * tui/tui-data.c (init_content_element): Remove redundant and
5598 erroneous casts.
5599 (tui_add_content_elements): Remove erroneous cast.
5600 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
5601 casts.
5602 (tui_get_begin_asm_address): Likewise.
5603 * tui/tui-regs.c (tui_show_registers): Likewise.
5604 (tui_show_register_group): Likewise.
5605 (tui_display_registers_from): Likewise.
5606 (tui_check_register_values): Likewise.
5607 * tui/tui-source.c (tui_set_source_content): Likewise.
5608 (tui_set_source_content_nil): Likewise.
5609 (tui_source_is_displayed): Likewise.
5610 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5611 (tui_set_locator_fullname): Likewise.
5612 (tui_set_locator_info): Likewise.
5613 (tui_show_frame_info): Likewise.
5614 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
5615 (tui_show_source_line): Likewise.
5616 (tui_horizontal_source_scroll): Likewise.
5617 (tui_update_breakpoint_info): Likewise.
5618 (tui_set_exec_info_content): Likewise.
5619 (tui_show_exec_info_content): Likewise.
5620 (tui_alloc_source_buffer): Likewise.
5621 (tui_line_is_displayed): Likewise.
5622 (tui_addr_is_displayed): Likewise.
5623
d2b41ca0
JB
56242015-04-27 John Baldwin <jhb@FreeBSD.org>
5625
5626 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
5627 event if PL_FLAG_EXEC is set.
5628 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
5629 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
5630 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
5631 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
5632 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
5633
e58e05d6
JB
56342015-04-27 John Baldwin <jhb@FreeBSD.org>
5635
5636 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
5637 [TDP_RFPPWAIT] New variable fbsd_pending_children.
5638 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
5639 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
5640 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
5641 [PT_LWPINFO] (fbsd_wait): New function.
5642 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
5643 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
5644 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
5645 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
5646 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
5647 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
5648 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
5649 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
5650 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
5651 "fbsd_wait".
5652 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
5653 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
5654 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
5655 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
5656 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
5657 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
5658 Set "to_post_attach" to "fbsd_post_attach".
5659
8f60fe01
JB
56602015-04-27 John Baldwin <jhb@FreeBSD.org>
5661
5662 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
5663 (fbsd_find_memory_regions): Mark static.
5664 (fbsd_nat_add_target): New function.
5665 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
5666 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
5667 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
5668 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
5669 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
5670 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
5671
5fbae7d1
GB
56722015-04-27 Gary Benson <gbenson@redhat.com>
5673
5674 * objfiles.c (allocate_objfile): Do not attempt to expand name
5675 if name is a "target:" filename.
5676 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
5677 to load auto-load scripts for objfiles with "target:" filenames.
5678
417c80f9
AA
56792015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5680
5681 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
5682 (enum s390_vector_abi_kind): New enum.
5683 (struct gdbarch_tdep)<vector_abi>: New field.
5684 (s390_effective_inner_type): Add parameter min_size. Stop
5685 unwrapping if the inner type is smaller than min_size.
5686 (s390_function_arg_float): Adjust call to
5687 s390_effective_inner_type.
5688 (s390_function_arg_vector): New function.
5689 (s390_function_arg_integer): Adjust comment.
5690 (struct s390_arg_state)<vr>: New field.
5691 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
5692 arguments according to vector ABI when appropriate.
5693 (s390_push_dummy_call): Initialize the argument state's field
5694 'vr'. Adjust calls to s390_handle_arg.
5695 (s390_register_return_value): Handle vector return values.
5696 (s390_return_value): Apply the "register" return value convention
5697 to a vector when appropriate.
5698 (s390_gdbarch_init): Initialize tdep->vector_abi.
5699 * NEWS: Announce S390 vector ABI support.
5700
4e65a17e
AA
57012015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5702
5703 * s390-linux-tdep.c (s390_return_value_convention): Remove
5704 function. Inline its logic...
5705 (s390_return_value): ...here. Instead, move the handling of the
5706 "register" return value convention...
5707 (s390_register_return_value): ...here. New function.
5708
80f75320
AA
57092015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5710
5711 * s390-linux-tdep.c
5712 (is_float_singleton): Remove function. Move the "singleton" part
5713 of the logic...
5714 (s390_effective_inner_type): ...here. New function.
5715 (is_float_like): Remove function. Inline its logic...
5716 (s390_function_arg_float): ...here.
5717 (is_pointer_like, is_integer_like, is_struct_like): Remove
5718 functions. Inline their logic...
5719 (s390_function_arg_integer): ...here.
5720 (s390_function_arg_pass_by_reference): Remove function.
5721 (extend_simple_arg): Remove function.
5722 (alignment_of): Remove function.
5723 (struct s390_arg_state): New structure.
5724 (s390_handle_arg): New function.
5725 (s390_push_dummy_call): Move parameter placement logic to the new
5726 function s390_handle_arg. Call it for calculating the stack area
5727 sizes first, and again for actually writing the parameters.
5728
6dbc9c04
AA
57292015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5730
5731 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
5732 false if the argument is zero.
5733
9e195661
PMR
57342015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
5735
5736 * ada-lang.c (template_to_static_fixed_type): Return input type
5737 when it is already fixed. Cache the input type itself when not
5738 creating a static fixed copy. Make it explicit that we never
5739 molestate the input type.
5740 * gdbtypes.c (resolve_dynamic_struct): Reset the
5741 TYPE_TARGET_TYPE field for resolved copies.
5742
460efde1
JB
57432015-04-27 Joel Brobecker <brobecker@adacore.com>
5744
5745 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
5746 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
5747 (template_to_static_fixed_type): Call ada_check_typedef only
5748 when necessary.
5749
6faec16b
AB
57502015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
5751
5752 * cli/cli-dump.c (srec_dump_command): Add internationalization
5753 mark ups.
5754 (ihex_dump_command): Likewise.
5755 (tekhex_dump_command): Likewise.
5756 (binary_dump_command): Likewise.
5757 (binary_append_command): Likewise.
5758
cf75d6c3
AB
57592015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
5760
5761 * cli/cli-dump.c (verilog_cmdlist): New variable.
5762 (dump_verilog_memory): New function.
5763 (dump_verilog_value): New function.
5764 (verilog_dump_command): New function.
5765 (_initialize_cli_dump): Add new commands to support verilog dump
5766 format.
5767 * NEWS: Add entry for "dump verilog".
5768
8cd00c59
PMR
57692015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
5770
5771 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
5772 descriptive type when there is none.
5773
8900d71e
PP
57742015-04-23 Patrick Palka <patrick@parcs.ath.cx>
5775
5776 * tui/tui-win.c (tui_async_resize_screen): Call
5777 rl_resize_terminal().
5778
f16eab5f
JT
57792015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
5780
5781 * windows-nat.c (handle_output_debug_string): Don't change
5782 current_event.dwThreadId.
5783 (get_windows_debug_event): Use thread_id, rather than relying on
5784 current_event.dwThreadId being changed.
5785
68ffc902
JT
57862015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
5787
5788 * windows-nat.c (windows_continue): Report an error if
5789 ContinueDebugEvent() fails.
5790
23942819
JT
57912015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5792
5793 * windows-nat.c (windows_resume): Fix misspelling in debug output.
5794
e6ad66bd
JT
57952015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5796
5797 * windows-nat.c (get_windows_debug_event): Replace retval with
5798 thread_id throughout. Update stale comment.
5799
776704b9
JT
58002015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5801
5802 * windows-nat.c (get_windows_debug_event): Don't use ternary
5803 conditional operator.
5804
8aae4344
PM
58052015-04-21 Pierre Muller <muller@sourceware.org>
5806
5807 PR pascal/17815
5808 p-exp.y (yylex): Reorganize code to return the matched pattern
5809 for a field of this.
5810
819843c7
GB
58112015-04-21 Gary Benson <gbenson@redhat.com>
5812
5813 * common/fileio.h (fileio_to_host_openflags): New declaration.
5814 * common/fileio.c (fcntl.h): New include.
5815 (fileio_to_host_openflags): New function, factored out from...
5816 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
5817 Single use updated.
5818
0bca7f99
KB
58192015-04-21 Kevin Buettner <kevinb@redhat.com>
5820
5821 * rl78-tdep.c (RL78_SP_ADDR): Define.
5822 (opc_reg_to_gdb_regnum): New static function.
5823 (rl78_analyze_prologue): Recognize instructions forming slightly
5824 more interesting prologues.
5825
e771e4be
PMR
58262015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
5827
5828 Revert:
5829 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
5830 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
5831 TYPE_CODE_REF types so that they are not considered as dynamic
5832 depending on the referenced type.
5833 (resolve_dynamic_type_internal): Likewise.
5834
ee715b5a
PMR
58352015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
5836
5837 Revert:
5838 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
5839 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
5840 "top_level" parameter.
5841 (resolve_dynamic_type_internal): Remove the unused "top_level"
5842 parameter. Update call to is_dynamic_type_internal.
5843 (is_dynamic_type): Update call to is_dynamic_type_internal.
5844 (resolve_dynamic_range): Update call to
5845 resolve_dynamic_type_internal.
5846 (resolve_dynamic_union): Likewise.
5847 (resolve_dynamic_struct): Likewise.
5848 (resolve_dynamic_type): Likewise.
5849
e31d7699
GKB
58502015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
5851
5852 * breakpoint.c (update_dprintf_command_list): Remove duplicated
5853 xmalloc.
5854
d214e5e7
TS
58552015-04-20 Thomas Schwinge <thomas@codesourcery.com>
5856
110f9112
TS
5857 * reply_mig_hack.awk: Robustify parsing.
5858
d214e5e7
TS
5859 * reply_mig_hack.awk: Don't bother to declare an intermediate
5860 function pointer variable.
5861
8f61baf8
DE
58622015-04-17 Doug Evans <dje@google.com>
5863
5864 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
5865 to "exec_displacement" to avoid confusion with inner use of the name.
5866
dbbf180a
YQ
58672015-04-17 Pedro Alves <palves@redhat.com>
5868
5869 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
5870 if HW point of TYPE isn't supported.
5871
059790a0
YQ
58722015-04-17 Yao Qi <yao.qi@linaro.org>
5873 Pedro Alves <palves@redhat.com>
5874
5875 * target.h (target_can_use_hardware_watchpoint): Update comments.
5876 Remove trailing ";".
5877
1b6e6f5c
GB
58782015-04-17 Gary Benson <gbenson@redhat.com>
5879
5880 * remote.c (remote_add_inferior): New argument try_open_exec.
5881 If nonzero, attempt to open the inferior's executable file as
5882 the main executable if no main executable is open already.
5883 All callers updated.
5884 * NEWS: Mention that GDB now supports automatic location and
5885 retrieval of executable + files from remote targets.
5886
c78fa86a
GB
58872015-04-17 Gary Benson <gbenson@redhat.com>
5888
5889 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
5890 * remote.c (PACKET_qXfer_exec_file): Likewise.
5891 (remote_protocol_features): Register the
5892 "qXfer:exec-file:read" feature.
5893 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
5894 (remote_pid_to_exec_file): New function.
5895 (init_remote_ops): Initialize to_pid_to_exec_file.
5896 (_initialize_remote): Register new "set/show remote
5897 pid-to-exec-file-packet" command.
5898 * NEWS: Announce new qXfer:exec-file:read packet.
5899
e0d86d2c
GB
59002015-04-17 Gary Benson <gbenson@redhat.com>
5901
5902 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
5903 New declaration.
5904 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
5905 New function, factored out from...
5906 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
5907
a9a5a3d1
GB
59082015-04-17 Gary Benson <gbenson@redhat.com>
5909
5910 * exec.c (solist.h): New include.
5911 (exec_file_locate_attach): Prefix absolute executable
5912 paths with gdb_sysroot if set.
5913 * NEWS: Mention that executable paths may be prepended
5914 with sysroot.
5915
af1900b0
GB
59162015-04-17 Gary Benson <gbenson@redhat.com>
5917
5918 * solist.h (exec_file_find): New declaration.
5919 * solib.c (solib_find_1): New function, factored out from...
5920 (solib_find): ...here.
5921 (exec_file_find): New function.
5922
a10de604
GB
59232015-04-17 Gary Benson <gbenson@redhat.com>
5924
5925 * gdbcore.h (exec_file_locate_attach): New declaration.
5926 * exec.c (exec_file_locate_attach): New function, factored
5927 out from...
5928 * infcmd.c (attach_command_post_wait): ...here.
5929
92209ddf
MF
59302015-04-17 Mike Frysinger <vapier@gentoo.org>
5931
5932 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
5933
8550d3b3
YQ
59342015-04-16 Yao Qi <yao.qi@linaro.org>
5935
5936 * infrun.c (maybe_software_singlestep): Declare.
5937 (displaced_step_fixup): Call maybe_software_singlestep.
5938
30b3dd9d
DE
59392015-04-15 Doug Evans <dje@google.com>
5940
5941 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
5942
61d96d7e
DE
59432015-04-15 Doug Evans <dje@google.com>
5944
5945 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
5946
40d2f8d6
SM
59472015-04-15 Simon Marchi <simon.marchi@ericsson.com>
5948
5949 * python/lib/gdb/command/unwinders.py: Add parentheses.
5950
6bbbba9b
YQ
59512015-04-15 Yao Qi <yao.qi@linaro.org>
5952
5953 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
5954
2bb2dcab
YQ
59552015-04-15 Yao Qi <yao.qi@linaro.org>
5956
5957 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
5958
41f071ef
YQ
59592015-04-15 Yao Qi <yao.qi@linaro.org>
5960
5961 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5962 dsc->insn_size instead of 4.
5963
326a5c7e
GB
59642015-04-14 Gary Benson <gbenson@redhat.com>
5965
5966 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
5967 * minidebug.c (lzma_stat): Likewise.
5968 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
5969 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
5970
dd177e81
SS
59712015-04-13 Stan Shebs <stanshebs@google.com>
5972
5973 * MAINTAINERS: Update my email address.
5974
97de3545
JB
59752015-04-13 John Baldwin <jhb@FreeBSD.org>
5976
5977 * amd64-tdep.c (amd64_target_description): New function.
5978 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
5979 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
5980 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
5981 x86 extended save area.
5982 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
5983 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
5984 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
5985 (_initialize_amd64fbsd_nat): Set "to_read_description" to
5986 "amd64fbsd_read_description".
5987 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
5988 (amd64fbsd_supply_xstateregset): New function.
5989 (amd64fbsd_collect_xstateregset): New function.
5990 Add "amd64fbsd_xstateregset".
5991 (amd64fbsd_iterate_over_regset_sections): New function.
5992 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
5993 "I386_FBSD_XSAVE_XCR0_OFFSET".
5994 Add "iterate_over_regset_sections" gdbarch method.
5995 Add "core_read_description" gdbarch method.
5996 * i386-tdep.c (i386_target_description): New function.
5997 * i386-tdep.h: Export i386_target_description and tdesc_i386.
5998 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
5999 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
6000 x86 extended save area.
6001 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
6002 * i386bsd-nat.h: Export i386bsd_xsave_len.
6003 * i386fbsd-nat.c (i386fbsd_read_description): New function.
6004 (_initialize_i386fbsd_nat): Set "to_read_description" to
6005 "i386fbsd_read_description".
6006 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
6007 (i386fbsd_core_read_description): New function.
6008 (i386fbsd_supply_xstateregset): New function.
6009 (i386fbsd_collect_xstateregset): New function.
6010 Add "i386fbsd_xstateregset".
6011 (i386fbsd_iterate_over_regset_sections): New function.
6012 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
6013 "I386_FBSD_XSAVE_XCR0_OFFSET".
6014 Add "iterate_over_regset_sections" gdbarch method.
6015 Add "core_read_description" gdbarch method.
6016 * i386fbsd-tdep.h: New file.
6017
4f45d445
JK
60182015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6019
6020 * NEWS (Changes since GDB 7.9): Add removed -xdb.
6021 * breakpoint.c (command_line_is_silent): Remove xdb_commands
6022 conditional.
6023 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
6024 and lb.
6025 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
6026 va.
6027 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
6028 conditional.
6029 * defs.h (xdb_commands): Remove declaration.
6030 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
6031 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
6032 * infcmd.c (run_no_args_command, go_command): Remove.
6033 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
6034 * infrun.c (xdb_handle_command): Remove.
6035 (_initialize_infrun): Remove xdb_commands for lz and z.
6036 * main.c (xdb_commands): Remove variable.
6037 (captured_main): Remove "xdb" from long_options.
6038 (print_gdb_help): Remove --xdb from help.
6039 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
6040 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
6041 * stack.c (backtrace_full_command, args_plus_locals_info)
6042 (current_frame_command): Remove.
6043 (_initialize_stack): Remove xdb_commands for t, T and l.
6044 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
6045 * thread.c (_initialize_thread): Remove xdb_commands condition.
6046 * tui/tui-layout.c (tui_toggle_layout_command)
6047 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
6048 (_initialize_tui_layout): Remove xdb_commands for td and ts.
6049 * tui/tui-regs.c (tui_scroll_regs_forward_command)
6050 (tui_scroll_regs_backward_command): Remove.
6051 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
6052 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
6053 (_initialize_tui_win): Remove xdb_commands for U and w.
6054 * utils.c (pagination_on_command, pagination_off_command): Remove.
6055 (initialize_utils): Remove xdb_commands for am and sm.
6056
cb71640d
PA
60572015-04-10 Pedro Alves <palves@redhat.com>
6058
6059 * infrun.c (displaced_step_fixup): Switch to the event ptid
6060 earlier. If the thread stopped for a watchpoint and the
6061 target/arch has non-continuable watchpoints, cancel the displaced
6062 step.
6063 (resume): Don't start a displaced step if in-line step-over info
6064 is valid.
6065
8f572e5c
PA
60662015-04-10 Pedro Alves <palves@redhat.com>
6067
6068 * infrun.c (displaced_step_in_progress): New function.
6069 (do_target_resume): Advise target to report all signals if
6070 displaced stepping.
6071
8d707a12
PA
60722015-04-10 Pedro Alves <palves@redhat.com>
6073
6074 PR gdb/18216
6075 * infrun.c (process_event_stop_test): Don't assume a step-resume
6076 is set if tp->stepped_breakpoint is true.
6077
ef713951
YQ
60782015-04-10 Yao Qi <yao.qi@linaro.org>
6079
6080 * arm-tdep.c (install_alu_reg): Update comment.
6081 (thumb_copy_alu_reg): Remove local variable rn. Update
6082 debugging message. Use r2 instead of r1 in the modified
6083 instruction.
6084
906d60cf
PA
60852015-04-10 Pedro Alves <palves@redhat.com>
6086
6087 PR gdb/13858
6088 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
6089 linux_displaced_step_location as gdbarch_displaced_step_location
6090 hook.
6091 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6092 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6093 * linux-tdep.c (linux_displaced_step_location): New function,
6094 based on ppc_linux_displaced_step_location.
6095 * linux-tdep.h (linux_displaced_step_location): New declaration.
6096 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
6097 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
6098 Delete.
6099 (ppc_linux_init_abi): Install linux_displaced_step_location as
6100 gdbarch_displaced_step_location hook, even without Cell/B.E..
6101 (_initialize_ppc_linux_tdep): Don't install
6102 ppc_linux_inferior_created as inferior_created observer.
6103 * s390-linux-tdep.c (s390_gdbarch_init): Install
6104 linux_displaced_step_location as gdbarch_displaced_step_location
6105 hook.
6106
7823a941
GB
61072015-04-09 Gary Benson <gbenson@redhat.com>
6108
6109 * common/common-remote-fileio.h: Rename to...
6110 * common/fileio.h: ...this. Update all references.
6111 (remote_fileio_to_fio_error): Rename to...
6112 (host_to_fileio_error): ...this.
6113 (remote_fileio_to_be): Rename to...
6114 (host_to_bigendian): ...this. Update all callers.
6115 (remote_fileio_to_fio_uint): Rename to...
6116 (host_to_fileio_uint): ...this. Update all callers.
6117 (remote_fileio_to_fio_time): Rename to...
6118 (host_to_fileio_time): ...this. Update all callers.
6119 (remote_fileio_to_fio_stat): Rename to...
6120 (host_to_fileio_stat): ...this.
6121 Update all references.
6122 * common/common-remote-fileio.c: Rename to...
6123 * common/fileio.c: ...this. Update all references.
6124 (remote_fileio_to_fio_error): Rename to...
6125 (host_to_fileio_error): ...this. Update all callers.
6126 (remote_fileio_mode_to_target): Rename to...
6127 (fileio_mode_pack): ...this. Update all callers.
6128 (remote_fileio_to_fio_mode): Rename to...
6129 (host_to_fileio_mode): ...this. Update all callers.
6130 (remote_fileio_to_fio_ulong): Rename to...
6131 (host_to_fileio_ulong): ...this. Update all callers.
6132 (remote_fileio_to_fio_stat): Rename to...
6133 (host_to_fileio_stat): ...this. Update all callers.
6134
f2983cc3
AW
61352015-04-09 Andy Wingo <wingo@igalia.com>
6136
6137 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
6138 (frame_functions): Bind gdbscm_frame_read_register to
6139 frame-read-register.
6140 * guile/lib/gdb.scm (frame-read-register): Export.
6141
b88bb450
GB
61422015-04-09 Gary Benson <gbenson@redhat.com>
6143
6144 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
6145 New declaration.
6146 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
6147 New function, factored out the named functions below.
6148 * inf-child.c (gdb/fileio.h): Remove include.
6149 (common-remote-fileio.h): New include.
6150 (inf_child_errno_to_fileio_error): Remove function. Update
6151 all callers to use remote_fileio_to_fio_error.
6152 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
6153
2f2680f3
AW
61542015-04-09 Andy Wingo <wingo@igalia.com>
6155
6156 * MAINTAINERS (Write After Approval): Add Andy Wingo.
6157
5a2d4533
L
61582015-04-09 H.J. Lu <hongjiu.lu@intel.com>
6159
6160 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6161 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6162 * configure: Regenerated.
6163
421693b0
PA
61642015-04-09 Pedro Alves <palves@redhat.com>
6165
6166 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
6167 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
6168 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
6169 * gnulib/import/Makefile.am: Update.
6170 * gnulib/import/Makefile.in: Update.
6171 * gnulib/import/m4/gnulib-cache.m4: Update.
6172 * gnulib/import/m4/gnulib-comp.m4: Update.
6173 * gnulib/import/m4/strtok_r.m4: New file.
6174 * gnulib/import/strtok_r.c: New file.
6175
f543dc83
PA
61762015-04-09 Pedro Alves <palves@redhat.com>
6177
6178 * gnulib/update-gnulib.sh (aclocal version check): Filter out
6179 "called too early to check prototype".
6180
6d62641c
SDJ
61812015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
6182
6183 PR python/16699
6184 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6185 use a caching mechanism. Adjust comments and code to reflect
6186 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6187 (cmdpy_completer_handle_brkchars): Adjust call to
6188 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
6189 (cmdpy_completer): Likewise.
6190
85558555
YQ
61912015-04-08 Yao Qi <yao.qi@linaro.org>
6192
6193 * spu-tdep.c (spu_gdbarch_init): Don't call
6194 set_gdbarch_cannot_step_breakpoint.
6195
d249a14a
SDJ
61962015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
6197
6198 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6199
8a06aea7
PA
62002015-04-07 Pedro Alves <palves@redhat.com>
6201
6202 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6203 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6204 (delete_exited_threads): New declaration.
6205 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6206 * linux-nat.c (linux_nat_update_thread_list): New function.
6207 (linux_nat_add_target): Install it.
6208 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6209 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6210 (delete_exited_threads): New function.
6211
d9b67d9f
PA
62122015-04-07 Pedro Alves <pedro@codesourcery.com>
6213
6214 * infrun.c (resume) <displaced stepping debug output>: Get the
6215 leader thread's regcache, not resume_ptid's.
6216
2c26b84f
DE
62172015-04-06 Doug Evans <xdje42@gmail.com>
6218
6219 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6220 VAR_DOMAIN.
6221 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6222 Include symbol domain in debugging output.
6223
7a85168d
PA
62242015-04-06 Pedro Alves <palves@redhat.com>
6225 Bernd Edlinger <bernd.edlinger@hotmail.de>
6226
6227 * configure.ac: Remove the mingw32-specific stub-termcap.o
6228 fallback, and instead fallback to the stub termcap on all hosts.
6229 * configure: Regenerate.
6230 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
6231 symbols.
6232
25755e2b
PMR
62332015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6234
6235 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6236 "top_level" parameter.
6237 (resolve_dynamic_type_internal): Remove the unused "top_level"
6238 parameter. Update call to is_dynamic_type_internal.
6239 (is_dynamic_type): Update call to is_dynamic_type_internal.
6240 (resolve_dynamic_range): Update call to
6241 resolve_dynamic_type_internal.
6242 (resolve_dynamic_union): Likewise.
6243 (resolve_dynamic_struct): Likewise.
6244 (resolve_dynamic_type): Likewise.
6245
961f4160
PMR
62462015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6247
6248 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6249 TYPE_CODE_REF types so that they are not considered as dynamic
6250 depending on the referenced type.
6251 (resolve_dynamic_type_internal): Likewise.
6252
39f3de7c
L
62532015-04-02 H.J. Lu <hongjiu.lu@intel.com>
6254
6255 * Makefile.in (top_srcdir): New.
6256 * configure: Regenerated.
6257
599bd15c
GB
62582015-04-02 Gary Benson <gbenson@redhat.com>
6259
6260 * NEWS: Announce the new default sysroot of "target:".
6261
fed040c6
GB
62622015-04-02 Gary Benson <gbenson@redhat.com>
6263
6264 * main.c (captured_main): Set gdb_sysroot to "target:"
6265 if not otherwise set.
6266
64c0b5de
GB
62672015-04-02 Gary Benson <gbenson@redhat.com>
6268
6269 * exec.c (exec_file_attach): Support "target:" filenames.
6270
b57fbfba
GB
62712015-04-02 Gary Benson <gbenson@redhat.com>
6272
6273 * solib.c (solib_find): Strip "target:" prefix from sysroot
6274 if accessing local files.
6275
97a41605
GB
62762015-04-02 Gary Benson <gbenson@redhat.com>
6277
6278 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
6279 checks and error messages.
6280
2938e6cf
GB
62812015-04-02 Gary Benson <gbenson@redhat.com>
6282
6283 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
6284 (remote_filename_p): Remove declaration.
6285 (remote_bfd_open): Likewise.
6286 * remote.c (remote_bfd_iovec_open): Remove function.
6287 (remote_bfd_iovec_close): Likewise.
6288 (remote_bfd_iovec_pread): Likewise.
6289 (remote_bfd_iovec_stat): Likewise.
6290 (remote_filename_p): Likewise.
6291 (remote_bfd_open): Likewise.
6292 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
6293 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
6294 (gdb_bfd_open_maybe_remote): Remove function.
6295 (symfile_bfd_open): Replace remote filename check with
6296 target filename check.
6297 (reread_symbols): Use gdb_bfd_open.
6298 * build-id.c (gdbcore.h): New include.
6299 (build_id_to_debug_bfd): Use gdb_bfd_open.
6300 * infcmd.c (attach_command_post_wait): Remove remote filename
6301 check.
6302 * solib.c (solib_find): Replace remote-specific handling with
6303 target-specific handling. Update comments where necessary.
6304 (solib_bfd_open): Replace remote-specific handling with
6305 target-specific handling.
6306 (gdb_sysroot_changed): New function.
6307 (_initialize_solib): Call the above when gdb_sysroot changes.
6308 * windows-tdep.c (gdbcore.h): New include.
6309 (windows_xfer_shared_library): Use gdb_bfd_open.
6310
f08e97fe
GB
63112015-04-02 Gary Benson <gbenson@redhat.com>
6312
6313 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
6314 (is_target_filename): New declaration.
6315 (gdb_bfd_has_target_filename): Likewise.
6316 (gdb_bfd_open): Update documentation comment.
6317 * gdb_bfd.c (target.h): New include.
6318 (gdb/fileio.h): Likewise.
6319 (is_target_filename): New function.
6320 (gdb_bfd_has_target_filename): Likewise.
6321 (fileio_errno_to_host): Likewise.
6322 (gdb_bfd_iovec_fileio_open): Likewise.
6323 (gdb_bfd_iovec_fileio_pread): Likewise.
6324 (gdb_bfd_iovec_fileio_close): Likewise.
6325 (gdb_bfd_iovec_fileio_fstat): Likewise.
6326 (gdb_bfd_open): Use target fileio to access paths prefixed
6327 with "target:" where necessary.
6328
4bd7dc42
GB
63292015-04-02 Gary Benson <gbenson@redhat.com>
6330
6331 * target.h (struct target_ops) <to_filesystem_is_local>:
6332 New field.
6333 (target_filesystem_is_local): New macro.
6334 * target-delegates.c: Regenerate.
6335 * remote.c (remote_filesystem_is_local): New function.
6336 (init_remote_ops): Initialize to_filesystem_is_local.
6337
9b15c1f0
GB
63382015-04-02 Gary Benson <gbenson@redhat.com>
6339
6340 * target.h (struct target_ops) <to_fileio_fstat>: New field.
6341 (target_fileio_fstat): New declaration.
6342 * target.c (target_fileio_fstat): New function.
6343 * inf-child.c (inf_child_fileio_fstat): Likewise.
6344 (inf_child_target): Initialize to_fileio_fstat.
6345 * remote.c (init_remote_ops): Likewise.
6346
d11916aa
SS
63472015-04-01 Sasha Smundak <asmundak@google.com>
6348
6349 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
6350 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
6351 (py-unwind.o): New recipe.
6352 * NEWS: mention Python frame unwinding.
6353 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
6354 gdb/unwinder.py and gdb/command/unwinder.py
6355 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
6356 list.
6357 (execute_unwinders): New function.
6358 * python/lib/gdb/command/unwinders.py: New file.
6359 * python/lib/gdb/unwinder.py: New file.
6360 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
6361 (objfpy_dealloc): Decrement frame_unwinders reference count.
6362 (objfpy_initialize): Create frame_unwinders list.
6363 (objfpy_get_frame_unwinders): New function.
6364 (objfpy_set_frame_unwinders): Ditto.
6365 (objfile_getset): Add frame_unwinders attribute to Objfile.
6366 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
6367 (pspy_dealloc): Decrement frame_unwinders reference count.
6368 (pspy_initialize): Create frame_unwinders list.
6369 (pspy_get_frame_unwinders): New function.
6370 (pspy_set_frame_unwinders): Ditto.
6371 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
6372 * python/py-unwind.c: New file.
6373 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
6374 (objpy_get_frame_unwinders): New prototype.
6375 (gdbpy_initialize_unwind): New prototype.
6376 * python/python.c (gdbpy_apply_type_printers): Call
6377 gdbpy_initialize_unwind.
6378
6b403daa
PA
63792015-04-01 Pedro Alves <palves@redhat.com>
6380
6381 * infrun.c (resume): Check currently_stepping after clearing
6382 stepped_breakpoint, not before.
6383
1176ecec
PA
63842015-04-01 Pedro Alves <palves@redhat.com>
6385
6386 * infrun.c (print_target_wait_results): Print all the ptid
6387 elements.
6388
de1fe8c8
PA
63892015-04-01 Pedro Alves <palves@redhat.com>
6390
6391 * infrun.c (keep_going): Also discard cleanups if inserting
6392 breakpoints fails.
6393
e6f5c25b
PA
63942015-04-01 Pedro Alves <palves@redhat.com>
6395
6396 * infrun.c (wait_for_inferior): Install the
6397 finish_thread_state_cleanup cleanup across the whole function, not
6398 just around handle_inferior_event.
6399
1ac806b8
PA
64002015-04-01 Pedro Alves <palves@redhat.com>
6401
6402 * infrun.c (resume) <step past permanent breakpoint>: Use
6403 do_target_resume.
6404
2ee52aa4
PA
64052015-04-01 Pedro Alves <palves@redhat.com>
6406
6407 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
6408
5445da1b
PMR
64092015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
6410
6411 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
6412
4eec2deb
PA
64132015-04-01 Pedro Alves <palves@redhat.com>
6414
6415 * linux-thread-db.c (record_thread): Readd the thread to gdb's
6416 list if it was marked exited.
6417
afa59b79
L
64182015-04-01 H.J. Lu <hongjiu.lu@intel.com>
6419
6420 * configure: Regenerated.
6421
df8411da
SDJ
64222015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6423 Jan Kratochvil <jan.kratochvil@redhat.com>
6424 Oleg Nesterov <oleg@redhat.com>
6425
6426 PR corefiles/16092
6427 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
6428 New enum identifying the various options of the coredump_filter
6429 file.
6430 (struct smaps_vmflags): New struct.
6431 (use_coredump_filter): New variable.
6432 (decode_vmflags): New function.
6433 (mapping_is_anonymous_p): Likewise.
6434 (dump_mapping_p): Likewise.
6435 (linux_find_memory_regions_full): New variables
6436 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
6437 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
6438 parsing of its information. Implement memory mapping filtering
6439 based on its contents.
6440 (show_use_coredump_filter): New function.
6441 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
6442 * NEWS: Mention the possibility of using the
6443 '/proc/PID/coredump_filter' file when generating a corefile.
6444 Mention new command 'set use-coredump-filter'.
6445
416f679e
SDJ
64462015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6447
6448 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
6449 read_memory_unsigned_integer.
6450
711a72d3
L
64512015-03-31 H.J. Lu <hongjiu.lu@intel.com>
6452
6453 * Makefile.in (ZLIB): New.
6454 (ZLIBINC): Likewise.
6455 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
6456 (CLIBS): Add $(ZLIB).
6457 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
6458 Add -lz to LIBS.
6459 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
6460 * top.c (print_gdb_configuration): Remove --with-zlib and
6461 --without-zlib.
6462 * config.in: Regenerated.
6463 * configure: Likewise.
6464
d33279b3
AT
64652015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6466
6467 * NEWS: Mention info os cpus support.
6468 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
6469 (struct osdata_type): Add cpus entry, reorder the entries in
6470 alphabetical order.
6471
71b30f27
MK
64722015-03-31 Matthias Klose <doko@ubuntu.com>
6473
6474 * compile/compile.c (compile_to_object): Allow triplets with or
6475 without vendor set.
6476
13ce9222
DE
64772015-03-30 Doug Evans <dje@google.com>
6478
6479 PR c++/18141
6480 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
6481 klass in VAR_DOMAIN.
6482
20f796c9
GB
64832015-03-30 Gary Benson <gbenson@redhat.com>
6484
6485 * remote.c (remote_mourn_1): Remove function. Update all callers
6486 to use remote_mourn.
6487 (extended_remote_mourn_1): Remove function. Update all callers
6488 to use extended_remote_mourn.
6489 (extended_remote_attach_1): Remove function. Update all callers
6490 to use extended_remote_attach.
6491
49d45b20
JB
64922015-03-28 James Bowman <james.bowman@ftdichip.com>
6493
6494 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
6495 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
6496 (ALLDEPFILES): Add ft32-tdep.c.
6497 * configure.tgt: Add FT32 entry.
6498 * ft32-tdep.c: New file, FT32 target-dependent code.
6499 * ft32-tdep.h: New file, FT32 target-dependent code.
6500
1c4ff080
JK
65012015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6502
6503 Revert:
6504 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6505 Code cleanup.
6506 * printcmd.c (print_command_1): Move expr variable scope.
6507
79498702
JB
65082015-03-27 Joel Brobecker <brobecker@adacore.com>
6509
6510 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
6511
ce9c0ca1
AK
65122015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
6513
6514 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
6515 sections.
6516
429e1e81
JB
65172015-03-26 Joel Brobecker <brobecker@adacore.com>
6518
6519 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
6520 exception raised while parsing the probe arguments.
6521 Force parsing to be done using the C language parser.
6522 * expression.h (parse_expression_with_language): Declare.
6523 * parse.c (parse_expression_with_language): New function.
6524
4593441b
JT
65252015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
6526
6527 * MAINTAINERS (Write After Approval): Add "Jon Turney".
6528
ff908ebf
AW
65292015-03-26 Andy Wingo <wingo@igalia.com>
6530
6531 PR symtab/18148
6532 * dwarf2read.c (struct partial_die_info): Add has_const_value
6533 member.
6534 (add_partial_symbol): Don't punt on symbols that have const_value
6535 attributes.
6536 (read_partial_die): Detect DW_AT_const_value.
6537
f30d5c78
JK
65382015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6539
6540 Code cleanup.
6541 * printcmd.c (print_command_1): Move expr variable scope.
6542
8d89f51a
JK
65432015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6544
6545 Code cleanup.
6546 * printcmd.c (validate_format): Make the parameter cmdname const.
6547
0b736949
DB
65482015-03-26 Don Breazeal <donb@codesourcery.com>
6549
6550 * remote.c (_initialize_remote): Update comment.
6551
20d35291
PA
65522015-03-26 Pedro Alves <palves@redhat.com>
6553 Jon TURNEY <jon.turney@dronecode.org.uk>
6554
6555 * coffread.c (coff_symfile_read): When constructing the name of an
6556 import stub symbol from import symbol for amd64, only skip the
6557 char after _imp_ if the target is underscored (like i386) and the
6558 char is indeed the target's leading char.
6559
6a3753b3
PA
65602015-03-25 Pedro Alves <palves@redhat.com>
6561
6562 * target.h <to_async>: Replace 'callback' and 'context' parameters
6563 with boolean 'enable' parameter.
6564 (target_async): Replace CALLBACK and CONTEXT parameters with
6565 boolean ENABLE parameter.
6566 * inf-loop.c (inferior_event_handler): Adjust.
6567 * linux-nat.c (linux_nat_attach, linux_nat_resume)
6568 (linux_nat_resume): Adjust.
6569 (async_client_callback, async_client_context): Delete.
6570 (handle_target_event): Call inferior_event_handler directly.
6571 (linux_nat_async): Replace 'callback' and 'context' parameters
6572 with boolean 'enable' parameter. Adjust. Remove references to
6573 async_client_callback and async_client_context.
6574 (linux_nat_close): Adjust.
6575 * record-btrace.c (record_btrace_async): Replace 'callback' and
6576 'context' parameters with boolean 'enable' parameter. Adjust.
6577 (record_btrace_resume): Adjust.
6578 * record-full.c (record_full_async): Replace 'callback' and
6579 'context' parameters with boolean 'enable' parameter. Adjust.
6580 (record_full_resume, record_full_core_resume): Adjust.
6581 * remote.c (struct remote_state) <async_client_callback,
6582 async_client_context>: Delete fields.
6583 (remote_start_remote, extended_remote_attach_1, remote_resume)
6584 (extended_remote_create_inferior): Adjust.
6585 (remote_async_serial_handler): Call inferior_event_handler
6586 directly.
6587 (remote_async): Replace 'callback' and 'context' parameters with
6588 boolean 'enable' parameter. Adjust.
6589 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
6590 Adjust.
6591 * target-delegates.c: Regenerate.
6592
1c4b552b
GB
65932015-03-25 Gary Benson <gbenson@redhat.com>
6594 Pedro Alves <palves@redhat.com>
6595
6596 * target.c (fileio_ft_t): New typedef, define object vector.
6597 (fileio_fhandles): New static variable.
6598 (is_closed_fileio_fh): New macro.
6599 (lowest_closed_fd): New static variable.
6600 (acquire_fileio_fd): New function.
6601 (release_fileio_fd): Likewise.
6602 (fileio_fd_to_fh): New macro.
6603 (target_fileio_open): Wrap the file descriptor on success.
6604 (target_fileio_pwrite): Updated to use wrapped file descriptor.
6605 (target_fileio_pread): Likewise.
6606 (target_fileio_close): Likewise.
6607
a25d8bf9
PA
66082015-03-24 Pedro Alves <palves@redhat.com>
6609
6610 * thread.c (thread_apply_all_command): Take exited threads into
6611 account.
6612
44a1ee51
PA
66132015-03-24 Pedro Alves <palves@redhat.com>
6614
6615 * infrun.c (resume, proceed): Mention
6616 switch_back_to_stepped_thread, not switch_back_to_stepping.
6617
f3263aa4
PA
66182015-03-24 Pedro Alves <palves@redhat.com>
6619
6620 * infrun.c (user_visible_resume_ptid): Rewrite going from
6621 most-locked to unlocked instead of the opposite. Move comment ...
6622 * infrun.h (user_visible_resume_ptid): ... here.
6623
2bf6fb9d
PA
66242015-03-24 Pedro Alves <palves@redhat.com>
6625
6626 * linux-nat.c (linux_nat_resume): Output debug logs before trying
6627 to resume the event lwp. Use the lwp's ptid instead of the passed
6628 in (maybe wildcard) ptid.
6629 (stop_wait_callback): Tweak debug log output.
6630 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
6631 TRAP_TRACE.
6632 (linux_nat_filter_event): In debug output, distinguish a
6633 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
6634 before trying to resume the lwp.
6635
283a9958
JB
66362015-03-24 Joel Brobecker <brobecker@adacore.com>
6637
6638 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
6639 pointer indirection.
6640 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
6641 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
6642
93a8e227
JB
66432015-03-24 Joel Brobecker <brobecker@adacore.com>
6644
6645 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
6646 Renames DYN_ATTR_DATA_LOCATION.
6647 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
6648 DYN_ATTR_DATA_LOCATION.
6649 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
6650 instead of DYN_ATTR_DATA_LOCATION.
6651
64ce06e4
PA
66522015-03-24 Pedro Alves <palves@redhat.com>
6653
6654 * breakpoint.c (until_break_command): Adjust call to proceed.
6655 * gdbthread.h (struct thread_control_state) <stepping_command>:
6656 New field.
6657 * infcall.c (run_inferior_call): Adjust call to proceed.
6658 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
6659 Adjust calls to proceed.
6660 (set_step_frame): Set the current thread's step_start_function
6661 here.
6662 (step_once): Adjust calls to proceed.
6663 (jump_command, signal_command, until_next_command)
6664 (finish_backward, finish_forward, proceed_after_attach_callback)
6665 (attach_command_post_wait): Adjust calls to proceed.
6666 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
6667 (do_target_resume): New function, factored out from ...
6668 (resume): ... here. Remove 'step' parameter. Instead, check
6669 currently_stepping to determine whether the thread should be
6670 single-stepped.
6671 (proceed): Remove 'step' parameter and don't set the thread's
6672 step_start_function here. Adjust call to 'resume'.
6673 (handle_inferior_event): Adjust calls to 'resume'.
6674 (switch_back_to_stepped_thread): Use do_target_resume instead of
6675 'resume'.
6676 (keep_going): Adjust calls to 'resume'.
6677 * infrun.h (proceed): Remove 'step' parameter.
6678 (resume): Likewise.
6679 * windows-nat.c (do_initial_windows_stuff): Adjust call to
6680 'resume'.
6681 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
6682
856e7dd6
PA
66832015-03-24 Pedro Alves <palves@redhat.com>
6684
6685 * gdbthread.h (struct thread_control_state) <stepping_command>:
6686 New field.
6687 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
6688 the thread's stepping_command field.
6689 * infrun.c (resume): Check the thread's stepping_command flag to
6690 determine which threads should be resumed. Rename 'entry_step'
6691 local to user_step.
6692 (clear_proceed_status_thread): Clear 'stepping_command'.
6693 (schedlock_applies): Change parameter type to struct thread_info
6694 pointer. Adjust.
6695 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
6696 (switch_back_to_stepped_thread): Adjust calls to
6697 'schedlock_applies'.
6698 (_initialize_infrun): Adjust "set scheduler-locking step" help.
6699
885eeb5b
PA
67002015-03-24 Pedro Alves <palves@redhat.com>
6701
6702 * infrun.c (step_start_function): Delete and ...
6703 * gdbthread.h (struct thread_control_state) <step_start_function>:
6704 ... now a field here.
6705 * infrun.c (clear_proceed_status_thread): Clear the thread's
6706 step_start_function.
6707 (proceed, process_event_stop_test, print_stop_event): Adjust.
6708
3333f03a
PA
67092015-03-24 Pedro Alves <palves@redhat.com>
6710
6711 * infrun.c (proceed): No longer handle negative step.
6712
369f6daa
GB
67132015-03-24 Gary Benson <gbenson@redhat.com>
6714
6715 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
6716 (x86_linux_prepare_to_resume): Likewise.
6717 * x86-linux-nat.c (x86_linux_new_thread):
6718 Moved to nat/x86-linux.c.
6719 (x86_linux_prepare_to_resume): Likewise.
6720 * nat/x86-linux.c (x86_linux_new_thread): New function.
6721 (x86_linux_prepare_to_resume): Likewise.
6722
8e5d4070
GB
67232015-03-24 Gary Benson <gbenson@redhat.com>
6724
6725 * nat/x86-linux-dregs.h: New file.
6726 * nat/x86-linux-dregs.c: Likewise.
6727 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
6728 (x86-linux-dregs.o): New rule.
6729 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
6730 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6731 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
6732 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6733 (x86_linux_dr_get): Likewise.
6734 (x86_linux_dr_set): Likewise.
6735 (x86_linux_dr_get_addr): Likewise.
6736 (x86_linux_dr_get_control): Likewise.
6737 (x86_linux_dr_get_status): Likewise.
6738 (update_debug_registers_callback): Likewise.
6739 (x86_linux_dr_set_control): Likewise.
6740 (x86_linux_dr_set_addr): Likewise.
6741 (x86_linux_update_debug_registers): Likewise.
6742
2b95d440
GB
67432015-03-24 Gary Benson <gbenson@redhat.com>
6744
6745 * x86-linux-nat.c (x86_linux_update_debug_registers):
6746 New function, factored out from...
6747 (x86_linux_prepare_to_resume): ...this.
6748
14b0bc68
GB
67492015-03-24 Gary Benson <gbenson@redhat.com>
6750
6751 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
6752 (x86_linux_dr_set): Likewise.
6753 (x86_linux_dr_get_addr): Likewise.
6754 (x86_linux_dr_get_control): Likewise.
6755 (x86_linux_dr_get_status): Likewise.
6756 (update_debug_registers_callback): Likewise.
6757 (x86_linux_dr_set_control): Likewise.
6758 (x86_linux_dr_set_addr): Likewise.
6759 (x86_linux_prepare_to_resume): Likewise.
6760 (x86_linux_new_thread): Likewise.
6761
5dfe6ca8
GB
67622015-03-24 Gary Benson <gbenson@redhat.com>
6763
6764 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
6765 (x86_linux_new_thread): Rename argument.
6766
4b134ca1
GB
67672015-03-24 Gary Benson <gbenson@redhat.com>
6768
6769 * nat/x86-linux.h: New file.
6770 * nat/x86-linux.c: Likewise.
6771 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
6772 (x86-linux.o): New rule.
6773 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
6774 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6775 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
6776 (lwp_set_arch_private_info): New declaration.
6777 (lwp_arch_private_info): Likewise.
6778 * linux-nat.c (lwp_set_arch_private_info): New function.
6779 (lwp_arch_private_info): Likewise.
6780 * x86-linux-nat.c: Include nat/x86-linux.h.
6781 (arch_lwp_info): Removed structure.
6782 (update_debug_registers_callback):
6783 Use lwp_set_debug_registers_changed.
6784 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
6785 and lwp_set_debug_registers_changed.
6786 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
6787
cff068da
GB
67882015-03-24 Gary Benson <gbenson@redhat.com>
6789
6790 * nat/linux-nat.h (ptid_of_lwp): New declaration.
6791 (lwp_is_stopped): Likewise.
6792 (lwp_stop_reason): Likewise.
6793 * linux-nat.c (ptid_of_lwp): New function.
6794 (lwp_is_stopped): Likewise.
6795 (lwp_is_stopped_by_watchpoint): Likewise.
6796 * x86-linux-nat.c (update_debug_registers_callback):
6797 Use lwp_is_stopped.
6798 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6799 lwp_stop_reason.
6800
b2f7c7e8
GB
68012015-03-24 Gary Benson <gbenson@redhat.com>
6802
6803 * linux-nat.h (linux_stop_lwp): Move declaration to...
6804 * nat/linux-nat.h (linux_stop_lwp): New declaration.
6805
6d4ee8c6
GB
68062015-03-24 Gary Benson <gbenson@redhat.com>
6807
6808 * linux-nat.h: Include nat/linux-nat.h.
6809 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
6810 * nat/linux-nat.h (struct lwp_info): New forward declaration.
6811 (iterate_over_lwps_ftype): New typedef.
6812 (iterate_over_lwps): New declaration.
6813 * linux-nat.h (iterate_over_lwps): Update comment. Use
6814 iterate_over_lwps_ftype. Update callback return value check.
6815
70a0bb6b
GB
68162015-03-24 Gary Benson <gbenson@redhat.com>
6817
6818 * x86-nat.h (x86_debug_reg_state): Move declaration to...
6819 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
6820
7b669087
GB
68212015-03-24 Gary Benson <gbenson@redhat.com>
6822
6823 * nat/linux-nat.h (current_lwp_ptid): New declaration.
6824 * linux-nat.c (current_lwp_ptid): New function.
6825 * x86-linux-nat.c: Include nat/linux-nat.h.
6826 (x86_linux_dr_get_addr): Use current_lwp_ptid.
6827 (x86_linux_dr_get_control): Likewise.
6828 (x86_linux_dr_get_status): Likewise.
6829 (x86_linux_dr_set_control): Likewise.
6830 (x86_linux_dr_set_addr): Likewise.
6831
15630549
AT
68322015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
6833
6834 PR breakpoints/16466
6835 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
6836
8a4506c0
JB
68372015-03-23 Joel Brobecker <brobecker@adacore.com>
6838
6839 * ser-mingw.c (ser_windows_setparity): Fix indentation.
6840 * ser-unix.c (hardwire_setparity): Likewise.
6841
236af5e3
YG
68422015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
6843
6844 * NEWS: Mention set/show serial parity command.
6845 * monitor.c (monitor_open): Call serial_setparity.
6846 * remote.c (remote_open_1): Likewise.
6847 * ser-base.c (ser_base_serparity): New function.
6848 * ser-base.h (ser_base_setparity): Add declaration.
6849 * ser-go32.c (dos_ops): Set "setparity" field.
6850 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
6851 state.Parity.
6852 (ser_windows_setparity): New function.
6853 (hardwire_ops): Add ser_windows_setparity.
6854 (tty_ops): Add NULL for setparity field.
6855 (pipe_ops): Add ser_base_setparity.
6856 (tcp_ops): Likewise.
6857 * ser-pipe.c (pipe_ops): Likewise.
6858 * ser-tcp.c (tcp_ops): Likewise.
6859 * ser-unix.c (hardwire_setparity): Add declaration.
6860 (hardwire_raw): Don't reset PARENB flag.
6861 (hardwire_setparity): New function.
6862 (hardwire_ops): Add hardwire_setparity.
6863 * serial.c (serial_setparity): New function.
6864 (serial_parity): New global.
6865 (parity_none, parity_odd, parity_even, parity_enums, parity):
6866 New static globals.
6867 (set_parity): New function.
6868 (_initialize_serial): Add set/show serial parity commands.
6869 * serial.h (GDBPARITY_NONE): Define.
6870 (GDBPARITY_ODD): Define.
6871 (GDBPARITY_EVEN): Define.
6872 (serial_setparity) Add declaration.
6873 (struct serial_ops): Add setparity field.
6874 * target.h (serial_parity): Add declaration.
6875
32b40af9
KS
68762015-03-23 Keith Seitz <keiths@redhat.com>
6877
6878 * linespec.c (linespec_lexer_lex_keyword): Update comment.
6879
693dca06
KS
68802015-03-23 Keith Seitz <keiths@redhat.com>
6881
6882 * breakpoint.c (parse_breakpoint_sals): Use
6883 linespec_lexer_lex_keyword to ascertain if the user specified
6884 a NULL location.
6885 * linespec.c [IF_KEYWORD_INDEX]: Define.
6886 (linespec_lexer_lex_keyword): Export.
6887 (struct ls_parser) <keyword_ok>: Remove.
6888 A keyword is only a keyword if not followed by another keyword.
6889 (linespec_lexer_lex_one): Remove keyword_ok handling.
6890 Add comment explaining why the parsing stream is not advanced
6891 when a keyword is seen.
6892 (parse_linespec): Remove parser->keyword_ok.
6893 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
6894
7e993ebf
KS
68952015-03-23 Keith Seitz <keiths@redhat.com>
6896
6897 PR gdb/18021
6898 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
6899 if we find a static method with DW_AT_vtable_elem_location.
6900
b1a0f704
EZ
69012015-03-21 Eli Zaretskii <eliz@gnu.org>
6902
6903 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
6904 before the second loop, to avoid undefined behavior. Reported by
6905 Anton Blanchard <anton@samba.org>.
6906
d9823cbb
KB
69072015-03-20 Keven Boell <keven.boell@intel.com>
6908
6909 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
6910 data_location usage to linked list.
6911 (resolve_dynamic_type_internal): Adapt data_location to
6912 linked list.
6913 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
6914 (copy_type_recursive, copy_type): Add copy of linked list.
6915 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
6916 (struct dynamic_prop_list): New struct.
6917 * dwarf2read.c (set_die_type): Set data_location data.
6918
2e7bf1d7
PA
69192015-03-20 Pedro Alves <palves@redhat.com>
6920
6921 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
6922 inner block and make it const.
6923 * machoread.c (get_archive_prefix_len): Make "lparen" const.
6924
7a26bd4d
PA
69252015-03-20 Pedro Alves <palves@redhat.com>
6926
6927 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
6928 * breakpoint.h (set_breakpoint_condition): Update declaration.
6929
cd46431b
PA
69302015-03-20 Pedro Alves <palves@redhat.com>
6931
6932 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
6933
e28566f7
PA
69342015-03-20 Pedro Alves <palves@redhat.com>
6935
6936 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
6937
f6fc92f6
PA
69382015-03-20 Pedro Alves <palves@redhat.com>
6939
6940 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
6941
c32ed3ef
PA
69422015-03-20 Pedro Alves <palves@redhat.com>
6943
6944 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
6945 (nto_init_solib_absolute_prefix): Likewise.
6946
53e78085
PA
69472015-03-20 Pedro Alves <palves@redhat.com>
6948
6949 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
6950 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
6951
bc23328c
JK
69522015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6953
6954 * config/djgpp/README: Remove gdb.hp.
6955
e8ffc436
YQ
69562015-03-20 Yao Qi <yao.qi@linaro.org>
6957
6958 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6959 set_gdbarch_cannot_step_breakpoint.
6960
23f238d3
PA
69612015-03-19 Pedro Alves <palves@redhat.com>
6962
6963 * linux-nat.c (linux_resume_one_lwp): Rename to ...
6964 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
6965 instead call perror_with_name.
6966 (check_ptrace_stopped_lwp_gone): New function.
6967 (linux_resume_one_lwp): Reimplement as wrapper around
6968 linux_resume_one_lwp_throw that swallows errors if the LWP is
6969 gone.
6970 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
6971 swallows errors if the LWP is gone. Use
6972 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
6973
eb54c8bf
PA
69742015-03-19 Pedro Alves <palves@redhat.com>
6975
6976 * linux-nat.c (status_callback): Return early if the LWP has no
6977 status pending.
6978
b90fc188
PA
69792015-03-19 Pedro Alves <palves@redhat.com>
6980
6981 * linux-nat.c (select_event_lwp_callback): Update comment to no
6982 longer mention SIGTRAP.
6983
670f82d4
TG
69842015-03-18 Tristan Gingold <gingold@adacore.com>
6985
72f4393d
L
6986 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
6987 redirection code to ...
6988 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
6989 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 6990
464b0089
GB
69912015-03-18 Gary Benson <gbenson@redhat.com>
6992
6993 (remote_protocol_features): Remove the "vFile:fstat" feature.
6994 (remote_hostio_fstat): Probe for "vFile:fstat" support.
6995
f68f11b7
YQ
69962015-03-11 Yao Qi <yao.qi@linaro.org>
6997
6998 PR tdep/18107
6999 * aarch64-linux-tdep.c: Include xml-syscall.h
7000 (aarch64_linux_get_syscall_number): New function.
7001 (aarch64_linux_init_abi): Call
7002 set_gdbarch_get_syscall_number.
7003 * syscalls/aarch64-linux.xml: New file.
7004
393bd0c0
YG
70052015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
7006
7007 * ser-base.h (ser_base_setstopbits): Change second argument name
7008 from "rate" to "num".
7009
7f3647e2
GB
70102015-03-17 Gary Benson <gbenson@redhat.com>
7011 Luke Allardyce <lukeallardyce@gmail.com>
7012
7013 PR gdb/18131
7014 * common/common-remote-fileio.h (sys/stat.h): New include.
7015 (stuct stat): Remove forward declaration.
7016
3ce5b6e2
JB
70172015-03-16 John Baldwin <jhb@FreeBSD.org>
7018
7019 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
7020 before writing core register notes.
7021
d053f6be
YZ
70222015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7023 Pedro Alves <palves@redhat.com>
7024
7025 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
7026 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
7027 (tgoto): Wrap with extern "C".
7028
b1a921c8
PA
70292015-03-16 Pedro Alves <palves@redhat.com>
7030 Yuanhui Zhang <asmwarrior@gmail.com>
7031
7032 * stub-termcap.c (tputs): Change prototype.
7033
876d1cd7
YZ
70342015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
7035 Pedro Alves <palves@redhat.com>
7036
7037 * windows-nat.c (struct thread_info_struct): Rename to ...
7038 (struct windows_thread_info_struct): ... this.
7039 (thread_info): Rename to ...
7040 (windows_thread_info): ... this.
7041 All users updated.
7042
0800b440
JK
70432015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7044 Pedro Alves <palves@redhat.com>
7045
7046 * NEWS: New Removed targets and native configurations.
7047
70482015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
7049
7050 Remove HPUX.
7051 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
7052 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
7053 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
7054 ia64-hpux-tdep.h, solib-ia64-hpux.h.
7055 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
7056 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
7057 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
7058 hppa-hpux-tdep.c.
7059 * config/ia64/hpux.mh: Remove file.
7060 * config/pa/hpux.mh: Remove file.
7061 * configure: Rebuilt.
7062 * configure.ac (dlgetmodinfo, somread.o): Remove.
7063 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7064 (ia64-*-hpux*): Remove its float format exception.
7065 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
7066 * hppa-hpux-nat.c: Remove file.
7067 * hppa-hpux-tdep.c: Remove file.
7068 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
7069 Move them here from hppa-tdep.h
7070 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
7071 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
7072 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
7073 Move them to hppa-tdep.c.
7074 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
7075 declarations.
7076 * ia64-hpux-nat.c: Remove file.
7077 * ia64-hpux-tdep.c: Remove file.
7078 * ia64-hpux-tdep.h: Remove file.
7079 * inf-ttrace.c: Remove file.
7080 * inf-ttrace.h: Remove file.
7081 * solib-ia64-hpux.c: Remove file.
7082 * solib-ia64-hpux.h: Remove file.
7083 * solib-pa64.c: Remove file.
7084 * solib-pa64.h: Remove file.
7085 * solib-som.c: Remove file.
7086 * solib-som.h: Remove file.
7087 * somread.c: Remove file.
7088
25268153
JB
70892015-03-13 John Baldwin <jhb@FreeBSD.org>
7090
7091 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
7092 * config.in: Regenerate.
7093 * configure: Regenerate.
7094 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 7095 define.
25268153
JB
7096 (fbsd_find_memory_regions): Use kinfo_getvmmap to
7097 enumerate memory regions if present.
7098
773eacf5
JB
70992015-03-13 John Baldwin <jhb@FreeBSD.org>
7100
7101 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7102 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7103 expressions.
7104 (i386fbsd_sigtramp_p): Likewise.
7105
01b6bdb0
JB
71062015-03-12 John Baldwin <jhb@FreeBSD.org>
7107
7108 * MAINTAINERS (Write After Approval): Add John Baldwin.
7109
811a659a
GB
71102015-03-12 Gary Benson <gbenson@redhat.com>
7111
7112 * solib.c (_initialize_solib): Make "set/show sysroot" use
7113 add_setshow_optional_filename_cmd so it can be restored to
7114 empty after being set.
7115
10304ef3
SDJ
71162015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7117
7118 * Makefile.in (SFILES): New source break-catch-syscall.c.
7119 (COMMON_OBS): New object break-catch-syscall.o.
7120 * break-catch-syscall.c: New file.
7121 * breakpoint.c: Remove inclusion of "xml-syscall.h".
7122 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
7123 (struct syscall_catchpoint): Likewise.
7124 (dtor_catch_syscall): Likewise.
7125 (catch_syscall_inferior_data): Likewise.
7126 (struct catch_syscall_inferior_data): Likewise.
7127 (get_catch_syscall_inferior_data): Likewise.
7128 (catch_syscall_inferior_data_cleanup): Likewise.
7129 (insert_catch_syscall): Likewise.
7130 (remove_catch_syscall): Likewise.
7131 (breakpoint_hit_catch_syscall): Likewise.
7132 (print_it_catch_syscall): Likewise.
7133 (print_one_catch_syscall): Likewise.
7134 (print_mention_catch_syscall): Likewise.
7135 (print_recreate_catch_syscall): Likewise.
7136 (catch_syscall_breakpoint_ops): Likewise.
7137 (syscall_catchpoint_p): Likewise.
7138 (create_syscall_event_catchpoint): Likewise.
7139 (catch_syscall_split_args): Likewise.
7140 (catch_syscall_command_1): Likewise.
7141 (is_syscall_catchpoint_enabled): Likewise.
7142 (catch_syscall_enabled): Likewise.
7143 (catching_syscall_number): Likewise.
7144 (catch_syscall_completer): Likewise.
7145 (clear_syscall_counts): Likewise.
7146 (initialize_breakpoint_ops): Move initialization of syscall
7147 catchpoints to break-catch-syscall.c.
7148 (_initialize_breakpoint): Move code related to syscall catchpoints
7149 to break-catch-syscall.c.
7150
badd37ce
SDJ
71512015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7152
7153 * breakpoint.c (breakpoint_find_if): New function.
7154 * breakpoint.h (breakpoint_find_if): New prototype.
7155
0a93529c
GB
71562015-03-11 Gary Benson <gbenson@redhat.com>
7157
7158 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
7159 * remote-fileio.c (remote_fileio_to_host_uint): New function.
7160 (remote_fileio_to_host_ulong): Likewise.
7161 (remote_fileio_to_host_mode): Likewise.
7162 (remote_fileio_to_host_time): Likewise.
7163 (remote_fileio_to_host_stat): Likewise.
7164 * remote.c (PACKET_vFile_fstat): New enum value.
7165 (remote_protocol_features): Register the "vFile:fstat" feature.
7166 (remote_hostio_fstat): New function.
7167 (remote_bfd_iovec_stat): Use the above.
7168 (_initialize_remote): Register new "set/show remote
7169 hostio-fstat-packet" command.
7170 * symfile.c (separate_debug_file_exists): Update comment.
7171 * NEWS: Announce new vFile:fstat packet.
7172
791c0056
GB
71732015-03-11 Gary Benson <gbenson@redhat.com>
7174
7175 * common/common-remote-fileio.h: New file.
7176 * common/common-remote-fileio.c: Likewise.
7177 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7178 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7179 (COMMON_OBS): Add common-remote-fileio.o.
7180 (common-remote-fileio.o): New rule.
7181 * remote-fileio.h (common-remote-fileio.h): New include.
7182 * remote-fileio.c (gdb/fileio.h): Do not include.
7183 (remote_fileio_to_be): Moved to common-remote-fileio.h.
7184 (remote_fileio_to_fio_uint): Likewise.
7185 (remote_fileio_to_fio_time): Likewise.
7186 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7187 (remote_fileio_to_fio_mode): Likewise.
7188 (remote_fileio_to_fio_ulong): Likewise.
7189 (remote_fileio_to_fio_stat): Likewise.
7190
1390d0ef
AW
71912015-03-11 Andy Wingo <wingo@igalia.com>
7192
7193 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7194 we were checking the cached type, not the cached dynamic type.
7195
84a4591a
AW
71962015-03-11 Andy Wingo <wingo@igalia.com>
7197
7198 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7199 other strings, as these are on the GC'd heap, and will be
7200 collected along with the smob.
7201
85642ba0
AW
72022015-03-11 Andy Wingo <wingo@igalia.com>
7203
7204 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7205 (objfile_functions): Bind gdbscm_objfile_progspace to
7206 objfile-progspace.
7207 * guile/lib/gdb.scm: Add objfile-progspace to exports.
7208
92fab5a6
AW
72092015-03-11 Andy Wingo <wingo@igalia.com>
7210
7211 * guile/guile.c (_initialize_guile): Disable automatic
7212 finalization, if Guile offers us that possibility.
7213 * guile/guile.c (call_initialize_gdb_module):
7214 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7215 finalizers in appropriate places.
7216 * configure.ac (AC_TRY_LIBGUILE): Add a check for
7217 scm_set_automatic_finalization_enabled.
7218 * configure: Regenerated.
7219
f054145e
AA
72202015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7221
7222 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
7223 SAL, if possible.
7224
18396193
AA
72252015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7226
7227 * s390-linux-nat.c (struct arch_lwp_info): New.
7228 (s390_fix_watch_points): Rename to...
7229 (s390_prepare_to_resume): ...this. Skip the PER info update
7230 unless the watch points have changed.
7231 (s390_refresh_per_info, s390_new_thread): New functions.
7232 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
7233 s390_fix_watch_points.
7234 (s390_remove_watchpoint): Likewise.
7235 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
7236 Register s390_prepare_to_resume.
7237
9eb1356e
PA
72382015-03-09 Pedro Alves <palves@redhat.com>
7239
7240 Revert:
7241 2015-03-07 Pedro Alves <palves@redhat.com>
7242 * common/gdb_socket.h: New file.
7243 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7244 sys/socket.h.
7245 (net_open): Use union gdb_sockaddr_u.
7246
aac331e4
PA
72472015-03-07 Pedro Alves <palves@redhat.com>
7248
7249 * configure.ac (build_warnings): Move -Wmissing-prototypes
7250 -Wdeclaration-after-statement -Wmissing-parameter-type
7251 -Wold-style-declaration -Wold-style-definition to the C-specific
7252 set.
7253 * configure: Regenerate.
7254
366c75fc
PA
72552015-03-07 Pedro Alves <palves@redhat.com>
7256
7257 * common/gdb_socket.h: New file.
7258 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7259 sys/socket.h.
7260 (net_open): Use union gdb_sockaddr_u.
7261
72df25b2
PA
72622015-03-07 Pedro Alves <palves@redhat.com>
7263
7264 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
7265 (exceptions_state_mc_action_iter)
7266 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7267 Don't define.
7268 [__cplusplus] (try_scope_depth): New global.
7269 [__cplusplus] (exception_try_scope_entry)
7270 (exception_try_scope_exit, gdb_exception_sliced_copy)
7271 (exception_rethrow): New functions.
7272 (throw_exception): In C++ mode, throw
7273 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
7274 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
7275 (throw_it): In C++ mode, use try_scope_depth.
7276 * common/common-exceptions.h [!__cplusplus]
7277 (exceptions_state_mc_action_iter)
7278 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7279 Don't declare.
7280 [__cplusplus] (exception_try_scope_entry)
7281 (exception_try_scope_exit, exception_rethrow): Declare.
7282 [__cplusplus] (struct exception_try_scope): New struct.
7283 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
7284 C++ exceptions.
7285 (struct gdb_exception_RETURN_MASK_ALL)
7286 (struct gdb_exception_RETURN_MASK_ERROR)
7287 (struct gdb_exception_RETURN_MASK_QUIT): New types.
7288
284e6217
PA
72892015-03-07 Pedro Alves <palves@redhat.com>
7290
7291 * main.c (handle_command_errors): Remove volatile qualifier from
7292 parameter.
7293
6c63c96a
PA
72942015-03-07 Pedro Alves <palves@redhat.com>
7295
7296 * breakpoint.c (save_breakpoints): Adjust to avoid code between
7297 TRY and CATCH.
7298 * gdbtypes.c (safe_parse_type): Remove empty line.
7299 (types_deeply_equal):
7300 * guile/scm-frame.c (gdbscm_frame_name):
7301 * linux-thread-db.c (find_new_threads_once):
7302 * python/py-breakpoint.c (bppy_get_commands):
7303 * record-btrace.c (record_btrace_insert_breakpoint)
7304 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
7305 (record_btrace_start_replaying): Adjust to avoid code between TRY
7306 and CATCH.
7307
492d29ea
PA
73082015-03-07 Pedro Alves <palves@redhat.com>
7309
7310 * common/common-exceptions.c (struct catcher) <exception>: No
7311 longer a pointer to volatile exception. Now an exception value.
7312 <mask>: Delete field.
7313 (exceptions_state_mc_init): Remove all parameters. Adjust.
7314 (exceptions_state_mc): No longer pop the catcher here.
7315 (exceptions_state_mc_catch): New function.
7316 (throw_exception): Adjust.
7317 * common/common-exceptions.h (exceptions_state_mc_init): Remove
7318 all parameters.
7319 (exceptions_state_mc_catch): Declare.
7320 (TRY_CATCH): Rename to ...
7321 (TRY): ... this. Remove EXCEPTION and MASK parameters.
7322 (CATCH, END_CATCH): New.
7323 All callers adjusted.
7324
ece957c8
TT
73252015-03-07 Tom Tromey <tromey@redhat.com>
7326
7327 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
7328
7556d4a4
PA
73292015-03-07 Pedro Alves <palves@redhat.com>
7330
7331 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7332 (amd64_epilogue_frame_cache): Normal exception handling code.
7333 * break-catch-throw.c (check_status_exception_catchpoint)
7334 (re_set_exception_catchpoint): Ditto.
7335 * cli/cli-interp.c (safe_execute_command):
7336 * cli/cli-script.c (script_from_file): Ditto.
7337 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
7338 Ditto.
7339 * compile/compile-object-run.c (compile_object_run): Ditto.
7340 * cp-abi.c (baseclass_offset): Ditto.
7341 * cp-valprint.c (cp_print_value): Ditto.
7342 * exceptions.c (catch_exceptions_with_msg):
7343 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
7344 * frame.c (get_frame_address_in_block_if_available): Ditto.
7345 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7346 (i386_sigtramp_frame_cache): Ditto.
7347 * infcmd.c (post_create_inferior): Ditto.
7348 * linespec.c (parse_linespec, find_linespec_symbols):
7349 * p-valprint.c (pascal_object_print_value): Ditto.
7350 * parse.c (parse_expression_for_completion): Ditto.
7351 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7352 * remote.c (remote_get_noisy_reply): Ditto.
7353 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
7354 * solib-svr4.c (solib_svr4_r_map): Ditto.
7355
f873665f 73562015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
7357
7358 * common/common-utils.h (startswith): New inline function.
7359 All places where this logic was used updated to use the above.
7360
68901c4d
PA
73612015-03-05 Pedro Alves <palves@redhat.com>
7362
7363 PR gdb/18002
7364 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
7365 after reading the breakpoint's shadow memory.
7366
2dcb2b1a
MK
73672015-03-05 Mark Kettenis <kettenis@gnu.org>
7368
7369 * hppabsd-nat.c: Remove file.
7370 * hppaobsd-nat.c: New file.
7371 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
7372 hppaobsd-nat.c.
7373 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
7374 hppaobsd-nat.o.
7375
527a273a
PA
73762015-03-04 Pedro Alves <palves@redhat.com>
7377
7378 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
7379 (target_decr_pc_after_break): Delete declaration.
7380 * target.c (default_target_decr_pc_after_break)
7381 (target_decr_pc_after_break): Delete.
7382 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
7383 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
7384 * linux-thread-db.c (check_event): Likewise.
7385 * infrun.c (adjust_pc_after_break): Likewise.
7386 * darwin-nat.c (cancel_breakpoint): Likewise.
7387 * aix-thread.c (aix_thread_wait): Likewise.
7388 * target-delegates.c: Regenerate.
7389
faf09f01
PA
73902015-03-04 Pedro Alves <palves@redhat.com>
7391
7392 * linux-nat.c (save_sigtrap): Check for breakpoints before
7393 checking watchpoints.
7394 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7395 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7396 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
7397 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
7398 (linux_nat_stopped_by_sw_breakpoint)
7399 (linux_nat_supports_stopped_by_sw_breakpoint)
7400 (linux_nat_stopped_by_hw_breakpoint)
7401 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
7402 (linux_nat_wait_1): Don't re-increment the PC if relying on
7403 SIGTRAP's siginfo->si_code.
7404 (linux_nat_add_target): Install new target methods.
7405 * linux-thread-db.c (check_event): Don't account for breakpoint PC
7406 offset if the target already adjusted the PC.
7407 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
7408 (GDB_ARCH_TRAP_BRKPT): New.
7409 (TRAP_HWBKPT): Define if not already defined.
7410
f7e6eed5
PA
74112015-03-04 Pedro Alves <palves@redhat.com>
7412
7413 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
7414 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
7415 Delete field.
7416 <stop_reason>: New field.
7417 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
7418 (packet_set_cmd_state): New function.
7419 (remote_protocol_features): Register the "swbreak" and "hwbreak"
7420 features.
7421 (remote_query_supported): If not disabled with the corresponding
7422 "set remote foo-packet" command, report support for the swbreak
7423 and hwbreak features.
7424 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
7425 field.
7426 <stop_reason>: New field.
7427 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
7428 (remote_wait_as): Adjust.
7429 (remote_stopped_by_sw_breakpoint)
7430 (remote_supports_stopped_by_sw_breakpoint)
7431 (remote_stopped_by_hw_breakpoint)
7432 (remote_supports_stopped_by_hw_breakpoint): New functions.
7433 (remote_stopped_by_watchpoint): New function.
7434 (init_remote_ops): Install them.
7435 (_initialize_remote): Register new "set/show remote
7436 swbreak-feature-packet" and "set/show remote
7437 swbreak-feature-packet" commands.
7438
9e8915c6
PA
74392015-03-04 Pedro Alves <palves@redhat.com>
7440
7441 * btrace.h: Include target/waitstatus.h.
7442 (struct btrace_thread_info) <stop_reason>: New field.
7443 * record-btrace.c (record_btrace_step_thread): Use
7444 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7445 (record_btrace_decr_pc_after_break): Delete.
7446 (record_btrace_stopped_by_sw_breakpoint)
7447 (record_btrace_supports_stopped_by_sw_breakpoint)
7448 (record_btrace_stopped_by_hw_breakpoint)
7449 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
7450 (init_record_btrace_ops): Install them.
7451 * record-full.c (record_full_hw_watchpoint): Delete and replace
7452 with ...
7453 (record_full_stop_reason): ... this throughout.
7454 (record_full_exec_insn): Adjust.
7455 (record_full_wait_1): Adjust. No longer re-increment the PC.
7456 (record_full_wait_1): Adjust. Use
7457 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7458 (record_full_stopped_by_watchpoint): Adjust.
7459 (record_full_stopped_by_sw_breakpoint)
7460 (record_full_supports_stopped_by_sw_breakpoint)
7461 (record_full_supports_stopped_by_sw_breakpoint)
7462 (record_full_stopped_by_hw_breakpoint)
7463 (record_full_supports_stopped_by_hw_breakpoint): New functions.
7464 (init_record_full_ops, init_record_full_core_ops): Install them.
7465 * record.c (record_check_stopped_by_breakpoint): New function.
7466 * record.h: Include target/waitstatus.h.
7467 (record_check_stopped_by_breakpoint): New declaration.
7468
15c66dd6
PA
74692015-03-04 Pedro Alves <palves@redhat.com>
7470
7471 enum lwp_stop_reason -> enum target_stop_reason
7472 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
7473 (linux_nat_stopped_by_watchpoint, status_callback)
7474 (linux_nat_wait_1): Adjust.
7475 * linux-nat.h (enum lwp_stop_reason): Delete.
7476 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7477 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7478 * target/waitstatus.h (enum target_stop_reason): New.
7479
1cf4d951
PA
74802015-03-04 Pedro Alves <palves@redhat.com>
7481
7482 * breakpoint.c (need_moribund_for_location_type): New function.
7483 (bpstat_stop_status): Don't skipping checking moribund locations
7484 of breakpoint types which the target tell caused a stop.
7485 (program_breakpoint_here_p): New function, factored out from ...
7486 (bp_loc_is_permanent): ... this.
7487 (update_global_location_list): Don't create a moribund location if
7488 the target supports reporting stops of the type of the removed
7489 breakpoint.
7490 * breakpoint.h (program_breakpoint_here_p): New declaration.
7491 * infrun.c (adjust_pc_after_break): Return early if the target has
7492 already adjusted the PC. Add comments.
7493 (handle_signal_stop): If nothing explains a signal, and the target
7494 tells us the stop was caused by a software breakpoint, check if
7495 there's a breakpoint instruction in the memory. If so, adjust the
7496 PC before presenting the stop to the user. Otherwise, ignore the
7497 trap. If nothing explains a signal, and the target tells us the
7498 stop was caused by a hardware breakpoint, ignore the trap.
7499 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
7500 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
7501 to_supports_stopped_by_hw_breakpoint>: New fields.
7502 (target_stopped_by_sw_breakpoint)
7503 (target_supports_stopped_by_sw_breakpoint)
7504 (target_stopped_by_hw_breakpoint)
7505 (target_supports_stopped_by_hw_breakpoint): Define.
7506 * target-delegates.c: Regenerate.
7507
79639e11
PA
75082015-03-04 Pedro Alves <palves@redhat.com>
7509
7510 * infrun.c (follow_fork_inferior): Use the whole of the
7511 inferior_ptid and pending_follow.related_pid ptids instead of
7512 building ptids from the process components. Adjust verbose output
7513 to use target_pid_to_str.
7514 * linux-nat.c (linux_child_follow_fork): Use the whole of the
7515 inferior_ptid and pending_follow.related_pid ptids instead of
7516 building ptids from the process components.
7517
e85e8e5e
MK
75182015-03-04 Mark Kettenis <kettenis@gnu.org>
7519
7520 * inf-ptrace.c [PT_GET_PROCESS_STATE]
7521 (inf_ptrace_insert_fork_catchpoint): New function.
7522 (inf_ptrace_remove_fork_catchpoint): New function.
7523 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
7524
87de11c0
AA
75252015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7526
7527 * s390-linux-tdep.c (s390_register_name): Return empty string
7528 instead of NULL for registers that shouldn't be visible.
7529
d851a69a
AA
75302015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7531
7532 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
7533 XML file for 64-bit targets.
7534
b072f6c1
SM
75352015-03-03 Simon Marchi <simon.marchi@ericsson.com>
7536
7537 * target.h (find_default_create_inferior): Remove declaration.
7538 (find_default_attach): Likewise.
7539
c1593e4f
PA
75402015-03-03 Pedro Alves <palves@redhat.com>
7541
7542 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
7543 Use ptid_get_pid to get the overall process id when resuming all
7544 threads.
7545
90ad5e1d
PA
75462015-03-03 Pedro Alves <palves@redhat.com>
7547
7548 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
7549 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
7550 * inf-ptrace.c (get_ptrace_pid): New function.
7551 (inf_ptrace_resume): Use it.
7552 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
7553 to the lower layer.
7554
d68e53f4
MM
75552015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7556
7557 * nat/linux-btrace.c: Include sys/utsname.h.
7558 (linux_determine_kernel_ptr_bits): New.
7559 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
7560 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
7561 ptr_bits.
7562
986b6601
MM
75632015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7564
7565 * btrace.c (ftrace_update_function): Treat return as tailcall for
7566 "_dl_runtime_resolve".
7567
ce0dfbea
MM
75682015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7569
7570 * btrace.h (btrace_function) <lbegin, lend>: Remove.
7571 * btrace.c (ftrace_debug): Do not print the line range.
7572 (ftrace_skip_file, ftrace_update_lines): Remove.
7573 (ftrace_new_function): Remove lbegin and lend initialization.
7574 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
7575 * record-btrace.c (btrace_compute_src_line_range): New.
7576 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
7577
95e50b27
PA
75782015-03-02 Pedro Alves <palves@redhat.com>
7579
7580 * infrun.c (follow_exec): Delete all threads of the process except
7581 the event thread. Extended comments.
7582
00e474c2
JB
75832015-03-02 Joel Brobecker <brobecker@adacore.com>
7584
7585 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
7586
cc7039d3
JB
75872015-03-02 Joel Brobecker <brobecker@adacore.com>
7588
7589 * utils.h: Remove <stdbool.h> #include.
7590 (producer_is_gcc): Change return type to "int".
7591 * utils.c (producer_is_gcc): Change return type to int.
7592 Return 1 instead of true, and 0 instead of false.
7593 Adjust function documentation accordingly.
7594
550bdf96
AA
75952015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7596
7597 * s390-linux-nat.c (have_regset_vxrs): New static variable.
7598 (s390_linux_fetch_inferior_registers): Handle vector registers, if
7599 present.
7600 (s390_linux_store_inferior_registers): Likewise.
7601 (s390_get_hwcap): Remove function. Embed its logic...
7602 (s390_read_description): ...here. Yield a target description with
7603 vector registers if applicable.
7604 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
7605 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
7606 "features/s390x-tevx-linux64.c".
7607 (struct gdbarch_tdep) <v0_full_regnum>: New field.
7608 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
7609 for "GNU/Linux-specific registers".
7610 (s390_dwarf_reg_r0l): New enum value.
7611 (s390_dwarf_reg_to_regnum): Support vector registers.
7612 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
7613 of GPR lower halves.
7614 (regnum_is_vxr_full): New function.
7615 (s390_register_name): New function.
7616 (s390_pseudo_register_name): Handle v0-v15, which are composed of
7617 f0-f15 and v0l-v15l.
7618 (s390_pseudo_register_type): Likewise.
7619 (s390_pseudo_register_read): Likewise.
7620 (s390_pseudo_register_write): Likewise.
7621 (s390_value_from_register): Account for the fact that values are
7622 placed left-justified in vector registers.
7623 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
7624 the vector reggroup and omit them from the general reggroup.
7625 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
7626 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
7627 (s390_iterate_over_regset_sections): Add iterations for the two
7628 new vector regsets.
7629 (s390_core_read_description): Yield a target description with
7630 vector registers if applicable.
7631 (s390_gdbarch_init): Handle target descriptions with vector
7632 registers. Add "register_name" gdbarch method.
7633 (_initialize_s390_tdep): Call new tdesc initialization functions.
7634 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
7635 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
7636 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
7637 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
7638 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
7639 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
7640 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
7641 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
7642 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
7643 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
7644 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
7645 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
7646 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
7647 (S390_NUM_REGS): Adjust value.
7648 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
7649 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7650 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
7651 * NEWS: Announce S/390 vector register support.
7652
446899e4
AA
76532015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7654
7655 * features/s390-tevx-linux64.xml: New file.
7656 * features/s390-vx-linux64.xml: New file.
7657 * features/s390-vx.xml: New file.
7658 * features/s390x-tevx-linux64.xml: New file.
7659 * features/s390x-vx-linux64.xml: New file.
7660 * features/Makefile (WHICH): Add s390-vx-linux64,
7661 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
7662 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
7663 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
7664 macros.
7665 * features/s390-tevx-linux64.c: New generated file.
7666 * features/s390-vx-linux64.c: Likewise.
7667 * features/s390x-tevx-linux64.c: Likewise.
7668 * features/s390x-vx-linux64.c: Likewise.
7669 * regformats/s390-tevx-linux64.dat: Likewise.
7670 * regformats/s390-vx-linux64.dat: Likewise.
7671 * regformats/s390x-tevx-linux64.dat: Likewise.
7672 * regformats/s390x-vx-linux64.dat: Likewise.
7673
b7236fbe
DE
76742015-02-28 Doug Evans <xdje42@gmail.com>
7675
7676 * symtab.h (struct symtab) <next>: Fix comment.
7677
02e62830
SM
76782015-02-27 Simon Marchi <simon.marchi@ericsson.com>
7679
7680 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
7681 python_GdbMethods.
7682
bf36a1e7
PA
76832015-02-27 Pedro Alves <palves@redhat.com>
7684
7685 * dtrace-probe.c (dtrace_probe_ops): Make extern.
7686
ad6aff7d
PA
76872015-02-27 Pedro Alves <palves@redhat.com>
7688
7689 * common/common-exceptions.h (exception_none): Declare.
7690 * common/common-exceptions.c (exception_none): Moved from
7691 exceptions.c.
7692 (exceptions_state_mc_init): Use exception_none.
7693 * exceptions.c (exception_none): Move to
7694 common/common-exceptions.c.
7695 * exceptions.h (exception_none): Move to
7696 common/common-exceptions.h.
7697
97c18565
PA
76982015-02-27 Pedro Alves <palves@redhat.com>
7699
7700 * main.c (catch_command_errors, catch_command_errors_const):
7701 Remove 'mask' argument. Adjust.
7702 (captured_main): Adjust callers.
7703
e992c591
PA
77042015-02-27 Pedro Alves <palves@redhat.com>
7705
7706 * python/python-internal.h: Include "extension-priv.h".
7707
64166036
PA
77082015-02-27 Pedro Alves <palves@redhat.com>
7709
7710 * breakpoint.h (enum print_stop_action): Move further up in the
7711 file.
7712
8a526fa6
PA
77132015-02-27 Pedro Alves <palves@redhat.com>
7714
7715 * gdbarch.sh: Include regcache.h.
7716 * gdbarch.h: Regenerate.
7717
0fa9c223
PA
77182015-02-27 Pedro Alves <palves@redhat.com>
7719
7720 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
7721 Remove duplicate const.
7722 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
7723 duplicate const.
7724
7cf99fb1
PA
77252015-02-27 Pedro Alves <palves@redhat.com>
7726
7727 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
7728 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
7729 * features/feature_to_c.sh: Tag the generated xml_builtin array
7730 with extern const in C++ mode.
7731
1424c16e
TT
77322015-02-27 Tom Tromey <tromey@redhat.com>
7733
7734 * minidebug.c (struct lzma_stream): Rename to ...
7735 (struct gdb_lzma_stream): ... this.
7736 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
7737
10367c7c
PA
77382015-02-27 Pedro Alves <palves@redhat.com>
7739
7740 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
7741 function.
7742 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7743 (mi_cmd_stack_list_variables): Use it.
7744
4180215b
PA
77452015-02-27 Pedro Alves <palves@redhat.com>
7746
7747 * x86-linux-nat.c (u_debugreg_offset): New function.
7748 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7749
2f56f7c3
PA
77502015-02-27 Pedro Alves <palves@redhat.com>
7751
7752 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
7753 declaration.
7754 Include break-common.h.
7755
570dc176
TT
77562015-02-27 Tom Tromey <tromey@redhat.com>
7757 Pedro Alves <palves@redhat.com>
7758
7759 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
7760 local used to iterate over enums.
7761 * completer.c (signal_completer): Likewise.
7762 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
7763 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
7764 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
7765 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
7766 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
7767 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
7768 * tui-wingeneral.c (tui_refresh_all): Likewise.
7769
68c14faa
PA
77702015-02-27 Pedro Alves <palves@redhat.com>
7771
7772 * target.h: Include "infrun.h".
7773
749bab01
PA
77742015-02-27 Pedro Alves <palves@redhat.com>
7775
7776 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7777
3c14e5a3
PA
77782015-02-27 Pedro Alves <palves@redhat.com>
7779
7780 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
7781 (IPA_SYM): Use it.
7782 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
7783
56000a98
PA
77842015-02-27 Pedro Alves <palves@redhat.com>
7785
7786 * cli-out.c (_rl_erase_entire_line): Move declaration out of
7787 cli_mld_erase_entire_line, and make it extern "C".
7788 * common/common-defs.h (EXTERN_C): New.
7789 * completer.c (_rl_completion_prefix_display_length)
7790 (_rl_print_completions_horizontally, QSFUNC): Move declarations
7791 out of gdb_display_match_list_1.
7792 (_rl_qsort_string_compare): Move declaration out of
7793 gdb_display_match_list_1, and make it extern "C".
7794 * defs.h (re_comp): Use EXTERN_C.
7795 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
7796 and make it extern "C".
7797 (monstartup): Move declaration out of maintenance_set_profile_cmd,
7798 and make it extern "C".
7799 (main): Move declaration out of maintenance_set_profile_cmd.
7800 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
7801 EXTERN_C.
7802
bcabf420
PA
78032015-02-27 Pedro Alves <palves@redhat.com>
7804
7805 * python/python.c (GdbMethods): Rename to ...
7806 (python_GdbMethods): ... this and make extern.
7807 (GdbModuleDef): Rename to ...
7808 (python_GdbModuleDef): ... this and make extern.
7809
928dbe07
PA
78102015-02-27 Pedro Alves <palves@redhat.com>
7811
7812 * record-btrace.c (set_record_btrace_cmdlist)
7813 (show_record_btrace_cmdlist): Remove redefinitions.
7814
52059ffd
TT
78152015-02-27 Tom Tromey <tromey@redhat.com>
7816 Pedro Alves <palves@redhat.com>
7817
7818 * dwarf2-frame.c (enum cfa_how_kind, struct
7819 dwarf2_frame_state_reg_info): Move out of struct
7820 dwarf2_frame_state.
7821 * dwarf2read.c (struct tu_stats): Move out of struct
7822 dwarf2_per_objfile.
7823 (struct file_entry): Move out of struct line_header.
7824 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
7825 typedef_field_list): Move out of struct field_info.
7826 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
7827 Move out of struct dynamic_prop.
7828 (union type_owner, union field_location, struct field, struct
7829 range_bounds, union type_specific): Move out of struct main_type.
7830 (struct fn_fieldlist, struct fn_field, struct typedef_field)
7831 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
7832 (struct call_site_target, union call_site_parameter_u, struct
7833 call_site_parameter): Move out of struct call_site.
7834 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
7835 m32c_prologue.
7836 (enum srcdest_kind): Move out of struct srcdest.
7837 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
7838 * prologue-value.h (enum prologue_value_kind): Move out of struct
7839 prologue_value.
7840 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
7841 gdbarch_tdep.
7842 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
7843 out of struct field_info.
7844 * symfile.h (struct other_sections): Move out of struct
7845 section_addr_info.
7846 * symtab.c (struct symbol_cache_slot): Move out struct
7847 block_symbol_cache.
7848 * target-descriptions.c (enum tdesc_type_kind): Move out of
7849 typedef struct tdesc_type.
7850 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
7851 struct tui_line_or_address.
7852 * value.c (enum internalvar_kind, union internalvar_data): Move
7853 out of struct internalvar.
7854 * xtensa-tdep.h (struct ctype_cache): Move out of struct
7855 gdbarch_tdep.
7856
fe978cb0
PA
78572015-02-27 Tom Tromey <tromey@redhat.com>
7858 Pedro Alves <palves@redhat.com>
7859
7860 Rename symbols whose names are reserved C++ keywords throughout.
7861
3bc3d82a
PA
78622015-02-27 Pedro Alves <palves@redhat.com>
7863
7864 * Makefile.in (COMPILER): New, get it from autoconf.
7865 (COMPILE.pre, CC_LD): Use COMPILER.
7866 (CXX): Get from autoconf instead.
7867 (CXX_FOR_TARGET): Default to g++ instead of gcc.
7868 * acinclude.m4: Include build-with-cxx.m4.
7869 * build-with-cxx.m4: New file.
7870 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7871 Disable -Werror by default if building in C++ mode.
7872 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7873 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
7874 Run supported-warning-flags tests with the C++ compiler.
7875 Save/restore CXXFLAGS too.
7876 * configure: Regenerate.
7877
07697489
PA
78782015-02-27 Pedro Alves <palves@redhat.com>
7879
7880 * libiberty.m4: New file.
7881 * acinclude.m4: Include libiberty.m4.
7882 * configure.ac: Call libiberty_INIT.
7883 * config.in, configure: Regenerate.
7884
60abeae4
AA
78852015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
7886
7887 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
7888 31-bit targets, but 64-bit targets as well.
7889 (s390_gnu_triplet_regexp): New function.
7890 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
7891 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
7892 method.
7893
f44466fb 78942015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
7895
7896 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
7897 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
7898 from CONTEXT_DEBUGGER.
7899
0def5aaa
DE
79002015-02-26 Doug Evans <dje@google.com>
7901
7902 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
7903 CHECK_TYPEDEF.
7904 (set_type_vptr_fieldno): Ditto.
7905 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
7906 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
7907
77b64a49
PA
79082015-02-26 Pedro Alves <palves@redhat.com>
7909
7910 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
7911 * complaints.c (vcomplaint): Pass argument FMT directly to
7912 printf-like functions instead of complaint->fmt.
7913 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
7914 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
7915 * compile/compile-loc2c.c (pushf, unary, binary): Add
7916 ATTRIBUTE_PRINTF.
7917 (do_compile_dwarf_expr_to_c): Pass string literal as format string
7918 to pushf.
7919 (BINARY): Pass string literal as format string to 'binary'.
7920 * compile/compile-object-load.c (link_callbacks_einfo): Add
7921 ATTRIBUTE_PRINTF.
7922 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
7923
532f44ed
PA
79242015-02-26 Pedro Alves <palves@redhat.com>
7925
7926 * windows-termcap.c: Rename to ...
7927 * stub-termcap.c: ... this. Adjust header line.
7928 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
7929 windows-termcap.c.
7930 * configure: Regenerate.
7931 * configure.ac: Refer to stub-termcap.o instead of
7932 windows-termcap.o.
7933 * gdb_curses.h: Mention stub-termcap.c instead of
7934 windows-termcap.c.
7935
081a1c2c
JK
79362015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7937
7938 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
7939 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
7940
2f41223f
AT
79412015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
7942
7943 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
7944
80c57053
JK
79452015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7946
7947 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
7948 bfd_canonicalize_symtab.
7949
cf424aef
JB
79502015-02-25 John Baldwin <jhb@FreeBSD.org>
7951
7952 * amd64fbsd-nat.c: Include sys/user.h.
7953 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
7954 instead of KERN_PS_STRINGS to locate the signal trampoline.
7955 * i386fbsd-nat.c: Include sys/user.h.
7956 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
7957 instead of KERN_PS_STRINGS to locate the signal trampoline.
7958 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
7959 (amd64fbsd_sigtramp_p): New.
7960 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
7961 longer set default values.
7962 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
7963 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
7964 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
7965 (i386fbsd_freebsd4_sigtramp_start)
7966 (i386fbsd_freebsd4_sigtramp_middle)
7967 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
7968 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
7969 (i386fbsd_sigtramp_p): New.
7970 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
7971 longer set default values.
7972 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
7973
c5cb74ee
JB
79742015-02-25 John Baldwin <jhb@freebsd.org>
7975
7976 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
7977 get_frame_register instead of frame_unwind_register_unsigned.
7978
17487d85
JK
79792015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7980
7981 PR build/18033
7982 * compile/compile-c-support.c (c_compute_program): Change // comment.
7983 * compile/compile-object-load.c (setup_sections): Change // comment.
7984
9357a9e6
JB
79852015-02-26 Joel Brobecker <brobecker@adacore.com>
7986
7987 PR build/18033:
7988 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
7989
1f10ba14
PA
79902015-02-23 Pedro Alves <palves@redhat.com>
7991
7992 * remote.c (skip_to_semicolon): New function.
7993 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
7994 special case the stop reasons that look like hex numbers
7995 upfront. Instead handle real register numbers after matching
7996 all the known stop reasons.
7997
96553a0c
DE
79982015-02-21 Doug Evans <dje@google.com>
7999
8000 PR c++/17976, symtab/17821
8001 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
8002 is_in_anonymous. All callers updated.
8003 (find_symbol_in_baseclass): Ditto.
8004 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
8005 for symbols in an anonymous namespace.
8006 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
8007 DW_AT_name directly.
8008 (dwarf2_name): Convert missing namespace name to
8009 CP_ANONYMOUS_NAMESPACE_STR.
8010
2db9a427
PA
80112015-02-20 Pedro Alves <palves@redhat.com>
8012
8013 * linux-nat.c (linux_handle_extended_wait): Call
8014 thread_db_notice_clone whenever a new clone LWP is detected.
8015 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
8016 functions.
8017 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
8018 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
8019 (linux_unstop_all_lwps): Declare.
8020 * linux-thread-db.c (struct thread_get_info_inout): Delete.
8021 (thread_get_info_callback): Delete.
8022 (thread_from_lwp): Use td_thr_get_info and record_thread.
8023 (thread_db_attach_lwp): Delete.
8024 (thread_db_notice_clone): New function.
8025 (try_thread_db_load_1): If /proc is mounted and shows the
8026 process'es task list, walk over all LWPs and call thread_from_lwp
8027 instead of relying on td_ta_thr_iter.
8028 (attach_thread): Don't call check_thread_signals here. Split the
8029 tail part of the function (which adds the thread to the core GDB
8030 thread list) to ...
8031 (record_thread): ... this function. Call check_thread_signals
8032 here.
8033 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
8034 call thread_from_lwp.
8035 (thread_db_update_thread_list): Rename to ...
8036 (thread_db_update_thread_list_org): ... this.
8037 (thread_db_update_thread_list): New function.
8038 (thread_db_find_thread_from_tid): Delete.
8039 (thread_db_get_ada_task_ptid): Simplify.
8040 * nat/linux-procfs.c: Include <sys/stat.h>.
8041 (linux_proc_task_list_dir_exists): New function.
8042 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
8043
3b27ef47
PA
80442015-02-20 Pedro Alves <palves@redhat.com>
8045
8046 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
8047 main LWP. Handle the case of waitpid returning 0 if we're already
8048 attached to the LWP. Don't set the LWP's last_resume_kind to
8049 resume_stop if we already knew about the LWP.
8050 (linux_nat_filter_event): Add debug logs.
8051
1cc28231
PA
80522015-02-20 Pedro Alves <palves@redhat.com>
8053
8054 * target.h (forward_target_decr_pc_after_break): Delete
8055 declaration.
8056
5c5019c2
PA
80572015-02-20 Pedro Alves <palves@redhat.com>
8058
8059 PR threads/18006
8060 * linux-thread-db.c (thread_get_info_callback): Return early if
8061 the thread's lwp id is -1.
8062
f3978e91
JB
80632015-02-20 Joel Brobecker <brobecker@adacore.com>
8064
8065 GDB 7.9 released.
8066
ffdf88ec
SE
80672015-02-19 Steve Ellcey <sellcey@imgtec.com>
8068
8069 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
8070 (dtrace_get_probes) Change type of variable 'dof'.
8071
c9587f88
AT
80722015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8073
8074 PR breakpoints/16812
8075 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
8076 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
8077 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
8078
53cf2ee0
DT
80792015-02-19 David Taylor <dtaylor@emc.com>
8080
8081 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
8082
acfe0940
PP
80832015-02-18 Patrick Palka <patrick@parcs.ath.cx>
8084
8085 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
8086 function.
8087 (tui_putc): Don't call tui_handle_resize_during_io.
8088 (tui_getc): Likewise.
8089 (tui_mld_getc): Likewise.
8090 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
8091 (tui_sigwinch_token): New static variable.
8092 (tui_initialize_win): Adjust documentation. Set
8093 tui_sigwinch_token.
8094 (tui_async_resize_screen): New asynchronous callback.
8095 (tui_sigwinch_handler): Adjust documentation. Asynchronously
8096 invoke tui_async_resize_screen.
8097
f6a88844
JM
80982015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
8099
8100 * configure: Regenerated.
8101 * configure.ac: Use GDB_AC_TRANSFORM.
8102 * Makefile.in (aclocal_m4_deps): Added transform.m4.
8103 * acinclude.m4: sinclude transform.m4.
8104 * transform.m4: New file.
8105 (GDB_AC_TRANSFORM): New macro.
8106
b05e3b0d
JM
81072015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8108
8109 * NEWS: Announce the support for DTrace SDT probes.
8110
c3e3045e
JM
81112015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8112
8113 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
8114 (amd64_dtrace_parse_probe_argument): New function.
8115 (amd64_dtrace_probe_is_enabled): Likewise.
8116 (amd64_dtrace_enable_probe): Likewise.
8117 (amd64_dtrace_disable_probe): Likewise.
8118 (amd64_linux_init_abi): Register the
8119 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
8120 `gdbarch_dtrace_disable_probe' and
8121 `gdbarch_dtrace_probe_is_enabled' hooks.
8122 (amd64_dtrace_disabled_probe_sequence_1): New constant.
8123 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
8124 (amd64_dtrace_enable_probe_sequence): Likewise.
8125 (amd64_dtrace_disable_probe_sequence): Likewise.
8126
d4777acb
JM
81272015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8128
8129 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
8130 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
8131 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
8132 handle ELF files.
8133 * Makefile.in (SFILES): dtrace-probe.c added.
8134 * configure: Regenerate.
8135 * dtrace-probe.c: New file.
8136 (SHT_SUNW_dof): New constant.
8137 (dtrace_probe_type): New enum.
8138 (dtrace_probe_arg): New struct.
8139 (dtrace_probe_arg_s): New typedef.
8140 (struct dtrace_probe_enabler): New struct.
8141 (dtrace_probe_enabler_s): New typedef.
8142 (dtrace_probe): New struct.
8143 (dtrace_probe_is_linespec): New function.
8144 (dtrace_dof_sect_type): New enum.
8145 (dtrace_dof_dofh_ident): Likewise.
8146 (dtrace_dof_encoding): Likewise.
8147 (DTRACE_DOF_ENCODE_LSB): Likewise.
8148 (DTRACE_DOF_ENCODE_MSB): Likewise.
8149 (dtrace_dof_hdr): New struct.
8150 (dtrace_dof_sect): Likewise.
8151 (dtrace_dof_provider): Likewise.
8152 (dtrace_dof_probe): Likewise.
8153 (DOF_UINT): New macro.
8154 (DTRACE_DOF_PTR): Likewise.
8155 (DTRACE_DOF_SECT): Likewise.
8156 (dtrace_process_dof_probe): New function.
8157 (dtrace_process_dof): Likewise.
8158 (dtrace_build_arg_exprs): Likewise.
8159 (dtrace_get_arg): Likewise.
8160 (dtrace_get_probes): Likewise.
8161 (dtrace_get_probe_argument_count): Likewise.
8162 (dtrace_can_evaluate_probe_arguments): Likewise.
8163 (dtrace_evaluate_probe_argument): Likewise.
8164 (dtrace_compile_to_ax): Likewise.
8165 (dtrace_probe_destroy): Likewise.
8166 (dtrace_gen_info_probes_table_header): Likewise.
8167 (dtrace_gen_info_probes_table_values): Likewise.
8168 (dtrace_probe_is_enabled): Likewise.
8169 (dtrace_probe_ops): New variable.
8170 (info_probes_dtrace_command): New function.
8171 (_initialize_dtrace_probe): Likewise.
8172 (dtrace_type_name): Likewise.
8173
8b367e17
JM
81742015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8175
8176 * gdbarch.sh (dtrace_parse_probe_argument): New.
8177 (dtrace_probe_is_enabled): Likewise.
8178 (dtrace_enable_probe): Likewise.
8179 (dtrace_disable_probe): Likewise.
8180 * gdbarch.c: Regenerate.
8181 * gdbarch.h: Regenerate.
8182
9aca2ff8
JM
81832015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8184
8185 * stap-probe.c (stap_probe_ops): Add NULLs in the static
8186 stap_probe_ops for `enable_probe' and `disable_probe'.
8187 * probe.c (enable_probes_command): New function.
8188 (disable_probes_command): Likewise.
8189 (_initialize_probe): Define the cli commands `enable probe' and
8190 `disable probe'.
8191 (parse_probe_linespec): New function.
8192 (info_probes_for_ops): Use parse_probe_linespec.
8193 * probe.h (probe_ops): New hooks `enable_probe' and
8194 `disable_probe'.
8195
03e98035
JM
81962015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8197
8198 * probe.c (compute_probe_arg): Moved from stap-probe.c
8199 (compile_probe_arg): Likewise.
8200 (probe_funcs): Likewise.
8201 * stap-probe.c (compute_probe_arg): Moved to probe.c.
8202 (compile_probe_arg): Likewise.
8203 (probe_funcs): Likewise.
8204
6f9b8491
JM
82052015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8206
8207 * probe.c (print_ui_out_not_applicables): New function.
8208 (exists_probe_with_pops): Likewise.
8209 (info_probes_for_ops): Do not include column headers for probe
8210 types for which no probe has been actually found on any object.
8211 Also invoke `print_ui_out_not_applicables' in order to match the
8212 column rows with the header when probes of several types are
8213 listed.
8214 Print the "Type" column.
8215 * probe.h (probe_ops): Added a new probe operation `type_name'.
8216 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
8217 (stap_type_name): New function.
8218
69efdff1
PP
82192015-02-17 Patrick Palka <patrick@parcs.ath.cx>
8220
8221 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
8222 (key_is_command_char): Delete.
8223
f8e5e23e
PA
82242015-02-17 Pedro Alves <palves@redhat.com>
8225
8226 * tui/tui.c (tui_enable): Resize windows before anything
8227 might show a window.
8228
9f2e0721
MO
82292015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
8230
8231 PR gdb/17984
8232 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
8233 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
8234 call.
8235 * aarch64-tdep.h (tdesc_aarch64): Declare.
8236
171e6b1c
MW
82372015-02-12 Mark Wielaard <mjw@redhat.com>
8238
8239 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
8240
d5ff0482
DE
82412015-02-13 Doug Evans <dje@google.com>
8242
8243 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
8244 anonymous_namespace to is_in_anonymous for consistency with the rest
8245 of the file.
8246 (cp_lookup_bare_symbol): Fix typo in comment.
8247 (cp_search_static_and_baseclasses): Ditto.
8248 (search_symbol_list): Use vertical space in comment better.
8249 (reset_directive_searched): Ditto. Fix typo.
8250 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
8251
9f04ac5f
YQ
82522015-02-13 Yao Qi <yao.qi@arm.com>
8253
8254 * MAINTAINERS: Update my email address.
8255
013d0319
DE
82562015-02-12 Doug Evans <dje@google.com>
8257
b615dd20 8258 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 8259
9a7e538e
DE
82602015-02-12 Doug Evans <dje@google.com>
8261
8262 * completer.c (complete_line): Remove incorrect comment.
8263
e1fcd575
JK
82642015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
8267 (py_print_frame): Use RETURN_MASK_ERROR.
8268
b99bf4e3
JK
82692015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8270
8271 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
8272 function comment. Wrap all function that can throw in cleanups.
8273 (gdbpy_apply_frame_filter): Wrap all function that can throw in
8274 cleanups.
8275
800eb1ce
JK
82762015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8277
8278 * python/py-framefilter.c (py_print_frame): Substitute goto error.
8279 Remove the error label.
8280
34019068
JK
82812015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8282
8283 * python/py-framefilter.c (py_print_frame): Put conditional code paths
8284 with goto first, indent the former else codepath left. Put variable
8285 'elided' to a new inner block.
8286
8d4a54e2
JK
82872015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8288
8289 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
8290
18ad82c1
PA
82912015-02-11 Pedro Alves <palves@redhat.com>
8292
8293 * xcoffread.c (within_function): Delete.
8294
e36122e9
TT
82952015-02-11 Tom Tromey <tromey@redhat.com>
8296 Pedro Alves <palves@redhat.com>
8297
8298 * breakpoint.c (base_breakpoint_ops): Delete.
8299 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
8300 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
8301 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
8302 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
8303 * python/py-arch.c (arch_object_type): Make extern.
8304 * python/py-block.c (block_syms_iterator_object_type): Make extern.
8305 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
8306 * python/py-cmd.c (cmdpy_object_type): Make extern.
8307 * python/py-continueevent.c (continue_event_object_type)
8308 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
8309 parameter. Update all callers.
8310 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
8311 * python/py-exitedevent.c (exited_event_object_type): Make extern.
8312 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
8313 * python/py-function.c (fnpy_object_type): Make extern.
8314 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
8315 * python/py-infevents.c (call_pre_event_object_type)
8316 (inferior_call_post_event_object_type).
8317 (memory_changed_event_object_type): Make extern.
8318 * python/py-infthread.c (thread_object_type): Make extern.
8319 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
8320 * python/py-linetable.c (linetable_entry_object_type)
8321 (linetable_object_type, ltpy_iterator_object_type): Make extern.
8322 * python/py-newobjfileevent.c (new_objfile_event_object_type)
8323 (clear_objfiles_event_object_type): Make extern.
8324 * python/py-objfile.c (objfile_object_type): Make extern.
8325 * python/py-param.c (parmpy_object_type): Make extern.
8326 * python/py-progspace.c (pspace_object_type): Make extern.
8327 * python/py-signalevent.c (signal_event_object_type): Make extern.
8328 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
8329 * python/py-type.c (type_object_type, field_object_type)
8330 (type_iterator_object_type): Make extern.
8331 * python/python.c (python_extension_script_ops)
8332 (python_extension_ops): Make extern.
8333 * stap-probe.c (stap_probe_ops): Make extern.
8334
0703599a
PA
83352015-02-11 Pedro Alves <pedro@codesourcery.com>
8336
8337 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
8338 because the event thread is not the current thread.
8339
eaaf76ab
DE
83402015-02-11 Doug Evans <xdje42@gmail.com>
8341
8342 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
8343 been initialized yet, return NULL.
8344
e7d52ed3
DE
83452015-02-11 Doug Evans <dje@google.com>
8346
8347 * symfile.h (new_symfile_objfile): Delete.
8348 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
8349 All callers updated.
8350
fc6b1256
PP
83512015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8352
8353 * tui/tui-io.c (tui_handle_resize_during_io): Call
8354 tui_update_gdb_sizes() after resizing the screen.
8355 * tui/tui.c (tui_enable): Resize the terminal before
8356 calling tui_update_gdb_sizes().
8357
d9080678
PP
83582015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8359
8360 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
8361 line before printing a newline.
8362
9f615e3a
MW
83632015-02-11 Mark Wielaard <mjw@redhat.com>
8364
8365 * utils.c (producer_is_gcc): Return true or false.
8366
d9080678 83672015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
8368
8369 * utils.h (producer_is_gcc): Change return type to bool. Add major
8370 argument.
8371 * utils.c (producer_is_gcc): Likewise.
8372 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
8373 * dwarf2read.c (check_producer): Likewise.
8374
b052c4fb
PA
83752015-02-10 Pedro Alves <palves@redhat.com>
8376
8377 * infrun.c (displaced_step_fixup): Switch to the event thread
8378 before calling gdbarch_displaced_step_fixup.
8379
3ac240d4
AT
83802015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8381
8382 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
8383
c1cc6152
SM
83842015-02-10 Simon Marchi <simon.marchi@ericsson.com>
8385
8386 * ada-varobj.c (ada_name_of_child): Constify parent.
8387 (ada_path_expr_of_child): Same.
8388 (ada_value_of_child): Same.
8389 (ada_type_of_child): Same.
8390 * c-varobj.c (c_is_path_expr_parent): Same.
8391 (c_describe_child): Same.
8392 (c_name_of_child): Same.
8393 (c_value_of_child): Same.
8394 (c_type_of_child): Same.
8395 (cplus_number_of_children): Same.
8396 (cplus_describe_child): Constify var.
8397 (cplus_name_of_child): Constify parent.
8398 (cplus_value_of_child): Same.
8399 (cplus_type_of_child): Same.
8400 * jv-varobj.c (java_name_of_child): Same.
8401 (java_value_of_child): Same.
8402 (java_type_of_child): Same.
8403 * varobj.c (value_of_child): Same.
8404 (varobj_default_is_path_expr_parent): Constify var, parent and return
8405 value.
8406 (varobj_get_path_expr): Constify var, modify path_expr through
8407 mutable_var.
8408 (install_new_value): Constify parent.
8409 (value_of_child): Constify parent.
8410 * varobj.h (struct varobj): Constify parent.
8411 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
8412 type_of_child.
8413 (varobj_get_path_expr): Constify var.
8414 (varobj_get_path_expr_parent): Constify var and return value.
8415
c1ee9414
LM
84162015-02-10 Luis Machado <lgustavo@codesourcery.com>
8417
8418 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
8419 (arm_prologue_this_id): Move PC and SP limit checks to
8420 arm_prologue_unwind_stop_reason.
8421 (arm_prologue_unwind) <stop_reason> : Set to
8422 arm_prologue_unwind_stop_reason.
8423
f7de9aab
MW
84242015-02-09 Mark Wielaard <mjw@redhat.com>
8425
8426 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
8427 DW_LANG_Fortran08 as language_fortran.
8428
0b24eb2d
SDJ
84292015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
8430
8431 PR remote/17946
8432 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
8433 of pointer against char.
8434
a2c2acaf
MW
84352015-02-09 Mark Wielaard <mjw@redhat.com>
8436
8437 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
8438 (c_type_print_modifier): Likewise.
8439 * dwarf2read.c (read_tag_atomic_type): New function.
8440 (read_type_die_1): Handle DW_TAG_atomic_type.
8441 * gdbtypes.c (make_atomic_type): New function.
8442 (recursive_dump_type): Handle TYPE_ATOMIC.
8443 * gdbtypes.h (enum type_flag_values): Renumber.
8444 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
8445 (TYPE_ATOMIC): New macro.
8446 (make_atomic_type): Declare.
8447
31fd9caa
MM
84482015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8449
8450 * btrace.c (ftrace_find_call): Skip gaps.
8451 (ftrace_new_function): Initialize level.
8452 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
8453 (ftrace_new_switch): Update
8454 level computation.
8455 (ftrace_new_gap): New.
8456 (ftrace_update_function): Create new function after gap.
8457 (btrace_compute_ftrace_bts): Create gap on error.
8458 (btrace_stitch_bts): Update parameters. Clear trace if it
8459 becomes empty.
8460 (btrace_stitch_trace): Update parameters. Update callers.
8461 (btrace_clear): Reset the number of gaps.
8462 (btrace_insn_get): Return NULL if the iterator points to a gap.
8463 (btrace_insn_number): Return zero if the iterator points to a gap.
8464 (btrace_insn_end): Allow gaps at the end.
8465 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
8466 (btrace_find_insn_by_number): Assert that the found iterator does
8467 not point to a gap.
8468 (btrace_call_next, btrace_call_prev): Assert that the last function
8469 is not a gap.
8470 * btrace.h (btrace_bts_error): New.
8471 (btrace_function): Update comment.
8472 (btrace_function) <insn, insn_offset, number>: Update comment.
8473 (btrace_function) <errcode>: New.
8474 (btrace_thread_info) <ngaps>: New.
8475 (btrace_thread_info) <replay>: Update comment.
8476 (btrace_insn_get): Update comment.
8477 * record-btrace.c (btrace_ui_out_decode_error): New.
8478 (record_btrace_info): Print number of gaps.
8479 (btrace_insn_history, btrace_call_history): Call
8480 btrace_ui_out_decode_error for gaps.
8481 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
8482
afb778a2
MM
84832015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8484
8485 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
8486 * nat/linux-btrace.c: (btrace_this_cpu): New.
8487 (cpu_supports_bts): Call btrace_this_cpu.
8488 (intel_supports_bts): Add cpu parameter.
8489
7d5c24b3
MM
84902015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8491
8492 * btrace.h (btrace_insn_class): New.
8493 (btrace_insn) <size, iclass>: New.
8494 * btrace.c (ftrace_find_call): Update parameters. Update users.
8495 Use instruction classification.
8496 (ftrace_new_return): Update parameters. Update users.
8497 (ftrace_update_function): Update parameters. Update users. Use
8498 instruction classification.
8499 (ftrace_update_insns): Update parameters. Update users.
8500 (ftrace_classify_insn): New.
8501 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
8502 TRY_CATCH around call to gdb_insn_length.
8503
76235df1
MM
85042015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8505
8506 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
8507 Update parameters. Update users.
8508
d33501a5
MM
85092015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8510
8511 * btrace.c (parse_xml_btrace_conf_bts): Add size.
8512 (btrace_conf_bts_attributes): New.
8513 (btrace_conf_children): Add attributes.
8514 * common/btrace-common.h (btrace_config_bts): New.
8515 (btrace_config)<bts>: New.
8516 (btrace_config): Update comment.
8517 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
8518 Use config.
8519 * features/btrace-conf.dtd: Increment version. Add size
8520 attribute to bts element.
8521 * record-btrace.c (set_record_btrace_bts_cmdlist,
8522 show_record_btrace_bts_cmdlist): New.
8523 (record_btrace_adjust_size, record_btrace_print_bts_conf,
8524 record_btrace_print_conf, cmd_set_record_btrace_bts,
8525 cmd_show_record_btrace_bts): New.
8526 (record_btrace_info): Call record_btrace_print_conf.
8527 (_initialize_record_btrace): Add commands.
8528 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
8529 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
8530 (btrace_sync_conf): Synchronize bts size.
8531 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
8532 * NEWS: Announce new commands and new packets.
8533
f4abbc16
MM
85342015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8535
8536 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
8537 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
8538 (x86_linux_btrace_conf): New.
8539 (x86_linux_create_target): Initialize to_btrace_conf.
8540 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
8541 Check format. Split into this and ...
8542 (linux_enable_bts): ... this.
8543 (linux_btrace_conf): New.
8544 (perf_event_skip_record): Renamed into ...
8545 (perf_event_skip_bts_record): ... this. Updated users.
8546 (linux_disable_btrace): Split into this and ...
8547 (linux_disable_bts): ... this.
8548 (linux_read_btrace): Check format.
8549 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
8550 (linux_btrace_conf): New.
8551 (btrace_target_info)<ptid>: Moved.
8552 (btrace_target_info)<conf>: New.
8553 (btrace_target_info): Split into this and ...
8554 (btrace_tinfo_bts): ... this. Updated users.
8555 * btrace.c (btrace_enable): Update parameters.
8556 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
8557 (btrace_conf_children, btrace_conf_attributes)
8558 (btrace_conf_elements): New.
8559 * btrace.h (btrace_enable): Update parameters.
8560 (btrace_conf, parse_xml_btrace_conf): New.
8561 * common/btrace-common.h (btrace_config): New.
8562 * feature/btrace-conf.dtd: New.
8563 * record-btrace.c (record_btrace_conf): New.
8564 (record_btrace_cmdlist): New.
8565 (record_btrace_enable_warn, record_btrace_open): Pass
8566 &record_btrace_conf.
8567 (record_btrace_info): Print recording format.
8568 (cmd_record_btrace_bts_start): New.
8569 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
8570 (_initialize_record_btrace): Add "record btrace bts" subcommand.
8571 Add "record bts" alias command.
8572 * remote.c (remote_state)<btrace_config>: New.
8573 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
8574 (remote_protocol_features): Add qXfer:btrace-conf:read.
8575 (remote_open_1): Call remote_btrace_reset.
8576 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
8577 (btrace_target_info)<conf>: New.
8578 (btrace_sync_conf, btrace_read_config): New.
8579 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
8580 btrace_read_conf.
8581 (remote_btrace_conf): New.
8582 (init_remote_ops): Initialize to_btrace_conf.
8583 (_initialize_remote): Add qXfer:btrace-conf packet.
8584 * target.c (target_enable_btrace): Update parameters.
8585 (target_btrace_conf): New.
8586 * target.h (target_enable_btrace): Update parameters.
8587 (target_btrace_conf): New.
8588 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
8589 (target_ops)<to_enable_btrace>: Update parameters and comment.
8590 (target_ops)<to_btrace_conf>: New.
8591 * target-delegates: Regenerate.
8592 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
8593 (target_debug_print_const_struct_btrace_target_info_p): New.
8594 * NEWS: Announce new command and new packet.
8595
aadf7753
MM
85962015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8597
8598 * nat/linux-btrace.h (perf_event_buffer): New.
8599 (btrace_target_info) <buffer, size, data_head>: Replace with ...
8600 <bts>: ... this.
8601 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
8602 (perf_event_buffer_size, perf_event_buffer_begin)
8603 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
8604 Updated users.
8605 (perf_event_new_data): New.
8606
043c3577
MM
86072015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8608
8609 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
8610 * record-btrace.c (record_btrace_open): Remove call to
8611 target_supports_btrace.
8612 * remote.c (remote_supports_btrace): Update parameters.
8613 * target.c (target_supports_btrace): Update parameters.
8614 * target.h (to_supports_btrace, target_supports_btrace): Update
8615 parameters.
8616 * target-delegates.c: Regenerate.
8617 * target-debug.h (target_debug_print_enum_btrace_format): New.
8618 * nat/linux-btrace.c
8619 (kernel_supports_btrace): Rename into ...
8620 (kernel_supports_bts): ... this. Update users. Update warning text.
8621 (intel_supports_btrace): Rename into ...
8622 (intel_supports_bts): ... this. Update users.
8623 (cpu_supports_btrace): Rename into ...
8624 (cpu_supports_bts): ... this. Update users.
8625 (linux_supports_btrace): Update parameters. Split into this and ...
8626 (linux_supports_bts): ... this.
8627 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
8628
734b0e4b
MM
86292015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8630
8631 * Makefile.in (SFILES): Add common/btrace-common.c.
8632 (COMMON_OBS): Add common/btrace-common.o.
8633 (btrace-common.o): Add build rules.
8634 * btrace.c (parse_xml_btrace): Update parameters.
8635 (parse_xml_btrace_block): Set format field.
8636 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
8637 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
8638 (btrace_compute_ftrace): Split into this and...
8639 (btrace_compute_ftrace_bts): ...this.
8640 (btrace_stitch_trace): Split into this and...
8641 (btrace_stitch_bts): ...this.
8642 * btrace.h (parse_xml_btrace): Update parameters.
8643 (make_cleanup_btrace_data): New.
8644 * common/btrace-common.c: New.
8645 * common/btrace-common.h: Include common-defs.h.
8646 (btrace_block_s): Update comment.
8647 (btrace_format): New.
8648 (btrace_format_string): New.
8649 (btrace_data_bts): New.
8650 (btrace_data): New.
8651 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
8652 * remote.c (remote_read_btrace): Update parameters.
8653 * target.c (target_read_btrace): Update parameters.
8654 * target.h (target_read_btrace): Update parameters.
8655 (target_ops)<to_read_btrace>: Update parameters.
8656 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
8657 * target-delegates.c: Regenerate.
8658 * target-debug (target_debug_print_struct_btrace_data_p): New.
8659 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
8660 (linux_read_bts): ...this.
8661 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
8662
bd2e0e9e
DE
86632015-02-06 Doug Evans <dje@google.com>
8664
8665 * remote-m32r-sdi.c: Include symfile.h.
8666
f176c4b5
DE
86672015-02-06 Doug Evans <dje@google.com>
8668
8669 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
8670 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
8671 to here.
8672
d6c146e9
PA
86732015-02-06 Pedro Alves <palves@redhat.com>
8674
8675 * linux-thread-db.c (find_new_threads_callback): Add debug output.
8676
b9d61307
SM
86772015-02-06 Simon Marchi <simon.marchi@ericsson.com>
8678
8679 PR gdb/15678
8680 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
8681 (enable_count_command): Check args for NULL value.
8682
e9fbd043
DE
86832015-02-05 Doug Evans <xdje42@gmail.com>
8684
8685 * guile/scm-frame.c: Fix spelling errors in a comment.
8686
881d5d5d
JK
86872015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8688
8689 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
8690 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
8691 return type.
8692
20ba1ce6
PA
86932015-02-04 Pedro Alves <palves@redhat.com>
8694
8695 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
8696 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
8697 returns true.
8698 (resume_stopped_resumed_lwps): Don't check whether the thread is
8699 marked as executing.
8700 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
8701
f962539a
AA
87022015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8703
8704 * regset.h (struct regset): Add flags field.
8705 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
8706 * corelow.c (get_core_register_section): Add warning if the size
8707 exceeds the requested size and the regset does not have the
8708 REGSET_VARIABLE_SIZE flag set.
8709 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
8710 flag.
8711 * armbsd-tdep.c (armbsd_gregset): Likewise.
8712 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8713 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
8714 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
8715 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
8716
dde9acd6
AA
87172015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8718
8719 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
8720 For ".reg-xstate", explicitly specify the requested section size
8721 via X86_XSTATE_SIZE instead of just 0 on input and
8722 X86_XSTATE_MAX_SIZE on output.
8723 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
8724 Likewise.
8725
1528345d
AA
87262015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8727
8728 PR corefiles/17808:
8729 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
8730 function type, particularly its SIZE parameter.
8731 * gdbarch.h: Regenerate.
8732 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
8733 actual against required size using ">=" instead of "==".
8734 (amd64_collect_fpregset): Likewise.
8735 * i386-tdep.c (i386_supply_gregset): Likewise.
8736 (i386_collect_gregset): Likewise.
8737 (i386_supply_fpregset): Likewise.
8738 (i386_collect_fpregset): Likewise.
8739 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
8740 (mips_fill_gregset_wrapper): Likewise.
8741 (mips_supply_fpregset_wrapper): Likewise.
8742 (mips_fill_fpregset_wrapper): Likewise.
8743 (mips64_supply_gregset_wrapper): Likewise.
8744 (mips64_fill_gregset_wrapper): Likewise.
8745 (mips64_supply_fpregset_wrapper): Likewise.
8746 (mips64_fill_fpregset_wrapper): Likewise.
8747 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
8748 (am33_supply_fpregset_method): Likewise.
8749 (am33_collect_gregset_method): Likewise.
8750 (am33_collect_fpregset_method): Likewise.
8751
518be979
DE
87522015-02-04 Doug Evans <dje@google.com>
8753 Pedro Alves <palves@redhat.com>
8754 Eli Zaretskii <eliz@gnu.org>
8755
8756 PR tui/17810
8757 * tui/tui-command.c (tui_refresh_cmd_win): New function.
8758 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
8759 * tui/tui-file.c: #include tui/tui-command.h.
8760 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
8761 (tui_file_flush): Refresh command window if stream is gdb_stdout.
8762 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
8763
80bd5fab
PA
87642015-02-04 Pedro Alves <palves@redhat.com>
8765
8766 Fix build breakage.
8767 * event-loop.c (gdb_do_one_event): Add default switch case.
8768
a7606d80
JK
87692015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8770
8771 Filter out inferior gcc option -fpreprocessed.
8772 * compile/compile.c (filter_args): New function.
8773 (get_args): Use it.
8774
70b66289
PA
87752015-02-03 Pedro Alves <palves@redhat.com>
8776
8777 * event-loop.c: Don't declare nor define a queue type for
8778 gdb_event_p.
8779 (event_queue): Delete.
8780 (create_event, create_file_event, gdb_event_xfree)
8781 (initialize_event_loop, process_event): Delete.
8782 (gdb_do_one_event): Return as soon as one event is handled.
8783 (handle_file_event): Change prototype. Used the passed in
8784 file_handler pointer and ready_mask instead of looping over all
8785 file handlers.
8786 (gdb_wait_for_event): Update the poll/select timeouts before
8787 blocking. Run event handlers directly instead of queueing events.
8788 Return as soon as one event is handled.
8789 (struct async_event_handler_data): Delete.
8790 (invoke_async_event_handler): Delete.
8791 (check_async_event_handlers): Change return type to int. Run
8792 event handlers directly instead of queueing events. Return as
8793 soon as one event is handled.
8794 (handle_timer_event): Delete.
8795 (update_wait_timeout): New function, factored out from
8796 poll_timers.
8797 (poll_timers): Reimplement.
8798 * event-loop.h (initialize_event_loop): Delete declaration.
8799 * top.c (gdb_init): Don't call initialize_event_loop.
8800
b7d2e916
PA
88012015-02-03 Pedro Alves <palves@redhat.com>
8802
8803 * event-loop.c (clear_async_event_handler): New function.
8804 * event-loop.h (clear_async_event_handler): New declaration.
8805 * record-btrace.c (record_btrace_async): New function.
8806 (init_record_btrace_ops): Install record_btrace_async.
8807 * record-full.c (record_full_async): New function.
8808 (record_full_resume): Don't mark the async event source here.
8809 (init_record_full_ops): Install record_full_async.
8810 (record_full_core_resume): Don't mark the async event source here.
8811 (init_record_full_core_ops): Install record_full_async.
8812 * remote.c (remote_async): Mark and clear the async stop reply
8813 queue event-loop token as appropriate.
8814
d9d41e78
PA
88152015-02-03 Pedro Alves <palves@redhat.com>
8816
8817 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
8818 target_is_async_p instead of target_can_async.
8819 (linux_nat_wait): Use target_is_async_p instead of
8820 target_can_async. Don't enable async here.
8821 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
8822 target_is_async_p instead of target_can_async.
8823
aa3de267
SM
88242015-02-02 Simon Marchi <simon.marchi@ericsson.com>
8825
8826 * varobj.h (lang_varobj_ops): Mention which return values need
8827 to be freed.
8828
2c811c0f
JB
88292015-02-02 Joel Brobecker <brobecker@adacore.com>
8830
8831 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
8832
b1eedac9
JB
88332015-02-02 Joel Brobecker <brobecker@adacore.com>
8834
8835 PR gdb/17856:
8836 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
8837 results found in the cache.
8838
66c168ae
JB
88392015-02-02 Joel Brobecker <brobecker@adacore.com>
8840
8841 PR gdb/17854:
8842 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
8843 when allocating a new one.
8844
4bdc02b2
TT
88452015-02-01 Tom Tromey <tom@tromey.com>
8846
8847 * MAINTAINERS: Remove myself.
8848
ae6ae975
DE
88492015-01-31 Doug Evans <xdje42@gmail.com>
8850
8851 * dwarf2read.c (process_structure_scope): Update setting of
8852 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
8853 * gdbtypes.c (internal_type_vptr_fieldno): New function.
8854 (set_type_vptr_fieldno): New function.
8855 (internal_type_vptr_basetype): New function.
8856 (set_type_vptr_basetype): New function.
8857 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
8858 TYPE_VPTR_BASETYPE.
8859 (allocate_cplus_struct_type): Initialize vptr_fieldno.
8860 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
8861 (print_cplus_stuff): ... moved here.
8862 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
8863 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
8864 moved to ...
8865 (struct cplus_struct_type): ... here. All uses updated.
8866 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
8867 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
8868 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
8869 * stabsread.c (read_tilde_fields): Update setting of
8870 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
8871
09e2d7c7
DE
88722015-01-31 Doug Evans <xdje42@gmail.com>
8873
8874 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
8875 to self_p.
8876 (cp_print_class_member): Rename local domain to self_type.
8877 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
8878 domain_type to self_type.
8879 (set_die_type) <need_gnat_info>: Handle
8880 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
8881 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
8882 TYPE_SPECIFIC_SELF_TYPE.
8883 * gdbtypes.c (internal_type_self_type): New function.
8884 (set_type_self_type): New function.
8885 (smash_to_memberptr_type): Rename parameter domain to self_type.
8886 Update setting of TYPE_SELF_TYPE.
8887 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
8888 (smash_to_method_type): Rename parameter domain to self_type.
8889 Update setting of TYPE_SELF_TYPE.
8890 (check_stub_method): Call smash_to_method_type.
8891 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
8892 (copy_type_recursive): Ditto.
8893 * gdbtypes.h (enum type_specific_kind): New value
8894 TYPE_SPECIFIC_SELF_TYPE.
8895 (struct main_type) <type_specific>: New member self_type.
8896 (struct cplus_struct_type) <fn_field.type>: Update comment.
8897 (TYPE_SELF_TYPE): Rewrite.
8898 (internal_type_self_type, set_type_self_type): Declare.
8899 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
8900 self_type.
8901 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
8902 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
8903 TYPE_TARGET_TYPE.
8904 * stabsread.c (read_member_functions): Mark methods with
8905 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
8906 TYPE_SELF_TYPE.
8907
4bfb94b8
DE
89082015-01-31 Doug Evans <xdje42@gmail.com>
8909
8910 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
8911 All uses updated.
8912
5f4ce105
DE
89132015-01-31 Doug Evans <xdje42@gmail.com>
8914
8915 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
8916 or unions. Return zero if union.
8917 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
8918 (gnuv3_rtti_type): Pass already-check_typedef'd value to
8919 gnuv3_get_vtable.
8920 (compute_vtable_size): Assert only passed structs.
8921 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
8922
f6b3afbf
DE
89232015-01-31 Doug Evans <xdje42@gmail.com>
8924
8925 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
8926 kinds.
8927
cfb069a8
GB
89282015-01-31 Gary Benson <gbenson@redhat.com>
8929 Doug Evans <dje@google.com>
8930
8931 PR cli/9007
8932 PR cli/11920
8933 PR cli/15548
8934 * cli/cli-cmds.c (complete_command): Notify user if max-completions
8935 reached.
8936 * common/common-exceptions.h (enum errors)
8937 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
8938 * completer.h (get_max_completions_reached_message): New declaration.
8939 (max_completions): Likewise.
8940 (completion_tracker_t): New typedef.
8941 (new_completion_tracker): New declaration.
8942 (make_cleanup_free_completion_tracker): Likewise.
8943 (maybe_add_completion_enum): New enum.
8944 (maybe_add_completion): New declaration.
8945 (throw_max_completions_reached_error): Likewise.
8946 * completer.c (max_completions): New global variable.
8947 (new_completion_tracker): New function.
8948 (free_completion_tracker): Likewise.
8949 (make_cleanup_free_completion_tracker): Likewise.
8950 (maybe_add_completions): Likewise.
8951 (throw_max_completions_reached_error): Likewise.
8952 (complete_line): Remove duplicates and limit result to max_completions
8953 entries.
8954 (get_max_completions_reached_message): New function.
8955 (gdb_display_match_list): Handle max_completions.
8956 (_initialize_completer): New declaration and function.
8957 * symtab.c: Include completer.h.
8958 (completion_tracker): New static variable.
8959 (completion_list_add_name): Call maybe_add_completion.
8960 (default_make_symbol_completion_list_break_on_1): Renamed from
8961 default_make_symbol_completion_list_break_on. Maintain
8962 completion_tracker across calls to completion_list_add_name.
8963 (default_make_symbol_completion_list_break_on): New function.
8964 * top.c (init_main): Set rl_completion_display_matches_hook.
8965 * tui/tui-io.c: Include completer.h.
8966 (tui_old_rl_display_matches_hook): New static global.
8967 (tui_rl_display_match_list): Notify user if max-completions reached.
8968 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
8969 * NEWS (New Options): Mention set/show max-completions.
8970
e11c72c7
GB
89712015-01-31 Gary Benson <gbenson@redhat.com>
8972
8973 * symtab.c (struct add_name_data) <code>: New field.
8974 Updated comments.
8975 (add_symtab_completions): New function.
8976 (symtab_expansion_callback): Likewise.
8977 (default_make_symbol_completion_list_break_on): Set datum.code.
8978 Move minimal symbol scan before calling expand_symtabs_matching.
8979 Scan known primary symtabs for externs and statics before calling
8980 expand_symtabs_matching. Pass symtab_expansion_callback as
8981 expansion_notify argument to expand_symtabs_matching. Do not scan
8982 primary symtabs for externs and statics after calling
8983 expand_symtabs_matching.
8984
276d885b
GB
89852015-01-31 Gary Benson <gbenson@redhat.com>
8986
8987 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
8988 (struct quick_symbol_functions) <expand_symtabs_matching>:
8989 New argument expansion_notify. All uses updated.
8990 (expand_symtabs_matching): New argument expansion_notify.
8991 All uses updated.
8992 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8993 Also print expansion notify.
8994 * symtab.c (expand_symtabs_matching_via_partial): Call
8995 expansion_notify whenever a partial symbol table is expanded.
8996 * dwarf2read.c (dw2_expand_symtabs_matching): Call
8997 expansion_notify whenever a symbol table is instantiated.
8998
82083d6d
DE
89992015-01-31 Doug Evans <xdje42@gmail.com>
9000
9001 * cli-out.c: #include completer.h, readline/readline.h.
9002 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
9003 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
9004 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
9005 * cli-out.h (cli_display_match_list): Declare.
9006 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
9007 (ELLIPSIS_LEN): Ditto.
9008 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
9009 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
9010 (gdb_fnprint, gdb_print_filename): Ditto.
9011 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
9012 (gdb_display_match_list): Ditto.
9013 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
9014 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
9015 (mld_beep_ftype, mld_read_key_ftype): Ditto.
9016 (match_list_displayer): New struct.
9017 (gdb_display_match_list): Declare.
9018 * top.c (init_main): Set rl_completion_display_matches_hook.
9019 * tui/tui-io.c: #include completer.h.
9020 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
9021 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
9022 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
9023 (tui_mld_getc, tui_mld_read_key): Ditto.
9024 (tui_rl_display_match_list): Rewrite.
9025 (tui_handle_resize_during_io): New arg for_completion. All callers
9026 updated.
9027
f57d2163
DE
90282015-01-31 Doug Evans <xdje42@gmail.com>
9029
9030 Add symbol lookup cache.
9031 * NEWS: Document new options and commands.
9032 * symtab.c (symbol_cache_key): New static global.
9033 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
9034 (SYMBOL_LOOKUP_FAILED): New macro.
9035 (symbol_cache_slot_state): New enum.
9036 (block_symbol_cache): New struct.
9037 (symbol_cache): New struct.
9038 (new_symbol_cache_size, symbol_cache_size): New static globals.
9039 (hash_symbol_entry, eq_symbol_entry): New functions.
9040 (symbol_cache_byte_size, resize_symbol_cache): New functions.
9041 (make_symbol_cache, free_symbol_cache): New functions.
9042 (get_symbol_cache, symbol_cache_cleanup): New function.
9043 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
9044 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
9045 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
9046 (symbol_cache_flush, symbol_cache_dump): New functions.
9047 (maintenance_print_symbol_cache): New function.
9048 (maintenance_flush_symbol_cache): New function.
9049 (symbol_cache_stats): New function.
9050 (maintenance_print_symbol_cache_statistics): New function.
9051 (symtab_new_objfile_observer): New function.
9052 (symtab_free_objfile_observer): New function.
9053 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
9054 (_initialize_symtab): Init symbol_cache_key. New parameter
9055 maint symbol-cache-size. New maint commands print symbol-cache,
9056 print symbol-cache-statistics, flush-symbol-cache.
9057 Install new_objfile, free_objfile observers.
9058
e700d1b2
JB
90592015-01-31 Joel Brobecker <brobecker@adacore.com>
9060
9061 PR symtab/17855
9062 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
9063 to end.
9064
9f050062
DE
90652015-01-31 Doug Evans <xdje42@gmail.com>
9066
9067 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
9068 * auto-load.c: #include ctype.h.
9069 (struct auto_load_pspace_info): Replace member loaded_scripts with
9070 new members loaded_script_files, loaded_script_texts.
9071 (auto_load_pspace_data_cleanup): Update.
9072 (init_loaded_scripts_info): Update.
9073 (get_auto_load_pspace_data_for_loading): Update.
9074 (maybe_add_script_file): Renamed from maybe_add_script. All callers
9075 updated.
9076 (maybe_add_script_text): New function.
9077 (clear_section_scripts): Update.
9078 (source_script_file, execute_script_contents): New functions.
9079 (source_section_scripts): Add support for
9080 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
9081 (print_scripts): New function.
9082 (auto_load_info_scripts): Also print inlined scripts.
9083 (maybe_print_unsupported_script_warning): Renamed from
9084 unsupported_script_warning_print. All callers updated.
9085 (maybe_print_script_not_found_warning): Renamed from
9086 script_not_found_warning_print. All callers updated.
9087 * extension-priv.h (struct extension_language_script_ops): New member
9088 objfile_script_executor.
9089 * extension.c (ext_lang_objfile_script_executor): New function.
9090 * extension.h (objfile_script_executor_func): New typedef.
9091 (ext_lang_objfile_script_executor): Declare.
9092 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
9093 * guile/guile.c (guile_extension_script_ops): Update.
9094 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
9095 * python/python.c (python_extension_script_ops): Update.
9096 (gdbpy_execute_objfile_script): New function.
9097
312809f8
EZ
90982015-01-31 Eli Zaretskii <eliz@gnu.org>
9099
9100 * tui/tui-io.c (tui_expand_tabs): New function.
9101 (tui_puts, tui_redisplay_readline): Expand TABs into the
9102 appropriate number of spaces.
9103 * tui/tui-regs.c: Include tui-io.h.
9104 (tui_register_format): Call tui_expand_tabs to expand TABs into
9105 the appropriate number of spaces.
9106 * tui/tui-io.h: Add prototype for tui_expand_tabs.
9107
b6577aab
DE
91082015-01-30 Doug Evans <dje@google.com>
9109
9110 * NEWS: "info source" command now display producer string if present.
9111 * source.c (source_info): Print producer string if present.
9112
6da58d3e
SM
91132015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9114
9115 * varobj.c (varobj_delete): Fix comment.
9116
837ce252
SM
91172015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9118
9119 * varobj.c (create_child): Modify comment.
9120
b09e2c59
SM
91212015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9122
9123 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
9124 parameter.
9125 (ada_name_of_variable): Same.
9126 (ada_path_expr_of_child): Same.
9127 (ada_value_of_variable): Same.
9128 (ada_value_is_changeable_p): Same.
9129 (ada_value_has_mutated): Same.
9130 * c-varobj.c (varobj_is_anonymous_child): Same.
9131 (c_is_path_expr_parent): Same.
9132 (c_number_of_children): Same.
9133 (c_name_of_variable): Same.
9134 (c_path_expr_of_child): Same.
9135 (get_type): Same.
9136 (c_value_of_variable): Same.
9137 (cplus_number_of_children): Same.
9138 (cplus_name_of_variable): Same.
9139 (cplus_path_expr_of_child): Same.
9140 (cplus_value_of_variable): Same.
9141 * jv-varobj.c (java_number_of_children): Same.
9142 (java_name_of_variable): Same.
9143 (java_path_expr_of_child): Same.
9144 (java_value_of_variable): Same.
9145 * varobj.c (number_of_children): Same.
9146 (name_of_variable): Same.
9147 (is_root_p): Same.
9148 (varobj_ensure_python_env): Same.
9149 (varobj_get_objname): Same.
9150 (varobj_get_expression): Same.
9151 (varobj_get_display_format): Same.
9152 (varobj_get_display_hint): Same.
9153 (varobj_has_more): Same.
9154 (varobj_get_thread_id): Same.
9155 (varobj_get_frozen): Same.
9156 (dynamic_varobj_has_child_method): Same.
9157 (varobj_get_gdb_type): Same.
9158 (is_path_expr_parent): Same.
9159 (varobj_default_is_path_expr_parent): Same.
9160 (varobj_get_language): Same.
9161 (varobj_get_attributes): Same.
9162 (varobj_is_dynamic_p): Same.
9163 (varobj_get_child_range): Same.
9164 (varobj_value_has_mutated): Same.
9165 (varobj_get_value_type): Same.
9166 (number_of_children): Same.
9167 (name_of_variable): Same.
9168 (check_scope): Same.
9169 (varobj_editable_p): Same.
9170 (varobj_value_is_changeable_p): Same.
9171 (varobj_floating_p): Same.
9172 (varobj_default_value_is_changeable_p): Same.
9173
2568868e
SM
91742015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9175
9176 * varobj.c (varobj_get_path_expr): Set var->path_expr.
9177 * c-varobj.c (c_path_expr_of_child): Set local var instead of
9178 child->path_expr.
9179 (cplus_path_expr_of_child): Same.
9180
ca83fa81
SM
91812015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9182
9183 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9184 result.
9185 (mi_cmd_var_info_expression): Same.
9186 * varobj.c (varobj_get_expression): Mention in the comment that
9187 the result must by freed by the caller.
9188
afa269ae
SM
91892015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9190
9191 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9192 varobj_get_type.
9193 (varobj_update_one): Same.
9194 * varobj.c (update_type_if_necessary): Free curr_type_str and
9195 new_type_str.
9196 (varobj_get_type): Specify in comment that the result needs to be
9197 freed by the caller.
9198
cd366ee8
DE
91992015-01-29 Doug Evans <dje@google.com>
9200
9201 PR symtab/17890
9202 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9203
38360086
MW
92042015-01-25 Mark Wielaard <mjw@redhat.com>
9205
9206 * dwarf2read.c (checkproducer): Call producer_is_gcc.
9207 * utils.c (producer_is_gcc_ge_4): Likewise.
9208 (producer_is_gcc): New function.
9209 * utils.h (producer_is_gcc): New declaration.
9210
df25ebbd
JB
92112015-01-29 Joel Brobecker <brobecker@adacore.com>
9212
9213 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9214 kind.
9215 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9216 parameter by "addr_stack" parameter.
9217 (resolve_dynamic_range): Replace "addr" parameter by
9218 "stack_addr" parameter. Update function documentation.
9219 Update code accordingly.
9220 (resolve_dynamic_array, resolve_dynamic_union)
9221 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
9222 (resolve_dynamic_type): Update code, following the changes made
9223 to resolve_dynamic_type_internal's interface.
9224 * dwarf2loc.h (struct property_addr_info): New.
9225 (dwarf2_evaluate_property): Replace "address" parameter
9226 by "addr_stack" parameter. Adjust function documentation.
9227 (struct dwarf2_offset_baton): New.
9228 (struct dwarf2_property_baton): Update documentation of
9229 field "referenced_type" to be more general. New field
9230 "offset_info" in union data field.
9231 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
9232 parameter by "addr_stack" parameter. Adjust code accordingly.
9233 Add support for PROP_ADDR_OFFSET properties.
9234 * dwarf2read.c (attr_to_dynamic_prop): Add support for
9235 DW_AT_data_member_location attributes as well. Use case
9236 statements instead of if/else condition.
9237
4a0ca9ec
JB
92382015-01-29 Joel Brobecker <brobecker@adacore.com>
9239
9240 * ada-varobj.c (ada_varobj_get_array_number_of_children):
9241 Return zero if PARENT_VALUE is NULL and parent_type's
9242 range type is dynamic.
9243
ddb87a81
JB
92442015-01-29 Joel Brobecker <brobecker@adacore.com>
9245
9246 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
9247 nonzero if the type's subtype is dynamic.
9248 (resolve_dynamic_range): Also resolve the range's subtype.
9249
3d7ad9b4 92502015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 9251
3d7ad9b4 9252 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
9253 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
9254
3a8b707a
DE
92552015-01-27 Doug Evans <dje@google.com>
9256
9257 * NEWS: Mention gdb.Objfile.username.
9258 * python/py-objfile.c (objfpy_get_username): New function.
9259 (objfile_getset): Add "username".
9260
d35b90fb
MW
92612015-01-24 Mark Wielaard <mjw@redhat.com>
9262
9263 * stack.c (return_command): Markup warning message with _.
9264
734ae125
DE
92652015-01-24 Doug Evans <xdje42@gmail.com>
9266
9267 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
9268
527f3840
JK
92692015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9270
9271 Fix 100x slowdown regression on DWZ files.
9272 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
9273 (struct line_header): Add offset and offset_in_dwz.
9274 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
9275 (free_line_header_voidp): New declaration.
9276 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
9277 functions.
9278 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
9279 (handle_DW_AT_stmt_list): Use line_header_hash.
9280 (free_line_header_voidp): New function.
9281 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
9282 (dwarf_decode_lines): New parameter decode_mapping, use it.
9283 (dwarf2_free_objfile): Free line_header_hash.
9284
f7e5394d
SM
92852015-01-23 Simon Marchi <simon.marchi@ericsson.com>
9286
9287 PR gdb/17416
9288 * valops.c (value_rtti_indirect_type): Catch exception thrown by
9289 value_ind.
9290
743649fd
MW
92912015-01-15 Mark Wielaard <mjw@redhat.com>
9292
9293 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
9294 DW_AT_noreturn.
9295 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
9296 calling_convention an 8 bit bit field.
9297 (TYPE_NO_RETURN): New macro.
9298 * infcmd.c (finish_command): Query if function does not return
9299 normally.
9300 * stack.c (return_command): Likewise.
9301
198297aa
PA
93022015-01-23 Pedro Alves <palves@redhat.com>
9303
9304 * linux-nat.c (linux_is_async_p): New macro.
9305 (linux_nat_is_async_p):
9306 (linux_nat_terminal_inferior): Check whether the target can async
9307 instead of whether it is already async.
9308 (linux_nat_terminal_ours): Don't check whether the target is
9309 async.
9310 (linux_async_pipe): Use linux_is_async_p.
9311
253828f1
JK
93122015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9313
9314 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
9315 '-ascending'.
9316 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
9317 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
9318 Sort tp_array using tp_array_compar.
9319 (_initialize_thread): Extend thread_apply_all_command help.
9320
f0e8c4c5
JK
93212015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9322
9323 * corelow.c (core_open): Call also thread_command.
9324 * gdbthread.h (thread_command): New prototype moved from ...
9325 * thread.c (thread_command): ... here.
9326 (thread_command): Make it global.
9327
03b79603
PA
93282015-01-22 Pedro Alves <palves@redhat.com>
9329
9330 * configure.ac [*mingw32*]: Check $curses_found instead of
9331 $prefer_curses.
9332 * configure: Regenerate.
9333 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
9334 HAVE_NCURSES_NCURSES_H checks.
9335
6b8a872f
EZ
93362015-01-22 Eli Zaretskii <eliz@gnu.org>
9337
bbbbffbb 9338 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
9339 fails with the 1st arg NULL, try again with "unknown". Don't test
9340 the "cup" capability: it isn't supported by the Windows port of
9341 ncurses, but the Windows console driver is still capable of
9342 supporting TUI.
9343
4b62a76e
JK
93442015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9345
9346 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
9347
82a864f9
EZ
93482015-01-22 Eli Zaretskii <eliz@gnu.org>
9349
9350 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
9351 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
9352 reason that "make TAGS" is broken.
9353
b35018fd
CG
93542015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
9355
9356 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
9357 and check additional store instructions.
9358
ffbc4646
WW
93592015-01-21 Wei-cheng Wang <cole945@gmail.com>
9360
9361 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
9362
ddeca1df
WW
93632015-01-21 Wei-cheng Wang <cole945@gmail.com>
9364
9365 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
9366 ppc_canonicalize_syscall, ppc_linux_syscall_record,
9367 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
9368 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9369 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
9370 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
9371 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
9372 ppc_process_record_op19, ppc_process_record_op31,
9373 ppc_process_record_op59, ppc_process_record_op60,
9374 ppc_process_record_op63): Likewise.
9375
049bb5de
JB
93762015-01-20 Joel Brobecker <brobecker@adacore.com>
9377
9378 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
9379 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
9380 strerror.
9381
42b87c63 93822015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
9383
9384 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
9385 ppc_process_record_op31, ppc_process_record_op59,
9386 ppc_process_record_op60, ppc_process_record_op63,
9387 ppc_process_record): Fix -Wformat warning.
9388 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
9389 Remove unused variables.
9390
569340fc
CG
93912015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
9392
9393 * MAINTAINERS (Write After Approval): Add "Chen Gang".
9394
63413d85
EZ
93952015-01-19 Eli Zaretskii <eliz@gnu.org>
9396
9397 * configure.ac [*mingw32*]: Only add windows-termcap.o to
9398 CONFIG_OBS if not building with a curses library.
9399 * configure: Regenerate.
9400
9401 * windows-termcap.c: Include defs.h. Make the whole body empty if
9402 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
9403 HAVE_NCURSES_NCURSES_H is defined.
9404
16d8013c
JB
94052015-01-19 Joel Brobecker <brobecker@adacore.com>
9406
9407 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
9408 from end of line to start of next line.
9409
cf90fd9a
WW
94102015-01-17 Wei-cheng Wang <cole945@gmail.com>
9411
9412 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
9413 Scan PLT stub backward for reverse debugging.
9414 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9415
b4cdae6f
WW
94162015-01-17 Wei-cheng Wang <cole945@gmail.com>
9417 Ulrich Weigand <uweigand@de.ibm.com>
9418
9419 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
9420 gdb_target_obs.
9421 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
9422 record.
9423 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
9424 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
9425 (ppc_linux_init_abi): Set process_record, process_record_signal.
9426 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
9427 ppc_linux_record_tdep to gdbarch_tdep.
9428 (ppc_process_record): New declaration.
9429 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
9430 ppc_process_record_op19, ppc_process_record_op31,
9431 ppc_process_record_op59, ppc_process_record_op60,
9432 ppc_process_record_op63, ppc_process_record): New functions.
9433
2608dbf8
WW
94342015-01-17 Wei-cheng Wang <cole945@gmail.com>
9435
9436 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
9437 rs6000_in_function_epilogue_frame_p and add an argument
9438 for frame_info.
9439 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
9440 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
9441 New functions.
9442 (rs6000_epilogue_frame_unwind): New.
9443 (rs6000_gdbarch_init): Append epilogue unwinder.
9444
4c347be6
SDJ
94452015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9446
9447 * nat/linux-personality.c: Replace "#ifndef
9448 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
9449 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
9450 systems.
9451
9f2850ba
EZ
94522015-01-16 Eli Zaretskii <eliz@gnu.org>
9453
6cdb25f4
EZ
9454 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
9455 functions.
9456 (_initialize_tui_win) <border-kind, border-mode>:
9457 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
9458 (tui_set_tab_width_command): Fix the commentary.
9459
6cdb25f4
EZ
9460 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
9461
bf555842
EZ
9462 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
9463 Doc fix.
cb86fcc1
EZ
9464 (tui_set_tab_width_command): Delete and recreate the source and
9465 the disassembly windows, to show the effect of the changed tab
9466 size immediately.
bf555842 9467
9f2850ba
EZ
9468 * tui/tui-data.h (LINE_PREFIX): Make shorter
9469 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
9470 "Thread NNNNN.XXXX" thread ID notation on Windows.
9471
95761b2d
JK
94722015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9473
9474 Fix gcc-5 compilation.
9475 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
9476
8cc73a39
SDJ
94772015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9478
9479 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
9480 (linux-personality.o): New rule.
9481 * common/common-defs.h: Include <stdint.h>.
9482 * config/aarch64/linux.mh (NATDEPFILES): Include
9483 linux-personality.o.
9484 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9485 * config/arm/linux.mh (NATDEPFILES): Likewise.
9486 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9487 * config/i386/linux.mh (NATDEPFILES): Likewise.
9488 * config/ia64/linux.mh (NATDEPFILES): Likewise.
9489 * config/m32r/linux.mh (NATDEPFILES): Likewise.
9490 * config/m68k/linux.mh (NATDEPFILES): Likewise.
9491 * config/mips/linux.mh (NATDEPFILES): Likewise.
9492 * config/pa/linux.mh (NATDEPFILES): Likewise.
9493 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9494 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9495 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9496 * config/s390/linux.mh (NATDEPFILES): Likewise.
9497 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9498 * config/sparc/linux.mh (NATDEPFILES): Likewise.
9499 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9500 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9501 * defs.h: Remove #include <stdint.h> (moved to
9502 common/common-defs.h).
9503 * linux-nat.c: Include nat/linux-personality.h. Remove #include
9504 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
9505 nat/linux-personality.c).
9506 (linux_nat_create_inferior): Remove code to disable address space
9507 randomization (moved to nat/linux-personality.c). Create cleanup
9508 to disable address space randomization.
9509 * nat/linux-personality.c: New file.
9510 * nat/linux-personality.h: Likewise.
9511
fb23d554
SDJ
95122015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9513
9514 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
9515 common/posix-strerror.c.
9516 (posix-strerror.o): New rule.
9517 (mingw-strerror.o): Likewise.
9518 * common/common-utils.h (safe_strerror): Move prototype to here,
9519 from utils.h.
9520 * common/common.host: New file.
9521 * common/mingw-strerror.c: Likewise.
9522 * common/posix-strerror.c: Likewise.
9523 * configure: Regenerated.
9524 * configure.ac: Source common/common.host. Add variable
9525 common_host_obs to gdb_host_obs.
9526 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
9527 gdb/common/posix-strerror.c when warning about the use of
9528 strerror.
9529 * mingw-hdep.c (safe_strerror): Remove definition; move it to
9530 common/mingw-strerror.c.
9531 * posix-hdep.c (safe_strerror): Remove definition; move it to
9532 common/posix-hdep.c.
9533 * utils.h (safe_strerror): Remove prototype; move to
9534 common/common-utils.h.
9535
3af8af43
JB
95362015-01-15 Joel Brobecker <brobecker@adacore.com>
9537
9538 GDB 7.8.2 released.
9539
bafffb51
JB
95402015-01-15 Joel Brobecker <brobecker@adacore.com>
9541
9542 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
9543 ___XA type if the array has already been fixed.
9544
cdf43629
YQ
95452015-01-14 Yao Qi <yao@codesourcery.com>
9546
9547 * Makefile.in (ppc-linux.o): New rule.
9548 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
9549 * configure.ac: AC_CHECK_FUNCS(getauxval).
9550 * config.in: Re-generated.
9551 * configure: Re-generated.
9552 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
9553 Declare.
9554 * nat/ppc-linux.c: New file.
9555 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
9556 Call ppc64_64bit_inferior_p.
9557
514c5338
YQ
95582015-01-14 Yao Qi <yao@codesourcery.com>
9559
9560 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
9561 nat/ppc-linux.h.
9562 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
9563 (PPC_FEATURE_HAS_DFP): Likewise.
9564 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9565 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9566 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9567 Include "nat/ppc-linux.h".
9568 * nat/ppc-linux.h: New file.
9569 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
9570
5589af0e
PA
95712015-01-14 Pedro Alves <palves@redhat.com>
9572
9573 PR gdb/17525
9574 * breakpoint.c: Include "interps.h".
9575 (bpstat_do_actions_1): Also check whether the interpreter is
9576 async.
9577
6c400b59
PA
95782015-01-14 Pedro Alves <palves@redhat.com>
9579
9580 PR cli/17828
9581 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
9582 reinstall if the interpreter is sync.
9583
e02c96a7
DE
95842015-01-13 Doug Evans <dje@google.com>
9585
9586 * objfiles.c (objfile_filename): New function.
9587 * objfiles.h (objfile_filename): Declare it.
9588 (objfile_name): Add function comment.
9589 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
9590 bfd file name (which may be realpath'd), and the original name.
9591
3b2f13ff
JB
95922015-01-13 Joel Brobecker <brobecker@adacore.com>
9593
9594 * NEWS: Create a new section for the next release branch.
9595 Rename the section of the current branch, now that it has
9596 been cut.
9597
b4cfe7f8
JB
95982015-01-13 Joel Brobecker <brobecker@adacore.com>
9599
9600 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
9601 * version.in: Bump version to 7.9.50.DATE-cvs.
9602
92fc2e69
JB
96032015-01-13 Joel Brobecker <brobecker@adacore.com>
9604
9605 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
9606 Remove trailing new-line in argument of call to warning.
9607
f71f0b0d
JB
96082015-01-13 Joel Brobecker <brobecker@adacore.com>
9609
9610 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
9611 new-line in argument of call to "warning".
9612
04dccad0
JB
96132015-01-13 Joel Brobecker <brobecker@adacore.com>
9614
9615 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
9616 in static block, then try searching for primitive types.
9617
08b13bdd
PP
96182015-01-12 Patrick Palka <patrick@parcs.ath.cx>
9619
9620 * top.h (gdb_add_history): Declare.
9621 * top.c (command_count): New variable.
9622 (gdb_add_history): New function.
9623 (gdb_safe_append_history): New static function.
9624 (quit_force): Call it.
9625 (command_line_input): Use gdb_add_history instead of
9626 add_history.
9627 * event-top.c (command_line_handler): Likewise.
9628
4ac15b59
JC
96292015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
9630
9631 PR gdb/17046
9632 * darwin-nat.c: Replace <machine/setjmp.h> #include by
9633 <setjmp.h> #include.
9634
005e54bb
DE
96352015-01-11 Doug Evans <xdje42@gmail.com>
9636
9637 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
9638
439250fb
DE
96392015-01-11 Doug Evans <xdje42@gmail.com>
9640
9641 PR gdb/15830
9642 * NEWS: The "maint demangle" command is renamed as "demangle".
9643 * demangle.c: #include cli/cli-utils.h, language.h.
9644 (demangle_command): New function.
9645 (_initialize_demangle): Add new command "demangle".
9646 * maint.c (maintenance_demangle): Stub out.
9647 (_initialize_maint_cmds): Update help text for "maint demangle",
9648 and mark as deprecated.
9649
ebf3aa72
MK
96502015-01-11 Mark Kettenis <kettenis@gnu.org>
9651
9652 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
9653 inferior_thread is a function.
9654
6bf045cd
PP
96552015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9656
9657 * Makefile.in (.y.c): Don't munge yacc's #line
9658 directives.
9659
588dcc3e
PP
96602015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9661
9662 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
9663 to prompt for input.
9664 * tui/tui-hooks.c (tui_query_hook): Remove.
9665 (tui_install_hooks): Don't set deprecated_query_hook.
9666 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
9667 height calculation. Always update the command window's cur_line.
9668
9c02b525
PA
96692015-01-09 Pedro Alves <palves@redhat.com>
9670
9671 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
9672 function.
9673 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
9674 declaration.
9675 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
9676 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
9677 stop_reason.
9678 (check_stopped_by_watchpoint): New function.
9679 (save_sigtrap): Reimplement.
9680 (linux_nat_stopped_by_watchpoint): Adjust.
9681 (linux_nat_lp_status_is_event): Delete.
9682 (stop_wait_callback): Only call save_sigtrap after storing the
9683 pending status.
9684 (status_callback): If the thread had been stopped for a breakpoint
9685 that has since been removed, discard the event and resume the LWP.
9686 (count_events_callback, select_event_lwp_callback): Use
9687 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
9688 (cancel_breakpoint): Rename to ...
9689 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9690 stopped for a software breakpoint or hardware breakpoint.
9691 (select_event_lwp): Only give preference to the stepping LWP in
9692 all-stop mode. Adjust comments.
9693 (stop_and_resume_callback): Remove references to new_pending_p.
9694 (linux_nat_filter_event): Likewise. Leave exit events of the
9695 leader thread pending here. Handle signal short circuiting here.
9696 Only call save_sigtrap after storing the pending waitstatus.
9697 (linux_nat_wait_1): Remove 'retry' label. Remove references to
9698 new_pending. Don't handle leaving events the caller is not
9699 interested in pending here, nor handle signal short-circuiting
9700 here. Also give equal priority to all LWPs that have had events
9701 in non-stop mode. If reporting a software breakpoint event,
9702 unadjust the LWP's PC.
9703 * linux-nat.h (enum lwp_stop_reason): New.
9704 (struct lwp_info) <stop_pc>: New field.
9705 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
9706 (struct lwp_info) <stop_reason>: New field.
9707 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9708
8af756ef
PA
97092015-01-09 Pedro Alves <palves@redhat.com>
9710
9711 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
9712 Set the LWP's 'resumed' flag.
9713
8a99810d
PA
97142015-01-09 Pedro Alves <palves@redhat.com>
9715
9716 * linux-nat.c (linux_resume_one_lwp): New function.
9717 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
9718 (linux_nat_resume): Use lwp_status_pending_p and
9719 linux_resume_one_lwp.
9720 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
9721 (linux_handle_extended_wait): Use linux_resume_one_lwp.
9722 (status_callback, running_callback): Use lwp_status_pending_p.
9723 (lwp_status_pending_p): New function.
9724 (stop_and_resume_callback): Use lwp_status_pending_p.
9725 (linux_nat_filter_event): Use linux_resume_one_lwp.
9726 (linux_nat_wait_1): Always use status_callback to look for an LWP
9727 with a pending status. Use linux_resume_one_lwp.
9728 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
9729 linux_resume_one_lwp.
9730
f7ce857f
PA
97312015-01-09 Pedro Alves <palves@redhat.com>
9732
9733 * breakpoint.c (bp_location_inserted_here_p): New function,
9734 factored out from ...
9735 (breakpoint_inserted_here_p): ... here. Use
9736 ALL_BP_LOCATIONS_AT_ADDR.
9737 (software_breakpoint_inserted_here_p): Use
9738 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
9739
c1a747c1
PA
97402014-01-09 Pedro Alves <palves@redhat.com>
9741
9742 Skip enabling event reporting if the kernel supports
9743 PTRACE_EVENT_CLONE.
9744 * linux-thread-db.c: Include "nat/linux-ptrace.h".
9745 (thread_db_use_events): New function.
9746 (try_thread_db_load_1): Check thread_db_use_events before enabling
9747 event reporting.
9748 (update_thread_state): New function.
9749 (attach_thread): Use it. Check thread_db_use_events before
9750 enabling event reporting.
9751 (thread_db_detach): Check thread_db_use_events before disabling
9752 event reporting.
9753 (find_new_threads_callback): Check thread_db_use_events before
9754 enabling event reporting. Update the thread's state if not using
9755 libthread_db events.
9756
a33e3959
PA
97572015-01-09 Pedro Alves <palves@redhat.com>
9758
9759 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
9760 about to wait for is > 0.
9761 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
9762 the kernel thread ID is -1.
9763
8784d563
PA
97642015-01-09 Pedro Alves <palves@redhat.com>
9765
9766 * linux-nat.c (attach_proc_task_lwp_callback): New function.
9767 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
9768 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
9769 ptrace option flags.
9770 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
9771 field.
9772 * nat/linux-procfs.c: Include <dirent.h>.
9773 (linux_proc_get_int): New parameter "warn". Handle it.
9774 (linux_proc_get_tgid): Adjust.
9775 (linux_proc_get_tracerpid): Rename to ...
9776 (linux_proc_get_tracerpid_nowarn): ... this.
9777 (linux_proc_pid_get_state): New function, factored out from
9778 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
9779 and handle it.
9780 (linux_proc_pid_is_gone): New function.
9781 (linux_proc_pid_is_stopped): Adjust.
9782 (linux_proc_pid_is_zombie_maybe_warn)
9783 (linux_proc_pid_is_zombie_nowarn): New functions.
9784 (linux_proc_pid_is_zombie): Use
9785 linux_proc_pid_is_zombie_maybe_warn.
9786 (linux_proc_attach_tgid_threads): New function.
9787 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
9788 (linux_proc_get_tracerpid): Rename to ...
9789 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
9790 (linux_proc_pid_is_gone): New declaration.
9791 (linux_proc_pid_is_zombie): Update comment.
9792 (linux_proc_pid_is_zombie_nowarn): New declaration.
9793 (linux_proc_attach_lwp_func): New typedef.
9794 (linux_proc_attach_tgid_threads): New declaration.
9795 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
9796 use nowarn functions.
9797 (linux_ptrace_attach_fail_reason_string): Move here from
9798 gdbserver/linux-low.c and rename.
9799 (ptrace_supports_feature): If the current ptrace options are not
9800 known yet, check them now, instead of asserting.
9801 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
9802 Declare.
9803
883ed13e
PA
98042015-01-09 Pedro Alves <palves@redhat.com>
9805
9806 * linux-thread-db.c (thread_db_find_new_threads_silently)
9807 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
9808 (find_new_threads_once): Print debug output on gdb_stdlog.
9809
1710aab8
CG
98102015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
9811 Pedro Alves <palves@redhat.com>
9812
9813 * compile/compile.c: Include "gdb_wait.h".
9814 (do_rmdir): Check return value, and free 'zap'.
9815
b597c318
YQ
98162015-01-08 Pedro Alves <palves@redhat.com>
9817 Yao Qi <yao@codesourcery.com>
9818
9819 * dwarf2loc.c (indirect_pieced_value): Don't call
9820 gdb_sign_extend. Call extract_signed_integer instead.
9821 * utils.c (gdb_sign_extend): Remove.
9822 * utils.h (gdb_sign_extend): Remove declaration.
9823
025ac414
PM
98242015-01-07 Pierre Muller <muller@sourceware.org>
9825
9826 PR symtab/17811
9827 * stabsread.c (define_symbol): Set language for C++ special symbols.
9828
fa5af12a
PP
98292015-01-07 Patrick Palka <patrick@parcs.ath.cx>
9830
9831 * inflow.c (initial_gdb_ttystate): Tweak comment.
9832
ea42d6f8
JB
98332015-01-07 Joel Brobecker <brobecker@adacore.com>
9834
9835 * inflow.c (set_initial_gdb_ttystate): Add empty line after
9836 comment documenting function.
9837
6a06d660
PP
98382015-01-07 Patrick Palka <patrick@parcs.ath.cx>
9839
9840 * terminal.h (set_initial_gdb_ttystate): Declare.
9841 * inflow.c (initial_gdb_ttystate): New static variable.
9842 (set_initial_gdb_ttystate): New setter.
9843 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
9844 instead of our current terminal state.
9845 * top.c (gdb_init): Call set_initial_gdb_ttystate.
9846
e810d75b
JB
98472015-01-07 Joel Brobecker <brobecker@adacore.com>
9848
9849 * guile/scm-type.c (tyscm_array_1): Add comment.
9850 * python/py-type.c (typy_array_1): Add comment.
9851
fce10a84
JB
98522015-01-06 Joel Brobecker <brobecker@adacore.com>
9853
9854 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
9855 error if N2 is equal to N1 - 1.
9856
8503d6e1
JB
98572015-01-06 Joel Brobecker <brobecker@adacore.com>
9858
9859 * python/py-type.c (typy_array_1): Do not raise negative-length
9860 exception if N2 is equal to N1 - 1.
9861
4d29c0a8
DE
98622015-01-03 Doug Evans <xdje42@gmail.com>
9863
9864 * c-exp.y: Whitespace cleanup.
9865 (classify_inner_name): Remove extra ;.
9866
eaa6a9a4
MR
98672015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
9868
9869 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
9870 offset signed.
9871
02fe9972
DE
98722015-01-02 Doug Evans <dje@google.com>
9873
9874 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
9875
e2ada9cb
DE
98762015-01-02 Doug Evans <dje@google.com>
9877
9878 * symtab.h (struct symbol): Fix typo in comment.
9879
32d0add0
JB
98802015-01-01 Joel Brobecker <brobecker@adacore.com>
9881
9882 Update year range in copyright notice of all files.
9883
76f2b779
JB
98842015-01-01 Joel Brobecker <brobecker@adacore.com>
9885
9886 * top.c (print_gdb_version): Update copyright year to 2015.
9887
077309e2 98882015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 9889
077309e2 9890 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 9891
077309e2 9892For older changes see ChangeLog-2014.
c906108c
SS
9893\f
9894Local Variables:
9895mode: change-log
9896left-margin: 8
9897fill-column: 74
9898version-control: never
57da7796 9899coding: utf-8
c906108c 9900End:
This page took 2.187596 seconds and 4 git commands to generate.