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