1 2014-09-19 Yao Qi <yao@codesourcery.com>
3 * dwarf2read.c (dwarf_decode_lines): Update declaration.
4 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
5 comments. Callers update.
6 (dwarf_decode_lines): Likewise.
7 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
8 comments. Skip the line table if 'lowpc' is greater than
10 dwarf2_per_objfile->has_section_at_zero.
12 2014-09-18 Doug Evans <dje@google.com>
14 * NEWS: Mention new "producer" attribute of gdb.Symtab.
15 * python/py-symtab.c (stpy_get_producer): New function.
16 (symtab_object_getset): Add "producer" attribute.
18 2014-09-17 Ulrich Weigand <uweigand@de.ibm.com>
21 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
22 (do_captured_read_memory_integer): Remove.
23 (safe_read_memory_integer): Use target_read_memory directly instead
24 of catching errors in do_captured_read_memory_integer.
26 2014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
28 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
31 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
33 * objc-lang.c (find_implementation_from_class): Remove dead code.
35 2014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
38 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
39 "fprintf_unfiltered (gdb_stdlog...)".
41 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
44 * breakpoint.h (struct watchpoint): New fields val_bitpos and
46 * breakpoint.c (watch_command_1): Use these fields to retain
48 (extract_bitfield_from_watchpoint_value): New function.
49 (watchpoint_check): Use it.
50 (update_watchpoint): Use it. Optimize the address and length of a
51 HW watchpoint pointing to a bitfield.
52 * value.h (unpack_value_bitfield): New prototype.
53 * value.c (unpack_value_bitfield): Make extern.
55 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
57 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
59 * gnu-nat.c (inf_threads): New function.
60 * gnu-nat.h (inf_threads_ftype): New typedef.
61 (inf_threads): New declaration.
62 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
63 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
64 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
65 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
66 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
67 (i386_gnu_dr_get_control): New functions.
68 (reg_addr): New structure.
69 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
70 i386 debugging register hooks.
73 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
75 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
76 vector data transfer instructions.
77 (arm_record_coproc_data_proc): Updated.
79 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
81 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
82 arm_record_exreg_ld_st_insn.
83 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
86 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
88 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
89 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
90 processing instructions.
92 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
94 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
95 for advance SIMD struct ld/st insn.
96 (thumb2_record_decode_insn_handler): Replace stub handler with
97 thumb2_record_asimd_struct_ld_st.
99 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
101 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
102 for asimd, vfp and coprocessor insns.
103 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
104 and coprocessor insns.
105 (thumb2_record_coproc_insn): New function.
106 (thumb2_record_decode_insn_handler): Update coprocessor insns record
108 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
111 2014-09-13 Doug Evans <xdje42@gmail.com>
113 * NEWS: Mention new "queue-signal" command.
114 * infcmd.c (queue_signal_command): New function.
115 (_initialize_infcmd): Add new queue-signal command.
117 2014-09-13 Doug Evans <xdje42@gmail.com>
119 * linux-nat.c (wait_lwp): Add debugging printf.
120 (linux_nat_wait_1): Ditto.
122 2014-09-12 Pedro Alves <palves@redhat.com>
124 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
125 (create_and_insert_solib_event_breakpoint): New functions.
126 * breakpoint.h (create_and_insert_solib_event_breakpoint)
127 (remove_solib_event_breakpoints_at_next_stop): New declarations.
128 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
129 (remove_dbx_link_breakpoint): Delete function.
130 (insert_dbx_link_bpt_in_file): Use
131 create_and_insert_solib_event_breakpoint instead of
132 deprecated_insert_raw_breakpoint.
133 (procfs_wait): Don't check whether we hit __dbx_link here.
134 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
136 * solib-irix.c (base_breakpoint): Delete global.
137 (disable_break): Delete function.
138 (enable_break): Use create_solib_event_breakpoint
139 instead of deprecated_insert_raw_breakpoint.
140 (irix_solib_handle_event): New function.
141 (irix_solib_create_inferior_hook): Don't run the target or disable
142 the mapping-complete breakpoint here.
143 (_initialize_irix_solib): Install irix_solib_handle_event as
144 so_ops->handle_event hook.
146 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
147 Ulrich Weigand <uweigand@de.ibm.com>
150 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
151 instead of read_memory_unsigned_integer.
153 2014-09-12 Gary Benson <gbenson@redhat.com>
155 * nat/linux-waitpid.c: Include common-defs.h.
156 [GDBSERVER]: Add FIXME comment.
157 [!GDBSERVER]: Don't include defs.h or signal.h.
158 (linux_debug) [!GDBSERVER]: Remove empty block.
160 2014-09-12 Gary Benson <gbenson@redhat.com>
162 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
163 Don't include defs.h or server.h.
165 2014-09-12 Gary Benson <gbenson@redhat.com>
167 * nat/linux-btrace.c: Include common-defs.h.
168 Don't include defs.h, server.h or gdbthread.h.
169 * nat/linux-btrace.h (struct target_ops): New forward declaration.
171 2014-09-12 Gary Benson <gbenson@redhat.com>
173 * common/agent.c: Include common-defs.h.
174 Don't include defs.h or server.h.
175 * common/buffer.c: Likewise.
176 * common/common-debug.c: Likewise.
177 * common/common-utils.c: Likewise.
178 * common/errors.c: Likewise.
179 * common/filestuff.c: Likewise.
180 * common/format.c: Likewise.
181 * common/gdb_vecs.c: Likewise.
182 * common/print-utils.c: Likewise.
183 * common/ptid.c: Likewise.
184 * common/rsp-low.c: Likewise.
185 * common/signals.c: Likewise.
186 * common/vec.c: Likewise.
187 * common/xml-utils.c: Likewise.
188 * nat/linux-osdata.c: Likewise.
189 * nat/linux-procfs.c: Likewise.
190 * nat/linux-ptrace.c: Likewise.
191 * nat/mips-linux-watch.c: Likewise.
192 * target/waitstatus.c: Likewise.
194 2014-09-12 Tom Tromey <tromey@redhat.com>
195 Gary Benson <gbenson@redhat.com>
197 * common/common-regcache.h: New file.
198 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
199 * regcache.h: Include common-regcache.h.
200 (regcache_read_pc): Don't declare.
201 * regcache.c (get_thread_regcache_for_ptid): New function.
202 * nat/linux-btrace.c: Don't include regcache.h.
203 Include common-regcache.h.
204 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
206 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
208 * regcache.h (struct regset): Declare.
210 2014-09-11 Pedro Alves <palves@redhat.com>
213 * main.c: Include "infrun.h".
214 (catch_command_errors, catch_command_errors_const): Wait for the
215 foreground command to complete.
216 * top.c (maybe_wait_sync_command_done): New function, factored out
218 (maybe_wait_sync_command_done): ... here.
219 * top.h (maybe_wait_sync_command_done): New declaration.
221 2014-09-11 Tom Tromey <tromey@redhat.com>
222 Gary Benson <gbenson@redhat.com>
224 * common/symbol.h: New file.
225 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
226 * minsyms.c (find_minimal_symbol_address): New function.
227 * common/agent.c: Include common/symbol.h.
228 [!GDBSERVER]: Don't include objfiles.h.
229 (agent_look_up_symbols): Use find_minimal_symbol_address.
231 2014-09-11 Gary Benson <gbenson@redhat.com>
233 * target/target.h (target_stop_ptid, target_continue_ptid):
235 * target.c (target_stop_ptid, target_continue_ptid): New
237 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
238 (agent_run_command): Always use target_stop_ptid and
239 target_continue_ptid.
241 2014-09-11 Tom Tromey <tromey@redhat.com>
242 Gary Benson <gbenson@redhat.com>
244 * target/target.h: New file.
245 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
246 * target.h: Include target/target.h.
247 (target_read_memory, target_write_memory): Don't declare.
248 * target.c (target_read_uint32): New function.
249 * common/agent.c: Include target/target.h.
250 [!GDBSERVER]: Don't include target.h.
251 (helper_thread_id): Type changed to uint32_t.
252 (agent_get_helper_thread_id): Use target_read_uint32.
253 (agent_run_command): Always use target_read_memory and
255 (agent_capability): Type changed to uint32_t.
256 (agent_capability_check): Use target_read_uint32.
258 2014-09-11 Gary Benson <gbenson@redhat.com>
260 * common/common-debug.h (show_debug_regs): Declare.
261 * common/common-debug.c (show_debug_regs): Define.
262 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
263 all uses with show_debug_regs. Replace all uses that considered
264 debug_hw_points as a multi-value integer with straight boolean
266 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
267 with show_debug_regs.
268 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
269 all uses with show_debug_regs.
270 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
271 uses with show_debug_regs.
273 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
275 * findvar.c (address_from_register): Handle targets requiring
276 a special conversion routine even for plain pointer types.
278 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
280 * rs6000-nat.c (exec_one_dummy_insn): Remove.
281 (store_register): Do not call exec_one_dummy_insn.
283 2014-09-10 Joel Brobecker <brobecker@adacore.com>
285 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
286 dereference it first. Use value_enclosing_type instead of
288 (ada_array_length): Likewise.
290 2014-09-10 Joel Brobecker <brobecker@adacore.com>
292 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
293 Adjust function implementation and documentation accordingly.
294 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
295 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
296 Update call to ada_value_ptr_subscript.
298 2014-09-10 Joel Brobecker <brobecker@adacore.com>
300 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
301 instead of VAL's type.
303 2014-09-10 Joel Brobecker <brobecker@adacore.com>
305 * amd64-linux-nat.c: Add <sys/uio.h> #include.
307 2014-09-09 Doug Evans <xdje42@gmail.com>
310 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
311 last parameter to pkg-config, not first.
312 * configure.ac: Pass --with-guile provided pkg-config path to
313 GDB_GUILE_PROGRAM_NAMES.
314 * configure: Regenerate.
316 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
318 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
321 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
323 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
324 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
325 the list of sections determining GDB_OSABI_IRIX.
327 2014-09-09 James Hogan <james.hogan@imgtec.com>
329 * MAINTAINERS (Write After Approval): Add "James Hogan".
331 2014-09-09 James Hogan <james.hogan@imgtec.com>
333 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
335 2014-09-09 Joel Brobecker <brobecker@adacore.com>
337 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
339 2014-09-08 Doug Evans <xdje42@gmail.com>
342 * guile.c: #include <signal.h>.
343 (_initialize_guile): Block SIGCHLD while initializing Guile.
345 Replaces the following, which is reverted.
347 2014-07-26 Doug Evans <xdje42@gmail.com>
350 * configure.ac: Add check for header gc/gc.h.
351 Add check for function setenv.
352 * configure: Regenerate.
353 * config.in: Regenerate.
354 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
356 2014-09-08 Doug Evans <xdje42@gmail.com>
358 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
359 with named constant. Fix style of pointer comparison.
360 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
362 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
365 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
366 decide whether we display the command on "show user".
367 * cli/cli-script.c (show_user_1): Only verify cmdlines after
368 printing command name.
369 * cli/cli-decode.h (cli_user_command_p): Declare new function.
370 * cli/cli-decode.c (cli_user_command_p): Create helper function
371 to verify whether cmd_list_element is a user-defined command.
373 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
376 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
377 Fix goto out of TRY_CATCH.
379 2014-09-06 Doug Evans <xdje42@gmail.com>
380 Tom Tromey <tromey@redhat.com>
383 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
384 $_any_caller_matches.
385 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
386 * python/lib/gdb/function/caller_is.py: New file.
388 2014-09-06 Doug Evans <xdje42@gmail.com>
390 * infcmd.c (program_info): Fix typo.
392 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
395 * stap-probe.c (stap_parse_single_operand): Delete unused variable
396 'number'. New variable 'has_digit'. Rewrite code to deal with
397 subexpressions on SDT probes.
399 2014-09-04 Pedro Alves <palves@redhat.com>
401 * c-exp.y (parse_number): Skip handling base-switching prefixes if
402 the input is only one character long.
404 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
407 * f-valprint.c (f_val_print): Specify the correct print option to
408 use when printing integer values.
410 2014-09-04 Gary Benson <gbenson@redhat.com>
412 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
413 Remove code to cope with LWPs wrapped as PIDs.
414 Add assertions to ensure no wrapped LWPs are passed.
416 2014-09-04 Pedro Alves <palves@redhat.com>
418 * value.c (value_ranges_copy_adjusted): New function, factored out
420 (value_contents_copy_raw): ... here.
421 (unpack_value_bits_as_long_1): Rename back to ...
422 (unpack_bits_as_long): ... this. Remove 'original_value' and
423 'result' parameters. Change return type to LONGEST.
424 (unpack_value_bits_as_long): Delete.
425 (unpack_value_field_as_long_1): Delete.
426 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
427 (unpack_value_bitfield): New function.
428 (value_field_bitfield): Reimplement using unpack_value_bitfield.
429 (value_fetch_lazy): Use unpack_value_bitfield.
430 * value.h (unpack_value_bits_as_long): Delete declaration.
432 2014-09-03 Sasha Smundak <asmundak@google.com>
434 * python/py-frame.c (frapy_read_register): New function.
436 2014-09-03 James Hogan <james.hogan@imgtec.com>
438 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
439 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
441 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
444 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
446 (add_cmd): Set "completer_handle_brkchars" to NULL.
447 * cli/cli-decode.h (struct cmd_list_element)
448 <completer_handle_brkchars>: New field.
449 * command.h (completer_ftype_void): New typedef.
450 (set_cmd_completer_handle_brkchars): New prototype.
451 * completer.c (set_gdb_completion_word_break_characters): New
453 (complete_line_internal): Call "completer_handle_brkchars"
454 callback from command.
455 * completer.h: Include "command.h".
456 (set_gdb_completion_word_break_characters): New prototype.
457 * python/py-cmd.c (cmdpy_completer_helper): New function.
458 (cmdpy_completer_handle_brkchars): New function.
459 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
460 (cmdpy_init): Set completer_handle_brkchars to
461 cmdpy_completer_handle_brkchars.
463 2014-09-03 Gary Benson <gbenson@redhat.com>
465 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
466 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
467 Loop conditions changed to equivalent form.
468 (struct x86_debug_reg_state): Updated dr_ref_count comment.
469 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
470 ALL_DEBUG_ADDRESS_REGISTERS.
472 2014-09-03 Joel Brobecker <brobecker@adacore.com>
474 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
477 2014-09-02 Doug Evans <dje@google.com>
479 * typeprint.c (find_global_typedef): Fix comment.
481 2014-09-02 Gary Benson <gbenson@redhat.com>
483 * i386-nat.h: Renamed as...
484 * x86-nat.h: New file. All type, function and variable name
485 prefixes changed from "i386_" to "x86_". All references updated.
486 * i386-nat.c: Renamed as...
487 * x86-nat.c: New file. All type, function and variable name
488 prefixes changed from "i386_" to "x86_". All references updated.
489 * common/i386-xstate.h: Renamed as...
490 * common/x86-xstate.h: New file. All type, function and variable
491 name prefixes changed from "i386_" to "x86_". All references
493 * nat/i386-cpuid.h: Renamed as...
494 * nat/x86-cpuid.h: New file. All type, function and variable name
495 prefixes changed from "i386_" to "x86_". All references updated.
496 * nat/i386-gcc-cpuid.h: Renamed as...
497 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
498 name prefixes changed from "i386_" to "x86_". All references
500 * nat/i386-dregs.h: Renamed as...
501 * nat/x86-dregs.h: New file. All type, function and variable name
502 prefixes changed from "i386_" to "x86_". All references updated.
503 * nat/i386-dregs.c: Renamed as...
504 * nat/x86-dregs.c: New file. All type, function and variable name
505 prefixes changed from "i386_" to "x86_". All references updated.
507 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
509 * varobj.c (_initialize_varobj): Move to the end of file.
511 2014-08-29 Gary Benson <gbenson@redhat.com>
513 * common/common-exceptions.h: New file.
514 * common/common-exceptions.c: Likewise.
515 * Makefile.in (SFILES): Add common/common-exceptions.c.
516 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
517 (COMMON_OBS): Add common-exceptions.o.
518 (common-exceptions.o): New rule.
519 * exceptions.h (common-exceptions.h): Include.
520 (gdb_setjmp.h): Do not include.
521 (return_reason): Moved to common-exceptions.h.
522 (enum return_reason): Likewise.
523 (RETURN_MASK): Likewise.
524 (typedef return_mask): Likewise.
525 (enum errors): Likewise.
526 (struct gdb_exception): Likewise.
527 (exceptions_state_mc_init): Likewise.
528 (exceptions_state_mc_action_iter): Likewise.
529 (exceptions_state_mc_action_iter_1): Likewise.
530 (TRY_CATCH): Likewise.
531 (throw_exception): Likewise.
532 (throw_verror): Likewise.
533 (throw_vquit): Likewise.
534 (throw_error): Likewise.
535 (throw_quit): Likewise.
536 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
537 (enum catcher_action): Likewise.
538 (struct catcher): Likewise.
539 (current_catcher): Likewise.
540 (catcher_list_size): Likewise.
541 (exceptions_state_mc_init): Likewise.
542 (catcher_pop): Likewise.
543 (exceptions_state_mc): Likewise.
544 (exceptions_state_mc_action_iter): Likewise.
545 (exceptions_state_mc_action_iter_1): Likewise.
546 (throw_exception): Likewise.
547 (exception_messages): Likewise.
548 (exception_messages_size): Likewise.
549 (throw_it): Likewise.
550 (throw_verror): Likewise.
551 (throw_vquit): Likewise.
552 (throw_error): Likewise.
553 (throw_quit): Likewise.
554 (prepare_to_throw_exception): New function.
556 2014-08-29 Gary Benson <gbenson@redhat.com>
558 * common/gdb_setjmp.h: New file.
559 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
560 * configure.ac: Move sigsetjmp check...
561 * common/common.m4: ...here.
562 * configure: Regenerate.
563 * cp-support.c (SIGJMP_BUF): Delete.
564 (SIGSETJMP): Likewise.
565 (SIGLONGJMP): Likewise.
566 * exceptions.h (gdb_setjmp.h): Include.
567 (setjmp.h): Do not include.
568 (EXCEPTIONS_SIGJMP_BUF): Delete.
569 (EXCEPTIONS_SIGSETJMP): Likewise.
570 (EXCEPTIONS_SIGLONGJMP): Likewise.
571 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
573 * exceptions.c: Likewise.
575 2014-08-29 Gary Benson <gbenson@redhat.com>
577 * cleanups.h: Moved to...
578 * common/cleanups.h: New file.
579 * cleanups.c: Moved to...
580 * common/cleanups.c: New file. Include common-defs.h and
581 cleanups.h. Do not include defs.h.
582 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
583 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
584 (cleanups.o): New rule.
586 2014-08-29 Gary Benson <gbenson@redhat.com>
588 * common/errors.h (internal_warning): New declaration.
589 (internal_vwarning): Likewise.
590 * common/errors.c (internal_warning): New function.
591 * utils.h (internal_warning): Don't declare.
592 (internal_vwarning): Likewise.
593 * utils.c (internal_warning): Removed.
595 2014-08-29 Gary Benson <gbenson@redhat.com>
597 * main.c (captured_main): Use warning during startup.
598 Prefix startup warning messages with command name.
600 2014-08-29 Gary Benson <gbenson@redhat.com>
602 * main.c (captured_main): Handle usage errors with error.
604 2014-08-29 Gary Benson <gbenson@redhat.com>
606 * go32-nat.c (go32_create_inferior): Replace a fprintf/
607 exit pair with a call to error. Wrap the message with _().
609 2014-08-29 Gary Benson <gbenson@redhat.com>
611 * main.c (captured_main): Replace a fprintf/exit
612 pair with a call to error. Wrap the message with _().
614 2014-08-29 Gary Benson <gbenson@redhat.com>
616 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
617 pairs with calls to error. Wrap the message with _().
619 2014-08-29 Gary Benson <gbenson@redhat.com>
621 * utils.c (vwarning): Protect calls to target_terminal_ours
624 2014-08-29 Gary Benson <gbenson@redhat.com>
626 * exceptions.c (print_flush): Protect calls to
627 target_terminal_ours and wrap_here.
629 2014-08-29 Gary Benson <gbenson@redhat.com>
631 * utils.h (filtered_printing_initialized): New declaration.
632 * utils.c (abort_with_message): New function.
633 (internal_vproblem): Use abort_with_message for first level
634 recursive internal problems, and if gdb_stderr is not set up.
635 Protect calls to target_terminal_ours, begin_line and query.
637 2014-08-28 Doug Evans <dje@google.com>
639 * symtab.c (in_prologue): Move definition to better spot.
640 (skip_prologue_using_sal): Ditto.
642 2014-08-28 Doug Evans <dje@google.com>
644 * symtab.c (find_function_start_sal): Move definition to better spot.
646 2014-08-28 Yao Qi <yao@codesourcery.com>
648 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
649 found_stack_adjust in forward scan. Remove condition check
650 on found_stack_adjust which is always true. Indent the code.
652 2014-08-28 Yao Qi <yao@codesourcery.com>
654 * dwarf2read.c (dwarf_decode_lines): Update declaration.
655 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
656 (dwarf_decode_lines): Remove argument
657 want_line_info. Remove condition check on want_line_info.
660 2014-08-27 Doug Evans <dje@google.com>
662 * dwarf2read.c (dwarf_record_line): Fix typo.
664 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
666 * target.h (struct target_ops::to_terminal_save_ours): Remove
668 (target_terminal_save_ours): Remove macro.
669 * target-delegates.c: Regenerate.
670 * inf-child.c (inf_child_target): Don't set the nonexistent
671 field to_terminal_save_ours.
672 * inferior.h (child_terminal_save_ours): Remove declaration.
673 * terminal.h (gdb_save_tty_state): New declaration.
674 * inflow.c (child_terminal_save_ours): Rename to ...
675 (gdb_save_tty_state): ... this.
676 * tui/tui.c: Include terminal.h.
677 (tui_enable): Use gdb_save_tty_state instead of
678 target_terminal_save_ours.
679 (tui_disable): Likewise.
681 2014-08-25 Doug Evans <dje@google.com>
683 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
684 Pass NULL instead of 0 for context pointer.
686 2014-08-25 Yao Qi <yao@codesourcery.com>
688 * dwarf2read.c: Fix grammatical error.
690 2014-08-24 Yao Qi <yao@codesourcery.com>
692 * dwarf2read.c (scan_partial_symbols): Update comments.
693 Rename argument 'need_pc' with 'set_addrmap'.
694 (add_partial_namespace): Rename argument 'need_pc' with
696 (add_partial_module): Likewise.
697 (add_partial_subprogram): Likewise. Update comments.
698 (dwarf2_name): Fix typo.
700 2014-08-22 Doug Evans <dje@google.com>
703 * dwarf2read.c (dwarf_record_line_p): New function.
704 (dwarf_decode_lines_1): Ignore subsequent line number entries
705 for the same line if any entry had a non-zero discriminator.
707 2014-08-22 Doug Evans <dje@google.com>
709 * buildsym.h (record_line_ftype): New typedef.
710 (record_line): Use it.
711 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
712 (dwarf_decode_lines_1): Call them.
714 2014-08-22 Yao Qi <yao@codesourcery.com>
716 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
717 (ctf_end): Remove code.
719 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
721 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
722 (linux_make_corefile_notes): call update_thread_list, protected against
725 2014-08-21 Pedro Alves <palves@redhat.com>
727 * infcmd.c (attach_command): Remove comment.
729 2014-08-21 Bin Cheng <bin.cheng@arm.com>
731 * aarch64-linux-nat.c (dr_changed_t): Change the type from
732 unsigned LONGEST to ULONGEST.
734 2014-08-20 Pedro Alves <palves@redhat.com>
736 * Makefile.in (check-read1): New rule.
738 2014-08-20 Joel Brobecker <brobecker@adacore.com>
740 * value.c (value_from_contents_and_address): Strip resolved_type's
741 typedef layers before checking its TYPE_DATA_LOCATION.
743 2014-08-20 Pedro Alves <palves@redhat.com>
745 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
747 2014-08-20 Yao Qi <yao@codesourcery.com>
749 * amd64-tdep.c (amd64_classify): Add a blank line after the
750 example. Move "*/" to a new line.
751 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
752 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
753 * dwarf2read.c (psymtab_include_file_name): Likewise.
755 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
756 Pedro Alves <palves@redhat.com>
760 * ada-lang.c (coerce_unspec_val_to_type): Use
761 value_contents_copy_raw.
762 * ada-valprint.c (val_print_packed_array_elements): Adjust.
763 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
764 * cp-valprint.c (cp_print_value_fields): Let the common printing
765 code handle optimized out values.
766 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
767 * d-valprint.c (dynamic_array_type): Use
768 value_bits_any_optimized_out.
769 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
770 check_any_valid fields.
771 (check_pieced_value_bits): Delete and inline ...
772 (check_pieced_synthetic_pointer): ... here.
773 (check_pieced_value_validity): Delete.
774 (check_pieced_value_invalid): Delete.
775 (pieced_value_funcs): Remove check_validity and check_any_valid
777 (read_pieced_value): Use mark_value_bits_optimized_out.
778 (write_pieced_value): Switch to use
779 mark_value_bytes_optimized_out.
780 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
781 of assuming the whole value is optimized out.
782 * findvar.c (read_frame_register_value): Remove special handling
783 of optimized out registers.
784 (value_from_register): Use mark_value_bytes_optimized_out.
785 * frame-unwind.c (frame_unwind_got_optimized): Use
786 mark_value_bytes_optimized_out.
787 * jv-valprint.c (java_value_print): Adjust.
788 (java_print_value_fields): Let the common printing code handle
789 optimized out values.
790 * mips-tdep.c (mips_print_register): Remove special handling of
791 optimized out registers.
792 * opencl-lang.c (lval_func_check_validity): Delete.
793 (lval_func_check_any_valid): Delete.
794 (opencl_value_funcs): Remove check_validity and check_any_valid
796 * p-valprint.c (pascal_object_print_value_fields): Let the common
797 printing code handle optimized out values.
798 * stack.c (read_frame_arg): Remove special handling of optimized
799 out values. Fetch both VAL and ENTRYVAL before comparing
800 contents. Adjust to value_available_contents_eq rename.
801 * valprint.c (valprint_check_validity)
802 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
803 (val_print_array_elements): Adjust.
804 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
805 (value_bits_any_optimized_out): New function.
806 (value_entirely_covered_by_range_vector): New function, factored
807 out from value_entirely_unavailable.
808 (value_entirely_unavailable): Reimplement.
809 (value_entirely_optimized_out): New function.
810 (insert_into_bit_range_vector): New function, factored out from
811 mark_value_bits_unavailable.
812 (mark_value_bits_unavailable): Reimplement.
813 (struct ranges_and_idx): New struct.
814 (find_first_range_overlap_and_match): New function, factored out
815 from value_available_contents_bits_eq.
816 (value_available_contents_bits_eq): Rename to ...
817 (value_contents_bits_eq): ... this. Check both unavailable
818 contents and optimized out contents.
819 (value_available_contents_eq): Rename to ...
820 (value_contents_eq): ... this.
821 (allocate_value_lazy): Remove reference to the old optimized_out
823 (allocate_optimized_out_value): Use
824 mark_value_bytes_optimized_out.
825 (require_not_optimized_out): Adjust to check whether the
826 optimized_out vec is empty.
827 (ranges_copy_adjusted): New function, factored out from
828 value_contents_copy_raw.
829 (value_contents_copy_raw): Also copy the optimized out ranges.
830 Assert the destination ranges aren't optimized out.
831 (value_contents_copy): Update comment, remove call to
832 require_not_optimized_out.
833 (value_contents_equal): Adjust to check whether the optimized_out
835 (set_value_optimized_out, value_optimized_out_const): Delete.
836 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
838 (value_entirely_optimized_out, value_bits_valid): Delete.
839 (value_copy): Take a VEC copy of the 'optimized_out' field.
840 (value_primitive_field): Remove special handling of optimized out.
841 (value_fetch_lazy): Assert that lazy values have no unavailable
842 regions. Use value_bits_any_optimized_out. Remove some special
843 handling for optimized out values.
844 * value.h: Add intro comment about <optimized out> and
846 (struct lval_funcs): Remove check_validity and check_any_valid
848 (set_value_optimized_out, value_optimized_out_const): Remove.
849 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
851 (value_bits_any_optimized_out): New declaration.
852 (value_bits_valid): Delete declaration.
853 (value_available_contents_eq): Rename to ...
854 (value_contents_eq): ... this, and extend comments.
856 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
858 Fix -fsanitize=address on unreadable inferior strings.
859 * valprint.c (val_print_string): Fix access before BUFFER.
861 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
863 * target.c (target_struct_size): Remove.
864 (target_struct_allocsize): Remove.
865 (DEFAULT_ALLOCSIZE): Remove.
866 (target_ops_p): New typedef.
867 (DEF_VEC_P (target_ops_p)): New vector type.
868 (target_structs): Change type to VEC (target_ops_p).
869 (add_target_with_completer): Replace "push" code by VEC_safe_push.
870 (find_default_run_target): Rewrite for loop following changes to
873 2014-08-19 Joel Brobecker <brobecker@adacore.com>
875 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
876 Adjust code accordingly. Adjust function description comment.
878 2014-08-19 Yao Qi <yao@codesourcery.com>
880 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
883 2014-08-19 Alan Modra <amodra@gmail.com>
885 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
886 * config.in: Regenerate.
887 * configure: Regenerate.
889 2014-08-19 Tom Tromey <tromey@redhat.com>
890 Gary Benson <gbenson@redhat.com>
892 * common/common-debug.h: New file.
893 * common/common-debug.c: Likewise.
895 * Makefile.in (SFILES): Add common/common-debug.c.
896 (HFILES_NO_SRCDIR): Add common/common-debug.h.
897 (COMMON_OBS): Add common-debug.o and debug.o.
898 (common-debug.o): New rule.
899 * common/common-defs.h: Include common-debug.h.
900 * common/agent.c (debug_agent_printf): New function.
901 (DEBUG_AGENT): Redefine.
902 * nat/i386-dregs.c (debug_printf): Undefine.
904 2014-08-19 Gary Benson <gbenson@redhat.com>
906 * common/common-defs.h: Include print-utils.h.
907 * utils.h: Do not include print-utils.h.
909 2014-08-19 Tom Tromey <tromey@redhat.com>
910 Gary Benson <gbenson@redhat.com>
912 * common/common-types.h: New file.
913 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
914 * common/common-defs.h: Include common-types.h.
915 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
918 2014-08-19 Tom Tromey <tromey@redhat.com>
919 Gary Benson <gbenson@redhat.com>
921 * common/errors.h: New file.
922 * common/errors.c: Likewise.
923 * Makefile.in (SFILES): Add common/errors.c.
924 (HFILES_NO_SRCDIR): Add common/errors.h.
925 (COMMON_OBS): Add errors.o.
926 (errors.o): New rule.
927 * common/common-defs.h: Include errors.h.
928 * utils.h (perror_with_name, error, verror, warning, vwarning):
930 * common/common-utils.h: (malloc_failure, internal_error):
933 2014-08-19 Gary Benson <gbenson@redhat.com>
935 * utils.c (internal_vproblem): Always print the message.
937 2014-08-18 Doug Evans <dje@google.com>
939 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
941 2014-08-18 Joel Brobecker <brobecker@adacore.com>
943 * ada-typeprint.c (type_is_full_subrange_of_target_type):
944 Return 0 if TYPE is dynamic.
945 (print_range): Add handling of dynamic ranges.
947 2014-08-18 Keven Boell <keven.boell@intel.com>
948 Joel Brobecker <brobecker@adacore.com>
950 * gdbtypes.h (struct main_type): Add field "data_location".
951 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
952 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
953 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
954 a dynamic data location.
955 (resolve_dynamic_type): Add DW_AT_data_location handling.
956 (copy_recursive, copy_type): Copy the data_location information
958 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
959 * value.c (value_from_contents_and_address): Add
960 DW_AT_data_location handling.
962 2014-08-18 Keven Boell <keven.boell@intel.com>
963 Joel Brobecker <brobecker@adacore.com>
965 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
966 field "get_object_address".
967 * dwarf2expr.c (execute_stack_op): Add handling for
968 DW_OP_push_object_address.
969 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
970 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
971 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
972 (dwarf_expr_get_obj_addr): New function.
973 (dwarf_expr_ctx_funcs): Add get_object_address field.
974 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
975 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
976 (dwarf2_evaluate_property): Add parameter "address". Use it.
977 (needs_get_obj_addr): New function.
978 (needs_frame_ctx_funcs): Add get_object_address field.
979 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
980 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
981 (resolve_dynamic_array): Likewise.
983 2014-08-18 Joel Brobecker <brobecker@adacore.com>
985 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
986 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
987 fixed value for records and unions for which some GNAT encodings
990 2014-08-18 Joel Brobecker <brobecker@adacore.com>
992 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
993 rewrite to avoid "else if" and "else" constructs. Should be
996 2014-08-18 Joel Brobecker <brobecker@adacore.com>
998 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1001 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1004 * eval.c: Update all calls to find_overload_match.
1005 * valarith.c: Likewise.
1006 (value_user_defined_cpp_op, value_user_defined_op): New
1007 argument NOSIDE. Update all callers.
1008 * valops.c (find_overload_match): New argument NOSIDE.
1009 * value.h (find_overload_match): Update signature.
1011 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1013 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1014 'items' methods instead of 'iteritems' method on dictionaries.
1016 2014-08-15 Doug Evans <dje@google.com>
1018 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1021 2014-08-15 Doug Evans <dje@google.com>
1023 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1025 2014-08-15 Doug Evans <dje@google.com>
1027 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1029 2014-08-15 Doug Evans <dje@google.com>
1031 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1034 2014-08-15 Eli Zaretskii <eliz@gnu.org>
1036 * dcache.h: Include target.h, to avoid compile time warnings.
1038 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1040 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1041 frame_info" partial declaration.
1042 * gdbarch.h: Regenerate.
1044 2014-08-15 Yao Qi <yao@codesourcery.com>
1046 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1047 Add parameter 'decode_for_pst_p'. Callers update.
1049 2014-08-13 Yao Qi <yao@codesourcery.com>
1052 * configure.ac: Use local variable 'pos'.
1053 * configure: Regenerated.
1055 2014-08-11 Doug Evans <dje@google.com>
1057 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1058 message, it is redundant with "Reading symbols from ..." message.
1060 2014-08-10 Doug Evans <xdje42@gmail.com>
1062 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1064 2014-08-09 Yao Qi <yao@codesourcery.com>
1067 * remote.c (remote_xfer_partial): Remove dead code.
1069 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1071 * ia64-linux-tdep.c: Include "regset.h".
1072 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1073 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1074 (ia64_linux_supply_fpregset): New function.
1075 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1076 (ia64_linux_regset_from_core_section): New function.
1077 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1080 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1082 * m68klinux-tdep.c: Include "regset.h".
1083 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1084 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1085 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1086 (m68k_linux_regset_from_core_section): New function.
1087 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1090 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1092 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1093 function. Move logic to...
1094 (tilegx_linux_regmap): ... this new register map.
1095 (tilegx_linux_regset): Refer to register map, replace supply
1096 method by regcache_supply_regset, and add collect method.
1097 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1098 TILEGX_FIRST_EASY_REGNUM.
1100 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1102 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1103 that calls regcache_supply_regset and handles the EPC register
1104 separately. Move main logic to...
1105 (score7_linux_gregmap): ... this new register map.
1106 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1107 (score7_linux_gregset): Refer to register map. Add collect method.
1108 (score7_linux_regset_from_core_section): Replace
1109 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1110 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1111 (struct regset): Delete unused forward declaraction.
1112 (struct pt_regs): Delete structure definition.
1113 (elf_gregset_t): Delete typedef.
1115 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1117 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1118 (nios2_core_regset): Add collect method.
1120 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1122 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1123 platform-independent and don't write to read-only input buffer.
1124 (m32r_linux_collect_gregset): New function.
1125 (m32r_linux_gregset): Add collect method.
1127 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1129 * hppa-linux-tdep.c (greg_map): Rename to...
1130 (hppa_linux_gregmap): ... this. Also convert to
1131 regcache_map_entry format.
1132 (hppa_linux_supply_regset): Delete function.
1133 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1134 (hppa_linux_fpregmap): ... this new register map.
1135 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1136 register map, replace supply method by regcache_supply_regset, and
1137 add collect method regcache_collect_regset.
1139 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1141 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1142 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1143 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1144 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1145 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1146 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1147 (frv_linux_supply_gregset): Replace main logic by call to
1148 regcache_supply_regset, but keep clearing gr32-gr63.
1149 (frv_linux_supply_fpregset): Delete function.
1150 (frv_linux_gregset): Refer to appropriate register map and add
1151 regcache_collect_regset as the collect method.
1152 (frv_linux_fpregset): Likewise. Also exchange the supply method
1153 by regcache_supply_regset.
1155 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1157 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1158 by call to alpha_supply_int_regs.
1159 (alpha_linux_collect_gregset): New function.
1160 (alpha_linux_supply_fpregset): Replace logic by call to
1161 alpha_supply_fp_regs.
1162 (alpha_linux_collect_fpregset): New function.
1163 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1165 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1167 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1168 by call to regcache_collect_regset.
1169 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1170 instead of aarch64_linux_supply_gregset/_fpregset.
1171 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1172 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1173 header file instead.
1174 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1175 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1176 functions. Move logic to ...
1177 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1179 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1180 refer to new register maps, replace *_regset_from_core by
1181 regcache_supply_regset, and also use regcache_collect_regset.
1182 * aarch64-linux-tdep.h: Include "regset.h".
1183 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1185 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1186 macros, moved from C source file.
1187 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1188 variable declarations.
1190 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1192 * s390-linux-nat.c: Include "regset.h".
1193 (regmap_gregset): Delete macro.
1194 (s390_64_regmap_gregset): New register map for
1195 regcache_supply/_collect_regset.
1196 (s390_64_gregset): New regset.
1197 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1198 (regmap_fpregset): Delete macro.
1199 (s390_native_supply, s390_native_collect): Delete functions.
1200 (supply_gregset, fill_gregset): Replace s390-specific regmap
1201 handling by a call to regcache_supply/_collect_regset.
1202 (supply_fpregset, fill_fpregset): Call regcache_supply/
1203 _collect_regset instead of s390_native_supply/_collect.
1204 (fetch_regset, store_regset): Likewise. Also change the last
1205 parameter to a regset instead of a regmap.
1206 (s390_linux_fetch_inferior_registers)
1207 (390_linux_store_inferior_registers): Adjust last parameter in
1208 calls to fetch_regset and store_regset.
1209 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1210 (s390_gregmap): ... this. Also make static const and convert to
1211 regcache_map_entry format.
1212 (s390x_regmap_gregset): Delete.
1213 (s390_regmap_fpregset): Rename to...
1214 (s390_fpregmap): ... this. Make static const and convert to
1215 regcache_map_entry format.
1216 (s390_regmap_upper, s390_regmap_last_break)
1217 (s390x_regmap_last_break, s390_regmap_system_call)
1218 (s390_regmap_tdb): Likewise.
1219 (s390_supply_regset, s390_collect_regset): Remove functions.
1220 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1222 (s390_gregset, s390_fpregset, s390_upper_regset)
1223 (s390_last_break_regset, s390x_last_break_regset)
1224 (s390_system_call_regset, s390_tdb_regset): Make global and
1225 replace s390_supply/_collect_regset by regcache_supply/
1227 (s390x_gregset): Delete.
1228 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1229 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1230 (s390_regmap_fpregset, s390_regmap_last_break)
1231 (s390x_regmap_last_break, s390_regmap_system_call)
1232 (s390_regmap_tdb): Delete global variable declarations.
1233 (s390_gregset, s390_fpregset, s390_last_break_regset)
1234 (s390x_last_break_regset, s390_system_call_regset)
1235 (s390_tdb_regset): New global variable declarations.
1237 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1239 * regcache.c: Include "regset.h".
1240 (regcache_transfer_regset): New local function.
1241 (regcache_supply_regset, regcache_collect_regset): New functions.
1242 * regcache.h (struct regcache_map_entry): New structure.
1243 (REGCACHE_MAP_SKIP): New enum value.
1244 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1246 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1248 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1249 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1250 (ppc_linux_collect_gregset ): Likewise.
1251 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1252 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1253 (ppc_collect_vrregset): Likewise.
1254 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1257 2014-08-07 Yao Qi <yao@codesourcery.com>
1259 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1260 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1261 * remote.c (remote_read_bytes): Likewise.
1263 2014-08-07 Yao Qi <yao@codesourcery.com>
1265 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1267 2014-08-07 Yao Qi <yao@codesourcery.com>
1270 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1271 TARGET_XFER_OK instead of 0.
1273 2014-08-07 Gary Benson <gbenson@redhat.com>
1275 * common/common-defs.h: Include errno.h.
1276 * defs.h: Do not include errno.h.
1277 * ada-typeprint.c: Likewise.
1278 * c-typeprint.c: Likewise.
1279 * core-regset.c: Likewise.
1280 * corefile.c: Likewise.
1281 * corelow.c: Likewise.
1282 * event-loop.c: Likewise.
1283 * f-typeprint.c: Likewise.
1284 * gnu-nat.c: Likewise.
1285 * go32-nat.c: Likewise.
1286 * i386gnu-nat.c: Likewise.
1287 * m2-typeprint.c: Likewise.
1288 * nat/linux-btrace.c: Likewise.
1289 * p-typeprint.c: Likewise.
1290 * procfs.c: Likewise.
1291 * remote-sim.c: Likewise.
1292 * rs6000-nat.c: Likewise.
1293 * target.c: Likewise.
1294 * typeprint.c: Likewise.
1295 * ui-file.c: Likewise.
1296 * valops.c: Likewise.
1297 * valprint.c: Likewise.
1299 2014-08-07 Gary Benson <gbenson@redhat.com>
1301 * common/common-defs.h: Include string.h.
1302 * aarch64-tdep.c: Do not include string.h.
1303 * ada-exp.y: Likewise.
1304 * ada-lang.c: Likewise.
1305 * ada-lex.l: Likewise.
1306 * ada-typeprint.c: Likewise.
1307 * ada-valprint.c: Likewise.
1308 * aix-thread.c: Likewise.
1309 * alpha-linux-tdep.c: Likewise.
1310 * alpha-mdebug-tdep.c: Likewise.
1311 * alpha-nat.c: Likewise.
1312 * alpha-osf1-tdep.c: Likewise.
1313 * alpha-tdep.c: Likewise.
1314 * alphanbsd-tdep.c: Likewise.
1315 * amd64-dicos-tdep.c: Likewise.
1316 * amd64-linux-tdep.c: Likewise.
1317 * amd64-nat.c: Likewise.
1318 * amd64-sol2-tdep.c: Likewise.
1319 * amd64fbsd-tdep.c: Likewise.
1320 * amd64obsd-tdep.c: Likewise.
1321 * arch-utils.c: Likewise.
1322 * arm-linux-nat.c: Likewise.
1323 * arm-linux-tdep.c: Likewise.
1324 * arm-tdep.c: Likewise.
1325 * arm-wince-tdep.c: Likewise.
1326 * armbsd-tdep.c: Likewise.
1327 * armnbsd-nat.c: Likewise.
1328 * armnbsd-tdep.c: Likewise.
1329 * armobsd-tdep.c: Likewise.
1330 * avr-tdep.c: Likewise.
1331 * ax-gdb.c: Likewise.
1332 * ax-general.c: Likewise.
1333 * bcache.c: Likewise.
1334 * bfin-tdep.c: Likewise.
1335 * breakpoint.c: Likewise.
1336 * build-id.c: Likewise.
1337 * buildsym.c: Likewise.
1338 * c-exp.y: Likewise.
1339 * c-lang.c: Likewise.
1340 * c-typeprint.c: Likewise.
1341 * c-valprint.c: Likewise.
1342 * charset.c: Likewise.
1343 * cli-out.c: Likewise.
1344 * cli/cli-cmds.c: Likewise.
1345 * cli/cli-decode.c: Likewise.
1346 * cli/cli-dump.c: Likewise.
1347 * cli/cli-interp.c: Likewise.
1348 * cli/cli-logging.c: Likewise.
1349 * cli/cli-script.c: Likewise.
1350 * cli/cli-setshow.c: Likewise.
1351 * cli/cli-utils.c: Likewise.
1352 * coffread.c: Likewise.
1353 * common/agent.c: Likewise.
1354 * common/buffer.c: Likewise.
1355 * common/buffer.h: Likewise.
1356 * common/common-utils.c: Likewise.
1357 * common/filestuff.c: Likewise.
1358 * common/filestuff.c: Likewise.
1359 * common/format.c: Likewise.
1360 * common/print-utils.c: Likewise.
1361 * common/rsp-low.c: Likewise.
1362 * common/signals.c: Likewise.
1363 * common/vec.h: Likewise.
1364 * common/xml-utils.c: Likewise.
1365 * core-regset.c: Likewise.
1366 * corefile.c: Likewise.
1367 * corelow.c: Likewise.
1368 * cp-abi.c: Likewise.
1369 * cp-name-parser.y: Likewise.
1370 * cp-support.c: Likewise.
1371 * cp-valprint.c: Likewise.
1372 * cris-tdep.c: Likewise.
1373 * d-exp.y: Likewise.
1374 * darwin-nat.c: Likewise.
1375 * dbxread.c: Likewise.
1376 * dcache.c: Likewise.
1377 * demangle.c: Likewise.
1378 * dicos-tdep.c: Likewise.
1379 * disasm.c: Likewise.
1380 * doublest.c: Likewise.
1381 * dsrec.c: Likewise.
1382 * dummy-frame.c: Likewise.
1383 * dwarf2-frame.c: Likewise.
1384 * dwarf2loc.c: Likewise.
1385 * dwarf2read.c: Likewise.
1386 * elfread.c: Likewise.
1387 * environ.c: Likewise.
1389 * event-loop.c: Likewise.
1390 * exceptions.c: Likewise.
1392 * expprint.c: Likewise.
1393 * f-exp.y: Likewise.
1394 * f-lang.c: Likewise.
1395 * f-typeprint.c: Likewise.
1396 * f-valprint.c: Likewise.
1397 * fbsd-nat.c: Likewise.
1398 * findcmd.c: Likewise.
1399 * findvar.c: Likewise.
1400 * fork-child.c: Likewise.
1401 * frame.c: Likewise.
1402 * frv-linux-tdep.c: Likewise.
1403 * frv-tdep.c: Likewise.
1405 * gdb_bfd.c: Likewise.
1406 * gdbarch.c: Likewise.
1407 * gdbarch.sh: Likewise.
1408 * gdbtypes.c: Likewise.
1409 * gnu-nat.c: Likewise.
1410 * gnu-v2-abi.c: Likewise.
1411 * gnu-v3-abi.c: Likewise.
1412 * go-exp.y: Likewise.
1413 * go-lang.c: Likewise.
1414 * go32-nat.c: Likewise.
1415 * guile/guile.c: Likewise.
1416 * guile/scm-auto-load.c: Likewise.
1417 * hppa-hpux-tdep.c: Likewise.
1418 * hppa-linux-nat.c: Likewise.
1419 * hppanbsd-tdep.c: Likewise.
1420 * hppaobsd-tdep.c: Likewise.
1421 * i386-cygwin-tdep.c: Likewise.
1422 * i386-dicos-tdep.c: Likewise.
1423 * i386-linux-tdep.c: Likewise.
1424 * i386-nto-tdep.c: Likewise.
1425 * i386-sol2-tdep.c: Likewise.
1426 * i386-tdep.c: Likewise.
1427 * i386bsd-tdep.c: Likewise.
1428 * i386gnu-nat.c: Likewise.
1429 * i386nbsd-tdep.c: Likewise.
1430 * i386obsd-tdep.c: Likewise.
1431 * i387-tdep.c: Likewise.
1432 * ia64-libunwind-tdep.c: Likewise.
1433 * ia64-linux-nat.c: Likewise.
1434 * inf-child.c: Likewise.
1435 * inf-ptrace.c: Likewise.
1436 * inf-ttrace.c: Likewise.
1437 * infcall.c: Likewise.
1438 * infcmd.c: Likewise.
1439 * inflow.c: Likewise.
1440 * infrun.c: Likewise.
1441 * interps.c: Likewise.
1442 * iq2000-tdep.c: Likewise.
1443 * irix5-nat.c: Likewise.
1444 * jv-exp.y: Likewise.
1445 * jv-lang.c: Likewise.
1446 * jv-typeprint.c: Likewise.
1447 * jv-valprint.c: Likewise.
1448 * language.c: Likewise.
1449 * linux-fork.c: Likewise.
1450 * linux-nat.c: Likewise.
1451 * lm32-tdep.c: Likewise.
1452 * m2-exp.y: Likewise.
1453 * m2-typeprint.c: Likewise.
1454 * m32c-tdep.c: Likewise.
1455 * m32r-linux-nat.c: Likewise.
1456 * m32r-linux-tdep.c: Likewise.
1457 * m32r-rom.c: Likewise.
1458 * m32r-tdep.c: Likewise.
1459 * m68hc11-tdep.c: Likewise.
1460 * m68k-tdep.c: Likewise.
1461 * m68kbsd-tdep.c: Likewise.
1462 * m68klinux-nat.c: Likewise.
1463 * m68klinux-tdep.c: Likewise.
1464 * m88k-tdep.c: Likewise.
1465 * machoread.c: Likewise.
1466 * macrocmd.c: Likewise.
1468 * mdebugread.c: Likewise.
1469 * mem-break.c: Likewise.
1470 * memattr.c: Likewise.
1471 * memory-map.c: Likewise.
1472 * mep-tdep.c: Likewise.
1473 * mi/mi-cmd-break.c: Likewise.
1474 * mi/mi-cmd-disas.c: Likewise.
1475 * mi/mi-cmd-env.c: Likewise.
1476 * mi/mi-cmd-stack.c: Likewise.
1477 * mi/mi-cmd-var.c: Likewise.
1478 * mi/mi-cmds.c: Likewise.
1479 * mi/mi-console.c: Likewise.
1480 * mi/mi-getopt.c: Likewise.
1481 * mi/mi-interp.c: Likewise.
1482 * mi/mi-main.c: Likewise.
1483 * mi/mi-parse.c: Likewise.
1484 * microblaze-rom.c: Likewise.
1485 * microblaze-tdep.c: Likewise.
1486 * mingw-hdep.c: Likewise.
1487 * minidebug.c: Likewise.
1488 * minsyms.c: Likewise.
1489 * mips-irix-tdep.c: Likewise.
1490 * mips-linux-tdep.c: Likewise.
1491 * mips-tdep.c: Likewise.
1492 * mips64obsd-tdep.c: Likewise.
1493 * mipsnbsd-tdep.c: Likewise.
1494 * mipsread.c: Likewise.
1495 * mn10300-linux-tdep.c: Likewise.
1496 * mn10300-tdep.c: Likewise.
1497 * monitor.c: Likewise.
1498 * moxie-tdep.c: Likewise.
1499 * mt-tdep.c: Likewise.
1500 * nat/linux-btrace.c: Likewise.
1501 * nat/linux-osdata.c: Likewise.
1502 * nat/linux-procfs.c: Likewise.
1503 * nat/linux-ptrace.c: Likewise.
1504 * nat/linux-waitpid.c: Likewise.
1505 * nbsd-tdep.c: Likewise.
1506 * nios2-linux-tdep.c: Likewise.
1507 * nto-procfs.c: Likewise.
1508 * nto-tdep.c: Likewise.
1509 * objc-lang.c: Likewise.
1510 * objfiles.c: Likewise.
1511 * opencl-lang.c: Likewise.
1512 * osabi.c: Likewise.
1513 * osdata.c: Likewise.
1514 * p-exp.y: Likewise.
1515 * p-lang.c: Likewise.
1516 * p-typeprint.c: Likewise.
1517 * parse.c: Likewise.
1518 * posix-hdep.c: Likewise.
1519 * ppc-linux-nat.c: Likewise.
1520 * ppc-sysv-tdep.c: Likewise.
1521 * ppcfbsd-tdep.c: Likewise.
1522 * ppcnbsd-tdep.c: Likewise.
1523 * ppcobsd-tdep.c: Likewise.
1524 * printcmd.c: Likewise.
1525 * procfs.c: Likewise.
1526 * prologue-value.c: Likewise.
1527 * python/py-auto-load.c: Likewise.
1528 * python/py-gdb-readline.c: Likewise.
1529 * ravenscar-thread.c: Likewise.
1530 * regcache.c: Likewise.
1531 * registry.c: Likewise.
1532 * remote-fileio.c: Likewise.
1533 * remote-m32r-sdi.c: Likewise.
1534 * remote-mips.c: Likewise.
1535 * remote-notif.c: Likewise.
1536 * remote-sim.c: Likewise.
1537 * remote.c: Likewise.
1538 * reverse.c: Likewise.
1539 * rs6000-aix-tdep.c: Likewise.
1540 * ser-base.c: Likewise.
1541 * ser-go32.c: Likewise.
1542 * ser-mingw.c: Likewise.
1543 * ser-pipe.c: Likewise.
1544 * ser-tcp.c: Likewise.
1545 * ser-unix.c: Likewise.
1546 * serial.c: Likewise.
1547 * sh-tdep.c: Likewise.
1548 * sh64-tdep.c: Likewise.
1549 * shnbsd-tdep.c: Likewise.
1551 * sol-thread.c: Likewise.
1552 * solib-dsbt.c: Likewise.
1553 * solib-frv.c: Likewise.
1554 * solib-osf.c: Likewise.
1555 * solib-som.c: Likewise.
1556 * solib-spu.c: Likewise.
1557 * solib-target.c: Likewise.
1558 * solib.c: Likewise.
1559 * somread.c: Likewise.
1560 * source.c: Likewise.
1561 * sparc-nat.c: Likewise.
1562 * sparc-sol2-tdep.c: Likewise.
1563 * sparc-tdep.c: Likewise.
1564 * sparc64-tdep.c: Likewise.
1565 * sparc64fbsd-tdep.c: Likewise.
1566 * sparc64nbsd-tdep.c: Likewise.
1567 * sparcnbsd-tdep.c: Likewise.
1568 * spu-linux-nat.c: Likewise.
1569 * spu-multiarch.c: Likewise.
1570 * spu-tdep.c: Likewise.
1571 * stabsread.c: Likewise.
1572 * stack.c: Likewise.
1573 * std-regs.c: Likewise.
1574 * symfile.c: Likewise.
1575 * symmisc.c: Likewise.
1576 * symtab.c: Likewise.
1577 * target.c: Likewise.
1578 * thread.c: Likewise.
1579 * tilegx-linux-nat.c: Likewise.
1580 * tilegx-tdep.c: Likewise.
1582 * tracepoint.c: Likewise.
1583 * tui/tui-command.c: Likewise.
1584 * tui/tui-data.c: Likewise.
1585 * tui/tui-disasm.c: Likewise.
1586 * tui/tui-file.c: Likewise.
1587 * tui/tui-layout.c: Likewise.
1588 * tui/tui-out.c: Likewise.
1589 * tui/tui-regs.c: Likewise.
1590 * tui/tui-source.c: Likewise.
1591 * tui/tui-stack.c: Likewise.
1592 * tui/tui-win.c: Likewise.
1593 * tui/tui-windata.c: Likewise.
1594 * tui/tui-winsource.c: Likewise.
1595 * typeprint.c: Likewise.
1596 * ui-file.c: Likewise.
1597 * ui-out.c: Likewise.
1598 * user-regs.c: Likewise.
1599 * utils.c: Likewise.
1600 * v850-tdep.c: Likewise.
1601 * valarith.c: Likewise.
1602 * valops.c: Likewise.
1603 * valprint.c: Likewise.
1604 * value.c: Likewise.
1605 * varobj.c: Likewise.
1606 * vax-tdep.c: Likewise.
1607 * vaxnbsd-tdep.c: Likewise.
1608 * vaxobsd-tdep.c: Likewise.
1609 * windows-nat.c: Likewise.
1610 * xcoffread.c: Likewise.
1611 * xml-support.c: Likewise.
1612 * xstormy16-tdep.c: Likewise.
1613 * xtensa-linux-nat.c: Likewise.
1615 2014-08-07 Gary Benson <gbenson@redhat.com>
1617 * common/common-defs.h: Include gdb_assert.h.
1618 * aarch64-tdep.c: Do not include gdb_assert.h.
1619 * addrmap.c: Likewise.
1620 * aix-thread.c: Likewise.
1621 * alpha-linux-tdep.c: Likewise.
1622 * alpha-mdebug-tdep.c: Likewise.
1623 * alphanbsd-tdep.c: Likewise.
1624 * amd64-nat.c: Likewise.
1625 * amd64-tdep.c: Likewise.
1626 * amd64bsd-nat.c: Likewise.
1627 * amd64fbsd-nat.c: Likewise.
1628 * amd64fbsd-tdep.c: Likewise.
1629 * amd64nbsd-nat.c: Likewise.
1630 * amd64nbsd-tdep.c: Likewise.
1631 * amd64obsd-nat.c: Likewise.
1632 * amd64obsd-tdep.c: Likewise.
1633 * arch-utils.c: Likewise.
1634 * arm-tdep.c: Likewise.
1635 * armbsd-tdep.c: Likewise.
1637 * bcache.c: Likewise.
1638 * bfin-tdep.c: Likewise.
1639 * blockframe.c: Likewise.
1640 * breakpoint.c: Likewise.
1641 * bsd-kvm.c: Likewise.
1642 * bsd-uthread.c: Likewise.
1643 * buildsym.c: Likewise.
1644 * c-exp.y: Likewise.
1645 * c-lang.c: Likewise.
1646 * charset.c: Likewise.
1647 * cleanups.c: Likewise.
1648 * cli-out.c: Likewise.
1649 * cli/cli-decode.c: Likewise.
1650 * cli/cli-dump.c: Likewise.
1651 * cli/cli-logging.c: Likewise.
1652 * cli/cli-script.c: Likewise.
1653 * cli/cli-utils.c: Likewise.
1654 * coffread.c: Likewise.
1655 * common/common-utils.c: Likewise.
1656 * common/queue.h: Likewise.
1657 * common/signals.c: Likewise.
1658 * common/vec.h: Likewise.
1659 * complaints.c: Likewise.
1660 * completer.c: Likewise.
1661 * corelow.c: Likewise.
1662 * cp-abi.c: Likewise.
1663 * cp-name-parser.y: Likewise.
1664 * cp-namespace.c: Likewise.
1665 * cp-support.c: Likewise.
1666 * cris-tdep.c: Likewise.
1667 * dbxread.c: Likewise.
1668 * dictionary.c: Likewise.
1669 * doublest.c: Likewise.
1670 * dsrec.c: Likewise.
1671 * dummy-frame.c: Likewise.
1672 * dwarf2-frame-tailcall.c: Likewise.
1673 * dwarf2-frame.c: Likewise.
1674 * dwarf2expr.c: Likewise.
1675 * dwarf2loc.c: Likewise.
1676 * dwarf2read.c: Likewise.
1678 * event-loop.c: Likewise.
1679 * exceptions.c: Likewise.
1680 * expprint.c: Likewise.
1681 * f-valprint.c: Likewise.
1682 * fbsd-nat.c: Likewise.
1683 * findvar.c: Likewise.
1684 * frame-unwind.c: Likewise.
1685 * frame.c: Likewise.
1686 * frv-tdep.c: Likewise.
1687 * gcore.c: Likewise.
1688 * gdb-dlfcn.c: Likewise.
1689 * gdb_bfd.c: Likewise.
1690 * gdbarch.c: Likewise.
1691 * gdbarch.sh: Likewise.
1692 * gdbtypes.c: Likewise.
1693 * gnu-nat.c: Likewise.
1694 * gnu-v3-abi.c: Likewise.
1695 * go-lang.c: Likewise.
1696 * guile/scm-exception.c: Likewise.
1697 * guile/scm-gsmob.c: Likewise.
1698 * guile/scm-lazy-string.c: Likewise.
1699 * guile/scm-math.c: Likewise.
1700 * guile/scm-pretty-print.c: Likewise.
1701 * guile/scm-safe-call.c: Likewise.
1702 * guile/scm-utils.c: Likewise.
1703 * guile/scm-value.c: Likewise.
1704 * h8300-tdep.c: Likewise.
1705 * hppa-hpux-nat.c: Likewise.
1706 * hppa-tdep.c: Likewise.
1707 * hppanbsd-tdep.c: Likewise.
1708 * hppaobsd-tdep.c: Likewise.
1709 * i386-darwin-nat.c: Likewise.
1710 * i386-darwin-tdep.c: Likewise.
1711 * i386-nto-tdep.c: Likewise.
1712 * i386-tdep.c: Likewise.
1713 * i386bsd-nat.c: Likewise.
1714 * i386fbsd-tdep.c: Likewise.
1715 * i386gnu-nat.c: Likewise.
1716 * i386nbsd-tdep.c: Likewise.
1717 * i386obsd-tdep.c: Likewise.
1718 * i387-tdep.c: Likewise.
1719 * ia64-libunwind-tdep.c: Likewise.
1720 * ia64-tdep.c: Likewise.
1721 * inf-ptrace.c: Likewise.
1722 * inf-ttrace.c: Likewise.
1723 * infcall.c: Likewise.
1724 * infcmd.c: Likewise.
1725 * infrun.c: Likewise.
1726 * inline-frame.c: Likewise.
1727 * interps.c: Likewise.
1728 * jv-lang.c: Likewise.
1729 * jv-typeprint.c: Likewise.
1730 * linux-fork.c: Likewise.
1731 * linux-nat.c: Likewise.
1732 * linux-thread-db.c: Likewise.
1733 * m32c-tdep.c: Likewise.
1734 * m32r-linux-nat.c: Likewise.
1735 * m32r-tdep.c: Likewise.
1736 * m68k-tdep.c: Likewise.
1737 * m68kbsd-nat.c: Likewise.
1738 * m68kbsd-tdep.c: Likewise.
1739 * m88k-tdep.c: Likewise.
1740 * machoread.c: Likewise.
1741 * macroexp.c: Likewise.
1742 * macrotab.c: Likewise.
1743 * maint.c: Likewise.
1744 * mdebugread.c: Likewise.
1745 * memory-map.c: Likewise.
1746 * mep-tdep.c: Likewise.
1747 * mi/mi-common.c: Likewise.
1748 * microblaze-tdep.c: Likewise.
1749 * mingw-hdep.c: Likewise.
1750 * mips-linux-nat.c: Likewise.
1751 * mips-linux-tdep.c: Likewise.
1752 * mips-tdep.c: Likewise.
1753 * mips64obsd-tdep.c: Likewise.
1754 * mipsnbsd-tdep.c: Likewise.
1755 * mn10300-linux-tdep.c: Likewise.
1756 * mn10300-tdep.c: Likewise.
1757 * moxie-tdep.c: Likewise.
1758 * mt-tdep.c: Likewise.
1759 * nat/linux-btrace.c: Likewise.
1760 * nat/linux-osdata.c: Likewise.
1761 * nat/linux-ptrace.c: Likewise.
1762 * nat/mips-linux-watch.c: Likewise.
1763 * nios2-linux-tdep.c: Likewise.
1764 * nios2-tdep.c: Likewise.
1765 * objc-lang.c: Likewise.
1766 * objfiles.c: Likewise.
1767 * obsd-nat.c: Likewise.
1768 * opencl-lang.c: Likewise.
1769 * osabi.c: Likewise.
1770 * parse.c: Likewise.
1771 * ppc-linux-nat.c: Likewise.
1772 * ppc-sysv-tdep.c: Likewise.
1773 * ppcfbsd-nat.c: Likewise.
1774 * ppcfbsd-tdep.c: Likewise.
1775 * ppcnbsd-nat.c: Likewise.
1776 * ppcnbsd-tdep.c: Likewise.
1777 * ppcobsd-nat.c: Likewise.
1778 * ppcobsd-tdep.c: Likewise.
1779 * printcmd.c: Likewise.
1780 * procfs.c: Likewise.
1781 * prologue-value.c: Likewise.
1782 * psymtab.c: Likewise.
1783 * python/py-lazy-string.c: Likewise.
1784 * python/py-value.c: Likewise.
1785 * regcache.c: Likewise.
1786 * reggroups.c: Likewise.
1787 * registry.c: Likewise.
1788 * remote-sim.c: Likewise.
1789 * remote.c: Likewise.
1790 * rs6000-aix-tdep.c: Likewise.
1791 * rs6000-tdep.c: Likewise.
1792 * s390-linux-tdep.c: Likewise.
1793 * score-tdep.c: Likewise.
1794 * ser-base.c: Likewise.
1795 * ser-mingw.c: Likewise.
1796 * sh-tdep.c: Likewise.
1797 * sh64-tdep.c: Likewise.
1798 * solib-darwin.c: Likewise.
1799 * solib-spu.c: Likewise.
1800 * solib-svr4.c: Likewise.
1801 * source.c: Likewise.
1802 * sparc-nat.c: Likewise.
1803 * sparc-sol2-tdep.c: Likewise.
1804 * sparc-tdep.c: Likewise.
1805 * sparc64-sol2-tdep.c: Likewise.
1806 * sparc64-tdep.c: Likewise.
1807 * sparc64fbsd-tdep.c: Likewise.
1808 * sparc64nbsd-tdep.c: Likewise.
1809 * sparc64obsd-tdep.c: Likewise.
1810 * sparcnbsd-tdep.c: Likewise.
1811 * sparcobsd-tdep.c: Likewise.
1812 * spu-multiarch.c: Likewise.
1813 * spu-tdep.c: Likewise.
1814 * stabsread.c: Likewise.
1815 * stack.c: Likewise.
1816 * symfile.c: Likewise.
1817 * symtab.c: Likewise.
1818 * target-descriptions.c: Likewise.
1819 * target-memory.c: Likewise.
1820 * target.c: Likewise.
1821 * tic6x-linux-tdep.c: Likewise.
1822 * tic6x-tdep.c: Likewise.
1823 * tilegx-linux-nat.c: Likewise.
1824 * tilegx-tdep.c: Likewise.
1826 * tramp-frame.c: Likewise.
1827 * tui/tui-out.c: Likewise.
1828 * tui/tui-winsource.c: Likewise.
1829 * ui-out.c: Likewise.
1830 * user-regs.c: Likewise.
1831 * utils.c: Likewise.
1832 * v850-tdep.c: Likewise.
1833 * valops.c: Likewise.
1834 * value.c: Likewise.
1835 * varobj.c: Likewise.
1836 * vax-nat.c: Likewise.
1837 * xml-syscall.c: Likewise.
1838 * xml-tdesc.c: Likewise.
1839 * xstormy16-tdep.c: Likewise.
1840 * xtensa-linux-nat.c: Likewise.
1841 * xtensa-tdep.c: Likewise.
1843 2014-08-07 Gary Benson <gbenson@redhat.com>
1845 * common/common-defs.h: Include common-utils.h.
1846 * defs.h: Do not include common-utils.h.
1847 * common/gdb_assert.h: Likewise.
1848 * darwin-nat.h: Likewise.
1849 * nat/linux-btrace.c: Likewise.
1850 * target/waitstatus.h: Likewise.
1852 2014-08-07 Gary Benson <gbenson@redhat.com>
1854 * common/common-defs.h: Include ptid.h.
1855 * defs.h: Do not include ptid.h.
1856 * inferior.h: Likewise.
1857 * infrun.h: Likewise.
1858 * nat/linux-btrace.h: Likewise.
1859 * nat/linux-osdata.h: Likewise.
1860 * target/waitstatus.h: Likewise.
1862 2014-08-07 Gary Benson <gbenson@redhat.com>
1864 * common/common-defs.h: Include gdb_locale.h.
1865 * defs.h: Do not include gdb_locale.h.
1867 2014-08-07 Gary Benson <gbenson@redhat.com>
1869 * common/common-defs.h: Include gdb/signals.h.
1870 * defs.h: Do not include gdb/signals.h.
1872 2014-08-07 Gary Benson <gbenson@redhat.com>
1874 * common/common-defs.h: Include pathmax.h.
1875 * defs.h: Do not include pathmax.h.
1877 2014-08-07 Gary Benson <gbenson@redhat.com>
1879 * common/common-defs.h: Include libiberty.h.
1880 * defs.h: Do not include libiberty.h.
1881 * common/queue.h: Likewise.
1882 * cp-name-parser.y: Likewise.
1883 * mi/mi-cmd-catch.c: Likewise.
1884 * python/python.c: Likewise.
1886 2014-08-07 Gary Benson <gbenson@redhat.com>
1888 * common/common-defs.h: Include ansidecl.h.
1889 * defs.h: Do not include ansidecl.h.
1890 * common/buffer.h: Likewise.
1891 * common/common-utils.h: Likewise.
1893 2014-08-07 Gary Benson <gbenson@redhat.com>
1895 * common/common-defs.h: Include stddef.h.
1896 * defs.h: Do not include stddef.h.
1897 * common/common-utils.h: Likewise.
1898 * amd64fbsd-nat.c: Likewise.
1899 * bcache.c: Likewise.
1900 * charset.c: Likewise.
1901 * common/buffer.h: Likewise.
1902 * common/vec.h: Likewise.
1903 * i386bsd-nat.c: Likewise.
1904 * nat/linux-btrace.h: Likewise.
1905 * ppcfbsd-nat.c: Likewise.
1906 * ppcnbsd-tdep.h: Likewise.
1907 * ppcobsd-nat.c: Likewise.
1908 * ppcobsd-tdep.h: Likewise.
1909 * python/py-gdb-readline.c: Likewise.
1911 2014-08-07 Gary Benson <gbenson@redhat.com>
1913 * common/common-defs.h: Include stdarg.h.
1914 * defs.h: Do not include stdarg.h.
1915 * ada-lang.c: Likewise.
1916 * common/common-utils.h: Likewise.
1917 * guile/scm-string.c: Likewise.
1918 * guile/scm-utils.c: Likewise.
1919 * m32c-tdep.c: Likewise.
1921 2014-08-07 Gary Benson <gbenson@redhat.com>
1923 * common/common-defs.h: Include stdlib.h.
1924 * defs.h: Do not include stdlib.h.
1925 * addrmap.c: Likewise.
1926 * bcache.c: Likewise.
1927 * common/buffer.c: Likewise.
1928 * common/common-utils.c: Likewise.
1929 * cp-name-parser.y: Likewise.
1930 * go32-nat.c: Likewise.
1931 * mn10300-linux-tdep.c: Likewise.
1932 * nat/linux-osdata.c: Likewise.
1933 * tui/tui.c: Likewise.
1934 * windows-nat.c: Likewise.
1936 2014-08-07 Gary Benson <gbenson@redhat.com>
1938 * common/common-defs.h: Include stdio.h.
1939 * defs.h: Do not include stdio.h.
1940 * ada-lang.c: Likewise.
1941 * common/buffer.c: Likewise.
1942 * common/common-utils.c: Likewise.
1943 * cp-name-parser.y: Likewise.
1944 * gnu-nat.c: Likewise.
1945 * go32-nat.c: Likewise.
1946 * i386gnu-nat.c: Likewise.
1947 * proc-api.c: Likewise.
1948 * proc-events.c: Likewise.
1949 * proc-flags.c: Likewise.
1950 * proc-why.c: Likewise.
1951 * python/python-internal.h: Likewise.
1952 * target-memory.c: Likewise.
1953 * tui/tui-io.c: Likewise.
1954 * tui/tui.c: Likewise.
1956 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1958 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1959 (scan_dyntag_auxv): Same.
1961 2014-08-06 Yao Qi <yao@codesourcery.com>
1963 * amd64-linux-nat.c: Remove duplicated include
1965 * i386-linux-nat.c: Likewise.
1967 2014-08-06 Yao Qi <yao@codesourcery.com>
1969 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1970 operand" with "Special opcode" in comments.
1972 2014-08-05 Gary Benson <gbenson@redhat.com>
1974 * interps.c (initialize_interps): Remove prototype.
1975 (interpreter_initialized): Remove static global.
1976 (interp_add): Do not call initialize_interps.
1977 (initialize_interps): Remove function.
1979 2014-08-05 Gary Benson <gbenson@redhat.com>
1981 * utils.c (vwarning): Remove spurious va_end.
1983 2014-08-05 Alan Modra <amodra@gmail.com>
1985 * charset.c (convert_between_encodings): Cast result of obstack_base.
1986 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1987 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1988 (read_unwind_info): Use size_t for some locals.
1989 * jit.c (finalize_symtab): Likewise.
1990 * utils.c (hashtab_obstack_allocate): Likewise.
1991 * symmisc.c (print_objfile_statistics): Update format strings.
1993 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1995 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1996 (Changes in GDB 7.8): ... here.
1998 2014-08-04 Tom Tromey <tromey@redhat.com>
2000 * target.c (set_targetdebug): New function.
2001 (initialize_targets): Pass set_targetdebug when creating "set
2004 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2006 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2007 if detecting a variable-sized field that is not the last field.
2008 Fix struct type length computation.
2010 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2012 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2015 2014-08-01 Joel Brobecker <brobecker@adacore.com>
2017 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2018 Remove "+ 8" offset in computation of CHAIN_VMA.
2020 2014-07-31 Doug Evans <dje@google.com>
2022 * inflow.c (child_terminal_inferior): Add comment.
2023 (child_terminal_ours_for_output): Add comment.
2024 (child_terminal_ours): Add comment.
2025 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2026 (linux_nat_terminal_ours): Add comment.
2028 2014-07-31 Gary Benson <gbenson@redhat.com>
2030 * common/btrace-common.h: Do not include defs.h or server.h.
2031 * nat/mips-linux-watch.h: Likewise.
2032 * gdb-dlfcn.h: Do not include defs.h.
2033 * tracefile.h: Likewise.
2035 2014-07-30 Roland McGrath <mcgrathr@google.com>
2037 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2039 2014-07-30 Tom Tromey <tromey@redhat.com>
2041 * bsd-kvm.c (bsd_kvm_open): Constify.
2042 * corelow.c (core_open): Constify.
2043 * ctf.c (ctf_open): Constify.
2044 * dbug-rom.c (dbug_open): Constify.
2045 * exec.c (exec_open): Constify.
2046 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2047 * microblaze-rom.c (picobug_open): Constify.
2048 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2050 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2051 * record-btrace.c (record_btrace_open): Constify.
2052 * record-full.c (record_full_core_open_1, record_full_open_1)
2053 (record_full_open): Constify.
2054 * remote-m32r-sdi.c (m32r_open): Constify.
2055 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2056 (rockhopper_open, lsi_open): Constify.
2057 * remote-sim.c (gdbsim_open): Constify.
2058 * remote.c (remote_open, extended_remote_open, remote_open_1):
2060 * target.h (struct target_ops) <to_open>: Make "arg" const.
2061 * tracefile-tfile.c (tfile_open): Constify.
2063 2014-07-30 Tom Tromey <tromey@redhat.com>
2065 * breakpoint.c (map_breakpoint_numbers): Update.
2066 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2067 (get_number_const): New function.
2068 (get_number): Rewrite using get_number_const.
2069 (init_number_or_range): Make "string" const.
2070 (number_is_in_list): Make "list" const.
2071 * cli/cli-utils.h (get_number_const): Declare.
2072 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2073 (init_number_or_range, number_is_in_list): Update.
2074 * printcmd.c (map_display_numbers): Update.
2075 * value.c (value_from_history_ref): Constify.
2076 * value.h (value_from_history_ref): Update.
2078 2014-07-30 Tom Tromey <tromey@redhat.com>
2080 * corefile.c (hook_type, call_extra_exec_file_hooks)
2081 (specify_exec_file_hook): Constify.
2082 * exec.c (exec_file_attach): Make "filename" const.
2083 * gdbcore.h (deprecated_exec_file_display_hook)
2084 (specify_exec_file_hook, exec_file_attach): Constify.
2085 * main.c (captured_main): Use catch_command_errors_const.
2087 2014-07-30 Tom Tromey <tromey@redhat.com>
2089 * target.c (open_target): New function.
2090 (add_target_with_completer, add_deprecated_target_alias): Use
2091 set_cmd_sfunc, set_cmd_context.
2092 (debug_to_open): Remove.
2093 (setup_target_debug): Update.
2095 2014-07-30 Yao Qi <yao@codesourcery.com>
2097 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2099 * parse.c (exp_iterate): Update comments.
2101 2014-07-30 Gary Benson <gbenson@redhat.com>
2103 * common/common-defs.h: New file.
2104 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2105 * defs.h: Include common-defs.h.
2106 Do not include config.h or build-gnulib/config.h.
2108 2014-07-30 Gary Benson <gbenson@redhat.com>
2110 * common/common-utils.h: Do not include config.h.
2111 * nat/linux-btrace.h: Likewise.
2113 2014-07-30 Gary Benson <gbenson@redhat.com>
2115 * btrace.c: Include defs.h.
2116 * common/ptid.c: Include defs.h or server.h as appropriate.
2117 * nat/mips-linux-watch.c: Likewise.
2119 2014-07-29 Tom Tromey <tromey@redhat.com>
2121 * target.c (target_is_pushed): Simplify.
2123 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2127 2014-07-29 Yao Qi <yao@codesourcery.com>
2130 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2132 2014-07-28 Doug Evans <xdje42@gmail.com>
2135 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2136 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2139 2014-07-28 Will Newton <will.newton@linaro.org>
2141 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2142 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2143 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2144 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2145 (THUMB2_EABI_SYSCALL): Likewise.
2146 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2148 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2149 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2151 2014-07-27 Doug Evans <xdje42@gmail.com>
2153 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2155 2014-07-27 Doug Evans <xdje42@gmail.com>
2157 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2159 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2160 Doug Evans <xdje42@gmail.com>
2163 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2164 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2165 * configure.ac: Try to use guild to compile an scm file, if it fails
2166 then disable guile support.
2167 * configure: Regenerate.
2168 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2170 (GUILE_COMPILED_FILES): New variable.
2171 (GUILE_FILES) Update.
2172 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2173 (stamp-guile): Compile scm files.
2174 * guile/guile.c (boot_guile_support): New function.
2175 (standard_throw_args_p): New function.
2176 (print_standard_throw_error, print_throw_error): New functions.
2177 (handle_boot_error): New function.
2178 (initialize_scheme_side): Rewrite to call boot_guile_support.
2179 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2180 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2182 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2183 Doug Evans <xdje42@gmail.com>
2186 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2187 * guile/lib/gdb/support.scm: New file.
2188 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2189 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2191 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2193 (%assert-type): Ditto, and renamed to assert-type.
2194 (%exception-print-style): Delete.
2196 2014-07-26 Doug Evans <xdje42@gmail.com>
2199 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2200 * configure: Regenerate.
2201 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2203 (PYTHON_FILES): New variable.
2204 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2205 (GUILE_FILES): New variable.
2206 (stamp-python, install-python, uninstall-python): Handle empty
2208 (stamp-guile, install-guile, uninstall-guile): Ditto.
2210 2014-07-26 Doug Evans <xdje42@gmail.com>
2213 * guile/lib/gdb.scm (pretty-printers): Export.
2214 (set-pretty-printers!): Export.
2215 * guile/lib/gdb/printing.scm (gdb module): Update.
2216 (prepend-pretty-printer!, append-pretty-printer!): Update.
2217 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2218 (pretty_printer_list_var): Delete.
2219 (pretty_printer_list): New static global.
2220 (gdbscm_pretty_printers): New function.
2221 (gdbscm_set_pretty_printers_x): New function.
2222 (ppscm_find_pretty_printer_from_gdb): Update.
2223 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2224 (gdbscm_initialize_pretty_printers): Update.
2226 2014-07-26 Doug Evans <xdje42@gmail.com>
2229 * configure.ac: Add check for header gc/gc.h.
2230 Add check for function setenv.
2231 * configure: Regenerate.
2232 * config.in: Regenerate.
2233 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2235 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2237 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2238 variation in gdbarch matching.
2240 2014-07-25 Tom Tromey <tromey@redhat.com>
2242 * exec.c (using_exec_ops): Remove.
2243 (exec_close_1): Update. Remove extraneous block, reindent.
2244 (add_target_sections): Use target_is_pushed.
2246 2014-07-25 Pedro Alves <palves@redhat.com>
2248 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2249 * monitor.c (monitor_create_inferior): Likewise.
2250 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2251 * remote-sim.c (gdbsim_create_inferior): Likewise.
2252 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2253 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2254 * windows-nat.c (do_initial_windows_stuff): Likewise.
2256 2014-07-25 Pedro Alves <palves@redhat.com>
2258 * NEWS: Mention signal passing and "signal" command changes.
2259 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2261 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2263 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2264 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2265 (jump_command): Adjust clear_proceed_status call.
2266 (signal_command): Warn if other thread that are resumed have
2267 signals that will be delivered. Adjust clear_proceed_status call.
2268 (until_next_command, finish_command)
2269 (proceed_after_attach_callback, attach_command_post_wait)
2270 (attach_command): Adjust clear_proceed_status call.
2271 * infrun.c (proceed_after_vfork_done): Likewise.
2272 (proceed_after_attach_callback): Adjust comment.
2273 (clear_proceed_status_thread): Clear stop_signal if not in pass
2275 (clear_proceed_status_callback): Delete.
2276 (clear_proceed_status): New 'step' parameter. Only clear the
2277 proceed status of threads the command being prepared is about to
2279 (proceed): If passed in an explicit signal, override stop_signal
2280 with it. Don't pass the last stop signal to the thread we're
2282 (init_wait_for_inferior): Adjust clear_proceed_status call.
2283 (switch_back_to_stepped_thread): Clear the signal if it should not
2285 * infrun.h (clear_proceed_status): New 'step' parameter.
2286 (user_visible_resume_ptid): Add comment.
2287 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2288 signal is in pass state.
2289 * remote.c (append_pending_thread_resumptions): Likewise.
2290 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2292 2014-07-25 Tom Tromey <tromey@redhat.com>
2294 * target.h (target_stopped_data_address)
2295 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2298 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2300 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2302 (avr_pointer_to_address): Likewise.
2304 2014-07-24 Tom Tromey <tromey@redhat.com>
2306 * monitor.c (compile_pattern): Update.
2307 * target.h (struct target_ops) <to_shortname, to_longname,
2310 2014-07-24 Tom Tromey <tromey@redhat.com>
2312 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2313 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2314 (add_info_alias, add_com): Make "doc" const.
2315 (print_doc_line): Make "str" const.
2316 (delete_cmd): Update.
2317 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2318 (print_doc_line): Update.
2319 * cli/cli-script.c (document_command): Update.
2320 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2321 (add_com, add_info, add_info_alias): Update.
2322 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2323 * python/py-cmd.c (cmdpy_destroyer): Update.
2325 2014-07-24 Tom Tromey <tromey@redhat.com>
2327 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2328 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2329 (help_cmd_list): Constify.
2330 (lookup_cmd): Update.
2331 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2333 (help_cmd_list, apropos_cmd): Update.
2334 * cli/cli-script.c (show_user): Update.
2335 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2336 * cli/cli-setshow.h (cmd_show_list): Update.
2337 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2338 (cmd_show_list): Update.
2339 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2340 * python/py-cmd.c (cmdpy_destroyer): Update.
2342 2014-07-24 Tom Tromey <tromey@redhat.com>
2344 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2345 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2347 * command.h (deprecate_cmd): Update.
2348 * maint.c (maintenance_do_deprecate): Add casts.
2350 2014-07-24 Tom Tromey <tromey@redhat.com>
2352 * cli/cli-decode.c (help_cmd): Make parameter "const".
2353 * cli/cli-decode.h (help_cmd): Update.
2355 2014-07-24 Tom Tromey <tromey@redhat.com>
2357 * stack.c (up_silently_base, down_silently_base): Make argument
2360 2014-07-24 Tom Tromey <tromey@redhat.com>
2362 * solib.c (solib_add): Make "pattern" const.
2363 * solib.h (solib_add): Update.
2365 2014-07-24 Tom Tromey <tromey@redhat.com>
2367 * remote.c (remote_serial_open, print_packet, putpkt)
2368 (putpkt_binary): Constify.
2369 * remote.h (putpkt): Update.
2371 2014-07-24 Tom Tromey <tromey@redhat.com>
2373 * monitor.c (monitor_open): Make "args" const.
2374 * monitor.h (monitor_open): Update.
2376 2014-07-24 Tom Tromey <tromey@redhat.com>
2378 * maint.c (match_bfd_flags): Make "string" const.
2379 (print_bfd_section_info): Remove casts.
2380 (print_objfile_section_info): Make "string" const.
2382 2014-07-24 Tom Tromey <tromey@redhat.com>
2384 * inf-child.c (inf_child_open_target): Make "arg" const.
2385 * inf-child.h (inf_child_open_target): Update.
2387 2014-07-24 Tom Tromey <tromey@redhat.com>
2389 * environ.c (unset_in_environ): Make "var" const.
2390 * environ.h (unset_in_environ): Update.
2392 2014-07-24 Tom Tromey <tromey@redhat.com>
2394 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2396 (scan_filename_with_cleanup): Likewise.
2397 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2398 Make arguments const.
2399 (restore_command): Update.
2401 2014-07-24 Pedro Alves <palves@redhat.com>
2403 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2405 2014-07-24 Tom Tromey <tromey@redhat.com>
2406 Gary Benson <gbenson@redhat.com>
2408 * nat/linux-ptrace.c (additional_flags): New global.
2409 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2410 additional_flags; don't check GDBSERVER.
2411 (linux_ptrace_set_additional_flags): New function.
2412 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2414 * linux-nat.c (_initialize_linux_nat): Call
2415 linux_ptrace_set_additional_flags.
2417 2014-07-24 Tom Tromey <tromey@redhat.com>
2419 * make-target-delegates (munge_type, write_debugmethod): New
2421 (debug_names): New global.
2422 ($TARGET_DEBUG_PRINTER): New global.
2423 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2425 Write debug methods. Generate init_debug_target.
2426 * target-debug.h: New file.
2427 * target-delegates.c: Rebuild.
2428 * target.c: Include target-debug.h.
2429 (debug_target): Hoist definition.
2430 (target_kill, target_get_section_table, target_memory_map)
2431 (target_flash_erase, target_flash_done, target_detach)
2432 (target_disconnect, target_wait, target_resume)
2433 (target_pass_signals, target_program_signals, target_follow_fork)
2434 (target_mourn_inferior, target_search_memory)
2435 (target_thread_address_space, target_close)
2436 (target_find_new_threads, target_core_of_thread)
2437 (target_verify_memory, target_insert_mask_watchpoint)
2438 (target_remove_mask_watchpoint): Remove targetdebug code.
2439 (debug_to_post_attach, debug_to_prepare_to_store)
2440 (debug_to_files_info, debug_to_insert_breakpoint)
2441 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2442 (debug_to_region_ok_for_hw_watchpoint)
2443 (debug_to_can_accel_watchpoint_condition)
2444 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2445 (debug_to_watchpoint_addr_within_range)
2446 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2447 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2448 (debug_to_terminal_init, debug_to_terminal_inferior)
2449 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2450 (debug_to_terminal_save_ours, debug_to_terminal_info)
2451 (debug_to_load, debug_to_post_startup_inferior)
2452 (debug_to_insert_fork_catchpoint)
2453 (debug_to_remove_fork_catchpoint)
2454 (debug_to_insert_vfork_catchpoint)
2455 (debug_to_remove_vfork_catchpoint)
2456 (debug_to_insert_exec_catchpoint)
2457 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2458 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2459 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2460 (setup_target_debug): Call init_debug_target.
2461 * target.h (TARGET_DEBUG_PRINTER): New macro.
2462 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2463 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2465 2014-07-24 Gary Benson <gbenson@redhat.com>
2467 * exceptions.h (throw_vfatal): Renamed to...
2468 (throw_vquit): New declaration.
2469 (throw_quit): Likewise.
2470 * exceptions.c (throw_vfatal): Renamed to...
2471 (throw_vquit): New function.
2472 (throw_quit): Likewise.
2473 (throw_error): Call throw_verror rather than throw_it.
2474 * utils.h (vfatal): Removed.
2476 * utils.c (vfatal): Removed.
2478 (internal_verror): Replaced call to fatal with call to throw_quit.
2479 (quit): Replaced calls to fatal with calls to throw_quit.
2481 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2483 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2486 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2488 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2489 less than zero in conditional expression.
2491 2014-07-23 Tom Tromey <tromey@redhat.com>
2493 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2494 ($INTRO_PART): Don't match whitespace.
2495 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2497 ($METHOD): Add $METHOD_TRAILER.
2499 (scan_target_h): New sub.
2500 Change main loop not to collect state.
2501 * target-delegates.c: Rebuild.
2503 2014-07-23 Gary Benson <gbenson@redhat.com>
2505 * cp-support.c (gdb_demangle): Fix build on systems without
2508 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2510 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2511 for reference entry value target data value.
2513 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2515 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2516 value_available_contents_eq.
2518 2014-07-22 Pedro Alves <palves@redhat.com>
2520 * value.c (allocate_optimized_out_value): Don't mark value as
2523 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2525 * MAINTAINERS (Write After Approval): Update my email address.
2527 2014-07-20 Doug Evans <dje@google.com>
2530 * remote.c (putpkt_binary): Add text to error message.
2532 2014-07-20 Yao Qi <yao@codesourcery.com>
2534 * eval.c: Remove "Chill" from comments.
2535 * gdbtypes.h: Likewise.
2536 * symtab.h: Likewise.
2538 2014-07-20 Yao Qi <yao@codesourcery.com>
2540 * std-operator.def: Update comments to TERNOP_SLICE.
2542 2014-07-20 Yao Qi <yao@codesourcery.com>
2544 * std-operator.def: Remove BINOP_RANGE.
2545 * breakpoint.c (watchpoint_exp_is_const): Update.
2546 * expprint.c (dump_subexp_body_standard): Likewise.
2547 * eval.c (init_array_element): Remove dead code.
2548 (evaluate_subexp_standard): Likewise.
2550 2014-07-20 Yao Qi <yao@codesourcery.com>
2552 * std-operator.def: Remove BINOP_IN.
2553 * breakpoint.c (watchpoint_exp_is_const): Update.
2554 * eval.c (evaluate_subexp_standard): Likewise.
2555 * expprint.c (dump_subexp_body_standard): Likewise.
2557 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2559 * microblaze-tdep.c (microblaze_register_names): Add
2560 the rshr and rslr register names.
2561 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2562 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2563 Use of tdesc_numbered_register. Use of
2564 microblaze_register_g_packet_guesses. Use of
2565 tdesc_use_registers. Use of set_gdbarch_register_type.
2566 (microblaze_register_g_packet_guesses): New.
2567 * microblaze-tdep.h (microblaze_reg_num): Add
2568 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2569 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2570 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2571 * features/microblaze-core.xml: New file.
2572 * features/microblaze-stack-protect.xml: New file.
2573 * features/microblaze-with-stack-protect.c: New file.
2574 * features/microblaze-with-stack-protect.xml: New file.
2575 * features/microblaze.xml: New file.
2576 * features/microblaze.c: New file.
2577 * features/Makefile (microblaze-with-stack-protect): Add
2578 microblaze-with-stack-protect microblaze and microblaze-expedite.
2579 * regformats/microblaze-with-stack-protect.dat: New file.
2580 * regformats/microblaze.dat: New file.
2581 * doc/gdb.texinfo (MicroBlaze Features): Added.
2583 2014-07-18 Tom Tromey <tromey@redhat.com>
2585 * exec.c (exec_ops): Now static.
2586 * exec.h (exec_ops): Don't declare.
2588 2014-07-18 Tom Tromey <tromey@redhat.com>
2590 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2591 to find_target_beneath.
2592 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2593 find_target_beneath.
2594 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2596 2014-07-18 Tom Tromey <tromey@redhat.com>
2599 * utils.c (quit): Use target_supports_terminal_ours.
2600 * target.h (target_supports_terminal_ours): Declare.
2601 * target.c (target_supports_delete_record): Don't check
2602 to_delete_record against NULL.
2603 (target_supports_terminal_ours): New function.
2605 2014-07-18 Tom Tromey <tromey@redhat.com>
2608 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2609 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2610 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2611 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2612 * windows-nat.c (windows_xfer_partial): Always delegate.
2613 * record-btrace.c (record_btrace_xfer_partial): Simplify
2615 (record_btrace_fetch_registers, record_btrace_store_registers)
2616 (record_btrace_prepare_to_store, record_btrace_resume)
2617 (record_btrace_wait, record_btrace_find_new_threads)
2618 (record_btrace_thread_alive): Likewise.
2619 * procfs.c (procfs_xfer_partial): Always delegate.
2620 * corelow.c (core_xfer_partial): Always delegate.
2621 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2623 2014-07-18 Tom Tromey <tromey@redhat.com>
2625 * exec.c (exec_make_note_section): Move earlier.
2627 2014-07-17 Doug Evans <dje@google.com>
2630 * maint.c (count_symtabs_and_blocks): Handle NULL
2631 current_program_space.
2632 (report_command_stats): Check global enabled flag in addition to
2633 recorded enabled flag.
2634 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2636 2014-07-16 Pedro Alves <palves@redhat.com>
2638 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2640 2014-07-16 Tom Tromey <tromey@redhat.com>
2642 * target.h (struct target_ops) <to_delete_record>: Reformat
2645 2014-07-16 Tom Tromey <tromey@redhat.com>
2647 * target-delegates.c: Rebuild.
2649 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2651 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2652 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2653 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2654 (avr_pointer_to_address): Likewise.
2655 (avr_address_class_type_flags): New function.
2656 (avr_address_class_type_flags_to_name): Likewise.
2657 (avr_address_class_name_to_type_flags): Likewise.
2658 (avr_gdbarch_init): Set address_class_type_flags,
2659 address_class_type_flags_to_name and
2660 address_class_name_to_type_flags.
2662 2014-07-15 Pedro Alves <palves@redhat.com>
2664 * linux-nat.c (kill_callback): Save errno and work with saved
2667 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2669 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2671 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2673 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2674 breakpoint support correctly.
2676 2014-07-14 Pedro Alves <palves@redhat.com>
2678 * utils.c (prompt_for_continue): Call target_terminal_ours.
2680 2014-07-14 Pedro Alves <palves@redhat.com>
2682 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2683 catch_errors. Don't re-enable stdin or notify observers where,
2685 (fetch_inferior_event_wrapper): Delete.
2687 2014-07-14 Pedro Alves <palves@redhat.com>
2690 * top.c: Include "inf-loop.h".
2691 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2693 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2695 (gdb_readline_wrapper): Store whether the target is async, and
2698 2014-07-14 Pedro Alves <palves@redhat.com>
2701 * top.c (gdb_readline_wrapper_line): Tweak comment.
2702 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2703 the input handler callback.
2705 2014-07-14 Pedro Alves <palves@redhat.com>
2708 * main.c: Include event-top.h.
2709 (handle_command_errors): New function.
2710 (catch_command_errors, catch_command_errors_const): Use it.
2712 2014-07-14 Pedro Alves <palves@redhat.com>
2714 * exceptions.c (catch_command_errors, catch_command_errors_const):
2716 * exceptions.h (catch_command_errors_ftype)
2717 (catch_command_errors_const_ftype): Moved to main.c.
2718 (catch_command_errors, catch_command_errors_const): Delete
2720 * main.c (catch_command_errors_ftype)
2721 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2722 (catch_command_errors, catch_command_errors_const)): Moved here
2723 from exceptions.c and make static.
2725 2014-07-14 Pedro Alves <palves@redhat.com>
2727 * exceptions.c (print_any_exception): Delete.
2728 (catch_exceptions_with_msg): Use exception_print instead of
2729 print_any_exception.
2730 (catch_errors): Use exception_fprintf instead of
2731 print_any_exception.
2732 (catch_command_errors, catch_command_errors_const): Use
2733 exception_print instead of print_any_exception.
2735 2014-07-14 Pedro Alves <palves@redhat.com>
2737 * infcall.c (run_inferior_call): Set 'sync_execution' while
2738 running the inferior call.
2740 2014-07-14 Pedro Alves <palves@redhat.com>
2742 * value.c (value_contents_equal): Delete function.
2743 * value.h (value_contents_equal): Delete declaration.
2745 2014-07-14 Tom Tromey <tromey@redhat.com>
2748 * gdbtypes.c (is_dynamic_type_internal): New function, from
2750 (is_dynamic_type): Rewrite.
2751 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2752 (resolve_dynamic_struct): Likewise.
2753 (resolve_dynamic_type_internal): New function, from
2754 resolve_dynamic_type.
2755 (resolve_dynamic_type): Rewrite.
2757 2014-07-14 Tom Tromey <tromey@redhat.com>
2759 * target.c (target_require_runnable): Also check record_stratum.
2762 2014-07-11 Yao Qi <yao@codesourcery.com>
2764 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2765 thumb_instruction_restores_sp return true.
2767 2014-07-11 Yao Qi <yao@codesourcery.com>
2769 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2770 (thumb_in_function_epilogue_p): Call
2771 thumb_instruction_restores_sp.
2773 2014-07-11 Yao Qi <yao@codesourcery.com>
2775 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2777 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2779 2014-07-11 Gary Benson <gbenson@redhat.com>
2781 * amd64-linux-nat.c (gdbcore.h): Remove include.
2782 (regset.h): Likewise.
2783 (nat/linux-btrace.h): Likewise.
2784 (btrace.h): Likewise.
2785 (gdb_assert.h): Likewise.
2786 (string.h): Likewise.
2787 (sys/uio.h): Likewise.
2788 (sys/debugreg.h): Likewise.
2789 (sys/syscall.h): Likewise.
2790 (sys/procfs.h): Likewise.
2791 (sys/user.h): Likewise.
2792 (asm/ptrace.h): Likewise.
2793 (i386-nat.h): Likewise.
2794 * i386-linux-nat.c (i386-nat.h): Likewise.
2795 (regset.h): Likewise.
2796 (target.h): Likewise.
2797 (linux-nat.h): Likewise.
2798 (nat/linux-btrace.h): Likewise.
2799 (btrace.h): Likewise.
2800 (gdb_assert.h): Likewise.
2801 (string.h): Likewise.
2802 (sys/uio.h): Likewise.
2803 (sys/user.h): Likewise.
2804 (sys/procfs.h): Likewise.
2805 (sys/reg.h): Likewise.
2806 (sys/debugreg.h): Likewise.
2807 (ORIG_EAX): Remove definition.
2809 2014-07-11 Gary Benson <gbenson@redhat.com>
2811 * i386-linux-nat.h: New file.
2812 * x86-linux-nat.h: Likewise.
2813 * x86-linux-nat.c: Likewise.
2814 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2815 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2816 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2817 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2818 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2819 (PTRACE_SETREGSET): Likewise.
2820 (arch_lwp_info): Now in x86-linux-nat.c.
2821 (have_ptrace_getregset): Now in x86-linux-nat.h.
2822 (x86_linux_dr_get): Now in x86-linux-nat.c.
2823 (x86_linux_dr_set): Likewise.
2824 (x86_linux_dr_get_addr): Likewise.
2825 (x86_linux_dr_get_control): Likewise.
2826 (x86_linux_dr_get_status): Likewise.
2827 (update_debug_registers_callback): Likewise.
2828 (x86_linux_dr_set_control): Likewise.
2829 (x86_linux_dr_set_addr): Likewise.
2830 (x86_linux_prepare_to_resume): Likewise.
2831 (x86_linux_new_thread): Likewise.
2832 (x86_linux_new_fork): Likewise.
2833 (x86_linux_get_thread_area): Likewise.
2834 (super_post_startup_inferior): Likewise.
2835 (x86_linux_child_post_startup_inferior): Likewise.
2836 (AMD64_LINUX_USER64_CS): Likewise.
2837 (AMD64_LINUX_X32_DS): Likewise.
2838 (x86_linux_read_description): Likewise.
2839 (x86_linux_enable_btrace): Likewise.
2840 (x86_linux_disable_btrace): Likewise.
2841 (x86_linux_teardown_btrace): Likewise.
2842 (x86_linux_read_btrace): Likewise.
2843 (x86_linux_create_target): Likewise.
2844 (x86_linux_add_target): Likewise.
2845 * i386-linux-nat.c (x86-linux-nat.h): New include.
2846 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2847 (PTRACE_SETREGSET): Likewise.
2848 (arch_lwp_info): Now in x86-linux-nat.c.
2849 (have_ptrace_getregset): Now in x86-linux-nat.h.
2850 (x86_linux_dr_get): Now in x86-linux-nat.c.
2851 (x86_linux_dr_set): Likewise.
2852 (x86_linux_dr_get_addr): Likewise.
2853 (x86_linux_dr_get_control): Likewise.
2854 (x86_linux_dr_get_status): Likewise.
2855 (update_debug_registers_callback): Likewise.
2856 (x86_linux_dr_set_control): Likewise.
2857 (x86_linux_dr_set_addr): Likewise.
2858 (x86_linux_prepare_to_resume): Likewise.
2859 (x86_linux_new_thread): Likewise.
2860 (x86_linux_new_fork): Likewise.
2861 (x86_linux_get_thread_area): Likewise.
2862 (super_post_startup_inferior): Likewise.
2863 (x86_linux_child_post_startup_inferior): Likewise.
2864 (AMD64_LINUX_USER64_CS): Likewise.
2865 (AMD64_LINUX_X32_DS): Likewise.
2866 (x86_linux_read_description): Likewise.
2867 (x86_linux_enable_btrace): Likewise.
2868 (x86_linux_disable_btrace): Likewise.
2869 (x86_linux_teardown_btrace): Likewise.
2870 (x86_linux_read_btrace): Likewise.
2871 (x86_linux_create_target): Likewise.
2872 (x86_linux_add_target): Likewise.
2874 2014-07-11 Gary Benson <gbenson@redhat.com>
2876 * amd64-linux-nat.c: Comment and whitespace changes.
2877 * i386-linux-nat.c: Comment and whitespace changes.
2879 2014-07-11 Gary Benson <gbenson@redhat.com>
2881 * amd64-linux-nat.c (x86_linux_create_target): New function.
2882 (x86_linux_add_target): Likewise.
2883 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2884 * i386-linux-nat.c (x86_linux_create_target): New function.
2885 (x86_linux_add_target): Likewise.
2886 (_initialize_i386_linux_nat): Delegate to the above new functions.
2888 2014-07-11 Gary Benson <gbenson@redhat.com>
2890 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2891 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2892 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2893 (ps_get_thread_area): Delegate to the above.
2895 2014-07-11 Gary Benson <gbenson@redhat.com>
2897 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2898 x86_linux_read_description. All uses updated. amd64-specific
2899 code conditionalized. Conditionalized i386-specific code added.
2900 Redundant cast removed.
2901 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2902 x86_linux_read_description. All uses updated. i386-specific
2903 code conditionalized. Conditionalized amd64-specific code added.
2904 One sizeof replaced with the actual type it is describing.
2906 2014-07-11 Gary Benson <gbenson@redhat.com>
2908 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2909 x86_linux_dr_get. All uses updated.
2910 (amd64_linux_dr_set): Renamed to
2911 x86_linux_dr_set. All uses updated.
2912 (amd64_linux_dr_get_addr): Renamed to
2913 x86_linux_dr_get_addr. All uses updated.
2914 (amd64_linux_dr_get_control): Renamed to
2915 x86_linux_dr_get_control. All uses updated.
2916 (amd64_linux_dr_get_status): Renamed to
2917 x86_linux_dr_get_status. All uses updated.
2918 (amd64_linux_dr_set_control): Renamed to
2919 x86_linux_dr_set_control. All uses updated.
2920 (amd64_linux_dr_set_addr): Renamed to
2921 x86_linux_dr_set_addr. All uses updated.
2922 (amd64_linux_prepare_to_resume): Renamed to
2923 x86_linux_prepare_to_resume. All uses updated.
2924 (amd64_linux_new_thread): Renamed to
2925 x86_linux_new_thread. All uses updated.
2926 (amd64_linux_new_fork): Renamed to
2927 x86_linux_new_fork. All uses updated.
2928 (amd64_linux_child_post_startup_inferior): Renamed to
2929 x86_linux_child_post_startup_inferior. All uses updated.
2930 (amd64_linux_enable_btrace): Renamed to
2931 x86_linux_enable_btrace. All uses updated.
2932 (amd64_linux_disable_btrace): Renamed to
2933 x86_linux_disable_btrace. All uses updated.
2934 (amd64_linux_teardown_btrace): Renamed to
2935 x86_linux_teardown_btrace. All uses updated.
2936 (amd64_linux_read_btrace): Renamed to
2937 x86_linux_read_btrace. All uses updated.
2938 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2939 x86_linux_dr_get. All uses updated.
2940 (i386_linux_dr_set): Renamed to
2941 x86_linux_dr_set. All uses updated.
2942 (i386_linux_dr_get_addr): Renamed to
2943 x86_linux_dr_get_addr. All uses updated.
2944 (i386_linux_dr_get_control): Renamed to
2945 x86_linux_dr_get_control. All uses updated.
2946 (i386_linux_dr_get_status): Renamed to
2947 x86_linux_dr_get_status. All uses updated.
2948 (i386_linux_dr_set_control): Renamed to
2949 x86_linux_dr_set_control. All uses updated.
2950 (i386_linux_dr_set_addr): Renamed to
2951 x86_linux_dr_set_addr. All uses updated.
2952 (i386_linux_prepare_to_resume): Renamed to
2953 x86_linux_prepare_to_resume. All uses updated.
2954 (i386_linux_new_thread): Renamed to
2955 x86_linux_new_thread. All uses updated.
2956 (i386_linux_new_fork): Renamed to
2957 x86_linux_new_fork. All uses updated.
2958 (i386_linux_child_post_startup_inferior): Renamed to
2959 x86_linux_child_post_startup_inferior. All uses updated.
2960 (i386_linux_enable_btrace): Renamed to
2961 x86_linux_enable_btrace. All uses updated.
2962 (i386_linux_disable_btrace): Renamed to
2963 x86_linux_disable_btrace. All uses updated.
2964 (i386_linux_teardown_btrace): Renamed to
2965 x86_linux_teardown_btrace. All uses updated.
2966 (i386_linux_read_btrace): Renamed to
2967 x86_linux_read_btrace. All uses updated.
2969 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2971 * remote.c (extended_remote_post_attach): New function.
2972 (init_extended_remote_ops): Install it as to_post_attach method.
2974 2014-07-09 Pedro Alves <palves@redhat.com>
2976 * infcmd.c (attach_command_post_wait): Don't call
2977 target_terminal_inferior here.
2978 (attach_command): Call it here instead.
2980 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2982 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2984 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2985 from varobj.c, with additional checks.
2986 (c_varobj_ops): Fill in is_path_expr_parent field.
2987 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2988 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2990 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2992 (varobj_default_is_path_expr_parent): New function.
2993 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2994 (varobj_default_is_path_expr_parent): Declare new function.
2996 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2998 * infcmd.c (finish_backward): Turn internal error into normal error.
3000 2014-07-07 Pedro Alves <palves@redhat.com>
3003 * remote.c (async_handle_remote_sigint)
3004 (async_handle_remote_sigint_twice): Call
3005 gdb_call_async_signal_handler instead of
3006 mark_async_signal_handler.
3008 2014-07-07 Tom Tromey <tromey@redhat.com>
3010 * target-delegates.c: Rebuild.
3011 * target.c (target_info_record): Remove.
3012 * record.c (info_record_command): Unconditionally call
3014 * target.h (struct target_ops) <to_info_record>: Use
3015 TARGET_DEFAULT_IGNORE.
3016 (target_info_record): Remove.
3018 2014-07-07 Tom Tromey <tromey@redhat.com>
3020 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3021 TARGET_DEFAULT_NORETURN.
3022 * target.c (generic_tls_error): New function.
3023 (target_translate_tls_address): Don't search target stack.
3024 * target-delegates.c: Rebuild.
3025 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3027 * linux-thread-db.c (thread_db_get_thread_local_address):
3028 Unconditionally call beneath target.
3030 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3032 * cli/cli-logging.c (pop_output_files): Assign targerr to
3035 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3037 * MAINTAINERS (Write After Approval): Update my email address.
3039 2014-07-02 Gary Benson <gbenson@redhat.com>
3041 * proc-service.c (ps_xfer_memory): Update comment.
3042 (ps_pstop): Remove unused function.
3043 (ps_pcontinue): Likewise.
3044 (ps_lstop): Likewise.
3045 (ps_lcontinue): Likewise.
3046 (ps_lgetxregsize): Likewise.
3047 (ps_lgetxregs): Likewise.
3048 (ps_lsetxregs): Likewise.
3049 (ps_plog): Likewise.
3050 (ps_ptread): Likewise.
3051 (ps_ptwrite): Likewise.
3053 2014-07-01 Mark Wielaard <mjw@redhat.com>
3055 * dwarf2read.c (add_array_cv_type): New function.
3056 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3057 (read_tag_volatile_type): Likewise.
3059 2014-07-01 Tom Tromey <tromey@redhat.com>
3061 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3062 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3063 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3064 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3065 * command.h (cmd_cfunc_ftype): Move earlier.
3066 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3067 (add_com, add_info): Use cmd_cfunc_ftype.
3069 2014-06-30 Tom Tromey <tromey@redhat.com>
3071 * symtab.c (operator_chars): Make parameters and return type
3073 (file_matches): Make "files" const.
3074 (struct search_symbols_data) <files>: Now const.
3075 (search_symbols): Make "regexp" and "files" parameters const.
3077 (symtab_symbol_info): Remove cast.
3078 (rbreak_command): Update.
3079 * symtab.h (search_symbols): Update.
3081 2014-06-27 Yao Qi <yao@codesourcery.com>
3083 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3084 Change parameter type to 'struct thread_info *'. Caller
3086 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3088 * dummy-frame.c (struct dummy_frame_id): New.
3089 (dummy_frame_id_eq): New function.
3090 (struct dummy_frame) <id>: Change its type to 'struct
3092 (dummy_frame_push): Add parameter ptid and save it in
3094 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3096 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3098 (lookup_dummy_frame): Change parameter type to 'struct
3099 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3100 instead of frame_id_eq.
3101 (dummy_frame_pop): Add parameter ptid. Callers updated.
3102 Update comments. Compose dummy_frame_id and pass it to
3104 (dummy_frame_discard): Add parameter ptid.
3105 (dummy_frame_sniffer): Compose dummy_frame_id and call
3106 dummy_frame_id_eq instead of frame_id_eq.
3107 (fprint_dummy_frames): Print ptid.
3108 * dummy-frame.h: Remove comments.
3109 (dummy_frame_push): Add ptid in declaration.
3110 (dummy_frame_pop, dummy_frame_discard): Likewise.
3112 2014-06-26 Tom Tromey <tromey@redhat.com>
3114 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3115 * command.h (error_no_arg): Update.
3117 2014-06-26 Tom Tromey <tromey@redhat.com>
3119 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3120 (do_show_command): Make "arg" const.
3121 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3123 2014-06-26 Tom Tromey <tromey@redhat.com>
3125 * record-full.c (record_full_get_bookmark): Make "args" const.
3126 (record_full_goto_bookmark): Make "raw_bookmark" const.
3127 * record.c (record_goto): New function.
3128 (cmd_record_goto): Use it. Now static.
3129 * record.h (record_goto): Declare.
3130 (cmd_record_goto): Remove declaration.
3131 * target-delegates.c: Rebuild.
3132 * target.h (struct target_ops) <to_get_bookmark,
3133 to_goto_bookmark>: Make parameter const.
3135 2014-06-26 Tom Tromey <tromey@redhat.com>
3137 * defs.h (generic_load): Update.
3138 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3139 * monitor.c (monitor_load): Make "args" const.
3140 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3141 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3143 (mips_load): Make "file" const.
3144 * remote-sim.c (gdbsim_load): Make "args" const.
3145 * remote.c (remote_load): Make "name" const.
3146 * symfile.c (generic_load): Make "args" const.
3147 * target-delegates.c: Rebuild.
3148 * target.c (target_load): Make "arg" const.
3149 (debug_to_load): Make "args" const.
3150 * target.h (struct target_ops) <to_load>: Make parameter const.
3151 (target_load): Update.
3153 2014-06-26 Tom Tromey <tromey@redhat.com>
3156 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3157 (dwarf2_physname, read_partial_die)
3158 (guess_partial_die_structure_name, fixup_partial_die)
3159 (guess_full_die_structure_name, anonymous_struct_prefix)
3160 (dwarf2_name): Use per-BFD obstack.
3162 2014-06-26 Yao Qi <yao@codesourcery.com>
3164 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3165 dummyframe and this_id into inner block below.
3167 2014-06-26 Yao Qi <yao@codesourcery.com>
3169 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3170 with "signal_pass[0]" in the initialization of signal_pass.
3172 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3174 * record-btrace.c (record_btrace_generating_corefile)
3175 (record_btrace_prepare_to_generate_core)
3176 (record_btrace_done_generating_core): New.
3177 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3178 (record_btrace_store_registers, record_btrace_prepare_to_store):
3179 Forward request when generating a core file.
3180 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3181 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3182 to_done_generating_core.
3184 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3186 * target.h (target_ops) <to_prepare_to_generate_core>
3187 <to_done_generating_core>: New.
3188 (target_prepare_to_generate_core, target_done_generating_core): New.
3189 * target.c (target_prepare_to_generate_core)
3190 (target_done_generating_core): New.
3191 * target-delegates.c: Regenerate.
3192 * gcore.c: (write_gcore_file): Rename to ...
3193 (write_gcore_file_1): ...this.
3194 (write_gcore_file): Call target_prepare_to_generate_core
3195 and target_done_generating_core.
3197 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3199 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3200 * gcore.c (write_gcore_file): Free memory returned from
3201 make_corefile_notes.
3202 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3203 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3205 2014-06-24 Yao Qi <yao@codesourcery.com>
3207 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3208 (arm_linux_init_abi): Set skip_trampoline_code with
3209 gdbarch_skip_trampoline_code instead of
3210 find_solib_trampoline_target.
3212 2014-06-24 Yao Qi <yao@codesourcery.com>
3214 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3215 arm_skip_bx_reg returns non-zero.
3217 2014-06-24 Yao Qi <yao@codesourcery.com>
3219 * arm-tdep.c (arm_skip_bx_reg): New function.
3220 (arm_skip_stub): Call arm_skip_bx_reg.
3222 2014-06-23 Don Breazeal <donb@codesourcery.com>
3224 * MAINTAINERS: Add myself as write-after-approval maintainer.
3226 2014-06-23 Pedro Alves <palves@redhat.com>
3228 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3229 DR_CONTROL before setting DR0..DR3.
3230 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3231 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3232 bits of DR_CONTROL related to the debug register slot being
3233 disabled. If all slots are vacant, clear local slowdown as well,
3234 and assert DR_CONTROL is 0.
3236 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3238 * python/lib/gdb/command/xmethods.py
3239 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3240 current progspace only if the string "progspace" matches LOCUS_RE.
3242 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3244 Fix --with-system-readline with readline-6.3 patch 5.
3245 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3246 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3249 2014-06-20 Tom Tromey <tromey@redhat.com>
3251 * dwarf2read.c (dw2_get_real_path): Use correct type in
3253 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3255 2014-06-20 Gary Benson <gbenson@redhat.com>
3257 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3258 * common/glibc_thread_db.h: Likewise.
3259 * common/i386-cpuid.h: Likewise.
3260 * common/i386-gcc-cpuid.h: Likewise.
3261 * common/linux-btrace.h: Likewise.
3262 * common/linux-osdata.h: Likewise.
3263 * common/linux-procfs.h: Likewise.
3264 * common/linux-ptrace.h: Likewise.
3265 * common/mips-linux-watch.h: Likewise.
3266 * common/linux-btrace.c: Moved to nat.
3267 * common/linux-osdata.c: Likewise.
3268 * common/linux-procfs.c: Likewise.
3269 * common/linux-ptrace.c: Likewise.
3270 * common/mips-linux-watch.c: Likewise.
3271 * nat/gdb_thread_db.h: Moved from common.
3272 * nat/glibc_thread_db.h: Likewise.
3273 * nat/i386-cpuid.h: Likewise.
3274 * nat/i386-gcc-cpuid.h: Likewise.
3275 * nat/linux-btrace.c: Likewise.
3276 * nat/linux-btrace.h: Likewise.
3277 * nat/linux-osdata.c: Likewise.
3278 * nat/linux-osdata.h: Likewise.
3279 * nat/linux-procfs.c: Likewise.
3280 * nat/linux-procfs.h: Likewise.
3281 * nat/linux-ptrace.c: Likewise.
3282 * nat/linux-ptrace.h: Likewise.
3283 * nat/mips-linux-watch.c: Likewise.
3284 * nat/mips-linux-watch.h: Likewise.
3285 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3286 (object file files): Reordered.
3287 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3288 of glibc_thread_db.h.
3290 2014-06-20 Gary Benson <gbenson@redhat.com>
3292 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3293 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3294 (i386_dr_low): Likewise.
3295 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3296 (i386_dr_low_set_addr): Likewise.
3297 (i386_dr_low_get_addr): Likewise.
3298 (i386_dr_low_can_set_control): Likewise.
3299 (i386_dr_low_set_control): Likewise.
3300 (i386_dr_low_get_control): Likewise.
3301 (i386_dr_low_get_status): Likewise.
3302 (i386_get_debug_register_length): Likewise.
3303 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3304 (i386_dr_low): Likewise.
3305 * nat/i386-dregs.c (i386-low.h): Remove include.
3306 (i386-nat.h): Likewise.
3307 (nat/i386-dregs.h): New include.
3308 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3309 (i386_dr_low_set_addr): Likewise.
3310 (i386_dr_low_get_addr): Likewise.
3311 (i386_dr_low_can_set_control): Likewise.
3312 (i386_dr_low_set_control): Likewise.
3313 (i386_dr_low_get_control): Likewise.
3314 (i386_dr_low_get_status): Likewise.
3315 (i386_get_debug_register_length): Likewise.
3316 (debug_hw_points): Likewise.
3318 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3320 * Makefile.in (SFILES): Add d-exp.y.
3321 (YYFILES): Add d-exp.c.
3322 (YYOBJ): Add d-exp.o.
3323 (local-maintainer-clean): Delete d-exp.c.
3324 * d-exp.y: New file.
3325 * d-lang.h (d_parse): New declaration.
3326 (d_error): New declaration.
3327 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3328 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3329 PREC_ORDER operators.
3330 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3332 2014-06-19 Yao Qi <yao@codesourcery.com>
3334 * gdbthread.h (any_running): Remove the declaration.
3335 * thread.c (any_running): Remove.
3337 2014-06-19 Yao Qi <yao@codesourcery.com>
3339 * gdbthread.h (struct thread_info) <state>: Change its type to
3340 'enum thread_state'. Update comments.
3342 2014-06-19 Pedro Alves <palves@redhat.com>
3344 * gdbthread.h (ALL_THREADS): Delete.
3345 (ALL_NON_EXITED_THREADS): New macro.
3346 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3347 instead of ALL_THREADS.
3348 * infrun.c (find_thread_needs_step_over)
3349 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3350 instead of ALL_THREADS.
3351 * record-btrace.c (record_btrace_open)
3352 (record_btrace_stop_recording, record_btrace_close)
3353 (record_btrace_is_replaying, record_btrace_resume)
3354 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3355 * remote.c (append_pending_thread_resumptions): Likewise.
3356 * thread.c (thread_apply_all_command): Likewise.
3358 2014-06-19 Gary Benson <gbenson@redhat.com>
3360 * i386-nat.c (i386_stopped_by_watchpoint):
3361 Use i386_dr_stopped_by_watchpoint.
3362 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3363 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3365 2014-06-19 Gary Benson <gbenson@redhat.com>
3367 * nat/i386-dregs.c: New file.
3368 * Makefile.in (i386-dregs.o): New rule.
3369 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3370 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3371 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3372 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3373 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3374 * config/i386/go32.mh (NATDEPFILES): Likewise.
3375 * config/i386/linux.mh (NATDEPFILES): Likewise.
3376 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3377 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3378 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3379 * i386-nat.h (debug_hw_points): New declaration.
3380 * i386-nat.c (breakpoint.h): Remove include.
3381 (command.h): Likewise.
3382 (target.h): Likewise.
3383 (gdb_assert.h): Likewise.
3384 (debug_hw_points): Made nonstatic.
3385 (debug_printf): Now in i386-dregs.c.
3386 (TARGET_HAS_DR_LEN_8): Likewise.
3387 (DR_CONTROL_SHIFT): Likewise.
3388 (DR_CONTROL_SIZE): Likewise.
3389 (DR_RW_EXECUTE): Likewise.
3390 (DR_RW_WRITE): Likewise.
3391 (DR_RW_READ): Likewise.
3392 (DR_RW_IORW): Likewise.
3393 (DR_LEN_1): Likewise.
3394 (DR_LEN_2): Likewise.
3395 (DR_LEN_4): Likewise.
3396 (DR_LEN_8): Likewise.
3397 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3398 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3399 (DR_ENABLE_SIZE): Likewise.
3400 (DR_LOCAL_SLOWDOWN): Likewise.
3401 (DR_GLOBAL_SLOWDOWN): Likewise.
3402 (DR_CONTROL_RESERVED): Likewise.
3403 (I386_DR_CONTROL_MASK): Likewise.
3404 (I386_DR_VACANT): Likewise.
3405 (I386_DR_LOCAL_ENABLE): Likewise.
3406 (I386_DR_GLOBAL_ENABLE): Likewise.
3407 (I386_DR_DISABLE): Likewise.
3408 (I386_DR_SET_RW_LEN): Likewise.
3409 (I386_DR_GET_RW_LEN): Likewise.
3410 (I386_DR_WATCH_HIT): Likewise.
3411 (i386_wp_op_t): Likewise.
3412 (i386_show_dr): Likewise.
3413 (i386_length_and_rw_bits): Likewise.
3414 (i386_insert_aligned_watchpoint): Likewise.
3415 (i386_remove_aligned_watchpoint): Likewise.
3416 (i386_handle_nonaligned_watchpoint): Likewise.
3417 (i386_update_inferior_debug_regs): Likewise.
3418 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3419 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3420 (i386_region_ok_for_watchpoint):
3421 Use i386_dr_region_ok_for_watchpoint.
3422 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3424 2014-06-19 Gary Benson <gbenson@redhat.com>
3426 * i386-nat.c (i386_insert_hw_breakpoint): Use
3427 i386_insert_watchpoint.
3428 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3430 2014-06-19 Gary Benson <gbenson@redhat.com>
3432 * i386-nat.c (i386_dr_show): Renamed to
3433 i386_show_dr and made static. All uses updated.
3434 (i386_dr_length_and_rw_bits): Renamed to
3435 i386_length_and_rw_bits and made static.
3437 (i386_dr_insert_aligned_watchpoint): Renamed to
3438 i386_insert_aligned_watchpoint and made static.
3440 (i386_dr_remove_aligned_watchpoint): Renamed to
3441 i386_remove_aligned_watchpoint and made static.
3443 (i386_dr_update_inferior_debug_regs): Renamed to
3444 i386_update_inferior_debug_regs and made static.
3446 * nat/i386-dregs.h (i386_dr_show): Removed.
3447 (i386_dr_length_and_rw_bits): Likewise.
3448 (i386_dr_insert_aligned_watchpoint): Likewise.
3449 (i386_dr_remove_aligned_watchpoint): Likewise.
3450 (i386_dr_update_inferior_debug_regs): Likewise.
3452 2014-06-19 Gary Benson <gbenson@redhat.com>
3454 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3455 * configure: Regenerate.
3456 * config.in: Likewise.
3457 * main.c (signal.h): New include.
3458 (setup_alternate_signal_stack): New function.
3459 (captured_main): Call the above.
3460 * cp-support.c (signal.h): New include.
3461 (catch_demangler_crashes): New flag.
3462 (SIGJMP_BUF): New define.
3463 (SIGSETJMP): Likewise.
3464 (SIGLONGJMP): Likewise.
3465 (gdb_demangle_jmp_buf): New static global.
3466 (gdb_demangle_attempt_core_dump): Likewise.
3467 (gdb_demangle_signal_handler): New function.
3468 (gdb_demangle): If catch_demangler_crashes is set, install the
3469 above signal handler before calling bfd_demangle, and restore
3470 the original signal handler afterwards. Display the offending
3471 symbol and call demangler_warning the first time a segmentation
3473 (_initialize_cp_support): New maint set/show command.
3475 2014-06-19 Gary Benson <gbenson@redhat.com>
3477 * utils.h (resource_limit_kind): New enum.
3478 (can_dump_core): New declaration.
3479 (warn_cant_dump_core): Likewise.
3480 (dump_core): Likewise.
3481 * utils.c (dump_core): Made nonstatic. Added new
3482 parameter "limit_kind".
3483 (can_dump_core): Made nonstatic. Moved printing code to...
3484 (warn_cant_dump_core): New function.
3485 (can_dump_core_warn): Likewise.
3486 (internal_vproblem): Replace calls to can_dump_core with
3487 calls to can_dump_core_warn. Supply new argument to each.
3489 2014-06-19 Gary Benson <gbenson@redhat.com>
3491 * utils.h (demangler_vwarning): New declaration.
3492 (demangler_warning): Likewise.
3493 * utils.c (struct internal_problem)
3494 <user_settable_should_quit>: New field.
3495 <user_settable_should_dump_core>: Likewise
3496 (internal_error_problem): Add values for above new fields.
3497 (internal_warning_problem): Likewise.
3498 (demangler_warning_problem): New static global.
3499 (demangler_vwarning): New function.
3500 (demangler_warning): Likewise.
3501 (add_internal_problem_command): Selectively add commands.
3502 (_initialize_utils): New internal problem command.
3503 * maint.c (maintenance_demangler_warning): New function.
3504 (_initialize_maint_cmds): New command.
3506 2014-06-18 Tom Tromey <tromey@redhat.com>
3508 * f-valprint.c (info_common_command_for_block): Update.
3509 * symtab.h (struct general_symbol_info) <common_block>: Now
3512 2014-06-18 Tom Tromey <tromey@redhat.com>
3514 * symtab.h (struct symtab) <blockvector>: Now const.
3515 * ada-lang.c (ada_add_global_exceptions): Update.
3516 * buildsym.c (augment_type_symtab): Update.
3517 * dwarf2read.c (dw2_lookup_symbol): Update.
3518 * jit.c (finalize_symtab): Update.
3519 * jv-lang.c (add_class_symtab_symbol): Update.
3520 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3522 * objfiles.c (objfile_relocate1): Update.
3523 * psymtab.c (lookup_symbol_aux_psymtabs)
3524 (maintenance_check_psymtabs): Update.
3525 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3527 * spu-tdep.c (spu_catch_start): Update.
3528 * symmisc.c (dump_symtab_1): Update.
3529 * symtab.c (lookup_global_symbol_from_objfile)
3530 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3531 (basic_lookup_transparent_type_quick)
3532 (basic_lookup_transparent_type, find_pc_sect_symtab)
3533 (find_pc_sect_line, search_symbols): Update.
3534 * block.c (find_block_in_blockvector): Make "bl" const.
3535 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3537 (blockvector_contains_pc): Make "bv" const.
3538 (block_for_pc_sect): Update.
3539 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3540 (blockvector_contains_pc): Update.
3541 * breakpoint.c (resolve_sal_pc): Update.
3542 * inline-frame.c (block_starting_point_at): Update.
3544 2014-06-18 Tom Tromey <tromey@redhat.com>
3546 * completer.c (complete_line): Make "line_buffer" const.
3547 * completer.h (complete_line): Update.
3549 2014-06-18 Tom Tromey <tromey@redhat.com>
3551 * symtab.c (add_macro_name): Remove unneeded cast.
3553 2014-06-18 Tom Tromey <tromey@redhat.com>
3555 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3556 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3558 2014-06-18 Tom Tromey <tromey@redhat.com>
3560 * probe.c (info_probes_for_ops): Make "arg" const.
3561 * probe.h (info_probes_for_ops): Update.
3563 2014-06-18 Tom Tromey <tromey@redhat.com>
3565 * varobj.c (varobj_create): Update.
3566 * valops.c (value_of_this): Update.
3567 * tracepoint.c (add_local_symbols, scope_info): Update.
3568 * symtab.h (struct general_symbol_info) <block>: Now const.
3569 * symtab.c (skip_prologue_sal)
3570 (default_make_symbol_completion_list_break_on)
3571 (skip_prologue_using_sal): Update.
3572 * stack.h (iterate_over_block_locals)
3573 (iterate_over_block_local_vars): Update.
3574 * stack.c (print_frame_args): Update.
3575 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3577 (get_selected_block): Make return type const.
3578 * python/py-frame.c (frapy_block): Update.
3579 * python/py-block.c (gdbpy_block_for_pc): Update.
3580 * p-exp.y (%union) <bval>: Now const.
3581 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3582 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3583 * m2-exp.y (%union) <bval>: Now const.
3584 * linespec.c (get_current_search_block): Make return type const.
3585 (create_sals_line_offset, find_label_symbols): Update.
3586 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3588 (block_starting_point_at): Make "block" const.
3589 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3590 (check_exception_resume): Update.
3591 * guile/scm-frame.c (gdbscm_frame_block): Update.
3592 * guile/scm-block.c (gdbscm_lookup_block): Update.
3593 * frame.h (get_frame_block): Update.
3594 (get_selected_block): Make return type const.
3595 * frame.c (frame_id_inner): Update.
3596 * f-valprint.c (info_common_command_for_block)
3597 (info_common_command): Update.
3598 * dwarf2loc.c (dwarf2_find_location_expression)
3599 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3600 (locexpr_describe_location_piece): Update.
3601 * c-exp.y (%union) <bval>: Now const.
3602 * breakpoint.c (resolve_sal_pc): Update.
3603 * blockframe.c (get_frame_block):Make return type const.
3604 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3605 (block_innermost_frame): Update.
3606 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3607 (block_for_pc, block_for_pc_sect): Update.
3608 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3610 (block_for_pc_sect, block_for_pc): Make return type const.
3611 * ax-gdb.c (gen_expr): Update.
3612 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3613 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3614 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3615 (ada_read_var_value): Update.
3616 * ada-exp.y (struct name_info) <block>: Now const.
3618 (block_lookup): Constify.
3620 2014-06-18 Gary Benson <gbenson@redhat.com>
3622 * nat/i386-dregs.h: New file.
3623 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3624 * i386-nat.h (i386-dregs.h): New include.
3625 (DR_FIRSTADDR): Now in i386-dregs.h.
3626 (DR_LASTADDR): Likewise.
3627 (DR_NADDR): Likewise.
3628 (DR_STATUS): Likewise.
3629 (DR_CONTROL): Likewise.
3630 (i386_debug_reg_state): Likewise.
3631 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3633 2014-06-18 Don Breazeal <donb@codesourcery.com>
3635 * breakpoint.c (set_longjmp_breakpoint): Call
3636 momentary_breakpoint_from_master with additional argument.
3637 (set_longjmp_breakpoint_for_call_dummy): Call
3638 momentary_breakpoint_from_master with additional argument.
3639 (set_std_terminate_breakpoint): Call
3640 momentary_breakpoint_from_master with additional argument.
3641 (momentary_breakpoint_from_master): Add argument to function
3642 definition and use it to initialize structure member flag.
3643 (clone_momentary_breakpoint): Call
3644 momentary_breakpoint_from_master with additional argument.
3645 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3646 member flags set in momentary_breakpoint_from_master.
3648 2014-06-18 Gary Benson <gbenson@redhat.com>
3650 * i386-nat.c (i386_show_dr): Renamed to
3651 i386_dr_show and made nonstatic. All uses updated.
3652 (i386_length_and_rw_bits): Renamed to
3653 i386_dr_length_and_rw_bits and made nonstatic.
3655 (i386_insert_aligned_watchpoint): Renamed to
3656 i386_dr_insert_aligned_watchpoint and made nonstatic.
3658 (i386_remove_aligned_watchpoint): Renamed to
3659 i386_dr_remove_aligned_watchpoint and made nonstatic.
3661 (i386_update_inferior_debug_regs): Renamed to
3662 i386_dr_update_inferior_debug_regs and made nonstatic.
3665 2014-06-18 Gary Benson <gbenson@redhat.com>
3667 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3668 (i386_dr_low_can_set_control): Likewise.
3669 (i386_dr_low_set_addr): Likewise.
3670 (i386_dr_low_set_control): Likewise.
3671 (i386_dr_low_get_addr): Likewise.
3672 (i386_dr_low_get_status): Likewise.
3673 (i386_dr_low_get_control): Likewise.
3674 (i386_insert_aligned_watchpoint): Use new macros.
3675 (i386_update_inferior_debug_regs): Likewise.
3676 (i386_stopped_data_address): Likewise.
3678 2014-06-18 Gary Benson <gbenson@redhat.com>
3680 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3681 New parameter. All uses updated.
3683 2014-06-18 Gary Benson <gbenson@redhat.com>
3685 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3688 2014-06-18 Gary Benson <gbenson@redhat.com>
3690 * i386-nat.c (debug_printf): New macro.
3691 (i386_get_debug_register_length): Likewise.
3692 (TARGET_HAS_DR_LEN_8): Use above macro.
3693 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3694 and printf_unfiltered. Use phex to format values.
3696 2014-06-18 Gary Benson <gbenson@redhat.com>
3698 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3701 2014-06-18 Gary Benson <gbenson@redhat.com>
3703 * i386-nat.c: Comment changes.
3705 2014-06-18 Gary Benson <gbenson@redhat.com>
3707 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3709 2014-06-18 Gary Benson <gbenson@redhat.com>
3711 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3712 (i386_insert_aligned_watchpoint): Likewise.
3713 (i386_remove_aligned_watchpoint): Likewise.
3714 (i386_handle_nonaligned_watchpoint): Likewise.
3716 2014-06-18 Gary Benson <gbenson@redhat.com>
3718 * i386-nat.c: Whitespace changes.
3720 2014-06-17 Samuel Bronson <naesten@gmail.com>
3722 * MAINTAINERS: Update Roland McGrath's email address.
3723 Thanks to Sergio Durigan Junior for pointing out that he left
3724 Red Hat a while ago, and giving me a current address.
3726 2014-06-17 Tom Tromey <tromey@redhat.com>
3728 * utils.h (savestring): Remove declaration.
3730 2014-06-17 Tom Tromey <tromey@redhat.com>
3732 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3734 2014-06-16 Keith Seitz <keiths@redhat.com>
3737 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3738 to update the varobj if inferior_ptid is null_ptid.
3740 2014-06-16 Tom Tromey <tromey@redhat.com>
3742 * target.h (struct target_ops) <to_info_proc>: Make parameter
3744 (target_info_proc): Update.
3745 * target.c (target_info_proc): Make "args" const.
3746 * procfs.c (procfs_info_proc): Update.
3747 * linux-tdep.c (linux_info_proc): Update.
3748 (linux_core_info_proc_mappings): Make "args" const.
3749 (linux_core_info_proc): Update.
3750 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3751 * gdbarch.c: Rebuild.
3752 * gdbarch.h: Rebuild.
3753 * corelow.c (core_info_proc): Update.
3755 2014-06-16 Tom Tromey <tromey@redhat.com>
3757 * target.h (struct target_ops) <to_disconnect>: Make parameter
3759 (target_disconnect): Update.
3760 * target.c (target_disconnect): Make "args" const.
3761 * target-delegates.c: Rebuild.
3762 * remote.c (remote_disconnect): Update.
3763 * record.h (record_disconnect): Update.
3764 * record.c (record_disconnect): Update.
3765 * inf-child.c (inf_child_disconnect): Update.
3767 2014-06-16 Tom Tromey <tromey@redhat.com>
3769 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3770 * target.c (debug_to_rcmd, default_rcmd): Update.
3771 * target-delegates.c: Rebuild.
3772 * remote.c (remote_rcmd): Update.
3773 * monitor.c (monitor_rcmd): Update.
3775 2014-06-16 Pedro Alves <palves@redhat.com>
3777 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3778 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3779 have OBJF_SHARED set.
3780 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3781 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3782 instead of OBJF_USERLOADED.
3783 * objfiles.h (OBJF_SHARED): Update comment.
3784 (userloaded_objfile_contains_address_p): Rename to ...
3785 (shared_objfile_contains_address_p): ... this, and update
3787 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3789 (remove_symbol_file_command): Skip objfiles that don't have
3792 2014-06-16 Tom Tromey <tromey@redhat.com>
3794 * minsyms.h (prim_record_minimal_symbol)
3795 (prim_record_minimal_symbol_and_info): Update comments.
3797 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3799 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3800 or --without-guile, according to how GDB was built.
3802 2014-06-13 Tom Tromey <tromey@redhat.com>
3804 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3806 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3808 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3810 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3811 help_list.Pass all_commands, not -1, to help_list.
3812 * cli/cli-dump.c (dump_command, append_command)
3813 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3814 (binary_dump_command, binary_append_command): Pass all_commands,
3815 not -1, to help_list.
3816 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3818 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3820 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3822 * top.c (set_history): Pass all_commands, not -1, to help_list.
3823 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3824 all_commands, not -1, to help_list.
3825 * symfile.c (overlay_command): Pass all_commands, not -1, to
3827 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3829 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3831 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3833 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3834 not -1, to help_list.
3835 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3836 not -1, to help_list.
3837 * maint.c (maintenance_command, maintenance_info_command)
3838 (maintenance_print_command, maintenance_set_cmd): Pass
3839 all_commands, not -1, to help_list.
3840 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3842 * language.c (set_check): Pass all_commands, not -1, to help_list.
3843 * infcmd.c (unset_command): Pass all_commands, not -1, to
3845 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3847 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3849 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3851 * breakpoint.c (save_command): Pass all_commands, not -1, to
3853 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3854 all_commands, not -1, to help_list.
3856 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3858 * regcache.c (struct register_to_invalidate): New structure.
3859 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3861 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3863 2014-06-12 Yao Qi <yao@codesourcery.com>
3865 * varobj.c (varobj_get_num_children): Call
3866 varobj_is_dynamic_p.
3867 (varobj_list_children): Likewise.
3868 (varobj_update): Likewise. Update comments.
3870 2014-06-12 Yao Qi <yao@codesourcery.com>
3872 * varobj.c (varobj_pretty_printed_p): Rename to ...
3873 (varobj_is_dynamic_p): ... this. New function.
3874 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3875 (varobj_is_dynamic_p): Declare.
3876 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3877 (mi_print_value_p, varobj_update_one): Likewise.
3879 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3880 Yao Qi <yao@codesourcery.com>
3882 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3883 (varobj_get_iterator): Wrap up code for pretty-printer by
3884 "#if HAVE_PYTHON" and "#endif".
3885 (update_dynamic_varobj_children): Likewise.
3887 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3888 Yao Qi <yao@codesourcery.com>
3890 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3891 gdb_python_initialized is false. Move some code from varobj.c.
3892 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3893 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3894 (struct varobj_item): Moved to varobj-iter.h".
3895 (varobj_clear_saved_item): New function.
3896 (update_dynamic_varobj_children): Move python-related code to
3898 (free_variable): Call varobj_clear_saved_item and
3901 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3902 Yao Qi <yao@codesourcery.com>
3904 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3905 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3906 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3907 (py-varobj.o): New rule.
3908 * python/py-varobj.c: New file.
3909 * python/python-internal.h (py_varobj_get_iterator): Declare.
3910 * varobj-iter.h: New file.
3911 * varobj.c: Include "varobj-iter.h"
3912 (struct varobj) <child_iter>: Change its type from "PyObject *"
3913 to "struct varobj_iter *".
3914 <saved_item>: Likewise.
3915 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3916 [HAVE_PYTHON] (varobj_get_iterator): New function.
3917 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3918 python-specific code to python/py-varobj.c.
3919 (install_visualizer): Call varobj_iter_delete instead of
3921 * varobj.h (varobj_ensure_python_env): Declare.
3923 2014-06-12 Yao Qi <yao@codesourcery.com>
3925 * varobj.c (struct varobj_item): New structure.
3926 (create_child_with_value): Update declaration.
3927 (varobj_add_child): Replace arguments 'name' and 'value' with
3928 'item'. All callers updated.
3929 (install_dynamic_child): Likewise.
3930 (update_dynamic_varobj_children): Likewise.
3931 (varobj_add_child): Likewise.
3932 (create_child_with_value): Likewise.
3934 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3936 * NEWS: Create a new section for the next release branch.
3937 Rename the section of the current branch, now that it has
3940 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3942 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3943 * version.in: Bump version to 7.8.50.DATE-cvs.
3945 2014-06-11 Pedro Alves <palves@redhat.com>
3948 * ser-mingw.c (net_windows_socket_check_pending): New function.
3949 (net_windows_select_thread): Ignore spurious wakeups. Use
3950 net_windows_socket_check_pending.
3951 (net_windows_wait_handle): Check for pending events with
3952 ioctlsocket, through net_windows_socket_check_pending, instead of
3953 checking the socket's event.
3955 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3957 * python/python-internal.h (gdb_PyObject_GetAttrString)
3958 (gdb_PyObject_HasAttrString): New inline function definitions.
3959 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3960 char * of the second argument to PyObject_GetAttrString.
3962 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3964 * serial.c (serial_write): Fix index of character to be printed
3965 in call to serial_logchar when serial debug traces are enabled.
3967 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3969 * gdbtypes (resolve_dynamic_range): Add function description.
3971 2014-06-09 Pedro Alves <palves@redhat.com>
3973 * linux-nat.c (linux_child_follow_fork): Initialize status with
3974 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3975 inner block. Only pass the signal to PTRACE_DETACH if in pass
3978 2014-06-09 Gary Benson <gbenson@redhat.com>
3980 * common/signals.c (gdb_signal_from_host): Reorder to separate
3981 the always-available ANSI-standard signals from the signals that
3983 (do_gdb_signal_to_host): Likewise.
3984 * proc-events.c (signal_table): Likewise.
3986 2014-06-08 Hui Zhu <hui@codesourcery.com>
3988 * common/linux-ptrace.c (linux_disable_event_reporting): New
3990 * common/linux-ptrace.h (linux_disable_event_reporting): New
3992 * linux-nat.c (linux_child_follow_fork): Do a single step before
3995 2014-06-07 Keith Seitz <keiths@redhat.com>
3999 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4000 from symbol_matches_domain in symtab.c. All local callers
4001 of symbol_matches_domain updated.
4002 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4003 search STRUCT_DOMAIN.
4004 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4005 independently. standard_lookup will do that automatically.
4006 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4007 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4008 (cp_lookup_symbol_in_namespace): Likewise.
4009 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4010 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4011 may return a STRUCT_DOMAIN match.
4012 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4013 * cp-support.c: Include language.h.
4014 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4016 * psymtab.c (match_partial_symbol): Compare the requested
4017 domain with the symbol's domain directly.
4018 (lookup_partial_symbol): Likewise.
4019 * symtab.c (lookup_symbol_in_language): Explain when/why
4020 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4021 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4022 appropriate languages.
4023 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4024 and moved to ada-lang.c
4025 (lookup_block_symbol): Explain that this function only returns
4026 symbol matching the requested DOMAIN.
4027 Compare the requested domain with the symbol's domain directly.
4028 (iterate_over_symbols): Compare the requested domain with the
4029 symbol's domain directly.
4030 * symtab.h (symbol_matches_domain): Remove.
4032 2014-06-06 Doug Evans <xdje42@gmail.com>
4034 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4035 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4036 (gdbscm_guile_version_is_at_least): Declare.
4037 (gdbscm_scm_string_to_int): Declare.
4038 * guile/guile.c (gdbscm_guile_major_version): New global.
4039 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4040 (guile_datadir): New static global.
4041 (gdbscm_guile_data_directory): New function.
4042 (initialize_scheme_side): Update.
4043 (misc_guile_functions): Add guile-data-directory.
4044 (initialize_gdb_module): Fetch guile version number.
4045 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4046 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4047 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4048 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4050 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4051 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4052 * guile/scm-value.c (gdbscm_value_to_string): Only call
4053 scm_port_conversion_strategy if Guile version >= 2.0.6.
4055 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4057 * main.c (print_gdb_help): Add -q and --silent.
4059 2014-06-06 Gary Benson <gbenson@redhat.com>
4061 * common/signals.c: Remove preprocessor conditionals for
4062 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4063 SIGSEGV and SIGTERM.
4064 * proc-events.c: Likewise.
4066 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4068 * symfile.c (symfile_free_objfile): Remove restriction to
4070 * symfile-mem.c (symbol_file_add_from_memory): Call
4071 add_target_sections_of_objfile.
4073 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4075 * guile/scm-value.c (gdbscm_history_append_x): Use
4076 'vlscm_get_value_smob_arg_unsafe' instead of
4077 'vlscm_scm_to_value'.
4079 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4082 * utils.c (printchar): Don't escape at all if quoter is NUL.
4083 Update function documentation to clarify effect of parameter
4085 * remote.c (escape_buffer): Pass '\\' as the quoter to
4086 fputstrn_unfiltered.
4087 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4088 generate the output.
4089 (mi_solib_unloaded): Same.
4091 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4093 * development.sh: Delete.
4094 * Makefile.in (config.status): Adjust dependency on development.sh.
4095 * configure.ac: Adjust development.sh source call.
4096 * configure: Regenerate.
4098 2014-06-04 Doug Evans <xdje42@gmail.com>
4100 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4101 is_scheme_bkpt, spec.
4102 (bpscm_make_breakpoint_smob): Initialize new members.
4103 (gdbscm_create_breakpoint_x): Split into two ...
4104 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4105 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4106 (scheme_function breakpoint_functions): Update.
4107 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4108 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4109 register-breakpoint!.
4111 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4114 * mem-break.c (z_type_supported): Return zero if
4115 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4117 2014-06-04 Tom Tromey <tromey@redhat.com>
4119 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4120 value_from_contents_and_address_unresolved.
4121 (ada_template_to_fixed_record_type_1): Likewise.
4122 (ada_which_variant_applies): Likewise.
4123 * value.h (value_from_contents_and_address_unresolved): Declare.
4124 * value.c (value_from_contents_and_address_unresolved): New
4126 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4127 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4128 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4130 2014-06-04 Tom Tromey <tromey@redhat.com>
4132 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4134 2014-06-04 Tom Tromey <tromey@redhat.com>
4136 * procfs.c (procfs_attach): Make "args" const.
4137 * windows-nat.c (windows_attach): Make "args" const.
4138 * nto-procfs.c (procfs_attach): Make "args" const.
4139 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4140 * go32-nat.c (go32_attach): Make "args" const.
4141 * gnu-nat.c (gnu_attach): Make "args" const.
4142 * darwin-nat.c (darwin_attach): Make "args" const.
4143 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4144 * linux-nat.c (linux_nat_attach): Make "args" const.
4145 * remote.c (extended_remote_attach_1, extended_remote_attach):
4147 * target.h (struct target_ops) <to_attach>: Make "args" const.
4148 (find_default_attach): Likewise.
4149 * utils.c (parse_pid_to_attach): Make "args" const.
4150 * utils.h (parse_pid_to_attach): Update.
4152 2014-06-04 Tom Tromey <tromey@redhat.com>
4154 * target-delegates.c: Rebuild.
4155 * target.c (default_thread_address_space): New function.
4156 (target_thread_address_space): Simplify.
4157 * target.h (struct target_ops) <to_thread_address_space>: Add
4158 TARGET_DEFAULT_FUNC.
4160 2014-06-04 Doug Evans <xdje42@gmail.com>
4162 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4164 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4166 * record-btrace.c: Include event-loop.h and inf-loop.h.
4167 (record_btrace_resume_exec_dir)
4168 (record_btrace_async_inferior_event_handler)
4169 (record_btrace_handle_async_inferior_event): New.
4170 (record_btrace_open): Create async event handler.
4171 (record_btrace_close): Delete async event handler.
4172 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4173 Mark async event handler.
4174 (record_btrace_execution_direction): New.
4175 (init_record_btrace_ops): Initialize to_execution_direction.
4177 2014-06-03 Doug Evans <xdje42@gmail.com>
4179 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4180 (gdbscm_make_parameter): Ditto.
4182 2014-06-03 Doug Evans <dje@google.com>
4184 * exec.c (exec_close_1): Call clear_section_table instead of
4185 resize_section_table.
4186 (clear_section_table): New function.
4187 (resize_section_table): Make static. Rename arg num_added to
4189 * exec.h (clear_section_table): Declare.
4190 (resize_section_table): Delete.
4191 * progspace.c (release_program_space): Call clear_section_table
4192 instead of resize_section_table.
4194 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4196 * NEWS (Python Scripting): Add entry about the new xmethods
4199 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4201 * python/py-xmethods.c: New file.
4202 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4203 (objfpy_dealloc): XDECREF on the new xmethods field.
4204 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4206 (objfpy_get_xmethods): New function.
4207 (objfile_getset): New entry 'xmethods'.
4208 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4209 (pspy_dealloc): XDECREF on the new xmethods field.
4210 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4212 (pspy_get_xmethods): New function.
4213 (pspace_getset): New entry 'xmethods'.
4214 * python/python-internal.h: Add declarations for new functions.
4215 * python/python.c (_initialize_python): Invoke
4216 gdbpy_initialize_xmethods.
4217 * python/lib/gdb/__init__.py (xmethods): New
4219 * python/lib/gdb/xmethod.py: New file.
4220 * python/lib/gdb/command/xmethods.py: New file.
4222 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4224 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4225 best match method returned by find_overload_match is an xmethod.
4226 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4227 the best matching operator returned by find_overload_match is an
4229 * valops.c: #include "extension.h".
4230 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4231 Return void. The list of matching source methods is returned in
4232 "fn_list" and a vector of matching debug method workers is
4233 returned in "xm_worker_vec". Update all callers.
4234 (value_find_oload_method_list): Likewise.
4235 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4236 non-NULL, then the index of the best matching method in this
4237 vector is returned. Update all callers.
4238 (find_overload_match): Include xmethods while performing overload
4241 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4243 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4244 * extension-priv.h (struct extension_language_ops): Add the
4246 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4247 get_matching_xmethod_workers, get_xmethod_argtypes,
4248 invoke_xmethod, free_xmethod_worker,
4249 free_xmethod_worker_vec): New functions.
4250 * extension.h: #include "common/vec.h".
4251 New function declarations.
4252 (struct xmethod_worker): New struct.
4253 (VEC (xmethod_worker_ptr)): New vector type.
4254 (xmethod_worker_ptr): New typedef.
4255 (xmethod_worker_vec): Likewise.
4256 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4258 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4259 (struct builtin_type): New field "xmethod".
4260 * valarith.c (value_ptradd): Assert that the value argument is not
4262 * valops.c (value_must_coerce_to_target): Return 0 for
4263 lval_xcallable values.
4264 * value.c (struct value): New field XM_WORKER in the field
4266 (value_address, value_raw_address): Return 0 for lval_xcallable
4268 (set_value_address): Assert that the value is not an
4270 (value_free): Free the associated xmethod worker when freeing
4271 lval_xcallable values.
4272 (set_value_component_location): Assert that the WHOLE value is not
4274 (value_of_xmethod, call_xmethod): New functions.
4275 * value.h: Declare "struct xmethod_worker".
4276 Declare new functions value_of_xmethod, call_xmethod.
4278 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4279 Pedro Alves <palves@redhat.com>
4281 PR breakpoints/17000
4282 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4283 New function, extracted from software_breakpoint_inserted_here_p.
4284 (software_breakpoint_inserted_here_p): Replace factored out code
4285 by call to find_non_raw_software_breakpoint_inserted_here.
4286 (bp_target_info_copy_insertion_state): New function.
4287 (bkpt_insert_location): Handle the case of a single-step
4288 breakpoint already inserted at the same address.
4289 (bkpt_remove_location): Handle the case of a single-step
4290 breakpoint still inserted at the same address.
4291 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4292 breakpoint already inserted at the same address.
4293 (deprecated_remove_raw_breakpoint): Handle the case of a
4294 non-raw breakpoint still inserted at the same address.
4295 (find_single_step_breakpoint): New function, extracted from
4296 single_step_breakpoint_inserted_here_p.
4297 (find_single_step_breakpoint): New function,
4298 factored out from single_step_breakpoint_inserted_here_p.
4299 (single_step_breakpoint_inserted_here_p): Reimplement.
4301 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4303 Pushed by Joel Brobecker <brobecker@adacore.com>
4304 * source.c (show_substitute_path_command): Fix display of matching
4307 2014-06-03 Gary Benson <gbenson@redhat.com>
4309 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4311 2014-06-02 Doug Evans <xdje42@gmail.com>
4313 Add parameter support for Guile.
4314 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4315 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4316 (scm-param.o): New rule.
4317 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4318 (gdbscm_misc_error): Declare.
4319 (gdbscm_canonicalize_command_name): Declare.
4320 (gdbscm_scm_to_host_string): Declare.
4321 (gdbscm_scm_from_host_string): Declare.
4322 (gdbscm_initialize_parameters): Declare.
4323 * guile/guile.c (initialize_gdb_module): Call
4324 gdbscm_initialize_parameters.
4325 * guile/lib/gdb.scm: Export parameter symbols.
4326 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4327 cmdscm_canonicalize_name and made public. All callers updated.
4328 * guile/scm-exception.c (gdbscm_misc_error): New function.
4329 * guile/scm-param.c: New file.
4330 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4331 (gdbscm_scm_to_host_string): New function.
4332 (gdbscm_scm_from_host_string): New function.
4333 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4335 2014-06-02 Doug Evans <xdje42@gmail.com>
4337 Add command support for Guile.
4338 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4339 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4340 (scm-cmd.o): New rule.
4341 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4342 (gdbscm_user_error_p): Declare.
4343 (gdbscm_parse_command_name): Declare.
4344 (gdbscm_valid_command_class_p): Declare.
4345 (gdbscm_initialize_commands): Declare.
4346 * guile/guile.c (initialize_gdb_module): Call
4347 gdbscm_initialize_commands.
4348 * guile/lib/gdb.scm: Export command symbols.
4349 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4350 (throw-user-error): New function.
4351 * guile/scm-cmd.c: New file.
4352 * guile/scm-exception.c (user_error_symbol): New static global.
4353 (gdbscm_user_error_p): New function.
4354 (gdbscm_initialize_exceptions): Set user_error_symbol.
4355 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4357 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4359 * top.c (command_loop): Handle comments here...
4360 (command_line_input): ... not here.
4362 2014-06-02 Doug Evans <xdje42@gmail.com>
4364 Add progspace support for Guile.
4365 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4366 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4367 (scm-progspace.o): New rule.
4368 * guile/guile-internal.h (pspace_smob): New typedef.
4369 (psscm_pspace_smob_pretty_printers): Declare.
4370 (psscm_pspace_smob_from_pspace): Declare.
4371 (psscm_scm_from_pspace): Declare.
4372 * guile/guile.c (initialize_gdb_module): Call
4373 gdbscm_initialize_pspaces.
4374 * guile/lib/gdb.scm: Export progspace symbols.
4375 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4377 (append-pretty-printer!): Ditto.
4378 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4380 * guile/scm-progspace.c: New file.
4382 2014-06-03 Alan Modra <amodra@gmail.com>
4384 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4385 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4387 2014-06-02 Doug Evans <dje@google.com>
4389 Add support for skeletonless type units.
4390 * dwarf2read.c (struct dwarf2_per_objfile): New member
4391 n_allocated_type_units.
4392 (struct dwarf2_per_objfile) <tu_stats>: New member
4393 nr_all_type_units_reallocs.
4394 (create_signatured_type_table_from_index): Initialize
4395 n_allocated_type_units
4396 (create_all_type_units): Ditto.
4397 (add_type_unit): Move up in file. New arg slot.
4398 All callers updated. Increase space for all_type_units more
4400 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4401 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4402 (lookup_dwp_signatured_type): Ditto.
4403 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4404 All callers updated.
4405 (build_type_psymtabs_1): Leave type_unit_groups as
4406 NULL if no TUs present.
4407 (print_tu_stats): New function.
4408 (process_skeletonless_type_unit): New function.
4409 (process_dwo_file_for_skeletonless_type_units): New
4411 (process_skeletonless_type_units): New function.
4412 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4413 Call print tu_stats if debugging enabled.
4415 2014-06-02 Pedro Alves <palves@redhat.com>
4417 * breakpoint.c (build_target_command_list): Don't build a command
4418 list if we have any duplicate location that isn't a dprintf.
4420 2014-06-02 Pedro Alves <palves@redhat.com>
4422 * breakpoint.c (dprintf_breakpoint_hit): New function.
4423 (initialize_breakpoint_ops): Install it as dprintf's
4424 breakpoint_hit method.
4426 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4428 * source.c (substitute_path_rule_matches): Simplify using
4429 filename_ncmp instead of FILENAME_CMP.
4431 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4433 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4435 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4437 * configure.ac: When Guile is available, check for the
4438 availability of 'scm_new_smob'.
4439 * configure, config.h.in: Regenerate.
4440 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4443 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4445 * frame.c (struct frame_info): Add stop_string field.
4446 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4447 (get_prev_frame_always): Old content moved into
4448 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4449 TRY_CATCH, handle MEMORY_ERROR exceptions.
4450 (frame_stop_reason_string): New function definition.
4451 * frame.h (unwind_stop_reason_to_string): Extend comment to
4452 mention frame_stop_reason_string.
4453 (frame_stop_reason_string): New function declaration.
4454 * stack.c (frame_info): Switch to frame_stop_reason_string.
4455 (backtrace_command_1): Switch to frame_stop_reason_string.
4456 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4457 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4458 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4460 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4462 * frame.c (frame_stop_reason_string): Rename to ...
4463 (unwind_stop_reason_to_string): this.
4464 * frame.h (frame_stop_reason_string): Rename to ...
4465 (unwind_stop_reason_to_string): this.
4466 * stack.c (frame_info): Update call to frame_stop_reason_string.
4467 (backtrace_command_1): Likewise.
4468 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4469 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4471 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4473 * frame.c (remove_prev_frame): New function.
4474 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4477 2014-05-29 Pedro Alves <palves@redhat.com>
4479 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4480 and make it const. When a single-step decays to a continue,
4481 clear 'step', not 'hw_step'. Pass whether the caller wanted
4482 to step to user_visible_resume_ptid, not what we ask the
4485 2014-05-29 Pedro Alves <palves@redhat.com>
4487 * infrun.c (process_event_stop_test, handle_step_into_function)
4488 (handle_step_into_function_backward): Adjust.
4489 Don't set the even thread's stop_step and call stop_waiting before
4490 calling end_stepping_range. Instead do that ...
4491 (end_stepping_range): ... here. Take an ecs pointer parameter.
4493 2014-05-29 Pedro Alves <palves@redhat.com>
4495 * infrun.c (stop_stepping): Rename to ...
4496 (stop_waiting): ... this.
4497 (proceed): Update comment.
4498 (process_event_stop_test, handle_inferior_event)
4499 (handle_signal_stop, handle_step_into_function)
4500 (handle_step_into_function_backward): Update.
4502 2014-05-29 Pedro Alves <palves@redhat.com>
4504 * infcall.c (run_inferior_call): Don't check whether the current
4505 thread is running after the proceed call.
4507 2014-05-29 Pedro Alves <palves@redhat.com>
4508 Tom Tromey <tromey@redhat.com>
4510 * NEWS: Mention "maint set target-async", "set mi-async", and that
4511 background execution commands are now always available.
4512 * target.h (target_async_permitted): Update comment.
4513 * target.c (target_async_permitted, target_async_permitted_1):
4515 (set_target_async_command): Rename to ...
4516 (maint_set_target_async_command): ... this.
4517 (show_target_async_command): Rename to ...
4518 (maint_show_target_async_command): ... this.
4519 (_initialize_target): Adjust.
4520 * infcmd.c (prepare_execution_command): Make extern.
4521 * inferior.h (prepare_execution_command): Declare.
4522 * infrun.c (set_observer_mode): Leave target async alone.
4523 * mi/mi-interp.c (mi_interpreter_init): Install
4524 mi_on_sync_execution_done as sync_execution_done observer.
4525 (mi_on_sync_execution_done): New function.
4526 (mi_execute_command_input_handler): Don't print the prompt if we
4527 just started a synchronous command with an async target.
4528 (mi_on_resume): Check sync_execution before printing prompt.
4529 * mi/mi-main.h (mi_async_p): Declare.
4530 * mi/mi-main.c: Include gdbcmd.h.
4531 (mi_async_p): New function.
4532 (mi_async, mi_async_1): New globals.
4533 (set_mi_async_command, show_mi_async_command, mi_async): New
4535 (exec_continue): Call prepare_execution_command.
4536 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4537 (mi_execute_async_cli_command): Use mi_async_p.
4538 (_initialize_mi_main): Install "set mi-async". Make
4539 "target-async" a deprecated alias.
4541 2014-05-29 Pedro Alves <palves@redhat.com>
4543 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4544 (_initialize_cli_interp): Adjust.
4545 * event-loop.c: Include "observer.h".
4546 (start_event_loop): Notify 'command_error' observers instead of
4547 calling display_gdb_prompt. Remove FIXME comment.
4548 * event-top.c (display_gdb_prompt): Remove call into the
4550 * inf-loop.c: Include "observer.h".
4551 (inferior_event_handler): Notify 'command_error' observers instead
4552 of calling display_gdb_prompt.
4553 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4554 observers instead of calling display_gdb_prompt.
4555 * interps.c (interp_set): Don't call display_gdb_prompt.
4556 (current_interp_display_prompt_p): Delete.
4557 * interps.h (interp_prompt_p): Delete declaration.
4558 (interp_prompt_p_ftype): Delete.
4559 (struct interp_procs) <prompt_proc_p>: Delete field.
4560 (current_interp_display_prompt_p): Delete declaration.
4561 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4562 (_initialize_mi_interp): Adjust.
4563 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4564 'command_error' observers.
4565 (tui_on_sync_execution_done, tui_on_command_error): New
4567 (tui_display_prompt_p): Delete.
4568 (_initialize_tui_interp): Adjust.
4570 2014-05-29 Pedro Alves <palves@redhat.com>
4573 * cli/cli-interp.c: Include infrun.h and observer.h.
4574 (cli_uiout, cli_interp): New globals.
4575 (cli_on_signal_received, cli_on_end_stepping_range)
4576 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4578 (cli_interpreter_init): Install them as 'end_stepping_range',
4579 'signal_received' 'signal_exited', 'exited' and 'no_history'
4581 (_initialize_cli_interp): Remove cli_interp local.
4582 * infrun.c (handle_inferior_event): Call the several stop reason
4583 observers instead of printing the stop reason directly.
4584 (end_stepping_range): New function.
4585 (print_end_stepping_range_reason, print_signal_exited_reason)
4586 (print_exited_reason, print_signal_received_reason)
4587 (print_no_history_reason): Make static, and add an uiout
4588 parameter. Print to that instead of to CURRENT_UIOUT.
4589 * infrun.h (print_end_stepping_range_reason)
4590 (print_signal_exited_reason, print_exited_reason)
4591 (print_signal_received_reason print_no_history_reason): New
4593 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4595 <cli_uiout>: New field.
4596 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4597 uiout for CLI output. Install 'signal_received',
4598 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4600 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4601 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4602 (mi_on_no_history): New functions.
4603 (ui_out_free_cleanup): Delete function.
4604 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4605 instead use the one already stored in the MI interpreter data.
4606 (mi_ui_out): Adjust.
4607 * tui/tui-interp.c: Include infrun.h and observer.h.
4608 (tui_interp): New global.
4609 (tui_on_signal_received, tui_on_end_stepping_range)
4610 (tui_on_signal_exited, tui_on_exited)
4611 (tui_on_no_history): New functions.
4612 (tui_init): Install them as 'end_stepping_range',
4613 'signal_received' 'signal_exited', 'exited' and 'no_history'
4615 (_initialize_tui_interp): Delete tui_interp local.
4617 2014-05-29 Pedro Alves <palves@redhat.com>
4620 * linux-nat.c (linux_nat_resume_callback): Rename the second
4621 parameter to 'except'. Skip LP if it points to EXCEPT.
4622 (linux_nat_resume): Don't mark the event lwp as not stopped
4623 before resuming sibling lwps. Instead ask
4624 linux_nat_resume_callback to skip the event lwp. Mark it as not
4625 stopped after actually resuming it.
4626 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4628 (wait_lwp): Mark the lwp as stopped here.
4629 (stop_wait_callback): Mark the lwp as not stopped right after
4630 resuming it. Don't mark lwps as stopped here.
4631 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4632 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4634 2014-05-29 Pedro Alves <palves@redhat.com>
4637 * infrun.c (resume): Determine how much to resume depending on
4638 whether the caller wanted a step, not whether we can hardware step
4639 the target. Mark all threads that we intend to run as running,
4640 unless we're calling an inferior function.
4641 (normal_stop): If the thread is running an infcall, don't finish
4643 * target.c (target_resume): Don't mark threads as running here.
4645 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4647 * serial.c (_initialize_serial): Remove support for
4648 the "set remotebaud" and "show remotebaud" commands.
4649 * NEWS: Add entry documenting the removal of that command.
4651 2014-05-28 Yao Qi <yao@codesourcery.com>
4653 * charset.c: Fix typo in comments.
4655 2014-05-27 Gary Benson <gbenson@redhat.com>
4657 * utils.c (internal_vproblem): Prompt for a bug report.
4659 2014-05-26 Andy Wingo <wingo@igalia.com>
4661 * guile/scm-arch.c (arscm_mark_arch_smob):
4662 * guile/scm-block.c (bkscm_mark_block_smob)
4663 (bkscm_mark_block_syms_progress_smob):
4664 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4665 * guile/scm-exception.c (exscm_mark_exception_smob):
4666 * guile/scm-frame.c (frscm_mark_frame_smob):
4667 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4668 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4669 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4670 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4671 (ppscm_mark_pretty_printer_worker_smob):
4672 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4673 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4674 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4675 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4677 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4680 2014-05-26 Andy Wingo <wingo@igalia.com>
4681 Doug Evans <xdje42@gmail.com>
4683 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4684 empty_base_class. All uses updated.
4685 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4686 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4688 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4689 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4690 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4691 (gdbscm_gsmob_has_property_p, add_property_name)
4692 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4693 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4694 (gdb-object-has-property?, gdb-object-properties): Remove.
4695 (gdb-object-kind): Renamed from gsmob-kind.
4697 2014-05-26 Andy Wingo <wingo@igalia.com>
4699 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4700 * configure: Regenerate.
4702 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4704 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4706 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4708 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4709 (replay_memory_access_read_only, replay_memory_access_read_write)
4710 (replay_memory_access_types, replay_memory_access)
4711 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4712 (cmd_set_record_btrace, cmd_show_record_btrace)
4713 (cmd_show_replay_memory_access): New.
4714 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4715 (record_btrace_remove_breakpoint): Replace
4716 record_btrace_allow_memory_access with replay_memory_access.
4717 (_initialize_record_btrace): Add commands.
4718 * NEWS: Announce it.
4720 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4722 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4724 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4726 * MAINTAINERS (Write After Approval): Move self back from
4729 2014-05-22 Pedro Alves <palves@redhat.com>
4731 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4732 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4733 (disable_randomization, enum exec_direction_kind)
4734 (execution_direction, stop_registers, start_remote)
4735 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4736 (wait_for_inferior, normal_stop, get_last_target_status)
4737 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4738 (insert_step_resume_breakpoint_at_sal)
4739 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4740 (set_step_info, print_stop_event, signal_stop_state)
4741 (signal_print_state, signal_pass_state, signal_stop_update)
4742 (signal_print_update, signal_pass_update)
4743 (update_signals_program_target, clear_exit_convenience_vars)
4744 (displaced_step_dump_bytes, update_observer_mode)
4745 (signal_catch_update, gdb_signal_from_command): Move
4747 * infrun.h: ... to this new file.
4748 * amd64-tdep.c: Include infrun.h.
4749 * annotate.c: Include infrun.h.
4750 * arch-utils.c: Include infrun.h.
4751 * arm-linux-tdep.c: Include infrun.h.
4752 * arm-tdep.c: Include infrun.h.
4753 * break-catch-sig.c: Include infrun.h.
4754 * breakpoint.c: Include infrun.h.
4755 * common/agent.c: Include infrun.h instead of inferior.h.
4756 * corelow.c: Include infrun.h.
4757 * event-top.c: Include infrun.h.
4758 * go32-nat.c: Include infrun.h.
4759 * i386-tdep.c: Include infrun.h.
4760 * inf-loop.c: Include infrun.h.
4761 * infcall.c: Include infrun.h.
4762 * infcmd.c: Include infrun.h.
4763 * infrun.c: Include infrun.h.
4764 * linux-fork.c: Include infrun.h.
4765 * linux-nat.c: Include infrun.h.
4766 * linux-thread-db.c: Include infrun.h.
4767 * monitor.c: Include infrun.h.
4768 * nto-tdep.c: Include infrun.h.
4769 * procfs.c: Include infrun.h.
4770 * record-btrace.c: Include infrun.h.
4771 * record-full.c: Include infrun.h.
4772 * remote-m32r-sdi.c: Include infrun.h.
4773 * remote-mips.c: Include infrun.h.
4774 * remote-notif.c: Include infrun.h.
4775 * remote-sim.c: Include infrun.h.
4776 * remote.c: Include infrun.h.
4777 * reverse.c: Include infrun.h.
4778 * rs6000-tdep.c: Include infrun.h.
4779 * s390-linux-tdep.c: Include infrun.h.
4780 * solib-irix.c: Include infrun.h.
4781 * solib-osf.c: Include infrun.h.
4782 * solib-svr4.c: Include infrun.h.
4783 * target.c: Include infrun.h.
4784 * top.c: Include infrun.h.
4785 * windows-nat.c: Include infrun.h.
4786 * mi/mi-interp.c: Include infrun.h.
4787 * mi/mi-main.c: Include infrun.h.
4788 * python/py-threadevent.c: Include infrun.h.
4790 2014-05-22 Pedro Alves <palves@redhat.com>
4792 * infrun.c (handle_inferior_event): Store the exit code for
4793 --return-child-result here, instead of ...
4794 (print_exited_reason): ... here.
4796 2014-05-21 Pedro Alves <palves@redhat.com>
4799 * gdbthread.h (struct thread_control_state): New field
4801 * infrun.c (follow_fork): Copy the new thread control field to the
4803 (clear_proceed_status_thread): Clear the new thread control field.
4804 (proceed): Set the new thread control field.
4805 * interps.h (command_interp): Declare.
4806 * interps.c (command_interpreter): New global.
4807 (command_interp): New function.
4808 (interp_exec): Set `command_interpreter' while here.
4809 * cli-out.c (cli_uiout_dtor): New function.
4810 (cli_ui_out_impl): Install it.
4811 * mi/mi-interp.c: Include cli-out.h.
4812 (mi_cmd_interpreter_exec): Add comment.
4813 (restore_current_uiout_cleanup): New function.
4814 (ui_out_free_cleanup): New function.
4815 (mi_on_normal_stop): If finishing an execution command started by
4816 a CLI command, or any kind of breakpoint-like event triggered,
4817 print the stop event to the output (CLI) stream.
4818 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4820 2014-05-21 Pedro Alves <palves@redhat.com>
4822 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4823 current source line having changed.
4824 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4825 * infrun.c (normal_stop): Adjust call to
4826 set_current_sal_from_frame.
4827 * source.c (clear_lines_listed_range): New function.
4828 (set_current_source_symtab_and_line, identify_source_line): Clear
4829 the lines listed range.
4830 (line_info): Handle the first "info line" after the current source
4831 line having changed.
4832 * stack.c (print_stack_frame): Remove center handling.
4833 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4836 2014-05-21 Pedro Alves <palves@redhat.com>
4838 * inf-child.c (inf_child_mourn_inferior): New function.
4839 * inf-child.h (inf_child_mourn_inferior): New declaration.
4840 * darwin-nat.c (darwin_mourn_inferior): Use
4841 inf_child_mourn_inferior.
4842 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4843 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4844 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4845 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4846 * windows-nat.c (windows_mourn_inferior): Likewise.
4848 2014-05-21 Doug Evans <xdje42@gmail.com>
4850 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4852 2014-05-21 Doug Evans <xdje42@gmail.com>
4854 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4855 (gdbscm_out_of_range_error): Ditto.
4856 (gdbscm_memory_error): Ditto.
4857 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4858 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4859 (gdbscm_out_of_range_error): Update.
4860 (gdbscm_memory_error): Update.
4861 (gdbscm_scm_to_target_string_unsafe): Delete.
4863 2014-05-21 Pedro Alves <palves@redhat.com>
4865 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4867 (inf_child_open_target): New function.
4868 (inf_child_open): Use inf_child_open_target to push the target
4869 instead of erroring out.
4870 (inf_child_disconnect, inf_child_close)
4871 (inf_child_maybe_unpush_target): New functions.
4872 (inf_child_target): Install inf_child_disconnect and
4873 inf_child_close. Store a pointer to the returned object.
4874 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4876 * target.c (auto_connect_native_target): New global.
4877 (show_default_run_target): New function.
4878 (find_default_run_target): Return NULL if automatically connecting
4879 to the native target is disabled.
4880 (_initialize_target): Install set/show auto-connect-native-target.
4881 * NEWS: Mention "set auto-connect-native-target", and "target
4883 * linux-nat.c (super_close): New global.
4884 (linux_nat_close): Call super_close.
4885 (linux_nat_add_target): Store a pointer to the base class's
4887 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4888 inf_child_maybe_unpush.
4889 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4891 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4892 the inferior. Use inf_child_maybe_unpush_target.
4893 (inf_ttrace_attach): Don't push the target if it is already
4895 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4896 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4897 after mourning the inferior. Use inf_child_maybe_unpush_target.
4898 (darwin_attach_pid): Don't push the target if it is already
4900 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4901 mourning the inferior. Use inf_child_maybe_unpush_target.
4902 (gnu_detach): Use inf_child_maybe_unpush_target.
4903 * go32-nat.c (go32_create_inferior): Don't push the target if it
4905 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4906 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4907 (procfs_open): Rename to ...
4908 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4909 comments. Can target_preopen before changing node. Call
4910 inf_child_open_target to push the target explicitly.
4911 (procfs_attach): Don't push the target if it is already pushed.
4912 (procfs_detach): Use inf_child_maybe_unpush_target.
4913 (procfs_create_inferior): Don't push the target if it is already
4915 (nto_native_ops): New global.
4916 (procfs_open): Reimplement.
4917 (procfs_native_open): New function.
4918 (init_procfs_targets): Install procfs_native_open as to_open of
4919 "target native". Store a pointer to the "native" target in
4921 * procfs.c (procfs_attach): Don't push the target if it is already
4923 (procfs_detach): Use inf_child_maybe_unpush_target.
4924 (procfs_mourn_inferior): Only unpush the target after mourning the
4925 inferior. Use inf_child_maybe_unpush_target.
4926 (procfs_init_inferior): Don't push the target if it is already
4928 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4929 if it is already pushed.
4931 2014-05-21 Pedro Alves <palves@redhat.com>
4933 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4934 and "procfs" targets are now called "native" instead.
4936 2014-05-21 Pedro Alves <palves@redhat.com>
4938 * go32-nat.c (go32_open): Delete.
4939 (go32_target): Don't override the to_open method.
4941 2014-05-21 Pedro Alves <palves@redhat.com>
4943 * nto-procfs.c (procfs_can_run): New function.
4944 (nto_procfs_ops): New global.
4945 (init_procfs_targets): New, based on procfs_target. Install
4946 "target native" in addition to "target procfs".
4947 (_initialize_procfs): Call init_procfs_targets instead of adding
4950 2014-05-21 Pedro Alves <palves@redhat.com>
4952 * windows-nat.c (windows_target): Don't override to_shortname,
4953 to_longname or to_doc.
4955 2014-05-21 Pedro Alves <palves@redhat.com>
4957 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4960 2014-05-21 Pedro Alves <palves@redhat.com>
4962 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4963 to_shortname, to_longname or to_doc.
4965 2014-05-21 Pedro Alves <palves@redhat.com>
4967 * go32-nat.c (go32_target): Don't override to_shortname,
4968 to_longname or to_doc.
4970 2014-05-21 Pedro Alves <palves@redhat.com>
4972 * inf-child.c (inf_child_open): Remove mention of "child".
4973 (inf_child_target): Rename target to "native" instead of "child".
4975 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4977 * Makefile.in (SFILES): Delete "regset.c".
4978 (COMMON_OBS): Delete "regset.o".
4980 * regset.h (regset_alloc): Delete prototype.
4982 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4984 * sparc-linux-tdep.c (sparc32_linux_gregset)
4985 (sparc32_linux_fpregset): New static regset structures.
4986 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4987 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4989 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4990 (sparc64_linux_fpregset): New static regset structures.
4991 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4992 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4993 New static regset structures.
4994 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4995 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4996 New static regset structures.
4997 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4998 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4999 New static regset structures.
5000 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5001 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5002 New static regset structures.
5003 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5005 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5007 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5008 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5009 register maps ("regmaps") from "*regset" to "*regmap". Do this
5010 for all regmap types and variables.
5011 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5012 (sparc32_linux_supply_core_gregset)
5013 (sparc32_linux_collect_core_gregset)
5014 (sparc32_linux_supply_core_fpregset)
5015 (sparc32_linux_collect_core_fpregset): Likewise.
5016 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5017 (sparc_gregmap, sparc_fpregmap): ... these.
5018 (sparc_supply_gregset, sparc_collect_gregset)
5019 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5020 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5021 (_initialize_sparc_nat): Rename regmaps.
5022 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5023 (sparc_gregmap, sparc_fpregmap): ... these.
5024 (sparc_supply_gregset, sparc_collect_gregset)
5025 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5026 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5028 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5029 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5031 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5033 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5034 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5035 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5037 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5038 (sparc32_bsd_fpregset): Rename to...
5039 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5040 (sparc32_bsd_fpregmap): ... these.
5041 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5042 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5043 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5044 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5045 (struct sparc_gregmap, struct sparc_fpregmap)
5046 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5047 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5048 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5049 (sparc32_supply_regset, sparc32_collect_gregset)
5050 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5052 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5053 (sparc64_linux_ptrace_gregmap): ... this.
5054 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5055 (_initialize_sparc64_linux_nat): Rename regmaps.
5056 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5057 (sparc64_linux_core_gregmap): ... this.
5058 (sparc64_linux_supply_core_gregset)
5059 (sparc64_linux_collect_core_gregset)
5060 (sparc64_linux_supply_core_fpregset)
5061 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5062 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5063 (sparc64_sol2_fpregset): Rename to...
5064 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5065 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5066 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5068 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5069 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5070 (sparc64_bsd_fpregset): Rename to...
5071 (struct sparc_gregmap, sparc64_sol2_gregmap)
5072 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5073 (sparc64_bsd_fpregmap): ... these.
5074 (sparc64_supply_gregset, sparc64_collect_gregset)
5075 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5077 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5078 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5079 (sparc64fbsd_gregmap): ... this.
5080 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5081 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5083 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5084 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5085 (sparc64nbsd_collect_fpregset): Likewise.
5086 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5087 (sparc64nbsd_gregmap): ... this.
5088 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5090 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5091 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5092 (sparc64obsd_gregmap): ... this.
5093 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5095 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5096 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5097 (sparc32nbsd_gregmap): ... this.
5098 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5101 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5103 * score-tdep.c (score7_linux_gregset): New static regset
5105 (score7_linux_regset_from_core_section): Remove dynamic regset
5107 (score_gdbarch_init): Drop allocation of tdep structure.
5108 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5110 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5112 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5114 (am33_regset_from_core_section): Remove dynamic regset
5117 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5119 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5120 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5122 (mips_linux_regset_from_core_section): Remove dynamic regset
5124 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5125 'gregset64', 'fpregset', and 'fpregset64'.
5126 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5127 deleted tdep fields.
5129 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5131 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5133 (amd64_regset_from_core_section): Remove dynamic regset
5135 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5137 (amd64obsd_regset_from_core_section): Remove dynamic regset
5139 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5141 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5142 x86-common regset supply function.
5143 * i386-tdep.c (i386_collect_gregset): Make static.
5144 (i386_gregset): New global regset structure.
5145 (i386_fpregset, i386_xstateregset): New static regset structures.
5146 (i386_regset_from_core_section): Remove dynamic regset
5148 (i386_gdbarch_init): Remove initialization of tdep fields
5149 'gregset', 'fpregset', and 'xstateregset'.
5150 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5151 'fpregset', and 'xstateregset'.
5152 (i386_collect_gregset): Remove prototype.
5153 (i386_gregset): New declaration.
5154 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5156 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5159 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5161 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5162 (arm_linux_vfpregset): New static regset structures.
5163 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5165 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5166 and 'vfpregset' fields.
5168 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5170 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5171 (aarch64_linux_fpregset): New static regset structures.
5172 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5173 of regset structures.
5174 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5177 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5179 * regset.h (struct regset): Remove gdbarch field.
5180 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5181 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5182 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5184 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5185 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5186 (ppc32_linux_vsxregset): Likewise.
5187 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5188 via the regcache instead of the regset.
5189 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5190 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5191 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5192 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5195 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5197 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5198 Constify structures.
5199 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5200 (alphanbsd_aout_gregset): Likewise.
5201 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5202 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5204 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5205 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5207 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5208 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5209 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5210 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5211 * m88k-tdep.c (m88k_gregset): Likewise.
5212 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5213 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5214 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5215 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5216 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5217 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5218 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5219 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5220 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5222 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5223 * sh-tdep.h (sh_corefile_gregset): Likewise.
5224 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5225 * vax-tdep.c (vax_gregset): Likewise.
5227 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5229 Fix TLS access for -static -pthread.
5230 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5231 (try_thread_db_load_1): Initialize it.
5232 (thread_db_get_thread_local_address): Call it if LM is zero.
5233 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5234 * target.h (struct target_ops) (to_get_thread_local_address): Add
5235 load_module_addr comment.
5237 2014-05-21 Pedro Alves <palves@redhat.com>
5239 * dcache.c (dcache_read_memory_partial): If reading the cache line
5240 fails, fallback to reading just the memory the caller wanted.
5242 2014-05-20 Doug Evans <dje@google.com>
5244 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5245 instead of get_current_arch.
5247 2014-05-20 Pedro Alves <palves@redhat.com>
5249 * NEWS: Mention that compare-sections now works with all targets.
5251 * remote.c (PACKET_qCRC): New enum value.
5252 (remote_verify_memory): Don't send qCRC if the target has no
5253 execution. Use packet_support/packet_ok. If the target doesn't
5254 support the qCRC packet, fallback to a deep memory copy.
5255 (compare_sections_command): Say "target image" instead of "remote
5257 (_initialize_remote): Add PACKET_qCRC to the list of config
5258 packets that have no associated command. Extend comment.
5259 * target.c (simple_verify_memory, default_verify_memory): New
5261 * target.h (struct target_ops) <to_verify_memory>: Default to
5262 default_verify_memory.
5263 (simple_verify_memory): New declaration.
5264 * target-delegates.c: Regenerate.
5266 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5268 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5270 2014-05-20 Hui Zhu <hui@codesourcery.com>
5271 Yao Qi <yao@codesourcery.com>
5274 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5275 and change address of sp and pc.
5277 2014-05-19 Tom Tromey <tromey@redhat.com>
5279 * gdbtypes.c (rank_function): Use XNEWVEC.
5280 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5282 2014-05-19 Doug Evans <dje@google.com>
5284 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5285 build_type_unit_groups and moved closer to only caller. Remove
5286 arguments. All references updated. Remove outdated .gdb_index
5288 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5289 build_type_psymtabs_1.
5291 2014-05-19 Doug Evans <dje@google.com>
5293 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5294 n_type_unit_groups, all_type_unit_groups. All uses removed.
5295 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5296 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5297 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5298 (add_type_unit_group_to_table): Delete.
5300 2014-05-19 Doug Evans <dje@google.com>
5302 * eval.c (evaluate_subexp_standard): Add some comments.
5304 2014-05-17 Doug Evans <xdje42@gmail.com>
5306 * progspace.c (remove_program_space): Delete, unused.
5307 * progspace.h (remove_program_space): Ditto.
5309 2014-05-17 Doug Evans <xdje42@gmail.com>
5311 * inferior.c (prune_inferiors): Fix comment.
5312 (remove_inferior_command): Call prune_program_spaces.
5314 2014-05-16 Doug Evans <dje@google.com>
5316 New command line option -D.
5318 * main.c (set_gdb_data_directory): New function.
5319 (captured_main): Recognize -D. Flag error for --data-directory "".
5320 Call set_gdb_data_directory.
5321 (print_gdb_help): Print --data-directory, -D.
5322 * main.h (set_gdb_data_directory): Declare.
5323 * top.c (staged_gdb_datadir): New static global.
5324 (set_gdb_datadir): Call set_gdb_data_directory
5325 (show_gdb_datadir): New function.
5326 (init_main): Update init of data-directory parameter.
5328 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5330 Import the "dirfd" gnulib module.
5331 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5332 * gnulib/aclocal.m4: Update.
5333 * gnulib/config.in: Update.
5334 * gnulib/configure: Update.
5335 * gnulib/import/Makefile.am: Update.
5336 * gnulib/import/Makefile.in: Update.
5337 * gnulib/import/dirfd.c: New.
5338 * gnulib/import/m4/dirfd.m4: New.
5339 * gnulib/import/m4/gnulib-cache.m4: Update.
5340 * gnulib/import/m4/gnulib-comp.m4: Update.
5342 2014-05-16 Pierre Muller <muller@sourceware.org>
5343 Yao Qi <yao@codesourcery.com>
5345 * valprint.c (print_wchar): Move the code on checking whether
5346 W is a printable wide char to the default branch of switch
5347 statement below. Call wchar_printable instead of gdb_iswprint.
5349 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5351 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5352 ldr.w and ldrd instructions.
5354 2014-05-15 Doug Evans <dje@google.com>
5356 * dwarf2read.c (read_structure_type): Delete outdated comments.
5358 2014-05-14 Tom Tromey <tromey@redhat.com>
5360 * macrocmd.c (print_macro_definition): Reindent.
5362 2014-05-13 Doug Evans <xdje42@gmail.com>
5364 * python/py-cmd.c (cmdpy_completer): Add comment.
5365 (completers): Make const.
5367 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5369 * infrun.c (resume): Remove should_resume (unused). Move up
5370 declaration of resume_ptid.
5372 2014-05-13 Tom Tromey <tromey@redhat.com>
5374 * language.h (unop_type_check): Remove.
5375 (binop_type_check): Don't declare.
5377 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5379 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5380 call to regcache_raw_collect.
5382 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5384 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5385 mi_console->quote as the quoting character.
5387 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5389 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5391 2014-04-29 Tom Tromey <tromey@redhat.com>
5393 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5394 "show debug varobj".
5396 2014-05-07 Kyle McMartin <kyle@redhat.com>
5398 Pushed by Joel Brobecker <brobecker@adacore.com>.
5399 * aarch64-tdep.c (aarch64_software_single_step): New function.
5400 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5401 with aarch64_software_single_step.
5403 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5407 2014-05-05 Keith Seitz <keiths@redhat.com>
5409 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5410 variable or history value is successfully parsed.
5412 2014-05-05 Yao Qi <yao@codesourcery.com>
5413 Pedro Alves <palves@redhat.com>
5415 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5416 address of blocks that intersects the requested range. Trim
5417 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5419 * ctf.c (ctf_xfer_partial): Likewise.
5421 2014-05-05 Yao Qi <yao@codesourcery.com>
5423 * printcmd.c (display_command): Remove the check to
5424 target_has_execution.
5426 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5428 * ppcobsd-nat.c: Include "obsd-nat.h".
5429 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5431 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5433 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5435 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5436 and 16-bit signed and unsigned arguments. Update comment.
5437 (stap_parse_probe_arguments): Extend code to handle such
5438 arguments. Use warning instead of complaint to notify about
5439 unrecognized bitness.
5441 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5443 PR breakpoints/16889
5444 * stap-probe.c (stap_parse_probe_arguments): Simplify
5445 check for non-prefixed probes (i.e., probes whose
5446 arguments do not start with "N@"). Always set the
5447 argument type to a sane value.
5449 2014-05-01 David Taylor <dtaylor@emc.com>
5451 * remote.c (compare_sections_command): Add -r option to compare
5452 all loadable read-only sections.
5454 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5456 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5457 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5459 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5460 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5461 Remove unused CORE_ADDR argument. Update all callers.
5463 2014-04-29 Pedro Alves <palves@redhat.com>
5465 * remote.c (struct packet_config) <detect>: Extend comment.
5466 (add_packet_config_cmd): Don't set the config's detect or support
5468 (init_all_packet_configs): Also initialize the config's 'detect'
5470 (reset_all_packet_configs_support): New function.
5471 (remote_open_1): Call reset_all_packet_configs_support instead of
5472 init_all_packet_configs.
5473 (_initialize_remote): Initialize all packet configs. Assert that
5474 all packets have an associated command, except a few known
5477 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5479 * dwarf2read.c (read_subrange_type): Handle dynamic
5480 DW_AT_lower_bound attributes.
5482 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5484 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5485 dynamic bounds before computing its upper bound.
5486 (ada_discrete_type_low_bound): Same as above with the lower bound.
5488 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5490 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5491 range types. Adjust the array handling implementation to
5492 take advantage of this change.
5493 (resolve_dynamic_range): New function, mostly extracted from
5494 resolve_dynamic_bounds.
5495 (resolve_dynamic_array): New function, mostly extracted from
5496 resolve_dynamic_bounds.
5497 (resolve_dynamic_bounds): Delete.
5498 (resolve_dynamic_type): Reimplement. Add handling of
5499 TYPE_CODE_RANGE types.
5501 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5503 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5504 handling of parallel ___XA types.
5506 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5508 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5509 unnecessary second call to static_unwrap_type.
5511 2014-04-27 Hui Zhu <hui@codesourcery.com>
5513 * stack.c (print_frame_info): Call do_gdb_disassembly with
5514 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5516 2014-04-26 Doug Evans <xdje42@gmail.com>
5518 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5520 2014-04-25 Pedro Alves <palves@redhat.com>
5523 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5524 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5525 and newline from built string.
5526 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5527 (linux_ptrace_attach_fail_reason): ... this.
5528 * linux-nat.c (linux_nat_attach): Adjust to use
5529 linux_ptrace_attach_fail_reason.
5531 2014-04-25 Pedro Alves <palves@redhat.com>
5533 * remote.c (struct remote_state): Remove multi_process_aware,
5534 non_stop_aware, cond_tracepoints, cond_breakpoints,
5535 breakpoint_commands, fast_tracepoints, static_tracepoints,
5536 install_in_trace, disconnected_tracing,
5537 enable_disable_tracepoints, string_tracing, and
5538 augmented_libraries_svr4_read fields.
5539 (remote_multi_process_p): Move further below in the file.
5540 (struct packet_config): Add comments.
5541 (update_packet_config): Delete function.
5542 (show_packet_config_cmd): Use packet_config_support.
5543 (add_packet_config_cmd): Use NULL as set callback.
5544 (packet_ok): "set remote foo-packet"-style commands no longer
5545 change config->supported -- adjust.
5546 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5547 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5548 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5549 (PACKET_QNonStop, PACKET_multiprocess_feature)
5550 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5551 (PACKET_DisconnectedTracing_feature)
5552 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5553 (set_remote_protocol_packet_cmd): Delete function.
5554 (packet_config_support, packet_support): New functions.
5555 (set_remote_protocol_Z_packet_cmd): Don't call
5556 update_packet_config.
5557 (remote_query_attached, remote_pass_signals)
5558 (remote_program_signals, remote_threads_info)
5559 (remote_threads_extra_info, remote_start_remote): Use
5561 (remote_start_remote): Use packet_config_support and
5563 (init_all_packet_configs): Set all packets to unknown support,
5564 instead of calling update_packet_config.
5565 (remote_check_symbols): Use packet_support.
5566 (remote_supported_packet): Unconditionally set the packet config's
5568 (remote_multi_process_feature, remote_non_stop_feature)
5569 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5570 (remote_breakpoint_commands_feature)
5571 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5572 (remote_install_in_trace_feature)
5573 (remote_disconnected_tracing_feature)
5574 (remote_enable_disable_tracepoint_feature)
5575 (remote_string_tracing_feature)
5576 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5577 (remote_protocol_features): Adjust to use remote_supported_packet
5578 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5579 "ConditionalTracepoints", "ConditionalBreakpoints",
5580 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5581 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5582 "EnableDisableTracepoints", and "tracenz".
5583 (remote_query_supported): Use packet_support.
5584 (remote_open_1): Adjust.
5585 (extended_remote_attach_1): Use packet_support. Switch on the
5586 result of packet_ok instead of checking whether the packet ended
5588 (remote_vcont_resume): Use packet_support.
5589 (remote_resume, remote_stop_ns, fetch_register_using_p)
5590 (remote_prepare_to_store, store_register_using_P)
5591 (check_binary_download, remote_write_bytes): Use packet_support.
5592 (remote_vkill): Use packet_support. Switch on the result of
5593 packet_ok instead of checking whether the packet ended up
5595 (extended_remote_supports_disable_randomization): Use
5597 (extended_remote_run): Switch on the result of packet_ok instead
5598 of checking whether the packet ended up disabled.
5599 (remote_insert_breakpoint, remote_remove_breakpoint)
5600 (remote_insert_watchpoint, remote_remove_watchpoint)
5601 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5603 (remote_search_memory): Use packet_config_support.
5604 (remote_get_thread_local_address, remote_get_tib_address)
5605 (remote_hostio_send_command, remote_can_execute_reverse): Use
5607 (remote_supports_cond_tracepoints)
5608 (remote_supports_cond_breakpoints)
5609 (remote_supports_fast_tracepoints)
5610 (remote_supports_static_tracepoints)
5611 (remote_supports_install_in_trace)
5612 (remote_supports_enable_disable_tracepoint)
5613 (remote_supports_string_tracing)
5614 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5615 the packet config says the feature is enabled or disabled.
5616 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5617 (remote_get_trace_status): Use packet_support.
5618 (remote_set_disconnected_tracing): Adjust to check whether the
5619 feature is enabled with packet_support.
5620 (remote_set_trace_buffer_size, remote_use_agent)
5621 (remote_can_use_agent, remote_supports_btrace): Use
5623 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5624 Use packet_config_support.
5625 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5626 the packet config says the feature is enabled or disabled.
5627 (set_range_stepping): Use packet_support.
5629 2014-04-25 Tom Tromey <tromey@redhat.com>
5631 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5634 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5636 * NEWS: Mention support for C99 variable length arrays.
5638 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5640 * ada-lang.c (standard_exc): Expand introductory comment.
5642 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5643 Walfred Tedeschi <walfred.tedeschi@intel.com>
5645 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5647 (amd64_linux_read_description): Add code to handle AVX512 xstate
5648 mask and return respective tdesc.
5649 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5650 and features/i386/x32-avx512-linux.c.
5651 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5652 (amd64_linux_core_read_description): Add code to handle AVX512
5653 xstate mask and return respective tdesc.
5654 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5655 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5657 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5658 (tdesc_amd64_avx512_linux): New prototype.
5659 (tdesc_x32_avx512_linux): Likewise.
5660 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5661 features/i386/x32-avx512.c.
5662 (amd64_ymm_avx512_names): New register names for pseudo
5664 (amd64_ymmh_avx512_names): New register names for raw registers
5666 (amd64_k_names): New register names for K registers.
5667 (amd64_zmmh_names): New register names for ZMM raw registers.
5668 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5669 (amd64_xmm_avx512_names): New register names for XMM16-31
5671 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5673 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5674 if feature is present.
5675 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5676 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5677 (AMD64_NUM_REGS): Adjust to new number of registers.
5678 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5679 registers supplied via XSTATE by AVX512 registers.
5680 (i386_linux_read_description): Add case for AVX512.
5681 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5682 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5683 (i386_linux_core_read_description): Add case for AVX512.
5684 (i386_linux_init_abi): Install supported register note section
5686 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5688 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5689 registers to be number of zmm7h + 1.
5690 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5691 * i386-tdep.c: Include features/i386/i386-avx512.c.
5692 (i386_zmm_names): Add ZMM pseudo register names array.
5693 (i386_zmmh_names): Add ZMM raw register names array.
5694 (i386_k_names): Add K raw register names array.
5695 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5696 registers. AVX512 has 16 more ZMM registers than there are YMM
5698 (i386_zmmh_regnum_p): Add function to look up register number of
5700 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5701 (i386_k_regnum_p): Likewise for K raw registers.
5702 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5703 registers added by AVX512.
5704 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5705 registers added by AVX512.
5706 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5708 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5709 (i386_pseudo_register_name): Add ZMM pseudo registers.
5710 (i386_zmm_type): Construct and return vector registers type for ZMM
5712 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5713 ZMM0-31 pseudo registers and K registers.
5714 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5715 and YMM16-31 registers from register cache.
5716 (i386_pseudo_register_write): Add code to write K, ZMM and
5718 (i386_register_reggroup_p): Add code to include/exclude AVX512
5719 registers in/from respective register groups.
5720 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5721 registers if feature is present in xcr0.
5722 (i386_gdbarch_init): Add code to initialize AVX512 feature
5723 variables in tdep structure, wire in pseudo registers and call
5724 initialize_tdesc_i386_avx512.
5725 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5727 (i386_regnum): Add AVX512 registers.
5728 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5729 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5730 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5731 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5733 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5734 (i386_ymm_avx512_regnum_p): Likewise.
5735 (i386_k_regnum_p): Likewise.
5736 (i386_zmm_regnum_p): Likewise.
5737 (i386_zmmh_regnum_p): Likewise.
5738 * i387-tdep.c : Update year in copyright notice.
5739 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5741 (XSAVE_YMM_AVX512_ADDR): New macro.
5742 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5744 (XSAVE_XMM_AVX512_ADDR): New macro.
5745 (xsave_avx512_k_offset): New table for K register offsets in
5747 (XSAVE_AVX512_K_ADDR): New macro.
5748 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5750 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5751 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5753 (i387_collect_xsave): Add code to collect AVX512 registers from
5755 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5756 of XMM16-31 registers.
5757 (I387_NUM_K_REGS): New define for number of K registers.
5758 (I387_K0_REGNUM): New define for K0 register number.
5759 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5760 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5761 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5763 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5764 (I387_XMM16_REGNUM): New define for XMM16 register number.
5765 (I387_YMM0_REGNUM): New define for YMM0 register number.
5766 (I387_KEND_REGNUM): New define for last K register number.
5767 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5768 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5770 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5772 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5774 * features/Makefile: Add AVX512 related files.
5775 * features/i386/32bit-avx512.xml: New file.
5776 * features/i386/64bit-avx512.xml: Likewise.
5777 * features/i386/amd64-avx512-linux.c: Likewise.
5778 * features/i386/amd64-avx512-linux.xml: Likewise.
5779 * features/i386/amd64-avx512.c: Likewise.
5780 * features/i386/amd64-avx512.xml: Likewise.
5781 * features/i386/i386-avx512-linux.c: Likewise.
5782 * features/i386/i386-avx512-linux.xml: Likewise.
5783 * features/i386/i386-avx512.c: Likewise.
5784 * features/i386/i386-avx512.xml: Likewise.
5785 * features/i386/x32-avx512-linux.c: Likewise.
5786 * features/i386/x32-avx512-linux.xml: Likewise.
5787 * features/i386/x32-avx512.c: Likewise.
5788 * features/i386/x32-avx512.xml: Likewise.
5789 * regformats/i386/amd64-avx512-linux.dat: New file.
5790 * regformats/i386/amd64-avx512.dat: Likewise.
5791 * regformats/i386/i386-avx512-linux.dat: Likewise.
5792 * regformats/i386/i386-avx512.dat: Likewise.
5793 * regformats/i386/x32-avx512-linux.dat: Likewise.
5794 * regformats/i386/x32-avx512.dat: Likewise.
5795 * NEWS: Add note about new support for AVX512.
5798 2014-04-23 Pedro Alves <palves@redhat.com>
5800 * breakpoint.c (insert_bp_location): Tolerate errors if the
5801 breakpoint is set in a user-loaded objfile.
5802 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5803 location is marked shlib_disabled. If the breakpoint is set in a
5804 user-loaded objfile is a GDB-side memory breakpoint, validate it
5805 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5806 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5808 * mem-break.c (memory_validate_breakpoint): New function.
5809 * objfiles.c (userloaded_objfile_contains_address_p): New
5811 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5812 * target.h (memory_validate_breakpoint): New declaration.
5814 2014-04-23 Pedro Alves <palves@redhat.com>
5816 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5817 the breakpoint is set in a shared library, only suppress
5818 errors for software breakpoints, not hardware breakpoints.
5820 2014-04-22 Pedro Alves <palves@redhat.com>
5822 * infrun.c (schedlock_applies): New function, factored out from
5823 find_thread_needs_step_over.
5824 (find_thread_needs_step_over): Use it.
5825 (switch_back_to_stepped_thread): Always clear trap_expected if the
5826 step over is finished. Return early if scheduler locking applies.
5827 Look for the stepping thread and a potential step-over thread with
5829 (currently_stepping_or_nexting_callback): Delete.
5831 2014-04-22 Nick Clifton <nickc@redhat.com>
5833 * NEWS: Mention that ARM sim now supports tracing.
5835 2014-04-22 Yao Qi <yao@codesourcery.com>
5837 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5839 * tracefile.c (tracefile_fetch_registers): ... it. New
5841 * tracefile.h (tracefile_fetch_registers): Declare.
5842 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5843 tracefile_fetch_registers.
5845 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5848 * windows-nat.c (thread_rec): Don't display a warning when
5849 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5850 fails for any reason, set th->suspended to -1, so that we don't
5851 try to resume such a thread. Also, don't return NULL in these
5852 cases, to avoid completely ruin the session due to "PC register is
5853 not available" error.
5854 (do_windows_fetch_inferior_registers): Check errors in
5855 GetThreadContext call.
5856 (windows_continue): Accept an additional argument KILLED; if not
5857 zero, ignore errors in the SetThreadContext call, since the
5858 inferior was killed and is shutting down.
5859 (windows_resume, get_windows_debug_event)
5860 (windows_create_inferior, windows_mourn_inferior)
5861 (windows_kill_inferior): All callers of windows_continue changed
5862 to adjust to its new calling sequence.
5864 2014-04-19 Yao Qi <yao@codesourcery.com>
5866 * ctf.c (ctf_open): Call post_create_inferior.
5868 2014-04-19 Yao Qi <yao@codesourcery.com>
5870 * ctf.c (handle_id): New static variable.
5871 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5872 value. Get the declaration of event "register" and get length
5873 of field "contents".
5875 2014-04-19 Yao Qi <yao@codesourcery.com>
5877 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5879 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5881 * valops.c (oload_method_static): Remove unnecessary argument
5882 METHOD. Update all callers.
5884 2014-04-18 Pedro alves <palves@redhat.com>
5885 Tom Tromey <tromey@redhat.com>
5888 * frame.c (get_prev_frame_1): Rename to ...
5889 (get_prev_frame_always): ... this, and make extern. Adjust.
5890 (skip_artificial_frames): Use get_prev_frame_always.
5891 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5892 (get_frame_unwind_stop_reason): Adjust to rename.
5893 * frame.h (get_prev_frame_always): Declare.
5894 * inline-frame.c: Include frame.h.
5895 (inline_frame_this_id): Use get_prev_frame_always.
5897 2014-04-18 Tristan Gingold <gingold@adacore.com>
5899 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5900 code by using bfd_mach_o_get_base_address.
5902 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5904 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5905 (spu_ax_pseudo_register_collect): New function.
5906 (spu_ax_pseudo_register_push_stack): Likewise.
5907 (spu_dwarf_reg_to_regnum): Likewise.
5908 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5910 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5912 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5913 Replace FRAME argument with FRAME_ID.
5914 * gdbarch.c, gdbarch.h: Regenerate.
5915 * findvar.c (default_value_from_register): Add GDBARCH argument;
5916 replace FRAME by FRAME_ID. No longer call get_frame_id.
5917 (value_from_register): Update call to gdbarch_value_from_register.
5918 * value.h (default_value_from_register): Update prototype.
5919 * s390-linux-tdep.c (s390_value_from_register): Update interface
5920 and call to default_value_from_register.
5921 * spu-tdep.c (spu_value_from_register): Likewise.
5923 * findvar.c (address_from_register): Remove TYPE argument.
5924 Do not call value_from_register; use gdbarch_value_from_register
5925 with null_frame_id instead.
5926 * value.h (address_from_register): Update prototype.
5927 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5928 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5929 address_from_register interface change.
5931 2014-04-17 Yao Qi <yao@codesourcery.com>
5933 * gdbtypes.h: Update comments to link to types and macros'
5936 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5938 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5940 2014-04-16 Keith Seitz <keiths@redhat.com>
5943 * dwarf2read.c (skip_one_die): Check that all relative-offset
5944 sibling DIEs fall within range of the current reader's buffer.
5945 (read_partial_die): Likewise.
5947 2014-04-16 Keith Seitz <keiths@redhat.com>
5950 * cp-namespace.c (lookup_symbol_file): If the type name of
5951 `this' is NULL, return immediately.
5953 2014-04-14 Keith Seitz <keiths@redhat.com>
5956 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5957 from symbol_matches_domain in symtab.c. All local callers
5958 of symbol_matches_domain updated.
5959 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5960 search STRUCT_DOMAIN.
5961 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5962 independently. standard_lookup will do that automatically.
5963 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5964 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5965 (cp_lookup_symbol_in_namespace): Likewise.
5966 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5967 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5968 may return a STRUCT_DOMAIN match.
5969 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5970 * cp-support.c: Include language.h.
5971 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5973 * psymtab.c (match_partial_symbol): Compare the requested
5974 domain with the symbol's domain directly.
5975 (lookup_partial_symbol): Likewise.
5976 * symtab.c (lookup_symbol_in_language): Explain when/why
5977 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5978 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5979 appropriate languages.
5980 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5981 and moved to ada-lang.c
5982 (lookup_block_symbol): Explain that this function only returns
5983 symbol matching the requested DOMAIN.
5984 Compare the requested domain with the symbol's domain directly.
5985 (iterate_over_symbols): Compare the requested domain with the
5986 symbol's domain directly.
5987 * symtab.h (symbol_matches_domain): Remove.
5989 2014-04-14 Tom Tromey <tromey@redhat.com>
5992 * c-exp.y (type_aggregate_p): New function.
5993 (qualified_name, classify_inner_name): Use it.
5994 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5995 and TYPE_TARGET_TYPE of an enum type.
5996 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5998 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5999 handle TYPE_DECLARED_CLASS.
6000 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6002 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6003 * valops.c (enum_constant_from_type): New function.
6004 (value_aggregate_elt): Use it.
6005 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6008 2014-04-14 Tom Tromey <tromey@redhat.com>
6010 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6011 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6013 * value.h (value_aggregate_elt): Update.
6015 2014-04-14 Tom Tromey <tromey@redhat.com>
6017 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6019 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6021 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6022 (evaluate_subexp_standard): Pass noside argument.
6023 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6024 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6025 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6026 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6027 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6029 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6031 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6032 points to a constant blob.
6034 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6036 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6037 property and store it as the high bound and flag the range accordingly.
6038 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6039 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6040 * gdbtypes.h (enum range_flags): New enum.
6041 (struct range_bounds): Add flags member.
6043 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6045 * c-typeprint.c (c_type_print_varspec_suffix): Added
6046 check for not yet resolved high bound. If unresolved, print
6047 "variable length" string to the console instead of random
6050 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6052 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6054 (ada_template_to_fixed_record_type_1): Likewise.
6055 (ada_to_fixed_type_1): Likewise.
6056 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6057 (cp_print_value): Likewise.
6058 * d-valprint.c (dynamic_array_type): Likewise.
6059 * findvar.c (address_of_variable): Likewise.
6060 * jv-valprint.c (java_value_print): Likewise.
6061 * valops.c (value_ind): Likewise.
6062 * value.c (coerce_ref): Likewise.
6064 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6066 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6067 value and retrieve the dynamic type size.
6069 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6071 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6072 passed to sizeof is dynamic evaluate the argument to compute the length.
6074 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6075 Joel Brobecker <brobecker@adacore.com>
6077 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6078 (dwarf2_evaluate_property): New function.
6079 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6080 * dwarf2read.c (attr_to_dynamic_prop): New function.
6081 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6083 * gdbtypes.c: Include dwarf2loc.h.
6084 (is_dynamic_type): New function.
6085 (resolve_dynamic_type): New function.
6086 (resolve_dynamic_bounds): New function.
6087 (get_type_length): New function.
6088 (check_typedef): Use get_type_length to compute type length.
6089 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6090 (TYPE_LOW_BOUND_KIND): New macro.
6091 (is_dynamic_type): New function prototype.
6092 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6093 to resolve dynamic properties of the type. Update comment.
6094 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6096 2014-04-14 Richard Henderson <rth@redhat.com>
6098 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6100 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6101 Doug Evans <xdje42@gmail.com>
6103 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6104 dereference TYPE_CODE_REF values.
6106 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6108 Revert the following changes due to regressions:
6110 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6111 (dwarf2_evaluate_property): New function.
6112 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6113 * dwarf2read.c (attr_to_dynamic_prop): New function.
6114 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6116 * gdbtypes.c: Include dwarf2loc.h.
6117 (is_dynamic_type): New function.
6118 (resolve_dynamic_type): New function.
6119 (resolve_dynamic_bounds): New function.
6120 (get_type_length): New function.
6121 (check_typedef): Use get_type_length to compute type length.
6122 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6123 (TYPE_LOW_BOUND_KIND): New macro.
6124 (is_dynamic_type): New function prototype.
6125 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6126 to resolve dynamic properties of the type. Update comment.
6127 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6129 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6130 passed to sizeof is dynamic evaluate the argument to compute the length.
6132 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6133 value and retrieve the dynamic type size.
6135 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6136 (ada_template_to_fixed_record_type_1): Likewise.
6137 (ada_to_fixed_type_1): Likewise.
6138 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6139 (cp_print_value): Likewise.
6140 * d-valprint.c (dynamic_array_type): Likewise.
6141 * eval.c (evaluate_subexp_with_coercion): Likewise.
6142 * findvar.c (address_of_variable): Likewise.
6143 * jv-valprint.c (java_value_print): Likewise.
6144 * valops.c (value_ind): Likewise.
6145 * value.c (coerce_ref): Likewise.
6147 * c-typeprint.c (c_type_print_varspec_suffix): Added
6148 check for not yet resolved high bound. If unresolved, print
6149 "variable length" string to the console instead of random
6152 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6153 property and store it as the high bound and flag the range accordingly.
6154 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6155 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6156 * gdbtypes.h (enum range_flags): New enum.
6157 (struct range_bounds): Add flags member.
6159 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6160 points to a constant blob.
6162 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6163 (evaluate_subexp_standard): Pass noside argument.
6164 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6165 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6166 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6167 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6168 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6170 2014-04-11 Keith Seitz <keiths@redhat.com>
6173 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6174 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6177 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6179 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6180 (evaluate_subexp_standard): Pass noside argument.
6181 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6182 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6183 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6184 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6185 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6187 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6189 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6190 points to a constant blob.
6192 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6194 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6195 property and store it as the high bound and flag the range accordingly.
6196 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6197 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6198 * gdbtypes.h (enum range_flags): New enum.
6199 (struct range_bounds): Add flags member.
6201 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6203 * c-typeprint.c (c_type_print_varspec_suffix): Added
6204 check for not yet resolved high bound. If unresolved, print
6205 "variable length" string to the console instead of random
6208 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6210 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6211 (ada_template_to_fixed_record_type_1): Likewise.
6212 (ada_to_fixed_type_1): Likewise.
6213 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6214 (cp_print_value): Likewise.
6215 * d-valprint.c (dynamic_array_type): Likewise.
6216 * eval.c (evaluate_subexp_with_coercion): Likewise.
6217 * findvar.c (address_of_variable): Likewise.
6218 * jv-valprint.c (java_value_print): Likewise.
6219 * valops.c (value_ind): Likewise.
6220 * value.c (coerce_ref): Likewise.
6222 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6224 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6225 value and retrieve the dynamic type size.
6227 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6229 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6230 passed to sizeof is dynamic evaluate the argument to compute the length.
6232 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6234 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6235 (dwarf2_evaluate_property): New function.
6236 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6237 * dwarf2read.c (attr_to_dynamic_prop): New function.
6238 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6240 * gdbtypes.c: Include dwarf2loc.h.
6241 (is_dynamic_type): New function.
6242 (resolve_dynamic_type): New function.
6243 (resolve_dynamic_bounds): New function.
6244 (get_type_length): New function.
6245 (check_typedef): Use get_type_length to compute type length.
6246 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6247 (TYPE_LOW_BOUND_KIND): New macro.
6248 (is_dynamic_type): New function prototype.
6249 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6250 to resolve dynamic properties of the type. Update comment.
6251 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6253 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6255 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6256 declaring high/low bounds and change uses accordingly. Call
6257 create_range_type instead of create_static_range_type.
6258 * gdbtypes.c (create_range_type): New function.
6259 (create_range_type): Convert bounds into struct bound_prop and pass
6260 them to create_range_type.
6261 * gdbtypes.h (struct bound_prop): New struct.
6262 (create_range_type): New function prototype.
6263 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6264 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6265 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6267 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6269 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6271 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6272 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6273 * ada-lang.c: All uses of create_range_type updated.
6274 * coffread.c: All uses of create_range_type updated.
6275 * dwarf2read.c: All uses of create_range_type updated.
6276 * f-exp.y: All uses of create_range_type updated.
6277 * m2-valprint.c: All uses of create_range_type updated.
6278 * mdebugread.c: All uses of create_range_type updated.
6279 * stabsread.c: All uses of create_range_type updated.
6280 * valops.c: All uses of create_range_type updated.
6281 * valprint.c: All uses of create_range_type updated.
6283 2014-04-10 Pedro Alves <palves@redhat.com>
6285 * breakpoint.c (single_step_breakpoints)
6286 (single_step_gdbarch): Move up in the file.
6287 (one_breakpoint_xfer_memory): New function, factored out from ...
6288 (breakpoint_xfer_memory): ... here. Also process single-step
6291 2014-04-09 Tristan Gingold <gingold@adacore.com>
6293 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6295 (darwin_decode_exception_message): Free port only after use.
6297 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6299 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6300 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6301 when setting the size of call_length.
6303 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6305 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6306 dereference TYPE_CODE_REF values.
6308 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6310 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6311 end of warning message.
6313 2014-04-03 Doug Evans <dje@google.com>
6315 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6316 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6318 2014-04-02 Alan Modra <amodra@gmail.com>
6320 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6321 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6322 (struct symbol_file_add_from_memory_args): Add size field.
6323 (find_vdso_size): New function.
6324 (add_vsyscall_page): Attempt to find vdso size.
6326 2014-04-01 Doug Evans <dje@google.com>
6328 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6330 2014-04-01 Tristan Gingold <gingold@adacore.com>
6332 * darwin-nat.c (darwin_encode_reply): Add prototype.
6333 (darwin_decode_exception_message): Reply to unknown inferiors.
6334 (darwin_decode_message): Handle message by id. Ignore message
6335 to unknown inferior.
6336 (darwin_wait): Discard unknown messages, add debug trace.
6338 2014-03-31 Doug Evans <dje@google.com>
6340 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6343 2014-03-31 Doug Evans <dje@google.com>
6345 New option "set print symbol-loading".
6347 * solib.c (solib_read_symbols): Only print symbol loading messages
6349 (solib_add): If symbol loading is in "brief" mode, notify user
6350 symbols are being loaded.
6351 (reload_shared_libraries_1): Ditto.
6352 * symfile.c (print_symbol_loading_off): New static global.
6353 (print_symbol_loading_brief): New static global.
6354 (print_symbol_loading_full): New static global.
6355 (print_symbol_loading_enums): New static global.
6356 (print_symbol_loading): New static global.
6357 (print_symbol_loading_p): New function.
6358 (symbol_file_add_with_addrs): Only print symbol loading messages
6360 (_initialize_symfile): Register "print symbol-loading" set/show
6362 * symfile.h (print_symbol_loading_p): Declare.
6364 2014-03-30 Doug Evans <xdje42@gmail.com>
6366 * infrun.c (set_last_target_status): New function.
6367 (handle_inferior_event): Call it.
6369 2014-03-30 Doug Evans <xdje42@gmail.com>
6371 * inferior.h (enum stop_kind): Improve comment.
6373 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6375 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6376 a reference, strip the reference layer before calling
6377 the lang_ops value_has_mutated callback.
6379 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6381 Remove some globals from our parser.
6382 * language.c (unk_lang_parser): Add "struct parser_state"
6384 * language.h (struct language_defn) <la_parser>: Likewise.
6385 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6386 (initialize_expout): Add "struct parser_state" argument.
6387 Rewrite function to use the parser state.
6388 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6389 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6390 write_exp_elt_longcst, write_exp_elt_dblcst,
6391 write_exp_elt_decfloatcst, write_exp_elt_type,
6392 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6393 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6394 write_dollar_variable): Likewise.
6395 (parse_exp_in_context_1): Use parser state.
6396 (insert_type_address_space): Add "struct parser_state" argument.
6398 (increase_expout_size): New function.
6399 * parser-defs.h: Forward declare "struct language_defn" and
6400 "struct parser_state".
6401 (expout, expout_size, expout_ptr): Remove extern declarations.
6402 (parse_gdbarch, parse_language): Rewrite macro declarations to
6403 accept the parser state.
6404 (struct parser_state): New struct.
6405 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6406 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6407 write_exp_elt_decfloatcst, write_exp_elt_type,
6408 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6409 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6410 write_exp_msymbol, write_dollar_variable,
6411 mark_struct_expression, insert_type_address_space): Add "struct
6412 parser_state" argument.
6413 (increase_expout_size): New function.
6414 * utils.c (do_clear_parser_state): New function.
6415 (make_cleanup_clear_parser_state): Likewise.
6416 * utils.h (make_cleanup_clear_parser_state): New function
6418 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6419 Update calls to write_exp* in order to pass the parser state.
6420 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6421 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6422 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6423 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6424 * stap-probe.c (stap_parse_register_operand): Likewise.
6425 (stap_parse_single_operand): Likewise.
6426 (stap_parse_argument_1): Likewise.
6427 (stap_parse_argument): Use parser state.
6428 * stap-probe.h: Include "parser-defs.h".
6429 (struct stap_parse_info) <pstate>: New field.
6430 * c-exp.y (parse_type): Rewrite to use parser state.
6431 (yyparse): Redefine to c_parse_internal.
6432 (pstate): New global variable.
6433 (parse_number): Add "struct parser_state" argument.
6434 (write_destructor_name): Likewise.
6435 (type_exp): Update calls to write_exp* and similars in order to
6437 (exp1, exp, variable, qualified_name, space_identifier,
6438 typename, typebase): Likewise.
6439 (write_destructor_name, parse_number, lex_one_token,
6440 classify_name, classify_inner_name, c_parse): Add "struct
6441 parser_state" argument. Update function to use parser state.
6442 * c-lang.h: Forward declare "struct parser_state".
6443 (c_parse): Add "struct parser_state" argument.
6444 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6445 (yyparse): Redefine macro to ada_parse_internal.
6446 (pstate): New variable.
6447 (write_int, write_object_renaming, write_var_or_type,
6448 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6449 type_int, type_long, type_long_long, type_float, type_double,
6450 type_long_double, type_char, type_boolean, type_system_address):
6451 Add "struct parser_state" argument.
6452 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6453 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6454 var_or_type, aggregate, aggregate_component_list,
6455 positional_list, others, component_group,
6456 component_associations): Update calls to write_exp* and similar
6457 functions in order to use parser state.
6458 (ada_parse, write_var_from_sym, write_int,
6459 write_exp_op_with_string, write_object_renaming,
6460 find_primitive_type, write_selectors, write_ambiguous_var,
6461 write_var_or_type, write_name_assoc, type_int, type_long,
6462 type_long_long, type_float, type_double, type_long_double,
6463 type_char, type_boolean, type_system_address): Add "struct
6464 parser_state" argument. Adjust function to use parser state.
6465 * ada-lang.c (parse): Likewise.
6466 * ada-lang.h: Forward declare "struct parser_state".
6467 (ada_parse): Add "struct parser_state" argument.
6468 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6469 calls to both functions.
6470 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6472 (yyparse): Redefine macro to f_parse_internal.
6473 (pstate): New variable.
6474 (parse_number): Add "struct parser_state" argument.
6475 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6476 and similars in order to use parser state.
6477 (parse_number): Adjust code to use parser state.
6479 (f_parse): New function.
6480 * f-lang.h: Forward declare "struct parser_state".
6481 (f_parse): Add "struct parser_state" argument.
6482 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6484 (yyparse): Redefine macro for java_parse_internal.
6485 (pstate): New variable.
6486 (push_expression_name, push_expression_name, insert_exp): Add
6487 "struct parser_state" argument.
6488 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6489 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6490 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6491 PostIncrementExpression, PostDecrementExpression,
6492 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6493 UnaryExpressionNotPlusMinus, CastExpression,
6494 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6495 RelationalExpression, EqualityExpression, AndExpression,
6496 ExclusiveOrExpression, InclusiveOrExpression,
6497 ConditionalAndExpression, ConditionalOrExpression,
6498 ConditionalExpression, Assignment, LeftHandSide): Update
6499 calls to write_exp* and similars in order to use parser state.
6500 (parse_number): Ajust code to use parser state.
6502 (java_parse): New function.
6503 (push_variable): Add "struct parser_state" argument. Adjust
6504 code to user parser state.
6505 (push_fieldnames, push_qualified_expression_name,
6506 push_expression_name, insert_exp): Likewise.
6507 * jv-lang.h: Forward declare "struct parser_state".
6508 (java_parse): Add "struct parser_state" argument.
6509 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6511 (yyparse): Redefine macro to m2_parse_internal.
6512 (pstate): New variable.
6513 (type_exp, exp, fblock, variable, type): Update calls to
6514 write_exp* and similars to use parser state.
6516 (m2_parse): New function.
6517 * m2-lang.h: Forward declare "struct parser_state".
6518 (m2_parse): Add "struct parser_state" argument.
6519 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6520 * objc-lang.h: Forward declare "struct parser_state".
6521 (end_msglist): Add "struct parser_state" argument.
6522 * p-exp.y (parse_type): Rewrite macro to use parser state.
6523 (yyparse): Redefine macro to pascal_parse_internal.
6524 (pstate): New variable.
6525 (parse_number): Add "struct parser_state" argument.
6526 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6527 write_exp* and similars in order to use parser state.
6528 (parse_number, yylex): Adjust code to use parser state.
6529 (pascal_parse): New function.
6530 * p-lang.h: Forward declare "struct parser_state".
6531 (pascal_parse): Add "struct parser_state" argument.
6532 * go-exp.y (parse_type): Rewrite macro to use parser state.
6533 (yyparse): Redefine macro to go_parse_internal.
6534 (pstate): New variable.
6535 (parse_number): Add "struct parser_state" argument.
6536 (type_exp, exp1, exp, variable, type): Update calls to
6537 write_exp* and similars in order to use parser state.
6538 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6539 to use parser state.
6540 (go_parse): Likewise.
6541 * go-lang.h: Forward declare "struct parser_state".
6542 (go_parse): Add "struct parser_state" argument.
6544 2014-03-27 Doug Evans <dje@google.com>
6546 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6548 2014-03-27 Doug Evans <dje@google.com>
6550 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6551 Remove argument abbrev_section. All callers updated.
6553 2014-03-27 Doug Evans <dje@google.com>
6555 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6556 addr_base, ranges_base.
6558 2014-03-26 Keith Seitz <keiths@redhat.com>
6560 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6561 types, not VAR_DOMAIN.
6563 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6565 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6567 * features/nios2-linux.c: Regenerated.
6568 * features/nios2.c: Regenerated.
6570 2014-03-25 Pedro Alves <palves@redhat.com>
6572 * cli/cli-script.c (script_from_file): Force the interpreter to
6575 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6577 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6578 small stack allocation.
6580 2014-03-24 Tristan Gingold <gingold@adacore.com>
6582 * darwin-nat.c (exc_server): Remove unused prototype.
6583 (darwin_dump_message): Correctly display data on x86_64.
6584 (darwin_encode_reply): Fix style.
6585 Add comments and fix indentation.
6587 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6589 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6591 2014-03-22 Doug Evans <xdje42@gmail.com>
6593 * infcmd.c: Whitespace fixes.
6594 (interrupt_command): Merge two function comments into one.
6596 2014-03-22 Doug Evans <xdje42@gmail.com>
6598 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6601 2014-03-22 Yao Qi <yao@codesourcery.com>
6603 * remote.c (target_read_live_memory): Remove.
6604 (memory_xfer_live_readonly_partial): Rename it to
6605 remote_xfer_live_readonly_partial. Remove argument 'object'.
6606 All callers updated. Call remote_read_bytes_1
6607 instead of target_read_live_memory.
6608 * tracepoint.c (set_traceframe_number): Remove.
6609 (make_cleanup_restore_traceframe_number): Likewise .
6610 * tracepoint.h (set_traceframe_number): Remove declaration.
6611 (make_cleanup_restore_traceframe_number): Likewise.
6613 2014-03-22 Yao Qi <yao@codesourcery.com>
6615 * remote.c (remote_read_bytes): Move code on reading from the
6617 (remote_read_bytes_1): ... here. New function.
6619 2014-03-22 Yao Qi <yao@codesourcery.com>
6621 * ctf.c (ctf_xfer_partial): Check the return value of
6622 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6623 return TARGET_XFER_UNAVAILABLE.
6624 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6625 * target.c (target_read_live_memory): Move it to remote.c.
6626 (memory_xfer_live_readonly_partial): Likewise.
6627 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6628 * remote.c (target_read_live_memory): Moved from target.c.
6629 (memory_xfer_live_readonly_partial): Likewise.
6630 (remote_read_bytes): Factored out from
6631 memory_xfer_partial_1.
6633 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6635 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6638 2014-03-21 Pedro Alves <palves@redhat.com>
6640 * infrun.c (normal_stop): Extend comment.
6642 2014-03-21 Hui Zhu <hui@codesourcery.com>
6643 Pedro Alves <palves@redhat.com>
6645 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6647 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6648 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6649 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6651 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6653 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6654 `z' formatted output modifier.
6656 2014-03-20 Tom Tromey <tromey@redhat.com>
6657 Sergio Durigan Junior <sergiodj@redhat.com>
6659 * probe.c (parse_probes): Turn assert into an ordinary error.
6660 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6661 exceptions when parsing probes. Rearrange the code for clarity.
6663 2014-03-20 Tom Tromey <tromey@redhat.com>
6666 * top.c (execute_command): Only dispatch events if the command
6669 2014-03-20 Tom Tromey <tromey@redhat.com>
6672 * infcall.c: Include event-top.h.
6673 (run_inferior_call): Call async_disable_stdin if needed.
6675 2014-03-20 Pedro Alves <palves@redhat.com>
6677 * infrun.c (prepare_to_proceed): Delete.
6678 (thread_still_needs_step_over): New function.
6679 (find_thread_needs_step_over): New function.
6680 (proceed): If the current thread needs a step-over, set its
6681 steping_over_breakpoint flag. Adjust to use
6682 find_thread_needs_step_over instead of prepare_to_proceed.
6683 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6684 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6686 (switch_back_to_stepped_thread): Step over breakpoints of all
6687 threads not the stepping thread, before switching back to the
6690 2014-03-20 Pedro Alves <palves@redhat.com>
6692 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6694 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6695 * infrun.c (saved_singlestep_ptid)
6696 (stepping_past_singlestep_breakpoint): Delete.
6697 (resume): Remove stepping_past_singlestep_breakpoint handling.
6698 (proceed): Store the prev_pc of the stepping thread too.
6699 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6701 (enum infwait_states): Delete infwait_thread_hop_state.
6702 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6704 (handle_inferior_event): Adjust.
6705 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6706 handling and the thread-hop code. Before removing single-step
6707 breakpoints, check whether the thread hit a single-step breakpoint
6708 of another thread. If it did, the trap is not a random signal.
6709 (switch_back_to_stepped_thread): If the event thread hit a
6710 single-step breakpoint, unblock it before switching to the
6711 stepping thread. Handle the case of the stepped thread having
6713 (keep_going): Handle the case of the current thread moving past a
6714 single-step breakpoint.
6716 2014-03-20 Pedro Alves <palves@redhat.com>
6719 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6720 are being stepped over.
6721 (breakpoint_address_match): Make extern.
6722 * breakpoint.h (breakpoint_address_match): New declaration.
6723 * inferior.h (stepping_past_instruction_at): New declaration.
6724 * infrun.c (struct step_over_info): New type.
6725 (step_over_info): New global.
6726 (set_step_over_info, clear_step_over_info)
6727 (stepping_past_instruction_at): New functions.
6728 (handle_inferior_event): Clear the step-over info when
6729 trap_expected is cleared.
6730 (resume): Remove now stale comment.
6731 (clear_proceed_status): Clear step-over info.
6732 (proceed): Adjust step-over handling to set or clear the step-over
6733 info instead of removing all breakpoints.
6734 (handle_signal_stop): When setting up a thread-hop, don't remove
6736 (stop_stepping): Clear step-over info.
6737 (keep_going): Adjust step-over handling to set or clear step-over
6738 info and then always inserting breakpoints, instead of removing
6739 all breakpoints when stepping over one.
6741 2014-03-20 Pedro Alves <palves@redhat.com>
6743 * infrun.c (previous_inferior_ptid): Adjust comment.
6744 (deferred_step_ptid): Delete.
6745 (infrun_thread_ptid_changed, prepare_to_proceed)
6746 (init_wait_for_inferior): Adjust.
6747 (handle_signal_stop): Delete deferred_step_ptid handling.
6749 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 * defs.h (sync_quit_force_run): New declaration.
6753 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6754 * event-top.c (async_sigterm_handler): New declaration.
6755 (async_sigterm_token): New variable.
6756 (async_init_signals): Create also async_sigterm_token.
6757 (async_sigterm_handler): New function.
6758 (sync_quit_force_run): New variable.
6759 (handle_sigterm): Replace quit_force call by other calls.
6760 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6762 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6764 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6765 offset into SPE pseudo registers.
6767 2014-03-18 Pedro Alves <palves@redhat.com>
6770 * inferior.h (print_stop_event): Declare.
6771 * infrun.c (print_stop_event): New, factored out from ...
6772 (normal_stop): ... this.
6773 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6774 of bpstat_print/print_stack_frame.
6776 2014-03-17 Tom Tromey <tromey@redhat.com>
6778 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6780 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6782 * ada-lang.c (decode_constrained_packed_array): Perform a
6783 minimal coercion for reference with coerce_ref instead of
6786 2014-03-17 Tristan Gingold <gingold@adacore.com>
6788 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6789 (darwin_solib_create_inferior_hook): Emit a warning if version
6792 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6794 * python/py-value.c (get_field_flag): Cast flag_name argument to
6795 PyObject_GetAttrString to support Python 2.4.
6797 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6799 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6800 (Global Maintainers): Remove Jan Kratochvil.
6802 2014-03-14 Pedro Alves <palves@redhat.com>
6804 * inferior.h (terminal_ours_for_output): Rename to ...
6805 (child_terminal_ours_for_output): ... this.
6806 (terminal_save_ours): Rename to ...
6807 (child_terminal_save_ours): ... this.
6808 (terminal_ours): Rename to ...
6809 (child_terminal_ours): ... this.
6810 (terminal_inferior): Rename to ...
6811 (child_terminal_inferior): ... this.
6812 (terminal_init_inferior): Rename to ...
6813 (child_terminal_init_inferior): ... this.
6814 (terminal_init_inferior_with_pgrp): Rename to ...
6815 (child_terminal_init_inferior_with_pgrp): ... this.
6816 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6817 (child_terminal_init_with_pgrp): ... this.
6818 (terminal_save_ours): Rename to ...
6819 (child_terminal_save_ours): ... this.
6820 (terminal_init_inferior): Rename to ...
6821 (child_terminal_init): ... this. Adjust.
6822 (terminal_inferior): Rename to ...
6823 (child_terminal_inferior): ... this.
6824 (terminal_ours_for_output): Rename to ...
6825 (child_terminal_ours_for_output): ... this. Adjust.
6826 (terminal_ours): Rename to ...
6827 (child_terminal_ours): ... this.
6828 (terminal_ours_1): Rename to ...
6829 (child_terminal_ours_1): ... this. Adjust.
6830 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6831 * windows-nat.c (do_initial_windows_stuff): Adjust.
6832 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6833 (gnu_terminal_init): ... this. Adjust.
6834 (gnu_target): Adjust.
6835 * inf-child.c (inf_child_target): Adjust.
6837 2014-03-13 Doug Evans <xdje42@gmail.com>
6840 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6843 2014-03-13 Doug Evans <xdje42@gmail.com>
6845 * value.c (record_latest_value): Call release_value_or_incref
6846 instead of release_value.
6848 2014-03-13 Pedro Alves <palves@redhat.com>
6850 * procfs.c (procfs_target): Don't override to_shortname,
6851 to_longname or to_doc.
6853 2014-03-13 Pedro Alves <palves@redhat.com>
6855 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6856 Unix in user visible strings.
6858 2014-03-12 Stan Shebs <stan@codesourcery.com>
6860 * gdbtypes.h: Annotate comments for Doxygen, add a page
6861 block comment with some general info.
6863 2014-03-12 Pedro Alves <palves@redhat.com>
6865 * infcmd.c (prepare_execution_command): New function, factored out
6866 from several execution commands.
6867 (run_command_1, continue_command, step_1, jump_command)
6868 (signal_command, until_command, advance_command, finish_command)
6869 (attach_command): Use prepare_execution_command.
6871 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6873 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6876 (struct arm_linux_thread_points): Removed.
6877 (struct arm_linux_process_info): New.
6878 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6879 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6880 (arm_linux_find_breakpoints_by_tid): Removed.
6881 (struct arch_lwp_info): New.
6882 (arm_linux_find_process_pid): New functions.
6883 (arm_linux_add_process): New functions.
6884 (arm_linux_process_info_get): New functions.
6885 (arm_linux_forget_process): New function.
6886 (arm_linux_get_debug_reg_state): New function.
6887 (struct update_registers_data): New.
6888 (update_registers_callback): New function.
6889 (arm_linux_insert_hw_breakpoint1): Updated.
6890 (arm_linux_remove_hw_breakpoint1): Updated.
6891 (arm_linux_insert_hw_breakpoint): Updated.
6892 (arm_linux_remove_hw_breakpoint): Updated.
6893 (arm_linux_insert_watchpoint): Updated.
6894 (arm_linux_remove_watchpoint): Updated.
6895 (arm_linux_new_thread): Updated.
6896 (arm_linux_prepare_to_resume): New function.
6897 (arm_linux_new_fork): New function.
6898 (_initialize_arm_linux_nat): Updated.
6900 2014-03-12 Pedro Alves <palves@redhat.com>
6902 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6904 2014-03-12 Tom Tromey <tromey@redhat.com>
6906 * inf-child.c (return_zero): New function.
6907 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6908 * aix-thread.c (aix_thread_inferior_created): New function.
6909 (aix_thread_attach): Remove.
6910 (init_aix_thread_ops): Don't set to_attach.
6911 (_initialize_aix_thread): Register inferior_created observer.
6912 * corelow.c (init_core_ops): Don't set to_attach or
6914 * exec.c (init_exec_ops): Don't set to_attach or
6916 * infcmd.c (run_command_1): Use find_run_target. Make direct
6918 (attach_command): Use find_attach_target. Make direct target
6920 * record-btrace.c (init_record_btrace_ops): Don't set
6922 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6924 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6925 set to_create_inferior.
6926 * target.c (complete_target_initialization): Add assertion.
6927 (target_create_inferior): Remove.
6928 (find_default_attach, find_default_create_inferior): Remove.
6929 (find_attach_target, find_run_target): New functions.
6930 (find_default_is_async_p, find_default_can_async_p)
6931 (target_supports_non_stop, target_attach): Remove.
6932 (init_dummy_target): Don't set to_create_inferior or
6933 to_supports_non_stop.
6934 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6935 TARGET_DEFAULT_FUNC.
6936 <to_create_inferior>: Add comment.
6937 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6938 TARGET_DEFAULT_RETURN.
6939 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6940 (find_attach_target, find_run_target): Declare.
6941 (target_create_inferior): Remove.
6942 (target_has_execution_1): Update comment.
6943 (target_supports_non_stop): Remove.
6944 * target-delegates.c: Rebuild.
6946 2014-03-12 Pedro Alves <palves@redhat.com>
6948 * inf-child.h: Update comment to not mention Unix.
6950 2014-03-12 Pedro Alves <palves@redhat.com>
6952 * inf-child.c: Update top comment to not mention Unix. Add
6953 generic comment describing how this target is meant to be used.
6954 (inf_child_post_attach, inf_child_post_startup_inferior)
6955 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6958 2014-03-12 Pedro Alves <palves@redhat.com>
6960 * nto-procfs.c: Include inf-child.h.
6961 (procfs_ops): Delete global.
6962 (procfs_can_run): Delete method.
6963 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6964 target pointer instead of referencing procfs_ops.
6965 (procfs_prepare_to_store): Delete.
6966 (init_procfs_ops): Delete function.
6967 (procfs_target): New function, based on init_procfs_ops, but
6968 inherit inf_child_target.
6969 (_initialize_procfs): Use procfs_target.
6971 2014-03-12 Pedro Alves <palves@redhat.com>
6973 * windows-nat.c: Include inf-child.h.
6974 (windows_ops): Delete global.
6975 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6977 (init_windows_ops): Delete function.
6978 (windows_target): New function, based on init_windows_ops, but
6979 inherit inf_child_target.
6980 (_initialize_windows_nat): Use windows_target. Install x86
6981 specific target methods here.
6983 2014-03-10 Doug Evans <xdje42@gmail.com>
6985 * guile/guile.c (call_initialize_gdb_module): New function.
6986 (initialize_guile): Replace call to scm_init_guile with call to
6989 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6991 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6992 in call to TYPE_CODE macro.
6994 2014-03-10 Jerome Guitton <guitton@adacore.com>
6996 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6997 Resolve tagged types to full view.
6999 2014-03-10 Hui Zhu <hui@codesourcery.com>
7001 * target.h (target_insert_breakpoint): Remove "hardware" from its
7004 2014-03-07 Doug Evans <dje@google.com>
7006 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7008 2014-03-07 Doug Evans <dje@google.com>
7010 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7011 Remove unused local comp_dir_attr. Assert exactly one of
7012 stub_comp_unit_die, stub_comp_dir is non-NULL.
7014 2014-03-07 Joel Brobecker <brobecker@adacore.com>
7016 * target.h (complete_target_initialization, add_target):
7019 2014-03-07 Pedro Alves <palves@redhat.com>
7021 * go32-nat.c: Include inf-child.h.
7022 (go32_ops): Delete global.
7023 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7025 (go32_create_inferior): Push the passed in target pointer instead
7026 of referencing go32_ops.
7027 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7028 (go32_target): New function, based on init_go32_ops, but inherit
7030 (_initialize_go32_nat): Use go32_target. Move parts of
7033 2014-03-06 Joel Brobecker <brobecker@adacore.com>
7035 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7036 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7037 SYMBOL_VALUE_ADDRESS.
7038 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7040 2014-03-06 Yao Qi <yao@codesourcery.com>
7042 * breakpoint.c (get_tracepoint_by_number): Remove argument
7043 optional_p. All callers updated. Adjust comments. Update
7045 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7047 2014-03-06 Yao Qi <yao@codesourcery.com>
7049 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7050 early if get_number returns zero. Use 'p' instead of 'args'.
7052 2014-03-06 Yao Qi <yao@codesourcery.com>
7054 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7057 2014-03-06 Yao Qi <yao@codesourcery.com>
7059 PR breakpoints/16508
7060 * tracepoint.c (check_trace_running): New function.
7061 (trace_find_command): Move code to check_trace_running and
7062 call check_trace_running.
7063 (trace_find_pc_command): Likewise.
7064 (trace_find_tracepoint_command): Likewise.
7065 (trace_find_line_command): Likewise.
7066 (trace_find_range_command): Likewise.
7067 * tracepoint.h (check_trace_running): Likewise.
7068 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7070 2014-03-06 Yao Qi <yao@codesourcery.com>
7072 * target.h (struct target_ops) <to_traceframe_info>: Use
7073 TARGET_DEFAULT_NORETURN (tcomplain ()).
7074 * target-delegates.c: Regenerated.
7076 2014-03-05 Pedro Alves <palves@redhat.com>
7079 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7080 void. Update comment.
7081 (dcache_xfer_memory): Delete.
7082 (dcache_read_memory_partial): New, based on the read bits of
7084 (dcache_update): Add status parameter. Use ULONGEST for len, and
7085 adjust. Discard cache lines if the reason for the update was
7087 * dcache.h (dcache_xfer_memory): Delete declaration.
7088 (dcache_read_memory_partial): New declaration.
7089 (dcache_update): Update prototype.
7090 * target.c (raw_memory_xfer_partial): Update the dcache here.
7091 (memory_xfer_partial_1): Don't handle dcache writes here.
7093 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7095 * remote-sim.c (gdbsim_load): Add const to prog.
7097 2014-03-03 Tom Tromey <tromey@redhat.com>
7099 * elfread.c (probe_key): Change to bfd_data.
7100 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7101 now per-BFD, not per-objfile.
7102 * stap-probe.c (stap_probe_destroy): Update comment.
7103 (handle_stap_probe): Allocate on the per-BFD obstack.
7105 2014-03-03 Tom Tromey <tromey@redhat.com>
7107 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7108 * breakpoint.c (create_longjmp_master_breakpoint): Use
7110 (add_location_to_breakpoint, bkpt_probe_insert_location)
7111 (bkpt_probe_remove_location): Update.
7112 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7113 * elfread.c (elf_symfile_relocate_probe): Remove.
7114 (elf_probe_fns): Update.
7115 (insert_exception_resume_breakpoint): Change type of "probe"
7116 parameter to bound_probe.
7117 (check_exception_resume): Update.
7118 * objfiles.c (objfile_relocate1): Don't relocate probes.
7119 * probe.c (bound_probe_s): New typedef.
7120 (parse_probes): Use get_probe_address. Set sal's objfile.
7121 (find_probe_by_pc): Return a bound_probe.
7122 (collect_probes): Return a VEC(bound_probe_s).
7123 (compare_probes): Update.
7124 (gen_ui_out_table_header_info): Change type of "probes"
7126 (info_probes_for_ops): Update.
7127 (get_probe_address): New function.
7128 (probe_safe_evaluate_at_pc): Update.
7129 * probe.h (struct probe_ops) <get_probe_address>: New field.
7130 <set_semaphore, clear_semaphore>: Add objfile parameter.
7131 (struct probe) <objfile>: Remove field.
7133 <address>: Update comment.
7134 (struct bound_probe): New.
7135 (find_probe_by_pc): Return a bound_probe.
7136 (get_probe_address): Declare.
7137 * solib-svr4.c (struct probe_and_action) <address>: New field.
7138 (hash_probe_and_action, equal_probe_and_action): Update.
7139 (register_solib_event_probe): Add address parameter.
7140 (solib_event_probe_at): Update.
7141 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7143 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7144 (stap_get_probe_address): New function.
7145 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7146 (compile_probe_arg): Update.
7147 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7149 (handle_stap_probe): Don't relocate the probe.
7150 (stap_relocate): Remove.
7151 (stap_gen_info_probes_table_values): Update.
7152 (stap_probe_ops): Remove stap_relocate.
7153 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7154 (debug_sym_probe_fns): Update.
7155 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7156 * symtab.c (init_sal): Use memset.
7157 * symtab.h (struct symtab_and_line) <objfile>: New field.
7158 * tracepoint.c (start_tracing, stop_tracing): Update.
7160 2014-03-03 Tom Tromey <tromey@redhat.com>
7162 * probe.h (parse_probes, find_probe_by_pc)
7163 (find_probes_in_objfile): Fix comments.
7165 2014-03-02 Doug Evans <xdje42@gmail.com>
7167 * infrun.c (handle_signal_stop): Replace test for
7168 TARGET_WAITKIND_STOPPED with an assert.
7170 2014-03-02 Doug Evans <xdje42@gmail.com>
7172 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7174 2014-03-02 Doug Evans <xdje42@gmail.com>
7176 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7178 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7180 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7182 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7184 * i386obsd-nat.c: Include "obsd-nat.h".
7185 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7187 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7189 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7191 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7193 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7195 * mips64obsd-nat.c: Include "obsd-nath".
7196 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7198 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7200 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7202 * amd64obsd-nat.c: Include "obsd-nat,h.
7203 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7205 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7207 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7209 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7210 (find_overload_match): Update call to find_oload_champ.
7211 (find_oload_champ_namespace_loop): Likewise
7213 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7215 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7217 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7218 * config/sparc/obsd64.mh: New file.
7219 * sparc64obsd-nat.c: New file.
7221 * obsd-nat.h: New file.
7222 * obsd-nat.c: New file.
7223 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7224 (ALLDEPFILES): Add obsd-nat.c.
7226 2014-02-28 Tom Tromey <tromey@redhat.com>
7228 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7229 * cli-out.h (cli_ui_out_impl): Now const.
7230 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7231 * ui-out.c (struct ui_out) <impl>: Now const.
7232 (default_ui_out_impl): Now const.
7233 (ui_out_new): Make 'impl' parameter const.
7234 * ui-out.h (ui_out_new): Update.
7236 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7238 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7240 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7242 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7244 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7246 Additional PR 8882 fix.
7247 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7249 2014-02-27 Pedro Alves <palves@redhat.com>
7251 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7254 2014-02-27 Pedro Alves <palves@redhat.com>
7257 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7258 * nat/linux-waitpid.c: Include string.h.
7259 (status_to_str): Moved here and made extern.
7260 * nat/linux-waitpid.h (status_to_str): New declaration.
7262 2014-02-27 Hui Zhu <hui@codesourcery.com>
7265 * infrun.c (ptid_match): Move ...
7266 * common/ptid.c (ptid_match): ... here.
7267 * inferior.h (ptid_match): Move ...
7268 * common/ptid.h (ptid_match): ... here.
7270 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7272 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7273 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7276 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7278 * obsd-tdep.c (obsd_auxv_parse): New function.
7279 (obsd_init_abi): Set auxv_parse.
7281 * gdbarch.sh (auxv_parse): New.
7282 * gdbarch.h: Regenerated.
7283 * gdbarch.c: Regenerated.
7284 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7286 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7288 * guile/scm-value.c (gdbscm_history_append_x): New function.
7289 (value_functions): Add it.
7291 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7293 * dwarf2read.c (attr_value_as_address): New function.
7294 (dwarf2_find_base_address, read_call_site_scope): Use
7295 attr_value_as_address in place of DW_ADDR.
7296 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7297 the low and high addresses. Slight rework of the handling
7298 of the high pc being a constant form, and limit it to
7299 DWARF verson 4 or higher.
7300 (dwarf2_record_block_ranges): Likewise.
7301 (read_partial_die): Likewise.
7302 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7304 2014-02-26 Tom Tromey <tromey@redhat.com>
7306 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7308 2014-02-26 Tom Tromey <tromey@redhat.com>
7310 * elfread.c (elf_read_minimal_symbols): Return early if
7311 minimal symbols have already been read. Add "ei" parameter.
7312 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7313 * minsyms.c (prim_record_minimal_symbol_full): Update.
7314 * objfiles.h (struct objstats) <n_minsyms>: Move...
7315 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7316 * symmisc.c (print_objfile_statistics): Update.
7318 2014-02-26 Tom Tromey <tromey@redhat.com>
7320 * elfread.c (elf_read_minimal_symbols): New function, from
7322 (elf_symfile_read): Call it.
7324 2014-02-26 Tom Tromey <tromey@redhat.com>
7326 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7327 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7328 (lookup_minimal_symbol_solib_trampoline)
7329 (lookup_minimal_symbol_by_pc_section_1)
7330 (lookup_minimal_symbol_and_objfile): Update.
7331 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7332 Don't allocate a minimal symbol if minsyms have already been read.
7333 (build_minimal_symbol_hash_tables): Update.
7334 (install_minimal_symbols): Do nothing if minsyms already read.
7335 Use the per-BFD obstack.
7336 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7337 * objfiles.c (allocate_objfile): Call
7338 terminate_minimal_symbol_table later.
7339 (have_minimal_symbols): Update.
7340 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7341 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7342 Move from struct objfile.
7343 <minsyms_read>: New field.
7344 (struct objfile) <msymbols, minimal_symbol_count,
7345 msymbol_hash, msymbol_demangled_hash>: Move.
7346 (ALL_OBJFILE_MSYMBOLS): Update.
7347 * symfile.c (read_symbols): Set minsyms_read.
7348 (reread_symbols): Update.
7349 * symmisc.c (dump_objfile, dump_msymbols): Update.
7351 2014-02-26 Tom Tromey <tromey@redhat.com>
7353 * minsyms.c (msymbols_sort): Remove.
7354 * minsyms.h (msymbols_sort): Remove.
7355 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7356 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7357 * elfread.c (elf_symtab_read): Don't add section offsets.
7358 * xcoffread.c (record_minimal_symbol): Don't add section offset
7359 to minimal symbol address.
7360 * somread.c (text_offset, data_offset): Remove.
7361 (som_symtab_read): Don't add section offsets to minimal symbol
7363 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7364 Don't add section offsets to minimal symbols.
7365 * coffread.c (coff_symtab_read): Don't add section offsets
7366 to minimal symbol addresses.
7367 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7368 to minimal symbol addresses.
7369 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7370 section offset to minimal symbol addresses.
7371 * mdebugread.c (parse_partial_symbols): Don't add section
7372 offset to minimal symbol addresses.
7373 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7374 offset to minimal symbol addresses.
7376 2014-02-26 Tom Tromey <tromey@redhat.com>
7378 * ada-lang.c (ada_main_name): Update.
7379 (ada_add_standard_exceptions): Update.
7380 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7381 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7382 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7383 * auxv.c (ld_so_xfer_auxv): Update.
7384 * avr-tdep.c (avr_scan_prologue): Update.
7385 * ax-gdb.c (gen_var_ref): Update.
7386 * blockframe.c (get_pc_function_start)
7387 (find_pc_partial_function_gnu_ifunc): Update.
7388 * breakpoint.c (create_overlay_event_breakpoint)
7389 (create_longjmp_master_breakpoint)
7390 (create_std_terminate_master_breakpoint)
7391 (create_exception_master_breakpoint): Update.
7392 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7393 * c-valprint.c (c_val_print): Update.
7394 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7395 * common/agent.c (agent_look_up_symbols): Update.
7396 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7397 * dwarf2loc.c (call_site_to_target_addr): Update.
7398 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7399 * elfread.c (elf_gnu_ifunc_record_cache)
7400 (elf_gnu_ifunc_resolve_by_got): Update.
7401 * findvar.c (default_read_var_value): Update.
7402 * frame.c (inside_main_func): Update.
7403 * frv-tdep.c (frv_frame_this_id): Update.
7404 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7405 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7407 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7408 (hppa_hpux_find_dummy_bpaddr): Update.
7409 * hppa-tdep.c (hppa_symbol_address): Update.
7410 * infcmd.c (until_next_command): Update.
7411 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7413 * linespec.c (minsym_found, add_minsym): Update.
7414 * linux-nat.c (get_signo): Update.
7415 * linux-thread-db.c (inferior_has_bug): Update.
7416 * m32c-tdep.c (m32c_return_value)
7417 (m32c_m16c_address_to_pointer): Update.
7418 * m32r-tdep.c (m32r_frame_this_id): Update.
7419 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7420 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7421 * maint.c (maintenance_translate_address): Update.
7422 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7423 (frob_address): New function.
7424 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7425 frob_address. Rename parameter to "pc_in".
7426 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7428 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7430 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7431 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7432 * objc-lang.c (find_objc_msgsend): Update.
7433 * objfiles.c (objfile_relocate1): Update.
7434 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7435 * p-valprint.c (pascal_val_print): Update.
7436 * parse.c (write_exp_msymbol): Update.
7437 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7438 (ppc_elfv2_skip_entrypoint): Update.
7439 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7440 * printcmd.c (build_address_symbolic, msym_info)
7441 (address_info): Update.
7442 * proc-service.c (ps_pglobal_lookup): Update.
7443 * psymtab.c (find_pc_sect_psymtab_closer)
7444 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7445 Change msymbol parameter to bound_minimal_symbol.
7446 * ravenscar-thread.c (get_running_thread_id): Update.
7447 * remote.c (remote_check_symbols): Update.
7448 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7450 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7451 * solib-dsbt.c (lm_base): Update.
7452 * solib-frv.c (lm_base, main_got): Update.
7453 * solib-irix.c (locate_base): Update.
7454 * solib-som.c (som_solib_create_inferior_hook)
7455 (link_map_start): Update.
7456 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7457 * solib-svr4.c (elf_locate_base, enable_break): Update.
7458 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7459 (flush_ea_cache): Update.
7460 * stabsread.c (define_symbol, scan_file_globals): Update.
7461 * stack.c (find_frame_funname): Update.
7462 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7463 (debug_qf_find_pc_sect_symtab): Update.
7464 * symfile.c (simple_read_overlay_table)
7465 (simple_overlay_update): Update.
7466 * symfile.h (struct quick_symbol_functions)
7467 <find_pc_sect_symtab>: Change type of msymbol to
7468 bound_minimal_symbol.
7469 * symmisc.c (dump_msymbols): Update.
7470 * symtab.c (find_pc_sect_symtab_via_partial)
7471 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7472 (search_symbols, print_msymbol_info): Update.
7473 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7474 (MSYMBOL_VALUE_ADDRESS): Redefine.
7475 (BMSYMBOL_VALUE_ADDRESS): New macro.
7476 * tracepoint.c (scope_info): Update.
7477 * tui/tui-disasm.c (tui_find_disassembly_address)
7478 (tui_get_begin_asm_address): Update.
7479 * valops.c (find_function_in_inferior): Update.
7480 * value.c (value_static_field, value_fn_field): Update.
7482 2014-02-26 Tom Tromey <tromey@redhat.com>
7484 * ada-lang.c (ada_update_initial_language): Update.
7485 (ada_main_name, ada_has_this_exception_support): Update.
7486 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7487 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7488 * arm-tdep.c (arm_skip_stub): Update.
7489 * auxv.c (ld_so_xfer_auxv): Update.
7490 * avr-tdep.c (avr_scan_prologue): Update.
7491 * ax-gdb.c (gen_var_ref): Update.
7492 * breakpoint.c (struct breakpoint_objfile_data)
7493 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7494 type to bound_minimal_symbol.
7495 (create_overlay_event_breakpoint)
7496 (create_longjmp_master_breakpoint)
7497 (create_std_terminate_master_breakpoint)
7498 (create_exception_master_breakpoint): Update.
7499 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7500 * c-exp.y (classify_name): Update.
7501 * coffread.c (coff_symfile_read): Update.
7502 * common/agent.c (agent_look_up_symbols): Update.
7503 * d-lang.c (d_main_name): Update.
7504 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7505 * dec-thread.c (enable_dec_thread): Update.
7506 * dwarf2loc.c (call_site_to_target_addr): Update.
7507 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7508 * eval.c (evaluate_subexp_standard): Update.
7509 * findvar.c (struct minsym_lookup_data) <result>: Change type
7510 to bound_minimal_symbol.
7512 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7513 * frame.c (inside_main_func): Update.
7514 * frv-tdep.c (frv_frame_this_id): Update.
7515 * gcore.c (call_target_sbrk): Update.
7516 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7517 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7519 * go-lang.c (go_main_name): Update.
7520 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7521 (hppa_hpux_find_import_stub_for_addr): Update.
7522 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7523 Update. Change return type.
7524 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7526 * jit.c (jit_breakpoint_re_set_internal): Update.
7527 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7529 * linux-nat.c (get_signo): Update.
7530 * linux-thread-db.c (inferior_has_bug): Update
7531 * m32c-tdep.c (m32c_return_value)
7532 (m32c_m16c_address_to_pointer): Update.
7533 * m32r-tdep.c (m32r_frame_this_id): Update.
7534 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7535 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7536 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7537 lookup_minimal_symbol. Change return type.
7538 (lookup_minimal_symbol): Remove.
7539 (lookup_bound_minimal_symbol): Update.
7540 (lookup_minimal_symbol_text): Change return type.
7541 (lookup_minimal_symbol_solib_trampoline): Change return type.
7542 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7543 (lookup_minimal_symbol_solib_trampoline): Change return type.
7544 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7545 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7546 (value_nsstring, find_imps): Update.
7547 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7548 * p-lang.c (pascal_main_name): Update.
7549 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7550 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7551 * proc-service.c (ps_pglobal_lookup): Update.
7552 * ravenscar-thread.c (get_running_thread_msymbol): Change
7554 (has_ravenscar_runtime, get_running_thread_id): Update.
7555 * remote.c (remote_check_symbols): Update.
7556 * sol-thread.c (ps_pglobal_lookup): Update.
7557 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7558 * solib-dsbt.c (lm_base): Update.
7559 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7561 * solib-irix.c (locate_base): Update.
7562 * solib-som.c (som_solib_create_inferior_hook)
7563 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7565 * solib-spu.c (spu_enable_break): Update.
7566 * solib-svr4.c (elf_locate_base, enable_break): Update.
7567 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7568 (flush_ea_cache): Update.
7569 * stabsread.c (define_symbol): Update.
7570 * symfile.c (simple_read_overlay_table): Update.
7571 * symtab.c (find_pc_sect_line): Update.
7572 * tracepoint.c (scope_info): Update.
7573 * tui-disasm.c (tui_get_begin_asm_address): Update.
7574 * value.c (value_static_field): Update.
7576 2014-02-26 Tom Tromey <tromey@redhat.com>
7578 * minsyms.c (prim_record_minimal_symbol_full): Use
7579 SET_MSYMBOL_VALUE_ADDRESS.
7580 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7581 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7582 SET_MSYMBOL_VALUE_ADDRESS.
7583 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7584 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7586 2014-02-26 Tom Tromey <tromey@redhat.com>
7588 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7589 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7590 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7591 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7592 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7593 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7594 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7595 * ada-lang.c (ada_main_name): Update.
7596 (ada_lookup_simple_minsym): Update.
7597 (ada_make_symbol_completion_list): Update.
7598 (ada_add_standard_exceptions): Update.
7599 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7600 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7601 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7602 * arm-tdep.c (skip_prologue_function): Update.
7603 (arm_skip_stack_protector, arm_skip_stub): Update.
7604 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7605 (arm_wince_skip_main_prologue): Update.
7606 * auxv.c (ld_so_xfer_auxv): Update.
7607 * avr-tdep.c (avr_scan_prologue): Update.
7608 * ax-gdb.c (gen_var_ref): Update.
7609 * block.c (call_site_for_pc): Update.
7610 * blockframe.c (get_pc_function_start): Update.
7611 (find_pc_partial_function_gnu_ifunc): Update.
7612 * breakpoint.c (create_overlay_event_breakpoint): Update.
7613 (create_longjmp_master_breakpoint): Update.
7614 (create_std_terminate_master_breakpoint): Update.
7615 (create_exception_master_breakpoint): Update.
7616 (resolve_sal_pc): Update.
7617 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7618 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7620 * c-valprint.c (c_val_print): Update.
7621 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7622 * coffread.c (coff_symfile_read): Update.
7623 * common/agent.c (agent_look_up_symbols): Update.
7624 * dbxread.c (find_stab_function_addr): Update.
7625 (end_psymtab): Update.
7626 * dwarf2loc.c (call_site_to_target_addr): Update.
7627 (func_verify_no_selftailcall): Update.
7628 (tailcall_dump): Update.
7629 (call_site_find_chain_1): Update.
7630 (dwarf_expr_reg_to_entry_parameter): Update.
7631 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7632 (elf_gnu_ifunc_resolve_by_got): Update.
7633 * f-valprint.c (info_common_command): Update.
7634 * findvar.c (read_var_value): Update.
7635 * frame.c (get_prev_frame_1): Update.
7636 (inside_main_func): Update.
7637 * frv-tdep.c (frv_skip_main_prologue): Update.
7638 (frv_frame_this_id): Update.
7639 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7640 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7641 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7642 (gnuv3_skip_trampoline): Update.
7643 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7644 (hppa64_hpux_in_solib_call_trampoline): Update.
7645 (hppa_hpux_skip_trampoline_code): Update.
7646 (hppa64_hpux_search_dummy_call_sequence): Update.
7647 (hppa_hpux_find_import_stub_for_addr): Update.
7648 (hppa_hpux_find_dummy_bpaddr): Update.
7649 * hppa-tdep.c (hppa_symbol_address)
7650 (hppa_lookup_stub_minimal_symbol): Update.
7651 * i386-tdep.c (i386_skip_main_prologue): Update.
7652 (i386_pe_skip_trampoline_code): Update.
7653 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7654 * infcall.c (get_function_name): Update.
7655 * infcmd.c (until_next_command): Update.
7656 * jit.c (jit_breakpoint_re_set_internal): Update.
7657 (jit_inferior_init): Update.
7658 * linespec.c (minsym_found): Update.
7659 (add_minsym): Update.
7660 * linux-fork.c (info_checkpoints_command): Update.
7661 * linux-nat.c (get_signo): Update.
7662 * linux-thread-db.c (inferior_has_bug): Update.
7663 * m32c-tdep.c (m32c_return_value): Update.
7664 (m32c_m16c_address_to_pointer): Update.
7665 (m32c_m16c_pointer_to_address): Update.
7666 * m32r-tdep.c (m32r_frame_this_id): Update.
7667 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7668 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7669 * maint.c (maintenance_translate_address): Update.
7670 * minsyms.c (add_minsym_to_hash_table): Update.
7671 (add_minsym_to_demangled_hash_table): Update.
7672 (msymbol_objfile): Update.
7673 (lookup_minimal_symbol): Update.
7674 (iterate_over_minimal_symbols): Update.
7675 (lookup_minimal_symbol_text): Update.
7676 (lookup_minimal_symbol_by_pc_name): Update.
7677 (lookup_minimal_symbol_solib_trampoline): Update.
7678 (lookup_minimal_symbol_by_pc_section_1): Update.
7679 (lookup_minimal_symbol_and_objfile): Update.
7680 (prim_record_minimal_symbol_full): Update.
7681 (compare_minimal_symbols): Update.
7682 (compact_minimal_symbols): Update.
7683 (build_minimal_symbol_hash_tables): Update.
7684 (install_minimal_symbols): Update.
7685 (terminate_minimal_symbol_table): Update.
7686 (find_solib_trampoline_target): Update.
7687 (minimal_symbol_upper_bound): Update.
7688 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7689 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7690 (mips_skip_pic_trampoline_code): Update.
7691 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7692 * objc-lang.c (selectors_info): Update.
7693 (classes_info): Update.
7694 (find_methods): Update.
7695 (find_imps): Update.
7696 (find_objc_msgsend): Update.
7697 * objfiles.c (objfile_relocate1): Update.
7698 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7699 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7700 * p-valprint.c (pascal_val_print): Update.
7701 * parse.c (write_exp_msymbol): Update.
7702 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7703 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7704 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7705 * printcmd.c (build_address_symbolic): Update.
7707 (address_info): Update.
7708 * proc-service.c (ps_pglobal_lookup): Update.
7709 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7710 (find_pc_sect_psymtab): Update.
7711 * python/py-framefilter.c (py_print_frame): Update.
7712 * ravenscar-thread.c (get_running_thread_id): Update.
7713 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7715 * remote.c (remote_check_symbols): Update.
7716 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7717 (rs6000_skip_trampoline_code): Update.
7718 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7719 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7720 * solib-dsbt.c (lm_base): Update.
7721 * solib-frv.c (lm_base): Update.
7723 * solib-irix.c (locate_base): Update.
7724 * solib-som.c (som_solib_create_inferior_hook): Update.
7725 (som_solib_desire_dynamic_linker_symbols): Update.
7726 (link_map_start): Update.
7727 * solib-spu.c (spu_enable_break): Update.
7728 (ocl_enable_break): Update.
7729 * solib-svr4.c (elf_locate_base): Update.
7730 (enable_break): Update.
7731 * spu-tdep.c (spu_get_overlay_table): Update.
7732 (spu_catch_start): Update.
7733 (flush_ea_cache): Update.
7734 * stabsread.c (define_symbol): Update.
7735 (scan_file_globals): Update.
7736 * stack.c (find_frame_funname): Update.
7737 (frame_info): Update.
7738 * symfile.c (simple_read_overlay_table): Update.
7739 (simple_overlay_update): Update.
7740 * symmisc.c (dump_msymbols): Update.
7741 * symtab.c (fixup_section): Update.
7742 (find_pc_sect_line): Update.
7743 (skip_prologue_sal): Update.
7744 (search_symbols): Update.
7745 (print_msymbol_info): Update.
7746 (rbreak_command): Update.
7747 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7748 (completion_list_objc_symbol): Update.
7749 (default_make_symbol_completion_list_break_on): Update.
7750 * tracepoint.c (scope_info): Update.
7751 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7752 (tui_get_begin_asm_address): Update.
7753 * valops.c (find_function_in_inferior): Update.
7754 * value.c (value_static_field): Update.
7755 (value_fn_field): Update.
7757 2014-02-26 Tom Tromey <tromey@redhat.com>
7759 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7760 bound minimal symbols. Move code that knows about minsym
7762 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7764 * minsyms.h (minimal_symbol_upper_bound): Declare.
7765 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7766 minimal_symbol_upper_bound.
7768 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7770 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7771 Use the type's name if its basic type does not have a tag.
7773 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7775 * dwarf2read.c (read_subrange_type): Add comment.
7777 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7779 * dwarf2read.c (update_enumeration_type_from_children): New
7780 function, mostly extracted from process_structure_scope.
7781 (read_enumeration_type): Call update_enumeration_type_from_children.
7782 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7783 and flag_flag_enum fields.
7785 2014-02-26 Pedro Alves <palves@redhat.com>
7787 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7788 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7789 to_xfer_partial method.
7791 2014-02-26 Pedro Alves <palves@redhat.com>
7793 * target.c (complete_target_initialization): Don't install
7794 default_xfer_partial as to_xfer_partial hook.
7796 (update_current_target): Don't INHERIT nor de_fault
7797 deprecated_xfer_memory. Delete de_fault macro.
7798 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7799 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7800 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7803 2014-02-26 Pedro Alves <palves@redhat.com>
7805 * go32-nat.c (my_write_child): New function.
7806 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7807 (go32_xfer_partial): New function.
7808 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7809 Instead install a to_xfer_partial hook.
7811 2014-02-26 Pedro Alves <palves@redhat.com>
7813 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7814 to_xfer_partial helper. Rewrite.
7815 (procfs_xfer_partial): New function.
7816 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7817 Install a to_xfer_partial hook.
7819 2014-02-26 Pedro Alves <palves@redhat.com>
7821 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7822 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7823 (m32r_xfer_partial): New function.
7824 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7825 Install a to_xfer_partial hook.
7827 2014-02-26 Pedro Alves <palves@redhat.com>
7829 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7831 (mips_xfer_partial): New function.
7832 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7833 hook. Install a to_xfer_partial hook.
7835 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7837 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7838 * gdbtypes.c (create_array_type_with_stride): New function,
7839 renaming create_array_type, but with an added parameter
7840 called "bit_stride".
7841 (create_array_type): Re-implement using
7842 create_array_type_with_stride.
7843 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7844 and DW_AT_bit_stride attributes.
7846 2014-02-26 Pedro Alves <palves@redhat.com>
7848 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7849 task-specific breakpoints.
7851 2014-02-25 Pedro Alves <palves@redhat.com>
7853 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7854 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7856 2014-02-25 Stan Shebs <stan@codesourcery.com>
7858 * defs.h: Annotate comments for Doxygen.
7860 2014-02-25 Tom Tromey <tromey@redhat.com>
7862 * target.h (target_ignore): Don't declare.
7863 * target.c (target_ignore): Remove.
7865 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7868 * auto-load.c (auto_load_objfile_script_1): Change filename to
7871 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7873 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7874 documentation. Adjust prototype to match the target_ops
7875 to_xfer_partial method. Adjust implementation accordingly.
7877 2014-02-25 Hui Zhu <hui@codesourcery.com>
7879 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7882 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7884 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7885 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7886 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7887 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7888 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7889 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7890 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7891 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7893 (rl78_register_type): Use a data pointer type for SP and
7894 new pseudo registers mentioned above. Use a 16 bit integer
7895 type for all other register pairs.
7896 (rl78_register_name, rl78_g10_register_name): Update for
7897 new pseudo registers.
7898 (rl78_pseudo_register_read): Likewise.
7899 (rl78_pseudo_register_write): Likewise.
7900 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7901 to the newly added pseudo registers.
7903 2014-02-24 Doug Evans <dje@google.com>
7905 * value.c (record_latest_value): Fix comment.
7906 * printcmd.c (print_command_1): Remove code to handle -1 return from
7907 record_latest_value.
7909 2014-02-24 Pedro Alves <palves@redhat.com>
7911 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7912 deprecated_xfer_memory hook.
7913 (procfs_xfer_partial): Call procfs_xfer_memory instead
7914 of the deprecated_xfer_memory target hook.
7915 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7918 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7920 * windows-nat.c (windows_xfer_shared_libraries): Return
7921 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7922 requested object is TARGET_OBJECT_LIBRARIES.
7924 2014-02-24 Yao Qi <yao@codesourcery.com>
7926 * target.h (enum target_xfer_status)
7927 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7928 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7930 * corefile.c (memory_error_message): User updated.
7931 * exec.c (section_table_read_available_memory): Likewise.
7932 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7933 * target.c (target_xfer_status_to_string): Likewise.
7934 (raw_memory_xfer_partial): Likewise.
7935 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7936 * valops.c (read_value_memory): Likewise.
7937 * exec.h: Update comments.
7939 2014-02-24 Yao Qi <yao@codesourcery.com>
7941 * target.c (target_xfer_status_to_string): Rename argument err
7943 * target.h (target_xfer_status_to_string): Update declaration.
7944 Replace target_xfer_error_to_string with
7945 target_xfer_status_to_string in comment.
7947 2014-02-24 Yao Qi <yao@codesourcery.com>
7949 * mips-linux-nat.c (super_close): Update its type.
7950 (mips_linux_close): Pass 'self' to super_close.
7952 2014-02-24 Yao Qi <yao@codesourcery.com>
7954 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7955 * corefile.c (read_memory): Adjusted.
7956 * target.c (target_write_with_progress): Adjusted.
7958 2014-02-23 Yao Qi <yao@codesourcery.com>
7962 2013-10-25 Yao Qi <yao@codesourcery.com>
7964 * remote.c (remote_traceframe_info): Return early if
7965 traceframe is not selected.
7967 2013-07-19 Yao Qi <yao@codesourcery.com>
7969 * target.c (update_current_target): Change the default action
7970 of 'to_traceframe_info' from tcomplain to return_zero.
7971 * target.h (struct target_ops) <to_traceframe_info>: Add more
7974 2014-02-23 Yao Qi <yao@codesourcery.com>
7976 * valops.c (read_value_memory): Rewrite it. Call
7977 target_xfer_partial in a loop.
7978 * exec.h (section_table_available_memory): Remove declaration.
7979 Move comments to ...
7980 * exec.c (section_table_available_memory): ... here. Make it
7983 2014-02-23 Yao Qi <yao@codesourcery.com>
7985 * exec.c (section_table_read_available_memory): New function.
7986 * exec.h (section_table_read_available_memory): Declare.
7987 * ctf.c (ctf_xfer_partial): Call
7988 section_table_read_available_memory.
7989 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7991 2014-02-23 Yao Qi <yao@codesourcery.com>
7993 * ctf.c (ctf_xfer_partial): Move code to ...
7994 * exec.c (exec_read_partial_read_only): ... it. New function.
7995 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7996 * tracefile.c: Include "exec.h".
7997 * exec.h (exec_read_partial_read_only): Declare.
7999 2014-02-23 Yao Qi <yao@codesourcery.com>
8001 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8002 (tfile_has_memory): Remove.
8003 (init_tfile_ops): Don't set fields to_has_all_memory and
8004 to_has_memory of tfile_ops.
8005 * tracefile.c (tracefile_has_all_memory): New function.
8006 (tracefile_has_memory): New function.
8007 (init_tracefile_ops): Initialize fields to_has_all_memory and
8008 to_has_memory of 'ops'.
8010 2014-02-23 Yao Qi <yao@codesourcery.com>
8012 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8013 (ctf_thread_alive, ctf_get_trace_status): Remove.
8014 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8016 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8017 (tfile_has_stack, tfile_has_registers): Remove.
8018 (tfile_thread_alive): Remove.
8019 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8021 * tracefile.c (tracefile_has_stack): New function.
8022 (tracefile_has_registers): New function.
8023 (tracefile_thread_alive): New function.
8024 (tracefile_get_trace_status): New function.
8025 (init_tracefile_ops): New function.
8026 * tracefile.h (init_tracefile_ops): Declare.
8028 2014-02-23 Yao Qi <yao@codesourcery.com>
8030 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8031 (O_LARGEFILE): Likewise.
8032 (tfile_ops): Likewise.
8033 (TRACE_HEADER_SIZE): Likewise.
8034 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8035 (cur_data_size): Likewise.
8036 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8037 (tfile_close, tfile_files_info): Likewise.
8038 (tfile_get_trace_status): Likewise.
8039 (tfile_get_tracepoint_status): Likewise.
8040 (tfile_get_traceframe_address): Likewise.
8041 (tfile_trace_find, match_blocktype): Likewise.
8042 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8043 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8044 (tfile_get_trace_state_variable_value): Likewise.
8045 (tfile_has_all_memory, tfile_has_memory): Likewise.
8046 (tfile_has_stack, tfile_has_registers): Likewise.
8047 (tfile_thread_alive, build_traceframe_info): Likewise.
8048 (tfile_traceframe_info, init_tfile_ops): Likewise.
8049 (_initialize_tracepoint): Don't call init_tfile_ops
8050 and add_target_with_completer.
8051 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8052 exec.h, completer.h and filenames.h.
8053 (_initialize_tracefile_tfile): New function.
8055 2014-02-23 Yao Qi <yao@codesourcery.com>
8057 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8059 (HFILES_NO_SRCDIR): Add tracefile.h.
8060 * ctf.c: Include "tracefile.h".
8061 * tracefile.h: New file.
8062 * tracefile.c: New file
8063 * tracefile-tfile.c: New file.
8064 * tracepoint.c: Include "tracefile.h".
8065 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8066 (stop_reason_names): Add const.
8067 (trace_file_writer_xfree): Move it to tracefile.c.
8068 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8069 (trace_save_ctf): Likewise.
8070 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8071 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8072 (tfile_write_header, tfile_write_regblock_type): Likewise.
8073 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8074 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8075 (tfile_write_raw_data, tfile_end): Likewise.
8076 (tfile_trace_file_writer_new): Likewise.
8077 (free_uploaded_tp): Make it extern.
8078 (free_uploaded_tsv): Make it extern.
8079 (_initialize_tracepoint): Move code to register command 'tsave'
8081 * tracepoint.h (stop_reason_names): Declare.
8082 (struct trace_frame_write_ops): Move it to tracefile.h.
8083 (struct trace_file_write_ops): Likewise.
8084 (struct trace_file_writer): Likewise.
8085 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8087 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8090 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8092 (get_cores_used_by_process): New parameter num_cores, use it.
8093 (linux_xfer_osdata_processes): Pass num_cores to it.
8094 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8097 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8099 * target.c (memory_xfer_partial): Fix length arg in call to
8100 breakpoint_xfer_memory.
8102 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8105 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8106 number comes after the + or - signs. Adjust length of register
8107 name to be extracted.
8109 2014-02-20 Tom Tromey <tromey@redhat.com>
8111 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8112 (ada_varobj_ops): Mark "extern".
8114 2014-02-20 Tom Tromey <tromey@redhat.com>
8116 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8118 2014-02-20 Doug Evans <xdje42@gmail.com>
8120 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8121 All callers updated.
8122 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8123 All callers updated.
8124 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8125 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8127 2014-02-20 lin zuojian <manjian2006@gmail.com>
8128 Joel Brobecker <brobecker@adacore.com>
8129 Doug Evans <xdje42@gmail.com>
8132 * dwarf2read.c (struct die_info): New member in_process.
8133 (reset_die_in_process): New function.
8134 (process_die): Set it at the start, reset when returning.
8135 (inherit_abstract_dies): Only call process_die if origin_child_die
8136 not already being processed.
8138 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8140 * windows-nat.c (handle_unload_dll): Add function documentation.
8141 (do_initial_windows_stuff): Add comment explaining why we wait
8142 until after inferior initialization has finished before
8143 processing all DLLs.
8145 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8147 * windows-nat.c (get_module_name): Delete.
8148 (windows_get_exec_module_filename): New function, mostly
8149 inspired from get_module_name.
8150 (windows_pid_to_exec_file): Replace call to get_module_name
8151 by call to windows_get_exec_module_filename.
8153 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8155 * windows-nat.c (handle_load_dll): Rewrite this function's
8156 introductory comment. Remove code using get_module_name
8157 to get the DLL's name.
8159 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8161 * windows-nat.c (get_windows_debug_event): Ignore
8162 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8163 if windows_initialization_done == 0.
8164 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8165 Adjust implementation to always load all DLLs.
8166 (do_initial_windows_stuff): Replace call to
8167 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8169 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8171 * windows-nat.c (_initialize_windows_nat): Deprecate the
8172 "dll-symbols" command. Turn the "add-shared-symbol-files"
8173 and "assf" aliases into commands, and deprecate them as well.
8174 * NEWS: Add entry explaining that "dll-symbols" and its two
8175 aliases are now deprecated.
8177 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8179 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8180 new-line in debug string. Remove trailing spaces.
8182 2014-02-19 Stan Shebs <stan@codesourcery.com>
8184 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8186 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8188 * NEWS: Add entry for the new feature
8189 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8192 2014-02-19 Stan Shebs <stan@codesourcery.com>
8194 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8196 2014-02-19 Pedro Alves <palves@redhat.com>
8198 * common/ptid.h (struct ptid): Mention that process_stratum
8199 targets should prefer ptid.lwp.
8201 2014-02-19 Pedro Alves <palves@redhat.com>
8203 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8204 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8205 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8206 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8207 store remote thread ids rather than ptid.tid.
8208 (_initialize_remote): Adjust.
8210 2014-02-19 Tom Tromey <tromey@redhat.com>
8212 * target.c (target_get_unwinder): Rewrite.
8213 (target_get_tailcall_unwinder): Rewrite.
8214 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8215 (record_btrace_to_get_tailcall_unwinder): New function.
8216 (init_record_btrace_ops): Update.
8217 * target.h (struct target_ops) <to_get_unwinder,
8218 to_get_tailcall_unwinder>: Now function pointers. Use
8219 TARGET_DEFAULT_RETURN.
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8223 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8225 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8227 2014-02-19 Tom Tromey <tromey@redhat.com>
8229 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8231 * target-delegates.c: Rebuild.
8232 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8233 TARGET_DEFAULT_FUNC.
8234 * target.c (default_target_decr_pc_after_break): Rename from
8235 forward_target_decr_pc_after_break. Simplify.
8236 (target_decr_pc_after_break): Rely on delegation.
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8240 * target.c (update_current_target): Do not INHERIT to_doc or
8241 to_magic. Do not de_fault to_open or to_close.
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8245 * gcore.h (objfile_find_memory_regions): Declare.
8246 * gcore.c (objfile_find_memory_regions): No longer static. Add
8248 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8249 * exec.c: Include gcore.h.
8250 (exec_set_find_memory_regions): Remove.
8251 (exec_find_memory_regions): Remove.
8252 (exec_do_find_memory_regions): Remove.
8253 (init_exec_ops): Update.
8254 * defs.h (exec_set_find_memory_regions): Remove.
8256 2014-02-19 Tom Tromey <tromey@redhat.com>
8258 * target-delegates.c: Rebuild.
8259 * target.h (struct target_ops) <to_extra_thread_info,
8260 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8261 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8262 not 0, in TARGET_DEFAULT_RETURN.
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8266 * target.c (complete_target_initialization): Remove casts. Use
8267 return_zero_has_execution.
8268 (return_zero): Add "ignore" argument.
8269 (return_zero_has_execution): New function.
8270 (init_dummy_target): Remove casts. Use
8271 return_zero_has_execution.
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8275 * target.c (update_current_target): Update comments. Do not
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8282 * corelow.c (core_read_description): Delegate when needed.
8283 * remote.c (remote_read_description): Delegate when needed.
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_read_description): Rewrite.
8286 * target.h (struct target_ops) <to_read_description>: Update
8287 comment. Use TARGET_DEFAULT_RETURN.
8289 2014-02-19 Tom Tromey <tromey@redhat.com>
8291 * target-delegates.c: Rebuild.
8292 * target.c (update_current_target): Don't inherit or default
8294 (find_default_run_target): Check against delegate_can_run.
8295 * target.h (struct target_ops) <to_can_run>: Use
8296 TARGET_DEFAULT_RETURN.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target-delegates.c: Rebuild.
8301 * target.c (target_disconnect): Unconditionally delegate.
8302 * target.h (struct target_ops) <to_disconnect>: Use
8303 TARGET_DEFAULT_NORETURN.
8305 2014-02-19 Tom Tromey <tromey@redhat.com>
8307 * record.c (record_stop): Unconditionally delegate.
8308 * target-delegates.c: Rebuild.
8309 * target.c (target_stop_recording): Unconditionally delegate.
8310 * target.h (struct target_ops) <to_stop_recording>: Use
8311 TARGET_DEFAULT_IGNORE.
8313 2014-02-19 Tom Tromey <tromey@redhat.com>
8315 * target-delegates.c: Rebuild.
8316 * target.c (target_enable_btrace): Unconditionally delegate.
8317 * target.h (struct target_ops) <to_enable_btrace>: Use
8318 TARGET_DEFAULT_NORETURN.
8320 2014-02-19 Tom Tromey <tromey@redhat.com>
8322 * target-delegates.c: Rebuild.
8323 * target.c (target_read_btrace): Unconditionally delegate.
8324 * target.h (struct target_ops) <to_read_btrace>: Use
8325 TARGET_DEFAULT_NORETURN.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * target-delegates.c: Rebuild.
8330 * target.c (target_teardown_btrace): Unconditionally delegate.
8331 * target.h (struct target_ops) <to_teardown_btrace>: Use
8332 TARGET_DEFAULT_NORETURN.
8334 2014-02-19 Tom Tromey <tromey@redhat.com>
8336 * target-delegates.c: Rebuild.
8337 * target.c (target_disable_btrace): Unconditionally delegate.
8338 * target.h (struct target_ops) <to_disable_btrace>: Use
8339 TARGET_DEFAULT_NORETURN.
8341 2014-02-19 Tom Tromey <tromey@redhat.com>
8343 * target-delegates.c: Rebuild.
8344 * target.c (default_search_memory): New function.
8345 (simple_search_memory): Update comment.
8346 (target_search_memory): Unconditionally delegate.
8347 * target.h (struct target_ops) <to_search_memory>: Use
8348 TARGET_DEFAULT_FUNC.
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8352 * auxv.c (default_auxv_parse): No longer static.
8353 (target_auxv_parse): Unconditionally delegate.
8354 * auxv.h (default_auxv_parse): Declare.
8355 * target-delegates.c: Rebuild.
8356 * target.c: Include auxv.h.
8357 * target.h (struct target_ops) <to_auxv_parse>: Use
8358 TARGET_DEFAULT_FUNC.
8360 2014-02-19 Tom Tromey <tromey@redhat.com>
8362 * target-delegates.c: Rebuild.
8363 * target.c (target_memory_map): Unconditionally delegate.
8364 * target.h (struct target_ops) <to_memory_map>: Use
8365 TARGET_DEFAULT_RETURN.
8367 2014-02-19 Tom Tromey <tromey@redhat.com>
8369 * target-delegates.c: Rebuild.
8370 * target.c (target_thread_alive): Unconditionally delegate.
8371 * target.h (struct target_ops) <to_thread_alive>: Use
8372 TARGET_DEFAULT_RETURN.
8374 2014-02-19 Tom Tromey <tromey@redhat.com>
8376 * target-delegates.c: Rebuild.
8377 * target.c (target_save_record): Unconditionally delegate.
8378 * target.h (struct target_ops) <to_save_record>: Use
8379 TARGET_DEFAULT_NORETURN.
8381 2014-02-19 Tom Tromey <tromey@redhat.com>
8383 * target-delegates.c: Rebuild.
8384 * target.c (target_delete_record): Unconditionally delegate.
8385 * target.h (struct target_ops) <to_delete_record>: Use
8386 TARGET_DEFAULT_NORETURN.
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8390 * target-delegates.c: Rebuild.
8391 * target.c (target_record_is_replaying): Unconditionally
8393 * target.h (struct target_ops) <to_record_is_replaying>: Use
8394 TARGET_DEFAULT_RETURN.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target-delegates.c: Rebuild.
8399 * target.c (target_goto_record_begin): Unconditionally delegate.
8400 * target.h (struct target_ops) <to_goto_record_begin>: Use
8401 TARGET_DEFAULT_NORETURN.
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8405 * target-delegates.c: Rebuild.
8406 * target.c (target_goto_record_end): Unconditionally delegate.
8407 * target.h (struct target_ops) <to_goto_record_end>: Use
8408 TARGET_DEFAULT_NORETURN.
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8412 * target-delegates.c: Rebuild.
8413 * target.c (target_goto_record): Unconditionally delegate.
8414 * target.h (struct target_ops) <to_goto_record>: Use
8415 TARGET_DEFAULT_NORETURN.
8417 2014-02-19 Tom Tromey <tromey@redhat.com>
8419 * target-delegates.c: Rebuild.
8420 * target.c (target_insn_history): Unconditionally delegate.
8421 * target.h (struct target_ops) <to_insn_history>: Use
8422 TARGET_DEFAULT_NORETURN.
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target-delegates.c: Rebuild.
8427 * target.c (target_insn_history_from): Unconditionally delegate.
8428 * target.h (struct target_ops) <to_insn_history_from>: Use
8429 TARGET_DEFAULT_NORETURN.
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8433 * target-delegates.c: Rebuild.
8434 * target.c (target_insn_history_range): Unconditionally delegate.
8435 * target.h (struct target_ops) <to_insn_history_range>: Use
8436 TARGET_DEFAULT_NORETURN.
8438 2014-02-19 Tom Tromey <tromey@redhat.com>
8440 * target-delegates.c: Rebuild.
8441 * target.c (target_call_history): Unconditionally delegate.
8442 * target.h (struct target_ops) <to_call_history>: Use
8443 TARGET_DEFAULT_NORETURN.
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target-delegates.c: Rebuild.
8448 * target.c (target_call_history_from): Unconditionally delegate.
8449 * target.h (struct target_ops) <to_call_history_from>: Use
8450 TARGET_DEFAULT_NORETURN.
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8454 * target-delegates.c: Rebuild.
8455 * target.c (target_call_history_range): Unconditionally delegate.
8456 * target.h (struct target_ops) <to_call_history_range>: Use
8457 TARGET_DEFAULT_NORETURN.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8461 * target-delegates.c: Rebuild.
8462 * target.c (target_verify_memory): Unconditionally delegate.
8463 * target.h (struct target_ops) <to_verify_memory>: Use
8464 TARGET_DEFAULT_NORETURN.
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8468 * target-delegates.c: Rebuild.
8469 * target.c (target_core_of_thread): Unconditionally delegate.
8470 * target.h (struct target_ops) <to_core_of_thread>: Use
8471 TARGET_DEFAULT_RETURN.
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8475 * target-delegates.c: Rebuild.
8476 * target.c (target_flash_done): Unconditionally delegate.
8477 * target.h (struct target_ops) <to_flash_done>: Use
8478 TARGET_DEFAULT_NORETURN.
8480 2014-02-19 Tom Tromey <tromey@redhat.com>
8482 * target-delegates.c: Rebuild.
8483 * target.c (target_flash_erase): Unconditionally delegate.
8484 * target.h (struct target_ops) <to_flash_erase>: Use
8485 TARGET_DEFAULT_NORETURN.
8487 2014-02-19 Tom Tromey <tromey@redhat.com>
8489 * target-delegates.c: Rebuild.
8490 * target.c (target_get_section_table): Unconditionally delegate.
8491 * target.h (struct target_ops) <to_get_section_table>: Use
8492 TARGET_DEFAULT_RETURN.
8494 2014-02-19 Tom Tromey <tromey@redhat.com>
8496 * target-delegates.c: Rebuild.
8497 * target.c (target_pid_to_str): Unconditionally delegate.
8498 (init_dummy_target): Don't initialize to_pid_to_str.
8499 (default_pid_to_str): Rename from dummy_pid_to_str.
8500 * target.h (struct target_ops) <to_pid_to_str>: Use
8501 TARGET_DEFAULT_FUNC.
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target-delegates.c: Rebuild.
8506 * target.c (target_find_new_threads): Unconditionally delegate.
8507 * target.h (struct target_ops) <to_find_new_threads>: Use
8508 TARGET_DEFAULT_RETURN.
8510 2014-02-19 Tom Tromey <tromey@redhat.com>
8512 * target-delegates.c: Rebuild.
8513 * target.c (target_program_signals): Unconditionally delegate.
8514 * target.h (struct target_ops) <to_program_signals>: Use
8515 TARGET_DEFAULT_IGNORE.
8517 2014-02-19 Tom Tromey <tromey@redhat.com>
8519 * target-delegates.c: Rebuild.
8520 * target.c (target_pass_signals): Unconditionally delegate.
8521 * target.h (struct target_ops) <to_pass_signals>: Use
8522 TARGET_DEFAULT_IGNORE.
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8526 * target-delegates.c: Rebuild.
8527 * target.c (default_mourn_inferior): New function.
8528 (target_mourn_inferior): Unconditionally delegate.
8529 * target.h (struct target_ops) <to_mourn_inferior>: Use
8530 TARGET_DEFAULT_FUNC.
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8534 * target-delegates.c: Rebuild.
8535 * target.c (default_follow_fork): New function.
8536 (target_follow_fork): Unconditionally delegate.
8537 * target.h (struct target_ops) <to_follow_fork>: Use
8538 TARGET_DEFAULT_FUNC.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.c (target_kill): Unconditionally delegate.
8544 * target.h (struct target_ops) <to_kill>: Use
8545 TARGET_DEFAULT_NORETURN.
8547 2014-02-19 Tom Tromey <tromey@redhat.com>
8549 * target-delegates.c: Rebuild.
8550 * target.c (target_masked_watch_num_registers): Unconditionally
8552 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8553 Use TARGET_DEFAULT_RETURN.
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8557 * target-delegates.c: Rebuild.
8558 * target.c (target_remove_mask_watchpoint): Unconditionally
8560 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8561 TARGET_DEFAULT_RETURN.
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8565 * target-delegates.c: Rebuild.
8566 * target.c (target_insert_mask_watchpoint): Unconditionally
8568 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8569 TARGET_DEFAULT_RETURN.
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8573 * target-delegates.c: Rebuild.
8574 * target.c (target_ranged_break_num_registers): Unconditionally
8576 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8577 Use TARGET_DEFAULT_RETURN.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target-delegates.c: Rebuild.
8582 * target.c (target_fetch_registers): Unconditionally delegate.
8583 * target.h (struct target_ops) <to_fetch_registers>: Use
8584 TARGET_DEFAULT_NORETURN.
8586 2014-02-19 Tom Tromey <tromey@redhat.com>
8588 * target-delegates.c: Rebuild.
8589 * target.c (update_current_target): Don't inherit or default
8591 * target.h (struct target_ops) <to_stop>: Use
8592 TARGET_DEFAULT_IGNORE.
8594 2014-02-19 Tom Tromey <tromey@redhat.com>
8596 * target-delegates.c: Rebuild.
8597 * target.c (update_current_target): Don't inherit or default
8598 to_can_run_breakpoint_commands.
8599 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8600 Use TARGET_DEFAULT_RETURN.
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target-delegates.c: Rebuild.
8605 * target.c (update_current_target): Don't inherit or default
8606 to_supports_evaluation_of_breakpoint_conditions.
8607 * target.h (struct target_ops)
8608 <to_supports_evaluation_of_breakpoint_conditions>: Use
8609 TARGET_DEFAULT_RETURN.
8611 2014-02-19 Tom Tromey <tromey@redhat.com>
8613 * target-delegates.c: Rebuild.
8614 * target.c (update_current_target): Don't inherit or default
8615 to_augmented_libraries_svr4_read.
8616 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8617 Use TARGET_DEFAULT_RETURN.
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8621 * target-delegates.c: Rebuild.
8622 * target.c (update_current_target): Don't inherit or default
8624 * target.h (struct target_ops) <to_can_use_agent>: Use
8625 TARGET_DEFAULT_RETURN.
8627 2014-02-19 Tom Tromey <tromey@redhat.com>
8629 * target-delegates.c: Rebuild.
8630 * target.c (update_current_target): Don't inherit or default
8632 * target.h (struct target_ops) <to_use_agent>: Use
8633 TARGET_DEFAULT_NORETURN.
8635 2014-02-19 Tom Tromey <tromey@redhat.com>
8637 * target-delegates.c: Rebuild.
8638 * target.c (update_current_target): Don't inherit or default
8640 (return_null): Remove.
8641 * target.h (struct target_ops) <to_traceframe_info>: Use
8642 TARGET_DEFAULT_RETURN.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target-delegates.c: Rebuild.
8647 * target.c (update_current_target): Don't inherit or default
8648 to_static_tracepoint_markers_by_strid.
8649 * target.h (struct target_ops)
8650 <to_static_tracepoint_markers_by_strid>: Use
8651 TARGET_DEFAULT_NORETURN.
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_static_tracepoint_marker_at.
8658 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8659 Use TARGET_DEFAULT_RETURN.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8666 * target.h (struct target_ops) <to_set_permissions>: Use
8667 TARGET_DEFAULT_IGNORE.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8674 * target.h (struct target_ops) <to_get_tib_address>: Use
8675 TARGET_DEFAULT_NORETURN.
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8682 * target.h (struct target_ops) <to_set_trace_notes>: Use
8683 TARGET_DEFAULT_RETURN.
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't initialize
8689 to_set_trace_buffer_size.
8690 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8691 TARGET_DEFAULT_IGNORE.
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_set_circular_trace_buffer.
8698 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8699 TARGET_DEFAULT_IGNORE.
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_set_disconnected_tracing.
8706 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8707 TARGET_DEFAULT_IGNORE.
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_get_min_fast_tracepoint_insn_len.
8714 (return_minus_one): Remove.
8715 * target.h (struct target_ops)
8716 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8722 to_get_raw_trace_data.
8723 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8724 TARGET_DEFAULT_NORETURN.
8726 2014-02-19 Tom Tromey <tromey@redhat.com>
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't inherit or default
8730 to_upload_trace_state_variables.
8731 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8732 Use TARGET_DEFAULT_RETURN.
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_upload_tracepoints.
8739 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8740 TARGET_DEFAULT_RETURN.
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8747 * target.h (struct target_ops) <to_save_trace_data>: Use
8748 TARGET_DEFAULT_NORETURN.
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_get_trace_state_variable_value.
8755 * target.h (struct target_ops)
8756 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8758 2014-02-19 Tom Tromey <tromey@redhat.com>
8760 * target-delegates.c: Rebuild.
8761 * target.c (update_current_target): Don't inherit or default
8763 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8770 * target.h (struct target_ops) <to_trace_stop>: Use
8771 TARGET_DEFAULT_NORETURN.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_get_tracepoint_status.
8778 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8779 TARGET_DEFAULT_NORETURN.
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_get_trace_status.
8786 * target.h (struct target_ops) <to_get_trace_status>: Use
8787 TARGET_DEFAULT_RETURN.
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8794 * target.h (struct target_ops) <to_trace_start>: Use
8795 TARGET_DEFAULT_NORETURN.
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8801 to_trace_set_readonly_regions.
8802 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8803 Use TARGET_DEFAULT_NORETURN.
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8809 to_disable_tracepoint.
8810 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8811 TARGET_DEFAULT_NORETURN.
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8817 to_enable_tracepoint.
8818 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8819 TARGET_DEFAULT_NORETURN.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target-delegates.c: Rebuild.
8824 * target.c (update_current_target): Don't inherit or default
8825 to_download_trace_state_variable.
8826 * target.h (struct target_ops) <to_download_trace_state_variable>:
8827 Use TARGET_DEFAULT_NORETURN.
8829 2014-02-19 Tom Tromey <tromey@redhat.com>
8831 * target-delegates.c: Rebuild.
8832 * target.c (update_current_target): Don't inherit or default
8833 to_can_download_tracepoint.
8834 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8835 TARGET_DEFAULT_RETURN.
8837 2014-02-19 Tom Tromey <tromey@redhat.com>
8839 * target-delegates.c: Rebuild.
8840 * target.c (update_current_target): Don't inherit or default
8841 to_download_tracepoint.
8842 * target.h (struct target_ops) <to_download_tracepoint>: Use
8843 TARGET_DEFAULT_NORETURN.
8845 2014-02-19 Tom Tromey <tromey@redhat.com>
8847 * target-delegates.c: Rebuild.
8848 * target.c (update_current_target): Don't inherit or default
8850 * target.h (struct target_ops) <to_trace_init>: Use
8851 TARGET_DEFAULT_RETURN.
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8855 * target-delegates.c: Rebuild.
8856 * target.c (update_current_target): Don't inherit or default
8857 to_supports_string_tracing.
8858 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8859 TARGET_DEFAULT_RETURN.
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8863 * target-delegates.c: Rebuild.
8864 * target.c (update_current_target): Don't inherit or default
8865 to_supports_enable_disable_tracepoint.
8866 * target.h (struct target_ops)
8867 <to_supports_enable_disable_tracepoint>: Use
8868 TARGET_DEFAULT_RETURN.
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8874 to_supports_multi_process.
8875 * target.h (struct target_ops) <to_supports_multi_process>: Use
8876 TARGET_DEFAULT_RETURN.
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8880 * target-delegates.c: Rebuild.
8881 * target.c (update_current_target): Don't inherit or default
8882 to_get_ada_task_ptid.
8883 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8884 TARGET_DEFAULT_FUNC.
8886 2014-02-19 Tom Tromey <tromey@redhat.com>
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8890 to_thread_architecture.
8891 * target.h (struct target_ops) <to_thread_architecture>: Use
8892 TARGET_DEFAULT_FUNC.
8894 2014-02-19 Tom Tromey <tromey@redhat.com>
8896 * target-delegates.c: Rebuild.
8897 * target.c (update_current_target): Don't inherit or default
8898 to_execution_direction.
8899 * target.h (struct target_ops) <to_execution_direction>: Use
8900 TARGET_DEFAULT_FUNC.
8902 2014-02-19 Tom Tromey <tromey@redhat.com>
8904 * target-delegates.c: Rebuild.
8905 * target.c (update_current_target): Don't inherit or default
8906 to_can_execute_reverse.
8907 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8908 TARGET_DEFAULT_RETURN.
8909 (target_can_execute_reverse): Unconditionally delegate.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8916 (dummy_goto_bookmark): Remove.
8917 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8918 * target.h (struct target_ops) <to_goto_bookmark>: Use
8919 TARGET_DEFAULT_NORETURN.
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8923 * target-delegates.c: Rebuild.
8924 * target.c (update_current_target): Don't inherit or default
8926 (dummy_get_bookmark): Remove.
8927 (init_dummy_target): Don't inherit or default to_get_bookmark.
8928 * target.h (struct target_ops) <to_get_bookmark>: Use
8929 TARGET_DEFAULT_NORETURN
8931 2014-02-19 Tom Tromey <tromey@redhat.com>
8933 * target-delegates.c: Rebuild.
8934 * target.c (update_current_target): Don't inherit or default
8935 to_make_corefile_notes.
8936 (init_dummy_target): Don't initialize to_make_corefile_notes.
8937 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8938 TARGET_DEFAULT_FUNC.
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8942 * target-delegates.c: Rebuild.
8943 * target.c (update_current_target): Don't inherit or default
8944 to_find_memory_regions.
8945 (init_dummy_target): Don't initialize to_find_memory_regions.
8946 * target.h (struct target_ops) <to_find_memory_regions>: Use
8947 TARGET_DEFAULT_FUNC.
8949 2014-02-19 Tom Tromey <tromey@redhat.com>
8951 * target-delegates.c: Rebuild.
8952 * target.c (update_current_target): Don't inherit or default
8954 * target.h (struct target_ops) <to_log_command>: Use
8955 TARGET_DEFAULT_IGNORE.
8956 (target_log_command): Unconditionally delegate.
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8960 * target-delegates.c: Rebuild.
8961 * target.c (update_current_target): Don't inherit or default
8962 to_pid_to_exec_file.
8963 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8964 TARGET_DEFAULT_RETURN.
8966 2014-02-19 Tom Tromey <tromey@redhat.com>
8968 * target-delegates.c: Rebuild.
8969 * target.c (update_current_target): Don't inherit or default
8971 (target_thread_name): Unconditionally delegate.
8972 * target.h (struct target_ops) <to_thread_name>: Use
8973 TARGET_DEFAULT_RETURN.
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8977 * target-delegates.c: Rebuild.
8978 * target.c (update_current_target): Don't inherit or default
8979 to_extra_thread_info.
8980 * target.h (struct target_ops) <to_extra_thread_info>: Use
8981 TARGET_DEFAULT_RETURN.
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target-delegates.c: Rebuild.
8986 * target.c (update_current_target): Don't inherit or default
8988 * target.h (struct target_ops) <to_has_exited>: Use
8989 TARGET_DEFAULT_RETURN..
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8993 * target-delegates.c: Rebuild.
8994 * target.c (update_current_target): Don't inherit or default
8995 to_set_syscall_catchpoint.
8996 (return_one): Remove.
8997 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8998 TARGET_DEFAULT_RETURN.
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9002 * target-delegates.c: Rebuild.
9003 * target.c (update_current_target): Don't inherit or default
9004 to_insert_exec_catchpoint.
9005 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9006 TARGET_DEFAULT_RETURN.
9008 2014-01-08 Tom Tromey <tromey@redhat.com>
9010 * target-delegates.c: Rebuild.
9011 * target.c (update_current_target): Don't inherit or default
9012 to_insert_exec_catchpoint.
9013 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9014 TARGET_DEFAULT_RETURN.
9016 2014-02-19 Tom Tromey <tromey@redhat.com>
9018 * target-delegates.c: Rebuild.
9019 * target.c (update_current_target): Don't inherit or default
9020 to_remove_vfork_catchpoint.
9021 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9022 TARGET_DEFAULT_RETURN.
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9026 * target-delegates.c: Rebuild.
9027 * target.c (update_current_target): Don't inherit or default
9028 to_insert_vfork_catchpoint.
9029 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9030 TARGET_DEFAULT_RETURN.
9032 2014-02-19 Tom Tromey <tromey@redhat.com>
9034 * target-delegates.c: Rebuild.
9035 * target.c (update_current_target): Don't inherit or default
9036 to_remove_fork_catchpoint.
9037 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9038 TARGET_DEFAULT_RETURN.
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9042 * target-delegates.c: Rebuild.
9043 * target.c (update_current_target): Don't inherit or default
9044 to_insert_fork_catchpoint.
9045 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9046 TARGET_DEFAULT_RETURN.
9048 2014-02-19 Tom Tromey <tromey@redhat.com>
9050 * target-delegates.c: Rebuild.
9051 * target.c (update_current_target): Don't inherit or default
9052 to_post_startup_inferior.
9053 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9054 TARGET_DEFAULT_IGNORE.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target-delegates.c: Rebuild.
9059 * target.c (update_current_target): Don't inherit or default
9061 * target.h (struct target_ops) <to_load>: Use
9062 TARGET_DEFAULT_NORETURN.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target-delegates.c: Rebuild.
9067 * target.c (update_current_target): Don't inherit or default
9069 * target.h (struct target_ops) <to_terminal_info>: Use
9070 TARGET_DEFAULT_FUNC.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * target-delegates.c: Rebuild.
9075 * target.c (update_current_target): Don't inherit or default
9076 to_terminal_save_ours.
9077 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9078 TARGET_DEFAULT_IGNORE.
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target-delegates.c: Rebuild.
9083 * target.c (update_current_target): Don't inherit or default
9085 * target.h (struct target_ops) <to_terminal_ours>: Use
9086 TARGET_DEFAULT_IGNORE.
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9090 * target-delegates.c: Rebuild.
9091 * target.c (update_current_target): Don't inherit or default
9092 to_terminal_ours_for_output.
9093 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9094 TARGET_DEFAULT_IGNORE.
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9098 * target-delegates.c: Rebuild.
9099 * target.c (update_current_target): Don't inherit or default
9100 to_terminal_inferior.
9101 * target.h (struct target_ops) <to_terminal_inferior>: Use
9102 TARGET_DEFAULT_IGNORE.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target-delegates.c: Rebuild.
9107 * target.c (update_current_target): Don't inherit or default
9109 * target.h (struct target_ops) <to_terminal_init>: Use
9110 TARGET_DEFAULT_IGNORE.
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target-delegates.c: Rebuild.
9115 * target.c (update_current_target): Don't inherit or default
9116 to_can_accel_watchpoint_condition.
9117 * target.h (struct target_ops)
9118 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target-delegates.c: Rebuild.
9123 * target.c (update_current_target): Don't inherit or default
9124 to_region_ok_for_hw_watchpoint.
9125 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9126 Use TARGET_DEFAULT_FUNC.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target-delegates.c: Rebuild.
9131 * target.c (update_current_target): Don't inherit or default
9132 to_watchpoint_addr_within_range.
9133 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9134 Use TARGET_DEFAULT_FUNC.
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target-delegates.c: Rebuild.
9139 * target.c (update_current_target): Don't inherit or default
9140 to_remove_watchpoint.
9141 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9142 TARGET_DEFAULT_NORETURN.
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9146 * target-delegates.c: Rebuild.
9147 * target.c (update_current_target): Don't inherit or default
9148 to_insert_watchpoint.
9149 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9150 TARGET_DEFAULT_RETURN.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target-delegates.c: Rebuild.
9155 * target.c (update_current_target): Don't inherit or default
9156 to_remove_hw_breakpoint.
9157 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9158 TARGET_DEFAULT_RETURN.
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9162 * target-delegates.c: Rebuild.
9163 * target.c (update_current_target): Don't inherit or default
9164 to_insert_hw_breakpoint.
9165 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9166 TARGET_DEFAULT_RETURN.
9168 2014-02-19 Tom Tromey <tromey@redhat.com>
9170 * target-delegates.c: Rebuild.
9171 * target.c (update_current_target): Don't inherit or default
9172 to_can_use_hw_breakpoint.
9173 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9174 TARGET_DEFAULT_RETURN.
9176 2014-02-19 Tom Tromey <tromey@redhat.com>
9178 * target-delegates.c: Rebuild.
9179 * target.c (update_current_target): Don't inherit or default
9181 * target.h (struct target_ops) <to_files_info>: Use
9182 TARGET_DEFAULT_IGNORE.
9184 2014-02-19 Tom Tromey <tromey@redhat.com>
9186 * target-delegates.c: Rebuild.
9187 * target.c (update_current_target): Don't inherit or default
9189 * target.h (struct target_ops) <to_store>: Use
9190 TARGET_DEFAULT_NORETURN.
9192 2014-02-19 Tom Tromey <tromey@redhat.com>
9194 * target-delegates.c: Rebuild.
9195 * target.c (update_current_target): Don't inherit or default
9197 * target.h (struct target_ops) <to_post_attach>: Use
9198 TARGET_DEFAULT_IGNORE.
9200 2014-02-19 Tom Tromey <tromey@redhat.com>
9202 * target-delegates.c: Rebuild.
9203 * target.c (update_current_target): Don't inherit or default
9205 (default_rcmd): New function.
9206 (do_monitor_command): Unconditionally delegate.
9207 * target.h (struct target_ops) <to_rmcd>: Use
9208 TARGET_DEFAULT_FUNC.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target-delegates.c: Rebuild.
9213 * target.c (init_dummy_target): Don't initialize to_attach.
9214 (target_attach): Unconditionally delegate.
9215 * target.h (struct target_ops) <to_attach>: Use
9216 TARGET_DEFAULT_FUNC.
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9220 * target-delegates.c: Rebuild.
9221 * target.c (target_detach): Unconditionally delegate.
9222 (init_dummy_target): Don't initialize to_detach.
9223 * target.h (struct target_ops) <to_detach>: Use
9224 TARGET_DEFAULT_IGNORE.
9226 2014-02-19 Tom Tromey <tromey@redhat.com>
9228 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9230 (target_augmented_libraries_svr4_read): Add argument.
9231 * target.c (update_current_target): Update.
9232 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9237 * target.h (struct target_ops) <to_call_history_range>: Add
9239 * target.c (target_call_history_range): Add argument.
9240 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9242 (record_btrace_call_history_from): Update.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target.h (struct target_ops) <to_call_history_from>: Add
9248 * target.c (target_call_history_from): Add argument.
9249 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9252 2014-02-19 Tom Tromey <tromey@redhat.com>
9254 * target.h (struct target_ops) <to_call_history>: Add argument.
9255 * target.c (target_call_history): Add argument.
9256 * record-btrace.c (record_btrace_call_history): Add 'self'
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9261 * target.h (struct target_ops) <to_insn_history_range>: Add
9263 * target.c (target_insn_history_range): Add argument.
9264 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9266 (record_btrace_insn_history_from): Update.
9268 2014-02-19 Tom Tromey <tromey@redhat.com>
9270 * target.h (struct target_ops) <to_insn_history_from>: Add
9272 * target.c (target_insn_history_from): Add argument.
9273 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9278 * target.h (struct target_ops) <to_insn_history>: Add argument.
9279 * target.c (target_insn_history): Add argument.
9280 * record-btrace.c (record_btrace_insn_history): Add 'self'
9283 2014-02-19 Tom Tromey <tromey@redhat.com>
9285 * target.h (struct target_ops) <to_goto_record>: Add argument.
9286 * target.c (target_goto_record): Add argument.
9287 * record-full.c (record_full_goto): Add 'self' argument.
9288 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9293 * target.c (target_goto_record_end): Add argument.
9294 * record-full.c (record_full_goto_end): Add 'self' argument.
9295 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9299 * target.h (struct target_ops) <to_goto_record_begin>: Add
9301 * target.c (target_goto_record_begin): Add argument.
9302 * record-full.c (record_full_goto_begin): Add 'self' argument.
9303 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target.h (struct target_ops) <to_record_is_replaying>: Add
9310 * target.c (target_record_is_replaying): Add argument.
9311 * record-full.c (record_full_is_replaying): Add 'self' argument.
9312 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9314 (record_btrace_xfer_partial, record_btrace_store_registers)
9315 (record_btrace_prepare_to_store, record_btrace_resume)
9316 (record_btrace_wait, record_btrace_decr_pc_after_break)
9317 (record_btrace_find_new_threads, record_btrace_thread_alive):
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target.h (struct target_ops) <to_delete_record>: Add argument.
9323 * target.c (target_delete_record): Add argument.
9324 * record-full.c (record_full_delete): Add 'self' argument.
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target.h (struct target_ops) <to_save_record>: Add argument.
9329 * target.c (target_save_record): Add argument.
9330 * record-full.c (record_full_save): Add 'self' argument.
9331 (record_full_save): Add 'self' argument.
9333 2014-02-19 Tom Tromey <tromey@redhat.com>
9335 * target.h (struct target_ops) <to_info_record>: Add argument.
9336 * target.c (target_info_record): Add argument.
9337 * record.c (info_record_command): Add argument.
9338 * record-full.c (record_full_info): Add 'self' argument.
9339 * record-btrace.c (record_btrace_info): Add 'self' argument.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9344 * target.c (target_stop_recording): Add argument.
9345 * record.c (record_stop): Add argument.
9346 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9351 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9352 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9353 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9355 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9356 (_initialize_amd64_linux_nat): Use it.
9357 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9358 (_initialize_i386_linux_nat): Use it.
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9362 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9363 * target.c (target_teardown_btrace): Add argument.
9364 * remote.c (remote_teardown_btrace): Add 'self' argument.
9365 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9367 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9370 2014-02-19 Tom Tromey <tromey@redhat.com>
9372 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9373 * target.c (target_disable_btrace): Add argument.
9374 * remote.c (remote_disable_btrace): Add 'self' argument.
9375 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9377 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9383 * target.c (target_enable_btrace): Add argument.
9384 * remote.c (remote_enable_btrace): Add 'self' argument.
9385 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9387 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9393 (target_can_use_agent): Add argument.
9394 * target.c (update_current_target): Update.
9395 * remote.c (remote_can_use_agent): Add 'self' argument.
9396 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9400 * target.h (struct target_ops) <to_use_agent>: Add argument.
9401 (target_use_agent): Add argument.
9402 * target.c (update_current_target): Update.
9403 * remote.c (remote_use_agent): Add 'self' argument.
9404 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9409 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9410 (target_traceframe_info): Add argument.
9411 * target.c (update_current_target): Update.
9412 * remote.c (remote_traceframe_info): Add 'self' argument.
9413 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9415 2014-02-19 Tom Tromey <tromey@redhat.com>
9417 * target.h (target_static_tracepoint_markers_by_strid): Add
9419 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9421 * target.c (update_current_target): Update.
9422 * remote.c (struct target_ops)
9423 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9424 * linux-nat.c (struct target_ops)
9425 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9431 (target_static_tracepoint_marker_at): Add argument.
9432 * target.c (update_current_target): Update.
9433 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9436 2014-02-19 Tom Tromey <tromey@redhat.com>
9438 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9439 (target_set_permissions): Add argument.
9440 * target.c (update_current_target): Update.
9441 * remote.c (remote_set_permissions): Add 'self' argument.
9442 (remote_start_remote): Update.
9444 2014-02-19 Tom Tromey <tromey@redhat.com>
9446 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9447 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9448 (target_get_tib_address): Add argument.
9449 * target.c (update_current_target): Update.
9450 * remote.c (remote_get_tib_address): Add 'self' argument.
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9454 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9455 (target_set_trace_notes): Add argument.
9456 * target.c (update_current_target): Update.
9457 * remote.c (remote_set_trace_notes): Add 'self' argument.
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9461 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9463 (target_set_trace_buffer_size): Add argument.
9464 * target.c (update_current_target): Update.
9465 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9467 2014-02-19 Tom Tromey <tromey@redhat.com>
9469 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9471 (target_set_circular_trace_buffer): Add argument.
9472 * target.c (update_current_target): Update.
9473 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9480 (target_set_disconnected_tracing): Add argument.
9481 * target.c (update_current_target): Update.
9482 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9486 * target.h (struct target_ops)
9487 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9488 (target_get_min_fast_tracepoint_insn_len): Add argument.
9489 * target.c (update_current_target): Update.
9490 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9493 2014-02-19 Tom Tromey <tromey@redhat.com>
9495 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9497 (target_get_raw_trace_data): Add argument.
9498 * target.c (update_current_target): Update.
9499 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9503 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9505 (target_upload_trace_state_variables): Add argument.
9506 * target.c (update_current_target): Update.
9507 * remote.c (remote_upload_trace_state_variables): Add 'self'
9509 (remote_start_remote): Update.
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9513 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9515 (target_upload_tracepoints): Add argument.
9516 * target.c (update_current_target): Update.
9517 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9518 (remote_start_remote): Update.
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9522 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9523 (target_save_trace_data): Add argument.
9524 * target.c (update_current_target): Update.
9525 * remote.c (remote_save_trace_data): Add 'self' argument.
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9529 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9531 * target.h (struct target_ops)
9532 <to_get_trace_state_variable_value>: Add argument.
9533 (target_get_trace_state_variable_value): Add argument.
9534 * target.c (update_current_target): Update.
9535 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9537 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9539 2014-02-19 Tom Tromey <tromey@redhat.com>
9541 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9542 * target.h (struct target_ops) <to_trace_find>: Add argument.
9543 (target_trace_find): Add argument.
9544 * target.c (update_current_target): Update.
9545 * remote.c (remote_trace_find): Add 'self' argument.
9546 * ctf.c (ctf_trace_find): Add 'self' argument.
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9551 (target_trace_stop): Add argument.
9552 * target.c (update_current_target): Update.
9553 * remote.c (remote_trace_stop): Add 'self' argument.
9555 2014-02-19 Tom Tromey <tromey@redhat.com>
9557 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9558 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9560 (target_get_tracepoint_status): Add argument.
9561 * target.c (update_current_target): Update.
9562 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9566 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9567 * target.h (struct target_ops) <to_get_trace_status>: Add
9569 (target_get_trace_status): Add argument.
9570 * target.c (update_current_target): Update.
9571 * remote.c (remote_get_trace_status): Add 'self' argument.
9572 (remote_start_remote, remote_can_download_tracepoint): Update.
9573 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9577 * target.h (struct target_ops) <to_trace_start>: Add argument.
9578 (target_trace_start): Add argument.
9579 * target.c (update_current_target): Update.
9580 * remote.c (remote_trace_start): Add 'self' argument.
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9584 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9586 (target_trace_set_readonly_regions): Add argument.
9587 * target.c (update_current_target): Update.
9588 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9591 2014-02-19 Tom Tromey <tromey@redhat.com>
9593 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9595 (target_disable_tracepoint): Add argument.
9596 * target.c (update_current_target): Update.
9597 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9603 (target_enable_tracepoint): Add argument.
9604 * target.c (update_current_target): Update.
9605 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9607 2014-02-19 Tom Tromey <tromey@redhat.com>
9609 * target.h (struct target_ops) <to_download_trace_state_variable>:
9611 (target_download_trace_state_variable): Add argument.
9612 * target.c (update_current_target): Update.
9613 * remote.c (remote_download_trace_state_variable): Add 'self'
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9618 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9620 (target_can_download_tracepoint): Add argument.
9621 * target.c (update_current_target): Update.
9622 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9626 * target.h (struct target_ops) <to_download_tracepoint>: Add
9628 (target_download_tracepoint): Add argument.
9629 * target.c (update_current_target): Update.
9630 * remote.c (remote_download_tracepoint): Add 'self' argument.
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target.h (struct target_ops) <to_trace_init>: Add argument.
9635 (target_trace_init): Add argument.
9636 * target.c (update_current_target): Update.
9637 * remote.c (remote_trace_init): Add 'self' argument.
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9641 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9642 * target.c (target_fileio_readlink): Add argument.
9643 * remote.c (remote_hostio_readlink): Add 'self' argument.
9644 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9646 2014-02-19 Tom Tromey <tromey@redhat.com>
9648 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9649 * target.c (target_fileio_unlink): Add argument.
9650 * remote.c (remote_hostio_unlink): Add 'self' argument.
9651 (remote_file_delete): Update.
9652 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9656 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9657 * target.c (target_fileio_close): Add argument.
9658 * remote.c (remote_hostio_close): Add 'self' argument.
9659 (remote_hostio_close_cleanup): Update.
9660 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9662 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9666 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9667 * target.c (target_fileio_pread): Add argument.
9668 * remote.c (remote_hostio_pread): Add 'self' argument.
9669 (remote_bfd_iovec_pread, remote_file_get): Update.
9670 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9674 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9675 * target.c (target_fileio_pwrite): Add argument.
9676 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9677 (remote_file_put): Update.
9678 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9680 2014-02-19 Tom Tromey <tromey@redhat.com>
9682 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9683 * target.c (target_fileio_open): Add argument.
9684 * remote.c (remote_hostio_open): Add 'self' argument.
9685 (remote_bfd_iovec_open): Add 'self' argument.
9686 (remote_file_put): Add 'self' argument.
9687 (remote_file_get): Add 'self' argument.
9688 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9692 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9694 (target_can_run_breakpoint_commands): Add argument.
9695 * target.c (update_current_target): Update.
9696 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9698 (remote_insert_breakpoint): Add 'self' argument.
9699 (remote_insert_hw_breakpoint): Add 'self' argument.
9700 (remote_can_run_breakpoint_commands): Add 'self' argument.
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9704 * target.h (struct target_ops)
9705 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9706 (target_supports_evaluation_of_breakpoint_conditions): Add
9708 * target.c (update_current_target): Update.
9709 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9711 (remote_insert_breakpoint): Add 'self' argument.
9712 (remote_insert_hw_breakpoint): Add 'self' argument.
9713 (remote_supports_cond_breakpoints): Add 'self' argument.
9715 2014-02-19 Tom Tromey <tromey@redhat.com>
9717 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9719 (target_supports_string_tracing): Add argument.
9720 * target.c (update_current_target): Update.
9721 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9723 2014-02-19 Tom Tromey <tromey@redhat.com>
9725 * target.h (struct target_ops)
9726 <to_supports_disable_randomization>: Add argument.
9727 * target.c (find_default_supports_disable_randomization): Add
9729 (target_supports_disable_randomization): Add argument.
9730 (find_default_supports_disable_randomization): Add 'self'
9732 * remote.c (extended_remote_supports_disable_randomization): Add
9734 (remote_supports_disable_randomization): Add 'self' argument.
9735 (extended_remote_create_inferior): Update.
9736 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9741 * target.h (struct target_ops)
9742 <to_supports_enable_disable_tracepoint>: Add argument.
9743 (target_supports_enable_disable_tracepoint): Add argument.
9744 * target.c (update_current_target): Update.
9745 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9750 * target.h (struct target_ops) <to_supports_multi_process>: Add
9752 (target_supports_multi_process): Add argument.
9753 * target.c (update_current_target): Update.
9754 * remote.c (remote_supports_multi_process): Add 'self' argument.
9755 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9757 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9762 * target.h (struct target_ops) <to_execution_direction>: Add
9764 (target_execution_direction): Add argument.
9765 * target.c (default_execution_direction): Add 'self' argument.
9766 * record-full.c (record_full_execution_direction): Add 'self'
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9771 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9773 (target_can_execute_reverse): Add argument.
9774 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9775 * record-full.c (record_full_can_execute_reverse): Add 'self'
9777 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9780 2014-02-19 Tom Tromey <tromey@redhat.com>
9782 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9783 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9785 (target_get_ada_task_ptid): Add argument.
9786 * target.c (update_current_target): Update.
9787 (default_get_ada_task_ptid): Add 'self' argument.
9788 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9789 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9790 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9792 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9794 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9796 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9798 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9799 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9805 (target_goto_bookmark): Add argument.
9806 * target.c (dummy_goto_bookmark): Add 'self' argument.
9807 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9811 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9812 (target_get_bookmark): Add argument.
9813 * target.c (dummy_get_bookmark): Add 'self' argument.
9814 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9816 2014-02-19 Tom Tromey <tromey@redhat.com>
9818 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9820 (target_make_corefile_notes): Add argument.
9821 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9822 * procfs.c (procfs_make_note_section): Add 'self' argument.
9823 (procfs_make_note_section): Add 'self' argument.
9824 (procfs_make_note_section): Add 'self' argument.
9825 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9827 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9828 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9829 * exec.c (exec_make_note_section): Add 'self' argument.
9830 (exec_make_note_section): Add 'self' argument.
9832 2014-02-19 Tom Tromey <tromey@redhat.com>
9834 * target.h (struct target_ops) <to_find_memory_regions>: Add
9836 (target_find_memory_regions): Add argument.
9837 * target.c (dummy_find_memory_regions): Add 'self' argument.
9838 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9839 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9840 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9841 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9842 * exec. (exec_do_find_memory_regions): New global.
9843 (exec_set_find_memory_regions): Rewrite.
9844 (exec_find_memory_regions): New function.
9845 (init_exec_ops): Use exec_find_memory_regions.
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * target.h (struct target_ops) <to_supports_non_stop>: Add
9851 * target.c (find_default_supports_non_stop): Add argument.
9852 (target_supports_non_stop): Add argument.
9853 (find_default_supports_non_stop): Add 'self' argument.
9854 * remote.c (remote_supports_non_stop): Add 'self' argument.
9855 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9857 2014-02-19 Tom Tromey <tromey@redhat.com>
9859 * target.h (struct target_ops) <to_log_command>: Add argument.
9860 (target_log_command): Add argument.
9861 * serial.h (serial_log_command): Add 'self' argument.
9862 * serial.c (serial_log_command): Add 'self' argument.
9864 2014-02-19 Tom Tromey <tromey@redhat.com>
9866 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9867 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9869 (target_pid_to_exec_file): Add argument.
9870 * target.c (debug_to_pid_to_exec_file): Add argument.
9871 (update_current_target): Update.
9872 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9873 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9874 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9875 (linux_handle_extended_wait): Update.
9876 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9877 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9878 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9879 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9881 2014-02-19 Tom Tromey <tromey@redhat.com>
9883 * target.h (struct target_ops) <to_rcmd>: Add argument.
9884 (target_rcmd): Add argument.
9885 * target.c (debug_to_rcmd): Add argument.
9886 (update_current_target, do_monitor_command): Update.
9887 * remote.c (remote_rcmd): Add 'self' argument.
9888 * monitor.c (monitor_rcmd): Add 'self' argument.
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9892 * windows-nat.c (windows_stop): Add 'self' argument.
9893 * target.h (struct target_ops) <to_stop>: Add argument.
9894 * target.c (target_stop): Add argument.
9895 (debug_to_stop): Add argument.
9896 (update_current_target): Update.
9897 * remote.c (remote_stop): Add 'self' argument.
9898 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9899 (gdbsim_cntrl_c): Update.
9900 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9901 * procfs.c (procfs_stop): Add 'self' argument.
9902 * nto-procfs.c (procfs_stop): Add 'self' argument.
9903 * monitor.c (monitor_stop): Add 'self' argument.
9904 (monitor_open): Update.
9905 * linux-nat.c (linux_nat_stop): Add argument.
9906 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9907 * gnu-nat.c (gnu_stop): Add 'self' argument.
9908 * darwin-nat.c (darwin_stop): Add 'self' argument.
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9912 * target.h (struct target_ops) <to_thread_name>: Add argument.
9913 * target.c (target_thread_name): Add argument.
9914 (update_current_target): Update.
9915 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9917 2014-02-19 Tom Tromey <tromey@redhat.com>
9919 * target.h (struct target_ops) <to_extra_thread_info>: Add
9921 (target_extra_thread_info): Add argument.
9922 * target.c (update_current_target): Update.
9923 * remote.c (remote_threads_extra_info): Add 'self' argument.
9924 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9926 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9927 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9928 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9930 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9932 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9934 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9937 2014-02-19 Tom Tromey <tromey@redhat.com>
9939 * target.h (struct target_ops) <to_program_signals>: Add argument.
9940 * target.c (target_program_signals): Add argument.
9941 * remote.c (remote_program_signals): Add 'self' argument.
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9945 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9946 * target.c (target_pass_signals): Add argument.
9947 * remote.c (remote_pass_signals): Add 'self' argument.
9948 (remote_start_remote): Update.
9949 * procfs.c (procfs_pass_signals): Add 'self' argument.
9950 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9951 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9952 (linux_nat_create_inferior, linux_nat_attach): Update.
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9956 * windows-nat.c (windows_can_run): Add 'self' argument.
9957 * target.h (struct target_ops) <to_can_run>: Add argument.
9958 (target_can_run): Add argument.
9959 * target.c (debug_to_can_run): Add argument.
9960 (update_current_target): Update.
9961 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9962 * inf-child.c (inf_child_can_run): Add 'self' argument.
9963 * go32-nat.c (go32_can_run): Add 'self' argument.
9965 2014-02-19 Tom Tromey <tromey@redhat.com>
9967 * target.h (struct target_ops) <to_has_exited>: Add argument.
9968 (target_has_exited): Add argument.
9969 * target.c (debug_to_has_exited): Add argument.
9970 (update_current_target): Update.
9972 2014-02-19 Tom Tromey <tromey@redhat.com>
9974 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9976 (target_set_syscall_catchpoint): Add argument.
9977 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9979 * target.c (update_current_target): Update.
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9983 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9985 (target_remove_exec_catchpoint): Add argument.
9986 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9987 (update_current_target): Update.
9988 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9995 (target_insert_exec_catchpoint): Add argument.
9996 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9997 (update_current_target): Update.
9998 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10001 2014-02-19 Tom Tromey <tromey@redhat.com>
10003 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10005 (target_remove_vfork_catchpoint): Add argument.
10006 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10007 (update_current_target): Update.
10008 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10011 2014-02-19 Tom Tromey <tromey@redhat.com>
10013 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10015 (target_insert_vfork_catchpoint): Add argument.
10016 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10017 (update_current_target): Update.
10018 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10025 (target_remove_fork_catchpoint): Add argument.
10026 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10027 (update_current_target): Update.
10028 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10031 2014-02-19 Tom Tromey <tromey@redhat.com>
10033 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10035 (target_insert_fork_catchpoint): Add argument.
10036 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10037 (update_current_target): Update.
10038 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10041 2014-02-19 Tom Tromey <tromey@redhat.com>
10043 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10045 (target_post_startup_inferior): Add argument.
10046 * target.c (debug_to_post_startup_inferior): Add argument.
10047 (update_current_target): Update.
10048 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10050 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10052 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10054 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10056 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10058 (super_post_startup_inferior): Likewise.
10059 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10061 (super_post_startup_inferior): Likewise.
10062 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10063 Add 'self' argument.
10064 (super_post_startup_inferior): Likewise.
10066 2014-02-19 Tom Tromey <tromey@redhat.com>
10068 * target.h (struct target_ops) <to_load>: Add argument.
10069 * target.c (target_load): Add argument.
10070 (debug_to_load): Add argument.
10071 (update_current_target): Update.
10072 * remote.c (remote_load): Add 'self' argument.
10073 * remote-sim.c (gdbsim_load): Add 'self' argument.
10074 * remote-mips.c (mips_load): Add 'self' argument.
10075 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10076 * monitor.c (monitor_load): Add 'self' argument.
10077 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10081 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10082 (target_terminal_info): Add argument.
10083 * target.c (debug_to_terminal_info): Add argument.
10084 (default_terminal_info): Likewise.
10085 * inflow.c (child_terminal_info): Add 'self' argument.
10086 * inferior.h (child_terminal_info): Add 'self' argument.
10087 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10089 2014-02-19 Tom Tromey <tromey@redhat.com>
10091 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10093 (target_terminal_save_ours): Add argument.
10094 * target.c (debug_to_terminal_save_ours): Add argument.
10095 (update_current_target): Update.
10096 * inflow.c (terminal_save_ours): Add 'self' argument.
10097 * inferior.h (terminal_save_ours): Add 'self' argument.
10099 2014-02-19 Tom Tromey <tromey@redhat.com>
10101 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10102 (target_terminal_ours): Add argument.
10103 * target.c (debug_to_terminal_ours): Add argument.
10104 (update_current_target): Update.
10105 * remote.c (remote_terminal_ours): Add 'self' argument.
10106 (remote_close): Update.
10107 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10108 * inflow.c (terminal_ours): Add 'self' argument.
10109 * inferior.h (terminal_ours): Add 'self' argument.
10110 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10112 2014-02-19 Pedro Alves <palves@redhat.com>
10113 Tom Tromey <tromey@redhat.com>
10115 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10117 (target_terminal_ours_for_output): Add argument.
10118 * target.c (debug_to_terminal_ours_for_output): Add argument.
10119 (update_current_target): Update.
10120 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10121 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10122 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10126 * target.h (struct target_ops) <to_terminal_inferior>: Add
10128 * target.c (target_terminal_inferior): Add argument.
10129 (update_current_target): Update.
10130 * remote.c (remote_terminal_inferior): Add 'self' argument.
10131 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10132 * inflow.c (terminal_inferior): Add 'self' argument.
10133 * inferior.h (terminal_inferior): Add 'self' argument.
10134 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10135 (go32_terminal_inferior): Add 'self' argument.
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10139 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10140 (target_terminal_init): Add argument.
10141 * target.c (debug_to_terminal_init): Add argument.
10142 (update_current_target): Update.
10143 * inflow.c (terminal_init_inferior): Add 'self' argument.
10144 * inferior.h (terminal_init_inferior): Add 'self' argument.
10145 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10146 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10150 * target.h (struct target_ops)
10151 <to_can_accel_watchpoint_condition>: Add argument.
10152 (target_can_accel_watchpoint_condition): Add argument.
10153 * target.c (debug_to_can_accel_watchpoint_condition): Add
10155 (update_current_target): Update.
10156 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10159 2014-02-19 Tom Tromey <tromey@redhat.com>
10161 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10163 (target_region_ok_for_hw_watchpoint): Add argument.
10164 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10165 (default_region_ok_for_hw_watchpoint): Add argument.
10166 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10167 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10169 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10171 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10173 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10175 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10177 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10179 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10180 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10182 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10183 Add 'self' argument.
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10189 (target_insert_watchpoint): Add argument.
10190 * target.c (debug_to_insert_watchpoint): Add argument.
10191 (update_current_target): Update.
10192 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10193 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10194 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10195 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10196 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10197 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10199 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10200 (procfs_insert_hw_watchpoint): Add 'self' argument.
10201 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10203 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10205 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10207 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10208 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10210 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10213 2014-02-19 Tom Tromey <tromey@redhat.com>
10215 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10217 (target_remove_watchpoint): Add argument.
10218 * target.c (debug_to_remove_watchpoint): Add argument.
10219 (update_current_target): Update.
10220 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10221 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10222 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10223 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10224 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10225 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10227 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10228 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10230 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10232 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10234 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10235 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10237 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10240 2014-02-19 Tom Tromey <tromey@redhat.com>
10242 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10244 (target_remove_hw_breakpoint): Add argument.
10245 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10246 (update_current_target): Update.
10247 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10248 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10250 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10251 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10253 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10256 2014-02-19 Tom Tromey <tromey@redhat.com>
10258 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10260 (target_insert_hw_breakpoint): Add argument.
10261 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10262 (update_current_target): Update.
10263 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10264 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10266 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10267 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10268 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10270 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10273 2014-02-19 Tom Tromey <tromey@redhat.com>
10275 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10277 (target_can_use_hardware_watchpoint): Add argument.
10278 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10279 (update_current_target): Update.
10280 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10282 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10284 * remote.c (remote_check_watch_resources): Add 'self' argument.
10285 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10286 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10288 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10289 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10291 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10293 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10295 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10297 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10299 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10301 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10302 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10304 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10307 2014-02-19 Tom Tromey <tromey@redhat.com>
10309 * target.h (struct target_ops) <to_post_attach>: Add argument.
10310 (target_post_attach): Add argument.
10311 * target.c (debug_to_post_attach): Add argument.
10312 (update_current_target): Update.
10313 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10314 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10315 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10316 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10317 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10319 2014-02-19 Tom Tromey <tromey@redhat.com>
10321 * windows-nat.c (windows_close): Add 'self' argument.
10322 * tracepoint.c (tfile_close): Add 'self' argument.
10323 * target.h (struct target_ops) <to_close>: Add argument.
10324 * target.c (target_close): Add argument.
10325 (update_current_target): Update.
10326 * remote.c (remote_close): Add 'self' argument.
10327 * remote-sim.c (gdbsim_close): Add 'self' argument.
10328 * remote-mips.c (mips_close): Add 'self' argument.
10329 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10330 * record-full.c (record_full_close): Add 'self' argument.
10331 * record-btrace.c (record_btrace_close): Add 'self' argument.
10332 * monitor.h (monitor_close): Add 'self' argument.
10333 * monitor.c (monitor_close): Add 'self' argument.
10334 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10335 * linux-nat.c (linux_nat_close): Add argument.
10336 * go32-nat.c (go32_close): Add 'self' argument.
10337 * exec.c (exec_close_1): Add 'self' argument.
10338 * ctf.c (ctf_close): Add 'self' argument.
10339 * corelow.c (core_close): Add 'self' argument.
10340 (core_close_cleanup): Update.
10341 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10342 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10344 2014-02-19 Tom Tromey <tromey@redhat.com>
10346 * remote.c (remote_load): New function.
10347 (init_remote_ops): Use it.
10349 2014-02-19 Tom Tromey <tromey@redhat.com>
10351 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10353 * common/linux-btrace.h (linux_supports_btrace): Update.
10354 * remote.c (remote_supports_btrace): Add "self" argument.
10355 * target-delegates.c: Rebuild.
10356 * target.c (target_supports_btrace): Remove.
10357 * target.h (struct target_ops) <to_supports_btrace>: Add
10358 target_ops argument.
10359 (target_supports_btrace): New define.
10361 2014-02-19 Tom Tromey <tromey@redhat.com>
10363 * record-full.c (record_full_beneath_to_resume_ops)
10364 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10365 (record_full_beneath_to_wait)
10366 (record_full_beneath_to_store_registers_ops)
10367 (record_full_beneath_to_store_registers)
10368 (record_full_beneath_to_xfer_partial_ops)
10369 (record_full_beneath_to_xfer_partial)
10370 (record_full_beneath_to_insert_breakpoint_ops)
10371 (record_full_beneath_to_insert_breakpoint)
10372 (record_full_beneath_to_remove_breakpoint_ops)
10373 (record_full_beneath_to_remove_breakpoint)
10374 (record_full_beneath_to_stopped_by_watchpoint)
10375 (record_full_beneath_to_stopped_data_address)
10376 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10377 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10378 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10379 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10380 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10381 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10382 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10383 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10384 (record_full_resume, record_full_wait_1)
10385 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10386 (record_full_store_registers, record_full_xfer_partial)
10387 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10388 (record_full_async, record_full_core_xfer_partial): Use target
10390 * target-delegates.c: Rebuild.
10391 * target.c (current_xfer_partial): Remove.
10392 (update_current_target): Do not INHERIT or de_fault
10393 to_insert_breakpoint, to_remove_breakpoint,
10394 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10395 to_is_async_p, to_async. Do not set to_xfer_partial field.
10396 (default_xfer_partial): Simplify.
10397 (current_xfer_partial): Remove.
10398 (target_wait, target_resume): Simplify.
10399 (find_default_can_async_p, find_default_is_async_p): Update.
10400 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10401 to_xfer_partial, to_stopped_by_watchpoint,
10402 to_stopped_data_address.
10403 (target_store_registers): Simplify.
10404 (forward_target_remove_breakpoint)
10405 (forward_target_insert_breakpoint): Remove.
10406 (target_remove_breakpoint, target_insert_breakpoint)
10407 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10408 * target.h (struct target_ops) <to_resume, to_wait,
10409 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10410 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10411 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10413 (forward_target_remove_breakpoint)
10414 (forward_target_insert_breakpoint): Remove.
10415 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10417 (record_btrace_insert_breakpoint): Delegate directly.
10419 2014-02-19 Tom Tromey <tromey@redhat.com>
10422 * target-delegates.c: New file.
10423 * target.c: Include target-delegates.c.
10424 (init_dummy_target): Call install_dummy_methods.
10425 (complete_target_initialization): Call install_delegators.
10426 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10427 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10428 * make-target-delegates: New file.
10430 2014-02-19 Tom Tromey <tromey@redhat.com>
10432 * record.c (find_record_target): Use find_target_at.
10433 * target.c (find_target_at): New function.
10434 * target.h (find_target_at): Declare.
10436 2014-02-19 Tom Tromey <tromey@redhat.com>
10438 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10439 Add 'ops' argument.
10440 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10442 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10443 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10445 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10447 * linux-nat.c (save_sigtrap): Update.
10448 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10449 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10450 (linux_nat_close): Update.
10451 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10453 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10455 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10456 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10457 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10458 (tmp_to_async): Add 'ops' argument.
10459 (record_full_stopped_by_watchpoint, record_full_async)
10460 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10462 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10463 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10464 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10465 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10466 (remote_is_async_p, remote_async): Add 'ops' argument.
10467 (remote_stopped_data_address): Update.
10468 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10469 * target.c (update_current_target)
10470 (find_default_can_async_p, find_default_is_async_p): Update.
10471 (init_dummy_target): Update.
10472 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10473 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10474 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10475 (target_can_async_p, target_is_async_p, target_async)
10476 (target_stopped_by_watchpoint): Update.
10478 2014-02-19 Yao Qi <yao@codesourcery.com>
10481 * gdbarch.sh: Remove startup_gdbarch.
10482 * gdbarch.c: Regenerated.
10483 * gdbarch.h: Likewise.
10485 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10487 * rl78-tdep.c (rl78_g10_register_name): New function.
10488 (rl78_return_value): Add g10 support.
10489 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10492 2014-02-17 Doug Evans <xdje42@gmail.com>
10494 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10495 (SUBDIR_GUILE_SRCS): Ditto.
10496 (scm-gsmob.o): Ditto.
10498 2014-02-17 Yao Qi <yao@codesourcery.com>
10500 * gnu-nat.c (ILL_RPC): Declare defined function.
10502 2014-02-17 Yao Qi <yao@codesourcery.com>
10504 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10505 mach_msg_type_number_t.
10506 (gnu_write_inferior): Likewise.
10508 2014-02-17 Yao Qi <yao@codesourcery.com>
10510 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10512 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10513 (inf_validate_procs, inf_signal): Likewise.
10514 (S_exception_raise_request): Likewise.
10515 (do_mach_notify_dead_name): Likewise.
10516 (steal_exc_port): Likewise.
10517 (gnu_read_inferior): Change 'copy_count''s type to
10518 mach_msg_type_number_t.
10519 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10522 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10524 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10525 flag. Adjust all users; in particular...
10526 (gnu_wait): ..., don't decrement its value in here...
10527 (gnu_create_inferior): ..., and instead set the flag in here,
10528 around the startup_inferior call, and call that one with
10529 START_INFERIOR_TRAPS_EXPECTED.
10531 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10532 (ILL_RPC): ... new macro.
10533 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10534 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10535 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10536 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10537 functions with ILL_RPC macro.
10538 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10539 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10540 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10541 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10542 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10543 (S_proc_getlogin_reply, S_proc_getsid_reply)
10544 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10545 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10546 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10547 (S_proc_getnports_reply, S_proc_is_important_reply)
10548 (S_proc_get_code_reply): New stub functions, generated with
10551 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10552 collected the type check structures.
10554 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10556 2014-02-14 Doug Evans <dje@google.com>
10558 * target.c (target_write_partial): Fix result type.
10560 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10562 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10563 the proper offsets to access fpregset_t.
10565 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10567 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10568 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10569 * h8300-tdep.c (setmachinelist): Remove global.
10570 * hppa-tdep.c (hppa_sigtramp): Remove global.
10571 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10572 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10573 * ravenscar-thread.c (update_target_observer): Remove global.
10574 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10576 2014-02-12 Tom Tromey <tromey@redhat.com>
10578 * common/rsp-low.c: Update comments.
10579 * common/rsp-low.h: Update comments.
10581 2014-02-12 Tom Tromey <tromey@redhat.com>
10583 * common/rsp-low.c (convert_ascii_to_int): Remove.
10584 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10586 2014-02-12 Tom Tromey <tromey@redhat.com>
10588 * common/rsp-low.h (unhexify): Don't declare.
10589 * common/rsp-low.c (unhexify): Remove.
10591 2014-02-12 Tom Tromey <tromey@redhat.com>
10593 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10594 * common/rsp-low.c (convert_int_to_ascii): Remove.
10596 2014-02-12 Tom Tromey <tromey@redhat.com>
10598 * common/rsp-low.h (hexify): Don't declare.
10599 * common/rsp-low.c (hexify): Remove.
10601 2014-02-12 Tom Tromey <tromey@redhat.com>
10603 * common/rsp-low.c (hexify): Never take strlen of argument.
10605 2014-02-12 Tom Tromey <tromey@redhat.com>
10607 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10608 * remote.c (extended_remote_run, remote_rcmd)
10609 (remote_download_trace_state_variable, remote_save_trace_data)
10610 (remote_set_trace_notes): Update.
10611 * tracepoint.c (encode_source_string, tfile_write_status)
10612 (tfile_write_uploaded_tsv): Update.
10614 2014-02-12 Tom Tromey <tromey@redhat.com>
10616 * tracepoint.c: Include rsp-low.h.
10617 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10618 * remote.c: Include rsp-low.h.
10619 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10620 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10621 (remote_unescape_input): Move to common/rsp-low.c.
10622 * common/rsp-low.h: New file.
10623 * common/rsp-low.c: New file.
10624 * Makefile.in (SFILES): Add common/rsp-low.c.
10625 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10626 (COMMON_OBS): Add rsp-low.o.
10627 (rsp-low.o): New target.
10629 2014-02-12 Tom Tromey <tromey@redhat.com>
10631 * utils.h: Include print-utils.h.
10632 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10633 (int_string, core_addr_to_string, core_addr_to_string_nz)
10634 (hex_string, hex_string_custom): Don't declare.
10635 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10636 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10637 (hex_string_custom, int_string, core_addr_to_string)
10638 (core_addr_to_string_nz, host_address_to_string): Move to
10639 common/print-utils.c.
10640 * common/print-utils.h: New file.
10641 * common/print-utils.c: New file
10642 * Makefile.in (SFILES): Add common/print-utils.c.
10643 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10644 (COMMON_OBS): Add print-utils.o.
10645 (print-utils.o): New target.
10647 2014-02-12 Tom Tromey <tromey@redhat.com>
10649 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10651 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10653 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10655 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10657 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10658 if a PT_IO ptrace request returns sucessfully but indicates that 0
10659 bytes were transferred.
10661 2014-02-12 Pedro Alves <palves@redhat.com>
10662 Kevin Buettner <kevinb@redhat.com>
10664 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10665 TYPE_INSTANCE_FLAG_CODE_SPACE.
10667 2014-02-12 Pedro Alves <palves@redhat.com>
10669 * h8300-tdep.c (pseudo_from_raw_register)
10670 (raw_from_pseudo_register): New functions.
10671 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10674 2014-02-12 Pedro Alves <palves@redhat.com>
10676 * h8300-tdep.c (h8300_register_sim_regno): New function.
10677 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10678 gdbarch_register_sim_regno hook.
10680 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10682 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10684 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10686 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10688 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10690 * obsd-tdep.h (obsd_init_abi): New prototype.
10691 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10692 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10693 (obsd_init_abi): New functions.
10694 * i386obsd-tdep.c: Include "obsd-tdep.h".
10695 (i386obsd_init_abi): Call obsd_init_abi.
10696 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10697 (amd64obsd_init_abi): Call obsd_init_abi.
10698 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10699 obsd-tdep.c to gdb_target_obs.
10701 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10703 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10704 double float arguments to 16-byte in the argument slots.
10706 2014-02-11 Doug Evans <xdje42@gmail.com>
10708 * configure.ac: Don't crash if pkg-config is not found and guile
10709 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10711 * configure: Regenerate.
10713 2014-02-11 Yao Qi <yao@codesourcery.com>
10715 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10716 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10717 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10718 * gnu-nat.c (gnu_xfer_memory): Likewise.
10719 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10720 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10721 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10722 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10724 2014-02-11 Yao Qi <yao@codesourcery.com>
10726 * target.h (enum target_xfer_error): Rename to ...
10727 (enum target_xfer_status): ... it. New. All users updated.
10728 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10730 (TARGET_XFER_STATUS_ERROR_P): New macro.
10731 (target_xfer_error_to_string): Remove declaration.
10732 (target_xfer_status_to_string): Declare.
10733 (target_xfer_partial_ftype): Adjust it.
10734 (struct target_ops) <to_xfer_partial>: Return
10735 target_xfer_status. Add argument xfered_len. Update
10737 * target.c (target_xfer_error_to_string): Rename to ...
10738 (target_xfer_status_to_string): ... it. New. All callers
10740 (target_read_live_memory): Likewise. Call target_xfer_partial
10741 instead of target_read.
10742 (memory_xfer_live_readonly_partial): Return
10743 target_xfer_status. Add argument xfered_len.
10744 (raw_memory_xfer_partial): Likewise.
10745 (memory_xfer_partial_1): Likewise.
10746 (memory_xfer_partial): Likewise.
10747 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10748 properly. Update debug message.
10749 (default_xfer_partial, current_xfer_partial): Likewise.
10750 (target_write_partial): Likewise.
10751 (target_read_partial): Likewise. All callers updated.
10752 (read_whatever_is_readable): Likewise.
10753 (target_write_with_progress): Likewise.
10754 (target_read_alloc_1): Likewise.
10756 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10757 * auxv.c (procfs_xfer_auxv): Likewise.
10758 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10759 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10760 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10761 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10762 * corefile.c (read_memory): Adjust.
10763 * corelow.c (core_xfer_partial): Likewise.
10764 * ctf.c (ctf_xfer_partial): Likewise.
10765 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10767 (darwin_xfer_partial): Likewise.
10768 * exec.c (section_table_xfer_memory_partial): Likewise. All
10770 (exec_xfer_partial): Likewise.
10771 * exec.h (section_table_xfer_memory_partial): Update
10773 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10775 (gnu_xfer_partial): Likewise.
10776 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10777 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10778 (ia64_hpux_xfer_solib_got): Likewise.
10779 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10780 type of 'partial_len' to ULONGEST.
10781 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10782 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10783 (linux_nat_xfer_partial): Likewise.
10784 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10785 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10786 * monitor.c (monitor_xfer_memory): Likewise.
10787 (monitor_xfer_partial): Likewise.
10788 * procfs.c (procfs_xfer_partial): Likewise.
10789 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10790 * record-full.c (record_full_xfer_partial): Likewise.
10791 (record_full_core_xfer_partial): Likewise.
10792 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10793 (gdbsim_xfer_partial): Likewise.
10794 * remote.c (remote_write_bytes_aux): Likewise. All callers
10796 (remote_write_bytes, remote_read_bytes): Likewise. All
10798 (remote_flash_erase): Likewise. All callers updated.
10799 (remote_write_qxfer): Likewise. All callers updated.
10800 (remote_read_qxfer): Likewise. All callers updated.
10801 (remote_xfer_partial): Likewise.
10802 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10803 (rs6000_xfer_shared_libraries): Likewise.
10804 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10805 (sol_thread_xfer_partial): Likewise.
10806 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10807 (sparc_xfer_partial): Likewise.
10808 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10810 (spu_xfer_partial): Likewise.
10811 * spu-multiarch.c (spu_xfer_partial): Likewise.
10812 * tracepoint.c (tfile_xfer_partial): Likewise.
10813 * windows-nat.c (windows_xfer_memory): Likewise.
10814 (windows_xfer_shared_libraries): Likewise.
10815 (windows_xfer_partial): Likewise.
10816 * valprint.c: Replace 'target_xfer_error' with
10817 'target_xfer_status' in comments.
10819 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10821 Checked in by Joel Brobecker <brobecker@adacore.com>.
10822 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10824 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10826 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10827 function parameters.
10829 2014-02-10 Will Newton <will.newton@linaro.org>
10831 * elfread.c (elf_rel_plt_read): Look for a .got section if
10832 looking up .got.plt fails.
10833 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10834 on address passed to elf_gnu_ifunc_record_cache.
10835 (elf_gnu_ifunc_resolve_addr): Likewise.
10836 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10838 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10840 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10841 (X_RETTURN): New macro.
10842 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10844 * sparc64-tdep.c (sparc64_init_abi): Hook
10845 sparc_in_function_epilogue_p.
10847 2014-02-10 Gary Benson <gbenson@redhat.com>
10849 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10850 Rename name_matcher to symbol_matcher.
10852 2014-02-10 Gary Benson <gbenson@redhat.com>
10854 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10855 Use expand_symtabs_file_matcher_ftype and
10856 expand_symtabs_symbol_matcher_ftype.
10858 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10860 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10861 (struct ada_symbol_cache): New.
10862 (ada_free_symbol_cache): Forward declare.
10863 (struct ada_pspace_data): New.
10864 (ada_pspace_data_handle): New static global.
10865 (get_ada_pspace_data, ada_pspace_data_cleanup)
10866 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10867 (cache_space, cache): Delete, now folded inside struct
10869 (ada_get_symbol_cache): New function.
10870 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10872 (_initialize_ada_language): Remove initialization of cache_space.
10873 Move call to observer_attach_inferior_exit up, grouping it
10874 with the other observer registrations inside this function.
10875 Rename command to be more general. Add call to
10876 register_program_space_data_with_cleanup.
10878 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10880 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10881 ada_new_objfile_observer.
10882 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10883 (_initialize_tasks): Update uses of ada_new_objfile_observer
10884 and ada_tasks_normal_stop_observer.
10886 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10888 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10889 returned by the 'Length attribute to integer.
10891 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10893 * ada-lang.c (_initialize_ada_language): Initialize
10894 cache_space obstack.
10896 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10898 * ada-lang.c (HASH_SIZE): New macro.
10899 (struct cache_entry): New type.
10900 (cache_space, cache): New static globals.
10901 (ada_clear_symbol_cache, find_entry): New functions.
10902 (lookup_cached_symbol, cache_symbol): Implement.
10903 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10904 (_initialize_ada_language): Attach ada_new_objfile_observer
10905 and ada_free_objfile_observer.
10907 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10909 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10910 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10911 struct block * parameter.
10912 (ada_lookup_symbol_list_worker): Constify local variable "block".
10913 Remove cast which is no longer necessary.
10915 2014-02-10 Doug Evans <xdje42@gmail.com>
10917 Add Guile as an extension language.
10918 * NEWS: Mention Guile scripting.
10919 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10920 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10921 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10922 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10923 (CLIBS): Add GUILE_LIBS.
10924 (install-guile): New rule.
10925 (guile.o): New rule.
10926 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10927 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10928 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10929 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10930 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10931 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10932 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10933 * configure.ac: New option --with-guile.
10934 * configure: Regenerate.
10935 * config.in: Regenerate.
10936 * auto-load.c: Remove #include "python/python.h". Add #include
10937 "gdb/section-scripts.h".
10938 (source_section_scripts): Handle Guile scripts.
10939 (_initialize_auto_load): Add name of Guile objfile script to
10940 scripts-directory help text.
10941 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10942 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10943 (struct breakpoint): New member scm_bp_object.
10944 * defs.h (enum command_control_type): New value guile_control.
10945 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10947 (show_user): Update comment.
10948 (_initialize_cli_cmds): Update help text for "show user". Update help
10949 text for max-user-call-depth.
10950 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10952 (multi_line_command_p): Add guile_control.
10953 (print_command_lines): Handle guile_control.
10954 (execute_control_command, recurse_read_control_structure): Ditto.
10955 (process_next_line): Recognize "guile" commands.
10956 * disasm.c (gdb_disassemble_info): Make non-static.
10957 * disasm.h: #include "dis-asm.h".
10958 (struct gdbarch): Add forward decl.
10959 (gdb_disassemble_info): Declare.
10960 * extension.c: #include "guile/guile.h".
10961 (extension_languages): Add guile.
10962 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10963 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10964 * gdbtypes.c (get_unsigned_type_max): New function.
10965 (get_signed_type_minmax): New function.
10966 * gdbtypes.h (get_unsigned_type_max): Declare.
10967 (get_signed_type_minmax): Declare.
10968 * guile/README: New file.
10969 * guile/guile-internal.h: New file.
10970 * guile/guile.c: New file.
10971 * guile/guile.h: New file.
10972 * guile/scm-arch.c: New file.
10973 * guile/scm-auto-load.c: New file.
10974 * guile/scm-block.c: New file.
10975 * guile/scm-breakpoint.c: New file.
10976 * guile/scm-disasm.c: New file.
10977 * guile/scm-exception.c: New file.
10978 * guile/scm-frame.c: New file.
10979 * guile/scm-gsmob.c: New file.
10980 * guile/scm-iterator.c: New file.
10981 * guile/scm-lazy-string.c: New file.
10982 * guile/scm-math.c: New file.
10983 * guile/scm-objfile.c: New file.
10984 * guile/scm-ports.c: New file.
10985 * guile/scm-pretty-print.c: New file.
10986 * guile/scm-safe-call.c: New file.
10987 * guile/scm-string.c: New file.
10988 * guile/scm-symbol.c: New file.
10989 * guile/scm-symtab.c: New file.
10990 * guile/scm-type.c: New file.
10991 * guile/scm-utils.c: New file.
10992 * guile/scm-value.c: New file.
10993 * guile/lib/gdb.scm: New file.
10994 * guile/lib/gdb/boot.scm: New file.
10995 * guile/lib/gdb/experimental.scm: New file.
10996 * guile/lib/gdb/init.scm: New file.
10997 * guile/lib/gdb/iterator.scm: New file.
10998 * guile/lib/gdb/printing.scm: New file.
10999 * guile/lib/gdb/types.scm: New file.
11000 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11001 (VPATH): Add $(GUILE_SRCDIR).
11002 (GUILE_DIR): New variable.
11003 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11004 (all): Add stamp-guile dependency.
11005 (stamp-guile): New rule.
11006 (clean-guile, install-guile, uninstall-guile): New rules.
11007 (install-only): Add install-guile dependency.
11008 (uninstall): Add uninstall-guile dependency.
11009 (clean): Add clean-guile dependency.
11011 2014-02-09 Doug Evans <xdje42@gmail.com>
11013 Revert this patch (which I approved, mea culpa).
11015 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11017 * Makefile.in (all-lib): Remove.
11018 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11020 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11022 Fix Python stack corruption.
11023 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11026 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11028 * Makefile.in (all-lib): Remove.
11029 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11031 2014-02-07 Doug Evans <dje@google.com>
11033 * extension-priv.h (extension_language_script_ops): Add comment.
11034 (extension_language_ops): Add comment.
11035 (active_ext_lang_state): Fix typo in comment.
11037 2014-02-07 Pedro Alves <palves@redhat.com>
11039 PR breakpoints/16292
11040 * infrun.c (handle_signal_stop) <signal arrives while stepping
11041 over a breakpoint>: Switch back to the stepping thread.
11043 2014-02-07 Yao Qi <yao@codesourcery.com>
11045 * target.c (target_xfer_partial): Return zero if LEN is zero.
11047 2014-02-07 Yao Qi <yao@codesourcery.com>
11049 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11050 (ld_so_xfer_auxv): Likewise.
11051 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11052 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11053 * corelow.c (core_xfer_partial): Likewise.
11054 * ctf.c (ctf_xfer_partial): Likewise.
11055 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11056 (darwin_xfer_partial): Likewise.
11057 * exec.c (exec_xfer_partial): Likewise.
11058 * gnu-nat.c (gnu_xfer_partial): Likewise.
11059 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11060 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11061 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11062 * linux-nat.c (linux_xfer_siginfo): Likewise.
11063 (linux_proc_xfer_spu): Likewise.
11064 * procfs.c (procfs_xfer_partial): Likewise.
11065 * record-full.c (record_full_xfer_partial): Likewise.
11066 (record_full_core_xfer_partial): Likewise.
11067 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11068 * remote.c (remote_write_qxfer): Likewise.
11069 (remote_write_qxfer, remote_read_qxfer): Likewise.
11070 (remote_xfer_partial): Likewise.
11071 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11072 (rs6000_xfer_shared_libraries): Likewise.
11073 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11074 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11075 (spu_xfer_partial): Likewise.
11076 * target.c (memory_xfer_partial_1): Likewise.
11077 * tracepoint.c (tfile_xfer_partial): Likewise.
11078 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11079 (windows_xfer_partial): Likewise.
11081 2014-02-07 Yao Qi <yao@codesourcery.com>
11083 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11085 (core_xfer_shared_libraries_aix): Likewise.
11086 * gdbarch.c, gdbarch.h: Regenerated.
11087 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11088 ULONGEST. Change 'len_avail' type to ULONGEST.
11089 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11090 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11092 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11094 2014-02-07 Yao Qi <yao@codesourcery.com>
11096 * corefile.c (memory_error): Get 'exception' from ERR and pass
11097 'exception' to throw_error.
11099 2014-02-06 Doug Evans <xdje42@gmail.com>
11101 * configure.ac (libpython checking): Remove all but python.o from
11102 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11103 * configure: Regenerate.
11105 * Makefile.in (SFILES): Add extension.c.
11106 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11107 (COMMON_OBS): Add extension.o.
11108 * extension.h: New file.
11109 * extension-priv.h: New file.
11110 * extension.c: New file.
11112 * python/python-internal.h: #include "extension.h".
11113 (gdbpy_auto_load_enabled): Declare.
11114 (gdbpy_apply_val_pretty_printer): Declare.
11115 (gdbpy_apply_frame_filter): Declare.
11116 (gdbpy_preserve_values): Declare.
11117 (gdbpy_breakpoint_cond_says_stop): Declare.
11118 (gdbpy_breakpoint_has_cond): Declare.
11119 (void source_python_script_for_objfile): Delete.
11120 * python/python.c: #include "extension-priv.h".
11121 Delete inclusion of "observer.h".
11122 (extension_language_python): Moved here and renamed from
11123 script_language_python in py-auto-load.c.
11124 Redefined to be of type extension_language_defn.
11125 (python_extension_script_ops): New global.
11126 (python_extension_ops): New global.
11127 (struct python_env): New member previous_active.
11128 (restore_python_env): Call restore_active_ext_lang.
11129 (ensure_python_env): Call set_active_ext_lang.
11130 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11132 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11134 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11136 (gdbpy_eval_from_control_command): Renamed from
11137 eval_python_from_control_command, made static. New arg extlang.
11138 (gdbpy_source_script) Renamed from source_python_script, made static.
11140 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11141 result to int. New arg extlang.
11142 (gdbpy_source_objfile_script): Renamed from
11143 source_python_script_for_objfile, made static. New arg extlang.
11144 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11145 static. New args extlang, extlang_printers. Change result type to
11147 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11148 static. New arg extlang. Rename arg printers to extlang_printers
11149 and change type to ext_lang_type_printers *.
11150 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11151 static. Replace argument arg with extlang, extlang_printers.
11152 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11153 (!HAVE_PYTHON, source_python_script): Delete.
11154 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11155 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11156 (!HAVE_PYTHON, start_type_printers): Delete.
11157 (!HAVE_PYTHON, apply_type_printers): Delete.
11158 (!HAVE_PYTHON, free_type_printers): Delete.
11159 (_initialize_python): Delete call to observer_attach_before_prompt.
11160 (finalize_python): Set/restore active extension language.
11161 (gdbpy_finish_initialization) Renamed from
11162 finish_python_initialization, made static. New arg extlang.
11163 (gdbpy_initialized): New function.
11164 * python/python.h: #include "extension.h". Delete #include
11165 "value.h", "mi/mi-cmds.h".
11166 (extension_language_python): Declare.
11167 (GDBPY_AUTO_FILE_NAME): Delete.
11168 (enum py_bt_status): Moved to extension.h and renamed to
11169 ext_lang_bt_status.
11170 (enum frame_filter_flags): Moved to extension.h.
11171 (enum py_frame_args): Moved to extension.h and renamed to
11172 ext_lang_frame_args.
11173 (finish_python_initialization): Delete.
11174 (eval_python_from_control_command): Delete.
11175 (source_python_script): Delete.
11176 (apply_val_pretty_printer): Delete.
11177 (apply_frame_filter): Delete.
11178 (preserve_python_values): Delete.
11179 (gdbpy_script_language_defn): Delete.
11180 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11181 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11183 * auto-load.c: #include "extension.h".
11184 (GDB_AUTO_FILE_NAME): Delete.
11185 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11186 (script_language_gdb): Delete, moved to extension.c and renamed to
11187 extension_language_gdb.
11188 (source_gdb_script_for_objfile): Delete.
11189 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11190 (loaded_script): Change type of language member to
11191 struct extension_language_defn *.
11192 (init_loaded_scripts_info): Initialize
11193 unsupported_script_warning_printed.
11194 (maybe_add_script): Make static. Change type of language arg to
11195 struct extension_language_defn *.
11196 (clear_section_scripts): Reset unsupported_script_warning_printed.
11197 (auto_load_objfile_script_1): Rewrite to use extension language API.
11198 (auto_load_objfile_script): Make public. Remove support-compiled-in
11199 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11200 (source_section_scripts): Rewrite to use extension language API.
11201 (load_auto_scripts_for_objfile): Rewrite to use
11202 auto_load_scripts_for_objfile.
11203 (collect_matching_scripts_data): Change type of language member to
11204 struct extension_language_defn *.
11205 (auto_load_info_scripts): Change type of language arg to
11206 struct extension_language_defn *.
11207 (unsupported_script_warning_print): New function.
11208 (script_not_found_warning_print): Make static.
11209 (_initialize_auto_load): Rewrite construction of scripts-directory
11211 * auto-load.h (struct objfile): Add forward decl.
11212 (struct script_language): Delete.
11213 (struct auto_load_pspace_info): Add forward decl.
11214 (struct extension_language_defn): Add forward decl.
11215 (maybe_add_script): Delete.
11216 (auto_load_objfile_script): Declare.
11217 (script_not_found_warning_print): Delete.
11218 (auto_load_info_scripts): Update prototype.
11219 (auto_load_gdb_scripts_enabled): Declare.
11220 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11221 auto_load_python_scripts_enabled and made public.
11222 (script_language_python): Delete, moved to python.c.
11223 (gdbpy_script_language_defn): Delete.
11224 (info_auto_load_python_scripts): Update to use
11225 extension_language_python.
11227 * breakpoint.c (condition_command): Replace call to
11228 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11229 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11230 with call to breakpoint_ext_lang_cond_says_stop.
11231 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11232 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11233 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11234 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11236 (local_setattro): Print name of extension language with existing
11239 * valprint.c (val_print, value_print): Update to call
11240 apply_ext_lang_val_pretty_printer.
11241 * cp-valprint.c (cp_print_value): Update call to
11242 apply_ext_lang_val_pretty_printer.
11243 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11244 (gdbpy_apply_val_pretty_printer): Renamed from
11245 apply_val_pretty_printer. New arg extlang.
11246 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11248 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11249 extension language API.
11250 * cli/cli-script.c (execute_control_command): Update to call
11251 eval_ext_lang_from_control_command.
11253 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11254 enum ext_lang_bt_status values. Update call to
11255 apply_ext_lang_frame_filter.
11256 (mi_cmd_stack_list_locals): Ditto.
11257 (mi_cmd_stack_list_args): Ditto.
11258 (mi_cmd_stack_list_variables): Ditto.
11259 * mi/mi-main.c: Delete #include "python/python-internal.h".
11260 Add #include "extension.h".
11261 (mi_cmd_list_features): Replace reference to python internal variable
11262 gdb_python_initialized with call to ext_lang_initialized_p.
11264 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11265 Update to use enum ext_lang_frame_args. Update to call
11266 apply_ext_lang_frame_filter.
11267 * python/py-framefilter.c (extract_sym): Update to use enum
11268 ext_lang_bt_status.
11269 (extract_value, py_print_type, py_print_value): Ditto.
11270 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11271 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11272 (py_print_frame): Ditto.
11273 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11274 New arg extlang. Update to use enum ext_lang_bt_status.
11276 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11277 finish_python_initialization. Replace with call to
11278 finish_ext_lang_initialization.
11280 * typeprint.c (do_free_global_table): Update to call
11281 free_ext_lang_type_printers.
11282 (create_global_typedef_table): Update to call
11283 start_ext_lang_type_printers.
11284 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11285 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11286 (type_print_options): Change type of global_printers from "void *"
11287 to "struct ext_lang_type_printers *".
11289 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11290 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11291 (gdbpy_preserve_values): Renamed from preserve_python_values.
11293 (!HAVE_PYTHON, preserve_python_values): Delete.
11295 * utils.c (quit_flag): Delete, moved to extension.c.
11296 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11299 * eval.c: Delete #include "python/python.h".
11300 * main.c: Delete #include "python/python.h".
11302 * defs.h: Update comment.
11304 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11308 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11310 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11313 2014-02-05 Yao Qi <yao@codesourcery.com>
11315 * remote.c (remote_pass_signals): Remove local 'buf' and use
11317 (remote_program_signals): Likewise.
11319 2014-02-05 Yao Qi <yao@codesourcery.com>
11321 * ctf.c: Include "inferior.h" and "gdbthread.h".
11322 (CTF_PID): A new macro.
11323 (ctf_open): Call inferior_appeared and add_thread_silent.
11324 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11325 (ctf_thread_alive): New function.
11326 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11328 2014-02-05 Yao Qi <yao@codesourcery.com>
11332 2013-05-24 Yao Qi <yao@codesourcery.com>
11334 * tracepoint.c (TFILE_PID): Remove.
11335 (tfile_open): Don't add thread and inferior.
11336 (tfile_close): Don't set 'inferior_ptid'. Don't call
11337 exit_inferior_silent.
11338 (tfile_thread_alive): Remove.
11339 (init_tfile_ops): Don't set field 'to_thread_alive' of
11342 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11344 * remote.c (remote_start_remote): Call remote_check_symbols even
11345 if only symbol-file (not file) has been given.
11347 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11349 * gdbarch.sh (skip_entrypoint): New callback.
11350 * gdbarch.c, gdbarch.h: Regenerate.
11351 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11352 * infrun.c (fill_in_stop_func): Likewise.
11353 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11354 (ppc_elfv2_elf_make_msymbol_special): New function.
11355 (ppc_elfv2_skip_entrypoint): Likewise.
11356 (ppc_linux_init_abi): Install them for ELFv2.
11358 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11360 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11361 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11362 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11363 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11364 structures returned in GPRs.
11366 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11368 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11369 offset to the stack parameter list for the ELFv2 ABI.
11371 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11373 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11374 set_gdbarch_convert_from_func_ptr_addr and
11375 set_gdbarch_elf_make_msymbol_special for ELFv1.
11376 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11377 function descriptors on ELFv1.
11378 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11379 set up r12 at function entry.
11381 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11383 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11384 (struct gdbarch_tdep): New member elf_abi.
11386 * rs6000-tdep.c: Include "elf/ppc64.h".
11387 (rs6000_gdbarch_init): Detect ELF ABI version.
11389 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11391 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11392 within a register pair holding a DFP 128-bit value on little-endian.
11393 (ppc64_sysv_abi_return_value_base): Likewise.
11394 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11395 (dfp_pseudo_register_write): Likewise.
11397 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11399 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11400 offset on little-endian when passing _Decimal32.
11401 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11403 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11405 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11406 of the overlapped FP register within the VSX register on little-
11408 (efpr_pseudo_register_write): Likewise.
11410 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11412 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11413 offset on little-endian when passing small structures.
11415 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11417 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11418 (struct ppc64_sysv_argpos): New data structure.
11419 (ppc64_sysv_abi_push_float): Remove.
11420 (ppc64_sysv_abi_push_val): New function.
11421 (ppc64_sysv_abi_push_integer): Likewise.
11422 (ppc64_sysv_abi_push_freg): Likewise.
11423 (ppc64_sysv_abi_push_vreg): Likewise.
11424 (ppc64_sysv_abi_push_param): Likewise.
11425 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11426 (ppc64_sysv_abi_return_value_base): New function.
11427 (ppc64_sysv_abi_return_value): Refactor to use it.
11429 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11431 * NEWS: Document new target powerpc64le-*-linux*.
11433 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11435 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11436 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11438 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11439 register set used in ELF core dumps. Add floating-point register set.
11441 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11443 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11444 dwarf2_to_gdb[] table using symbolic constants. Adjust
11445 penultimate entry from number representing the PC register
11446 to symbolic constant representing the MDR register. Add
11447 constant for the PC register to the end of the table.
11449 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11451 * bsd-kvm.c: Include <sys/param.h>
11453 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11455 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11457 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11459 * ada-lang.h (clear_ada_sym_cache): Delete.
11461 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11463 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11465 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11467 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11468 the sigreturn register save area only if the syscall is
11471 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11473 * valops.c (value_slice): Minor reformatting.
11475 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11477 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11479 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11481 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11482 New static globals.
11483 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11484 (ada_ignore_descriptive_types_p): New static global.
11485 (find_parallel_type_by_descriptive_type): Return immediately
11486 if ada_ignore_descriptive_types_p is set.
11487 (_initialize_ada_language): Register new commands "maintenance
11488 set ada", "maintenance show ada", "maintenance set ada
11489 ignore-descriptive-types" and "maintenance show ada
11490 ignore-descriptive-types".
11491 * NEWS: Add entry for new "maint ada set/show
11492 ignore-descriptive-types" commands.
11494 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11496 * record-btrace.c (record_btrace_close): Call btrace_teardown
11499 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11501 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11504 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11506 * ada-typeprint (type_is_full_subrange_of_target_type):
11508 (print_range): Add parameter bounds_prefered_p. If not set,
11509 try printing range types using the name of their base type.
11510 (print_range_type): Add parameter bounds_prefered_p.
11511 Use it in call to print_range.
11512 (print_array_type, ada_print_type): Update calls to print_range
11513 and print_range_type.
11515 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11517 * ada-typeprint.c (print_array_type, print_choices, print_range)
11518 (print_range_bound, print_dynamic_range_bound, print_range_type):
11519 Remove declaration.
11521 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11523 * ada-typeprint.c (print_range): Add missing empty line
11524 after local declaration.
11526 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11528 * ada-valprint.c (print_optional_low_bound): Get index_type's
11529 target type for as long as it is a TYPE_CODE_RANGE.
11531 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11533 * procfs.c (procfs_make_note_section): Remove assertion and
11534 associated comment.
11536 2014-01-24 Yao Qi <yao@codesourcery.com>
11538 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11539 * corelow.c (get_core_siginfo): Likewise.
11541 2014-01-24 Yao Qi <yao@codesourcery.com>
11543 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11544 ULONGEST. Don't check 'len' is negative.
11545 (remote_write_bytes): Change type of 'len' to ULONGEST.
11547 2014-01-23 Tom Tromey <tromey@redhat.com>
11550 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11551 Handle exception from frame.block.
11552 (FrameVars.fetch_frame_locals): Likewise.
11554 2014-01-23 Tom Tromey <tromey@redhat.com>
11557 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11558 on a NULL pointer. Move "goto error" to correct place.
11560 2014-01-23 Tom Tromey <tromey@redhat.com>
11563 * python/py-framefilter.c (apply_frame_filter): Call
11564 ensure_python_env after computing gdbarch.
11566 2014-01-23 Yao Qi <yao@codesourcery.com>
11568 * target.c (raw_memory_xfer_partial): Change argument type
11569 from void * to gdb_byte *.
11570 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11572 2014-01-22 Doug Evans <dje@google.com>
11574 New gdbserver option --debug-format=timestamp.
11575 * NEWS: Mention it.
11577 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11579 * syscalls/s390x-linux.xml: New file.
11580 * syscalls/s390-linux.xml: New file.
11581 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11582 (XML_SYSCALL_FILENAME_S390X): Likewise.
11583 (op_svc): New enum value for SVC opcode.
11584 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11585 (s390_linux_get_syscall_number): New function.
11586 (s390_gdbarch_init): Register '*get_syscall_number' and the
11587 syscall xml file name.
11588 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11589 "s390-linux.xml" and "s390x-linux.xml".
11590 * NEWS: Announce new feature.
11592 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11594 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11596 2014-01-22 Pedro Alves <palves@redhat.com>
11598 * xtensa-config.c: Include defs.h.
11600 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11602 * common/common-utils.h: Add "ARI:" comment beside __func__
11605 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11607 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11608 documentation a bit.
11610 2014-01-21 Roland McGrath <mcgrathr@google.com>
11612 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11613 * configure: Regenerate.
11614 * aclocal.m4: Regenerate.
11615 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11616 New substituted variables.
11617 (install-strip): New target.
11618 (INSTALL_SCRIPT): New substituted variable.
11619 (FLAGS_TO_PASS): Add it.
11620 (install-only): Use $(INSTALL_SCRIPT) rather than
11621 $(INSTALL_PROGRAM) for gcore.
11623 2014-01-20 Tom Tromey <tromey@redhat.com>
11625 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11628 2014-01-20 Tom Tromey <tromey@redhat.com>
11630 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11631 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11632 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11633 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11634 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11635 (struct cmd_list_element) <flags>: Remove.
11636 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11637 doc_allocated>: New fields.
11638 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11640 * maint.c (maintenance_do_deprecate): Update.
11641 * top.c (execute_command): Update.
11643 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11645 * xtensa-linux-nat.c: Include asm/ptrace.h.
11647 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11649 * Makefile.in (SFILES): Add d-support.c.
11650 (COMMON_OBS): Add d-support.o.
11651 * d-lang.h (d_parse_symbol): Add comment, now defined in
11653 * d-lang.c (parse_call_convention)
11654 (parse_attributes, parse_function_types)
11655 (parse_function_args, parse_type, parse_identifier)
11656 (call_convention_p, d_parse_symbol): Move functions to ...
11657 * d-support.c: ... New file.
11659 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11661 * d-lang.h (d_parse_symbol): Add declaration.
11662 * d-lang.c (extract_identifiers)
11663 (extract_type_info): Remove functions.
11664 (parse_call_convention, parse_attributes)
11665 (parse_function_types, parse_function_args)
11666 (parse_type, parse_identifier, call_convention_p)
11667 (d_parse_symbol): New functions.
11668 (d_demangle): Use d_parse_symbol to demangle D symbols.
11670 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11672 * d-lang.h (struct builtin_d_type): New data type.
11673 (builtin_d_type): Add declaration.
11674 * d-lang.c (d_language_arch_info, build_d_types)
11675 (builtin_d_type): New functions.
11676 (enum d_primitive_types): New data type.
11677 (d_language_defn): Change c_language_arch_info to
11678 d_language_arch_info.
11679 (d_type_data): New static variable.
11680 (_initialize_d_language): Initialize d_type_data.
11682 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11684 * d-lang.h (d_main_name): Add declaration.
11685 * d-lang.c (d_main_name): New function.
11686 * symtab.c (find_main_name): Add call to d_main_name.
11688 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11690 * d-lang.c (d_language_defn): Change macro_expansion_c to
11691 macro_expansion_no.
11693 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11695 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11697 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11699 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11700 gdb_exception" declaration.
11701 * remote.c (getpkt_or_notif_sane): Likewise.
11703 2014-01-17 Doug Evans <dje@google.com>
11705 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11706 function, contents of dirnames_to_char_ptr_vec_append moved here.
11707 (delim_string_to_char_ptr_vec): New function.
11708 (dirnames_to_char_ptr_vec_append): Rewrite.
11709 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11711 2014-01-17 Doug Evans <dje@google.com>
11713 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11715 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11716 #include "common-utils.h".
11717 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11718 * common/vec.h (VEC_ASSERT_PASS): Update.
11719 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11720 (MACH_CHECK_ERROR): Update.
11722 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11724 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11726 * gdbarch.h: Regenerate.
11728 2014-01-16 Tom Tromey <tromey@redhat.com>
11730 * value.c (struct value) <regnum>: Move earlier.
11732 2014-01-16 Tom Tromey <tromey@redhat.com>
11734 * remote.c (extended_remote_create_inferior): Rename from
11735 extended_remote_create_inferior_1. Add "ops" argument. Remove
11736 old implementation.
11738 2014-01-16 Pedro Alves <palves@redhat.com>
11740 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11741 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11744 2014-01-16 Doug Evans <dje@google.com>
11746 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11750 * btrace.h (btrace_thread_flag): New.
11751 (struct btrace_thread_info) <flags>: New.
11752 * record-btrace.c (record_btrace_resume_thread)
11753 (record_btrace_find_thread_to_move, btrace_step_no_history)
11754 (btrace_step_stopped, record_btrace_start_replaying)
11755 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11756 (record_btrace_find_resume_thread): New.
11757 (record_btrace_resume, record_btrace_wait): Extend.
11758 (record_btrace_can_execute_reverse): New.
11759 (record_btrace_open): Fail in non-stop mode.
11760 (record_btrace_set_replay): Split into this, ...
11761 (record_btrace_stop_replaying): ... this, ...
11762 (record_btrace_clear_histories): ... and this.
11763 (init_record_btrace_ops): Init to_can_execute_reverse.
11764 * NEWS: Announce it.
11766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11768 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11769 (forward_target_decr_pc_after_break)
11770 (target_decr_pc_after_break): New.
11771 * target.c (forward_target_decr_pc_after_break)
11772 (target_decr_pc_after_break): New.
11773 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11774 instead of gdbarch_decr_pc_after_break.
11775 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11776 instead of gdbarch_decr_pc_after_break.
11777 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11778 instead of gdbarch_decr_pc_after_break.
11779 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11780 instead of gdbarch_decr_pc_after_break.
11781 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11782 instead of gdbarch_decr_pc_after_break.
11783 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11784 instead of gdbarch_decr_pc_after_break.
11786 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11788 * btrace.c: Include regcache.h.
11789 (btrace_add_pc): New.
11790 (btrace_enable): Call btrace_add_pc.
11791 (btrace_is_empty): New.
11792 * btrace.h (btrace_is_empty): New.
11793 * record-btrace.c (require_btrace, record_btrace_info): Call
11796 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11798 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11799 Support delta reads.
11800 (linux_disable_btrace): Change return type.
11801 * common/linux-btrace.h (linux_read_btrace): Change parameters
11802 and return type to allow error reporting. Update users.
11803 (linux_disable_btrace): Change return type. Update users.
11804 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11806 (btrace_error): New.
11807 (btrace_block) <begin>: Comment on BEGIN == 0.
11808 * btrace.c (btrace_compute_ftrace): Start from the end of
11810 (btrace_stitch_trace, btrace_clear_history): New.
11811 (btrace_fetch): Read delta trace, return if replaying.
11812 (btrace_clear): Move clear history code to btrace_clear_history.
11813 (parse_xml_btrace): Throw an error if parsing failed.
11814 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11815 and return type to allow error reporting.
11816 (target_read_btrace): Change parameters and return type to allow
11818 * target.c (target_read_btrace): Update.
11819 * remote.c (remote_read_btrace): Support delta reads. Pass
11821 * NEWS: Announce it.
11823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11825 * record.h (record_btrace_frame_unwind)
11826 (record_btrace_tailcall_frame_unwind): New declarations.
11827 * dwarf2-frame: Include record.h
11828 (dwarf2_frame_cfa): Throw an error for btrace frames.
11829 * record-btrace.c: Include hashtab.h.
11830 (btrace_get_bfun_name): New.
11831 (btrace_call_history): Call btrace_get_bfun_name.
11832 (struct btrace_frame_cache): New.
11834 (bfcache_hash, bfcache_eq, bfcache_new): New.
11835 (btrace_get_frame_function): New.
11836 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11837 (record_btrace_frame_this_id): Compute own id.
11838 (record_btrace_frame_prev_register): Provide PC, throw_error
11839 for all other registers.
11840 (record_btrace_frame_sniffer): Detect btrace frames.
11841 (record_btrace_tailcall_frame_sniffer): New.
11842 (record_btrace_frame_dealloc_cache): New.
11843 (record_btrace_frame_unwind): Add new functions.
11844 (record_btrace_tailcall_frame_unwind): New.
11845 (_initialize_record_btrace): Allocate cache.
11846 * btrace.c (btrace_clear): Call reinit_frame_cache.
11847 * NEWS: Announce it.
11849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11851 * record-btrace.c (record_btrace_set_replay)
11852 (record_btrace_goto_begin, record_btrace_goto_end)
11853 (record_btrace_goto): New.
11854 (init_record_btrace_ops): Initialize them.
11855 * NEWS: Announce it.
11857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11859 * record-btrace.c (record_btrace_find_new_threads)
11860 (record_btrace_thread_alive): New.
11861 (init_record_btrace_ops): Initialize to_find_new_threads and
11864 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11866 * record-btrace.c (record_btrace_resume): New.
11867 (record_btrace_wait): New.
11868 (init_record_btrace_ops): Initialize to_wait and to_resume.
11870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11872 * record-btrace.c (record_btrace_xfer_partial)
11873 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11874 (record_btrace_allow_memory_access): New.
11875 (init_record_btrace_ops): Initialize new methods.
11876 * target.c (raw_memory_xfer_partial): Bail out if target reports
11877 that this memory is not available.
11879 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11881 * target.h (target_ops) <to_insert_breakpoint>
11882 <to_remove_breakpoint>: Add target_ops parameter.
11883 (forward_target_insert_breakpoint): New.
11884 (forward_target_remove_breakpoint): New.
11885 (memory_remove_breakpoint, memory_insert_breakpoint):
11886 Add target_ops parameter.
11887 * target.c (target_insert_breakpoint): Split into this and ...
11888 (forward_target_insert_breakpoint): ... this.
11889 (target_remove_breakpoint): Split into this and ...
11890 (forward_target_remove_breakpoint): ... this.
11891 (debug_to_insert_breakpoint): Add target_ops parameter.
11892 Call forward_target_insert_breakpoint.
11893 (debug_to_remove_breakpoint): Add target_ops parameter.
11894 Call forward_target_remove_breakpoint.
11895 (update_current_target): Do not inherit or default to_insert_breakpoint
11896 and to_remove_breakpoint.
11897 * corelow.c (ignore): Add target_ops parameter.
11898 * exec.c (ignore): Add target_ops parameter.
11899 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11900 Add target_ops parameter.
11901 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11902 Add target_ops parameter.
11903 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11904 Add target_ops parameter.
11905 * record-full.c (record_full_beneath_to_insert_breakpoint)
11906 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11907 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11908 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11909 (record_full_core_remove_breakpoint): Add target_ops parameter.
11911 (record_full_beneath_to_insert_breakpoint_ops)
11912 (record_full_beneath_to_remove_breakpoint_ops)
11913 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11914 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11915 tmp_to_remove_breakpoint_ops,
11916 record_full_beneath_to_insert_breakpoint_ops, and
11917 record_full_beneath_to_remove_breakpoint_ops.
11918 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11919 (m32r_remove_breakpoint): Add target_ops parameter.
11920 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11921 Add target_ops parameter.
11922 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11923 Add target_ops parameter.
11925 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11926 Markus Metzger <markus.t.metzger@intel.com>
11928 * record-btrace.c: Include frame-unwind.h.
11929 (record_btrace_frame_unwind_stop_reason)
11930 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11931 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11933 (init_record_btrace_ops): Install it.
11935 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11937 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11940 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11942 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11945 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11947 * frame-unwind.c: Include target.h.
11948 (frame_unwind_try_unwinder): New function with code from ...
11949 (frame_unwind_find_by_frame): ... here. New variable
11950 unwinder_from_target, call also target_get_unwinder)
11951 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11952 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11953 * target.h (struct target_ops): New fields to_get_unwinder and
11954 to_get_tailcall_unwinder.
11955 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11957 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11959 * record-btrace.c (record_btrace_fetch_registers)
11960 (record_btrace_store_registers)
11961 (record_btrace_to_prepare_to_store): New.
11962 (init_record_btrace_ops): Add the above.
11964 2014-01-16 Tom Tromey <tromey@redhat.com>
11966 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11967 * target.h (struct target_ops) <to_prepare_to_store>: Add
11969 (target_prepare_to_store): Add argument.
11970 * target.c (debug_to_prepare_to_store): Add argument.
11971 (update_current_target): Update.
11972 * remote.c (remote_prepare_to_store): Add 'self' argument.
11973 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11974 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11975 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11976 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11978 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11979 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11980 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11981 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11982 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11984 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11986 * btrace.h (replay) <replay>: New.
11987 (btrace_is_replaying): New.
11988 * btrace.c (btrace_clear): Free replay iterator.
11989 (btrace_is_replaying): New.
11990 * record-btrace.c (record_btrace_is_replaying): New.
11991 (record_btrace_info): Print insn number if replaying.
11992 (record_btrace_insn_history): Start at replay position.
11993 (record_btrace_call_history): Start at replay position.
11994 (init_record_btrace_ops): Init to_record_is_replaying.
11996 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11998 * record-btrace.c (record_btrace_insn_history_range): Include
12000 (record_btrace_insn_history_from): Adjust range.
12001 (record_btrace_call_history_range): Include
12003 (record_btrace_call_history_from): Adjust range.
12004 * NEWS: Announce changes.
12006 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12008 * record.h (enum record_print_flag)
12009 <record_print_indent_calls>: New.
12010 * record.c (get_call_history_modifiers): Recognize /c modifier.
12011 (_initialize_record): Document /c modifier.
12012 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12013 Reorder fields. Optionally indent the function name. Update
12015 * NEWS: Announce changes.
12017 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12019 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12021 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12023 * btrace.c (ftrace_new_function): Start counting at one.
12024 * record-btrace.c (record_btrace_info): Adjust number of calls
12026 * NEWS: Announce it.
12028 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12030 * record-btrace.c (btrace_call_history_insn_range): Print
12031 insn range as [begin, end].
12033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12035 * btrace.h (struct btrace_func_link): New.
12036 (enum btrace_function_flag): New.
12037 (struct btrace_inst): Rename to ...
12038 (struct btrace_insn): ...this. Update all users.
12039 (struct btrace_func) <ibegin, iend>: Remove.
12040 (struct btrace_func_link): New.
12041 (struct btrace_func): Rename to ...
12042 (struct btrace_function): ...this. Update all users.
12043 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12044 (number, level, flags>: New.
12045 (struct btrace_insn_iterator): Rename to ...
12046 (struct btrace_insn_history): ...this.
12048 (struct btrace_insn_iterator, btrace_call_iterator): New.
12049 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12050 (struct btrace_target_info) <begin, end, level>
12051 <insn_history, call_history>: New.
12052 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12053 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12054 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12055 (btrace_call_number, btrace_call_begin, btrace_call_end)
12056 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12057 (btrace_find_function_by_number, btrace_set_insn_history)
12058 (btrace_set_call_history): New.
12059 * btrace.c (btrace_init_insn_iterator)
12060 (btrace_init_func_iterator, compute_itrace): Remove.
12061 (ftrace_print_function_name, ftrace_print_filename)
12062 (ftrace_skip_file): Change
12063 parameter to const.
12064 (ftrace_init_func): Remove.
12065 (ftrace_debug): Use new btrace_function fields.
12066 (ftrace_function_switched): Also consider gaining and
12067 losing symbol information).
12068 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12069 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12070 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12072 (ftrace_new_function): Move. Remove debug print.
12073 (ftrace_update_lines, ftrace_update_insns): New.
12074 (ftrace_update_function): Check for call, ret, and jump.
12075 (compute_ftrace): Renamed to ...
12076 (btrace_compute_ftrace): ...this. Rewritten to compute call
12078 (btrace_fetch, btrace_clear): Updated.
12079 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12080 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12081 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12082 (btrace_call_number, btrace_call_begin, btrace_call_end)
12083 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12084 (btrace_find_function_by_number, btrace_set_insn_history)
12085 (btrace_set_call_history): New.
12086 * record-btrace.c (require_btrace): Use new btrace thread
12088 (record_btrace_info, btrace_insn_history)
12089 (record_btrace_insn_history, record_btrace_insn_history_range):
12090 Use new btrace thread info fields and new iterator.
12091 (btrace_func_history_src_line): Rename to ...
12092 (btrace_call_history_src_line): ...this. Use new btrace
12093 thread info fields.
12094 (btrace_func_history): Rename to ...
12095 (btrace_call_history): ...this. Use new btrace thread info
12096 fields and new iterator.
12097 (record_btrace_call_history, record_btrace_call_history_range):
12098 Use new btrace thread info fields and new iterator.
12100 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12102 * frame.h (frame_id_build_unavailable_stack_special): New.
12103 * frame.c (frame_id_build_unavailable_stack_special): New.
12105 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12107 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12108 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12109 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12111 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12112 (i386_insn_is_jump, i386_jmp_p): New.
12113 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12114 insn_is_jump to gdbarch.
12115 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12116 * gdbarch.h: Regenerated.
12117 * gdbarch.c: Regenerated.
12118 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12119 (default_insn_is_jump): New.
12120 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12121 (default_insn_is_jump): New.
12123 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12125 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12127 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12128 (btrace_read_type) <btrace_read_new>: Change to ...
12129 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12131 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12133 * common/linux-btrace.c (linux_read_btrace): Free trace from
12134 previous iteration.
12136 2014-01-15 Doug Evans <dje@google.com>
12138 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12141 2014-01-15 Tom Tromey <tromey@redhat.com>
12143 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12144 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12145 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12146 (set_objfile_main_name): New function.
12147 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12148 language_of_main>: New fields.
12149 (set_objfile_main_name): Declare.
12150 * symtab.c (find_main_name): Loop over objfiles to find the main
12152 (set_main_name): Now static.
12153 (get_main_info): Add comment.
12154 * symtab.h (set_main_name): Don't declare.
12156 2014-01-15 Tom Tromey <tromey@redhat.com>
12158 * symtab.c (main_progspace_key): New global.
12159 (struct main_info): New.
12160 (name_of_main, language_of_main): Remove.
12161 (get_main_info, main_info_cleanup): New function.
12162 (set_main_name, main_name, main_language): Use get_main_info.
12163 (_initialize_symtab): Initialize main_progspace_key.
12165 2014-01-15 Tom Tromey <tromey@redhat.com>
12167 * dbxread.c (process_one_symbol): Update.
12168 * dwarf2read.c (read_partial_die): Update.
12169 * symfile.c (set_initial_language): Call main_language.
12170 * symtab.c (language_of_main): Now static.
12171 (set_main_name): Add 'lang' parameter.
12172 (find_main_name): Update.
12173 (main_language): New function.
12174 (symtab_observer_executable_changed): Update.
12175 * symtab.h (set_main_name): Update.
12176 (language_of_main): Remove.
12177 (main_language): Declare.
12179 2014-01-15 Tom Tromey <tromey@redhat.com>
12181 * symfile.c (init_entry_point_info): Use new "initialized" field.
12183 * objfiles.h (struct entry_point) <initialized>: New field.
12184 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12185 (struct objfile) <ei>: ...here. Remove.
12186 * objfiles.c (entry_point_address_query): Update.
12188 2014-01-15 Tom Tromey <tromey@redhat.com>
12190 * objfiles.c (entry_point_address_query): Relocate entry point
12192 (objfile_relocate1): Do not relocate entry point address.
12193 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12194 <the_bfd_section_index>: New field.
12195 * symfile.c (init_entry_point_info): Find the entry point's
12198 2014-01-15 Tom Tromey <tromey@redhat.com>
12200 * solib-frv.c (enable_break): Use entry_point_address_query.
12202 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12204 * NEWS: Add note on improved process record-replay on
12205 arm*-linux* targets.
12207 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12209 * arm-tdep.c (enum arm_record_result): New enum.
12210 (arm_record_unsupported_insn): New function.
12211 (arm_record_coproc_data_proc): Removed.
12212 (thumb2_record_ld_st_multiple): New function.
12213 (thumb2_record_ld_st_dual_ex_tbb): New function.
12214 (thumb2_record_data_proc_sreg_mimm): New function.
12215 (thumb2_record_ps_dest_generic): New function.
12216 (thumb2_record_branch_misc_cntrl): New function.
12217 (thumb2_record_str_single_data): New function.
12218 (thumb2_record_ld_mem_hints): New function.
12219 (thumb2_record_ld_word): New function.
12220 (thumb2_record_lmul_lmla_div): New function.
12221 (thumb2_record_decode_insn_handler): New function.
12222 (decode_insn): Add thumb32 instruction handlers.
12224 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12226 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12227 (struct arm_linux_record_tdep): Declare.
12228 (arm_canonicalize_syscall): New function.
12229 (arm_all_but_pc_registers_record): New function.
12230 (arm_linux_syscall_record): New function.
12231 (arm_linux_init_abi): Add syscall recording constructs.
12232 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12233 decoding. (arm_record_coproc_data_proc): Update arm syscall
12235 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12236 <arm_syscall_record>: New field.
12237 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12240 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12242 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12243 register for push instruction recording.
12245 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12247 * arm-tdep.c (thumb_record_misc): Update to correct logical
12248 error while recording ldm, ldmia and pop instructions.
12250 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12252 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12254 2014-01-15 Pedro Alves <palves@redhat.com>
12256 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12257 (go32_resume, go32_fetch_registers, store_register)
12258 (go32_store_registers, go32_prepare_to_store)
12259 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12260 (go32_create_inferior, go32_can_run, go32_terminal_init)
12261 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12264 2014-01-15 Tom Tromey <tromey@redhat.com>
12266 * target.h (async_callback_ftype): New typedef.
12267 (struct target_ops) <to_async>: Use it.
12269 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12271 * python/py-value.c (get_field_type): Remove unnecessary curly
12272 braces for single-statement if block.
12274 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12276 * python/py-type.c (convert_field): Add missing empty line
12277 after declarations.
12279 2014-01-14 Doug Evans <dje@google.com>
12281 * symfile.h (expand_symtabs_matching): Renamed from
12282 expand_partial_symbol_names. Update prototype.
12283 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12284 * symfile.c (expand_symtabs_matching): Renamed from
12285 expand_partial_symbol_names. New args file_matcher, kind.
12286 Rename arg fun to symbol_matcher.
12287 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12288 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12289 ada_expand_partial_symbol_name.
12290 (ada_make_symbol_completion_list): Update to call
12291 expand_symtabs_matching.
12292 (ada_add_global_exceptions): Call expand_symtabs_matching.
12293 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12294 call map_symbol_filenames.
12295 * symtab.c (sources_info): Update to call map_symbol_filenames.
12296 (search_symbols): Call expand_symtabs_matching.
12297 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12298 (default_make_symbol_completion_list_break_on): Update to call
12299 expand_symtabs_matching.
12300 (make_source_files_completion_list): Update to call
12301 map_symbol_filenames.
12303 2014-01-14 Doug Evans <dje@google.com>
12305 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12306 (expand_symtabs_symbol_matcher_ftype): New typedef.
12307 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12308 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12309 * symfile.c (expand_partial_symbol_names): Update to use
12310 expand_symtabs_symbol_matcher_ftype.
12311 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12312 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12313 Arg name_matcher renamed to symbol_matcher.
12314 * psymtab.c (recursively_search_psymtabs): Update to use
12315 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12317 (expand_symtabs_matching_via_partial): Update to use
12318 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12319 Arg name_matcher renamed to symbol_matcher.
12321 2014-01-14 Doug Evans <dje@google.com>
12323 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12324 (map_partial_symbol_filenames): Ditto.
12325 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12326 (map_partial_symbol_filenames): Ditto.
12327 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12328 (map_partial_symbol_filenames): Ditto.
12329 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12330 (map_partial_symbol_filenames): Ditto.
12331 * symtab.c: Delete #include "psymtab.h".
12333 2014-01-14 Pedro Alves <palves@redhat.com>
12334 Tom Tromey <tromey@redhat.com>
12336 * infrun.c (use_displaced_stepping): Use find_record_target
12337 instead of RECORD_IS_USED.
12338 (adjust_pc_after_break): Use record_full_is_used instead of
12340 * record-btrace.c (record_btrace_open): Call record_preopen
12341 instead of checking RECORD_IS_USED.
12342 * record-full.c (record_full_shortname)
12343 (record_full_core_shortname): New globals.
12344 (record_full_is_used): New function.
12345 (find_full_open): Call record_preopen instead of checking
12347 (init_record_full_ops): Set the target's shortname to
12348 record_full_shortname.
12349 (init_record_full_core_ops): Set the target's shortname to
12350 record_full_core_shortname.
12351 * record-full.h (record_full_is_used): Declare.
12352 * record.c (find_record_target): Make extern.
12353 (record_preopen): New function.
12354 * record.h (RECORD_IS_USED): Delete macro.
12355 (find_record_target, record_preopen): Declare functions.
12357 2014-01-14 Yao Qi <yao@codesourcery.com>
12359 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12360 'len''s type to ULONGEST.
12361 (core_xfer_shared_libraries_aix): Likewise.
12362 * gdbarch.c, gdbarch.h: Regenerated.
12363 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12364 Change type of 'len' to ULONGEST.
12365 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12366 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12368 2014-01-14 Yao Qi <yao@codesourcery.com>
12370 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12371 type of 'len' to ULONGEST.
12372 (linux_xfer_osdata_processgroups): Likewise.
12373 (linux_xfer_osdata_threads): Likewise.
12374 (linux_xfer_osdata_fds): Likewise.
12375 (linux_xfer_osdata_isockets): Likewise.
12376 (linux_xfer_osdata_shm): Likewise.
12377 (linux_xfer_osdata_sem): Likewise.
12378 (linux_xfer_osdata_msg): Likewise.
12379 (linux_common_xfer_osdata): Likewise.
12380 (struct osdata_type) <getter>: Likewise.
12381 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12384 2014-01-14 Yao Qi <yao@codesourcery.com>
12386 * target.h (target_xfer_partial_ftype): Update.
12387 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12389 * aix-thread.c (aix_thread_xfer_partial): Change type of
12390 argument 'len' to ULONGEST.
12391 * auxv.c (procfs_xfer_auxv): Likewise.
12392 (ld_so_xfer_auxv): Likewise.
12393 (memory_xfer_auxv): Likewise.
12394 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12395 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12396 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12397 * corelow.c (core_xfer_partial): Likewise.
12398 * ctf.c (ctf_xfer_partial): Likewise.
12399 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12401 (darwin_read_dyld_info): Likewise.
12402 (darwin_xfer_partial): Likewise.
12403 * exec.c (section_table_xfer_memory_partial): Likewise.
12404 (exec_xfer_partial): Likewise.
12405 * exec.h (section_table_xfer_memory_partial): Update
12407 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12408 instead of plongest.
12409 (gnu_xfer_partial): Likewise.
12410 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12411 (ia64_hpux_xfer_solib_got): Likewise.
12412 (ia64_hpux_xfer_partial): Likewise.
12413 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12414 * inf-ptrace.c (inf_ptrace_xfer_partial):
12415 * inf-ttrace.c (inf_ttrace_xfer_partial):
12416 * linux-nat.c (linux_xfer_siginfo): Likewise.
12417 (linux_nat_xfer_partial): Likewise.
12418 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12419 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12420 * monitor.c (monitor_xfer_memory): Likewise.
12421 (monitor_xfer_partial): Likewise.
12422 * procfs.c (procfs_xfer_partial): Likewise.
12423 * record-full.c (record_full_xfer_partial): Likewise.
12424 (record_full_core_xfer_partial): Likewise.
12425 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12426 instead of plongest.
12427 (gdbsim_xfer_partial): Likewise.
12428 * remote.c (remote_xfer_partial): Likewise.
12429 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12430 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12432 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12433 (rs6000_xfer_shared_libraries): Likewise.
12434 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12435 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12436 (sparc_xfer_partial): Likewise.
12437 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12438 (spu_xfer_partial): Likewise.
12439 * spu-multiarch.c (spu_xfer_partial): Likewise.
12440 * target.c (target_read_live_memory): Likewise.
12441 (memory_xfer_live_readonly_partial): Likewise.
12442 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12443 (target_xfer_partial, default_xfer_partial): Likewise.
12444 (current_xfer_partial): Likewise.
12445 * tracepoint.c (tfile_xfer_partial): Likewise.
12446 * windows-nat.c (windows_xfer_memory): Likewise. Call
12447 pulongest instead of plongest.
12448 (windows_xfer_partial): Likewise.
12449 (windows_xfer_shared_libraries): Likewise.
12451 2014-01-14 Yao Qi <yao@codesourcery.com>
12453 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12454 target_xfer_partial_ftype.
12456 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12460 * valops.c (value_struct_elt_bitpos): New function
12461 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12462 object to 'None' if the field name is an empty string ("").
12463 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12464 attribute to look for a field when 'name' is 'None'.
12465 (get_field_type): New function
12467 2014-01-13 Doug Evans <dje@google.com>
12470 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12471 (try_open_dwop_file): Ditto.
12472 * gdb_bfd.c: #include "vec.h".
12473 (bfdp): New typedef.
12474 (struct gdb_bfd_data): New member included_bfds.
12475 (gdb_bfd_unref): Unref all included bfds.
12476 (gdb_bfd_record_inclusion): New function.
12477 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12479 2014-01-13 Tom Tromey <tromey@redhat.com>
12481 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12483 2014-01-13 Tom Tromey <tromey@redhat.com>
12485 * defs.h (use_windows): Remove.
12486 * gdb.c (main): Update.
12487 * main.c (captured_main, gdb_main): Update.
12488 * main.h (struct captured_main_args) <use_windows>: Remove.
12489 * top.c (use_windows): Remove.
12491 2014-01-13 Tom Tromey <tromey@redhat.com>
12493 * defs.h (deprecated_flush_hook): Remove.
12495 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12498 * linux-thread-db.c (try_thread_db_load): Add parameter
12499 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12500 (try_thread_db_load_from_pdir_1): Move it there from here.
12501 (try_thread_db_load_from_sdir): Update caller.
12502 (try_thread_db_load_from_dir): Move it there from here.
12504 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12506 * regformats/regdat.sh: Always rewrite the register file.
12508 2014-01-13 Pedro Alves <palves@redhat.com>
12510 * Makefile.in (CHECK_HEADERS): New variable.
12511 (check-headers:): New rule.
12513 2014-01-13 Tom Tromey <tromey@redhat.com>
12515 * cli/cli-setshow.c (do_set_command): Update.
12516 * defs.h (deprecated_set_hook): Remove.
12517 * top.c (deprecated_set_hook): Remove.
12519 2014-01-13 Pedro Alves <palves@redhat.com>
12521 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12522 the tracepoint if the PC is a pseudo-register.
12524 2014-01-13 Tom Tromey <tromey@redhat.com>
12526 * defs.h (XCALLOC): Remove.
12527 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12528 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12529 * dwarf2loc.c (allocate_piece_closure): Likewise.
12530 * elfread.c (elf_symfile_segments): Likewise.
12531 (elf_symfile_segments): Likewise.
12532 * gdbtypes.c (copy_type_recursive): Likewise.
12533 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12534 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12535 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12537 * mt-tdep.c (mt_gdbarch_init): Likewise.
12538 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12540 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12541 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12542 * registry.c (registry_alloc_data): Likewise.
12543 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12544 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12545 * serial.c (serial_fdopen_ops): Likewise.
12546 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12548 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12549 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12552 2014-01-13 Tom Tromey <tromey@redhat.com>
12554 * defs.h (XMALLOC): Remove.
12555 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12556 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12557 * cli-out.c (struct ui_out *): Likewise.
12558 * cli/cli-dump.c (add_dump_command): Likewise.
12559 (add_dump_command): Likewise.
12560 * complaints.c (get_complaints): Likewise.
12561 (find_complaint): Likewise.
12562 * dwarf2-frame.c (execute_cfa_program): Likewise.
12563 * dwarf2read.c (abbrev_table_read_table): Likewise.
12564 * gdbarch.sh: Likewise.
12565 * gdbarch.c: Rebuild.
12566 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12567 * interps.c (interp_new): Likewise.
12568 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12569 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12570 * mi/mi-console.c (mi_console_file_new): Likewise.
12571 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12572 * mi/mi-out.c (mi_out_new): Likewise.
12573 * mi/mi-parse.c (mi_parse): Likewise.
12574 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12575 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12576 * observer.c (xalloc_observer_list_node): Likewise.
12577 * regcache.c (regcache_xmalloc_1): Likewise.
12578 * reggroups.c (reggroup_new): Likewise.
12579 (_initialize_reggroup): Likewise.
12580 * registry.c (register_data_with_cleanup): Likewise.
12581 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12582 * ser-base.c (serial_ttystate): Likewise.
12583 * ser-mingw.c (make_pipe_state): Likewise.
12584 * ser-pipe.c (pipe_open): Likewise.
12585 * serial.c (serial_open): Likewise.
12586 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12587 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12588 (tui_alloc_win_info): Likewise.
12589 (tui_add_content_elements): Likewise.
12590 * tui/tui-file.c (tui_file_new): Likewise.
12591 * tui/tui-out.c (tui_out_new): Likewise.
12592 * ui-file.c (mem_file_new): Likewise.
12593 * ui-out.c (push_level): Likewise.
12594 (make_cleanup_ui_out_end): Likewise.
12595 (append_header_to_list): Likewise.
12596 (ui_out_new): Likewise.
12597 * user-regs.c (user_reg_add_builtin): Likewise.
12599 2014-01-13 Tom Tromey <tromey@redhat.com>
12601 * defs.h (XZALLOC): Remove.
12602 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12603 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12604 (get_ada_tasks_inferior_data): Likewise.
12605 * auto-load.c (get_auto_load_pspace_data): Likewise.
12606 * auxv.c (get_auxv_inferior_data): Likewise.
12607 * bfd-target.c (target_bfd_reopen): Likewise.
12608 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12609 (deprecated_insert_raw_breakpoint): Likewise.
12610 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12611 * corelow.c (core_open): Likewise.
12612 * darwin-nat.c (darwin_check_new_threads): Likewise.
12613 (darwin_attach_pid): Likewise.
12614 * dummy-frame.c (dummy_frame_push): Likewise.
12615 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12616 * dwarf2loc.c (allocate_piece_closure): Likewise.
12617 * elfread.c (elf_symfile_segments): Likewise.
12618 * eval.c (ptrmath_type_p): Likewise.
12619 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12620 * gdbtypes.c (alloc_type_arch): Likewise.
12621 (alloc_type_instance): Likewise.
12622 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12623 * inf-child.c (inf_child_can_use_agent): Likewise.
12624 * inflow.c (get_inflow_inferior_data): Likewise.
12625 * infrun.c (save_infcall_suspend_state): Likewise.
12626 * jit.c (jit_reader_load): Likewise.
12627 (get_jit_objfile_data): Likewise.
12628 (get_jit_program_space_data): Likewise.
12629 (jit_object_open_impl): Likewise.
12630 (jit_symtab_open_impl): Likewise.
12631 (jit_block_open_impl): Likewise.
12632 (jit_frame_sniffer): Likewise.
12633 * linux-fork.c (add_fork): Likewise.
12634 * maint.c (make_command_stats_cleanup): Likewise.
12635 * objfiles.c (get_objfile_pspace_data): Likewise.
12636 * opencl-lang.c (struct lval_closure): Likewise.
12637 * osdata.c (osdata_start_osdata): Likewise.
12638 * progspace.c (new_address_space): Likewise.
12639 (add_program_space): Likewise.
12640 * remote-sim.c (get_sim_inferior_data): Likewise.
12641 * sh-tdep.c (sh_gdbarch_init): Likewise.
12642 * skip.c (Ignore): Likewise.
12643 (skip_delete_command): Likewise.
12644 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12645 (library_list_start_library): Likewise.
12646 (solib_aix_current_sos): Likewise.
12647 * solib-darwin.c (get_darwin_info): Likewise.
12648 (darwin_current_sos): Likewise.
12649 * solib-dsbt.c (get_dsbt_info): Likewise.
12650 * solib-ia64-hpux.c (new_so_list): Likewise.
12651 (ia64_hpux_get_solib_linkage_addr): Likewise.
12652 * solib-spu.c (append_ocl_sos): Likewise.
12653 (spu_current_sos): Likewise.
12654 * solib-svr4.c (get_svr4_info): Likewise.
12655 (svr4_keep_data_in_core): Likewise.
12656 (library_list_start_library): Likewise.
12657 (svr4_default_sos): Likewise.
12658 (svr4_read_so_list): Likewise.
12659 * solib-target.c (library_list_start_library): Likewise.
12660 (solib_target_current_sos): Likewise.
12661 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12662 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12663 * symfile.c (default_symfile_segments): Likewise.
12664 * target-descriptions.c (tdesc_data_init): Likewise.
12665 (tdesc_create_reg): Likewise.
12666 (struct tdesc_type *): Likewise.
12667 (tdesc_create_vector): Likewise.
12668 (tdesc_set_struct_size): Likewise.
12669 (struct tdesc_type *): Likewise.
12670 (tdesc_free_feature): Likewise.
12671 (tdesc_create_feature): Likewise.
12672 * windows-nat.c (windows_add_thread): Likewise.
12673 (windows_make_so): Likewise.
12674 * xml-support.c (gdb_xml_body_text): Likewise.
12675 (gdb_xml_create_parser_and_cleanup): Likewise.
12676 (xml_process_xincludes): Likewise.
12677 * xml-syscall.c (allocate_syscalls_info): Likewise.
12678 (syscall_create_syscall_desc): Likewise.
12680 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12682 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12683 function, with code from i386_stap_parse_special_token.
12684 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12685 (i386_stap_parse_special_token): Move code to the two functions
12686 above; simplify it.
12688 2014-01-09 Pedro Alves <palves@redhat.com>
12689 Hui Zhu <hui@codesourcery.com>
12692 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12693 bp_err_string. Don't mark the location shlib_disabled if the
12694 error thrown wasn't a generic or memory error. Catch errors
12695 thrown while inserting breakpoints in overlayed code. Output
12696 error message of software breakpoints.
12697 * remote.c (remote_insert_breakpoint): If this breakpoint has
12698 target-side commands but this stub doesn't support Z0 packets,
12699 throw NOT_SUPPORTED_ERROR error.
12700 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12701 * target.h (target_insert_breakpoint): Extend comment.
12702 (target_insert_hw_breakpoint): Add comment.
12704 2014-01-08 Pedro Alves <palves@redhat.com>
12706 * remote.c (remote_add_thread): Add threads silently if starting
12708 (remote_notice_new_inferior): If in all-stop, and starting up,
12709 don't call notice_new_inferior.
12710 (get_current_thread): New function, factored out from ...
12711 (add_current_inferior_and_thread): ... this. Adjust.
12712 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12713 found any thread, then select the remote's current thread as GDB's
12714 current thread too.
12716 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12718 * NEWS: Create a new section for the next release branch.
12719 Rename the section of the current branch, now that it has
12722 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12724 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12725 * version.in: Bump version to 7.7.50.DATE-cvs.
12727 2014-01-08 Yao Qi <yao@codesourcery.com>
12729 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12730 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12731 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12733 2014-01-08 Yao Qi <yao@codesourcery.com>
12735 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12736 return value of bfd_get_filename to symbol_file_add_from_bfd.
12738 2014-01-08 Pierre Muller <muller@sourceware.org>
12741 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12742 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12743 to prim_record_mininal_symbol_and_info.
12744 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12745 in call to prim_record_minimal_symbol_and_info.
12746 (read_pe_exported_syms): Set index field of section_data.
12748 2014-01-07 Andrew Pinski <apinski@cavium.com>
12750 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12751 * features/aarch64.c: Regenerate.
12753 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12755 * target.c (return_null): Define.
12756 (update_current_target): Use it instead of return_zero for
12757 functions that return a pointer.
12759 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12761 * source.c (add_path): Fix check for duplicated paths in the previously
12764 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12766 * ada-lang.c: Remove duplicated include statements.
12767 * alphabsd-nat.c: Ditto.
12768 * amd64-darwin-tdep.c: Ditto.
12769 * amd64fbsd-nat.c: Ditto.
12770 * auto-load.c: Ditto.
12772 * breakpoint.c: Ditto.
12773 * dbxread.c: Ditto.
12774 * fork-child.c: Ditto.
12775 * gdb_usleep.c: Ditto.
12776 * i386-darwin-tdep.c: Ditto.
12777 * i386fbsd-nat.c: Ditto.
12779 * inferior.c: Ditto.
12780 * jv-lang.c: Ditto.
12781 * linux-nat.c: Ditto.
12782 * linux-tdep.c: Ditto.
12783 * m68kbsd-nat.c: Ditto.
12784 * m68klinux-nat.c: Ditto.
12785 * microblaze-tdep.c: Ditto.
12786 * mips-linux-tdep.c: Ditto.
12787 * mn10300-tdep.c: Ditto.
12788 * nto-tdep.c: Ditto.
12789 * opencl-lang.c: Ditto.
12791 * printcmd.c: Ditto.
12792 * regcache.c: Ditto.
12793 * remote-m32r-sdi.c: Ditto.
12795 * symfile.c: Ditto.
12797 * tilegx-linux-nat.c: Ditto.
12798 * tilegx-tdep.c: Ditto.
12799 * tracepoint.c: Ditto.
12801 * vaxbsd-nat.c: Ditto.
12802 * windows-nat.c: Ditto.
12803 * xtensa-tdep.c: Ditto.
12805 2014-01-07 Yao Qi <yao@codesourcery.com>
12807 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12809 2014-01-07 Yao Qi <yao@codesourcery.com>
12810 Joel Brobecker <brobecker@adacore.com>
12812 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12813 (pdc_write_regs): Likewise.
12814 (fetch_regs_kernel_thread): Likewise.
12815 (store_regs_kernel_thread): Likewise.
12817 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12819 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12820 tagged type objects to their actual type.
12822 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12824 * ada-valprint.c (print_field_values): Add "language" parameter.
12825 Update calls to print_field_values and print_variant_part.
12826 Pass new parameter "language" in call to val_print instead
12827 of "current_language". Replace call to ada_val_print by call
12829 (print_variant_part): Add "language" parameter.
12830 (ada_val_print_struct_union): Update call to print_field_values.
12832 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12834 * ada-valprint.c (ui_memcpy): Delete.
12835 (ada_print_floating): Update documentation. Add empty line
12836 between between function documentation and implementation.
12837 Delete variable "buffer". Use ui_file_xstrdup in place of
12838 ui_file_put. Minor adjustments following this change.
12840 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12842 * ada-valprint.c (ada_val_print_string): New function,
12843 extracted from ada_val_print_array.
12844 (ada_val_print_array): Replace extracted code by call
12845 to ada_val_print_string followed by a return. Move
12846 "else" branch to the function's top block.
12848 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12850 * ada-valprint.c (ada_val_print_array): Move implementation
12851 down. Rename parameter "offset" and "val" into "offset_aligned"
12852 and "original_value" respectively. Add parameter "offset".
12854 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12856 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12857 re-organizing the code. Change the "???" message printed
12858 when target type is a TYPE_CODE_UNDEF into
12859 "<ref to undefined type>".
12861 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12863 * ada-valprint.c (print_record): Delete, implementation inlined...
12864 (ada_val_print_struct_union): ... here. Remove call to
12865 ada_check_typedef in inlined implementation.
12867 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12869 * ada-valprint.c (ada_val_print_gnat_array): New function,
12870 extracted from ada_val_print_1;
12871 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12872 (ada_val_print_flt, ada_val_print_struct_union)
12873 (ada_val_print_ref): Likewise.
12874 (ada_val_print_1): Delete variables i and elttype.
12875 Replace extracted-out code by call to corresponding
12878 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12880 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12882 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12884 * ada-valprint.c (ada_val_print_1): Replace calls to
12885 ada_val_print_1 by calls to val_print.
12887 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12889 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12890 Update calls to self accordingly. Replace calls to c_val_print
12891 by calls to val_print.
12893 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12895 * ada-valprint.c (print_record): Delete declaration.
12896 (adjust_type_signedness, ada_val_print_1): Likewise.
12897 (ada_val_print): Move function implementation down.
12898 (print_variant_part, print_field_values, print_record):
12899 Move function implementation up.
12901 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12903 * python/py-type.c (typy_get_name): New function.
12904 (type_object_getset): Add entry for attribute "name".
12905 * NEWS: Add entry mentioning this new attribute.
12907 2014-01-07 Yao Qi <yao@codesourcery.com>
12909 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12912 2014-01-07 Yao Qi <yao@codesourcery.com>
12914 * gnu-nat.c (info_port_rights): Add qualifier const to
12917 2014-01-07 Yao Qi <yao@codesourcery.com>
12919 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12921 2014-01-07 Yao Qi <yao@codesourcery.com>
12923 * gnu-nat.c (make_inf) Update declaration.
12924 (make_inf): Make it static.
12925 (inf_set_traced): Likewise.
12926 (inf_port_to_thread, inf_task_died_status): Likewise.
12928 2014-01-07 Yao Qi <yao@codesourcery.com>
12930 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12932 2014-01-07 Yao Qi <yao@codesourcery.com>
12934 * gnu-nat.c (_initialize_gnu_nat): Declare.
12936 2014-01-07 Yao Qi <yao@codesourcery.com>
12938 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12940 (struct gdbarch_info) <byte_order>: Change type to
12942 <byte_order_for_code>: Likewise.
12943 * gdbarch.c, gdbarch.h: Regenerated.
12945 2014-01-06 Sasha Smundak <asmundak@google.com>
12947 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12949 2014-01-06 Tom Tromey <tromey@redhat.com>
12951 * doublest.c (convert_doublest_to_floatformat): Use const, not
12953 * somread.c (som_symtab_read): Likewise.
12955 2014-01-07 Hui Zhu <hui@codesourcery.com>
12957 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12958 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12959 (gdb_bfd_fopen): Ditto.
12960 (gdb_bfd_openr): Ditto.
12961 (gdb_bfd_openw): Ditto.
12962 (gdb_bfd_openr_iovec): Ditto.
12963 (gdb_bfd_fdopenr): Ditto.
12964 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12965 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12967 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12969 * symfile-mem.c (symbol_file_add_from_memory): Removed
12970 gdb_bfd_stash_filename.
12972 2014-01-03 Doug Evans <dje@google.com>
12974 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12977 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12979 Update year range in copyright notice of all files.
12981 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12983 * top.c (print_gdb_version): Set copyright year to 2014.
12985 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12987 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12989 For older changes see ChangeLog-2013.
12995 version-control: never