1 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
4 for asimd, vfp and coprocessor insns.
5 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
7 (thumb2_record_coproc_insn): New function.
8 (thumb2_record_decode_insn_handler): Update coprocessor insns record
10 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
13 2014-09-13 Doug Evans <xdje42@gmail.com>
15 * NEWS: Mention new "queue-signal" command.
16 * infcmd.c (queue_signal_command): New function.
17 (_initialize_infcmd): Add new queue-signal command.
19 2014-09-13 Doug Evans <xdje42@gmail.com>
21 * linux-nat.c (wait_lwp): Add debugging printf.
22 (linux_nat_wait_1): Ditto.
24 2014-09-12 Pedro Alves <palves@redhat.com>
26 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
27 (create_and_insert_solib_event_breakpoint): New functions.
28 * breakpoint.h (create_and_insert_solib_event_breakpoint)
29 (remove_solib_event_breakpoints_at_next_stop): New declarations.
30 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
31 (remove_dbx_link_breakpoint): Delete function.
32 (insert_dbx_link_bpt_in_file): Use
33 create_and_insert_solib_event_breakpoint instead of
34 deprecated_insert_raw_breakpoint.
35 (procfs_wait): Don't check whether we hit __dbx_link here.
36 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
38 * solib-irix.c (base_breakpoint): Delete global.
39 (disable_break): Delete function.
40 (enable_break): Use create_solib_event_breakpoint
41 instead of deprecated_insert_raw_breakpoint.
42 (irix_solib_handle_event): New function.
43 (irix_solib_create_inferior_hook): Don't run the target or disable
44 the mapping-complete breakpoint here.
45 (_initialize_irix_solib): Install irix_solib_handle_event as
46 so_ops->handle_event hook.
48 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
49 Ulrich Weigand <uweigand@de.ibm.com>
52 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
53 instead of read_memory_unsigned_integer.
55 2014-09-12 Gary Benson <gbenson@redhat.com>
57 * nat/linux-waitpid.c: Include common-defs.h.
58 [GDBSERVER]: Add FIXME comment.
59 [!GDBSERVER]: Don't include defs.h or signal.h.
60 (linux_debug) [!GDBSERVER]: Remove empty block.
62 2014-09-12 Gary Benson <gbenson@redhat.com>
64 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
65 Don't include defs.h or server.h.
67 2014-09-12 Gary Benson <gbenson@redhat.com>
69 * nat/linux-btrace.c: Include common-defs.h.
70 Don't include defs.h, server.h or gdbthread.h.
71 * nat/linux-btrace.h (struct target_ops): New forward declaration.
73 2014-09-12 Gary Benson <gbenson@redhat.com>
75 * common/agent.c: Include common-defs.h.
76 Don't include defs.h or server.h.
77 * common/buffer.c: Likewise.
78 * common/common-debug.c: Likewise.
79 * common/common-utils.c: Likewise.
80 * common/errors.c: Likewise.
81 * common/filestuff.c: Likewise.
82 * common/format.c: Likewise.
83 * common/gdb_vecs.c: Likewise.
84 * common/print-utils.c: Likewise.
85 * common/ptid.c: Likewise.
86 * common/rsp-low.c: Likewise.
87 * common/signals.c: Likewise.
88 * common/vec.c: Likewise.
89 * common/xml-utils.c: Likewise.
90 * nat/linux-osdata.c: Likewise.
91 * nat/linux-procfs.c: Likewise.
92 * nat/linux-ptrace.c: Likewise.
93 * nat/mips-linux-watch.c: Likewise.
94 * target/waitstatus.c: Likewise.
96 2014-09-12 Tom Tromey <tromey@redhat.com>
97 Gary Benson <gbenson@redhat.com>
99 * common/common-regcache.h: New file.
100 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
101 * regcache.h: Include common-regcache.h.
102 (regcache_read_pc): Don't declare.
103 * regcache.c (get_thread_regcache_for_ptid): New function.
104 * nat/linux-btrace.c: Don't include regcache.h.
105 Include common-regcache.h.
106 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
108 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
110 * regcache.h (struct regset): Declare.
112 2014-09-11 Pedro Alves <palves@redhat.com>
115 * main.c: Include "infrun.h".
116 (catch_command_errors, catch_command_errors_const): Wait for the
117 foreground command to complete.
118 * top.c (maybe_wait_sync_command_done): New function, factored out
120 (maybe_wait_sync_command_done): ... here.
121 * top.h (maybe_wait_sync_command_done): New declaration.
123 2014-09-11 Tom Tromey <tromey@redhat.com>
124 Gary Benson <gbenson@redhat.com>
126 * common/symbol.h: New file.
127 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
128 * minsyms.c (find_minimal_symbol_address): New function.
129 * common/agent.c: Include common/symbol.h.
130 [!GDBSERVER]: Don't include objfiles.h.
131 (agent_look_up_symbols): Use find_minimal_symbol_address.
133 2014-09-11 Gary Benson <gbenson@redhat.com>
135 * target/target.h (target_stop_ptid, target_continue_ptid):
137 * target.c (target_stop_ptid, target_continue_ptid): New
139 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
140 (agent_run_command): Always use target_stop_ptid and
141 target_continue_ptid.
143 2014-09-11 Tom Tromey <tromey@redhat.com>
144 Gary Benson <gbenson@redhat.com>
146 * target/target.h: New file.
147 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
148 * target.h: Include target/target.h.
149 (target_read_memory, target_write_memory): Don't declare.
150 * target.c (target_read_uint32): New function.
151 * common/agent.c: Include target/target.h.
152 [!GDBSERVER]: Don't include target.h.
153 (helper_thread_id): Type changed to uint32_t.
154 (agent_get_helper_thread_id): Use target_read_uint32.
155 (agent_run_command): Always use target_read_memory and
157 (agent_capability): Type changed to uint32_t.
158 (agent_capability_check): Use target_read_uint32.
160 2014-09-11 Gary Benson <gbenson@redhat.com>
162 * common/common-debug.h (show_debug_regs): Declare.
163 * common/common-debug.c (show_debug_regs): Define.
164 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
165 all uses with show_debug_regs. Replace all uses that considered
166 debug_hw_points as a multi-value integer with straight boolean
168 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
169 with show_debug_regs.
170 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
171 all uses with show_debug_regs.
172 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
173 uses with show_debug_regs.
175 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
177 * findvar.c (address_from_register): Handle targets requiring
178 a special conversion routine even for plain pointer types.
180 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
182 * rs6000-nat.c (exec_one_dummy_insn): Remove.
183 (store_register): Do not call exec_one_dummy_insn.
185 2014-09-10 Joel Brobecker <brobecker@adacore.com>
187 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
188 dereference it first. Use value_enclosing_type instead of
190 (ada_array_length): Likewise.
192 2014-09-10 Joel Brobecker <brobecker@adacore.com>
194 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
195 Adjust function implementation and documentation accordingly.
196 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
197 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
198 Update call to ada_value_ptr_subscript.
200 2014-09-10 Joel Brobecker <brobecker@adacore.com>
202 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
203 instead of VAL's type.
205 2014-09-10 Joel Brobecker <brobecker@adacore.com>
207 * amd64-linux-nat.c: Add <sys/uio.h> #include.
209 2014-09-09 Doug Evans <xdje42@gmail.com>
212 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
213 last parameter to pkg-config, not first.
214 * configure.ac: Pass --with-guile provided pkg-config path to
215 GDB_GUILE_PROGRAM_NAMES.
216 * configure: Regenerate.
218 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
220 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
223 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
225 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
226 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
227 the list of sections determining GDB_OSABI_IRIX.
229 2014-09-09 James Hogan <james.hogan@imgtec.com>
231 * MAINTAINERS (Write After Approval): Add "James Hogan".
233 2014-09-09 James Hogan <james.hogan@imgtec.com>
235 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
237 2014-09-09 Joel Brobecker <brobecker@adacore.com>
239 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
241 2014-09-08 Doug Evans <xdje42@gmail.com>
244 * guile.c: #include <signal.h>.
245 (_initialize_guile): Block SIGCHLD while initializing Guile.
247 Replaces the following, which is reverted.
249 2014-07-26 Doug Evans <xdje42@gmail.com>
252 * configure.ac: Add check for header gc/gc.h.
253 Add check for function setenv.
254 * configure: Regenerate.
255 * config.in: Regenerate.
256 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
258 2014-09-08 Doug Evans <xdje42@gmail.com>
260 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
261 with named constant. Fix style of pointer comparison.
262 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
264 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
267 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
268 decide whether we display the command on "show user".
269 * cli/cli-script.c (show_user_1): Only verify cmdlines after
270 printing command name.
271 * cli/cli-decode.h (cli_user_command_p): Declare new function.
272 * cli/cli-decode.c (cli_user_command_p): Create helper function
273 to verify whether cmd_list_element is a user-defined command.
275 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
278 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
279 Fix goto out of TRY_CATCH.
281 2014-09-06 Doug Evans <xdje42@gmail.com>
282 Tom Tromey <tromey@redhat.com>
285 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
286 $_any_caller_matches.
287 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
288 * python/lib/gdb/function/caller_is.py: New file.
290 2014-09-06 Doug Evans <xdje42@gmail.com>
292 * infcmd.c (program_info): Fix typo.
294 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
297 * stap-probe.c (stap_parse_single_operand): Delete unused variable
298 'number'. New variable 'has_digit'. Rewrite code to deal with
299 subexpressions on SDT probes.
301 2014-09-04 Pedro Alves <palves@redhat.com>
303 * c-exp.y (parse_number): Skip handling base-switching prefixes if
304 the input is only one character long.
306 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
309 * f-valprint.c (f_val_print): Specify the correct print option to
310 use when printing integer values.
312 2014-09-04 Gary Benson <gbenson@redhat.com>
314 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
315 Remove code to cope with LWPs wrapped as PIDs.
316 Add assertions to ensure no wrapped LWPs are passed.
318 2014-09-04 Pedro Alves <palves@redhat.com>
320 * value.c (value_ranges_copy_adjusted): New function, factored out
322 (value_contents_copy_raw): ... here.
323 (unpack_value_bits_as_long_1): Rename back to ...
324 (unpack_bits_as_long): ... this. Remove 'original_value' and
325 'result' parameters. Change return type to LONGEST.
326 (unpack_value_bits_as_long): Delete.
327 (unpack_value_field_as_long_1): Delete.
328 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
329 (unpack_value_bitfield): New function.
330 (value_field_bitfield): Reimplement using unpack_value_bitfield.
331 (value_fetch_lazy): Use unpack_value_bitfield.
332 * value.h (unpack_value_bits_as_long): Delete declaration.
334 2014-09-03 Sasha Smundak <asmundak@google.com>
336 * python/py-frame.c (frapy_read_register): New function.
338 2014-09-03 James Hogan <james.hogan@imgtec.com>
340 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
341 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
343 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
346 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
348 (add_cmd): Set "completer_handle_brkchars" to NULL.
349 * cli/cli-decode.h (struct cmd_list_element)
350 <completer_handle_brkchars>: New field.
351 * command.h (completer_ftype_void): New typedef.
352 (set_cmd_completer_handle_brkchars): New prototype.
353 * completer.c (set_gdb_completion_word_break_characters): New
355 (complete_line_internal): Call "completer_handle_brkchars"
356 callback from command.
357 * completer.h: Include "command.h".
358 (set_gdb_completion_word_break_characters): New prototype.
359 * python/py-cmd.c (cmdpy_completer_helper): New function.
360 (cmdpy_completer_handle_brkchars): New function.
361 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
362 (cmdpy_init): Set completer_handle_brkchars to
363 cmdpy_completer_handle_brkchars.
365 2014-09-03 Gary Benson <gbenson@redhat.com>
367 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
368 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
369 Loop conditions changed to equivalent form.
370 (struct x86_debug_reg_state): Updated dr_ref_count comment.
371 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
372 ALL_DEBUG_ADDRESS_REGISTERS.
374 2014-09-03 Joel Brobecker <brobecker@adacore.com>
376 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
379 2014-09-02 Doug Evans <dje@google.com>
381 * typeprint.c (find_global_typedef): Fix comment.
383 2014-09-02 Gary Benson <gbenson@redhat.com>
385 * i386-nat.h: Renamed as...
386 * x86-nat.h: New file. All type, function and variable name
387 prefixes changed from "i386_" to "x86_". All references updated.
388 * i386-nat.c: Renamed as...
389 * x86-nat.c: New file. All type, function and variable name
390 prefixes changed from "i386_" to "x86_". All references updated.
391 * common/i386-xstate.h: Renamed as...
392 * common/x86-xstate.h: New file. All type, function and variable
393 name prefixes changed from "i386_" to "x86_". All references
395 * nat/i386-cpuid.h: Renamed as...
396 * nat/x86-cpuid.h: New file. All type, function and variable name
397 prefixes changed from "i386_" to "x86_". All references updated.
398 * nat/i386-gcc-cpuid.h: Renamed as...
399 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
400 name prefixes changed from "i386_" to "x86_". All references
402 * nat/i386-dregs.h: Renamed as...
403 * nat/x86-dregs.h: New file. All type, function and variable name
404 prefixes changed from "i386_" to "x86_". All references updated.
405 * nat/i386-dregs.c: Renamed as...
406 * nat/x86-dregs.c: New file. All type, function and variable name
407 prefixes changed from "i386_" to "x86_". All references updated.
409 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
411 * varobj.c (_initialize_varobj): Move to the end of file.
413 2014-08-29 Gary Benson <gbenson@redhat.com>
415 * common/common-exceptions.h: New file.
416 * common/common-exceptions.c: Likewise.
417 * Makefile.in (SFILES): Add common/common-exceptions.c.
418 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
419 (COMMON_OBS): Add common-exceptions.o.
420 (common-exceptions.o): New rule.
421 * exceptions.h (common-exceptions.h): Include.
422 (gdb_setjmp.h): Do not include.
423 (return_reason): Moved to common-exceptions.h.
424 (enum return_reason): Likewise.
425 (RETURN_MASK): Likewise.
426 (typedef return_mask): Likewise.
427 (enum errors): Likewise.
428 (struct gdb_exception): Likewise.
429 (exceptions_state_mc_init): Likewise.
430 (exceptions_state_mc_action_iter): Likewise.
431 (exceptions_state_mc_action_iter_1): Likewise.
432 (TRY_CATCH): Likewise.
433 (throw_exception): Likewise.
434 (throw_verror): Likewise.
435 (throw_vquit): Likewise.
436 (throw_error): Likewise.
437 (throw_quit): Likewise.
438 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
439 (enum catcher_action): Likewise.
440 (struct catcher): Likewise.
441 (current_catcher): Likewise.
442 (catcher_list_size): Likewise.
443 (exceptions_state_mc_init): Likewise.
444 (catcher_pop): Likewise.
445 (exceptions_state_mc): Likewise.
446 (exceptions_state_mc_action_iter): Likewise.
447 (exceptions_state_mc_action_iter_1): Likewise.
448 (throw_exception): Likewise.
449 (exception_messages): Likewise.
450 (exception_messages_size): Likewise.
451 (throw_it): Likewise.
452 (throw_verror): Likewise.
453 (throw_vquit): Likewise.
454 (throw_error): Likewise.
455 (throw_quit): Likewise.
456 (prepare_to_throw_exception): New function.
458 2014-08-29 Gary Benson <gbenson@redhat.com>
460 * common/gdb_setjmp.h: New file.
461 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
462 * configure.ac: Move sigsetjmp check...
463 * common/common.m4: ...here.
464 * configure: Regenerate.
465 * cp-support.c (SIGJMP_BUF): Delete.
466 (SIGSETJMP): Likewise.
467 (SIGLONGJMP): Likewise.
468 * exceptions.h (gdb_setjmp.h): Include.
469 (setjmp.h): Do not include.
470 (EXCEPTIONS_SIGJMP_BUF): Delete.
471 (EXCEPTIONS_SIGSETJMP): Likewise.
472 (EXCEPTIONS_SIGLONGJMP): Likewise.
473 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
475 * exceptions.c: Likewise.
477 2014-08-29 Gary Benson <gbenson@redhat.com>
479 * cleanups.h: Moved to...
480 * common/cleanups.h: New file.
481 * cleanups.c: Moved to...
482 * common/cleanups.c: New file. Include common-defs.h and
483 cleanups.h. Do not include defs.h.
484 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
485 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
486 (cleanups.o): New rule.
488 2014-08-29 Gary Benson <gbenson@redhat.com>
490 * common/errors.h (internal_warning): New declaration.
491 (internal_vwarning): Likewise.
492 * common/errors.c (internal_warning): New function.
493 * utils.h (internal_warning): Don't declare.
494 (internal_vwarning): Likewise.
495 * utils.c (internal_warning): Removed.
497 2014-08-29 Gary Benson <gbenson@redhat.com>
499 * main.c (captured_main): Use warning during startup.
500 Prefix startup warning messages with command name.
502 2014-08-29 Gary Benson <gbenson@redhat.com>
504 * main.c (captured_main): Handle usage errors with error.
506 2014-08-29 Gary Benson <gbenson@redhat.com>
508 * go32-nat.c (go32_create_inferior): Replace a fprintf/
509 exit pair with a call to error. Wrap the message with _().
511 2014-08-29 Gary Benson <gbenson@redhat.com>
513 * main.c (captured_main): Replace a fprintf/exit
514 pair with a call to error. Wrap the message with _().
516 2014-08-29 Gary Benson <gbenson@redhat.com>
518 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
519 pairs with calls to error. Wrap the message with _().
521 2014-08-29 Gary Benson <gbenson@redhat.com>
523 * utils.c (vwarning): Protect calls to target_terminal_ours
526 2014-08-29 Gary Benson <gbenson@redhat.com>
528 * exceptions.c (print_flush): Protect calls to
529 target_terminal_ours and wrap_here.
531 2014-08-29 Gary Benson <gbenson@redhat.com>
533 * utils.h (filtered_printing_initialized): New declaration.
534 * utils.c (abort_with_message): New function.
535 (internal_vproblem): Use abort_with_message for first level
536 recursive internal problems, and if gdb_stderr is not set up.
537 Protect calls to target_terminal_ours, begin_line and query.
539 2014-08-28 Doug Evans <dje@google.com>
541 * symtab.c (in_prologue): Move definition to better spot.
542 (skip_prologue_using_sal): Ditto.
544 2014-08-28 Doug Evans <dje@google.com>
546 * symtab.c (find_function_start_sal): Move definition to better spot.
548 2014-08-28 Yao Qi <yao@codesourcery.com>
550 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
551 found_stack_adjust in forward scan. Remove condition check
552 on found_stack_adjust which is always true. Indent the code.
554 2014-08-28 Yao Qi <yao@codesourcery.com>
556 * dwarf2read.c (dwarf_decode_lines): Update declaration.
557 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
558 (dwarf_decode_lines): Remove argument
559 want_line_info. Remove condition check on want_line_info.
562 2014-08-27 Doug Evans <dje@google.com>
564 * dwarf2read.c (dwarf_record_line): Fix typo.
566 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
568 * target.h (struct target_ops::to_terminal_save_ours): Remove
570 (target_terminal_save_ours): Remove macro.
571 * target-delegates.c: Regenerate.
572 * inf-child.c (inf_child_target): Don't set the nonexistent
573 field to_terminal_save_ours.
574 * inferior.h (child_terminal_save_ours): Remove declaration.
575 * terminal.h (gdb_save_tty_state): New declaration.
576 * inflow.c (child_terminal_save_ours): Rename to ...
577 (gdb_save_tty_state): ... this.
578 * tui/tui.c: Include terminal.h.
579 (tui_enable): Use gdb_save_tty_state instead of
580 target_terminal_save_ours.
581 (tui_disable): Likewise.
583 2014-08-25 Doug Evans <dje@google.com>
585 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
586 Pass NULL instead of 0 for context pointer.
588 2014-08-25 Yao Qi <yao@codesourcery.com>
590 * dwarf2read.c: Fix grammatical error.
592 2014-08-24 Yao Qi <yao@codesourcery.com>
594 * dwarf2read.c (scan_partial_symbols): Update comments.
595 Rename argument 'need_pc' with 'set_addrmap'.
596 (add_partial_namespace): Rename argument 'need_pc' with
598 (add_partial_module): Likewise.
599 (add_partial_subprogram): Likewise. Update comments.
600 (dwarf2_name): Fix typo.
602 2014-08-22 Doug Evans <dje@google.com>
605 * dwarf2read.c (dwarf_record_line_p): New function.
606 (dwarf_decode_lines_1): Ignore subsequent line number entries
607 for the same line if any entry had a non-zero discriminator.
609 2014-08-22 Doug Evans <dje@google.com>
611 * buildsym.h (record_line_ftype): New typedef.
612 (record_line): Use it.
613 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
614 (dwarf_decode_lines_1): Call them.
616 2014-08-22 Yao Qi <yao@codesourcery.com>
618 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
619 (ctf_end): Remove code.
621 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
623 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
624 (linux_make_corefile_notes): call update_thread_list, protected against
627 2014-08-21 Pedro Alves <palves@redhat.com>
629 * infcmd.c (attach_command): Remove comment.
631 2014-08-21 Bin Cheng <bin.cheng@arm.com>
633 * aarch64-linux-nat.c (dr_changed_t): Change the type from
634 unsigned LONGEST to ULONGEST.
636 2014-08-20 Pedro Alves <palves@redhat.com>
638 * Makefile.in (check-read1): New rule.
640 2014-08-20 Joel Brobecker <brobecker@adacore.com>
642 * value.c (value_from_contents_and_address): Strip resolved_type's
643 typedef layers before checking its TYPE_DATA_LOCATION.
645 2014-08-20 Pedro Alves <palves@redhat.com>
647 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
649 2014-08-20 Yao Qi <yao@codesourcery.com>
651 * amd64-tdep.c (amd64_classify): Add a blank line after the
652 example. Move "*/" to a new line.
653 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
654 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
655 * dwarf2read.c (psymtab_include_file_name): Likewise.
657 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
658 Pedro Alves <palves@redhat.com>
662 * ada-lang.c (coerce_unspec_val_to_type): Use
663 value_contents_copy_raw.
664 * ada-valprint.c (val_print_packed_array_elements): Adjust.
665 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
666 * cp-valprint.c (cp_print_value_fields): Let the common printing
667 code handle optimized out values.
668 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
669 * d-valprint.c (dynamic_array_type): Use
670 value_bits_any_optimized_out.
671 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
672 check_any_valid fields.
673 (check_pieced_value_bits): Delete and inline ...
674 (check_pieced_synthetic_pointer): ... here.
675 (check_pieced_value_validity): Delete.
676 (check_pieced_value_invalid): Delete.
677 (pieced_value_funcs): Remove check_validity and check_any_valid
679 (read_pieced_value): Use mark_value_bits_optimized_out.
680 (write_pieced_value): Switch to use
681 mark_value_bytes_optimized_out.
682 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
683 of assuming the whole value is optimized out.
684 * findvar.c (read_frame_register_value): Remove special handling
685 of optimized out registers.
686 (value_from_register): Use mark_value_bytes_optimized_out.
687 * frame-unwind.c (frame_unwind_got_optimized): Use
688 mark_value_bytes_optimized_out.
689 * jv-valprint.c (java_value_print): Adjust.
690 (java_print_value_fields): Let the common printing code handle
691 optimized out values.
692 * mips-tdep.c (mips_print_register): Remove special handling of
693 optimized out registers.
694 * opencl-lang.c (lval_func_check_validity): Delete.
695 (lval_func_check_any_valid): Delete.
696 (opencl_value_funcs): Remove check_validity and check_any_valid
698 * p-valprint.c (pascal_object_print_value_fields): Let the common
699 printing code handle optimized out values.
700 * stack.c (read_frame_arg): Remove special handling of optimized
701 out values. Fetch both VAL and ENTRYVAL before comparing
702 contents. Adjust to value_available_contents_eq rename.
703 * valprint.c (valprint_check_validity)
704 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
705 (val_print_array_elements): Adjust.
706 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
707 (value_bits_any_optimized_out): New function.
708 (value_entirely_covered_by_range_vector): New function, factored
709 out from value_entirely_unavailable.
710 (value_entirely_unavailable): Reimplement.
711 (value_entirely_optimized_out): New function.
712 (insert_into_bit_range_vector): New function, factored out from
713 mark_value_bits_unavailable.
714 (mark_value_bits_unavailable): Reimplement.
715 (struct ranges_and_idx): New struct.
716 (find_first_range_overlap_and_match): New function, factored out
717 from value_available_contents_bits_eq.
718 (value_available_contents_bits_eq): Rename to ...
719 (value_contents_bits_eq): ... this. Check both unavailable
720 contents and optimized out contents.
721 (value_available_contents_eq): Rename to ...
722 (value_contents_eq): ... this.
723 (allocate_value_lazy): Remove reference to the old optimized_out
725 (allocate_optimized_out_value): Use
726 mark_value_bytes_optimized_out.
727 (require_not_optimized_out): Adjust to check whether the
728 optimized_out vec is empty.
729 (ranges_copy_adjusted): New function, factored out from
730 value_contents_copy_raw.
731 (value_contents_copy_raw): Also copy the optimized out ranges.
732 Assert the destination ranges aren't optimized out.
733 (value_contents_copy): Update comment, remove call to
734 require_not_optimized_out.
735 (value_contents_equal): Adjust to check whether the optimized_out
737 (set_value_optimized_out, value_optimized_out_const): Delete.
738 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
740 (value_entirely_optimized_out, value_bits_valid): Delete.
741 (value_copy): Take a VEC copy of the 'optimized_out' field.
742 (value_primitive_field): Remove special handling of optimized out.
743 (value_fetch_lazy): Assert that lazy values have no unavailable
744 regions. Use value_bits_any_optimized_out. Remove some special
745 handling for optimized out values.
746 * value.h: Add intro comment about <optimized out> and
748 (struct lval_funcs): Remove check_validity and check_any_valid
750 (set_value_optimized_out, value_optimized_out_const): Remove.
751 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
753 (value_bits_any_optimized_out): New declaration.
754 (value_bits_valid): Delete declaration.
755 (value_available_contents_eq): Rename to ...
756 (value_contents_eq): ... this, and extend comments.
758 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
760 Fix -fsanitize=address on unreadable inferior strings.
761 * valprint.c (val_print_string): Fix access before BUFFER.
763 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
765 * target.c (target_struct_size): Remove.
766 (target_struct_allocsize): Remove.
767 (DEFAULT_ALLOCSIZE): Remove.
768 (target_ops_p): New typedef.
769 (DEF_VEC_P (target_ops_p)): New vector type.
770 (target_structs): Change type to VEC (target_ops_p).
771 (add_target_with_completer): Replace "push" code by VEC_safe_push.
772 (find_default_run_target): Rewrite for loop following changes to
775 2014-08-19 Joel Brobecker <brobecker@adacore.com>
777 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
778 Adjust code accordingly. Adjust function description comment.
780 2014-08-19 Yao Qi <yao@codesourcery.com>
782 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
785 2014-08-19 Alan Modra <amodra@gmail.com>
787 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
788 * config.in: Regenerate.
789 * configure: Regenerate.
791 2014-08-19 Tom Tromey <tromey@redhat.com>
792 Gary Benson <gbenson@redhat.com>
794 * common/common-debug.h: New file.
795 * common/common-debug.c: Likewise.
797 * Makefile.in (SFILES): Add common/common-debug.c.
798 (HFILES_NO_SRCDIR): Add common/common-debug.h.
799 (COMMON_OBS): Add common-debug.o and debug.o.
800 (common-debug.o): New rule.
801 * common/common-defs.h: Include common-debug.h.
802 * common/agent.c (debug_agent_printf): New function.
803 (DEBUG_AGENT): Redefine.
804 * nat/i386-dregs.c (debug_printf): Undefine.
806 2014-08-19 Gary Benson <gbenson@redhat.com>
808 * common/common-defs.h: Include print-utils.h.
809 * utils.h: Do not include print-utils.h.
811 2014-08-19 Tom Tromey <tromey@redhat.com>
812 Gary Benson <gbenson@redhat.com>
814 * common/common-types.h: New file.
815 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
816 * common/common-defs.h: Include common-types.h.
817 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
820 2014-08-19 Tom Tromey <tromey@redhat.com>
821 Gary Benson <gbenson@redhat.com>
823 * common/errors.h: New file.
824 * common/errors.c: Likewise.
825 * Makefile.in (SFILES): Add common/errors.c.
826 (HFILES_NO_SRCDIR): Add common/errors.h.
827 (COMMON_OBS): Add errors.o.
828 (errors.o): New rule.
829 * common/common-defs.h: Include errors.h.
830 * utils.h (perror_with_name, error, verror, warning, vwarning):
832 * common/common-utils.h: (malloc_failure, internal_error):
835 2014-08-19 Gary Benson <gbenson@redhat.com>
837 * utils.c (internal_vproblem): Always print the message.
839 2014-08-18 Doug Evans <dje@google.com>
841 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
843 2014-08-18 Joel Brobecker <brobecker@adacore.com>
845 * ada-typeprint.c (type_is_full_subrange_of_target_type):
846 Return 0 if TYPE is dynamic.
847 (print_range): Add handling of dynamic ranges.
849 2014-08-18 Keven Boell <keven.boell@intel.com>
850 Joel Brobecker <brobecker@adacore.com>
852 * gdbtypes.h (struct main_type): Add field "data_location".
853 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
854 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
855 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
856 a dynamic data location.
857 (resolve_dynamic_type): Add DW_AT_data_location handling.
858 (copy_recursive, copy_type): Copy the data_location information
860 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
861 * value.c (value_from_contents_and_address): Add
862 DW_AT_data_location handling.
864 2014-08-18 Keven Boell <keven.boell@intel.com>
865 Joel Brobecker <brobecker@adacore.com>
867 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
868 field "get_object_address".
869 * dwarf2expr.c (execute_stack_op): Add handling for
870 DW_OP_push_object_address.
871 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
872 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
873 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
874 (dwarf_expr_get_obj_addr): New function.
875 (dwarf_expr_ctx_funcs): Add get_object_address field.
876 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
877 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
878 (dwarf2_evaluate_property): Add parameter "address". Use it.
879 (needs_get_obj_addr): New function.
880 (needs_frame_ctx_funcs): Add get_object_address field.
881 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
882 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
883 (resolve_dynamic_array): Likewise.
885 2014-08-18 Joel Brobecker <brobecker@adacore.com>
887 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
888 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
889 fixed value for records and unions for which some GNAT encodings
892 2014-08-18 Joel Brobecker <brobecker@adacore.com>
894 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
895 rewrite to avoid "else if" and "else" constructs. Should be
898 2014-08-18 Joel Brobecker <brobecker@adacore.com>
900 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
903 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
906 * eval.c: Update all calls to find_overload_match.
907 * valarith.c: Likewise.
908 (value_user_defined_cpp_op, value_user_defined_op): New
909 argument NOSIDE. Update all callers.
910 * valops.c (find_overload_match): New argument NOSIDE.
911 * value.h (find_overload_match): Update signature.
913 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
915 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
916 'items' methods instead of 'iteritems' method on dictionaries.
918 2014-08-15 Doug Evans <dje@google.com>
920 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
923 2014-08-15 Doug Evans <dje@google.com>
925 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
927 2014-08-15 Doug Evans <dje@google.com>
929 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
931 2014-08-15 Doug Evans <dje@google.com>
933 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
936 2014-08-15 Eli Zaretskii <eliz@gnu.org>
938 * dcache.h: Include target.h, to avoid compile time warnings.
940 2014-08-15 Joel Brobecker <brobecker@adacore.com>
942 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
943 frame_info" partial declaration.
944 * gdbarch.h: Regenerate.
946 2014-08-15 Yao Qi <yao@codesourcery.com>
948 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
949 Add parameter 'decode_for_pst_p'. Callers update.
951 2014-08-13 Yao Qi <yao@codesourcery.com>
954 * configure.ac: Use local variable 'pos'.
955 * configure: Regenerated.
957 2014-08-11 Doug Evans <dje@google.com>
959 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
960 message, it is redundant with "Reading symbols from ..." message.
962 2014-08-10 Doug Evans <xdje42@gmail.com>
964 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
966 2014-08-09 Yao Qi <yao@codesourcery.com>
969 * remote.c (remote_xfer_partial): Remove dead code.
971 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
973 * ia64-linux-tdep.c: Include "regset.h".
974 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
975 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
976 (ia64_linux_supply_fpregset): New function.
977 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
978 (ia64_linux_regset_from_core_section): New function.
979 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
982 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
984 * m68klinux-tdep.c: Include "regset.h".
985 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
986 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
987 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
988 (m68k_linux_regset_from_core_section): New function.
989 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
992 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
994 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
995 function. Move logic to...
996 (tilegx_linux_regmap): ... this new register map.
997 (tilegx_linux_regset): Refer to register map, replace supply
998 method by regcache_supply_regset, and add collect method.
999 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1000 TILEGX_FIRST_EASY_REGNUM.
1002 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1004 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1005 that calls regcache_supply_regset and handles the EPC register
1006 separately. Move main logic to...
1007 (score7_linux_gregmap): ... this new register map.
1008 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1009 (score7_linux_gregset): Refer to register map. Add collect method.
1010 (score7_linux_regset_from_core_section): Replace
1011 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1012 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1013 (struct regset): Delete unused forward declaraction.
1014 (struct pt_regs): Delete structure definition.
1015 (elf_gregset_t): Delete typedef.
1017 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1019 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1020 (nios2_core_regset): Add collect method.
1022 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1024 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1025 platform-independent and don't write to read-only input buffer.
1026 (m32r_linux_collect_gregset): New function.
1027 (m32r_linux_gregset): Add collect method.
1029 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1031 * hppa-linux-tdep.c (greg_map): Rename to...
1032 (hppa_linux_gregmap): ... this. Also convert to
1033 regcache_map_entry format.
1034 (hppa_linux_supply_regset): Delete function.
1035 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1036 (hppa_linux_fpregmap): ... this new register map.
1037 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1038 register map, replace supply method by regcache_supply_regset, and
1039 add collect method regcache_collect_regset.
1041 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1043 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1044 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1045 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1046 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1047 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1048 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1049 (frv_linux_supply_gregset): Replace main logic by call to
1050 regcache_supply_regset, but keep clearing gr32-gr63.
1051 (frv_linux_supply_fpregset): Delete function.
1052 (frv_linux_gregset): Refer to appropriate register map and add
1053 regcache_collect_regset as the collect method.
1054 (frv_linux_fpregset): Likewise. Also exchange the supply method
1055 by regcache_supply_regset.
1057 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1059 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1060 by call to alpha_supply_int_regs.
1061 (alpha_linux_collect_gregset): New function.
1062 (alpha_linux_supply_fpregset): Replace logic by call to
1063 alpha_supply_fp_regs.
1064 (alpha_linux_collect_fpregset): New function.
1065 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1067 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1070 by call to regcache_collect_regset.
1071 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1072 instead of aarch64_linux_supply_gregset/_fpregset.
1073 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1074 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1075 header file instead.
1076 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1077 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1078 functions. Move logic to ...
1079 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1081 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1082 refer to new register maps, replace *_regset_from_core by
1083 regcache_supply_regset, and also use regcache_collect_regset.
1084 * aarch64-linux-tdep.h: Include "regset.h".
1085 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1087 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1088 macros, moved from C source file.
1089 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1090 variable declarations.
1092 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1094 * s390-linux-nat.c: Include "regset.h".
1095 (regmap_gregset): Delete macro.
1096 (s390_64_regmap_gregset): New register map for
1097 regcache_supply/_collect_regset.
1098 (s390_64_gregset): New regset.
1099 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1100 (regmap_fpregset): Delete macro.
1101 (s390_native_supply, s390_native_collect): Delete functions.
1102 (supply_gregset, fill_gregset): Replace s390-specific regmap
1103 handling by a call to regcache_supply/_collect_regset.
1104 (supply_fpregset, fill_fpregset): Call regcache_supply/
1105 _collect_regset instead of s390_native_supply/_collect.
1106 (fetch_regset, store_regset): Likewise. Also change the last
1107 parameter to a regset instead of a regmap.
1108 (s390_linux_fetch_inferior_registers)
1109 (390_linux_store_inferior_registers): Adjust last parameter in
1110 calls to fetch_regset and store_regset.
1111 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1112 (s390_gregmap): ... this. Also make static const and convert to
1113 regcache_map_entry format.
1114 (s390x_regmap_gregset): Delete.
1115 (s390_regmap_fpregset): Rename to...
1116 (s390_fpregmap): ... this. Make static const and convert to
1117 regcache_map_entry format.
1118 (s390_regmap_upper, s390_regmap_last_break)
1119 (s390x_regmap_last_break, s390_regmap_system_call)
1120 (s390_regmap_tdb): Likewise.
1121 (s390_supply_regset, s390_collect_regset): Remove functions.
1122 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1124 (s390_gregset, s390_fpregset, s390_upper_regset)
1125 (s390_last_break_regset, s390x_last_break_regset)
1126 (s390_system_call_regset, s390_tdb_regset): Make global and
1127 replace s390_supply/_collect_regset by regcache_supply/
1129 (s390x_gregset): Delete.
1130 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1131 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1132 (s390_regmap_fpregset, s390_regmap_last_break)
1133 (s390x_regmap_last_break, s390_regmap_system_call)
1134 (s390_regmap_tdb): Delete global variable declarations.
1135 (s390_gregset, s390_fpregset, s390_last_break_regset)
1136 (s390x_last_break_regset, s390_system_call_regset)
1137 (s390_tdb_regset): New global variable declarations.
1139 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1141 * regcache.c: Include "regset.h".
1142 (regcache_transfer_regset): New local function.
1143 (regcache_supply_regset, regcache_collect_regset): New functions.
1144 * regcache.h (struct regcache_map_entry): New structure.
1145 (REGCACHE_MAP_SKIP): New enum value.
1146 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1148 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1150 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1151 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1152 (ppc_linux_collect_gregset ): Likewise.
1153 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1154 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1155 (ppc_collect_vrregset): Likewise.
1156 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1159 2014-08-07 Yao Qi <yao@codesourcery.com>
1161 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1162 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1163 * remote.c (remote_read_bytes): Likewise.
1165 2014-08-07 Yao Qi <yao@codesourcery.com>
1167 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1169 2014-08-07 Yao Qi <yao@codesourcery.com>
1172 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1173 TARGET_XFER_OK instead of 0.
1175 2014-08-07 Gary Benson <gbenson@redhat.com>
1177 * common/common-defs.h: Include errno.h.
1178 * defs.h: Do not include errno.h.
1179 * ada-typeprint.c: Likewise.
1180 * c-typeprint.c: Likewise.
1181 * core-regset.c: Likewise.
1182 * corefile.c: Likewise.
1183 * corelow.c: Likewise.
1184 * event-loop.c: Likewise.
1185 * f-typeprint.c: Likewise.
1186 * gnu-nat.c: Likewise.
1187 * go32-nat.c: Likewise.
1188 * i386gnu-nat.c: Likewise.
1189 * m2-typeprint.c: Likewise.
1190 * nat/linux-btrace.c: Likewise.
1191 * p-typeprint.c: Likewise.
1192 * procfs.c: Likewise.
1193 * remote-sim.c: Likewise.
1194 * rs6000-nat.c: Likewise.
1195 * target.c: Likewise.
1196 * typeprint.c: Likewise.
1197 * ui-file.c: Likewise.
1198 * valops.c: Likewise.
1199 * valprint.c: Likewise.
1201 2014-08-07 Gary Benson <gbenson@redhat.com>
1203 * common/common-defs.h: Include string.h.
1204 * aarch64-tdep.c: Do not include string.h.
1205 * ada-exp.y: Likewise.
1206 * ada-lang.c: Likewise.
1207 * ada-lex.l: Likewise.
1208 * ada-typeprint.c: Likewise.
1209 * ada-valprint.c: Likewise.
1210 * aix-thread.c: Likewise.
1211 * alpha-linux-tdep.c: Likewise.
1212 * alpha-mdebug-tdep.c: Likewise.
1213 * alpha-nat.c: Likewise.
1214 * alpha-osf1-tdep.c: Likewise.
1215 * alpha-tdep.c: Likewise.
1216 * alphanbsd-tdep.c: Likewise.
1217 * amd64-dicos-tdep.c: Likewise.
1218 * amd64-linux-tdep.c: Likewise.
1219 * amd64-nat.c: Likewise.
1220 * amd64-sol2-tdep.c: Likewise.
1221 * amd64fbsd-tdep.c: Likewise.
1222 * amd64obsd-tdep.c: Likewise.
1223 * arch-utils.c: Likewise.
1224 * arm-linux-nat.c: Likewise.
1225 * arm-linux-tdep.c: Likewise.
1226 * arm-tdep.c: Likewise.
1227 * arm-wince-tdep.c: Likewise.
1228 * armbsd-tdep.c: Likewise.
1229 * armnbsd-nat.c: Likewise.
1230 * armnbsd-tdep.c: Likewise.
1231 * armobsd-tdep.c: Likewise.
1232 * avr-tdep.c: Likewise.
1233 * ax-gdb.c: Likewise.
1234 * ax-general.c: Likewise.
1235 * bcache.c: Likewise.
1236 * bfin-tdep.c: Likewise.
1237 * breakpoint.c: Likewise.
1238 * build-id.c: Likewise.
1239 * buildsym.c: Likewise.
1240 * c-exp.y: Likewise.
1241 * c-lang.c: Likewise.
1242 * c-typeprint.c: Likewise.
1243 * c-valprint.c: Likewise.
1244 * charset.c: Likewise.
1245 * cli-out.c: Likewise.
1246 * cli/cli-cmds.c: Likewise.
1247 * cli/cli-decode.c: Likewise.
1248 * cli/cli-dump.c: Likewise.
1249 * cli/cli-interp.c: Likewise.
1250 * cli/cli-logging.c: Likewise.
1251 * cli/cli-script.c: Likewise.
1252 * cli/cli-setshow.c: Likewise.
1253 * cli/cli-utils.c: Likewise.
1254 * coffread.c: Likewise.
1255 * common/agent.c: Likewise.
1256 * common/buffer.c: Likewise.
1257 * common/buffer.h: Likewise.
1258 * common/common-utils.c: Likewise.
1259 * common/filestuff.c: Likewise.
1260 * common/filestuff.c: Likewise.
1261 * common/format.c: Likewise.
1262 * common/print-utils.c: Likewise.
1263 * common/rsp-low.c: Likewise.
1264 * common/signals.c: Likewise.
1265 * common/vec.h: Likewise.
1266 * common/xml-utils.c: Likewise.
1267 * core-regset.c: Likewise.
1268 * corefile.c: Likewise.
1269 * corelow.c: Likewise.
1270 * cp-abi.c: Likewise.
1271 * cp-name-parser.y: Likewise.
1272 * cp-support.c: Likewise.
1273 * cp-valprint.c: Likewise.
1274 * cris-tdep.c: Likewise.
1275 * d-exp.y: Likewise.
1276 * darwin-nat.c: Likewise.
1277 * dbxread.c: Likewise.
1278 * dcache.c: Likewise.
1279 * demangle.c: Likewise.
1280 * dicos-tdep.c: Likewise.
1281 * disasm.c: Likewise.
1282 * doublest.c: Likewise.
1283 * dsrec.c: Likewise.
1284 * dummy-frame.c: Likewise.
1285 * dwarf2-frame.c: Likewise.
1286 * dwarf2loc.c: Likewise.
1287 * dwarf2read.c: Likewise.
1288 * elfread.c: Likewise.
1289 * environ.c: Likewise.
1291 * event-loop.c: Likewise.
1292 * exceptions.c: Likewise.
1294 * expprint.c: Likewise.
1295 * f-exp.y: Likewise.
1296 * f-lang.c: Likewise.
1297 * f-typeprint.c: Likewise.
1298 * f-valprint.c: Likewise.
1299 * fbsd-nat.c: Likewise.
1300 * findcmd.c: Likewise.
1301 * findvar.c: Likewise.
1302 * fork-child.c: Likewise.
1303 * frame.c: Likewise.
1304 * frv-linux-tdep.c: Likewise.
1305 * frv-tdep.c: Likewise.
1307 * gdb_bfd.c: Likewise.
1308 * gdbarch.c: Likewise.
1309 * gdbarch.sh: Likewise.
1310 * gdbtypes.c: Likewise.
1311 * gnu-nat.c: Likewise.
1312 * gnu-v2-abi.c: Likewise.
1313 * gnu-v3-abi.c: Likewise.
1314 * go-exp.y: Likewise.
1315 * go-lang.c: Likewise.
1316 * go32-nat.c: Likewise.
1317 * guile/guile.c: Likewise.
1318 * guile/scm-auto-load.c: Likewise.
1319 * hppa-hpux-tdep.c: Likewise.
1320 * hppa-linux-nat.c: Likewise.
1321 * hppanbsd-tdep.c: Likewise.
1322 * hppaobsd-tdep.c: Likewise.
1323 * i386-cygwin-tdep.c: Likewise.
1324 * i386-dicos-tdep.c: Likewise.
1325 * i386-linux-tdep.c: Likewise.
1326 * i386-nto-tdep.c: Likewise.
1327 * i386-sol2-tdep.c: Likewise.
1328 * i386-tdep.c: Likewise.
1329 * i386bsd-tdep.c: Likewise.
1330 * i386gnu-nat.c: Likewise.
1331 * i386nbsd-tdep.c: Likewise.
1332 * i386obsd-tdep.c: Likewise.
1333 * i387-tdep.c: Likewise.
1334 * ia64-libunwind-tdep.c: Likewise.
1335 * ia64-linux-nat.c: Likewise.
1336 * inf-child.c: Likewise.
1337 * inf-ptrace.c: Likewise.
1338 * inf-ttrace.c: Likewise.
1339 * infcall.c: Likewise.
1340 * infcmd.c: Likewise.
1341 * inflow.c: Likewise.
1342 * infrun.c: Likewise.
1343 * interps.c: Likewise.
1344 * iq2000-tdep.c: Likewise.
1345 * irix5-nat.c: Likewise.
1346 * jv-exp.y: Likewise.
1347 * jv-lang.c: Likewise.
1348 * jv-typeprint.c: Likewise.
1349 * jv-valprint.c: Likewise.
1350 * language.c: Likewise.
1351 * linux-fork.c: Likewise.
1352 * linux-nat.c: Likewise.
1353 * lm32-tdep.c: Likewise.
1354 * m2-exp.y: Likewise.
1355 * m2-typeprint.c: Likewise.
1356 * m32c-tdep.c: Likewise.
1357 * m32r-linux-nat.c: Likewise.
1358 * m32r-linux-tdep.c: Likewise.
1359 * m32r-rom.c: Likewise.
1360 * m32r-tdep.c: Likewise.
1361 * m68hc11-tdep.c: Likewise.
1362 * m68k-tdep.c: Likewise.
1363 * m68kbsd-tdep.c: Likewise.
1364 * m68klinux-nat.c: Likewise.
1365 * m68klinux-tdep.c: Likewise.
1366 * m88k-tdep.c: Likewise.
1367 * machoread.c: Likewise.
1368 * macrocmd.c: Likewise.
1370 * mdebugread.c: Likewise.
1371 * mem-break.c: Likewise.
1372 * memattr.c: Likewise.
1373 * memory-map.c: Likewise.
1374 * mep-tdep.c: Likewise.
1375 * mi/mi-cmd-break.c: Likewise.
1376 * mi/mi-cmd-disas.c: Likewise.
1377 * mi/mi-cmd-env.c: Likewise.
1378 * mi/mi-cmd-stack.c: Likewise.
1379 * mi/mi-cmd-var.c: Likewise.
1380 * mi/mi-cmds.c: Likewise.
1381 * mi/mi-console.c: Likewise.
1382 * mi/mi-getopt.c: Likewise.
1383 * mi/mi-interp.c: Likewise.
1384 * mi/mi-main.c: Likewise.
1385 * mi/mi-parse.c: Likewise.
1386 * microblaze-rom.c: Likewise.
1387 * microblaze-tdep.c: Likewise.
1388 * mingw-hdep.c: Likewise.
1389 * minidebug.c: Likewise.
1390 * minsyms.c: Likewise.
1391 * mips-irix-tdep.c: Likewise.
1392 * mips-linux-tdep.c: Likewise.
1393 * mips-tdep.c: Likewise.
1394 * mips64obsd-tdep.c: Likewise.
1395 * mipsnbsd-tdep.c: Likewise.
1396 * mipsread.c: Likewise.
1397 * mn10300-linux-tdep.c: Likewise.
1398 * mn10300-tdep.c: Likewise.
1399 * monitor.c: Likewise.
1400 * moxie-tdep.c: Likewise.
1401 * mt-tdep.c: Likewise.
1402 * nat/linux-btrace.c: Likewise.
1403 * nat/linux-osdata.c: Likewise.
1404 * nat/linux-procfs.c: Likewise.
1405 * nat/linux-ptrace.c: Likewise.
1406 * nat/linux-waitpid.c: Likewise.
1407 * nbsd-tdep.c: Likewise.
1408 * nios2-linux-tdep.c: Likewise.
1409 * nto-procfs.c: Likewise.
1410 * nto-tdep.c: Likewise.
1411 * objc-lang.c: Likewise.
1412 * objfiles.c: Likewise.
1413 * opencl-lang.c: Likewise.
1414 * osabi.c: Likewise.
1415 * osdata.c: Likewise.
1416 * p-exp.y: Likewise.
1417 * p-lang.c: Likewise.
1418 * p-typeprint.c: Likewise.
1419 * parse.c: Likewise.
1420 * posix-hdep.c: Likewise.
1421 * ppc-linux-nat.c: Likewise.
1422 * ppc-sysv-tdep.c: Likewise.
1423 * ppcfbsd-tdep.c: Likewise.
1424 * ppcnbsd-tdep.c: Likewise.
1425 * ppcobsd-tdep.c: Likewise.
1426 * printcmd.c: Likewise.
1427 * procfs.c: Likewise.
1428 * prologue-value.c: Likewise.
1429 * python/py-auto-load.c: Likewise.
1430 * python/py-gdb-readline.c: Likewise.
1431 * ravenscar-thread.c: Likewise.
1432 * regcache.c: Likewise.
1433 * registry.c: Likewise.
1434 * remote-fileio.c: Likewise.
1435 * remote-m32r-sdi.c: Likewise.
1436 * remote-mips.c: Likewise.
1437 * remote-notif.c: Likewise.
1438 * remote-sim.c: Likewise.
1439 * remote.c: Likewise.
1440 * reverse.c: Likewise.
1441 * rs6000-aix-tdep.c: Likewise.
1442 * ser-base.c: Likewise.
1443 * ser-go32.c: Likewise.
1444 * ser-mingw.c: Likewise.
1445 * ser-pipe.c: Likewise.
1446 * ser-tcp.c: Likewise.
1447 * ser-unix.c: Likewise.
1448 * serial.c: Likewise.
1449 * sh-tdep.c: Likewise.
1450 * sh64-tdep.c: Likewise.
1451 * shnbsd-tdep.c: Likewise.
1453 * sol-thread.c: Likewise.
1454 * solib-dsbt.c: Likewise.
1455 * solib-frv.c: Likewise.
1456 * solib-osf.c: Likewise.
1457 * solib-som.c: Likewise.
1458 * solib-spu.c: Likewise.
1459 * solib-target.c: Likewise.
1460 * solib.c: Likewise.
1461 * somread.c: Likewise.
1462 * source.c: Likewise.
1463 * sparc-nat.c: Likewise.
1464 * sparc-sol2-tdep.c: Likewise.
1465 * sparc-tdep.c: Likewise.
1466 * sparc64-tdep.c: Likewise.
1467 * sparc64fbsd-tdep.c: Likewise.
1468 * sparc64nbsd-tdep.c: Likewise.
1469 * sparcnbsd-tdep.c: Likewise.
1470 * spu-linux-nat.c: Likewise.
1471 * spu-multiarch.c: Likewise.
1472 * spu-tdep.c: Likewise.
1473 * stabsread.c: Likewise.
1474 * stack.c: Likewise.
1475 * std-regs.c: Likewise.
1476 * symfile.c: Likewise.
1477 * symmisc.c: Likewise.
1478 * symtab.c: Likewise.
1479 * target.c: Likewise.
1480 * thread.c: Likewise.
1481 * tilegx-linux-nat.c: Likewise.
1482 * tilegx-tdep.c: Likewise.
1484 * tracepoint.c: Likewise.
1485 * tui/tui-command.c: Likewise.
1486 * tui/tui-data.c: Likewise.
1487 * tui/tui-disasm.c: Likewise.
1488 * tui/tui-file.c: Likewise.
1489 * tui/tui-layout.c: Likewise.
1490 * tui/tui-out.c: Likewise.
1491 * tui/tui-regs.c: Likewise.
1492 * tui/tui-source.c: Likewise.
1493 * tui/tui-stack.c: Likewise.
1494 * tui/tui-win.c: Likewise.
1495 * tui/tui-windata.c: Likewise.
1496 * tui/tui-winsource.c: Likewise.
1497 * typeprint.c: Likewise.
1498 * ui-file.c: Likewise.
1499 * ui-out.c: Likewise.
1500 * user-regs.c: Likewise.
1501 * utils.c: Likewise.
1502 * v850-tdep.c: Likewise.
1503 * valarith.c: Likewise.
1504 * valops.c: Likewise.
1505 * valprint.c: Likewise.
1506 * value.c: Likewise.
1507 * varobj.c: Likewise.
1508 * vax-tdep.c: Likewise.
1509 * vaxnbsd-tdep.c: Likewise.
1510 * vaxobsd-tdep.c: Likewise.
1511 * windows-nat.c: Likewise.
1512 * xcoffread.c: Likewise.
1513 * xml-support.c: Likewise.
1514 * xstormy16-tdep.c: Likewise.
1515 * xtensa-linux-nat.c: Likewise.
1517 2014-08-07 Gary Benson <gbenson@redhat.com>
1519 * common/common-defs.h: Include gdb_assert.h.
1520 * aarch64-tdep.c: Do not include gdb_assert.h.
1521 * addrmap.c: Likewise.
1522 * aix-thread.c: Likewise.
1523 * alpha-linux-tdep.c: Likewise.
1524 * alpha-mdebug-tdep.c: Likewise.
1525 * alphanbsd-tdep.c: Likewise.
1526 * amd64-nat.c: Likewise.
1527 * amd64-tdep.c: Likewise.
1528 * amd64bsd-nat.c: Likewise.
1529 * amd64fbsd-nat.c: Likewise.
1530 * amd64fbsd-tdep.c: Likewise.
1531 * amd64nbsd-nat.c: Likewise.
1532 * amd64nbsd-tdep.c: Likewise.
1533 * amd64obsd-nat.c: Likewise.
1534 * amd64obsd-tdep.c: Likewise.
1535 * arch-utils.c: Likewise.
1536 * arm-tdep.c: Likewise.
1537 * armbsd-tdep.c: Likewise.
1539 * bcache.c: Likewise.
1540 * bfin-tdep.c: Likewise.
1541 * blockframe.c: Likewise.
1542 * breakpoint.c: Likewise.
1543 * bsd-kvm.c: Likewise.
1544 * bsd-uthread.c: Likewise.
1545 * buildsym.c: Likewise.
1546 * c-exp.y: Likewise.
1547 * c-lang.c: Likewise.
1548 * charset.c: Likewise.
1549 * cleanups.c: Likewise.
1550 * cli-out.c: Likewise.
1551 * cli/cli-decode.c: Likewise.
1552 * cli/cli-dump.c: Likewise.
1553 * cli/cli-logging.c: Likewise.
1554 * cli/cli-script.c: Likewise.
1555 * cli/cli-utils.c: Likewise.
1556 * coffread.c: Likewise.
1557 * common/common-utils.c: Likewise.
1558 * common/queue.h: Likewise.
1559 * common/signals.c: Likewise.
1560 * common/vec.h: Likewise.
1561 * complaints.c: Likewise.
1562 * completer.c: Likewise.
1563 * corelow.c: Likewise.
1564 * cp-abi.c: Likewise.
1565 * cp-name-parser.y: Likewise.
1566 * cp-namespace.c: Likewise.
1567 * cp-support.c: Likewise.
1568 * cris-tdep.c: Likewise.
1569 * dbxread.c: Likewise.
1570 * dictionary.c: Likewise.
1571 * doublest.c: Likewise.
1572 * dsrec.c: Likewise.
1573 * dummy-frame.c: Likewise.
1574 * dwarf2-frame-tailcall.c: Likewise.
1575 * dwarf2-frame.c: Likewise.
1576 * dwarf2expr.c: Likewise.
1577 * dwarf2loc.c: Likewise.
1578 * dwarf2read.c: Likewise.
1580 * event-loop.c: Likewise.
1581 * exceptions.c: Likewise.
1582 * expprint.c: Likewise.
1583 * f-valprint.c: Likewise.
1584 * fbsd-nat.c: Likewise.
1585 * findvar.c: Likewise.
1586 * frame-unwind.c: Likewise.
1587 * frame.c: Likewise.
1588 * frv-tdep.c: Likewise.
1589 * gcore.c: Likewise.
1590 * gdb-dlfcn.c: Likewise.
1591 * gdb_bfd.c: Likewise.
1592 * gdbarch.c: Likewise.
1593 * gdbarch.sh: Likewise.
1594 * gdbtypes.c: Likewise.
1595 * gnu-nat.c: Likewise.
1596 * gnu-v3-abi.c: Likewise.
1597 * go-lang.c: Likewise.
1598 * guile/scm-exception.c: Likewise.
1599 * guile/scm-gsmob.c: Likewise.
1600 * guile/scm-lazy-string.c: Likewise.
1601 * guile/scm-math.c: Likewise.
1602 * guile/scm-pretty-print.c: Likewise.
1603 * guile/scm-safe-call.c: Likewise.
1604 * guile/scm-utils.c: Likewise.
1605 * guile/scm-value.c: Likewise.
1606 * h8300-tdep.c: Likewise.
1607 * hppa-hpux-nat.c: Likewise.
1608 * hppa-tdep.c: Likewise.
1609 * hppanbsd-tdep.c: Likewise.
1610 * hppaobsd-tdep.c: Likewise.
1611 * i386-darwin-nat.c: Likewise.
1612 * i386-darwin-tdep.c: Likewise.
1613 * i386-nto-tdep.c: Likewise.
1614 * i386-tdep.c: Likewise.
1615 * i386bsd-nat.c: Likewise.
1616 * i386fbsd-tdep.c: Likewise.
1617 * i386gnu-nat.c: Likewise.
1618 * i386nbsd-tdep.c: Likewise.
1619 * i386obsd-tdep.c: Likewise.
1620 * i387-tdep.c: Likewise.
1621 * ia64-libunwind-tdep.c: Likewise.
1622 * ia64-tdep.c: Likewise.
1623 * inf-ptrace.c: Likewise.
1624 * inf-ttrace.c: Likewise.
1625 * infcall.c: Likewise.
1626 * infcmd.c: Likewise.
1627 * infrun.c: Likewise.
1628 * inline-frame.c: Likewise.
1629 * interps.c: Likewise.
1630 * jv-lang.c: Likewise.
1631 * jv-typeprint.c: Likewise.
1632 * linux-fork.c: Likewise.
1633 * linux-nat.c: Likewise.
1634 * linux-thread-db.c: Likewise.
1635 * m32c-tdep.c: Likewise.
1636 * m32r-linux-nat.c: Likewise.
1637 * m32r-tdep.c: Likewise.
1638 * m68k-tdep.c: Likewise.
1639 * m68kbsd-nat.c: Likewise.
1640 * m68kbsd-tdep.c: Likewise.
1641 * m88k-tdep.c: Likewise.
1642 * machoread.c: Likewise.
1643 * macroexp.c: Likewise.
1644 * macrotab.c: Likewise.
1645 * maint.c: Likewise.
1646 * mdebugread.c: Likewise.
1647 * memory-map.c: Likewise.
1648 * mep-tdep.c: Likewise.
1649 * mi/mi-common.c: Likewise.
1650 * microblaze-tdep.c: Likewise.
1651 * mingw-hdep.c: Likewise.
1652 * mips-linux-nat.c: Likewise.
1653 * mips-linux-tdep.c: Likewise.
1654 * mips-tdep.c: Likewise.
1655 * mips64obsd-tdep.c: Likewise.
1656 * mipsnbsd-tdep.c: Likewise.
1657 * mn10300-linux-tdep.c: Likewise.
1658 * mn10300-tdep.c: Likewise.
1659 * moxie-tdep.c: Likewise.
1660 * mt-tdep.c: Likewise.
1661 * nat/linux-btrace.c: Likewise.
1662 * nat/linux-osdata.c: Likewise.
1663 * nat/linux-ptrace.c: Likewise.
1664 * nat/mips-linux-watch.c: Likewise.
1665 * nios2-linux-tdep.c: Likewise.
1666 * nios2-tdep.c: Likewise.
1667 * objc-lang.c: Likewise.
1668 * objfiles.c: Likewise.
1669 * obsd-nat.c: Likewise.
1670 * opencl-lang.c: Likewise.
1671 * osabi.c: Likewise.
1672 * parse.c: Likewise.
1673 * ppc-linux-nat.c: Likewise.
1674 * ppc-sysv-tdep.c: Likewise.
1675 * ppcfbsd-nat.c: Likewise.
1676 * ppcfbsd-tdep.c: Likewise.
1677 * ppcnbsd-nat.c: Likewise.
1678 * ppcnbsd-tdep.c: Likewise.
1679 * ppcobsd-nat.c: Likewise.
1680 * ppcobsd-tdep.c: Likewise.
1681 * printcmd.c: Likewise.
1682 * procfs.c: Likewise.
1683 * prologue-value.c: Likewise.
1684 * psymtab.c: Likewise.
1685 * python/py-lazy-string.c: Likewise.
1686 * python/py-value.c: Likewise.
1687 * regcache.c: Likewise.
1688 * reggroups.c: Likewise.
1689 * registry.c: Likewise.
1690 * remote-sim.c: Likewise.
1691 * remote.c: Likewise.
1692 * rs6000-aix-tdep.c: Likewise.
1693 * rs6000-tdep.c: Likewise.
1694 * s390-linux-tdep.c: Likewise.
1695 * score-tdep.c: Likewise.
1696 * ser-base.c: Likewise.
1697 * ser-mingw.c: Likewise.
1698 * sh-tdep.c: Likewise.
1699 * sh64-tdep.c: Likewise.
1700 * solib-darwin.c: Likewise.
1701 * solib-spu.c: Likewise.
1702 * solib-svr4.c: Likewise.
1703 * source.c: Likewise.
1704 * sparc-nat.c: Likewise.
1705 * sparc-sol2-tdep.c: Likewise.
1706 * sparc-tdep.c: Likewise.
1707 * sparc64-sol2-tdep.c: Likewise.
1708 * sparc64-tdep.c: Likewise.
1709 * sparc64fbsd-tdep.c: Likewise.
1710 * sparc64nbsd-tdep.c: Likewise.
1711 * sparc64obsd-tdep.c: Likewise.
1712 * sparcnbsd-tdep.c: Likewise.
1713 * sparcobsd-tdep.c: Likewise.
1714 * spu-multiarch.c: Likewise.
1715 * spu-tdep.c: Likewise.
1716 * stabsread.c: Likewise.
1717 * stack.c: Likewise.
1718 * symfile.c: Likewise.
1719 * symtab.c: Likewise.
1720 * target-descriptions.c: Likewise.
1721 * target-memory.c: Likewise.
1722 * target.c: Likewise.
1723 * tic6x-linux-tdep.c: Likewise.
1724 * tic6x-tdep.c: Likewise.
1725 * tilegx-linux-nat.c: Likewise.
1726 * tilegx-tdep.c: Likewise.
1728 * tramp-frame.c: Likewise.
1729 * tui/tui-out.c: Likewise.
1730 * tui/tui-winsource.c: Likewise.
1731 * ui-out.c: Likewise.
1732 * user-regs.c: Likewise.
1733 * utils.c: Likewise.
1734 * v850-tdep.c: Likewise.
1735 * valops.c: Likewise.
1736 * value.c: Likewise.
1737 * varobj.c: Likewise.
1738 * vax-nat.c: Likewise.
1739 * xml-syscall.c: Likewise.
1740 * xml-tdesc.c: Likewise.
1741 * xstormy16-tdep.c: Likewise.
1742 * xtensa-linux-nat.c: Likewise.
1743 * xtensa-tdep.c: Likewise.
1745 2014-08-07 Gary Benson <gbenson@redhat.com>
1747 * common/common-defs.h: Include common-utils.h.
1748 * defs.h: Do not include common-utils.h.
1749 * common/gdb_assert.h: Likewise.
1750 * darwin-nat.h: Likewise.
1751 * nat/linux-btrace.c: Likewise.
1752 * target/waitstatus.h: Likewise.
1754 2014-08-07 Gary Benson <gbenson@redhat.com>
1756 * common/common-defs.h: Include ptid.h.
1757 * defs.h: Do not include ptid.h.
1758 * inferior.h: Likewise.
1759 * infrun.h: Likewise.
1760 * nat/linux-btrace.h: Likewise.
1761 * nat/linux-osdata.h: Likewise.
1762 * target/waitstatus.h: Likewise.
1764 2014-08-07 Gary Benson <gbenson@redhat.com>
1766 * common/common-defs.h: Include gdb_locale.h.
1767 * defs.h: Do not include gdb_locale.h.
1769 2014-08-07 Gary Benson <gbenson@redhat.com>
1771 * common/common-defs.h: Include gdb/signals.h.
1772 * defs.h: Do not include gdb/signals.h.
1774 2014-08-07 Gary Benson <gbenson@redhat.com>
1776 * common/common-defs.h: Include pathmax.h.
1777 * defs.h: Do not include pathmax.h.
1779 2014-08-07 Gary Benson <gbenson@redhat.com>
1781 * common/common-defs.h: Include libiberty.h.
1782 * defs.h: Do not include libiberty.h.
1783 * common/queue.h: Likewise.
1784 * cp-name-parser.y: Likewise.
1785 * mi/mi-cmd-catch.c: Likewise.
1786 * python/python.c: Likewise.
1788 2014-08-07 Gary Benson <gbenson@redhat.com>
1790 * common/common-defs.h: Include ansidecl.h.
1791 * defs.h: Do not include ansidecl.h.
1792 * common/buffer.h: Likewise.
1793 * common/common-utils.h: Likewise.
1795 2014-08-07 Gary Benson <gbenson@redhat.com>
1797 * common/common-defs.h: Include stddef.h.
1798 * defs.h: Do not include stddef.h.
1799 * common/common-utils.h: Likewise.
1800 * amd64fbsd-nat.c: Likewise.
1801 * bcache.c: Likewise.
1802 * charset.c: Likewise.
1803 * common/buffer.h: Likewise.
1804 * common/vec.h: Likewise.
1805 * i386bsd-nat.c: Likewise.
1806 * nat/linux-btrace.h: Likewise.
1807 * ppcfbsd-nat.c: Likewise.
1808 * ppcnbsd-tdep.h: Likewise.
1809 * ppcobsd-nat.c: Likewise.
1810 * ppcobsd-tdep.h: Likewise.
1811 * python/py-gdb-readline.c: Likewise.
1813 2014-08-07 Gary Benson <gbenson@redhat.com>
1815 * common/common-defs.h: Include stdarg.h.
1816 * defs.h: Do not include stdarg.h.
1817 * ada-lang.c: Likewise.
1818 * common/common-utils.h: Likewise.
1819 * guile/scm-string.c: Likewise.
1820 * guile/scm-utils.c: Likewise.
1821 * m32c-tdep.c: Likewise.
1823 2014-08-07 Gary Benson <gbenson@redhat.com>
1825 * common/common-defs.h: Include stdlib.h.
1826 * defs.h: Do not include stdlib.h.
1827 * addrmap.c: Likewise.
1828 * bcache.c: Likewise.
1829 * common/buffer.c: Likewise.
1830 * common/common-utils.c: Likewise.
1831 * cp-name-parser.y: Likewise.
1832 * go32-nat.c: Likewise.
1833 * mn10300-linux-tdep.c: Likewise.
1834 * nat/linux-osdata.c: Likewise.
1835 * tui/tui.c: Likewise.
1836 * windows-nat.c: Likewise.
1838 2014-08-07 Gary Benson <gbenson@redhat.com>
1840 * common/common-defs.h: Include stdio.h.
1841 * defs.h: Do not include stdio.h.
1842 * ada-lang.c: Likewise.
1843 * common/buffer.c: Likewise.
1844 * common/common-utils.c: Likewise.
1845 * cp-name-parser.y: Likewise.
1846 * gnu-nat.c: Likewise.
1847 * go32-nat.c: Likewise.
1848 * i386gnu-nat.c: Likewise.
1849 * proc-api.c: Likewise.
1850 * proc-events.c: Likewise.
1851 * proc-flags.c: Likewise.
1852 * proc-why.c: Likewise.
1853 * python/python-internal.h: Likewise.
1854 * target-memory.c: Likewise.
1855 * tui/tui-io.c: Likewise.
1856 * tui/tui.c: Likewise.
1858 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1860 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1861 (scan_dyntag_auxv): Same.
1863 2014-08-06 Yao Qi <yao@codesourcery.com>
1865 * amd64-linux-nat.c: Remove duplicated include
1867 * i386-linux-nat.c: Likewise.
1869 2014-08-06 Yao Qi <yao@codesourcery.com>
1871 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1872 operand" with "Special opcode" in comments.
1874 2014-08-05 Gary Benson <gbenson@redhat.com>
1876 * interps.c (initialize_interps): Remove prototype.
1877 (interpreter_initialized): Remove static global.
1878 (interp_add): Do not call initialize_interps.
1879 (initialize_interps): Remove function.
1881 2014-08-05 Gary Benson <gbenson@redhat.com>
1883 * utils.c (vwarning): Remove spurious va_end.
1885 2014-08-05 Alan Modra <amodra@gmail.com>
1887 * charset.c (convert_between_encodings): Cast result of obstack_base.
1888 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1889 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1890 (read_unwind_info): Use size_t for some locals.
1891 * jit.c (finalize_symtab): Likewise.
1892 * utils.c (hashtab_obstack_allocate): Likewise.
1893 * symmisc.c (print_objfile_statistics): Update format strings.
1895 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1897 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1898 (Changes in GDB 7.8): ... here.
1900 2014-08-04 Tom Tromey <tromey@redhat.com>
1902 * target.c (set_targetdebug): New function.
1903 (initialize_targets): Pass set_targetdebug when creating "set
1906 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1908 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1909 if detecting a variable-sized field that is not the last field.
1910 Fix struct type length computation.
1912 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1914 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1917 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1919 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1920 Remove "+ 8" offset in computation of CHAIN_VMA.
1922 2014-07-31 Doug Evans <dje@google.com>
1924 * inflow.c (child_terminal_inferior): Add comment.
1925 (child_terminal_ours_for_output): Add comment.
1926 (child_terminal_ours): Add comment.
1927 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1928 (linux_nat_terminal_ours): Add comment.
1930 2014-07-31 Gary Benson <gbenson@redhat.com>
1932 * common/btrace-common.h: Do not include defs.h or server.h.
1933 * nat/mips-linux-watch.h: Likewise.
1934 * gdb-dlfcn.h: Do not include defs.h.
1935 * tracefile.h: Likewise.
1937 2014-07-30 Roland McGrath <mcgrathr@google.com>
1939 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1941 2014-07-30 Tom Tromey <tromey@redhat.com>
1943 * bsd-kvm.c (bsd_kvm_open): Constify.
1944 * corelow.c (core_open): Constify.
1945 * ctf.c (ctf_open): Constify.
1946 * dbug-rom.c (dbug_open): Constify.
1947 * exec.c (exec_open): Constify.
1948 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1949 * microblaze-rom.c (picobug_open): Constify.
1950 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1952 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1953 * record-btrace.c (record_btrace_open): Constify.
1954 * record-full.c (record_full_core_open_1, record_full_open_1)
1955 (record_full_open): Constify.
1956 * remote-m32r-sdi.c (m32r_open): Constify.
1957 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1958 (rockhopper_open, lsi_open): Constify.
1959 * remote-sim.c (gdbsim_open): Constify.
1960 * remote.c (remote_open, extended_remote_open, remote_open_1):
1962 * target.h (struct target_ops) <to_open>: Make "arg" const.
1963 * tracefile-tfile.c (tfile_open): Constify.
1965 2014-07-30 Tom Tromey <tromey@redhat.com>
1967 * breakpoint.c (map_breakpoint_numbers): Update.
1968 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1969 (get_number_const): New function.
1970 (get_number): Rewrite using get_number_const.
1971 (init_number_or_range): Make "string" const.
1972 (number_is_in_list): Make "list" const.
1973 * cli/cli-utils.h (get_number_const): Declare.
1974 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1975 (init_number_or_range, number_is_in_list): Update.
1976 * printcmd.c (map_display_numbers): Update.
1977 * value.c (value_from_history_ref): Constify.
1978 * value.h (value_from_history_ref): Update.
1980 2014-07-30 Tom Tromey <tromey@redhat.com>
1982 * corefile.c (hook_type, call_extra_exec_file_hooks)
1983 (specify_exec_file_hook): Constify.
1984 * exec.c (exec_file_attach): Make "filename" const.
1985 * gdbcore.h (deprecated_exec_file_display_hook)
1986 (specify_exec_file_hook, exec_file_attach): Constify.
1987 * main.c (captured_main): Use catch_command_errors_const.
1989 2014-07-30 Tom Tromey <tromey@redhat.com>
1991 * target.c (open_target): New function.
1992 (add_target_with_completer, add_deprecated_target_alias): Use
1993 set_cmd_sfunc, set_cmd_context.
1994 (debug_to_open): Remove.
1995 (setup_target_debug): Update.
1997 2014-07-30 Yao Qi <yao@codesourcery.com>
1999 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2001 * parse.c (exp_iterate): Update comments.
2003 2014-07-30 Gary Benson <gbenson@redhat.com>
2005 * common/common-defs.h: New file.
2006 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2007 * defs.h: Include common-defs.h.
2008 Do not include config.h or build-gnulib/config.h.
2010 2014-07-30 Gary Benson <gbenson@redhat.com>
2012 * common/common-utils.h: Do not include config.h.
2013 * nat/linux-btrace.h: Likewise.
2015 2014-07-30 Gary Benson <gbenson@redhat.com>
2017 * btrace.c: Include defs.h.
2018 * common/ptid.c: Include defs.h or server.h as appropriate.
2019 * nat/mips-linux-watch.c: Likewise.
2021 2014-07-29 Tom Tromey <tromey@redhat.com>
2023 * target.c (target_is_pushed): Simplify.
2025 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2029 2014-07-29 Yao Qi <yao@codesourcery.com>
2032 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2034 2014-07-28 Doug Evans <xdje42@gmail.com>
2037 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2038 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2041 2014-07-28 Will Newton <will.newton@linaro.org>
2043 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2044 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2045 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2046 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2047 (THUMB2_EABI_SYSCALL): Likewise.
2048 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2050 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2051 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2053 2014-07-27 Doug Evans <xdje42@gmail.com>
2055 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2057 2014-07-27 Doug Evans <xdje42@gmail.com>
2059 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2061 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2062 Doug Evans <xdje42@gmail.com>
2065 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2066 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2067 * configure.ac: Try to use guild to compile an scm file, if it fails
2068 then disable guile support.
2069 * configure: Regenerate.
2070 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2072 (GUILE_COMPILED_FILES): New variable.
2073 (GUILE_FILES) Update.
2074 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2075 (stamp-guile): Compile scm files.
2076 * guile/guile.c (boot_guile_support): New function.
2077 (standard_throw_args_p): New function.
2078 (print_standard_throw_error, print_throw_error): New functions.
2079 (handle_boot_error): New function.
2080 (initialize_scheme_side): Rewrite to call boot_guile_support.
2081 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2082 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2084 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2085 Doug Evans <xdje42@gmail.com>
2088 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2089 * guile/lib/gdb/support.scm: New file.
2090 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2091 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2093 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2095 (%assert-type): Ditto, and renamed to assert-type.
2096 (%exception-print-style): Delete.
2098 2014-07-26 Doug Evans <xdje42@gmail.com>
2101 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2102 * configure: Regenerate.
2103 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2105 (PYTHON_FILES): New variable.
2106 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2107 (GUILE_FILES): New variable.
2108 (stamp-python, install-python, uninstall-python): Handle empty
2110 (stamp-guile, install-guile, uninstall-guile): Ditto.
2112 2014-07-26 Doug Evans <xdje42@gmail.com>
2115 * guile/lib/gdb.scm (pretty-printers): Export.
2116 (set-pretty-printers!): Export.
2117 * guile/lib/gdb/printing.scm (gdb module): Update.
2118 (prepend-pretty-printer!, append-pretty-printer!): Update.
2119 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2120 (pretty_printer_list_var): Delete.
2121 (pretty_printer_list): New static global.
2122 (gdbscm_pretty_printers): New function.
2123 (gdbscm_set_pretty_printers_x): New function.
2124 (ppscm_find_pretty_printer_from_gdb): Update.
2125 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2126 (gdbscm_initialize_pretty_printers): Update.
2128 2014-07-26 Doug Evans <xdje42@gmail.com>
2131 * configure.ac: Add check for header gc/gc.h.
2132 Add check for function setenv.
2133 * configure: Regenerate.
2134 * config.in: Regenerate.
2135 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2137 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2139 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2140 variation in gdbarch matching.
2142 2014-07-25 Tom Tromey <tromey@redhat.com>
2144 * exec.c (using_exec_ops): Remove.
2145 (exec_close_1): Update. Remove extraneous block, reindent.
2146 (add_target_sections): Use target_is_pushed.
2148 2014-07-25 Pedro Alves <palves@redhat.com>
2150 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2151 * monitor.c (monitor_create_inferior): Likewise.
2152 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2153 * remote-sim.c (gdbsim_create_inferior): Likewise.
2154 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2155 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2156 * windows-nat.c (do_initial_windows_stuff): Likewise.
2158 2014-07-25 Pedro Alves <palves@redhat.com>
2160 * NEWS: Mention signal passing and "signal" command changes.
2161 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2163 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2165 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2166 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2167 (jump_command): Adjust clear_proceed_status call.
2168 (signal_command): Warn if other thread that are resumed have
2169 signals that will be delivered. Adjust clear_proceed_status call.
2170 (until_next_command, finish_command)
2171 (proceed_after_attach_callback, attach_command_post_wait)
2172 (attach_command): Adjust clear_proceed_status call.
2173 * infrun.c (proceed_after_vfork_done): Likewise.
2174 (proceed_after_attach_callback): Adjust comment.
2175 (clear_proceed_status_thread): Clear stop_signal if not in pass
2177 (clear_proceed_status_callback): Delete.
2178 (clear_proceed_status): New 'step' parameter. Only clear the
2179 proceed status of threads the command being prepared is about to
2181 (proceed): If passed in an explicit signal, override stop_signal
2182 with it. Don't pass the last stop signal to the thread we're
2184 (init_wait_for_inferior): Adjust clear_proceed_status call.
2185 (switch_back_to_stepped_thread): Clear the signal if it should not
2187 * infrun.h (clear_proceed_status): New 'step' parameter.
2188 (user_visible_resume_ptid): Add comment.
2189 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2190 signal is in pass state.
2191 * remote.c (append_pending_thread_resumptions): Likewise.
2192 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2194 2014-07-25 Tom Tromey <tromey@redhat.com>
2196 * target.h (target_stopped_data_address)
2197 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2200 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2202 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2204 (avr_pointer_to_address): Likewise.
2206 2014-07-24 Tom Tromey <tromey@redhat.com>
2208 * monitor.c (compile_pattern): Update.
2209 * target.h (struct target_ops) <to_shortname, to_longname,
2212 2014-07-24 Tom Tromey <tromey@redhat.com>
2214 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2215 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2216 (add_info_alias, add_com): Make "doc" const.
2217 (print_doc_line): Make "str" const.
2218 (delete_cmd): Update.
2219 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2220 (print_doc_line): Update.
2221 * cli/cli-script.c (document_command): Update.
2222 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2223 (add_com, add_info, add_info_alias): Update.
2224 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2225 * python/py-cmd.c (cmdpy_destroyer): Update.
2227 2014-07-24 Tom Tromey <tromey@redhat.com>
2229 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2230 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2231 (help_cmd_list): Constify.
2232 (lookup_cmd): Update.
2233 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2235 (help_cmd_list, apropos_cmd): Update.
2236 * cli/cli-script.c (show_user): Update.
2237 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2238 * cli/cli-setshow.h (cmd_show_list): Update.
2239 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2240 (cmd_show_list): Update.
2241 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2242 * python/py-cmd.c (cmdpy_destroyer): Update.
2244 2014-07-24 Tom Tromey <tromey@redhat.com>
2246 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2247 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2249 * command.h (deprecate_cmd): Update.
2250 * maint.c (maintenance_do_deprecate): Add casts.
2252 2014-07-24 Tom Tromey <tromey@redhat.com>
2254 * cli/cli-decode.c (help_cmd): Make parameter "const".
2255 * cli/cli-decode.h (help_cmd): Update.
2257 2014-07-24 Tom Tromey <tromey@redhat.com>
2259 * stack.c (up_silently_base, down_silently_base): Make argument
2262 2014-07-24 Tom Tromey <tromey@redhat.com>
2264 * solib.c (solib_add): Make "pattern" const.
2265 * solib.h (solib_add): Update.
2267 2014-07-24 Tom Tromey <tromey@redhat.com>
2269 * remote.c (remote_serial_open, print_packet, putpkt)
2270 (putpkt_binary): Constify.
2271 * remote.h (putpkt): Update.
2273 2014-07-24 Tom Tromey <tromey@redhat.com>
2275 * monitor.c (monitor_open): Make "args" const.
2276 * monitor.h (monitor_open): Update.
2278 2014-07-24 Tom Tromey <tromey@redhat.com>
2280 * maint.c (match_bfd_flags): Make "string" const.
2281 (print_bfd_section_info): Remove casts.
2282 (print_objfile_section_info): Make "string" const.
2284 2014-07-24 Tom Tromey <tromey@redhat.com>
2286 * inf-child.c (inf_child_open_target): Make "arg" const.
2287 * inf-child.h (inf_child_open_target): Update.
2289 2014-07-24 Tom Tromey <tromey@redhat.com>
2291 * environ.c (unset_in_environ): Make "var" const.
2292 * environ.h (unset_in_environ): Update.
2294 2014-07-24 Tom Tromey <tromey@redhat.com>
2296 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2298 (scan_filename_with_cleanup): Likewise.
2299 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2300 Make arguments const.
2301 (restore_command): Update.
2303 2014-07-24 Pedro Alves <palves@redhat.com>
2305 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2307 2014-07-24 Tom Tromey <tromey@redhat.com>
2308 Gary Benson <gbenson@redhat.com>
2310 * nat/linux-ptrace.c (additional_flags): New global.
2311 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2312 additional_flags; don't check GDBSERVER.
2313 (linux_ptrace_set_additional_flags): New function.
2314 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2316 * linux-nat.c (_initialize_linux_nat): Call
2317 linux_ptrace_set_additional_flags.
2319 2014-07-24 Tom Tromey <tromey@redhat.com>
2321 * make-target-delegates (munge_type, write_debugmethod): New
2323 (debug_names): New global.
2324 ($TARGET_DEBUG_PRINTER): New global.
2325 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2327 Write debug methods. Generate init_debug_target.
2328 * target-debug.h: New file.
2329 * target-delegates.c: Rebuild.
2330 * target.c: Include target-debug.h.
2331 (debug_target): Hoist definition.
2332 (target_kill, target_get_section_table, target_memory_map)
2333 (target_flash_erase, target_flash_done, target_detach)
2334 (target_disconnect, target_wait, target_resume)
2335 (target_pass_signals, target_program_signals, target_follow_fork)
2336 (target_mourn_inferior, target_search_memory)
2337 (target_thread_address_space, target_close)
2338 (target_find_new_threads, target_core_of_thread)
2339 (target_verify_memory, target_insert_mask_watchpoint)
2340 (target_remove_mask_watchpoint): Remove targetdebug code.
2341 (debug_to_post_attach, debug_to_prepare_to_store)
2342 (debug_to_files_info, debug_to_insert_breakpoint)
2343 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2344 (debug_to_region_ok_for_hw_watchpoint)
2345 (debug_to_can_accel_watchpoint_condition)
2346 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2347 (debug_to_watchpoint_addr_within_range)
2348 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2349 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2350 (debug_to_terminal_init, debug_to_terminal_inferior)
2351 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2352 (debug_to_terminal_save_ours, debug_to_terminal_info)
2353 (debug_to_load, debug_to_post_startup_inferior)
2354 (debug_to_insert_fork_catchpoint)
2355 (debug_to_remove_fork_catchpoint)
2356 (debug_to_insert_vfork_catchpoint)
2357 (debug_to_remove_vfork_catchpoint)
2358 (debug_to_insert_exec_catchpoint)
2359 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2360 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2361 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2362 (setup_target_debug): Call init_debug_target.
2363 * target.h (TARGET_DEBUG_PRINTER): New macro.
2364 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2365 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2367 2014-07-24 Gary Benson <gbenson@redhat.com>
2369 * exceptions.h (throw_vfatal): Renamed to...
2370 (throw_vquit): New declaration.
2371 (throw_quit): Likewise.
2372 * exceptions.c (throw_vfatal): Renamed to...
2373 (throw_vquit): New function.
2374 (throw_quit): Likewise.
2375 (throw_error): Call throw_verror rather than throw_it.
2376 * utils.h (vfatal): Removed.
2378 * utils.c (vfatal): Removed.
2380 (internal_verror): Replaced call to fatal with call to throw_quit.
2381 (quit): Replaced calls to fatal with calls to throw_quit.
2383 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2385 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2388 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2390 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2391 less than zero in conditional expression.
2393 2014-07-23 Tom Tromey <tromey@redhat.com>
2395 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2396 ($INTRO_PART): Don't match whitespace.
2397 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2399 ($METHOD): Add $METHOD_TRAILER.
2401 (scan_target_h): New sub.
2402 Change main loop not to collect state.
2403 * target-delegates.c: Rebuild.
2405 2014-07-23 Gary Benson <gbenson@redhat.com>
2407 * cp-support.c (gdb_demangle): Fix build on systems without
2410 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2412 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2413 for reference entry value target data value.
2415 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2417 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2418 value_available_contents_eq.
2420 2014-07-22 Pedro Alves <palves@redhat.com>
2422 * value.c (allocate_optimized_out_value): Don't mark value as
2425 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2427 * MAINTAINERS (Write After Approval): Update my email address.
2429 2014-07-20 Doug Evans <dje@google.com>
2432 * remote.c (putpkt_binary): Add text to error message.
2434 2014-07-20 Yao Qi <yao@codesourcery.com>
2436 * eval.c: Remove "Chill" from comments.
2437 * gdbtypes.h: Likewise.
2438 * symtab.h: Likewise.
2440 2014-07-20 Yao Qi <yao@codesourcery.com>
2442 * std-operator.def: Update comments to TERNOP_SLICE.
2444 2014-07-20 Yao Qi <yao@codesourcery.com>
2446 * std-operator.def: Remove BINOP_RANGE.
2447 * breakpoint.c (watchpoint_exp_is_const): Update.
2448 * expprint.c (dump_subexp_body_standard): Likewise.
2449 * eval.c (init_array_element): Remove dead code.
2450 (evaluate_subexp_standard): Likewise.
2452 2014-07-20 Yao Qi <yao@codesourcery.com>
2454 * std-operator.def: Remove BINOP_IN.
2455 * breakpoint.c (watchpoint_exp_is_const): Update.
2456 * eval.c (evaluate_subexp_standard): Likewise.
2457 * expprint.c (dump_subexp_body_standard): Likewise.
2459 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2461 * microblaze-tdep.c (microblaze_register_names): Add
2462 the rshr and rslr register names.
2463 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2464 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2465 Use of tdesc_numbered_register. Use of
2466 microblaze_register_g_packet_guesses. Use of
2467 tdesc_use_registers. Use of set_gdbarch_register_type.
2468 (microblaze_register_g_packet_guesses): New.
2469 * microblaze-tdep.h (microblaze_reg_num): Add
2470 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2471 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2472 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2473 * features/microblaze-core.xml: New file.
2474 * features/microblaze-stack-protect.xml: New file.
2475 * features/microblaze-with-stack-protect.c: New file.
2476 * features/microblaze-with-stack-protect.xml: New file.
2477 * features/microblaze.xml: New file.
2478 * features/microblaze.c: New file.
2479 * features/Makefile (microblaze-with-stack-protect): Add
2480 microblaze-with-stack-protect microblaze and microblaze-expedite.
2481 * regformats/microblaze-with-stack-protect.dat: New file.
2482 * regformats/microblaze.dat: New file.
2483 * doc/gdb.texinfo (MicroBlaze Features): Added.
2485 2014-07-18 Tom Tromey <tromey@redhat.com>
2487 * exec.c (exec_ops): Now static.
2488 * exec.h (exec_ops): Don't declare.
2490 2014-07-18 Tom Tromey <tromey@redhat.com>
2492 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2493 to find_target_beneath.
2494 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2495 find_target_beneath.
2496 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2498 2014-07-18 Tom Tromey <tromey@redhat.com>
2501 * utils.c (quit): Use target_supports_terminal_ours.
2502 * target.h (target_supports_terminal_ours): Declare.
2503 * target.c (target_supports_delete_record): Don't check
2504 to_delete_record against NULL.
2505 (target_supports_terminal_ours): New function.
2507 2014-07-18 Tom Tromey <tromey@redhat.com>
2510 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2511 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2512 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2513 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2514 * windows-nat.c (windows_xfer_partial): Always delegate.
2515 * record-btrace.c (record_btrace_xfer_partial): Simplify
2517 (record_btrace_fetch_registers, record_btrace_store_registers)
2518 (record_btrace_prepare_to_store, record_btrace_resume)
2519 (record_btrace_wait, record_btrace_find_new_threads)
2520 (record_btrace_thread_alive): Likewise.
2521 * procfs.c (procfs_xfer_partial): Always delegate.
2522 * corelow.c (core_xfer_partial): Always delegate.
2523 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2525 2014-07-18 Tom Tromey <tromey@redhat.com>
2527 * exec.c (exec_make_note_section): Move earlier.
2529 2014-07-17 Doug Evans <dje@google.com>
2532 * maint.c (count_symtabs_and_blocks): Handle NULL
2533 current_program_space.
2534 (report_command_stats): Check global enabled flag in addition to
2535 recorded enabled flag.
2536 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2538 2014-07-16 Pedro Alves <palves@redhat.com>
2540 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2542 2014-07-16 Tom Tromey <tromey@redhat.com>
2544 * target.h (struct target_ops) <to_delete_record>: Reformat
2547 2014-07-16 Tom Tromey <tromey@redhat.com>
2549 * target-delegates.c: Rebuild.
2551 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2553 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2554 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2555 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2556 (avr_pointer_to_address): Likewise.
2557 (avr_address_class_type_flags): New function.
2558 (avr_address_class_type_flags_to_name): Likewise.
2559 (avr_address_class_name_to_type_flags): Likewise.
2560 (avr_gdbarch_init): Set address_class_type_flags,
2561 address_class_type_flags_to_name and
2562 address_class_name_to_type_flags.
2564 2014-07-15 Pedro Alves <palves@redhat.com>
2566 * linux-nat.c (kill_callback): Save errno and work with saved
2569 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2571 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2573 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2575 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2576 breakpoint support correctly.
2578 2014-07-14 Pedro Alves <palves@redhat.com>
2580 * utils.c (prompt_for_continue): Call target_terminal_ours.
2582 2014-07-14 Pedro Alves <palves@redhat.com>
2584 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2585 catch_errors. Don't re-enable stdin or notify observers where,
2587 (fetch_inferior_event_wrapper): Delete.
2589 2014-07-14 Pedro Alves <palves@redhat.com>
2592 * top.c: Include "inf-loop.h".
2593 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2595 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2597 (gdb_readline_wrapper): Store whether the target is async, and
2600 2014-07-14 Pedro Alves <palves@redhat.com>
2603 * top.c (gdb_readline_wrapper_line): Tweak comment.
2604 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2605 the input handler callback.
2607 2014-07-14 Pedro Alves <palves@redhat.com>
2610 * main.c: Include event-top.h.
2611 (handle_command_errors): New function.
2612 (catch_command_errors, catch_command_errors_const): Use it.
2614 2014-07-14 Pedro Alves <palves@redhat.com>
2616 * exceptions.c (catch_command_errors, catch_command_errors_const):
2618 * exceptions.h (catch_command_errors_ftype)
2619 (catch_command_errors_const_ftype): Moved to main.c.
2620 (catch_command_errors, catch_command_errors_const): Delete
2622 * main.c (catch_command_errors_ftype)
2623 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2624 (catch_command_errors, catch_command_errors_const)): Moved here
2625 from exceptions.c and make static.
2627 2014-07-14 Pedro Alves <palves@redhat.com>
2629 * exceptions.c (print_any_exception): Delete.
2630 (catch_exceptions_with_msg): Use exception_print instead of
2631 print_any_exception.
2632 (catch_errors): Use exception_fprintf instead of
2633 print_any_exception.
2634 (catch_command_errors, catch_command_errors_const): Use
2635 exception_print instead of print_any_exception.
2637 2014-07-14 Pedro Alves <palves@redhat.com>
2639 * infcall.c (run_inferior_call): Set 'sync_execution' while
2640 running the inferior call.
2642 2014-07-14 Pedro Alves <palves@redhat.com>
2644 * value.c (value_contents_equal): Delete function.
2645 * value.h (value_contents_equal): Delete declaration.
2647 2014-07-14 Tom Tromey <tromey@redhat.com>
2650 * gdbtypes.c (is_dynamic_type_internal): New function, from
2652 (is_dynamic_type): Rewrite.
2653 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2654 (resolve_dynamic_struct): Likewise.
2655 (resolve_dynamic_type_internal): New function, from
2656 resolve_dynamic_type.
2657 (resolve_dynamic_type): Rewrite.
2659 2014-07-14 Tom Tromey <tromey@redhat.com>
2661 * target.c (target_require_runnable): Also check record_stratum.
2664 2014-07-11 Yao Qi <yao@codesourcery.com>
2666 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2667 thumb_instruction_restores_sp return true.
2669 2014-07-11 Yao Qi <yao@codesourcery.com>
2671 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2672 (thumb_in_function_epilogue_p): Call
2673 thumb_instruction_restores_sp.
2675 2014-07-11 Yao Qi <yao@codesourcery.com>
2677 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2679 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2681 2014-07-11 Gary Benson <gbenson@redhat.com>
2683 * amd64-linux-nat.c (gdbcore.h): Remove include.
2684 (regset.h): Likewise.
2685 (nat/linux-btrace.h): Likewise.
2686 (btrace.h): Likewise.
2687 (gdb_assert.h): Likewise.
2688 (string.h): Likewise.
2689 (sys/uio.h): Likewise.
2690 (sys/debugreg.h): Likewise.
2691 (sys/syscall.h): Likewise.
2692 (sys/procfs.h): Likewise.
2693 (sys/user.h): Likewise.
2694 (asm/ptrace.h): Likewise.
2695 (i386-nat.h): Likewise.
2696 * i386-linux-nat.c (i386-nat.h): Likewise.
2697 (regset.h): Likewise.
2698 (target.h): Likewise.
2699 (linux-nat.h): Likewise.
2700 (nat/linux-btrace.h): Likewise.
2701 (btrace.h): Likewise.
2702 (gdb_assert.h): Likewise.
2703 (string.h): Likewise.
2704 (sys/uio.h): Likewise.
2705 (sys/user.h): Likewise.
2706 (sys/procfs.h): Likewise.
2707 (sys/reg.h): Likewise.
2708 (sys/debugreg.h): Likewise.
2709 (ORIG_EAX): Remove definition.
2711 2014-07-11 Gary Benson <gbenson@redhat.com>
2713 * i386-linux-nat.h: New file.
2714 * x86-linux-nat.h: Likewise.
2715 * x86-linux-nat.c: Likewise.
2716 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2717 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2718 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2719 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2720 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2721 (PTRACE_SETREGSET): Likewise.
2722 (arch_lwp_info): Now in x86-linux-nat.c.
2723 (have_ptrace_getregset): Now in x86-linux-nat.h.
2724 (x86_linux_dr_get): Now in x86-linux-nat.c.
2725 (x86_linux_dr_set): Likewise.
2726 (x86_linux_dr_get_addr): Likewise.
2727 (x86_linux_dr_get_control): Likewise.
2728 (x86_linux_dr_get_status): Likewise.
2729 (update_debug_registers_callback): Likewise.
2730 (x86_linux_dr_set_control): Likewise.
2731 (x86_linux_dr_set_addr): Likewise.
2732 (x86_linux_prepare_to_resume): Likewise.
2733 (x86_linux_new_thread): Likewise.
2734 (x86_linux_new_fork): Likewise.
2735 (x86_linux_get_thread_area): Likewise.
2736 (super_post_startup_inferior): Likewise.
2737 (x86_linux_child_post_startup_inferior): Likewise.
2738 (AMD64_LINUX_USER64_CS): Likewise.
2739 (AMD64_LINUX_X32_DS): Likewise.
2740 (x86_linux_read_description): Likewise.
2741 (x86_linux_enable_btrace): Likewise.
2742 (x86_linux_disable_btrace): Likewise.
2743 (x86_linux_teardown_btrace): Likewise.
2744 (x86_linux_read_btrace): Likewise.
2745 (x86_linux_create_target): Likewise.
2746 (x86_linux_add_target): Likewise.
2747 * i386-linux-nat.c (x86-linux-nat.h): New include.
2748 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2749 (PTRACE_SETREGSET): Likewise.
2750 (arch_lwp_info): Now in x86-linux-nat.c.
2751 (have_ptrace_getregset): Now in x86-linux-nat.h.
2752 (x86_linux_dr_get): Now in x86-linux-nat.c.
2753 (x86_linux_dr_set): Likewise.
2754 (x86_linux_dr_get_addr): Likewise.
2755 (x86_linux_dr_get_control): Likewise.
2756 (x86_linux_dr_get_status): Likewise.
2757 (update_debug_registers_callback): Likewise.
2758 (x86_linux_dr_set_control): Likewise.
2759 (x86_linux_dr_set_addr): Likewise.
2760 (x86_linux_prepare_to_resume): Likewise.
2761 (x86_linux_new_thread): Likewise.
2762 (x86_linux_new_fork): Likewise.
2763 (x86_linux_get_thread_area): Likewise.
2764 (super_post_startup_inferior): Likewise.
2765 (x86_linux_child_post_startup_inferior): Likewise.
2766 (AMD64_LINUX_USER64_CS): Likewise.
2767 (AMD64_LINUX_X32_DS): Likewise.
2768 (x86_linux_read_description): Likewise.
2769 (x86_linux_enable_btrace): Likewise.
2770 (x86_linux_disable_btrace): Likewise.
2771 (x86_linux_teardown_btrace): Likewise.
2772 (x86_linux_read_btrace): Likewise.
2773 (x86_linux_create_target): Likewise.
2774 (x86_linux_add_target): Likewise.
2776 2014-07-11 Gary Benson <gbenson@redhat.com>
2778 * amd64-linux-nat.c: Comment and whitespace changes.
2779 * i386-linux-nat.c: Comment and whitespace changes.
2781 2014-07-11 Gary Benson <gbenson@redhat.com>
2783 * amd64-linux-nat.c (x86_linux_create_target): New function.
2784 (x86_linux_add_target): Likewise.
2785 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2786 * i386-linux-nat.c (x86_linux_create_target): New function.
2787 (x86_linux_add_target): Likewise.
2788 (_initialize_i386_linux_nat): Delegate to the above new functions.
2790 2014-07-11 Gary Benson <gbenson@redhat.com>
2792 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2793 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2794 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2795 (ps_get_thread_area): Delegate to the above.
2797 2014-07-11 Gary Benson <gbenson@redhat.com>
2799 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2800 x86_linux_read_description. All uses updated. amd64-specific
2801 code conditionalized. Conditionalized i386-specific code added.
2802 Redundant cast removed.
2803 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2804 x86_linux_read_description. All uses updated. i386-specific
2805 code conditionalized. Conditionalized amd64-specific code added.
2806 One sizeof replaced with the actual type it is describing.
2808 2014-07-11 Gary Benson <gbenson@redhat.com>
2810 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2811 x86_linux_dr_get. All uses updated.
2812 (amd64_linux_dr_set): Renamed to
2813 x86_linux_dr_set. All uses updated.
2814 (amd64_linux_dr_get_addr): Renamed to
2815 x86_linux_dr_get_addr. All uses updated.
2816 (amd64_linux_dr_get_control): Renamed to
2817 x86_linux_dr_get_control. All uses updated.
2818 (amd64_linux_dr_get_status): Renamed to
2819 x86_linux_dr_get_status. All uses updated.
2820 (amd64_linux_dr_set_control): Renamed to
2821 x86_linux_dr_set_control. All uses updated.
2822 (amd64_linux_dr_set_addr): Renamed to
2823 x86_linux_dr_set_addr. All uses updated.
2824 (amd64_linux_prepare_to_resume): Renamed to
2825 x86_linux_prepare_to_resume. All uses updated.
2826 (amd64_linux_new_thread): Renamed to
2827 x86_linux_new_thread. All uses updated.
2828 (amd64_linux_new_fork): Renamed to
2829 x86_linux_new_fork. All uses updated.
2830 (amd64_linux_child_post_startup_inferior): Renamed to
2831 x86_linux_child_post_startup_inferior. All uses updated.
2832 (amd64_linux_enable_btrace): Renamed to
2833 x86_linux_enable_btrace. All uses updated.
2834 (amd64_linux_disable_btrace): Renamed to
2835 x86_linux_disable_btrace. All uses updated.
2836 (amd64_linux_teardown_btrace): Renamed to
2837 x86_linux_teardown_btrace. All uses updated.
2838 (amd64_linux_read_btrace): Renamed to
2839 x86_linux_read_btrace. All uses updated.
2840 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2841 x86_linux_dr_get. All uses updated.
2842 (i386_linux_dr_set): Renamed to
2843 x86_linux_dr_set. All uses updated.
2844 (i386_linux_dr_get_addr): Renamed to
2845 x86_linux_dr_get_addr. All uses updated.
2846 (i386_linux_dr_get_control): Renamed to
2847 x86_linux_dr_get_control. All uses updated.
2848 (i386_linux_dr_get_status): Renamed to
2849 x86_linux_dr_get_status. All uses updated.
2850 (i386_linux_dr_set_control): Renamed to
2851 x86_linux_dr_set_control. All uses updated.
2852 (i386_linux_dr_set_addr): Renamed to
2853 x86_linux_dr_set_addr. All uses updated.
2854 (i386_linux_prepare_to_resume): Renamed to
2855 x86_linux_prepare_to_resume. All uses updated.
2856 (i386_linux_new_thread): Renamed to
2857 x86_linux_new_thread. All uses updated.
2858 (i386_linux_new_fork): Renamed to
2859 x86_linux_new_fork. All uses updated.
2860 (i386_linux_child_post_startup_inferior): Renamed to
2861 x86_linux_child_post_startup_inferior. All uses updated.
2862 (i386_linux_enable_btrace): Renamed to
2863 x86_linux_enable_btrace. All uses updated.
2864 (i386_linux_disable_btrace): Renamed to
2865 x86_linux_disable_btrace. All uses updated.
2866 (i386_linux_teardown_btrace): Renamed to
2867 x86_linux_teardown_btrace. All uses updated.
2868 (i386_linux_read_btrace): Renamed to
2869 x86_linux_read_btrace. All uses updated.
2871 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2873 * remote.c (extended_remote_post_attach): New function.
2874 (init_extended_remote_ops): Install it as to_post_attach method.
2876 2014-07-09 Pedro Alves <palves@redhat.com>
2878 * infcmd.c (attach_command_post_wait): Don't call
2879 target_terminal_inferior here.
2880 (attach_command): Call it here instead.
2882 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2884 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2886 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2887 from varobj.c, with additional checks.
2888 (c_varobj_ops): Fill in is_path_expr_parent field.
2889 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2890 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2892 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2894 (varobj_default_is_path_expr_parent): New function.
2895 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2896 (varobj_default_is_path_expr_parent): Declare new function.
2898 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2900 * infcmd.c (finish_backward): Turn internal error into normal error.
2902 2014-07-07 Pedro Alves <palves@redhat.com>
2905 * remote.c (async_handle_remote_sigint)
2906 (async_handle_remote_sigint_twice): Call
2907 gdb_call_async_signal_handler instead of
2908 mark_async_signal_handler.
2910 2014-07-07 Tom Tromey <tromey@redhat.com>
2912 * target-delegates.c: Rebuild.
2913 * target.c (target_info_record): Remove.
2914 * record.c (info_record_command): Unconditionally call
2916 * target.h (struct target_ops) <to_info_record>: Use
2917 TARGET_DEFAULT_IGNORE.
2918 (target_info_record): Remove.
2920 2014-07-07 Tom Tromey <tromey@redhat.com>
2922 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2923 TARGET_DEFAULT_NORETURN.
2924 * target.c (generic_tls_error): New function.
2925 (target_translate_tls_address): Don't search target stack.
2926 * target-delegates.c: Rebuild.
2927 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2929 * linux-thread-db.c (thread_db_get_thread_local_address):
2930 Unconditionally call beneath target.
2932 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2934 * cli/cli-logging.c (pop_output_files): Assign targerr to
2937 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2939 * MAINTAINERS (Write After Approval): Update my email address.
2941 2014-07-02 Gary Benson <gbenson@redhat.com>
2943 * proc-service.c (ps_xfer_memory): Update comment.
2944 (ps_pstop): Remove unused function.
2945 (ps_pcontinue): Likewise.
2946 (ps_lstop): Likewise.
2947 (ps_lcontinue): Likewise.
2948 (ps_lgetxregsize): Likewise.
2949 (ps_lgetxregs): Likewise.
2950 (ps_lsetxregs): Likewise.
2951 (ps_plog): Likewise.
2952 (ps_ptread): Likewise.
2953 (ps_ptwrite): Likewise.
2955 2014-07-01 Mark Wielaard <mjw@redhat.com>
2957 * dwarf2read.c (add_array_cv_type): New function.
2958 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2959 (read_tag_volatile_type): Likewise.
2961 2014-07-01 Tom Tromey <tromey@redhat.com>
2963 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2964 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2965 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2966 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2967 * command.h (cmd_cfunc_ftype): Move earlier.
2968 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2969 (add_com, add_info): Use cmd_cfunc_ftype.
2971 2014-06-30 Tom Tromey <tromey@redhat.com>
2973 * symtab.c (operator_chars): Make parameters and return type
2975 (file_matches): Make "files" const.
2976 (struct search_symbols_data) <files>: Now const.
2977 (search_symbols): Make "regexp" and "files" parameters const.
2979 (symtab_symbol_info): Remove cast.
2980 (rbreak_command): Update.
2981 * symtab.h (search_symbols): Update.
2983 2014-06-27 Yao Qi <yao@codesourcery.com>
2985 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2986 Change parameter type to 'struct thread_info *'. Caller
2988 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2990 * dummy-frame.c (struct dummy_frame_id): New.
2991 (dummy_frame_id_eq): New function.
2992 (struct dummy_frame) <id>: Change its type to 'struct
2994 (dummy_frame_push): Add parameter ptid and save it in
2996 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2998 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3000 (lookup_dummy_frame): Change parameter type to 'struct
3001 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3002 instead of frame_id_eq.
3003 (dummy_frame_pop): Add parameter ptid. Callers updated.
3004 Update comments. Compose dummy_frame_id and pass it to
3006 (dummy_frame_discard): Add parameter ptid.
3007 (dummy_frame_sniffer): Compose dummy_frame_id and call
3008 dummy_frame_id_eq instead of frame_id_eq.
3009 (fprint_dummy_frames): Print ptid.
3010 * dummy-frame.h: Remove comments.
3011 (dummy_frame_push): Add ptid in declaration.
3012 (dummy_frame_pop, dummy_frame_discard): Likewise.
3014 2014-06-26 Tom Tromey <tromey@redhat.com>
3016 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3017 * command.h (error_no_arg): Update.
3019 2014-06-26 Tom Tromey <tromey@redhat.com>
3021 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3022 (do_show_command): Make "arg" const.
3023 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3025 2014-06-26 Tom Tromey <tromey@redhat.com>
3027 * record-full.c (record_full_get_bookmark): Make "args" const.
3028 (record_full_goto_bookmark): Make "raw_bookmark" const.
3029 * record.c (record_goto): New function.
3030 (cmd_record_goto): Use it. Now static.
3031 * record.h (record_goto): Declare.
3032 (cmd_record_goto): Remove declaration.
3033 * target-delegates.c: Rebuild.
3034 * target.h (struct target_ops) <to_get_bookmark,
3035 to_goto_bookmark>: Make parameter const.
3037 2014-06-26 Tom Tromey <tromey@redhat.com>
3039 * defs.h (generic_load): Update.
3040 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3041 * monitor.c (monitor_load): Make "args" const.
3042 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3043 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3045 (mips_load): Make "file" const.
3046 * remote-sim.c (gdbsim_load): Make "args" const.
3047 * remote.c (remote_load): Make "name" const.
3048 * symfile.c (generic_load): Make "args" const.
3049 * target-delegates.c: Rebuild.
3050 * target.c (target_load): Make "arg" const.
3051 (debug_to_load): Make "args" const.
3052 * target.h (struct target_ops) <to_load>: Make parameter const.
3053 (target_load): Update.
3055 2014-06-26 Tom Tromey <tromey@redhat.com>
3058 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3059 (dwarf2_physname, read_partial_die)
3060 (guess_partial_die_structure_name, fixup_partial_die)
3061 (guess_full_die_structure_name, anonymous_struct_prefix)
3062 (dwarf2_name): Use per-BFD obstack.
3064 2014-06-26 Yao Qi <yao@codesourcery.com>
3066 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3067 dummyframe and this_id into inner block below.
3069 2014-06-26 Yao Qi <yao@codesourcery.com>
3071 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3072 with "signal_pass[0]" in the initialization of signal_pass.
3074 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3076 * record-btrace.c (record_btrace_generating_corefile)
3077 (record_btrace_prepare_to_generate_core)
3078 (record_btrace_done_generating_core): New.
3079 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3080 (record_btrace_store_registers, record_btrace_prepare_to_store):
3081 Forward request when generating a core file.
3082 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3083 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3084 to_done_generating_core.
3086 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3088 * target.h (target_ops) <to_prepare_to_generate_core>
3089 <to_done_generating_core>: New.
3090 (target_prepare_to_generate_core, target_done_generating_core): New.
3091 * target.c (target_prepare_to_generate_core)
3092 (target_done_generating_core): New.
3093 * target-delegates.c: Regenerate.
3094 * gcore.c: (write_gcore_file): Rename to ...
3095 (write_gcore_file_1): ...this.
3096 (write_gcore_file): Call target_prepare_to_generate_core
3097 and target_done_generating_core.
3099 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3101 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3102 * gcore.c (write_gcore_file): Free memory returned from
3103 make_corefile_notes.
3104 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3105 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3107 2014-06-24 Yao Qi <yao@codesourcery.com>
3109 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3110 (arm_linux_init_abi): Set skip_trampoline_code with
3111 gdbarch_skip_trampoline_code instead of
3112 find_solib_trampoline_target.
3114 2014-06-24 Yao Qi <yao@codesourcery.com>
3116 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3117 arm_skip_bx_reg returns non-zero.
3119 2014-06-24 Yao Qi <yao@codesourcery.com>
3121 * arm-tdep.c (arm_skip_bx_reg): New function.
3122 (arm_skip_stub): Call arm_skip_bx_reg.
3124 2014-06-23 Don Breazeal <donb@codesourcery.com>
3126 * MAINTAINERS: Add myself as write-after-approval maintainer.
3128 2014-06-23 Pedro Alves <palves@redhat.com>
3130 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3131 DR_CONTROL before setting DR0..DR3.
3132 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3133 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3134 bits of DR_CONTROL related to the debug register slot being
3135 disabled. If all slots are vacant, clear local slowdown as well,
3136 and assert DR_CONTROL is 0.
3138 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3140 * python/lib/gdb/command/xmethods.py
3141 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3142 current progspace only if the string "progspace" matches LOCUS_RE.
3144 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3146 Fix --with-system-readline with readline-6.3 patch 5.
3147 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3148 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3151 2014-06-20 Tom Tromey <tromey@redhat.com>
3153 * dwarf2read.c (dw2_get_real_path): Use correct type in
3155 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3157 2014-06-20 Gary Benson <gbenson@redhat.com>
3159 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3160 * common/glibc_thread_db.h: Likewise.
3161 * common/i386-cpuid.h: Likewise.
3162 * common/i386-gcc-cpuid.h: Likewise.
3163 * common/linux-btrace.h: Likewise.
3164 * common/linux-osdata.h: Likewise.
3165 * common/linux-procfs.h: Likewise.
3166 * common/linux-ptrace.h: Likewise.
3167 * common/mips-linux-watch.h: Likewise.
3168 * common/linux-btrace.c: Moved to nat.
3169 * common/linux-osdata.c: Likewise.
3170 * common/linux-procfs.c: Likewise.
3171 * common/linux-ptrace.c: Likewise.
3172 * common/mips-linux-watch.c: Likewise.
3173 * nat/gdb_thread_db.h: Moved from common.
3174 * nat/glibc_thread_db.h: Likewise.
3175 * nat/i386-cpuid.h: Likewise.
3176 * nat/i386-gcc-cpuid.h: Likewise.
3177 * nat/linux-btrace.c: Likewise.
3178 * nat/linux-btrace.h: Likewise.
3179 * nat/linux-osdata.c: Likewise.
3180 * nat/linux-osdata.h: Likewise.
3181 * nat/linux-procfs.c: Likewise.
3182 * nat/linux-procfs.h: Likewise.
3183 * nat/linux-ptrace.c: Likewise.
3184 * nat/linux-ptrace.h: Likewise.
3185 * nat/mips-linux-watch.c: Likewise.
3186 * nat/mips-linux-watch.h: Likewise.
3187 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3188 (object file files): Reordered.
3189 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3190 of glibc_thread_db.h.
3192 2014-06-20 Gary Benson <gbenson@redhat.com>
3194 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3195 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3196 (i386_dr_low): Likewise.
3197 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3198 (i386_dr_low_set_addr): Likewise.
3199 (i386_dr_low_get_addr): Likewise.
3200 (i386_dr_low_can_set_control): Likewise.
3201 (i386_dr_low_set_control): Likewise.
3202 (i386_dr_low_get_control): Likewise.
3203 (i386_dr_low_get_status): Likewise.
3204 (i386_get_debug_register_length): Likewise.
3205 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3206 (i386_dr_low): Likewise.
3207 * nat/i386-dregs.c (i386-low.h): Remove include.
3208 (i386-nat.h): Likewise.
3209 (nat/i386-dregs.h): New include.
3210 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3211 (i386_dr_low_set_addr): Likewise.
3212 (i386_dr_low_get_addr): Likewise.
3213 (i386_dr_low_can_set_control): Likewise.
3214 (i386_dr_low_set_control): Likewise.
3215 (i386_dr_low_get_control): Likewise.
3216 (i386_dr_low_get_status): Likewise.
3217 (i386_get_debug_register_length): Likewise.
3218 (debug_hw_points): Likewise.
3220 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3222 * Makefile.in (SFILES): Add d-exp.y.
3223 (YYFILES): Add d-exp.c.
3224 (YYOBJ): Add d-exp.o.
3225 (local-maintainer-clean): Delete d-exp.c.
3226 * d-exp.y: New file.
3227 * d-lang.h (d_parse): New declaration.
3228 (d_error): New declaration.
3229 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3230 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3231 PREC_ORDER operators.
3232 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3234 2014-06-19 Yao Qi <yao@codesourcery.com>
3236 * gdbthread.h (any_running): Remove the declaration.
3237 * thread.c (any_running): Remove.
3239 2014-06-19 Yao Qi <yao@codesourcery.com>
3241 * gdbthread.h (struct thread_info) <state>: Change its type to
3242 'enum thread_state'. Update comments.
3244 2014-06-19 Pedro Alves <palves@redhat.com>
3246 * gdbthread.h (ALL_THREADS): Delete.
3247 (ALL_NON_EXITED_THREADS): New macro.
3248 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3249 instead of ALL_THREADS.
3250 * infrun.c (find_thread_needs_step_over)
3251 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3252 instead of ALL_THREADS.
3253 * record-btrace.c (record_btrace_open)
3254 (record_btrace_stop_recording, record_btrace_close)
3255 (record_btrace_is_replaying, record_btrace_resume)
3256 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3257 * remote.c (append_pending_thread_resumptions): Likewise.
3258 * thread.c (thread_apply_all_command): Likewise.
3260 2014-06-19 Gary Benson <gbenson@redhat.com>
3262 * i386-nat.c (i386_stopped_by_watchpoint):
3263 Use i386_dr_stopped_by_watchpoint.
3264 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3265 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3267 2014-06-19 Gary Benson <gbenson@redhat.com>
3269 * nat/i386-dregs.c: New file.
3270 * Makefile.in (i386-dregs.o): New rule.
3271 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3272 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3273 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3274 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3275 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3276 * config/i386/go32.mh (NATDEPFILES): Likewise.
3277 * config/i386/linux.mh (NATDEPFILES): Likewise.
3278 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3279 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3280 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3281 * i386-nat.h (debug_hw_points): New declaration.
3282 * i386-nat.c (breakpoint.h): Remove include.
3283 (command.h): Likewise.
3284 (target.h): Likewise.
3285 (gdb_assert.h): Likewise.
3286 (debug_hw_points): Made nonstatic.
3287 (debug_printf): Now in i386-dregs.c.
3288 (TARGET_HAS_DR_LEN_8): Likewise.
3289 (DR_CONTROL_SHIFT): Likewise.
3290 (DR_CONTROL_SIZE): Likewise.
3291 (DR_RW_EXECUTE): Likewise.
3292 (DR_RW_WRITE): Likewise.
3293 (DR_RW_READ): Likewise.
3294 (DR_RW_IORW): Likewise.
3295 (DR_LEN_1): Likewise.
3296 (DR_LEN_2): Likewise.
3297 (DR_LEN_4): Likewise.
3298 (DR_LEN_8): Likewise.
3299 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3300 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3301 (DR_ENABLE_SIZE): Likewise.
3302 (DR_LOCAL_SLOWDOWN): Likewise.
3303 (DR_GLOBAL_SLOWDOWN): Likewise.
3304 (DR_CONTROL_RESERVED): Likewise.
3305 (I386_DR_CONTROL_MASK): Likewise.
3306 (I386_DR_VACANT): Likewise.
3307 (I386_DR_LOCAL_ENABLE): Likewise.
3308 (I386_DR_GLOBAL_ENABLE): Likewise.
3309 (I386_DR_DISABLE): Likewise.
3310 (I386_DR_SET_RW_LEN): Likewise.
3311 (I386_DR_GET_RW_LEN): Likewise.
3312 (I386_DR_WATCH_HIT): Likewise.
3313 (i386_wp_op_t): Likewise.
3314 (i386_show_dr): Likewise.
3315 (i386_length_and_rw_bits): Likewise.
3316 (i386_insert_aligned_watchpoint): Likewise.
3317 (i386_remove_aligned_watchpoint): Likewise.
3318 (i386_handle_nonaligned_watchpoint): Likewise.
3319 (i386_update_inferior_debug_regs): Likewise.
3320 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3321 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3322 (i386_region_ok_for_watchpoint):
3323 Use i386_dr_region_ok_for_watchpoint.
3324 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3326 2014-06-19 Gary Benson <gbenson@redhat.com>
3328 * i386-nat.c (i386_insert_hw_breakpoint): Use
3329 i386_insert_watchpoint.
3330 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3332 2014-06-19 Gary Benson <gbenson@redhat.com>
3334 * i386-nat.c (i386_dr_show): Renamed to
3335 i386_show_dr and made static. All uses updated.
3336 (i386_dr_length_and_rw_bits): Renamed to
3337 i386_length_and_rw_bits and made static.
3339 (i386_dr_insert_aligned_watchpoint): Renamed to
3340 i386_insert_aligned_watchpoint and made static.
3342 (i386_dr_remove_aligned_watchpoint): Renamed to
3343 i386_remove_aligned_watchpoint and made static.
3345 (i386_dr_update_inferior_debug_regs): Renamed to
3346 i386_update_inferior_debug_regs and made static.
3348 * nat/i386-dregs.h (i386_dr_show): Removed.
3349 (i386_dr_length_and_rw_bits): Likewise.
3350 (i386_dr_insert_aligned_watchpoint): Likewise.
3351 (i386_dr_remove_aligned_watchpoint): Likewise.
3352 (i386_dr_update_inferior_debug_regs): Likewise.
3354 2014-06-19 Gary Benson <gbenson@redhat.com>
3356 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3357 * configure: Regenerate.
3358 * config.in: Likewise.
3359 * main.c (signal.h): New include.
3360 (setup_alternate_signal_stack): New function.
3361 (captured_main): Call the above.
3362 * cp-support.c (signal.h): New include.
3363 (catch_demangler_crashes): New flag.
3364 (SIGJMP_BUF): New define.
3365 (SIGSETJMP): Likewise.
3366 (SIGLONGJMP): Likewise.
3367 (gdb_demangle_jmp_buf): New static global.
3368 (gdb_demangle_attempt_core_dump): Likewise.
3369 (gdb_demangle_signal_handler): New function.
3370 (gdb_demangle): If catch_demangler_crashes is set, install the
3371 above signal handler before calling bfd_demangle, and restore
3372 the original signal handler afterwards. Display the offending
3373 symbol and call demangler_warning the first time a segmentation
3375 (_initialize_cp_support): New maint set/show command.
3377 2014-06-19 Gary Benson <gbenson@redhat.com>
3379 * utils.h (resource_limit_kind): New enum.
3380 (can_dump_core): New declaration.
3381 (warn_cant_dump_core): Likewise.
3382 (dump_core): Likewise.
3383 * utils.c (dump_core): Made nonstatic. Added new
3384 parameter "limit_kind".
3385 (can_dump_core): Made nonstatic. Moved printing code to...
3386 (warn_cant_dump_core): New function.
3387 (can_dump_core_warn): Likewise.
3388 (internal_vproblem): Replace calls to can_dump_core with
3389 calls to can_dump_core_warn. Supply new argument to each.
3391 2014-06-19 Gary Benson <gbenson@redhat.com>
3393 * utils.h (demangler_vwarning): New declaration.
3394 (demangler_warning): Likewise.
3395 * utils.c (struct internal_problem)
3396 <user_settable_should_quit>: New field.
3397 <user_settable_should_dump_core>: Likewise
3398 (internal_error_problem): Add values for above new fields.
3399 (internal_warning_problem): Likewise.
3400 (demangler_warning_problem): New static global.
3401 (demangler_vwarning): New function.
3402 (demangler_warning): Likewise.
3403 (add_internal_problem_command): Selectively add commands.
3404 (_initialize_utils): New internal problem command.
3405 * maint.c (maintenance_demangler_warning): New function.
3406 (_initialize_maint_cmds): New command.
3408 2014-06-18 Tom Tromey <tromey@redhat.com>
3410 * f-valprint.c (info_common_command_for_block): Update.
3411 * symtab.h (struct general_symbol_info) <common_block>: Now
3414 2014-06-18 Tom Tromey <tromey@redhat.com>
3416 * symtab.h (struct symtab) <blockvector>: Now const.
3417 * ada-lang.c (ada_add_global_exceptions): Update.
3418 * buildsym.c (augment_type_symtab): Update.
3419 * dwarf2read.c (dw2_lookup_symbol): Update.
3420 * jit.c (finalize_symtab): Update.
3421 * jv-lang.c (add_class_symtab_symbol): Update.
3422 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3424 * objfiles.c (objfile_relocate1): Update.
3425 * psymtab.c (lookup_symbol_aux_psymtabs)
3426 (maintenance_check_psymtabs): Update.
3427 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3429 * spu-tdep.c (spu_catch_start): Update.
3430 * symmisc.c (dump_symtab_1): Update.
3431 * symtab.c (lookup_global_symbol_from_objfile)
3432 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3433 (basic_lookup_transparent_type_quick)
3434 (basic_lookup_transparent_type, find_pc_sect_symtab)
3435 (find_pc_sect_line, search_symbols): Update.
3436 * block.c (find_block_in_blockvector): Make "bl" const.
3437 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3439 (blockvector_contains_pc): Make "bv" const.
3440 (block_for_pc_sect): Update.
3441 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3442 (blockvector_contains_pc): Update.
3443 * breakpoint.c (resolve_sal_pc): Update.
3444 * inline-frame.c (block_starting_point_at): Update.
3446 2014-06-18 Tom Tromey <tromey@redhat.com>
3448 * completer.c (complete_line): Make "line_buffer" const.
3449 * completer.h (complete_line): Update.
3451 2014-06-18 Tom Tromey <tromey@redhat.com>
3453 * symtab.c (add_macro_name): Remove unneeded cast.
3455 2014-06-18 Tom Tromey <tromey@redhat.com>
3457 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3458 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3460 2014-06-18 Tom Tromey <tromey@redhat.com>
3462 * probe.c (info_probes_for_ops): Make "arg" const.
3463 * probe.h (info_probes_for_ops): Update.
3465 2014-06-18 Tom Tromey <tromey@redhat.com>
3467 * varobj.c (varobj_create): Update.
3468 * valops.c (value_of_this): Update.
3469 * tracepoint.c (add_local_symbols, scope_info): Update.
3470 * symtab.h (struct general_symbol_info) <block>: Now const.
3471 * symtab.c (skip_prologue_sal)
3472 (default_make_symbol_completion_list_break_on)
3473 (skip_prologue_using_sal): Update.
3474 * stack.h (iterate_over_block_locals)
3475 (iterate_over_block_local_vars): Update.
3476 * stack.c (print_frame_args): Update.
3477 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3479 (get_selected_block): Make return type const.
3480 * python/py-frame.c (frapy_block): Update.
3481 * python/py-block.c (gdbpy_block_for_pc): Update.
3482 * p-exp.y (%union) <bval>: Now const.
3483 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3484 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3485 * m2-exp.y (%union) <bval>: Now const.
3486 * linespec.c (get_current_search_block): Make return type const.
3487 (create_sals_line_offset, find_label_symbols): Update.
3488 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3490 (block_starting_point_at): Make "block" const.
3491 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3492 (check_exception_resume): Update.
3493 * guile/scm-frame.c (gdbscm_frame_block): Update.
3494 * guile/scm-block.c (gdbscm_lookup_block): Update.
3495 * frame.h (get_frame_block): Update.
3496 (get_selected_block): Make return type const.
3497 * frame.c (frame_id_inner): Update.
3498 * f-valprint.c (info_common_command_for_block)
3499 (info_common_command): Update.
3500 * dwarf2loc.c (dwarf2_find_location_expression)
3501 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3502 (locexpr_describe_location_piece): Update.
3503 * c-exp.y (%union) <bval>: Now const.
3504 * breakpoint.c (resolve_sal_pc): Update.
3505 * blockframe.c (get_frame_block):Make return type const.
3506 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3507 (block_innermost_frame): Update.
3508 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3509 (block_for_pc, block_for_pc_sect): Update.
3510 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3512 (block_for_pc_sect, block_for_pc): Make return type const.
3513 * ax-gdb.c (gen_expr): Update.
3514 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3515 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3516 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3517 (ada_read_var_value): Update.
3518 * ada-exp.y (struct name_info) <block>: Now const.
3520 (block_lookup): Constify.
3522 2014-06-18 Gary Benson <gbenson@redhat.com>
3524 * nat/i386-dregs.h: New file.
3525 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3526 * i386-nat.h (i386-dregs.h): New include.
3527 (DR_FIRSTADDR): Now in i386-dregs.h.
3528 (DR_LASTADDR): Likewise.
3529 (DR_NADDR): Likewise.
3530 (DR_STATUS): Likewise.
3531 (DR_CONTROL): Likewise.
3532 (i386_debug_reg_state): Likewise.
3533 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3535 2014-06-18 Don Breazeal <donb@codesourcery.com>
3537 * breakpoint.c (set_longjmp_breakpoint): Call
3538 momentary_breakpoint_from_master with additional argument.
3539 (set_longjmp_breakpoint_for_call_dummy): Call
3540 momentary_breakpoint_from_master with additional argument.
3541 (set_std_terminate_breakpoint): Call
3542 momentary_breakpoint_from_master with additional argument.
3543 (momentary_breakpoint_from_master): Add argument to function
3544 definition and use it to initialize structure member flag.
3545 (clone_momentary_breakpoint): Call
3546 momentary_breakpoint_from_master with additional argument.
3547 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3548 member flags set in momentary_breakpoint_from_master.
3550 2014-06-18 Gary Benson <gbenson@redhat.com>
3552 * i386-nat.c (i386_show_dr): Renamed to
3553 i386_dr_show and made nonstatic. All uses updated.
3554 (i386_length_and_rw_bits): Renamed to
3555 i386_dr_length_and_rw_bits and made nonstatic.
3557 (i386_insert_aligned_watchpoint): Renamed to
3558 i386_dr_insert_aligned_watchpoint and made nonstatic.
3560 (i386_remove_aligned_watchpoint): Renamed to
3561 i386_dr_remove_aligned_watchpoint and made nonstatic.
3563 (i386_update_inferior_debug_regs): Renamed to
3564 i386_dr_update_inferior_debug_regs and made nonstatic.
3567 2014-06-18 Gary Benson <gbenson@redhat.com>
3569 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3570 (i386_dr_low_can_set_control): Likewise.
3571 (i386_dr_low_set_addr): Likewise.
3572 (i386_dr_low_set_control): Likewise.
3573 (i386_dr_low_get_addr): Likewise.
3574 (i386_dr_low_get_status): Likewise.
3575 (i386_dr_low_get_control): Likewise.
3576 (i386_insert_aligned_watchpoint): Use new macros.
3577 (i386_update_inferior_debug_regs): Likewise.
3578 (i386_stopped_data_address): Likewise.
3580 2014-06-18 Gary Benson <gbenson@redhat.com>
3582 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3583 New parameter. All uses updated.
3585 2014-06-18 Gary Benson <gbenson@redhat.com>
3587 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3590 2014-06-18 Gary Benson <gbenson@redhat.com>
3592 * i386-nat.c (debug_printf): New macro.
3593 (i386_get_debug_register_length): Likewise.
3594 (TARGET_HAS_DR_LEN_8): Use above macro.
3595 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3596 and printf_unfiltered. Use phex to format values.
3598 2014-06-18 Gary Benson <gbenson@redhat.com>
3600 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3603 2014-06-18 Gary Benson <gbenson@redhat.com>
3605 * i386-nat.c: Comment changes.
3607 2014-06-18 Gary Benson <gbenson@redhat.com>
3609 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3611 2014-06-18 Gary Benson <gbenson@redhat.com>
3613 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3614 (i386_insert_aligned_watchpoint): Likewise.
3615 (i386_remove_aligned_watchpoint): Likewise.
3616 (i386_handle_nonaligned_watchpoint): Likewise.
3618 2014-06-18 Gary Benson <gbenson@redhat.com>
3620 * i386-nat.c: Whitespace changes.
3622 2014-06-17 Samuel Bronson <naesten@gmail.com>
3624 * MAINTAINERS: Update Roland McGrath's email address.
3625 Thanks to Sergio Durigan Junior for pointing out that he left
3626 Red Hat a while ago, and giving me a current address.
3628 2014-06-17 Tom Tromey <tromey@redhat.com>
3630 * utils.h (savestring): Remove declaration.
3632 2014-06-17 Tom Tromey <tromey@redhat.com>
3634 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3636 2014-06-16 Keith Seitz <keiths@redhat.com>
3639 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3640 to update the varobj if inferior_ptid is null_ptid.
3642 2014-06-16 Tom Tromey <tromey@redhat.com>
3644 * target.h (struct target_ops) <to_info_proc>: Make parameter
3646 (target_info_proc): Update.
3647 * target.c (target_info_proc): Make "args" const.
3648 * procfs.c (procfs_info_proc): Update.
3649 * linux-tdep.c (linux_info_proc): Update.
3650 (linux_core_info_proc_mappings): Make "args" const.
3651 (linux_core_info_proc): Update.
3652 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3653 * gdbarch.c: Rebuild.
3654 * gdbarch.h: Rebuild.
3655 * corelow.c (core_info_proc): Update.
3657 2014-06-16 Tom Tromey <tromey@redhat.com>
3659 * target.h (struct target_ops) <to_disconnect>: Make parameter
3661 (target_disconnect): Update.
3662 * target.c (target_disconnect): Make "args" const.
3663 * target-delegates.c: Rebuild.
3664 * remote.c (remote_disconnect): Update.
3665 * record.h (record_disconnect): Update.
3666 * record.c (record_disconnect): Update.
3667 * inf-child.c (inf_child_disconnect): Update.
3669 2014-06-16 Tom Tromey <tromey@redhat.com>
3671 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3672 * target.c (debug_to_rcmd, default_rcmd): Update.
3673 * target-delegates.c: Rebuild.
3674 * remote.c (remote_rcmd): Update.
3675 * monitor.c (monitor_rcmd): Update.
3677 2014-06-16 Pedro Alves <palves@redhat.com>
3679 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3680 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3681 have OBJF_SHARED set.
3682 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3683 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3684 instead of OBJF_USERLOADED.
3685 * objfiles.h (OBJF_SHARED): Update comment.
3686 (userloaded_objfile_contains_address_p): Rename to ...
3687 (shared_objfile_contains_address_p): ... this, and update
3689 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3691 (remove_symbol_file_command): Skip objfiles that don't have
3694 2014-06-16 Tom Tromey <tromey@redhat.com>
3696 * minsyms.h (prim_record_minimal_symbol)
3697 (prim_record_minimal_symbol_and_info): Update comments.
3699 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3701 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3702 or --without-guile, according to how GDB was built.
3704 2014-06-13 Tom Tromey <tromey@redhat.com>
3706 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3708 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3710 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3712 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3713 help_list.Pass all_commands, not -1, to help_list.
3714 * cli/cli-dump.c (dump_command, append_command)
3715 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3716 (binary_dump_command, binary_append_command): Pass all_commands,
3717 not -1, to help_list.
3718 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3720 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3722 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3724 * top.c (set_history): Pass all_commands, not -1, to help_list.
3725 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3726 all_commands, not -1, to help_list.
3727 * symfile.c (overlay_command): Pass all_commands, not -1, to
3729 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3731 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3733 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3735 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3736 not -1, to help_list.
3737 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3738 not -1, to help_list.
3739 * maint.c (maintenance_command, maintenance_info_command)
3740 (maintenance_print_command, maintenance_set_cmd): Pass
3741 all_commands, not -1, to help_list.
3742 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3744 * language.c (set_check): Pass all_commands, not -1, to help_list.
3745 * infcmd.c (unset_command): Pass all_commands, not -1, to
3747 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3749 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3751 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3753 * breakpoint.c (save_command): Pass all_commands, not -1, to
3755 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3756 all_commands, not -1, to help_list.
3758 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3760 * regcache.c (struct register_to_invalidate): New structure.
3761 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3763 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3765 2014-06-12 Yao Qi <yao@codesourcery.com>
3767 * varobj.c (varobj_get_num_children): Call
3768 varobj_is_dynamic_p.
3769 (varobj_list_children): Likewise.
3770 (varobj_update): Likewise. Update comments.
3772 2014-06-12 Yao Qi <yao@codesourcery.com>
3774 * varobj.c (varobj_pretty_printed_p): Rename to ...
3775 (varobj_is_dynamic_p): ... this. New function.
3776 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3777 (varobj_is_dynamic_p): Declare.
3778 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3779 (mi_print_value_p, varobj_update_one): Likewise.
3781 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3782 Yao Qi <yao@codesourcery.com>
3784 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3785 (varobj_get_iterator): Wrap up code for pretty-printer by
3786 "#if HAVE_PYTHON" and "#endif".
3787 (update_dynamic_varobj_children): Likewise.
3789 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3790 Yao Qi <yao@codesourcery.com>
3792 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3793 gdb_python_initialized is false. Move some code from varobj.c.
3794 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3795 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3796 (struct varobj_item): Moved to varobj-iter.h".
3797 (varobj_clear_saved_item): New function.
3798 (update_dynamic_varobj_children): Move python-related code to
3800 (free_variable): Call varobj_clear_saved_item and
3803 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3804 Yao Qi <yao@codesourcery.com>
3806 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3807 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3808 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3809 (py-varobj.o): New rule.
3810 * python/py-varobj.c: New file.
3811 * python/python-internal.h (py_varobj_get_iterator): Declare.
3812 * varobj-iter.h: New file.
3813 * varobj.c: Include "varobj-iter.h"
3814 (struct varobj) <child_iter>: Change its type from "PyObject *"
3815 to "struct varobj_iter *".
3816 <saved_item>: Likewise.
3817 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3818 [HAVE_PYTHON] (varobj_get_iterator): New function.
3819 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3820 python-specific code to python/py-varobj.c.
3821 (install_visualizer): Call varobj_iter_delete instead of
3823 * varobj.h (varobj_ensure_python_env): Declare.
3825 2014-06-12 Yao Qi <yao@codesourcery.com>
3827 * varobj.c (struct varobj_item): New structure.
3828 (create_child_with_value): Update declaration.
3829 (varobj_add_child): Replace arguments 'name' and 'value' with
3830 'item'. All callers updated.
3831 (install_dynamic_child): Likewise.
3832 (update_dynamic_varobj_children): Likewise.
3833 (varobj_add_child): Likewise.
3834 (create_child_with_value): Likewise.
3836 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3838 * NEWS: Create a new section for the next release branch.
3839 Rename the section of the current branch, now that it has
3842 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3844 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3845 * version.in: Bump version to 7.8.50.DATE-cvs.
3847 2014-06-11 Pedro Alves <palves@redhat.com>
3850 * ser-mingw.c (net_windows_socket_check_pending): New function.
3851 (net_windows_select_thread): Ignore spurious wakeups. Use
3852 net_windows_socket_check_pending.
3853 (net_windows_wait_handle): Check for pending events with
3854 ioctlsocket, through net_windows_socket_check_pending, instead of
3855 checking the socket's event.
3857 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3859 * python/python-internal.h (gdb_PyObject_GetAttrString)
3860 (gdb_PyObject_HasAttrString): New inline function definitions.
3861 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3862 char * of the second argument to PyObject_GetAttrString.
3864 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3866 * serial.c (serial_write): Fix index of character to be printed
3867 in call to serial_logchar when serial debug traces are enabled.
3869 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3871 * gdbtypes (resolve_dynamic_range): Add function description.
3873 2014-06-09 Pedro Alves <palves@redhat.com>
3875 * linux-nat.c (linux_child_follow_fork): Initialize status with
3876 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3877 inner block. Only pass the signal to PTRACE_DETACH if in pass
3880 2014-06-09 Gary Benson <gbenson@redhat.com>
3882 * common/signals.c (gdb_signal_from_host): Reorder to separate
3883 the always-available ANSI-standard signals from the signals that
3885 (do_gdb_signal_to_host): Likewise.
3886 * proc-events.c (signal_table): Likewise.
3888 2014-06-08 Hui Zhu <hui@codesourcery.com>
3890 * common/linux-ptrace.c (linux_disable_event_reporting): New
3892 * common/linux-ptrace.h (linux_disable_event_reporting): New
3894 * linux-nat.c (linux_child_follow_fork): Do a single step before
3897 2014-06-07 Keith Seitz <keiths@redhat.com>
3901 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3902 from symbol_matches_domain in symtab.c. All local callers
3903 of symbol_matches_domain updated.
3904 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3905 search STRUCT_DOMAIN.
3906 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3907 independently. standard_lookup will do that automatically.
3908 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3909 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3910 (cp_lookup_symbol_in_namespace): Likewise.
3911 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3912 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3913 may return a STRUCT_DOMAIN match.
3914 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3915 * cp-support.c: Include language.h.
3916 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3918 * psymtab.c (match_partial_symbol): Compare the requested
3919 domain with the symbol's domain directly.
3920 (lookup_partial_symbol): Likewise.
3921 * symtab.c (lookup_symbol_in_language): Explain when/why
3922 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3923 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3924 appropriate languages.
3925 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3926 and moved to ada-lang.c
3927 (lookup_block_symbol): Explain that this function only returns
3928 symbol matching the requested DOMAIN.
3929 Compare the requested domain with the symbol's domain directly.
3930 (iterate_over_symbols): Compare the requested domain with the
3931 symbol's domain directly.
3932 * symtab.h (symbol_matches_domain): Remove.
3934 2014-06-06 Doug Evans <xdje42@gmail.com>
3936 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3937 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3938 (gdbscm_guile_version_is_at_least): Declare.
3939 (gdbscm_scm_string_to_int): Declare.
3940 * guile/guile.c (gdbscm_guile_major_version): New global.
3941 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3942 (guile_datadir): New static global.
3943 (gdbscm_guile_data_directory): New function.
3944 (initialize_scheme_side): Update.
3945 (misc_guile_functions): Add guile-data-directory.
3946 (initialize_gdb_module): Fetch guile version number.
3947 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3948 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3949 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3950 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3952 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3953 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3954 * guile/scm-value.c (gdbscm_value_to_string): Only call
3955 scm_port_conversion_strategy if Guile version >= 2.0.6.
3957 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3959 * main.c (print_gdb_help): Add -q and --silent.
3961 2014-06-06 Gary Benson <gbenson@redhat.com>
3963 * common/signals.c: Remove preprocessor conditionals for
3964 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3965 SIGSEGV and SIGTERM.
3966 * proc-events.c: Likewise.
3968 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3970 * symfile.c (symfile_free_objfile): Remove restriction to
3972 * symfile-mem.c (symbol_file_add_from_memory): Call
3973 add_target_sections_of_objfile.
3975 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3977 * guile/scm-value.c (gdbscm_history_append_x): Use
3978 'vlscm_get_value_smob_arg_unsafe' instead of
3979 'vlscm_scm_to_value'.
3981 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3984 * utils.c (printchar): Don't escape at all if quoter is NUL.
3985 Update function documentation to clarify effect of parameter
3987 * remote.c (escape_buffer): Pass '\\' as the quoter to
3988 fputstrn_unfiltered.
3989 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3990 generate the output.
3991 (mi_solib_unloaded): Same.
3993 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3995 * development.sh: Delete.
3996 * Makefile.in (config.status): Adjust dependency on development.sh.
3997 * configure.ac: Adjust development.sh source call.
3998 * configure: Regenerate.
4000 2014-06-04 Doug Evans <xdje42@gmail.com>
4002 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4003 is_scheme_bkpt, spec.
4004 (bpscm_make_breakpoint_smob): Initialize new members.
4005 (gdbscm_create_breakpoint_x): Split into two ...
4006 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4007 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4008 (scheme_function breakpoint_functions): Update.
4009 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4010 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4011 register-breakpoint!.
4013 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4016 * mem-break.c (z_type_supported): Return zero if
4017 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4019 2014-06-04 Tom Tromey <tromey@redhat.com>
4021 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4022 value_from_contents_and_address_unresolved.
4023 (ada_template_to_fixed_record_type_1): Likewise.
4024 (ada_which_variant_applies): Likewise.
4025 * value.h (value_from_contents_and_address_unresolved): Declare.
4026 * value.c (value_from_contents_and_address_unresolved): New
4028 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4029 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4030 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4032 2014-06-04 Tom Tromey <tromey@redhat.com>
4034 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4036 2014-06-04 Tom Tromey <tromey@redhat.com>
4038 * procfs.c (procfs_attach): Make "args" const.
4039 * windows-nat.c (windows_attach): Make "args" const.
4040 * nto-procfs.c (procfs_attach): Make "args" const.
4041 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4042 * go32-nat.c (go32_attach): Make "args" const.
4043 * gnu-nat.c (gnu_attach): Make "args" const.
4044 * darwin-nat.c (darwin_attach): Make "args" const.
4045 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4046 * linux-nat.c (linux_nat_attach): Make "args" const.
4047 * remote.c (extended_remote_attach_1, extended_remote_attach):
4049 * target.h (struct target_ops) <to_attach>: Make "args" const.
4050 (find_default_attach): Likewise.
4051 * utils.c (parse_pid_to_attach): Make "args" const.
4052 * utils.h (parse_pid_to_attach): Update.
4054 2014-06-04 Tom Tromey <tromey@redhat.com>
4056 * target-delegates.c: Rebuild.
4057 * target.c (default_thread_address_space): New function.
4058 (target_thread_address_space): Simplify.
4059 * target.h (struct target_ops) <to_thread_address_space>: Add
4060 TARGET_DEFAULT_FUNC.
4062 2014-06-04 Doug Evans <xdje42@gmail.com>
4064 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4066 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4068 * record-btrace.c: Include event-loop.h and inf-loop.h.
4069 (record_btrace_resume_exec_dir)
4070 (record_btrace_async_inferior_event_handler)
4071 (record_btrace_handle_async_inferior_event): New.
4072 (record_btrace_open): Create async event handler.
4073 (record_btrace_close): Delete async event handler.
4074 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4075 Mark async event handler.
4076 (record_btrace_execution_direction): New.
4077 (init_record_btrace_ops): Initialize to_execution_direction.
4079 2014-06-03 Doug Evans <xdje42@gmail.com>
4081 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4082 (gdbscm_make_parameter): Ditto.
4084 2014-06-03 Doug Evans <dje@google.com>
4086 * exec.c (exec_close_1): Call clear_section_table instead of
4087 resize_section_table.
4088 (clear_section_table): New function.
4089 (resize_section_table): Make static. Rename arg num_added to
4091 * exec.h (clear_section_table): Declare.
4092 (resize_section_table): Delete.
4093 * progspace.c (release_program_space): Call clear_section_table
4094 instead of resize_section_table.
4096 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4098 * NEWS (Python Scripting): Add entry about the new xmethods
4101 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4103 * python/py-xmethods.c: New file.
4104 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4105 (objfpy_dealloc): XDECREF on the new xmethods field.
4106 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4108 (objfpy_get_xmethods): New function.
4109 (objfile_getset): New entry 'xmethods'.
4110 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4111 (pspy_dealloc): XDECREF on the new xmethods field.
4112 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4114 (pspy_get_xmethods): New function.
4115 (pspace_getset): New entry 'xmethods'.
4116 * python/python-internal.h: Add declarations for new functions.
4117 * python/python.c (_initialize_python): Invoke
4118 gdbpy_initialize_xmethods.
4119 * python/lib/gdb/__init__.py (xmethods): New
4121 * python/lib/gdb/xmethod.py: New file.
4122 * python/lib/gdb/command/xmethods.py: New file.
4124 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4126 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4127 best match method returned by find_overload_match is an xmethod.
4128 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4129 the best matching operator returned by find_overload_match is an
4131 * valops.c: #include "extension.h".
4132 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4133 Return void. The list of matching source methods is returned in
4134 "fn_list" and a vector of matching debug method workers is
4135 returned in "xm_worker_vec". Update all callers.
4136 (value_find_oload_method_list): Likewise.
4137 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4138 non-NULL, then the index of the best matching method in this
4139 vector is returned. Update all callers.
4140 (find_overload_match): Include xmethods while performing overload
4143 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4145 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4146 * extension-priv.h (struct extension_language_ops): Add the
4148 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4149 get_matching_xmethod_workers, get_xmethod_argtypes,
4150 invoke_xmethod, free_xmethod_worker,
4151 free_xmethod_worker_vec): New functions.
4152 * extension.h: #include "common/vec.h".
4153 New function declarations.
4154 (struct xmethod_worker): New struct.
4155 (VEC (xmethod_worker_ptr)): New vector type.
4156 (xmethod_worker_ptr): New typedef.
4157 (xmethod_worker_vec): Likewise.
4158 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4160 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4161 (struct builtin_type): New field "xmethod".
4162 * valarith.c (value_ptradd): Assert that the value argument is not
4164 * valops.c (value_must_coerce_to_target): Return 0 for
4165 lval_xcallable values.
4166 * value.c (struct value): New field XM_WORKER in the field
4168 (value_address, value_raw_address): Return 0 for lval_xcallable
4170 (set_value_address): Assert that the value is not an
4172 (value_free): Free the associated xmethod worker when freeing
4173 lval_xcallable values.
4174 (set_value_component_location): Assert that the WHOLE value is not
4176 (value_of_xmethod, call_xmethod): New functions.
4177 * value.h: Declare "struct xmethod_worker".
4178 Declare new functions value_of_xmethod, call_xmethod.
4180 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4181 Pedro Alves <palves@redhat.com>
4183 PR breakpoints/17000
4184 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4185 New function, extracted from software_breakpoint_inserted_here_p.
4186 (software_breakpoint_inserted_here_p): Replace factored out code
4187 by call to find_non_raw_software_breakpoint_inserted_here.
4188 (bp_target_info_copy_insertion_state): New function.
4189 (bkpt_insert_location): Handle the case of a single-step
4190 breakpoint already inserted at the same address.
4191 (bkpt_remove_location): Handle the case of a single-step
4192 breakpoint still inserted at the same address.
4193 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4194 breakpoint already inserted at the same address.
4195 (deprecated_remove_raw_breakpoint): Handle the case of a
4196 non-raw breakpoint still inserted at the same address.
4197 (find_single_step_breakpoint): New function, extracted from
4198 single_step_breakpoint_inserted_here_p.
4199 (find_single_step_breakpoint): New function,
4200 factored out from single_step_breakpoint_inserted_here_p.
4201 (single_step_breakpoint_inserted_here_p): Reimplement.
4203 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4205 Pushed by Joel Brobecker <brobecker@adacore.com>
4206 * source.c (show_substitute_path_command): Fix display of matching
4209 2014-06-03 Gary Benson <gbenson@redhat.com>
4211 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4213 2014-06-02 Doug Evans <xdje42@gmail.com>
4215 Add parameter support for Guile.
4216 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4217 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4218 (scm-param.o): New rule.
4219 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4220 (gdbscm_misc_error): Declare.
4221 (gdbscm_canonicalize_command_name): Declare.
4222 (gdbscm_scm_to_host_string): Declare.
4223 (gdbscm_scm_from_host_string): Declare.
4224 (gdbscm_initialize_parameters): Declare.
4225 * guile/guile.c (initialize_gdb_module): Call
4226 gdbscm_initialize_parameters.
4227 * guile/lib/gdb.scm: Export parameter symbols.
4228 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4229 cmdscm_canonicalize_name and made public. All callers updated.
4230 * guile/scm-exception.c (gdbscm_misc_error): New function.
4231 * guile/scm-param.c: New file.
4232 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4233 (gdbscm_scm_to_host_string): New function.
4234 (gdbscm_scm_from_host_string): New function.
4235 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4237 2014-06-02 Doug Evans <xdje42@gmail.com>
4239 Add command support for Guile.
4240 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4241 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4242 (scm-cmd.o): New rule.
4243 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4244 (gdbscm_user_error_p): Declare.
4245 (gdbscm_parse_command_name): Declare.
4246 (gdbscm_valid_command_class_p): Declare.
4247 (gdbscm_initialize_commands): Declare.
4248 * guile/guile.c (initialize_gdb_module): Call
4249 gdbscm_initialize_commands.
4250 * guile/lib/gdb.scm: Export command symbols.
4251 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4252 (throw-user-error): New function.
4253 * guile/scm-cmd.c: New file.
4254 * guile/scm-exception.c (user_error_symbol): New static global.
4255 (gdbscm_user_error_p): New function.
4256 (gdbscm_initialize_exceptions): Set user_error_symbol.
4257 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4259 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4261 * top.c (command_loop): Handle comments here...
4262 (command_line_input): ... not here.
4264 2014-06-02 Doug Evans <xdje42@gmail.com>
4266 Add progspace support for Guile.
4267 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4268 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4269 (scm-progspace.o): New rule.
4270 * guile/guile-internal.h (pspace_smob): New typedef.
4271 (psscm_pspace_smob_pretty_printers): Declare.
4272 (psscm_pspace_smob_from_pspace): Declare.
4273 (psscm_scm_from_pspace): Declare.
4274 * guile/guile.c (initialize_gdb_module): Call
4275 gdbscm_initialize_pspaces.
4276 * guile/lib/gdb.scm: Export progspace symbols.
4277 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4279 (append-pretty-printer!): Ditto.
4280 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4282 * guile/scm-progspace.c: New file.
4284 2014-06-03 Alan Modra <amodra@gmail.com>
4286 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4287 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4289 2014-06-02 Doug Evans <dje@google.com>
4291 Add support for skeletonless type units.
4292 * dwarf2read.c (struct dwarf2_per_objfile): New member
4293 n_allocated_type_units.
4294 (struct dwarf2_per_objfile) <tu_stats>: New member
4295 nr_all_type_units_reallocs.
4296 (create_signatured_type_table_from_index): Initialize
4297 n_allocated_type_units
4298 (create_all_type_units): Ditto.
4299 (add_type_unit): Move up in file. New arg slot.
4300 All callers updated. Increase space for all_type_units more
4302 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4303 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4304 (lookup_dwp_signatured_type): Ditto.
4305 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4306 All callers updated.
4307 (build_type_psymtabs_1): Leave type_unit_groups as
4308 NULL if no TUs present.
4309 (print_tu_stats): New function.
4310 (process_skeletonless_type_unit): New function.
4311 (process_dwo_file_for_skeletonless_type_units): New
4313 (process_skeletonless_type_units): New function.
4314 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4315 Call print tu_stats if debugging enabled.
4317 2014-06-02 Pedro Alves <palves@redhat.com>
4319 * breakpoint.c (build_target_command_list): Don't build a command
4320 list if we have any duplicate location that isn't a dprintf.
4322 2014-06-02 Pedro Alves <palves@redhat.com>
4324 * breakpoint.c (dprintf_breakpoint_hit): New function.
4325 (initialize_breakpoint_ops): Install it as dprintf's
4326 breakpoint_hit method.
4328 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4330 * source.c (substitute_path_rule_matches): Simplify using
4331 filename_ncmp instead of FILENAME_CMP.
4333 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4335 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4337 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4339 * configure.ac: When Guile is available, check for the
4340 availability of 'scm_new_smob'.
4341 * configure, config.h.in: Regenerate.
4342 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4345 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4347 * frame.c (struct frame_info): Add stop_string field.
4348 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4349 (get_prev_frame_always): Old content moved into
4350 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4351 TRY_CATCH, handle MEMORY_ERROR exceptions.
4352 (frame_stop_reason_string): New function definition.
4353 * frame.h (unwind_stop_reason_to_string): Extend comment to
4354 mention frame_stop_reason_string.
4355 (frame_stop_reason_string): New function declaration.
4356 * stack.c (frame_info): Switch to frame_stop_reason_string.
4357 (backtrace_command_1): Switch to frame_stop_reason_string.
4358 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4359 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4360 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4362 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4364 * frame.c (frame_stop_reason_string): Rename to ...
4365 (unwind_stop_reason_to_string): this.
4366 * frame.h (frame_stop_reason_string): Rename to ...
4367 (unwind_stop_reason_to_string): this.
4368 * stack.c (frame_info): Update call to frame_stop_reason_string.
4369 (backtrace_command_1): Likewise.
4370 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4371 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4373 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4375 * frame.c (remove_prev_frame): New function.
4376 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4379 2014-05-29 Pedro Alves <palves@redhat.com>
4381 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4382 and make it const. When a single-step decays to a continue,
4383 clear 'step', not 'hw_step'. Pass whether the caller wanted
4384 to step to user_visible_resume_ptid, not what we ask the
4387 2014-05-29 Pedro Alves <palves@redhat.com>
4389 * infrun.c (process_event_stop_test, handle_step_into_function)
4390 (handle_step_into_function_backward): Adjust.
4391 Don't set the even thread's stop_step and call stop_waiting before
4392 calling end_stepping_range. Instead do that ...
4393 (end_stepping_range): ... here. Take an ecs pointer parameter.
4395 2014-05-29 Pedro Alves <palves@redhat.com>
4397 * infrun.c (stop_stepping): Rename to ...
4398 (stop_waiting): ... this.
4399 (proceed): Update comment.
4400 (process_event_stop_test, handle_inferior_event)
4401 (handle_signal_stop, handle_step_into_function)
4402 (handle_step_into_function_backward): Update.
4404 2014-05-29 Pedro Alves <palves@redhat.com>
4406 * infcall.c (run_inferior_call): Don't check whether the current
4407 thread is running after the proceed call.
4409 2014-05-29 Pedro Alves <palves@redhat.com>
4410 Tom Tromey <tromey@redhat.com>
4412 * NEWS: Mention "maint set target-async", "set mi-async", and that
4413 background execution commands are now always available.
4414 * target.h (target_async_permitted): Update comment.
4415 * target.c (target_async_permitted, target_async_permitted_1):
4417 (set_target_async_command): Rename to ...
4418 (maint_set_target_async_command): ... this.
4419 (show_target_async_command): Rename to ...
4420 (maint_show_target_async_command): ... this.
4421 (_initialize_target): Adjust.
4422 * infcmd.c (prepare_execution_command): Make extern.
4423 * inferior.h (prepare_execution_command): Declare.
4424 * infrun.c (set_observer_mode): Leave target async alone.
4425 * mi/mi-interp.c (mi_interpreter_init): Install
4426 mi_on_sync_execution_done as sync_execution_done observer.
4427 (mi_on_sync_execution_done): New function.
4428 (mi_execute_command_input_handler): Don't print the prompt if we
4429 just started a synchronous command with an async target.
4430 (mi_on_resume): Check sync_execution before printing prompt.
4431 * mi/mi-main.h (mi_async_p): Declare.
4432 * mi/mi-main.c: Include gdbcmd.h.
4433 (mi_async_p): New function.
4434 (mi_async, mi_async_1): New globals.
4435 (set_mi_async_command, show_mi_async_command, mi_async): New
4437 (exec_continue): Call prepare_execution_command.
4438 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4439 (mi_execute_async_cli_command): Use mi_async_p.
4440 (_initialize_mi_main): Install "set mi-async". Make
4441 "target-async" a deprecated alias.
4443 2014-05-29 Pedro Alves <palves@redhat.com>
4445 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4446 (_initialize_cli_interp): Adjust.
4447 * event-loop.c: Include "observer.h".
4448 (start_event_loop): Notify 'command_error' observers instead of
4449 calling display_gdb_prompt. Remove FIXME comment.
4450 * event-top.c (display_gdb_prompt): Remove call into the
4452 * inf-loop.c: Include "observer.h".
4453 (inferior_event_handler): Notify 'command_error' observers instead
4454 of calling display_gdb_prompt.
4455 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4456 observers instead of calling display_gdb_prompt.
4457 * interps.c (interp_set): Don't call display_gdb_prompt.
4458 (current_interp_display_prompt_p): Delete.
4459 * interps.h (interp_prompt_p): Delete declaration.
4460 (interp_prompt_p_ftype): Delete.
4461 (struct interp_procs) <prompt_proc_p>: Delete field.
4462 (current_interp_display_prompt_p): Delete declaration.
4463 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4464 (_initialize_mi_interp): Adjust.
4465 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4466 'command_error' observers.
4467 (tui_on_sync_execution_done, tui_on_command_error): New
4469 (tui_display_prompt_p): Delete.
4470 (_initialize_tui_interp): Adjust.
4472 2014-05-29 Pedro Alves <palves@redhat.com>
4475 * cli/cli-interp.c: Include infrun.h and observer.h.
4476 (cli_uiout, cli_interp): New globals.
4477 (cli_on_signal_received, cli_on_end_stepping_range)
4478 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4480 (cli_interpreter_init): Install them as 'end_stepping_range',
4481 'signal_received' 'signal_exited', 'exited' and 'no_history'
4483 (_initialize_cli_interp): Remove cli_interp local.
4484 * infrun.c (handle_inferior_event): Call the several stop reason
4485 observers instead of printing the stop reason directly.
4486 (end_stepping_range): New function.
4487 (print_end_stepping_range_reason, print_signal_exited_reason)
4488 (print_exited_reason, print_signal_received_reason)
4489 (print_no_history_reason): Make static, and add an uiout
4490 parameter. Print to that instead of to CURRENT_UIOUT.
4491 * infrun.h (print_end_stepping_range_reason)
4492 (print_signal_exited_reason, print_exited_reason)
4493 (print_signal_received_reason print_no_history_reason): New
4495 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4497 <cli_uiout>: New field.
4498 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4499 uiout for CLI output. Install 'signal_received',
4500 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4502 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4503 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4504 (mi_on_no_history): New functions.
4505 (ui_out_free_cleanup): Delete function.
4506 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4507 instead use the one already stored in the MI interpreter data.
4508 (mi_ui_out): Adjust.
4509 * tui/tui-interp.c: Include infrun.h and observer.h.
4510 (tui_interp): New global.
4511 (tui_on_signal_received, tui_on_end_stepping_range)
4512 (tui_on_signal_exited, tui_on_exited)
4513 (tui_on_no_history): New functions.
4514 (tui_init): Install them as 'end_stepping_range',
4515 'signal_received' 'signal_exited', 'exited' and 'no_history'
4517 (_initialize_tui_interp): Delete tui_interp local.
4519 2014-05-29 Pedro Alves <palves@redhat.com>
4522 * linux-nat.c (linux_nat_resume_callback): Rename the second
4523 parameter to 'except'. Skip LP if it points to EXCEPT.
4524 (linux_nat_resume): Don't mark the event lwp as not stopped
4525 before resuming sibling lwps. Instead ask
4526 linux_nat_resume_callback to skip the event lwp. Mark it as not
4527 stopped after actually resuming it.
4528 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4530 (wait_lwp): Mark the lwp as stopped here.
4531 (stop_wait_callback): Mark the lwp as not stopped right after
4532 resuming it. Don't mark lwps as stopped here.
4533 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4534 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4536 2014-05-29 Pedro Alves <palves@redhat.com>
4539 * infrun.c (resume): Determine how much to resume depending on
4540 whether the caller wanted a step, not whether we can hardware step
4541 the target. Mark all threads that we intend to run as running,
4542 unless we're calling an inferior function.
4543 (normal_stop): If the thread is running an infcall, don't finish
4545 * target.c (target_resume): Don't mark threads as running here.
4547 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4549 * serial.c (_initialize_serial): Remove support for
4550 the "set remotebaud" and "show remotebaud" commands.
4551 * NEWS: Add entry documenting the removal of that command.
4553 2014-05-28 Yao Qi <yao@codesourcery.com>
4555 * charset.c: Fix typo in comments.
4557 2014-05-27 Gary Benson <gbenson@redhat.com>
4559 * utils.c (internal_vproblem): Prompt for a bug report.
4561 2014-05-26 Andy Wingo <wingo@igalia.com>
4563 * guile/scm-arch.c (arscm_mark_arch_smob):
4564 * guile/scm-block.c (bkscm_mark_block_smob)
4565 (bkscm_mark_block_syms_progress_smob):
4566 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4567 * guile/scm-exception.c (exscm_mark_exception_smob):
4568 * guile/scm-frame.c (frscm_mark_frame_smob):
4569 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4570 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4571 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4572 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4573 (ppscm_mark_pretty_printer_worker_smob):
4574 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4575 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4576 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4577 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4579 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4582 2014-05-26 Andy Wingo <wingo@igalia.com>
4583 Doug Evans <xdje42@gmail.com>
4585 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4586 empty_base_class. All uses updated.
4587 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4588 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4590 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4591 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4592 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4593 (gdbscm_gsmob_has_property_p, add_property_name)
4594 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4595 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4596 (gdb-object-has-property?, gdb-object-properties): Remove.
4597 (gdb-object-kind): Renamed from gsmob-kind.
4599 2014-05-26 Andy Wingo <wingo@igalia.com>
4601 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4602 * configure: Regenerate.
4604 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4606 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4608 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4610 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4611 (replay_memory_access_read_only, replay_memory_access_read_write)
4612 (replay_memory_access_types, replay_memory_access)
4613 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4614 (cmd_set_record_btrace, cmd_show_record_btrace)
4615 (cmd_show_replay_memory_access): New.
4616 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4617 (record_btrace_remove_breakpoint): Replace
4618 record_btrace_allow_memory_access with replay_memory_access.
4619 (_initialize_record_btrace): Add commands.
4620 * NEWS: Announce it.
4622 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4624 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4626 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4628 * MAINTAINERS (Write After Approval): Move self back from
4631 2014-05-22 Pedro Alves <palves@redhat.com>
4633 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4634 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4635 (disable_randomization, enum exec_direction_kind)
4636 (execution_direction, stop_registers, start_remote)
4637 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4638 (wait_for_inferior, normal_stop, get_last_target_status)
4639 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4640 (insert_step_resume_breakpoint_at_sal)
4641 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4642 (set_step_info, print_stop_event, signal_stop_state)
4643 (signal_print_state, signal_pass_state, signal_stop_update)
4644 (signal_print_update, signal_pass_update)
4645 (update_signals_program_target, clear_exit_convenience_vars)
4646 (displaced_step_dump_bytes, update_observer_mode)
4647 (signal_catch_update, gdb_signal_from_command): Move
4649 * infrun.h: ... to this new file.
4650 * amd64-tdep.c: Include infrun.h.
4651 * annotate.c: Include infrun.h.
4652 * arch-utils.c: Include infrun.h.
4653 * arm-linux-tdep.c: Include infrun.h.
4654 * arm-tdep.c: Include infrun.h.
4655 * break-catch-sig.c: Include infrun.h.
4656 * breakpoint.c: Include infrun.h.
4657 * common/agent.c: Include infrun.h instead of inferior.h.
4658 * corelow.c: Include infrun.h.
4659 * event-top.c: Include infrun.h.
4660 * go32-nat.c: Include infrun.h.
4661 * i386-tdep.c: Include infrun.h.
4662 * inf-loop.c: Include infrun.h.
4663 * infcall.c: Include infrun.h.
4664 * infcmd.c: Include infrun.h.
4665 * infrun.c: Include infrun.h.
4666 * linux-fork.c: Include infrun.h.
4667 * linux-nat.c: Include infrun.h.
4668 * linux-thread-db.c: Include infrun.h.
4669 * monitor.c: Include infrun.h.
4670 * nto-tdep.c: Include infrun.h.
4671 * procfs.c: Include infrun.h.
4672 * record-btrace.c: Include infrun.h.
4673 * record-full.c: Include infrun.h.
4674 * remote-m32r-sdi.c: Include infrun.h.
4675 * remote-mips.c: Include infrun.h.
4676 * remote-notif.c: Include infrun.h.
4677 * remote-sim.c: Include infrun.h.
4678 * remote.c: Include infrun.h.
4679 * reverse.c: Include infrun.h.
4680 * rs6000-tdep.c: Include infrun.h.
4681 * s390-linux-tdep.c: Include infrun.h.
4682 * solib-irix.c: Include infrun.h.
4683 * solib-osf.c: Include infrun.h.
4684 * solib-svr4.c: Include infrun.h.
4685 * target.c: Include infrun.h.
4686 * top.c: Include infrun.h.
4687 * windows-nat.c: Include infrun.h.
4688 * mi/mi-interp.c: Include infrun.h.
4689 * mi/mi-main.c: Include infrun.h.
4690 * python/py-threadevent.c: Include infrun.h.
4692 2014-05-22 Pedro Alves <palves@redhat.com>
4694 * infrun.c (handle_inferior_event): Store the exit code for
4695 --return-child-result here, instead of ...
4696 (print_exited_reason): ... here.
4698 2014-05-21 Pedro Alves <palves@redhat.com>
4701 * gdbthread.h (struct thread_control_state): New field
4703 * infrun.c (follow_fork): Copy the new thread control field to the
4705 (clear_proceed_status_thread): Clear the new thread control field.
4706 (proceed): Set the new thread control field.
4707 * interps.h (command_interp): Declare.
4708 * interps.c (command_interpreter): New global.
4709 (command_interp): New function.
4710 (interp_exec): Set `command_interpreter' while here.
4711 * cli-out.c (cli_uiout_dtor): New function.
4712 (cli_ui_out_impl): Install it.
4713 * mi/mi-interp.c: Include cli-out.h.
4714 (mi_cmd_interpreter_exec): Add comment.
4715 (restore_current_uiout_cleanup): New function.
4716 (ui_out_free_cleanup): New function.
4717 (mi_on_normal_stop): If finishing an execution command started by
4718 a CLI command, or any kind of breakpoint-like event triggered,
4719 print the stop event to the output (CLI) stream.
4720 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4722 2014-05-21 Pedro Alves <palves@redhat.com>
4724 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4725 current source line having changed.
4726 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4727 * infrun.c (normal_stop): Adjust call to
4728 set_current_sal_from_frame.
4729 * source.c (clear_lines_listed_range): New function.
4730 (set_current_source_symtab_and_line, identify_source_line): Clear
4731 the lines listed range.
4732 (line_info): Handle the first "info line" after the current source
4733 line having changed.
4734 * stack.c (print_stack_frame): Remove center handling.
4735 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4738 2014-05-21 Pedro Alves <palves@redhat.com>
4740 * inf-child.c (inf_child_mourn_inferior): New function.
4741 * inf-child.h (inf_child_mourn_inferior): New declaration.
4742 * darwin-nat.c (darwin_mourn_inferior): Use
4743 inf_child_mourn_inferior.
4744 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4745 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4746 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4747 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4748 * windows-nat.c (windows_mourn_inferior): Likewise.
4750 2014-05-21 Doug Evans <xdje42@gmail.com>
4752 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4754 2014-05-21 Doug Evans <xdje42@gmail.com>
4756 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4757 (gdbscm_out_of_range_error): Ditto.
4758 (gdbscm_memory_error): Ditto.
4759 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4760 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4761 (gdbscm_out_of_range_error): Update.
4762 (gdbscm_memory_error): Update.
4763 (gdbscm_scm_to_target_string_unsafe): Delete.
4765 2014-05-21 Pedro Alves <palves@redhat.com>
4767 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4769 (inf_child_open_target): New function.
4770 (inf_child_open): Use inf_child_open_target to push the target
4771 instead of erroring out.
4772 (inf_child_disconnect, inf_child_close)
4773 (inf_child_maybe_unpush_target): New functions.
4774 (inf_child_target): Install inf_child_disconnect and
4775 inf_child_close. Store a pointer to the returned object.
4776 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4778 * target.c (auto_connect_native_target): New global.
4779 (show_default_run_target): New function.
4780 (find_default_run_target): Return NULL if automatically connecting
4781 to the native target is disabled.
4782 (_initialize_target): Install set/show auto-connect-native-target.
4783 * NEWS: Mention "set auto-connect-native-target", and "target
4785 * linux-nat.c (super_close): New global.
4786 (linux_nat_close): Call super_close.
4787 (linux_nat_add_target): Store a pointer to the base class's
4789 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4790 inf_child_maybe_unpush.
4791 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4793 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4794 the inferior. Use inf_child_maybe_unpush_target.
4795 (inf_ttrace_attach): Don't push the target if it is already
4797 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4798 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4799 after mourning the inferior. Use inf_child_maybe_unpush_target.
4800 (darwin_attach_pid): Don't push the target if it is already
4802 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4803 mourning the inferior. Use inf_child_maybe_unpush_target.
4804 (gnu_detach): Use inf_child_maybe_unpush_target.
4805 * go32-nat.c (go32_create_inferior): Don't push the target if it
4807 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4808 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4809 (procfs_open): Rename to ...
4810 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4811 comments. Can target_preopen before changing node. Call
4812 inf_child_open_target to push the target explicitly.
4813 (procfs_attach): Don't push the target if it is already pushed.
4814 (procfs_detach): Use inf_child_maybe_unpush_target.
4815 (procfs_create_inferior): Don't push the target if it is already
4817 (nto_native_ops): New global.
4818 (procfs_open): Reimplement.
4819 (procfs_native_open): New function.
4820 (init_procfs_targets): Install procfs_native_open as to_open of
4821 "target native". Store a pointer to the "native" target in
4823 * procfs.c (procfs_attach): Don't push the target if it is already
4825 (procfs_detach): Use inf_child_maybe_unpush_target.
4826 (procfs_mourn_inferior): Only unpush the target after mourning the
4827 inferior. Use inf_child_maybe_unpush_target.
4828 (procfs_init_inferior): Don't push the target if it is already
4830 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4831 if it is already pushed.
4833 2014-05-21 Pedro Alves <palves@redhat.com>
4835 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4836 and "procfs" targets are now called "native" instead.
4838 2014-05-21 Pedro Alves <palves@redhat.com>
4840 * go32-nat.c (go32_open): Delete.
4841 (go32_target): Don't override the to_open method.
4843 2014-05-21 Pedro Alves <palves@redhat.com>
4845 * nto-procfs.c (procfs_can_run): New function.
4846 (nto_procfs_ops): New global.
4847 (init_procfs_targets): New, based on procfs_target. Install
4848 "target native" in addition to "target procfs".
4849 (_initialize_procfs): Call init_procfs_targets instead of adding
4852 2014-05-21 Pedro Alves <palves@redhat.com>
4854 * windows-nat.c (windows_target): Don't override to_shortname,
4855 to_longname or to_doc.
4857 2014-05-21 Pedro Alves <palves@redhat.com>
4859 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4862 2014-05-21 Pedro Alves <palves@redhat.com>
4864 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4865 to_shortname, to_longname or to_doc.
4867 2014-05-21 Pedro Alves <palves@redhat.com>
4869 * go32-nat.c (go32_target): Don't override to_shortname,
4870 to_longname or to_doc.
4872 2014-05-21 Pedro Alves <palves@redhat.com>
4874 * inf-child.c (inf_child_open): Remove mention of "child".
4875 (inf_child_target): Rename target to "native" instead of "child".
4877 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4879 * Makefile.in (SFILES): Delete "regset.c".
4880 (COMMON_OBS): Delete "regset.o".
4882 * regset.h (regset_alloc): Delete prototype.
4884 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4886 * sparc-linux-tdep.c (sparc32_linux_gregset)
4887 (sparc32_linux_fpregset): New static regset structures.
4888 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4889 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4891 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4892 (sparc64_linux_fpregset): New static regset structures.
4893 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4894 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4895 New static regset structures.
4896 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4897 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4898 New static regset structures.
4899 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4900 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4901 New static regset structures.
4902 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4903 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4904 New static regset structures.
4905 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4907 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4909 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4910 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4911 register maps ("regmaps") from "*regset" to "*regmap". Do this
4912 for all regmap types and variables.
4913 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4914 (sparc32_linux_supply_core_gregset)
4915 (sparc32_linux_collect_core_gregset)
4916 (sparc32_linux_supply_core_fpregset)
4917 (sparc32_linux_collect_core_fpregset): Likewise.
4918 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4919 (sparc_gregmap, sparc_fpregmap): ... these.
4920 (sparc_supply_gregset, sparc_collect_gregset)
4921 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4922 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4923 (_initialize_sparc_nat): Rename regmaps.
4924 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4925 (sparc_gregmap, sparc_fpregmap): ... these.
4926 (sparc_supply_gregset, sparc_collect_gregset)
4927 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4928 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4930 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4931 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4933 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4935 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4936 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4937 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4939 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4940 (sparc32_bsd_fpregset): Rename to...
4941 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4942 (sparc32_bsd_fpregmap): ... these.
4943 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4944 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4945 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4946 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4947 (struct sparc_gregmap, struct sparc_fpregmap)
4948 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4949 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4950 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4951 (sparc32_supply_regset, sparc32_collect_gregset)
4952 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4954 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4955 (sparc64_linux_ptrace_gregmap): ... this.
4956 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4957 (_initialize_sparc64_linux_nat): Rename regmaps.
4958 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4959 (sparc64_linux_core_gregmap): ... this.
4960 (sparc64_linux_supply_core_gregset)
4961 (sparc64_linux_collect_core_gregset)
4962 (sparc64_linux_supply_core_fpregset)
4963 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4964 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4965 (sparc64_sol2_fpregset): Rename to...
4966 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4967 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4968 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4970 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4971 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4972 (sparc64_bsd_fpregset): Rename to...
4973 (struct sparc_gregmap, sparc64_sol2_gregmap)
4974 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4975 (sparc64_bsd_fpregmap): ... these.
4976 (sparc64_supply_gregset, sparc64_collect_gregset)
4977 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4979 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4980 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4981 (sparc64fbsd_gregmap): ... this.
4982 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4983 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4985 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4986 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4987 (sparc64nbsd_collect_fpregset): Likewise.
4988 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4989 (sparc64nbsd_gregmap): ... this.
4990 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4992 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4993 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4994 (sparc64obsd_gregmap): ... this.
4995 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4997 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4998 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4999 (sparc32nbsd_gregmap): ... this.
5000 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5003 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5005 * score-tdep.c (score7_linux_gregset): New static regset
5007 (score7_linux_regset_from_core_section): Remove dynamic regset
5009 (score_gdbarch_init): Drop allocation of tdep structure.
5010 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5012 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5014 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5016 (am33_regset_from_core_section): Remove dynamic regset
5019 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5021 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5022 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5024 (mips_linux_regset_from_core_section): Remove dynamic regset
5026 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5027 'gregset64', 'fpregset', and 'fpregset64'.
5028 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5029 deleted tdep fields.
5031 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5033 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5035 (amd64_regset_from_core_section): Remove dynamic regset
5037 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5039 (amd64obsd_regset_from_core_section): Remove dynamic regset
5041 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5043 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5044 x86-common regset supply function.
5045 * i386-tdep.c (i386_collect_gregset): Make static.
5046 (i386_gregset): New global regset structure.
5047 (i386_fpregset, i386_xstateregset): New static regset structures.
5048 (i386_regset_from_core_section): Remove dynamic regset
5050 (i386_gdbarch_init): Remove initialization of tdep fields
5051 'gregset', 'fpregset', and 'xstateregset'.
5052 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5053 'fpregset', and 'xstateregset'.
5054 (i386_collect_gregset): Remove prototype.
5055 (i386_gregset): New declaration.
5056 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5058 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5061 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5063 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5064 (arm_linux_vfpregset): New static regset structures.
5065 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5067 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5068 and 'vfpregset' fields.
5070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5072 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5073 (aarch64_linux_fpregset): New static regset structures.
5074 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5075 of regset structures.
5076 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5079 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5081 * regset.h (struct regset): Remove gdbarch field.
5082 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5083 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5084 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5086 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5087 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5088 (ppc32_linux_vsxregset): Likewise.
5089 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5090 via the regcache instead of the regset.
5091 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5092 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5093 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5094 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5097 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5099 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5100 Constify structures.
5101 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5102 (alphanbsd_aout_gregset): Likewise.
5103 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5104 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5106 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5107 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5109 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5110 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5111 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5112 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5113 * m88k-tdep.c (m88k_gregset): Likewise.
5114 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5115 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5116 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5117 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5118 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5119 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5120 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5121 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5122 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5124 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5125 * sh-tdep.h (sh_corefile_gregset): Likewise.
5126 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5127 * vax-tdep.c (vax_gregset): Likewise.
5129 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5131 Fix TLS access for -static -pthread.
5132 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5133 (try_thread_db_load_1): Initialize it.
5134 (thread_db_get_thread_local_address): Call it if LM is zero.
5135 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5136 * target.h (struct target_ops) (to_get_thread_local_address): Add
5137 load_module_addr comment.
5139 2014-05-21 Pedro Alves <palves@redhat.com>
5141 * dcache.c (dcache_read_memory_partial): If reading the cache line
5142 fails, fallback to reading just the memory the caller wanted.
5144 2014-05-20 Doug Evans <dje@google.com>
5146 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5147 instead of get_current_arch.
5149 2014-05-20 Pedro Alves <palves@redhat.com>
5151 * NEWS: Mention that compare-sections now works with all targets.
5153 * remote.c (PACKET_qCRC): New enum value.
5154 (remote_verify_memory): Don't send qCRC if the target has no
5155 execution. Use packet_support/packet_ok. If the target doesn't
5156 support the qCRC packet, fallback to a deep memory copy.
5157 (compare_sections_command): Say "target image" instead of "remote
5159 (_initialize_remote): Add PACKET_qCRC to the list of config
5160 packets that have no associated command. Extend comment.
5161 * target.c (simple_verify_memory, default_verify_memory): New
5163 * target.h (struct target_ops) <to_verify_memory>: Default to
5164 default_verify_memory.
5165 (simple_verify_memory): New declaration.
5166 * target-delegates.c: Regenerate.
5168 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5170 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5172 2014-05-20 Hui Zhu <hui@codesourcery.com>
5173 Yao Qi <yao@codesourcery.com>
5176 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5177 and change address of sp and pc.
5179 2014-05-19 Tom Tromey <tromey@redhat.com>
5181 * gdbtypes.c (rank_function): Use XNEWVEC.
5182 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5184 2014-05-19 Doug Evans <dje@google.com>
5186 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5187 build_type_unit_groups and moved closer to only caller. Remove
5188 arguments. All references updated. Remove outdated .gdb_index
5190 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5191 build_type_psymtabs_1.
5193 2014-05-19 Doug Evans <dje@google.com>
5195 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5196 n_type_unit_groups, all_type_unit_groups. All uses removed.
5197 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5198 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5199 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5200 (add_type_unit_group_to_table): Delete.
5202 2014-05-19 Doug Evans <dje@google.com>
5204 * eval.c (evaluate_subexp_standard): Add some comments.
5206 2014-05-17 Doug Evans <xdje42@gmail.com>
5208 * progspace.c (remove_program_space): Delete, unused.
5209 * progspace.h (remove_program_space): Ditto.
5211 2014-05-17 Doug Evans <xdje42@gmail.com>
5213 * inferior.c (prune_inferiors): Fix comment.
5214 (remove_inferior_command): Call prune_program_spaces.
5216 2014-05-16 Doug Evans <dje@google.com>
5218 New command line option -D.
5220 * main.c (set_gdb_data_directory): New function.
5221 (captured_main): Recognize -D. Flag error for --data-directory "".
5222 Call set_gdb_data_directory.
5223 (print_gdb_help): Print --data-directory, -D.
5224 * main.h (set_gdb_data_directory): Declare.
5225 * top.c (staged_gdb_datadir): New static global.
5226 (set_gdb_datadir): Call set_gdb_data_directory
5227 (show_gdb_datadir): New function.
5228 (init_main): Update init of data-directory parameter.
5230 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5232 Import the "dirfd" gnulib module.
5233 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5234 * gnulib/aclocal.m4: Update.
5235 * gnulib/config.in: Update.
5236 * gnulib/configure: Update.
5237 * gnulib/import/Makefile.am: Update.
5238 * gnulib/import/Makefile.in: Update.
5239 * gnulib/import/dirfd.c: New.
5240 * gnulib/import/m4/dirfd.m4: New.
5241 * gnulib/import/m4/gnulib-cache.m4: Update.
5242 * gnulib/import/m4/gnulib-comp.m4: Update.
5244 2014-05-16 Pierre Muller <muller@sourceware.org>
5245 Yao Qi <yao@codesourcery.com>
5247 * valprint.c (print_wchar): Move the code on checking whether
5248 W is a printable wide char to the default branch of switch
5249 statement below. Call wchar_printable instead of gdb_iswprint.
5251 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5253 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5254 ldr.w and ldrd instructions.
5256 2014-05-15 Doug Evans <dje@google.com>
5258 * dwarf2read.c (read_structure_type): Delete outdated comments.
5260 2014-05-14 Tom Tromey <tromey@redhat.com>
5262 * macrocmd.c (print_macro_definition): Reindent.
5264 2014-05-13 Doug Evans <xdje42@gmail.com>
5266 * python/py-cmd.c (cmdpy_completer): Add comment.
5267 (completers): Make const.
5269 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5271 * infrun.c (resume): Remove should_resume (unused). Move up
5272 declaration of resume_ptid.
5274 2014-05-13 Tom Tromey <tromey@redhat.com>
5276 * language.h (unop_type_check): Remove.
5277 (binop_type_check): Don't declare.
5279 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5281 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5282 call to regcache_raw_collect.
5284 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5286 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5287 mi_console->quote as the quoting character.
5289 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5291 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5293 2014-04-29 Tom Tromey <tromey@redhat.com>
5295 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5296 "show debug varobj".
5298 2014-05-07 Kyle McMartin <kyle@redhat.com>
5300 Pushed by Joel Brobecker <brobecker@adacore.com>.
5301 * aarch64-tdep.c (aarch64_software_single_step): New function.
5302 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5303 with aarch64_software_single_step.
5305 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5309 2014-05-05 Keith Seitz <keiths@redhat.com>
5311 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5312 variable or history value is successfully parsed.
5314 2014-05-05 Yao Qi <yao@codesourcery.com>
5315 Pedro Alves <palves@redhat.com>
5317 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5318 address of blocks that intersects the requested range. Trim
5319 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5321 * ctf.c (ctf_xfer_partial): Likewise.
5323 2014-05-05 Yao Qi <yao@codesourcery.com>
5325 * printcmd.c (display_command): Remove the check to
5326 target_has_execution.
5328 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5330 * ppcobsd-nat.c: Include "obsd-nat.h".
5331 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5333 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5335 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5337 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5338 and 16-bit signed and unsigned arguments. Update comment.
5339 (stap_parse_probe_arguments): Extend code to handle such
5340 arguments. Use warning instead of complaint to notify about
5341 unrecognized bitness.
5343 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5345 PR breakpoints/16889
5346 * stap-probe.c (stap_parse_probe_arguments): Simplify
5347 check for non-prefixed probes (i.e., probes whose
5348 arguments do not start with "N@"). Always set the
5349 argument type to a sane value.
5351 2014-05-01 David Taylor <dtaylor@emc.com>
5353 * remote.c (compare_sections_command): Add -r option to compare
5354 all loadable read-only sections.
5356 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5358 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5359 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5361 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5362 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5363 Remove unused CORE_ADDR argument. Update all callers.
5365 2014-04-29 Pedro Alves <palves@redhat.com>
5367 * remote.c (struct packet_config) <detect>: Extend comment.
5368 (add_packet_config_cmd): Don't set the config's detect or support
5370 (init_all_packet_configs): Also initialize the config's 'detect'
5372 (reset_all_packet_configs_support): New function.
5373 (remote_open_1): Call reset_all_packet_configs_support instead of
5374 init_all_packet_configs.
5375 (_initialize_remote): Initialize all packet configs. Assert that
5376 all packets have an associated command, except a few known
5379 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5381 * dwarf2read.c (read_subrange_type): Handle dynamic
5382 DW_AT_lower_bound attributes.
5384 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5386 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5387 dynamic bounds before computing its upper bound.
5388 (ada_discrete_type_low_bound): Same as above with the lower bound.
5390 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5392 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5393 range types. Adjust the array handling implementation to
5394 take advantage of this change.
5395 (resolve_dynamic_range): New function, mostly extracted from
5396 resolve_dynamic_bounds.
5397 (resolve_dynamic_array): New function, mostly extracted from
5398 resolve_dynamic_bounds.
5399 (resolve_dynamic_bounds): Delete.
5400 (resolve_dynamic_type): Reimplement. Add handling of
5401 TYPE_CODE_RANGE types.
5403 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5405 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5406 handling of parallel ___XA types.
5408 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5410 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5411 unnecessary second call to static_unwrap_type.
5413 2014-04-27 Hui Zhu <hui@codesourcery.com>
5415 * stack.c (print_frame_info): Call do_gdb_disassembly with
5416 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5418 2014-04-26 Doug Evans <xdje42@gmail.com>
5420 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5422 2014-04-25 Pedro Alves <palves@redhat.com>
5425 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5426 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5427 and newline from built string.
5428 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5429 (linux_ptrace_attach_fail_reason): ... this.
5430 * linux-nat.c (linux_nat_attach): Adjust to use
5431 linux_ptrace_attach_fail_reason.
5433 2014-04-25 Pedro Alves <palves@redhat.com>
5435 * remote.c (struct remote_state): Remove multi_process_aware,
5436 non_stop_aware, cond_tracepoints, cond_breakpoints,
5437 breakpoint_commands, fast_tracepoints, static_tracepoints,
5438 install_in_trace, disconnected_tracing,
5439 enable_disable_tracepoints, string_tracing, and
5440 augmented_libraries_svr4_read fields.
5441 (remote_multi_process_p): Move further below in the file.
5442 (struct packet_config): Add comments.
5443 (update_packet_config): Delete function.
5444 (show_packet_config_cmd): Use packet_config_support.
5445 (add_packet_config_cmd): Use NULL as set callback.
5446 (packet_ok): "set remote foo-packet"-style commands no longer
5447 change config->supported -- adjust.
5448 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5449 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5450 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5451 (PACKET_QNonStop, PACKET_multiprocess_feature)
5452 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5453 (PACKET_DisconnectedTracing_feature)
5454 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5455 (set_remote_protocol_packet_cmd): Delete function.
5456 (packet_config_support, packet_support): New functions.
5457 (set_remote_protocol_Z_packet_cmd): Don't call
5458 update_packet_config.
5459 (remote_query_attached, remote_pass_signals)
5460 (remote_program_signals, remote_threads_info)
5461 (remote_threads_extra_info, remote_start_remote): Use
5463 (remote_start_remote): Use packet_config_support and
5465 (init_all_packet_configs): Set all packets to unknown support,
5466 instead of calling update_packet_config.
5467 (remote_check_symbols): Use packet_support.
5468 (remote_supported_packet): Unconditionally set the packet config's
5470 (remote_multi_process_feature, remote_non_stop_feature)
5471 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5472 (remote_breakpoint_commands_feature)
5473 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5474 (remote_install_in_trace_feature)
5475 (remote_disconnected_tracing_feature)
5476 (remote_enable_disable_tracepoint_feature)
5477 (remote_string_tracing_feature)
5478 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5479 (remote_protocol_features): Adjust to use remote_supported_packet
5480 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5481 "ConditionalTracepoints", "ConditionalBreakpoints",
5482 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5483 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5484 "EnableDisableTracepoints", and "tracenz".
5485 (remote_query_supported): Use packet_support.
5486 (remote_open_1): Adjust.
5487 (extended_remote_attach_1): Use packet_support. Switch on the
5488 result of packet_ok instead of checking whether the packet ended
5490 (remote_vcont_resume): Use packet_support.
5491 (remote_resume, remote_stop_ns, fetch_register_using_p)
5492 (remote_prepare_to_store, store_register_using_P)
5493 (check_binary_download, remote_write_bytes): Use packet_support.
5494 (remote_vkill): Use packet_support. Switch on the result of
5495 packet_ok instead of checking whether the packet ended up
5497 (extended_remote_supports_disable_randomization): Use
5499 (extended_remote_run): Switch on the result of packet_ok instead
5500 of checking whether the packet ended up disabled.
5501 (remote_insert_breakpoint, remote_remove_breakpoint)
5502 (remote_insert_watchpoint, remote_remove_watchpoint)
5503 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5505 (remote_search_memory): Use packet_config_support.
5506 (remote_get_thread_local_address, remote_get_tib_address)
5507 (remote_hostio_send_command, remote_can_execute_reverse): Use
5509 (remote_supports_cond_tracepoints)
5510 (remote_supports_cond_breakpoints)
5511 (remote_supports_fast_tracepoints)
5512 (remote_supports_static_tracepoints)
5513 (remote_supports_install_in_trace)
5514 (remote_supports_enable_disable_tracepoint)
5515 (remote_supports_string_tracing)
5516 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5517 the packet config says the feature is enabled or disabled.
5518 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5519 (remote_get_trace_status): Use packet_support.
5520 (remote_set_disconnected_tracing): Adjust to check whether the
5521 feature is enabled with packet_support.
5522 (remote_set_trace_buffer_size, remote_use_agent)
5523 (remote_can_use_agent, remote_supports_btrace): Use
5525 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5526 Use packet_config_support.
5527 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5528 the packet config says the feature is enabled or disabled.
5529 (set_range_stepping): Use packet_support.
5531 2014-04-25 Tom Tromey <tromey@redhat.com>
5533 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5536 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5538 * NEWS: Mention support for C99 variable length arrays.
5540 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5542 * ada-lang.c (standard_exc): Expand introductory comment.
5544 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5545 Walfred Tedeschi <walfred.tedeschi@intel.com>
5547 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5549 (amd64_linux_read_description): Add code to handle AVX512 xstate
5550 mask and return respective tdesc.
5551 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5552 and features/i386/x32-avx512-linux.c.
5553 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5554 (amd64_linux_core_read_description): Add code to handle AVX512
5555 xstate mask and return respective tdesc.
5556 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5557 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5559 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5560 (tdesc_amd64_avx512_linux): New prototype.
5561 (tdesc_x32_avx512_linux): Likewise.
5562 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5563 features/i386/x32-avx512.c.
5564 (amd64_ymm_avx512_names): New register names for pseudo
5566 (amd64_ymmh_avx512_names): New register names for raw registers
5568 (amd64_k_names): New register names for K registers.
5569 (amd64_zmmh_names): New register names for ZMM raw registers.
5570 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5571 (amd64_xmm_avx512_names): New register names for XMM16-31
5573 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5575 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5576 if feature is present.
5577 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5578 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5579 (AMD64_NUM_REGS): Adjust to new number of registers.
5580 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5581 registers supplied via XSTATE by AVX512 registers.
5582 (i386_linux_read_description): Add case for AVX512.
5583 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5584 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5585 (i386_linux_core_read_description): Add case for AVX512.
5586 (i386_linux_init_abi): Install supported register note section
5588 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5590 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5591 registers to be number of zmm7h + 1.
5592 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5593 * i386-tdep.c: Include features/i386/i386-avx512.c.
5594 (i386_zmm_names): Add ZMM pseudo register names array.
5595 (i386_zmmh_names): Add ZMM raw register names array.
5596 (i386_k_names): Add K raw register names array.
5597 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5598 registers. AVX512 has 16 more ZMM registers than there are YMM
5600 (i386_zmmh_regnum_p): Add function to look up register number of
5602 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5603 (i386_k_regnum_p): Likewise for K raw registers.
5604 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5605 registers added by AVX512.
5606 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5607 registers added by AVX512.
5608 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5610 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5611 (i386_pseudo_register_name): Add ZMM pseudo registers.
5612 (i386_zmm_type): Construct and return vector registers type for ZMM
5614 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5615 ZMM0-31 pseudo registers and K registers.
5616 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5617 and YMM16-31 registers from register cache.
5618 (i386_pseudo_register_write): Add code to write K, ZMM and
5620 (i386_register_reggroup_p): Add code to include/exclude AVX512
5621 registers in/from respective register groups.
5622 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5623 registers if feature is present in xcr0.
5624 (i386_gdbarch_init): Add code to initialize AVX512 feature
5625 variables in tdep structure, wire in pseudo registers and call
5626 initialize_tdesc_i386_avx512.
5627 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5629 (i386_regnum): Add AVX512 registers.
5630 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5631 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5632 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5633 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5635 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5636 (i386_ymm_avx512_regnum_p): Likewise.
5637 (i386_k_regnum_p): Likewise.
5638 (i386_zmm_regnum_p): Likewise.
5639 (i386_zmmh_regnum_p): Likewise.
5640 * i387-tdep.c : Update year in copyright notice.
5641 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5643 (XSAVE_YMM_AVX512_ADDR): New macro.
5644 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5646 (XSAVE_XMM_AVX512_ADDR): New macro.
5647 (xsave_avx512_k_offset): New table for K register offsets in
5649 (XSAVE_AVX512_K_ADDR): New macro.
5650 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5652 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5653 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5655 (i387_collect_xsave): Add code to collect AVX512 registers from
5657 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5658 of XMM16-31 registers.
5659 (I387_NUM_K_REGS): New define for number of K registers.
5660 (I387_K0_REGNUM): New define for K0 register number.
5661 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5662 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5663 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5665 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5666 (I387_XMM16_REGNUM): New define for XMM16 register number.
5667 (I387_YMM0_REGNUM): New define for YMM0 register number.
5668 (I387_KEND_REGNUM): New define for last K register number.
5669 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5670 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5672 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5674 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5676 * features/Makefile: Add AVX512 related files.
5677 * features/i386/32bit-avx512.xml: New file.
5678 * features/i386/64bit-avx512.xml: Likewise.
5679 * features/i386/amd64-avx512-linux.c: Likewise.
5680 * features/i386/amd64-avx512-linux.xml: Likewise.
5681 * features/i386/amd64-avx512.c: Likewise.
5682 * features/i386/amd64-avx512.xml: Likewise.
5683 * features/i386/i386-avx512-linux.c: Likewise.
5684 * features/i386/i386-avx512-linux.xml: Likewise.
5685 * features/i386/i386-avx512.c: Likewise.
5686 * features/i386/i386-avx512.xml: Likewise.
5687 * features/i386/x32-avx512-linux.c: Likewise.
5688 * features/i386/x32-avx512-linux.xml: Likewise.
5689 * features/i386/x32-avx512.c: Likewise.
5690 * features/i386/x32-avx512.xml: Likewise.
5691 * regformats/i386/amd64-avx512-linux.dat: New file.
5692 * regformats/i386/amd64-avx512.dat: Likewise.
5693 * regformats/i386/i386-avx512-linux.dat: Likewise.
5694 * regformats/i386/i386-avx512.dat: Likewise.
5695 * regformats/i386/x32-avx512-linux.dat: Likewise.
5696 * regformats/i386/x32-avx512.dat: Likewise.
5697 * NEWS: Add note about new support for AVX512.
5700 2014-04-23 Pedro Alves <palves@redhat.com>
5702 * breakpoint.c (insert_bp_location): Tolerate errors if the
5703 breakpoint is set in a user-loaded objfile.
5704 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5705 location is marked shlib_disabled. If the breakpoint is set in a
5706 user-loaded objfile is a GDB-side memory breakpoint, validate it
5707 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5708 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5710 * mem-break.c (memory_validate_breakpoint): New function.
5711 * objfiles.c (userloaded_objfile_contains_address_p): New
5713 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5714 * target.h (memory_validate_breakpoint): New declaration.
5716 2014-04-23 Pedro Alves <palves@redhat.com>
5718 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5719 the breakpoint is set in a shared library, only suppress
5720 errors for software breakpoints, not hardware breakpoints.
5722 2014-04-22 Pedro Alves <palves@redhat.com>
5724 * infrun.c (schedlock_applies): New function, factored out from
5725 find_thread_needs_step_over.
5726 (find_thread_needs_step_over): Use it.
5727 (switch_back_to_stepped_thread): Always clear trap_expected if the
5728 step over is finished. Return early if scheduler locking applies.
5729 Look for the stepping thread and a potential step-over thread with
5731 (currently_stepping_or_nexting_callback): Delete.
5733 2014-04-22 Nick Clifton <nickc@redhat.com>
5735 * NEWS: Mention that ARM sim now supports tracing.
5737 2014-04-22 Yao Qi <yao@codesourcery.com>
5739 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5741 * tracefile.c (tracefile_fetch_registers): ... it. New
5743 * tracefile.h (tracefile_fetch_registers): Declare.
5744 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5745 tracefile_fetch_registers.
5747 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5750 * windows-nat.c (thread_rec): Don't display a warning when
5751 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5752 fails for any reason, set th->suspended to -1, so that we don't
5753 try to resume such a thread. Also, don't return NULL in these
5754 cases, to avoid completely ruin the session due to "PC register is
5755 not available" error.
5756 (do_windows_fetch_inferior_registers): Check errors in
5757 GetThreadContext call.
5758 (windows_continue): Accept an additional argument KILLED; if not
5759 zero, ignore errors in the SetThreadContext call, since the
5760 inferior was killed and is shutting down.
5761 (windows_resume, get_windows_debug_event)
5762 (windows_create_inferior, windows_mourn_inferior)
5763 (windows_kill_inferior): All callers of windows_continue changed
5764 to adjust to its new calling sequence.
5766 2014-04-19 Yao Qi <yao@codesourcery.com>
5768 * ctf.c (ctf_open): Call post_create_inferior.
5770 2014-04-19 Yao Qi <yao@codesourcery.com>
5772 * ctf.c (handle_id): New static variable.
5773 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5774 value. Get the declaration of event "register" and get length
5775 of field "contents".
5777 2014-04-19 Yao Qi <yao@codesourcery.com>
5779 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5781 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5783 * valops.c (oload_method_static): Remove unnecessary argument
5784 METHOD. Update all callers.
5786 2014-04-18 Pedro alves <palves@redhat.com>
5787 Tom Tromey <tromey@redhat.com>
5790 * frame.c (get_prev_frame_1): Rename to ...
5791 (get_prev_frame_always): ... this, and make extern. Adjust.
5792 (skip_artificial_frames): Use get_prev_frame_always.
5793 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5794 (get_frame_unwind_stop_reason): Adjust to rename.
5795 * frame.h (get_prev_frame_always): Declare.
5796 * inline-frame.c: Include frame.h.
5797 (inline_frame_this_id): Use get_prev_frame_always.
5799 2014-04-18 Tristan Gingold <gingold@adacore.com>
5801 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5802 code by using bfd_mach_o_get_base_address.
5804 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5806 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5807 (spu_ax_pseudo_register_collect): New function.
5808 (spu_ax_pseudo_register_push_stack): Likewise.
5809 (spu_dwarf_reg_to_regnum): Likewise.
5810 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5812 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5814 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5815 Replace FRAME argument with FRAME_ID.
5816 * gdbarch.c, gdbarch.h: Regenerate.
5817 * findvar.c (default_value_from_register): Add GDBARCH argument;
5818 replace FRAME by FRAME_ID. No longer call get_frame_id.
5819 (value_from_register): Update call to gdbarch_value_from_register.
5820 * value.h (default_value_from_register): Update prototype.
5821 * s390-linux-tdep.c (s390_value_from_register): Update interface
5822 and call to default_value_from_register.
5823 * spu-tdep.c (spu_value_from_register): Likewise.
5825 * findvar.c (address_from_register): Remove TYPE argument.
5826 Do not call value_from_register; use gdbarch_value_from_register
5827 with null_frame_id instead.
5828 * value.h (address_from_register): Update prototype.
5829 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5830 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5831 address_from_register interface change.
5833 2014-04-17 Yao Qi <yao@codesourcery.com>
5835 * gdbtypes.h: Update comments to link to types and macros'
5838 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5840 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5842 2014-04-16 Keith Seitz <keiths@redhat.com>
5845 * dwarf2read.c (skip_one_die): Check that all relative-offset
5846 sibling DIEs fall within range of the current reader's buffer.
5847 (read_partial_die): Likewise.
5849 2014-04-16 Keith Seitz <keiths@redhat.com>
5852 * cp-namespace.c (lookup_symbol_file): If the type name of
5853 `this' is NULL, return immediately.
5855 2014-04-14 Keith Seitz <keiths@redhat.com>
5858 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5859 from symbol_matches_domain in symtab.c. All local callers
5860 of symbol_matches_domain updated.
5861 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5862 search STRUCT_DOMAIN.
5863 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5864 independently. standard_lookup will do that automatically.
5865 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5866 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5867 (cp_lookup_symbol_in_namespace): Likewise.
5868 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5869 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5870 may return a STRUCT_DOMAIN match.
5871 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5872 * cp-support.c: Include language.h.
5873 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5875 * psymtab.c (match_partial_symbol): Compare the requested
5876 domain with the symbol's domain directly.
5877 (lookup_partial_symbol): Likewise.
5878 * symtab.c (lookup_symbol_in_language): Explain when/why
5879 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5880 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5881 appropriate languages.
5882 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5883 and moved to ada-lang.c
5884 (lookup_block_symbol): Explain that this function only returns
5885 symbol matching the requested DOMAIN.
5886 Compare the requested domain with the symbol's domain directly.
5887 (iterate_over_symbols): Compare the requested domain with the
5888 symbol's domain directly.
5889 * symtab.h (symbol_matches_domain): Remove.
5891 2014-04-14 Tom Tromey <tromey@redhat.com>
5894 * c-exp.y (type_aggregate_p): New function.
5895 (qualified_name, classify_inner_name): Use it.
5896 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5897 and TYPE_TARGET_TYPE of an enum type.
5898 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5900 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5901 handle TYPE_DECLARED_CLASS.
5902 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5904 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5905 * valops.c (enum_constant_from_type): New function.
5906 (value_aggregate_elt): Use it.
5907 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5910 2014-04-14 Tom Tromey <tromey@redhat.com>
5912 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5913 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5915 * value.h (value_aggregate_elt): Update.
5917 2014-04-14 Tom Tromey <tromey@redhat.com>
5919 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5921 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5923 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5924 (evaluate_subexp_standard): Pass noside argument.
5925 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5926 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5927 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5928 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5929 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5931 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5933 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5934 points to a constant blob.
5936 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5938 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5939 property and store it as the high bound and flag the range accordingly.
5940 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5941 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5942 * gdbtypes.h (enum range_flags): New enum.
5943 (struct range_bounds): Add flags member.
5945 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5947 * c-typeprint.c (c_type_print_varspec_suffix): Added
5948 check for not yet resolved high bound. If unresolved, print
5949 "variable length" string to the console instead of random
5952 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5954 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5956 (ada_template_to_fixed_record_type_1): Likewise.
5957 (ada_to_fixed_type_1): Likewise.
5958 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5959 (cp_print_value): Likewise.
5960 * d-valprint.c (dynamic_array_type): Likewise.
5961 * findvar.c (address_of_variable): Likewise.
5962 * jv-valprint.c (java_value_print): Likewise.
5963 * valops.c (value_ind): Likewise.
5964 * value.c (coerce_ref): Likewise.
5966 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5968 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5969 value and retrieve the dynamic type size.
5971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5973 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5974 passed to sizeof is dynamic evaluate the argument to compute the length.
5976 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5977 Joel Brobecker <brobecker@adacore.com>
5979 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5980 (dwarf2_evaluate_property): New function.
5981 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5982 * dwarf2read.c (attr_to_dynamic_prop): New function.
5983 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5985 * gdbtypes.c: Include dwarf2loc.h.
5986 (is_dynamic_type): New function.
5987 (resolve_dynamic_type): New function.
5988 (resolve_dynamic_bounds): New function.
5989 (get_type_length): New function.
5990 (check_typedef): Use get_type_length to compute type length.
5991 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5992 (TYPE_LOW_BOUND_KIND): New macro.
5993 (is_dynamic_type): New function prototype.
5994 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5995 to resolve dynamic properties of the type. Update comment.
5996 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5998 2014-04-14 Richard Henderson <rth@redhat.com>
6000 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6002 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6003 Doug Evans <xdje42@gmail.com>
6005 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6006 dereference TYPE_CODE_REF values.
6008 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6010 Revert the following changes due to regressions:
6012 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6013 (dwarf2_evaluate_property): New function.
6014 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6015 * dwarf2read.c (attr_to_dynamic_prop): New function.
6016 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6018 * gdbtypes.c: Include dwarf2loc.h.
6019 (is_dynamic_type): New function.
6020 (resolve_dynamic_type): New function.
6021 (resolve_dynamic_bounds): New function.
6022 (get_type_length): New function.
6023 (check_typedef): Use get_type_length to compute type length.
6024 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6025 (TYPE_LOW_BOUND_KIND): New macro.
6026 (is_dynamic_type): New function prototype.
6027 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6028 to resolve dynamic properties of the type. Update comment.
6029 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6031 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6032 passed to sizeof is dynamic evaluate the argument to compute the length.
6034 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6035 value and retrieve the dynamic type size.
6037 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6038 (ada_template_to_fixed_record_type_1): Likewise.
6039 (ada_to_fixed_type_1): Likewise.
6040 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6041 (cp_print_value): Likewise.
6042 * d-valprint.c (dynamic_array_type): Likewise.
6043 * eval.c (evaluate_subexp_with_coercion): Likewise.
6044 * findvar.c (address_of_variable): Likewise.
6045 * jv-valprint.c (java_value_print): Likewise.
6046 * valops.c (value_ind): Likewise.
6047 * value.c (coerce_ref): Likewise.
6049 * c-typeprint.c (c_type_print_varspec_suffix): Added
6050 check for not yet resolved high bound. If unresolved, print
6051 "variable length" string to the console instead of random
6054 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6055 property and store it as the high bound and flag the range accordingly.
6056 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6057 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6058 * gdbtypes.h (enum range_flags): New enum.
6059 (struct range_bounds): Add flags member.
6061 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6062 points to a constant blob.
6064 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6065 (evaluate_subexp_standard): Pass noside argument.
6066 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6067 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6068 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6069 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6070 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6072 2014-04-11 Keith Seitz <keiths@redhat.com>
6075 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6076 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6079 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6081 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6082 (evaluate_subexp_standard): Pass noside argument.
6083 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6084 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6085 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6086 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6087 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6089 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6091 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6092 points to a constant blob.
6094 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6096 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6097 property and store it as the high bound and flag the range accordingly.
6098 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6099 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6100 * gdbtypes.h (enum range_flags): New enum.
6101 (struct range_bounds): Add flags member.
6103 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6105 * c-typeprint.c (c_type_print_varspec_suffix): Added
6106 check for not yet resolved high bound. If unresolved, print
6107 "variable length" string to the console instead of random
6110 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6112 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6113 (ada_template_to_fixed_record_type_1): Likewise.
6114 (ada_to_fixed_type_1): Likewise.
6115 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6116 (cp_print_value): Likewise.
6117 * d-valprint.c (dynamic_array_type): Likewise.
6118 * eval.c (evaluate_subexp_with_coercion): Likewise.
6119 * findvar.c (address_of_variable): Likewise.
6120 * jv-valprint.c (java_value_print): Likewise.
6121 * valops.c (value_ind): Likewise.
6122 * value.c (coerce_ref): Likewise.
6124 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6126 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6127 value and retrieve the dynamic type size.
6129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6131 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6132 passed to sizeof is dynamic evaluate the argument to compute the length.
6134 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6136 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6137 (dwarf2_evaluate_property): New function.
6138 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6139 * dwarf2read.c (attr_to_dynamic_prop): New function.
6140 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6142 * gdbtypes.c: Include dwarf2loc.h.
6143 (is_dynamic_type): New function.
6144 (resolve_dynamic_type): New function.
6145 (resolve_dynamic_bounds): New function.
6146 (get_type_length): New function.
6147 (check_typedef): Use get_type_length to compute type length.
6148 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6149 (TYPE_LOW_BOUND_KIND): New macro.
6150 (is_dynamic_type): New function prototype.
6151 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6152 to resolve dynamic properties of the type. Update comment.
6153 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6155 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6157 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6158 declaring high/low bounds and change uses accordingly. Call
6159 create_range_type instead of create_static_range_type.
6160 * gdbtypes.c (create_range_type): New function.
6161 (create_range_type): Convert bounds into struct bound_prop and pass
6162 them to create_range_type.
6163 * gdbtypes.h (struct bound_prop): New struct.
6164 (create_range_type): New function prototype.
6165 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6166 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6167 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6169 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6171 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6173 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6174 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6175 * ada-lang.c: All uses of create_range_type updated.
6176 * coffread.c: All uses of create_range_type updated.
6177 * dwarf2read.c: All uses of create_range_type updated.
6178 * f-exp.y: All uses of create_range_type updated.
6179 * m2-valprint.c: All uses of create_range_type updated.
6180 * mdebugread.c: All uses of create_range_type updated.
6181 * stabsread.c: All uses of create_range_type updated.
6182 * valops.c: All uses of create_range_type updated.
6183 * valprint.c: All uses of create_range_type updated.
6185 2014-04-10 Pedro Alves <palves@redhat.com>
6187 * breakpoint.c (single_step_breakpoints)
6188 (single_step_gdbarch): Move up in the file.
6189 (one_breakpoint_xfer_memory): New function, factored out from ...
6190 (breakpoint_xfer_memory): ... here. Also process single-step
6193 2014-04-09 Tristan Gingold <gingold@adacore.com>
6195 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6197 (darwin_decode_exception_message): Free port only after use.
6199 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6201 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6202 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6203 when setting the size of call_length.
6205 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6207 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6208 dereference TYPE_CODE_REF values.
6210 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6212 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6213 end of warning message.
6215 2014-04-03 Doug Evans <dje@google.com>
6217 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6218 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6220 2014-04-02 Alan Modra <amodra@gmail.com>
6222 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6223 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6224 (struct symbol_file_add_from_memory_args): Add size field.
6225 (find_vdso_size): New function.
6226 (add_vsyscall_page): Attempt to find vdso size.
6228 2014-04-01 Doug Evans <dje@google.com>
6230 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6232 2014-04-01 Tristan Gingold <gingold@adacore.com>
6234 * darwin-nat.c (darwin_encode_reply): Add prototype.
6235 (darwin_decode_exception_message): Reply to unknown inferiors.
6236 (darwin_decode_message): Handle message by id. Ignore message
6237 to unknown inferior.
6238 (darwin_wait): Discard unknown messages, add debug trace.
6240 2014-03-31 Doug Evans <dje@google.com>
6242 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6245 2014-03-31 Doug Evans <dje@google.com>
6247 New option "set print symbol-loading".
6249 * solib.c (solib_read_symbols): Only print symbol loading messages
6251 (solib_add): If symbol loading is in "brief" mode, notify user
6252 symbols are being loaded.
6253 (reload_shared_libraries_1): Ditto.
6254 * symfile.c (print_symbol_loading_off): New static global.
6255 (print_symbol_loading_brief): New static global.
6256 (print_symbol_loading_full): New static global.
6257 (print_symbol_loading_enums): New static global.
6258 (print_symbol_loading): New static global.
6259 (print_symbol_loading_p): New function.
6260 (symbol_file_add_with_addrs): Only print symbol loading messages
6262 (_initialize_symfile): Register "print symbol-loading" set/show
6264 * symfile.h (print_symbol_loading_p): Declare.
6266 2014-03-30 Doug Evans <xdje42@gmail.com>
6268 * infrun.c (set_last_target_status): New function.
6269 (handle_inferior_event): Call it.
6271 2014-03-30 Doug Evans <xdje42@gmail.com>
6273 * inferior.h (enum stop_kind): Improve comment.
6275 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6277 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6278 a reference, strip the reference layer before calling
6279 the lang_ops value_has_mutated callback.
6281 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6283 Remove some globals from our parser.
6284 * language.c (unk_lang_parser): Add "struct parser_state"
6286 * language.h (struct language_defn) <la_parser>: Likewise.
6287 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6288 (initialize_expout): Add "struct parser_state" argument.
6289 Rewrite function to use the parser state.
6290 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6291 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6292 write_exp_elt_longcst, write_exp_elt_dblcst,
6293 write_exp_elt_decfloatcst, write_exp_elt_type,
6294 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6295 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6296 write_dollar_variable): Likewise.
6297 (parse_exp_in_context_1): Use parser state.
6298 (insert_type_address_space): Add "struct parser_state" argument.
6300 (increase_expout_size): New function.
6301 * parser-defs.h: Forward declare "struct language_defn" and
6302 "struct parser_state".
6303 (expout, expout_size, expout_ptr): Remove extern declarations.
6304 (parse_gdbarch, parse_language): Rewrite macro declarations to
6305 accept the parser state.
6306 (struct parser_state): New struct.
6307 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6308 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6309 write_exp_elt_decfloatcst, write_exp_elt_type,
6310 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6311 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6312 write_exp_msymbol, write_dollar_variable,
6313 mark_struct_expression, insert_type_address_space): Add "struct
6314 parser_state" argument.
6315 (increase_expout_size): New function.
6316 * utils.c (do_clear_parser_state): New function.
6317 (make_cleanup_clear_parser_state): Likewise.
6318 * utils.h (make_cleanup_clear_parser_state): New function
6320 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6321 Update calls to write_exp* in order to pass the parser state.
6322 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6323 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6324 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6325 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6326 * stap-probe.c (stap_parse_register_operand): Likewise.
6327 (stap_parse_single_operand): Likewise.
6328 (stap_parse_argument_1): Likewise.
6329 (stap_parse_argument): Use parser state.
6330 * stap-probe.h: Include "parser-defs.h".
6331 (struct stap_parse_info) <pstate>: New field.
6332 * c-exp.y (parse_type): Rewrite to use parser state.
6333 (yyparse): Redefine to c_parse_internal.
6334 (pstate): New global variable.
6335 (parse_number): Add "struct parser_state" argument.
6336 (write_destructor_name): Likewise.
6337 (type_exp): Update calls to write_exp* and similars in order to
6339 (exp1, exp, variable, qualified_name, space_identifier,
6340 typename, typebase): Likewise.
6341 (write_destructor_name, parse_number, lex_one_token,
6342 classify_name, classify_inner_name, c_parse): Add "struct
6343 parser_state" argument. Update function to use parser state.
6344 * c-lang.h: Forward declare "struct parser_state".
6345 (c_parse): Add "struct parser_state" argument.
6346 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6347 (yyparse): Redefine macro to ada_parse_internal.
6348 (pstate): New variable.
6349 (write_int, write_object_renaming, write_var_or_type,
6350 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6351 type_int, type_long, type_long_long, type_float, type_double,
6352 type_long_double, type_char, type_boolean, type_system_address):
6353 Add "struct parser_state" argument.
6354 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6355 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6356 var_or_type, aggregate, aggregate_component_list,
6357 positional_list, others, component_group,
6358 component_associations): Update calls to write_exp* and similar
6359 functions in order to use parser state.
6360 (ada_parse, write_var_from_sym, write_int,
6361 write_exp_op_with_string, write_object_renaming,
6362 find_primitive_type, write_selectors, write_ambiguous_var,
6363 write_var_or_type, write_name_assoc, type_int, type_long,
6364 type_long_long, type_float, type_double, type_long_double,
6365 type_char, type_boolean, type_system_address): Add "struct
6366 parser_state" argument. Adjust function to use parser state.
6367 * ada-lang.c (parse): Likewise.
6368 * ada-lang.h: Forward declare "struct parser_state".
6369 (ada_parse): Add "struct parser_state" argument.
6370 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6371 calls to both functions.
6372 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6374 (yyparse): Redefine macro to f_parse_internal.
6375 (pstate): New variable.
6376 (parse_number): Add "struct parser_state" argument.
6377 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6378 and similars in order to use parser state.
6379 (parse_number): Adjust code to use parser state.
6381 (f_parse): New function.
6382 * f-lang.h: Forward declare "struct parser_state".
6383 (f_parse): Add "struct parser_state" argument.
6384 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6386 (yyparse): Redefine macro for java_parse_internal.
6387 (pstate): New variable.
6388 (push_expression_name, push_expression_name, insert_exp): Add
6389 "struct parser_state" argument.
6390 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6391 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6392 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6393 PostIncrementExpression, PostDecrementExpression,
6394 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6395 UnaryExpressionNotPlusMinus, CastExpression,
6396 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6397 RelationalExpression, EqualityExpression, AndExpression,
6398 ExclusiveOrExpression, InclusiveOrExpression,
6399 ConditionalAndExpression, ConditionalOrExpression,
6400 ConditionalExpression, Assignment, LeftHandSide): Update
6401 calls to write_exp* and similars in order to use parser state.
6402 (parse_number): Ajust code to use parser state.
6404 (java_parse): New function.
6405 (push_variable): Add "struct parser_state" argument. Adjust
6406 code to user parser state.
6407 (push_fieldnames, push_qualified_expression_name,
6408 push_expression_name, insert_exp): Likewise.
6409 * jv-lang.h: Forward declare "struct parser_state".
6410 (java_parse): Add "struct parser_state" argument.
6411 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6413 (yyparse): Redefine macro to m2_parse_internal.
6414 (pstate): New variable.
6415 (type_exp, exp, fblock, variable, type): Update calls to
6416 write_exp* and similars to use parser state.
6418 (m2_parse): New function.
6419 * m2-lang.h: Forward declare "struct parser_state".
6420 (m2_parse): Add "struct parser_state" argument.
6421 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6422 * objc-lang.h: Forward declare "struct parser_state".
6423 (end_msglist): Add "struct parser_state" argument.
6424 * p-exp.y (parse_type): Rewrite macro to use parser state.
6425 (yyparse): Redefine macro to pascal_parse_internal.
6426 (pstate): New variable.
6427 (parse_number): Add "struct parser_state" argument.
6428 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6429 write_exp* and similars in order to use parser state.
6430 (parse_number, yylex): Adjust code to use parser state.
6431 (pascal_parse): New function.
6432 * p-lang.h: Forward declare "struct parser_state".
6433 (pascal_parse): Add "struct parser_state" argument.
6434 * go-exp.y (parse_type): Rewrite macro to use parser state.
6435 (yyparse): Redefine macro to go_parse_internal.
6436 (pstate): New variable.
6437 (parse_number): Add "struct parser_state" argument.
6438 (type_exp, exp1, exp, variable, type): Update calls to
6439 write_exp* and similars in order to use parser state.
6440 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6441 to use parser state.
6442 (go_parse): Likewise.
6443 * go-lang.h: Forward declare "struct parser_state".
6444 (go_parse): Add "struct parser_state" argument.
6446 2014-03-27 Doug Evans <dje@google.com>
6448 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6450 2014-03-27 Doug Evans <dje@google.com>
6452 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6453 Remove argument abbrev_section. All callers updated.
6455 2014-03-27 Doug Evans <dje@google.com>
6457 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6458 addr_base, ranges_base.
6460 2014-03-26 Keith Seitz <keiths@redhat.com>
6462 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6463 types, not VAR_DOMAIN.
6465 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6467 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6469 * features/nios2-linux.c: Regenerated.
6470 * features/nios2.c: Regenerated.
6472 2014-03-25 Pedro Alves <palves@redhat.com>
6474 * cli/cli-script.c (script_from_file): Force the interpreter to
6477 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6479 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6480 small stack allocation.
6482 2014-03-24 Tristan Gingold <gingold@adacore.com>
6484 * darwin-nat.c (exc_server): Remove unused prototype.
6485 (darwin_dump_message): Correctly display data on x86_64.
6486 (darwin_encode_reply): Fix style.
6487 Add comments and fix indentation.
6489 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6491 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6493 2014-03-22 Doug Evans <xdje42@gmail.com>
6495 * infcmd.c: Whitespace fixes.
6496 (interrupt_command): Merge two function comments into one.
6498 2014-03-22 Doug Evans <xdje42@gmail.com>
6500 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6503 2014-03-22 Yao Qi <yao@codesourcery.com>
6505 * remote.c (target_read_live_memory): Remove.
6506 (memory_xfer_live_readonly_partial): Rename it to
6507 remote_xfer_live_readonly_partial. Remove argument 'object'.
6508 All callers updated. Call remote_read_bytes_1
6509 instead of target_read_live_memory.
6510 * tracepoint.c (set_traceframe_number): Remove.
6511 (make_cleanup_restore_traceframe_number): Likewise .
6512 * tracepoint.h (set_traceframe_number): Remove declaration.
6513 (make_cleanup_restore_traceframe_number): Likewise.
6515 2014-03-22 Yao Qi <yao@codesourcery.com>
6517 * remote.c (remote_read_bytes): Move code on reading from the
6519 (remote_read_bytes_1): ... here. New function.
6521 2014-03-22 Yao Qi <yao@codesourcery.com>
6523 * ctf.c (ctf_xfer_partial): Check the return value of
6524 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6525 return TARGET_XFER_UNAVAILABLE.
6526 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6527 * target.c (target_read_live_memory): Move it to remote.c.
6528 (memory_xfer_live_readonly_partial): Likewise.
6529 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6530 * remote.c (target_read_live_memory): Moved from target.c.
6531 (memory_xfer_live_readonly_partial): Likewise.
6532 (remote_read_bytes): Factored out from
6533 memory_xfer_partial_1.
6535 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6537 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6540 2014-03-21 Pedro Alves <palves@redhat.com>
6542 * infrun.c (normal_stop): Extend comment.
6544 2014-03-21 Hui Zhu <hui@codesourcery.com>
6545 Pedro Alves <palves@redhat.com>
6547 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6549 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6550 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6551 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6553 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6555 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6556 `z' formatted output modifier.
6558 2014-03-20 Tom Tromey <tromey@redhat.com>
6559 Sergio Durigan Junior <sergiodj@redhat.com>
6561 * probe.c (parse_probes): Turn assert into an ordinary error.
6562 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6563 exceptions when parsing probes. Rearrange the code for clarity.
6565 2014-03-20 Tom Tromey <tromey@redhat.com>
6568 * top.c (execute_command): Only dispatch events if the command
6571 2014-03-20 Tom Tromey <tromey@redhat.com>
6574 * infcall.c: Include event-top.h.
6575 (run_inferior_call): Call async_disable_stdin if needed.
6577 2014-03-20 Pedro Alves <palves@redhat.com>
6579 * infrun.c (prepare_to_proceed): Delete.
6580 (thread_still_needs_step_over): New function.
6581 (find_thread_needs_step_over): New function.
6582 (proceed): If the current thread needs a step-over, set its
6583 steping_over_breakpoint flag. Adjust to use
6584 find_thread_needs_step_over instead of prepare_to_proceed.
6585 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6586 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6588 (switch_back_to_stepped_thread): Step over breakpoints of all
6589 threads not the stepping thread, before switching back to the
6592 2014-03-20 Pedro Alves <palves@redhat.com>
6594 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6596 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6597 * infrun.c (saved_singlestep_ptid)
6598 (stepping_past_singlestep_breakpoint): Delete.
6599 (resume): Remove stepping_past_singlestep_breakpoint handling.
6600 (proceed): Store the prev_pc of the stepping thread too.
6601 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6603 (enum infwait_states): Delete infwait_thread_hop_state.
6604 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6606 (handle_inferior_event): Adjust.
6607 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6608 handling and the thread-hop code. Before removing single-step
6609 breakpoints, check whether the thread hit a single-step breakpoint
6610 of another thread. If it did, the trap is not a random signal.
6611 (switch_back_to_stepped_thread): If the event thread hit a
6612 single-step breakpoint, unblock it before switching to the
6613 stepping thread. Handle the case of the stepped thread having
6615 (keep_going): Handle the case of the current thread moving past a
6616 single-step breakpoint.
6618 2014-03-20 Pedro Alves <palves@redhat.com>
6621 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6622 are being stepped over.
6623 (breakpoint_address_match): Make extern.
6624 * breakpoint.h (breakpoint_address_match): New declaration.
6625 * inferior.h (stepping_past_instruction_at): New declaration.
6626 * infrun.c (struct step_over_info): New type.
6627 (step_over_info): New global.
6628 (set_step_over_info, clear_step_over_info)
6629 (stepping_past_instruction_at): New functions.
6630 (handle_inferior_event): Clear the step-over info when
6631 trap_expected is cleared.
6632 (resume): Remove now stale comment.
6633 (clear_proceed_status): Clear step-over info.
6634 (proceed): Adjust step-over handling to set or clear the step-over
6635 info instead of removing all breakpoints.
6636 (handle_signal_stop): When setting up a thread-hop, don't remove
6638 (stop_stepping): Clear step-over info.
6639 (keep_going): Adjust step-over handling to set or clear step-over
6640 info and then always inserting breakpoints, instead of removing
6641 all breakpoints when stepping over one.
6643 2014-03-20 Pedro Alves <palves@redhat.com>
6645 * infrun.c (previous_inferior_ptid): Adjust comment.
6646 (deferred_step_ptid): Delete.
6647 (infrun_thread_ptid_changed, prepare_to_proceed)
6648 (init_wait_for_inferior): Adjust.
6649 (handle_signal_stop): Delete deferred_step_ptid handling.
6651 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6654 * defs.h (sync_quit_force_run): New declaration.
6655 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6656 * event-top.c (async_sigterm_handler): New declaration.
6657 (async_sigterm_token): New variable.
6658 (async_init_signals): Create also async_sigterm_token.
6659 (async_sigterm_handler): New function.
6660 (sync_quit_force_run): New variable.
6661 (handle_sigterm): Replace quit_force call by other calls.
6662 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6664 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6666 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6667 offset into SPE pseudo registers.
6669 2014-03-18 Pedro Alves <palves@redhat.com>
6672 * inferior.h (print_stop_event): Declare.
6673 * infrun.c (print_stop_event): New, factored out from ...
6674 (normal_stop): ... this.
6675 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6676 of bpstat_print/print_stack_frame.
6678 2014-03-17 Tom Tromey <tromey@redhat.com>
6680 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6682 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6684 * ada-lang.c (decode_constrained_packed_array): Perform a
6685 minimal coercion for reference with coerce_ref instead of
6688 2014-03-17 Tristan Gingold <gingold@adacore.com>
6690 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6691 (darwin_solib_create_inferior_hook): Emit a warning if version
6694 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6696 * python/py-value.c (get_field_flag): Cast flag_name argument to
6697 PyObject_GetAttrString to support Python 2.4.
6699 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6701 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6702 (Global Maintainers): Remove Jan Kratochvil.
6704 2014-03-14 Pedro Alves <palves@redhat.com>
6706 * inferior.h (terminal_ours_for_output): Rename to ...
6707 (child_terminal_ours_for_output): ... this.
6708 (terminal_save_ours): Rename to ...
6709 (child_terminal_save_ours): ... this.
6710 (terminal_ours): Rename to ...
6711 (child_terminal_ours): ... this.
6712 (terminal_inferior): Rename to ...
6713 (child_terminal_inferior): ... this.
6714 (terminal_init_inferior): Rename to ...
6715 (child_terminal_init_inferior): ... this.
6716 (terminal_init_inferior_with_pgrp): Rename to ...
6717 (child_terminal_init_inferior_with_pgrp): ... this.
6718 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6719 (child_terminal_init_with_pgrp): ... this.
6720 (terminal_save_ours): Rename to ...
6721 (child_terminal_save_ours): ... this.
6722 (terminal_init_inferior): Rename to ...
6723 (child_terminal_init): ... this. Adjust.
6724 (terminal_inferior): Rename to ...
6725 (child_terminal_inferior): ... this.
6726 (terminal_ours_for_output): Rename to ...
6727 (child_terminal_ours_for_output): ... this. Adjust.
6728 (terminal_ours): Rename to ...
6729 (child_terminal_ours): ... this.
6730 (terminal_ours_1): Rename to ...
6731 (child_terminal_ours_1): ... this. Adjust.
6732 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6733 * windows-nat.c (do_initial_windows_stuff): Adjust.
6734 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6735 (gnu_terminal_init): ... this. Adjust.
6736 (gnu_target): Adjust.
6737 * inf-child.c (inf_child_target): Adjust.
6739 2014-03-13 Doug Evans <xdje42@gmail.com>
6742 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6745 2014-03-13 Doug Evans <xdje42@gmail.com>
6747 * value.c (record_latest_value): Call release_value_or_incref
6748 instead of release_value.
6750 2014-03-13 Pedro Alves <palves@redhat.com>
6752 * procfs.c (procfs_target): Don't override to_shortname,
6753 to_longname or to_doc.
6755 2014-03-13 Pedro Alves <palves@redhat.com>
6757 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6758 Unix in user visible strings.
6760 2014-03-12 Stan Shebs <stan@codesourcery.com>
6762 * gdbtypes.h: Annotate comments for Doxygen, add a page
6763 block comment with some general info.
6765 2014-03-12 Pedro Alves <palves@redhat.com>
6767 * infcmd.c (prepare_execution_command): New function, factored out
6768 from several execution commands.
6769 (run_command_1, continue_command, step_1, jump_command)
6770 (signal_command, until_command, advance_command, finish_command)
6771 (attach_command): Use prepare_execution_command.
6773 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6775 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6778 (struct arm_linux_thread_points): Removed.
6779 (struct arm_linux_process_info): New.
6780 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6781 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6782 (arm_linux_find_breakpoints_by_tid): Removed.
6783 (struct arch_lwp_info): New.
6784 (arm_linux_find_process_pid): New functions.
6785 (arm_linux_add_process): New functions.
6786 (arm_linux_process_info_get): New functions.
6787 (arm_linux_forget_process): New function.
6788 (arm_linux_get_debug_reg_state): New function.
6789 (struct update_registers_data): New.
6790 (update_registers_callback): New function.
6791 (arm_linux_insert_hw_breakpoint1): Updated.
6792 (arm_linux_remove_hw_breakpoint1): Updated.
6793 (arm_linux_insert_hw_breakpoint): Updated.
6794 (arm_linux_remove_hw_breakpoint): Updated.
6795 (arm_linux_insert_watchpoint): Updated.
6796 (arm_linux_remove_watchpoint): Updated.
6797 (arm_linux_new_thread): Updated.
6798 (arm_linux_prepare_to_resume): New function.
6799 (arm_linux_new_fork): New function.
6800 (_initialize_arm_linux_nat): Updated.
6802 2014-03-12 Pedro Alves <palves@redhat.com>
6804 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6806 2014-03-12 Tom Tromey <tromey@redhat.com>
6808 * inf-child.c (return_zero): New function.
6809 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6810 * aix-thread.c (aix_thread_inferior_created): New function.
6811 (aix_thread_attach): Remove.
6812 (init_aix_thread_ops): Don't set to_attach.
6813 (_initialize_aix_thread): Register inferior_created observer.
6814 * corelow.c (init_core_ops): Don't set to_attach or
6816 * exec.c (init_exec_ops): Don't set to_attach or
6818 * infcmd.c (run_command_1): Use find_run_target. Make direct
6820 (attach_command): Use find_attach_target. Make direct target
6822 * record-btrace.c (init_record_btrace_ops): Don't set
6824 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6826 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6827 set to_create_inferior.
6828 * target.c (complete_target_initialization): Add assertion.
6829 (target_create_inferior): Remove.
6830 (find_default_attach, find_default_create_inferior): Remove.
6831 (find_attach_target, find_run_target): New functions.
6832 (find_default_is_async_p, find_default_can_async_p)
6833 (target_supports_non_stop, target_attach): Remove.
6834 (init_dummy_target): Don't set to_create_inferior or
6835 to_supports_non_stop.
6836 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6837 TARGET_DEFAULT_FUNC.
6838 <to_create_inferior>: Add comment.
6839 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6840 TARGET_DEFAULT_RETURN.
6841 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6842 (find_attach_target, find_run_target): Declare.
6843 (target_create_inferior): Remove.
6844 (target_has_execution_1): Update comment.
6845 (target_supports_non_stop): Remove.
6846 * target-delegates.c: Rebuild.
6848 2014-03-12 Pedro Alves <palves@redhat.com>
6850 * inf-child.h: Update comment to not mention Unix.
6852 2014-03-12 Pedro Alves <palves@redhat.com>
6854 * inf-child.c: Update top comment to not mention Unix. Add
6855 generic comment describing how this target is meant to be used.
6856 (inf_child_post_attach, inf_child_post_startup_inferior)
6857 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6860 2014-03-12 Pedro Alves <palves@redhat.com>
6862 * nto-procfs.c: Include inf-child.h.
6863 (procfs_ops): Delete global.
6864 (procfs_can_run): Delete method.
6865 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6866 target pointer instead of referencing procfs_ops.
6867 (procfs_prepare_to_store): Delete.
6868 (init_procfs_ops): Delete function.
6869 (procfs_target): New function, based on init_procfs_ops, but
6870 inherit inf_child_target.
6871 (_initialize_procfs): Use procfs_target.
6873 2014-03-12 Pedro Alves <palves@redhat.com>
6875 * windows-nat.c: Include inf-child.h.
6876 (windows_ops): Delete global.
6877 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6879 (init_windows_ops): Delete function.
6880 (windows_target): New function, based on init_windows_ops, but
6881 inherit inf_child_target.
6882 (_initialize_windows_nat): Use windows_target. Install x86
6883 specific target methods here.
6885 2014-03-10 Doug Evans <xdje42@gmail.com>
6887 * guile/guile.c (call_initialize_gdb_module): New function.
6888 (initialize_guile): Replace call to scm_init_guile with call to
6891 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6893 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6894 in call to TYPE_CODE macro.
6896 2014-03-10 Jerome Guitton <guitton@adacore.com>
6898 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6899 Resolve tagged types to full view.
6901 2014-03-10 Hui Zhu <hui@codesourcery.com>
6903 * target.h (target_insert_breakpoint): Remove "hardware" from its
6906 2014-03-07 Doug Evans <dje@google.com>
6908 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6910 2014-03-07 Doug Evans <dje@google.com>
6912 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6913 Remove unused local comp_dir_attr. Assert exactly one of
6914 stub_comp_unit_die, stub_comp_dir is non-NULL.
6916 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6918 * target.h (complete_target_initialization, add_target):
6921 2014-03-07 Pedro Alves <palves@redhat.com>
6923 * go32-nat.c: Include inf-child.h.
6924 (go32_ops): Delete global.
6925 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6927 (go32_create_inferior): Push the passed in target pointer instead
6928 of referencing go32_ops.
6929 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6930 (go32_target): New function, based on init_go32_ops, but inherit
6932 (_initialize_go32_nat): Use go32_target. Move parts of
6935 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6937 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6938 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6939 SYMBOL_VALUE_ADDRESS.
6940 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6942 2014-03-06 Yao Qi <yao@codesourcery.com>
6944 * breakpoint.c (get_tracepoint_by_number): Remove argument
6945 optional_p. All callers updated. Adjust comments. Update
6947 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6949 2014-03-06 Yao Qi <yao@codesourcery.com>
6951 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6952 early if get_number returns zero. Use 'p' instead of 'args'.
6954 2014-03-06 Yao Qi <yao@codesourcery.com>
6956 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6959 2014-03-06 Yao Qi <yao@codesourcery.com>
6961 PR breakpoints/16508
6962 * tracepoint.c (check_trace_running): New function.
6963 (trace_find_command): Move code to check_trace_running and
6964 call check_trace_running.
6965 (trace_find_pc_command): Likewise.
6966 (trace_find_tracepoint_command): Likewise.
6967 (trace_find_line_command): Likewise.
6968 (trace_find_range_command): Likewise.
6969 * tracepoint.h (check_trace_running): Likewise.
6970 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6972 2014-03-06 Yao Qi <yao@codesourcery.com>
6974 * target.h (struct target_ops) <to_traceframe_info>: Use
6975 TARGET_DEFAULT_NORETURN (tcomplain ()).
6976 * target-delegates.c: Regenerated.
6978 2014-03-05 Pedro Alves <palves@redhat.com>
6981 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6982 void. Update comment.
6983 (dcache_xfer_memory): Delete.
6984 (dcache_read_memory_partial): New, based on the read bits of
6986 (dcache_update): Add status parameter. Use ULONGEST for len, and
6987 adjust. Discard cache lines if the reason for the update was
6989 * dcache.h (dcache_xfer_memory): Delete declaration.
6990 (dcache_read_memory_partial): New declaration.
6991 (dcache_update): Update prototype.
6992 * target.c (raw_memory_xfer_partial): Update the dcache here.
6993 (memory_xfer_partial_1): Don't handle dcache writes here.
6995 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6997 * remote-sim.c (gdbsim_load): Add const to prog.
6999 2014-03-03 Tom Tromey <tromey@redhat.com>
7001 * elfread.c (probe_key): Change to bfd_data.
7002 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7003 now per-BFD, not per-objfile.
7004 * stap-probe.c (stap_probe_destroy): Update comment.
7005 (handle_stap_probe): Allocate on the per-BFD obstack.
7007 2014-03-03 Tom Tromey <tromey@redhat.com>
7009 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7010 * breakpoint.c (create_longjmp_master_breakpoint): Use
7012 (add_location_to_breakpoint, bkpt_probe_insert_location)
7013 (bkpt_probe_remove_location): Update.
7014 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7015 * elfread.c (elf_symfile_relocate_probe): Remove.
7016 (elf_probe_fns): Update.
7017 (insert_exception_resume_breakpoint): Change type of "probe"
7018 parameter to bound_probe.
7019 (check_exception_resume): Update.
7020 * objfiles.c (objfile_relocate1): Don't relocate probes.
7021 * probe.c (bound_probe_s): New typedef.
7022 (parse_probes): Use get_probe_address. Set sal's objfile.
7023 (find_probe_by_pc): Return a bound_probe.
7024 (collect_probes): Return a VEC(bound_probe_s).
7025 (compare_probes): Update.
7026 (gen_ui_out_table_header_info): Change type of "probes"
7028 (info_probes_for_ops): Update.
7029 (get_probe_address): New function.
7030 (probe_safe_evaluate_at_pc): Update.
7031 * probe.h (struct probe_ops) <get_probe_address>: New field.
7032 <set_semaphore, clear_semaphore>: Add objfile parameter.
7033 (struct probe) <objfile>: Remove field.
7035 <address>: Update comment.
7036 (struct bound_probe): New.
7037 (find_probe_by_pc): Return a bound_probe.
7038 (get_probe_address): Declare.
7039 * solib-svr4.c (struct probe_and_action) <address>: New field.
7040 (hash_probe_and_action, equal_probe_and_action): Update.
7041 (register_solib_event_probe): Add address parameter.
7042 (solib_event_probe_at): Update.
7043 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7045 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7046 (stap_get_probe_address): New function.
7047 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7048 (compile_probe_arg): Update.
7049 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7051 (handle_stap_probe): Don't relocate the probe.
7052 (stap_relocate): Remove.
7053 (stap_gen_info_probes_table_values): Update.
7054 (stap_probe_ops): Remove stap_relocate.
7055 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7056 (debug_sym_probe_fns): Update.
7057 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7058 * symtab.c (init_sal): Use memset.
7059 * symtab.h (struct symtab_and_line) <objfile>: New field.
7060 * tracepoint.c (start_tracing, stop_tracing): Update.
7062 2014-03-03 Tom Tromey <tromey@redhat.com>
7064 * probe.h (parse_probes, find_probe_by_pc)
7065 (find_probes_in_objfile): Fix comments.
7067 2014-03-02 Doug Evans <xdje42@gmail.com>
7069 * infrun.c (handle_signal_stop): Replace test for
7070 TARGET_WAITKIND_STOPPED with an assert.
7072 2014-03-02 Doug Evans <xdje42@gmail.com>
7074 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7076 2014-03-02 Doug Evans <xdje42@gmail.com>
7078 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7080 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7082 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7084 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7086 * i386obsd-nat.c: Include "obsd-nat.h".
7087 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7089 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7091 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7093 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7095 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7097 * mips64obsd-nat.c: Include "obsd-nath".
7098 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7100 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7102 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7104 * amd64obsd-nat.c: Include "obsd-nat,h.
7105 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7107 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7109 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7111 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7112 (find_overload_match): Update call to find_oload_champ.
7113 (find_oload_champ_namespace_loop): Likewise
7115 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7117 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7119 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7120 * config/sparc/obsd64.mh: New file.
7121 * sparc64obsd-nat.c: New file.
7123 * obsd-nat.h: New file.
7124 * obsd-nat.c: New file.
7125 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7126 (ALLDEPFILES): Add obsd-nat.c.
7128 2014-02-28 Tom Tromey <tromey@redhat.com>
7130 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7131 * cli-out.h (cli_ui_out_impl): Now const.
7132 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7133 * ui-out.c (struct ui_out) <impl>: Now const.
7134 (default_ui_out_impl): Now const.
7135 (ui_out_new): Make 'impl' parameter const.
7136 * ui-out.h (ui_out_new): Update.
7138 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7140 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7142 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7144 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7146 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7148 Additional PR 8882 fix.
7149 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7151 2014-02-27 Pedro Alves <palves@redhat.com>
7153 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7156 2014-02-27 Pedro Alves <palves@redhat.com>
7159 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7160 * nat/linux-waitpid.c: Include string.h.
7161 (status_to_str): Moved here and made extern.
7162 * nat/linux-waitpid.h (status_to_str): New declaration.
7164 2014-02-27 Hui Zhu <hui@codesourcery.com>
7167 * infrun.c (ptid_match): Move ...
7168 * common/ptid.c (ptid_match): ... here.
7169 * inferior.h (ptid_match): Move ...
7170 * common/ptid.h (ptid_match): ... here.
7172 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7174 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7175 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7178 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7180 * obsd-tdep.c (obsd_auxv_parse): New function.
7181 (obsd_init_abi): Set auxv_parse.
7183 * gdbarch.sh (auxv_parse): New.
7184 * gdbarch.h: Regenerated.
7185 * gdbarch.c: Regenerated.
7186 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7188 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7190 * guile/scm-value.c (gdbscm_history_append_x): New function.
7191 (value_functions): Add it.
7193 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7195 * dwarf2read.c (attr_value_as_address): New function.
7196 (dwarf2_find_base_address, read_call_site_scope): Use
7197 attr_value_as_address in place of DW_ADDR.
7198 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7199 the low and high addresses. Slight rework of the handling
7200 of the high pc being a constant form, and limit it to
7201 DWARF verson 4 or higher.
7202 (dwarf2_record_block_ranges): Likewise.
7203 (read_partial_die): Likewise.
7204 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7206 2014-02-26 Tom Tromey <tromey@redhat.com>
7208 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7210 2014-02-26 Tom Tromey <tromey@redhat.com>
7212 * elfread.c (elf_read_minimal_symbols): Return early if
7213 minimal symbols have already been read. Add "ei" parameter.
7214 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7215 * minsyms.c (prim_record_minimal_symbol_full): Update.
7216 * objfiles.h (struct objstats) <n_minsyms>: Move...
7217 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7218 * symmisc.c (print_objfile_statistics): Update.
7220 2014-02-26 Tom Tromey <tromey@redhat.com>
7222 * elfread.c (elf_read_minimal_symbols): New function, from
7224 (elf_symfile_read): Call it.
7226 2014-02-26 Tom Tromey <tromey@redhat.com>
7228 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7229 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7230 (lookup_minimal_symbol_solib_trampoline)
7231 (lookup_minimal_symbol_by_pc_section_1)
7232 (lookup_minimal_symbol_and_objfile): Update.
7233 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7234 Don't allocate a minimal symbol if minsyms have already been read.
7235 (build_minimal_symbol_hash_tables): Update.
7236 (install_minimal_symbols): Do nothing if minsyms already read.
7237 Use the per-BFD obstack.
7238 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7239 * objfiles.c (allocate_objfile): Call
7240 terminate_minimal_symbol_table later.
7241 (have_minimal_symbols): Update.
7242 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7243 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7244 Move from struct objfile.
7245 <minsyms_read>: New field.
7246 (struct objfile) <msymbols, minimal_symbol_count,
7247 msymbol_hash, msymbol_demangled_hash>: Move.
7248 (ALL_OBJFILE_MSYMBOLS): Update.
7249 * symfile.c (read_symbols): Set minsyms_read.
7250 (reread_symbols): Update.
7251 * symmisc.c (dump_objfile, dump_msymbols): Update.
7253 2014-02-26 Tom Tromey <tromey@redhat.com>
7255 * minsyms.c (msymbols_sort): Remove.
7256 * minsyms.h (msymbols_sort): Remove.
7257 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7258 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7259 * elfread.c (elf_symtab_read): Don't add section offsets.
7260 * xcoffread.c (record_minimal_symbol): Don't add section offset
7261 to minimal symbol address.
7262 * somread.c (text_offset, data_offset): Remove.
7263 (som_symtab_read): Don't add section offsets to minimal symbol
7265 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7266 Don't add section offsets to minimal symbols.
7267 * coffread.c (coff_symtab_read): Don't add section offsets
7268 to minimal symbol addresses.
7269 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7270 to minimal symbol addresses.
7271 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7272 section offset to minimal symbol addresses.
7273 * mdebugread.c (parse_partial_symbols): Don't add section
7274 offset to minimal symbol addresses.
7275 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7276 offset to minimal symbol addresses.
7278 2014-02-26 Tom Tromey <tromey@redhat.com>
7280 * ada-lang.c (ada_main_name): Update.
7281 (ada_add_standard_exceptions): Update.
7282 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7283 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7284 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7285 * auxv.c (ld_so_xfer_auxv): Update.
7286 * avr-tdep.c (avr_scan_prologue): Update.
7287 * ax-gdb.c (gen_var_ref): Update.
7288 * blockframe.c (get_pc_function_start)
7289 (find_pc_partial_function_gnu_ifunc): Update.
7290 * breakpoint.c (create_overlay_event_breakpoint)
7291 (create_longjmp_master_breakpoint)
7292 (create_std_terminate_master_breakpoint)
7293 (create_exception_master_breakpoint): Update.
7294 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7295 * c-valprint.c (c_val_print): Update.
7296 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7297 * common/agent.c (agent_look_up_symbols): Update.
7298 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7299 * dwarf2loc.c (call_site_to_target_addr): Update.
7300 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7301 * elfread.c (elf_gnu_ifunc_record_cache)
7302 (elf_gnu_ifunc_resolve_by_got): Update.
7303 * findvar.c (default_read_var_value): Update.
7304 * frame.c (inside_main_func): Update.
7305 * frv-tdep.c (frv_frame_this_id): Update.
7306 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7307 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7309 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7310 (hppa_hpux_find_dummy_bpaddr): Update.
7311 * hppa-tdep.c (hppa_symbol_address): Update.
7312 * infcmd.c (until_next_command): Update.
7313 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7315 * linespec.c (minsym_found, add_minsym): Update.
7316 * linux-nat.c (get_signo): Update.
7317 * linux-thread-db.c (inferior_has_bug): Update.
7318 * m32c-tdep.c (m32c_return_value)
7319 (m32c_m16c_address_to_pointer): Update.
7320 * m32r-tdep.c (m32r_frame_this_id): Update.
7321 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7322 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7323 * maint.c (maintenance_translate_address): Update.
7324 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7325 (frob_address): New function.
7326 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7327 frob_address. Rename parameter to "pc_in".
7328 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7330 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7332 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7333 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7334 * objc-lang.c (find_objc_msgsend): Update.
7335 * objfiles.c (objfile_relocate1): Update.
7336 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7337 * p-valprint.c (pascal_val_print): Update.
7338 * parse.c (write_exp_msymbol): Update.
7339 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7340 (ppc_elfv2_skip_entrypoint): Update.
7341 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7342 * printcmd.c (build_address_symbolic, msym_info)
7343 (address_info): Update.
7344 * proc-service.c (ps_pglobal_lookup): Update.
7345 * psymtab.c (find_pc_sect_psymtab_closer)
7346 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7347 Change msymbol parameter to bound_minimal_symbol.
7348 * ravenscar-thread.c (get_running_thread_id): Update.
7349 * remote.c (remote_check_symbols): Update.
7350 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7352 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7353 * solib-dsbt.c (lm_base): Update.
7354 * solib-frv.c (lm_base, main_got): Update.
7355 * solib-irix.c (locate_base): Update.
7356 * solib-som.c (som_solib_create_inferior_hook)
7357 (link_map_start): Update.
7358 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7359 * solib-svr4.c (elf_locate_base, enable_break): Update.
7360 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7361 (flush_ea_cache): Update.
7362 * stabsread.c (define_symbol, scan_file_globals): Update.
7363 * stack.c (find_frame_funname): Update.
7364 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7365 (debug_qf_find_pc_sect_symtab): Update.
7366 * symfile.c (simple_read_overlay_table)
7367 (simple_overlay_update): Update.
7368 * symfile.h (struct quick_symbol_functions)
7369 <find_pc_sect_symtab>: Change type of msymbol to
7370 bound_minimal_symbol.
7371 * symmisc.c (dump_msymbols): Update.
7372 * symtab.c (find_pc_sect_symtab_via_partial)
7373 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7374 (search_symbols, print_msymbol_info): Update.
7375 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7376 (MSYMBOL_VALUE_ADDRESS): Redefine.
7377 (BMSYMBOL_VALUE_ADDRESS): New macro.
7378 * tracepoint.c (scope_info): Update.
7379 * tui/tui-disasm.c (tui_find_disassembly_address)
7380 (tui_get_begin_asm_address): Update.
7381 * valops.c (find_function_in_inferior): Update.
7382 * value.c (value_static_field, value_fn_field): Update.
7384 2014-02-26 Tom Tromey <tromey@redhat.com>
7386 * ada-lang.c (ada_update_initial_language): Update.
7387 (ada_main_name, ada_has_this_exception_support): Update.
7388 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7389 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7390 * arm-tdep.c (arm_skip_stub): Update.
7391 * auxv.c (ld_so_xfer_auxv): Update.
7392 * avr-tdep.c (avr_scan_prologue): Update.
7393 * ax-gdb.c (gen_var_ref): Update.
7394 * breakpoint.c (struct breakpoint_objfile_data)
7395 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7396 type to bound_minimal_symbol.
7397 (create_overlay_event_breakpoint)
7398 (create_longjmp_master_breakpoint)
7399 (create_std_terminate_master_breakpoint)
7400 (create_exception_master_breakpoint): Update.
7401 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7402 * c-exp.y (classify_name): Update.
7403 * coffread.c (coff_symfile_read): Update.
7404 * common/agent.c (agent_look_up_symbols): Update.
7405 * d-lang.c (d_main_name): Update.
7406 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7407 * dec-thread.c (enable_dec_thread): Update.
7408 * dwarf2loc.c (call_site_to_target_addr): Update.
7409 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7410 * eval.c (evaluate_subexp_standard): Update.
7411 * findvar.c (struct minsym_lookup_data) <result>: Change type
7412 to bound_minimal_symbol.
7414 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7415 * frame.c (inside_main_func): Update.
7416 * frv-tdep.c (frv_frame_this_id): Update.
7417 * gcore.c (call_target_sbrk): Update.
7418 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7419 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7421 * go-lang.c (go_main_name): Update.
7422 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7423 (hppa_hpux_find_import_stub_for_addr): Update.
7424 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7425 Update. Change return type.
7426 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7428 * jit.c (jit_breakpoint_re_set_internal): Update.
7429 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7431 * linux-nat.c (get_signo): Update.
7432 * linux-thread-db.c (inferior_has_bug): Update
7433 * m32c-tdep.c (m32c_return_value)
7434 (m32c_m16c_address_to_pointer): Update.
7435 * m32r-tdep.c (m32r_frame_this_id): Update.
7436 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7437 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7438 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7439 lookup_minimal_symbol. Change return type.
7440 (lookup_minimal_symbol): Remove.
7441 (lookup_bound_minimal_symbol): Update.
7442 (lookup_minimal_symbol_text): Change return type.
7443 (lookup_minimal_symbol_solib_trampoline): Change return type.
7444 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7445 (lookup_minimal_symbol_solib_trampoline): Change return type.
7446 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7447 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7448 (value_nsstring, find_imps): Update.
7449 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7450 * p-lang.c (pascal_main_name): Update.
7451 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7452 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7453 * proc-service.c (ps_pglobal_lookup): Update.
7454 * ravenscar-thread.c (get_running_thread_msymbol): Change
7456 (has_ravenscar_runtime, get_running_thread_id): Update.
7457 * remote.c (remote_check_symbols): Update.
7458 * sol-thread.c (ps_pglobal_lookup): Update.
7459 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7460 * solib-dsbt.c (lm_base): Update.
7461 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7463 * solib-irix.c (locate_base): Update.
7464 * solib-som.c (som_solib_create_inferior_hook)
7465 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7467 * solib-spu.c (spu_enable_break): Update.
7468 * solib-svr4.c (elf_locate_base, enable_break): Update.
7469 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7470 (flush_ea_cache): Update.
7471 * stabsread.c (define_symbol): Update.
7472 * symfile.c (simple_read_overlay_table): Update.
7473 * symtab.c (find_pc_sect_line): Update.
7474 * tracepoint.c (scope_info): Update.
7475 * tui-disasm.c (tui_get_begin_asm_address): Update.
7476 * value.c (value_static_field): Update.
7478 2014-02-26 Tom Tromey <tromey@redhat.com>
7480 * minsyms.c (prim_record_minimal_symbol_full): Use
7481 SET_MSYMBOL_VALUE_ADDRESS.
7482 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7483 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7484 SET_MSYMBOL_VALUE_ADDRESS.
7485 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7486 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7488 2014-02-26 Tom Tromey <tromey@redhat.com>
7490 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7491 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7492 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7493 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7494 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7495 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7496 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7497 * ada-lang.c (ada_main_name): Update.
7498 (ada_lookup_simple_minsym): Update.
7499 (ada_make_symbol_completion_list): Update.
7500 (ada_add_standard_exceptions): Update.
7501 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7502 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7503 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7504 * arm-tdep.c (skip_prologue_function): Update.
7505 (arm_skip_stack_protector, arm_skip_stub): Update.
7506 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7507 (arm_wince_skip_main_prologue): Update.
7508 * auxv.c (ld_so_xfer_auxv): Update.
7509 * avr-tdep.c (avr_scan_prologue): Update.
7510 * ax-gdb.c (gen_var_ref): Update.
7511 * block.c (call_site_for_pc): Update.
7512 * blockframe.c (get_pc_function_start): Update.
7513 (find_pc_partial_function_gnu_ifunc): Update.
7514 * breakpoint.c (create_overlay_event_breakpoint): Update.
7515 (create_longjmp_master_breakpoint): Update.
7516 (create_std_terminate_master_breakpoint): Update.
7517 (create_exception_master_breakpoint): Update.
7518 (resolve_sal_pc): Update.
7519 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7520 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7522 * c-valprint.c (c_val_print): Update.
7523 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7524 * coffread.c (coff_symfile_read): Update.
7525 * common/agent.c (agent_look_up_symbols): Update.
7526 * dbxread.c (find_stab_function_addr): Update.
7527 (end_psymtab): Update.
7528 * dwarf2loc.c (call_site_to_target_addr): Update.
7529 (func_verify_no_selftailcall): Update.
7530 (tailcall_dump): Update.
7531 (call_site_find_chain_1): Update.
7532 (dwarf_expr_reg_to_entry_parameter): Update.
7533 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7534 (elf_gnu_ifunc_resolve_by_got): Update.
7535 * f-valprint.c (info_common_command): Update.
7536 * findvar.c (read_var_value): Update.
7537 * frame.c (get_prev_frame_1): Update.
7538 (inside_main_func): Update.
7539 * frv-tdep.c (frv_skip_main_prologue): Update.
7540 (frv_frame_this_id): Update.
7541 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7542 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7543 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7544 (gnuv3_skip_trampoline): Update.
7545 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7546 (hppa64_hpux_in_solib_call_trampoline): Update.
7547 (hppa_hpux_skip_trampoline_code): Update.
7548 (hppa64_hpux_search_dummy_call_sequence): Update.
7549 (hppa_hpux_find_import_stub_for_addr): Update.
7550 (hppa_hpux_find_dummy_bpaddr): Update.
7551 * hppa-tdep.c (hppa_symbol_address)
7552 (hppa_lookup_stub_minimal_symbol): Update.
7553 * i386-tdep.c (i386_skip_main_prologue): Update.
7554 (i386_pe_skip_trampoline_code): Update.
7555 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7556 * infcall.c (get_function_name): Update.
7557 * infcmd.c (until_next_command): Update.
7558 * jit.c (jit_breakpoint_re_set_internal): Update.
7559 (jit_inferior_init): Update.
7560 * linespec.c (minsym_found): Update.
7561 (add_minsym): Update.
7562 * linux-fork.c (info_checkpoints_command): Update.
7563 * linux-nat.c (get_signo): Update.
7564 * linux-thread-db.c (inferior_has_bug): Update.
7565 * m32c-tdep.c (m32c_return_value): Update.
7566 (m32c_m16c_address_to_pointer): Update.
7567 (m32c_m16c_pointer_to_address): Update.
7568 * m32r-tdep.c (m32r_frame_this_id): Update.
7569 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7570 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7571 * maint.c (maintenance_translate_address): Update.
7572 * minsyms.c (add_minsym_to_hash_table): Update.
7573 (add_minsym_to_demangled_hash_table): Update.
7574 (msymbol_objfile): Update.
7575 (lookup_minimal_symbol): Update.
7576 (iterate_over_minimal_symbols): Update.
7577 (lookup_minimal_symbol_text): Update.
7578 (lookup_minimal_symbol_by_pc_name): Update.
7579 (lookup_minimal_symbol_solib_trampoline): Update.
7580 (lookup_minimal_symbol_by_pc_section_1): Update.
7581 (lookup_minimal_symbol_and_objfile): Update.
7582 (prim_record_minimal_symbol_full): Update.
7583 (compare_minimal_symbols): Update.
7584 (compact_minimal_symbols): Update.
7585 (build_minimal_symbol_hash_tables): Update.
7586 (install_minimal_symbols): Update.
7587 (terminate_minimal_symbol_table): Update.
7588 (find_solib_trampoline_target): Update.
7589 (minimal_symbol_upper_bound): Update.
7590 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7591 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7592 (mips_skip_pic_trampoline_code): Update.
7593 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7594 * objc-lang.c (selectors_info): Update.
7595 (classes_info): Update.
7596 (find_methods): Update.
7597 (find_imps): Update.
7598 (find_objc_msgsend): Update.
7599 * objfiles.c (objfile_relocate1): Update.
7600 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7601 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7602 * p-valprint.c (pascal_val_print): Update.
7603 * parse.c (write_exp_msymbol): Update.
7604 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7605 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7606 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7607 * printcmd.c (build_address_symbolic): Update.
7609 (address_info): Update.
7610 * proc-service.c (ps_pglobal_lookup): Update.
7611 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7612 (find_pc_sect_psymtab): Update.
7613 * python/py-framefilter.c (py_print_frame): Update.
7614 * ravenscar-thread.c (get_running_thread_id): Update.
7615 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7617 * remote.c (remote_check_symbols): Update.
7618 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7619 (rs6000_skip_trampoline_code): Update.
7620 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7621 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7622 * solib-dsbt.c (lm_base): Update.
7623 * solib-frv.c (lm_base): Update.
7625 * solib-irix.c (locate_base): Update.
7626 * solib-som.c (som_solib_create_inferior_hook): Update.
7627 (som_solib_desire_dynamic_linker_symbols): Update.
7628 (link_map_start): Update.
7629 * solib-spu.c (spu_enable_break): Update.
7630 (ocl_enable_break): Update.
7631 * solib-svr4.c (elf_locate_base): Update.
7632 (enable_break): Update.
7633 * spu-tdep.c (spu_get_overlay_table): Update.
7634 (spu_catch_start): Update.
7635 (flush_ea_cache): Update.
7636 * stabsread.c (define_symbol): Update.
7637 (scan_file_globals): Update.
7638 * stack.c (find_frame_funname): Update.
7639 (frame_info): Update.
7640 * symfile.c (simple_read_overlay_table): Update.
7641 (simple_overlay_update): Update.
7642 * symmisc.c (dump_msymbols): Update.
7643 * symtab.c (fixup_section): Update.
7644 (find_pc_sect_line): Update.
7645 (skip_prologue_sal): Update.
7646 (search_symbols): Update.
7647 (print_msymbol_info): Update.
7648 (rbreak_command): Update.
7649 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7650 (completion_list_objc_symbol): Update.
7651 (default_make_symbol_completion_list_break_on): Update.
7652 * tracepoint.c (scope_info): Update.
7653 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7654 (tui_get_begin_asm_address): Update.
7655 * valops.c (find_function_in_inferior): Update.
7656 * value.c (value_static_field): Update.
7657 (value_fn_field): Update.
7659 2014-02-26 Tom Tromey <tromey@redhat.com>
7661 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7662 bound minimal symbols. Move code that knows about minsym
7664 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7666 * minsyms.h (minimal_symbol_upper_bound): Declare.
7667 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7668 minimal_symbol_upper_bound.
7670 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7672 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7673 Use the type's name if its basic type does not have a tag.
7675 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7677 * dwarf2read.c (read_subrange_type): Add comment.
7679 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7681 * dwarf2read.c (update_enumeration_type_from_children): New
7682 function, mostly extracted from process_structure_scope.
7683 (read_enumeration_type): Call update_enumeration_type_from_children.
7684 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7685 and flag_flag_enum fields.
7687 2014-02-26 Pedro Alves <palves@redhat.com>
7689 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7690 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7691 to_xfer_partial method.
7693 2014-02-26 Pedro Alves <palves@redhat.com>
7695 * target.c (complete_target_initialization): Don't install
7696 default_xfer_partial as to_xfer_partial hook.
7698 (update_current_target): Don't INHERIT nor de_fault
7699 deprecated_xfer_memory. Delete de_fault macro.
7700 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7701 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7702 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7705 2014-02-26 Pedro Alves <palves@redhat.com>
7707 * go32-nat.c (my_write_child): New function.
7708 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7709 (go32_xfer_partial): New function.
7710 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7711 Instead install a to_xfer_partial hook.
7713 2014-02-26 Pedro Alves <palves@redhat.com>
7715 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7716 to_xfer_partial helper. Rewrite.
7717 (procfs_xfer_partial): New function.
7718 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7719 Install a to_xfer_partial hook.
7721 2014-02-26 Pedro Alves <palves@redhat.com>
7723 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7724 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7725 (m32r_xfer_partial): New function.
7726 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7727 Install a to_xfer_partial hook.
7729 2014-02-26 Pedro Alves <palves@redhat.com>
7731 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7733 (mips_xfer_partial): New function.
7734 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7735 hook. Install a to_xfer_partial hook.
7737 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7739 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7740 * gdbtypes.c (create_array_type_with_stride): New function,
7741 renaming create_array_type, but with an added parameter
7742 called "bit_stride".
7743 (create_array_type): Re-implement using
7744 create_array_type_with_stride.
7745 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7746 and DW_AT_bit_stride attributes.
7748 2014-02-26 Pedro Alves <palves@redhat.com>
7750 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7751 task-specific breakpoints.
7753 2014-02-25 Pedro Alves <palves@redhat.com>
7755 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7756 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7758 2014-02-25 Stan Shebs <stan@codesourcery.com>
7760 * defs.h: Annotate comments for Doxygen.
7762 2014-02-25 Tom Tromey <tromey@redhat.com>
7764 * target.h (target_ignore): Don't declare.
7765 * target.c (target_ignore): Remove.
7767 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7770 * auto-load.c (auto_load_objfile_script_1): Change filename to
7773 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7775 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7776 documentation. Adjust prototype to match the target_ops
7777 to_xfer_partial method. Adjust implementation accordingly.
7779 2014-02-25 Hui Zhu <hui@codesourcery.com>
7781 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7784 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7786 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7787 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7788 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7789 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7790 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7791 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7792 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7793 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7795 (rl78_register_type): Use a data pointer type for SP and
7796 new pseudo registers mentioned above. Use a 16 bit integer
7797 type for all other register pairs.
7798 (rl78_register_name, rl78_g10_register_name): Update for
7799 new pseudo registers.
7800 (rl78_pseudo_register_read): Likewise.
7801 (rl78_pseudo_register_write): Likewise.
7802 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7803 to the newly added pseudo registers.
7805 2014-02-24 Doug Evans <dje@google.com>
7807 * value.c (record_latest_value): Fix comment.
7808 * printcmd.c (print_command_1): Remove code to handle -1 return from
7809 record_latest_value.
7811 2014-02-24 Pedro Alves <palves@redhat.com>
7813 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7814 deprecated_xfer_memory hook.
7815 (procfs_xfer_partial): Call procfs_xfer_memory instead
7816 of the deprecated_xfer_memory target hook.
7817 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7820 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7822 * windows-nat.c (windows_xfer_shared_libraries): Return
7823 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7824 requested object is TARGET_OBJECT_LIBRARIES.
7826 2014-02-24 Yao Qi <yao@codesourcery.com>
7828 * target.h (enum target_xfer_status)
7829 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7830 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7832 * corefile.c (memory_error_message): User updated.
7833 * exec.c (section_table_read_available_memory): Likewise.
7834 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7835 * target.c (target_xfer_status_to_string): Likewise.
7836 (raw_memory_xfer_partial): Likewise.
7837 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7838 * valops.c (read_value_memory): Likewise.
7839 * exec.h: Update comments.
7841 2014-02-24 Yao Qi <yao@codesourcery.com>
7843 * target.c (target_xfer_status_to_string): Rename argument err
7845 * target.h (target_xfer_status_to_string): Update declaration.
7846 Replace target_xfer_error_to_string with
7847 target_xfer_status_to_string in comment.
7849 2014-02-24 Yao Qi <yao@codesourcery.com>
7851 * mips-linux-nat.c (super_close): Update its type.
7852 (mips_linux_close): Pass 'self' to super_close.
7854 2014-02-24 Yao Qi <yao@codesourcery.com>
7856 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7857 * corefile.c (read_memory): Adjusted.
7858 * target.c (target_write_with_progress): Adjusted.
7860 2014-02-23 Yao Qi <yao@codesourcery.com>
7864 2013-10-25 Yao Qi <yao@codesourcery.com>
7866 * remote.c (remote_traceframe_info): Return early if
7867 traceframe is not selected.
7869 2013-07-19 Yao Qi <yao@codesourcery.com>
7871 * target.c (update_current_target): Change the default action
7872 of 'to_traceframe_info' from tcomplain to return_zero.
7873 * target.h (struct target_ops) <to_traceframe_info>: Add more
7876 2014-02-23 Yao Qi <yao@codesourcery.com>
7878 * valops.c (read_value_memory): Rewrite it. Call
7879 target_xfer_partial in a loop.
7880 * exec.h (section_table_available_memory): Remove declaration.
7881 Move comments to ...
7882 * exec.c (section_table_available_memory): ... here. Make it
7885 2014-02-23 Yao Qi <yao@codesourcery.com>
7887 * exec.c (section_table_read_available_memory): New function.
7888 * exec.h (section_table_read_available_memory): Declare.
7889 * ctf.c (ctf_xfer_partial): Call
7890 section_table_read_available_memory.
7891 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7893 2014-02-23 Yao Qi <yao@codesourcery.com>
7895 * ctf.c (ctf_xfer_partial): Move code to ...
7896 * exec.c (exec_read_partial_read_only): ... it. New function.
7897 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7898 * tracefile.c: Include "exec.h".
7899 * exec.h (exec_read_partial_read_only): Declare.
7901 2014-02-23 Yao Qi <yao@codesourcery.com>
7903 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7904 (tfile_has_memory): Remove.
7905 (init_tfile_ops): Don't set fields to_has_all_memory and
7906 to_has_memory of tfile_ops.
7907 * tracefile.c (tracefile_has_all_memory): New function.
7908 (tracefile_has_memory): New function.
7909 (init_tracefile_ops): Initialize fields to_has_all_memory and
7910 to_has_memory of 'ops'.
7912 2014-02-23 Yao Qi <yao@codesourcery.com>
7914 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7915 (ctf_thread_alive, ctf_get_trace_status): Remove.
7916 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7918 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7919 (tfile_has_stack, tfile_has_registers): Remove.
7920 (tfile_thread_alive): Remove.
7921 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7923 * tracefile.c (tracefile_has_stack): New function.
7924 (tracefile_has_registers): New function.
7925 (tracefile_thread_alive): New function.
7926 (tracefile_get_trace_status): New function.
7927 (init_tracefile_ops): New function.
7928 * tracefile.h (init_tracefile_ops): Declare.
7930 2014-02-23 Yao Qi <yao@codesourcery.com>
7932 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7933 (O_LARGEFILE): Likewise.
7934 (tfile_ops): Likewise.
7935 (TRACE_HEADER_SIZE): Likewise.
7936 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7937 (cur_data_size): Likewise.
7938 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7939 (tfile_close, tfile_files_info): Likewise.
7940 (tfile_get_trace_status): Likewise.
7941 (tfile_get_tracepoint_status): Likewise.
7942 (tfile_get_traceframe_address): Likewise.
7943 (tfile_trace_find, match_blocktype): Likewise.
7944 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7945 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7946 (tfile_get_trace_state_variable_value): Likewise.
7947 (tfile_has_all_memory, tfile_has_memory): Likewise.
7948 (tfile_has_stack, tfile_has_registers): Likewise.
7949 (tfile_thread_alive, build_traceframe_info): Likewise.
7950 (tfile_traceframe_info, init_tfile_ops): Likewise.
7951 (_initialize_tracepoint): Don't call init_tfile_ops
7952 and add_target_with_completer.
7953 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7954 exec.h, completer.h and filenames.h.
7955 (_initialize_tracefile_tfile): New function.
7957 2014-02-23 Yao Qi <yao@codesourcery.com>
7959 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7961 (HFILES_NO_SRCDIR): Add tracefile.h.
7962 * ctf.c: Include "tracefile.h".
7963 * tracefile.h: New file.
7964 * tracefile.c: New file
7965 * tracefile-tfile.c: New file.
7966 * tracepoint.c: Include "tracefile.h".
7967 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7968 (stop_reason_names): Add const.
7969 (trace_file_writer_xfree): Move it to tracefile.c.
7970 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7971 (trace_save_ctf): Likewise.
7972 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7973 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7974 (tfile_write_header, tfile_write_regblock_type): Likewise.
7975 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7976 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7977 (tfile_write_raw_data, tfile_end): Likewise.
7978 (tfile_trace_file_writer_new): Likewise.
7979 (free_uploaded_tp): Make it extern.
7980 (free_uploaded_tsv): Make it extern.
7981 (_initialize_tracepoint): Move code to register command 'tsave'
7983 * tracepoint.h (stop_reason_names): Declare.
7984 (struct trace_frame_write_ops): Move it to tracefile.h.
7985 (struct trace_file_write_ops): Likewise.
7986 (struct trace_file_writer): Likewise.
7987 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7989 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7992 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7994 (get_cores_used_by_process): New parameter num_cores, use it.
7995 (linux_xfer_osdata_processes): Pass num_cores to it.
7996 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7999 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8001 * target.c (memory_xfer_partial): Fix length arg in call to
8002 breakpoint_xfer_memory.
8004 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8007 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8008 number comes after the + or - signs. Adjust length of register
8009 name to be extracted.
8011 2014-02-20 Tom Tromey <tromey@redhat.com>
8013 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8014 (ada_varobj_ops): Mark "extern".
8016 2014-02-20 Tom Tromey <tromey@redhat.com>
8018 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8020 2014-02-20 Doug Evans <xdje42@gmail.com>
8022 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8023 All callers updated.
8024 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8025 All callers updated.
8026 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8027 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8029 2014-02-20 lin zuojian <manjian2006@gmail.com>
8030 Joel Brobecker <brobecker@adacore.com>
8031 Doug Evans <xdje42@gmail.com>
8034 * dwarf2read.c (struct die_info): New member in_process.
8035 (reset_die_in_process): New function.
8036 (process_die): Set it at the start, reset when returning.
8037 (inherit_abstract_dies): Only call process_die if origin_child_die
8038 not already being processed.
8040 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8042 * windows-nat.c (handle_unload_dll): Add function documentation.
8043 (do_initial_windows_stuff): Add comment explaining why we wait
8044 until after inferior initialization has finished before
8045 processing all DLLs.
8047 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8049 * windows-nat.c (get_module_name): Delete.
8050 (windows_get_exec_module_filename): New function, mostly
8051 inspired from get_module_name.
8052 (windows_pid_to_exec_file): Replace call to get_module_name
8053 by call to windows_get_exec_module_filename.
8055 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8057 * windows-nat.c (handle_load_dll): Rewrite this function's
8058 introductory comment. Remove code using get_module_name
8059 to get the DLL's name.
8061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8063 * windows-nat.c (get_windows_debug_event): Ignore
8064 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8065 if windows_initialization_done == 0.
8066 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8067 Adjust implementation to always load all DLLs.
8068 (do_initial_windows_stuff): Replace call to
8069 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8071 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8073 * windows-nat.c (_initialize_windows_nat): Deprecate the
8074 "dll-symbols" command. Turn the "add-shared-symbol-files"
8075 and "assf" aliases into commands, and deprecate them as well.
8076 * NEWS: Add entry explaining that "dll-symbols" and its two
8077 aliases are now deprecated.
8079 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8081 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8082 new-line in debug string. Remove trailing spaces.
8084 2014-02-19 Stan Shebs <stan@codesourcery.com>
8086 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8088 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8090 * NEWS: Add entry for the new feature
8091 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8094 2014-02-19 Stan Shebs <stan@codesourcery.com>
8096 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8098 2014-02-19 Pedro Alves <palves@redhat.com>
8100 * common/ptid.h (struct ptid): Mention that process_stratum
8101 targets should prefer ptid.lwp.
8103 2014-02-19 Pedro Alves <palves@redhat.com>
8105 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8106 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8107 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8108 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8109 store remote thread ids rather than ptid.tid.
8110 (_initialize_remote): Adjust.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * target.c (target_get_unwinder): Rewrite.
8115 (target_get_tailcall_unwinder): Rewrite.
8116 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8117 (record_btrace_to_get_tailcall_unwinder): New function.
8118 (init_record_btrace_ops): Update.
8119 * target.h (struct target_ops) <to_get_unwinder,
8120 to_get_tailcall_unwinder>: Now function pointers. Use
8121 TARGET_DEFAULT_RETURN.
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8125 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8127 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8131 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8133 * target-delegates.c: Rebuild.
8134 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8135 TARGET_DEFAULT_FUNC.
8136 * target.c (default_target_decr_pc_after_break): Rename from
8137 forward_target_decr_pc_after_break. Simplify.
8138 (target_decr_pc_after_break): Rely on delegation.
8140 2014-02-19 Tom Tromey <tromey@redhat.com>
8142 * target.c (update_current_target): Do not INHERIT to_doc or
8143 to_magic. Do not de_fault to_open or to_close.
8145 2014-02-19 Tom Tromey <tromey@redhat.com>
8147 * gcore.h (objfile_find_memory_regions): Declare.
8148 * gcore.c (objfile_find_memory_regions): No longer static. Add
8150 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8151 * exec.c: Include gcore.h.
8152 (exec_set_find_memory_regions): Remove.
8153 (exec_find_memory_regions): Remove.
8154 (exec_do_find_memory_regions): Remove.
8155 (init_exec_ops): Update.
8156 * defs.h (exec_set_find_memory_regions): Remove.
8158 2014-02-19 Tom Tromey <tromey@redhat.com>
8160 * target-delegates.c: Rebuild.
8161 * target.h (struct target_ops) <to_extra_thread_info,
8162 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8163 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8164 not 0, in TARGET_DEFAULT_RETURN.
8166 2014-02-19 Tom Tromey <tromey@redhat.com>
8168 * target.c (complete_target_initialization): Remove casts. Use
8169 return_zero_has_execution.
8170 (return_zero): Add "ignore" argument.
8171 (return_zero_has_execution): New function.
8172 (init_dummy_target): Remove casts. Use
8173 return_zero_has_execution.
8175 2014-02-19 Tom Tromey <tromey@redhat.com>
8177 * target.c (update_current_target): Update comments. Do not
8180 2014-02-19 Tom Tromey <tromey@redhat.com>
8182 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8184 * corelow.c (core_read_description): Delegate when needed.
8185 * remote.c (remote_read_description): Delegate when needed.
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_read_description): Rewrite.
8188 * target.h (struct target_ops) <to_read_description>: Update
8189 comment. Use TARGET_DEFAULT_RETURN.
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8193 * target-delegates.c: Rebuild.
8194 * target.c (update_current_target): Don't inherit or default
8196 (find_default_run_target): Check against delegate_can_run.
8197 * target.h (struct target_ops) <to_can_run>: Use
8198 TARGET_DEFAULT_RETURN.
8200 2014-02-19 Tom Tromey <tromey@redhat.com>
8202 * target-delegates.c: Rebuild.
8203 * target.c (target_disconnect): Unconditionally delegate.
8204 * target.h (struct target_ops) <to_disconnect>: Use
8205 TARGET_DEFAULT_NORETURN.
8207 2014-02-19 Tom Tromey <tromey@redhat.com>
8209 * record.c (record_stop): Unconditionally delegate.
8210 * target-delegates.c: Rebuild.
8211 * target.c (target_stop_recording): Unconditionally delegate.
8212 * target.h (struct target_ops) <to_stop_recording>: Use
8213 TARGET_DEFAULT_IGNORE.
8215 2014-02-19 Tom Tromey <tromey@redhat.com>
8217 * target-delegates.c: Rebuild.
8218 * target.c (target_enable_btrace): Unconditionally delegate.
8219 * target.h (struct target_ops) <to_enable_btrace>: Use
8220 TARGET_DEFAULT_NORETURN.
8222 2014-02-19 Tom Tromey <tromey@redhat.com>
8224 * target-delegates.c: Rebuild.
8225 * target.c (target_read_btrace): Unconditionally delegate.
8226 * target.h (struct target_ops) <to_read_btrace>: Use
8227 TARGET_DEFAULT_NORETURN.
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8231 * target-delegates.c: Rebuild.
8232 * target.c (target_teardown_btrace): Unconditionally delegate.
8233 * target.h (struct target_ops) <to_teardown_btrace>: Use
8234 TARGET_DEFAULT_NORETURN.
8236 2014-02-19 Tom Tromey <tromey@redhat.com>
8238 * target-delegates.c: Rebuild.
8239 * target.c (target_disable_btrace): Unconditionally delegate.
8240 * target.h (struct target_ops) <to_disable_btrace>: Use
8241 TARGET_DEFAULT_NORETURN.
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8245 * target-delegates.c: Rebuild.
8246 * target.c (default_search_memory): New function.
8247 (simple_search_memory): Update comment.
8248 (target_search_memory): Unconditionally delegate.
8249 * target.h (struct target_ops) <to_search_memory>: Use
8250 TARGET_DEFAULT_FUNC.
8252 2014-02-19 Tom Tromey <tromey@redhat.com>
8254 * auxv.c (default_auxv_parse): No longer static.
8255 (target_auxv_parse): Unconditionally delegate.
8256 * auxv.h (default_auxv_parse): Declare.
8257 * target-delegates.c: Rebuild.
8258 * target.c: Include auxv.h.
8259 * target.h (struct target_ops) <to_auxv_parse>: Use
8260 TARGET_DEFAULT_FUNC.
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8264 * target-delegates.c: Rebuild.
8265 * target.c (target_memory_map): Unconditionally delegate.
8266 * target.h (struct target_ops) <to_memory_map>: Use
8267 TARGET_DEFAULT_RETURN.
8269 2014-02-19 Tom Tromey <tromey@redhat.com>
8271 * target-delegates.c: Rebuild.
8272 * target.c (target_thread_alive): Unconditionally delegate.
8273 * target.h (struct target_ops) <to_thread_alive>: Use
8274 TARGET_DEFAULT_RETURN.
8276 2014-02-19 Tom Tromey <tromey@redhat.com>
8278 * target-delegates.c: Rebuild.
8279 * target.c (target_save_record): Unconditionally delegate.
8280 * target.h (struct target_ops) <to_save_record>: Use
8281 TARGET_DEFAULT_NORETURN.
8283 2014-02-19 Tom Tromey <tromey@redhat.com>
8285 * target-delegates.c: Rebuild.
8286 * target.c (target_delete_record): Unconditionally delegate.
8287 * target.h (struct target_ops) <to_delete_record>: Use
8288 TARGET_DEFAULT_NORETURN.
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8292 * target-delegates.c: Rebuild.
8293 * target.c (target_record_is_replaying): Unconditionally
8295 * target.h (struct target_ops) <to_record_is_replaying>: Use
8296 TARGET_DEFAULT_RETURN.
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8300 * target-delegates.c: Rebuild.
8301 * target.c (target_goto_record_begin): Unconditionally delegate.
8302 * target.h (struct target_ops) <to_goto_record_begin>: Use
8303 TARGET_DEFAULT_NORETURN.
8305 2014-02-19 Tom Tromey <tromey@redhat.com>
8307 * target-delegates.c: Rebuild.
8308 * target.c (target_goto_record_end): Unconditionally delegate.
8309 * target.h (struct target_ops) <to_goto_record_end>: Use
8310 TARGET_DEFAULT_NORETURN.
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8314 * target-delegates.c: Rebuild.
8315 * target.c (target_goto_record): Unconditionally delegate.
8316 * target.h (struct target_ops) <to_goto_record>: Use
8317 TARGET_DEFAULT_NORETURN.
8319 2014-02-19 Tom Tromey <tromey@redhat.com>
8321 * target-delegates.c: Rebuild.
8322 * target.c (target_insn_history): Unconditionally delegate.
8323 * target.h (struct target_ops) <to_insn_history>: Use
8324 TARGET_DEFAULT_NORETURN.
8326 2014-02-19 Tom Tromey <tromey@redhat.com>
8328 * target-delegates.c: Rebuild.
8329 * target.c (target_insn_history_from): Unconditionally delegate.
8330 * target.h (struct target_ops) <to_insn_history_from>: Use
8331 TARGET_DEFAULT_NORETURN.
8333 2014-02-19 Tom Tromey <tromey@redhat.com>
8335 * target-delegates.c: Rebuild.
8336 * target.c (target_insn_history_range): Unconditionally delegate.
8337 * target.h (struct target_ops) <to_insn_history_range>: Use
8338 TARGET_DEFAULT_NORETURN.
8340 2014-02-19 Tom Tromey <tromey@redhat.com>
8342 * target-delegates.c: Rebuild.
8343 * target.c (target_call_history): Unconditionally delegate.
8344 * target.h (struct target_ops) <to_call_history>: Use
8345 TARGET_DEFAULT_NORETURN.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (target_call_history_from): Unconditionally delegate.
8351 * target.h (struct target_ops) <to_call_history_from>: Use
8352 TARGET_DEFAULT_NORETURN.
8354 2014-02-19 Tom Tromey <tromey@redhat.com>
8356 * target-delegates.c: Rebuild.
8357 * target.c (target_call_history_range): Unconditionally delegate.
8358 * target.h (struct target_ops) <to_call_history_range>: Use
8359 TARGET_DEFAULT_NORETURN.
8361 2014-02-19 Tom Tromey <tromey@redhat.com>
8363 * target-delegates.c: Rebuild.
8364 * target.c (target_verify_memory): Unconditionally delegate.
8365 * target.h (struct target_ops) <to_verify_memory>: Use
8366 TARGET_DEFAULT_NORETURN.
8368 2014-02-19 Tom Tromey <tromey@redhat.com>
8370 * target-delegates.c: Rebuild.
8371 * target.c (target_core_of_thread): Unconditionally delegate.
8372 * target.h (struct target_ops) <to_core_of_thread>: Use
8373 TARGET_DEFAULT_RETURN.
8375 2014-02-19 Tom Tromey <tromey@redhat.com>
8377 * target-delegates.c: Rebuild.
8378 * target.c (target_flash_done): Unconditionally delegate.
8379 * target.h (struct target_ops) <to_flash_done>: Use
8380 TARGET_DEFAULT_NORETURN.
8382 2014-02-19 Tom Tromey <tromey@redhat.com>
8384 * target-delegates.c: Rebuild.
8385 * target.c (target_flash_erase): Unconditionally delegate.
8386 * target.h (struct target_ops) <to_flash_erase>: Use
8387 TARGET_DEFAULT_NORETURN.
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8391 * target-delegates.c: Rebuild.
8392 * target.c (target_get_section_table): Unconditionally delegate.
8393 * target.h (struct target_ops) <to_get_section_table>: Use
8394 TARGET_DEFAULT_RETURN.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target-delegates.c: Rebuild.
8399 * target.c (target_pid_to_str): Unconditionally delegate.
8400 (init_dummy_target): Don't initialize to_pid_to_str.
8401 (default_pid_to_str): Rename from dummy_pid_to_str.
8402 * target.h (struct target_ops) <to_pid_to_str>: Use
8403 TARGET_DEFAULT_FUNC.
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8407 * target-delegates.c: Rebuild.
8408 * target.c (target_find_new_threads): Unconditionally delegate.
8409 * target.h (struct target_ops) <to_find_new_threads>: Use
8410 TARGET_DEFAULT_RETURN.
8412 2014-02-19 Tom Tromey <tromey@redhat.com>
8414 * target-delegates.c: Rebuild.
8415 * target.c (target_program_signals): Unconditionally delegate.
8416 * target.h (struct target_ops) <to_program_signals>: Use
8417 TARGET_DEFAULT_IGNORE.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target-delegates.c: Rebuild.
8422 * target.c (target_pass_signals): Unconditionally delegate.
8423 * target.h (struct target_ops) <to_pass_signals>: Use
8424 TARGET_DEFAULT_IGNORE.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (default_mourn_inferior): New function.
8430 (target_mourn_inferior): Unconditionally delegate.
8431 * target.h (struct target_ops) <to_mourn_inferior>: Use
8432 TARGET_DEFAULT_FUNC.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target-delegates.c: Rebuild.
8437 * target.c (default_follow_fork): New function.
8438 (target_follow_fork): Unconditionally delegate.
8439 * target.h (struct target_ops) <to_follow_fork>: Use
8440 TARGET_DEFAULT_FUNC.
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8444 * target-delegates.c: Rebuild.
8445 * target.c (target_kill): Unconditionally delegate.
8446 * target.h (struct target_ops) <to_kill>: Use
8447 TARGET_DEFAULT_NORETURN.
8449 2014-02-19 Tom Tromey <tromey@redhat.com>
8451 * target-delegates.c: Rebuild.
8452 * target.c (target_masked_watch_num_registers): Unconditionally
8454 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8455 Use TARGET_DEFAULT_RETURN.
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8459 * target-delegates.c: Rebuild.
8460 * target.c (target_remove_mask_watchpoint): Unconditionally
8462 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8463 TARGET_DEFAULT_RETURN.
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8467 * target-delegates.c: Rebuild.
8468 * target.c (target_insert_mask_watchpoint): Unconditionally
8470 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8471 TARGET_DEFAULT_RETURN.
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8475 * target-delegates.c: Rebuild.
8476 * target.c (target_ranged_break_num_registers): Unconditionally
8478 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8479 Use TARGET_DEFAULT_RETURN.
8481 2014-02-19 Tom Tromey <tromey@redhat.com>
8483 * target-delegates.c: Rebuild.
8484 * target.c (target_fetch_registers): Unconditionally delegate.
8485 * target.h (struct target_ops) <to_fetch_registers>: Use
8486 TARGET_DEFAULT_NORETURN.
8488 2014-02-19 Tom Tromey <tromey@redhat.com>
8490 * target-delegates.c: Rebuild.
8491 * target.c (update_current_target): Don't inherit or default
8493 * target.h (struct target_ops) <to_stop>: Use
8494 TARGET_DEFAULT_IGNORE.
8496 2014-02-19 Tom Tromey <tromey@redhat.com>
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8500 to_can_run_breakpoint_commands.
8501 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8502 Use TARGET_DEFAULT_RETURN.
8504 2014-02-19 Tom Tromey <tromey@redhat.com>
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8508 to_supports_evaluation_of_breakpoint_conditions.
8509 * target.h (struct target_ops)
8510 <to_supports_evaluation_of_breakpoint_conditions>: Use
8511 TARGET_DEFAULT_RETURN.
8513 2014-02-19 Tom Tromey <tromey@redhat.com>
8515 * target-delegates.c: Rebuild.
8516 * target.c (update_current_target): Don't inherit or default
8517 to_augmented_libraries_svr4_read.
8518 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8519 Use TARGET_DEFAULT_RETURN.
8521 2014-02-19 Tom Tromey <tromey@redhat.com>
8523 * target-delegates.c: Rebuild.
8524 * target.c (update_current_target): Don't inherit or default
8526 * target.h (struct target_ops) <to_can_use_agent>: Use
8527 TARGET_DEFAULT_RETURN.
8529 2014-02-19 Tom Tromey <tromey@redhat.com>
8531 * target-delegates.c: Rebuild.
8532 * target.c (update_current_target): Don't inherit or default
8534 * target.h (struct target_ops) <to_use_agent>: Use
8535 TARGET_DEFAULT_NORETURN.
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8542 (return_null): Remove.
8543 * target.h (struct target_ops) <to_traceframe_info>: Use
8544 TARGET_DEFAULT_RETURN.
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8548 * target-delegates.c: Rebuild.
8549 * target.c (update_current_target): Don't inherit or default
8550 to_static_tracepoint_markers_by_strid.
8551 * target.h (struct target_ops)
8552 <to_static_tracepoint_markers_by_strid>: Use
8553 TARGET_DEFAULT_NORETURN.
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8557 * target-delegates.c: Rebuild.
8558 * target.c (update_current_target): Don't inherit or default
8559 to_static_tracepoint_marker_at.
8560 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8561 Use TARGET_DEFAULT_RETURN.
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8565 * target-delegates.c: Rebuild.
8566 * target.c (update_current_target): Don't inherit or default
8568 * target.h (struct target_ops) <to_set_permissions>: Use
8569 TARGET_DEFAULT_IGNORE.
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8573 * target-delegates.c: Rebuild.
8574 * target.c (update_current_target): Don't inherit or default
8576 * target.h (struct target_ops) <to_get_tib_address>: Use
8577 TARGET_DEFAULT_NORETURN.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8584 * target.h (struct target_ops) <to_set_trace_notes>: Use
8585 TARGET_DEFAULT_RETURN.
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't initialize
8591 to_set_trace_buffer_size.
8592 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8593 TARGET_DEFAULT_IGNORE.
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8597 * target-delegates.c: Rebuild.
8598 * target.c (update_current_target): Don't inherit or default
8599 to_set_circular_trace_buffer.
8600 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8601 TARGET_DEFAULT_IGNORE.
8603 2014-02-19 Tom Tromey <tromey@redhat.com>
8605 * target-delegates.c: Rebuild.
8606 * target.c (update_current_target): Don't inherit or default
8607 to_set_disconnected_tracing.
8608 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8609 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
8616 (return_minus_one): Remove.
8617 * target.h (struct target_ops)
8618 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8620 2014-02-19 Tom Tromey <tromey@redhat.com>
8622 * target-delegates.c: Rebuild.
8623 * target.c (update_current_target): Don't inherit or default
8624 to_get_raw_trace_data.
8625 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8626 TARGET_DEFAULT_NORETURN.
8628 2014-02-19 Tom Tromey <tromey@redhat.com>
8630 * target-delegates.c: Rebuild.
8631 * target.c (update_current_target): Don't inherit or default
8632 to_upload_trace_state_variables.
8633 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8634 Use TARGET_DEFAULT_RETURN.
8636 2014-02-19 Tom Tromey <tromey@redhat.com>
8638 * target-delegates.c: Rebuild.
8639 * target.c (update_current_target): Don't inherit or default
8640 to_upload_tracepoints.
8641 * target.h (struct target_ops) <to_upload_tracepoints>: 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
8649 * target.h (struct target_ops) <to_save_trace_data>: Use
8650 TARGET_DEFAULT_NORETURN.
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8654 * target-delegates.c: Rebuild.
8655 * target.c (update_current_target): Don't inherit or default
8656 to_get_trace_state_variable_value.
8657 * target.h (struct target_ops)
8658 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target-delegates.c: Rebuild.
8663 * target.c (update_current_target): Don't inherit or default
8665 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8667 2014-02-19 Tom Tromey <tromey@redhat.com>
8669 * target-delegates.c: Rebuild.
8670 * target.c (update_current_target): Don't inherit or default
8672 * target.h (struct target_ops) <to_trace_stop>: Use
8673 TARGET_DEFAULT_NORETURN.
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8677 * target-delegates.c: Rebuild.
8678 * target.c (update_current_target): Don't inherit or default
8679 to_get_tracepoint_status.
8680 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8681 TARGET_DEFAULT_NORETURN.
8683 2014-02-19 Tom Tromey <tromey@redhat.com>
8685 * target-delegates.c: Rebuild.
8686 * target.c (update_current_target): Don't inherit or default
8687 to_get_trace_status.
8688 * target.h (struct target_ops) <to_get_trace_status>: Use
8689 TARGET_DEFAULT_RETURN.
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8693 * target-delegates.c: Rebuild.
8694 * target.c (update_current_target): Don't inherit or default
8696 * target.h (struct target_ops) <to_trace_start>: Use
8697 TARGET_DEFAULT_NORETURN.
8699 2014-02-19 Tom Tromey <tromey@redhat.com>
8701 * target-delegates.c: Rebuild.
8702 * target.c (update_current_target): Don't inherit or default
8703 to_trace_set_readonly_regions.
8704 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8705 Use TARGET_DEFAULT_NORETURN.
8707 2014-02-19 Tom Tromey <tromey@redhat.com>
8709 * target-delegates.c: Rebuild.
8710 * target.c (update_current_target): Don't inherit or default
8711 to_disable_tracepoint.
8712 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8713 TARGET_DEFAULT_NORETURN.
8715 2014-02-19 Tom Tromey <tromey@redhat.com>
8717 * target-delegates.c: Rebuild.
8718 * target.c (update_current_target): Don't inherit or default
8719 to_enable_tracepoint.
8720 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8721 TARGET_DEFAULT_NORETURN.
8723 2014-02-19 Tom Tromey <tromey@redhat.com>
8725 * target-delegates.c: Rebuild.
8726 * target.c (update_current_target): Don't inherit or default
8727 to_download_trace_state_variable.
8728 * target.h (struct target_ops) <to_download_trace_state_variable>:
8729 Use TARGET_DEFAULT_NORETURN.
8731 2014-02-19 Tom Tromey <tromey@redhat.com>
8733 * target-delegates.c: Rebuild.
8734 * target.c (update_current_target): Don't inherit or default
8735 to_can_download_tracepoint.
8736 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8737 TARGET_DEFAULT_RETURN.
8739 2014-02-19 Tom Tromey <tromey@redhat.com>
8741 * target-delegates.c: Rebuild.
8742 * target.c (update_current_target): Don't inherit or default
8743 to_download_tracepoint.
8744 * target.h (struct target_ops) <to_download_tracepoint>: Use
8745 TARGET_DEFAULT_NORETURN.
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * target-delegates.c: Rebuild.
8750 * target.c (update_current_target): Don't inherit or default
8752 * target.h (struct target_ops) <to_trace_init>: Use
8753 TARGET_DEFAULT_RETURN.
8755 2014-02-19 Tom Tromey <tromey@redhat.com>
8757 * target-delegates.c: Rebuild.
8758 * target.c (update_current_target): Don't inherit or default
8759 to_supports_string_tracing.
8760 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8761 TARGET_DEFAULT_RETURN.
8763 2014-02-19 Tom Tromey <tromey@redhat.com>
8765 * target-delegates.c: Rebuild.
8766 * target.c (update_current_target): Don't inherit or default
8767 to_supports_enable_disable_tracepoint.
8768 * target.h (struct target_ops)
8769 <to_supports_enable_disable_tracepoint>: Use
8770 TARGET_DEFAULT_RETURN.
8772 2014-02-19 Tom Tromey <tromey@redhat.com>
8774 * target-delegates.c: Rebuild.
8775 * target.c (update_current_target): Don't inherit or default
8776 to_supports_multi_process.
8777 * target.h (struct target_ops) <to_supports_multi_process>: Use
8778 TARGET_DEFAULT_RETURN.
8780 2014-02-19 Tom Tromey <tromey@redhat.com>
8782 * target-delegates.c: Rebuild.
8783 * target.c (update_current_target): Don't inherit or default
8784 to_get_ada_task_ptid.
8785 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8786 TARGET_DEFAULT_FUNC.
8788 2014-02-19 Tom Tromey <tromey@redhat.com>
8790 * target-delegates.c: Rebuild.
8791 * target.c (update_current_target): Don't inherit or default
8792 to_thread_architecture.
8793 * target.h (struct target_ops) <to_thread_architecture>: Use
8794 TARGET_DEFAULT_FUNC.
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target-delegates.c: Rebuild.
8799 * target.c (update_current_target): Don't inherit or default
8800 to_execution_direction.
8801 * target.h (struct target_ops) <to_execution_direction>: Use
8802 TARGET_DEFAULT_FUNC.
8804 2014-02-19 Tom Tromey <tromey@redhat.com>
8806 * target-delegates.c: Rebuild.
8807 * target.c (update_current_target): Don't inherit or default
8808 to_can_execute_reverse.
8809 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8810 TARGET_DEFAULT_RETURN.
8811 (target_can_execute_reverse): Unconditionally delegate.
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
8818 (dummy_goto_bookmark): Remove.
8819 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8820 * target.h (struct target_ops) <to_goto_bookmark>: Use
8821 TARGET_DEFAULT_NORETURN.
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8825 * target-delegates.c: Rebuild.
8826 * target.c (update_current_target): Don't inherit or default
8828 (dummy_get_bookmark): Remove.
8829 (init_dummy_target): Don't inherit or default to_get_bookmark.
8830 * target.h (struct target_ops) <to_get_bookmark>: Use
8831 TARGET_DEFAULT_NORETURN
8833 2014-02-19 Tom Tromey <tromey@redhat.com>
8835 * target-delegates.c: Rebuild.
8836 * target.c (update_current_target): Don't inherit or default
8837 to_make_corefile_notes.
8838 (init_dummy_target): Don't initialize to_make_corefile_notes.
8839 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8840 TARGET_DEFAULT_FUNC.
8842 2014-02-19 Tom Tromey <tromey@redhat.com>
8844 * target-delegates.c: Rebuild.
8845 * target.c (update_current_target): Don't inherit or default
8846 to_find_memory_regions.
8847 (init_dummy_target): Don't initialize to_find_memory_regions.
8848 * target.h (struct target_ops) <to_find_memory_regions>: Use
8849 TARGET_DEFAULT_FUNC.
8851 2014-02-19 Tom Tromey <tromey@redhat.com>
8853 * target-delegates.c: Rebuild.
8854 * target.c (update_current_target): Don't inherit or default
8856 * target.h (struct target_ops) <to_log_command>: Use
8857 TARGET_DEFAULT_IGNORE.
8858 (target_log_command): Unconditionally delegate.
8860 2014-02-19 Tom Tromey <tromey@redhat.com>
8862 * target-delegates.c: Rebuild.
8863 * target.c (update_current_target): Don't inherit or default
8864 to_pid_to_exec_file.
8865 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8866 TARGET_DEFAULT_RETURN.
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8870 * target-delegates.c: Rebuild.
8871 * target.c (update_current_target): Don't inherit or default
8873 (target_thread_name): Unconditionally delegate.
8874 * target.h (struct target_ops) <to_thread_name>: Use
8875 TARGET_DEFAULT_RETURN.
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8879 * target-delegates.c: Rebuild.
8880 * target.c (update_current_target): Don't inherit or default
8881 to_extra_thread_info.
8882 * target.h (struct target_ops) <to_extra_thread_info>: Use
8883 TARGET_DEFAULT_RETURN.
8885 2014-02-19 Tom Tromey <tromey@redhat.com>
8887 * target-delegates.c: Rebuild.
8888 * target.c (update_current_target): Don't inherit or default
8890 * target.h (struct target_ops) <to_has_exited>: Use
8891 TARGET_DEFAULT_RETURN..
8893 2014-02-19 Tom Tromey <tromey@redhat.com>
8895 * target-delegates.c: Rebuild.
8896 * target.c (update_current_target): Don't inherit or default
8897 to_set_syscall_catchpoint.
8898 (return_one): Remove.
8899 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8900 TARGET_DEFAULT_RETURN.
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_insert_exec_catchpoint.
8907 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8908 TARGET_DEFAULT_RETURN.
8910 2014-01-08 Tom Tromey <tromey@redhat.com>
8912 * target-delegates.c: Rebuild.
8913 * target.c (update_current_target): Don't inherit or default
8914 to_insert_exec_catchpoint.
8915 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8916 TARGET_DEFAULT_RETURN.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target-delegates.c: Rebuild.
8921 * target.c (update_current_target): Don't inherit or default
8922 to_remove_vfork_catchpoint.
8923 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8924 TARGET_DEFAULT_RETURN.
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8928 * target-delegates.c: Rebuild.
8929 * target.c (update_current_target): Don't inherit or default
8930 to_insert_vfork_catchpoint.
8931 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8932 TARGET_DEFAULT_RETURN.
8934 2014-02-19 Tom Tromey <tromey@redhat.com>
8936 * target-delegates.c: Rebuild.
8937 * target.c (update_current_target): Don't inherit or default
8938 to_remove_fork_catchpoint.
8939 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8940 TARGET_DEFAULT_RETURN.
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * target-delegates.c: Rebuild.
8945 * target.c (update_current_target): Don't inherit or default
8946 to_insert_fork_catchpoint.
8947 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8948 TARGET_DEFAULT_RETURN.
8950 2014-02-19 Tom Tromey <tromey@redhat.com>
8952 * target-delegates.c: Rebuild.
8953 * target.c (update_current_target): Don't inherit or default
8954 to_post_startup_inferior.
8955 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8956 TARGET_DEFAULT_IGNORE.
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
8963 * target.h (struct target_ops) <to_load>: Use
8964 TARGET_DEFAULT_NORETURN.
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.h (struct target_ops) <to_terminal_info>: Use
8972 TARGET_DEFAULT_FUNC.
8974 2014-02-19 Tom Tromey <tromey@redhat.com>
8976 * target-delegates.c: Rebuild.
8977 * target.c (update_current_target): Don't inherit or default
8978 to_terminal_save_ours.
8979 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8980 TARGET_DEFAULT_IGNORE.
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * target-delegates.c: Rebuild.
8985 * target.c (update_current_target): Don't inherit or default
8987 * target.h (struct target_ops) <to_terminal_ours>: Use
8988 TARGET_DEFAULT_IGNORE.
8990 2014-02-19 Tom Tromey <tromey@redhat.com>
8992 * target-delegates.c: Rebuild.
8993 * target.c (update_current_target): Don't inherit or default
8994 to_terminal_ours_for_output.
8995 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8996 TARGET_DEFAULT_IGNORE.
8998 2014-02-19 Tom Tromey <tromey@redhat.com>
9000 * target-delegates.c: Rebuild.
9001 * target.c (update_current_target): Don't inherit or default
9002 to_terminal_inferior.
9003 * target.h (struct target_ops) <to_terminal_inferior>: Use
9004 TARGET_DEFAULT_IGNORE.
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9008 * target-delegates.c: Rebuild.
9009 * target.c (update_current_target): Don't inherit or default
9011 * target.h (struct target_ops) <to_terminal_init>: Use
9012 TARGET_DEFAULT_IGNORE.
9014 2014-02-19 Tom Tromey <tromey@redhat.com>
9016 * target-delegates.c: Rebuild.
9017 * target.c (update_current_target): Don't inherit or default
9018 to_can_accel_watchpoint_condition.
9019 * target.h (struct target_ops)
9020 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target-delegates.c: Rebuild.
9025 * target.c (update_current_target): Don't inherit or default
9026 to_region_ok_for_hw_watchpoint.
9027 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9028 Use TARGET_DEFAULT_FUNC.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target-delegates.c: Rebuild.
9033 * target.c (update_current_target): Don't inherit or default
9034 to_watchpoint_addr_within_range.
9035 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9036 Use TARGET_DEFAULT_FUNC.
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9040 * target-delegates.c: Rebuild.
9041 * target.c (update_current_target): Don't inherit or default
9042 to_remove_watchpoint.
9043 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9044 TARGET_DEFAULT_NORETURN.
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9048 * target-delegates.c: Rebuild.
9049 * target.c (update_current_target): Don't inherit or default
9050 to_insert_watchpoint.
9051 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9052 TARGET_DEFAULT_RETURN.
9054 2014-02-19 Tom Tromey <tromey@redhat.com>
9056 * target-delegates.c: Rebuild.
9057 * target.c (update_current_target): Don't inherit or default
9058 to_remove_hw_breakpoint.
9059 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9060 TARGET_DEFAULT_RETURN.
9062 2014-02-19 Tom Tromey <tromey@redhat.com>
9064 * target-delegates.c: Rebuild.
9065 * target.c (update_current_target): Don't inherit or default
9066 to_insert_hw_breakpoint.
9067 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9068 TARGET_DEFAULT_RETURN.
9070 2014-02-19 Tom Tromey <tromey@redhat.com>
9072 * target-delegates.c: Rebuild.
9073 * target.c (update_current_target): Don't inherit or default
9074 to_can_use_hw_breakpoint.
9075 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9076 TARGET_DEFAULT_RETURN.
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9080 * target-delegates.c: Rebuild.
9081 * target.c (update_current_target): Don't inherit or default
9083 * target.h (struct target_ops) <to_files_info>: Use
9084 TARGET_DEFAULT_IGNORE.
9086 2014-02-19 Tom Tromey <tromey@redhat.com>
9088 * target-delegates.c: Rebuild.
9089 * target.c (update_current_target): Don't inherit or default
9091 * target.h (struct target_ops) <to_store>: Use
9092 TARGET_DEFAULT_NORETURN.
9094 2014-02-19 Tom Tromey <tromey@redhat.com>
9096 * target-delegates.c: Rebuild.
9097 * target.c (update_current_target): Don't inherit or default
9099 * target.h (struct target_ops) <to_post_attach>: Use
9100 TARGET_DEFAULT_IGNORE.
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target-delegates.c: Rebuild.
9105 * target.c (update_current_target): Don't inherit or default
9107 (default_rcmd): New function.
9108 (do_monitor_command): Unconditionally delegate.
9109 * target.h (struct target_ops) <to_rmcd>: Use
9110 TARGET_DEFAULT_FUNC.
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target-delegates.c: Rebuild.
9115 * target.c (init_dummy_target): Don't initialize to_attach.
9116 (target_attach): Unconditionally delegate.
9117 * target.h (struct target_ops) <to_attach>: Use
9118 TARGET_DEFAULT_FUNC.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target-delegates.c: Rebuild.
9123 * target.c (target_detach): Unconditionally delegate.
9124 (init_dummy_target): Don't initialize to_detach.
9125 * target.h (struct target_ops) <to_detach>: Use
9126 TARGET_DEFAULT_IGNORE.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9132 (target_augmented_libraries_svr4_read): Add argument.
9133 * target.c (update_current_target): Update.
9134 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9139 * target.h (struct target_ops) <to_call_history_range>: Add
9141 * target.c (target_call_history_range): Add argument.
9142 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9144 (record_btrace_call_history_from): Update.
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * target.h (struct target_ops) <to_call_history_from>: Add
9150 * target.c (target_call_history_from): Add argument.
9151 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9156 * target.h (struct target_ops) <to_call_history>: Add argument.
9157 * target.c (target_call_history): Add argument.
9158 * record-btrace.c (record_btrace_call_history): Add 'self'
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9163 * target.h (struct target_ops) <to_insn_history_range>: Add
9165 * target.c (target_insn_history_range): Add argument.
9166 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9168 (record_btrace_insn_history_from): Update.
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * target.h (struct target_ops) <to_insn_history_from>: Add
9174 * target.c (target_insn_history_from): Add argument.
9175 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9180 * target.h (struct target_ops) <to_insn_history>: Add argument.
9181 * target.c (target_insn_history): Add argument.
9182 * record-btrace.c (record_btrace_insn_history): Add 'self'
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * target.h (struct target_ops) <to_goto_record>: Add argument.
9188 * target.c (target_goto_record): Add argument.
9189 * record-full.c (record_full_goto): Add 'self' argument.
9190 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9192 2014-02-19 Tom Tromey <tromey@redhat.com>
9194 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9195 * target.c (target_goto_record_end): Add argument.
9196 * record-full.c (record_full_goto_end): Add 'self' argument.
9197 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9199 2014-02-19 Tom Tromey <tromey@redhat.com>
9201 * target.h (struct target_ops) <to_goto_record_begin>: Add
9203 * target.c (target_goto_record_begin): Add argument.
9204 * record-full.c (record_full_goto_begin): Add 'self' argument.
9205 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9208 2014-02-19 Tom Tromey <tromey@redhat.com>
9210 * target.h (struct target_ops) <to_record_is_replaying>: Add
9212 * target.c (target_record_is_replaying): Add argument.
9213 * record-full.c (record_full_is_replaying): Add 'self' argument.
9214 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9216 (record_btrace_xfer_partial, record_btrace_store_registers)
9217 (record_btrace_prepare_to_store, record_btrace_resume)
9218 (record_btrace_wait, record_btrace_decr_pc_after_break)
9219 (record_btrace_find_new_threads, record_btrace_thread_alive):
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9224 * target.h (struct target_ops) <to_delete_record>: Add argument.
9225 * target.c (target_delete_record): Add argument.
9226 * record-full.c (record_full_delete): Add 'self' argument.
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target.h (struct target_ops) <to_save_record>: Add argument.
9231 * target.c (target_save_record): Add argument.
9232 * record-full.c (record_full_save): Add 'self' argument.
9233 (record_full_save): Add 'self' argument.
9235 2014-02-19 Tom Tromey <tromey@redhat.com>
9237 * target.h (struct target_ops) <to_info_record>: Add argument.
9238 * target.c (target_info_record): Add argument.
9239 * record.c (info_record_command): Add argument.
9240 * record-full.c (record_full_info): Add 'self' argument.
9241 * record-btrace.c (record_btrace_info): Add 'self' argument.
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9245 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9246 * target.c (target_stop_recording): Add argument.
9247 * record.c (record_stop): Add argument.
9248 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9253 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9254 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9255 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9257 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9258 (_initialize_amd64_linux_nat): Use it.
9259 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9260 (_initialize_i386_linux_nat): Use it.
9262 2014-02-19 Tom Tromey <tromey@redhat.com>
9264 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9265 * target.c (target_teardown_btrace): Add argument.
9266 * remote.c (remote_teardown_btrace): Add 'self' argument.
9267 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9269 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9272 2014-02-19 Tom Tromey <tromey@redhat.com>
9274 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9275 * target.c (target_disable_btrace): Add argument.
9276 * remote.c (remote_disable_btrace): Add 'self' argument.
9277 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9279 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9285 * target.c (target_enable_btrace): Add argument.
9286 * remote.c (remote_enable_btrace): Add 'self' argument.
9287 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9289 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9294 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9295 (target_can_use_agent): Add argument.
9296 * target.c (update_current_target): Update.
9297 * remote.c (remote_can_use_agent): Add 'self' argument.
9298 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9300 2014-02-19 Tom Tromey <tromey@redhat.com>
9302 * target.h (struct target_ops) <to_use_agent>: Add argument.
9303 (target_use_agent): Add argument.
9304 * target.c (update_current_target): Update.
9305 * remote.c (remote_use_agent): Add 'self' argument.
9306 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9308 2014-02-19 Tom Tromey <tromey@redhat.com>
9310 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9311 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9312 (target_traceframe_info): Add argument.
9313 * target.c (update_current_target): Update.
9314 * remote.c (remote_traceframe_info): Add 'self' argument.
9315 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9319 * target.h (target_static_tracepoint_markers_by_strid): Add
9321 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9323 * target.c (update_current_target): Update.
9324 * remote.c (struct target_ops)
9325 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9326 * linux-nat.c (struct target_ops)
9327 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9329 2014-02-19 Tom Tromey <tromey@redhat.com>
9331 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9333 (target_static_tracepoint_marker_at): Add argument.
9334 * target.c (update_current_target): Update.
9335 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9340 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9341 (target_set_permissions): Add argument.
9342 * target.c (update_current_target): Update.
9343 * remote.c (remote_set_permissions): Add 'self' argument.
9344 (remote_start_remote): Update.
9346 2014-02-19 Tom Tromey <tromey@redhat.com>
9348 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9349 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9350 (target_get_tib_address): Add argument.
9351 * target.c (update_current_target): Update.
9352 * remote.c (remote_get_tib_address): Add 'self' argument.
9354 2014-02-19 Tom Tromey <tromey@redhat.com>
9356 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9357 (target_set_trace_notes): Add argument.
9358 * target.c (update_current_target): Update.
9359 * remote.c (remote_set_trace_notes): Add 'self' argument.
9361 2014-02-19 Tom Tromey <tromey@redhat.com>
9363 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9365 (target_set_trace_buffer_size): Add argument.
9366 * target.c (update_current_target): Update.
9367 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9373 (target_set_circular_trace_buffer): Add argument.
9374 * target.c (update_current_target): Update.
9375 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9382 (target_set_disconnected_tracing): Add argument.
9383 * target.c (update_current_target): Update.
9384 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9386 2014-02-19 Tom Tromey <tromey@redhat.com>
9388 * target.h (struct target_ops)
9389 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9390 (target_get_min_fast_tracepoint_insn_len): Add argument.
9391 * target.c (update_current_target): Update.
9392 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9395 2014-02-19 Tom Tromey <tromey@redhat.com>
9397 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9399 (target_get_raw_trace_data): Add argument.
9400 * target.c (update_current_target): Update.
9401 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9403 2014-02-19 Tom Tromey <tromey@redhat.com>
9405 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9407 (target_upload_trace_state_variables): Add argument.
9408 * target.c (update_current_target): Update.
9409 * remote.c (remote_upload_trace_state_variables): Add 'self'
9411 (remote_start_remote): Update.
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9415 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9417 (target_upload_tracepoints): Add argument.
9418 * target.c (update_current_target): Update.
9419 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9420 (remote_start_remote): Update.
9422 2014-02-19 Tom Tromey <tromey@redhat.com>
9424 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9425 (target_save_trace_data): Add argument.
9426 * target.c (update_current_target): Update.
9427 * remote.c (remote_save_trace_data): Add 'self' argument.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9433 * target.h (struct target_ops)
9434 <to_get_trace_state_variable_value>: Add argument.
9435 (target_get_trace_state_variable_value): Add argument.
9436 * target.c (update_current_target): Update.
9437 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9439 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9443 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9444 * target.h (struct target_ops) <to_trace_find>: Add argument.
9445 (target_trace_find): Add argument.
9446 * target.c (update_current_target): Update.
9447 * remote.c (remote_trace_find): Add 'self' argument.
9448 * ctf.c (ctf_trace_find): Add 'self' argument.
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9452 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9453 (target_trace_stop): Add argument.
9454 * target.c (update_current_target): Update.
9455 * remote.c (remote_trace_stop): Add 'self' argument.
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9459 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9460 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9462 (target_get_tracepoint_status): Add argument.
9463 * target.c (update_current_target): Update.
9464 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9469 * target.h (struct target_ops) <to_get_trace_status>: Add
9471 (target_get_trace_status): Add argument.
9472 * target.c (update_current_target): Update.
9473 * remote.c (remote_get_trace_status): Add 'self' argument.
9474 (remote_start_remote, remote_can_download_tracepoint): Update.
9475 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9477 2014-02-19 Tom Tromey <tromey@redhat.com>
9479 * target.h (struct target_ops) <to_trace_start>: Add argument.
9480 (target_trace_start): Add argument.
9481 * target.c (update_current_target): Update.
9482 * remote.c (remote_trace_start): Add 'self' argument.
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9486 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9488 (target_trace_set_readonly_regions): Add argument.
9489 * target.c (update_current_target): Update.
9490 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9493 2014-02-19 Tom Tromey <tromey@redhat.com>
9495 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9497 (target_disable_tracepoint): Add argument.
9498 * target.c (update_current_target): Update.
9499 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9503 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9505 (target_enable_tracepoint): Add argument.
9506 * target.c (update_current_target): Update.
9507 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9509 2014-02-19 Tom Tromey <tromey@redhat.com>
9511 * target.h (struct target_ops) <to_download_trace_state_variable>:
9513 (target_download_trace_state_variable): Add argument.
9514 * target.c (update_current_target): Update.
9515 * remote.c (remote_download_trace_state_variable): Add 'self'
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9520 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9522 (target_can_download_tracepoint): Add argument.
9523 * target.c (update_current_target): Update.
9524 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9528 * target.h (struct target_ops) <to_download_tracepoint>: Add
9530 (target_download_tracepoint): Add argument.
9531 * target.c (update_current_target): Update.
9532 * remote.c (remote_download_tracepoint): Add 'self' argument.
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9536 * target.h (struct target_ops) <to_trace_init>: Add argument.
9537 (target_trace_init): Add argument.
9538 * target.c (update_current_target): Update.
9539 * remote.c (remote_trace_init): Add 'self' argument.
9541 2014-02-19 Tom Tromey <tromey@redhat.com>
9543 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9544 * target.c (target_fileio_readlink): Add argument.
9545 * remote.c (remote_hostio_readlink): Add 'self' argument.
9546 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9551 * target.c (target_fileio_unlink): Add argument.
9552 * remote.c (remote_hostio_unlink): Add 'self' argument.
9553 (remote_file_delete): Update.
9554 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9559 * target.c (target_fileio_close): Add argument.
9560 * remote.c (remote_hostio_close): Add 'self' argument.
9561 (remote_hostio_close_cleanup): Update.
9562 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9564 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9566 2014-02-19 Tom Tromey <tromey@redhat.com>
9568 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9569 * target.c (target_fileio_pread): Add argument.
9570 * remote.c (remote_hostio_pread): Add 'self' argument.
9571 (remote_bfd_iovec_pread, remote_file_get): Update.
9572 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9577 * target.c (target_fileio_pwrite): Add argument.
9578 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9579 (remote_file_put): Update.
9580 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9584 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9585 * target.c (target_fileio_open): Add argument.
9586 * remote.c (remote_hostio_open): Add 'self' argument.
9587 (remote_bfd_iovec_open): Add 'self' argument.
9588 (remote_file_put): Add 'self' argument.
9589 (remote_file_get): Add 'self' argument.
9590 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9596 (target_can_run_breakpoint_commands): Add argument.
9597 * target.c (update_current_target): Update.
9598 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9600 (remote_insert_breakpoint): Add 'self' argument.
9601 (remote_insert_hw_breakpoint): Add 'self' argument.
9602 (remote_can_run_breakpoint_commands): Add 'self' argument.
9604 2014-02-19 Tom Tromey <tromey@redhat.com>
9606 * target.h (struct target_ops)
9607 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9608 (target_supports_evaluation_of_breakpoint_conditions): Add
9610 * target.c (update_current_target): Update.
9611 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9613 (remote_insert_breakpoint): Add 'self' argument.
9614 (remote_insert_hw_breakpoint): Add 'self' argument.
9615 (remote_supports_cond_breakpoints): Add 'self' argument.
9617 2014-02-19 Tom Tromey <tromey@redhat.com>
9619 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9621 (target_supports_string_tracing): Add argument.
9622 * target.c (update_current_target): Update.
9623 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9625 2014-02-19 Tom Tromey <tromey@redhat.com>
9627 * target.h (struct target_ops)
9628 <to_supports_disable_randomization>: Add argument.
9629 * target.c (find_default_supports_disable_randomization): Add
9631 (target_supports_disable_randomization): Add argument.
9632 (find_default_supports_disable_randomization): Add 'self'
9634 * remote.c (extended_remote_supports_disable_randomization): Add
9636 (remote_supports_disable_randomization): Add 'self' argument.
9637 (extended_remote_create_inferior): Update.
9638 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9641 2014-02-19 Tom Tromey <tromey@redhat.com>
9643 * target.h (struct target_ops)
9644 <to_supports_enable_disable_tracepoint>: Add argument.
9645 (target_supports_enable_disable_tracepoint): Add argument.
9646 * target.c (update_current_target): Update.
9647 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target.h (struct target_ops) <to_supports_multi_process>: Add
9654 (target_supports_multi_process): Add argument.
9655 * target.c (update_current_target): Update.
9656 * remote.c (remote_supports_multi_process): Add 'self' argument.
9657 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9659 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9664 * target.h (struct target_ops) <to_execution_direction>: Add
9666 (target_execution_direction): Add argument.
9667 * target.c (default_execution_direction): Add 'self' argument.
9668 * record-full.c (record_full_execution_direction): Add 'self'
9671 2014-02-19 Tom Tromey <tromey@redhat.com>
9673 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9675 (target_can_execute_reverse): Add argument.
9676 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9677 * record-full.c (record_full_can_execute_reverse): Add 'self'
9679 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9682 2014-02-19 Tom Tromey <tromey@redhat.com>
9684 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9685 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9687 (target_get_ada_task_ptid): Add argument.
9688 * target.c (update_current_target): Update.
9689 (default_get_ada_task_ptid): Add 'self' argument.
9690 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9691 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9692 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9694 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9696 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9698 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9700 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9701 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9704 2014-02-19 Tom Tromey <tromey@redhat.com>
9706 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9707 (target_goto_bookmark): Add argument.
9708 * target.c (dummy_goto_bookmark): Add 'self' argument.
9709 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9713 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9714 (target_get_bookmark): Add argument.
9715 * target.c (dummy_get_bookmark): Add 'self' argument.
9716 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9718 2014-02-19 Tom Tromey <tromey@redhat.com>
9720 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9722 (target_make_corefile_notes): Add argument.
9723 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9724 * procfs.c (procfs_make_note_section): Add 'self' argument.
9725 (procfs_make_note_section): Add 'self' argument.
9726 (procfs_make_note_section): Add 'self' argument.
9727 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9729 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9730 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9731 * exec.c (exec_make_note_section): Add 'self' argument.
9732 (exec_make_note_section): Add 'self' argument.
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9736 * target.h (struct target_ops) <to_find_memory_regions>: Add
9738 (target_find_memory_regions): Add argument.
9739 * target.c (dummy_find_memory_regions): Add 'self' argument.
9740 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9741 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9742 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9743 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9744 * exec. (exec_do_find_memory_regions): New global.
9745 (exec_set_find_memory_regions): Rewrite.
9746 (exec_find_memory_regions): New function.
9747 (init_exec_ops): Use exec_find_memory_regions.
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9751 * target.h (struct target_ops) <to_supports_non_stop>: Add
9753 * target.c (find_default_supports_non_stop): Add argument.
9754 (target_supports_non_stop): Add argument.
9755 (find_default_supports_non_stop): Add 'self' argument.
9756 * remote.c (remote_supports_non_stop): Add 'self' argument.
9757 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9759 2014-02-19 Tom Tromey <tromey@redhat.com>
9761 * target.h (struct target_ops) <to_log_command>: Add argument.
9762 (target_log_command): Add argument.
9763 * serial.h (serial_log_command): Add 'self' argument.
9764 * serial.c (serial_log_command): Add 'self' argument.
9766 2014-02-19 Tom Tromey <tromey@redhat.com>
9768 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9769 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9771 (target_pid_to_exec_file): Add argument.
9772 * target.c (debug_to_pid_to_exec_file): Add argument.
9773 (update_current_target): Update.
9774 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9775 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9776 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9777 (linux_handle_extended_wait): Update.
9778 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9779 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9780 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9781 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9783 2014-02-19 Tom Tromey <tromey@redhat.com>
9785 * target.h (struct target_ops) <to_rcmd>: Add argument.
9786 (target_rcmd): Add argument.
9787 * target.c (debug_to_rcmd): Add argument.
9788 (update_current_target, do_monitor_command): Update.
9789 * remote.c (remote_rcmd): Add 'self' argument.
9790 * monitor.c (monitor_rcmd): Add 'self' argument.
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9794 * windows-nat.c (windows_stop): Add 'self' argument.
9795 * target.h (struct target_ops) <to_stop>: Add argument.
9796 * target.c (target_stop): Add argument.
9797 (debug_to_stop): Add argument.
9798 (update_current_target): Update.
9799 * remote.c (remote_stop): Add 'self' argument.
9800 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9801 (gdbsim_cntrl_c): Update.
9802 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9803 * procfs.c (procfs_stop): Add 'self' argument.
9804 * nto-procfs.c (procfs_stop): Add 'self' argument.
9805 * monitor.c (monitor_stop): Add 'self' argument.
9806 (monitor_open): Update.
9807 * linux-nat.c (linux_nat_stop): Add argument.
9808 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9809 * gnu-nat.c (gnu_stop): Add 'self' argument.
9810 * darwin-nat.c (darwin_stop): Add 'self' argument.
9812 2014-02-19 Tom Tromey <tromey@redhat.com>
9814 * target.h (struct target_ops) <to_thread_name>: Add argument.
9815 * target.c (target_thread_name): Add argument.
9816 (update_current_target): Update.
9817 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9819 2014-02-19 Tom Tromey <tromey@redhat.com>
9821 * target.h (struct target_ops) <to_extra_thread_info>: Add
9823 (target_extra_thread_info): Add argument.
9824 * target.c (update_current_target): Update.
9825 * remote.c (remote_threads_extra_info): Add 'self' argument.
9826 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9828 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9829 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9830 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9832 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9834 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9836 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9839 2014-02-19 Tom Tromey <tromey@redhat.com>
9841 * target.h (struct target_ops) <to_program_signals>: Add argument.
9842 * target.c (target_program_signals): Add argument.
9843 * remote.c (remote_program_signals): Add 'self' argument.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9848 * target.c (target_pass_signals): Add argument.
9849 * remote.c (remote_pass_signals): Add 'self' argument.
9850 (remote_start_remote): Update.
9851 * procfs.c (procfs_pass_signals): Add 'self' argument.
9852 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9853 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9854 (linux_nat_create_inferior, linux_nat_attach): Update.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * windows-nat.c (windows_can_run): Add 'self' argument.
9859 * target.h (struct target_ops) <to_can_run>: Add argument.
9860 (target_can_run): Add argument.
9861 * target.c (debug_to_can_run): Add argument.
9862 (update_current_target): Update.
9863 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9864 * inf-child.c (inf_child_can_run): Add 'self' argument.
9865 * go32-nat.c (go32_can_run): Add 'self' argument.
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9869 * target.h (struct target_ops) <to_has_exited>: Add argument.
9870 (target_has_exited): Add argument.
9871 * target.c (debug_to_has_exited): Add argument.
9872 (update_current_target): Update.
9874 2014-02-19 Tom Tromey <tromey@redhat.com>
9876 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9878 (target_set_syscall_catchpoint): Add argument.
9879 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9881 * target.c (update_current_target): Update.
9883 2014-02-19 Tom Tromey <tromey@redhat.com>
9885 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9887 (target_remove_exec_catchpoint): Add argument.
9888 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9889 (update_current_target): Update.
9890 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9893 2014-02-19 Tom Tromey <tromey@redhat.com>
9895 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9897 (target_insert_exec_catchpoint): Add argument.
9898 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9899 (update_current_target): Update.
9900 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9907 (target_remove_vfork_catchpoint): Add argument.
9908 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9909 (update_current_target): Update.
9910 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9913 2014-02-19 Tom Tromey <tromey@redhat.com>
9915 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9917 (target_insert_vfork_catchpoint): Add argument.
9918 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9919 (update_current_target): Update.
9920 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9923 2014-02-19 Tom Tromey <tromey@redhat.com>
9925 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9927 (target_remove_fork_catchpoint): Add argument.
9928 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9929 (update_current_target): Update.
9930 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9933 2014-02-19 Tom Tromey <tromey@redhat.com>
9935 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9937 (target_insert_fork_catchpoint): Add argument.
9938 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9939 (update_current_target): Update.
9940 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9943 2014-02-19 Tom Tromey <tromey@redhat.com>
9945 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9947 (target_post_startup_inferior): Add argument.
9948 * target.c (debug_to_post_startup_inferior): Add argument.
9949 (update_current_target): Update.
9950 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9952 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9954 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9956 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9958 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9960 (super_post_startup_inferior): Likewise.
9961 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9963 (super_post_startup_inferior): Likewise.
9964 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9965 Add 'self' argument.
9966 (super_post_startup_inferior): Likewise.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * target.h (struct target_ops) <to_load>: Add argument.
9971 * target.c (target_load): Add argument.
9972 (debug_to_load): Add argument.
9973 (update_current_target): Update.
9974 * remote.c (remote_load): Add 'self' argument.
9975 * remote-sim.c (gdbsim_load): Add 'self' argument.
9976 * remote-mips.c (mips_load): Add 'self' argument.
9977 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9978 * monitor.c (monitor_load): Add 'self' argument.
9979 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9983 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9984 (target_terminal_info): Add argument.
9985 * target.c (debug_to_terminal_info): Add argument.
9986 (default_terminal_info): Likewise.
9987 * inflow.c (child_terminal_info): Add 'self' argument.
9988 * inferior.h (child_terminal_info): Add 'self' argument.
9989 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9995 (target_terminal_save_ours): Add argument.
9996 * target.c (debug_to_terminal_save_ours): Add argument.
9997 (update_current_target): Update.
9998 * inflow.c (terminal_save_ours): Add 'self' argument.
9999 * inferior.h (terminal_save_ours): Add 'self' argument.
10001 2014-02-19 Tom Tromey <tromey@redhat.com>
10003 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10004 (target_terminal_ours): Add argument.
10005 * target.c (debug_to_terminal_ours): Add argument.
10006 (update_current_target): Update.
10007 * remote.c (remote_terminal_ours): Add 'self' argument.
10008 (remote_close): Update.
10009 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10010 * inflow.c (terminal_ours): Add 'self' argument.
10011 * inferior.h (terminal_ours): Add 'self' argument.
10012 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10014 2014-02-19 Pedro Alves <palves@redhat.com>
10015 Tom Tromey <tromey@redhat.com>
10017 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10019 (target_terminal_ours_for_output): Add argument.
10020 * target.c (debug_to_terminal_ours_for_output): Add argument.
10021 (update_current_target): Update.
10022 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10023 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10024 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10026 2014-02-19 Tom Tromey <tromey@redhat.com>
10028 * target.h (struct target_ops) <to_terminal_inferior>: Add
10030 * target.c (target_terminal_inferior): Add argument.
10031 (update_current_target): Update.
10032 * remote.c (remote_terminal_inferior): Add 'self' argument.
10033 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10034 * inflow.c (terminal_inferior): Add 'self' argument.
10035 * inferior.h (terminal_inferior): Add 'self' argument.
10036 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10037 (go32_terminal_inferior): Add 'self' argument.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10042 (target_terminal_init): Add argument.
10043 * target.c (debug_to_terminal_init): Add argument.
10044 (update_current_target): Update.
10045 * inflow.c (terminal_init_inferior): Add 'self' argument.
10046 * inferior.h (terminal_init_inferior): Add 'self' argument.
10047 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10048 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10050 2014-02-19 Tom Tromey <tromey@redhat.com>
10052 * target.h (struct target_ops)
10053 <to_can_accel_watchpoint_condition>: Add argument.
10054 (target_can_accel_watchpoint_condition): Add argument.
10055 * target.c (debug_to_can_accel_watchpoint_condition): Add
10057 (update_current_target): Update.
10058 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10061 2014-02-19 Tom Tromey <tromey@redhat.com>
10063 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10065 (target_region_ok_for_hw_watchpoint): Add argument.
10066 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10067 (default_region_ok_for_hw_watchpoint): Add argument.
10068 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10069 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10071 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10073 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10075 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10077 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10079 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10081 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10082 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10084 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10085 Add 'self' argument.
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10089 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10091 (target_insert_watchpoint): Add argument.
10092 * target.c (debug_to_insert_watchpoint): Add argument.
10093 (update_current_target): Update.
10094 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10095 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10096 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10097 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10098 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10099 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10101 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10102 (procfs_insert_hw_watchpoint): Add 'self' argument.
10103 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10105 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10107 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10109 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10110 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10112 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10115 2014-02-19 Tom Tromey <tromey@redhat.com>
10117 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10119 (target_remove_watchpoint): Add argument.
10120 * target.c (debug_to_remove_watchpoint): Add argument.
10121 (update_current_target): Update.
10122 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10123 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10124 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10125 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10126 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10127 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10129 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10130 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10132 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10134 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10136 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10137 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10139 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10142 2014-02-19 Tom Tromey <tromey@redhat.com>
10144 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10146 (target_remove_hw_breakpoint): Add argument.
10147 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10148 (update_current_target): Update.
10149 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10150 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10152 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10153 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10155 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10158 2014-02-19 Tom Tromey <tromey@redhat.com>
10160 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10162 (target_insert_hw_breakpoint): Add argument.
10163 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10164 (update_current_target): Update.
10165 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10166 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10168 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10169 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10170 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10172 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10175 2014-02-19 Tom Tromey <tromey@redhat.com>
10177 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10179 (target_can_use_hardware_watchpoint): Add argument.
10180 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10181 (update_current_target): Update.
10182 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10184 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10186 * remote.c (remote_check_watch_resources): Add 'self' argument.
10187 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10188 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10190 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10191 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10193 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10195 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10197 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10199 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10201 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10203 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10204 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10206 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10209 2014-02-19 Tom Tromey <tromey@redhat.com>
10211 * target.h (struct target_ops) <to_post_attach>: Add argument.
10212 (target_post_attach): Add argument.
10213 * target.c (debug_to_post_attach): Add argument.
10214 (update_current_target): Update.
10215 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10216 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10217 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10218 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10219 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10221 2014-02-19 Tom Tromey <tromey@redhat.com>
10223 * windows-nat.c (windows_close): Add 'self' argument.
10224 * tracepoint.c (tfile_close): Add 'self' argument.
10225 * target.h (struct target_ops) <to_close>: Add argument.
10226 * target.c (target_close): Add argument.
10227 (update_current_target): Update.
10228 * remote.c (remote_close): Add 'self' argument.
10229 * remote-sim.c (gdbsim_close): Add 'self' argument.
10230 * remote-mips.c (mips_close): Add 'self' argument.
10231 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10232 * record-full.c (record_full_close): Add 'self' argument.
10233 * record-btrace.c (record_btrace_close): Add 'self' argument.
10234 * monitor.h (monitor_close): Add 'self' argument.
10235 * monitor.c (monitor_close): Add 'self' argument.
10236 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10237 * linux-nat.c (linux_nat_close): Add argument.
10238 * go32-nat.c (go32_close): Add 'self' argument.
10239 * exec.c (exec_close_1): Add 'self' argument.
10240 * ctf.c (ctf_close): Add 'self' argument.
10241 * corelow.c (core_close): Add 'self' argument.
10242 (core_close_cleanup): Update.
10243 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10244 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10246 2014-02-19 Tom Tromey <tromey@redhat.com>
10248 * remote.c (remote_load): New function.
10249 (init_remote_ops): Use it.
10251 2014-02-19 Tom Tromey <tromey@redhat.com>
10253 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10255 * common/linux-btrace.h (linux_supports_btrace): Update.
10256 * remote.c (remote_supports_btrace): Add "self" argument.
10257 * target-delegates.c: Rebuild.
10258 * target.c (target_supports_btrace): Remove.
10259 * target.h (struct target_ops) <to_supports_btrace>: Add
10260 target_ops argument.
10261 (target_supports_btrace): New define.
10263 2014-02-19 Tom Tromey <tromey@redhat.com>
10265 * record-full.c (record_full_beneath_to_resume_ops)
10266 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10267 (record_full_beneath_to_wait)
10268 (record_full_beneath_to_store_registers_ops)
10269 (record_full_beneath_to_store_registers)
10270 (record_full_beneath_to_xfer_partial_ops)
10271 (record_full_beneath_to_xfer_partial)
10272 (record_full_beneath_to_insert_breakpoint_ops)
10273 (record_full_beneath_to_insert_breakpoint)
10274 (record_full_beneath_to_remove_breakpoint_ops)
10275 (record_full_beneath_to_remove_breakpoint)
10276 (record_full_beneath_to_stopped_by_watchpoint)
10277 (record_full_beneath_to_stopped_data_address)
10278 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10279 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10280 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10281 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10282 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10283 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10284 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10285 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10286 (record_full_resume, record_full_wait_1)
10287 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10288 (record_full_store_registers, record_full_xfer_partial)
10289 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10290 (record_full_async, record_full_core_xfer_partial): Use target
10292 * target-delegates.c: Rebuild.
10293 * target.c (current_xfer_partial): Remove.
10294 (update_current_target): Do not INHERIT or de_fault
10295 to_insert_breakpoint, to_remove_breakpoint,
10296 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10297 to_is_async_p, to_async. Do not set to_xfer_partial field.
10298 (default_xfer_partial): Simplify.
10299 (current_xfer_partial): Remove.
10300 (target_wait, target_resume): Simplify.
10301 (find_default_can_async_p, find_default_is_async_p): Update.
10302 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10303 to_xfer_partial, to_stopped_by_watchpoint,
10304 to_stopped_data_address.
10305 (target_store_registers): Simplify.
10306 (forward_target_remove_breakpoint)
10307 (forward_target_insert_breakpoint): Remove.
10308 (target_remove_breakpoint, target_insert_breakpoint)
10309 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10310 * target.h (struct target_ops) <to_resume, to_wait,
10311 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10312 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10313 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10315 (forward_target_remove_breakpoint)
10316 (forward_target_insert_breakpoint): Remove.
10317 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10319 (record_btrace_insert_breakpoint): Delegate directly.
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10324 * target-delegates.c: New file.
10325 * target.c: Include target-delegates.c.
10326 (init_dummy_target): Call install_dummy_methods.
10327 (complete_target_initialization): Call install_delegators.
10328 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10329 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10330 * make-target-delegates: New file.
10332 2014-02-19 Tom Tromey <tromey@redhat.com>
10334 * record.c (find_record_target): Use find_target_at.
10335 * target.c (find_target_at): New function.
10336 * target.h (find_target_at): Declare.
10338 2014-02-19 Tom Tromey <tromey@redhat.com>
10340 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10341 Add 'ops' argument.
10342 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10344 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10345 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10347 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10349 * linux-nat.c (save_sigtrap): Update.
10350 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10351 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10352 (linux_nat_close): Update.
10353 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10355 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10357 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10358 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10359 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10360 (tmp_to_async): Add 'ops' argument.
10361 (record_full_stopped_by_watchpoint, record_full_async)
10362 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10364 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10365 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10366 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10367 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10368 (remote_is_async_p, remote_async): Add 'ops' argument.
10369 (remote_stopped_data_address): Update.
10370 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10371 * target.c (update_current_target)
10372 (find_default_can_async_p, find_default_is_async_p): Update.
10373 (init_dummy_target): Update.
10374 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10375 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10376 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10377 (target_can_async_p, target_is_async_p, target_async)
10378 (target_stopped_by_watchpoint): Update.
10380 2014-02-19 Yao Qi <yao@codesourcery.com>
10383 * gdbarch.sh: Remove startup_gdbarch.
10384 * gdbarch.c: Regenerated.
10385 * gdbarch.h: Likewise.
10387 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10389 * rl78-tdep.c (rl78_g10_register_name): New function.
10390 (rl78_return_value): Add g10 support.
10391 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10394 2014-02-17 Doug Evans <xdje42@gmail.com>
10396 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10397 (SUBDIR_GUILE_SRCS): Ditto.
10398 (scm-gsmob.o): Ditto.
10400 2014-02-17 Yao Qi <yao@codesourcery.com>
10402 * gnu-nat.c (ILL_RPC): Declare defined function.
10404 2014-02-17 Yao Qi <yao@codesourcery.com>
10406 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10407 mach_msg_type_number_t.
10408 (gnu_write_inferior): Likewise.
10410 2014-02-17 Yao Qi <yao@codesourcery.com>
10412 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10414 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10415 (inf_validate_procs, inf_signal): Likewise.
10416 (S_exception_raise_request): Likewise.
10417 (do_mach_notify_dead_name): Likewise.
10418 (steal_exc_port): Likewise.
10419 (gnu_read_inferior): Change 'copy_count''s type to
10420 mach_msg_type_number_t.
10421 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10424 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10426 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10427 flag. Adjust all users; in particular...
10428 (gnu_wait): ..., don't decrement its value in here...
10429 (gnu_create_inferior): ..., and instead set the flag in here,
10430 around the startup_inferior call, and call that one with
10431 START_INFERIOR_TRAPS_EXPECTED.
10433 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10434 (ILL_RPC): ... new macro.
10435 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10436 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10437 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10438 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10439 functions with ILL_RPC macro.
10440 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10441 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10442 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10443 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10444 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10445 (S_proc_getlogin_reply, S_proc_getsid_reply)
10446 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10447 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10448 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10449 (S_proc_getnports_reply, S_proc_is_important_reply)
10450 (S_proc_get_code_reply): New stub functions, generated with
10453 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10454 collected the type check structures.
10456 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10458 2014-02-14 Doug Evans <dje@google.com>
10460 * target.c (target_write_partial): Fix result type.
10462 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10464 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10465 the proper offsets to access fpregset_t.
10467 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10469 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10470 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10471 * h8300-tdep.c (setmachinelist): Remove global.
10472 * hppa-tdep.c (hppa_sigtramp): Remove global.
10473 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10474 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10475 * ravenscar-thread.c (update_target_observer): Remove global.
10476 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10478 2014-02-12 Tom Tromey <tromey@redhat.com>
10480 * common/rsp-low.c: Update comments.
10481 * common/rsp-low.h: Update comments.
10483 2014-02-12 Tom Tromey <tromey@redhat.com>
10485 * common/rsp-low.c (convert_ascii_to_int): Remove.
10486 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10488 2014-02-12 Tom Tromey <tromey@redhat.com>
10490 * common/rsp-low.h (unhexify): Don't declare.
10491 * common/rsp-low.c (unhexify): Remove.
10493 2014-02-12 Tom Tromey <tromey@redhat.com>
10495 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10496 * common/rsp-low.c (convert_int_to_ascii): Remove.
10498 2014-02-12 Tom Tromey <tromey@redhat.com>
10500 * common/rsp-low.h (hexify): Don't declare.
10501 * common/rsp-low.c (hexify): Remove.
10503 2014-02-12 Tom Tromey <tromey@redhat.com>
10505 * common/rsp-low.c (hexify): Never take strlen of argument.
10507 2014-02-12 Tom Tromey <tromey@redhat.com>
10509 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10510 * remote.c (extended_remote_run, remote_rcmd)
10511 (remote_download_trace_state_variable, remote_save_trace_data)
10512 (remote_set_trace_notes): Update.
10513 * tracepoint.c (encode_source_string, tfile_write_status)
10514 (tfile_write_uploaded_tsv): Update.
10516 2014-02-12 Tom Tromey <tromey@redhat.com>
10518 * tracepoint.c: Include rsp-low.h.
10519 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10520 * remote.c: Include rsp-low.h.
10521 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10522 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10523 (remote_unescape_input): Move to common/rsp-low.c.
10524 * common/rsp-low.h: New file.
10525 * common/rsp-low.c: New file.
10526 * Makefile.in (SFILES): Add common/rsp-low.c.
10527 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10528 (COMMON_OBS): Add rsp-low.o.
10529 (rsp-low.o): New target.
10531 2014-02-12 Tom Tromey <tromey@redhat.com>
10533 * utils.h: Include print-utils.h.
10534 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10535 (int_string, core_addr_to_string, core_addr_to_string_nz)
10536 (hex_string, hex_string_custom): Don't declare.
10537 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10538 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10539 (hex_string_custom, int_string, core_addr_to_string)
10540 (core_addr_to_string_nz, host_address_to_string): Move to
10541 common/print-utils.c.
10542 * common/print-utils.h: New file.
10543 * common/print-utils.c: New file
10544 * Makefile.in (SFILES): Add common/print-utils.c.
10545 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10546 (COMMON_OBS): Add print-utils.o.
10547 (print-utils.o): New target.
10549 2014-02-12 Tom Tromey <tromey@redhat.com>
10551 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10553 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10555 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10557 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10559 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10560 if a PT_IO ptrace request returns sucessfully but indicates that 0
10561 bytes were transferred.
10563 2014-02-12 Pedro Alves <palves@redhat.com>
10564 Kevin Buettner <kevinb@redhat.com>
10566 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10567 TYPE_INSTANCE_FLAG_CODE_SPACE.
10569 2014-02-12 Pedro Alves <palves@redhat.com>
10571 * h8300-tdep.c (pseudo_from_raw_register)
10572 (raw_from_pseudo_register): New functions.
10573 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10576 2014-02-12 Pedro Alves <palves@redhat.com>
10578 * h8300-tdep.c (h8300_register_sim_regno): New function.
10579 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10580 gdbarch_register_sim_regno hook.
10582 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10584 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10586 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10588 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10590 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10592 * obsd-tdep.h (obsd_init_abi): New prototype.
10593 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10594 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10595 (obsd_init_abi): New functions.
10596 * i386obsd-tdep.c: Include "obsd-tdep.h".
10597 (i386obsd_init_abi): Call obsd_init_abi.
10598 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10599 (amd64obsd_init_abi): Call obsd_init_abi.
10600 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10601 obsd-tdep.c to gdb_target_obs.
10603 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10605 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10606 double float arguments to 16-byte in the argument slots.
10608 2014-02-11 Doug Evans <xdje42@gmail.com>
10610 * configure.ac: Don't crash if pkg-config is not found and guile
10611 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10613 * configure: Regenerate.
10615 2014-02-11 Yao Qi <yao@codesourcery.com>
10617 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10618 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10619 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10620 * gnu-nat.c (gnu_xfer_memory): Likewise.
10621 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10622 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10623 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10624 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10626 2014-02-11 Yao Qi <yao@codesourcery.com>
10628 * target.h (enum target_xfer_error): Rename to ...
10629 (enum target_xfer_status): ... it. New. All users updated.
10630 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10632 (TARGET_XFER_STATUS_ERROR_P): New macro.
10633 (target_xfer_error_to_string): Remove declaration.
10634 (target_xfer_status_to_string): Declare.
10635 (target_xfer_partial_ftype): Adjust it.
10636 (struct target_ops) <to_xfer_partial>: Return
10637 target_xfer_status. Add argument xfered_len. Update
10639 * target.c (target_xfer_error_to_string): Rename to ...
10640 (target_xfer_status_to_string): ... it. New. All callers
10642 (target_read_live_memory): Likewise. Call target_xfer_partial
10643 instead of target_read.
10644 (memory_xfer_live_readonly_partial): Return
10645 target_xfer_status. Add argument xfered_len.
10646 (raw_memory_xfer_partial): Likewise.
10647 (memory_xfer_partial_1): Likewise.
10648 (memory_xfer_partial): Likewise.
10649 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10650 properly. Update debug message.
10651 (default_xfer_partial, current_xfer_partial): Likewise.
10652 (target_write_partial): Likewise.
10653 (target_read_partial): Likewise. All callers updated.
10654 (read_whatever_is_readable): Likewise.
10655 (target_write_with_progress): Likewise.
10656 (target_read_alloc_1): Likewise.
10658 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10659 * auxv.c (procfs_xfer_auxv): Likewise.
10660 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10661 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10662 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10663 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10664 * corefile.c (read_memory): Adjust.
10665 * corelow.c (core_xfer_partial): Likewise.
10666 * ctf.c (ctf_xfer_partial): Likewise.
10667 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10669 (darwin_xfer_partial): Likewise.
10670 * exec.c (section_table_xfer_memory_partial): Likewise. All
10672 (exec_xfer_partial): Likewise.
10673 * exec.h (section_table_xfer_memory_partial): Update
10675 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10677 (gnu_xfer_partial): Likewise.
10678 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10679 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10680 (ia64_hpux_xfer_solib_got): Likewise.
10681 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10682 type of 'partial_len' to ULONGEST.
10683 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10684 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10685 (linux_nat_xfer_partial): Likewise.
10686 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10687 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10688 * monitor.c (monitor_xfer_memory): Likewise.
10689 (monitor_xfer_partial): Likewise.
10690 * procfs.c (procfs_xfer_partial): Likewise.
10691 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10692 * record-full.c (record_full_xfer_partial): Likewise.
10693 (record_full_core_xfer_partial): Likewise.
10694 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10695 (gdbsim_xfer_partial): Likewise.
10696 * remote.c (remote_write_bytes_aux): Likewise. All callers
10698 (remote_write_bytes, remote_read_bytes): Likewise. All
10700 (remote_flash_erase): Likewise. All callers updated.
10701 (remote_write_qxfer): Likewise. All callers updated.
10702 (remote_read_qxfer): Likewise. All callers updated.
10703 (remote_xfer_partial): Likewise.
10704 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10705 (rs6000_xfer_shared_libraries): Likewise.
10706 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10707 (sol_thread_xfer_partial): Likewise.
10708 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10709 (sparc_xfer_partial): Likewise.
10710 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10712 (spu_xfer_partial): Likewise.
10713 * spu-multiarch.c (spu_xfer_partial): Likewise.
10714 * tracepoint.c (tfile_xfer_partial): Likewise.
10715 * windows-nat.c (windows_xfer_memory): Likewise.
10716 (windows_xfer_shared_libraries): Likewise.
10717 (windows_xfer_partial): Likewise.
10718 * valprint.c: Replace 'target_xfer_error' with
10719 'target_xfer_status' in comments.
10721 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10723 Checked in by Joel Brobecker <brobecker@adacore.com>.
10724 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10726 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10728 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10729 function parameters.
10731 2014-02-10 Will Newton <will.newton@linaro.org>
10733 * elfread.c (elf_rel_plt_read): Look for a .got section if
10734 looking up .got.plt fails.
10735 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10736 on address passed to elf_gnu_ifunc_record_cache.
10737 (elf_gnu_ifunc_resolve_addr): Likewise.
10738 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10740 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10742 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10743 (X_RETTURN): New macro.
10744 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10746 * sparc64-tdep.c (sparc64_init_abi): Hook
10747 sparc_in_function_epilogue_p.
10749 2014-02-10 Gary Benson <gbenson@redhat.com>
10751 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10752 Rename name_matcher to symbol_matcher.
10754 2014-02-10 Gary Benson <gbenson@redhat.com>
10756 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10757 Use expand_symtabs_file_matcher_ftype and
10758 expand_symtabs_symbol_matcher_ftype.
10760 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10762 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10763 (struct ada_symbol_cache): New.
10764 (ada_free_symbol_cache): Forward declare.
10765 (struct ada_pspace_data): New.
10766 (ada_pspace_data_handle): New static global.
10767 (get_ada_pspace_data, ada_pspace_data_cleanup)
10768 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10769 (cache_space, cache): Delete, now folded inside struct
10771 (ada_get_symbol_cache): New function.
10772 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10774 (_initialize_ada_language): Remove initialization of cache_space.
10775 Move call to observer_attach_inferior_exit up, grouping it
10776 with the other observer registrations inside this function.
10777 Rename command to be more general. Add call to
10778 register_program_space_data_with_cleanup.
10780 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10782 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10783 ada_new_objfile_observer.
10784 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10785 (_initialize_tasks): Update uses of ada_new_objfile_observer
10786 and ada_tasks_normal_stop_observer.
10788 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10790 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10791 returned by the 'Length attribute to integer.
10793 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10795 * ada-lang.c (_initialize_ada_language): Initialize
10796 cache_space obstack.
10798 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10800 * ada-lang.c (HASH_SIZE): New macro.
10801 (struct cache_entry): New type.
10802 (cache_space, cache): New static globals.
10803 (ada_clear_symbol_cache, find_entry): New functions.
10804 (lookup_cached_symbol, cache_symbol): Implement.
10805 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10806 (_initialize_ada_language): Attach ada_new_objfile_observer
10807 and ada_free_objfile_observer.
10809 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10811 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10812 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10813 struct block * parameter.
10814 (ada_lookup_symbol_list_worker): Constify local variable "block".
10815 Remove cast which is no longer necessary.
10817 2014-02-10 Doug Evans <xdje42@gmail.com>
10819 Add Guile as an extension language.
10820 * NEWS: Mention Guile scripting.
10821 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10822 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10823 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10824 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10825 (CLIBS): Add GUILE_LIBS.
10826 (install-guile): New rule.
10827 (guile.o): New rule.
10828 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10829 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10830 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10831 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10832 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10833 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10834 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10835 * configure.ac: New option --with-guile.
10836 * configure: Regenerate.
10837 * config.in: Regenerate.
10838 * auto-load.c: Remove #include "python/python.h". Add #include
10839 "gdb/section-scripts.h".
10840 (source_section_scripts): Handle Guile scripts.
10841 (_initialize_auto_load): Add name of Guile objfile script to
10842 scripts-directory help text.
10843 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10844 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10845 (struct breakpoint): New member scm_bp_object.
10846 * defs.h (enum command_control_type): New value guile_control.
10847 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10849 (show_user): Update comment.
10850 (_initialize_cli_cmds): Update help text for "show user". Update help
10851 text for max-user-call-depth.
10852 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10854 (multi_line_command_p): Add guile_control.
10855 (print_command_lines): Handle guile_control.
10856 (execute_control_command, recurse_read_control_structure): Ditto.
10857 (process_next_line): Recognize "guile" commands.
10858 * disasm.c (gdb_disassemble_info): Make non-static.
10859 * disasm.h: #include "dis-asm.h".
10860 (struct gdbarch): Add forward decl.
10861 (gdb_disassemble_info): Declare.
10862 * extension.c: #include "guile/guile.h".
10863 (extension_languages): Add guile.
10864 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10865 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10866 * gdbtypes.c (get_unsigned_type_max): New function.
10867 (get_signed_type_minmax): New function.
10868 * gdbtypes.h (get_unsigned_type_max): Declare.
10869 (get_signed_type_minmax): Declare.
10870 * guile/README: New file.
10871 * guile/guile-internal.h: New file.
10872 * guile/guile.c: New file.
10873 * guile/guile.h: New file.
10874 * guile/scm-arch.c: New file.
10875 * guile/scm-auto-load.c: New file.
10876 * guile/scm-block.c: New file.
10877 * guile/scm-breakpoint.c: New file.
10878 * guile/scm-disasm.c: New file.
10879 * guile/scm-exception.c: New file.
10880 * guile/scm-frame.c: New file.
10881 * guile/scm-gsmob.c: New file.
10882 * guile/scm-iterator.c: New file.
10883 * guile/scm-lazy-string.c: New file.
10884 * guile/scm-math.c: New file.
10885 * guile/scm-objfile.c: New file.
10886 * guile/scm-ports.c: New file.
10887 * guile/scm-pretty-print.c: New file.
10888 * guile/scm-safe-call.c: New file.
10889 * guile/scm-string.c: New file.
10890 * guile/scm-symbol.c: New file.
10891 * guile/scm-symtab.c: New file.
10892 * guile/scm-type.c: New file.
10893 * guile/scm-utils.c: New file.
10894 * guile/scm-value.c: New file.
10895 * guile/lib/gdb.scm: New file.
10896 * guile/lib/gdb/boot.scm: New file.
10897 * guile/lib/gdb/experimental.scm: New file.
10898 * guile/lib/gdb/init.scm: New file.
10899 * guile/lib/gdb/iterator.scm: New file.
10900 * guile/lib/gdb/printing.scm: New file.
10901 * guile/lib/gdb/types.scm: New file.
10902 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10903 (VPATH): Add $(GUILE_SRCDIR).
10904 (GUILE_DIR): New variable.
10905 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10906 (all): Add stamp-guile dependency.
10907 (stamp-guile): New rule.
10908 (clean-guile, install-guile, uninstall-guile): New rules.
10909 (install-only): Add install-guile dependency.
10910 (uninstall): Add uninstall-guile dependency.
10911 (clean): Add clean-guile dependency.
10913 2014-02-09 Doug Evans <xdje42@gmail.com>
10915 Revert this patch (which I approved, mea culpa).
10917 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10919 * Makefile.in (all-lib): Remove.
10920 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10922 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10924 Fix Python stack corruption.
10925 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10928 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10930 * Makefile.in (all-lib): Remove.
10931 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10933 2014-02-07 Doug Evans <dje@google.com>
10935 * extension-priv.h (extension_language_script_ops): Add comment.
10936 (extension_language_ops): Add comment.
10937 (active_ext_lang_state): Fix typo in comment.
10939 2014-02-07 Pedro Alves <palves@redhat.com>
10941 PR breakpoints/16292
10942 * infrun.c (handle_signal_stop) <signal arrives while stepping
10943 over a breakpoint>: Switch back to the stepping thread.
10945 2014-02-07 Yao Qi <yao@codesourcery.com>
10947 * target.c (target_xfer_partial): Return zero if LEN is zero.
10949 2014-02-07 Yao Qi <yao@codesourcery.com>
10951 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10952 (ld_so_xfer_auxv): Likewise.
10953 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10954 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10955 * corelow.c (core_xfer_partial): Likewise.
10956 * ctf.c (ctf_xfer_partial): Likewise.
10957 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10958 (darwin_xfer_partial): Likewise.
10959 * exec.c (exec_xfer_partial): Likewise.
10960 * gnu-nat.c (gnu_xfer_partial): Likewise.
10961 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10962 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10963 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10964 * linux-nat.c (linux_xfer_siginfo): Likewise.
10965 (linux_proc_xfer_spu): Likewise.
10966 * procfs.c (procfs_xfer_partial): Likewise.
10967 * record-full.c (record_full_xfer_partial): Likewise.
10968 (record_full_core_xfer_partial): Likewise.
10969 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10970 * remote.c (remote_write_qxfer): Likewise.
10971 (remote_write_qxfer, remote_read_qxfer): Likewise.
10972 (remote_xfer_partial): Likewise.
10973 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10974 (rs6000_xfer_shared_libraries): Likewise.
10975 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10976 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10977 (spu_xfer_partial): Likewise.
10978 * target.c (memory_xfer_partial_1): Likewise.
10979 * tracepoint.c (tfile_xfer_partial): Likewise.
10980 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10981 (windows_xfer_partial): Likewise.
10983 2014-02-07 Yao Qi <yao@codesourcery.com>
10985 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10987 (core_xfer_shared_libraries_aix): Likewise.
10988 * gdbarch.c, gdbarch.h: Regenerated.
10989 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10990 ULONGEST. Change 'len_avail' type to ULONGEST.
10991 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10992 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10994 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10996 2014-02-07 Yao Qi <yao@codesourcery.com>
10998 * corefile.c (memory_error): Get 'exception' from ERR and pass
10999 'exception' to throw_error.
11001 2014-02-06 Doug Evans <xdje42@gmail.com>
11003 * configure.ac (libpython checking): Remove all but python.o from
11004 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11005 * configure: Regenerate.
11007 * Makefile.in (SFILES): Add extension.c.
11008 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11009 (COMMON_OBS): Add extension.o.
11010 * extension.h: New file.
11011 * extension-priv.h: New file.
11012 * extension.c: New file.
11014 * python/python-internal.h: #include "extension.h".
11015 (gdbpy_auto_load_enabled): Declare.
11016 (gdbpy_apply_val_pretty_printer): Declare.
11017 (gdbpy_apply_frame_filter): Declare.
11018 (gdbpy_preserve_values): Declare.
11019 (gdbpy_breakpoint_cond_says_stop): Declare.
11020 (gdbpy_breakpoint_has_cond): Declare.
11021 (void source_python_script_for_objfile): Delete.
11022 * python/python.c: #include "extension-priv.h".
11023 Delete inclusion of "observer.h".
11024 (extension_language_python): Moved here and renamed from
11025 script_language_python in py-auto-load.c.
11026 Redefined to be of type extension_language_defn.
11027 (python_extension_script_ops): New global.
11028 (python_extension_ops): New global.
11029 (struct python_env): New member previous_active.
11030 (restore_python_env): Call restore_active_ext_lang.
11031 (ensure_python_env): Call set_active_ext_lang.
11032 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11034 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11036 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11038 (gdbpy_eval_from_control_command): Renamed from
11039 eval_python_from_control_command, made static. New arg extlang.
11040 (gdbpy_source_script) Renamed from source_python_script, made static.
11042 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11043 result to int. New arg extlang.
11044 (gdbpy_source_objfile_script): Renamed from
11045 source_python_script_for_objfile, made static. New arg extlang.
11046 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11047 static. New args extlang, extlang_printers. Change result type to
11049 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11050 static. New arg extlang. Rename arg printers to extlang_printers
11051 and change type to ext_lang_type_printers *.
11052 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11053 static. Replace argument arg with extlang, extlang_printers.
11054 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11055 (!HAVE_PYTHON, source_python_script): Delete.
11056 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11057 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11058 (!HAVE_PYTHON, start_type_printers): Delete.
11059 (!HAVE_PYTHON, apply_type_printers): Delete.
11060 (!HAVE_PYTHON, free_type_printers): Delete.
11061 (_initialize_python): Delete call to observer_attach_before_prompt.
11062 (finalize_python): Set/restore active extension language.
11063 (gdbpy_finish_initialization) Renamed from
11064 finish_python_initialization, made static. New arg extlang.
11065 (gdbpy_initialized): New function.
11066 * python/python.h: #include "extension.h". Delete #include
11067 "value.h", "mi/mi-cmds.h".
11068 (extension_language_python): Declare.
11069 (GDBPY_AUTO_FILE_NAME): Delete.
11070 (enum py_bt_status): Moved to extension.h and renamed to
11071 ext_lang_bt_status.
11072 (enum frame_filter_flags): Moved to extension.h.
11073 (enum py_frame_args): Moved to extension.h and renamed to
11074 ext_lang_frame_args.
11075 (finish_python_initialization): Delete.
11076 (eval_python_from_control_command): Delete.
11077 (source_python_script): Delete.
11078 (apply_val_pretty_printer): Delete.
11079 (apply_frame_filter): Delete.
11080 (preserve_python_values): Delete.
11081 (gdbpy_script_language_defn): Delete.
11082 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11083 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11085 * auto-load.c: #include "extension.h".
11086 (GDB_AUTO_FILE_NAME): Delete.
11087 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11088 (script_language_gdb): Delete, moved to extension.c and renamed to
11089 extension_language_gdb.
11090 (source_gdb_script_for_objfile): Delete.
11091 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11092 (loaded_script): Change type of language member to
11093 struct extension_language_defn *.
11094 (init_loaded_scripts_info): Initialize
11095 unsupported_script_warning_printed.
11096 (maybe_add_script): Make static. Change type of language arg to
11097 struct extension_language_defn *.
11098 (clear_section_scripts): Reset unsupported_script_warning_printed.
11099 (auto_load_objfile_script_1): Rewrite to use extension language API.
11100 (auto_load_objfile_script): Make public. Remove support-compiled-in
11101 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11102 (source_section_scripts): Rewrite to use extension language API.
11103 (load_auto_scripts_for_objfile): Rewrite to use
11104 auto_load_scripts_for_objfile.
11105 (collect_matching_scripts_data): Change type of language member to
11106 struct extension_language_defn *.
11107 (auto_load_info_scripts): Change type of language arg to
11108 struct extension_language_defn *.
11109 (unsupported_script_warning_print): New function.
11110 (script_not_found_warning_print): Make static.
11111 (_initialize_auto_load): Rewrite construction of scripts-directory
11113 * auto-load.h (struct objfile): Add forward decl.
11114 (struct script_language): Delete.
11115 (struct auto_load_pspace_info): Add forward decl.
11116 (struct extension_language_defn): Add forward decl.
11117 (maybe_add_script): Delete.
11118 (auto_load_objfile_script): Declare.
11119 (script_not_found_warning_print): Delete.
11120 (auto_load_info_scripts): Update prototype.
11121 (auto_load_gdb_scripts_enabled): Declare.
11122 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11123 auto_load_python_scripts_enabled and made public.
11124 (script_language_python): Delete, moved to python.c.
11125 (gdbpy_script_language_defn): Delete.
11126 (info_auto_load_python_scripts): Update to use
11127 extension_language_python.
11129 * breakpoint.c (condition_command): Replace call to
11130 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11131 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11132 with call to breakpoint_ext_lang_cond_says_stop.
11133 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11134 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11135 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11136 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11138 (local_setattro): Print name of extension language with existing
11141 * valprint.c (val_print, value_print): Update to call
11142 apply_ext_lang_val_pretty_printer.
11143 * cp-valprint.c (cp_print_value): Update call to
11144 apply_ext_lang_val_pretty_printer.
11145 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11146 (gdbpy_apply_val_pretty_printer): Renamed from
11147 apply_val_pretty_printer. New arg extlang.
11148 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11150 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11151 extension language API.
11152 * cli/cli-script.c (execute_control_command): Update to call
11153 eval_ext_lang_from_control_command.
11155 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11156 enum ext_lang_bt_status values. Update call to
11157 apply_ext_lang_frame_filter.
11158 (mi_cmd_stack_list_locals): Ditto.
11159 (mi_cmd_stack_list_args): Ditto.
11160 (mi_cmd_stack_list_variables): Ditto.
11161 * mi/mi-main.c: Delete #include "python/python-internal.h".
11162 Add #include "extension.h".
11163 (mi_cmd_list_features): Replace reference to python internal variable
11164 gdb_python_initialized with call to ext_lang_initialized_p.
11166 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11167 Update to use enum ext_lang_frame_args. Update to call
11168 apply_ext_lang_frame_filter.
11169 * python/py-framefilter.c (extract_sym): Update to use enum
11170 ext_lang_bt_status.
11171 (extract_value, py_print_type, py_print_value): Ditto.
11172 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11173 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11174 (py_print_frame): Ditto.
11175 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11176 New arg extlang. Update to use enum ext_lang_bt_status.
11178 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11179 finish_python_initialization. Replace with call to
11180 finish_ext_lang_initialization.
11182 * typeprint.c (do_free_global_table): Update to call
11183 free_ext_lang_type_printers.
11184 (create_global_typedef_table): Update to call
11185 start_ext_lang_type_printers.
11186 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11187 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11188 (type_print_options): Change type of global_printers from "void *"
11189 to "struct ext_lang_type_printers *".
11191 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11192 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11193 (gdbpy_preserve_values): Renamed from preserve_python_values.
11195 (!HAVE_PYTHON, preserve_python_values): Delete.
11197 * utils.c (quit_flag): Delete, moved to extension.c.
11198 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11201 * eval.c: Delete #include "python/python.h".
11202 * main.c: Delete #include "python/python.h".
11204 * defs.h: Update comment.
11206 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11210 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11212 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11215 2014-02-05 Yao Qi <yao@codesourcery.com>
11217 * remote.c (remote_pass_signals): Remove local 'buf' and use
11219 (remote_program_signals): Likewise.
11221 2014-02-05 Yao Qi <yao@codesourcery.com>
11223 * ctf.c: Include "inferior.h" and "gdbthread.h".
11224 (CTF_PID): A new macro.
11225 (ctf_open): Call inferior_appeared and add_thread_silent.
11226 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11227 (ctf_thread_alive): New function.
11228 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11230 2014-02-05 Yao Qi <yao@codesourcery.com>
11234 2013-05-24 Yao Qi <yao@codesourcery.com>
11236 * tracepoint.c (TFILE_PID): Remove.
11237 (tfile_open): Don't add thread and inferior.
11238 (tfile_close): Don't set 'inferior_ptid'. Don't call
11239 exit_inferior_silent.
11240 (tfile_thread_alive): Remove.
11241 (init_tfile_ops): Don't set field 'to_thread_alive' of
11244 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11246 * remote.c (remote_start_remote): Call remote_check_symbols even
11247 if only symbol-file (not file) has been given.
11249 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11251 * gdbarch.sh (skip_entrypoint): New callback.
11252 * gdbarch.c, gdbarch.h: Regenerate.
11253 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11254 * infrun.c (fill_in_stop_func): Likewise.
11255 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11256 (ppc_elfv2_elf_make_msymbol_special): New function.
11257 (ppc_elfv2_skip_entrypoint): Likewise.
11258 (ppc_linux_init_abi): Install them for ELFv2.
11260 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11262 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11263 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11264 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11265 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11266 structures returned in GPRs.
11268 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11270 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11271 offset to the stack parameter list for the ELFv2 ABI.
11273 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11275 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11276 set_gdbarch_convert_from_func_ptr_addr and
11277 set_gdbarch_elf_make_msymbol_special for ELFv1.
11278 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11279 function descriptors on ELFv1.
11280 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11281 set up r12 at function entry.
11283 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11285 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11286 (struct gdbarch_tdep): New member elf_abi.
11288 * rs6000-tdep.c: Include "elf/ppc64.h".
11289 (rs6000_gdbarch_init): Detect ELF ABI version.
11291 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11293 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11294 within a register pair holding a DFP 128-bit value on little-endian.
11295 (ppc64_sysv_abi_return_value_base): Likewise.
11296 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11297 (dfp_pseudo_register_write): Likewise.
11299 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11301 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11302 offset on little-endian when passing _Decimal32.
11303 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11305 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11307 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11308 of the overlapped FP register within the VSX register on little-
11310 (efpr_pseudo_register_write): Likewise.
11312 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11314 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11315 offset on little-endian when passing small structures.
11317 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11319 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11320 (struct ppc64_sysv_argpos): New data structure.
11321 (ppc64_sysv_abi_push_float): Remove.
11322 (ppc64_sysv_abi_push_val): New function.
11323 (ppc64_sysv_abi_push_integer): Likewise.
11324 (ppc64_sysv_abi_push_freg): Likewise.
11325 (ppc64_sysv_abi_push_vreg): Likewise.
11326 (ppc64_sysv_abi_push_param): Likewise.
11327 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11328 (ppc64_sysv_abi_return_value_base): New function.
11329 (ppc64_sysv_abi_return_value): Refactor to use it.
11331 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11333 * NEWS: Document new target powerpc64le-*-linux*.
11335 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11337 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11338 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11340 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11341 register set used in ELF core dumps. Add floating-point register set.
11343 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11345 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11346 dwarf2_to_gdb[] table using symbolic constants. Adjust
11347 penultimate entry from number representing the PC register
11348 to symbolic constant representing the MDR register. Add
11349 constant for the PC register to the end of the table.
11351 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11353 * bsd-kvm.c: Include <sys/param.h>
11355 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11357 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11359 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11361 * ada-lang.h (clear_ada_sym_cache): Delete.
11363 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11365 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11367 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11369 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11370 the sigreturn register save area only if the syscall is
11373 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11375 * valops.c (value_slice): Minor reformatting.
11377 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11379 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11381 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11383 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11384 New static globals.
11385 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11386 (ada_ignore_descriptive_types_p): New static global.
11387 (find_parallel_type_by_descriptive_type): Return immediately
11388 if ada_ignore_descriptive_types_p is set.
11389 (_initialize_ada_language): Register new commands "maintenance
11390 set ada", "maintenance show ada", "maintenance set ada
11391 ignore-descriptive-types" and "maintenance show ada
11392 ignore-descriptive-types".
11393 * NEWS: Add entry for new "maint ada set/show
11394 ignore-descriptive-types" commands.
11396 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11398 * record-btrace.c (record_btrace_close): Call btrace_teardown
11401 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11403 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11406 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11408 * ada-typeprint (type_is_full_subrange_of_target_type):
11410 (print_range): Add parameter bounds_prefered_p. If not set,
11411 try printing range types using the name of their base type.
11412 (print_range_type): Add parameter bounds_prefered_p.
11413 Use it in call to print_range.
11414 (print_array_type, ada_print_type): Update calls to print_range
11415 and print_range_type.
11417 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11419 * ada-typeprint.c (print_array_type, print_choices, print_range)
11420 (print_range_bound, print_dynamic_range_bound, print_range_type):
11421 Remove declaration.
11423 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11425 * ada-typeprint.c (print_range): Add missing empty line
11426 after local declaration.
11428 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11430 * ada-valprint.c (print_optional_low_bound): Get index_type's
11431 target type for as long as it is a TYPE_CODE_RANGE.
11433 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11435 * procfs.c (procfs_make_note_section): Remove assertion and
11436 associated comment.
11438 2014-01-24 Yao Qi <yao@codesourcery.com>
11440 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11441 * corelow.c (get_core_siginfo): Likewise.
11443 2014-01-24 Yao Qi <yao@codesourcery.com>
11445 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11446 ULONGEST. Don't check 'len' is negative.
11447 (remote_write_bytes): Change type of 'len' to ULONGEST.
11449 2014-01-23 Tom Tromey <tromey@redhat.com>
11452 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11453 Handle exception from frame.block.
11454 (FrameVars.fetch_frame_locals): Likewise.
11456 2014-01-23 Tom Tromey <tromey@redhat.com>
11459 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11460 on a NULL pointer. Move "goto error" to correct place.
11462 2014-01-23 Tom Tromey <tromey@redhat.com>
11465 * python/py-framefilter.c (apply_frame_filter): Call
11466 ensure_python_env after computing gdbarch.
11468 2014-01-23 Yao Qi <yao@codesourcery.com>
11470 * target.c (raw_memory_xfer_partial): Change argument type
11471 from void * to gdb_byte *.
11472 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11474 2014-01-22 Doug Evans <dje@google.com>
11476 New gdbserver option --debug-format=timestamp.
11477 * NEWS: Mention it.
11479 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11481 * syscalls/s390x-linux.xml: New file.
11482 * syscalls/s390-linux.xml: New file.
11483 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11484 (XML_SYSCALL_FILENAME_S390X): Likewise.
11485 (op_svc): New enum value for SVC opcode.
11486 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11487 (s390_linux_get_syscall_number): New function.
11488 (s390_gdbarch_init): Register '*get_syscall_number' and the
11489 syscall xml file name.
11490 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11491 "s390-linux.xml" and "s390x-linux.xml".
11492 * NEWS: Announce new feature.
11494 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11496 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11498 2014-01-22 Pedro Alves <palves@redhat.com>
11500 * xtensa-config.c: Include defs.h.
11502 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11504 * common/common-utils.h: Add "ARI:" comment beside __func__
11507 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11509 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11510 documentation a bit.
11512 2014-01-21 Roland McGrath <mcgrathr@google.com>
11514 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11515 * configure: Regenerate.
11516 * aclocal.m4: Regenerate.
11517 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11518 New substituted variables.
11519 (install-strip): New target.
11520 (INSTALL_SCRIPT): New substituted variable.
11521 (FLAGS_TO_PASS): Add it.
11522 (install-only): Use $(INSTALL_SCRIPT) rather than
11523 $(INSTALL_PROGRAM) for gcore.
11525 2014-01-20 Tom Tromey <tromey@redhat.com>
11527 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11530 2014-01-20 Tom Tromey <tromey@redhat.com>
11532 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11533 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11534 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11535 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11536 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11537 (struct cmd_list_element) <flags>: Remove.
11538 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11539 doc_allocated>: New fields.
11540 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11542 * maint.c (maintenance_do_deprecate): Update.
11543 * top.c (execute_command): Update.
11545 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11547 * xtensa-linux-nat.c: Include asm/ptrace.h.
11549 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11551 * Makefile.in (SFILES): Add d-support.c.
11552 (COMMON_OBS): Add d-support.o.
11553 * d-lang.h (d_parse_symbol): Add comment, now defined in
11555 * d-lang.c (parse_call_convention)
11556 (parse_attributes, parse_function_types)
11557 (parse_function_args, parse_type, parse_identifier)
11558 (call_convention_p, d_parse_symbol): Move functions to ...
11559 * d-support.c: ... New file.
11561 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11563 * d-lang.h (d_parse_symbol): Add declaration.
11564 * d-lang.c (extract_identifiers)
11565 (extract_type_info): Remove functions.
11566 (parse_call_convention, parse_attributes)
11567 (parse_function_types, parse_function_args)
11568 (parse_type, parse_identifier, call_convention_p)
11569 (d_parse_symbol): New functions.
11570 (d_demangle): Use d_parse_symbol to demangle D symbols.
11572 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11574 * d-lang.h (struct builtin_d_type): New data type.
11575 (builtin_d_type): Add declaration.
11576 * d-lang.c (d_language_arch_info, build_d_types)
11577 (builtin_d_type): New functions.
11578 (enum d_primitive_types): New data type.
11579 (d_language_defn): Change c_language_arch_info to
11580 d_language_arch_info.
11581 (d_type_data): New static variable.
11582 (_initialize_d_language): Initialize d_type_data.
11584 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11586 * d-lang.h (d_main_name): Add declaration.
11587 * d-lang.c (d_main_name): New function.
11588 * symtab.c (find_main_name): Add call to d_main_name.
11590 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11592 * d-lang.c (d_language_defn): Change macro_expansion_c to
11593 macro_expansion_no.
11595 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11597 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11599 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11601 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11602 gdb_exception" declaration.
11603 * remote.c (getpkt_or_notif_sane): Likewise.
11605 2014-01-17 Doug Evans <dje@google.com>
11607 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11608 function, contents of dirnames_to_char_ptr_vec_append moved here.
11609 (delim_string_to_char_ptr_vec): New function.
11610 (dirnames_to_char_ptr_vec_append): Rewrite.
11611 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11613 2014-01-17 Doug Evans <dje@google.com>
11615 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11617 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11618 #include "common-utils.h".
11619 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11620 * common/vec.h (VEC_ASSERT_PASS): Update.
11621 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11622 (MACH_CHECK_ERROR): Update.
11624 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11626 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11628 * gdbarch.h: Regenerate.
11630 2014-01-16 Tom Tromey <tromey@redhat.com>
11632 * value.c (struct value) <regnum>: Move earlier.
11634 2014-01-16 Tom Tromey <tromey@redhat.com>
11636 * remote.c (extended_remote_create_inferior): Rename from
11637 extended_remote_create_inferior_1. Add "ops" argument. Remove
11638 old implementation.
11640 2014-01-16 Pedro Alves <palves@redhat.com>
11642 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11643 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11646 2014-01-16 Doug Evans <dje@google.com>
11648 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11652 * btrace.h (btrace_thread_flag): New.
11653 (struct btrace_thread_info) <flags>: New.
11654 * record-btrace.c (record_btrace_resume_thread)
11655 (record_btrace_find_thread_to_move, btrace_step_no_history)
11656 (btrace_step_stopped, record_btrace_start_replaying)
11657 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11658 (record_btrace_find_resume_thread): New.
11659 (record_btrace_resume, record_btrace_wait): Extend.
11660 (record_btrace_can_execute_reverse): New.
11661 (record_btrace_open): Fail in non-stop mode.
11662 (record_btrace_set_replay): Split into this, ...
11663 (record_btrace_stop_replaying): ... this, ...
11664 (record_btrace_clear_histories): ... and this.
11665 (init_record_btrace_ops): Init to_can_execute_reverse.
11666 * NEWS: Announce it.
11668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11670 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11671 (forward_target_decr_pc_after_break)
11672 (target_decr_pc_after_break): New.
11673 * target.c (forward_target_decr_pc_after_break)
11674 (target_decr_pc_after_break): New.
11675 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11676 instead of gdbarch_decr_pc_after_break.
11677 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11678 instead of gdbarch_decr_pc_after_break.
11679 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11680 instead of gdbarch_decr_pc_after_break.
11681 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11682 instead of gdbarch_decr_pc_after_break.
11683 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11684 instead of gdbarch_decr_pc_after_break.
11685 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11686 instead of gdbarch_decr_pc_after_break.
11688 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11690 * btrace.c: Include regcache.h.
11691 (btrace_add_pc): New.
11692 (btrace_enable): Call btrace_add_pc.
11693 (btrace_is_empty): New.
11694 * btrace.h (btrace_is_empty): New.
11695 * record-btrace.c (require_btrace, record_btrace_info): Call
11698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11700 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11701 Support delta reads.
11702 (linux_disable_btrace): Change return type.
11703 * common/linux-btrace.h (linux_read_btrace): Change parameters
11704 and return type to allow error reporting. Update users.
11705 (linux_disable_btrace): Change return type. Update users.
11706 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11708 (btrace_error): New.
11709 (btrace_block) <begin>: Comment on BEGIN == 0.
11710 * btrace.c (btrace_compute_ftrace): Start from the end of
11712 (btrace_stitch_trace, btrace_clear_history): New.
11713 (btrace_fetch): Read delta trace, return if replaying.
11714 (btrace_clear): Move clear history code to btrace_clear_history.
11715 (parse_xml_btrace): Throw an error if parsing failed.
11716 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11717 and return type to allow error reporting.
11718 (target_read_btrace): Change parameters and return type to allow
11720 * target.c (target_read_btrace): Update.
11721 * remote.c (remote_read_btrace): Support delta reads. Pass
11723 * NEWS: Announce it.
11725 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11727 * record.h (record_btrace_frame_unwind)
11728 (record_btrace_tailcall_frame_unwind): New declarations.
11729 * dwarf2-frame: Include record.h
11730 (dwarf2_frame_cfa): Throw an error for btrace frames.
11731 * record-btrace.c: Include hashtab.h.
11732 (btrace_get_bfun_name): New.
11733 (btrace_call_history): Call btrace_get_bfun_name.
11734 (struct btrace_frame_cache): New.
11736 (bfcache_hash, bfcache_eq, bfcache_new): New.
11737 (btrace_get_frame_function): New.
11738 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11739 (record_btrace_frame_this_id): Compute own id.
11740 (record_btrace_frame_prev_register): Provide PC, throw_error
11741 for all other registers.
11742 (record_btrace_frame_sniffer): Detect btrace frames.
11743 (record_btrace_tailcall_frame_sniffer): New.
11744 (record_btrace_frame_dealloc_cache): New.
11745 (record_btrace_frame_unwind): Add new functions.
11746 (record_btrace_tailcall_frame_unwind): New.
11747 (_initialize_record_btrace): Allocate cache.
11748 * btrace.c (btrace_clear): Call reinit_frame_cache.
11749 * NEWS: Announce it.
11751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11753 * record-btrace.c (record_btrace_set_replay)
11754 (record_btrace_goto_begin, record_btrace_goto_end)
11755 (record_btrace_goto): New.
11756 (init_record_btrace_ops): Initialize them.
11757 * NEWS: Announce it.
11759 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11761 * record-btrace.c (record_btrace_find_new_threads)
11762 (record_btrace_thread_alive): New.
11763 (init_record_btrace_ops): Initialize to_find_new_threads and
11766 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11768 * record-btrace.c (record_btrace_resume): New.
11769 (record_btrace_wait): New.
11770 (init_record_btrace_ops): Initialize to_wait and to_resume.
11772 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11774 * record-btrace.c (record_btrace_xfer_partial)
11775 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11776 (record_btrace_allow_memory_access): New.
11777 (init_record_btrace_ops): Initialize new methods.
11778 * target.c (raw_memory_xfer_partial): Bail out if target reports
11779 that this memory is not available.
11781 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11783 * target.h (target_ops) <to_insert_breakpoint>
11784 <to_remove_breakpoint>: Add target_ops parameter.
11785 (forward_target_insert_breakpoint): New.
11786 (forward_target_remove_breakpoint): New.
11787 (memory_remove_breakpoint, memory_insert_breakpoint):
11788 Add target_ops parameter.
11789 * target.c (target_insert_breakpoint): Split into this and ...
11790 (forward_target_insert_breakpoint): ... this.
11791 (target_remove_breakpoint): Split into this and ...
11792 (forward_target_remove_breakpoint): ... this.
11793 (debug_to_insert_breakpoint): Add target_ops parameter.
11794 Call forward_target_insert_breakpoint.
11795 (debug_to_remove_breakpoint): Add target_ops parameter.
11796 Call forward_target_remove_breakpoint.
11797 (update_current_target): Do not inherit or default to_insert_breakpoint
11798 and to_remove_breakpoint.
11799 * corelow.c (ignore): Add target_ops parameter.
11800 * exec.c (ignore): Add target_ops parameter.
11801 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11802 Add target_ops parameter.
11803 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11804 Add target_ops parameter.
11805 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11806 Add target_ops parameter.
11807 * record-full.c (record_full_beneath_to_insert_breakpoint)
11808 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11809 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11810 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11811 (record_full_core_remove_breakpoint): Add target_ops parameter.
11813 (record_full_beneath_to_insert_breakpoint_ops)
11814 (record_full_beneath_to_remove_breakpoint_ops)
11815 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11816 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11817 tmp_to_remove_breakpoint_ops,
11818 record_full_beneath_to_insert_breakpoint_ops, and
11819 record_full_beneath_to_remove_breakpoint_ops.
11820 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11821 (m32r_remove_breakpoint): Add target_ops parameter.
11822 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11823 Add target_ops parameter.
11824 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11825 Add target_ops parameter.
11827 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11828 Markus Metzger <markus.t.metzger@intel.com>
11830 * record-btrace.c: Include frame-unwind.h.
11831 (record_btrace_frame_unwind_stop_reason)
11832 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11833 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11835 (init_record_btrace_ops): Install it.
11837 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11839 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11842 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11844 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11847 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11849 * frame-unwind.c: Include target.h.
11850 (frame_unwind_try_unwinder): New function with code from ...
11851 (frame_unwind_find_by_frame): ... here. New variable
11852 unwinder_from_target, call also target_get_unwinder)
11853 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11854 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11855 * target.h (struct target_ops): New fields to_get_unwinder and
11856 to_get_tailcall_unwinder.
11857 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11859 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11861 * record-btrace.c (record_btrace_fetch_registers)
11862 (record_btrace_store_registers)
11863 (record_btrace_to_prepare_to_store): New.
11864 (init_record_btrace_ops): Add the above.
11866 2014-01-16 Tom Tromey <tromey@redhat.com>
11868 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11869 * target.h (struct target_ops) <to_prepare_to_store>: Add
11871 (target_prepare_to_store): Add argument.
11872 * target.c (debug_to_prepare_to_store): Add argument.
11873 (update_current_target): Update.
11874 * remote.c (remote_prepare_to_store): Add 'self' argument.
11875 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11876 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11877 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11878 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11880 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11881 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11882 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11883 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11884 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11886 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11888 * btrace.h (replay) <replay>: New.
11889 (btrace_is_replaying): New.
11890 * btrace.c (btrace_clear): Free replay iterator.
11891 (btrace_is_replaying): New.
11892 * record-btrace.c (record_btrace_is_replaying): New.
11893 (record_btrace_info): Print insn number if replaying.
11894 (record_btrace_insn_history): Start at replay position.
11895 (record_btrace_call_history): Start at replay position.
11896 (init_record_btrace_ops): Init to_record_is_replaying.
11898 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11900 * record-btrace.c (record_btrace_insn_history_range): Include
11902 (record_btrace_insn_history_from): Adjust range.
11903 (record_btrace_call_history_range): Include
11905 (record_btrace_call_history_from): Adjust range.
11906 * NEWS: Announce changes.
11908 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11910 * record.h (enum record_print_flag)
11911 <record_print_indent_calls>: New.
11912 * record.c (get_call_history_modifiers): Recognize /c modifier.
11913 (_initialize_record): Document /c modifier.
11914 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11915 Reorder fields. Optionally indent the function name. Update
11917 * NEWS: Announce changes.
11919 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11921 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11923 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11925 * btrace.c (ftrace_new_function): Start counting at one.
11926 * record-btrace.c (record_btrace_info): Adjust number of calls
11928 * NEWS: Announce it.
11930 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11932 * record-btrace.c (btrace_call_history_insn_range): Print
11933 insn range as [begin, end].
11935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11937 * btrace.h (struct btrace_func_link): New.
11938 (enum btrace_function_flag): New.
11939 (struct btrace_inst): Rename to ...
11940 (struct btrace_insn): ...this. Update all users.
11941 (struct btrace_func) <ibegin, iend>: Remove.
11942 (struct btrace_func_link): New.
11943 (struct btrace_func): Rename to ...
11944 (struct btrace_function): ...this. Update all users.
11945 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11946 (number, level, flags>: New.
11947 (struct btrace_insn_iterator): Rename to ...
11948 (struct btrace_insn_history): ...this.
11950 (struct btrace_insn_iterator, btrace_call_iterator): New.
11951 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11952 (struct btrace_target_info) <begin, end, level>
11953 <insn_history, call_history>: New.
11954 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11955 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11956 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11957 (btrace_call_number, btrace_call_begin, btrace_call_end)
11958 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11959 (btrace_find_function_by_number, btrace_set_insn_history)
11960 (btrace_set_call_history): New.
11961 * btrace.c (btrace_init_insn_iterator)
11962 (btrace_init_func_iterator, compute_itrace): Remove.
11963 (ftrace_print_function_name, ftrace_print_filename)
11964 (ftrace_skip_file): Change
11965 parameter to const.
11966 (ftrace_init_func): Remove.
11967 (ftrace_debug): Use new btrace_function fields.
11968 (ftrace_function_switched): Also consider gaining and
11969 losing symbol information).
11970 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11971 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11972 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11974 (ftrace_new_function): Move. Remove debug print.
11975 (ftrace_update_lines, ftrace_update_insns): New.
11976 (ftrace_update_function): Check for call, ret, and jump.
11977 (compute_ftrace): Renamed to ...
11978 (btrace_compute_ftrace): ...this. Rewritten to compute call
11980 (btrace_fetch, btrace_clear): Updated.
11981 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11982 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11983 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11984 (btrace_call_number, btrace_call_begin, btrace_call_end)
11985 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11986 (btrace_find_function_by_number, btrace_set_insn_history)
11987 (btrace_set_call_history): New.
11988 * record-btrace.c (require_btrace): Use new btrace thread
11990 (record_btrace_info, btrace_insn_history)
11991 (record_btrace_insn_history, record_btrace_insn_history_range):
11992 Use new btrace thread info fields and new iterator.
11993 (btrace_func_history_src_line): Rename to ...
11994 (btrace_call_history_src_line): ...this. Use new btrace
11995 thread info fields.
11996 (btrace_func_history): Rename to ...
11997 (btrace_call_history): ...this. Use new btrace thread info
11998 fields and new iterator.
11999 (record_btrace_call_history, record_btrace_call_history_range):
12000 Use new btrace thread info fields and new iterator.
12002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12004 * frame.h (frame_id_build_unavailable_stack_special): New.
12005 * frame.c (frame_id_build_unavailable_stack_special): New.
12007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12009 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12010 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12011 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12013 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12014 (i386_insn_is_jump, i386_jmp_p): New.
12015 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12016 insn_is_jump to gdbarch.
12017 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12018 * gdbarch.h: Regenerated.
12019 * gdbarch.c: Regenerated.
12020 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12021 (default_insn_is_jump): New.
12022 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12023 (default_insn_is_jump): New.
12025 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12027 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12029 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12030 (btrace_read_type) <btrace_read_new>: Change to ...
12031 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12035 * common/linux-btrace.c (linux_read_btrace): Free trace from
12036 previous iteration.
12038 2014-01-15 Doug Evans <dje@google.com>
12040 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12043 2014-01-15 Tom Tromey <tromey@redhat.com>
12045 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12046 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12047 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12048 (set_objfile_main_name): New function.
12049 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12050 language_of_main>: New fields.
12051 (set_objfile_main_name): Declare.
12052 * symtab.c (find_main_name): Loop over objfiles to find the main
12054 (set_main_name): Now static.
12055 (get_main_info): Add comment.
12056 * symtab.h (set_main_name): Don't declare.
12058 2014-01-15 Tom Tromey <tromey@redhat.com>
12060 * symtab.c (main_progspace_key): New global.
12061 (struct main_info): New.
12062 (name_of_main, language_of_main): Remove.
12063 (get_main_info, main_info_cleanup): New function.
12064 (set_main_name, main_name, main_language): Use get_main_info.
12065 (_initialize_symtab): Initialize main_progspace_key.
12067 2014-01-15 Tom Tromey <tromey@redhat.com>
12069 * dbxread.c (process_one_symbol): Update.
12070 * dwarf2read.c (read_partial_die): Update.
12071 * symfile.c (set_initial_language): Call main_language.
12072 * symtab.c (language_of_main): Now static.
12073 (set_main_name): Add 'lang' parameter.
12074 (find_main_name): Update.
12075 (main_language): New function.
12076 (symtab_observer_executable_changed): Update.
12077 * symtab.h (set_main_name): Update.
12078 (language_of_main): Remove.
12079 (main_language): Declare.
12081 2014-01-15 Tom Tromey <tromey@redhat.com>
12083 * symfile.c (init_entry_point_info): Use new "initialized" field.
12085 * objfiles.h (struct entry_point) <initialized>: New field.
12086 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12087 (struct objfile) <ei>: ...here. Remove.
12088 * objfiles.c (entry_point_address_query): Update.
12090 2014-01-15 Tom Tromey <tromey@redhat.com>
12092 * objfiles.c (entry_point_address_query): Relocate entry point
12094 (objfile_relocate1): Do not relocate entry point address.
12095 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12096 <the_bfd_section_index>: New field.
12097 * symfile.c (init_entry_point_info): Find the entry point's
12100 2014-01-15 Tom Tromey <tromey@redhat.com>
12102 * solib-frv.c (enable_break): Use entry_point_address_query.
12104 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12106 * NEWS: Add note on improved process record-replay on
12107 arm*-linux* targets.
12109 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12111 * arm-tdep.c (enum arm_record_result): New enum.
12112 (arm_record_unsupported_insn): New function.
12113 (arm_record_coproc_data_proc): Removed.
12114 (thumb2_record_ld_st_multiple): New function.
12115 (thumb2_record_ld_st_dual_ex_tbb): New function.
12116 (thumb2_record_data_proc_sreg_mimm): New function.
12117 (thumb2_record_ps_dest_generic): New function.
12118 (thumb2_record_branch_misc_cntrl): New function.
12119 (thumb2_record_str_single_data): New function.
12120 (thumb2_record_ld_mem_hints): New function.
12121 (thumb2_record_ld_word): New function.
12122 (thumb2_record_lmul_lmla_div): New function.
12123 (thumb2_record_decode_insn_handler): New function.
12124 (decode_insn): Add thumb32 instruction handlers.
12126 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12128 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12129 (struct arm_linux_record_tdep): Declare.
12130 (arm_canonicalize_syscall): New function.
12131 (arm_all_but_pc_registers_record): New function.
12132 (arm_linux_syscall_record): New function.
12133 (arm_linux_init_abi): Add syscall recording constructs.
12134 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12135 decoding. (arm_record_coproc_data_proc): Update arm syscall
12137 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12138 <arm_syscall_record>: New field.
12139 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12142 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12144 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12145 register for push instruction recording.
12147 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12149 * arm-tdep.c (thumb_record_misc): Update to correct logical
12150 error while recording ldm, ldmia and pop instructions.
12152 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12154 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12156 2014-01-15 Pedro Alves <palves@redhat.com>
12158 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12159 (go32_resume, go32_fetch_registers, store_register)
12160 (go32_store_registers, go32_prepare_to_store)
12161 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12162 (go32_create_inferior, go32_can_run, go32_terminal_init)
12163 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12166 2014-01-15 Tom Tromey <tromey@redhat.com>
12168 * target.h (async_callback_ftype): New typedef.
12169 (struct target_ops) <to_async>: Use it.
12171 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12173 * python/py-value.c (get_field_type): Remove unnecessary curly
12174 braces for single-statement if block.
12176 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12178 * python/py-type.c (convert_field): Add missing empty line
12179 after declarations.
12181 2014-01-14 Doug Evans <dje@google.com>
12183 * symfile.h (expand_symtabs_matching): Renamed from
12184 expand_partial_symbol_names. Update prototype.
12185 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12186 * symfile.c (expand_symtabs_matching): Renamed from
12187 expand_partial_symbol_names. New args file_matcher, kind.
12188 Rename arg fun to symbol_matcher.
12189 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12190 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12191 ada_expand_partial_symbol_name.
12192 (ada_make_symbol_completion_list): Update to call
12193 expand_symtabs_matching.
12194 (ada_add_global_exceptions): Call expand_symtabs_matching.
12195 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12196 call map_symbol_filenames.
12197 * symtab.c (sources_info): Update to call map_symbol_filenames.
12198 (search_symbols): Call expand_symtabs_matching.
12199 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12200 (default_make_symbol_completion_list_break_on): Update to call
12201 expand_symtabs_matching.
12202 (make_source_files_completion_list): Update to call
12203 map_symbol_filenames.
12205 2014-01-14 Doug Evans <dje@google.com>
12207 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12208 (expand_symtabs_symbol_matcher_ftype): New typedef.
12209 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12210 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12211 * symfile.c (expand_partial_symbol_names): Update to use
12212 expand_symtabs_symbol_matcher_ftype.
12213 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12214 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12215 Arg name_matcher renamed to symbol_matcher.
12216 * psymtab.c (recursively_search_psymtabs): Update to use
12217 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12219 (expand_symtabs_matching_via_partial): Update to use
12220 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12221 Arg name_matcher renamed to symbol_matcher.
12223 2014-01-14 Doug Evans <dje@google.com>
12225 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12226 (map_partial_symbol_filenames): Ditto.
12227 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12228 (map_partial_symbol_filenames): Ditto.
12229 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12230 (map_partial_symbol_filenames): Ditto.
12231 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12232 (map_partial_symbol_filenames): Ditto.
12233 * symtab.c: Delete #include "psymtab.h".
12235 2014-01-14 Pedro Alves <palves@redhat.com>
12236 Tom Tromey <tromey@redhat.com>
12238 * infrun.c (use_displaced_stepping): Use find_record_target
12239 instead of RECORD_IS_USED.
12240 (adjust_pc_after_break): Use record_full_is_used instead of
12242 * record-btrace.c (record_btrace_open): Call record_preopen
12243 instead of checking RECORD_IS_USED.
12244 * record-full.c (record_full_shortname)
12245 (record_full_core_shortname): New globals.
12246 (record_full_is_used): New function.
12247 (find_full_open): Call record_preopen instead of checking
12249 (init_record_full_ops): Set the target's shortname to
12250 record_full_shortname.
12251 (init_record_full_core_ops): Set the target's shortname to
12252 record_full_core_shortname.
12253 * record-full.h (record_full_is_used): Declare.
12254 * record.c (find_record_target): Make extern.
12255 (record_preopen): New function.
12256 * record.h (RECORD_IS_USED): Delete macro.
12257 (find_record_target, record_preopen): Declare functions.
12259 2014-01-14 Yao Qi <yao@codesourcery.com>
12261 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12262 'len''s type to ULONGEST.
12263 (core_xfer_shared_libraries_aix): Likewise.
12264 * gdbarch.c, gdbarch.h: Regenerated.
12265 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12266 Change type of 'len' to ULONGEST.
12267 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12268 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12270 2014-01-14 Yao Qi <yao@codesourcery.com>
12272 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12273 type of 'len' to ULONGEST.
12274 (linux_xfer_osdata_processgroups): Likewise.
12275 (linux_xfer_osdata_threads): Likewise.
12276 (linux_xfer_osdata_fds): Likewise.
12277 (linux_xfer_osdata_isockets): Likewise.
12278 (linux_xfer_osdata_shm): Likewise.
12279 (linux_xfer_osdata_sem): Likewise.
12280 (linux_xfer_osdata_msg): Likewise.
12281 (linux_common_xfer_osdata): Likewise.
12282 (struct osdata_type) <getter>: Likewise.
12283 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12286 2014-01-14 Yao Qi <yao@codesourcery.com>
12288 * target.h (target_xfer_partial_ftype): Update.
12289 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12291 * aix-thread.c (aix_thread_xfer_partial): Change type of
12292 argument 'len' to ULONGEST.
12293 * auxv.c (procfs_xfer_auxv): Likewise.
12294 (ld_so_xfer_auxv): Likewise.
12295 (memory_xfer_auxv): Likewise.
12296 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12297 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12298 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12299 * corelow.c (core_xfer_partial): Likewise.
12300 * ctf.c (ctf_xfer_partial): Likewise.
12301 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12303 (darwin_read_dyld_info): Likewise.
12304 (darwin_xfer_partial): Likewise.
12305 * exec.c (section_table_xfer_memory_partial): Likewise.
12306 (exec_xfer_partial): Likewise.
12307 * exec.h (section_table_xfer_memory_partial): Update
12309 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12310 instead of plongest.
12311 (gnu_xfer_partial): Likewise.
12312 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12313 (ia64_hpux_xfer_solib_got): Likewise.
12314 (ia64_hpux_xfer_partial): Likewise.
12315 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12316 * inf-ptrace.c (inf_ptrace_xfer_partial):
12317 * inf-ttrace.c (inf_ttrace_xfer_partial):
12318 * linux-nat.c (linux_xfer_siginfo): Likewise.
12319 (linux_nat_xfer_partial): Likewise.
12320 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12321 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12322 * monitor.c (monitor_xfer_memory): Likewise.
12323 (monitor_xfer_partial): Likewise.
12324 * procfs.c (procfs_xfer_partial): Likewise.
12325 * record-full.c (record_full_xfer_partial): Likewise.
12326 (record_full_core_xfer_partial): Likewise.
12327 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12328 instead of plongest.
12329 (gdbsim_xfer_partial): Likewise.
12330 * remote.c (remote_xfer_partial): Likewise.
12331 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12332 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12334 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12335 (rs6000_xfer_shared_libraries): Likewise.
12336 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12337 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12338 (sparc_xfer_partial): Likewise.
12339 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12340 (spu_xfer_partial): Likewise.
12341 * spu-multiarch.c (spu_xfer_partial): Likewise.
12342 * target.c (target_read_live_memory): Likewise.
12343 (memory_xfer_live_readonly_partial): Likewise.
12344 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12345 (target_xfer_partial, default_xfer_partial): Likewise.
12346 (current_xfer_partial): Likewise.
12347 * tracepoint.c (tfile_xfer_partial): Likewise.
12348 * windows-nat.c (windows_xfer_memory): Likewise. Call
12349 pulongest instead of plongest.
12350 (windows_xfer_partial): Likewise.
12351 (windows_xfer_shared_libraries): Likewise.
12353 2014-01-14 Yao Qi <yao@codesourcery.com>
12355 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12356 target_xfer_partial_ftype.
12358 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12362 * valops.c (value_struct_elt_bitpos): New function
12363 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12364 object to 'None' if the field name is an empty string ("").
12365 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12366 attribute to look for a field when 'name' is 'None'.
12367 (get_field_type): New function
12369 2014-01-13 Doug Evans <dje@google.com>
12372 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12373 (try_open_dwop_file): Ditto.
12374 * gdb_bfd.c: #include "vec.h".
12375 (bfdp): New typedef.
12376 (struct gdb_bfd_data): New member included_bfds.
12377 (gdb_bfd_unref): Unref all included bfds.
12378 (gdb_bfd_record_inclusion): New function.
12379 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12381 2014-01-13 Tom Tromey <tromey@redhat.com>
12383 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12385 2014-01-13 Tom Tromey <tromey@redhat.com>
12387 * defs.h (use_windows): Remove.
12388 * gdb.c (main): Update.
12389 * main.c (captured_main, gdb_main): Update.
12390 * main.h (struct captured_main_args) <use_windows>: Remove.
12391 * top.c (use_windows): Remove.
12393 2014-01-13 Tom Tromey <tromey@redhat.com>
12395 * defs.h (deprecated_flush_hook): Remove.
12397 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12400 * linux-thread-db.c (try_thread_db_load): Add parameter
12401 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12402 (try_thread_db_load_from_pdir_1): Move it there from here.
12403 (try_thread_db_load_from_sdir): Update caller.
12404 (try_thread_db_load_from_dir): Move it there from here.
12406 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12408 * regformats/regdat.sh: Always rewrite the register file.
12410 2014-01-13 Pedro Alves <palves@redhat.com>
12412 * Makefile.in (CHECK_HEADERS): New variable.
12413 (check-headers:): New rule.
12415 2014-01-13 Tom Tromey <tromey@redhat.com>
12417 * cli/cli-setshow.c (do_set_command): Update.
12418 * defs.h (deprecated_set_hook): Remove.
12419 * top.c (deprecated_set_hook): Remove.
12421 2014-01-13 Pedro Alves <palves@redhat.com>
12423 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12424 the tracepoint if the PC is a pseudo-register.
12426 2014-01-13 Tom Tromey <tromey@redhat.com>
12428 * defs.h (XCALLOC): Remove.
12429 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12430 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12431 * dwarf2loc.c (allocate_piece_closure): Likewise.
12432 * elfread.c (elf_symfile_segments): Likewise.
12433 (elf_symfile_segments): Likewise.
12434 * gdbtypes.c (copy_type_recursive): Likewise.
12435 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12436 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12437 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12439 * mt-tdep.c (mt_gdbarch_init): Likewise.
12440 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12442 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12443 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12444 * registry.c (registry_alloc_data): Likewise.
12445 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12446 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12447 * serial.c (serial_fdopen_ops): Likewise.
12448 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12450 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12451 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12454 2014-01-13 Tom Tromey <tromey@redhat.com>
12456 * defs.h (XMALLOC): Remove.
12457 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12458 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12459 * cli-out.c (struct ui_out *): Likewise.
12460 * cli/cli-dump.c (add_dump_command): Likewise.
12461 (add_dump_command): Likewise.
12462 * complaints.c (get_complaints): Likewise.
12463 (find_complaint): Likewise.
12464 * dwarf2-frame.c (execute_cfa_program): Likewise.
12465 * dwarf2read.c (abbrev_table_read_table): Likewise.
12466 * gdbarch.sh: Likewise.
12467 * gdbarch.c: Rebuild.
12468 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12469 * interps.c (interp_new): Likewise.
12470 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12471 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12472 * mi/mi-console.c (mi_console_file_new): Likewise.
12473 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12474 * mi/mi-out.c (mi_out_new): Likewise.
12475 * mi/mi-parse.c (mi_parse): Likewise.
12476 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12477 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12478 * observer.c (xalloc_observer_list_node): Likewise.
12479 * regcache.c (regcache_xmalloc_1): Likewise.
12480 * reggroups.c (reggroup_new): Likewise.
12481 (_initialize_reggroup): Likewise.
12482 * registry.c (register_data_with_cleanup): Likewise.
12483 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12484 * ser-base.c (serial_ttystate): Likewise.
12485 * ser-mingw.c (make_pipe_state): Likewise.
12486 * ser-pipe.c (pipe_open): Likewise.
12487 * serial.c (serial_open): Likewise.
12488 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12489 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12490 (tui_alloc_win_info): Likewise.
12491 (tui_add_content_elements): Likewise.
12492 * tui/tui-file.c (tui_file_new): Likewise.
12493 * tui/tui-out.c (tui_out_new): Likewise.
12494 * ui-file.c (mem_file_new): Likewise.
12495 * ui-out.c (push_level): Likewise.
12496 (make_cleanup_ui_out_end): Likewise.
12497 (append_header_to_list): Likewise.
12498 (ui_out_new): Likewise.
12499 * user-regs.c (user_reg_add_builtin): Likewise.
12501 2014-01-13 Tom Tromey <tromey@redhat.com>
12503 * defs.h (XZALLOC): Remove.
12504 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12505 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12506 (get_ada_tasks_inferior_data): Likewise.
12507 * auto-load.c (get_auto_load_pspace_data): Likewise.
12508 * auxv.c (get_auxv_inferior_data): Likewise.
12509 * bfd-target.c (target_bfd_reopen): Likewise.
12510 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12511 (deprecated_insert_raw_breakpoint): Likewise.
12512 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12513 * corelow.c (core_open): Likewise.
12514 * darwin-nat.c (darwin_check_new_threads): Likewise.
12515 (darwin_attach_pid): Likewise.
12516 * dummy-frame.c (dummy_frame_push): Likewise.
12517 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12518 * dwarf2loc.c (allocate_piece_closure): Likewise.
12519 * elfread.c (elf_symfile_segments): Likewise.
12520 * eval.c (ptrmath_type_p): Likewise.
12521 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12522 * gdbtypes.c (alloc_type_arch): Likewise.
12523 (alloc_type_instance): Likewise.
12524 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12525 * inf-child.c (inf_child_can_use_agent): Likewise.
12526 * inflow.c (get_inflow_inferior_data): Likewise.
12527 * infrun.c (save_infcall_suspend_state): Likewise.
12528 * jit.c (jit_reader_load): Likewise.
12529 (get_jit_objfile_data): Likewise.
12530 (get_jit_program_space_data): Likewise.
12531 (jit_object_open_impl): Likewise.
12532 (jit_symtab_open_impl): Likewise.
12533 (jit_block_open_impl): Likewise.
12534 (jit_frame_sniffer): Likewise.
12535 * linux-fork.c (add_fork): Likewise.
12536 * maint.c (make_command_stats_cleanup): Likewise.
12537 * objfiles.c (get_objfile_pspace_data): Likewise.
12538 * opencl-lang.c (struct lval_closure): Likewise.
12539 * osdata.c (osdata_start_osdata): Likewise.
12540 * progspace.c (new_address_space): Likewise.
12541 (add_program_space): Likewise.
12542 * remote-sim.c (get_sim_inferior_data): Likewise.
12543 * sh-tdep.c (sh_gdbarch_init): Likewise.
12544 * skip.c (Ignore): Likewise.
12545 (skip_delete_command): Likewise.
12546 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12547 (library_list_start_library): Likewise.
12548 (solib_aix_current_sos): Likewise.
12549 * solib-darwin.c (get_darwin_info): Likewise.
12550 (darwin_current_sos): Likewise.
12551 * solib-dsbt.c (get_dsbt_info): Likewise.
12552 * solib-ia64-hpux.c (new_so_list): Likewise.
12553 (ia64_hpux_get_solib_linkage_addr): Likewise.
12554 * solib-spu.c (append_ocl_sos): Likewise.
12555 (spu_current_sos): Likewise.
12556 * solib-svr4.c (get_svr4_info): Likewise.
12557 (svr4_keep_data_in_core): Likewise.
12558 (library_list_start_library): Likewise.
12559 (svr4_default_sos): Likewise.
12560 (svr4_read_so_list): Likewise.
12561 * solib-target.c (library_list_start_library): Likewise.
12562 (solib_target_current_sos): Likewise.
12563 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12564 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12565 * symfile.c (default_symfile_segments): Likewise.
12566 * target-descriptions.c (tdesc_data_init): Likewise.
12567 (tdesc_create_reg): Likewise.
12568 (struct tdesc_type *): Likewise.
12569 (tdesc_create_vector): Likewise.
12570 (tdesc_set_struct_size): Likewise.
12571 (struct tdesc_type *): Likewise.
12572 (tdesc_free_feature): Likewise.
12573 (tdesc_create_feature): Likewise.
12574 * windows-nat.c (windows_add_thread): Likewise.
12575 (windows_make_so): Likewise.
12576 * xml-support.c (gdb_xml_body_text): Likewise.
12577 (gdb_xml_create_parser_and_cleanup): Likewise.
12578 (xml_process_xincludes): Likewise.
12579 * xml-syscall.c (allocate_syscalls_info): Likewise.
12580 (syscall_create_syscall_desc): Likewise.
12582 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12584 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12585 function, with code from i386_stap_parse_special_token.
12586 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12587 (i386_stap_parse_special_token): Move code to the two functions
12588 above; simplify it.
12590 2014-01-09 Pedro Alves <palves@redhat.com>
12591 Hui Zhu <hui@codesourcery.com>
12594 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12595 bp_err_string. Don't mark the location shlib_disabled if the
12596 error thrown wasn't a generic or memory error. Catch errors
12597 thrown while inserting breakpoints in overlayed code. Output
12598 error message of software breakpoints.
12599 * remote.c (remote_insert_breakpoint): If this breakpoint has
12600 target-side commands but this stub doesn't support Z0 packets,
12601 throw NOT_SUPPORTED_ERROR error.
12602 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12603 * target.h (target_insert_breakpoint): Extend comment.
12604 (target_insert_hw_breakpoint): Add comment.
12606 2014-01-08 Pedro Alves <palves@redhat.com>
12608 * remote.c (remote_add_thread): Add threads silently if starting
12610 (remote_notice_new_inferior): If in all-stop, and starting up,
12611 don't call notice_new_inferior.
12612 (get_current_thread): New function, factored out from ...
12613 (add_current_inferior_and_thread): ... this. Adjust.
12614 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12615 found any thread, then select the remote's current thread as GDB's
12616 current thread too.
12618 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12620 * NEWS: Create a new section for the next release branch.
12621 Rename the section of the current branch, now that it has
12624 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12626 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12627 * version.in: Bump version to 7.7.50.DATE-cvs.
12629 2014-01-08 Yao Qi <yao@codesourcery.com>
12631 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12632 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12633 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12635 2014-01-08 Yao Qi <yao@codesourcery.com>
12637 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12638 return value of bfd_get_filename to symbol_file_add_from_bfd.
12640 2014-01-08 Pierre Muller <muller@sourceware.org>
12643 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12644 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12645 to prim_record_mininal_symbol_and_info.
12646 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12647 in call to prim_record_minimal_symbol_and_info.
12648 (read_pe_exported_syms): Set index field of section_data.
12650 2014-01-07 Andrew Pinski <apinski@cavium.com>
12652 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12653 * features/aarch64.c: Regenerate.
12655 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12657 * target.c (return_null): Define.
12658 (update_current_target): Use it instead of return_zero for
12659 functions that return a pointer.
12661 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12663 * source.c (add_path): Fix check for duplicated paths in the previously
12666 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12668 * ada-lang.c: Remove duplicated include statements.
12669 * alphabsd-nat.c: Ditto.
12670 * amd64-darwin-tdep.c: Ditto.
12671 * amd64fbsd-nat.c: Ditto.
12672 * auto-load.c: Ditto.
12674 * breakpoint.c: Ditto.
12675 * dbxread.c: Ditto.
12676 * fork-child.c: Ditto.
12677 * gdb_usleep.c: Ditto.
12678 * i386-darwin-tdep.c: Ditto.
12679 * i386fbsd-nat.c: Ditto.
12681 * inferior.c: Ditto.
12682 * jv-lang.c: Ditto.
12683 * linux-nat.c: Ditto.
12684 * linux-tdep.c: Ditto.
12685 * m68kbsd-nat.c: Ditto.
12686 * m68klinux-nat.c: Ditto.
12687 * microblaze-tdep.c: Ditto.
12688 * mips-linux-tdep.c: Ditto.
12689 * mn10300-tdep.c: Ditto.
12690 * nto-tdep.c: Ditto.
12691 * opencl-lang.c: Ditto.
12693 * printcmd.c: Ditto.
12694 * regcache.c: Ditto.
12695 * remote-m32r-sdi.c: Ditto.
12697 * symfile.c: Ditto.
12699 * tilegx-linux-nat.c: Ditto.
12700 * tilegx-tdep.c: Ditto.
12701 * tracepoint.c: Ditto.
12703 * vaxbsd-nat.c: Ditto.
12704 * windows-nat.c: Ditto.
12705 * xtensa-tdep.c: Ditto.
12707 2014-01-07 Yao Qi <yao@codesourcery.com>
12709 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12711 2014-01-07 Yao Qi <yao@codesourcery.com>
12712 Joel Brobecker <brobecker@adacore.com>
12714 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12715 (pdc_write_regs): Likewise.
12716 (fetch_regs_kernel_thread): Likewise.
12717 (store_regs_kernel_thread): Likewise.
12719 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12721 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12722 tagged type objects to their actual type.
12724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12726 * ada-valprint.c (print_field_values): Add "language" parameter.
12727 Update calls to print_field_values and print_variant_part.
12728 Pass new parameter "language" in call to val_print instead
12729 of "current_language". Replace call to ada_val_print by call
12731 (print_variant_part): Add "language" parameter.
12732 (ada_val_print_struct_union): Update call to print_field_values.
12734 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12736 * ada-valprint.c (ui_memcpy): Delete.
12737 (ada_print_floating): Update documentation. Add empty line
12738 between between function documentation and implementation.
12739 Delete variable "buffer". Use ui_file_xstrdup in place of
12740 ui_file_put. Minor adjustments following this change.
12742 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12744 * ada-valprint.c (ada_val_print_string): New function,
12745 extracted from ada_val_print_array.
12746 (ada_val_print_array): Replace extracted code by call
12747 to ada_val_print_string followed by a return. Move
12748 "else" branch to the function's top block.
12750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12752 * ada-valprint.c (ada_val_print_array): Move implementation
12753 down. Rename parameter "offset" and "val" into "offset_aligned"
12754 and "original_value" respectively. Add parameter "offset".
12756 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12758 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12759 re-organizing the code. Change the "???" message printed
12760 when target type is a TYPE_CODE_UNDEF into
12761 "<ref to undefined type>".
12763 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12765 * ada-valprint.c (print_record): Delete, implementation inlined...
12766 (ada_val_print_struct_union): ... here. Remove call to
12767 ada_check_typedef in inlined implementation.
12769 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12771 * ada-valprint.c (ada_val_print_gnat_array): New function,
12772 extracted from ada_val_print_1;
12773 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12774 (ada_val_print_flt, ada_val_print_struct_union)
12775 (ada_val_print_ref): Likewise.
12776 (ada_val_print_1): Delete variables i and elttype.
12777 Replace extracted-out code by call to corresponding
12780 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12782 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12784 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12786 * ada-valprint.c (ada_val_print_1): Replace calls to
12787 ada_val_print_1 by calls to val_print.
12789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12791 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12792 Update calls to self accordingly. Replace calls to c_val_print
12793 by calls to val_print.
12795 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12797 * ada-valprint.c (print_record): Delete declaration.
12798 (adjust_type_signedness, ada_val_print_1): Likewise.
12799 (ada_val_print): Move function implementation down.
12800 (print_variant_part, print_field_values, print_record):
12801 Move function implementation up.
12803 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12805 * python/py-type.c (typy_get_name): New function.
12806 (type_object_getset): Add entry for attribute "name".
12807 * NEWS: Add entry mentioning this new attribute.
12809 2014-01-07 Yao Qi <yao@codesourcery.com>
12811 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12814 2014-01-07 Yao Qi <yao@codesourcery.com>
12816 * gnu-nat.c (info_port_rights): Add qualifier const to
12819 2014-01-07 Yao Qi <yao@codesourcery.com>
12821 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12823 2014-01-07 Yao Qi <yao@codesourcery.com>
12825 * gnu-nat.c (make_inf) Update declaration.
12826 (make_inf): Make it static.
12827 (inf_set_traced): Likewise.
12828 (inf_port_to_thread, inf_task_died_status): Likewise.
12830 2014-01-07 Yao Qi <yao@codesourcery.com>
12832 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12834 2014-01-07 Yao Qi <yao@codesourcery.com>
12836 * gnu-nat.c (_initialize_gnu_nat): Declare.
12838 2014-01-07 Yao Qi <yao@codesourcery.com>
12840 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12842 (struct gdbarch_info) <byte_order>: Change type to
12844 <byte_order_for_code>: Likewise.
12845 * gdbarch.c, gdbarch.h: Regenerated.
12847 2014-01-06 Sasha Smundak <asmundak@google.com>
12849 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12851 2014-01-06 Tom Tromey <tromey@redhat.com>
12853 * doublest.c (convert_doublest_to_floatformat): Use const, not
12855 * somread.c (som_symtab_read): Likewise.
12857 2014-01-07 Hui Zhu <hui@codesourcery.com>
12859 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12860 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12861 (gdb_bfd_fopen): Ditto.
12862 (gdb_bfd_openr): Ditto.
12863 (gdb_bfd_openw): Ditto.
12864 (gdb_bfd_openr_iovec): Ditto.
12865 (gdb_bfd_fdopenr): Ditto.
12866 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12867 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12869 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12871 * symfile-mem.c (symbol_file_add_from_memory): Removed
12872 gdb_bfd_stash_filename.
12874 2014-01-03 Doug Evans <dje@google.com>
12876 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12879 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12881 Update year range in copyright notice of all files.
12883 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12885 * top.c (print_gdb_version): Set copyright year to 2014.
12887 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12889 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12891 For older changes see ChangeLog-2013.
12897 version-control: never