Fix next over threaded execl with "set scheduler-locking step".
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-06-19 Pedro Alves <palves@redhat.com>
2
3 * gdbthread.h (ALL_THREADS): Delete.
4 (ALL_NON_EXITED_THREADS): New macro.
5 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6 instead of ALL_THREADS.
7 * infrun.c (find_thread_needs_step_over)
8 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
9 instead of ALL_THREADS.
10 * record-btrace.c (record_btrace_open)
11 (record_btrace_stop_recording, record_btrace_close)
12 (record_btrace_is_replaying, record_btrace_resume)
13 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
14 * remote.c (append_pending_thread_resumptions): Likewise.
15 * thread.c (thread_apply_all_command): Likewise.
16
17 2014-06-19 Gary Benson <gbenson@redhat.com>
18
19 * i386-nat.c (i386_stopped_by_watchpoint):
20 Use i386_dr_stopped_by_watchpoint.
21 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
22 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
23
24 2014-06-19 Gary Benson <gbenson@redhat.com>
25
26 * nat/i386-dregs.c: New file.
27 * Makefile.in (i386-dregs.o): New rule.
28 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
29 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
30 * config/i386/darwin.mh (NATDEPFILES): Likewise.
31 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
32 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
33 * config/i386/go32.mh (NATDEPFILES): Likewise.
34 * config/i386/linux.mh (NATDEPFILES): Likewise.
35 * config/i386/linux64.mh (NATDEPFILES): Likewise.
36 * config/i386/mingw.mh (NATDEPFILES): Likewise.
37 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
38 * i386-nat.h (debug_hw_points): New declaration.
39 * i386-nat.c (breakpoint.h): Remove include.
40 (command.h): Likewise.
41 (target.h): Likewise.
42 (gdb_assert.h): Likewise.
43 (debug_hw_points): Made nonstatic.
44 (debug_printf): Now in i386-dregs.c.
45 (TARGET_HAS_DR_LEN_8): Likewise.
46 (DR_CONTROL_SHIFT): Likewise.
47 (DR_CONTROL_SIZE): Likewise.
48 (DR_RW_EXECUTE): Likewise.
49 (DR_RW_WRITE): Likewise.
50 (DR_RW_READ): Likewise.
51 (DR_RW_IORW): Likewise.
52 (DR_LEN_1): Likewise.
53 (DR_LEN_2): Likewise.
54 (DR_LEN_4): Likewise.
55 (DR_LEN_8): Likewise.
56 (DR_LOCAL_ENABLE_SHIFT): Likewise.
57 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
58 (DR_ENABLE_SIZE): Likewise.
59 (DR_LOCAL_SLOWDOWN): Likewise.
60 (DR_GLOBAL_SLOWDOWN): Likewise.
61 (DR_CONTROL_RESERVED): Likewise.
62 (I386_DR_CONTROL_MASK): Likewise.
63 (I386_DR_VACANT): Likewise.
64 (I386_DR_LOCAL_ENABLE): Likewise.
65 (I386_DR_GLOBAL_ENABLE): Likewise.
66 (I386_DR_DISABLE): Likewise.
67 (I386_DR_SET_RW_LEN): Likewise.
68 (I386_DR_GET_RW_LEN): Likewise.
69 (I386_DR_WATCH_HIT): Likewise.
70 (i386_wp_op_t): Likewise.
71 (i386_show_dr): Likewise.
72 (i386_length_and_rw_bits): Likewise.
73 (i386_insert_aligned_watchpoint): Likewise.
74 (i386_remove_aligned_watchpoint): Likewise.
75 (i386_handle_nonaligned_watchpoint): Likewise.
76 (i386_update_inferior_debug_regs): Likewise.
77 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
78 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
79 (i386_region_ok_for_watchpoint):
80 Use i386_dr_region_ok_for_watchpoint.
81 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
82
83 2014-06-19 Gary Benson <gbenson@redhat.com>
84
85 * i386-nat.c (i386_insert_hw_breakpoint): Use
86 i386_insert_watchpoint.
87 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
88
89 2014-06-19 Gary Benson <gbenson@redhat.com>
90
91 * i386-nat.c (i386_dr_show): Renamed to
92 i386_show_dr and made static. All uses updated.
93 (i386_dr_length_and_rw_bits): Renamed to
94 i386_length_and_rw_bits and made static.
95 All uses updated.
96 (i386_dr_insert_aligned_watchpoint): Renamed to
97 i386_insert_aligned_watchpoint and made static.
98 All uses updated.
99 (i386_dr_remove_aligned_watchpoint): Renamed to
100 i386_remove_aligned_watchpoint and made static.
101 All uses updated.
102 (i386_dr_update_inferior_debug_regs): Renamed to
103 i386_update_inferior_debug_regs and made static.
104 All uses updated.
105 * nat/i386-dregs.h (i386_dr_show): Removed.
106 (i386_dr_length_and_rw_bits): Likewise.
107 (i386_dr_insert_aligned_watchpoint): Likewise.
108 (i386_dr_remove_aligned_watchpoint): Likewise.
109 (i386_dr_update_inferior_debug_regs): Likewise.
110
111 2014-06-19 Gary Benson <gbenson@redhat.com>
112
113 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
114 * configure: Regenerate.
115 * config.in: Likewise.
116 * main.c (signal.h): New include.
117 (setup_alternate_signal_stack): New function.
118 (captured_main): Call the above.
119 * cp-support.c (signal.h): New include.
120 (catch_demangler_crashes): New flag.
121 (SIGJMP_BUF): New define.
122 (SIGSETJMP): Likewise.
123 (SIGLONGJMP): Likewise.
124 (gdb_demangle_jmp_buf): New static global.
125 (gdb_demangle_attempt_core_dump): Likewise.
126 (gdb_demangle_signal_handler): New function.
127 (gdb_demangle): If catch_demangler_crashes is set, install the
128 above signal handler before calling bfd_demangle, and restore
129 the original signal handler afterwards. Display the offending
130 symbol and call demangler_warning the first time a segmentation
131 fault is caught.
132 (_initialize_cp_support): New maint set/show command.
133
134 2014-06-19 Gary Benson <gbenson@redhat.com>
135
136 * utils.h (resource_limit_kind): New enum.
137 (can_dump_core): New declaration.
138 (warn_cant_dump_core): Likewise.
139 (dump_core): Likewise.
140 * utils.c (dump_core): Made nonstatic. Added new
141 parameter "limit_kind".
142 (can_dump_core): Made nonstatic. Moved printing code to...
143 (warn_cant_dump_core): New function.
144 (can_dump_core_warn): Likewise.
145 (internal_vproblem): Replace calls to can_dump_core with
146 calls to can_dump_core_warn. Supply new argument to each.
147
148 2014-06-19 Gary Benson <gbenson@redhat.com>
149
150 * utils.h (demangler_vwarning): New declaration.
151 (demangler_warning): Likewise.
152 * utils.c (struct internal_problem)
153 <user_settable_should_quit>: New field.
154 <user_settable_should_dump_core>: Likewise
155 (internal_error_problem): Add values for above new fields.
156 (internal_warning_problem): Likewise.
157 (demangler_warning_problem): New static global.
158 (demangler_vwarning): New function.
159 (demangler_warning): Likewise.
160 (add_internal_problem_command): Selectively add commands.
161 (_initialize_utils): New internal problem command.
162 * maint.c (maintenance_demangler_warning): New function.
163 (_initialize_maint_cmds): New command.
164
165 2014-06-18 Tom Tromey <tromey@redhat.com>
166
167 * f-valprint.c (info_common_command_for_block): Update.
168 * symtab.h (struct general_symbol_info) <common_block>: Now
169 const.
170
171 2014-06-18 Tom Tromey <tromey@redhat.com>
172
173 * symtab.h (struct symtab) <blockvector>: Now const.
174 * ada-lang.c (ada_add_global_exceptions): Update.
175 * buildsym.c (augment_type_symtab): Update.
176 * dwarf2read.c (dw2_lookup_symbol): Update.
177 * jit.c (finalize_symtab): Update.
178 * jv-lang.c (add_class_symtab_symbol): Update.
179 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
180 Update.
181 * objfiles.c (objfile_relocate1): Update.
182 * psymtab.c (lookup_symbol_aux_psymtabs)
183 (maintenance_check_psymtabs): Update.
184 * python/py-symtab.c (stpy_global_block, stpy_static_block):
185 Update.
186 * spu-tdep.c (spu_catch_start): Update.
187 * symmisc.c (dump_symtab_1): Update.
188 * symtab.c (lookup_global_symbol_from_objfile)
189 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
190 (basic_lookup_transparent_type_quick)
191 (basic_lookup_transparent_type, find_pc_sect_symtab)
192 (find_pc_sect_line, search_symbols): Update.
193 * block.c (find_block_in_blockvector): Make "bl" const.
194 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
195 const.
196 (blockvector_contains_pc): Make "bv" const.
197 (block_for_pc_sect): Update.
198 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
199 (blockvector_contains_pc): Update.
200 * breakpoint.c (resolve_sal_pc): Update.
201 * inline-frame.c (block_starting_point_at): Update.
202
203 2014-06-18 Tom Tromey <tromey@redhat.com>
204
205 * completer.c (complete_line): Make "line_buffer" const.
206 * completer.h (complete_line): Update.
207
208 2014-06-18 Tom Tromey <tromey@redhat.com>
209
210 * symtab.c (add_macro_name): Remove unneeded cast.
211
212 2014-06-18 Tom Tromey <tromey@redhat.com>
213
214 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
215 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
216
217 2014-06-18 Tom Tromey <tromey@redhat.com>
218
219 * probe.c (info_probes_for_ops): Make "arg" const.
220 * probe.h (info_probes_for_ops): Update.
221
222 2014-06-18 Tom Tromey <tromey@redhat.com>
223
224 * varobj.c (varobj_create): Update.
225 * valops.c (value_of_this): Update.
226 * tracepoint.c (add_local_symbols, scope_info): Update.
227 * symtab.h (struct general_symbol_info) <block>: Now const.
228 * symtab.c (skip_prologue_sal)
229 (default_make_symbol_completion_list_break_on)
230 (skip_prologue_using_sal): Update.
231 * stack.h (iterate_over_block_locals)
232 (iterate_over_block_local_vars): Update.
233 * stack.c (print_frame_args): Update.
234 (iterate_over_block_locals, iterate_over_block_local_vars): Make
235 parameter const.
236 (get_selected_block): Make return type const.
237 * python/py-frame.c (frapy_block): Update.
238 * python/py-block.c (gdbpy_block_for_pc): Update.
239 * p-exp.y (%union) <bval>: Now const.
240 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
241 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
242 * m2-exp.y (%union) <bval>: Now const.
243 * linespec.c (get_current_search_block): Make return type const.
244 (create_sals_line_offset, find_label_symbols): Update.
245 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
246 Update.
247 (block_starting_point_at): Make "block" const.
248 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
249 (check_exception_resume): Update.
250 * guile/scm-frame.c (gdbscm_frame_block): Update.
251 * guile/scm-block.c (gdbscm_lookup_block): Update.
252 * frame.h (get_frame_block): Update.
253 (get_selected_block): Make return type const.
254 * frame.c (frame_id_inner): Update.
255 * f-valprint.c (info_common_command_for_block)
256 (info_common_command): Update.
257 * dwarf2loc.c (dwarf2_find_location_expression)
258 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
259 (locexpr_describe_location_piece): Update.
260 * c-exp.y (%union) <bval>: Now const.
261 * breakpoint.c (resolve_sal_pc): Update.
262 * blockframe.c (get_frame_block):Make return type const.
263 (get_pc_function_start, get_frame_function, find_pc_sect_function)
264 (block_innermost_frame): Update.
265 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
266 (block_for_pc, block_for_pc_sect): Update.
267 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
268 'pblock' const.
269 (block_for_pc_sect, block_for_pc): Make return type const.
270 * ax-gdb.c (gen_expr): Update.
271 * alpha-mdebug-tdep.c (find_proc_desc): Update.
272 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
273 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
274 (ada_read_var_value): Update.
275 * ada-exp.y (struct name_info) <block>: Now const.
276 (%union): Likewise.
277 (block_lookup): Constify.
278
279 2014-06-18 Gary Benson <gbenson@redhat.com>
280
281 * nat/i386-dregs.h: New file.
282 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
283 * i386-nat.h (i386-dregs.h): New include.
284 (DR_FIRSTADDR): Now in i386-dregs.h.
285 (DR_LASTADDR): Likewise.
286 (DR_NADDR): Likewise.
287 (DR_STATUS): Likewise.
288 (DR_CONTROL): Likewise.
289 (i386_debug_reg_state): Likewise.
290 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
291
292 2014-06-18 Don Breazeal <donb@codesourcery.com>
293
294 * breakpoint.c (set_longjmp_breakpoint): Call
295 momentary_breakpoint_from_master with additional argument.
296 (set_longjmp_breakpoint_for_call_dummy): Call
297 momentary_breakpoint_from_master with additional argument.
298 (set_std_terminate_breakpoint): Call
299 momentary_breakpoint_from_master with additional argument.
300 (momentary_breakpoint_from_master): Add argument to function
301 definition and use it to initialize structure member flag.
302 (clone_momentary_breakpoint): Call
303 momentary_breakpoint_from_master with additional argument.
304 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
305 member flags set in momentary_breakpoint_from_master.
306
307 2014-06-18 Gary Benson <gbenson@redhat.com>
308
309 * i386-nat.c (i386_show_dr): Renamed to
310 i386_dr_show and made nonstatic. All uses updated.
311 (i386_length_and_rw_bits): Renamed to
312 i386_dr_length_and_rw_bits and made nonstatic.
313 All uses updated.
314 (i386_insert_aligned_watchpoint): Renamed to
315 i386_dr_insert_aligned_watchpoint and made nonstatic.
316 All uses updated.
317 (i386_remove_aligned_watchpoint): Renamed to
318 i386_dr_remove_aligned_watchpoint and made nonstatic.
319 All uses updated.
320 (i386_update_inferior_debug_regs): Renamed to
321 i386_dr_update_inferior_debug_regs and made nonstatic.
322 All uses updated.
323
324 2014-06-18 Gary Benson <gbenson@redhat.com>
325
326 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
327 (i386_dr_low_can_set_control): Likewise.
328 (i386_dr_low_set_addr): Likewise.
329 (i386_dr_low_set_control): Likewise.
330 (i386_dr_low_get_addr): Likewise.
331 (i386_dr_low_get_status): Likewise.
332 (i386_dr_low_get_control): Likewise.
333 (i386_insert_aligned_watchpoint): Use new macros.
334 (i386_update_inferior_debug_regs): Likewise.
335 (i386_stopped_data_address): Likewise.
336
337 2014-06-18 Gary Benson <gbenson@redhat.com>
338
339 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
340 New parameter. All uses updated.
341
342 2014-06-18 Gary Benson <gbenson@redhat.com>
343
344 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
345 All uses updated.
346
347 2014-06-18 Gary Benson <gbenson@redhat.com>
348
349 * i386-nat.c (debug_printf): New macro.
350 (i386_get_debug_register_length): Likewise.
351 (TARGET_HAS_DR_LEN_8): Use above macro.
352 (i386_show_dr): Use debug_printf instead of puts_unfiltered
353 and printf_unfiltered. Use phex to format values.
354
355 2014-06-18 Gary Benson <gbenson@redhat.com>
356
357 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
358 Make const.
359
360 2014-06-18 Gary Benson <gbenson@redhat.com>
361
362 * i386-nat.c: Comment changes.
363
364 2014-06-18 Gary Benson <gbenson@redhat.com>
365
366 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
367
368 2014-06-18 Gary Benson <gbenson@redhat.com>
369
370 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
371 (i386_insert_aligned_watchpoint): Likewise.
372 (i386_remove_aligned_watchpoint): Likewise.
373 (i386_handle_nonaligned_watchpoint): Likewise.
374
375 2014-06-18 Gary Benson <gbenson@redhat.com>
376
377 * i386-nat.c: Whitespace changes.
378
379 2014-06-17 Samuel Bronson <naesten@gmail.com>
380
381 * MAINTAINERS: Update Roland McGrath's email address.
382 Thanks to Sergio Durigan Junior for pointing out that he left
383 Red Hat a while ago, and giving me a current address.
384
385 2014-06-17 Tom Tromey <tromey@redhat.com>
386
387 * utils.h (savestring): Remove declaration.
388
389 2014-06-17 Tom Tromey <tromey@redhat.com>
390
391 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
392
393 2014-06-16 Keith Seitz <keiths@redhat.com>
394
395 PR mi/15863
396 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
397 to update the varobj if inferior_ptid is null_ptid.
398
399 2014-06-16 Tom Tromey <tromey@redhat.com>
400
401 * target.h (struct target_ops) <to_info_proc>: Make parameter
402 const.
403 (target_info_proc): Update.
404 * target.c (target_info_proc): Make "args" const.
405 * procfs.c (procfs_info_proc): Update.
406 * linux-tdep.c (linux_info_proc): Update.
407 (linux_core_info_proc_mappings): Make "args" const.
408 (linux_core_info_proc): Update.
409 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
410 * gdbarch.c: Rebuild.
411 * gdbarch.h: Rebuild.
412 * corelow.c (core_info_proc): Update.
413
414 2014-06-16 Tom Tromey <tromey@redhat.com>
415
416 * target.h (struct target_ops) <to_disconnect>: Make parameter
417 const.
418 (target_disconnect): Update.
419 * target.c (target_disconnect): Make "args" const.
420 * target-delegates.c: Rebuild.
421 * remote.c (remote_disconnect): Update.
422 * record.h (record_disconnect): Update.
423 * record.c (record_disconnect): Update.
424 * inf-child.c (inf_child_disconnect): Update.
425
426 2014-06-16 Tom Tromey <tromey@redhat.com>
427
428 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
429 * target.c (debug_to_rcmd, default_rcmd): Update.
430 * target-delegates.c: Rebuild.
431 * remote.c (remote_rcmd): Update.
432 * monitor.c (monitor_rcmd): Update.
433
434 2014-06-16 Pedro Alves <palves@redhat.com>
435
436 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
437 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
438 have OBJF_SHARED set.
439 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
440 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
441 instead of OBJF_USERLOADED.
442 * objfiles.h (OBJF_SHARED): Update comment.
443 (userloaded_objfile_contains_address_p): Rename to ...
444 (shared_objfile_contains_address_p): ... this, and update
445 comments.
446 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
447 new objfile.
448 (remove_symbol_file_command): Skip objfiles that don't have
449 OBJF_SHARED set.
450
451 2014-06-16 Tom Tromey <tromey@redhat.com>
452
453 * minsyms.h (prim_record_minimal_symbol)
454 (prim_record_minimal_symbol_and_info): Update comments.
455
456 2014-06-14 Eli Zaretskii <eliz@gnu.org>
457
458 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
459 or --without-guile, according to how GDB was built.
460
461 2014-06-13 Tom Tromey <tromey@redhat.com>
462
463 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
464 to help_list.
465 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
466 to help_list.
467 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
468 help_list.
469 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
470 help_list.Pass all_commands, not -1, to help_list.
471 * cli/cli-dump.c (dump_command, append_command)
472 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
473 (binary_dump_command, binary_append_command): Pass all_commands,
474 not -1, to help_list.
475 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
476 -1, to help_list.
477 * valprint.c (set_print, set_print_raw): Pass all_commands, not
478 -1, to help_list.
479 * typeprint.c (set_print_type): Pass all_commands, not -1, to
480 help_list.
481 * top.c (set_history): Pass all_commands, not -1, to help_list.
482 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
483 all_commands, not -1, to help_list.
484 * symfile.c (overlay_command): Pass all_commands, not -1, to
485 help_list.
486 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
487 help_list.
488 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
489 help_list.
490 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
491 -1, to help_list.
492 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
493 not -1, to help_list.
494 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
495 not -1, to help_list.
496 * maint.c (maintenance_command, maintenance_info_command)
497 (maintenance_print_command, maintenance_set_cmd): Pass
498 all_commands, not -1, to help_list.
499 * macrocmd.c (macro_command): Pass all_commands, not -1, to
500 help_list.
501 * language.c (set_check): Pass all_commands, not -1, to help_list.
502 * infcmd.c (unset_command): Pass all_commands, not -1, to
503 help_list.
504 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
505 help_list.
506 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
507 help_list.
508 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
509 help_list.
510 * breakpoint.c (save_command): Pass all_commands, not -1, to
511 help_list.
512 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
513 all_commands, not -1, to help_list.
514
515 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
516
517 * regcache.c (struct register_to_invalidate): New structure.
518 (do_register_invalidate, make_cleanup_regcache_invalidate): New
519 functions.
520 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
521
522 2014-06-12 Yao Qi <yao@codesourcery.com>
523
524 * varobj.c (varobj_get_num_children): Call
525 varobj_is_dynamic_p.
526 (varobj_list_children): Likewise.
527 (varobj_update): Likewise. Update comments.
528
529 2014-06-12 Yao Qi <yao@codesourcery.com>
530
531 * varobj.c (varobj_pretty_printed_p): Rename to ...
532 (varobj_is_dynamic_p): ... this. New function.
533 * varobj.h (varobj_pretty_printed_p): Remove declaration.
534 (varobj_is_dynamic_p): Declare.
535 * mi/mi-cmd-var.c (print_varobj): All callers updated.
536 (mi_print_value_p, varobj_update_one): Likewise.
537
538 2014-06-12 Pedro Alves <pedro@codesourcery.com>
539 Yao Qi <yao@codesourcery.com>
540
541 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
542 (varobj_get_iterator): Wrap up code for pretty-printer by
543 "#if HAVE_PYTHON" and "#endif".
544 (update_dynamic_varobj_children): Likewise.
545
546 2014-06-12 Pedro Alves <pedro@codesourcery.com>
547 Yao Qi <yao@codesourcery.com>
548
549 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
550 gdb_python_initialized is false. Move some code from varobj.c.
551 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
552 * varobj.c: Move "varobj-iter.h" inclusion earlier.
553 (struct varobj_item): Moved to varobj-iter.h".
554 (varobj_clear_saved_item): New function.
555 (update_dynamic_varobj_children): Move python-related code to
556 py-varobj.c.
557 (free_variable): Call varobj_clear_saved_item and
558 varobj_iter_delete.
559
560 2014-06-12 Pedro Alves <pedro@codesourcery.com>
561 Yao Qi <yao@codesourcery.com>
562
563 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
564 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
565 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
566 (py-varobj.o): New rule.
567 * python/py-varobj.c: New file.
568 * python/python-internal.h (py_varobj_get_iterator): Declare.
569 * varobj-iter.h: New file.
570 * varobj.c: Include "varobj-iter.h"
571 (struct varobj) <child_iter>: Change its type from "PyObject *"
572 to "struct varobj_iter *".
573 <saved_item>: Likewise.
574 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
575 [HAVE_PYTHON] (varobj_get_iterator): New function.
576 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
577 python-specific code to python/py-varobj.c.
578 (install_visualizer): Call varobj_iter_delete instead of
579 Py_XDECREF.
580 * varobj.h (varobj_ensure_python_env): Declare.
581
582 2014-06-12 Yao Qi <yao@codesourcery.com>
583
584 * varobj.c (struct varobj_item): New structure.
585 (create_child_with_value): Update declaration.
586 (varobj_add_child): Replace arguments 'name' and 'value' with
587 'item'. All callers updated.
588 (install_dynamic_child): Likewise.
589 (update_dynamic_varobj_children): Likewise.
590 (varobj_add_child): Likewise.
591 (create_child_with_value): Likewise.
592
593 2014-06-11 Joel Brobecker <brobecker@adacore.com>
594
595 * NEWS: Create a new section for the next release branch.
596 Rename the section of the current branch, now that it has
597 been cut.
598
599 2014-06-11 Joel Brobecker <brobecker@adacore.com>
600
601 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
602 * version.in: Bump version to 7.8.50.DATE-cvs.
603
604 2014-06-11 Pedro Alves <palves@redhat.com>
605
606 PR remote/17028
607 * ser-mingw.c (net_windows_socket_check_pending): New function.
608 (net_windows_select_thread): Ignore spurious wakeups. Use
609 net_windows_socket_check_pending.
610 (net_windows_wait_handle): Check for pending events with
611 ioctlsocket, through net_windows_socket_check_pending, instead of
612 checking the socket's event.
613
614 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
615
616 * python/python-internal.h (gdb_PyObject_GetAttrString)
617 (gdb_PyObject_HasAttrString): New inline function definitions.
618 * py-value.c (get_field_flag): Remove the now unnecessary cast to
619 char * of the second argument to PyObject_GetAttrString.
620
621 2014-06-10 Joel Brobecker <brobecker@adacore.com>
622
623 * serial.c (serial_write): Fix index of character to be printed
624 in call to serial_logchar when serial debug traces are enabled.
625
626 2014-06-10 Joel Brobecker <brobecker@adacore.com>
627
628 * gdbtypes (resolve_dynamic_range): Add function description.
629
630 2014-06-09 Pedro Alves <palves@redhat.com>
631
632 * linux-nat.c (linux_child_follow_fork): Initialize status with
633 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
634 inner block. Only pass the signal to PTRACE_DETACH if in pass
635 state.
636
637 2014-06-09 Gary Benson <gbenson@redhat.com>
638
639 * common/signals.c (gdb_signal_from_host): Reorder to separate
640 the always-available ANSI-standard signals from the signals that
641 require checking.
642 (do_gdb_signal_to_host): Likewise.
643 * proc-events.c (signal_table): Likewise.
644
645 2014-06-08 Hui Zhu <hui@codesourcery.com>
646
647 * common/linux-ptrace.c (linux_disable_event_reporting): New
648 function.
649 * common/linux-ptrace.h (linux_disable_event_reporting): New
650 declaration.
651 * linux-nat.c (linux_child_follow_fork): Do a single step before
652 detach.
653
654 2014-06-07 Keith Seitz <keiths@redhat.com>
655
656 Revert:
657 PR c++/16253
658 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
659 from symbol_matches_domain in symtab.c. All local callers
660 of symbol_matches_domain updated.
661 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
662 search STRUCT_DOMAIN.
663 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
664 independently. standard_lookup will do that automatically.
665 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
666 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
667 (cp_lookup_symbol_in_namespace): Likewise.
668 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
669 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
670 may return a STRUCT_DOMAIN match.
671 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
672 * cp-support.c: Include language.h.
673 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
674 VAR_DOMAIN.
675 * psymtab.c (match_partial_symbol): Compare the requested
676 domain with the symbol's domain directly.
677 (lookup_partial_symbol): Likewise.
678 * symtab.c (lookup_symbol_in_language): Explain when/why
679 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
680 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
681 appropriate languages.
682 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
683 and moved to ada-lang.c
684 (lookup_block_symbol): Explain that this function only returns
685 symbol matching the requested DOMAIN.
686 Compare the requested domain with the symbol's domain directly.
687 (iterate_over_symbols): Compare the requested domain with the
688 symbol's domain directly.
689 * symtab.h (symbol_matches_domain): Remove.
690
691 2014-06-06 Doug Evans <xdje42@gmail.com>
692
693 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
694 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
695 (gdbscm_guile_version_is_at_least): Declare.
696 (gdbscm_scm_string_to_int): Declare.
697 * guile/guile.c (gdbscm_guile_major_version): New global.
698 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
699 (guile_datadir): New static global.
700 (gdbscm_guile_data_directory): New function.
701 (initialize_scheme_side): Update.
702 (misc_guile_functions): Add guile-data-directory.
703 (initialize_gdb_module): Fetch guile version number.
704 * guile/lib/gdb.scm: Remove call to add-to-load-path.
705 * guile/lib/gdb/init.scm (%initialize!): Ditto.
706 * guile/lib/gdb/boot.scm: Use guile-data-directory.
707 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
708 comments.
709 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
710 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
711 * guile/scm-value.c (gdbscm_value_to_string): Only call
712 scm_port_conversion_strategy if Guile version >= 2.0.6.
713
714 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
715
716 * main.c (print_gdb_help): Add -q and --silent.
717
718 2014-06-06 Gary Benson <gbenson@redhat.com>
719
720 * common/signals.c: Remove preprocessor conditionals for
721 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
722 SIGSEGV and SIGTERM.
723 * proc-events.c: Likewise.
724
725 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
726
727 * symfile.c (symfile_free_objfile): Remove restriction to
728 OBJF_USERLOADED.
729 * symfile-mem.c (symbol_file_add_from_memory): Call
730 add_target_sections_of_objfile.
731
732 2014-06-05 Ludovic Courtès <ludo@gnu.org>
733
734 * guile/scm-value.c (gdbscm_history_append_x): Use
735 'vlscm_get_value_smob_arg_unsafe' instead of
736 'vlscm_scm_to_value'.
737
738 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
739
740 PR mi/15806
741 * utils.c (printchar): Don't escape at all if quoter is NUL.
742 Update function documentation to clarify effect of parameter
743 QUOTER.
744 * remote.c (escape_buffer): Pass '\\' as the quoter to
745 fputstrn_unfiltered.
746 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
747 generate the output.
748 (mi_solib_unloaded): Same.
749
750 2014-06-05 Joel Brobecker <brobecker@adacore.com>
751
752 * development.sh: Delete.
753 * Makefile.in (config.status): Adjust dependency on development.sh.
754 * configure.ac: Adjust development.sh source call.
755 * configure: Regenerate.
756
757 2014-06-04 Doug Evans <xdje42@gmail.com>
758
759 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
760 is_scheme_bkpt, spec.
761 (bpscm_make_breakpoint_smob): Initialize new members.
762 (gdbscm_create_breakpoint_x): Split into two ...
763 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
764 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
765 (scheme_function breakpoint_functions): Update.
766 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
767 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
768 register-breakpoint!.
769
770 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
771
772 PR server/17023
773 * mem-break.c (z_type_supported): Return zero if
774 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
775
776 2014-06-04 Tom Tromey <tromey@redhat.com>
777
778 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
779 value_from_contents_and_address_unresolved.
780 (ada_template_to_fixed_record_type_1): Likewise.
781 (ada_which_variant_applies): Likewise.
782 * value.h (value_from_contents_and_address_unresolved): Declare.
783 * value.c (value_from_contents_and_address_unresolved): New
784 function.
785 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
786 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
787 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
788
789 2014-06-04 Tom Tromey <tromey@redhat.com>
790
791 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
792
793 2014-06-04 Tom Tromey <tromey@redhat.com>
794
795 * procfs.c (procfs_attach): Make "args" const.
796 * windows-nat.c (windows_attach): Make "args" const.
797 * nto-procfs.c (procfs_attach): Make "args" const.
798 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
799 * go32-nat.c (go32_attach): Make "args" const.
800 * gnu-nat.c (gnu_attach): Make "args" const.
801 * darwin-nat.c (darwin_attach): Make "args" const.
802 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
803 * linux-nat.c (linux_nat_attach): Make "args" const.
804 * remote.c (extended_remote_attach_1, extended_remote_attach):
805 Make "args" const.
806 * target.h (struct target_ops) <to_attach>: Make "args" const.
807 (find_default_attach): Likewise.
808 * utils.c (parse_pid_to_attach): Make "args" const.
809 * utils.h (parse_pid_to_attach): Update.
810
811 2014-06-04 Tom Tromey <tromey@redhat.com>
812
813 * target-delegates.c: Rebuild.
814 * target.c (default_thread_address_space): New function.
815 (target_thread_address_space): Simplify.
816 * target.h (struct target_ops) <to_thread_address_space>: Add
817 TARGET_DEFAULT_FUNC.
818
819 2014-06-04 Doug Evans <xdje42@gmail.com>
820
821 * guile/scm-type.c (type_smob): Remove duplicate typedef.
822
823 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
824
825 * record-btrace.c: Include event-loop.h and inf-loop.h.
826 (record_btrace_resume_exec_dir)
827 (record_btrace_async_inferior_event_handler)
828 (record_btrace_handle_async_inferior_event): New.
829 (record_btrace_open): Create async event handler.
830 (record_btrace_close): Delete async event handler.
831 (record_btrace_resume): Set record_btrace_resume_exec_dir,
832 Mark async event handler.
833 (record_btrace_execution_direction): New.
834 (init_record_btrace_ops): Initialize to_execution_direction.
835
836 2014-06-03 Doug Evans <xdje42@gmail.com>
837
838 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
839 (gdbscm_make_parameter): Ditto.
840
841 2014-06-03 Doug Evans <dje@google.com>
842
843 * exec.c (exec_close_1): Call clear_section_table instead of
844 resize_section_table.
845 (clear_section_table): New function.
846 (resize_section_table): Make static. Rename arg num_added to
847 adjustment.
848 * exec.h (clear_section_table): Declare.
849 (resize_section_table): Delete.
850 * progspace.c (release_program_space): Call clear_section_table
851 instead of resize_section_table.
852
853 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
854
855 * NEWS (Python Scripting): Add entry about the new xmethods
856 feature.
857
858 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
859
860 * python/py-xmethods.c: New file.
861 * python/py-objfile.c (objfile_object): New field 'xmethods'.
862 (objfpy_dealloc): XDECREF on the new xmethods field.
863 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
864 field.
865 (objfpy_get_xmethods): New function.
866 (objfile_getset): New entry 'xmethods'.
867 * python/py-progspace.c (pspace_object): New field 'xmethods'.
868 (pspy_dealloc): XDECREF on the new xmethods field.
869 (pspy_new, pspace_to_pspace_object): Initialize xmethods
870 field.
871 (pspy_get_xmethods): New function.
872 (pspace_getset): New entry 'xmethods'.
873 * python/python-internal.h: Add declarations for new functions.
874 * python/python.c (_initialize_python): Invoke
875 gdbpy_initialize_xmethods.
876 * python/lib/gdb/__init__.py (xmethods): New
877 attribute.
878 * python/lib/gdb/xmethod.py: New file.
879 * python/lib/gdb/command/xmethods.py: New file.
880
881 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
882
883 * eval.c (evaluate_subexp_standard): Call the xmethod if the
884 best match method returned by find_overload_match is an xmethod.
885 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
886 the best matching operator returned by find_overload_match is an
887 xmethod.
888 * valops.c: #include "extension.h".
889 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
890 Return void. The list of matching source methods is returned in
891 "fn_list" and a vector of matching debug method workers is
892 returned in "xm_worker_vec". Update all callers.
893 (value_find_oload_method_list): Likewise.
894 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
895 non-NULL, then the index of the best matching method in this
896 vector is returned. Update all callers.
897 (find_overload_match): Include xmethods while performing overload
898 resolution.
899
900 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
901
902 * defs.h (enum lval_type): New enumerator "lval_xcallable".
903 * extension-priv.h (struct extension_language_ops): Add the
904 xmethod interface.
905 * extension.c (new_xmethod_worker, clone_xmethod_worker,
906 get_matching_xmethod_workers, get_xmethod_argtypes,
907 invoke_xmethod, free_xmethod_worker,
908 free_xmethod_worker_vec): New functions.
909 * extension.h: #include "common/vec.h".
910 New function declarations.
911 (struct xmethod_worker): New struct.
912 (VEC (xmethod_worker_ptr)): New vector type.
913 (xmethod_worker_ptr): New typedef.
914 (xmethod_worker_vec): Likewise.
915 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
916 builtin_type.
917 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
918 (struct builtin_type): New field "xmethod".
919 * valarith.c (value_ptradd): Assert that the value argument is not
920 lval_xcallable.
921 * valops.c (value_must_coerce_to_target): Return 0 for
922 lval_xcallable values.
923 * value.c (struct value): New field XM_WORKER in the field
924 LOCATION.
925 (value_address, value_raw_address): Return 0 for lval_xcallable
926 values.
927 (set_value_address): Assert that the value is not an
928 lval_xcallable.
929 (value_free): Free the associated xmethod worker when freeing
930 lval_xcallable values.
931 (set_value_component_location): Assert that the WHOLE value is not
932 lval_xcallable.
933 (value_of_xmethod, call_xmethod): New functions.
934 * value.h: Declare "struct xmethod_worker".
935 Declare new functions value_of_xmethod, call_xmethod.
936
937 2014-06-03 Joel Brobecker <brobecker@adacore.com>
938 Pedro Alves <palves@redhat.com>
939
940 PR breakpoints/17000
941 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
942 New function, extracted from software_breakpoint_inserted_here_p.
943 (software_breakpoint_inserted_here_p): Replace factored out code
944 by call to find_non_raw_software_breakpoint_inserted_here.
945 (bp_target_info_copy_insertion_state): New function.
946 (bkpt_insert_location): Handle the case of a single-step
947 breakpoint already inserted at the same address.
948 (bkpt_remove_location): Handle the case of a single-step
949 breakpoint still inserted at the same address.
950 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
951 breakpoint already inserted at the same address.
952 (deprecated_remove_raw_breakpoint): Handle the case of a
953 non-raw breakpoint still inserted at the same address.
954 (find_single_step_breakpoint): New function, extracted from
955 single_step_breakpoint_inserted_here_p.
956 (find_single_step_breakpoint): New function,
957 factored out from single_step_breakpoint_inserted_here_p.
958 (single_step_breakpoint_inserted_here_p): Reimplement.
959
960 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
961
962 Pushed by Joel Brobecker <brobecker@adacore.com>
963 * source.c (show_substitute_path_command): Fix display of matching
964 substitution rules.
965
966 2014-06-03 Gary Benson <gbenson@redhat.com>
967
968 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
969
970 2014-06-02 Doug Evans <xdje42@gmail.com>
971
972 Add parameter support for Guile.
973 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
974 (SUBDIR_GUILE_SRCS): Add scm-param.c.
975 (scm-param.o): New rule.
976 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
977 (gdbscm_misc_error): Declare.
978 (gdbscm_canonicalize_command_name): Declare.
979 (gdbscm_scm_to_host_string): Declare.
980 (gdbscm_scm_from_host_string): Declare.
981 (gdbscm_initialize_parameters): Declare.
982 * guile/guile.c (initialize_gdb_module): Call
983 gdbscm_initialize_parameters.
984 * guile/lib/gdb.scm: Export parameter symbols.
985 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
986 cmdscm_canonicalize_name and made public. All callers updated.
987 * guile/scm-exception.c (gdbscm_misc_error): New function.
988 * guile/scm-param.c: New file.
989 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
990 (gdbscm_scm_to_host_string): New function.
991 (gdbscm_scm_from_host_string): New function.
992 * scm-utils.c (gdbscm_gc_dup_argv): New function.
993
994 2014-06-02 Doug Evans <xdje42@gmail.com>
995
996 Add command support for Guile.
997 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
998 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
999 (scm-cmd.o): New rule.
1000 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
1001 (gdbscm_user_error_p): Declare.
1002 (gdbscm_parse_command_name): Declare.
1003 (gdbscm_valid_command_class_p): Declare.
1004 (gdbscm_initialize_commands): Declare.
1005 * guile/guile.c (initialize_gdb_module): Call
1006 gdbscm_initialize_commands.
1007 * guile/lib/gdb.scm: Export command symbols.
1008 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
1009 (throw-user-error): New function.
1010 * guile/scm-cmd.c: New file.
1011 * guile/scm-exception.c (user_error_symbol): New static global.
1012 (gdbscm_user_error_p): New function.
1013 (gdbscm_initialize_exceptions): Set user_error_symbol.
1014 * scm-utils.c (gdbscm_gc_xstrdup): New function.
1015
1016 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
1017
1018 * top.c (command_loop): Handle comments here...
1019 (command_line_input): ... not here.
1020
1021 2014-06-02 Doug Evans <xdje42@gmail.com>
1022
1023 Add progspace support for Guile.
1024 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
1025 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
1026 (scm-progspace.o): New rule.
1027 * guile/guile-internal.h (pspace_smob): New typedef.
1028 (psscm_pspace_smob_pretty_printers): Declare.
1029 (psscm_pspace_smob_from_pspace): Declare.
1030 (psscm_scm_from_pspace): Declare.
1031 * guile/guile.c (initialize_gdb_module): Call
1032 gdbscm_initialize_pspaces.
1033 * guile/lib/gdb.scm: Export progspace symbols.
1034 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
1035 support.
1036 (append-pretty-printer!): Ditto.
1037 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
1038 Implement.
1039 * guile/scm-progspace.c: New file.
1040
1041 2014-06-03 Alan Modra <amodra@gmail.com>
1042
1043 * ppc64-tdep.c (ppc64_standard_linkage8): New.
1044 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
1045
1046 2014-06-02 Doug Evans <dje@google.com>
1047
1048 Add support for skeletonless type units.
1049 * dwarf2read.c (struct dwarf2_per_objfile): New member
1050 n_allocated_type_units.
1051 (struct dwarf2_per_objfile) <tu_stats>: New member
1052 nr_all_type_units_reallocs.
1053 (create_signatured_type_table_from_index): Initialize
1054 n_allocated_type_units
1055 (create_all_type_units): Ditto.
1056 (add_type_unit): Move up in file. New arg slot.
1057 All callers updated. Increase space for all_type_units more
1058 efficiently.
1059 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
1060 (lookup_dwo_signatured_type): Handle skeletonless TUs.
1061 (lookup_dwp_signatured_type): Ditto.
1062 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
1063 All callers updated.
1064 (build_type_psymtabs_1): Leave type_unit_groups as
1065 NULL if no TUs present.
1066 (print_tu_stats): New function.
1067 (process_skeletonless_type_unit): New function.
1068 (process_dwo_file_for_skeletonless_type_units): New
1069 function.
1070 (process_skeletonless_type_units): New function.
1071 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
1072 Call print tu_stats if debugging enabled.
1073
1074 2014-06-02 Pedro Alves <palves@redhat.com>
1075
1076 * breakpoint.c (build_target_command_list): Don't build a command
1077 list if we have any duplicate location that isn't a dprintf.
1078
1079 2014-06-02 Pedro Alves <palves@redhat.com>
1080
1081 * breakpoint.c (dprintf_breakpoint_hit): New function.
1082 (initialize_breakpoint_ops): Install it as dprintf's
1083 breakpoint_hit method.
1084
1085 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1086
1087 * source.c (substitute_path_rule_matches): Simplify using
1088 filename_ncmp instead of FILENAME_CMP.
1089
1090 2014-06-02 Joel Brobecker <brobecker@adacore.com>
1091
1092 * source.c (substitute_path_rule_matches): Remove trailing spaces.
1093
1094 2014-06-01 Ludovic Courtès <ludo@gnu.org>
1095
1096 * configure.ac: When Guile is available, check for the
1097 availability of 'scm_new_smob'.
1098 * configure, config.h.in: Regenerate.
1099 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
1100 function.
1101
1102 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1103
1104 * frame.c (struct frame_info): Add stop_string field.
1105 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1106 (get_prev_frame_always): Old content moved into
1107 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1108 TRY_CATCH, handle MEMORY_ERROR exceptions.
1109 (frame_stop_reason_string): New function definition.
1110 * frame.h (unwind_stop_reason_to_string): Extend comment to
1111 mention frame_stop_reason_string.
1112 (frame_stop_reason_string): New function declaration.
1113 * stack.c (frame_info): Switch to frame_stop_reason_string.
1114 (backtrace_command_1): Switch to frame_stop_reason_string.
1115 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1116 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1117 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1118
1119 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1120
1121 * frame.c (frame_stop_reason_string): Rename to ...
1122 (unwind_stop_reason_to_string): this.
1123 * frame.h (frame_stop_reason_string): Rename to ...
1124 (unwind_stop_reason_to_string): this.
1125 * stack.c (frame_info): Update call to frame_stop_reason_string.
1126 (backtrace_command_1): Likewise.
1127 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1128 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1129
1130 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1131
1132 * frame.c (remove_prev_frame): New function.
1133 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1134 remove_prev_frame.
1135
1136 2014-05-29 Pedro Alves <palves@redhat.com>
1137
1138 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1139 and make it const. When a single-step decays to a continue,
1140 clear 'step', not 'hw_step'. Pass whether the caller wanted
1141 to step to user_visible_resume_ptid, not what we ask the
1142 target to do.
1143
1144 2014-05-29 Pedro Alves <palves@redhat.com>
1145
1146 * infrun.c (process_event_stop_test, handle_step_into_function)
1147 (handle_step_into_function_backward): Adjust.
1148 Don't set the even thread's stop_step and call stop_waiting before
1149 calling end_stepping_range. Instead do that ...
1150 (end_stepping_range): ... here. Take an ecs pointer parameter.
1151
1152 2014-05-29 Pedro Alves <palves@redhat.com>
1153
1154 * infrun.c (stop_stepping): Rename to ...
1155 (stop_waiting): ... this.
1156 (proceed): Update comment.
1157 (process_event_stop_test, handle_inferior_event)
1158 (handle_signal_stop, handle_step_into_function)
1159 (handle_step_into_function_backward): Update.
1160
1161 2014-05-29 Pedro Alves <palves@redhat.com>
1162
1163 * infcall.c (run_inferior_call): Don't check whether the current
1164 thread is running after the proceed call.
1165
1166 2014-05-29 Pedro Alves <palves@redhat.com>
1167 Tom Tromey <tromey@redhat.com>
1168
1169 * NEWS: Mention "maint set target-async", "set mi-async", and that
1170 background execution commands are now always available.
1171 * target.h (target_async_permitted): Update comment.
1172 * target.c (target_async_permitted, target_async_permitted_1):
1173 Default to 1.
1174 (set_target_async_command): Rename to ...
1175 (maint_set_target_async_command): ... this.
1176 (show_target_async_command): Rename to ...
1177 (maint_show_target_async_command): ... this.
1178 (_initialize_target): Adjust.
1179 * infcmd.c (prepare_execution_command): Make extern.
1180 * inferior.h (prepare_execution_command): Declare.
1181 * infrun.c (set_observer_mode): Leave target async alone.
1182 * mi/mi-interp.c (mi_interpreter_init): Install
1183 mi_on_sync_execution_done as sync_execution_done observer.
1184 (mi_on_sync_execution_done): New function.
1185 (mi_execute_command_input_handler): Don't print the prompt if we
1186 just started a synchronous command with an async target.
1187 (mi_on_resume): Check sync_execution before printing prompt.
1188 * mi/mi-main.h (mi_async_p): Declare.
1189 * mi/mi-main.c: Include gdbcmd.h.
1190 (mi_async_p): New function.
1191 (mi_async, mi_async_1): New globals.
1192 (set_mi_async_command, show_mi_async_command, mi_async): New
1193 functions.
1194 (exec_continue): Call prepare_execution_command.
1195 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1196 (mi_execute_async_cli_command): Use mi_async_p.
1197 (_initialize_mi_main): Install "set mi-async". Make
1198 "target-async" a deprecated alias.
1199
1200 2014-05-29 Pedro Alves <palves@redhat.com>
1201
1202 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1203 (_initialize_cli_interp): Adjust.
1204 * event-loop.c: Include "observer.h".
1205 (start_event_loop): Notify 'command_error' observers instead of
1206 calling display_gdb_prompt. Remove FIXME comment.
1207 * event-top.c (display_gdb_prompt): Remove call into the
1208 interpreters.
1209 * inf-loop.c: Include "observer.h".
1210 (inferior_event_handler): Notify 'command_error' observers instead
1211 of calling display_gdb_prompt.
1212 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1213 observers instead of calling display_gdb_prompt.
1214 * interps.c (interp_set): Don't call display_gdb_prompt.
1215 (current_interp_display_prompt_p): Delete.
1216 * interps.h (interp_prompt_p): Delete declaration.
1217 (interp_prompt_p_ftype): Delete.
1218 (struct interp_procs) <prompt_proc_p>: Delete field.
1219 (current_interp_display_prompt_p): Delete declaration.
1220 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1221 (_initialize_mi_interp): Adjust.
1222 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1223 'command_error' observers.
1224 (tui_on_sync_execution_done, tui_on_command_error): New
1225 functions.
1226 (tui_display_prompt_p): Delete.
1227 (_initialize_tui_interp): Adjust.
1228
1229 2014-05-29 Pedro Alves <palves@redhat.com>
1230
1231 PR gdb/13860
1232 * cli/cli-interp.c: Include infrun.h and observer.h.
1233 (cli_uiout, cli_interp): New globals.
1234 (cli_on_signal_received, cli_on_end_stepping_range)
1235 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1236 functions.
1237 (cli_interpreter_init): Install them as 'end_stepping_range',
1238 'signal_received' 'signal_exited', 'exited' and 'no_history'
1239 observers.
1240 (_initialize_cli_interp): Remove cli_interp local.
1241 * infrun.c (handle_inferior_event): Call the several stop reason
1242 observers instead of printing the stop reason directly.
1243 (end_stepping_range): New function.
1244 (print_end_stepping_range_reason, print_signal_exited_reason)
1245 (print_exited_reason, print_signal_received_reason)
1246 (print_no_history_reason): Make static, and add an uiout
1247 parameter. Print to that instead of to CURRENT_UIOUT.
1248 * infrun.h (print_end_stepping_range_reason)
1249 (print_signal_exited_reason, print_exited_reason)
1250 (print_signal_received_reason print_no_history_reason): New
1251 declarations.
1252 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1253 'mi_uiout'.
1254 <cli_uiout>: New field.
1255 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1256 uiout for CLI output. Install 'signal_received',
1257 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1258 observers.
1259 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1260 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1261 (mi_on_no_history): New functions.
1262 (ui_out_free_cleanup): Delete function.
1263 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1264 instead use the one already stored in the MI interpreter data.
1265 (mi_ui_out): Adjust.
1266 * tui/tui-interp.c: Include infrun.h and observer.h.
1267 (tui_interp): New global.
1268 (tui_on_signal_received, tui_on_end_stepping_range)
1269 (tui_on_signal_exited, tui_on_exited)
1270 (tui_on_no_history): New functions.
1271 (tui_init): Install them as 'end_stepping_range',
1272 'signal_received' 'signal_exited', 'exited' and 'no_history'
1273 observers.
1274 (_initialize_tui_interp): Delete tui_interp local.
1275
1276 2014-05-29 Pedro Alves <palves@redhat.com>
1277
1278 PR gdb/15713
1279 * linux-nat.c (linux_nat_resume_callback): Rename the second
1280 parameter to 'except'. Skip LP if it points to EXCEPT.
1281 (linux_nat_resume): Don't mark the event lwp as not stopped
1282 before resuming sibling lwps. Instead ask
1283 linux_nat_resume_callback to skip the event lwp. Mark it as not
1284 stopped after actually resuming it.
1285 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1286 resuming it.
1287 (wait_lwp): Mark the lwp as stopped here.
1288 (stop_wait_callback): Mark the lwp as not stopped right after
1289 resuming it. Don't mark lwps as stopped here.
1290 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1291 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1292
1293 2014-05-29 Pedro Alves <palves@redhat.com>
1294
1295 PR PR15693
1296 * infrun.c (resume): Determine how much to resume depending on
1297 whether the caller wanted a step, not whether we can hardware step
1298 the target. Mark all threads that we intend to run as running,
1299 unless we're calling an inferior function.
1300 (normal_stop): If the thread is running an infcall, don't finish
1301 thread state.
1302 * target.c (target_resume): Don't mark threads as running here.
1303
1304 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1305
1306 * serial.c (_initialize_serial): Remove support for
1307 the "set remotebaud" and "show remotebaud" commands.
1308 * NEWS: Add entry documenting the removal of that command.
1309
1310 2014-05-28 Yao Qi <yao@codesourcery.com>
1311
1312 * charset.c: Fix typo in comments.
1313
1314 2014-05-27 Gary Benson <gbenson@redhat.com>
1315
1316 * utils.c (internal_vproblem): Prompt for a bug report.
1317
1318 2014-05-26 Andy Wingo <wingo@igalia.com>
1319
1320 * guile/scm-arch.c (arscm_mark_arch_smob):
1321 * guile/scm-block.c (bkscm_mark_block_smob)
1322 (bkscm_mark_block_syms_progress_smob):
1323 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1324 * guile/scm-exception.c (exscm_mark_exception_smob):
1325 * guile/scm-frame.c (frscm_mark_frame_smob):
1326 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1327 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1328 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1329 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1330 (ppscm_mark_pretty_printer_worker_smob):
1331 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1332 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1333 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1334 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1335 mark functions.
1336 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1337 function.
1338
1339 2014-05-26 Andy Wingo <wingo@igalia.com>
1340 Doug Evans <xdje42@gmail.com>
1341
1342 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1343 empty_base_class. All uses updated.
1344 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1345 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1346 Adapt all callers.
1347 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1348 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1349 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1350 (gdbscm_gsmob_has_property_p, add_property_name)
1351 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1352 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1353 (gdb-object-has-property?, gdb-object-properties): Remove.
1354 (gdb-object-kind): Renamed from gsmob-kind.
1355
1356 2014-05-26 Andy Wingo <wingo@igalia.com>
1357
1358 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1359 * configure: Regenerate.
1360
1361 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1362
1363 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1364
1365 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1366
1367 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1368 (replay_memory_access_read_only, replay_memory_access_read_write)
1369 (replay_memory_access_types, replay_memory_access)
1370 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1371 (cmd_set_record_btrace, cmd_show_record_btrace)
1372 (cmd_show_replay_memory_access): New.
1373 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1374 (record_btrace_remove_breakpoint): Replace
1375 record_btrace_allow_memory_access with replay_memory_access.
1376 (_initialize_record_btrace): Add commands.
1377 * NEWS: Announce it.
1378
1379 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1380
1381 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1382
1383 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1384
1385 * MAINTAINERS (Write After Approval): Move self back from
1386 paper trail.
1387
1388 2014-05-22 Pedro Alves <palves@redhat.com>
1389
1390 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1391 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1392 (disable_randomization, enum exec_direction_kind)
1393 (execution_direction, stop_registers, start_remote)
1394 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1395 (wait_for_inferior, normal_stop, get_last_target_status)
1396 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1397 (insert_step_resume_breakpoint_at_sal)
1398 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1399 (set_step_info, print_stop_event, signal_stop_state)
1400 (signal_print_state, signal_pass_state, signal_stop_update)
1401 (signal_print_update, signal_pass_update)
1402 (update_signals_program_target, clear_exit_convenience_vars)
1403 (displaced_step_dump_bytes, update_observer_mode)
1404 (signal_catch_update, gdb_signal_from_command): Move
1405 declarations ...
1406 * infrun.h: ... to this new file.
1407 * amd64-tdep.c: Include infrun.h.
1408 * annotate.c: Include infrun.h.
1409 * arch-utils.c: Include infrun.h.
1410 * arm-linux-tdep.c: Include infrun.h.
1411 * arm-tdep.c: Include infrun.h.
1412 * break-catch-sig.c: Include infrun.h.
1413 * breakpoint.c: Include infrun.h.
1414 * common/agent.c: Include infrun.h instead of inferior.h.
1415 * corelow.c: Include infrun.h.
1416 * event-top.c: Include infrun.h.
1417 * go32-nat.c: Include infrun.h.
1418 * i386-tdep.c: Include infrun.h.
1419 * inf-loop.c: Include infrun.h.
1420 * infcall.c: Include infrun.h.
1421 * infcmd.c: Include infrun.h.
1422 * infrun.c: Include infrun.h.
1423 * linux-fork.c: Include infrun.h.
1424 * linux-nat.c: Include infrun.h.
1425 * linux-thread-db.c: Include infrun.h.
1426 * monitor.c: Include infrun.h.
1427 * nto-tdep.c: Include infrun.h.
1428 * procfs.c: Include infrun.h.
1429 * record-btrace.c: Include infrun.h.
1430 * record-full.c: Include infrun.h.
1431 * remote-m32r-sdi.c: Include infrun.h.
1432 * remote-mips.c: Include infrun.h.
1433 * remote-notif.c: Include infrun.h.
1434 * remote-sim.c: Include infrun.h.
1435 * remote.c: Include infrun.h.
1436 * reverse.c: Include infrun.h.
1437 * rs6000-tdep.c: Include infrun.h.
1438 * s390-linux-tdep.c: Include infrun.h.
1439 * solib-irix.c: Include infrun.h.
1440 * solib-osf.c: Include infrun.h.
1441 * solib-svr4.c: Include infrun.h.
1442 * target.c: Include infrun.h.
1443 * top.c: Include infrun.h.
1444 * windows-nat.c: Include infrun.h.
1445 * mi/mi-interp.c: Include infrun.h.
1446 * mi/mi-main.c: Include infrun.h.
1447 * python/py-threadevent.c: Include infrun.h.
1448
1449 2014-05-22 Pedro Alves <palves@redhat.com>
1450
1451 * infrun.c (handle_inferior_event): Store the exit code for
1452 --return-child-result here, instead of ...
1453 (print_exited_reason): ... here.
1454
1455 2014-05-21 Pedro Alves <palves@redhat.com>
1456
1457 PR gdb/13860
1458 * gdbthread.h (struct thread_control_state): New field
1459 `command_interp'.
1460 * infrun.c (follow_fork): Copy the new thread control field to the
1461 child fork thread.
1462 (clear_proceed_status_thread): Clear the new thread control field.
1463 (proceed): Set the new thread control field.
1464 * interps.h (command_interp): Declare.
1465 * interps.c (command_interpreter): New global.
1466 (command_interp): New function.
1467 (interp_exec): Set `command_interpreter' while here.
1468 * cli-out.c (cli_uiout_dtor): New function.
1469 (cli_ui_out_impl): Install it.
1470 * mi/mi-interp.c: Include cli-out.h.
1471 (mi_cmd_interpreter_exec): Add comment.
1472 (restore_current_uiout_cleanup): New function.
1473 (ui_out_free_cleanup): New function.
1474 (mi_on_normal_stop): If finishing an execution command started by
1475 a CLI command, or any kind of breakpoint-like event triggered,
1476 print the stop event to the output (CLI) stream.
1477 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1478
1479 2014-05-21 Pedro Alves <palves@redhat.com>
1480
1481 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1482 current source line having changed.
1483 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1484 * infrun.c (normal_stop): Adjust call to
1485 set_current_sal_from_frame.
1486 * source.c (clear_lines_listed_range): New function.
1487 (set_current_source_symtab_and_line, identify_source_line): Clear
1488 the lines listed range.
1489 (line_info): Handle the first "info line" after the current source
1490 line having changed.
1491 * stack.c (print_stack_frame): Remove center handling.
1492 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1493 center sal.line.
1494
1495 2014-05-21 Pedro Alves <palves@redhat.com>
1496
1497 * inf-child.c (inf_child_mourn_inferior): New function.
1498 * inf-child.h (inf_child_mourn_inferior): New declaration.
1499 * darwin-nat.c (darwin_mourn_inferior): Use
1500 inf_child_mourn_inferior.
1501 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1502 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1503 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1504 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1505 * windows-nat.c (windows_mourn_inferior): Likewise.
1506
1507 2014-05-21 Doug Evans <xdje42@gmail.com>
1508
1509 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1510
1511 2014-05-21 Doug Evans <xdje42@gmail.com>
1512
1513 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1514 (gdbscm_out_of_range_error): Ditto.
1515 (gdbscm_memory_error): Ditto.
1516 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1517 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1518 (gdbscm_out_of_range_error): Update.
1519 (gdbscm_memory_error): Update.
1520 (gdbscm_scm_to_target_string_unsafe): Delete.
1521
1522 2014-05-21 Pedro Alves <palves@redhat.com>
1523
1524 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1525 globals.
1526 (inf_child_open_target): New function.
1527 (inf_child_open): Use inf_child_open_target to push the target
1528 instead of erroring out.
1529 (inf_child_disconnect, inf_child_close)
1530 (inf_child_maybe_unpush_target): New functions.
1531 (inf_child_target): Install inf_child_disconnect and
1532 inf_child_close. Store a pointer to the returned object.
1533 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1534 declarations.
1535 * target.c (auto_connect_native_target): New global.
1536 (show_default_run_target): New function.
1537 (find_default_run_target): Return NULL if automatically connecting
1538 to the native target is disabled.
1539 (_initialize_target): Install set/show auto-connect-native-target.
1540 * NEWS: Mention "set auto-connect-native-target", and "target
1541 native".
1542 * linux-nat.c (super_close): New global.
1543 (linux_nat_close): Call super_close.
1544 (linux_nat_add_target): Store a pointer to the base class's
1545 to_close method.
1546 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1547 inf_child_maybe_unpush.
1548 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1549 already pushed.
1550 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1551 the inferior. Use inf_child_maybe_unpush_target.
1552 (inf_ttrace_attach): Don't push the target if it is already
1553 pushed.
1554 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1555 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1556 after mourning the inferior. Use inf_child_maybe_unpush_target.
1557 (darwin_attach_pid): Don't push the target if it is already
1558 pushed.
1559 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1560 mourning the inferior. Use inf_child_maybe_unpush_target.
1561 (gnu_detach): Use inf_child_maybe_unpush_target.
1562 * go32-nat.c (go32_create_inferior): Don't push the target if it
1563 is already pushed.
1564 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1565 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1566 (procfs_open): Rename to ...
1567 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1568 comments. Can target_preopen before changing node. Call
1569 inf_child_open_target to push the target explicitly.
1570 (procfs_attach): Don't push the target if it is already pushed.
1571 (procfs_detach): Use inf_child_maybe_unpush_target.
1572 (procfs_create_inferior): Don't push the target if it is already
1573 pushed.
1574 (nto_native_ops): New global.
1575 (procfs_open): Reimplement.
1576 (procfs_native_open): New function.
1577 (init_procfs_targets): Install procfs_native_open as to_open of
1578 "target native". Store a pointer to the "native" target in
1579 nto_native_ops.
1580 * procfs.c (procfs_attach): Don't push the target if it is already
1581 pushed.
1582 (procfs_detach): Use inf_child_maybe_unpush_target.
1583 (procfs_mourn_inferior): Only unpush the target after mourning the
1584 inferior. Use inf_child_maybe_unpush_target.
1585 (procfs_init_inferior): Don't push the target if it is already
1586 pushed.
1587 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1588 if it is already pushed.
1589
1590 2014-05-21 Pedro Alves <palves@redhat.com>
1591
1592 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1593 and "procfs" targets are now called "native" instead.
1594
1595 2014-05-21 Pedro Alves <palves@redhat.com>
1596
1597 * go32-nat.c (go32_open): Delete.
1598 (go32_target): Don't override the to_open method.
1599
1600 2014-05-21 Pedro Alves <palves@redhat.com>
1601
1602 * nto-procfs.c (procfs_can_run): New function.
1603 (nto_procfs_ops): New global.
1604 (init_procfs_targets): New, based on procfs_target. Install
1605 "target native" in addition to "target procfs".
1606 (_initialize_procfs): Call init_procfs_targets instead of adding
1607 the target here.
1608
1609 2014-05-21 Pedro Alves <palves@redhat.com>
1610
1611 * windows-nat.c (windows_target): Don't override to_shortname,
1612 to_longname or to_doc.
1613
1614 2014-05-21 Pedro Alves <palves@redhat.com>
1615
1616 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1617 to_doc.
1618
1619 2014-05-21 Pedro Alves <palves@redhat.com>
1620
1621 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1622 to_shortname, to_longname or to_doc.
1623
1624 2014-05-21 Pedro Alves <palves@redhat.com>
1625
1626 * go32-nat.c (go32_target): Don't override to_shortname,
1627 to_longname or to_doc.
1628
1629 2014-05-21 Pedro Alves <palves@redhat.com>
1630
1631 * inf-child.c (inf_child_open): Remove mention of "child".
1632 (inf_child_target): Rename target to "native" instead of "child".
1633
1634 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1635
1636 * Makefile.in (SFILES): Delete "regset.c".
1637 (COMMON_OBS): Delete "regset.o".
1638 * regset.c: Remove.
1639 * regset.h (regset_alloc): Delete prototype.
1640
1641 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1642
1643 * sparc-linux-tdep.c (sparc32_linux_gregset)
1644 (sparc32_linux_fpregset): New static regset structures.
1645 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1646 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1647 'fpregset' fields.
1648 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1649 (sparc64_linux_fpregset): New static regset structures.
1650 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1651 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1652 New static regset structures.
1653 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1654 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1655 New static regset structures.
1656 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1657 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1658 New static regset structures.
1659 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1660 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1661 New static regset structures.
1662 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1663
1664 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1665
1666 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1667 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1668 register maps ("regmaps") from "*regset" to "*regmap". Do this
1669 for all regmap types and variables.
1670 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1671 (sparc32_linux_supply_core_gregset)
1672 (sparc32_linux_collect_core_gregset)
1673 (sparc32_linux_supply_core_fpregset)
1674 (sparc32_linux_collect_core_fpregset): Likewise.
1675 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1676 (sparc_gregmap, sparc_fpregmap): ... these.
1677 (sparc_supply_gregset, sparc_collect_gregset)
1678 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1679 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1680 (_initialize_sparc_nat): Rename regmaps.
1681 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1682 (sparc_gregmap, sparc_fpregmap): ... these.
1683 (sparc_supply_gregset, sparc_collect_gregset)
1684 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1685 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1686 Rename macros to...
1687 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1688 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1689 Likewise.
1690 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1691 Rename to...
1692 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1693 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1694 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1695 regmaps.
1696 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1697 (sparc32_bsd_fpregset): Rename to...
1698 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1699 (sparc32_bsd_fpregmap): ... these.
1700 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1701 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1702 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1703 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1704 (struct sparc_gregmap, struct sparc_fpregmap)
1705 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1706 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1707 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1708 (sparc32_supply_regset, sparc32_collect_gregset)
1709 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1710 prototypes.
1711 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1712 (sparc64_linux_ptrace_gregmap): ... this.
1713 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1714 (_initialize_sparc64_linux_nat): Rename regmaps.
1715 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1716 (sparc64_linux_core_gregmap): ... this.
1717 (sparc64_linux_supply_core_gregset)
1718 (sparc64_linux_collect_core_gregset)
1719 (sparc64_linux_supply_core_fpregset)
1720 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1721 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1722 (sparc64_sol2_fpregset): Rename to...
1723 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1724 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1725 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1726 regmaps.
1727 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1728 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1729 (sparc64_bsd_fpregset): Rename to...
1730 (struct sparc_gregmap, sparc64_sol2_gregmap)
1731 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1732 (sparc64_bsd_fpregmap): ... these.
1733 (sparc64_supply_gregset, sparc64_collect_gregset)
1734 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1735 prototypes.
1736 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1737 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1738 (sparc64fbsd_gregmap): ... this.
1739 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1740 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1741 Rename regmaps.
1742 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1743 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1744 (sparc64nbsd_collect_fpregset): Likewise.
1745 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1746 (sparc64nbsd_gregmap): ... this.
1747 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1748 regmaps.
1749 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1750 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1751 (sparc64obsd_gregmap): ... this.
1752 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1753 regmaps.
1754 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1755 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1756 (sparc32nbsd_gregmap): ... this.
1757 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1758 regmaps.
1759
1760 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1761
1762 * score-tdep.c (score7_linux_gregset): New static regset
1763 structure.
1764 (score7_linux_regset_from_core_section): Remove dynamic regset
1765 allocation.
1766 (score_gdbarch_init): Drop allocation of tdep structure.
1767 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1768
1769 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1770
1771 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1772 regset structures.
1773 (am33_regset_from_core_section): Remove dynamic regset
1774 allocations.
1775
1776 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1777
1778 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1779 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1780 structures.
1781 (mips_linux_regset_from_core_section): Remove dynamic regset
1782 allocations.
1783 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1784 'gregset64', 'fpregset', and 'fpregset64'.
1785 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1786 deleted tdep fields.
1787
1788 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1789
1790 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1791 regset structures.
1792 (amd64_regset_from_core_section): Remove dynamic regset
1793 allocations.
1794 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1795 structure.
1796 (amd64obsd_regset_from_core_section): Remove dynamic regset
1797 allocation.
1798 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1799 Likewise.
1800 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1801 x86-common regset supply function.
1802 * i386-tdep.c (i386_collect_gregset): Make static.
1803 (i386_gregset): New global regset structure.
1804 (i386_fpregset, i386_xstateregset): New static regset structures.
1805 (i386_regset_from_core_section): Remove dynamic regset
1806 allocations.
1807 (i386_gdbarch_init): Remove initialization of tdep fields
1808 'gregset', 'fpregset', and 'xstateregset'.
1809 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1810 'fpregset', and 'xstateregset'.
1811 (i386_collect_gregset): Remove prototype.
1812 (i386_gregset): New declaration.
1813 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1814 structure.
1815 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1816 allocation.
1817
1818 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1819
1820 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1821 (arm_linux_vfpregset): New static regset structures.
1822 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1823 regset structures.
1824 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1825 and 'vfpregset' fields.
1826
1827 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1828
1829 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1830 (aarch64_linux_fpregset): New static regset structures.
1831 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1832 of regset structures.
1833 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1834 'fpregset' fields.
1835
1836 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1837
1838 * regset.h (struct regset): Remove gdbarch field.
1839 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1840 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1841 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1842 Likewise.
1843 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1844 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1845 (ppc32_linux_vsxregset): Likewise.
1846 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1847 via the regcache instead of the regset.
1848 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1849 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1850 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1851 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1852 Likewise.
1853
1854 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1855
1856 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1857 Constify structures.
1858 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1859 (alphanbsd_aout_gregset): Likewise.
1860 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1861 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1862 Likewise.
1863 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1864 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1865 Likewise.
1866 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1867 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1868 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1869 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1870 * m88k-tdep.c (m88k_gregset): Likewise.
1871 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1872 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1873 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1874 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1875 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1876 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1877 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1878 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1879 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1880 Likewise.
1881 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1882 * sh-tdep.h (sh_corefile_gregset): Likewise.
1883 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1884 * vax-tdep.c (vax_gregset): Likewise.
1885
1886 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1887
1888 Fix TLS access for -static -pthread.
1889 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1890 (try_thread_db_load_1): Initialize it.
1891 (thread_db_get_thread_local_address): Call it if LM is zero.
1892 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1893 * target.h (struct target_ops) (to_get_thread_local_address): Add
1894 load_module_addr comment.
1895
1896 2014-05-21 Pedro Alves <palves@redhat.com>
1897
1898 * dcache.c (dcache_read_memory_partial): If reading the cache line
1899 fails, fallback to reading just the memory the caller wanted.
1900
1901 2014-05-20 Doug Evans <dje@google.com>
1902
1903 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1904 instead of get_current_arch.
1905
1906 2014-05-20 Pedro Alves <palves@redhat.com>
1907
1908 * NEWS: Mention that compare-sections now works with all targets.
1909
1910 * remote.c (PACKET_qCRC): New enum value.
1911 (remote_verify_memory): Don't send qCRC if the target has no
1912 execution. Use packet_support/packet_ok. If the target doesn't
1913 support the qCRC packet, fallback to a deep memory copy.
1914 (compare_sections_command): Say "target image" instead of "remote
1915 executable".
1916 (_initialize_remote): Add PACKET_qCRC to the list of config
1917 packets that have no associated command. Extend comment.
1918 * target.c (simple_verify_memory, default_verify_memory): New
1919 function.
1920 * target.h (struct target_ops) <to_verify_memory>: Default to
1921 default_verify_memory.
1922 (simple_verify_memory): New declaration.
1923 * target-delegates.c: Regenerate.
1924
1925 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1926
1927 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1928
1929 2014-05-20 Hui Zhu <hui@codesourcery.com>
1930 Yao Qi <yao@codesourcery.com>
1931
1932 PR backtrace/16558
1933 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1934 and change address of sp and pc.
1935
1936 2014-05-19 Tom Tromey <tromey@redhat.com>
1937
1938 * gdbtypes.c (rank_function): Use XNEWVEC.
1939 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1940
1941 2014-05-19 Doug Evans <dje@google.com>
1942
1943 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1944 build_type_unit_groups and moved closer to only caller. Remove
1945 arguments. All references updated. Remove outdated .gdb_index
1946 comment.
1947 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1948 build_type_psymtabs_1.
1949
1950 2014-05-19 Doug Evans <dje@google.com>
1951
1952 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1953 n_type_unit_groups, all_type_unit_groups. All uses removed.
1954 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1955 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1956 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1957 (add_type_unit_group_to_table): Delete.
1958
1959 2014-05-19 Doug Evans <dje@google.com>
1960
1961 * eval.c (evaluate_subexp_standard): Add some comments.
1962
1963 2014-05-17 Doug Evans <xdje42@gmail.com>
1964
1965 * progspace.c (remove_program_space): Delete, unused.
1966 * progspace.h (remove_program_space): Ditto.
1967
1968 2014-05-17 Doug Evans <xdje42@gmail.com>
1969
1970 * inferior.c (prune_inferiors): Fix comment.
1971 (remove_inferior_command): Call prune_program_spaces.
1972
1973 2014-05-16 Doug Evans <dje@google.com>
1974
1975 New command line option -D.
1976 * NEWS: Mention it.
1977 * main.c (set_gdb_data_directory): New function.
1978 (captured_main): Recognize -D. Flag error for --data-directory "".
1979 Call set_gdb_data_directory.
1980 (print_gdb_help): Print --data-directory, -D.
1981 * main.h (set_gdb_data_directory): Declare.
1982 * top.c (staged_gdb_datadir): New static global.
1983 (set_gdb_datadir): Call set_gdb_data_directory
1984 (show_gdb_datadir): New function.
1985 (init_main): Update init of data-directory parameter.
1986
1987 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1988
1989 Import the "dirfd" gnulib module.
1990 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1991 * gnulib/aclocal.m4: Update.
1992 * gnulib/config.in: Update.
1993 * gnulib/configure: Update.
1994 * gnulib/import/Makefile.am: Update.
1995 * gnulib/import/Makefile.in: Update.
1996 * gnulib/import/dirfd.c: New.
1997 * gnulib/import/m4/dirfd.m4: New.
1998 * gnulib/import/m4/gnulib-cache.m4: Update.
1999 * gnulib/import/m4/gnulib-comp.m4: Update.
2000
2001 2014-05-16 Pierre Muller <muller@sourceware.org>
2002 Yao Qi <yao@codesourcery.com>
2003
2004 * valprint.c (print_wchar): Move the code on checking whether
2005 W is a printable wide char to the default branch of switch
2006 statement below. Call wchar_printable instead of gdb_iswprint.
2007
2008 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
2009
2010 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
2011 ldr.w and ldrd instructions.
2012
2013 2014-05-15 Doug Evans <dje@google.com>
2014
2015 * dwarf2read.c (read_structure_type): Delete outdated comments.
2016
2017 2014-05-14 Tom Tromey <tromey@redhat.com>
2018
2019 * macrocmd.c (print_macro_definition): Reindent.
2020
2021 2014-05-13 Doug Evans <xdje42@gmail.com>
2022
2023 * python/py-cmd.c (cmdpy_completer): Add comment.
2024 (completers): Make const.
2025
2026 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
2027
2028 * infrun.c (resume): Remove should_resume (unused). Move up
2029 declaration of resume_ptid.
2030
2031 2014-05-13 Tom Tromey <tromey@redhat.com>
2032
2033 * language.h (unop_type_check): Remove.
2034 (binop_type_check): Don't declare.
2035
2036 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
2037
2038 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
2039 call to regcache_raw_collect.
2040
2041 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2042
2043 * mi/mi-console.c (mi_console_raw_packet): Use the value from
2044 mi_console->quote as the quoting character.
2045
2046 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
2047
2048 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
2049
2050 2014-04-29 Tom Tromey <tromey@redhat.com>
2051
2052 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
2053 "show debug varobj".
2054
2055 2014-05-07 Kyle McMartin <kyle@redhat.com>
2056
2057 Pushed by Joel Brobecker <brobecker@adacore.com>.
2058 * aarch64-tdep.c (aarch64_software_single_step): New function.
2059 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
2060 with aarch64_software_single_step.
2061
2062 2014-05-05 Joel Brobecker <brobecker@adacore.com>
2063
2064 GDB 7.7.1 released.
2065
2066 2014-05-05 Keith Seitz <keiths@redhat.com>
2067
2068 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
2069 variable or history value is successfully parsed.
2070
2071 2014-05-05 Yao Qi <yao@codesourcery.com>
2072 Pedro Alves <palves@redhat.com>
2073
2074 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
2075 address of blocks that intersects the requested range. Trim
2076 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
2077 sections.
2078 * ctf.c (ctf_xfer_partial): Likewise.
2079
2080 2014-05-05 Yao Qi <yao@codesourcery.com>
2081
2082 * printcmd.c (display_command): Remove the check to
2083 target_has_execution.
2084
2085 2014-05-03 Mark Kettenis <kettenis@gnu.org>
2086
2087 * ppcobsd-nat.c: Include "obsd-nat.h".
2088 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
2089 add_target.
2090 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2091
2092 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2093
2094 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
2095 and 16-bit signed and unsigned arguments. Update comment.
2096 (stap_parse_probe_arguments): Extend code to handle such
2097 arguments. Use warning instead of complaint to notify about
2098 unrecognized bitness.
2099
2100 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
2101
2102 PR breakpoints/16889
2103 * stap-probe.c (stap_parse_probe_arguments): Simplify
2104 check for non-prefixed probes (i.e., probes whose
2105 arguments do not start with "N@"). Always set the
2106 argument type to a sane value.
2107
2108 2014-05-01 David Taylor <dtaylor@emc.com>
2109
2110 * remote.c (compare_sections_command): Add -r option to compare
2111 all loadable read-only sections.
2112
2113 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2114
2115 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2116 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2117 Update all callers.
2118 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2119 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2120 Remove unused CORE_ADDR argument. Update all callers.
2121
2122 2014-04-29 Pedro Alves <palves@redhat.com>
2123
2124 * remote.c (struct packet_config) <detect>: Extend comment.
2125 (add_packet_config_cmd): Don't set the config's detect or support
2126 fields here.
2127 (init_all_packet_configs): Also initialize the config's 'detect'
2128 field.
2129 (reset_all_packet_configs_support): New function.
2130 (remote_open_1): Call reset_all_packet_configs_support instead of
2131 init_all_packet_configs.
2132 (_initialize_remote): Initialize all packet configs. Assert that
2133 all packets have an associated command, except a few known
2134 outliers.
2135
2136 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2137
2138 * dwarf2read.c (read_subrange_type): Handle dynamic
2139 DW_AT_lower_bound attributes.
2140
2141 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2142
2143 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2144 dynamic bounds before computing its upper bound.
2145 (ada_discrete_type_low_bound): Same as above with the lower bound.
2146
2147 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2148
2149 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2150 range types. Adjust the array handling implementation to
2151 take advantage of this change.
2152 (resolve_dynamic_range): New function, mostly extracted from
2153 resolve_dynamic_bounds.
2154 (resolve_dynamic_array): New function, mostly extracted from
2155 resolve_dynamic_bounds.
2156 (resolve_dynamic_bounds): Delete.
2157 (resolve_dynamic_type): Reimplement. Add handling of
2158 TYPE_CODE_RANGE types.
2159
2160 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2161
2162 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2163 handling of parallel ___XA types.
2164
2165 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2166
2167 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2168 unnecessary second call to static_unwrap_type.
2169
2170 2014-04-27 Hui Zhu <hui@codesourcery.com>
2171
2172 * stack.c (print_frame_info): Call do_gdb_disassembly with
2173 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2174
2175 2014-04-26 Doug Evans <xdje42@gmail.com>
2176
2177 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2178
2179 2014-04-25 Pedro Alves <palves@redhat.com>
2180
2181 PR server/16255
2182 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2183 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2184 and newline from built string.
2185 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2186 (linux_ptrace_attach_fail_reason): ... this.
2187 * linux-nat.c (linux_nat_attach): Adjust to use
2188 linux_ptrace_attach_fail_reason.
2189
2190 2014-04-25 Pedro Alves <palves@redhat.com>
2191
2192 * remote.c (struct remote_state): Remove multi_process_aware,
2193 non_stop_aware, cond_tracepoints, cond_breakpoints,
2194 breakpoint_commands, fast_tracepoints, static_tracepoints,
2195 install_in_trace, disconnected_tracing,
2196 enable_disable_tracepoints, string_tracing, and
2197 augmented_libraries_svr4_read fields.
2198 (remote_multi_process_p): Move further below in the file.
2199 (struct packet_config): Add comments.
2200 (update_packet_config): Delete function.
2201 (show_packet_config_cmd): Use packet_config_support.
2202 (add_packet_config_cmd): Use NULL as set callback.
2203 (packet_ok): "set remote foo-packet"-style commands no longer
2204 change config->supported -- adjust.
2205 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2206 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2207 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2208 (PACKET_QNonStop, PACKET_multiprocess_feature)
2209 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2210 (PACKET_DisconnectedTracing_feature)
2211 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2212 (set_remote_protocol_packet_cmd): Delete function.
2213 (packet_config_support, packet_support): New functions.
2214 (set_remote_protocol_Z_packet_cmd): Don't call
2215 update_packet_config.
2216 (remote_query_attached, remote_pass_signals)
2217 (remote_program_signals, remote_threads_info)
2218 (remote_threads_extra_info, remote_start_remote): Use
2219 packet_support.
2220 (remote_start_remote): Use packet_config_support and
2221 packet_support.
2222 (init_all_packet_configs): Set all packets to unknown support,
2223 instead of calling update_packet_config.
2224 (remote_check_symbols): Use packet_support.
2225 (remote_supported_packet): Unconditionally set the packet config's
2226 support status.
2227 (remote_multi_process_feature, remote_non_stop_feature)
2228 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2229 (remote_breakpoint_commands_feature)
2230 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2231 (remote_install_in_trace_feature)
2232 (remote_disconnected_tracing_feature)
2233 (remote_enable_disable_tracepoint_feature)
2234 (remote_string_tracing_feature)
2235 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2236 (remote_protocol_features): Adjust to use remote_supported_packet
2237 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2238 "ConditionalTracepoints", "ConditionalBreakpoints",
2239 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2240 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2241 "EnableDisableTracepoints", and "tracenz".
2242 (remote_query_supported): Use packet_support.
2243 (remote_open_1): Adjust.
2244 (extended_remote_attach_1): Use packet_support. Switch on the
2245 result of packet_ok instead of checking whether the packet ended
2246 up disabled.
2247 (remote_vcont_resume): Use packet_support.
2248 (remote_resume, remote_stop_ns, fetch_register_using_p)
2249 (remote_prepare_to_store, store_register_using_P)
2250 (check_binary_download, remote_write_bytes): Use packet_support.
2251 (remote_vkill): Use packet_support. Switch on the result of
2252 packet_ok instead of checking whether the packet ended up
2253 disabled.
2254 (extended_remote_supports_disable_randomization): Use
2255 packet_support.
2256 (extended_remote_run): Switch on the result of packet_ok instead
2257 of checking whether the packet ended up disabled.
2258 (remote_insert_breakpoint, remote_remove_breakpoint)
2259 (remote_insert_watchpoint, remote_remove_watchpoint)
2260 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2261 packet_support.
2262 (remote_search_memory): Use packet_config_support.
2263 (remote_get_thread_local_address, remote_get_tib_address)
2264 (remote_hostio_send_command, remote_can_execute_reverse): Use
2265 packet_support.
2266 (remote_supports_cond_tracepoints)
2267 (remote_supports_cond_breakpoints)
2268 (remote_supports_fast_tracepoints)
2269 (remote_supports_static_tracepoints)
2270 (remote_supports_install_in_trace)
2271 (remote_supports_enable_disable_tracepoint)
2272 (remote_supports_string_tracing)
2273 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2274 the packet config says the feature is enabled or disabled.
2275 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2276 (remote_get_trace_status): Use packet_support.
2277 (remote_set_disconnected_tracing): Adjust to check whether the
2278 feature is enabled with packet_support.
2279 (remote_set_trace_buffer_size, remote_use_agent)
2280 (remote_can_use_agent, remote_supports_btrace): Use
2281 packet_support.
2282 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2283 Use packet_config_support.
2284 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2285 the packet config says the feature is enabled or disabled.
2286 (set_range_stepping): Use packet_support.
2287
2288 2014-04-25 Tom Tromey <tromey@redhat.com>
2289
2290 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2291 argument.
2292
2293 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2294
2295 * NEWS: Mention support for C99 variable length arrays.
2296
2297 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2298
2299 * ada-lang.c (standard_exc): Expand introductory comment.
2300
2301 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2302 Walfred Tedeschi <walfred.tedeschi@intel.com>
2303
2304 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2305 AVX512 registers.
2306 (amd64_linux_read_description): Add code to handle AVX512 xstate
2307 mask and return respective tdesc.
2308 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2309 and features/i386/x32-avx512-linux.c.
2310 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2311 (amd64_linux_core_read_description): Add code to handle AVX512
2312 xstate mask and return respective tdesc.
2313 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2314 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2315 calculation.
2316 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2317 (tdesc_amd64_avx512_linux): New prototype.
2318 (tdesc_x32_avx512_linux): Likewise.
2319 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2320 features/i386/x32-avx512.c.
2321 (amd64_ymm_avx512_names): New register names for pseudo
2322 registers YMM16-31.
2323 (amd64_ymmh_avx512_names): New register names for raw registers
2324 YMMH16-31.
2325 (amd64_k_names): New register names for K registers.
2326 (amd64_zmmh_names): New register names for ZMM raw registers.
2327 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2328 (amd64_xmm_avx512_names): New register names for XMM16-31
2329 registers.
2330 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2331 registers.
2332 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2333 if feature is present.
2334 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2335 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2336 (AMD64_NUM_REGS): Adjust to new number of registers.
2337 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2338 registers supplied via XSTATE by AVX512 registers.
2339 (i386_linux_read_description): Add case for AVX512.
2340 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2341 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2342 (i386_linux_core_read_description): Add case for AVX512.
2343 (i386_linux_init_abi): Install supported register note section
2344 for AVX512.
2345 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2346 AVX512.
2347 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2348 registers to be number of zmm7h + 1.
2349 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2350 * i386-tdep.c: Include features/i386/i386-avx512.c.
2351 (i386_zmm_names): Add ZMM pseudo register names array.
2352 (i386_zmmh_names): Add ZMM raw register names array.
2353 (i386_k_names): Add K raw register names array.
2354 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2355 registers. AVX512 has 16 more ZMM registers than there are YMM
2356 registers.
2357 (i386_zmmh_regnum_p): Add function to look up register number of
2358 ZMM raw registers.
2359 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2360 (i386_k_regnum_p): Likewise for K raw registers.
2361 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2362 registers added by AVX512.
2363 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2364 registers added by AVX512.
2365 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2366 added by AVX512.
2367 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2368 (i386_pseudo_register_name): Add ZMM pseudo registers.
2369 (i386_zmm_type): Construct and return vector registers type for ZMM
2370 registers.
2371 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2372 ZMM0-31 pseudo registers and K registers.
2373 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2374 and YMM16-31 registers from register cache.
2375 (i386_pseudo_register_write): Add code to write K, ZMM and
2376 YMM16-31 registers.
2377 (i386_register_reggroup_p): Add code to include/exclude AVX512
2378 registers in/from respective register groups.
2379 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2380 registers if feature is present in xcr0.
2381 (i386_gdbarch_init): Add code to initialize AVX512 feature
2382 variables in tdep structure, wire in pseudo registers and call
2383 initialize_tdesc_i386_avx512.
2384 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2385 variables.
2386 (i386_regnum): Add AVX512 registers.
2387 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2388 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2389 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2390 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2391 512 bits wide.
2392 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2393 (i386_ymm_avx512_regnum_p): Likewise.
2394 (i386_k_regnum_p): Likewise.
2395 (i386_zmm_regnum_p): Likewise.
2396 (i386_zmmh_regnum_p): Likewise.
2397 * i387-tdep.c : Update year in copyright notice.
2398 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2399 XSAVE buffer.
2400 (XSAVE_YMM_AVX512_ADDR): New macro.
2401 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2402 XSAVE buffer.
2403 (XSAVE_XMM_AVX512_ADDR): New macro.
2404 (xsave_avx512_k_offset): New table for K register offsets in
2405 XSAVE buffer.
2406 (XSAVE_AVX512_K_ADDR): New macro.
2407 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2408 in XSAVE buffer.
2409 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2410 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2411 buffer.
2412 (i387_collect_xsave): Add code to collect AVX512 registers from
2413 XSAVE buffer.
2414 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2415 of XMM16-31 registers.
2416 (I387_NUM_K_REGS): New define for number of K registers.
2417 (I387_K0_REGNUM): New define for K0 register number.
2418 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2419 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2420 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2421 registers.
2422 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2423 (I387_XMM16_REGNUM): New define for XMM16 register number.
2424 (I387_YMM0_REGNUM): New define for YMM0 register number.
2425 (I387_KEND_REGNUM): New define for last K register number.
2426 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2427 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2428 number.
2429 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2430 number.
2431 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2432 size.
2433 * features/Makefile: Add AVX512 related files.
2434 * features/i386/32bit-avx512.xml: New file.
2435 * features/i386/64bit-avx512.xml: Likewise.
2436 * features/i386/amd64-avx512-linux.c: Likewise.
2437 * features/i386/amd64-avx512-linux.xml: Likewise.
2438 * features/i386/amd64-avx512.c: Likewise.
2439 * features/i386/amd64-avx512.xml: Likewise.
2440 * features/i386/i386-avx512-linux.c: Likewise.
2441 * features/i386/i386-avx512-linux.xml: Likewise.
2442 * features/i386/i386-avx512.c: Likewise.
2443 * features/i386/i386-avx512.xml: Likewise.
2444 * features/i386/x32-avx512-linux.c: Likewise.
2445 * features/i386/x32-avx512-linux.xml: Likewise.
2446 * features/i386/x32-avx512.c: Likewise.
2447 * features/i386/x32-avx512.xml: Likewise.
2448 * regformats/i386/amd64-avx512-linux.dat: New file.
2449 * regformats/i386/amd64-avx512.dat: Likewise.
2450 * regformats/i386/i386-avx512-linux.dat: Likewise.
2451 * regformats/i386/i386-avx512.dat: Likewise.
2452 * regformats/i386/x32-avx512-linux.dat: Likewise.
2453 * regformats/i386/x32-avx512.dat: Likewise.
2454 * NEWS: Add note about new support for AVX512.
2455
2456
2457 2014-04-23 Pedro Alves <palves@redhat.com>
2458
2459 * breakpoint.c (insert_bp_location): Tolerate errors if the
2460 breakpoint is set in a user-loaded objfile.
2461 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2462 location is marked shlib_disabled. If the breakpoint is set in a
2463 user-loaded objfile is a GDB-side memory breakpoint, validate it
2464 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2465 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2466 flag.
2467 * mem-break.c (memory_validate_breakpoint): New function.
2468 * objfiles.c (userloaded_objfile_contains_address_p): New
2469 function.
2470 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2471 * target.h (memory_validate_breakpoint): New declaration.
2472
2473 2014-04-23 Pedro Alves <palves@redhat.com>
2474
2475 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2476 the breakpoint is set in a shared library, only suppress
2477 errors for software breakpoints, not hardware breakpoints.
2478
2479 2014-04-22 Pedro Alves <palves@redhat.com>
2480
2481 * infrun.c (schedlock_applies): New function, factored out from
2482 find_thread_needs_step_over.
2483 (find_thread_needs_step_over): Use it.
2484 (switch_back_to_stepped_thread): Always clear trap_expected if the
2485 step over is finished. Return early if scheduler locking applies.
2486 Look for the stepping thread and a potential step-over thread with
2487 a single loop.
2488 (currently_stepping_or_nexting_callback): Delete.
2489
2490 2014-04-22 Nick Clifton <nickc@redhat.com>
2491
2492 * NEWS: Mention that ARM sim now supports tracing.
2493
2494 2014-04-22 Yao Qi <yao@codesourcery.com>
2495
2496 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2497 to ...
2498 * tracefile.c (tracefile_fetch_registers): ... it. New
2499 function.
2500 * tracefile.h (tracefile_fetch_registers): Declare.
2501 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2502 tracefile_fetch_registers.
2503
2504 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2505
2506 PR gdb/14018
2507 * windows-nat.c (thread_rec): Don't display a warning when
2508 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2509 fails for any reason, set th->suspended to -1, so that we don't
2510 try to resume such a thread. Also, don't return NULL in these
2511 cases, to avoid completely ruin the session due to "PC register is
2512 not available" error.
2513 (do_windows_fetch_inferior_registers): Check errors in
2514 GetThreadContext call.
2515 (windows_continue): Accept an additional argument KILLED; if not
2516 zero, ignore errors in the SetThreadContext call, since the
2517 inferior was killed and is shutting down.
2518 (windows_resume, get_windows_debug_event)
2519 (windows_create_inferior, windows_mourn_inferior)
2520 (windows_kill_inferior): All callers of windows_continue changed
2521 to adjust to its new calling sequence.
2522
2523 2014-04-19 Yao Qi <yao@codesourcery.com>
2524
2525 * ctf.c (ctf_open): Call post_create_inferior.
2526
2527 2014-04-19 Yao Qi <yao@codesourcery.com>
2528
2529 * ctf.c (handle_id): New static variable.
2530 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2531 value. Get the declaration of event "register" and get length
2532 of field "contents".
2533
2534 2014-04-19 Yao Qi <yao@codesourcery.com>
2535
2536 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2537
2538 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2539
2540 * valops.c (oload_method_static): Remove unnecessary argument
2541 METHOD. Update all callers.
2542
2543 2014-04-18 Pedro alves <palves@redhat.com>
2544 Tom Tromey <tromey@redhat.com>
2545
2546 PR backtrace/15558
2547 * frame.c (get_prev_frame_1): Rename to ...
2548 (get_prev_frame_always): ... this, and make extern. Adjust.
2549 (skip_artificial_frames): Use get_prev_frame_always.
2550 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2551 (get_frame_unwind_stop_reason): Adjust to rename.
2552 * frame.h (get_prev_frame_always): Declare.
2553 * inline-frame.c: Include frame.h.
2554 (inline_frame_this_id): Use get_prev_frame_always.
2555
2556 2014-04-18 Tristan Gingold <gingold@adacore.com>
2557
2558 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2559 code by using bfd_mach_o_get_base_address.
2560
2561 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
2562
2563 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2564 (spu_ax_pseudo_register_collect): New function.
2565 (spu_ax_pseudo_register_push_stack): Likewise.
2566 (spu_dwarf_reg_to_regnum): Likewise.
2567 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2568
2569 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
2570
2571 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2572 Replace FRAME argument with FRAME_ID.
2573 * gdbarch.c, gdbarch.h: Regenerate.
2574 * findvar.c (default_value_from_register): Add GDBARCH argument;
2575 replace FRAME by FRAME_ID. No longer call get_frame_id.
2576 (value_from_register): Update call to gdbarch_value_from_register.
2577 * value.h (default_value_from_register): Update prototype.
2578 * s390-linux-tdep.c (s390_value_from_register): Update interface
2579 and call to default_value_from_register.
2580 * spu-tdep.c (spu_value_from_register): Likewise.
2581
2582 * findvar.c (address_from_register): Remove TYPE argument.
2583 Do not call value_from_register; use gdbarch_value_from_register
2584 with null_frame_id instead.
2585 * value.h (address_from_register): Update prototype.
2586 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2587 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2588 address_from_register interface change.
2589
2590 2014-04-17 Yao Qi <yao@codesourcery.com>
2591
2592 * gdbtypes.h: Update comments to link to types and macros'
2593 definitions.
2594
2595 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2596
2597 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2598
2599 2014-04-16 Keith Seitz <keiths@redhat.com>
2600
2601 PR gdb/15827
2602 * dwarf2read.c (skip_one_die): Check that all relative-offset
2603 sibling DIEs fall within range of the current reader's buffer.
2604 (read_partial_die): Likewise.
2605
2606 2014-04-16 Keith Seitz <keiths@redhat.com>
2607
2608 PR c++/16597
2609 * cp-namespace.c (lookup_symbol_file): If the type name of
2610 `this' is NULL, return immediately.
2611
2612 2014-04-14 Keith Seitz <keiths@redhat.com>
2613
2614 PR c++/16253
2615 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2616 from symbol_matches_domain in symtab.c. All local callers
2617 of symbol_matches_domain updated.
2618 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2619 search STRUCT_DOMAIN.
2620 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2621 independently. standard_lookup will do that automatically.
2622 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2623 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2624 (cp_lookup_symbol_in_namespace): Likewise.
2625 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2626 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2627 may return a STRUCT_DOMAIN match.
2628 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2629 * cp-support.c: Include language.h.
2630 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2631 VAR_DOMAIN.
2632 * psymtab.c (match_partial_symbol): Compare the requested
2633 domain with the symbol's domain directly.
2634 (lookup_partial_symbol): Likewise.
2635 * symtab.c (lookup_symbol_in_language): Explain when/why
2636 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2637 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2638 appropriate languages.
2639 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2640 and moved to ada-lang.c
2641 (lookup_block_symbol): Explain that this function only returns
2642 symbol matching the requested DOMAIN.
2643 Compare the requested domain with the symbol's domain directly.
2644 (iterate_over_symbols): Compare the requested domain with the
2645 symbol's domain directly.
2646 * symtab.h (symbol_matches_domain): Remove.
2647
2648 2014-04-14 Tom Tromey <tromey@redhat.com>
2649
2650 PR c++/15246:
2651 * c-exp.y (type_aggregate_p): New function.
2652 (qualified_name, classify_inner_name): Use it.
2653 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2654 and TYPE_TARGET_TYPE of an enum type.
2655 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2656 an enum type.
2657 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2658 handle TYPE_DECLARED_CLASS.
2659 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2660 types.
2661 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2662 * valops.c (enum_constant_from_type): New function.
2663 (value_aggregate_elt): Use it.
2664 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2665 TYPE_CODE_ENUM.
2666
2667 2014-04-14 Tom Tromey <tromey@redhat.com>
2668
2669 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2670 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2671 const.
2672 * value.h (value_aggregate_elt): Update.
2673
2674 2014-04-14 Tom Tromey <tromey@redhat.com>
2675
2676 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2677
2678 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2679
2680 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2681 (evaluate_subexp_standard): Pass noside argument.
2682 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2683 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2684 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2685 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2686 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2687
2688 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2689
2690 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2691 points to a constant blob.
2692
2693 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2694
2695 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2696 property and store it as the high bound and flag the range accordingly.
2697 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2698 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2699 * gdbtypes.h (enum range_flags): New enum.
2700 (struct range_bounds): Add flags member.
2701
2702 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2703
2704 * c-typeprint.c (c_type_print_varspec_suffix): Added
2705 check for not yet resolved high bound. If unresolved, print
2706 "variable length" string to the console instead of random
2707 length.
2708
2709 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2710
2711 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2712 value.
2713 (ada_template_to_fixed_record_type_1): Likewise.
2714 (ada_to_fixed_type_1): Likewise.
2715 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2716 (cp_print_value): Likewise.
2717 * d-valprint.c (dynamic_array_type): Likewise.
2718 * findvar.c (address_of_variable): Likewise.
2719 * jv-valprint.c (java_value_print): Likewise.
2720 * valops.c (value_ind): Likewise.
2721 * value.c (coerce_ref): Likewise.
2722
2723 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2724
2725 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2726 value and retrieve the dynamic type size.
2727
2728 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2729
2730 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2731 passed to sizeof is dynamic evaluate the argument to compute the length.
2732
2733 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2734 Joel Brobecker <brobecker@adacore.com>
2735
2736 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2737 (dwarf2_evaluate_property): New function.
2738 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2739 * dwarf2read.c (attr_to_dynamic_prop): New function.
2740 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2741 attribute.
2742 * gdbtypes.c: Include dwarf2loc.h.
2743 (is_dynamic_type): New function.
2744 (resolve_dynamic_type): New function.
2745 (resolve_dynamic_bounds): New function.
2746 (get_type_length): New function.
2747 (check_typedef): Use get_type_length to compute type length.
2748 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2749 (TYPE_LOW_BOUND_KIND): New macro.
2750 (is_dynamic_type): New function prototype.
2751 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2752 to resolve dynamic properties of the type. Update comment.
2753 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2754
2755 2014-04-14 Richard Henderson <rth@redhat.com>
2756
2757 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2758
2759 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2760 Doug Evans <xdje42@gmail.com>
2761
2762 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2763 dereference TYPE_CODE_REF values.
2764
2765 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2766
2767 Revert the following changes due to regressions:
2768
2769 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2770 (dwarf2_evaluate_property): New function.
2771 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2772 * dwarf2read.c (attr_to_dynamic_prop): New function.
2773 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2774 attribute.
2775 * gdbtypes.c: Include dwarf2loc.h.
2776 (is_dynamic_type): New function.
2777 (resolve_dynamic_type): New function.
2778 (resolve_dynamic_bounds): New function.
2779 (get_type_length): New function.
2780 (check_typedef): Use get_type_length to compute type length.
2781 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2782 (TYPE_LOW_BOUND_KIND): New macro.
2783 (is_dynamic_type): New function prototype.
2784 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2785 to resolve dynamic properties of the type. Update comment.
2786 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2787
2788 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2789 passed to sizeof is dynamic evaluate the argument to compute the length.
2790
2791 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2792 value and retrieve the dynamic type size.
2793
2794 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2795 (ada_template_to_fixed_record_type_1): Likewise.
2796 (ada_to_fixed_type_1): Likewise.
2797 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2798 (cp_print_value): Likewise.
2799 * d-valprint.c (dynamic_array_type): Likewise.
2800 * eval.c (evaluate_subexp_with_coercion): Likewise.
2801 * findvar.c (address_of_variable): Likewise.
2802 * jv-valprint.c (java_value_print): Likewise.
2803 * valops.c (value_ind): Likewise.
2804 * value.c (coerce_ref): Likewise.
2805
2806 * c-typeprint.c (c_type_print_varspec_suffix): Added
2807 check for not yet resolved high bound. If unresolved, print
2808 "variable length" string to the console instead of random
2809 length.
2810
2811 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2812 property and store it as the high bound and flag the range accordingly.
2813 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2814 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2815 * gdbtypes.h (enum range_flags): New enum.
2816 (struct range_bounds): Add flags member.
2817
2818 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2819 points to a constant blob.
2820
2821 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2822 (evaluate_subexp_standard): Pass noside argument.
2823 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2824 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2825 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2826 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2827 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2828
2829 2014-04-11 Keith Seitz <keiths@redhat.com>
2830
2831 PR c++/16675
2832 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2833 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2834 reference types.
2835
2836 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2837
2838 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2839 (evaluate_subexp_standard): Pass noside argument.
2840 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2841 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2842 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2843 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2844 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2845
2846 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2847
2848 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2849 points to a constant blob.
2850
2851 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2852
2853 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2854 property and store it as the high bound and flag the range accordingly.
2855 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2856 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2857 * gdbtypes.h (enum range_flags): New enum.
2858 (struct range_bounds): Add flags member.
2859
2860 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2861
2862 * c-typeprint.c (c_type_print_varspec_suffix): Added
2863 check for not yet resolved high bound. If unresolved, print
2864 "variable length" string to the console instead of random
2865 length.
2866
2867 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2868
2869 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2870 (ada_template_to_fixed_record_type_1): Likewise.
2871 (ada_to_fixed_type_1): Likewise.
2872 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2873 (cp_print_value): Likewise.
2874 * d-valprint.c (dynamic_array_type): Likewise.
2875 * eval.c (evaluate_subexp_with_coercion): Likewise.
2876 * findvar.c (address_of_variable): Likewise.
2877 * jv-valprint.c (java_value_print): Likewise.
2878 * valops.c (value_ind): Likewise.
2879 * value.c (coerce_ref): Likewise.
2880
2881 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2882
2883 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2884 value and retrieve the dynamic type size.
2885
2886 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2887
2888 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2889 passed to sizeof is dynamic evaluate the argument to compute the length.
2890
2891 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2892
2893 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2894 (dwarf2_evaluate_property): New function.
2895 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2896 * dwarf2read.c (attr_to_dynamic_prop): New function.
2897 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2898 attribute.
2899 * gdbtypes.c: Include dwarf2loc.h.
2900 (is_dynamic_type): New function.
2901 (resolve_dynamic_type): New function.
2902 (resolve_dynamic_bounds): New function.
2903 (get_type_length): New function.
2904 (check_typedef): Use get_type_length to compute type length.
2905 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2906 (TYPE_LOW_BOUND_KIND): New macro.
2907 (is_dynamic_type): New function prototype.
2908 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2909 to resolve dynamic properties of the type. Update comment.
2910 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2911
2912 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2913
2914 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2915 declaring high/low bounds and change uses accordingly. Call
2916 create_range_type instead of create_static_range_type.
2917 * gdbtypes.c (create_range_type): New function.
2918 (create_range_type): Convert bounds into struct bound_prop and pass
2919 them to create_range_type.
2920 * gdbtypes.h (struct bound_prop): New struct.
2921 (create_range_type): New function prototype.
2922 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2923 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2924 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2925 part of the bound.
2926 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2927
2928 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2929
2930 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2931 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2932 * ada-lang.c: All uses of create_range_type updated.
2933 * coffread.c: All uses of create_range_type updated.
2934 * dwarf2read.c: All uses of create_range_type updated.
2935 * f-exp.y: All uses of create_range_type updated.
2936 * m2-valprint.c: All uses of create_range_type updated.
2937 * mdebugread.c: All uses of create_range_type updated.
2938 * stabsread.c: All uses of create_range_type updated.
2939 * valops.c: All uses of create_range_type updated.
2940 * valprint.c: All uses of create_range_type updated.
2941
2942 2014-04-10 Pedro Alves <palves@redhat.com>
2943
2944 * breakpoint.c (single_step_breakpoints)
2945 (single_step_gdbarch): Move up in the file.
2946 (one_breakpoint_xfer_memory): New function, factored out from ...
2947 (breakpoint_xfer_memory): ... here. Also process single-step
2948 breakpoints.
2949
2950 2014-04-09 Tristan Gingold <gingold@adacore.com>
2951
2952 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2953 comments.
2954 (darwin_decode_exception_message): Free port only after use.
2955
2956 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2957
2958 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2959 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2960 when setting the size of call_length.
2961
2962 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2963
2964 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2965 dereference TYPE_CODE_REF values.
2966
2967 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2968
2969 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2970 end of warning message.
2971
2972 2014-04-03 Doug Evans <dje@google.com>
2973
2974 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2975 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2976
2977 2014-04-02 Alan Modra <amodra@gmail.com>
2978
2979 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2980 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2981 (struct symbol_file_add_from_memory_args): Add size field.
2982 (find_vdso_size): New function.
2983 (add_vsyscall_page): Attempt to find vdso size.
2984
2985 2014-04-01 Doug Evans <dje@google.com>
2986
2987 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2988
2989 2014-04-01 Tristan Gingold <gingold@adacore.com>
2990
2991 * darwin-nat.c (darwin_encode_reply): Add prototype.
2992 (darwin_decode_exception_message): Reply to unknown inferiors.
2993 (darwin_decode_message): Handle message by id. Ignore message
2994 to unknown inferior.
2995 (darwin_wait): Discard unknown messages, add debug trace.
2996
2997 2014-03-31 Doug Evans <dje@google.com>
2998
2999 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
3000 comp_dir_string.
3001
3002 2014-03-31 Doug Evans <dje@google.com>
3003
3004 New option "set print symbol-loading".
3005 * NEWS: Mention it.
3006 * solib.c (solib_read_symbols): Only print symbol loading messages
3007 if requested.
3008 (solib_add): If symbol loading is in "brief" mode, notify user
3009 symbols are being loaded.
3010 (reload_shared_libraries_1): Ditto.
3011 * symfile.c (print_symbol_loading_off): New static global.
3012 (print_symbol_loading_brief): New static global.
3013 (print_symbol_loading_full): New static global.
3014 (print_symbol_loading_enums): New static global.
3015 (print_symbol_loading): New static global.
3016 (print_symbol_loading_p): New function.
3017 (symbol_file_add_with_addrs): Only print symbol loading messages
3018 if requested.
3019 (_initialize_symfile): Register "print symbol-loading" set/show
3020 command.
3021 * symfile.h (print_symbol_loading_p): Declare.
3022
3023 2014-03-30 Doug Evans <xdje42@gmail.com>
3024
3025 * infrun.c (set_last_target_status): New function.
3026 (handle_inferior_event): Call it.
3027
3028 2014-03-30 Doug Evans <xdje42@gmail.com>
3029
3030 * inferior.h (enum stop_kind): Improve comment.
3031
3032 2014-03-28 Joel Brobecker <brobecker@adacore.com>
3033
3034 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
3035 a reference, strip the reference layer before calling
3036 the lang_ops value_has_mutated callback.
3037
3038 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
3039
3040 Remove some globals from our parser.
3041 * language.c (unk_lang_parser): Add "struct parser_state"
3042 argument.
3043 * language.h (struct language_defn) <la_parser>: Likewise.
3044 * parse.c (expout, expout_size, expout_ptr): Remove variables.
3045 (initialize_expout): Add "struct parser_state" argument.
3046 Rewrite function to use the parser state.
3047 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
3048 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
3049 write_exp_elt_longcst, write_exp_elt_dblcst,
3050 write_exp_elt_decfloatcst, write_exp_elt_type,
3051 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3052 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
3053 write_dollar_variable): Likewise.
3054 (parse_exp_in_context_1): Use parser state.
3055 (insert_type_address_space): Add "struct parser_state" argument.
3056 Use parser state.
3057 (increase_expout_size): New function.
3058 * parser-defs.h: Forward declare "struct language_defn" and
3059 "struct parser_state".
3060 (expout, expout_size, expout_ptr): Remove extern declarations.
3061 (parse_gdbarch, parse_language): Rewrite macro declarations to
3062 accept the parser state.
3063 (struct parser_state): New struct.
3064 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
3065 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
3066 write_exp_elt_decfloatcst, write_exp_elt_type,
3067 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
3068 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
3069 write_exp_msymbol, write_dollar_variable,
3070 mark_struct_expression, insert_type_address_space): Add "struct
3071 parser_state" argument.
3072 (increase_expout_size): New function.
3073 * utils.c (do_clear_parser_state): New function.
3074 (make_cleanup_clear_parser_state): Likewise.
3075 * utils.h (make_cleanup_clear_parser_state): New function
3076 prototype.
3077 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
3078 Update calls to write_exp* in order to pass the parser state.
3079 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
3080 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
3081 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3082 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
3083 * stap-probe.c (stap_parse_register_operand): Likewise.
3084 (stap_parse_single_operand): Likewise.
3085 (stap_parse_argument_1): Likewise.
3086 (stap_parse_argument): Use parser state.
3087 * stap-probe.h: Include "parser-defs.h".
3088 (struct stap_parse_info) <pstate>: New field.
3089 * c-exp.y (parse_type): Rewrite to use parser state.
3090 (yyparse): Redefine to c_parse_internal.
3091 (pstate): New global variable.
3092 (parse_number): Add "struct parser_state" argument.
3093 (write_destructor_name): Likewise.
3094 (type_exp): Update calls to write_exp* and similars in order to
3095 use parser state.
3096 (exp1, exp, variable, qualified_name, space_identifier,
3097 typename, typebase): Likewise.
3098 (write_destructor_name, parse_number, lex_one_token,
3099 classify_name, classify_inner_name, c_parse): Add "struct
3100 parser_state" argument. Update function to use parser state.
3101 * c-lang.h: Forward declare "struct parser_state".
3102 (c_parse): Add "struct parser_state" argument.
3103 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3104 (yyparse): Redefine macro to ada_parse_internal.
3105 (pstate): New variable.
3106 (write_int, write_object_renaming, write_var_or_type,
3107 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3108 type_int, type_long, type_long_long, type_float, type_double,
3109 type_long_double, type_char, type_boolean, type_system_address):
3110 Add "struct parser_state" argument.
3111 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3112 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3113 var_or_type, aggregate, aggregate_component_list,
3114 positional_list, others, component_group,
3115 component_associations): Update calls to write_exp* and similar
3116 functions in order to use parser state.
3117 (ada_parse, write_var_from_sym, write_int,
3118 write_exp_op_with_string, write_object_renaming,
3119 find_primitive_type, write_selectors, write_ambiguous_var,
3120 write_var_or_type, write_name_assoc, type_int, type_long,
3121 type_long_long, type_float, type_double, type_long_double,
3122 type_char, type_boolean, type_system_address): Add "struct
3123 parser_state" argument. Adjust function to use parser state.
3124 * ada-lang.c (parse): Likewise.
3125 * ada-lang.h: Forward declare "struct parser_state".
3126 (ada_parse): Add "struct parser_state" argument.
3127 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3128 calls to both functions.
3129 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3130 parser state.
3131 (yyparse): Redefine macro to f_parse_internal.
3132 (pstate): New variable.
3133 (parse_number): Add "struct parser_state" argument.
3134 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3135 and similars in order to use parser state.
3136 (parse_number): Adjust code to use parser state.
3137 (yylex): Likewise.
3138 (f_parse): New function.
3139 * f-lang.h: Forward declare "struct parser_state".
3140 (f_parse): Add "struct parser_state" argument.
3141 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3142 parser state.
3143 (yyparse): Redefine macro for java_parse_internal.
3144 (pstate): New variable.
3145 (push_expression_name, push_expression_name, insert_exp): Add
3146 "struct parser_state" argument.
3147 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3148 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3149 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3150 PostIncrementExpression, PostDecrementExpression,
3151 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3152 UnaryExpressionNotPlusMinus, CastExpression,
3153 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3154 RelationalExpression, EqualityExpression, AndExpression,
3155 ExclusiveOrExpression, InclusiveOrExpression,
3156 ConditionalAndExpression, ConditionalOrExpression,
3157 ConditionalExpression, Assignment, LeftHandSide): Update
3158 calls to write_exp* and similars in order to use parser state.
3159 (parse_number): Ajust code to use parser state.
3160 (yylex): Likewise.
3161 (java_parse): New function.
3162 (push_variable): Add "struct parser_state" argument. Adjust
3163 code to user parser state.
3164 (push_fieldnames, push_qualified_expression_name,
3165 push_expression_name, insert_exp): Likewise.
3166 * jv-lang.h: Forward declare "struct parser_state".
3167 (java_parse): Add "struct parser_state" argument.
3168 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3169 parser state.
3170 (yyparse): Redefine macro to m2_parse_internal.
3171 (pstate): New variable.
3172 (type_exp, exp, fblock, variable, type): Update calls to
3173 write_exp* and similars to use parser state.
3174 (yylex): Likewise.
3175 (m2_parse): New function.
3176 * m2-lang.h: Forward declare "struct parser_state".
3177 (m2_parse): Add "struct parser_state" argument.
3178 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3179 * objc-lang.h: Forward declare "struct parser_state".
3180 (end_msglist): Add "struct parser_state" argument.
3181 * p-exp.y (parse_type): Rewrite macro to use parser state.
3182 (yyparse): Redefine macro to pascal_parse_internal.
3183 (pstate): New variable.
3184 (parse_number): Add "struct parser_state" argument.
3185 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3186 write_exp* and similars in order to use parser state.
3187 (parse_number, yylex): Adjust code to use parser state.
3188 (pascal_parse): New function.
3189 * p-lang.h: Forward declare "struct parser_state".
3190 (pascal_parse): Add "struct parser_state" argument.
3191 * go-exp.y (parse_type): Rewrite macro to use parser state.
3192 (yyparse): Redefine macro to go_parse_internal.
3193 (pstate): New variable.
3194 (parse_number): Add "struct parser_state" argument.
3195 (type_exp, exp1, exp, variable, type): Update calls to
3196 write_exp* and similars in order to use parser state.
3197 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3198 to use parser state.
3199 (go_parse): Likewise.
3200 * go-lang.h: Forward declare "struct parser_state".
3201 (go_parse): Add "struct parser_state" argument.
3202
3203 2014-03-27 Doug Evans <dje@google.com>
3204
3205 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3206
3207 2014-03-27 Doug Evans <dje@google.com>
3208
3209 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3210 Remove argument abbrev_section. All callers updated.
3211
3212 2014-03-27 Doug Evans <dje@google.com>
3213
3214 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3215 addr_base, ranges_base.
3216
3217 2014-03-26 Keith Seitz <keiths@redhat.com>
3218
3219 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3220 types, not VAR_DOMAIN.
3221
3222 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3223
3224 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3225 "ra" registers.
3226 * features/nios2-linux.c: Regenerated.
3227 * features/nios2.c: Regenerated.
3228
3229 2014-03-25 Pedro Alves <palves@redhat.com>
3230
3231 * cli/cli-script.c (script_from_file): Force the interpreter to
3232 sync mode.
3233
3234 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3235
3236 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3237 small stack allocation.
3238
3239 2014-03-24 Tristan Gingold <gingold@adacore.com>
3240
3241 * darwin-nat.c (exc_server): Remove unused prototype.
3242 (darwin_dump_message): Correctly display data on x86_64.
3243 (darwin_encode_reply): Fix style.
3244 Add comments and fix indentation.
3245
3246 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3247
3248 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3249
3250 2014-03-22 Doug Evans <xdje42@gmail.com>
3251
3252 * infcmd.c: Whitespace fixes.
3253 (interrupt_command): Merge two function comments into one.
3254
3255 2014-03-22 Doug Evans <xdje42@gmail.com>
3256
3257 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3258 All uses updated.
3259
3260 2014-03-22 Yao Qi <yao@codesourcery.com>
3261
3262 * remote.c (target_read_live_memory): Remove.
3263 (memory_xfer_live_readonly_partial): Rename it to
3264 remote_xfer_live_readonly_partial. Remove argument 'object'.
3265 All callers updated. Call remote_read_bytes_1
3266 instead of target_read_live_memory.
3267 * tracepoint.c (set_traceframe_number): Remove.
3268 (make_cleanup_restore_traceframe_number): Likewise .
3269 * tracepoint.h (set_traceframe_number): Remove declaration.
3270 (make_cleanup_restore_traceframe_number): Likewise.
3271
3272 2014-03-22 Yao Qi <yao@codesourcery.com>
3273
3274 * remote.c (remote_read_bytes): Move code on reading from the
3275 remote stub to ...
3276 (remote_read_bytes_1): ... here. New function.
3277
3278 2014-03-22 Yao Qi <yao@codesourcery.com>
3279
3280 * ctf.c (ctf_xfer_partial): Check the return value of
3281 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3282 return TARGET_XFER_UNAVAILABLE.
3283 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3284 * target.c (target_read_live_memory): Move it to remote.c.
3285 (memory_xfer_live_readonly_partial): Likewise.
3286 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3287 * remote.c (target_read_live_memory): Moved from target.c.
3288 (memory_xfer_live_readonly_partial): Likewise.
3289 (remote_read_bytes): Factored out from
3290 memory_xfer_partial_1.
3291
3292 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3293
3294 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3295 NULL pointer.
3296
3297 2014-03-21 Pedro Alves <palves@redhat.com>
3298
3299 * infrun.c (normal_stop): Extend comment.
3300
3301 2014-03-21 Hui Zhu <hui@codesourcery.com>
3302 Pedro Alves <palves@redhat.com>
3303
3304 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3305 static buffer.
3306 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3307 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3308 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3309
3310 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3311
3312 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3313 `z' formatted output modifier.
3314
3315 2014-03-20 Tom Tromey <tromey@redhat.com>
3316 Sergio Durigan Junior <sergiodj@redhat.com>
3317
3318 * probe.c (parse_probes): Turn assert into an ordinary error.
3319 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3320 exceptions when parsing probes. Rearrange the code for clarity.
3321
3322 2014-03-20 Tom Tromey <tromey@redhat.com>
3323
3324 PR gdb/14135
3325 * top.c (execute_command): Only dispatch events if the command
3326 started the target.
3327
3328 2014-03-20 Tom Tromey <tromey@redhat.com>
3329
3330 PR cli/15718
3331 * infcall.c: Include event-top.h.
3332 (run_inferior_call): Call async_disable_stdin if needed.
3333
3334 2014-03-20 Pedro Alves <palves@redhat.com>
3335
3336 * infrun.c (prepare_to_proceed): Delete.
3337 (thread_still_needs_step_over): New function.
3338 (find_thread_needs_step_over): New function.
3339 (proceed): If the current thread needs a step-over, set its
3340 steping_over_breakpoint flag. Adjust to use
3341 find_thread_needs_step_over instead of prepare_to_proceed.
3342 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3343 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3344 breakpoint.
3345 (switch_back_to_stepped_thread): Step over breakpoints of all
3346 threads not the stepping thread, before switching back to the
3347 stepping thread.
3348
3349 2014-03-20 Pedro Alves <palves@redhat.com>
3350
3351 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3352 extern.
3353 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3354 * infrun.c (saved_singlestep_ptid)
3355 (stepping_past_singlestep_breakpoint): Delete.
3356 (resume): Remove stepping_past_singlestep_breakpoint handling.
3357 (proceed): Store the prev_pc of the stepping thread too.
3358 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3359 singlestep_pc.
3360 (enum infwait_states): Delete infwait_thread_hop_state.
3361 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3362 field.
3363 (handle_inferior_event): Adjust.
3364 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3365 handling and the thread-hop code. Before removing single-step
3366 breakpoints, check whether the thread hit a single-step breakpoint
3367 of another thread. If it did, the trap is not a random signal.
3368 (switch_back_to_stepped_thread): If the event thread hit a
3369 single-step breakpoint, unblock it before switching to the
3370 stepping thread. Handle the case of the stepped thread having
3371 advanced already.
3372 (keep_going): Handle the case of the current thread moving past a
3373 single-step breakpoint.
3374
3375 2014-03-20 Pedro Alves <palves@redhat.com>
3376
3377 PR breakpoints/7143
3378 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3379 are being stepped over.
3380 (breakpoint_address_match): Make extern.
3381 * breakpoint.h (breakpoint_address_match): New declaration.
3382 * inferior.h (stepping_past_instruction_at): New declaration.
3383 * infrun.c (struct step_over_info): New type.
3384 (step_over_info): New global.
3385 (set_step_over_info, clear_step_over_info)
3386 (stepping_past_instruction_at): New functions.
3387 (handle_inferior_event): Clear the step-over info when
3388 trap_expected is cleared.
3389 (resume): Remove now stale comment.
3390 (clear_proceed_status): Clear step-over info.
3391 (proceed): Adjust step-over handling to set or clear the step-over
3392 info instead of removing all breakpoints.
3393 (handle_signal_stop): When setting up a thread-hop, don't remove
3394 breakpoints here.
3395 (stop_stepping): Clear step-over info.
3396 (keep_going): Adjust step-over handling to set or clear step-over
3397 info and then always inserting breakpoints, instead of removing
3398 all breakpoints when stepping over one.
3399
3400 2014-03-20 Pedro Alves <palves@redhat.com>
3401
3402 * infrun.c (previous_inferior_ptid): Adjust comment.
3403 (deferred_step_ptid): Delete.
3404 (infrun_thread_ptid_changed, prepare_to_proceed)
3405 (init_wait_for_inferior): Adjust.
3406 (handle_signal_stop): Delete deferred_step_ptid handling.
3407
3408 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3409
3410 PR gdb/15358
3411 * defs.h (sync_quit_force_run): New declaration.
3412 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3413 * event-top.c (async_sigterm_handler): New declaration.
3414 (async_sigterm_token): New variable.
3415 (async_init_signals): Create also async_sigterm_token.
3416 (async_sigterm_handler): New function.
3417 (sync_quit_force_run): New variable.
3418 (handle_sigterm): Replace quit_force call by other calls.
3419 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3420
3421 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3422
3423 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3424 offset into SPE pseudo registers.
3425
3426 2014-03-18 Pedro Alves <palves@redhat.com>
3427
3428 PR gdb/13860
3429 * inferior.h (print_stop_event): Declare.
3430 * infrun.c (print_stop_event): New, factored out from ...
3431 (normal_stop): ... this.
3432 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3433 of bpstat_print/print_stack_frame.
3434
3435 2014-03-17 Tom Tromey <tromey@redhat.com>
3436
3437 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3438
3439 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3440
3441 * ada-lang.c (decode_constrained_packed_array): Perform a
3442 minimal coercion for reference with coerce_ref instead of
3443 ada_coerce_ref.
3444
3445 2014-03-17 Tristan Gingold <gingold@adacore.com>
3446
3447 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3448 (darwin_solib_create_inferior_hook): Emit a warning if version
3449 is unhandled.
3450
3451 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
3452
3453 * python/py-value.c (get_field_flag): Cast flag_name argument to
3454 PyObject_GetAttrString to support Python 2.4.
3455
3456 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3457
3458 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3459 (Global Maintainers): Remove Jan Kratochvil.
3460
3461 2014-03-14 Pedro Alves <palves@redhat.com>
3462
3463 * inferior.h (terminal_ours_for_output): Rename to ...
3464 (child_terminal_ours_for_output): ... this.
3465 (terminal_save_ours): Rename to ...
3466 (child_terminal_save_ours): ... this.
3467 (terminal_ours): Rename to ...
3468 (child_terminal_ours): ... this.
3469 (terminal_inferior): Rename to ...
3470 (child_terminal_inferior): ... this.
3471 (terminal_init_inferior): Rename to ...
3472 (child_terminal_init_inferior): ... this.
3473 (terminal_init_inferior_with_pgrp): Rename to ...
3474 (child_terminal_init_inferior_with_pgrp): ... this.
3475 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3476 (child_terminal_init_with_pgrp): ... this.
3477 (terminal_save_ours): Rename to ...
3478 (child_terminal_save_ours): ... this.
3479 (terminal_init_inferior): Rename to ...
3480 (child_terminal_init): ... this. Adjust.
3481 (terminal_inferior): Rename to ...
3482 (child_terminal_inferior): ... this.
3483 (terminal_ours_for_output): Rename to ...
3484 (child_terminal_ours_for_output): ... this. Adjust.
3485 (terminal_ours): Rename to ...
3486 (child_terminal_ours): ... this.
3487 (terminal_ours_1): Rename to ...
3488 (child_terminal_ours_1): ... this. Adjust.
3489 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3490 * windows-nat.c (do_initial_windows_stuff): Adjust.
3491 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3492 (gnu_terminal_init): ... this. Adjust.
3493 (gnu_target): Adjust.
3494 * inf-child.c (inf_child_target): Adjust.
3495
3496 2014-03-13 Doug Evans <xdje42@gmail.com>
3497
3498 PR guile/16612
3499 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3500 new eq?-hashtab.
3501
3502 2014-03-13 Doug Evans <xdje42@gmail.com>
3503
3504 * value.c (record_latest_value): Call release_value_or_incref
3505 instead of release_value.
3506
3507 2014-03-13 Pedro Alves <palves@redhat.com>
3508
3509 * procfs.c (procfs_target): Don't override to_shortname,
3510 to_longname or to_doc.
3511
3512 2014-03-13 Pedro Alves <palves@redhat.com>
3513
3514 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3515 Unix in user visible strings.
3516
3517 2014-03-12 Stan Shebs <stan@codesourcery.com>
3518
3519 * gdbtypes.h: Annotate comments for Doxygen, add a page
3520 block comment with some general info.
3521
3522 2014-03-12 Pedro Alves <palves@redhat.com>
3523
3524 * infcmd.c (prepare_execution_command): New function, factored out
3525 from several execution commands.
3526 (run_command_1, continue_command, step_1, jump_command)
3527 (signal_command, until_command, advance_command, finish_command)
3528 (attach_command): Use prepare_execution_command.
3529
3530 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3531
3532 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3533 (MAX_BPTS): Define.
3534 (MAX_WPTS): Define.
3535 (struct arm_linux_thread_points): Removed.
3536 (struct arm_linux_process_info): New.
3537 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3538 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3539 (arm_linux_find_breakpoints_by_tid): Removed.
3540 (struct arch_lwp_info): New.
3541 (arm_linux_find_process_pid): New functions.
3542 (arm_linux_add_process): New functions.
3543 (arm_linux_process_info_get): New functions.
3544 (arm_linux_forget_process): New function.
3545 (arm_linux_get_debug_reg_state): New function.
3546 (struct update_registers_data): New.
3547 (update_registers_callback): New function.
3548 (arm_linux_insert_hw_breakpoint1): Updated.
3549 (arm_linux_remove_hw_breakpoint1): Updated.
3550 (arm_linux_insert_hw_breakpoint): Updated.
3551 (arm_linux_remove_hw_breakpoint): Updated.
3552 (arm_linux_insert_watchpoint): Updated.
3553 (arm_linux_remove_watchpoint): Updated.
3554 (arm_linux_new_thread): Updated.
3555 (arm_linux_prepare_to_resume): New function.
3556 (arm_linux_new_fork): New function.
3557 (_initialize_arm_linux_nat): Updated.
3558
3559 2014-03-12 Pedro Alves <palves@redhat.com>
3560
3561 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3562
3563 2014-03-12 Tom Tromey <tromey@redhat.com>
3564
3565 * inf-child.c (return_zero): New function.
3566 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3567 * aix-thread.c (aix_thread_inferior_created): New function.
3568 (aix_thread_attach): Remove.
3569 (init_aix_thread_ops): Don't set to_attach.
3570 (_initialize_aix_thread): Register inferior_created observer.
3571 * corelow.c (init_core_ops): Don't set to_attach or
3572 to_create_inferior.
3573 * exec.c (init_exec_ops): Don't set to_attach or
3574 to_create_inferior.
3575 * infcmd.c (run_command_1): Use find_run_target. Make direct
3576 target calls.
3577 (attach_command): Use find_attach_target. Make direct target
3578 calls.
3579 * record-btrace.c (init_record_btrace_ops): Don't set
3580 to_create_inferior.
3581 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3582 Remove.
3583 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3584 set to_create_inferior.
3585 * target.c (complete_target_initialization): Add assertion.
3586 (target_create_inferior): Remove.
3587 (find_default_attach, find_default_create_inferior): Remove.
3588 (find_attach_target, find_run_target): New functions.
3589 (find_default_is_async_p, find_default_can_async_p)
3590 (target_supports_non_stop, target_attach): Remove.
3591 (init_dummy_target): Don't set to_create_inferior or
3592 to_supports_non_stop.
3593 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3594 TARGET_DEFAULT_FUNC.
3595 <to_create_inferior>: Add comment.
3596 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3597 TARGET_DEFAULT_RETURN.
3598 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3599 (find_attach_target, find_run_target): Declare.
3600 (target_create_inferior): Remove.
3601 (target_has_execution_1): Update comment.
3602 (target_supports_non_stop): Remove.
3603 * target-delegates.c: Rebuild.
3604
3605 2014-03-12 Pedro Alves <palves@redhat.com>
3606
3607 * inf-child.h: Update comment to not mention Unix.
3608
3609 2014-03-12 Pedro Alves <palves@redhat.com>
3610
3611 * inf-child.c: Update top comment to not mention Unix. Add
3612 generic comment describing how this target is meant to be used.
3613 (inf_child_post_attach, inf_child_post_startup_inferior)
3614 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3615 Unix in comment.
3616
3617 2014-03-12 Pedro Alves <palves@redhat.com>
3618
3619 * nto-procfs.c: Include inf-child.h.
3620 (procfs_ops): Delete global.
3621 (procfs_can_run): Delete method.
3622 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3623 target pointer instead of referencing procfs_ops.
3624 (procfs_prepare_to_store): Delete.
3625 (init_procfs_ops): Delete function.
3626 (procfs_target): New function, based on init_procfs_ops, but
3627 inherit inf_child_target.
3628 (_initialize_procfs): Use procfs_target.
3629
3630 2014-03-12 Pedro Alves <palves@redhat.com>
3631
3632 * windows-nat.c: Include inf-child.h.
3633 (windows_ops): Delete global.
3634 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3635 methods.
3636 (init_windows_ops): Delete function.
3637 (windows_target): New function, based on init_windows_ops, but
3638 inherit inf_child_target.
3639 (_initialize_windows_nat): Use windows_target. Install x86
3640 specific target methods here.
3641
3642 2014-03-10 Doug Evans <xdje42@gmail.com>
3643
3644 * guile/guile.c (call_initialize_gdb_module): New function.
3645 (initialize_guile): Replace call to scm_init_guile with call to
3646 scm_with_guile.
3647
3648 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3649
3650 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3651 in call to TYPE_CODE macro.
3652
3653 2014-03-10 Jerome Guitton <guitton@adacore.com>
3654
3655 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3656 Resolve tagged types to full view.
3657
3658 2014-03-10 Hui Zhu <hui@codesourcery.com>
3659
3660 * target.h (target_insert_breakpoint): Remove "hardware" from its
3661 comments.
3662
3663 2014-03-07 Doug Evans <dje@google.com>
3664
3665 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3666
3667 2014-03-07 Doug Evans <dje@google.com>
3668
3669 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3670 Remove unused local comp_dir_attr. Assert exactly one of
3671 stub_comp_unit_die, stub_comp_dir is non-NULL.
3672
3673 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3674
3675 * target.h (complete_target_initialization, add_target):
3676 Add comment.
3677
3678 2014-03-07 Pedro Alves <palves@redhat.com>
3679
3680 * go32-nat.c: Include inf-child.h.
3681 (go32_ops): Delete global.
3682 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3683 Delete methods.
3684 (go32_create_inferior): Push the passed in target pointer instead
3685 of referencing go32_ops.
3686 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3687 (go32_target): New function, based on init_go32_ops, but inherit
3688 inf_child_target.
3689 (_initialize_go32_nat): Use go32_target. Move parts of
3690 init_go32_ops here.
3691
3692 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3693
3694 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3695 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3696 SYMBOL_VALUE_ADDRESS.
3697 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3698
3699 2014-03-06 Yao Qi <yao@codesourcery.com>
3700
3701 * breakpoint.c (get_tracepoint_by_number): Remove argument
3702 optional_p. All callers updated. Adjust comments. Update
3703 output message.
3704 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3705
3706 2014-03-06 Yao Qi <yao@codesourcery.com>
3707
3708 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3709 early if get_number returns zero. Use 'p' instead of 'args'.
3710
3711 2014-03-06 Yao Qi <yao@codesourcery.com>
3712
3713 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3714 message.
3715
3716 2014-03-06 Yao Qi <yao@codesourcery.com>
3717
3718 PR breakpoints/16508
3719 * tracepoint.c (check_trace_running): New function.
3720 (trace_find_command): Move code to check_trace_running and
3721 call check_trace_running.
3722 (trace_find_pc_command): Likewise.
3723 (trace_find_tracepoint_command): Likewise.
3724 (trace_find_line_command): Likewise.
3725 (trace_find_range_command): Likewise.
3726 * tracepoint.h (check_trace_running): Likewise.
3727 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3728
3729 2014-03-06 Yao Qi <yao@codesourcery.com>
3730
3731 * target.h (struct target_ops) <to_traceframe_info>: Use
3732 TARGET_DEFAULT_NORETURN (tcomplain ()).
3733 * target-delegates.c: Regenerated.
3734
3735 2014-03-05 Pedro Alves <palves@redhat.com>
3736
3737 PR gdb/16575
3738 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3739 void. Update comment.
3740 (dcache_xfer_memory): Delete.
3741 (dcache_read_memory_partial): New, based on the read bits of
3742 dcache_xfer_memory.
3743 (dcache_update): Add status parameter. Use ULONGEST for len, and
3744 adjust. Discard cache lines if the reason for the update was
3745 error.
3746 * dcache.h (dcache_xfer_memory): Delete declaration.
3747 (dcache_read_memory_partial): New declaration.
3748 (dcache_update): Update prototype.
3749 * target.c (raw_memory_xfer_partial): Update the dcache here.
3750 (memory_xfer_partial_1): Don't handle dcache writes here.
3751
3752 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3753
3754 * remote-sim.c (gdbsim_load): Add const to prog.
3755
3756 2014-03-03 Tom Tromey <tromey@redhat.com>
3757
3758 * elfread.c (probe_key): Change to bfd_data.
3759 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3760 now per-BFD, not per-objfile.
3761 * stap-probe.c (stap_probe_destroy): Update comment.
3762 (handle_stap_probe): Allocate on the per-BFD obstack.
3763
3764 2014-03-03 Tom Tromey <tromey@redhat.com>
3765
3766 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3767 * breakpoint.c (create_longjmp_master_breakpoint): Use
3768 get_probe_address.
3769 (add_location_to_breakpoint, bkpt_probe_insert_location)
3770 (bkpt_probe_remove_location): Update.
3771 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3772 * elfread.c (elf_symfile_relocate_probe): Remove.
3773 (elf_probe_fns): Update.
3774 (insert_exception_resume_breakpoint): Change type of "probe"
3775 parameter to bound_probe.
3776 (check_exception_resume): Update.
3777 * objfiles.c (objfile_relocate1): Don't relocate probes.
3778 * probe.c (bound_probe_s): New typedef.
3779 (parse_probes): Use get_probe_address. Set sal's objfile.
3780 (find_probe_by_pc): Return a bound_probe.
3781 (collect_probes): Return a VEC(bound_probe_s).
3782 (compare_probes): Update.
3783 (gen_ui_out_table_header_info): Change type of "probes"
3784 parameter. Update.
3785 (info_probes_for_ops): Update.
3786 (get_probe_address): New function.
3787 (probe_safe_evaluate_at_pc): Update.
3788 * probe.h (struct probe_ops) <get_probe_address>: New field.
3789 <set_semaphore, clear_semaphore>: Add objfile parameter.
3790 (struct probe) <objfile>: Remove field.
3791 <arch>: New field.
3792 <address>: Update comment.
3793 (struct bound_probe): New.
3794 (find_probe_by_pc): Return a bound_probe.
3795 (get_probe_address): Declare.
3796 * solib-svr4.c (struct probe_and_action) <address>: New field.
3797 (hash_probe_and_action, equal_probe_and_action): Update.
3798 (register_solib_event_probe): Add address parameter.
3799 (solib_event_probe_at): Update.
3800 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3801 get_probe_address.
3802 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3803 (stap_get_probe_address): New function.
3804 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3805 (compile_probe_arg): Update.
3806 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3807 address.
3808 (handle_stap_probe): Don't relocate the probe.
3809 (stap_relocate): Remove.
3810 (stap_gen_info_probes_table_values): Update.
3811 (stap_probe_ops): Remove stap_relocate.
3812 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3813 (debug_sym_probe_fns): Update.
3814 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3815 * symtab.c (init_sal): Use memset.
3816 * symtab.h (struct symtab_and_line) <objfile>: New field.
3817 * tracepoint.c (start_tracing, stop_tracing): Update.
3818
3819 2014-03-03 Tom Tromey <tromey@redhat.com>
3820
3821 * probe.h (parse_probes, find_probe_by_pc)
3822 (find_probes_in_objfile): Fix comments.
3823
3824 2014-03-02 Doug Evans <xdje42@gmail.com>
3825
3826 * infrun.c (handle_signal_stop): Replace test for
3827 TARGET_WAITKIND_STOPPED with an assert.
3828
3829 2014-03-02 Doug Evans <xdje42@gmail.com>
3830
3831 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3832
3833 2014-03-02 Doug Evans <xdje42@gmail.com>
3834
3835 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3836
3837 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3838
3839 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3840
3841 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3842
3843 * i386obsd-nat.c: Include "obsd-nat.h".
3844 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3845 add_target.
3846 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3847
3848 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3849
3850 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3851
3852 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3853
3854 * mips64obsd-nat.c: Include "obsd-nath".
3855 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3856 add_target
3857 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3858
3859 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3860
3861 * amd64obsd-nat.c: Include "obsd-nat,h.
3862 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3863 add_target.
3864 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3865
3866 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3867
3868 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3869 (find_overload_match): Update call to find_oload_champ.
3870 (find_oload_champ_namespace_loop): Likewise
3871
3872 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3873
3874 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3875
3876 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3877 * config/sparc/obsd64.mh: New file.
3878 * sparc64obsd-nat.c: New file.
3879
3880 * obsd-nat.h: New file.
3881 * obsd-nat.c: New file.
3882 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3883 (ALLDEPFILES): Add obsd-nat.c.
3884
3885 2014-02-28 Tom Tromey <tromey@redhat.com>
3886
3887 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3888 * cli-out.h (cli_ui_out_impl): Now const.
3889 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3890 * ui-out.c (struct ui_out) <impl>: Now const.
3891 (default_ui_out_impl): Now const.
3892 (ui_out_new): Make 'impl' parameter const.
3893 * ui-out.h (ui_out_new): Update.
3894
3895 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3896
3897 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3898
3899 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3900
3901 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3902
3903 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3904
3905 Additional PR 8882 fix.
3906 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3907
3908 2014-02-27 Pedro Alves <palves@redhat.com>
3909
3910 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3911 isn't set.
3912
3913 2014-02-27 Pedro Alves <palves@redhat.com>
3914
3915 PR 12702
3916 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3917 * nat/linux-waitpid.c: Include string.h.
3918 (status_to_str): Moved here and made extern.
3919 * nat/linux-waitpid.h (status_to_str): New declaration.
3920
3921 2014-02-27 Hui Zhu <hui@codesourcery.com>
3922
3923 PR 12702
3924 * infrun.c (ptid_match): Move ...
3925 * common/ptid.c (ptid_match): ... here.
3926 * inferior.h (ptid_match): Move ...
3927 * common/ptid.h (ptid_match): ... here.
3928
3929 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3930
3931 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3932 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3933 gdb_target_obs.
3934
3935 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3936
3937 * obsd-tdep.c (obsd_auxv_parse): New function.
3938 (obsd_init_abi): Set auxv_parse.
3939
3940 * gdbarch.sh (auxv_parse): New.
3941 * gdbarch.h: Regenerated.
3942 * gdbarch.c: Regenerated.
3943 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3944
3945 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3946
3947 * guile/scm-value.c (gdbscm_history_append_x): New function.
3948 (value_functions): Add it.
3949
3950 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3951
3952 * dwarf2read.c (attr_value_as_address): New function.
3953 (dwarf2_find_base_address, read_call_site_scope): Use
3954 attr_value_as_address in place of DW_ADDR.
3955 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3956 the low and high addresses. Slight rework of the handling
3957 of the high pc being a constant form, and limit it to
3958 DWARF verson 4 or higher.
3959 (dwarf2_record_block_ranges): Likewise.
3960 (read_partial_die): Likewise.
3961 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3962
3963 2014-02-26 Tom Tromey <tromey@redhat.com>
3964
3965 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3966
3967 2014-02-26 Tom Tromey <tromey@redhat.com>
3968
3969 * elfread.c (elf_read_minimal_symbols): Return early if
3970 minimal symbols have already been read. Add "ei" parameter.
3971 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3972 * minsyms.c (prim_record_minimal_symbol_full): Update.
3973 * objfiles.h (struct objstats) <n_minsyms>: Move...
3974 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3975 * symmisc.c (print_objfile_statistics): Update.
3976
3977 2014-02-26 Tom Tromey <tromey@redhat.com>
3978
3979 * elfread.c (elf_read_minimal_symbols): New function, from
3980 elf_symfile_read.
3981 (elf_symfile_read): Call it.
3982
3983 2014-02-26 Tom Tromey <tromey@redhat.com>
3984
3985 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3986 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3987 (lookup_minimal_symbol_solib_trampoline)
3988 (lookup_minimal_symbol_by_pc_section_1)
3989 (lookup_minimal_symbol_and_objfile): Update.
3990 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3991 Don't allocate a minimal symbol if minsyms have already been read.
3992 (build_minimal_symbol_hash_tables): Update.
3993 (install_minimal_symbols): Do nothing if minsyms already read.
3994 Use the per-BFD obstack.
3995 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3996 * objfiles.c (allocate_objfile): Call
3997 terminate_minimal_symbol_table later.
3998 (have_minimal_symbols): Update.
3999 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
4000 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
4001 Move from struct objfile.
4002 <minsyms_read>: New field.
4003 (struct objfile) <msymbols, minimal_symbol_count,
4004 msymbol_hash, msymbol_demangled_hash>: Move.
4005 (ALL_OBJFILE_MSYMBOLS): Update.
4006 * symfile.c (read_symbols): Set minsyms_read.
4007 (reread_symbols): Update.
4008 * symmisc.c (dump_objfile, dump_msymbols): Update.
4009
4010 2014-02-26 Tom Tromey <tromey@redhat.com>
4011
4012 * minsyms.c (msymbols_sort): Remove.
4013 * minsyms.h (msymbols_sort): Remove.
4014 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
4015 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
4016 * elfread.c (elf_symtab_read): Don't add section offsets.
4017 * xcoffread.c (record_minimal_symbol): Don't add section offset
4018 to minimal symbol address.
4019 * somread.c (text_offset, data_offset): Remove.
4020 (som_symtab_read): Don't add section offsets to minimal symbol
4021 addresses.
4022 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
4023 Don't add section offsets to minimal symbols.
4024 * coffread.c (coff_symtab_read): Don't add section offsets
4025 to minimal symbol addresses.
4026 * machoread.c (macho_symtab_add_minsym): Don't add section offset
4027 to minimal symbol addresses.
4028 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
4029 section offset to minimal symbol addresses.
4030 * mdebugread.c (parse_partial_symbols): Don't add section
4031 offset to minimal symbol addresses.
4032 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
4033 offset to minimal symbol addresses.
4034
4035 2014-02-26 Tom Tromey <tromey@redhat.com>
4036
4037 * ada-lang.c (ada_main_name): Update.
4038 (ada_add_standard_exceptions): Update.
4039 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4040 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4041 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
4042 * auxv.c (ld_so_xfer_auxv): Update.
4043 * avr-tdep.c (avr_scan_prologue): Update.
4044 * ax-gdb.c (gen_var_ref): Update.
4045 * blockframe.c (get_pc_function_start)
4046 (find_pc_partial_function_gnu_ifunc): Update.
4047 * breakpoint.c (create_overlay_event_breakpoint)
4048 (create_longjmp_master_breakpoint)
4049 (create_std_terminate_master_breakpoint)
4050 (create_exception_master_breakpoint): Update.
4051 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4052 * c-valprint.c (c_val_print): Update.
4053 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4054 * common/agent.c (agent_look_up_symbols): Update.
4055 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4056 * dwarf2loc.c (call_site_to_target_addr): Update.
4057 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
4058 * elfread.c (elf_gnu_ifunc_record_cache)
4059 (elf_gnu_ifunc_resolve_by_got): Update.
4060 * findvar.c (default_read_var_value): Update.
4061 * frame.c (inside_main_func): Update.
4062 * frv-tdep.c (frv_frame_this_id): Update.
4063 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4064 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4065 Update.
4066 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
4067 (hppa_hpux_find_dummy_bpaddr): Update.
4068 * hppa-tdep.c (hppa_symbol_address): Update.
4069 * infcmd.c (until_next_command): Update.
4070 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
4071 Update.
4072 * linespec.c (minsym_found, add_minsym): Update.
4073 * linux-nat.c (get_signo): Update.
4074 * linux-thread-db.c (inferior_has_bug): Update.
4075 * m32c-tdep.c (m32c_return_value)
4076 (m32c_m16c_address_to_pointer): Update.
4077 * m32r-tdep.c (m32r_frame_this_id): Update.
4078 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4079 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4080 * maint.c (maintenance_translate_address): Update.
4081 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
4082 (frob_address): New function.
4083 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
4084 frob_address. Rename parameter to "pc_in".
4085 (compare_minimal_symbols, compact_minimal_symbols): Use raw
4086 addresses.
4087 (find_solib_trampoline_target, minimal_symbol_upper_bound):
4088 Update.
4089 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4090 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
4091 * objc-lang.c (find_objc_msgsend): Update.
4092 * objfiles.c (objfile_relocate1): Update.
4093 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4094 * p-valprint.c (pascal_val_print): Update.
4095 * parse.c (write_exp_msymbol): Update.
4096 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
4097 (ppc_elfv2_skip_entrypoint): Update.
4098 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4099 * printcmd.c (build_address_symbolic, msym_info)
4100 (address_info): Update.
4101 * proc-service.c (ps_pglobal_lookup): Update.
4102 * psymtab.c (find_pc_sect_psymtab_closer)
4103 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4104 Change msymbol parameter to bound_minimal_symbol.
4105 * ravenscar-thread.c (get_running_thread_id): Update.
4106 * remote.c (remote_check_symbols): Update.
4107 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4108 address.
4109 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4110 * solib-dsbt.c (lm_base): Update.
4111 * solib-frv.c (lm_base, main_got): Update.
4112 * solib-irix.c (locate_base): Update.
4113 * solib-som.c (som_solib_create_inferior_hook)
4114 (link_map_start): Update.
4115 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4116 * solib-svr4.c (elf_locate_base, enable_break): Update.
4117 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4118 (flush_ea_cache): Update.
4119 * stabsread.c (define_symbol, scan_file_globals): Update.
4120 * stack.c (find_frame_funname): Update.
4121 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4122 (debug_qf_find_pc_sect_symtab): Update.
4123 * symfile.c (simple_read_overlay_table)
4124 (simple_overlay_update): Update.
4125 * symfile.h (struct quick_symbol_functions)
4126 <find_pc_sect_symtab>: Change type of msymbol to
4127 bound_minimal_symbol.
4128 * symmisc.c (dump_msymbols): Update.
4129 * symtab.c (find_pc_sect_symtab_via_partial)
4130 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4131 (search_symbols, print_msymbol_info): Update.
4132 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4133 (MSYMBOL_VALUE_ADDRESS): Redefine.
4134 (BMSYMBOL_VALUE_ADDRESS): New macro.
4135 * tracepoint.c (scope_info): Update.
4136 * tui/tui-disasm.c (tui_find_disassembly_address)
4137 (tui_get_begin_asm_address): Update.
4138 * valops.c (find_function_in_inferior): Update.
4139 * value.c (value_static_field, value_fn_field): Update.
4140
4141 2014-02-26 Tom Tromey <tromey@redhat.com>
4142
4143 * ada-lang.c (ada_update_initial_language): Update.
4144 (ada_main_name, ada_has_this_exception_support): Update.
4145 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4146 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4147 * arm-tdep.c (arm_skip_stub): Update.
4148 * auxv.c (ld_so_xfer_auxv): Update.
4149 * avr-tdep.c (avr_scan_prologue): Update.
4150 * ax-gdb.c (gen_var_ref): Update.
4151 * breakpoint.c (struct breakpoint_objfile_data)
4152 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4153 type to bound_minimal_symbol.
4154 (create_overlay_event_breakpoint)
4155 (create_longjmp_master_breakpoint)
4156 (create_std_terminate_master_breakpoint)
4157 (create_exception_master_breakpoint): Update.
4158 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4159 * c-exp.y (classify_name): Update.
4160 * coffread.c (coff_symfile_read): Update.
4161 * common/agent.c (agent_look_up_symbols): Update.
4162 * d-lang.c (d_main_name): Update.
4163 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4164 * dec-thread.c (enable_dec_thread): Update.
4165 * dwarf2loc.c (call_site_to_target_addr): Update.
4166 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4167 * eval.c (evaluate_subexp_standard): Update.
4168 * findvar.c (struct minsym_lookup_data) <result>: Change type
4169 to bound_minimal_symbol.
4170 <objfile>: Remove.
4171 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4172 * frame.c (inside_main_func): Update.
4173 * frv-tdep.c (frv_frame_this_id): Update.
4174 * gcore.c (call_target_sbrk): Update.
4175 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4176 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4177 Update.
4178 * go-lang.c (go_main_name): Update.
4179 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4180 (hppa_hpux_find_import_stub_for_addr): Update.
4181 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4182 Update. Change return type.
4183 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4184 type.
4185 * jit.c (jit_breakpoint_re_set_internal): Update.
4186 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4187 Update.
4188 * linux-nat.c (get_signo): Update.
4189 * linux-thread-db.c (inferior_has_bug): Update
4190 * m32c-tdep.c (m32c_return_value)
4191 (m32c_m16c_address_to_pointer): Update.
4192 * m32r-tdep.c (m32r_frame_this_id): Update.
4193 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4194 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4195 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4196 lookup_minimal_symbol. Change return type.
4197 (lookup_minimal_symbol): Remove.
4198 (lookup_bound_minimal_symbol): Update.
4199 (lookup_minimal_symbol_text): Change return type.
4200 (lookup_minimal_symbol_solib_trampoline): Change return type.
4201 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4202 (lookup_minimal_symbol_solib_trampoline): Change return type.
4203 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4204 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4205 (value_nsstring, find_imps): Update.
4206 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4207 * p-lang.c (pascal_main_name): Update.
4208 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4209 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4210 * proc-service.c (ps_pglobal_lookup): Update.
4211 * ravenscar-thread.c (get_running_thread_msymbol): Change
4212 return type.
4213 (has_ravenscar_runtime, get_running_thread_id): Update.
4214 * remote.c (remote_check_symbols): Update.
4215 * sol-thread.c (ps_pglobal_lookup): Update.
4216 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4217 * solib-dsbt.c (lm_base): Update.
4218 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4219 Update.
4220 * solib-irix.c (locate_base): Update.
4221 * solib-som.c (som_solib_create_inferior_hook)
4222 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4223 Update.
4224 * solib-spu.c (spu_enable_break): Update.
4225 * solib-svr4.c (elf_locate_base, enable_break): Update.
4226 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4227 (flush_ea_cache): Update.
4228 * stabsread.c (define_symbol): Update.
4229 * symfile.c (simple_read_overlay_table): Update.
4230 * symtab.c (find_pc_sect_line): Update.
4231 * tracepoint.c (scope_info): Update.
4232 * tui-disasm.c (tui_get_begin_asm_address): Update.
4233 * value.c (value_static_field): Update.
4234
4235 2014-02-26 Tom Tromey <tromey@redhat.com>
4236
4237 * minsyms.c (prim_record_minimal_symbol_full): Use
4238 SET_MSYMBOL_VALUE_ADDRESS.
4239 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4240 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4241 SET_MSYMBOL_VALUE_ADDRESS.
4242 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4243 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4244
4245 2014-02-26 Tom Tromey <tromey@redhat.com>
4246
4247 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4248 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4249 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4250 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4251 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4252 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4253 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4254 * ada-lang.c (ada_main_name): Update.
4255 (ada_lookup_simple_minsym): Update.
4256 (ada_make_symbol_completion_list): Update.
4257 (ada_add_standard_exceptions): Update.
4258 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4259 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4260 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4261 * arm-tdep.c (skip_prologue_function): Update.
4262 (arm_skip_stack_protector, arm_skip_stub): Update.
4263 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4264 (arm_wince_skip_main_prologue): Update.
4265 * auxv.c (ld_so_xfer_auxv): Update.
4266 * avr-tdep.c (avr_scan_prologue): Update.
4267 * ax-gdb.c (gen_var_ref): Update.
4268 * block.c (call_site_for_pc): Update.
4269 * blockframe.c (get_pc_function_start): Update.
4270 (find_pc_partial_function_gnu_ifunc): Update.
4271 * breakpoint.c (create_overlay_event_breakpoint): Update.
4272 (create_longjmp_master_breakpoint): Update.
4273 (create_std_terminate_master_breakpoint): Update.
4274 (create_exception_master_breakpoint): Update.
4275 (resolve_sal_pc): Update.
4276 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4277 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4278 Update.
4279 * c-valprint.c (c_val_print): Update.
4280 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4281 * coffread.c (coff_symfile_read): Update.
4282 * common/agent.c (agent_look_up_symbols): Update.
4283 * dbxread.c (find_stab_function_addr): Update.
4284 (end_psymtab): Update.
4285 * dwarf2loc.c (call_site_to_target_addr): Update.
4286 (func_verify_no_selftailcall): Update.
4287 (tailcall_dump): Update.
4288 (call_site_find_chain_1): Update.
4289 (dwarf_expr_reg_to_entry_parameter): Update.
4290 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4291 (elf_gnu_ifunc_resolve_by_got): Update.
4292 * f-valprint.c (info_common_command): Update.
4293 * findvar.c (read_var_value): Update.
4294 * frame.c (get_prev_frame_1): Update.
4295 (inside_main_func): Update.
4296 * frv-tdep.c (frv_skip_main_prologue): Update.
4297 (frv_frame_this_id): Update.
4298 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4299 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4300 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4301 (gnuv3_skip_trampoline): Update.
4302 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4303 (hppa64_hpux_in_solib_call_trampoline): Update.
4304 (hppa_hpux_skip_trampoline_code): Update.
4305 (hppa64_hpux_search_dummy_call_sequence): Update.
4306 (hppa_hpux_find_import_stub_for_addr): Update.
4307 (hppa_hpux_find_dummy_bpaddr): Update.
4308 * hppa-tdep.c (hppa_symbol_address)
4309 (hppa_lookup_stub_minimal_symbol): Update.
4310 * i386-tdep.c (i386_skip_main_prologue): Update.
4311 (i386_pe_skip_trampoline_code): Update.
4312 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4313 * infcall.c (get_function_name): Update.
4314 * infcmd.c (until_next_command): Update.
4315 * jit.c (jit_breakpoint_re_set_internal): Update.
4316 (jit_inferior_init): Update.
4317 * linespec.c (minsym_found): Update.
4318 (add_minsym): Update.
4319 * linux-fork.c (info_checkpoints_command): Update.
4320 * linux-nat.c (get_signo): Update.
4321 * linux-thread-db.c (inferior_has_bug): Update.
4322 * m32c-tdep.c (m32c_return_value): Update.
4323 (m32c_m16c_address_to_pointer): Update.
4324 (m32c_m16c_pointer_to_address): Update.
4325 * m32r-tdep.c (m32r_frame_this_id): Update.
4326 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4327 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4328 * maint.c (maintenance_translate_address): Update.
4329 * minsyms.c (add_minsym_to_hash_table): Update.
4330 (add_minsym_to_demangled_hash_table): Update.
4331 (msymbol_objfile): Update.
4332 (lookup_minimal_symbol): Update.
4333 (iterate_over_minimal_symbols): Update.
4334 (lookup_minimal_symbol_text): Update.
4335 (lookup_minimal_symbol_by_pc_name): Update.
4336 (lookup_minimal_symbol_solib_trampoline): Update.
4337 (lookup_minimal_symbol_by_pc_section_1): Update.
4338 (lookup_minimal_symbol_and_objfile): Update.
4339 (prim_record_minimal_symbol_full): Update.
4340 (compare_minimal_symbols): Update.
4341 (compact_minimal_symbols): Update.
4342 (build_minimal_symbol_hash_tables): Update.
4343 (install_minimal_symbols): Update.
4344 (terminate_minimal_symbol_table): Update.
4345 (find_solib_trampoline_target): Update.
4346 (minimal_symbol_upper_bound): Update.
4347 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4348 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4349 (mips_skip_pic_trampoline_code): Update.
4350 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4351 * objc-lang.c (selectors_info): Update.
4352 (classes_info): Update.
4353 (find_methods): Update.
4354 (find_imps): Update.
4355 (find_objc_msgsend): Update.
4356 * objfiles.c (objfile_relocate1): Update.
4357 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4358 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4359 * p-valprint.c (pascal_val_print): Update.
4360 * parse.c (write_exp_msymbol): Update.
4361 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4362 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4363 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4364 * printcmd.c (build_address_symbolic): Update.
4365 (sym_info): Update.
4366 (address_info): Update.
4367 * proc-service.c (ps_pglobal_lookup): Update.
4368 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4369 (find_pc_sect_psymtab): Update.
4370 * python/py-framefilter.c (py_print_frame): Update.
4371 * ravenscar-thread.c (get_running_thread_id): Update.
4372 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4373 Update.
4374 * remote.c (remote_check_symbols): Update.
4375 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4376 (rs6000_skip_trampoline_code): Update.
4377 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4378 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4379 * solib-dsbt.c (lm_base): Update.
4380 * solib-frv.c (lm_base): Update.
4381 (main_got): Update.
4382 * solib-irix.c (locate_base): Update.
4383 * solib-som.c (som_solib_create_inferior_hook): Update.
4384 (som_solib_desire_dynamic_linker_symbols): Update.
4385 (link_map_start): Update.
4386 * solib-spu.c (spu_enable_break): Update.
4387 (ocl_enable_break): Update.
4388 * solib-svr4.c (elf_locate_base): Update.
4389 (enable_break): Update.
4390 * spu-tdep.c (spu_get_overlay_table): Update.
4391 (spu_catch_start): Update.
4392 (flush_ea_cache): Update.
4393 * stabsread.c (define_symbol): Update.
4394 (scan_file_globals): Update.
4395 * stack.c (find_frame_funname): Update.
4396 (frame_info): Update.
4397 * symfile.c (simple_read_overlay_table): Update.
4398 (simple_overlay_update): Update.
4399 * symmisc.c (dump_msymbols): Update.
4400 * symtab.c (fixup_section): Update.
4401 (find_pc_sect_line): Update.
4402 (skip_prologue_sal): Update.
4403 (search_symbols): Update.
4404 (print_msymbol_info): Update.
4405 (rbreak_command): Update.
4406 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4407 (completion_list_objc_symbol): Update.
4408 (default_make_symbol_completion_list_break_on): Update.
4409 * tracepoint.c (scope_info): Update.
4410 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4411 (tui_get_begin_asm_address): Update.
4412 * valops.c (find_function_in_inferior): Update.
4413 * value.c (value_static_field): Update.
4414 (value_fn_field): Update.
4415
4416 2014-02-26 Tom Tromey <tromey@redhat.com>
4417
4418 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4419 bound minimal symbols. Move code that knows about minsym
4420 table layout...
4421 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4422 function.
4423 * minsyms.h (minimal_symbol_upper_bound): Declare.
4424 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4425 minimal_symbol_upper_bound.
4426
4427 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4428
4429 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4430 Use the type's name if its basic type does not have a tag.
4431
4432 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4433
4434 * dwarf2read.c (read_subrange_type): Add comment.
4435
4436 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4437
4438 * dwarf2read.c (update_enumeration_type_from_children): New
4439 function, mostly extracted from process_structure_scope.
4440 (read_enumeration_type): Call update_enumeration_type_from_children.
4441 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4442 and flag_flag_enum fields.
4443
4444 2014-02-26 Pedro Alves <palves@redhat.com>
4445
4446 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4447 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4448 to_xfer_partial method.
4449
4450 2014-02-26 Pedro Alves <palves@redhat.com>
4451
4452 * target.c (complete_target_initialization): Don't install
4453 default_xfer_partial as to_xfer_partial hook.
4454 (nomemory): Delete.
4455 (update_current_target): Don't INHERIT nor de_fault
4456 deprecated_xfer_memory. Delete de_fault macro.
4457 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4458 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4459 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4460 field.
4461
4462 2014-02-26 Pedro Alves <palves@redhat.com>
4463
4464 * go32-nat.c (my_write_child): New function.
4465 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4466 (go32_xfer_partial): New function.
4467 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4468 Instead install a to_xfer_partial hook.
4469
4470 2014-02-26 Pedro Alves <palves@redhat.com>
4471
4472 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4473 to_xfer_partial helper. Rewrite.
4474 (procfs_xfer_partial): New function.
4475 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4476 Install a to_xfer_partial hook.
4477
4478 2014-02-26 Pedro Alves <palves@redhat.com>
4479
4480 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4481 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4482 (m32r_xfer_partial): New function.
4483 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4484 Install a to_xfer_partial hook.
4485
4486 2014-02-26 Pedro Alves <palves@redhat.com>
4487
4488 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4489 helper.
4490 (mips_xfer_partial): New function.
4491 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4492 hook. Install a to_xfer_partial hook.
4493
4494 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4495
4496 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4497 * gdbtypes.c (create_array_type_with_stride): New function,
4498 renaming create_array_type, but with an added parameter
4499 called "bit_stride".
4500 (create_array_type): Re-implement using
4501 create_array_type_with_stride.
4502 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4503 and DW_AT_bit_stride attributes.
4504
4505 2014-02-26 Pedro Alves <palves@redhat.com>
4506
4507 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4508 task-specific breakpoints.
4509
4510 2014-02-25 Pedro Alves <palves@redhat.com>
4511
4512 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4513 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4514
4515 2014-02-25 Stan Shebs <stan@codesourcery.com>
4516
4517 * defs.h: Annotate comments for Doxygen.
4518
4519 2014-02-25 Tom Tromey <tromey@redhat.com>
4520
4521 * target.h (target_ignore): Don't declare.
4522 * target.c (target_ignore): Remove.
4523
4524 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4525
4526 PR gdb/16626
4527 * auto-load.c (auto_load_objfile_script_1): Change filename to
4528 debugfile.
4529
4530 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4531
4532 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4533 documentation. Adjust prototype to match the target_ops
4534 to_xfer_partial method. Adjust implementation accordingly.
4535
4536 2014-02-25 Hui Zhu <hui@codesourcery.com>
4537
4538 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4539 to_traceframe_info.
4540
4541 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4542
4543 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4544 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4545 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4546 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4547 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4548 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4549 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4550 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4551 New constants.
4552 (rl78_register_type): Use a data pointer type for SP and
4553 new pseudo registers mentioned above. Use a 16 bit integer
4554 type for all other register pairs.
4555 (rl78_register_name, rl78_g10_register_name): Update for
4556 new pseudo registers.
4557 (rl78_pseudo_register_read): Likewise.
4558 (rl78_pseudo_register_write): Likewise.
4559 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4560 to the newly added pseudo registers.
4561
4562 2014-02-24 Doug Evans <dje@google.com>
4563
4564 * value.c (record_latest_value): Fix comment.
4565 * printcmd.c (print_command_1): Remove code to handle -1 return from
4566 record_latest_value.
4567
4568 2014-02-24 Pedro Alves <palves@redhat.com>
4569
4570 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4571 deprecated_xfer_memory hook.
4572 (procfs_xfer_partial): Call procfs_xfer_memory instead
4573 of the deprecated_xfer_memory target hook.
4574 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4575 helper.
4576
4577 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4578
4579 * windows-nat.c (windows_xfer_shared_libraries): Return
4580 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4581 requested object is TARGET_OBJECT_LIBRARIES.
4582
4583 2014-02-24 Yao Qi <yao@codesourcery.com>
4584
4585 * target.h (enum target_xfer_status)
4586 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4587 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4588 explicitly. New.
4589 * corefile.c (memory_error_message): User updated.
4590 * exec.c (section_table_read_available_memory): Likewise.
4591 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4592 * target.c (target_xfer_status_to_string): Likewise.
4593 (raw_memory_xfer_partial): Likewise.
4594 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4595 * valops.c (read_value_memory): Likewise.
4596 * exec.h: Update comments.
4597
4598 2014-02-24 Yao Qi <yao@codesourcery.com>
4599
4600 * target.c (target_xfer_status_to_string): Rename argument err
4601 to status.
4602 * target.h (target_xfer_status_to_string): Update declaration.
4603 Replace target_xfer_error_to_string with
4604 target_xfer_status_to_string in comment.
4605
4606 2014-02-24 Yao Qi <yao@codesourcery.com>
4607
4608 * mips-linux-nat.c (super_close): Update its type.
4609 (mips_linux_close): Pass 'self' to super_close.
4610
4611 2014-02-24 Yao Qi <yao@codesourcery.com>
4612
4613 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4614 * corefile.c (read_memory): Adjusted.
4615 * target.c (target_write_with_progress): Adjusted.
4616
4617 2014-02-23 Yao Qi <yao@codesourcery.com>
4618
4619 Revert two patches:
4620
4621 2013-10-25 Yao Qi <yao@codesourcery.com>
4622
4623 * remote.c (remote_traceframe_info): Return early if
4624 traceframe is not selected.
4625
4626 2013-07-19 Yao Qi <yao@codesourcery.com>
4627
4628 * target.c (update_current_target): Change the default action
4629 of 'to_traceframe_info' from tcomplain to return_zero.
4630 * target.h (struct target_ops) <to_traceframe_info>: Add more
4631 comments.
4632
4633 2014-02-23 Yao Qi <yao@codesourcery.com>
4634
4635 * valops.c (read_value_memory): Rewrite it. Call
4636 target_xfer_partial in a loop.
4637 * exec.h (section_table_available_memory): Remove declaration.
4638 Move comments to ...
4639 * exec.c (section_table_available_memory): ... here. Make it
4640 static.
4641
4642 2014-02-23 Yao Qi <yao@codesourcery.com>
4643
4644 * exec.c (section_table_read_available_memory): New function.
4645 * exec.h (section_table_read_available_memory): Declare.
4646 * ctf.c (ctf_xfer_partial): Call
4647 section_table_read_available_memory.
4648 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4649
4650 2014-02-23 Yao Qi <yao@codesourcery.com>
4651
4652 * ctf.c (ctf_xfer_partial): Move code to ...
4653 * exec.c (exec_read_partial_read_only): ... it. New function.
4654 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4655 * tracefile.c: Include "exec.h".
4656 * exec.h (exec_read_partial_read_only): Declare.
4657
4658 2014-02-23 Yao Qi <yao@codesourcery.com>
4659
4660 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4661 (tfile_has_memory): Remove.
4662 (init_tfile_ops): Don't set fields to_has_all_memory and
4663 to_has_memory of tfile_ops.
4664 * tracefile.c (tracefile_has_all_memory): New function.
4665 (tracefile_has_memory): New function.
4666 (init_tracefile_ops): Initialize fields to_has_all_memory and
4667 to_has_memory of 'ops'.
4668
4669 2014-02-23 Yao Qi <yao@codesourcery.com>
4670
4671 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4672 (ctf_thread_alive, ctf_get_trace_status): Remove.
4673 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4674 init_tracefile_ops.
4675 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4676 (tfile_has_stack, tfile_has_registers): Remove.
4677 (tfile_thread_alive): Remove.
4678 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4679 init_tracefile_ops.
4680 * tracefile.c (tracefile_has_stack): New function.
4681 (tracefile_has_registers): New function.
4682 (tracefile_thread_alive): New function.
4683 (tracefile_get_trace_status): New function.
4684 (init_tracefile_ops): New function.
4685 * tracefile.h (init_tracefile_ops): Declare.
4686
4687 2014-02-23 Yao Qi <yao@codesourcery.com>
4688
4689 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4690 (O_LARGEFILE): Likewise.
4691 (tfile_ops): Likewise.
4692 (TRACE_HEADER_SIZE): Likewise.
4693 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4694 (cur_data_size): Likewise.
4695 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4696 (tfile_close, tfile_files_info): Likewise.
4697 (tfile_get_trace_status): Likewise.
4698 (tfile_get_tracepoint_status): Likewise.
4699 (tfile_get_traceframe_address): Likewise.
4700 (tfile_trace_find, match_blocktype): Likewise.
4701 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4702 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4703 (tfile_get_trace_state_variable_value): Likewise.
4704 (tfile_has_all_memory, tfile_has_memory): Likewise.
4705 (tfile_has_stack, tfile_has_registers): Likewise.
4706 (tfile_thread_alive, build_traceframe_info): Likewise.
4707 (tfile_traceframe_info, init_tfile_ops): Likewise.
4708 (_initialize_tracepoint): Don't call init_tfile_ops
4709 and add_target_with_completer.
4710 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4711 exec.h, completer.h and filenames.h.
4712 (_initialize_tracefile_tfile): New function.
4713
4714 2014-02-23 Yao Qi <yao@codesourcery.com>
4715
4716 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4717 tracefile-tfile.o.
4718 (HFILES_NO_SRCDIR): Add tracefile.h.
4719 * ctf.c: Include "tracefile.h".
4720 * tracefile.h: New file.
4721 * tracefile.c: New file
4722 * tracefile-tfile.c: New file.
4723 * tracepoint.c: Include "tracefile.h".
4724 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4725 (stop_reason_names): Add const.
4726 (trace_file_writer_xfree): Move it to tracefile.c.
4727 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4728 (trace_save_ctf): Likewise.
4729 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4730 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4731 (tfile_write_header, tfile_write_regblock_type): Likewise.
4732 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4733 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4734 (tfile_write_raw_data, tfile_end): Likewise.
4735 (tfile_trace_file_writer_new): Likewise.
4736 (free_uploaded_tp): Make it extern.
4737 (free_uploaded_tsv): Make it extern.
4738 (_initialize_tracepoint): Move code to register command 'tsave'
4739 to tracefile.c.
4740 * tracepoint.h (stop_reason_names): Declare.
4741 (struct trace_frame_write_ops): Move it to tracefile.h.
4742 (struct trace_file_write_ops): Likewise.
4743 (struct trace_file_writer): Likewise.
4744 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4745
4746 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4747
4748 PR gdb/16594
4749 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4750 process name.
4751 (get_cores_used_by_process): New parameter num_cores, use it.
4752 (linux_xfer_osdata_processes): Pass num_cores to it.
4753 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4754 process name.
4755
4756 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4757
4758 * target.c (memory_xfer_partial): Fix length arg in call to
4759 breakpoint_xfer_memory.
4760
4761 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4762
4763 PR tdep/16397
4764 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4765 number comes after the + or - signs. Adjust length of register
4766 name to be extracted.
4767
4768 2014-02-20 Tom Tromey <tromey@redhat.com>
4769
4770 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4771 (ada_varobj_ops): Mark "extern".
4772
4773 2014-02-20 Tom Tromey <tromey@redhat.com>
4774
4775 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4776
4777 2014-02-20 Doug Evans <xdje42@gmail.com>
4778
4779 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4780 All callers updated.
4781 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4782 All callers updated.
4783 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4784 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4785
4786 2014-02-20 lin zuojian <manjian2006@gmail.com>
4787 Joel Brobecker <brobecker@adacore.com>
4788 Doug Evans <xdje42@gmail.com>
4789
4790 PR symtab/16581
4791 * dwarf2read.c (struct die_info): New member in_process.
4792 (reset_die_in_process): New function.
4793 (process_die): Set it at the start, reset when returning.
4794 (inherit_abstract_dies): Only call process_die if origin_child_die
4795 not already being processed.
4796
4797 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4798
4799 * windows-nat.c (handle_unload_dll): Add function documentation.
4800 (do_initial_windows_stuff): Add comment explaining why we wait
4801 until after inferior initialization has finished before
4802 processing all DLLs.
4803
4804 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4805
4806 * windows-nat.c (get_module_name): Delete.
4807 (windows_get_exec_module_filename): New function, mostly
4808 inspired from get_module_name.
4809 (windows_pid_to_exec_file): Replace call to get_module_name
4810 by call to windows_get_exec_module_filename.
4811
4812 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4813
4814 * windows-nat.c (handle_load_dll): Rewrite this function's
4815 introductory comment. Remove code using get_module_name
4816 to get the DLL's name.
4817
4818 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4819
4820 * windows-nat.c (get_windows_debug_event): Ignore
4821 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4822 if windows_initialization_done == 0.
4823 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4824 Adjust implementation to always load all DLLs.
4825 (do_initial_windows_stuff): Replace call to
4826 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4827
4828 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4829
4830 * windows-nat.c (_initialize_windows_nat): Deprecate the
4831 "dll-symbols" command. Turn the "add-shared-symbol-files"
4832 and "assf" aliases into commands, and deprecate them as well.
4833 * NEWS: Add entry explaining that "dll-symbols" and its two
4834 aliases are now deprecated.
4835
4836 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4837
4838 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4839 new-line in debug string. Remove trailing spaces.
4840
4841 2014-02-19 Stan Shebs <stan@codesourcery.com>
4842
4843 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4844
4845 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4846
4847 * NEWS: Add entry for the new feature
4848 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4849 and class values.
4850
4851 2014-02-19 Stan Shebs <stan@codesourcery.com>
4852
4853 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4854
4855 2014-02-19 Pedro Alves <palves@redhat.com>
4856
4857 * common/ptid.h (struct ptid): Mention that process_stratum
4858 targets should prefer ptid.lwp.
4859
4860 2014-02-19 Pedro Alves <palves@redhat.com>
4861
4862 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4863 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4864 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4865 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4866 store remote thread ids rather than ptid.tid.
4867 (_initialize_remote): Adjust.
4868
4869 2014-02-19 Tom Tromey <tromey@redhat.com>
4870
4871 * target.c (target_get_unwinder): Rewrite.
4872 (target_get_tailcall_unwinder): Rewrite.
4873 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4874 (record_btrace_to_get_tailcall_unwinder): New function.
4875 (init_record_btrace_ops): Update.
4876 * target.h (struct target_ops) <to_get_unwinder,
4877 to_get_tailcall_unwinder>: Now function pointers. Use
4878 TARGET_DEFAULT_RETURN.
4879
4880 2014-02-19 Tom Tromey <tromey@redhat.com>
4881
4882 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4883 argument.
4884 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4885
4886 2014-02-19 Tom Tromey <tromey@redhat.com>
4887
4888 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4889 directly.
4890 * target-delegates.c: Rebuild.
4891 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4892 TARGET_DEFAULT_FUNC.
4893 * target.c (default_target_decr_pc_after_break): Rename from
4894 forward_target_decr_pc_after_break. Simplify.
4895 (target_decr_pc_after_break): Rely on delegation.
4896
4897 2014-02-19 Tom Tromey <tromey@redhat.com>
4898
4899 * target.c (update_current_target): Do not INHERIT to_doc or
4900 to_magic. Do not de_fault to_open or to_close.
4901
4902 2014-02-19 Tom Tromey <tromey@redhat.com>
4903
4904 * gcore.h (objfile_find_memory_regions): Declare.
4905 * gcore.c (objfile_find_memory_regions): No longer static. Add
4906 "self" argument.
4907 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4908 * exec.c: Include gcore.h.
4909 (exec_set_find_memory_regions): Remove.
4910 (exec_find_memory_regions): Remove.
4911 (exec_do_find_memory_regions): Remove.
4912 (init_exec_ops): Update.
4913 * defs.h (exec_set_find_memory_regions): Remove.
4914
4915 2014-02-19 Tom Tromey <tromey@redhat.com>
4916
4917 * target-delegates.c: Rebuild.
4918 * target.h (struct target_ops) <to_extra_thread_info,
4919 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4920 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4921 not 0, in TARGET_DEFAULT_RETURN.
4922
4923 2014-02-19 Tom Tromey <tromey@redhat.com>
4924
4925 * target.c (complete_target_initialization): Remove casts. Use
4926 return_zero_has_execution.
4927 (return_zero): Add "ignore" argument.
4928 (return_zero_has_execution): New function.
4929 (init_dummy_target): Remove casts. Use
4930 return_zero_has_execution.
4931
4932 2014-02-19 Tom Tromey <tromey@redhat.com>
4933
4934 * target.c (update_current_target): Update comments. Do not
4935 INHERIT to_stratum.
4936
4937 2014-02-19 Tom Tromey <tromey@redhat.com>
4938
4939 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4940 needed.
4941 * corelow.c (core_read_description): Delegate when needed.
4942 * remote.c (remote_read_description): Delegate when needed.
4943 * target-delegates.c: Rebuild.
4944 * target.c (target_read_description): Rewrite.
4945 * target.h (struct target_ops) <to_read_description>: Update
4946 comment. Use TARGET_DEFAULT_RETURN.
4947
4948 2014-02-19 Tom Tromey <tromey@redhat.com>
4949
4950 * target-delegates.c: Rebuild.
4951 * target.c (update_current_target): Don't inherit or default
4952 to_can_run.
4953 (find_default_run_target): Check against delegate_can_run.
4954 * target.h (struct target_ops) <to_can_run>: Use
4955 TARGET_DEFAULT_RETURN.
4956
4957 2014-02-19 Tom Tromey <tromey@redhat.com>
4958
4959 * target-delegates.c: Rebuild.
4960 * target.c (target_disconnect): Unconditionally delegate.
4961 * target.h (struct target_ops) <to_disconnect>: Use
4962 TARGET_DEFAULT_NORETURN.
4963
4964 2014-02-19 Tom Tromey <tromey@redhat.com>
4965
4966 * record.c (record_stop): Unconditionally delegate.
4967 * target-delegates.c: Rebuild.
4968 * target.c (target_stop_recording): Unconditionally delegate.
4969 * target.h (struct target_ops) <to_stop_recording>: Use
4970 TARGET_DEFAULT_IGNORE.
4971
4972 2014-02-19 Tom Tromey <tromey@redhat.com>
4973
4974 * target-delegates.c: Rebuild.
4975 * target.c (target_enable_btrace): Unconditionally delegate.
4976 * target.h (struct target_ops) <to_enable_btrace>: Use
4977 TARGET_DEFAULT_NORETURN.
4978
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4980
4981 * target-delegates.c: Rebuild.
4982 * target.c (target_read_btrace): Unconditionally delegate.
4983 * target.h (struct target_ops) <to_read_btrace>: Use
4984 TARGET_DEFAULT_NORETURN.
4985
4986 2014-02-19 Tom Tromey <tromey@redhat.com>
4987
4988 * target-delegates.c: Rebuild.
4989 * target.c (target_teardown_btrace): Unconditionally delegate.
4990 * target.h (struct target_ops) <to_teardown_btrace>: Use
4991 TARGET_DEFAULT_NORETURN.
4992
4993 2014-02-19 Tom Tromey <tromey@redhat.com>
4994
4995 * target-delegates.c: Rebuild.
4996 * target.c (target_disable_btrace): Unconditionally delegate.
4997 * target.h (struct target_ops) <to_disable_btrace>: Use
4998 TARGET_DEFAULT_NORETURN.
4999
5000 2014-02-19 Tom Tromey <tromey@redhat.com>
5001
5002 * target-delegates.c: Rebuild.
5003 * target.c (default_search_memory): New function.
5004 (simple_search_memory): Update comment.
5005 (target_search_memory): Unconditionally delegate.
5006 * target.h (struct target_ops) <to_search_memory>: Use
5007 TARGET_DEFAULT_FUNC.
5008
5009 2014-02-19 Tom Tromey <tromey@redhat.com>
5010
5011 * auxv.c (default_auxv_parse): No longer static.
5012 (target_auxv_parse): Unconditionally delegate.
5013 * auxv.h (default_auxv_parse): Declare.
5014 * target-delegates.c: Rebuild.
5015 * target.c: Include auxv.h.
5016 * target.h (struct target_ops) <to_auxv_parse>: Use
5017 TARGET_DEFAULT_FUNC.
5018
5019 2014-02-19 Tom Tromey <tromey@redhat.com>
5020
5021 * target-delegates.c: Rebuild.
5022 * target.c (target_memory_map): Unconditionally delegate.
5023 * target.h (struct target_ops) <to_memory_map>: Use
5024 TARGET_DEFAULT_RETURN.
5025
5026 2014-02-19 Tom Tromey <tromey@redhat.com>
5027
5028 * target-delegates.c: Rebuild.
5029 * target.c (target_thread_alive): Unconditionally delegate.
5030 * target.h (struct target_ops) <to_thread_alive>: Use
5031 TARGET_DEFAULT_RETURN.
5032
5033 2014-02-19 Tom Tromey <tromey@redhat.com>
5034
5035 * target-delegates.c: Rebuild.
5036 * target.c (target_save_record): Unconditionally delegate.
5037 * target.h (struct target_ops) <to_save_record>: Use
5038 TARGET_DEFAULT_NORETURN.
5039
5040 2014-02-19 Tom Tromey <tromey@redhat.com>
5041
5042 * target-delegates.c: Rebuild.
5043 * target.c (target_delete_record): Unconditionally delegate.
5044 * target.h (struct target_ops) <to_delete_record>: Use
5045 TARGET_DEFAULT_NORETURN.
5046
5047 2014-02-19 Tom Tromey <tromey@redhat.com>
5048
5049 * target-delegates.c: Rebuild.
5050 * target.c (target_record_is_replaying): Unconditionally
5051 delegate.
5052 * target.h (struct target_ops) <to_record_is_replaying>: Use
5053 TARGET_DEFAULT_RETURN.
5054
5055 2014-02-19 Tom Tromey <tromey@redhat.com>
5056
5057 * target-delegates.c: Rebuild.
5058 * target.c (target_goto_record_begin): Unconditionally delegate.
5059 * target.h (struct target_ops) <to_goto_record_begin>: Use
5060 TARGET_DEFAULT_NORETURN.
5061
5062 2014-02-19 Tom Tromey <tromey@redhat.com>
5063
5064 * target-delegates.c: Rebuild.
5065 * target.c (target_goto_record_end): Unconditionally delegate.
5066 * target.h (struct target_ops) <to_goto_record_end>: Use
5067 TARGET_DEFAULT_NORETURN.
5068
5069 2014-02-19 Tom Tromey <tromey@redhat.com>
5070
5071 * target-delegates.c: Rebuild.
5072 * target.c (target_goto_record): Unconditionally delegate.
5073 * target.h (struct target_ops) <to_goto_record>: Use
5074 TARGET_DEFAULT_NORETURN.
5075
5076 2014-02-19 Tom Tromey <tromey@redhat.com>
5077
5078 * target-delegates.c: Rebuild.
5079 * target.c (target_insn_history): Unconditionally delegate.
5080 * target.h (struct target_ops) <to_insn_history>: Use
5081 TARGET_DEFAULT_NORETURN.
5082
5083 2014-02-19 Tom Tromey <tromey@redhat.com>
5084
5085 * target-delegates.c: Rebuild.
5086 * target.c (target_insn_history_from): Unconditionally delegate.
5087 * target.h (struct target_ops) <to_insn_history_from>: Use
5088 TARGET_DEFAULT_NORETURN.
5089
5090 2014-02-19 Tom Tromey <tromey@redhat.com>
5091
5092 * target-delegates.c: Rebuild.
5093 * target.c (target_insn_history_range): Unconditionally delegate.
5094 * target.h (struct target_ops) <to_insn_history_range>: Use
5095 TARGET_DEFAULT_NORETURN.
5096
5097 2014-02-19 Tom Tromey <tromey@redhat.com>
5098
5099 * target-delegates.c: Rebuild.
5100 * target.c (target_call_history): Unconditionally delegate.
5101 * target.h (struct target_ops) <to_call_history>: Use
5102 TARGET_DEFAULT_NORETURN.
5103
5104 2014-02-19 Tom Tromey <tromey@redhat.com>
5105
5106 * target-delegates.c: Rebuild.
5107 * target.c (target_call_history_from): Unconditionally delegate.
5108 * target.h (struct target_ops) <to_call_history_from>: Use
5109 TARGET_DEFAULT_NORETURN.
5110
5111 2014-02-19 Tom Tromey <tromey@redhat.com>
5112
5113 * target-delegates.c: Rebuild.
5114 * target.c (target_call_history_range): Unconditionally delegate.
5115 * target.h (struct target_ops) <to_call_history_range>: Use
5116 TARGET_DEFAULT_NORETURN.
5117
5118 2014-02-19 Tom Tromey <tromey@redhat.com>
5119
5120 * target-delegates.c: Rebuild.
5121 * target.c (target_verify_memory): Unconditionally delegate.
5122 * target.h (struct target_ops) <to_verify_memory>: Use
5123 TARGET_DEFAULT_NORETURN.
5124
5125 2014-02-19 Tom Tromey <tromey@redhat.com>
5126
5127 * target-delegates.c: Rebuild.
5128 * target.c (target_core_of_thread): Unconditionally delegate.
5129 * target.h (struct target_ops) <to_core_of_thread>: Use
5130 TARGET_DEFAULT_RETURN.
5131
5132 2014-02-19 Tom Tromey <tromey@redhat.com>
5133
5134 * target-delegates.c: Rebuild.
5135 * target.c (target_flash_done): Unconditionally delegate.
5136 * target.h (struct target_ops) <to_flash_done>: Use
5137 TARGET_DEFAULT_NORETURN.
5138
5139 2014-02-19 Tom Tromey <tromey@redhat.com>
5140
5141 * target-delegates.c: Rebuild.
5142 * target.c (target_flash_erase): Unconditionally delegate.
5143 * target.h (struct target_ops) <to_flash_erase>: Use
5144 TARGET_DEFAULT_NORETURN.
5145
5146 2014-02-19 Tom Tromey <tromey@redhat.com>
5147
5148 * target-delegates.c: Rebuild.
5149 * target.c (target_get_section_table): Unconditionally delegate.
5150 * target.h (struct target_ops) <to_get_section_table>: Use
5151 TARGET_DEFAULT_RETURN.
5152
5153 2014-02-19 Tom Tromey <tromey@redhat.com>
5154
5155 * target-delegates.c: Rebuild.
5156 * target.c (target_pid_to_str): Unconditionally delegate.
5157 (init_dummy_target): Don't initialize to_pid_to_str.
5158 (default_pid_to_str): Rename from dummy_pid_to_str.
5159 * target.h (struct target_ops) <to_pid_to_str>: Use
5160 TARGET_DEFAULT_FUNC.
5161
5162 2014-02-19 Tom Tromey <tromey@redhat.com>
5163
5164 * target-delegates.c: Rebuild.
5165 * target.c (target_find_new_threads): Unconditionally delegate.
5166 * target.h (struct target_ops) <to_find_new_threads>: Use
5167 TARGET_DEFAULT_RETURN.
5168
5169 2014-02-19 Tom Tromey <tromey@redhat.com>
5170
5171 * target-delegates.c: Rebuild.
5172 * target.c (target_program_signals): Unconditionally delegate.
5173 * target.h (struct target_ops) <to_program_signals>: Use
5174 TARGET_DEFAULT_IGNORE.
5175
5176 2014-02-19 Tom Tromey <tromey@redhat.com>
5177
5178 * target-delegates.c: Rebuild.
5179 * target.c (target_pass_signals): Unconditionally delegate.
5180 * target.h (struct target_ops) <to_pass_signals>: Use
5181 TARGET_DEFAULT_IGNORE.
5182
5183 2014-02-19 Tom Tromey <tromey@redhat.com>
5184
5185 * target-delegates.c: Rebuild.
5186 * target.c (default_mourn_inferior): New function.
5187 (target_mourn_inferior): Unconditionally delegate.
5188 * target.h (struct target_ops) <to_mourn_inferior>: Use
5189 TARGET_DEFAULT_FUNC.
5190
5191 2014-02-19 Tom Tromey <tromey@redhat.com>
5192
5193 * target-delegates.c: Rebuild.
5194 * target.c (default_follow_fork): New function.
5195 (target_follow_fork): Unconditionally delegate.
5196 * target.h (struct target_ops) <to_follow_fork>: Use
5197 TARGET_DEFAULT_FUNC.
5198
5199 2014-02-19 Tom Tromey <tromey@redhat.com>
5200
5201 * target-delegates.c: Rebuild.
5202 * target.c (target_kill): Unconditionally delegate.
5203 * target.h (struct target_ops) <to_kill>: Use
5204 TARGET_DEFAULT_NORETURN.
5205
5206 2014-02-19 Tom Tromey <tromey@redhat.com>
5207
5208 * target-delegates.c: Rebuild.
5209 * target.c (target_masked_watch_num_registers): Unconditionally
5210 delegate.
5211 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5212 Use TARGET_DEFAULT_RETURN.
5213
5214 2014-02-19 Tom Tromey <tromey@redhat.com>
5215
5216 * target-delegates.c: Rebuild.
5217 * target.c (target_remove_mask_watchpoint): Unconditionally
5218 delegate.
5219 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5220 TARGET_DEFAULT_RETURN.
5221
5222 2014-02-19 Tom Tromey <tromey@redhat.com>
5223
5224 * target-delegates.c: Rebuild.
5225 * target.c (target_insert_mask_watchpoint): Unconditionally
5226 delegate.
5227 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5228 TARGET_DEFAULT_RETURN.
5229
5230 2014-02-19 Tom Tromey <tromey@redhat.com>
5231
5232 * target-delegates.c: Rebuild.
5233 * target.c (target_ranged_break_num_registers): Unconditionally
5234 delegate.
5235 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5236 Use TARGET_DEFAULT_RETURN.
5237
5238 2014-02-19 Tom Tromey <tromey@redhat.com>
5239
5240 * target-delegates.c: Rebuild.
5241 * target.c (target_fetch_registers): Unconditionally delegate.
5242 * target.h (struct target_ops) <to_fetch_registers>: Use
5243 TARGET_DEFAULT_NORETURN.
5244
5245 2014-02-19 Tom Tromey <tromey@redhat.com>
5246
5247 * target-delegates.c: Rebuild.
5248 * target.c (update_current_target): Don't inherit or default
5249 to_stop.
5250 * target.h (struct target_ops) <to_stop>: Use
5251 TARGET_DEFAULT_IGNORE.
5252
5253 2014-02-19 Tom Tromey <tromey@redhat.com>
5254
5255 * target-delegates.c: Rebuild.
5256 * target.c (update_current_target): Don't inherit or default
5257 to_can_run_breakpoint_commands.
5258 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5259 Use TARGET_DEFAULT_RETURN.
5260
5261 2014-02-19 Tom Tromey <tromey@redhat.com>
5262
5263 * target-delegates.c: Rebuild.
5264 * target.c (update_current_target): Don't inherit or default
5265 to_supports_evaluation_of_breakpoint_conditions.
5266 * target.h (struct target_ops)
5267 <to_supports_evaluation_of_breakpoint_conditions>: Use
5268 TARGET_DEFAULT_RETURN.
5269
5270 2014-02-19 Tom Tromey <tromey@redhat.com>
5271
5272 * target-delegates.c: Rebuild.
5273 * target.c (update_current_target): Don't inherit or default
5274 to_augmented_libraries_svr4_read.
5275 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5276 Use TARGET_DEFAULT_RETURN.
5277
5278 2014-02-19 Tom Tromey <tromey@redhat.com>
5279
5280 * target-delegates.c: Rebuild.
5281 * target.c (update_current_target): Don't inherit or default
5282 to_can_use_agent.
5283 * target.h (struct target_ops) <to_can_use_agent>: Use
5284 TARGET_DEFAULT_RETURN.
5285
5286 2014-02-19 Tom Tromey <tromey@redhat.com>
5287
5288 * target-delegates.c: Rebuild.
5289 * target.c (update_current_target): Don't inherit or default
5290 to_use_agent.
5291 * target.h (struct target_ops) <to_use_agent>: Use
5292 TARGET_DEFAULT_NORETURN.
5293
5294 2014-02-19 Tom Tromey <tromey@redhat.com>
5295
5296 * target-delegates.c: Rebuild.
5297 * target.c (update_current_target): Don't inherit or default
5298 to_traceframe_info.
5299 (return_null): Remove.
5300 * target.h (struct target_ops) <to_traceframe_info>: Use
5301 TARGET_DEFAULT_RETURN.
5302
5303 2014-02-19 Tom Tromey <tromey@redhat.com>
5304
5305 * target-delegates.c: Rebuild.
5306 * target.c (update_current_target): Don't inherit or default
5307 to_static_tracepoint_markers_by_strid.
5308 * target.h (struct target_ops)
5309 <to_static_tracepoint_markers_by_strid>: Use
5310 TARGET_DEFAULT_NORETURN.
5311
5312 2014-02-19 Tom Tromey <tromey@redhat.com>
5313
5314 * target-delegates.c: Rebuild.
5315 * target.c (update_current_target): Don't inherit or default
5316 to_static_tracepoint_marker_at.
5317 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5318 Use TARGET_DEFAULT_RETURN.
5319
5320 2014-02-19 Tom Tromey <tromey@redhat.com>
5321
5322 * target-delegates.c: Rebuild.
5323 * target.c (update_current_target): Don't inherit or default
5324 to_set_permissions.
5325 * target.h (struct target_ops) <to_set_permissions>: Use
5326 TARGET_DEFAULT_IGNORE.
5327
5328 2014-02-19 Tom Tromey <tromey@redhat.com>
5329
5330 * target-delegates.c: Rebuild.
5331 * target.c (update_current_target): Don't inherit or default
5332 to_get_tib_address.
5333 * target.h (struct target_ops) <to_get_tib_address>: Use
5334 TARGET_DEFAULT_NORETURN.
5335
5336 2014-02-19 Tom Tromey <tromey@redhat.com>
5337
5338 * target-delegates.c: Rebuild.
5339 * target.c (update_current_target): Don't inherit or default
5340 to_set_trace_notes.
5341 * target.h (struct target_ops) <to_set_trace_notes>: Use
5342 TARGET_DEFAULT_RETURN.
5343
5344 2014-02-19 Tom Tromey <tromey@redhat.com>
5345
5346 * target-delegates.c: Rebuild.
5347 * target.c (update_current_target): Don't initialize
5348 to_set_trace_buffer_size.
5349 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5350 TARGET_DEFAULT_IGNORE.
5351
5352 2014-02-19 Tom Tromey <tromey@redhat.com>
5353
5354 * target-delegates.c: Rebuild.
5355 * target.c (update_current_target): Don't inherit or default
5356 to_set_circular_trace_buffer.
5357 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5358 TARGET_DEFAULT_IGNORE.
5359
5360 2014-02-19 Tom Tromey <tromey@redhat.com>
5361
5362 * target-delegates.c: Rebuild.
5363 * target.c (update_current_target): Don't inherit or default
5364 to_set_disconnected_tracing.
5365 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5366 TARGET_DEFAULT_IGNORE.
5367
5368 2014-02-19 Tom Tromey <tromey@redhat.com>
5369
5370 * target-delegates.c: Rebuild.
5371 * target.c (update_current_target): Don't inherit or default
5372 to_get_min_fast_tracepoint_insn_len.
5373 (return_minus_one): Remove.
5374 * target.h (struct target_ops)
5375 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5376
5377 2014-02-19 Tom Tromey <tromey@redhat.com>
5378
5379 * target-delegates.c: Rebuild.
5380 * target.c (update_current_target): Don't inherit or default
5381 to_get_raw_trace_data.
5382 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5383 TARGET_DEFAULT_NORETURN.
5384
5385 2014-02-19 Tom Tromey <tromey@redhat.com>
5386
5387 * target-delegates.c: Rebuild.
5388 * target.c (update_current_target): Don't inherit or default
5389 to_upload_trace_state_variables.
5390 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5391 Use TARGET_DEFAULT_RETURN.
5392
5393 2014-02-19 Tom Tromey <tromey@redhat.com>
5394
5395 * target-delegates.c: Rebuild.
5396 * target.c (update_current_target): Don't inherit or default
5397 to_upload_tracepoints.
5398 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5399 TARGET_DEFAULT_RETURN.
5400
5401 2014-02-19 Tom Tromey <tromey@redhat.com>
5402
5403 * target-delegates.c: Rebuild.
5404 * target.c (update_current_target): Don't inherit or default
5405 to_save_trace_data.
5406 * target.h (struct target_ops) <to_save_trace_data>: Use
5407 TARGET_DEFAULT_NORETURN.
5408
5409 2014-02-19 Tom Tromey <tromey@redhat.com>
5410
5411 * target-delegates.c: Rebuild.
5412 * target.c (update_current_target): Don't inherit or default
5413 to_get_trace_state_variable_value.
5414 * target.h (struct target_ops)
5415 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5416
5417 2014-02-19 Tom Tromey <tromey@redhat.com>
5418
5419 * target-delegates.c: Rebuild.
5420 * target.c (update_current_target): Don't inherit or default
5421 to_trace_find.
5422 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5423
5424 2014-02-19 Tom Tromey <tromey@redhat.com>
5425
5426 * target-delegates.c: Rebuild.
5427 * target.c (update_current_target): Don't inherit or default
5428 to_trace_stop.
5429 * target.h (struct target_ops) <to_trace_stop>: Use
5430 TARGET_DEFAULT_NORETURN.
5431
5432 2014-02-19 Tom Tromey <tromey@redhat.com>
5433
5434 * target-delegates.c: Rebuild.
5435 * target.c (update_current_target): Don't inherit or default
5436 to_get_tracepoint_status.
5437 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5438 TARGET_DEFAULT_NORETURN.
5439
5440 2014-02-19 Tom Tromey <tromey@redhat.com>
5441
5442 * target-delegates.c: Rebuild.
5443 * target.c (update_current_target): Don't inherit or default
5444 to_get_trace_status.
5445 * target.h (struct target_ops) <to_get_trace_status>: Use
5446 TARGET_DEFAULT_RETURN.
5447
5448 2014-02-19 Tom Tromey <tromey@redhat.com>
5449
5450 * target-delegates.c: Rebuild.
5451 * target.c (update_current_target): Don't inherit or default
5452 to_trace_start.
5453 * target.h (struct target_ops) <to_trace_start>: Use
5454 TARGET_DEFAULT_NORETURN.
5455
5456 2014-02-19 Tom Tromey <tromey@redhat.com>
5457
5458 * target-delegates.c: Rebuild.
5459 * target.c (update_current_target): Don't inherit or default
5460 to_trace_set_readonly_regions.
5461 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5462 Use TARGET_DEFAULT_NORETURN.
5463
5464 2014-02-19 Tom Tromey <tromey@redhat.com>
5465
5466 * target-delegates.c: Rebuild.
5467 * target.c (update_current_target): Don't inherit or default
5468 to_disable_tracepoint.
5469 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5470 TARGET_DEFAULT_NORETURN.
5471
5472 2014-02-19 Tom Tromey <tromey@redhat.com>
5473
5474 * target-delegates.c: Rebuild.
5475 * target.c (update_current_target): Don't inherit or default
5476 to_enable_tracepoint.
5477 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5478 TARGET_DEFAULT_NORETURN.
5479
5480 2014-02-19 Tom Tromey <tromey@redhat.com>
5481
5482 * target-delegates.c: Rebuild.
5483 * target.c (update_current_target): Don't inherit or default
5484 to_download_trace_state_variable.
5485 * target.h (struct target_ops) <to_download_trace_state_variable>:
5486 Use TARGET_DEFAULT_NORETURN.
5487
5488 2014-02-19 Tom Tromey <tromey@redhat.com>
5489
5490 * target-delegates.c: Rebuild.
5491 * target.c (update_current_target): Don't inherit or default
5492 to_can_download_tracepoint.
5493 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5494 TARGET_DEFAULT_RETURN.
5495
5496 2014-02-19 Tom Tromey <tromey@redhat.com>
5497
5498 * target-delegates.c: Rebuild.
5499 * target.c (update_current_target): Don't inherit or default
5500 to_download_tracepoint.
5501 * target.h (struct target_ops) <to_download_tracepoint>: Use
5502 TARGET_DEFAULT_NORETURN.
5503
5504 2014-02-19 Tom Tromey <tromey@redhat.com>
5505
5506 * target-delegates.c: Rebuild.
5507 * target.c (update_current_target): Don't inherit or default
5508 to_trace_init.
5509 * target.h (struct target_ops) <to_trace_init>: Use
5510 TARGET_DEFAULT_RETURN.
5511
5512 2014-02-19 Tom Tromey <tromey@redhat.com>
5513
5514 * target-delegates.c: Rebuild.
5515 * target.c (update_current_target): Don't inherit or default
5516 to_supports_string_tracing.
5517 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5518 TARGET_DEFAULT_RETURN.
5519
5520 2014-02-19 Tom Tromey <tromey@redhat.com>
5521
5522 * target-delegates.c: Rebuild.
5523 * target.c (update_current_target): Don't inherit or default
5524 to_supports_enable_disable_tracepoint.
5525 * target.h (struct target_ops)
5526 <to_supports_enable_disable_tracepoint>: Use
5527 TARGET_DEFAULT_RETURN.
5528
5529 2014-02-19 Tom Tromey <tromey@redhat.com>
5530
5531 * target-delegates.c: Rebuild.
5532 * target.c (update_current_target): Don't inherit or default
5533 to_supports_multi_process.
5534 * target.h (struct target_ops) <to_supports_multi_process>: Use
5535 TARGET_DEFAULT_RETURN.
5536
5537 2014-02-19 Tom Tromey <tromey@redhat.com>
5538
5539 * target-delegates.c: Rebuild.
5540 * target.c (update_current_target): Don't inherit or default
5541 to_get_ada_task_ptid.
5542 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5543 TARGET_DEFAULT_FUNC.
5544
5545 2014-02-19 Tom Tromey <tromey@redhat.com>
5546
5547 * target-delegates.c: Rebuild.
5548 * target.c (update_current_target): Don't inherit or default
5549 to_thread_architecture.
5550 * target.h (struct target_ops) <to_thread_architecture>: Use
5551 TARGET_DEFAULT_FUNC.
5552
5553 2014-02-19 Tom Tromey <tromey@redhat.com>
5554
5555 * target-delegates.c: Rebuild.
5556 * target.c (update_current_target): Don't inherit or default
5557 to_execution_direction.
5558 * target.h (struct target_ops) <to_execution_direction>: Use
5559 TARGET_DEFAULT_FUNC.
5560
5561 2014-02-19 Tom Tromey <tromey@redhat.com>
5562
5563 * target-delegates.c: Rebuild.
5564 * target.c (update_current_target): Don't inherit or default
5565 to_can_execute_reverse.
5566 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5567 TARGET_DEFAULT_RETURN.
5568 (target_can_execute_reverse): Unconditionally delegate.
5569
5570 2014-02-19 Tom Tromey <tromey@redhat.com>
5571
5572 * target-delegates.c: Rebuild.
5573 * target.c (update_current_target): Don't inherit or default
5574 to_goto_bookmark.
5575 (dummy_goto_bookmark): Remove.
5576 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5577 * target.h (struct target_ops) <to_goto_bookmark>: Use
5578 TARGET_DEFAULT_NORETURN.
5579
5580 2014-02-19 Tom Tromey <tromey@redhat.com>
5581
5582 * target-delegates.c: Rebuild.
5583 * target.c (update_current_target): Don't inherit or default
5584 to_get_bookmark.
5585 (dummy_get_bookmark): Remove.
5586 (init_dummy_target): Don't inherit or default to_get_bookmark.
5587 * target.h (struct target_ops) <to_get_bookmark>: Use
5588 TARGET_DEFAULT_NORETURN
5589
5590 2014-02-19 Tom Tromey <tromey@redhat.com>
5591
5592 * target-delegates.c: Rebuild.
5593 * target.c (update_current_target): Don't inherit or default
5594 to_make_corefile_notes.
5595 (init_dummy_target): Don't initialize to_make_corefile_notes.
5596 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5597 TARGET_DEFAULT_FUNC.
5598
5599 2014-02-19 Tom Tromey <tromey@redhat.com>
5600
5601 * target-delegates.c: Rebuild.
5602 * target.c (update_current_target): Don't inherit or default
5603 to_find_memory_regions.
5604 (init_dummy_target): Don't initialize to_find_memory_regions.
5605 * target.h (struct target_ops) <to_find_memory_regions>: Use
5606 TARGET_DEFAULT_FUNC.
5607
5608 2014-02-19 Tom Tromey <tromey@redhat.com>
5609
5610 * target-delegates.c: Rebuild.
5611 * target.c (update_current_target): Don't inherit or default
5612 to_log_command.
5613 * target.h (struct target_ops) <to_log_command>: Use
5614 TARGET_DEFAULT_IGNORE.
5615 (target_log_command): Unconditionally delegate.
5616
5617 2014-02-19 Tom Tromey <tromey@redhat.com>
5618
5619 * target-delegates.c: Rebuild.
5620 * target.c (update_current_target): Don't inherit or default
5621 to_pid_to_exec_file.
5622 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5623 TARGET_DEFAULT_RETURN.
5624
5625 2014-02-19 Tom Tromey <tromey@redhat.com>
5626
5627 * target-delegates.c: Rebuild.
5628 * target.c (update_current_target): Don't inherit or default
5629 to_thread_name.
5630 (target_thread_name): Unconditionally delegate.
5631 * target.h (struct target_ops) <to_thread_name>: Use
5632 TARGET_DEFAULT_RETURN.
5633
5634 2014-02-19 Tom Tromey <tromey@redhat.com>
5635
5636 * target-delegates.c: Rebuild.
5637 * target.c (update_current_target): Don't inherit or default
5638 to_extra_thread_info.
5639 * target.h (struct target_ops) <to_extra_thread_info>: Use
5640 TARGET_DEFAULT_RETURN.
5641
5642 2014-02-19 Tom Tromey <tromey@redhat.com>
5643
5644 * target-delegates.c: Rebuild.
5645 * target.c (update_current_target): Don't inherit or default
5646 to_has_exited.
5647 * target.h (struct target_ops) <to_has_exited>: Use
5648 TARGET_DEFAULT_RETURN..
5649
5650 2014-02-19 Tom Tromey <tromey@redhat.com>
5651
5652 * target-delegates.c: Rebuild.
5653 * target.c (update_current_target): Don't inherit or default
5654 to_set_syscall_catchpoint.
5655 (return_one): Remove.
5656 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5657 TARGET_DEFAULT_RETURN.
5658
5659 2014-02-19 Tom Tromey <tromey@redhat.com>
5660
5661 * target-delegates.c: Rebuild.
5662 * target.c (update_current_target): Don't inherit or default
5663 to_insert_exec_catchpoint.
5664 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5665 TARGET_DEFAULT_RETURN.
5666
5667 2014-01-08 Tom Tromey <tromey@redhat.com>
5668
5669 * target-delegates.c: Rebuild.
5670 * target.c (update_current_target): Don't inherit or default
5671 to_insert_exec_catchpoint.
5672 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5673 TARGET_DEFAULT_RETURN.
5674
5675 2014-02-19 Tom Tromey <tromey@redhat.com>
5676
5677 * target-delegates.c: Rebuild.
5678 * target.c (update_current_target): Don't inherit or default
5679 to_remove_vfork_catchpoint.
5680 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5681 TARGET_DEFAULT_RETURN.
5682
5683 2014-02-19 Tom Tromey <tromey@redhat.com>
5684
5685 * target-delegates.c: Rebuild.
5686 * target.c (update_current_target): Don't inherit or default
5687 to_insert_vfork_catchpoint.
5688 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5689 TARGET_DEFAULT_RETURN.
5690
5691 2014-02-19 Tom Tromey <tromey@redhat.com>
5692
5693 * target-delegates.c: Rebuild.
5694 * target.c (update_current_target): Don't inherit or default
5695 to_remove_fork_catchpoint.
5696 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5697 TARGET_DEFAULT_RETURN.
5698
5699 2014-02-19 Tom Tromey <tromey@redhat.com>
5700
5701 * target-delegates.c: Rebuild.
5702 * target.c (update_current_target): Don't inherit or default
5703 to_insert_fork_catchpoint.
5704 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5705 TARGET_DEFAULT_RETURN.
5706
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5708
5709 * target-delegates.c: Rebuild.
5710 * target.c (update_current_target): Don't inherit or default
5711 to_post_startup_inferior.
5712 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5713 TARGET_DEFAULT_IGNORE.
5714
5715 2014-02-19 Tom Tromey <tromey@redhat.com>
5716
5717 * target-delegates.c: Rebuild.
5718 * target.c (update_current_target): Don't inherit or default
5719 to_load.
5720 * target.h (struct target_ops) <to_load>: Use
5721 TARGET_DEFAULT_NORETURN.
5722
5723 2014-02-19 Tom Tromey <tromey@redhat.com>
5724
5725 * target-delegates.c: Rebuild.
5726 * target.c (update_current_target): Don't inherit or default
5727 to_terminal_info.
5728 * target.h (struct target_ops) <to_terminal_info>: Use
5729 TARGET_DEFAULT_FUNC.
5730
5731 2014-02-19 Tom Tromey <tromey@redhat.com>
5732
5733 * target-delegates.c: Rebuild.
5734 * target.c (update_current_target): Don't inherit or default
5735 to_terminal_save_ours.
5736 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5737 TARGET_DEFAULT_IGNORE.
5738
5739 2014-02-19 Tom Tromey <tromey@redhat.com>
5740
5741 * target-delegates.c: Rebuild.
5742 * target.c (update_current_target): Don't inherit or default
5743 to_terminal_ours.
5744 * target.h (struct target_ops) <to_terminal_ours>: Use
5745 TARGET_DEFAULT_IGNORE.
5746
5747 2014-02-19 Tom Tromey <tromey@redhat.com>
5748
5749 * target-delegates.c: Rebuild.
5750 * target.c (update_current_target): Don't inherit or default
5751 to_terminal_ours_for_output.
5752 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5753 TARGET_DEFAULT_IGNORE.
5754
5755 2014-02-19 Tom Tromey <tromey@redhat.com>
5756
5757 * target-delegates.c: Rebuild.
5758 * target.c (update_current_target): Don't inherit or default
5759 to_terminal_inferior.
5760 * target.h (struct target_ops) <to_terminal_inferior>: Use
5761 TARGET_DEFAULT_IGNORE.
5762
5763 2014-02-19 Tom Tromey <tromey@redhat.com>
5764
5765 * target-delegates.c: Rebuild.
5766 * target.c (update_current_target): Don't inherit or default
5767 to_terminal_init.
5768 * target.h (struct target_ops) <to_terminal_init>: Use
5769 TARGET_DEFAULT_IGNORE.
5770
5771 2014-02-19 Tom Tromey <tromey@redhat.com>
5772
5773 * target-delegates.c: Rebuild.
5774 * target.c (update_current_target): Don't inherit or default
5775 to_can_accel_watchpoint_condition.
5776 * target.h (struct target_ops)
5777 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5778
5779 2014-02-19 Tom Tromey <tromey@redhat.com>
5780
5781 * target-delegates.c: Rebuild.
5782 * target.c (update_current_target): Don't inherit or default
5783 to_region_ok_for_hw_watchpoint.
5784 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5785 Use TARGET_DEFAULT_FUNC.
5786
5787 2014-02-19 Tom Tromey <tromey@redhat.com>
5788
5789 * target-delegates.c: Rebuild.
5790 * target.c (update_current_target): Don't inherit or default
5791 to_watchpoint_addr_within_range.
5792 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5793 Use TARGET_DEFAULT_FUNC.
5794
5795 2014-02-19 Tom Tromey <tromey@redhat.com>
5796
5797 * target-delegates.c: Rebuild.
5798 * target.c (update_current_target): Don't inherit or default
5799 to_remove_watchpoint.
5800 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5801 TARGET_DEFAULT_NORETURN.
5802
5803 2014-02-19 Tom Tromey <tromey@redhat.com>
5804
5805 * target-delegates.c: Rebuild.
5806 * target.c (update_current_target): Don't inherit or default
5807 to_insert_watchpoint.
5808 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5809 TARGET_DEFAULT_RETURN.
5810
5811 2014-02-19 Tom Tromey <tromey@redhat.com>
5812
5813 * target-delegates.c: Rebuild.
5814 * target.c (update_current_target): Don't inherit or default
5815 to_remove_hw_breakpoint.
5816 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5817 TARGET_DEFAULT_RETURN.
5818
5819 2014-02-19 Tom Tromey <tromey@redhat.com>
5820
5821 * target-delegates.c: Rebuild.
5822 * target.c (update_current_target): Don't inherit or default
5823 to_insert_hw_breakpoint.
5824 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5825 TARGET_DEFAULT_RETURN.
5826
5827 2014-02-19 Tom Tromey <tromey@redhat.com>
5828
5829 * target-delegates.c: Rebuild.
5830 * target.c (update_current_target): Don't inherit or default
5831 to_can_use_hw_breakpoint.
5832 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5833 TARGET_DEFAULT_RETURN.
5834
5835 2014-02-19 Tom Tromey <tromey@redhat.com>
5836
5837 * target-delegates.c: Rebuild.
5838 * target.c (update_current_target): Don't inherit or default
5839 to_files_info.
5840 * target.h (struct target_ops) <to_files_info>: Use
5841 TARGET_DEFAULT_IGNORE.
5842
5843 2014-02-19 Tom Tromey <tromey@redhat.com>
5844
5845 * target-delegates.c: Rebuild.
5846 * target.c (update_current_target): Don't inherit or default
5847 to_store.
5848 * target.h (struct target_ops) <to_store>: Use
5849 TARGET_DEFAULT_NORETURN.
5850
5851 2014-02-19 Tom Tromey <tromey@redhat.com>
5852
5853 * target-delegates.c: Rebuild.
5854 * target.c (update_current_target): Don't inherit or default
5855 to_post_attach.
5856 * target.h (struct target_ops) <to_post_attach>: Use
5857 TARGET_DEFAULT_IGNORE.
5858
5859 2014-02-19 Tom Tromey <tromey@redhat.com>
5860
5861 * target-delegates.c: Rebuild.
5862 * target.c (update_current_target): Don't inherit or default
5863 to_rcmd.
5864 (default_rcmd): New function.
5865 (do_monitor_command): Unconditionally delegate.
5866 * target.h (struct target_ops) <to_rmcd>: Use
5867 TARGET_DEFAULT_FUNC.
5868
5869 2014-02-19 Tom Tromey <tromey@redhat.com>
5870
5871 * target-delegates.c: Rebuild.
5872 * target.c (init_dummy_target): Don't initialize to_attach.
5873 (target_attach): Unconditionally delegate.
5874 * target.h (struct target_ops) <to_attach>: Use
5875 TARGET_DEFAULT_FUNC.
5876
5877 2014-02-19 Tom Tromey <tromey@redhat.com>
5878
5879 * target-delegates.c: Rebuild.
5880 * target.c (target_detach): Unconditionally delegate.
5881 (init_dummy_target): Don't initialize to_detach.
5882 * target.h (struct target_ops) <to_detach>: Use
5883 TARGET_DEFAULT_IGNORE.
5884
5885 2014-02-19 Tom Tromey <tromey@redhat.com>
5886
5887 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5888 Add argument.
5889 (target_augmented_libraries_svr4_read): Add argument.
5890 * target.c (update_current_target): Update.
5891 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5892 argument.
5893
5894 2014-02-19 Tom Tromey <tromey@redhat.com>
5895
5896 * target.h (struct target_ops) <to_call_history_range>: Add
5897 argument.
5898 * target.c (target_call_history_range): Add argument.
5899 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5900 argument.
5901 (record_btrace_call_history_from): Update.
5902
5903 2014-02-19 Tom Tromey <tromey@redhat.com>
5904
5905 * target.h (struct target_ops) <to_call_history_from>: Add
5906 argument.
5907 * target.c (target_call_history_from): Add argument.
5908 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5909 argument.
5910
5911 2014-02-19 Tom Tromey <tromey@redhat.com>
5912
5913 * target.h (struct target_ops) <to_call_history>: Add argument.
5914 * target.c (target_call_history): Add argument.
5915 * record-btrace.c (record_btrace_call_history): Add 'self'
5916 argument.
5917
5918 2014-02-19 Tom Tromey <tromey@redhat.com>
5919
5920 * target.h (struct target_ops) <to_insn_history_range>: Add
5921 argument.
5922 * target.c (target_insn_history_range): Add argument.
5923 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5924 argument.
5925 (record_btrace_insn_history_from): Update.
5926
5927 2014-02-19 Tom Tromey <tromey@redhat.com>
5928
5929 * target.h (struct target_ops) <to_insn_history_from>: Add
5930 argument.
5931 * target.c (target_insn_history_from): Add argument.
5932 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5933 argument.
5934
5935 2014-02-19 Tom Tromey <tromey@redhat.com>
5936
5937 * target.h (struct target_ops) <to_insn_history>: Add argument.
5938 * target.c (target_insn_history): Add argument.
5939 * record-btrace.c (record_btrace_insn_history): Add 'self'
5940 argument.
5941
5942 2014-02-19 Tom Tromey <tromey@redhat.com>
5943
5944 * target.h (struct target_ops) <to_goto_record>: Add argument.
5945 * target.c (target_goto_record): Add argument.
5946 * record-full.c (record_full_goto): Add 'self' argument.
5947 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5948
5949 2014-02-19 Tom Tromey <tromey@redhat.com>
5950
5951 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5952 * target.c (target_goto_record_end): Add argument.
5953 * record-full.c (record_full_goto_end): Add 'self' argument.
5954 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5955
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5957
5958 * target.h (struct target_ops) <to_goto_record_begin>: Add
5959 argument.
5960 * target.c (target_goto_record_begin): Add argument.
5961 * record-full.c (record_full_goto_begin): Add 'self' argument.
5962 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5963 argument.
5964
5965 2014-02-19 Tom Tromey <tromey@redhat.com>
5966
5967 * target.h (struct target_ops) <to_record_is_replaying>: Add
5968 argument.
5969 * target.c (target_record_is_replaying): Add argument.
5970 * record-full.c (record_full_is_replaying): Add 'self' argument.
5971 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5972 argument.
5973 (record_btrace_xfer_partial, record_btrace_store_registers)
5974 (record_btrace_prepare_to_store, record_btrace_resume)
5975 (record_btrace_wait, record_btrace_decr_pc_after_break)
5976 (record_btrace_find_new_threads, record_btrace_thread_alive):
5977 Update.
5978
5979 2014-02-19 Tom Tromey <tromey@redhat.com>
5980
5981 * target.h (struct target_ops) <to_delete_record>: Add argument.
5982 * target.c (target_delete_record): Add argument.
5983 * record-full.c (record_full_delete): Add 'self' argument.
5984
5985 2014-02-19 Tom Tromey <tromey@redhat.com>
5986
5987 * target.h (struct target_ops) <to_save_record>: Add argument.
5988 * target.c (target_save_record): Add argument.
5989 * record-full.c (record_full_save): Add 'self' argument.
5990 (record_full_save): Add 'self' argument.
5991
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5993
5994 * target.h (struct target_ops) <to_info_record>: Add argument.
5995 * target.c (target_info_record): Add argument.
5996 * record.c (info_record_command): Add argument.
5997 * record-full.c (record_full_info): Add 'self' argument.
5998 * record-btrace.c (record_btrace_info): Add 'self' argument.
5999
6000 2014-02-19 Tom Tromey <tromey@redhat.com>
6001
6002 * target.h (struct target_ops) <to_stop_recording>: Add argument.
6003 * target.c (target_stop_recording): Add argument.
6004 * record.c (record_stop): Add argument.
6005 * record-btrace.c (record_btrace_stop_recording): Add 'self'
6006 argument.
6007
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6009
6010 * target.h (struct target_ops) <to_read_btrace>: Add argument.
6011 * target.c (struct target_ops) <to_read_btrace>: Add argument.
6012 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
6013 argument.
6014 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
6015 (_initialize_amd64_linux_nat): Use it.
6016 * i386-linux-nat.c (i386_linux_read_btrace): New function.
6017 (_initialize_i386_linux_nat): Use it.
6018
6019 2014-02-19 Tom Tromey <tromey@redhat.com>
6020
6021 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
6022 * target.c (target_teardown_btrace): Add argument.
6023 * remote.c (remote_teardown_btrace): Add 'self' argument.
6024 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
6025 argument.
6026 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
6027 argument.
6028
6029 2014-02-19 Tom Tromey <tromey@redhat.com>
6030
6031 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
6032 * target.c (target_disable_btrace): Add argument.
6033 * remote.c (remote_disable_btrace): Add 'self' argument.
6034 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
6035 argument.
6036 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
6037 argument.
6038
6039 2014-02-19 Tom Tromey <tromey@redhat.com>
6040
6041 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
6042 * target.c (target_enable_btrace): Add argument.
6043 * remote.c (remote_enable_btrace): Add 'self' argument.
6044 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
6045 argument.
6046 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
6047 argument.
6048
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6050
6051 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
6052 (target_can_use_agent): Add argument.
6053 * target.c (update_current_target): Update.
6054 * remote.c (remote_can_use_agent): Add 'self' argument.
6055 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
6056
6057 2014-02-19 Tom Tromey <tromey@redhat.com>
6058
6059 * target.h (struct target_ops) <to_use_agent>: Add argument.
6060 (target_use_agent): Add argument.
6061 * target.c (update_current_target): Update.
6062 * remote.c (remote_use_agent): Add 'self' argument.
6063 * inf-child.c (inf_child_use_agent): Add 'self' argument.
6064
6065 2014-02-19 Tom Tromey <tromey@redhat.com>
6066
6067 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
6068 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
6069 (target_traceframe_info): Add argument.
6070 * target.c (update_current_target): Update.
6071 * remote.c (remote_traceframe_info): Add 'self' argument.
6072 * ctf.c (ctf_traceframe_info): Add 'self' argument.
6073
6074 2014-02-19 Tom Tromey <tromey@redhat.com>
6075
6076 * target.h (target_static_tracepoint_markers_by_strid): Add
6077 argument.
6078 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
6079 'self' argument.
6080 * target.c (update_current_target): Update.
6081 * remote.c (struct target_ops)
6082 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6083 * linux-nat.c (struct target_ops)
6084 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
6085
6086 2014-02-19 Tom Tromey <tromey@redhat.com>
6087
6088 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6089 Add argument.
6090 (target_static_tracepoint_marker_at): Add argument.
6091 * target.c (update_current_target): Update.
6092 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
6093 argument.
6094
6095 2014-02-19 Tom Tromey <tromey@redhat.com>
6096
6097 * target.h (struct target_ops) <to_set_permissions>: Add argument.
6098 (target_set_permissions): Add argument.
6099 * target.c (update_current_target): Update.
6100 * remote.c (remote_set_permissions): Add 'self' argument.
6101 (remote_start_remote): Update.
6102
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6104
6105 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6106 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6107 (target_get_tib_address): Add argument.
6108 * target.c (update_current_target): Update.
6109 * remote.c (remote_get_tib_address): Add 'self' argument.
6110
6111 2014-02-19 Tom Tromey <tromey@redhat.com>
6112
6113 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6114 (target_set_trace_notes): Add argument.
6115 * target.c (update_current_target): Update.
6116 * remote.c (remote_set_trace_notes): Add 'self' argument.
6117
6118 2014-02-19 Tom Tromey <tromey@redhat.com>
6119
6120 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6121 argument.
6122 (target_set_trace_buffer_size): Add argument.
6123 * target.c (update_current_target): Update.
6124 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6125
6126 2014-02-19 Tom Tromey <tromey@redhat.com>
6127
6128 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6129 argument.
6130 (target_set_circular_trace_buffer): Add argument.
6131 * target.c (update_current_target): Update.
6132 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6133 argument.
6134
6135 2014-02-19 Tom Tromey <tromey@redhat.com>
6136
6137 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6138 argument.
6139 (target_set_disconnected_tracing): Add argument.
6140 * target.c (update_current_target): Update.
6141 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6142
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6144
6145 * target.h (struct target_ops)
6146 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6147 (target_get_min_fast_tracepoint_insn_len): Add argument.
6148 * target.c (update_current_target): Update.
6149 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6150 argument.
6151
6152 2014-02-19 Tom Tromey <tromey@redhat.com>
6153
6154 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6155 argument.
6156 (target_get_raw_trace_data): Add argument.
6157 * target.c (update_current_target): Update.
6158 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6159
6160 2014-02-19 Tom Tromey <tromey@redhat.com>
6161
6162 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6163 Add argument.
6164 (target_upload_trace_state_variables): Add argument.
6165 * target.c (update_current_target): Update.
6166 * remote.c (remote_upload_trace_state_variables): Add 'self'
6167 argument.
6168 (remote_start_remote): Update.
6169
6170 2014-02-19 Tom Tromey <tromey@redhat.com>
6171
6172 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6173 argument.
6174 (target_upload_tracepoints): Add argument.
6175 * target.c (update_current_target): Update.
6176 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6177 (remote_start_remote): Update.
6178
6179 2014-02-19 Tom Tromey <tromey@redhat.com>
6180
6181 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6182 (target_save_trace_data): Add argument.
6183 * target.c (update_current_target): Update.
6184 * remote.c (remote_save_trace_data): Add 'self' argument.
6185
6186 2014-02-19 Tom Tromey <tromey@redhat.com>
6187
6188 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6189 argument.
6190 * target.h (struct target_ops)
6191 <to_get_trace_state_variable_value>: Add argument.
6192 (target_get_trace_state_variable_value): Add argument.
6193 * target.c (update_current_target): Update.
6194 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6195 argument.
6196 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6197
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6199
6200 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6201 * target.h (struct target_ops) <to_trace_find>: Add argument.
6202 (target_trace_find): Add argument.
6203 * target.c (update_current_target): Update.
6204 * remote.c (remote_trace_find): Add 'self' argument.
6205 * ctf.c (ctf_trace_find): Add 'self' argument.
6206
6207 2014-02-19 Tom Tromey <tromey@redhat.com>
6208
6209 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6210 (target_trace_stop): Add argument.
6211 * target.c (update_current_target): Update.
6212 * remote.c (remote_trace_stop): Add 'self' argument.
6213
6214 2014-02-19 Tom Tromey <tromey@redhat.com>
6215
6216 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6217 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6218 argument.
6219 (target_get_tracepoint_status): Add argument.
6220 * target.c (update_current_target): Update.
6221 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6222
6223 2014-02-19 Tom Tromey <tromey@redhat.com>
6224
6225 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6226 * target.h (struct target_ops) <to_get_trace_status>: Add
6227 argument.
6228 (target_get_trace_status): Add argument.
6229 * target.c (update_current_target): Update.
6230 * remote.c (remote_get_trace_status): Add 'self' argument.
6231 (remote_start_remote, remote_can_download_tracepoint): Update.
6232 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6233
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6235
6236 * target.h (struct target_ops) <to_trace_start>: Add argument.
6237 (target_trace_start): Add argument.
6238 * target.c (update_current_target): Update.
6239 * remote.c (remote_trace_start): Add 'self' argument.
6240
6241 2014-02-19 Tom Tromey <tromey@redhat.com>
6242
6243 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6244 Add argument.
6245 (target_trace_set_readonly_regions): Add argument.
6246 * target.c (update_current_target): Update.
6247 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6248 argument.
6249
6250 2014-02-19 Tom Tromey <tromey@redhat.com>
6251
6252 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6253 argument.
6254 (target_disable_tracepoint): Add argument.
6255 * target.c (update_current_target): Update.
6256 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6257
6258 2014-02-19 Tom Tromey <tromey@redhat.com>
6259
6260 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6261 argument.
6262 (target_enable_tracepoint): Add argument.
6263 * target.c (update_current_target): Update.
6264 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6265
6266 2014-02-19 Tom Tromey <tromey@redhat.com>
6267
6268 * target.h (struct target_ops) <to_download_trace_state_variable>:
6269 Add argument.
6270 (target_download_trace_state_variable): Add argument.
6271 * target.c (update_current_target): Update.
6272 * remote.c (remote_download_trace_state_variable): Add 'self'
6273 argument.
6274
6275 2014-02-19 Tom Tromey <tromey@redhat.com>
6276
6277 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6278 argument.
6279 (target_can_download_tracepoint): Add argument.
6280 * target.c (update_current_target): Update.
6281 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6282
6283 2014-02-19 Tom Tromey <tromey@redhat.com>
6284
6285 * target.h (struct target_ops) <to_download_tracepoint>: Add
6286 argument.
6287 (target_download_tracepoint): Add argument.
6288 * target.c (update_current_target): Update.
6289 * remote.c (remote_download_tracepoint): Add 'self' argument.
6290
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6292
6293 * target.h (struct target_ops) <to_trace_init>: Add argument.
6294 (target_trace_init): Add argument.
6295 * target.c (update_current_target): Update.
6296 * remote.c (remote_trace_init): Add 'self' argument.
6297
6298 2014-02-19 Tom Tromey <tromey@redhat.com>
6299
6300 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6301 * target.c (target_fileio_readlink): Add argument.
6302 * remote.c (remote_hostio_readlink): Add 'self' argument.
6303 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6304
6305 2014-02-19 Tom Tromey <tromey@redhat.com>
6306
6307 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6308 * target.c (target_fileio_unlink): Add argument.
6309 * remote.c (remote_hostio_unlink): Add 'self' argument.
6310 (remote_file_delete): Update.
6311 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6312
6313 2014-02-19 Tom Tromey <tromey@redhat.com>
6314
6315 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6316 * target.c (target_fileio_close): Add argument.
6317 * remote.c (remote_hostio_close): Add 'self' argument.
6318 (remote_hostio_close_cleanup): Update.
6319 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6320 Update.
6321 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6322
6323 2014-02-19 Tom Tromey <tromey@redhat.com>
6324
6325 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6326 * target.c (target_fileio_pread): Add argument.
6327 * remote.c (remote_hostio_pread): Add 'self' argument.
6328 (remote_bfd_iovec_pread, remote_file_get): Update.
6329 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6330
6331 2014-02-19 Tom Tromey <tromey@redhat.com>
6332
6333 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6334 * target.c (target_fileio_pwrite): Add argument.
6335 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6336 (remote_file_put): Update.
6337 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6338
6339 2014-02-19 Tom Tromey <tromey@redhat.com>
6340
6341 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6342 * target.c (target_fileio_open): Add argument.
6343 * remote.c (remote_hostio_open): Add 'self' argument.
6344 (remote_bfd_iovec_open): Add 'self' argument.
6345 (remote_file_put): Add 'self' argument.
6346 (remote_file_get): Add 'self' argument.
6347 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6348
6349 2014-02-19 Tom Tromey <tromey@redhat.com>
6350
6351 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6352 Add argument.
6353 (target_can_run_breakpoint_commands): Add argument.
6354 * target.c (update_current_target): Update.
6355 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6356 argument.
6357 (remote_insert_breakpoint): Add 'self' argument.
6358 (remote_insert_hw_breakpoint): Add 'self' argument.
6359 (remote_can_run_breakpoint_commands): Add 'self' argument.
6360
6361 2014-02-19 Tom Tromey <tromey@redhat.com>
6362
6363 * target.h (struct target_ops)
6364 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6365 (target_supports_evaluation_of_breakpoint_conditions): Add
6366 argument.
6367 * target.c (update_current_target): Update.
6368 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6369 argument.
6370 (remote_insert_breakpoint): Add 'self' argument.
6371 (remote_insert_hw_breakpoint): Add 'self' argument.
6372 (remote_supports_cond_breakpoints): Add 'self' argument.
6373
6374 2014-02-19 Tom Tromey <tromey@redhat.com>
6375
6376 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6377 argument.
6378 (target_supports_string_tracing): Add argument.
6379 * target.c (update_current_target): Update.
6380 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6381
6382 2014-02-19 Tom Tromey <tromey@redhat.com>
6383
6384 * target.h (struct target_ops)
6385 <to_supports_disable_randomization>: Add argument.
6386 * target.c (find_default_supports_disable_randomization): Add
6387 argument.
6388 (target_supports_disable_randomization): Add argument.
6389 (find_default_supports_disable_randomization): Add 'self'
6390 argument.
6391 * remote.c (extended_remote_supports_disable_randomization): Add
6392 'self' argument.
6393 (remote_supports_disable_randomization): Add 'self' argument.
6394 (extended_remote_create_inferior): Update.
6395 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6396 'self' argument.
6397
6398 2014-02-19 Tom Tromey <tromey@redhat.com>
6399
6400 * target.h (struct target_ops)
6401 <to_supports_enable_disable_tracepoint>: Add argument.
6402 (target_supports_enable_disable_tracepoint): Add argument.
6403 * target.c (update_current_target): Update.
6404 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6405 argument.
6406
6407 2014-02-19 Tom Tromey <tromey@redhat.com>
6408
6409 * target.h (struct target_ops) <to_supports_multi_process>: Add
6410 argument.
6411 (target_supports_multi_process): Add argument.
6412 * target.c (update_current_target): Update.
6413 * remote.c (remote_supports_multi_process): Add 'self' argument.
6414 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6415 argument.
6416 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6417 argument.
6418
6419 2014-02-19 Tom Tromey <tromey@redhat.com>
6420
6421 * target.h (struct target_ops) <to_execution_direction>: Add
6422 argument.
6423 (target_execution_direction): Add argument.
6424 * target.c (default_execution_direction): Add 'self' argument.
6425 * record-full.c (record_full_execution_direction): Add 'self'
6426 argument.
6427
6428 2014-02-19 Tom Tromey <tromey@redhat.com>
6429
6430 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6431 argument.
6432 (target_can_execute_reverse): Add argument.
6433 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6434 * record-full.c (record_full_can_execute_reverse): Add 'self'
6435 argument.
6436 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6437 argument.
6438
6439 2014-02-19 Tom Tromey <tromey@redhat.com>
6440
6441 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6442 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6443 argument.
6444 (target_get_ada_task_ptid): Add argument.
6445 * target.c (update_current_target): Update.
6446 (default_get_ada_task_ptid): Add 'self' argument.
6447 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6448 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6449 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6450 argument.
6451 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6452 argument.
6453 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6454 argument.
6455 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6456 argument.
6457 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6458 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6459 argument.
6460
6461 2014-02-19 Tom Tromey <tromey@redhat.com>
6462
6463 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6464 (target_goto_bookmark): Add argument.
6465 * target.c (dummy_goto_bookmark): Add 'self' argument.
6466 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6467
6468 2014-02-19 Tom Tromey <tromey@redhat.com>
6469
6470 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6471 (target_get_bookmark): Add argument.
6472 * target.c (dummy_get_bookmark): Add 'self' argument.
6473 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6474
6475 2014-02-19 Tom Tromey <tromey@redhat.com>
6476
6477 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6478 argument.
6479 (target_make_corefile_notes): Add argument.
6480 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6481 * procfs.c (procfs_make_note_section): Add 'self' argument.
6482 (procfs_make_note_section): Add 'self' argument.
6483 (procfs_make_note_section): Add 'self' argument.
6484 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6485 argument.
6486 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6487 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6488 * exec.c (exec_make_note_section): Add 'self' argument.
6489 (exec_make_note_section): Add 'self' argument.
6490
6491 2014-02-19 Tom Tromey <tromey@redhat.com>
6492
6493 * target.h (struct target_ops) <to_find_memory_regions>: Add
6494 argument.
6495 (target_find_memory_regions): Add argument.
6496 * target.c (dummy_find_memory_regions): Add 'self' argument.
6497 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6498 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6499 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6500 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6501 * exec. (exec_do_find_memory_regions): New global.
6502 (exec_set_find_memory_regions): Rewrite.
6503 (exec_find_memory_regions): New function.
6504 (init_exec_ops): Use exec_find_memory_regions.
6505
6506 2014-02-19 Tom Tromey <tromey@redhat.com>
6507
6508 * target.h (struct target_ops) <to_supports_non_stop>: Add
6509 argument.
6510 * target.c (find_default_supports_non_stop): Add argument.
6511 (target_supports_non_stop): Add argument.
6512 (find_default_supports_non_stop): Add 'self' argument.
6513 * remote.c (remote_supports_non_stop): Add 'self' argument.
6514 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6515
6516 2014-02-19 Tom Tromey <tromey@redhat.com>
6517
6518 * target.h (struct target_ops) <to_log_command>: Add argument.
6519 (target_log_command): Add argument.
6520 * serial.h (serial_log_command): Add 'self' argument.
6521 * serial.c (serial_log_command): Add 'self' argument.
6522
6523 2014-02-19 Tom Tromey <tromey@redhat.com>
6524
6525 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6526 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6527 argument.
6528 (target_pid_to_exec_file): Add argument.
6529 * target.c (debug_to_pid_to_exec_file): Add argument.
6530 (update_current_target): Update.
6531 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6532 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6533 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6534 (linux_handle_extended_wait): Update.
6535 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6536 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6537 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6538 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6539
6540 2014-02-19 Tom Tromey <tromey@redhat.com>
6541
6542 * target.h (struct target_ops) <to_rcmd>: Add argument.
6543 (target_rcmd): Add argument.
6544 * target.c (debug_to_rcmd): Add argument.
6545 (update_current_target, do_monitor_command): Update.
6546 * remote.c (remote_rcmd): Add 'self' argument.
6547 * monitor.c (monitor_rcmd): Add 'self' argument.
6548
6549 2014-02-19 Tom Tromey <tromey@redhat.com>
6550
6551 * windows-nat.c (windows_stop): Add 'self' argument.
6552 * target.h (struct target_ops) <to_stop>: Add argument.
6553 * target.c (target_stop): Add argument.
6554 (debug_to_stop): Add argument.
6555 (update_current_target): Update.
6556 * remote.c (remote_stop): Add 'self' argument.
6557 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6558 (gdbsim_cntrl_c): Update.
6559 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6560 * procfs.c (procfs_stop): Add 'self' argument.
6561 * nto-procfs.c (procfs_stop): Add 'self' argument.
6562 * monitor.c (monitor_stop): Add 'self' argument.
6563 (monitor_open): Update.
6564 * linux-nat.c (linux_nat_stop): Add argument.
6565 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6566 * gnu-nat.c (gnu_stop): Add 'self' argument.
6567 * darwin-nat.c (darwin_stop): Add 'self' argument.
6568
6569 2014-02-19 Tom Tromey <tromey@redhat.com>
6570
6571 * target.h (struct target_ops) <to_thread_name>: Add argument.
6572 * target.c (target_thread_name): Add argument.
6573 (update_current_target): Update.
6574 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6575
6576 2014-02-19 Tom Tromey <tromey@redhat.com>
6577
6578 * target.h (struct target_ops) <to_extra_thread_info>: Add
6579 argument.
6580 (target_extra_thread_info): Add argument.
6581 * target.c (update_current_target): Update.
6582 * remote.c (remote_threads_extra_info): Add 'self' argument.
6583 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6584 argument.
6585 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6586 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6587 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6588 argument.
6589 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6590 argument.
6591 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6592 argument.
6593 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6594 argument.
6595
6596 2014-02-19 Tom Tromey <tromey@redhat.com>
6597
6598 * target.h (struct target_ops) <to_program_signals>: Add argument.
6599 * target.c (target_program_signals): Add argument.
6600 * remote.c (remote_program_signals): Add 'self' argument.
6601
6602 2014-02-19 Tom Tromey <tromey@redhat.com>
6603
6604 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6605 * target.c (target_pass_signals): Add argument.
6606 * remote.c (remote_pass_signals): Add 'self' argument.
6607 (remote_start_remote): Update.
6608 * procfs.c (procfs_pass_signals): Add 'self' argument.
6609 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6610 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6611 (linux_nat_create_inferior, linux_nat_attach): Update.
6612
6613 2014-02-19 Tom Tromey <tromey@redhat.com>
6614
6615 * windows-nat.c (windows_can_run): Add 'self' argument.
6616 * target.h (struct target_ops) <to_can_run>: Add argument.
6617 (target_can_run): Add argument.
6618 * target.c (debug_to_can_run): Add argument.
6619 (update_current_target): Update.
6620 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6621 * inf-child.c (inf_child_can_run): Add 'self' argument.
6622 * go32-nat.c (go32_can_run): Add 'self' argument.
6623
6624 2014-02-19 Tom Tromey <tromey@redhat.com>
6625
6626 * target.h (struct target_ops) <to_has_exited>: Add argument.
6627 (target_has_exited): Add argument.
6628 * target.c (debug_to_has_exited): Add argument.
6629 (update_current_target): Update.
6630
6631 2014-02-19 Tom Tromey <tromey@redhat.com>
6632
6633 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6634 argument.
6635 (target_set_syscall_catchpoint): Add argument.
6636 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6637 argument.
6638 * target.c (update_current_target): Update.
6639
6640 2014-02-19 Tom Tromey <tromey@redhat.com>
6641
6642 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6643 argument.
6644 (target_remove_exec_catchpoint): Add argument.
6645 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6646 (update_current_target): Update.
6647 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6648 argument.
6649
6650 2014-02-19 Tom Tromey <tromey@redhat.com>
6651
6652 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6653 argument.
6654 (target_insert_exec_catchpoint): Add argument.
6655 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6656 (update_current_target): Update.
6657 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6658 argument.
6659
6660 2014-02-19 Tom Tromey <tromey@redhat.com>
6661
6662 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6663 argument.
6664 (target_remove_vfork_catchpoint): Add argument.
6665 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6666 (update_current_target): Update.
6667 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6668 argument.
6669
6670 2014-02-19 Tom Tromey <tromey@redhat.com>
6671
6672 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6673 argument.
6674 (target_insert_vfork_catchpoint): Add argument.
6675 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6676 (update_current_target): Update.
6677 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6678 argument.
6679
6680 2014-02-19 Tom Tromey <tromey@redhat.com>
6681
6682 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6683 argument.
6684 (target_remove_fork_catchpoint): Add argument.
6685 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6686 (update_current_target): Update.
6687 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6688 argument.
6689
6690 2014-02-19 Tom Tromey <tromey@redhat.com>
6691
6692 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6693 argument.
6694 (target_insert_fork_catchpoint): Add argument.
6695 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6696 (update_current_target): Update.
6697 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6698 argument.
6699
6700 2014-02-19 Tom Tromey <tromey@redhat.com>
6701
6702 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6703 argument.
6704 (target_post_startup_inferior): Add argument.
6705 * target.c (debug_to_post_startup_inferior): Add argument.
6706 (update_current_target): Update.
6707 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6708 argument.
6709 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6710 argument.
6711 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6712 argument.
6713 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6714 argument.
6715 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6716 'self' argument.
6717 (super_post_startup_inferior): Likewise.
6718 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6719 'self' argument.
6720 (super_post_startup_inferior): Likewise.
6721 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6722 Add 'self' argument.
6723 (super_post_startup_inferior): Likewise.
6724
6725 2014-02-19 Tom Tromey <tromey@redhat.com>
6726
6727 * target.h (struct target_ops) <to_load>: Add argument.
6728 * target.c (target_load): Add argument.
6729 (debug_to_load): Add argument.
6730 (update_current_target): Update.
6731 * remote.c (remote_load): Add 'self' argument.
6732 * remote-sim.c (gdbsim_load): Add 'self' argument.
6733 * remote-mips.c (mips_load): Add 'self' argument.
6734 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6735 * monitor.c (monitor_load): Add 'self' argument.
6736 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6737
6738 2014-02-19 Tom Tromey <tromey@redhat.com>
6739
6740 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6741 (target_terminal_info): Add argument.
6742 * target.c (debug_to_terminal_info): Add argument.
6743 (default_terminal_info): Likewise.
6744 * inflow.c (child_terminal_info): Add 'self' argument.
6745 * inferior.h (child_terminal_info): Add 'self' argument.
6746 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6747
6748 2014-02-19 Tom Tromey <tromey@redhat.com>
6749
6750 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6751 argument.
6752 (target_terminal_save_ours): Add argument.
6753 * target.c (debug_to_terminal_save_ours): Add argument.
6754 (update_current_target): Update.
6755 * inflow.c (terminal_save_ours): Add 'self' argument.
6756 * inferior.h (terminal_save_ours): Add 'self' argument.
6757
6758 2014-02-19 Tom Tromey <tromey@redhat.com>
6759
6760 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6761 (target_terminal_ours): Add argument.
6762 * target.c (debug_to_terminal_ours): Add argument.
6763 (update_current_target): Update.
6764 * remote.c (remote_terminal_ours): Add 'self' argument.
6765 (remote_close): Update.
6766 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6767 * inflow.c (terminal_ours): Add 'self' argument.
6768 * inferior.h (terminal_ours): Add 'self' argument.
6769 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6770
6771 2014-02-19 Pedro Alves <palves@redhat.com>
6772 Tom Tromey <tromey@redhat.com>
6773
6774 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6775 argument.
6776 (target_terminal_ours_for_output): Add argument.
6777 * target.c (debug_to_terminal_ours_for_output): Add argument.
6778 (update_current_target): Update.
6779 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6780 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6781 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6782
6783 2014-02-19 Tom Tromey <tromey@redhat.com>
6784
6785 * target.h (struct target_ops) <to_terminal_inferior>: Add
6786 argument.
6787 * target.c (target_terminal_inferior): Add argument.
6788 (update_current_target): Update.
6789 * remote.c (remote_terminal_inferior): Add 'self' argument.
6790 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6791 * inflow.c (terminal_inferior): Add 'self' argument.
6792 * inferior.h (terminal_inferior): Add 'self' argument.
6793 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6794 (go32_terminal_inferior): Add 'self' argument.
6795
6796 2014-02-19 Tom Tromey <tromey@redhat.com>
6797
6798 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6799 (target_terminal_init): Add argument.
6800 * target.c (debug_to_terminal_init): Add argument.
6801 (update_current_target): Update.
6802 * inflow.c (terminal_init_inferior): Add 'self' argument.
6803 * inferior.h (terminal_init_inferior): Add 'self' argument.
6804 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6805 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6806
6807 2014-02-19 Tom Tromey <tromey@redhat.com>
6808
6809 * target.h (struct target_ops)
6810 <to_can_accel_watchpoint_condition>: Add argument.
6811 (target_can_accel_watchpoint_condition): Add argument.
6812 * target.c (debug_to_can_accel_watchpoint_condition): Add
6813 argument.
6814 (update_current_target): Update.
6815 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6816 'self' argument.
6817
6818 2014-02-19 Tom Tromey <tromey@redhat.com>
6819
6820 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6821 Add argument.
6822 (target_region_ok_for_hw_watchpoint): Add argument.
6823 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6824 (default_region_ok_for_hw_watchpoint): Add argument.
6825 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6826 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6827 argument.
6828 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6829 argument.
6830 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6831 argument.
6832 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6833 'self' argument.
6834 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6835 'self' argument.
6836 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6837 'self' argument.
6838 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6839 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6840 'self' argument.
6841 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6842 Add 'self' argument.
6843
6844 2014-02-19 Tom Tromey <tromey@redhat.com>
6845
6846 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6847 argument.
6848 (target_insert_watchpoint): Add argument.
6849 * target.c (debug_to_insert_watchpoint): Add argument.
6850 (update_current_target): Update.
6851 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6852 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6853 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6854 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6855 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6856 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6857 argument.
6858 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6859 (procfs_insert_hw_watchpoint): Add 'self' argument.
6860 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6861 argument.
6862 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6863 argument.
6864 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6865 argument.
6866 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6867 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6868 argument.
6869 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6870 'self' argument.
6871
6872 2014-02-19 Tom Tromey <tromey@redhat.com>
6873
6874 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6875 argument.
6876 (target_remove_watchpoint): Add argument.
6877 * target.c (debug_to_remove_watchpoint): Add argument.
6878 (update_current_target): Update.
6879 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6880 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6881 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6882 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6883 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6884 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6885 argument.
6886 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6887 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6888 argument.
6889 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6890 argument.
6891 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6892 argument.
6893 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6894 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6895 argument.
6896 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6897 'self' argument.
6898
6899 2014-02-19 Tom Tromey <tromey@redhat.com>
6900
6901 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6902 argument.
6903 (target_remove_hw_breakpoint): Add argument.
6904 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6905 (update_current_target): Update.
6906 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6907 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6908 argument.
6909 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6910 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6911 argument.
6912 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6913 'self' argument.
6914
6915 2014-02-19 Tom Tromey <tromey@redhat.com>
6916
6917 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6918 argument.
6919 (target_insert_hw_breakpoint): Add argument.
6920 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6921 (update_current_target): Update.
6922 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6923 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6924 argument.
6925 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6926 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6927 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6928 argument.
6929 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6930 'self' argument.
6931
6932 2014-02-19 Tom Tromey <tromey@redhat.com>
6933
6934 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6935 argument.
6936 (target_can_use_hardware_watchpoint): Add argument.
6937 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6938 (update_current_target): Update.
6939 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6940 argument.
6941 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6942 argument.
6943 * remote.c (remote_check_watch_resources): Add 'self' argument.
6944 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6945 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6946 argument.
6947 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6948 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6949 argument.
6950 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6951 argument.
6952 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6953 argument.
6954 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6955 argument.
6956 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6957 argument.
6958 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6959 argument.
6960 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6961 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6962 argument.
6963 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6964 'self' argument.
6965
6966 2014-02-19 Tom Tromey <tromey@redhat.com>
6967
6968 * target.h (struct target_ops) <to_post_attach>: Add argument.
6969 (target_post_attach): Add argument.
6970 * target.c (debug_to_post_attach): Add argument.
6971 (update_current_target): Update.
6972 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6973 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6974 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6975 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6976 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6977
6978 2014-02-19 Tom Tromey <tromey@redhat.com>
6979
6980 * windows-nat.c (windows_close): Add 'self' argument.
6981 * tracepoint.c (tfile_close): Add 'self' argument.
6982 * target.h (struct target_ops) <to_close>: Add argument.
6983 * target.c (target_close): Add argument.
6984 (update_current_target): Update.
6985 * remote.c (remote_close): Add 'self' argument.
6986 * remote-sim.c (gdbsim_close): Add 'self' argument.
6987 * remote-mips.c (mips_close): Add 'self' argument.
6988 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6989 * record-full.c (record_full_close): Add 'self' argument.
6990 * record-btrace.c (record_btrace_close): Add 'self' argument.
6991 * monitor.h (monitor_close): Add 'self' argument.
6992 * monitor.c (monitor_close): Add 'self' argument.
6993 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6994 * linux-nat.c (linux_nat_close): Add argument.
6995 * go32-nat.c (go32_close): Add 'self' argument.
6996 * exec.c (exec_close_1): Add 'self' argument.
6997 * ctf.c (ctf_close): Add 'self' argument.
6998 * corelow.c (core_close): Add 'self' argument.
6999 (core_close_cleanup): Update.
7000 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
7001 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
7002
7003 2014-02-19 Tom Tromey <tromey@redhat.com>
7004
7005 * remote.c (remote_load): New function.
7006 (init_remote_ops): Use it.
7007
7008 2014-02-19 Tom Tromey <tromey@redhat.com>
7009
7010 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
7011 argument.
7012 * common/linux-btrace.h (linux_supports_btrace): Update.
7013 * remote.c (remote_supports_btrace): Add "self" argument.
7014 * target-delegates.c: Rebuild.
7015 * target.c (target_supports_btrace): Remove.
7016 * target.h (struct target_ops) <to_supports_btrace>: Add
7017 target_ops argument.
7018 (target_supports_btrace): New define.
7019
7020 2014-02-19 Tom Tromey <tromey@redhat.com>
7021
7022 * record-full.c (record_full_beneath_to_resume_ops)
7023 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
7024 (record_full_beneath_to_wait)
7025 (record_full_beneath_to_store_registers_ops)
7026 (record_full_beneath_to_store_registers)
7027 (record_full_beneath_to_xfer_partial_ops)
7028 (record_full_beneath_to_xfer_partial)
7029 (record_full_beneath_to_insert_breakpoint_ops)
7030 (record_full_beneath_to_insert_breakpoint)
7031 (record_full_beneath_to_remove_breakpoint_ops)
7032 (record_full_beneath_to_remove_breakpoint)
7033 (record_full_beneath_to_stopped_by_watchpoint)
7034 (record_full_beneath_to_stopped_data_address)
7035 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
7036 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
7037 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
7038 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
7039 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
7040 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
7041 (tmp_to_stopped_data_address, tmp_to_async): Remove.
7042 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
7043 (record_full_resume, record_full_wait_1)
7044 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
7045 (record_full_store_registers, record_full_xfer_partial)
7046 (record_full_insert_breakpoint, record_full_remove_breakpoint)
7047 (record_full_async, record_full_core_xfer_partial): Use target
7048 delegation.
7049 * target-delegates.c: Rebuild.
7050 * target.c (current_xfer_partial): Remove.
7051 (update_current_target): Do not INHERIT or de_fault
7052 to_insert_breakpoint, to_remove_breakpoint,
7053 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
7054 to_is_async_p, to_async. Do not set to_xfer_partial field.
7055 (default_xfer_partial): Simplify.
7056 (current_xfer_partial): Remove.
7057 (target_wait, target_resume): Simplify.
7058 (find_default_can_async_p, find_default_is_async_p): Update.
7059 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
7060 to_xfer_partial, to_stopped_by_watchpoint,
7061 to_stopped_data_address.
7062 (target_store_registers): Simplify.
7063 (forward_target_remove_breakpoint)
7064 (forward_target_insert_breakpoint): Remove.
7065 (target_remove_breakpoint, target_insert_breakpoint)
7066 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
7067 * target.h (struct target_ops) <to_resume, to_wait,
7068 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
7069 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
7070 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
7071 markup.
7072 (forward_target_remove_breakpoint)
7073 (forward_target_insert_breakpoint): Remove.
7074 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
7075 directly.
7076 (record_btrace_insert_breakpoint): Delegate directly.
7077
7078 2014-02-19 Tom Tromey <tromey@redhat.com>
7079
7080 PR build/7701:
7081 * target-delegates.c: New file.
7082 * target.c: Include target-delegates.c.
7083 (init_dummy_target): Call install_dummy_methods.
7084 (complete_target_initialization): Call install_delegators.
7085 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
7086 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
7087 * make-target-delegates: New file.
7088
7089 2014-02-19 Tom Tromey <tromey@redhat.com>
7090
7091 * record.c (find_record_target): Use find_target_at.
7092 * target.c (find_target_at): New function.
7093 * target.h (find_target_at): Declare.
7094
7095 2014-02-19 Tom Tromey <tromey@redhat.com>
7096
7097 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
7098 Add 'ops' argument.
7099 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
7100 'ops' argument.
7101 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
7102 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7103 'ops' argument.
7104 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7105 argument.
7106 * linux-nat.c (save_sigtrap): Update.
7107 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7108 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7109 (linux_nat_close): Update.
7110 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7111 argument.
7112 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7113 argument.
7114 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7115 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7116 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7117 (tmp_to_async): Add 'ops' argument.
7118 (record_full_stopped_by_watchpoint, record_full_async)
7119 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7120 argument.
7121 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7122 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7123 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7124 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7125 (remote_is_async_p, remote_async): Add 'ops' argument.
7126 (remote_stopped_data_address): Update.
7127 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7128 * target.c (update_current_target)
7129 (find_default_can_async_p, find_default_is_async_p): Update.
7130 (init_dummy_target): Update.
7131 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7132 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7133 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7134 (target_can_async_p, target_is_async_p, target_async)
7135 (target_stopped_by_watchpoint): Update.
7136
7137 2014-02-19 Yao Qi <yao@codesourcery.com>
7138
7139 PR gdb/16220
7140 * gdbarch.sh: Remove startup_gdbarch.
7141 * gdbarch.c: Regenerated.
7142 * gdbarch.h: Likewise.
7143
7144 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7145
7146 * rl78-tdep.c (rl78_g10_register_name): New function.
7147 (rl78_return_value): Add g10 support.
7148 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7149 g10.
7150
7151 2014-02-17 Doug Evans <xdje42@gmail.com>
7152
7153 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7154 (SUBDIR_GUILE_SRCS): Ditto.
7155 (scm-gsmob.o): Ditto.
7156
7157 2014-02-17 Yao Qi <yao@codesourcery.com>
7158
7159 * gnu-nat.c (ILL_RPC): Declare defined function.
7160
7161 2014-02-17 Yao Qi <yao@codesourcery.com>
7162
7163 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7164 mach_msg_type_number_t.
7165 (gnu_write_inferior): Likewise.
7166
7167 2014-02-17 Yao Qi <yao@codesourcery.com>
7168
7169 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7170 in format string.
7171 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7172 (inf_validate_procs, inf_signal): Likewise.
7173 (S_exception_raise_request): Likewise.
7174 (do_mach_notify_dead_name): Likewise.
7175 (steal_exc_port): Likewise.
7176 (gnu_read_inferior): Change 'copy_count''s type to
7177 mach_msg_type_number_t.
7178 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7179 format string.
7180
7181 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7182
7183 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7184 flag. Adjust all users; in particular...
7185 (gnu_wait): ..., don't decrement its value in here...
7186 (gnu_create_inferior): ..., and instead set the flag in here,
7187 around the startup_inferior call, and call that one with
7188 START_INFERIOR_TRAPS_EXPECTED.
7189
7190 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7191 (ILL_RPC): ... new macro.
7192 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7193 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7194 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7195 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7196 functions with ILL_RPC macro.
7197 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7198 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7199 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7200 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7201 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7202 (S_proc_getlogin_reply, S_proc_getsid_reply)
7203 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7204 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7205 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7206 (S_proc_getnports_reply, S_proc_is_important_reply)
7207 (S_proc_get_code_reply): New stub functions, generated with
7208 ILL_RPC macro.
7209
7210 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7211 collected the type check structures.
7212
7213 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7214
7215 2014-02-14 Doug Evans <dje@google.com>
7216
7217 * target.c (target_write_partial): Fix result type.
7218
7219 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7220
7221 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7222 the proper offsets to access fpregset_t.
7223
7224 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7225
7226 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7227 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7228 * h8300-tdep.c (setmachinelist): Remove global.
7229 * hppa-tdep.c (hppa_sigtramp): Remove global.
7230 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7231 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7232 * ravenscar-thread.c (update_target_observer): Remove global.
7233 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7234
7235 2014-02-12 Tom Tromey <tromey@redhat.com>
7236
7237 * common/rsp-low.c: Update comments.
7238 * common/rsp-low.h: Update comments.
7239
7240 2014-02-12 Tom Tromey <tromey@redhat.com>
7241
7242 * common/rsp-low.c (convert_ascii_to_int): Remove.
7243 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7244
7245 2014-02-12 Tom Tromey <tromey@redhat.com>
7246
7247 * common/rsp-low.h (unhexify): Don't declare.
7248 * common/rsp-low.c (unhexify): Remove.
7249
7250 2014-02-12 Tom Tromey <tromey@redhat.com>
7251
7252 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7253 * common/rsp-low.c (convert_int_to_ascii): Remove.
7254
7255 2014-02-12 Tom Tromey <tromey@redhat.com>
7256
7257 * common/rsp-low.h (hexify): Don't declare.
7258 * common/rsp-low.c (hexify): Remove.
7259
7260 2014-02-12 Tom Tromey <tromey@redhat.com>
7261
7262 * common/rsp-low.c (hexify): Never take strlen of argument.
7263
7264 2014-02-12 Tom Tromey <tromey@redhat.com>
7265
7266 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7267 * remote.c (extended_remote_run, remote_rcmd)
7268 (remote_download_trace_state_variable, remote_save_trace_data)
7269 (remote_set_trace_notes): Update.
7270 * tracepoint.c (encode_source_string, tfile_write_status)
7271 (tfile_write_uploaded_tsv): Update.
7272
7273 2014-02-12 Tom Tromey <tromey@redhat.com>
7274
7275 * tracepoint.c: Include rsp-low.h.
7276 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7277 * remote.c: Include rsp-low.h.
7278 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7279 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7280 (remote_unescape_input): Move to common/rsp-low.c.
7281 * common/rsp-low.h: New file.
7282 * common/rsp-low.c: New file.
7283 * Makefile.in (SFILES): Add common/rsp-low.c.
7284 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7285 (COMMON_OBS): Add rsp-low.o.
7286 (rsp-low.o): New target.
7287
7288 2014-02-12 Tom Tromey <tromey@redhat.com>
7289
7290 * utils.h: Include print-utils.h.
7291 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7292 (int_string, core_addr_to_string, core_addr_to_string_nz)
7293 (hex_string, hex_string_custom): Don't declare.
7294 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7295 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7296 (hex_string_custom, int_string, core_addr_to_string)
7297 (core_addr_to_string_nz, host_address_to_string): Move to
7298 common/print-utils.c.
7299 * common/print-utils.h: New file.
7300 * common/print-utils.c: New file
7301 * Makefile.in (SFILES): Add common/print-utils.c.
7302 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7303 (COMMON_OBS): Add print-utils.o.
7304 (print-utils.o): New target.
7305
7306 2014-02-12 Tom Tromey <tromey@redhat.com>
7307
7308 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7309
7310 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7311
7312 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7313
7314 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7315
7316 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7317 if a PT_IO ptrace request returns sucessfully but indicates that 0
7318 bytes were transferred.
7319
7320 2014-02-12 Pedro Alves <palves@redhat.com>
7321 Kevin Buettner <kevinb@redhat.com>
7322
7323 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7324 TYPE_INSTANCE_FLAG_CODE_SPACE.
7325
7326 2014-02-12 Pedro Alves <palves@redhat.com>
7327
7328 * h8300-tdep.c (pseudo_from_raw_register)
7329 (raw_from_pseudo_register): New functions.
7330 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7331 them.
7332
7333 2014-02-12 Pedro Alves <palves@redhat.com>
7334
7335 * h8300-tdep.c (h8300_register_sim_regno): New function.
7336 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7337 gdbarch_register_sim_regno hook.
7338
7339 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7340
7341 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7342
7343 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7344
7345 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7346
7347 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7348
7349 * obsd-tdep.h (obsd_init_abi): New prototype.
7350 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7351 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7352 (obsd_init_abi): New functions.
7353 * i386obsd-tdep.c: Include "obsd-tdep.h".
7354 (i386obsd_init_abi): Call obsd_init_abi.
7355 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7356 (amd64obsd_init_abi): Call obsd_init_abi.
7357 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7358 obsd-tdep.c to gdb_target_obs.
7359
7360 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7361
7362 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7363 double float arguments to 16-byte in the argument slots.
7364
7365 2014-02-11 Doug Evans <xdje42@gmail.com>
7366
7367 * configure.ac: Don't crash if pkg-config is not found and guile
7368 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7369 in guile checks.
7370 * configure: Regenerate.
7371
7372 2014-02-11 Yao Qi <yao@codesourcery.com>
7373
7374 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7375 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7376 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7377 * gnu-nat.c (gnu_xfer_memory): Likewise.
7378 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7379 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7380 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7381 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7382
7383 2014-02-11 Yao Qi <yao@codesourcery.com>
7384
7385 * target.h (enum target_xfer_error): Rename to ...
7386 (enum target_xfer_status): ... it. New. All users updated.
7387 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7388 New.
7389 (TARGET_XFER_STATUS_ERROR_P): New macro.
7390 (target_xfer_error_to_string): Remove declaration.
7391 (target_xfer_status_to_string): Declare.
7392 (target_xfer_partial_ftype): Adjust it.
7393 (struct target_ops) <to_xfer_partial>: Return
7394 target_xfer_status. Add argument xfered_len. Update
7395 comments.
7396 * target.c (target_xfer_error_to_string): Rename to ...
7397 (target_xfer_status_to_string): ... it. New. All callers
7398 updated.
7399 (target_read_live_memory): Likewise. Call target_xfer_partial
7400 instead of target_read.
7401 (memory_xfer_live_readonly_partial): Return
7402 target_xfer_status. Add argument xfered_len.
7403 (raw_memory_xfer_partial): Likewise.
7404 (memory_xfer_partial_1): Likewise.
7405 (memory_xfer_partial): Likewise.
7406 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7407 properly. Update debug message.
7408 (default_xfer_partial, current_xfer_partial): Likewise.
7409 (target_write_partial): Likewise.
7410 (target_read_partial): Likewise. All callers updated.
7411 (read_whatever_is_readable): Likewise.
7412 (target_write_with_progress): Likewise.
7413 (target_read_alloc_1): Likewise.
7414
7415 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7416 * auxv.c (procfs_xfer_auxv): Likewise.
7417 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7418 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7419 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7420 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7421 * corefile.c (read_memory): Adjust.
7422 * corelow.c (core_xfer_partial): Likewise.
7423 * ctf.c (ctf_xfer_partial): Likewise.
7424 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7425 updated.
7426 (darwin_xfer_partial): Likewise.
7427 * exec.c (section_table_xfer_memory_partial): Likewise. All
7428 callers updated.
7429 (exec_xfer_partial): Likewise.
7430 * exec.h (section_table_xfer_memory_partial): Update
7431 declaration.
7432 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7433 negative.
7434 (gnu_xfer_partial): Likewise.
7435 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7436 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7437 (ia64_hpux_xfer_solib_got): Likewise.
7438 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7439 type of 'partial_len' to ULONGEST.
7440 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7441 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7442 (linux_nat_xfer_partial): Likewise.
7443 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7444 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7445 * monitor.c (monitor_xfer_memory): Likewise.
7446 (monitor_xfer_partial): Likewise.
7447 * procfs.c (procfs_xfer_partial): Likewise.
7448 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7449 * record-full.c (record_full_xfer_partial): Likewise.
7450 (record_full_core_xfer_partial): Likewise.
7451 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7452 (gdbsim_xfer_partial): Likewise.
7453 * remote.c (remote_write_bytes_aux): Likewise. All callers
7454 updated.
7455 (remote_write_bytes, remote_read_bytes): Likewise. All
7456 callers updated.
7457 (remote_flash_erase): Likewise. All callers updated.
7458 (remote_write_qxfer): Likewise. All callers updated.
7459 (remote_read_qxfer): Likewise. All callers updated.
7460 (remote_xfer_partial): Likewise.
7461 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7462 (rs6000_xfer_shared_libraries): Likewise.
7463 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7464 (sol_thread_xfer_partial): Likewise.
7465 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7466 (sparc_xfer_partial): Likewise.
7467 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7468 updated.
7469 (spu_xfer_partial): Likewise.
7470 * spu-multiarch.c (spu_xfer_partial): Likewise.
7471 * tracepoint.c (tfile_xfer_partial): Likewise.
7472 * windows-nat.c (windows_xfer_memory): Likewise.
7473 (windows_xfer_shared_libraries): Likewise.
7474 (windows_xfer_partial): Likewise.
7475 * valprint.c: Replace 'target_xfer_error' with
7476 'target_xfer_status' in comments.
7477
7478 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7479
7480 Checked in by Joel Brobecker <brobecker@adacore.com>.
7481 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7482
7483 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7484
7485 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7486 function parameters.
7487
7488 2014-02-10 Will Newton <will.newton@linaro.org>
7489
7490 * elfread.c (elf_rel_plt_read): Look for a .got section if
7491 looking up .got.plt fails.
7492 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7493 on address passed to elf_gnu_ifunc_record_cache.
7494 (elf_gnu_ifunc_resolve_addr): Likewise.
7495 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7496
7497 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7498
7499 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7500 (X_RETTURN): New macro.
7501 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7502
7503 * sparc64-tdep.c (sparc64_init_abi): Hook
7504 sparc_in_function_epilogue_p.
7505
7506 2014-02-10 Gary Benson <gbenson@redhat.com>
7507
7508 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7509 Rename name_matcher to symbol_matcher.
7510
7511 2014-02-10 Gary Benson <gbenson@redhat.com>
7512
7513 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7514 Use expand_symtabs_file_matcher_ftype and
7515 expand_symtabs_symbol_matcher_ftype.
7516
7517 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7518
7519 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7520 (struct ada_symbol_cache): New.
7521 (ada_free_symbol_cache): Forward declare.
7522 (struct ada_pspace_data): New.
7523 (ada_pspace_data_handle): New static global.
7524 (get_ada_pspace_data, ada_pspace_data_cleanup)
7525 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7526 (cache_space, cache): Delete, now folded inside struct
7527 ada_pspace_data.
7528 (ada_get_symbol_cache): New function.
7529 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7530 implementation.
7531 (_initialize_ada_language): Remove initialization of cache_space.
7532 Move call to observer_attach_inferior_exit up, grouping it
7533 with the other observer registrations inside this function.
7534 Rename command to be more general. Add call to
7535 register_program_space_data_with_cleanup.
7536
7537 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7538
7539 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7540 ada_new_objfile_observer.
7541 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7542 (_initialize_tasks): Update uses of ada_new_objfile_observer
7543 and ada_tasks_normal_stop_observer.
7544
7545 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7546
7547 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7548 returned by the 'Length attribute to integer.
7549
7550 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7551
7552 * ada-lang.c (_initialize_ada_language): Initialize
7553 cache_space obstack.
7554
7555 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7556
7557 * ada-lang.c (HASH_SIZE): New macro.
7558 (struct cache_entry): New type.
7559 (cache_space, cache): New static globals.
7560 (ada_clear_symbol_cache, find_entry): New functions.
7561 (lookup_cached_symbol, cache_symbol): Implement.
7562 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7563 (_initialize_ada_language): Attach ada_new_objfile_observer
7564 and ada_free_objfile_observer.
7565
7566 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7567
7568 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7569 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7570 struct block * parameter.
7571 (ada_lookup_symbol_list_worker): Constify local variable "block".
7572 Remove cast which is no longer necessary.
7573
7574 2014-02-10 Doug Evans <xdje42@gmail.com>
7575
7576 Add Guile as an extension language.
7577 * NEWS: Mention Guile scripting.
7578 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7579 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7580 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7581 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7582 (CLIBS): Add GUILE_LIBS.
7583 (install-guile): New rule.
7584 (guile.o): New rule.
7585 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7586 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7587 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7588 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7589 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7590 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7591 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7592 * configure.ac: New option --with-guile.
7593 * configure: Regenerate.
7594 * config.in: Regenerate.
7595 * auto-load.c: Remove #include "python/python.h". Add #include
7596 "gdb/section-scripts.h".
7597 (source_section_scripts): Handle Guile scripts.
7598 (_initialize_auto_load): Add name of Guile objfile script to
7599 scripts-directory help text.
7600 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7601 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7602 (struct breakpoint): New member scm_bp_object.
7603 * defs.h (enum command_control_type): New value guile_control.
7604 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7605 "extension.h".
7606 (show_user): Update comment.
7607 (_initialize_cli_cmds): Update help text for "show user". Update help
7608 text for max-user-call-depth.
7609 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7610 "extension.h".
7611 (multi_line_command_p): Add guile_control.
7612 (print_command_lines): Handle guile_control.
7613 (execute_control_command, recurse_read_control_structure): Ditto.
7614 (process_next_line): Recognize "guile" commands.
7615 * disasm.c (gdb_disassemble_info): Make non-static.
7616 * disasm.h: #include "dis-asm.h".
7617 (struct gdbarch): Add forward decl.
7618 (gdb_disassemble_info): Declare.
7619 * extension.c: #include "guile/guile.h".
7620 (extension_languages): Add guile.
7621 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7622 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7623 * gdbtypes.c (get_unsigned_type_max): New function.
7624 (get_signed_type_minmax): New function.
7625 * gdbtypes.h (get_unsigned_type_max): Declare.
7626 (get_signed_type_minmax): Declare.
7627 * guile/README: New file.
7628 * guile/guile-internal.h: New file.
7629 * guile/guile.c: New file.
7630 * guile/guile.h: New file.
7631 * guile/scm-arch.c: New file.
7632 * guile/scm-auto-load.c: New file.
7633 * guile/scm-block.c: New file.
7634 * guile/scm-breakpoint.c: New file.
7635 * guile/scm-disasm.c: New file.
7636 * guile/scm-exception.c: New file.
7637 * guile/scm-frame.c: New file.
7638 * guile/scm-gsmob.c: New file.
7639 * guile/scm-iterator.c: New file.
7640 * guile/scm-lazy-string.c: New file.
7641 * guile/scm-math.c: New file.
7642 * guile/scm-objfile.c: New file.
7643 * guile/scm-ports.c: New file.
7644 * guile/scm-pretty-print.c: New file.
7645 * guile/scm-safe-call.c: New file.
7646 * guile/scm-string.c: New file.
7647 * guile/scm-symbol.c: New file.
7648 * guile/scm-symtab.c: New file.
7649 * guile/scm-type.c: New file.
7650 * guile/scm-utils.c: New file.
7651 * guile/scm-value.c: New file.
7652 * guile/lib/gdb.scm: New file.
7653 * guile/lib/gdb/boot.scm: New file.
7654 * guile/lib/gdb/experimental.scm: New file.
7655 * guile/lib/gdb/init.scm: New file.
7656 * guile/lib/gdb/iterator.scm: New file.
7657 * guile/lib/gdb/printing.scm: New file.
7658 * guile/lib/gdb/types.scm: New file.
7659 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7660 (VPATH): Add $(GUILE_SRCDIR).
7661 (GUILE_DIR): New variable.
7662 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7663 (all): Add stamp-guile dependency.
7664 (stamp-guile): New rule.
7665 (clean-guile, install-guile, uninstall-guile): New rules.
7666 (install-only): Add install-guile dependency.
7667 (uninstall): Add uninstall-guile dependency.
7668 (clean): Add clean-guile dependency.
7669
7670 2014-02-09 Doug Evans <xdje42@gmail.com>
7671
7672 Revert this patch (which I approved, mea culpa).
7673
7674 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7675
7676 * Makefile.in (all-lib): Remove.
7677 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7678
7679 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7680
7681 Fix Python stack corruption.
7682 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7683 gdb_py_longest.
7684
7685 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7686
7687 * Makefile.in (all-lib): Remove.
7688 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7689
7690 2014-02-07 Doug Evans <dje@google.com>
7691
7692 * extension-priv.h (extension_language_script_ops): Add comment.
7693 (extension_language_ops): Add comment.
7694 (active_ext_lang_state): Fix typo in comment.
7695
7696 2014-02-07 Pedro Alves <palves@redhat.com>
7697
7698 PR breakpoints/16292
7699 * infrun.c (handle_signal_stop) <signal arrives while stepping
7700 over a breakpoint>: Switch back to the stepping thread.
7701
7702 2014-02-07 Yao Qi <yao@codesourcery.com>
7703
7704 * target.c (target_xfer_partial): Return zero if LEN is zero.
7705
7706 2014-02-07 Yao Qi <yao@codesourcery.com>
7707
7708 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7709 (ld_so_xfer_auxv): Likewise.
7710 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7711 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7712 * corelow.c (core_xfer_partial): Likewise.
7713 * ctf.c (ctf_xfer_partial): Likewise.
7714 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7715 (darwin_xfer_partial): Likewise.
7716 * exec.c (exec_xfer_partial): Likewise.
7717 * gnu-nat.c (gnu_xfer_partial): Likewise.
7718 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7719 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7720 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7721 * linux-nat.c (linux_xfer_siginfo): Likewise.
7722 (linux_proc_xfer_spu): Likewise.
7723 * procfs.c (procfs_xfer_partial): Likewise.
7724 * record-full.c (record_full_xfer_partial): Likewise.
7725 (record_full_core_xfer_partial): Likewise.
7726 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7727 * remote.c (remote_write_qxfer): Likewise.
7728 (remote_write_qxfer, remote_read_qxfer): Likewise.
7729 (remote_xfer_partial): Likewise.
7730 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7731 (rs6000_xfer_shared_libraries): Likewise.
7732 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7733 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7734 (spu_xfer_partial): Likewise.
7735 * target.c (memory_xfer_partial_1): Likewise.
7736 * tracepoint.c (tfile_xfer_partial): Likewise.
7737 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7738 (windows_xfer_partial): Likewise.
7739
7740 2014-02-07 Yao Qi <yao@codesourcery.com>
7741
7742 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7743 comments.
7744 (core_xfer_shared_libraries_aix): Likewise.
7745 * gdbarch.c, gdbarch.h: Regenerated.
7746 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7747 ULONGEST. Change 'len_avail' type to ULONGEST.
7748 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7749 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7750 declaration.
7751 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7752
7753 2014-02-07 Yao Qi <yao@codesourcery.com>
7754
7755 * corefile.c (memory_error): Get 'exception' from ERR and pass
7756 'exception' to throw_error.
7757
7758 2014-02-06 Doug Evans <xdje42@gmail.com>
7759
7760 * configure.ac (libpython checking): Remove all but python.o from
7761 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7762 * configure: Regenerate.
7763
7764 * Makefile.in (SFILES): Add extension.c.
7765 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7766 (COMMON_OBS): Add extension.o.
7767 * extension.h: New file.
7768 * extension-priv.h: New file.
7769 * extension.c: New file.
7770
7771 * python/python-internal.h: #include "extension.h".
7772 (gdbpy_auto_load_enabled): Declare.
7773 (gdbpy_apply_val_pretty_printer): Declare.
7774 (gdbpy_apply_frame_filter): Declare.
7775 (gdbpy_preserve_values): Declare.
7776 (gdbpy_breakpoint_cond_says_stop): Declare.
7777 (gdbpy_breakpoint_has_cond): Declare.
7778 (void source_python_script_for_objfile): Delete.
7779 * python/python.c: #include "extension-priv.h".
7780 Delete inclusion of "observer.h".
7781 (extension_language_python): Moved here and renamed from
7782 script_language_python in py-auto-load.c.
7783 Redefined to be of type extension_language_defn.
7784 (python_extension_script_ops): New global.
7785 (python_extension_ops): New global.
7786 (struct python_env): New member previous_active.
7787 (restore_python_env): Call restore_active_ext_lang.
7788 (ensure_python_env): Call set_active_ext_lang.
7789 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7790 New arg extlang.
7791 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7792 New arg extlang.
7793 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7794 New arg extlang.
7795 (gdbpy_eval_from_control_command): Renamed from
7796 eval_python_from_control_command, made static. New arg extlang.
7797 (gdbpy_source_script) Renamed from source_python_script, made static.
7798 New arg extlang.
7799 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7800 result to int. New arg extlang.
7801 (gdbpy_source_objfile_script): Renamed from
7802 source_python_script_for_objfile, made static. New arg extlang.
7803 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7804 static. New args extlang, extlang_printers. Change result type to
7805 "void".
7806 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7807 static. New arg extlang. Rename arg printers to extlang_printers
7808 and change type to ext_lang_type_printers *.
7809 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7810 static. Replace argument arg with extlang, extlang_printers.
7811 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7812 (!HAVE_PYTHON, source_python_script): Delete.
7813 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7814 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7815 (!HAVE_PYTHON, start_type_printers): Delete.
7816 (!HAVE_PYTHON, apply_type_printers): Delete.
7817 (!HAVE_PYTHON, free_type_printers): Delete.
7818 (_initialize_python): Delete call to observer_attach_before_prompt.
7819 (finalize_python): Set/restore active extension language.
7820 (gdbpy_finish_initialization) Renamed from
7821 finish_python_initialization, made static. New arg extlang.
7822 (gdbpy_initialized): New function.
7823 * python/python.h: #include "extension.h". Delete #include
7824 "value.h", "mi/mi-cmds.h".
7825 (extension_language_python): Declare.
7826 (GDBPY_AUTO_FILE_NAME): Delete.
7827 (enum py_bt_status): Moved to extension.h and renamed to
7828 ext_lang_bt_status.
7829 (enum frame_filter_flags): Moved to extension.h.
7830 (enum py_frame_args): Moved to extension.h and renamed to
7831 ext_lang_frame_args.
7832 (finish_python_initialization): Delete.
7833 (eval_python_from_control_command): Delete.
7834 (source_python_script): Delete.
7835 (apply_val_pretty_printer): Delete.
7836 (apply_frame_filter): Delete.
7837 (preserve_python_values): Delete.
7838 (gdbpy_script_language_defn): Delete.
7839 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7840 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7841
7842 * auto-load.c: #include "extension.h".
7843 (GDB_AUTO_FILE_NAME): Delete.
7844 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7845 (script_language_gdb): Delete, moved to extension.c and renamed to
7846 extension_language_gdb.
7847 (source_gdb_script_for_objfile): Delete.
7848 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7849 (loaded_script): Change type of language member to
7850 struct extension_language_defn *.
7851 (init_loaded_scripts_info): Initialize
7852 unsupported_script_warning_printed.
7853 (maybe_add_script): Make static. Change type of language arg to
7854 struct extension_language_defn *.
7855 (clear_section_scripts): Reset unsupported_script_warning_printed.
7856 (auto_load_objfile_script_1): Rewrite to use extension language API.
7857 (auto_load_objfile_script): Make public. Remove support-compiled-in
7858 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7859 (source_section_scripts): Rewrite to use extension language API.
7860 (load_auto_scripts_for_objfile): Rewrite to use
7861 auto_load_scripts_for_objfile.
7862 (collect_matching_scripts_data): Change type of language member to
7863 struct extension_language_defn *.
7864 (auto_load_info_scripts): Change type of language arg to
7865 struct extension_language_defn *.
7866 (unsupported_script_warning_print): New function.
7867 (script_not_found_warning_print): Make static.
7868 (_initialize_auto_load): Rewrite construction of scripts-directory
7869 help.
7870 * auto-load.h (struct objfile): Add forward decl.
7871 (struct script_language): Delete.
7872 (struct auto_load_pspace_info): Add forward decl.
7873 (struct extension_language_defn): Add forward decl.
7874 (maybe_add_script): Delete.
7875 (auto_load_objfile_script): Declare.
7876 (script_not_found_warning_print): Delete.
7877 (auto_load_info_scripts): Update prototype.
7878 (auto_load_gdb_scripts_enabled): Declare.
7879 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7880 auto_load_python_scripts_enabled and made public.
7881 (script_language_python): Delete, moved to python.c.
7882 (gdbpy_script_language_defn): Delete.
7883 (info_auto_load_python_scripts): Update to use
7884 extension_language_python.
7885
7886 * breakpoint.c (condition_command): Replace call to
7887 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7888 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7889 with call to breakpoint_ext_lang_cond_says_stop.
7890 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7891 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7892 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7893 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7894 New arg slang.
7895 (local_setattro): Print name of extension language with existing
7896 stop condition.
7897
7898 * valprint.c (val_print, value_print): Update to call
7899 apply_ext_lang_val_pretty_printer.
7900 * cp-valprint.c (cp_print_value): Update call to
7901 apply_ext_lang_val_pretty_printer.
7902 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7903 (gdbpy_apply_val_pretty_printer): Renamed from
7904 apply_val_pretty_printer. New arg extlang.
7905 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7906
7907 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7908 extension language API.
7909 * cli/cli-script.c (execute_control_command): Update to call
7910 eval_ext_lang_from_control_command.
7911
7912 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7913 enum ext_lang_bt_status values. Update call to
7914 apply_ext_lang_frame_filter.
7915 (mi_cmd_stack_list_locals): Ditto.
7916 (mi_cmd_stack_list_args): Ditto.
7917 (mi_cmd_stack_list_variables): Ditto.
7918 * mi/mi-main.c: Delete #include "python/python-internal.h".
7919 Add #include "extension.h".
7920 (mi_cmd_list_features): Replace reference to python internal variable
7921 gdb_python_initialized with call to ext_lang_initialized_p.
7922
7923 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7924 Update to use enum ext_lang_frame_args. Update to call
7925 apply_ext_lang_frame_filter.
7926 * python/py-framefilter.c (extract_sym): Update to use enum
7927 ext_lang_bt_status.
7928 (extract_value, py_print_type, py_print_value): Ditto.
7929 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7930 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7931 (py_print_frame): Ditto.
7932 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7933 New arg extlang. Update to use enum ext_lang_bt_status.
7934
7935 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7936 finish_python_initialization. Replace with call to
7937 finish_ext_lang_initialization.
7938
7939 * typeprint.c (do_free_global_table): Update to call
7940 free_ext_lang_type_printers.
7941 (create_global_typedef_table): Update to call
7942 start_ext_lang_type_printers.
7943 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7944 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7945 (type_print_options): Change type of global_printers from "void *"
7946 to "struct ext_lang_type_printers *".
7947
7948 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7949 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7950 (gdbpy_preserve_values): Renamed from preserve_python_values.
7951 New arg extlang.
7952 (!HAVE_PYTHON, preserve_python_values): Delete.
7953
7954 * utils.c (quit_flag): Delete, moved to extension.c.
7955 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7956 extension.c.
7957
7958 * eval.c: Delete #include "python/python.h".
7959 * main.c: Delete #include "python/python.h".
7960
7961 * defs.h: Update comment.
7962
7963 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7964
7965 GDB 7.7 released.
7966
7967 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7968
7969 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7970 defined.
7971
7972 2014-02-05 Yao Qi <yao@codesourcery.com>
7973
7974 * remote.c (remote_pass_signals): Remove local 'buf' and use
7975 rs->buf.
7976 (remote_program_signals): Likewise.
7977
7978 2014-02-05 Yao Qi <yao@codesourcery.com>
7979
7980 * ctf.c: Include "inferior.h" and "gdbthread.h".
7981 (CTF_PID): A new macro.
7982 (ctf_open): Call inferior_appeared and add_thread_silent.
7983 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7984 (ctf_thread_alive): New function.
7985 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7986
7987 2014-02-05 Yao Qi <yao@codesourcery.com>
7988
7989 Revert this patch:
7990
7991 2013-05-24 Yao Qi <yao@codesourcery.com>
7992
7993 * tracepoint.c (TFILE_PID): Remove.
7994 (tfile_open): Don't add thread and inferior.
7995 (tfile_close): Don't set 'inferior_ptid'. Don't call
7996 exit_inferior_silent.
7997 (tfile_thread_alive): Remove.
7998 (init_tfile_ops): Don't set field 'to_thread_alive' of
7999 tfile_ops.
8000
8001 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
8002
8003 * remote.c (remote_start_remote): Call remote_check_symbols even
8004 if only symbol-file (not file) has been given.
8005
8006 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8007
8008 * gdbarch.sh (skip_entrypoint): New callback.
8009 * gdbarch.c, gdbarch.h: Regenerate.
8010 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
8011 * infrun.c (fill_in_stop_func): Likewise.
8012 * ppc-linux-tdep.c: Include "elf/ppc64.h".
8013 (ppc_elfv2_elf_make_msymbol_special): New function.
8014 (ppc_elfv2_skip_entrypoint): Likewise.
8015 (ppc_linux_init_abi): Install them for ELFv2.
8016
8017 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8018
8019 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
8020 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
8021 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
8022 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
8023 structures returned in GPRs.
8024
8025 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8026
8027 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
8028 offset to the stack parameter list for the ELFv2 ABI.
8029
8030 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8031
8032 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
8033 set_gdbarch_convert_from_func_ptr_addr and
8034 set_gdbarch_elf_make_msymbol_special for ELFv1.
8035 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
8036 function descriptors on ELFv1.
8037 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
8038 set up r12 at function entry.
8039
8040 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8041
8042 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
8043 (struct gdbarch_tdep): New member elf_abi.
8044
8045 * rs6000-tdep.c: Include "elf/ppc64.h".
8046 (rs6000_gdbarch_init): Detect ELF ABI version.
8047
8048 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8049
8050 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
8051 within a register pair holding a DFP 128-bit value on little-endian.
8052 (ppc64_sysv_abi_return_value_base): Likewise.
8053 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
8054 (dfp_pseudo_register_write): Likewise.
8055
8056 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8057
8058 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
8059 offset on little-endian when passing _Decimal32.
8060 (ppc64_sysv_abi_return_value_base): Likewise for return values.
8061
8062 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8063
8064 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
8065 of the overlapped FP register within the VSX register on little-
8066 endian platforms.
8067 (efpr_pseudo_register_write): Likewise.
8068
8069 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8070
8071 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
8072 offset on little-endian when passing small structures.
8073
8074 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8075
8076 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
8077 (struct ppc64_sysv_argpos): New data structure.
8078 (ppc64_sysv_abi_push_float): Remove.
8079 (ppc64_sysv_abi_push_val): New function.
8080 (ppc64_sysv_abi_push_integer): Likewise.
8081 (ppc64_sysv_abi_push_freg): Likewise.
8082 (ppc64_sysv_abi_push_vreg): Likewise.
8083 (ppc64_sysv_abi_push_param): Likewise.
8084 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
8085 (ppc64_sysv_abi_return_value_base): New function.
8086 (ppc64_sysv_abi_return_value): Refactor to use it.
8087
8088 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
8089
8090 * NEWS: Document new target powerpc64le-*-linux*.
8091
8092 2014-02-04 Mark Kettenis <kettenis@gnu.org>
8093
8094 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
8095 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
8096 core dumps.
8097 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
8098 register set used in ELF core dumps. Add floating-point register set.
8099
8100 2014-02-03 Kevin Buettner <kevinb@redhat.com>
8101
8102 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
8103 dwarf2_to_gdb[] table using symbolic constants. Adjust
8104 penultimate entry from number representing the PC register
8105 to symbolic constant representing the MDR register. Add
8106 constant for the PC register to the end of the table.
8107
8108 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8109
8110 * bsd-kvm.c: Include <sys/param.h>
8111
8112 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8113
8114 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8115
8116 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8117
8118 * ada-lang.h (clear_ada_sym_cache): Delete.
8119
8120 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
8121
8122 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8123
8124 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8125
8126 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8127 the sigreturn register save area only if the syscall is
8128 sigreturn.
8129
8130 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8131
8132 * valops.c (value_slice): Minor reformatting.
8133
8134 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
8135
8136 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8137
8138 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8139
8140 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8141 New static globals.
8142 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8143 (ada_ignore_descriptive_types_p): New static global.
8144 (find_parallel_type_by_descriptive_type): Return immediately
8145 if ada_ignore_descriptive_types_p is set.
8146 (_initialize_ada_language): Register new commands "maintenance
8147 set ada", "maintenance show ada", "maintenance set ada
8148 ignore-descriptive-types" and "maintenance show ada
8149 ignore-descriptive-types".
8150 * NEWS: Add entry for new "maint ada set/show
8151 ignore-descriptive-types" commands.
8152
8153 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8154
8155 * record-btrace.c (record_btrace_close): Call btrace_teardown
8156 for all threads.
8157
8158 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8159
8160 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8161 "ui-out.h".
8162
8163 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8164
8165 * ada-typeprint (type_is_full_subrange_of_target_type):
8166 New function.
8167 (print_range): Add parameter bounds_prefered_p. If not set,
8168 try printing range types using the name of their base type.
8169 (print_range_type): Add parameter bounds_prefered_p.
8170 Use it in call to print_range.
8171 (print_array_type, ada_print_type): Update calls to print_range
8172 and print_range_type.
8173
8174 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8175
8176 * ada-typeprint.c (print_array_type, print_choices, print_range)
8177 (print_range_bound, print_dynamic_range_bound, print_range_type):
8178 Remove declaration.
8179
8180 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8181
8182 * ada-typeprint.c (print_range): Add missing empty line
8183 after local declaration.
8184
8185 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8186
8187 * ada-valprint.c (print_optional_low_bound): Get index_type's
8188 target type for as long as it is a TYPE_CODE_RANGE.
8189
8190 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8191
8192 * procfs.c (procfs_make_note_section): Remove assertion and
8193 associated comment.
8194
8195 2014-01-24 Yao Qi <yao@codesourcery.com>
8196
8197 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8198 * corelow.c (get_core_siginfo): Likewise.
8199
8200 2014-01-24 Yao Qi <yao@codesourcery.com>
8201
8202 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8203 ULONGEST. Don't check 'len' is negative.
8204 (remote_write_bytes): Change type of 'len' to ULONGEST.
8205
8206 2014-01-23 Tom Tromey <tromey@redhat.com>
8207
8208 PR python/16485:
8209 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8210 Handle exception from frame.block.
8211 (FrameVars.fetch_frame_locals): Likewise.
8212
8213 2014-01-23 Tom Tromey <tromey@redhat.com>
8214
8215 PR python/16487:
8216 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8217 on a NULL pointer. Move "goto error" to correct place.
8218
8219 2014-01-23 Tom Tromey <tromey@redhat.com>
8220
8221 PR python/16491:
8222 * python/py-framefilter.c (apply_frame_filter): Call
8223 ensure_python_env after computing gdbarch.
8224
8225 2014-01-23 Yao Qi <yao@codesourcery.com>
8226
8227 * target.c (raw_memory_xfer_partial): Change argument type
8228 from void * to gdb_byte *.
8229 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8230
8231 2014-01-22 Doug Evans <dje@google.com>
8232
8233 New gdbserver option --debug-format=timestamp.
8234 * NEWS: Mention it.
8235
8236 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8237
8238 * syscalls/s390x-linux.xml: New file.
8239 * syscalls/s390-linux.xml: New file.
8240 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8241 (XML_SYSCALL_FILENAME_S390X): Likewise.
8242 (op_svc): New enum value for SVC opcode.
8243 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8244 (s390_linux_get_syscall_number): New function.
8245 (s390_gdbarch_init): Register '*get_syscall_number' and the
8246 syscall xml file name.
8247 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8248 "s390-linux.xml" and "s390x-linux.xml".
8249 * NEWS: Announce new feature.
8250
8251 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8252
8253 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8254
8255 2014-01-22 Pedro Alves <palves@redhat.com>
8256
8257 * xtensa-config.c: Include defs.h.
8258
8259 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8260
8261 * common/common-utils.h: Add "ARI:" comment beside __func__
8262 reference.
8263
8264 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8265
8266 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8267 documentation a bit.
8268
8269 2014-01-21 Roland McGrath <mcgrathr@google.com>
8270
8271 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8272 * configure: Regenerate.
8273 * aclocal.m4: Regenerate.
8274 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8275 New substituted variables.
8276 (install-strip): New target.
8277 (INSTALL_SCRIPT): New substituted variable.
8278 (FLAGS_TO_PASS): Add it.
8279 (install-only): Use $(INSTALL_SCRIPT) rather than
8280 $(INSTALL_PROGRAM) for gcore.
8281
8282 2014-01-20 Tom Tromey <tromey@redhat.com>
8283
8284 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8285 together.
8286
8287 2014-01-20 Tom Tromey <tromey@redhat.com>
8288
8289 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8290 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8291 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8292 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8293 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8294 (struct cmd_list_element) <flags>: Remove.
8295 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8296 doc_allocated>: New fields.
8297 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8298 bitfields.
8299 * maint.c (maintenance_do_deprecate): Update.
8300 * top.c (execute_command): Update.
8301
8302 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8303
8304 * xtensa-linux-nat.c: Include asm/ptrace.h.
8305
8306 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8307
8308 * Makefile.in (SFILES): Add d-support.c.
8309 (COMMON_OBS): Add d-support.o.
8310 * d-lang.h (d_parse_symbol): Add comment, now defined in
8311 d-support.c.
8312 * d-lang.c (parse_call_convention)
8313 (parse_attributes, parse_function_types)
8314 (parse_function_args, parse_type, parse_identifier)
8315 (call_convention_p, d_parse_symbol): Move functions to ...
8316 * d-support.c: ... New file.
8317
8318 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8319
8320 * d-lang.h (d_parse_symbol): Add declaration.
8321 * d-lang.c (extract_identifiers)
8322 (extract_type_info): Remove functions.
8323 (parse_call_convention, parse_attributes)
8324 (parse_function_types, parse_function_args)
8325 (parse_type, parse_identifier, call_convention_p)
8326 (d_parse_symbol): New functions.
8327 (d_demangle): Use d_parse_symbol to demangle D symbols.
8328
8329 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8330
8331 * d-lang.h (struct builtin_d_type): New data type.
8332 (builtin_d_type): Add declaration.
8333 * d-lang.c (d_language_arch_info, build_d_types)
8334 (builtin_d_type): New functions.
8335 (enum d_primitive_types): New data type.
8336 (d_language_defn): Change c_language_arch_info to
8337 d_language_arch_info.
8338 (d_type_data): New static variable.
8339 (_initialize_d_language): Initialize d_type_data.
8340
8341 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8342
8343 * d-lang.h (d_main_name): Add declaration.
8344 * d-lang.c (d_main_name): New function.
8345 * symtab.c (find_main_name): Add call to d_main_name.
8346
8347 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8348
8349 * d-lang.c (d_language_defn): Change macro_expansion_c to
8350 macro_expansion_no.
8351
8352 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8353
8354 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8355
8356 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8357
8358 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8359 gdb_exception" declaration.
8360 * remote.c (getpkt_or_notif_sane): Likewise.
8361
8362 2014-01-17 Doug Evans <dje@google.com>
8363
8364 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8365 function, contents of dirnames_to_char_ptr_vec_append moved here.
8366 (delim_string_to_char_ptr_vec): New function.
8367 (dirnames_to_char_ptr_vec_append): Rewrite.
8368 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8369
8370 2014-01-17 Doug Evans <dje@google.com>
8371
8372 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8373 and moved here ...
8374 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8375 #include "common-utils.h".
8376 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8377 * common/vec.h (VEC_ASSERT_PASS): Update.
8378 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8379 (MACH_CHECK_ERROR): Update.
8380
8381 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8382
8383 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8384 comments.
8385 * gdbarch.h: Regenerate.
8386
8387 2014-01-16 Tom Tromey <tromey@redhat.com>
8388
8389 * value.c (struct value) <regnum>: Move earlier.
8390
8391 2014-01-16 Tom Tromey <tromey@redhat.com>
8392
8393 * remote.c (extended_remote_create_inferior): Rename from
8394 extended_remote_create_inferior_1. Add "ops" argument. Remove
8395 old implementation.
8396
8397 2014-01-16 Pedro Alves <palves@redhat.com>
8398
8399 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8400 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8401 the backchain.
8402
8403 2014-01-16 Doug Evans <dje@google.com>
8404
8405 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8406
8407 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8408
8409 * btrace.h (btrace_thread_flag): New.
8410 (struct btrace_thread_info) <flags>: New.
8411 * record-btrace.c (record_btrace_resume_thread)
8412 (record_btrace_find_thread_to_move, btrace_step_no_history)
8413 (btrace_step_stopped, record_btrace_start_replaying)
8414 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8415 (record_btrace_find_resume_thread): New.
8416 (record_btrace_resume, record_btrace_wait): Extend.
8417 (record_btrace_can_execute_reverse): New.
8418 (record_btrace_open): Fail in non-stop mode.
8419 (record_btrace_set_replay): Split into this, ...
8420 (record_btrace_stop_replaying): ... this, ...
8421 (record_btrace_clear_histories): ... and this.
8422 (init_record_btrace_ops): Init to_can_execute_reverse.
8423 * NEWS: Announce it.
8424
8425 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8426
8427 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8428 (forward_target_decr_pc_after_break)
8429 (target_decr_pc_after_break): New.
8430 * target.c (forward_target_decr_pc_after_break)
8431 (target_decr_pc_after_break): New.
8432 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8433 instead of gdbarch_decr_pc_after_break.
8434 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8435 instead of gdbarch_decr_pc_after_break.
8436 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8437 instead of gdbarch_decr_pc_after_break.
8438 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8439 instead of gdbarch_decr_pc_after_break.
8440 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8441 instead of gdbarch_decr_pc_after_break.
8442 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8443 instead of gdbarch_decr_pc_after_break.
8444
8445 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8446
8447 * btrace.c: Include regcache.h.
8448 (btrace_add_pc): New.
8449 (btrace_enable): Call btrace_add_pc.
8450 (btrace_is_empty): New.
8451 * btrace.h (btrace_is_empty): New.
8452 * record-btrace.c (require_btrace, record_btrace_info): Call
8453 btrace_is_empty.
8454
8455 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8456
8457 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8458 Support delta reads.
8459 (linux_disable_btrace): Change return type.
8460 * common/linux-btrace.h (linux_read_btrace): Change parameters
8461 and return type to allow error reporting. Update users.
8462 (linux_disable_btrace): Change return type. Update users.
8463 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8464 New.
8465 (btrace_error): New.
8466 (btrace_block) <begin>: Comment on BEGIN == 0.
8467 * btrace.c (btrace_compute_ftrace): Start from the end of
8468 the current trace.
8469 (btrace_stitch_trace, btrace_clear_history): New.
8470 (btrace_fetch): Read delta trace, return if replaying.
8471 (btrace_clear): Move clear history code to btrace_clear_history.
8472 (parse_xml_btrace): Throw an error if parsing failed.
8473 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8474 and return type to allow error reporting.
8475 (target_read_btrace): Change parameters and return type to allow
8476 error reporting.
8477 * target.c (target_read_btrace): Update.
8478 * remote.c (remote_read_btrace): Support delta reads. Pass
8479 errors on.
8480 * NEWS: Announce it.
8481
8482 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8483
8484 * record.h (record_btrace_frame_unwind)
8485 (record_btrace_tailcall_frame_unwind): New declarations.
8486 * dwarf2-frame: Include record.h
8487 (dwarf2_frame_cfa): Throw an error for btrace frames.
8488 * record-btrace.c: Include hashtab.h.
8489 (btrace_get_bfun_name): New.
8490 (btrace_call_history): Call btrace_get_bfun_name.
8491 (struct btrace_frame_cache): New.
8492 (bfcache): New.
8493 (bfcache_hash, bfcache_eq, bfcache_new): New.
8494 (btrace_get_frame_function): New.
8495 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8496 (record_btrace_frame_this_id): Compute own id.
8497 (record_btrace_frame_prev_register): Provide PC, throw_error
8498 for all other registers.
8499 (record_btrace_frame_sniffer): Detect btrace frames.
8500 (record_btrace_tailcall_frame_sniffer): New.
8501 (record_btrace_frame_dealloc_cache): New.
8502 (record_btrace_frame_unwind): Add new functions.
8503 (record_btrace_tailcall_frame_unwind): New.
8504 (_initialize_record_btrace): Allocate cache.
8505 * btrace.c (btrace_clear): Call reinit_frame_cache.
8506 * NEWS: Announce it.
8507
8508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8509
8510 * record-btrace.c (record_btrace_set_replay)
8511 (record_btrace_goto_begin, record_btrace_goto_end)
8512 (record_btrace_goto): New.
8513 (init_record_btrace_ops): Initialize them.
8514 * NEWS: Announce it.
8515
8516 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8517
8518 * record-btrace.c (record_btrace_find_new_threads)
8519 (record_btrace_thread_alive): New.
8520 (init_record_btrace_ops): Initialize to_find_new_threads and
8521 to_thread_alive.
8522
8523 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8524
8525 * record-btrace.c (record_btrace_resume): New.
8526 (record_btrace_wait): New.
8527 (init_record_btrace_ops): Initialize to_wait and to_resume.
8528
8529 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8530
8531 * record-btrace.c (record_btrace_xfer_partial)
8532 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8533 (record_btrace_allow_memory_access): New.
8534 (init_record_btrace_ops): Initialize new methods.
8535 * target.c (raw_memory_xfer_partial): Bail out if target reports
8536 that this memory is not available.
8537
8538 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8539
8540 * target.h (target_ops) <to_insert_breakpoint>
8541 <to_remove_breakpoint>: Add target_ops parameter.
8542 (forward_target_insert_breakpoint): New.
8543 (forward_target_remove_breakpoint): New.
8544 (memory_remove_breakpoint, memory_insert_breakpoint):
8545 Add target_ops parameter.
8546 * target.c (target_insert_breakpoint): Split into this and ...
8547 (forward_target_insert_breakpoint): ... this.
8548 (target_remove_breakpoint): Split into this and ...
8549 (forward_target_remove_breakpoint): ... this.
8550 (debug_to_insert_breakpoint): Add target_ops parameter.
8551 Call forward_target_insert_breakpoint.
8552 (debug_to_remove_breakpoint): Add target_ops parameter.
8553 Call forward_target_remove_breakpoint.
8554 (update_current_target): Do not inherit or default to_insert_breakpoint
8555 and to_remove_breakpoint.
8556 * corelow.c (ignore): Add target_ops parameter.
8557 * exec.c (ignore): Add target_ops parameter.
8558 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8559 Add target_ops parameter.
8560 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8561 Add target_ops parameter.
8562 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8563 Add target_ops parameter.
8564 * record-full.c (record_full_beneath_to_insert_breakpoint)
8565 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8566 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8567 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8568 (record_full_core_remove_breakpoint): Add target_ops parameter.
8569 Update users.
8570 (record_full_beneath_to_insert_breakpoint_ops)
8571 (record_full_beneath_to_remove_breakpoint_ops)
8572 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8573 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8574 tmp_to_remove_breakpoint_ops,
8575 record_full_beneath_to_insert_breakpoint_ops, and
8576 record_full_beneath_to_remove_breakpoint_ops.
8577 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8578 (m32r_remove_breakpoint): Add target_ops parameter.
8579 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8580 Add target_ops parameter.
8581 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8582 Add target_ops parameter.
8583
8584 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8585 Markus Metzger <markus.t.metzger@intel.com>
8586
8587 * record-btrace.c: Include frame-unwind.h.
8588 (record_btrace_frame_unwind_stop_reason)
8589 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8590 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8591 New.
8592 (init_record_btrace_ops): Install it.
8593
8594 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8595
8596 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8597 get_prev_frame_1.
8598
8599 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8600
8601 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8602 earlier.
8603
8604 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8605
8606 * frame-unwind.c: Include target.h.
8607 (frame_unwind_try_unwinder): New function with code from ...
8608 (frame_unwind_find_by_frame): ... here. New variable
8609 unwinder_from_target, call also target_get_unwinder)
8610 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8611 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8612 * target.h (struct target_ops): New fields to_get_unwinder and
8613 to_get_tailcall_unwinder.
8614 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8615
8616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8617
8618 * record-btrace.c (record_btrace_fetch_registers)
8619 (record_btrace_store_registers)
8620 (record_btrace_to_prepare_to_store): New.
8621 (init_record_btrace_ops): Add the above.
8622
8623 2014-01-16 Tom Tromey <tromey@redhat.com>
8624
8625 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8626 * target.h (struct target_ops) <to_prepare_to_store>: Add
8627 argument.
8628 (target_prepare_to_store): Add argument.
8629 * target.c (debug_to_prepare_to_store): Add argument.
8630 (update_current_target): Update.
8631 * remote.c (remote_prepare_to_store): Add 'self' argument.
8632 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8633 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8634 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8635 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8636 argument.
8637 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8638 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8639 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8640 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8641 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8642
8643 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8644
8645 * btrace.h (replay) <replay>: New.
8646 (btrace_is_replaying): New.
8647 * btrace.c (btrace_clear): Free replay iterator.
8648 (btrace_is_replaying): New.
8649 * record-btrace.c (record_btrace_is_replaying): New.
8650 (record_btrace_info): Print insn number if replaying.
8651 (record_btrace_insn_history): Start at replay position.
8652 (record_btrace_call_history): Start at replay position.
8653 (init_record_btrace_ops): Init to_record_is_replaying.
8654
8655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8656
8657 * record-btrace.c (record_btrace_insn_history_range): Include
8658 end.
8659 (record_btrace_insn_history_from): Adjust range.
8660 (record_btrace_call_history_range): Include
8661 end.
8662 (record_btrace_call_history_from): Adjust range.
8663 * NEWS: Announce changes.
8664
8665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8666
8667 * record.h (enum record_print_flag)
8668 <record_print_indent_calls>: New.
8669 * record.c (get_call_history_modifiers): Recognize /c modifier.
8670 (_initialize_record): Document /c modifier.
8671 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8672 Reorder fields. Optionally indent the function name. Update
8673 all users.
8674 * NEWS: Announce changes.
8675
8676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8677
8678 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8679
8680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8681
8682 * btrace.c (ftrace_new_function): Start counting at one.
8683 * record-btrace.c (record_btrace_info): Adjust number of calls
8684 and insns.
8685 * NEWS: Announce it.
8686
8687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8688
8689 * record-btrace.c (btrace_call_history_insn_range): Print
8690 insn range as [begin, end].
8691
8692 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8693
8694 * btrace.h (struct btrace_func_link): New.
8695 (enum btrace_function_flag): New.
8696 (struct btrace_inst): Rename to ...
8697 (struct btrace_insn): ...this. Update all users.
8698 (struct btrace_func) <ibegin, iend>: Remove.
8699 (struct btrace_func_link): New.
8700 (struct btrace_func): Rename to ...
8701 (struct btrace_function): ...this. Update all users.
8702 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8703 (number, level, flags>: New.
8704 (struct btrace_insn_iterator): Rename to ...
8705 (struct btrace_insn_history): ...this.
8706 Update all users.
8707 (struct btrace_insn_iterator, btrace_call_iterator): New.
8708 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8709 (struct btrace_target_info) <begin, end, level>
8710 <insn_history, call_history>: New.
8711 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8712 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8713 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8714 (btrace_call_number, btrace_call_begin, btrace_call_end)
8715 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8716 (btrace_find_function_by_number, btrace_set_insn_history)
8717 (btrace_set_call_history): New.
8718 * btrace.c (btrace_init_insn_iterator)
8719 (btrace_init_func_iterator, compute_itrace): Remove.
8720 (ftrace_print_function_name, ftrace_print_filename)
8721 (ftrace_skip_file): Change
8722 parameter to const.
8723 (ftrace_init_func): Remove.
8724 (ftrace_debug): Use new btrace_function fields.
8725 (ftrace_function_switched): Also consider gaining and
8726 losing symbol information).
8727 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8728 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8729 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8730 New.
8731 (ftrace_new_function): Move. Remove debug print.
8732 (ftrace_update_lines, ftrace_update_insns): New.
8733 (ftrace_update_function): Check for call, ret, and jump.
8734 (compute_ftrace): Renamed to ...
8735 (btrace_compute_ftrace): ...this. Rewritten to compute call
8736 stack.
8737 (btrace_fetch, btrace_clear): Updated.
8738 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8739 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8740 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8741 (btrace_call_number, btrace_call_begin, btrace_call_end)
8742 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8743 (btrace_find_function_by_number, btrace_set_insn_history)
8744 (btrace_set_call_history): New.
8745 * record-btrace.c (require_btrace): Use new btrace thread
8746 info fields.
8747 (record_btrace_info, btrace_insn_history)
8748 (record_btrace_insn_history, record_btrace_insn_history_range):
8749 Use new btrace thread info fields and new iterator.
8750 (btrace_func_history_src_line): Rename to ...
8751 (btrace_call_history_src_line): ...this. Use new btrace
8752 thread info fields.
8753 (btrace_func_history): Rename to ...
8754 (btrace_call_history): ...this. Use new btrace thread info
8755 fields and new iterator.
8756 (record_btrace_call_history, record_btrace_call_history_range):
8757 Use new btrace thread info fields and new iterator.
8758
8759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8760
8761 * frame.h (frame_id_build_unavailable_stack_special): New.
8762 * frame.c (frame_id_build_unavailable_stack_special): New.
8763
8764 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8765
8766 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8767 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8768 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8769 to gdbarch.
8770 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8771 (i386_insn_is_jump, i386_jmp_p): New.
8772 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8773 insn_is_jump to gdbarch.
8774 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8775 * gdbarch.h: Regenerated.
8776 * gdbarch.c: Regenerated.
8777 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8778 (default_insn_is_jump): New.
8779 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8780 (default_insn_is_jump): New.
8781
8782 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8783
8784 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8785 Change to ...
8786 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8787 (btrace_read_type) <btrace_read_new>: Change to ...
8788 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8789
8790 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8791
8792 * common/linux-btrace.c (linux_read_btrace): Free trace from
8793 previous iteration.
8794
8795 2014-01-15 Doug Evans <dje@google.com>
8796
8797 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8798 uint32_t.
8799
8800 2014-01-15 Tom Tromey <tromey@redhat.com>
8801
8802 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8803 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8804 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8805 (set_objfile_main_name): New function.
8806 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8807 language_of_main>: New fields.
8808 (set_objfile_main_name): Declare.
8809 * symtab.c (find_main_name): Loop over objfiles to find the main
8810 name and language.
8811 (set_main_name): Now static.
8812 (get_main_info): Add comment.
8813 * symtab.h (set_main_name): Don't declare.
8814
8815 2014-01-15 Tom Tromey <tromey@redhat.com>
8816
8817 * symtab.c (main_progspace_key): New global.
8818 (struct main_info): New.
8819 (name_of_main, language_of_main): Remove.
8820 (get_main_info, main_info_cleanup): New function.
8821 (set_main_name, main_name, main_language): Use get_main_info.
8822 (_initialize_symtab): Initialize main_progspace_key.
8823
8824 2014-01-15 Tom Tromey <tromey@redhat.com>
8825
8826 * dbxread.c (process_one_symbol): Update.
8827 * dwarf2read.c (read_partial_die): Update.
8828 * symfile.c (set_initial_language): Call main_language.
8829 * symtab.c (language_of_main): Now static.
8830 (set_main_name): Add 'lang' parameter.
8831 (find_main_name): Update.
8832 (main_language): New function.
8833 (symtab_observer_executable_changed): Update.
8834 * symtab.h (set_main_name): Update.
8835 (language_of_main): Remove.
8836 (main_language): Declare.
8837
8838 2014-01-15 Tom Tromey <tromey@redhat.com>
8839
8840 * symfile.c (init_entry_point_info): Use new "initialized" field.
8841 Update.
8842 * objfiles.h (struct entry_point) <initialized>: New field.
8843 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8844 (struct objfile) <ei>: ...here. Remove.
8845 * objfiles.c (entry_point_address_query): Update.
8846
8847 2014-01-15 Tom Tromey <tromey@redhat.com>
8848
8849 * objfiles.c (entry_point_address_query): Relocate entry point
8850 address.
8851 (objfile_relocate1): Do not relocate entry point address.
8852 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8853 <the_bfd_section_index>: New field.
8854 * symfile.c (init_entry_point_info): Find the entry point's
8855 section.
8856
8857 2014-01-15 Tom Tromey <tromey@redhat.com>
8858
8859 * solib-frv.c (enable_break): Use entry_point_address_query.
8860
8861 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8862
8863 * NEWS: Add note on improved process record-replay on
8864 arm*-linux* targets.
8865
8866 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8867
8868 * arm-tdep.c (enum arm_record_result): New enum.
8869 (arm_record_unsupported_insn): New function.
8870 (arm_record_coproc_data_proc): Removed.
8871 (thumb2_record_ld_st_multiple): New function.
8872 (thumb2_record_ld_st_dual_ex_tbb): New function.
8873 (thumb2_record_data_proc_sreg_mimm): New function.
8874 (thumb2_record_ps_dest_generic): New function.
8875 (thumb2_record_branch_misc_cntrl): New function.
8876 (thumb2_record_str_single_data): New function.
8877 (thumb2_record_ld_mem_hints): New function.
8878 (thumb2_record_ld_word): New function.
8879 (thumb2_record_lmul_lmla_div): New function.
8880 (thumb2_record_decode_insn_handler): New function.
8881 (decode_insn): Add thumb32 instruction handlers.
8882
8883 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8884
8885 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8886 (struct arm_linux_record_tdep): Declare.
8887 (arm_canonicalize_syscall): New function.
8888 (arm_all_but_pc_registers_record): New function.
8889 (arm_linux_syscall_record): New function.
8890 (arm_linux_init_abi): Add syscall recording constructs.
8891 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8892 decoding. (arm_record_coproc_data_proc): Update arm syscall
8893 decoding.
8894 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8895 <arm_syscall_record>: New field.
8896 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8897 gdb_target_obs.
8898
8899 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8900
8901 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8902 register for push instruction recording.
8903
8904 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8905
8906 * arm-tdep.c (thumb_record_misc): Update to correct logical
8907 error while recording ldm, ldmia and pop instructions.
8908
8909 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8910
8911 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8912
8913 2014-01-15 Pedro Alves <palves@redhat.com>
8914
8915 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8916 (go32_resume, go32_fetch_registers, store_register)
8917 (go32_store_registers, go32_prepare_to_store)
8918 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8919 (go32_create_inferior, go32_can_run, go32_terminal_init)
8920 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8921 declarations.
8922
8923 2014-01-15 Tom Tromey <tromey@redhat.com>
8924
8925 * target.h (async_callback_ftype): New typedef.
8926 (struct target_ops) <to_async>: Use it.
8927
8928 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8929
8930 * python/py-value.c (get_field_type): Remove unnecessary curly
8931 braces for single-statement if block.
8932
8933 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8934
8935 * python/py-type.c (convert_field): Add missing empty line
8936 after declarations.
8937
8938 2014-01-14 Doug Evans <dje@google.com>
8939
8940 * symfile.h (expand_symtabs_matching): Renamed from
8941 expand_partial_symbol_names. Update prototype.
8942 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8943 * symfile.c (expand_symtabs_matching): Renamed from
8944 expand_partial_symbol_names. New args file_matcher, kind.
8945 Rename arg fun to symbol_matcher.
8946 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8947 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8948 ada_expand_partial_symbol_name.
8949 (ada_make_symbol_completion_list): Update to call
8950 expand_symtabs_matching.
8951 (ada_add_global_exceptions): Call expand_symtabs_matching.
8952 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8953 call map_symbol_filenames.
8954 * symtab.c (sources_info): Update to call map_symbol_filenames.
8955 (search_symbols): Call expand_symtabs_matching.
8956 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8957 (default_make_symbol_completion_list_break_on): Update to call
8958 expand_symtabs_matching.
8959 (make_source_files_completion_list): Update to call
8960 map_symbol_filenames.
8961
8962 2014-01-14 Doug Evans <dje@google.com>
8963
8964 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8965 (expand_symtabs_symbol_matcher_ftype): New typedef.
8966 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8967 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8968 * symfile.c (expand_partial_symbol_names): Update to use
8969 expand_symtabs_symbol_matcher_ftype.
8970 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8971 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8972 Arg name_matcher renamed to symbol_matcher.
8973 * psymtab.c (recursively_search_psymtabs): Update to use
8974 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8975 sym_matcher.
8976 (expand_symtabs_matching_via_partial): Update to use
8977 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8978 Arg name_matcher renamed to symbol_matcher.
8979
8980 2014-01-14 Doug Evans <dje@google.com>
8981
8982 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8983 (map_partial_symbol_filenames): Ditto.
8984 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8985 (map_partial_symbol_filenames): Ditto.
8986 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8987 (map_partial_symbol_filenames): Ditto.
8988 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8989 (map_partial_symbol_filenames): Ditto.
8990 * symtab.c: Delete #include "psymtab.h".
8991
8992 2014-01-14 Pedro Alves <palves@redhat.com>
8993 Tom Tromey <tromey@redhat.com>
8994
8995 * infrun.c (use_displaced_stepping): Use find_record_target
8996 instead of RECORD_IS_USED.
8997 (adjust_pc_after_break): Use record_full_is_used instead of
8998 RECORD_IS_USED.
8999 * record-btrace.c (record_btrace_open): Call record_preopen
9000 instead of checking RECORD_IS_USED.
9001 * record-full.c (record_full_shortname)
9002 (record_full_core_shortname): New globals.
9003 (record_full_is_used): New function.
9004 (find_full_open): Call record_preopen instead of checking
9005 RECORD_IS_USED.
9006 (init_record_full_ops): Set the target's shortname to
9007 record_full_shortname.
9008 (init_record_full_core_ops): Set the target's shortname to
9009 record_full_core_shortname.
9010 * record-full.h (record_full_is_used): Declare.
9011 * record.c (find_record_target): Make extern.
9012 (record_preopen): New function.
9013 * record.h (RECORD_IS_USED): Delete macro.
9014 (find_record_target, record_preopen): Declare functions.
9015
9016 2014-01-14 Yao Qi <yao@codesourcery.com>
9017
9018 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
9019 'len''s type to ULONGEST.
9020 (core_xfer_shared_libraries_aix): Likewise.
9021 * gdbarch.c, gdbarch.h: Regenerated.
9022 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
9023 Change type of 'len' to ULONGEST.
9024 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9025 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
9026
9027 2014-01-14 Yao Qi <yao@codesourcery.com>
9028
9029 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
9030 type of 'len' to ULONGEST.
9031 (linux_xfer_osdata_processgroups): Likewise.
9032 (linux_xfer_osdata_threads): Likewise.
9033 (linux_xfer_osdata_fds): Likewise.
9034 (linux_xfer_osdata_isockets): Likewise.
9035 (linux_xfer_osdata_shm): Likewise.
9036 (linux_xfer_osdata_sem): Likewise.
9037 (linux_xfer_osdata_msg): Likewise.
9038 (linux_common_xfer_osdata): Likewise.
9039 (struct osdata_type) <getter>: Likewise.
9040 * common/linux-osdata.h (linux_common_xfer_osdata): Update
9041 the declaration.
9042
9043 2014-01-14 Yao Qi <yao@codesourcery.com>
9044
9045 * target.h (target_xfer_partial_ftype): Update.
9046 (struct target_ops) <to_xfer_partial>: Change 'len' type to
9047 ULONGEST.
9048 * aix-thread.c (aix_thread_xfer_partial): Change type of
9049 argument 'len' to ULONGEST.
9050 * auxv.c (procfs_xfer_auxv): Likewise.
9051 (ld_so_xfer_auxv): Likewise.
9052 (memory_xfer_auxv): Likewise.
9053 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9054 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9055 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
9056 * corelow.c (core_xfer_partial): Likewise.
9057 * ctf.c (ctf_xfer_partial): Likewise.
9058 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
9059 '%u'.
9060 (darwin_read_dyld_info): Likewise.
9061 (darwin_xfer_partial): Likewise.
9062 * exec.c (section_table_xfer_memory_partial): Likewise.
9063 (exec_xfer_partial): Likewise.
9064 * exec.h (section_table_xfer_memory_partial): Update
9065 declaration.
9066 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
9067 instead of plongest.
9068 (gnu_xfer_partial): Likewise.
9069 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
9070 (ia64_hpux_xfer_solib_got): Likewise.
9071 (ia64_hpux_xfer_partial): Likewise.
9072 * ia64-linux-nat.c (ia64_linux_xfer_partial):
9073 * inf-ptrace.c (inf_ptrace_xfer_partial):
9074 * inf-ttrace.c (inf_ttrace_xfer_partial):
9075 * linux-nat.c (linux_xfer_siginfo): Likewise.
9076 (linux_nat_xfer_partial): Likewise.
9077 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
9078 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
9079 * monitor.c (monitor_xfer_memory): Likewise.
9080 (monitor_xfer_partial): Likewise.
9081 * procfs.c (procfs_xfer_partial): Likewise.
9082 * record-full.c (record_full_xfer_partial): Likewise.
9083 (record_full_core_xfer_partial): Likewise.
9084 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
9085 instead of plongest.
9086 (gdbsim_xfer_partial): Likewise.
9087 * remote.c (remote_xfer_partial): Likewise.
9088 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9089 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9090 declaration.
9091 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9092 (rs6000_xfer_shared_libraries): Likewise.
9093 * sol-thread.c (sol_thread_xfer_partial): Likewise.
9094 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9095 (sparc_xfer_partial): Likewise.
9096 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9097 (spu_xfer_partial): Likewise.
9098 * spu-multiarch.c (spu_xfer_partial): Likewise.
9099 * target.c (target_read_live_memory): Likewise.
9100 (memory_xfer_live_readonly_partial): Likewise.
9101 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
9102 (target_xfer_partial, default_xfer_partial): Likewise.
9103 (current_xfer_partial): Likewise.
9104 * tracepoint.c (tfile_xfer_partial): Likewise.
9105 * windows-nat.c (windows_xfer_memory): Likewise. Call
9106 pulongest instead of plongest.
9107 (windows_xfer_partial): Likewise.
9108 (windows_xfer_shared_libraries): Likewise.
9109
9110 2014-01-14 Yao Qi <yao@codesourcery.com>
9111
9112 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9113 target_xfer_partial_ftype.
9114
9115 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9116
9117 PR python/15464
9118 PR python/16113
9119 * valops.c (value_struct_elt_bitpos): New function
9120 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9121 object to 'None' if the field name is an empty string ("").
9122 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9123 attribute to look for a field when 'name' is 'None'.
9124 (get_field_type): New function
9125
9126 2014-01-13 Doug Evans <dje@google.com>
9127
9128 PR symtab/16426
9129 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9130 (try_open_dwop_file): Ditto.
9131 * gdb_bfd.c: #include "vec.h".
9132 (bfdp): New typedef.
9133 (struct gdb_bfd_data): New member included_bfds.
9134 (gdb_bfd_unref): Unref all included bfds.
9135 (gdb_bfd_record_inclusion): New function.
9136 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9137
9138 2014-01-13 Tom Tromey <tromey@redhat.com>
9139
9140 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9141
9142 2014-01-13 Tom Tromey <tromey@redhat.com>
9143
9144 * defs.h (use_windows): Remove.
9145 * gdb.c (main): Update.
9146 * main.c (captured_main, gdb_main): Update.
9147 * main.h (struct captured_main_args) <use_windows>: Remove.
9148 * top.c (use_windows): Remove.
9149
9150 2014-01-13 Tom Tromey <tromey@redhat.com>
9151
9152 * defs.h (deprecated_flush_hook): Remove.
9153
9154 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9155
9156 PR threads/16216
9157 * linux-thread-db.c (try_thread_db_load): Add parameter
9158 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9159 (try_thread_db_load_from_pdir_1): Move it there from here.
9160 (try_thread_db_load_from_sdir): Update caller.
9161 (try_thread_db_load_from_dir): Move it there from here.
9162
9163 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9164
9165 * regformats/regdat.sh: Always rewrite the register file.
9166
9167 2014-01-13 Pedro Alves <palves@redhat.com>
9168
9169 * Makefile.in (CHECK_HEADERS): New variable.
9170 (check-headers:): New rule.
9171
9172 2014-01-13 Tom Tromey <tromey@redhat.com>
9173
9174 * cli/cli-setshow.c (do_set_command): Update.
9175 * defs.h (deprecated_set_hook): Remove.
9176 * top.c (deprecated_set_hook): Remove.
9177
9178 2014-01-13 Pedro Alves <palves@redhat.com>
9179
9180 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9181 the tracepoint if the PC is a pseudo-register.
9182
9183 2014-01-13 Tom Tromey <tromey@redhat.com>
9184
9185 * defs.h (XCALLOC): Remove.
9186 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9187 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9188 * dwarf2loc.c (allocate_piece_closure): Likewise.
9189 * elfread.c (elf_symfile_segments): Likewise.
9190 (elf_symfile_segments): Likewise.
9191 * gdbtypes.c (copy_type_recursive): Likewise.
9192 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9193 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9194 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9195 XCALLOC.
9196 * mt-tdep.c (mt_gdbarch_init): Likewise.
9197 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9198 XCALLOC.
9199 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9200 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9201 * registry.c (registry_alloc_data): Likewise.
9202 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9203 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9204 * serial.c (serial_fdopen_ops): Likewise.
9205 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9206 XCALLOC.
9207 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9208 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9209 not XCALLOC.
9210
9211 2014-01-13 Tom Tromey <tromey@redhat.com>
9212
9213 * defs.h (XMALLOC): Remove.
9214 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9215 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9216 * cli-out.c (struct ui_out *): Likewise.
9217 * cli/cli-dump.c (add_dump_command): Likewise.
9218 (add_dump_command): Likewise.
9219 * complaints.c (get_complaints): Likewise.
9220 (find_complaint): Likewise.
9221 * dwarf2-frame.c (execute_cfa_program): Likewise.
9222 * dwarf2read.c (abbrev_table_read_table): Likewise.
9223 * gdbarch.sh: Likewise.
9224 * gdbarch.c: Rebuild.
9225 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9226 * interps.c (interp_new): Likewise.
9227 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9228 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9229 * mi/mi-console.c (mi_console_file_new): Likewise.
9230 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9231 * mi/mi-out.c (mi_out_new): Likewise.
9232 * mi/mi-parse.c (mi_parse): Likewise.
9233 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9234 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9235 * observer.c (xalloc_observer_list_node): Likewise.
9236 * regcache.c (regcache_xmalloc_1): Likewise.
9237 * reggroups.c (reggroup_new): Likewise.
9238 (_initialize_reggroup): Likewise.
9239 * registry.c (register_data_with_cleanup): Likewise.
9240 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9241 * ser-base.c (serial_ttystate): Likewise.
9242 * ser-mingw.c (make_pipe_state): Likewise.
9243 * ser-pipe.c (pipe_open): Likewise.
9244 * serial.c (serial_open): Likewise.
9245 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9246 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9247 (tui_alloc_win_info): Likewise.
9248 (tui_add_content_elements): Likewise.
9249 * tui/tui-file.c (tui_file_new): Likewise.
9250 * tui/tui-out.c (tui_out_new): Likewise.
9251 * ui-file.c (mem_file_new): Likewise.
9252 * ui-out.c (push_level): Likewise.
9253 (make_cleanup_ui_out_end): Likewise.
9254 (append_header_to_list): Likewise.
9255 (ui_out_new): Likewise.
9256 * user-regs.c (user_reg_add_builtin): Likewise.
9257
9258 2014-01-13 Tom Tromey <tromey@redhat.com>
9259
9260 * defs.h (XZALLOC): Remove.
9261 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9262 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9263 (get_ada_tasks_inferior_data): Likewise.
9264 * auto-load.c (get_auto_load_pspace_data): Likewise.
9265 * auxv.c (get_auxv_inferior_data): Likewise.
9266 * bfd-target.c (target_bfd_reopen): Likewise.
9267 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9268 (deprecated_insert_raw_breakpoint): Likewise.
9269 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9270 * corelow.c (core_open): Likewise.
9271 * darwin-nat.c (darwin_check_new_threads): Likewise.
9272 (darwin_attach_pid): Likewise.
9273 * dummy-frame.c (dummy_frame_push): Likewise.
9274 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9275 * dwarf2loc.c (allocate_piece_closure): Likewise.
9276 * elfread.c (elf_symfile_segments): Likewise.
9277 * eval.c (ptrmath_type_p): Likewise.
9278 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9279 * gdbtypes.c (alloc_type_arch): Likewise.
9280 (alloc_type_instance): Likewise.
9281 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9282 * inf-child.c (inf_child_can_use_agent): Likewise.
9283 * inflow.c (get_inflow_inferior_data): Likewise.
9284 * infrun.c (save_infcall_suspend_state): Likewise.
9285 * jit.c (jit_reader_load): Likewise.
9286 (get_jit_objfile_data): Likewise.
9287 (get_jit_program_space_data): Likewise.
9288 (jit_object_open_impl): Likewise.
9289 (jit_symtab_open_impl): Likewise.
9290 (jit_block_open_impl): Likewise.
9291 (jit_frame_sniffer): Likewise.
9292 * linux-fork.c (add_fork): Likewise.
9293 * maint.c (make_command_stats_cleanup): Likewise.
9294 * objfiles.c (get_objfile_pspace_data): Likewise.
9295 * opencl-lang.c (struct lval_closure): Likewise.
9296 * osdata.c (osdata_start_osdata): Likewise.
9297 * progspace.c (new_address_space): Likewise.
9298 (add_program_space): Likewise.
9299 * remote-sim.c (get_sim_inferior_data): Likewise.
9300 * sh-tdep.c (sh_gdbarch_init): Likewise.
9301 * skip.c (Ignore): Likewise.
9302 (skip_delete_command): Likewise.
9303 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9304 (library_list_start_library): Likewise.
9305 (solib_aix_current_sos): Likewise.
9306 * solib-darwin.c (get_darwin_info): Likewise.
9307 (darwin_current_sos): Likewise.
9308 * solib-dsbt.c (get_dsbt_info): Likewise.
9309 * solib-ia64-hpux.c (new_so_list): Likewise.
9310 (ia64_hpux_get_solib_linkage_addr): Likewise.
9311 * solib-spu.c (append_ocl_sos): Likewise.
9312 (spu_current_sos): Likewise.
9313 * solib-svr4.c (get_svr4_info): Likewise.
9314 (svr4_keep_data_in_core): Likewise.
9315 (library_list_start_library): Likewise.
9316 (svr4_default_sos): Likewise.
9317 (svr4_read_so_list): Likewise.
9318 * solib-target.c (library_list_start_library): Likewise.
9319 (solib_target_current_sos): Likewise.
9320 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9321 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9322 * symfile.c (default_symfile_segments): Likewise.
9323 * target-descriptions.c (tdesc_data_init): Likewise.
9324 (tdesc_create_reg): Likewise.
9325 (struct tdesc_type *): Likewise.
9326 (tdesc_create_vector): Likewise.
9327 (tdesc_set_struct_size): Likewise.
9328 (struct tdesc_type *): Likewise.
9329 (tdesc_free_feature): Likewise.
9330 (tdesc_create_feature): Likewise.
9331 * windows-nat.c (windows_add_thread): Likewise.
9332 (windows_make_so): Likewise.
9333 * xml-support.c (gdb_xml_body_text): Likewise.
9334 (gdb_xml_create_parser_and_cleanup): Likewise.
9335 (xml_process_xincludes): Likewise.
9336 * xml-syscall.c (allocate_syscalls_info): Likewise.
9337 (syscall_create_syscall_desc): Likewise.
9338
9339 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9340
9341 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9342 function, with code from i386_stap_parse_special_token.
9343 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9344 (i386_stap_parse_special_token): Move code to the two functions
9345 above; simplify it.
9346
9347 2014-01-09 Pedro Alves <palves@redhat.com>
9348 Hui Zhu <hui@codesourcery.com>
9349
9350 PR gdb/16101
9351 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9352 bp_err_string. Don't mark the location shlib_disabled if the
9353 error thrown wasn't a generic or memory error. Catch errors
9354 thrown while inserting breakpoints in overlayed code. Output
9355 error message of software breakpoints.
9356 * remote.c (remote_insert_breakpoint): If this breakpoint has
9357 target-side commands but this stub doesn't support Z0 packets,
9358 throw NOT_SUPPORTED_ERROR error.
9359 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9360 * target.h (target_insert_breakpoint): Extend comment.
9361 (target_insert_hw_breakpoint): Add comment.
9362
9363 2014-01-08 Pedro Alves <palves@redhat.com>
9364
9365 * remote.c (remote_add_thread): Add threads silently if starting
9366 up.
9367 (remote_notice_new_inferior): If in all-stop, and starting up,
9368 don't call notice_new_inferior.
9369 (get_current_thread): New function, factored out from ...
9370 (add_current_inferior_and_thread): ... this. Adjust.
9371 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9372 found any thread, then select the remote's current thread as GDB's
9373 current thread too.
9374
9375 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9376
9377 * NEWS: Create a new section for the next release branch.
9378 Rename the section of the current branch, now that it has
9379 been cut.
9380
9381 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9382
9383 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9384 * version.in: Bump version to 7.7.50.DATE-cvs.
9385
9386 2014-01-08 Yao Qi <yao@codesourcery.com>
9387
9388 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9389 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9390 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9391
9392 2014-01-08 Yao Qi <yao@codesourcery.com>
9393
9394 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9395 return value of bfd_get_filename to symbol_file_add_from_bfd.
9396
9397 2014-01-08 Pierre Muller <muller@sourceware.org>
9398
9399 Fix PR16201.
9400 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9401 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9402 to prim_record_mininal_symbol_and_info.
9403 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9404 in call to prim_record_minimal_symbol_and_info.
9405 (read_pe_exported_syms): Set index field of section_data.
9406
9407 2014-01-07 Andrew Pinski <apinski@cavium.com>
9408
9409 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9410 * features/aarch64.c: Regenerate.
9411
9412 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9413
9414 * target.c (return_null): Define.
9415 (update_current_target): Use it instead of return_zero for
9416 functions that return a pointer.
9417
9418 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9419
9420 * source.c (add_path): Fix check for duplicated paths in the previously
9421 included paths.
9422
9423 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9424
9425 * ada-lang.c: Remove duplicated include statements.
9426 * alphabsd-nat.c: Ditto.
9427 * amd64-darwin-tdep.c: Ditto.
9428 * amd64fbsd-nat.c: Ditto.
9429 * auto-load.c: Ditto.
9430 * ax-gdb.c: Ditto.
9431 * breakpoint.c: Ditto.
9432 * dbxread.c: Ditto.
9433 * fork-child.c: Ditto.
9434 * gdb_usleep.c: Ditto.
9435 * i386-darwin-tdep.c: Ditto.
9436 * i386fbsd-nat.c: Ditto.
9437 * infcmd.c: Ditto.
9438 * inferior.c: Ditto.
9439 * jv-lang.c: Ditto.
9440 * linux-nat.c: Ditto.
9441 * linux-tdep.c: Ditto.
9442 * m68kbsd-nat.c: Ditto.
9443 * m68klinux-nat.c: Ditto.
9444 * microblaze-tdep.c: Ditto.
9445 * mips-linux-tdep.c: Ditto.
9446 * mn10300-tdep.c: Ditto.
9447 * nto-tdep.c: Ditto.
9448 * opencl-lang.c: Ditto.
9449 * osdata.c: Ditto.
9450 * printcmd.c: Ditto.
9451 * regcache.c: Ditto.
9452 * remote-m32r-sdi.c: Ditto.
9453 * remote.c: Ditto.
9454 * symfile.c: Ditto.
9455 * symtab.c: Ditto.
9456 * tilegx-linux-nat.c: Ditto.
9457 * tilegx-tdep.c: Ditto.
9458 * tracepoint.c: Ditto.
9459 * valops.c: Ditto.
9460 * vaxbsd-nat.c: Ditto.
9461 * windows-nat.c: Ditto.
9462 * xtensa-tdep.c: Ditto.
9463
9464 2014-01-07 Yao Qi <yao@codesourcery.com>
9465
9466 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9467
9468 2014-01-07 Yao Qi <yao@codesourcery.com>
9469 Joel Brobecker <brobecker@adacore.com>
9470
9471 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9472 (pdc_write_regs): Likewise.
9473 (fetch_regs_kernel_thread): Likewise.
9474 (store_regs_kernel_thread): Likewise.
9475
9476 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9477
9478 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9479 tagged type objects to their actual type.
9480
9481 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9482
9483 * ada-valprint.c (print_field_values): Add "language" parameter.
9484 Update calls to print_field_values and print_variant_part.
9485 Pass new parameter "language" in call to val_print instead
9486 of "current_language". Replace call to ada_val_print by call
9487 to val_print.
9488 (print_variant_part): Add "language" parameter.
9489 (ada_val_print_struct_union): Update call to print_field_values.
9490
9491 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9492
9493 * ada-valprint.c (ui_memcpy): Delete.
9494 (ada_print_floating): Update documentation. Add empty line
9495 between between function documentation and implementation.
9496 Delete variable "buffer". Use ui_file_xstrdup in place of
9497 ui_file_put. Minor adjustments following this change.
9498
9499 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9500
9501 * ada-valprint.c (ada_val_print_string): New function,
9502 extracted from ada_val_print_array.
9503 (ada_val_print_array): Replace extracted code by call
9504 to ada_val_print_string followed by a return. Move
9505 "else" branch to the function's top block.
9506
9507 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9508
9509 * ada-valprint.c (ada_val_print_array): Move implementation
9510 down. Rename parameter "offset" and "val" into "offset_aligned"
9511 and "original_value" respectively. Add parameter "offset".
9512
9513 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9514
9515 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9516 re-organizing the code. Change the "???" message printed
9517 when target type is a TYPE_CODE_UNDEF into
9518 "<ref to undefined type>".
9519
9520 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9521
9522 * ada-valprint.c (print_record): Delete, implementation inlined...
9523 (ada_val_print_struct_union): ... here. Remove call to
9524 ada_check_typedef in inlined implementation.
9525
9526 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9527
9528 * ada-valprint.c (ada_val_print_gnat_array): New function,
9529 extracted from ada_val_print_1;
9530 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9531 (ada_val_print_flt, ada_val_print_struct_union)
9532 (ada_val_print_ref): Likewise.
9533 (ada_val_print_1): Delete variables i and elttype.
9534 Replace extracted-out code by call to corresponding
9535 new functions.
9536
9537 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9538
9539 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9540
9541 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9542
9543 * ada-valprint.c (ada_val_print_1): Replace calls to
9544 ada_val_print_1 by calls to val_print.
9545
9546 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9547
9548 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9549 Update calls to self accordingly. Replace calls to c_val_print
9550 by calls to val_print.
9551
9552 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9553
9554 * ada-valprint.c (print_record): Delete declaration.
9555 (adjust_type_signedness, ada_val_print_1): Likewise.
9556 (ada_val_print): Move function implementation down.
9557 (print_variant_part, print_field_values, print_record):
9558 Move function implementation up.
9559
9560 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9561
9562 * python/py-type.c (typy_get_name): New function.
9563 (type_object_getset): Add entry for attribute "name".
9564 * NEWS: Add entry mentioning this new attribute.
9565
9566 2014-01-07 Yao Qi <yao@codesourcery.com>
9567
9568 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9569 statement.
9570
9571 2014-01-07 Yao Qi <yao@codesourcery.com>
9572
9573 * gnu-nat.c (info_port_rights): Add qualifier const to
9574 argument args.
9575
9576 2014-01-07 Yao Qi <yao@codesourcery.com>
9577
9578 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9579
9580 2014-01-07 Yao Qi <yao@codesourcery.com>
9581
9582 * gnu-nat.c (make_inf) Update declaration.
9583 (make_inf): Make it static.
9584 (inf_set_traced): Likewise.
9585 (inf_port_to_thread, inf_task_died_status): Likewise.
9586
9587 2014-01-07 Yao Qi <yao@codesourcery.com>
9588
9589 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9590
9591 2014-01-07 Yao Qi <yao@codesourcery.com>
9592
9593 * gnu-nat.c (_initialize_gnu_nat): Declare.
9594
9595 2014-01-07 Yao Qi <yao@codesourcery.com>
9596
9597 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9598 'enum bfd_endian'.
9599 (struct gdbarch_info) <byte_order>: Change type to
9600 'enum bfd_endian'.
9601 <byte_order_for_code>: Likewise.
9602 * gdbarch.c, gdbarch.h: Regenerated.
9603
9604 2014-01-06 Sasha Smundak <asmundak@google.com>
9605
9606 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9607
9608 2014-01-06 Tom Tromey <tromey@redhat.com>
9609
9610 * doublest.c (convert_doublest_to_floatformat): Use const, not
9611 CONST.
9612 * somread.c (som_symtab_read): Likewise.
9613
9614 2014-01-07 Hui Zhu <hui@codesourcery.com>
9615
9616 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9617 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9618 (gdb_bfd_fopen): Ditto.
9619 (gdb_bfd_openr): Ditto.
9620 (gdb_bfd_openw): Ditto.
9621 (gdb_bfd_openr_iovec): Ditto.
9622 (gdb_bfd_fdopenr): Ditto.
9623 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9624 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9625 with xstrdup.
9626 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9627 with xstrdup.
9628 * symfile-mem.c (symbol_file_add_from_memory): Removed
9629 gdb_bfd_stash_filename.
9630
9631 2014-01-03 Doug Evans <dje@google.com>
9632
9633 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9634 output.
9635
9636 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9637
9638 Update year range in copyright notice of all files.
9639
9640 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9641
9642 * top.c (print_gdb_version): Set copyright year to 2014.
9643
9644 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9645
9646 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9647
9648 For older changes see ChangeLog-2013.
9649 \f
9650 Local Variables:
9651 mode: change-log
9652 left-margin: 8
9653 fill-column: 74
9654 version-control: never
9655 coding: utf-8
9656 End:
This page took 0.353507 seconds and 5 git commands to generate.