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