1 2014-09-13 Doug Evans <xdje42@gmail.com>
3 * linux-nat.c (wait_lwp): Add debugging printf.
4 (linux_nat_wait_1): Ditto.
6 2014-09-12 Pedro Alves <palves@redhat.com>
8 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
9 (create_and_insert_solib_event_breakpoint): New functions.
10 * breakpoint.h (create_and_insert_solib_event_breakpoint)
11 (remove_solib_event_breakpoints_at_next_stop): New declarations.
12 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
13 (remove_dbx_link_breakpoint): Delete function.
14 (insert_dbx_link_bpt_in_file): Use
15 create_and_insert_solib_event_breakpoint instead of
16 deprecated_insert_raw_breakpoint.
17 (procfs_wait): Don't check whether we hit __dbx_link here.
18 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
20 * solib-irix.c (base_breakpoint): Delete global.
21 (disable_break): Delete function.
22 (enable_break): Use create_solib_event_breakpoint
23 instead of deprecated_insert_raw_breakpoint.
24 (irix_solib_handle_event): New function.
25 (irix_solib_create_inferior_hook): Don't run the target or disable
26 the mapping-complete breakpoint here.
27 (_initialize_irix_solib): Install irix_solib_handle_event as
28 so_ops->handle_event hook.
30 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
31 Ulrich Weigand <uweigand@de.ibm.com>
34 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
35 instead of read_memory_unsigned_integer.
37 2014-09-12 Gary Benson <gbenson@redhat.com>
39 * nat/linux-waitpid.c: Include common-defs.h.
40 [GDBSERVER]: Add FIXME comment.
41 [!GDBSERVER]: Don't include defs.h or signal.h.
42 (linux_debug) [!GDBSERVER]: Remove empty block.
44 2014-09-12 Gary Benson <gbenson@redhat.com>
46 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
47 Don't include defs.h or server.h.
49 2014-09-12 Gary Benson <gbenson@redhat.com>
51 * nat/linux-btrace.c: Include common-defs.h.
52 Don't include defs.h, server.h or gdbthread.h.
53 * nat/linux-btrace.h (struct target_ops): New forward declaration.
55 2014-09-12 Gary Benson <gbenson@redhat.com>
57 * common/agent.c: Include common-defs.h.
58 Don't include defs.h or server.h.
59 * common/buffer.c: Likewise.
60 * common/common-debug.c: Likewise.
61 * common/common-utils.c: Likewise.
62 * common/errors.c: Likewise.
63 * common/filestuff.c: Likewise.
64 * common/format.c: Likewise.
65 * common/gdb_vecs.c: Likewise.
66 * common/print-utils.c: Likewise.
67 * common/ptid.c: Likewise.
68 * common/rsp-low.c: Likewise.
69 * common/signals.c: Likewise.
70 * common/vec.c: Likewise.
71 * common/xml-utils.c: Likewise.
72 * nat/linux-osdata.c: Likewise.
73 * nat/linux-procfs.c: Likewise.
74 * nat/linux-ptrace.c: Likewise.
75 * nat/mips-linux-watch.c: Likewise.
76 * target/waitstatus.c: Likewise.
78 2014-09-12 Tom Tromey <tromey@redhat.com>
79 Gary Benson <gbenson@redhat.com>
81 * common/common-regcache.h: New file.
82 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
83 * regcache.h: Include common-regcache.h.
84 (regcache_read_pc): Don't declare.
85 * regcache.c (get_thread_regcache_for_ptid): New function.
86 * nat/linux-btrace.c: Don't include regcache.h.
87 Include common-regcache.h.
88 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
90 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
92 * regcache.h (struct regset): Declare.
94 2014-09-11 Pedro Alves <palves@redhat.com>
97 * main.c: Include "infrun.h".
98 (catch_command_errors, catch_command_errors_const): Wait for the
99 foreground command to complete.
100 * top.c (maybe_wait_sync_command_done): New function, factored out
102 (maybe_wait_sync_command_done): ... here.
103 * top.h (maybe_wait_sync_command_done): New declaration.
105 2014-09-11 Tom Tromey <tromey@redhat.com>
106 Gary Benson <gbenson@redhat.com>
108 * common/symbol.h: New file.
109 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
110 * minsyms.c (find_minimal_symbol_address): New function.
111 * common/agent.c: Include common/symbol.h.
112 [!GDBSERVER]: Don't include objfiles.h.
113 (agent_look_up_symbols): Use find_minimal_symbol_address.
115 2014-09-11 Gary Benson <gbenson@redhat.com>
117 * target/target.h (target_stop_ptid, target_continue_ptid):
119 * target.c (target_stop_ptid, target_continue_ptid): New
121 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
122 (agent_run_command): Always use target_stop_ptid and
123 target_continue_ptid.
125 2014-09-11 Tom Tromey <tromey@redhat.com>
126 Gary Benson <gbenson@redhat.com>
128 * target/target.h: New file.
129 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
130 * target.h: Include target/target.h.
131 (target_read_memory, target_write_memory): Don't declare.
132 * target.c (target_read_uint32): New function.
133 * common/agent.c: Include target/target.h.
134 [!GDBSERVER]: Don't include target.h.
135 (helper_thread_id): Type changed to uint32_t.
136 (agent_get_helper_thread_id): Use target_read_uint32.
137 (agent_run_command): Always use target_read_memory and
139 (agent_capability): Type changed to uint32_t.
140 (agent_capability_check): Use target_read_uint32.
142 2014-09-11 Gary Benson <gbenson@redhat.com>
144 * common/common-debug.h (show_debug_regs): Declare.
145 * common/common-debug.c (show_debug_regs): Define.
146 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
147 all uses with show_debug_regs. Replace all uses that considered
148 debug_hw_points as a multi-value integer with straight boolean
150 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
151 with show_debug_regs.
152 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
153 all uses with show_debug_regs.
154 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
155 uses with show_debug_regs.
157 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
159 * findvar.c (address_from_register): Handle targets requiring
160 a special conversion routine even for plain pointer types.
162 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
164 * rs6000-nat.c (exec_one_dummy_insn): Remove.
165 (store_register): Do not call exec_one_dummy_insn.
167 2014-09-10 Joel Brobecker <brobecker@adacore.com>
169 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
170 dereference it first. Use value_enclosing_type instead of
172 (ada_array_length): Likewise.
174 2014-09-10 Joel Brobecker <brobecker@adacore.com>
176 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
177 Adjust function implementation and documentation accordingly.
178 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
179 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
180 Update call to ada_value_ptr_subscript.
182 2014-09-10 Joel Brobecker <brobecker@adacore.com>
184 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
185 instead of VAL's type.
187 2014-09-10 Joel Brobecker <brobecker@adacore.com>
189 * amd64-linux-nat.c: Add <sys/uio.h> #include.
191 2014-09-09 Doug Evans <xdje42@gmail.com>
194 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
195 last parameter to pkg-config, not first.
196 * configure.ac: Pass --with-guile provided pkg-config path to
197 GDB_GUILE_PROGRAM_NAMES.
198 * configure: Regenerate.
200 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
202 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
205 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
207 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
208 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
209 the list of sections determining GDB_OSABI_IRIX.
211 2014-09-09 James Hogan <james.hogan@imgtec.com>
213 * MAINTAINERS (Write After Approval): Add "James Hogan".
215 2014-09-09 James Hogan <james.hogan@imgtec.com>
217 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
219 2014-09-09 Joel Brobecker <brobecker@adacore.com>
221 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
223 2014-09-08 Doug Evans <xdje42@gmail.com>
226 * guile.c: #include <signal.h>.
227 (_initialize_guile): Block SIGCHLD while initializing Guile.
229 Replaces the following, which is reverted.
231 2014-07-26 Doug Evans <xdje42@gmail.com>
234 * configure.ac: Add check for header gc/gc.h.
235 Add check for function setenv.
236 * configure: Regenerate.
237 * config.in: Regenerate.
238 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
240 2014-09-08 Doug Evans <xdje42@gmail.com>
242 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
243 with named constant. Fix style of pointer comparison.
244 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
246 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
249 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
250 decide whether we display the command on "show user".
251 * cli/cli-script.c (show_user_1): Only verify cmdlines after
252 printing command name.
253 * cli/cli-decode.h (cli_user_command_p): Declare new function.
254 * cli/cli-decode.c (cli_user_command_p): Create helper function
255 to verify whether cmd_list_element is a user-defined command.
257 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
260 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
261 Fix goto out of TRY_CATCH.
263 2014-09-06 Doug Evans <xdje42@gmail.com>
264 Tom Tromey <tromey@redhat.com>
267 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
268 $_any_caller_matches.
269 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
270 * python/lib/gdb/function/caller_is.py: New file.
272 2014-09-06 Doug Evans <xdje42@gmail.com>
274 * infcmd.c (program_info): Fix typo.
276 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
279 * stap-probe.c (stap_parse_single_operand): Delete unused variable
280 'number'. New variable 'has_digit'. Rewrite code to deal with
281 subexpressions on SDT probes.
283 2014-09-04 Pedro Alves <palves@redhat.com>
285 * c-exp.y (parse_number): Skip handling base-switching prefixes if
286 the input is only one character long.
288 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
291 * f-valprint.c (f_val_print): Specify the correct print option to
292 use when printing integer values.
294 2014-09-04 Gary Benson <gbenson@redhat.com>
296 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
297 Remove code to cope with LWPs wrapped as PIDs.
298 Add assertions to ensure no wrapped LWPs are passed.
300 2014-09-04 Pedro Alves <palves@redhat.com>
302 * value.c (value_ranges_copy_adjusted): New function, factored out
304 (value_contents_copy_raw): ... here.
305 (unpack_value_bits_as_long_1): Rename back to ...
306 (unpack_bits_as_long): ... this. Remove 'original_value' and
307 'result' parameters. Change return type to LONGEST.
308 (unpack_value_bits_as_long): Delete.
309 (unpack_value_field_as_long_1): Delete.
310 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
311 (unpack_value_bitfield): New function.
312 (value_field_bitfield): Reimplement using unpack_value_bitfield.
313 (value_fetch_lazy): Use unpack_value_bitfield.
314 * value.h (unpack_value_bits_as_long): Delete declaration.
316 2014-09-03 Sasha Smundak <asmundak@google.com>
318 * python/py-frame.c (frapy_read_register): New function.
320 2014-09-03 James Hogan <james.hogan@imgtec.com>
322 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
323 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
325 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
328 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
330 (add_cmd): Set "completer_handle_brkchars" to NULL.
331 * cli/cli-decode.h (struct cmd_list_element)
332 <completer_handle_brkchars>: New field.
333 * command.h (completer_ftype_void): New typedef.
334 (set_cmd_completer_handle_brkchars): New prototype.
335 * completer.c (set_gdb_completion_word_break_characters): New
337 (complete_line_internal): Call "completer_handle_brkchars"
338 callback from command.
339 * completer.h: Include "command.h".
340 (set_gdb_completion_word_break_characters): New prototype.
341 * python/py-cmd.c (cmdpy_completer_helper): New function.
342 (cmdpy_completer_handle_brkchars): New function.
343 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
344 (cmdpy_init): Set completer_handle_brkchars to
345 cmdpy_completer_handle_brkchars.
347 2014-09-03 Gary Benson <gbenson@redhat.com>
349 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
350 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
351 Loop conditions changed to equivalent form.
352 (struct x86_debug_reg_state): Updated dr_ref_count comment.
353 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
354 ALL_DEBUG_ADDRESS_REGISTERS.
356 2014-09-03 Joel Brobecker <brobecker@adacore.com>
358 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
361 2014-09-02 Doug Evans <dje@google.com>
363 * typeprint.c (find_global_typedef): Fix comment.
365 2014-09-02 Gary Benson <gbenson@redhat.com>
367 * i386-nat.h: Renamed as...
368 * x86-nat.h: New file. All type, function and variable name
369 prefixes changed from "i386_" to "x86_". All references updated.
370 * i386-nat.c: Renamed as...
371 * x86-nat.c: New file. All type, function and variable name
372 prefixes changed from "i386_" to "x86_". All references updated.
373 * common/i386-xstate.h: Renamed as...
374 * common/x86-xstate.h: New file. All type, function and variable
375 name prefixes changed from "i386_" to "x86_". All references
377 * nat/i386-cpuid.h: Renamed as...
378 * nat/x86-cpuid.h: New file. All type, function and variable name
379 prefixes changed from "i386_" to "x86_". All references updated.
380 * nat/i386-gcc-cpuid.h: Renamed as...
381 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
382 name prefixes changed from "i386_" to "x86_". All references
384 * nat/i386-dregs.h: Renamed as...
385 * nat/x86-dregs.h: New file. All type, function and variable name
386 prefixes changed from "i386_" to "x86_". All references updated.
387 * nat/i386-dregs.c: Renamed as...
388 * nat/x86-dregs.c: New file. All type, function and variable name
389 prefixes changed from "i386_" to "x86_". All references updated.
391 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
393 * varobj.c (_initialize_varobj): Move to the end of file.
395 2014-08-29 Gary Benson <gbenson@redhat.com>
397 * common/common-exceptions.h: New file.
398 * common/common-exceptions.c: Likewise.
399 * Makefile.in (SFILES): Add common/common-exceptions.c.
400 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
401 (COMMON_OBS): Add common-exceptions.o.
402 (common-exceptions.o): New rule.
403 * exceptions.h (common-exceptions.h): Include.
404 (gdb_setjmp.h): Do not include.
405 (return_reason): Moved to common-exceptions.h.
406 (enum return_reason): Likewise.
407 (RETURN_MASK): Likewise.
408 (typedef return_mask): Likewise.
409 (enum errors): Likewise.
410 (struct gdb_exception): Likewise.
411 (exceptions_state_mc_init): Likewise.
412 (exceptions_state_mc_action_iter): Likewise.
413 (exceptions_state_mc_action_iter_1): Likewise.
414 (TRY_CATCH): Likewise.
415 (throw_exception): Likewise.
416 (throw_verror): Likewise.
417 (throw_vquit): Likewise.
418 (throw_error): Likewise.
419 (throw_quit): Likewise.
420 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
421 (enum catcher_action): Likewise.
422 (struct catcher): Likewise.
423 (current_catcher): Likewise.
424 (catcher_list_size): Likewise.
425 (exceptions_state_mc_init): Likewise.
426 (catcher_pop): Likewise.
427 (exceptions_state_mc): Likewise.
428 (exceptions_state_mc_action_iter): Likewise.
429 (exceptions_state_mc_action_iter_1): Likewise.
430 (throw_exception): Likewise.
431 (exception_messages): Likewise.
432 (exception_messages_size): Likewise.
433 (throw_it): Likewise.
434 (throw_verror): Likewise.
435 (throw_vquit): Likewise.
436 (throw_error): Likewise.
437 (throw_quit): Likewise.
438 (prepare_to_throw_exception): New function.
440 2014-08-29 Gary Benson <gbenson@redhat.com>
442 * common/gdb_setjmp.h: New file.
443 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
444 * configure.ac: Move sigsetjmp check...
445 * common/common.m4: ...here.
446 * configure: Regenerate.
447 * cp-support.c (SIGJMP_BUF): Delete.
448 (SIGSETJMP): Likewise.
449 (SIGLONGJMP): Likewise.
450 * exceptions.h (gdb_setjmp.h): Include.
451 (setjmp.h): Do not include.
452 (EXCEPTIONS_SIGJMP_BUF): Delete.
453 (EXCEPTIONS_SIGSETJMP): Likewise.
454 (EXCEPTIONS_SIGLONGJMP): Likewise.
455 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
457 * exceptions.c: Likewise.
459 2014-08-29 Gary Benson <gbenson@redhat.com>
461 * cleanups.h: Moved to...
462 * common/cleanups.h: New file.
463 * cleanups.c: Moved to...
464 * common/cleanups.c: New file. Include common-defs.h and
465 cleanups.h. Do not include defs.h.
466 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
467 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
468 (cleanups.o): New rule.
470 2014-08-29 Gary Benson <gbenson@redhat.com>
472 * common/errors.h (internal_warning): New declaration.
473 (internal_vwarning): Likewise.
474 * common/errors.c (internal_warning): New function.
475 * utils.h (internal_warning): Don't declare.
476 (internal_vwarning): Likewise.
477 * utils.c (internal_warning): Removed.
479 2014-08-29 Gary Benson <gbenson@redhat.com>
481 * main.c (captured_main): Use warning during startup.
482 Prefix startup warning messages with command name.
484 2014-08-29 Gary Benson <gbenson@redhat.com>
486 * main.c (captured_main): Handle usage errors with error.
488 2014-08-29 Gary Benson <gbenson@redhat.com>
490 * go32-nat.c (go32_create_inferior): Replace a fprintf/
491 exit pair with a call to error. Wrap the message with _().
493 2014-08-29 Gary Benson <gbenson@redhat.com>
495 * main.c (captured_main): Replace a fprintf/exit
496 pair with a call to error. Wrap the message with _().
498 2014-08-29 Gary Benson <gbenson@redhat.com>
500 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
501 pairs with calls to error. Wrap the message with _().
503 2014-08-29 Gary Benson <gbenson@redhat.com>
505 * utils.c (vwarning): Protect calls to target_terminal_ours
508 2014-08-29 Gary Benson <gbenson@redhat.com>
510 * exceptions.c (print_flush): Protect calls to
511 target_terminal_ours and wrap_here.
513 2014-08-29 Gary Benson <gbenson@redhat.com>
515 * utils.h (filtered_printing_initialized): New declaration.
516 * utils.c (abort_with_message): New function.
517 (internal_vproblem): Use abort_with_message for first level
518 recursive internal problems, and if gdb_stderr is not set up.
519 Protect calls to target_terminal_ours, begin_line and query.
521 2014-08-28 Doug Evans <dje@google.com>
523 * symtab.c (in_prologue): Move definition to better spot.
524 (skip_prologue_using_sal): Ditto.
526 2014-08-28 Doug Evans <dje@google.com>
528 * symtab.c (find_function_start_sal): Move definition to better spot.
530 2014-08-28 Yao Qi <yao@codesourcery.com>
532 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
533 found_stack_adjust in forward scan. Remove condition check
534 on found_stack_adjust which is always true. Indent the code.
536 2014-08-28 Yao Qi <yao@codesourcery.com>
538 * dwarf2read.c (dwarf_decode_lines): Update declaration.
539 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
540 (dwarf_decode_lines): Remove argument
541 want_line_info. Remove condition check on want_line_info.
544 2014-08-27 Doug Evans <dje@google.com>
546 * dwarf2read.c (dwarf_record_line): Fix typo.
548 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
550 * target.h (struct target_ops::to_terminal_save_ours): Remove
552 (target_terminal_save_ours): Remove macro.
553 * target-delegates.c: Regenerate.
554 * inf-child.c (inf_child_target): Don't set the nonexistent
555 field to_terminal_save_ours.
556 * inferior.h (child_terminal_save_ours): Remove declaration.
557 * terminal.h (gdb_save_tty_state): New declaration.
558 * inflow.c (child_terminal_save_ours): Rename to ...
559 (gdb_save_tty_state): ... this.
560 * tui/tui.c: Include terminal.h.
561 (tui_enable): Use gdb_save_tty_state instead of
562 target_terminal_save_ours.
563 (tui_disable): Likewise.
565 2014-08-25 Doug Evans <dje@google.com>
567 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
568 Pass NULL instead of 0 for context pointer.
570 2014-08-25 Yao Qi <yao@codesourcery.com>
572 * dwarf2read.c: Fix grammatical error.
574 2014-08-24 Yao Qi <yao@codesourcery.com>
576 * dwarf2read.c (scan_partial_symbols): Update comments.
577 Rename argument 'need_pc' with 'set_addrmap'.
578 (add_partial_namespace): Rename argument 'need_pc' with
580 (add_partial_module): Likewise.
581 (add_partial_subprogram): Likewise. Update comments.
582 (dwarf2_name): Fix typo.
584 2014-08-22 Doug Evans <dje@google.com>
587 * dwarf2read.c (dwarf_record_line_p): New function.
588 (dwarf_decode_lines_1): Ignore subsequent line number entries
589 for the same line if any entry had a non-zero discriminator.
591 2014-08-22 Doug Evans <dje@google.com>
593 * buildsym.h (record_line_ftype): New typedef.
594 (record_line): Use it.
595 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
596 (dwarf_decode_lines_1): Call them.
598 2014-08-22 Yao Qi <yao@codesourcery.com>
600 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
601 (ctf_end): Remove code.
603 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
605 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
606 (linux_make_corefile_notes): call update_thread_list, protected against
609 2014-08-21 Pedro Alves <palves@redhat.com>
611 * infcmd.c (attach_command): Remove comment.
613 2014-08-21 Bin Cheng <bin.cheng@arm.com>
615 * aarch64-linux-nat.c (dr_changed_t): Change the type from
616 unsigned LONGEST to ULONGEST.
618 2014-08-20 Pedro Alves <palves@redhat.com>
620 * Makefile.in (check-read1): New rule.
622 2014-08-20 Joel Brobecker <brobecker@adacore.com>
624 * value.c (value_from_contents_and_address): Strip resolved_type's
625 typedef layers before checking its TYPE_DATA_LOCATION.
627 2014-08-20 Pedro Alves <palves@redhat.com>
629 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
631 2014-08-20 Yao Qi <yao@codesourcery.com>
633 * amd64-tdep.c (amd64_classify): Add a blank line after the
634 example. Move "*/" to a new line.
635 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
636 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
637 * dwarf2read.c (psymtab_include_file_name): Likewise.
639 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
640 Pedro Alves <palves@redhat.com>
644 * ada-lang.c (coerce_unspec_val_to_type): Use
645 value_contents_copy_raw.
646 * ada-valprint.c (val_print_packed_array_elements): Adjust.
647 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
648 * cp-valprint.c (cp_print_value_fields): Let the common printing
649 code handle optimized out values.
650 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
651 * d-valprint.c (dynamic_array_type): Use
652 value_bits_any_optimized_out.
653 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
654 check_any_valid fields.
655 (check_pieced_value_bits): Delete and inline ...
656 (check_pieced_synthetic_pointer): ... here.
657 (check_pieced_value_validity): Delete.
658 (check_pieced_value_invalid): Delete.
659 (pieced_value_funcs): Remove check_validity and check_any_valid
661 (read_pieced_value): Use mark_value_bits_optimized_out.
662 (write_pieced_value): Switch to use
663 mark_value_bytes_optimized_out.
664 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
665 of assuming the whole value is optimized out.
666 * findvar.c (read_frame_register_value): Remove special handling
667 of optimized out registers.
668 (value_from_register): Use mark_value_bytes_optimized_out.
669 * frame-unwind.c (frame_unwind_got_optimized): Use
670 mark_value_bytes_optimized_out.
671 * jv-valprint.c (java_value_print): Adjust.
672 (java_print_value_fields): Let the common printing code handle
673 optimized out values.
674 * mips-tdep.c (mips_print_register): Remove special handling of
675 optimized out registers.
676 * opencl-lang.c (lval_func_check_validity): Delete.
677 (lval_func_check_any_valid): Delete.
678 (opencl_value_funcs): Remove check_validity and check_any_valid
680 * p-valprint.c (pascal_object_print_value_fields): Let the common
681 printing code handle optimized out values.
682 * stack.c (read_frame_arg): Remove special handling of optimized
683 out values. Fetch both VAL and ENTRYVAL before comparing
684 contents. Adjust to value_available_contents_eq rename.
685 * valprint.c (valprint_check_validity)
686 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
687 (val_print_array_elements): Adjust.
688 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
689 (value_bits_any_optimized_out): New function.
690 (value_entirely_covered_by_range_vector): New function, factored
691 out from value_entirely_unavailable.
692 (value_entirely_unavailable): Reimplement.
693 (value_entirely_optimized_out): New function.
694 (insert_into_bit_range_vector): New function, factored out from
695 mark_value_bits_unavailable.
696 (mark_value_bits_unavailable): Reimplement.
697 (struct ranges_and_idx): New struct.
698 (find_first_range_overlap_and_match): New function, factored out
699 from value_available_contents_bits_eq.
700 (value_available_contents_bits_eq): Rename to ...
701 (value_contents_bits_eq): ... this. Check both unavailable
702 contents and optimized out contents.
703 (value_available_contents_eq): Rename to ...
704 (value_contents_eq): ... this.
705 (allocate_value_lazy): Remove reference to the old optimized_out
707 (allocate_optimized_out_value): Use
708 mark_value_bytes_optimized_out.
709 (require_not_optimized_out): Adjust to check whether the
710 optimized_out vec is empty.
711 (ranges_copy_adjusted): New function, factored out from
712 value_contents_copy_raw.
713 (value_contents_copy_raw): Also copy the optimized out ranges.
714 Assert the destination ranges aren't optimized out.
715 (value_contents_copy): Update comment, remove call to
716 require_not_optimized_out.
717 (value_contents_equal): Adjust to check whether the optimized_out
719 (set_value_optimized_out, value_optimized_out_const): Delete.
720 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
722 (value_entirely_optimized_out, value_bits_valid): Delete.
723 (value_copy): Take a VEC copy of the 'optimized_out' field.
724 (value_primitive_field): Remove special handling of optimized out.
725 (value_fetch_lazy): Assert that lazy values have no unavailable
726 regions. Use value_bits_any_optimized_out. Remove some special
727 handling for optimized out values.
728 * value.h: Add intro comment about <optimized out> and
730 (struct lval_funcs): Remove check_validity and check_any_valid
732 (set_value_optimized_out, value_optimized_out_const): Remove.
733 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
735 (value_bits_any_optimized_out): New declaration.
736 (value_bits_valid): Delete declaration.
737 (value_available_contents_eq): Rename to ...
738 (value_contents_eq): ... this, and extend comments.
740 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
742 Fix -fsanitize=address on unreadable inferior strings.
743 * valprint.c (val_print_string): Fix access before BUFFER.
745 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
747 * target.c (target_struct_size): Remove.
748 (target_struct_allocsize): Remove.
749 (DEFAULT_ALLOCSIZE): Remove.
750 (target_ops_p): New typedef.
751 (DEF_VEC_P (target_ops_p)): New vector type.
752 (target_structs): Change type to VEC (target_ops_p).
753 (add_target_with_completer): Replace "push" code by VEC_safe_push.
754 (find_default_run_target): Rewrite for loop following changes to
757 2014-08-19 Joel Brobecker <brobecker@adacore.com>
759 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
760 Adjust code accordingly. Adjust function description comment.
762 2014-08-19 Yao Qi <yao@codesourcery.com>
764 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
767 2014-08-19 Alan Modra <amodra@gmail.com>
769 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
770 * config.in: Regenerate.
771 * configure: Regenerate.
773 2014-08-19 Tom Tromey <tromey@redhat.com>
774 Gary Benson <gbenson@redhat.com>
776 * common/common-debug.h: New file.
777 * common/common-debug.c: Likewise.
779 * Makefile.in (SFILES): Add common/common-debug.c.
780 (HFILES_NO_SRCDIR): Add common/common-debug.h.
781 (COMMON_OBS): Add common-debug.o and debug.o.
782 (common-debug.o): New rule.
783 * common/common-defs.h: Include common-debug.h.
784 * common/agent.c (debug_agent_printf): New function.
785 (DEBUG_AGENT): Redefine.
786 * nat/i386-dregs.c (debug_printf): Undefine.
788 2014-08-19 Gary Benson <gbenson@redhat.com>
790 * common/common-defs.h: Include print-utils.h.
791 * utils.h: Do not include print-utils.h.
793 2014-08-19 Tom Tromey <tromey@redhat.com>
794 Gary Benson <gbenson@redhat.com>
796 * common/common-types.h: New file.
797 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
798 * common/common-defs.h: Include common-types.h.
799 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
802 2014-08-19 Tom Tromey <tromey@redhat.com>
803 Gary Benson <gbenson@redhat.com>
805 * common/errors.h: New file.
806 * common/errors.c: Likewise.
807 * Makefile.in (SFILES): Add common/errors.c.
808 (HFILES_NO_SRCDIR): Add common/errors.h.
809 (COMMON_OBS): Add errors.o.
810 (errors.o): New rule.
811 * common/common-defs.h: Include errors.h.
812 * utils.h (perror_with_name, error, verror, warning, vwarning):
814 * common/common-utils.h: (malloc_failure, internal_error):
817 2014-08-19 Gary Benson <gbenson@redhat.com>
819 * utils.c (internal_vproblem): Always print the message.
821 2014-08-18 Doug Evans <dje@google.com>
823 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
825 2014-08-18 Joel Brobecker <brobecker@adacore.com>
827 * ada-typeprint.c (type_is_full_subrange_of_target_type):
828 Return 0 if TYPE is dynamic.
829 (print_range): Add handling of dynamic ranges.
831 2014-08-18 Keven Boell <keven.boell@intel.com>
832 Joel Brobecker <brobecker@adacore.com>
834 * gdbtypes.h (struct main_type): Add field "data_location".
835 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
836 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
837 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
838 a dynamic data location.
839 (resolve_dynamic_type): Add DW_AT_data_location handling.
840 (copy_recursive, copy_type): Copy the data_location information
842 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
843 * value.c (value_from_contents_and_address): Add
844 DW_AT_data_location handling.
846 2014-08-18 Keven Boell <keven.boell@intel.com>
847 Joel Brobecker <brobecker@adacore.com>
849 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
850 field "get_object_address".
851 * dwarf2expr.c (execute_stack_op): Add handling for
852 DW_OP_push_object_address.
853 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
854 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
855 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
856 (dwarf_expr_get_obj_addr): New function.
857 (dwarf_expr_ctx_funcs): Add get_object_address field.
858 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
859 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
860 (dwarf2_evaluate_property): Add parameter "address". Use it.
861 (needs_get_obj_addr): New function.
862 (needs_frame_ctx_funcs): Add get_object_address field.
863 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
864 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
865 (resolve_dynamic_array): Likewise.
867 2014-08-18 Joel Brobecker <brobecker@adacore.com>
869 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
870 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
871 fixed value for records and unions for which some GNAT encodings
874 2014-08-18 Joel Brobecker <brobecker@adacore.com>
876 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
877 rewrite to avoid "else if" and "else" constructs. Should be
880 2014-08-18 Joel Brobecker <brobecker@adacore.com>
882 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
885 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
888 * eval.c: Update all calls to find_overload_match.
889 * valarith.c: Likewise.
890 (value_user_defined_cpp_op, value_user_defined_op): New
891 argument NOSIDE. Update all callers.
892 * valops.c (find_overload_match): New argument NOSIDE.
893 * value.h (find_overload_match): Update signature.
895 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
897 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
898 'items' methods instead of 'iteritems' method on dictionaries.
900 2014-08-15 Doug Evans <dje@google.com>
902 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
905 2014-08-15 Doug Evans <dje@google.com>
907 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
909 2014-08-15 Doug Evans <dje@google.com>
911 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
913 2014-08-15 Doug Evans <dje@google.com>
915 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
918 2014-08-15 Eli Zaretskii <eliz@gnu.org>
920 * dcache.h: Include target.h, to avoid compile time warnings.
922 2014-08-15 Joel Brobecker <brobecker@adacore.com>
924 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
925 frame_info" partial declaration.
926 * gdbarch.h: Regenerate.
928 2014-08-15 Yao Qi <yao@codesourcery.com>
930 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
931 Add parameter 'decode_for_pst_p'. Callers update.
933 2014-08-13 Yao Qi <yao@codesourcery.com>
936 * configure.ac: Use local variable 'pos'.
937 * configure: Regenerated.
939 2014-08-11 Doug Evans <dje@google.com>
941 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
942 message, it is redundant with "Reading symbols from ..." message.
944 2014-08-10 Doug Evans <xdje42@gmail.com>
946 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
948 2014-08-09 Yao Qi <yao@codesourcery.com>
951 * remote.c (remote_xfer_partial): Remove dead code.
953 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
955 * ia64-linux-tdep.c: Include "regset.h".
956 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
957 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
958 (ia64_linux_supply_fpregset): New function.
959 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
960 (ia64_linux_regset_from_core_section): New function.
961 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
964 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
966 * m68klinux-tdep.c: Include "regset.h".
967 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
968 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
969 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
970 (m68k_linux_regset_from_core_section): New function.
971 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
974 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
976 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
977 function. Move logic to...
978 (tilegx_linux_regmap): ... this new register map.
979 (tilegx_linux_regset): Refer to register map, replace supply
980 method by regcache_supply_regset, and add collect method.
981 * tilegx-tdep.h (enum tilegx_regnum): New enum value
982 TILEGX_FIRST_EASY_REGNUM.
984 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
986 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
987 that calls regcache_supply_regset and handles the EPC register
988 separately. Move main logic to...
989 (score7_linux_gregmap): ... this new register map.
990 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
991 (score7_linux_gregset): Refer to register map. Add collect method.
992 (score7_linux_regset_from_core_section): Replace
993 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
994 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
995 (struct regset): Delete unused forward declaraction.
996 (struct pt_regs): Delete structure definition.
997 (elf_gregset_t): Delete typedef.
999 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1001 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1002 (nios2_core_regset): Add collect method.
1004 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1006 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1007 platform-independent and don't write to read-only input buffer.
1008 (m32r_linux_collect_gregset): New function.
1009 (m32r_linux_gregset): Add collect method.
1011 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1013 * hppa-linux-tdep.c (greg_map): Rename to...
1014 (hppa_linux_gregmap): ... this. Also convert to
1015 regcache_map_entry format.
1016 (hppa_linux_supply_regset): Delete function.
1017 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1018 (hppa_linux_fpregmap): ... this new register map.
1019 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1020 register map, replace supply method by regcache_supply_regset, and
1021 add collect method regcache_collect_regset.
1023 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1025 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1026 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1027 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1028 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1029 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1030 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1031 (frv_linux_supply_gregset): Replace main logic by call to
1032 regcache_supply_regset, but keep clearing gr32-gr63.
1033 (frv_linux_supply_fpregset): Delete function.
1034 (frv_linux_gregset): Refer to appropriate register map and add
1035 regcache_collect_regset as the collect method.
1036 (frv_linux_fpregset): Likewise. Also exchange the supply method
1037 by regcache_supply_regset.
1039 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1041 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1042 by call to alpha_supply_int_regs.
1043 (alpha_linux_collect_gregset): New function.
1044 (alpha_linux_supply_fpregset): Replace logic by call to
1045 alpha_supply_fp_regs.
1046 (alpha_linux_collect_fpregset): New function.
1047 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1049 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1051 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1052 by call to regcache_collect_regset.
1053 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1054 instead of aarch64_linux_supply_gregset/_fpregset.
1055 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1056 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1057 header file instead.
1058 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1059 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1060 functions. Move logic to ...
1061 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1063 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1064 refer to new register maps, replace *_regset_from_core by
1065 regcache_supply_regset, and also use regcache_collect_regset.
1066 * aarch64-linux-tdep.h: Include "regset.h".
1067 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1069 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1070 macros, moved from C source file.
1071 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1072 variable declarations.
1074 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1076 * s390-linux-nat.c: Include "regset.h".
1077 (regmap_gregset): Delete macro.
1078 (s390_64_regmap_gregset): New register map for
1079 regcache_supply/_collect_regset.
1080 (s390_64_gregset): New regset.
1081 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1082 (regmap_fpregset): Delete macro.
1083 (s390_native_supply, s390_native_collect): Delete functions.
1084 (supply_gregset, fill_gregset): Replace s390-specific regmap
1085 handling by a call to regcache_supply/_collect_regset.
1086 (supply_fpregset, fill_fpregset): Call regcache_supply/
1087 _collect_regset instead of s390_native_supply/_collect.
1088 (fetch_regset, store_regset): Likewise. Also change the last
1089 parameter to a regset instead of a regmap.
1090 (s390_linux_fetch_inferior_registers)
1091 (390_linux_store_inferior_registers): Adjust last parameter in
1092 calls to fetch_regset and store_regset.
1093 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1094 (s390_gregmap): ... this. Also make static const and convert to
1095 regcache_map_entry format.
1096 (s390x_regmap_gregset): Delete.
1097 (s390_regmap_fpregset): Rename to...
1098 (s390_fpregmap): ... this. Make static const and convert to
1099 regcache_map_entry format.
1100 (s390_regmap_upper, s390_regmap_last_break)
1101 (s390x_regmap_last_break, s390_regmap_system_call)
1102 (s390_regmap_tdb): Likewise.
1103 (s390_supply_regset, s390_collect_regset): Remove functions.
1104 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1106 (s390_gregset, s390_fpregset, s390_upper_regset)
1107 (s390_last_break_regset, s390x_last_break_regset)
1108 (s390_system_call_regset, s390_tdb_regset): Make global and
1109 replace s390_supply/_collect_regset by regcache_supply/
1111 (s390x_gregset): Delete.
1112 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1113 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1114 (s390_regmap_fpregset, s390_regmap_last_break)
1115 (s390x_regmap_last_break, s390_regmap_system_call)
1116 (s390_regmap_tdb): Delete global variable declarations.
1117 (s390_gregset, s390_fpregset, s390_last_break_regset)
1118 (s390x_last_break_regset, s390_system_call_regset)
1119 (s390_tdb_regset): New global variable declarations.
1121 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1123 * regcache.c: Include "regset.h".
1124 (regcache_transfer_regset): New local function.
1125 (regcache_supply_regset, regcache_collect_regset): New functions.
1126 * regcache.h (struct regcache_map_entry): New structure.
1127 (REGCACHE_MAP_SKIP): New enum value.
1128 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1130 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1132 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1133 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1134 (ppc_linux_collect_gregset ): Likewise.
1135 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1136 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1137 (ppc_collect_vrregset): Likewise.
1138 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1141 2014-08-07 Yao Qi <yao@codesourcery.com>
1143 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1144 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1145 * remote.c (remote_read_bytes): Likewise.
1147 2014-08-07 Yao Qi <yao@codesourcery.com>
1149 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1151 2014-08-07 Yao Qi <yao@codesourcery.com>
1154 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1155 TARGET_XFER_OK instead of 0.
1157 2014-08-07 Gary Benson <gbenson@redhat.com>
1159 * common/common-defs.h: Include errno.h.
1160 * defs.h: Do not include errno.h.
1161 * ada-typeprint.c: Likewise.
1162 * c-typeprint.c: Likewise.
1163 * core-regset.c: Likewise.
1164 * corefile.c: Likewise.
1165 * corelow.c: Likewise.
1166 * event-loop.c: Likewise.
1167 * f-typeprint.c: Likewise.
1168 * gnu-nat.c: Likewise.
1169 * go32-nat.c: Likewise.
1170 * i386gnu-nat.c: Likewise.
1171 * m2-typeprint.c: Likewise.
1172 * nat/linux-btrace.c: Likewise.
1173 * p-typeprint.c: Likewise.
1174 * procfs.c: Likewise.
1175 * remote-sim.c: Likewise.
1176 * rs6000-nat.c: Likewise.
1177 * target.c: Likewise.
1178 * typeprint.c: Likewise.
1179 * ui-file.c: Likewise.
1180 * valops.c: Likewise.
1181 * valprint.c: Likewise.
1183 2014-08-07 Gary Benson <gbenson@redhat.com>
1185 * common/common-defs.h: Include string.h.
1186 * aarch64-tdep.c: Do not include string.h.
1187 * ada-exp.y: Likewise.
1188 * ada-lang.c: Likewise.
1189 * ada-lex.l: Likewise.
1190 * ada-typeprint.c: Likewise.
1191 * ada-valprint.c: Likewise.
1192 * aix-thread.c: Likewise.
1193 * alpha-linux-tdep.c: Likewise.
1194 * alpha-mdebug-tdep.c: Likewise.
1195 * alpha-nat.c: Likewise.
1196 * alpha-osf1-tdep.c: Likewise.
1197 * alpha-tdep.c: Likewise.
1198 * alphanbsd-tdep.c: Likewise.
1199 * amd64-dicos-tdep.c: Likewise.
1200 * amd64-linux-tdep.c: Likewise.
1201 * amd64-nat.c: Likewise.
1202 * amd64-sol2-tdep.c: Likewise.
1203 * amd64fbsd-tdep.c: Likewise.
1204 * amd64obsd-tdep.c: Likewise.
1205 * arch-utils.c: Likewise.
1206 * arm-linux-nat.c: Likewise.
1207 * arm-linux-tdep.c: Likewise.
1208 * arm-tdep.c: Likewise.
1209 * arm-wince-tdep.c: Likewise.
1210 * armbsd-tdep.c: Likewise.
1211 * armnbsd-nat.c: Likewise.
1212 * armnbsd-tdep.c: Likewise.
1213 * armobsd-tdep.c: Likewise.
1214 * avr-tdep.c: Likewise.
1215 * ax-gdb.c: Likewise.
1216 * ax-general.c: Likewise.
1217 * bcache.c: Likewise.
1218 * bfin-tdep.c: Likewise.
1219 * breakpoint.c: Likewise.
1220 * build-id.c: Likewise.
1221 * buildsym.c: Likewise.
1222 * c-exp.y: Likewise.
1223 * c-lang.c: Likewise.
1224 * c-typeprint.c: Likewise.
1225 * c-valprint.c: Likewise.
1226 * charset.c: Likewise.
1227 * cli-out.c: Likewise.
1228 * cli/cli-cmds.c: Likewise.
1229 * cli/cli-decode.c: Likewise.
1230 * cli/cli-dump.c: Likewise.
1231 * cli/cli-interp.c: Likewise.
1232 * cli/cli-logging.c: Likewise.
1233 * cli/cli-script.c: Likewise.
1234 * cli/cli-setshow.c: Likewise.
1235 * cli/cli-utils.c: Likewise.
1236 * coffread.c: Likewise.
1237 * common/agent.c: Likewise.
1238 * common/buffer.c: Likewise.
1239 * common/buffer.h: Likewise.
1240 * common/common-utils.c: Likewise.
1241 * common/filestuff.c: Likewise.
1242 * common/filestuff.c: Likewise.
1243 * common/format.c: Likewise.
1244 * common/print-utils.c: Likewise.
1245 * common/rsp-low.c: Likewise.
1246 * common/signals.c: Likewise.
1247 * common/vec.h: Likewise.
1248 * common/xml-utils.c: Likewise.
1249 * core-regset.c: Likewise.
1250 * corefile.c: Likewise.
1251 * corelow.c: Likewise.
1252 * cp-abi.c: Likewise.
1253 * cp-name-parser.y: Likewise.
1254 * cp-support.c: Likewise.
1255 * cp-valprint.c: Likewise.
1256 * cris-tdep.c: Likewise.
1257 * d-exp.y: Likewise.
1258 * darwin-nat.c: Likewise.
1259 * dbxread.c: Likewise.
1260 * dcache.c: Likewise.
1261 * demangle.c: Likewise.
1262 * dicos-tdep.c: Likewise.
1263 * disasm.c: Likewise.
1264 * doublest.c: Likewise.
1265 * dsrec.c: Likewise.
1266 * dummy-frame.c: Likewise.
1267 * dwarf2-frame.c: Likewise.
1268 * dwarf2loc.c: Likewise.
1269 * dwarf2read.c: Likewise.
1270 * elfread.c: Likewise.
1271 * environ.c: Likewise.
1273 * event-loop.c: Likewise.
1274 * exceptions.c: Likewise.
1276 * expprint.c: Likewise.
1277 * f-exp.y: Likewise.
1278 * f-lang.c: Likewise.
1279 * f-typeprint.c: Likewise.
1280 * f-valprint.c: Likewise.
1281 * fbsd-nat.c: Likewise.
1282 * findcmd.c: Likewise.
1283 * findvar.c: Likewise.
1284 * fork-child.c: Likewise.
1285 * frame.c: Likewise.
1286 * frv-linux-tdep.c: Likewise.
1287 * frv-tdep.c: Likewise.
1289 * gdb_bfd.c: Likewise.
1290 * gdbarch.c: Likewise.
1291 * gdbarch.sh: Likewise.
1292 * gdbtypes.c: Likewise.
1293 * gnu-nat.c: Likewise.
1294 * gnu-v2-abi.c: Likewise.
1295 * gnu-v3-abi.c: Likewise.
1296 * go-exp.y: Likewise.
1297 * go-lang.c: Likewise.
1298 * go32-nat.c: Likewise.
1299 * guile/guile.c: Likewise.
1300 * guile/scm-auto-load.c: Likewise.
1301 * hppa-hpux-tdep.c: Likewise.
1302 * hppa-linux-nat.c: Likewise.
1303 * hppanbsd-tdep.c: Likewise.
1304 * hppaobsd-tdep.c: Likewise.
1305 * i386-cygwin-tdep.c: Likewise.
1306 * i386-dicos-tdep.c: Likewise.
1307 * i386-linux-tdep.c: Likewise.
1308 * i386-nto-tdep.c: Likewise.
1309 * i386-sol2-tdep.c: Likewise.
1310 * i386-tdep.c: Likewise.
1311 * i386bsd-tdep.c: Likewise.
1312 * i386gnu-nat.c: Likewise.
1313 * i386nbsd-tdep.c: Likewise.
1314 * i386obsd-tdep.c: Likewise.
1315 * i387-tdep.c: Likewise.
1316 * ia64-libunwind-tdep.c: Likewise.
1317 * ia64-linux-nat.c: Likewise.
1318 * inf-child.c: Likewise.
1319 * inf-ptrace.c: Likewise.
1320 * inf-ttrace.c: Likewise.
1321 * infcall.c: Likewise.
1322 * infcmd.c: Likewise.
1323 * inflow.c: Likewise.
1324 * infrun.c: Likewise.
1325 * interps.c: Likewise.
1326 * iq2000-tdep.c: Likewise.
1327 * irix5-nat.c: Likewise.
1328 * jv-exp.y: Likewise.
1329 * jv-lang.c: Likewise.
1330 * jv-typeprint.c: Likewise.
1331 * jv-valprint.c: Likewise.
1332 * language.c: Likewise.
1333 * linux-fork.c: Likewise.
1334 * linux-nat.c: Likewise.
1335 * lm32-tdep.c: Likewise.
1336 * m2-exp.y: Likewise.
1337 * m2-typeprint.c: Likewise.
1338 * m32c-tdep.c: Likewise.
1339 * m32r-linux-nat.c: Likewise.
1340 * m32r-linux-tdep.c: Likewise.
1341 * m32r-rom.c: Likewise.
1342 * m32r-tdep.c: Likewise.
1343 * m68hc11-tdep.c: Likewise.
1344 * m68k-tdep.c: Likewise.
1345 * m68kbsd-tdep.c: Likewise.
1346 * m68klinux-nat.c: Likewise.
1347 * m68klinux-tdep.c: Likewise.
1348 * m88k-tdep.c: Likewise.
1349 * machoread.c: Likewise.
1350 * macrocmd.c: Likewise.
1352 * mdebugread.c: Likewise.
1353 * mem-break.c: Likewise.
1354 * memattr.c: Likewise.
1355 * memory-map.c: Likewise.
1356 * mep-tdep.c: Likewise.
1357 * mi/mi-cmd-break.c: Likewise.
1358 * mi/mi-cmd-disas.c: Likewise.
1359 * mi/mi-cmd-env.c: Likewise.
1360 * mi/mi-cmd-stack.c: Likewise.
1361 * mi/mi-cmd-var.c: Likewise.
1362 * mi/mi-cmds.c: Likewise.
1363 * mi/mi-console.c: Likewise.
1364 * mi/mi-getopt.c: Likewise.
1365 * mi/mi-interp.c: Likewise.
1366 * mi/mi-main.c: Likewise.
1367 * mi/mi-parse.c: Likewise.
1368 * microblaze-rom.c: Likewise.
1369 * microblaze-tdep.c: Likewise.
1370 * mingw-hdep.c: Likewise.
1371 * minidebug.c: Likewise.
1372 * minsyms.c: Likewise.
1373 * mips-irix-tdep.c: Likewise.
1374 * mips-linux-tdep.c: Likewise.
1375 * mips-tdep.c: Likewise.
1376 * mips64obsd-tdep.c: Likewise.
1377 * mipsnbsd-tdep.c: Likewise.
1378 * mipsread.c: Likewise.
1379 * mn10300-linux-tdep.c: Likewise.
1380 * mn10300-tdep.c: Likewise.
1381 * monitor.c: Likewise.
1382 * moxie-tdep.c: Likewise.
1383 * mt-tdep.c: Likewise.
1384 * nat/linux-btrace.c: Likewise.
1385 * nat/linux-osdata.c: Likewise.
1386 * nat/linux-procfs.c: Likewise.
1387 * nat/linux-ptrace.c: Likewise.
1388 * nat/linux-waitpid.c: Likewise.
1389 * nbsd-tdep.c: Likewise.
1390 * nios2-linux-tdep.c: Likewise.
1391 * nto-procfs.c: Likewise.
1392 * nto-tdep.c: Likewise.
1393 * objc-lang.c: Likewise.
1394 * objfiles.c: Likewise.
1395 * opencl-lang.c: Likewise.
1396 * osabi.c: Likewise.
1397 * osdata.c: Likewise.
1398 * p-exp.y: Likewise.
1399 * p-lang.c: Likewise.
1400 * p-typeprint.c: Likewise.
1401 * parse.c: Likewise.
1402 * posix-hdep.c: Likewise.
1403 * ppc-linux-nat.c: Likewise.
1404 * ppc-sysv-tdep.c: Likewise.
1405 * ppcfbsd-tdep.c: Likewise.
1406 * ppcnbsd-tdep.c: Likewise.
1407 * ppcobsd-tdep.c: Likewise.
1408 * printcmd.c: Likewise.
1409 * procfs.c: Likewise.
1410 * prologue-value.c: Likewise.
1411 * python/py-auto-load.c: Likewise.
1412 * python/py-gdb-readline.c: Likewise.
1413 * ravenscar-thread.c: Likewise.
1414 * regcache.c: Likewise.
1415 * registry.c: Likewise.
1416 * remote-fileio.c: Likewise.
1417 * remote-m32r-sdi.c: Likewise.
1418 * remote-mips.c: Likewise.
1419 * remote-notif.c: Likewise.
1420 * remote-sim.c: Likewise.
1421 * remote.c: Likewise.
1422 * reverse.c: Likewise.
1423 * rs6000-aix-tdep.c: Likewise.
1424 * ser-base.c: Likewise.
1425 * ser-go32.c: Likewise.
1426 * ser-mingw.c: Likewise.
1427 * ser-pipe.c: Likewise.
1428 * ser-tcp.c: Likewise.
1429 * ser-unix.c: Likewise.
1430 * serial.c: Likewise.
1431 * sh-tdep.c: Likewise.
1432 * sh64-tdep.c: Likewise.
1433 * shnbsd-tdep.c: Likewise.
1435 * sol-thread.c: Likewise.
1436 * solib-dsbt.c: Likewise.
1437 * solib-frv.c: Likewise.
1438 * solib-osf.c: Likewise.
1439 * solib-som.c: Likewise.
1440 * solib-spu.c: Likewise.
1441 * solib-target.c: Likewise.
1442 * solib.c: Likewise.
1443 * somread.c: Likewise.
1444 * source.c: Likewise.
1445 * sparc-nat.c: Likewise.
1446 * sparc-sol2-tdep.c: Likewise.
1447 * sparc-tdep.c: Likewise.
1448 * sparc64-tdep.c: Likewise.
1449 * sparc64fbsd-tdep.c: Likewise.
1450 * sparc64nbsd-tdep.c: Likewise.
1451 * sparcnbsd-tdep.c: Likewise.
1452 * spu-linux-nat.c: Likewise.
1453 * spu-multiarch.c: Likewise.
1454 * spu-tdep.c: Likewise.
1455 * stabsread.c: Likewise.
1456 * stack.c: Likewise.
1457 * std-regs.c: Likewise.
1458 * symfile.c: Likewise.
1459 * symmisc.c: Likewise.
1460 * symtab.c: Likewise.
1461 * target.c: Likewise.
1462 * thread.c: Likewise.
1463 * tilegx-linux-nat.c: Likewise.
1464 * tilegx-tdep.c: Likewise.
1466 * tracepoint.c: Likewise.
1467 * tui/tui-command.c: Likewise.
1468 * tui/tui-data.c: Likewise.
1469 * tui/tui-disasm.c: Likewise.
1470 * tui/tui-file.c: Likewise.
1471 * tui/tui-layout.c: Likewise.
1472 * tui/tui-out.c: Likewise.
1473 * tui/tui-regs.c: Likewise.
1474 * tui/tui-source.c: Likewise.
1475 * tui/tui-stack.c: Likewise.
1476 * tui/tui-win.c: Likewise.
1477 * tui/tui-windata.c: Likewise.
1478 * tui/tui-winsource.c: Likewise.
1479 * typeprint.c: Likewise.
1480 * ui-file.c: Likewise.
1481 * ui-out.c: Likewise.
1482 * user-regs.c: Likewise.
1483 * utils.c: Likewise.
1484 * v850-tdep.c: Likewise.
1485 * valarith.c: Likewise.
1486 * valops.c: Likewise.
1487 * valprint.c: Likewise.
1488 * value.c: Likewise.
1489 * varobj.c: Likewise.
1490 * vax-tdep.c: Likewise.
1491 * vaxnbsd-tdep.c: Likewise.
1492 * vaxobsd-tdep.c: Likewise.
1493 * windows-nat.c: Likewise.
1494 * xcoffread.c: Likewise.
1495 * xml-support.c: Likewise.
1496 * xstormy16-tdep.c: Likewise.
1497 * xtensa-linux-nat.c: Likewise.
1499 2014-08-07 Gary Benson <gbenson@redhat.com>
1501 * common/common-defs.h: Include gdb_assert.h.
1502 * aarch64-tdep.c: Do not include gdb_assert.h.
1503 * addrmap.c: Likewise.
1504 * aix-thread.c: Likewise.
1505 * alpha-linux-tdep.c: Likewise.
1506 * alpha-mdebug-tdep.c: Likewise.
1507 * alphanbsd-tdep.c: Likewise.
1508 * amd64-nat.c: Likewise.
1509 * amd64-tdep.c: Likewise.
1510 * amd64bsd-nat.c: Likewise.
1511 * amd64fbsd-nat.c: Likewise.
1512 * amd64fbsd-tdep.c: Likewise.
1513 * amd64nbsd-nat.c: Likewise.
1514 * amd64nbsd-tdep.c: Likewise.
1515 * amd64obsd-nat.c: Likewise.
1516 * amd64obsd-tdep.c: Likewise.
1517 * arch-utils.c: Likewise.
1518 * arm-tdep.c: Likewise.
1519 * armbsd-tdep.c: Likewise.
1521 * bcache.c: Likewise.
1522 * bfin-tdep.c: Likewise.
1523 * blockframe.c: Likewise.
1524 * breakpoint.c: Likewise.
1525 * bsd-kvm.c: Likewise.
1526 * bsd-uthread.c: Likewise.
1527 * buildsym.c: Likewise.
1528 * c-exp.y: Likewise.
1529 * c-lang.c: Likewise.
1530 * charset.c: Likewise.
1531 * cleanups.c: Likewise.
1532 * cli-out.c: Likewise.
1533 * cli/cli-decode.c: Likewise.
1534 * cli/cli-dump.c: Likewise.
1535 * cli/cli-logging.c: Likewise.
1536 * cli/cli-script.c: Likewise.
1537 * cli/cli-utils.c: Likewise.
1538 * coffread.c: Likewise.
1539 * common/common-utils.c: Likewise.
1540 * common/queue.h: Likewise.
1541 * common/signals.c: Likewise.
1542 * common/vec.h: Likewise.
1543 * complaints.c: Likewise.
1544 * completer.c: Likewise.
1545 * corelow.c: Likewise.
1546 * cp-abi.c: Likewise.
1547 * cp-name-parser.y: Likewise.
1548 * cp-namespace.c: Likewise.
1549 * cp-support.c: Likewise.
1550 * cris-tdep.c: Likewise.
1551 * dbxread.c: Likewise.
1552 * dictionary.c: Likewise.
1553 * doublest.c: Likewise.
1554 * dsrec.c: Likewise.
1555 * dummy-frame.c: Likewise.
1556 * dwarf2-frame-tailcall.c: Likewise.
1557 * dwarf2-frame.c: Likewise.
1558 * dwarf2expr.c: Likewise.
1559 * dwarf2loc.c: Likewise.
1560 * dwarf2read.c: Likewise.
1562 * event-loop.c: Likewise.
1563 * exceptions.c: Likewise.
1564 * expprint.c: Likewise.
1565 * f-valprint.c: Likewise.
1566 * fbsd-nat.c: Likewise.
1567 * findvar.c: Likewise.
1568 * frame-unwind.c: Likewise.
1569 * frame.c: Likewise.
1570 * frv-tdep.c: Likewise.
1571 * gcore.c: Likewise.
1572 * gdb-dlfcn.c: Likewise.
1573 * gdb_bfd.c: Likewise.
1574 * gdbarch.c: Likewise.
1575 * gdbarch.sh: Likewise.
1576 * gdbtypes.c: Likewise.
1577 * gnu-nat.c: Likewise.
1578 * gnu-v3-abi.c: Likewise.
1579 * go-lang.c: Likewise.
1580 * guile/scm-exception.c: Likewise.
1581 * guile/scm-gsmob.c: Likewise.
1582 * guile/scm-lazy-string.c: Likewise.
1583 * guile/scm-math.c: Likewise.
1584 * guile/scm-pretty-print.c: Likewise.
1585 * guile/scm-safe-call.c: Likewise.
1586 * guile/scm-utils.c: Likewise.
1587 * guile/scm-value.c: Likewise.
1588 * h8300-tdep.c: Likewise.
1589 * hppa-hpux-nat.c: Likewise.
1590 * hppa-tdep.c: Likewise.
1591 * hppanbsd-tdep.c: Likewise.
1592 * hppaobsd-tdep.c: Likewise.
1593 * i386-darwin-nat.c: Likewise.
1594 * i386-darwin-tdep.c: Likewise.
1595 * i386-nto-tdep.c: Likewise.
1596 * i386-tdep.c: Likewise.
1597 * i386bsd-nat.c: Likewise.
1598 * i386fbsd-tdep.c: Likewise.
1599 * i386gnu-nat.c: Likewise.
1600 * i386nbsd-tdep.c: Likewise.
1601 * i386obsd-tdep.c: Likewise.
1602 * i387-tdep.c: Likewise.
1603 * ia64-libunwind-tdep.c: Likewise.
1604 * ia64-tdep.c: Likewise.
1605 * inf-ptrace.c: Likewise.
1606 * inf-ttrace.c: Likewise.
1607 * infcall.c: Likewise.
1608 * infcmd.c: Likewise.
1609 * infrun.c: Likewise.
1610 * inline-frame.c: Likewise.
1611 * interps.c: Likewise.
1612 * jv-lang.c: Likewise.
1613 * jv-typeprint.c: Likewise.
1614 * linux-fork.c: Likewise.
1615 * linux-nat.c: Likewise.
1616 * linux-thread-db.c: Likewise.
1617 * m32c-tdep.c: Likewise.
1618 * m32r-linux-nat.c: Likewise.
1619 * m32r-tdep.c: Likewise.
1620 * m68k-tdep.c: Likewise.
1621 * m68kbsd-nat.c: Likewise.
1622 * m68kbsd-tdep.c: Likewise.
1623 * m88k-tdep.c: Likewise.
1624 * machoread.c: Likewise.
1625 * macroexp.c: Likewise.
1626 * macrotab.c: Likewise.
1627 * maint.c: Likewise.
1628 * mdebugread.c: Likewise.
1629 * memory-map.c: Likewise.
1630 * mep-tdep.c: Likewise.
1631 * mi/mi-common.c: Likewise.
1632 * microblaze-tdep.c: Likewise.
1633 * mingw-hdep.c: Likewise.
1634 * mips-linux-nat.c: Likewise.
1635 * mips-linux-tdep.c: Likewise.
1636 * mips-tdep.c: Likewise.
1637 * mips64obsd-tdep.c: Likewise.
1638 * mipsnbsd-tdep.c: Likewise.
1639 * mn10300-linux-tdep.c: Likewise.
1640 * mn10300-tdep.c: Likewise.
1641 * moxie-tdep.c: Likewise.
1642 * mt-tdep.c: Likewise.
1643 * nat/linux-btrace.c: Likewise.
1644 * nat/linux-osdata.c: Likewise.
1645 * nat/linux-ptrace.c: Likewise.
1646 * nat/mips-linux-watch.c: Likewise.
1647 * nios2-linux-tdep.c: Likewise.
1648 * nios2-tdep.c: Likewise.
1649 * objc-lang.c: Likewise.
1650 * objfiles.c: Likewise.
1651 * obsd-nat.c: Likewise.
1652 * opencl-lang.c: Likewise.
1653 * osabi.c: Likewise.
1654 * parse.c: Likewise.
1655 * ppc-linux-nat.c: Likewise.
1656 * ppc-sysv-tdep.c: Likewise.
1657 * ppcfbsd-nat.c: Likewise.
1658 * ppcfbsd-tdep.c: Likewise.
1659 * ppcnbsd-nat.c: Likewise.
1660 * ppcnbsd-tdep.c: Likewise.
1661 * ppcobsd-nat.c: Likewise.
1662 * ppcobsd-tdep.c: Likewise.
1663 * printcmd.c: Likewise.
1664 * procfs.c: Likewise.
1665 * prologue-value.c: Likewise.
1666 * psymtab.c: Likewise.
1667 * python/py-lazy-string.c: Likewise.
1668 * python/py-value.c: Likewise.
1669 * regcache.c: Likewise.
1670 * reggroups.c: Likewise.
1671 * registry.c: Likewise.
1672 * remote-sim.c: Likewise.
1673 * remote.c: Likewise.
1674 * rs6000-aix-tdep.c: Likewise.
1675 * rs6000-tdep.c: Likewise.
1676 * s390-linux-tdep.c: Likewise.
1677 * score-tdep.c: Likewise.
1678 * ser-base.c: Likewise.
1679 * ser-mingw.c: Likewise.
1680 * sh-tdep.c: Likewise.
1681 * sh64-tdep.c: Likewise.
1682 * solib-darwin.c: Likewise.
1683 * solib-spu.c: Likewise.
1684 * solib-svr4.c: Likewise.
1685 * source.c: Likewise.
1686 * sparc-nat.c: Likewise.
1687 * sparc-sol2-tdep.c: Likewise.
1688 * sparc-tdep.c: Likewise.
1689 * sparc64-sol2-tdep.c: Likewise.
1690 * sparc64-tdep.c: Likewise.
1691 * sparc64fbsd-tdep.c: Likewise.
1692 * sparc64nbsd-tdep.c: Likewise.
1693 * sparc64obsd-tdep.c: Likewise.
1694 * sparcnbsd-tdep.c: Likewise.
1695 * sparcobsd-tdep.c: Likewise.
1696 * spu-multiarch.c: Likewise.
1697 * spu-tdep.c: Likewise.
1698 * stabsread.c: Likewise.
1699 * stack.c: Likewise.
1700 * symfile.c: Likewise.
1701 * symtab.c: Likewise.
1702 * target-descriptions.c: Likewise.
1703 * target-memory.c: Likewise.
1704 * target.c: Likewise.
1705 * tic6x-linux-tdep.c: Likewise.
1706 * tic6x-tdep.c: Likewise.
1707 * tilegx-linux-nat.c: Likewise.
1708 * tilegx-tdep.c: Likewise.
1710 * tramp-frame.c: Likewise.
1711 * tui/tui-out.c: Likewise.
1712 * tui/tui-winsource.c: Likewise.
1713 * ui-out.c: Likewise.
1714 * user-regs.c: Likewise.
1715 * utils.c: Likewise.
1716 * v850-tdep.c: Likewise.
1717 * valops.c: Likewise.
1718 * value.c: Likewise.
1719 * varobj.c: Likewise.
1720 * vax-nat.c: Likewise.
1721 * xml-syscall.c: Likewise.
1722 * xml-tdesc.c: Likewise.
1723 * xstormy16-tdep.c: Likewise.
1724 * xtensa-linux-nat.c: Likewise.
1725 * xtensa-tdep.c: Likewise.
1727 2014-08-07 Gary Benson <gbenson@redhat.com>
1729 * common/common-defs.h: Include common-utils.h.
1730 * defs.h: Do not include common-utils.h.
1731 * common/gdb_assert.h: Likewise.
1732 * darwin-nat.h: Likewise.
1733 * nat/linux-btrace.c: Likewise.
1734 * target/waitstatus.h: Likewise.
1736 2014-08-07 Gary Benson <gbenson@redhat.com>
1738 * common/common-defs.h: Include ptid.h.
1739 * defs.h: Do not include ptid.h.
1740 * inferior.h: Likewise.
1741 * infrun.h: Likewise.
1742 * nat/linux-btrace.h: Likewise.
1743 * nat/linux-osdata.h: Likewise.
1744 * target/waitstatus.h: Likewise.
1746 2014-08-07 Gary Benson <gbenson@redhat.com>
1748 * common/common-defs.h: Include gdb_locale.h.
1749 * defs.h: Do not include gdb_locale.h.
1751 2014-08-07 Gary Benson <gbenson@redhat.com>
1753 * common/common-defs.h: Include gdb/signals.h.
1754 * defs.h: Do not include gdb/signals.h.
1756 2014-08-07 Gary Benson <gbenson@redhat.com>
1758 * common/common-defs.h: Include pathmax.h.
1759 * defs.h: Do not include pathmax.h.
1761 2014-08-07 Gary Benson <gbenson@redhat.com>
1763 * common/common-defs.h: Include libiberty.h.
1764 * defs.h: Do not include libiberty.h.
1765 * common/queue.h: Likewise.
1766 * cp-name-parser.y: Likewise.
1767 * mi/mi-cmd-catch.c: Likewise.
1768 * python/python.c: Likewise.
1770 2014-08-07 Gary Benson <gbenson@redhat.com>
1772 * common/common-defs.h: Include ansidecl.h.
1773 * defs.h: Do not include ansidecl.h.
1774 * common/buffer.h: Likewise.
1775 * common/common-utils.h: Likewise.
1777 2014-08-07 Gary Benson <gbenson@redhat.com>
1779 * common/common-defs.h: Include stddef.h.
1780 * defs.h: Do not include stddef.h.
1781 * common/common-utils.h: Likewise.
1782 * amd64fbsd-nat.c: Likewise.
1783 * bcache.c: Likewise.
1784 * charset.c: Likewise.
1785 * common/buffer.h: Likewise.
1786 * common/vec.h: Likewise.
1787 * i386bsd-nat.c: Likewise.
1788 * nat/linux-btrace.h: Likewise.
1789 * ppcfbsd-nat.c: Likewise.
1790 * ppcnbsd-tdep.h: Likewise.
1791 * ppcobsd-nat.c: Likewise.
1792 * ppcobsd-tdep.h: Likewise.
1793 * python/py-gdb-readline.c: Likewise.
1795 2014-08-07 Gary Benson <gbenson@redhat.com>
1797 * common/common-defs.h: Include stdarg.h.
1798 * defs.h: Do not include stdarg.h.
1799 * ada-lang.c: Likewise.
1800 * common/common-utils.h: Likewise.
1801 * guile/scm-string.c: Likewise.
1802 * guile/scm-utils.c: Likewise.
1803 * m32c-tdep.c: Likewise.
1805 2014-08-07 Gary Benson <gbenson@redhat.com>
1807 * common/common-defs.h: Include stdlib.h.
1808 * defs.h: Do not include stdlib.h.
1809 * addrmap.c: Likewise.
1810 * bcache.c: Likewise.
1811 * common/buffer.c: Likewise.
1812 * common/common-utils.c: Likewise.
1813 * cp-name-parser.y: Likewise.
1814 * go32-nat.c: Likewise.
1815 * mn10300-linux-tdep.c: Likewise.
1816 * nat/linux-osdata.c: Likewise.
1817 * tui/tui.c: Likewise.
1818 * windows-nat.c: Likewise.
1820 2014-08-07 Gary Benson <gbenson@redhat.com>
1822 * common/common-defs.h: Include stdio.h.
1823 * defs.h: Do not include stdio.h.
1824 * ada-lang.c: Likewise.
1825 * common/buffer.c: Likewise.
1826 * common/common-utils.c: Likewise.
1827 * cp-name-parser.y: Likewise.
1828 * gnu-nat.c: Likewise.
1829 * go32-nat.c: Likewise.
1830 * i386gnu-nat.c: Likewise.
1831 * proc-api.c: Likewise.
1832 * proc-events.c: Likewise.
1833 * proc-flags.c: Likewise.
1834 * proc-why.c: Likewise.
1835 * python/python-internal.h: Likewise.
1836 * target-memory.c: Likewise.
1837 * tui/tui-io.c: Likewise.
1838 * tui/tui.c: Likewise.
1840 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1842 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1843 (scan_dyntag_auxv): Same.
1845 2014-08-06 Yao Qi <yao@codesourcery.com>
1847 * amd64-linux-nat.c: Remove duplicated include
1849 * i386-linux-nat.c: Likewise.
1851 2014-08-06 Yao Qi <yao@codesourcery.com>
1853 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1854 operand" with "Special opcode" in comments.
1856 2014-08-05 Gary Benson <gbenson@redhat.com>
1858 * interps.c (initialize_interps): Remove prototype.
1859 (interpreter_initialized): Remove static global.
1860 (interp_add): Do not call initialize_interps.
1861 (initialize_interps): Remove function.
1863 2014-08-05 Gary Benson <gbenson@redhat.com>
1865 * utils.c (vwarning): Remove spurious va_end.
1867 2014-08-05 Alan Modra <amodra@gmail.com>
1869 * charset.c (convert_between_encodings): Cast result of obstack_base.
1870 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1871 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1872 (read_unwind_info): Use size_t for some locals.
1873 * jit.c (finalize_symtab): Likewise.
1874 * utils.c (hashtab_obstack_allocate): Likewise.
1875 * symmisc.c (print_objfile_statistics): Update format strings.
1877 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1879 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1880 (Changes in GDB 7.8): ... here.
1882 2014-08-04 Tom Tromey <tromey@redhat.com>
1884 * target.c (set_targetdebug): New function.
1885 (initialize_targets): Pass set_targetdebug when creating "set
1888 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1890 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1891 if detecting a variable-sized field that is not the last field.
1892 Fix struct type length computation.
1894 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1896 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1899 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1901 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1902 Remove "+ 8" offset in computation of CHAIN_VMA.
1904 2014-07-31 Doug Evans <dje@google.com>
1906 * inflow.c (child_terminal_inferior): Add comment.
1907 (child_terminal_ours_for_output): Add comment.
1908 (child_terminal_ours): Add comment.
1909 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1910 (linux_nat_terminal_ours): Add comment.
1912 2014-07-31 Gary Benson <gbenson@redhat.com>
1914 * common/btrace-common.h: Do not include defs.h or server.h.
1915 * nat/mips-linux-watch.h: Likewise.
1916 * gdb-dlfcn.h: Do not include defs.h.
1917 * tracefile.h: Likewise.
1919 2014-07-30 Roland McGrath <mcgrathr@google.com>
1921 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1923 2014-07-30 Tom Tromey <tromey@redhat.com>
1925 * bsd-kvm.c (bsd_kvm_open): Constify.
1926 * corelow.c (core_open): Constify.
1927 * ctf.c (ctf_open): Constify.
1928 * dbug-rom.c (dbug_open): Constify.
1929 * exec.c (exec_open): Constify.
1930 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1931 * microblaze-rom.c (picobug_open): Constify.
1932 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1934 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1935 * record-btrace.c (record_btrace_open): Constify.
1936 * record-full.c (record_full_core_open_1, record_full_open_1)
1937 (record_full_open): Constify.
1938 * remote-m32r-sdi.c (m32r_open): Constify.
1939 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1940 (rockhopper_open, lsi_open): Constify.
1941 * remote-sim.c (gdbsim_open): Constify.
1942 * remote.c (remote_open, extended_remote_open, remote_open_1):
1944 * target.h (struct target_ops) <to_open>: Make "arg" const.
1945 * tracefile-tfile.c (tfile_open): Constify.
1947 2014-07-30 Tom Tromey <tromey@redhat.com>
1949 * breakpoint.c (map_breakpoint_numbers): Update.
1950 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1951 (get_number_const): New function.
1952 (get_number): Rewrite using get_number_const.
1953 (init_number_or_range): Make "string" const.
1954 (number_is_in_list): Make "list" const.
1955 * cli/cli-utils.h (get_number_const): Declare.
1956 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1957 (init_number_or_range, number_is_in_list): Update.
1958 * printcmd.c (map_display_numbers): Update.
1959 * value.c (value_from_history_ref): Constify.
1960 * value.h (value_from_history_ref): Update.
1962 2014-07-30 Tom Tromey <tromey@redhat.com>
1964 * corefile.c (hook_type, call_extra_exec_file_hooks)
1965 (specify_exec_file_hook): Constify.
1966 * exec.c (exec_file_attach): Make "filename" const.
1967 * gdbcore.h (deprecated_exec_file_display_hook)
1968 (specify_exec_file_hook, exec_file_attach): Constify.
1969 * main.c (captured_main): Use catch_command_errors_const.
1971 2014-07-30 Tom Tromey <tromey@redhat.com>
1973 * target.c (open_target): New function.
1974 (add_target_with_completer, add_deprecated_target_alias): Use
1975 set_cmd_sfunc, set_cmd_context.
1976 (debug_to_open): Remove.
1977 (setup_target_debug): Update.
1979 2014-07-30 Yao Qi <yao@codesourcery.com>
1981 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1983 * parse.c (exp_iterate): Update comments.
1985 2014-07-30 Gary Benson <gbenson@redhat.com>
1987 * common/common-defs.h: New file.
1988 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1989 * defs.h: Include common-defs.h.
1990 Do not include config.h or build-gnulib/config.h.
1992 2014-07-30 Gary Benson <gbenson@redhat.com>
1994 * common/common-utils.h: Do not include config.h.
1995 * nat/linux-btrace.h: Likewise.
1997 2014-07-30 Gary Benson <gbenson@redhat.com>
1999 * btrace.c: Include defs.h.
2000 * common/ptid.c: Include defs.h or server.h as appropriate.
2001 * nat/mips-linux-watch.c: Likewise.
2003 2014-07-29 Tom Tromey <tromey@redhat.com>
2005 * target.c (target_is_pushed): Simplify.
2007 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2011 2014-07-29 Yao Qi <yao@codesourcery.com>
2014 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2016 2014-07-28 Doug Evans <xdje42@gmail.com>
2019 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2020 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2023 2014-07-28 Will Newton <will.newton@linaro.org>
2025 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2026 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2027 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2028 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2029 (THUMB2_EABI_SYSCALL): Likewise.
2030 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2032 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2033 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2035 2014-07-27 Doug Evans <xdje42@gmail.com>
2037 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2039 2014-07-27 Doug Evans <xdje42@gmail.com>
2041 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2043 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2044 Doug Evans <xdje42@gmail.com>
2047 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2048 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2049 * configure.ac: Try to use guild to compile an scm file, if it fails
2050 then disable guile support.
2051 * configure: Regenerate.
2052 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2054 (GUILE_COMPILED_FILES): New variable.
2055 (GUILE_FILES) Update.
2056 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2057 (stamp-guile): Compile scm files.
2058 * guile/guile.c (boot_guile_support): New function.
2059 (standard_throw_args_p): New function.
2060 (print_standard_throw_error, print_throw_error): New functions.
2061 (handle_boot_error): New function.
2062 (initialize_scheme_side): Rewrite to call boot_guile_support.
2063 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2064 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2066 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2067 Doug Evans <xdje42@gmail.com>
2070 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2071 * guile/lib/gdb/support.scm: New file.
2072 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2073 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2075 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2077 (%assert-type): Ditto, and renamed to assert-type.
2078 (%exception-print-style): Delete.
2080 2014-07-26 Doug Evans <xdje42@gmail.com>
2083 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2084 * configure: Regenerate.
2085 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2087 (PYTHON_FILES): New variable.
2088 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2089 (GUILE_FILES): New variable.
2090 (stamp-python, install-python, uninstall-python): Handle empty
2092 (stamp-guile, install-guile, uninstall-guile): Ditto.
2094 2014-07-26 Doug Evans <xdje42@gmail.com>
2097 * guile/lib/gdb.scm (pretty-printers): Export.
2098 (set-pretty-printers!): Export.
2099 * guile/lib/gdb/printing.scm (gdb module): Update.
2100 (prepend-pretty-printer!, append-pretty-printer!): Update.
2101 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2102 (pretty_printer_list_var): Delete.
2103 (pretty_printer_list): New static global.
2104 (gdbscm_pretty_printers): New function.
2105 (gdbscm_set_pretty_printers_x): New function.
2106 (ppscm_find_pretty_printer_from_gdb): Update.
2107 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2108 (gdbscm_initialize_pretty_printers): Update.
2110 2014-07-26 Doug Evans <xdje42@gmail.com>
2113 * configure.ac: Add check for header gc/gc.h.
2114 Add check for function setenv.
2115 * configure: Regenerate.
2116 * config.in: Regenerate.
2117 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2119 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2121 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2122 variation in gdbarch matching.
2124 2014-07-25 Tom Tromey <tromey@redhat.com>
2126 * exec.c (using_exec_ops): Remove.
2127 (exec_close_1): Update. Remove extraneous block, reindent.
2128 (add_target_sections): Use target_is_pushed.
2130 2014-07-25 Pedro Alves <palves@redhat.com>
2132 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2133 * monitor.c (monitor_create_inferior): Likewise.
2134 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2135 * remote-sim.c (gdbsim_create_inferior): Likewise.
2136 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2137 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2138 * windows-nat.c (do_initial_windows_stuff): Likewise.
2140 2014-07-25 Pedro Alves <palves@redhat.com>
2142 * NEWS: Mention signal passing and "signal" command changes.
2143 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2145 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2147 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2148 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2149 (jump_command): Adjust clear_proceed_status call.
2150 (signal_command): Warn if other thread that are resumed have
2151 signals that will be delivered. Adjust clear_proceed_status call.
2152 (until_next_command, finish_command)
2153 (proceed_after_attach_callback, attach_command_post_wait)
2154 (attach_command): Adjust clear_proceed_status call.
2155 * infrun.c (proceed_after_vfork_done): Likewise.
2156 (proceed_after_attach_callback): Adjust comment.
2157 (clear_proceed_status_thread): Clear stop_signal if not in pass
2159 (clear_proceed_status_callback): Delete.
2160 (clear_proceed_status): New 'step' parameter. Only clear the
2161 proceed status of threads the command being prepared is about to
2163 (proceed): If passed in an explicit signal, override stop_signal
2164 with it. Don't pass the last stop signal to the thread we're
2166 (init_wait_for_inferior): Adjust clear_proceed_status call.
2167 (switch_back_to_stepped_thread): Clear the signal if it should not
2169 * infrun.h (clear_proceed_status): New 'step' parameter.
2170 (user_visible_resume_ptid): Add comment.
2171 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2172 signal is in pass state.
2173 * remote.c (append_pending_thread_resumptions): Likewise.
2174 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2176 2014-07-25 Tom Tromey <tromey@redhat.com>
2178 * target.h (target_stopped_data_address)
2179 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2182 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2184 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2186 (avr_pointer_to_address): Likewise.
2188 2014-07-24 Tom Tromey <tromey@redhat.com>
2190 * monitor.c (compile_pattern): Update.
2191 * target.h (struct target_ops) <to_shortname, to_longname,
2194 2014-07-24 Tom Tromey <tromey@redhat.com>
2196 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2197 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2198 (add_info_alias, add_com): Make "doc" const.
2199 (print_doc_line): Make "str" const.
2200 (delete_cmd): Update.
2201 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2202 (print_doc_line): Update.
2203 * cli/cli-script.c (document_command): Update.
2204 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2205 (add_com, add_info, add_info_alias): Update.
2206 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2207 * python/py-cmd.c (cmdpy_destroyer): Update.
2209 2014-07-24 Tom Tromey <tromey@redhat.com>
2211 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2212 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2213 (help_cmd_list): Constify.
2214 (lookup_cmd): Update.
2215 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2217 (help_cmd_list, apropos_cmd): Update.
2218 * cli/cli-script.c (show_user): Update.
2219 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2220 * cli/cli-setshow.h (cmd_show_list): Update.
2221 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2222 (cmd_show_list): Update.
2223 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2224 * python/py-cmd.c (cmdpy_destroyer): Update.
2226 2014-07-24 Tom Tromey <tromey@redhat.com>
2228 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2229 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2231 * command.h (deprecate_cmd): Update.
2232 * maint.c (maintenance_do_deprecate): Add casts.
2234 2014-07-24 Tom Tromey <tromey@redhat.com>
2236 * cli/cli-decode.c (help_cmd): Make parameter "const".
2237 * cli/cli-decode.h (help_cmd): Update.
2239 2014-07-24 Tom Tromey <tromey@redhat.com>
2241 * stack.c (up_silently_base, down_silently_base): Make argument
2244 2014-07-24 Tom Tromey <tromey@redhat.com>
2246 * solib.c (solib_add): Make "pattern" const.
2247 * solib.h (solib_add): Update.
2249 2014-07-24 Tom Tromey <tromey@redhat.com>
2251 * remote.c (remote_serial_open, print_packet, putpkt)
2252 (putpkt_binary): Constify.
2253 * remote.h (putpkt): Update.
2255 2014-07-24 Tom Tromey <tromey@redhat.com>
2257 * monitor.c (monitor_open): Make "args" const.
2258 * monitor.h (monitor_open): Update.
2260 2014-07-24 Tom Tromey <tromey@redhat.com>
2262 * maint.c (match_bfd_flags): Make "string" const.
2263 (print_bfd_section_info): Remove casts.
2264 (print_objfile_section_info): Make "string" const.
2266 2014-07-24 Tom Tromey <tromey@redhat.com>
2268 * inf-child.c (inf_child_open_target): Make "arg" const.
2269 * inf-child.h (inf_child_open_target): Update.
2271 2014-07-24 Tom Tromey <tromey@redhat.com>
2273 * environ.c (unset_in_environ): Make "var" const.
2274 * environ.h (unset_in_environ): Update.
2276 2014-07-24 Tom Tromey <tromey@redhat.com>
2278 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2280 (scan_filename_with_cleanup): Likewise.
2281 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2282 Make arguments const.
2283 (restore_command): Update.
2285 2014-07-24 Pedro Alves <palves@redhat.com>
2287 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2289 2014-07-24 Tom Tromey <tromey@redhat.com>
2290 Gary Benson <gbenson@redhat.com>
2292 * nat/linux-ptrace.c (additional_flags): New global.
2293 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2294 additional_flags; don't check GDBSERVER.
2295 (linux_ptrace_set_additional_flags): New function.
2296 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2298 * linux-nat.c (_initialize_linux_nat): Call
2299 linux_ptrace_set_additional_flags.
2301 2014-07-24 Tom Tromey <tromey@redhat.com>
2303 * make-target-delegates (munge_type, write_debugmethod): New
2305 (debug_names): New global.
2306 ($TARGET_DEBUG_PRINTER): New global.
2307 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2309 Write debug methods. Generate init_debug_target.
2310 * target-debug.h: New file.
2311 * target-delegates.c: Rebuild.
2312 * target.c: Include target-debug.h.
2313 (debug_target): Hoist definition.
2314 (target_kill, target_get_section_table, target_memory_map)
2315 (target_flash_erase, target_flash_done, target_detach)
2316 (target_disconnect, target_wait, target_resume)
2317 (target_pass_signals, target_program_signals, target_follow_fork)
2318 (target_mourn_inferior, target_search_memory)
2319 (target_thread_address_space, target_close)
2320 (target_find_new_threads, target_core_of_thread)
2321 (target_verify_memory, target_insert_mask_watchpoint)
2322 (target_remove_mask_watchpoint): Remove targetdebug code.
2323 (debug_to_post_attach, debug_to_prepare_to_store)
2324 (debug_to_files_info, debug_to_insert_breakpoint)
2325 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2326 (debug_to_region_ok_for_hw_watchpoint)
2327 (debug_to_can_accel_watchpoint_condition)
2328 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2329 (debug_to_watchpoint_addr_within_range)
2330 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2331 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2332 (debug_to_terminal_init, debug_to_terminal_inferior)
2333 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2334 (debug_to_terminal_save_ours, debug_to_terminal_info)
2335 (debug_to_load, debug_to_post_startup_inferior)
2336 (debug_to_insert_fork_catchpoint)
2337 (debug_to_remove_fork_catchpoint)
2338 (debug_to_insert_vfork_catchpoint)
2339 (debug_to_remove_vfork_catchpoint)
2340 (debug_to_insert_exec_catchpoint)
2341 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2342 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2343 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2344 (setup_target_debug): Call init_debug_target.
2345 * target.h (TARGET_DEBUG_PRINTER): New macro.
2346 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2347 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2349 2014-07-24 Gary Benson <gbenson@redhat.com>
2351 * exceptions.h (throw_vfatal): Renamed to...
2352 (throw_vquit): New declaration.
2353 (throw_quit): Likewise.
2354 * exceptions.c (throw_vfatal): Renamed to...
2355 (throw_vquit): New function.
2356 (throw_quit): Likewise.
2357 (throw_error): Call throw_verror rather than throw_it.
2358 * utils.h (vfatal): Removed.
2360 * utils.c (vfatal): Removed.
2362 (internal_verror): Replaced call to fatal with call to throw_quit.
2363 (quit): Replaced calls to fatal with calls to throw_quit.
2365 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2367 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2370 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2372 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2373 less than zero in conditional expression.
2375 2014-07-23 Tom Tromey <tromey@redhat.com>
2377 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2378 ($INTRO_PART): Don't match whitespace.
2379 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2381 ($METHOD): Add $METHOD_TRAILER.
2383 (scan_target_h): New sub.
2384 Change main loop not to collect state.
2385 * target-delegates.c: Rebuild.
2387 2014-07-23 Gary Benson <gbenson@redhat.com>
2389 * cp-support.c (gdb_demangle): Fix build on systems without
2392 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2395 for reference entry value target data value.
2397 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2399 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2400 value_available_contents_eq.
2402 2014-07-22 Pedro Alves <palves@redhat.com>
2404 * value.c (allocate_optimized_out_value): Don't mark value as
2407 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2409 * MAINTAINERS (Write After Approval): Update my email address.
2411 2014-07-20 Doug Evans <dje@google.com>
2414 * remote.c (putpkt_binary): Add text to error message.
2416 2014-07-20 Yao Qi <yao@codesourcery.com>
2418 * eval.c: Remove "Chill" from comments.
2419 * gdbtypes.h: Likewise.
2420 * symtab.h: Likewise.
2422 2014-07-20 Yao Qi <yao@codesourcery.com>
2424 * std-operator.def: Update comments to TERNOP_SLICE.
2426 2014-07-20 Yao Qi <yao@codesourcery.com>
2428 * std-operator.def: Remove BINOP_RANGE.
2429 * breakpoint.c (watchpoint_exp_is_const): Update.
2430 * expprint.c (dump_subexp_body_standard): Likewise.
2431 * eval.c (init_array_element): Remove dead code.
2432 (evaluate_subexp_standard): Likewise.
2434 2014-07-20 Yao Qi <yao@codesourcery.com>
2436 * std-operator.def: Remove BINOP_IN.
2437 * breakpoint.c (watchpoint_exp_is_const): Update.
2438 * eval.c (evaluate_subexp_standard): Likewise.
2439 * expprint.c (dump_subexp_body_standard): Likewise.
2441 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2443 * microblaze-tdep.c (microblaze_register_names): Add
2444 the rshr and rslr register names.
2445 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2446 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2447 Use of tdesc_numbered_register. Use of
2448 microblaze_register_g_packet_guesses. Use of
2449 tdesc_use_registers. Use of set_gdbarch_register_type.
2450 (microblaze_register_g_packet_guesses): New.
2451 * microblaze-tdep.h (microblaze_reg_num): Add
2452 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2453 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2454 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2455 * features/microblaze-core.xml: New file.
2456 * features/microblaze-stack-protect.xml: New file.
2457 * features/microblaze-with-stack-protect.c: New file.
2458 * features/microblaze-with-stack-protect.xml: New file.
2459 * features/microblaze.xml: New file.
2460 * features/microblaze.c: New file.
2461 * features/Makefile (microblaze-with-stack-protect): Add
2462 microblaze-with-stack-protect microblaze and microblaze-expedite.
2463 * regformats/microblaze-with-stack-protect.dat: New file.
2464 * regformats/microblaze.dat: New file.
2465 * doc/gdb.texinfo (MicroBlaze Features): Added.
2467 2014-07-18 Tom Tromey <tromey@redhat.com>
2469 * exec.c (exec_ops): Now static.
2470 * exec.h (exec_ops): Don't declare.
2472 2014-07-18 Tom Tromey <tromey@redhat.com>
2474 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2475 to find_target_beneath.
2476 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2477 find_target_beneath.
2478 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2480 2014-07-18 Tom Tromey <tromey@redhat.com>
2483 * utils.c (quit): Use target_supports_terminal_ours.
2484 * target.h (target_supports_terminal_ours): Declare.
2485 * target.c (target_supports_delete_record): Don't check
2486 to_delete_record against NULL.
2487 (target_supports_terminal_ours): New function.
2489 2014-07-18 Tom Tromey <tromey@redhat.com>
2492 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2493 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2494 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2495 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2496 * windows-nat.c (windows_xfer_partial): Always delegate.
2497 * record-btrace.c (record_btrace_xfer_partial): Simplify
2499 (record_btrace_fetch_registers, record_btrace_store_registers)
2500 (record_btrace_prepare_to_store, record_btrace_resume)
2501 (record_btrace_wait, record_btrace_find_new_threads)
2502 (record_btrace_thread_alive): Likewise.
2503 * procfs.c (procfs_xfer_partial): Always delegate.
2504 * corelow.c (core_xfer_partial): Always delegate.
2505 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2507 2014-07-18 Tom Tromey <tromey@redhat.com>
2509 * exec.c (exec_make_note_section): Move earlier.
2511 2014-07-17 Doug Evans <dje@google.com>
2514 * maint.c (count_symtabs_and_blocks): Handle NULL
2515 current_program_space.
2516 (report_command_stats): Check global enabled flag in addition to
2517 recorded enabled flag.
2518 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2520 2014-07-16 Pedro Alves <palves@redhat.com>
2522 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2524 2014-07-16 Tom Tromey <tromey@redhat.com>
2526 * target.h (struct target_ops) <to_delete_record>: Reformat
2529 2014-07-16 Tom Tromey <tromey@redhat.com>
2531 * target-delegates.c: Rebuild.
2533 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2535 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2536 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2537 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2538 (avr_pointer_to_address): Likewise.
2539 (avr_address_class_type_flags): New function.
2540 (avr_address_class_type_flags_to_name): Likewise.
2541 (avr_address_class_name_to_type_flags): Likewise.
2542 (avr_gdbarch_init): Set address_class_type_flags,
2543 address_class_type_flags_to_name and
2544 address_class_name_to_type_flags.
2546 2014-07-15 Pedro Alves <palves@redhat.com>
2548 * linux-nat.c (kill_callback): Save errno and work with saved
2551 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2553 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2555 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2557 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2558 breakpoint support correctly.
2560 2014-07-14 Pedro Alves <palves@redhat.com>
2562 * utils.c (prompt_for_continue): Call target_terminal_ours.
2564 2014-07-14 Pedro Alves <palves@redhat.com>
2566 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2567 catch_errors. Don't re-enable stdin or notify observers where,
2569 (fetch_inferior_event_wrapper): Delete.
2571 2014-07-14 Pedro Alves <palves@redhat.com>
2574 * top.c: Include "inf-loop.h".
2575 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2577 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2579 (gdb_readline_wrapper): Store whether the target is async, and
2582 2014-07-14 Pedro Alves <palves@redhat.com>
2585 * top.c (gdb_readline_wrapper_line): Tweak comment.
2586 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2587 the input handler callback.
2589 2014-07-14 Pedro Alves <palves@redhat.com>
2592 * main.c: Include event-top.h.
2593 (handle_command_errors): New function.
2594 (catch_command_errors, catch_command_errors_const): Use it.
2596 2014-07-14 Pedro Alves <palves@redhat.com>
2598 * exceptions.c (catch_command_errors, catch_command_errors_const):
2600 * exceptions.h (catch_command_errors_ftype)
2601 (catch_command_errors_const_ftype): Moved to main.c.
2602 (catch_command_errors, catch_command_errors_const): Delete
2604 * main.c (catch_command_errors_ftype)
2605 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2606 (catch_command_errors, catch_command_errors_const)): Moved here
2607 from exceptions.c and make static.
2609 2014-07-14 Pedro Alves <palves@redhat.com>
2611 * exceptions.c (print_any_exception): Delete.
2612 (catch_exceptions_with_msg): Use exception_print instead of
2613 print_any_exception.
2614 (catch_errors): Use exception_fprintf instead of
2615 print_any_exception.
2616 (catch_command_errors, catch_command_errors_const): Use
2617 exception_print instead of print_any_exception.
2619 2014-07-14 Pedro Alves <palves@redhat.com>
2621 * infcall.c (run_inferior_call): Set 'sync_execution' while
2622 running the inferior call.
2624 2014-07-14 Pedro Alves <palves@redhat.com>
2626 * value.c (value_contents_equal): Delete function.
2627 * value.h (value_contents_equal): Delete declaration.
2629 2014-07-14 Tom Tromey <tromey@redhat.com>
2632 * gdbtypes.c (is_dynamic_type_internal): New function, from
2634 (is_dynamic_type): Rewrite.
2635 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2636 (resolve_dynamic_struct): Likewise.
2637 (resolve_dynamic_type_internal): New function, from
2638 resolve_dynamic_type.
2639 (resolve_dynamic_type): Rewrite.
2641 2014-07-14 Tom Tromey <tromey@redhat.com>
2643 * target.c (target_require_runnable): Also check record_stratum.
2646 2014-07-11 Yao Qi <yao@codesourcery.com>
2648 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2649 thumb_instruction_restores_sp return true.
2651 2014-07-11 Yao Qi <yao@codesourcery.com>
2653 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2654 (thumb_in_function_epilogue_p): Call
2655 thumb_instruction_restores_sp.
2657 2014-07-11 Yao Qi <yao@codesourcery.com>
2659 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2661 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2663 2014-07-11 Gary Benson <gbenson@redhat.com>
2665 * amd64-linux-nat.c (gdbcore.h): Remove include.
2666 (regset.h): Likewise.
2667 (nat/linux-btrace.h): Likewise.
2668 (btrace.h): Likewise.
2669 (gdb_assert.h): Likewise.
2670 (string.h): Likewise.
2671 (sys/uio.h): Likewise.
2672 (sys/debugreg.h): Likewise.
2673 (sys/syscall.h): Likewise.
2674 (sys/procfs.h): Likewise.
2675 (sys/user.h): Likewise.
2676 (asm/ptrace.h): Likewise.
2677 (i386-nat.h): Likewise.
2678 * i386-linux-nat.c (i386-nat.h): Likewise.
2679 (regset.h): Likewise.
2680 (target.h): Likewise.
2681 (linux-nat.h): Likewise.
2682 (nat/linux-btrace.h): Likewise.
2683 (btrace.h): Likewise.
2684 (gdb_assert.h): Likewise.
2685 (string.h): Likewise.
2686 (sys/uio.h): Likewise.
2687 (sys/user.h): Likewise.
2688 (sys/procfs.h): Likewise.
2689 (sys/reg.h): Likewise.
2690 (sys/debugreg.h): Likewise.
2691 (ORIG_EAX): Remove definition.
2693 2014-07-11 Gary Benson <gbenson@redhat.com>
2695 * i386-linux-nat.h: New file.
2696 * x86-linux-nat.h: Likewise.
2697 * x86-linux-nat.c: Likewise.
2698 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2699 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2700 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2701 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2702 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2703 (PTRACE_SETREGSET): Likewise.
2704 (arch_lwp_info): Now in x86-linux-nat.c.
2705 (have_ptrace_getregset): Now in x86-linux-nat.h.
2706 (x86_linux_dr_get): Now in x86-linux-nat.c.
2707 (x86_linux_dr_set): Likewise.
2708 (x86_linux_dr_get_addr): Likewise.
2709 (x86_linux_dr_get_control): Likewise.
2710 (x86_linux_dr_get_status): Likewise.
2711 (update_debug_registers_callback): Likewise.
2712 (x86_linux_dr_set_control): Likewise.
2713 (x86_linux_dr_set_addr): Likewise.
2714 (x86_linux_prepare_to_resume): Likewise.
2715 (x86_linux_new_thread): Likewise.
2716 (x86_linux_new_fork): Likewise.
2717 (x86_linux_get_thread_area): Likewise.
2718 (super_post_startup_inferior): Likewise.
2719 (x86_linux_child_post_startup_inferior): Likewise.
2720 (AMD64_LINUX_USER64_CS): Likewise.
2721 (AMD64_LINUX_X32_DS): Likewise.
2722 (x86_linux_read_description): Likewise.
2723 (x86_linux_enable_btrace): Likewise.
2724 (x86_linux_disable_btrace): Likewise.
2725 (x86_linux_teardown_btrace): Likewise.
2726 (x86_linux_read_btrace): Likewise.
2727 (x86_linux_create_target): Likewise.
2728 (x86_linux_add_target): Likewise.
2729 * i386-linux-nat.c (x86-linux-nat.h): New include.
2730 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2731 (PTRACE_SETREGSET): Likewise.
2732 (arch_lwp_info): Now in x86-linux-nat.c.
2733 (have_ptrace_getregset): Now in x86-linux-nat.h.
2734 (x86_linux_dr_get): Now in x86-linux-nat.c.
2735 (x86_linux_dr_set): Likewise.
2736 (x86_linux_dr_get_addr): Likewise.
2737 (x86_linux_dr_get_control): Likewise.
2738 (x86_linux_dr_get_status): Likewise.
2739 (update_debug_registers_callback): Likewise.
2740 (x86_linux_dr_set_control): Likewise.
2741 (x86_linux_dr_set_addr): Likewise.
2742 (x86_linux_prepare_to_resume): Likewise.
2743 (x86_linux_new_thread): Likewise.
2744 (x86_linux_new_fork): Likewise.
2745 (x86_linux_get_thread_area): Likewise.
2746 (super_post_startup_inferior): Likewise.
2747 (x86_linux_child_post_startup_inferior): Likewise.
2748 (AMD64_LINUX_USER64_CS): Likewise.
2749 (AMD64_LINUX_X32_DS): Likewise.
2750 (x86_linux_read_description): Likewise.
2751 (x86_linux_enable_btrace): Likewise.
2752 (x86_linux_disable_btrace): Likewise.
2753 (x86_linux_teardown_btrace): Likewise.
2754 (x86_linux_read_btrace): Likewise.
2755 (x86_linux_create_target): Likewise.
2756 (x86_linux_add_target): Likewise.
2758 2014-07-11 Gary Benson <gbenson@redhat.com>
2760 * amd64-linux-nat.c: Comment and whitespace changes.
2761 * i386-linux-nat.c: Comment and whitespace changes.
2763 2014-07-11 Gary Benson <gbenson@redhat.com>
2765 * amd64-linux-nat.c (x86_linux_create_target): New function.
2766 (x86_linux_add_target): Likewise.
2767 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2768 * i386-linux-nat.c (x86_linux_create_target): New function.
2769 (x86_linux_add_target): Likewise.
2770 (_initialize_i386_linux_nat): Delegate to the above new functions.
2772 2014-07-11 Gary Benson <gbenson@redhat.com>
2774 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2775 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2776 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2777 (ps_get_thread_area): Delegate to the above.
2779 2014-07-11 Gary Benson <gbenson@redhat.com>
2781 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2782 x86_linux_read_description. All uses updated. amd64-specific
2783 code conditionalized. Conditionalized i386-specific code added.
2784 Redundant cast removed.
2785 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2786 x86_linux_read_description. All uses updated. i386-specific
2787 code conditionalized. Conditionalized amd64-specific code added.
2788 One sizeof replaced with the actual type it is describing.
2790 2014-07-11 Gary Benson <gbenson@redhat.com>
2792 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2793 x86_linux_dr_get. All uses updated.
2794 (amd64_linux_dr_set): Renamed to
2795 x86_linux_dr_set. All uses updated.
2796 (amd64_linux_dr_get_addr): Renamed to
2797 x86_linux_dr_get_addr. All uses updated.
2798 (amd64_linux_dr_get_control): Renamed to
2799 x86_linux_dr_get_control. All uses updated.
2800 (amd64_linux_dr_get_status): Renamed to
2801 x86_linux_dr_get_status. All uses updated.
2802 (amd64_linux_dr_set_control): Renamed to
2803 x86_linux_dr_set_control. All uses updated.
2804 (amd64_linux_dr_set_addr): Renamed to
2805 x86_linux_dr_set_addr. All uses updated.
2806 (amd64_linux_prepare_to_resume): Renamed to
2807 x86_linux_prepare_to_resume. All uses updated.
2808 (amd64_linux_new_thread): Renamed to
2809 x86_linux_new_thread. All uses updated.
2810 (amd64_linux_new_fork): Renamed to
2811 x86_linux_new_fork. All uses updated.
2812 (amd64_linux_child_post_startup_inferior): Renamed to
2813 x86_linux_child_post_startup_inferior. All uses updated.
2814 (amd64_linux_enable_btrace): Renamed to
2815 x86_linux_enable_btrace. All uses updated.
2816 (amd64_linux_disable_btrace): Renamed to
2817 x86_linux_disable_btrace. All uses updated.
2818 (amd64_linux_teardown_btrace): Renamed to
2819 x86_linux_teardown_btrace. All uses updated.
2820 (amd64_linux_read_btrace): Renamed to
2821 x86_linux_read_btrace. All uses updated.
2822 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2823 x86_linux_dr_get. All uses updated.
2824 (i386_linux_dr_set): Renamed to
2825 x86_linux_dr_set. All uses updated.
2826 (i386_linux_dr_get_addr): Renamed to
2827 x86_linux_dr_get_addr. All uses updated.
2828 (i386_linux_dr_get_control): Renamed to
2829 x86_linux_dr_get_control. All uses updated.
2830 (i386_linux_dr_get_status): Renamed to
2831 x86_linux_dr_get_status. All uses updated.
2832 (i386_linux_dr_set_control): Renamed to
2833 x86_linux_dr_set_control. All uses updated.
2834 (i386_linux_dr_set_addr): Renamed to
2835 x86_linux_dr_set_addr. All uses updated.
2836 (i386_linux_prepare_to_resume): Renamed to
2837 x86_linux_prepare_to_resume. All uses updated.
2838 (i386_linux_new_thread): Renamed to
2839 x86_linux_new_thread. All uses updated.
2840 (i386_linux_new_fork): Renamed to
2841 x86_linux_new_fork. All uses updated.
2842 (i386_linux_child_post_startup_inferior): Renamed to
2843 x86_linux_child_post_startup_inferior. All uses updated.
2844 (i386_linux_enable_btrace): Renamed to
2845 x86_linux_enable_btrace. All uses updated.
2846 (i386_linux_disable_btrace): Renamed to
2847 x86_linux_disable_btrace. All uses updated.
2848 (i386_linux_teardown_btrace): Renamed to
2849 x86_linux_teardown_btrace. All uses updated.
2850 (i386_linux_read_btrace): Renamed to
2851 x86_linux_read_btrace. All uses updated.
2853 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2855 * remote.c (extended_remote_post_attach): New function.
2856 (init_extended_remote_ops): Install it as to_post_attach method.
2858 2014-07-09 Pedro Alves <palves@redhat.com>
2860 * infcmd.c (attach_command_post_wait): Don't call
2861 target_terminal_inferior here.
2862 (attach_command): Call it here instead.
2864 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2866 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2868 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2869 from varobj.c, with additional checks.
2870 (c_varobj_ops): Fill in is_path_expr_parent field.
2871 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2872 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2874 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2876 (varobj_default_is_path_expr_parent): New function.
2877 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2878 (varobj_default_is_path_expr_parent): Declare new function.
2880 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2882 * infcmd.c (finish_backward): Turn internal error into normal error.
2884 2014-07-07 Pedro Alves <palves@redhat.com>
2887 * remote.c (async_handle_remote_sigint)
2888 (async_handle_remote_sigint_twice): Call
2889 gdb_call_async_signal_handler instead of
2890 mark_async_signal_handler.
2892 2014-07-07 Tom Tromey <tromey@redhat.com>
2894 * target-delegates.c: Rebuild.
2895 * target.c (target_info_record): Remove.
2896 * record.c (info_record_command): Unconditionally call
2898 * target.h (struct target_ops) <to_info_record>: Use
2899 TARGET_DEFAULT_IGNORE.
2900 (target_info_record): Remove.
2902 2014-07-07 Tom Tromey <tromey@redhat.com>
2904 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2905 TARGET_DEFAULT_NORETURN.
2906 * target.c (generic_tls_error): New function.
2907 (target_translate_tls_address): Don't search target stack.
2908 * target-delegates.c: Rebuild.
2909 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2911 * linux-thread-db.c (thread_db_get_thread_local_address):
2912 Unconditionally call beneath target.
2914 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2916 * cli/cli-logging.c (pop_output_files): Assign targerr to
2919 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2921 * MAINTAINERS (Write After Approval): Update my email address.
2923 2014-07-02 Gary Benson <gbenson@redhat.com>
2925 * proc-service.c (ps_xfer_memory): Update comment.
2926 (ps_pstop): Remove unused function.
2927 (ps_pcontinue): Likewise.
2928 (ps_lstop): Likewise.
2929 (ps_lcontinue): Likewise.
2930 (ps_lgetxregsize): Likewise.
2931 (ps_lgetxregs): Likewise.
2932 (ps_lsetxregs): Likewise.
2933 (ps_plog): Likewise.
2934 (ps_ptread): Likewise.
2935 (ps_ptwrite): Likewise.
2937 2014-07-01 Mark Wielaard <mjw@redhat.com>
2939 * dwarf2read.c (add_array_cv_type): New function.
2940 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2941 (read_tag_volatile_type): Likewise.
2943 2014-07-01 Tom Tromey <tromey@redhat.com>
2945 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2946 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2947 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2948 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2949 * command.h (cmd_cfunc_ftype): Move earlier.
2950 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2951 (add_com, add_info): Use cmd_cfunc_ftype.
2953 2014-06-30 Tom Tromey <tromey@redhat.com>
2955 * symtab.c (operator_chars): Make parameters and return type
2957 (file_matches): Make "files" const.
2958 (struct search_symbols_data) <files>: Now const.
2959 (search_symbols): Make "regexp" and "files" parameters const.
2961 (symtab_symbol_info): Remove cast.
2962 (rbreak_command): Update.
2963 * symtab.h (search_symbols): Update.
2965 2014-06-27 Yao Qi <yao@codesourcery.com>
2967 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2968 Change parameter type to 'struct thread_info *'. Caller
2970 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2972 * dummy-frame.c (struct dummy_frame_id): New.
2973 (dummy_frame_id_eq): New function.
2974 (struct dummy_frame) <id>: Change its type to 'struct
2976 (dummy_frame_push): Add parameter ptid and save it in
2978 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2980 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2982 (lookup_dummy_frame): Change parameter type to 'struct
2983 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2984 instead of frame_id_eq.
2985 (dummy_frame_pop): Add parameter ptid. Callers updated.
2986 Update comments. Compose dummy_frame_id and pass it to
2988 (dummy_frame_discard): Add parameter ptid.
2989 (dummy_frame_sniffer): Compose dummy_frame_id and call
2990 dummy_frame_id_eq instead of frame_id_eq.
2991 (fprint_dummy_frames): Print ptid.
2992 * dummy-frame.h: Remove comments.
2993 (dummy_frame_push): Add ptid in declaration.
2994 (dummy_frame_pop, dummy_frame_discard): Likewise.
2996 2014-06-26 Tom Tromey <tromey@redhat.com>
2998 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2999 * command.h (error_no_arg): Update.
3001 2014-06-26 Tom Tromey <tromey@redhat.com>
3003 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3004 (do_show_command): Make "arg" const.
3005 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3007 2014-06-26 Tom Tromey <tromey@redhat.com>
3009 * record-full.c (record_full_get_bookmark): Make "args" const.
3010 (record_full_goto_bookmark): Make "raw_bookmark" const.
3011 * record.c (record_goto): New function.
3012 (cmd_record_goto): Use it. Now static.
3013 * record.h (record_goto): Declare.
3014 (cmd_record_goto): Remove declaration.
3015 * target-delegates.c: Rebuild.
3016 * target.h (struct target_ops) <to_get_bookmark,
3017 to_goto_bookmark>: Make parameter const.
3019 2014-06-26 Tom Tromey <tromey@redhat.com>
3021 * defs.h (generic_load): Update.
3022 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3023 * monitor.c (monitor_load): Make "args" const.
3024 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3025 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3027 (mips_load): Make "file" const.
3028 * remote-sim.c (gdbsim_load): Make "args" const.
3029 * remote.c (remote_load): Make "name" const.
3030 * symfile.c (generic_load): Make "args" const.
3031 * target-delegates.c: Rebuild.
3032 * target.c (target_load): Make "arg" const.
3033 (debug_to_load): Make "args" const.
3034 * target.h (struct target_ops) <to_load>: Make parameter const.
3035 (target_load): Update.
3037 2014-06-26 Tom Tromey <tromey@redhat.com>
3040 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3041 (dwarf2_physname, read_partial_die)
3042 (guess_partial_die_structure_name, fixup_partial_die)
3043 (guess_full_die_structure_name, anonymous_struct_prefix)
3044 (dwarf2_name): Use per-BFD obstack.
3046 2014-06-26 Yao Qi <yao@codesourcery.com>
3048 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3049 dummyframe and this_id into inner block below.
3051 2014-06-26 Yao Qi <yao@codesourcery.com>
3053 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3054 with "signal_pass[0]" in the initialization of signal_pass.
3056 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3058 * record-btrace.c (record_btrace_generating_corefile)
3059 (record_btrace_prepare_to_generate_core)
3060 (record_btrace_done_generating_core): New.
3061 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3062 (record_btrace_store_registers, record_btrace_prepare_to_store):
3063 Forward request when generating a core file.
3064 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3065 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3066 to_done_generating_core.
3068 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3070 * target.h (target_ops) <to_prepare_to_generate_core>
3071 <to_done_generating_core>: New.
3072 (target_prepare_to_generate_core, target_done_generating_core): New.
3073 * target.c (target_prepare_to_generate_core)
3074 (target_done_generating_core): New.
3075 * target-delegates.c: Regenerate.
3076 * gcore.c: (write_gcore_file): Rename to ...
3077 (write_gcore_file_1): ...this.
3078 (write_gcore_file): Call target_prepare_to_generate_core
3079 and target_done_generating_core.
3081 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3083 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3084 * gcore.c (write_gcore_file): Free memory returned from
3085 make_corefile_notes.
3086 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3087 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3089 2014-06-24 Yao Qi <yao@codesourcery.com>
3091 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3092 (arm_linux_init_abi): Set skip_trampoline_code with
3093 gdbarch_skip_trampoline_code instead of
3094 find_solib_trampoline_target.
3096 2014-06-24 Yao Qi <yao@codesourcery.com>
3098 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3099 arm_skip_bx_reg returns non-zero.
3101 2014-06-24 Yao Qi <yao@codesourcery.com>
3103 * arm-tdep.c (arm_skip_bx_reg): New function.
3104 (arm_skip_stub): Call arm_skip_bx_reg.
3106 2014-06-23 Don Breazeal <donb@codesourcery.com>
3108 * MAINTAINERS: Add myself as write-after-approval maintainer.
3110 2014-06-23 Pedro Alves <palves@redhat.com>
3112 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3113 DR_CONTROL before setting DR0..DR3.
3114 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3115 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3116 bits of DR_CONTROL related to the debug register slot being
3117 disabled. If all slots are vacant, clear local slowdown as well,
3118 and assert DR_CONTROL is 0.
3120 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3122 * python/lib/gdb/command/xmethods.py
3123 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3124 current progspace only if the string "progspace" matches LOCUS_RE.
3126 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3128 Fix --with-system-readline with readline-6.3 patch 5.
3129 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3130 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3133 2014-06-20 Tom Tromey <tromey@redhat.com>
3135 * dwarf2read.c (dw2_get_real_path): Use correct type in
3137 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3139 2014-06-20 Gary Benson <gbenson@redhat.com>
3141 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3142 * common/glibc_thread_db.h: Likewise.
3143 * common/i386-cpuid.h: Likewise.
3144 * common/i386-gcc-cpuid.h: Likewise.
3145 * common/linux-btrace.h: Likewise.
3146 * common/linux-osdata.h: Likewise.
3147 * common/linux-procfs.h: Likewise.
3148 * common/linux-ptrace.h: Likewise.
3149 * common/mips-linux-watch.h: Likewise.
3150 * common/linux-btrace.c: Moved to nat.
3151 * common/linux-osdata.c: Likewise.
3152 * common/linux-procfs.c: Likewise.
3153 * common/linux-ptrace.c: Likewise.
3154 * common/mips-linux-watch.c: Likewise.
3155 * nat/gdb_thread_db.h: Moved from common.
3156 * nat/glibc_thread_db.h: Likewise.
3157 * nat/i386-cpuid.h: Likewise.
3158 * nat/i386-gcc-cpuid.h: Likewise.
3159 * nat/linux-btrace.c: Likewise.
3160 * nat/linux-btrace.h: Likewise.
3161 * nat/linux-osdata.c: Likewise.
3162 * nat/linux-osdata.h: Likewise.
3163 * nat/linux-procfs.c: Likewise.
3164 * nat/linux-procfs.h: Likewise.
3165 * nat/linux-ptrace.c: Likewise.
3166 * nat/linux-ptrace.h: Likewise.
3167 * nat/mips-linux-watch.c: Likewise.
3168 * nat/mips-linux-watch.h: Likewise.
3169 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3170 (object file files): Reordered.
3171 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3172 of glibc_thread_db.h.
3174 2014-06-20 Gary Benson <gbenson@redhat.com>
3176 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3177 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3178 (i386_dr_low): Likewise.
3179 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3180 (i386_dr_low_set_addr): Likewise.
3181 (i386_dr_low_get_addr): Likewise.
3182 (i386_dr_low_can_set_control): Likewise.
3183 (i386_dr_low_set_control): Likewise.
3184 (i386_dr_low_get_control): Likewise.
3185 (i386_dr_low_get_status): Likewise.
3186 (i386_get_debug_register_length): Likewise.
3187 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3188 (i386_dr_low): Likewise.
3189 * nat/i386-dregs.c (i386-low.h): Remove include.
3190 (i386-nat.h): Likewise.
3191 (nat/i386-dregs.h): New include.
3192 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3193 (i386_dr_low_set_addr): Likewise.
3194 (i386_dr_low_get_addr): Likewise.
3195 (i386_dr_low_can_set_control): Likewise.
3196 (i386_dr_low_set_control): Likewise.
3197 (i386_dr_low_get_control): Likewise.
3198 (i386_dr_low_get_status): Likewise.
3199 (i386_get_debug_register_length): Likewise.
3200 (debug_hw_points): Likewise.
3202 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3204 * Makefile.in (SFILES): Add d-exp.y.
3205 (YYFILES): Add d-exp.c.
3206 (YYOBJ): Add d-exp.o.
3207 (local-maintainer-clean): Delete d-exp.c.
3208 * d-exp.y: New file.
3209 * d-lang.h (d_parse): New declaration.
3210 (d_error): New declaration.
3211 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3212 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3213 PREC_ORDER operators.
3214 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3216 2014-06-19 Yao Qi <yao@codesourcery.com>
3218 * gdbthread.h (any_running): Remove the declaration.
3219 * thread.c (any_running): Remove.
3221 2014-06-19 Yao Qi <yao@codesourcery.com>
3223 * gdbthread.h (struct thread_info) <state>: Change its type to
3224 'enum thread_state'. Update comments.
3226 2014-06-19 Pedro Alves <palves@redhat.com>
3228 * gdbthread.h (ALL_THREADS): Delete.
3229 (ALL_NON_EXITED_THREADS): New macro.
3230 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3231 instead of ALL_THREADS.
3232 * infrun.c (find_thread_needs_step_over)
3233 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3234 instead of ALL_THREADS.
3235 * record-btrace.c (record_btrace_open)
3236 (record_btrace_stop_recording, record_btrace_close)
3237 (record_btrace_is_replaying, record_btrace_resume)
3238 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3239 * remote.c (append_pending_thread_resumptions): Likewise.
3240 * thread.c (thread_apply_all_command): Likewise.
3242 2014-06-19 Gary Benson <gbenson@redhat.com>
3244 * i386-nat.c (i386_stopped_by_watchpoint):
3245 Use i386_dr_stopped_by_watchpoint.
3246 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3247 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3249 2014-06-19 Gary Benson <gbenson@redhat.com>
3251 * nat/i386-dregs.c: New file.
3252 * Makefile.in (i386-dregs.o): New rule.
3253 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3254 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3255 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3256 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3257 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3258 * config/i386/go32.mh (NATDEPFILES): Likewise.
3259 * config/i386/linux.mh (NATDEPFILES): Likewise.
3260 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3261 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3262 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3263 * i386-nat.h (debug_hw_points): New declaration.
3264 * i386-nat.c (breakpoint.h): Remove include.
3265 (command.h): Likewise.
3266 (target.h): Likewise.
3267 (gdb_assert.h): Likewise.
3268 (debug_hw_points): Made nonstatic.
3269 (debug_printf): Now in i386-dregs.c.
3270 (TARGET_HAS_DR_LEN_8): Likewise.
3271 (DR_CONTROL_SHIFT): Likewise.
3272 (DR_CONTROL_SIZE): Likewise.
3273 (DR_RW_EXECUTE): Likewise.
3274 (DR_RW_WRITE): Likewise.
3275 (DR_RW_READ): Likewise.
3276 (DR_RW_IORW): Likewise.
3277 (DR_LEN_1): Likewise.
3278 (DR_LEN_2): Likewise.
3279 (DR_LEN_4): Likewise.
3280 (DR_LEN_8): Likewise.
3281 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3282 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3283 (DR_ENABLE_SIZE): Likewise.
3284 (DR_LOCAL_SLOWDOWN): Likewise.
3285 (DR_GLOBAL_SLOWDOWN): Likewise.
3286 (DR_CONTROL_RESERVED): Likewise.
3287 (I386_DR_CONTROL_MASK): Likewise.
3288 (I386_DR_VACANT): Likewise.
3289 (I386_DR_LOCAL_ENABLE): Likewise.
3290 (I386_DR_GLOBAL_ENABLE): Likewise.
3291 (I386_DR_DISABLE): Likewise.
3292 (I386_DR_SET_RW_LEN): Likewise.
3293 (I386_DR_GET_RW_LEN): Likewise.
3294 (I386_DR_WATCH_HIT): Likewise.
3295 (i386_wp_op_t): Likewise.
3296 (i386_show_dr): Likewise.
3297 (i386_length_and_rw_bits): Likewise.
3298 (i386_insert_aligned_watchpoint): Likewise.
3299 (i386_remove_aligned_watchpoint): Likewise.
3300 (i386_handle_nonaligned_watchpoint): Likewise.
3301 (i386_update_inferior_debug_regs): Likewise.
3302 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3303 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3304 (i386_region_ok_for_watchpoint):
3305 Use i386_dr_region_ok_for_watchpoint.
3306 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3308 2014-06-19 Gary Benson <gbenson@redhat.com>
3310 * i386-nat.c (i386_insert_hw_breakpoint): Use
3311 i386_insert_watchpoint.
3312 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3314 2014-06-19 Gary Benson <gbenson@redhat.com>
3316 * i386-nat.c (i386_dr_show): Renamed to
3317 i386_show_dr and made static. All uses updated.
3318 (i386_dr_length_and_rw_bits): Renamed to
3319 i386_length_and_rw_bits and made static.
3321 (i386_dr_insert_aligned_watchpoint): Renamed to
3322 i386_insert_aligned_watchpoint and made static.
3324 (i386_dr_remove_aligned_watchpoint): Renamed to
3325 i386_remove_aligned_watchpoint and made static.
3327 (i386_dr_update_inferior_debug_regs): Renamed to
3328 i386_update_inferior_debug_regs and made static.
3330 * nat/i386-dregs.h (i386_dr_show): Removed.
3331 (i386_dr_length_and_rw_bits): Likewise.
3332 (i386_dr_insert_aligned_watchpoint): Likewise.
3333 (i386_dr_remove_aligned_watchpoint): Likewise.
3334 (i386_dr_update_inferior_debug_regs): Likewise.
3336 2014-06-19 Gary Benson <gbenson@redhat.com>
3338 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3339 * configure: Regenerate.
3340 * config.in: Likewise.
3341 * main.c (signal.h): New include.
3342 (setup_alternate_signal_stack): New function.
3343 (captured_main): Call the above.
3344 * cp-support.c (signal.h): New include.
3345 (catch_demangler_crashes): New flag.
3346 (SIGJMP_BUF): New define.
3347 (SIGSETJMP): Likewise.
3348 (SIGLONGJMP): Likewise.
3349 (gdb_demangle_jmp_buf): New static global.
3350 (gdb_demangle_attempt_core_dump): Likewise.
3351 (gdb_demangle_signal_handler): New function.
3352 (gdb_demangle): If catch_demangler_crashes is set, install the
3353 above signal handler before calling bfd_demangle, and restore
3354 the original signal handler afterwards. Display the offending
3355 symbol and call demangler_warning the first time a segmentation
3357 (_initialize_cp_support): New maint set/show command.
3359 2014-06-19 Gary Benson <gbenson@redhat.com>
3361 * utils.h (resource_limit_kind): New enum.
3362 (can_dump_core): New declaration.
3363 (warn_cant_dump_core): Likewise.
3364 (dump_core): Likewise.
3365 * utils.c (dump_core): Made nonstatic. Added new
3366 parameter "limit_kind".
3367 (can_dump_core): Made nonstatic. Moved printing code to...
3368 (warn_cant_dump_core): New function.
3369 (can_dump_core_warn): Likewise.
3370 (internal_vproblem): Replace calls to can_dump_core with
3371 calls to can_dump_core_warn. Supply new argument to each.
3373 2014-06-19 Gary Benson <gbenson@redhat.com>
3375 * utils.h (demangler_vwarning): New declaration.
3376 (demangler_warning): Likewise.
3377 * utils.c (struct internal_problem)
3378 <user_settable_should_quit>: New field.
3379 <user_settable_should_dump_core>: Likewise
3380 (internal_error_problem): Add values for above new fields.
3381 (internal_warning_problem): Likewise.
3382 (demangler_warning_problem): New static global.
3383 (demangler_vwarning): New function.
3384 (demangler_warning): Likewise.
3385 (add_internal_problem_command): Selectively add commands.
3386 (_initialize_utils): New internal problem command.
3387 * maint.c (maintenance_demangler_warning): New function.
3388 (_initialize_maint_cmds): New command.
3390 2014-06-18 Tom Tromey <tromey@redhat.com>
3392 * f-valprint.c (info_common_command_for_block): Update.
3393 * symtab.h (struct general_symbol_info) <common_block>: Now
3396 2014-06-18 Tom Tromey <tromey@redhat.com>
3398 * symtab.h (struct symtab) <blockvector>: Now const.
3399 * ada-lang.c (ada_add_global_exceptions): Update.
3400 * buildsym.c (augment_type_symtab): Update.
3401 * dwarf2read.c (dw2_lookup_symbol): Update.
3402 * jit.c (finalize_symtab): Update.
3403 * jv-lang.c (add_class_symtab_symbol): Update.
3404 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3406 * objfiles.c (objfile_relocate1): Update.
3407 * psymtab.c (lookup_symbol_aux_psymtabs)
3408 (maintenance_check_psymtabs): Update.
3409 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3411 * spu-tdep.c (spu_catch_start): Update.
3412 * symmisc.c (dump_symtab_1): Update.
3413 * symtab.c (lookup_global_symbol_from_objfile)
3414 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3415 (basic_lookup_transparent_type_quick)
3416 (basic_lookup_transparent_type, find_pc_sect_symtab)
3417 (find_pc_sect_line, search_symbols): Update.
3418 * block.c (find_block_in_blockvector): Make "bl" const.
3419 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3421 (blockvector_contains_pc): Make "bv" const.
3422 (block_for_pc_sect): Update.
3423 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3424 (blockvector_contains_pc): Update.
3425 * breakpoint.c (resolve_sal_pc): Update.
3426 * inline-frame.c (block_starting_point_at): Update.
3428 2014-06-18 Tom Tromey <tromey@redhat.com>
3430 * completer.c (complete_line): Make "line_buffer" const.
3431 * completer.h (complete_line): Update.
3433 2014-06-18 Tom Tromey <tromey@redhat.com>
3435 * symtab.c (add_macro_name): Remove unneeded cast.
3437 2014-06-18 Tom Tromey <tromey@redhat.com>
3439 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3440 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3442 2014-06-18 Tom Tromey <tromey@redhat.com>
3444 * probe.c (info_probes_for_ops): Make "arg" const.
3445 * probe.h (info_probes_for_ops): Update.
3447 2014-06-18 Tom Tromey <tromey@redhat.com>
3449 * varobj.c (varobj_create): Update.
3450 * valops.c (value_of_this): Update.
3451 * tracepoint.c (add_local_symbols, scope_info): Update.
3452 * symtab.h (struct general_symbol_info) <block>: Now const.
3453 * symtab.c (skip_prologue_sal)
3454 (default_make_symbol_completion_list_break_on)
3455 (skip_prologue_using_sal): Update.
3456 * stack.h (iterate_over_block_locals)
3457 (iterate_over_block_local_vars): Update.
3458 * stack.c (print_frame_args): Update.
3459 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3461 (get_selected_block): Make return type const.
3462 * python/py-frame.c (frapy_block): Update.
3463 * python/py-block.c (gdbpy_block_for_pc): Update.
3464 * p-exp.y (%union) <bval>: Now const.
3465 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3466 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3467 * m2-exp.y (%union) <bval>: Now const.
3468 * linespec.c (get_current_search_block): Make return type const.
3469 (create_sals_line_offset, find_label_symbols): Update.
3470 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3472 (block_starting_point_at): Make "block" const.
3473 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3474 (check_exception_resume): Update.
3475 * guile/scm-frame.c (gdbscm_frame_block): Update.
3476 * guile/scm-block.c (gdbscm_lookup_block): Update.
3477 * frame.h (get_frame_block): Update.
3478 (get_selected_block): Make return type const.
3479 * frame.c (frame_id_inner): Update.
3480 * f-valprint.c (info_common_command_for_block)
3481 (info_common_command): Update.
3482 * dwarf2loc.c (dwarf2_find_location_expression)
3483 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3484 (locexpr_describe_location_piece): Update.
3485 * c-exp.y (%union) <bval>: Now const.
3486 * breakpoint.c (resolve_sal_pc): Update.
3487 * blockframe.c (get_frame_block):Make return type const.
3488 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3489 (block_innermost_frame): Update.
3490 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3491 (block_for_pc, block_for_pc_sect): Update.
3492 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3494 (block_for_pc_sect, block_for_pc): Make return type const.
3495 * ax-gdb.c (gen_expr): Update.
3496 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3497 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3498 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3499 (ada_read_var_value): Update.
3500 * ada-exp.y (struct name_info) <block>: Now const.
3502 (block_lookup): Constify.
3504 2014-06-18 Gary Benson <gbenson@redhat.com>
3506 * nat/i386-dregs.h: New file.
3507 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3508 * i386-nat.h (i386-dregs.h): New include.
3509 (DR_FIRSTADDR): Now in i386-dregs.h.
3510 (DR_LASTADDR): Likewise.
3511 (DR_NADDR): Likewise.
3512 (DR_STATUS): Likewise.
3513 (DR_CONTROL): Likewise.
3514 (i386_debug_reg_state): Likewise.
3515 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3517 2014-06-18 Don Breazeal <donb@codesourcery.com>
3519 * breakpoint.c (set_longjmp_breakpoint): Call
3520 momentary_breakpoint_from_master with additional argument.
3521 (set_longjmp_breakpoint_for_call_dummy): Call
3522 momentary_breakpoint_from_master with additional argument.
3523 (set_std_terminate_breakpoint): Call
3524 momentary_breakpoint_from_master with additional argument.
3525 (momentary_breakpoint_from_master): Add argument to function
3526 definition and use it to initialize structure member flag.
3527 (clone_momentary_breakpoint): Call
3528 momentary_breakpoint_from_master with additional argument.
3529 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3530 member flags set in momentary_breakpoint_from_master.
3532 2014-06-18 Gary Benson <gbenson@redhat.com>
3534 * i386-nat.c (i386_show_dr): Renamed to
3535 i386_dr_show and made nonstatic. All uses updated.
3536 (i386_length_and_rw_bits): Renamed to
3537 i386_dr_length_and_rw_bits and made nonstatic.
3539 (i386_insert_aligned_watchpoint): Renamed to
3540 i386_dr_insert_aligned_watchpoint and made nonstatic.
3542 (i386_remove_aligned_watchpoint): Renamed to
3543 i386_dr_remove_aligned_watchpoint and made nonstatic.
3545 (i386_update_inferior_debug_regs): Renamed to
3546 i386_dr_update_inferior_debug_regs and made nonstatic.
3549 2014-06-18 Gary Benson <gbenson@redhat.com>
3551 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3552 (i386_dr_low_can_set_control): Likewise.
3553 (i386_dr_low_set_addr): Likewise.
3554 (i386_dr_low_set_control): Likewise.
3555 (i386_dr_low_get_addr): Likewise.
3556 (i386_dr_low_get_status): Likewise.
3557 (i386_dr_low_get_control): Likewise.
3558 (i386_insert_aligned_watchpoint): Use new macros.
3559 (i386_update_inferior_debug_regs): Likewise.
3560 (i386_stopped_data_address): Likewise.
3562 2014-06-18 Gary Benson <gbenson@redhat.com>
3564 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3565 New parameter. All uses updated.
3567 2014-06-18 Gary Benson <gbenson@redhat.com>
3569 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3572 2014-06-18 Gary Benson <gbenson@redhat.com>
3574 * i386-nat.c (debug_printf): New macro.
3575 (i386_get_debug_register_length): Likewise.
3576 (TARGET_HAS_DR_LEN_8): Use above macro.
3577 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3578 and printf_unfiltered. Use phex to format values.
3580 2014-06-18 Gary Benson <gbenson@redhat.com>
3582 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3585 2014-06-18 Gary Benson <gbenson@redhat.com>
3587 * i386-nat.c: Comment changes.
3589 2014-06-18 Gary Benson <gbenson@redhat.com>
3591 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3593 2014-06-18 Gary Benson <gbenson@redhat.com>
3595 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3596 (i386_insert_aligned_watchpoint): Likewise.
3597 (i386_remove_aligned_watchpoint): Likewise.
3598 (i386_handle_nonaligned_watchpoint): Likewise.
3600 2014-06-18 Gary Benson <gbenson@redhat.com>
3602 * i386-nat.c: Whitespace changes.
3604 2014-06-17 Samuel Bronson <naesten@gmail.com>
3606 * MAINTAINERS: Update Roland McGrath's email address.
3607 Thanks to Sergio Durigan Junior for pointing out that he left
3608 Red Hat a while ago, and giving me a current address.
3610 2014-06-17 Tom Tromey <tromey@redhat.com>
3612 * utils.h (savestring): Remove declaration.
3614 2014-06-17 Tom Tromey <tromey@redhat.com>
3616 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3618 2014-06-16 Keith Seitz <keiths@redhat.com>
3621 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3622 to update the varobj if inferior_ptid is null_ptid.
3624 2014-06-16 Tom Tromey <tromey@redhat.com>
3626 * target.h (struct target_ops) <to_info_proc>: Make parameter
3628 (target_info_proc): Update.
3629 * target.c (target_info_proc): Make "args" const.
3630 * procfs.c (procfs_info_proc): Update.
3631 * linux-tdep.c (linux_info_proc): Update.
3632 (linux_core_info_proc_mappings): Make "args" const.
3633 (linux_core_info_proc): Update.
3634 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3635 * gdbarch.c: Rebuild.
3636 * gdbarch.h: Rebuild.
3637 * corelow.c (core_info_proc): Update.
3639 2014-06-16 Tom Tromey <tromey@redhat.com>
3641 * target.h (struct target_ops) <to_disconnect>: Make parameter
3643 (target_disconnect): Update.
3644 * target.c (target_disconnect): Make "args" const.
3645 * target-delegates.c: Rebuild.
3646 * remote.c (remote_disconnect): Update.
3647 * record.h (record_disconnect): Update.
3648 * record.c (record_disconnect): Update.
3649 * inf-child.c (inf_child_disconnect): Update.
3651 2014-06-16 Tom Tromey <tromey@redhat.com>
3653 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3654 * target.c (debug_to_rcmd, default_rcmd): Update.
3655 * target-delegates.c: Rebuild.
3656 * remote.c (remote_rcmd): Update.
3657 * monitor.c (monitor_rcmd): Update.
3659 2014-06-16 Pedro Alves <palves@redhat.com>
3661 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3662 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3663 have OBJF_SHARED set.
3664 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3665 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3666 instead of OBJF_USERLOADED.
3667 * objfiles.h (OBJF_SHARED): Update comment.
3668 (userloaded_objfile_contains_address_p): Rename to ...
3669 (shared_objfile_contains_address_p): ... this, and update
3671 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3673 (remove_symbol_file_command): Skip objfiles that don't have
3676 2014-06-16 Tom Tromey <tromey@redhat.com>
3678 * minsyms.h (prim_record_minimal_symbol)
3679 (prim_record_minimal_symbol_and_info): Update comments.
3681 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3683 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3684 or --without-guile, according to how GDB was built.
3686 2014-06-13 Tom Tromey <tromey@redhat.com>
3688 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3690 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3692 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3694 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3695 help_list.Pass all_commands, not -1, to help_list.
3696 * cli/cli-dump.c (dump_command, append_command)
3697 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3698 (binary_dump_command, binary_append_command): Pass all_commands,
3699 not -1, to help_list.
3700 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3702 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3704 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3706 * top.c (set_history): Pass all_commands, not -1, to help_list.
3707 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3708 all_commands, not -1, to help_list.
3709 * symfile.c (overlay_command): Pass all_commands, not -1, to
3711 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3713 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3715 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3717 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3718 not -1, to help_list.
3719 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3720 not -1, to help_list.
3721 * maint.c (maintenance_command, maintenance_info_command)
3722 (maintenance_print_command, maintenance_set_cmd): Pass
3723 all_commands, not -1, to help_list.
3724 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3726 * language.c (set_check): Pass all_commands, not -1, to help_list.
3727 * infcmd.c (unset_command): Pass all_commands, not -1, to
3729 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3731 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3733 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3735 * breakpoint.c (save_command): Pass all_commands, not -1, to
3737 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3738 all_commands, not -1, to help_list.
3740 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3742 * regcache.c (struct register_to_invalidate): New structure.
3743 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3745 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3747 2014-06-12 Yao Qi <yao@codesourcery.com>
3749 * varobj.c (varobj_get_num_children): Call
3750 varobj_is_dynamic_p.
3751 (varobj_list_children): Likewise.
3752 (varobj_update): Likewise. Update comments.
3754 2014-06-12 Yao Qi <yao@codesourcery.com>
3756 * varobj.c (varobj_pretty_printed_p): Rename to ...
3757 (varobj_is_dynamic_p): ... this. New function.
3758 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3759 (varobj_is_dynamic_p): Declare.
3760 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3761 (mi_print_value_p, varobj_update_one): Likewise.
3763 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3764 Yao Qi <yao@codesourcery.com>
3766 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3767 (varobj_get_iterator): Wrap up code for pretty-printer by
3768 "#if HAVE_PYTHON" and "#endif".
3769 (update_dynamic_varobj_children): Likewise.
3771 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3772 Yao Qi <yao@codesourcery.com>
3774 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3775 gdb_python_initialized is false. Move some code from varobj.c.
3776 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3777 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3778 (struct varobj_item): Moved to varobj-iter.h".
3779 (varobj_clear_saved_item): New function.
3780 (update_dynamic_varobj_children): Move python-related code to
3782 (free_variable): Call varobj_clear_saved_item and
3785 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3786 Yao Qi <yao@codesourcery.com>
3788 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3789 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3790 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3791 (py-varobj.o): New rule.
3792 * python/py-varobj.c: New file.
3793 * python/python-internal.h (py_varobj_get_iterator): Declare.
3794 * varobj-iter.h: New file.
3795 * varobj.c: Include "varobj-iter.h"
3796 (struct varobj) <child_iter>: Change its type from "PyObject *"
3797 to "struct varobj_iter *".
3798 <saved_item>: Likewise.
3799 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3800 [HAVE_PYTHON] (varobj_get_iterator): New function.
3801 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3802 python-specific code to python/py-varobj.c.
3803 (install_visualizer): Call varobj_iter_delete instead of
3805 * varobj.h (varobj_ensure_python_env): Declare.
3807 2014-06-12 Yao Qi <yao@codesourcery.com>
3809 * varobj.c (struct varobj_item): New structure.
3810 (create_child_with_value): Update declaration.
3811 (varobj_add_child): Replace arguments 'name' and 'value' with
3812 'item'. All callers updated.
3813 (install_dynamic_child): Likewise.
3814 (update_dynamic_varobj_children): Likewise.
3815 (varobj_add_child): Likewise.
3816 (create_child_with_value): Likewise.
3818 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3820 * NEWS: Create a new section for the next release branch.
3821 Rename the section of the current branch, now that it has
3824 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3826 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3827 * version.in: Bump version to 7.8.50.DATE-cvs.
3829 2014-06-11 Pedro Alves <palves@redhat.com>
3832 * ser-mingw.c (net_windows_socket_check_pending): New function.
3833 (net_windows_select_thread): Ignore spurious wakeups. Use
3834 net_windows_socket_check_pending.
3835 (net_windows_wait_handle): Check for pending events with
3836 ioctlsocket, through net_windows_socket_check_pending, instead of
3837 checking the socket's event.
3839 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3841 * python/python-internal.h (gdb_PyObject_GetAttrString)
3842 (gdb_PyObject_HasAttrString): New inline function definitions.
3843 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3844 char * of the second argument to PyObject_GetAttrString.
3846 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3848 * serial.c (serial_write): Fix index of character to be printed
3849 in call to serial_logchar when serial debug traces are enabled.
3851 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3853 * gdbtypes (resolve_dynamic_range): Add function description.
3855 2014-06-09 Pedro Alves <palves@redhat.com>
3857 * linux-nat.c (linux_child_follow_fork): Initialize status with
3858 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3859 inner block. Only pass the signal to PTRACE_DETACH if in pass
3862 2014-06-09 Gary Benson <gbenson@redhat.com>
3864 * common/signals.c (gdb_signal_from_host): Reorder to separate
3865 the always-available ANSI-standard signals from the signals that
3867 (do_gdb_signal_to_host): Likewise.
3868 * proc-events.c (signal_table): Likewise.
3870 2014-06-08 Hui Zhu <hui@codesourcery.com>
3872 * common/linux-ptrace.c (linux_disable_event_reporting): New
3874 * common/linux-ptrace.h (linux_disable_event_reporting): New
3876 * linux-nat.c (linux_child_follow_fork): Do a single step before
3879 2014-06-07 Keith Seitz <keiths@redhat.com>
3883 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3884 from symbol_matches_domain in symtab.c. All local callers
3885 of symbol_matches_domain updated.
3886 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3887 search STRUCT_DOMAIN.
3888 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3889 independently. standard_lookup will do that automatically.
3890 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3891 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3892 (cp_lookup_symbol_in_namespace): Likewise.
3893 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3894 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3895 may return a STRUCT_DOMAIN match.
3896 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3897 * cp-support.c: Include language.h.
3898 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3900 * psymtab.c (match_partial_symbol): Compare the requested
3901 domain with the symbol's domain directly.
3902 (lookup_partial_symbol): Likewise.
3903 * symtab.c (lookup_symbol_in_language): Explain when/why
3904 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3905 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3906 appropriate languages.
3907 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3908 and moved to ada-lang.c
3909 (lookup_block_symbol): Explain that this function only returns
3910 symbol matching the requested DOMAIN.
3911 Compare the requested domain with the symbol's domain directly.
3912 (iterate_over_symbols): Compare the requested domain with the
3913 symbol's domain directly.
3914 * symtab.h (symbol_matches_domain): Remove.
3916 2014-06-06 Doug Evans <xdje42@gmail.com>
3918 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3919 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3920 (gdbscm_guile_version_is_at_least): Declare.
3921 (gdbscm_scm_string_to_int): Declare.
3922 * guile/guile.c (gdbscm_guile_major_version): New global.
3923 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3924 (guile_datadir): New static global.
3925 (gdbscm_guile_data_directory): New function.
3926 (initialize_scheme_side): Update.
3927 (misc_guile_functions): Add guile-data-directory.
3928 (initialize_gdb_module): Fetch guile version number.
3929 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3930 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3931 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3932 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3934 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3935 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3936 * guile/scm-value.c (gdbscm_value_to_string): Only call
3937 scm_port_conversion_strategy if Guile version >= 2.0.6.
3939 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3941 * main.c (print_gdb_help): Add -q and --silent.
3943 2014-06-06 Gary Benson <gbenson@redhat.com>
3945 * common/signals.c: Remove preprocessor conditionals for
3946 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3947 SIGSEGV and SIGTERM.
3948 * proc-events.c: Likewise.
3950 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3952 * symfile.c (symfile_free_objfile): Remove restriction to
3954 * symfile-mem.c (symbol_file_add_from_memory): Call
3955 add_target_sections_of_objfile.
3957 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3959 * guile/scm-value.c (gdbscm_history_append_x): Use
3960 'vlscm_get_value_smob_arg_unsafe' instead of
3961 'vlscm_scm_to_value'.
3963 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3966 * utils.c (printchar): Don't escape at all if quoter is NUL.
3967 Update function documentation to clarify effect of parameter
3969 * remote.c (escape_buffer): Pass '\\' as the quoter to
3970 fputstrn_unfiltered.
3971 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3972 generate the output.
3973 (mi_solib_unloaded): Same.
3975 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3977 * development.sh: Delete.
3978 * Makefile.in (config.status): Adjust dependency on development.sh.
3979 * configure.ac: Adjust development.sh source call.
3980 * configure: Regenerate.
3982 2014-06-04 Doug Evans <xdje42@gmail.com>
3984 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3985 is_scheme_bkpt, spec.
3986 (bpscm_make_breakpoint_smob): Initialize new members.
3987 (gdbscm_create_breakpoint_x): Split into two ...
3988 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3989 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3990 (scheme_function breakpoint_functions): Update.
3991 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3992 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3993 register-breakpoint!.
3995 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3998 * mem-break.c (z_type_supported): Return zero if
3999 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4001 2014-06-04 Tom Tromey <tromey@redhat.com>
4003 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4004 value_from_contents_and_address_unresolved.
4005 (ada_template_to_fixed_record_type_1): Likewise.
4006 (ada_which_variant_applies): Likewise.
4007 * value.h (value_from_contents_and_address_unresolved): Declare.
4008 * value.c (value_from_contents_and_address_unresolved): New
4010 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4011 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4012 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4014 2014-06-04 Tom Tromey <tromey@redhat.com>
4016 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4018 2014-06-04 Tom Tromey <tromey@redhat.com>
4020 * procfs.c (procfs_attach): Make "args" const.
4021 * windows-nat.c (windows_attach): Make "args" const.
4022 * nto-procfs.c (procfs_attach): Make "args" const.
4023 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4024 * go32-nat.c (go32_attach): Make "args" const.
4025 * gnu-nat.c (gnu_attach): Make "args" const.
4026 * darwin-nat.c (darwin_attach): Make "args" const.
4027 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4028 * linux-nat.c (linux_nat_attach): Make "args" const.
4029 * remote.c (extended_remote_attach_1, extended_remote_attach):
4031 * target.h (struct target_ops) <to_attach>: Make "args" const.
4032 (find_default_attach): Likewise.
4033 * utils.c (parse_pid_to_attach): Make "args" const.
4034 * utils.h (parse_pid_to_attach): Update.
4036 2014-06-04 Tom Tromey <tromey@redhat.com>
4038 * target-delegates.c: Rebuild.
4039 * target.c (default_thread_address_space): New function.
4040 (target_thread_address_space): Simplify.
4041 * target.h (struct target_ops) <to_thread_address_space>: Add
4042 TARGET_DEFAULT_FUNC.
4044 2014-06-04 Doug Evans <xdje42@gmail.com>
4046 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4048 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4050 * record-btrace.c: Include event-loop.h and inf-loop.h.
4051 (record_btrace_resume_exec_dir)
4052 (record_btrace_async_inferior_event_handler)
4053 (record_btrace_handle_async_inferior_event): New.
4054 (record_btrace_open): Create async event handler.
4055 (record_btrace_close): Delete async event handler.
4056 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4057 Mark async event handler.
4058 (record_btrace_execution_direction): New.
4059 (init_record_btrace_ops): Initialize to_execution_direction.
4061 2014-06-03 Doug Evans <xdje42@gmail.com>
4063 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4064 (gdbscm_make_parameter): Ditto.
4066 2014-06-03 Doug Evans <dje@google.com>
4068 * exec.c (exec_close_1): Call clear_section_table instead of
4069 resize_section_table.
4070 (clear_section_table): New function.
4071 (resize_section_table): Make static. Rename arg num_added to
4073 * exec.h (clear_section_table): Declare.
4074 (resize_section_table): Delete.
4075 * progspace.c (release_program_space): Call clear_section_table
4076 instead of resize_section_table.
4078 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4080 * NEWS (Python Scripting): Add entry about the new xmethods
4083 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4085 * python/py-xmethods.c: New file.
4086 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4087 (objfpy_dealloc): XDECREF on the new xmethods field.
4088 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4090 (objfpy_get_xmethods): New function.
4091 (objfile_getset): New entry 'xmethods'.
4092 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4093 (pspy_dealloc): XDECREF on the new xmethods field.
4094 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4096 (pspy_get_xmethods): New function.
4097 (pspace_getset): New entry 'xmethods'.
4098 * python/python-internal.h: Add declarations for new functions.
4099 * python/python.c (_initialize_python): Invoke
4100 gdbpy_initialize_xmethods.
4101 * python/lib/gdb/__init__.py (xmethods): New
4103 * python/lib/gdb/xmethod.py: New file.
4104 * python/lib/gdb/command/xmethods.py: New file.
4106 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4108 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4109 best match method returned by find_overload_match is an xmethod.
4110 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4111 the best matching operator returned by find_overload_match is an
4113 * valops.c: #include "extension.h".
4114 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4115 Return void. The list of matching source methods is returned in
4116 "fn_list" and a vector of matching debug method workers is
4117 returned in "xm_worker_vec". Update all callers.
4118 (value_find_oload_method_list): Likewise.
4119 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4120 non-NULL, then the index of the best matching method in this
4121 vector is returned. Update all callers.
4122 (find_overload_match): Include xmethods while performing overload
4125 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4127 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4128 * extension-priv.h (struct extension_language_ops): Add the
4130 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4131 get_matching_xmethod_workers, get_xmethod_argtypes,
4132 invoke_xmethod, free_xmethod_worker,
4133 free_xmethod_worker_vec): New functions.
4134 * extension.h: #include "common/vec.h".
4135 New function declarations.
4136 (struct xmethod_worker): New struct.
4137 (VEC (xmethod_worker_ptr)): New vector type.
4138 (xmethod_worker_ptr): New typedef.
4139 (xmethod_worker_vec): Likewise.
4140 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4142 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4143 (struct builtin_type): New field "xmethod".
4144 * valarith.c (value_ptradd): Assert that the value argument is not
4146 * valops.c (value_must_coerce_to_target): Return 0 for
4147 lval_xcallable values.
4148 * value.c (struct value): New field XM_WORKER in the field
4150 (value_address, value_raw_address): Return 0 for lval_xcallable
4152 (set_value_address): Assert that the value is not an
4154 (value_free): Free the associated xmethod worker when freeing
4155 lval_xcallable values.
4156 (set_value_component_location): Assert that the WHOLE value is not
4158 (value_of_xmethod, call_xmethod): New functions.
4159 * value.h: Declare "struct xmethod_worker".
4160 Declare new functions value_of_xmethod, call_xmethod.
4162 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4163 Pedro Alves <palves@redhat.com>
4165 PR breakpoints/17000
4166 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4167 New function, extracted from software_breakpoint_inserted_here_p.
4168 (software_breakpoint_inserted_here_p): Replace factored out code
4169 by call to find_non_raw_software_breakpoint_inserted_here.
4170 (bp_target_info_copy_insertion_state): New function.
4171 (bkpt_insert_location): Handle the case of a single-step
4172 breakpoint already inserted at the same address.
4173 (bkpt_remove_location): Handle the case of a single-step
4174 breakpoint still inserted at the same address.
4175 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4176 breakpoint already inserted at the same address.
4177 (deprecated_remove_raw_breakpoint): Handle the case of a
4178 non-raw breakpoint still inserted at the same address.
4179 (find_single_step_breakpoint): New function, extracted from
4180 single_step_breakpoint_inserted_here_p.
4181 (find_single_step_breakpoint): New function,
4182 factored out from single_step_breakpoint_inserted_here_p.
4183 (single_step_breakpoint_inserted_here_p): Reimplement.
4185 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4187 Pushed by Joel Brobecker <brobecker@adacore.com>
4188 * source.c (show_substitute_path_command): Fix display of matching
4191 2014-06-03 Gary Benson <gbenson@redhat.com>
4193 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4195 2014-06-02 Doug Evans <xdje42@gmail.com>
4197 Add parameter support for Guile.
4198 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4199 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4200 (scm-param.o): New rule.
4201 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4202 (gdbscm_misc_error): Declare.
4203 (gdbscm_canonicalize_command_name): Declare.
4204 (gdbscm_scm_to_host_string): Declare.
4205 (gdbscm_scm_from_host_string): Declare.
4206 (gdbscm_initialize_parameters): Declare.
4207 * guile/guile.c (initialize_gdb_module): Call
4208 gdbscm_initialize_parameters.
4209 * guile/lib/gdb.scm: Export parameter symbols.
4210 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4211 cmdscm_canonicalize_name and made public. All callers updated.
4212 * guile/scm-exception.c (gdbscm_misc_error): New function.
4213 * guile/scm-param.c: New file.
4214 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4215 (gdbscm_scm_to_host_string): New function.
4216 (gdbscm_scm_from_host_string): New function.
4217 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4219 2014-06-02 Doug Evans <xdje42@gmail.com>
4221 Add command support for Guile.
4222 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4223 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4224 (scm-cmd.o): New rule.
4225 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4226 (gdbscm_user_error_p): Declare.
4227 (gdbscm_parse_command_name): Declare.
4228 (gdbscm_valid_command_class_p): Declare.
4229 (gdbscm_initialize_commands): Declare.
4230 * guile/guile.c (initialize_gdb_module): Call
4231 gdbscm_initialize_commands.
4232 * guile/lib/gdb.scm: Export command symbols.
4233 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4234 (throw-user-error): New function.
4235 * guile/scm-cmd.c: New file.
4236 * guile/scm-exception.c (user_error_symbol): New static global.
4237 (gdbscm_user_error_p): New function.
4238 (gdbscm_initialize_exceptions): Set user_error_symbol.
4239 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4241 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4243 * top.c (command_loop): Handle comments here...
4244 (command_line_input): ... not here.
4246 2014-06-02 Doug Evans <xdje42@gmail.com>
4248 Add progspace support for Guile.
4249 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4250 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4251 (scm-progspace.o): New rule.
4252 * guile/guile-internal.h (pspace_smob): New typedef.
4253 (psscm_pspace_smob_pretty_printers): Declare.
4254 (psscm_pspace_smob_from_pspace): Declare.
4255 (psscm_scm_from_pspace): Declare.
4256 * guile/guile.c (initialize_gdb_module): Call
4257 gdbscm_initialize_pspaces.
4258 * guile/lib/gdb.scm: Export progspace symbols.
4259 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4261 (append-pretty-printer!): Ditto.
4262 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4264 * guile/scm-progspace.c: New file.
4266 2014-06-03 Alan Modra <amodra@gmail.com>
4268 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4269 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4271 2014-06-02 Doug Evans <dje@google.com>
4273 Add support for skeletonless type units.
4274 * dwarf2read.c (struct dwarf2_per_objfile): New member
4275 n_allocated_type_units.
4276 (struct dwarf2_per_objfile) <tu_stats>: New member
4277 nr_all_type_units_reallocs.
4278 (create_signatured_type_table_from_index): Initialize
4279 n_allocated_type_units
4280 (create_all_type_units): Ditto.
4281 (add_type_unit): Move up in file. New arg slot.
4282 All callers updated. Increase space for all_type_units more
4284 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4285 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4286 (lookup_dwp_signatured_type): Ditto.
4287 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4288 All callers updated.
4289 (build_type_psymtabs_1): Leave type_unit_groups as
4290 NULL if no TUs present.
4291 (print_tu_stats): New function.
4292 (process_skeletonless_type_unit): New function.
4293 (process_dwo_file_for_skeletonless_type_units): New
4295 (process_skeletonless_type_units): New function.
4296 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4297 Call print tu_stats if debugging enabled.
4299 2014-06-02 Pedro Alves <palves@redhat.com>
4301 * breakpoint.c (build_target_command_list): Don't build a command
4302 list if we have any duplicate location that isn't a dprintf.
4304 2014-06-02 Pedro Alves <palves@redhat.com>
4306 * breakpoint.c (dprintf_breakpoint_hit): New function.
4307 (initialize_breakpoint_ops): Install it as dprintf's
4308 breakpoint_hit method.
4310 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4312 * source.c (substitute_path_rule_matches): Simplify using
4313 filename_ncmp instead of FILENAME_CMP.
4315 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4317 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4319 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4321 * configure.ac: When Guile is available, check for the
4322 availability of 'scm_new_smob'.
4323 * configure, config.h.in: Regenerate.
4324 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4327 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4329 * frame.c (struct frame_info): Add stop_string field.
4330 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4331 (get_prev_frame_always): Old content moved into
4332 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4333 TRY_CATCH, handle MEMORY_ERROR exceptions.
4334 (frame_stop_reason_string): New function definition.
4335 * frame.h (unwind_stop_reason_to_string): Extend comment to
4336 mention frame_stop_reason_string.
4337 (frame_stop_reason_string): New function declaration.
4338 * stack.c (frame_info): Switch to frame_stop_reason_string.
4339 (backtrace_command_1): Switch to frame_stop_reason_string.
4340 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4341 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4342 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4344 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4346 * frame.c (frame_stop_reason_string): Rename to ...
4347 (unwind_stop_reason_to_string): this.
4348 * frame.h (frame_stop_reason_string): Rename to ...
4349 (unwind_stop_reason_to_string): this.
4350 * stack.c (frame_info): Update call to frame_stop_reason_string.
4351 (backtrace_command_1): Likewise.
4352 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4353 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4355 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4357 * frame.c (remove_prev_frame): New function.
4358 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4361 2014-05-29 Pedro Alves <palves@redhat.com>
4363 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4364 and make it const. When a single-step decays to a continue,
4365 clear 'step', not 'hw_step'. Pass whether the caller wanted
4366 to step to user_visible_resume_ptid, not what we ask the
4369 2014-05-29 Pedro Alves <palves@redhat.com>
4371 * infrun.c (process_event_stop_test, handle_step_into_function)
4372 (handle_step_into_function_backward): Adjust.
4373 Don't set the even thread's stop_step and call stop_waiting before
4374 calling end_stepping_range. Instead do that ...
4375 (end_stepping_range): ... here. Take an ecs pointer parameter.
4377 2014-05-29 Pedro Alves <palves@redhat.com>
4379 * infrun.c (stop_stepping): Rename to ...
4380 (stop_waiting): ... this.
4381 (proceed): Update comment.
4382 (process_event_stop_test, handle_inferior_event)
4383 (handle_signal_stop, handle_step_into_function)
4384 (handle_step_into_function_backward): Update.
4386 2014-05-29 Pedro Alves <palves@redhat.com>
4388 * infcall.c (run_inferior_call): Don't check whether the current
4389 thread is running after the proceed call.
4391 2014-05-29 Pedro Alves <palves@redhat.com>
4392 Tom Tromey <tromey@redhat.com>
4394 * NEWS: Mention "maint set target-async", "set mi-async", and that
4395 background execution commands are now always available.
4396 * target.h (target_async_permitted): Update comment.
4397 * target.c (target_async_permitted, target_async_permitted_1):
4399 (set_target_async_command): Rename to ...
4400 (maint_set_target_async_command): ... this.
4401 (show_target_async_command): Rename to ...
4402 (maint_show_target_async_command): ... this.
4403 (_initialize_target): Adjust.
4404 * infcmd.c (prepare_execution_command): Make extern.
4405 * inferior.h (prepare_execution_command): Declare.
4406 * infrun.c (set_observer_mode): Leave target async alone.
4407 * mi/mi-interp.c (mi_interpreter_init): Install
4408 mi_on_sync_execution_done as sync_execution_done observer.
4409 (mi_on_sync_execution_done): New function.
4410 (mi_execute_command_input_handler): Don't print the prompt if we
4411 just started a synchronous command with an async target.
4412 (mi_on_resume): Check sync_execution before printing prompt.
4413 * mi/mi-main.h (mi_async_p): Declare.
4414 * mi/mi-main.c: Include gdbcmd.h.
4415 (mi_async_p): New function.
4416 (mi_async, mi_async_1): New globals.
4417 (set_mi_async_command, show_mi_async_command, mi_async): New
4419 (exec_continue): Call prepare_execution_command.
4420 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4421 (mi_execute_async_cli_command): Use mi_async_p.
4422 (_initialize_mi_main): Install "set mi-async". Make
4423 "target-async" a deprecated alias.
4425 2014-05-29 Pedro Alves <palves@redhat.com>
4427 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4428 (_initialize_cli_interp): Adjust.
4429 * event-loop.c: Include "observer.h".
4430 (start_event_loop): Notify 'command_error' observers instead of
4431 calling display_gdb_prompt. Remove FIXME comment.
4432 * event-top.c (display_gdb_prompt): Remove call into the
4434 * inf-loop.c: Include "observer.h".
4435 (inferior_event_handler): Notify 'command_error' observers instead
4436 of calling display_gdb_prompt.
4437 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4438 observers instead of calling display_gdb_prompt.
4439 * interps.c (interp_set): Don't call display_gdb_prompt.
4440 (current_interp_display_prompt_p): Delete.
4441 * interps.h (interp_prompt_p): Delete declaration.
4442 (interp_prompt_p_ftype): Delete.
4443 (struct interp_procs) <prompt_proc_p>: Delete field.
4444 (current_interp_display_prompt_p): Delete declaration.
4445 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4446 (_initialize_mi_interp): Adjust.
4447 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4448 'command_error' observers.
4449 (tui_on_sync_execution_done, tui_on_command_error): New
4451 (tui_display_prompt_p): Delete.
4452 (_initialize_tui_interp): Adjust.
4454 2014-05-29 Pedro Alves <palves@redhat.com>
4457 * cli/cli-interp.c: Include infrun.h and observer.h.
4458 (cli_uiout, cli_interp): New globals.
4459 (cli_on_signal_received, cli_on_end_stepping_range)
4460 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4462 (cli_interpreter_init): Install them as 'end_stepping_range',
4463 'signal_received' 'signal_exited', 'exited' and 'no_history'
4465 (_initialize_cli_interp): Remove cli_interp local.
4466 * infrun.c (handle_inferior_event): Call the several stop reason
4467 observers instead of printing the stop reason directly.
4468 (end_stepping_range): New function.
4469 (print_end_stepping_range_reason, print_signal_exited_reason)
4470 (print_exited_reason, print_signal_received_reason)
4471 (print_no_history_reason): Make static, and add an uiout
4472 parameter. Print to that instead of to CURRENT_UIOUT.
4473 * infrun.h (print_end_stepping_range_reason)
4474 (print_signal_exited_reason, print_exited_reason)
4475 (print_signal_received_reason print_no_history_reason): New
4477 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4479 <cli_uiout>: New field.
4480 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4481 uiout for CLI output. Install 'signal_received',
4482 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4484 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4485 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4486 (mi_on_no_history): New functions.
4487 (ui_out_free_cleanup): Delete function.
4488 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4489 instead use the one already stored in the MI interpreter data.
4490 (mi_ui_out): Adjust.
4491 * tui/tui-interp.c: Include infrun.h and observer.h.
4492 (tui_interp): New global.
4493 (tui_on_signal_received, tui_on_end_stepping_range)
4494 (tui_on_signal_exited, tui_on_exited)
4495 (tui_on_no_history): New functions.
4496 (tui_init): Install them as 'end_stepping_range',
4497 'signal_received' 'signal_exited', 'exited' and 'no_history'
4499 (_initialize_tui_interp): Delete tui_interp local.
4501 2014-05-29 Pedro Alves <palves@redhat.com>
4504 * linux-nat.c (linux_nat_resume_callback): Rename the second
4505 parameter to 'except'. Skip LP if it points to EXCEPT.
4506 (linux_nat_resume): Don't mark the event lwp as not stopped
4507 before resuming sibling lwps. Instead ask
4508 linux_nat_resume_callback to skip the event lwp. Mark it as not
4509 stopped after actually resuming it.
4510 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4512 (wait_lwp): Mark the lwp as stopped here.
4513 (stop_wait_callback): Mark the lwp as not stopped right after
4514 resuming it. Don't mark lwps as stopped here.
4515 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4516 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4518 2014-05-29 Pedro Alves <palves@redhat.com>
4521 * infrun.c (resume): Determine how much to resume depending on
4522 whether the caller wanted a step, not whether we can hardware step
4523 the target. Mark all threads that we intend to run as running,
4524 unless we're calling an inferior function.
4525 (normal_stop): If the thread is running an infcall, don't finish
4527 * target.c (target_resume): Don't mark threads as running here.
4529 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4531 * serial.c (_initialize_serial): Remove support for
4532 the "set remotebaud" and "show remotebaud" commands.
4533 * NEWS: Add entry documenting the removal of that command.
4535 2014-05-28 Yao Qi <yao@codesourcery.com>
4537 * charset.c: Fix typo in comments.
4539 2014-05-27 Gary Benson <gbenson@redhat.com>
4541 * utils.c (internal_vproblem): Prompt for a bug report.
4543 2014-05-26 Andy Wingo <wingo@igalia.com>
4545 * guile/scm-arch.c (arscm_mark_arch_smob):
4546 * guile/scm-block.c (bkscm_mark_block_smob)
4547 (bkscm_mark_block_syms_progress_smob):
4548 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4549 * guile/scm-exception.c (exscm_mark_exception_smob):
4550 * guile/scm-frame.c (frscm_mark_frame_smob):
4551 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4552 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4553 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4554 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4555 (ppscm_mark_pretty_printer_worker_smob):
4556 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4557 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4558 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4559 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4561 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4564 2014-05-26 Andy Wingo <wingo@igalia.com>
4565 Doug Evans <xdje42@gmail.com>
4567 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4568 empty_base_class. All uses updated.
4569 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4570 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4572 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4573 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4574 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4575 (gdbscm_gsmob_has_property_p, add_property_name)
4576 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4577 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4578 (gdb-object-has-property?, gdb-object-properties): Remove.
4579 (gdb-object-kind): Renamed from gsmob-kind.
4581 2014-05-26 Andy Wingo <wingo@igalia.com>
4583 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4584 * configure: Regenerate.
4586 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4588 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4590 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4592 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4593 (replay_memory_access_read_only, replay_memory_access_read_write)
4594 (replay_memory_access_types, replay_memory_access)
4595 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4596 (cmd_set_record_btrace, cmd_show_record_btrace)
4597 (cmd_show_replay_memory_access): New.
4598 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4599 (record_btrace_remove_breakpoint): Replace
4600 record_btrace_allow_memory_access with replay_memory_access.
4601 (_initialize_record_btrace): Add commands.
4602 * NEWS: Announce it.
4604 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4606 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4608 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4610 * MAINTAINERS (Write After Approval): Move self back from
4613 2014-05-22 Pedro Alves <palves@redhat.com>
4615 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4616 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4617 (disable_randomization, enum exec_direction_kind)
4618 (execution_direction, stop_registers, start_remote)
4619 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4620 (wait_for_inferior, normal_stop, get_last_target_status)
4621 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4622 (insert_step_resume_breakpoint_at_sal)
4623 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4624 (set_step_info, print_stop_event, signal_stop_state)
4625 (signal_print_state, signal_pass_state, signal_stop_update)
4626 (signal_print_update, signal_pass_update)
4627 (update_signals_program_target, clear_exit_convenience_vars)
4628 (displaced_step_dump_bytes, update_observer_mode)
4629 (signal_catch_update, gdb_signal_from_command): Move
4631 * infrun.h: ... to this new file.
4632 * amd64-tdep.c: Include infrun.h.
4633 * annotate.c: Include infrun.h.
4634 * arch-utils.c: Include infrun.h.
4635 * arm-linux-tdep.c: Include infrun.h.
4636 * arm-tdep.c: Include infrun.h.
4637 * break-catch-sig.c: Include infrun.h.
4638 * breakpoint.c: Include infrun.h.
4639 * common/agent.c: Include infrun.h instead of inferior.h.
4640 * corelow.c: Include infrun.h.
4641 * event-top.c: Include infrun.h.
4642 * go32-nat.c: Include infrun.h.
4643 * i386-tdep.c: Include infrun.h.
4644 * inf-loop.c: Include infrun.h.
4645 * infcall.c: Include infrun.h.
4646 * infcmd.c: Include infrun.h.
4647 * infrun.c: Include infrun.h.
4648 * linux-fork.c: Include infrun.h.
4649 * linux-nat.c: Include infrun.h.
4650 * linux-thread-db.c: Include infrun.h.
4651 * monitor.c: Include infrun.h.
4652 * nto-tdep.c: Include infrun.h.
4653 * procfs.c: Include infrun.h.
4654 * record-btrace.c: Include infrun.h.
4655 * record-full.c: Include infrun.h.
4656 * remote-m32r-sdi.c: Include infrun.h.
4657 * remote-mips.c: Include infrun.h.
4658 * remote-notif.c: Include infrun.h.
4659 * remote-sim.c: Include infrun.h.
4660 * remote.c: Include infrun.h.
4661 * reverse.c: Include infrun.h.
4662 * rs6000-tdep.c: Include infrun.h.
4663 * s390-linux-tdep.c: Include infrun.h.
4664 * solib-irix.c: Include infrun.h.
4665 * solib-osf.c: Include infrun.h.
4666 * solib-svr4.c: Include infrun.h.
4667 * target.c: Include infrun.h.
4668 * top.c: Include infrun.h.
4669 * windows-nat.c: Include infrun.h.
4670 * mi/mi-interp.c: Include infrun.h.
4671 * mi/mi-main.c: Include infrun.h.
4672 * python/py-threadevent.c: Include infrun.h.
4674 2014-05-22 Pedro Alves <palves@redhat.com>
4676 * infrun.c (handle_inferior_event): Store the exit code for
4677 --return-child-result here, instead of ...
4678 (print_exited_reason): ... here.
4680 2014-05-21 Pedro Alves <palves@redhat.com>
4683 * gdbthread.h (struct thread_control_state): New field
4685 * infrun.c (follow_fork): Copy the new thread control field to the
4687 (clear_proceed_status_thread): Clear the new thread control field.
4688 (proceed): Set the new thread control field.
4689 * interps.h (command_interp): Declare.
4690 * interps.c (command_interpreter): New global.
4691 (command_interp): New function.
4692 (interp_exec): Set `command_interpreter' while here.
4693 * cli-out.c (cli_uiout_dtor): New function.
4694 (cli_ui_out_impl): Install it.
4695 * mi/mi-interp.c: Include cli-out.h.
4696 (mi_cmd_interpreter_exec): Add comment.
4697 (restore_current_uiout_cleanup): New function.
4698 (ui_out_free_cleanup): New function.
4699 (mi_on_normal_stop): If finishing an execution command started by
4700 a CLI command, or any kind of breakpoint-like event triggered,
4701 print the stop event to the output (CLI) stream.
4702 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4704 2014-05-21 Pedro Alves <palves@redhat.com>
4706 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4707 current source line having changed.
4708 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4709 * infrun.c (normal_stop): Adjust call to
4710 set_current_sal_from_frame.
4711 * source.c (clear_lines_listed_range): New function.
4712 (set_current_source_symtab_and_line, identify_source_line): Clear
4713 the lines listed range.
4714 (line_info): Handle the first "info line" after the current source
4715 line having changed.
4716 * stack.c (print_stack_frame): Remove center handling.
4717 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4720 2014-05-21 Pedro Alves <palves@redhat.com>
4722 * inf-child.c (inf_child_mourn_inferior): New function.
4723 * inf-child.h (inf_child_mourn_inferior): New declaration.
4724 * darwin-nat.c (darwin_mourn_inferior): Use
4725 inf_child_mourn_inferior.
4726 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4727 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4728 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4729 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4730 * windows-nat.c (windows_mourn_inferior): Likewise.
4732 2014-05-21 Doug Evans <xdje42@gmail.com>
4734 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4736 2014-05-21 Doug Evans <xdje42@gmail.com>
4738 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4739 (gdbscm_out_of_range_error): Ditto.
4740 (gdbscm_memory_error): Ditto.
4741 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4742 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4743 (gdbscm_out_of_range_error): Update.
4744 (gdbscm_memory_error): Update.
4745 (gdbscm_scm_to_target_string_unsafe): Delete.
4747 2014-05-21 Pedro Alves <palves@redhat.com>
4749 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4751 (inf_child_open_target): New function.
4752 (inf_child_open): Use inf_child_open_target to push the target
4753 instead of erroring out.
4754 (inf_child_disconnect, inf_child_close)
4755 (inf_child_maybe_unpush_target): New functions.
4756 (inf_child_target): Install inf_child_disconnect and
4757 inf_child_close. Store a pointer to the returned object.
4758 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4760 * target.c (auto_connect_native_target): New global.
4761 (show_default_run_target): New function.
4762 (find_default_run_target): Return NULL if automatically connecting
4763 to the native target is disabled.
4764 (_initialize_target): Install set/show auto-connect-native-target.
4765 * NEWS: Mention "set auto-connect-native-target", and "target
4767 * linux-nat.c (super_close): New global.
4768 (linux_nat_close): Call super_close.
4769 (linux_nat_add_target): Store a pointer to the base class's
4771 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4772 inf_child_maybe_unpush.
4773 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4775 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4776 the inferior. Use inf_child_maybe_unpush_target.
4777 (inf_ttrace_attach): Don't push the target if it is already
4779 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4780 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4781 after mourning the inferior. Use inf_child_maybe_unpush_target.
4782 (darwin_attach_pid): Don't push the target if it is already
4784 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4785 mourning the inferior. Use inf_child_maybe_unpush_target.
4786 (gnu_detach): Use inf_child_maybe_unpush_target.
4787 * go32-nat.c (go32_create_inferior): Don't push the target if it
4789 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4790 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4791 (procfs_open): Rename to ...
4792 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4793 comments. Can target_preopen before changing node. Call
4794 inf_child_open_target to push the target explicitly.
4795 (procfs_attach): Don't push the target if it is already pushed.
4796 (procfs_detach): Use inf_child_maybe_unpush_target.
4797 (procfs_create_inferior): Don't push the target if it is already
4799 (nto_native_ops): New global.
4800 (procfs_open): Reimplement.
4801 (procfs_native_open): New function.
4802 (init_procfs_targets): Install procfs_native_open as to_open of
4803 "target native". Store a pointer to the "native" target in
4805 * procfs.c (procfs_attach): Don't push the target if it is already
4807 (procfs_detach): Use inf_child_maybe_unpush_target.
4808 (procfs_mourn_inferior): Only unpush the target after mourning the
4809 inferior. Use inf_child_maybe_unpush_target.
4810 (procfs_init_inferior): Don't push the target if it is already
4812 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4813 if it is already pushed.
4815 2014-05-21 Pedro Alves <palves@redhat.com>
4817 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4818 and "procfs" targets are now called "native" instead.
4820 2014-05-21 Pedro Alves <palves@redhat.com>
4822 * go32-nat.c (go32_open): Delete.
4823 (go32_target): Don't override the to_open method.
4825 2014-05-21 Pedro Alves <palves@redhat.com>
4827 * nto-procfs.c (procfs_can_run): New function.
4828 (nto_procfs_ops): New global.
4829 (init_procfs_targets): New, based on procfs_target. Install
4830 "target native" in addition to "target procfs".
4831 (_initialize_procfs): Call init_procfs_targets instead of adding
4834 2014-05-21 Pedro Alves <palves@redhat.com>
4836 * windows-nat.c (windows_target): Don't override to_shortname,
4837 to_longname or to_doc.
4839 2014-05-21 Pedro Alves <palves@redhat.com>
4841 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4844 2014-05-21 Pedro Alves <palves@redhat.com>
4846 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4847 to_shortname, to_longname or to_doc.
4849 2014-05-21 Pedro Alves <palves@redhat.com>
4851 * go32-nat.c (go32_target): Don't override to_shortname,
4852 to_longname or to_doc.
4854 2014-05-21 Pedro Alves <palves@redhat.com>
4856 * inf-child.c (inf_child_open): Remove mention of "child".
4857 (inf_child_target): Rename target to "native" instead of "child".
4859 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4861 * Makefile.in (SFILES): Delete "regset.c".
4862 (COMMON_OBS): Delete "regset.o".
4864 * regset.h (regset_alloc): Delete prototype.
4866 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4868 * sparc-linux-tdep.c (sparc32_linux_gregset)
4869 (sparc32_linux_fpregset): New static regset structures.
4870 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4871 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4873 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4874 (sparc64_linux_fpregset): New static regset structures.
4875 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4876 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4877 New static regset structures.
4878 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4879 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4880 New static regset structures.
4881 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4882 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4883 New static regset structures.
4884 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4885 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4886 New static regset structures.
4887 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4889 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4891 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4892 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4893 register maps ("regmaps") from "*regset" to "*regmap". Do this
4894 for all regmap types and variables.
4895 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4896 (sparc32_linux_supply_core_gregset)
4897 (sparc32_linux_collect_core_gregset)
4898 (sparc32_linux_supply_core_fpregset)
4899 (sparc32_linux_collect_core_fpregset): Likewise.
4900 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4901 (sparc_gregmap, sparc_fpregmap): ... these.
4902 (sparc_supply_gregset, sparc_collect_gregset)
4903 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4904 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4905 (_initialize_sparc_nat): Rename regmaps.
4906 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4907 (sparc_gregmap, sparc_fpregmap): ... these.
4908 (sparc_supply_gregset, sparc_collect_gregset)
4909 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4910 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4912 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4913 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4915 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4917 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4918 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4919 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4921 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4922 (sparc32_bsd_fpregset): Rename to...
4923 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4924 (sparc32_bsd_fpregmap): ... these.
4925 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4926 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4927 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4928 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4929 (struct sparc_gregmap, struct sparc_fpregmap)
4930 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4931 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4932 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4933 (sparc32_supply_regset, sparc32_collect_gregset)
4934 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4936 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4937 (sparc64_linux_ptrace_gregmap): ... this.
4938 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4939 (_initialize_sparc64_linux_nat): Rename regmaps.
4940 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4941 (sparc64_linux_core_gregmap): ... this.
4942 (sparc64_linux_supply_core_gregset)
4943 (sparc64_linux_collect_core_gregset)
4944 (sparc64_linux_supply_core_fpregset)
4945 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4946 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4947 (sparc64_sol2_fpregset): Rename to...
4948 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4949 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4950 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4952 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4953 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4954 (sparc64_bsd_fpregset): Rename to...
4955 (struct sparc_gregmap, sparc64_sol2_gregmap)
4956 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4957 (sparc64_bsd_fpregmap): ... these.
4958 (sparc64_supply_gregset, sparc64_collect_gregset)
4959 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4961 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4962 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4963 (sparc64fbsd_gregmap): ... this.
4964 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4965 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4967 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4968 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4969 (sparc64nbsd_collect_fpregset): Likewise.
4970 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4971 (sparc64nbsd_gregmap): ... this.
4972 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4974 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4975 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4976 (sparc64obsd_gregmap): ... this.
4977 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4979 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4980 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4981 (sparc32nbsd_gregmap): ... this.
4982 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4985 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4987 * score-tdep.c (score7_linux_gregset): New static regset
4989 (score7_linux_regset_from_core_section): Remove dynamic regset
4991 (score_gdbarch_init): Drop allocation of tdep structure.
4992 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4994 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4996 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4998 (am33_regset_from_core_section): Remove dynamic regset
5001 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5003 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5004 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5006 (mips_linux_regset_from_core_section): Remove dynamic regset
5008 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5009 'gregset64', 'fpregset', and 'fpregset64'.
5010 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5011 deleted tdep fields.
5013 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5015 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5017 (amd64_regset_from_core_section): Remove dynamic regset
5019 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5021 (amd64obsd_regset_from_core_section): Remove dynamic regset
5023 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5025 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5026 x86-common regset supply function.
5027 * i386-tdep.c (i386_collect_gregset): Make static.
5028 (i386_gregset): New global regset structure.
5029 (i386_fpregset, i386_xstateregset): New static regset structures.
5030 (i386_regset_from_core_section): Remove dynamic regset
5032 (i386_gdbarch_init): Remove initialization of tdep fields
5033 'gregset', 'fpregset', and 'xstateregset'.
5034 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5035 'fpregset', and 'xstateregset'.
5036 (i386_collect_gregset): Remove prototype.
5037 (i386_gregset): New declaration.
5038 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5040 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5043 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5045 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5046 (arm_linux_vfpregset): New static regset structures.
5047 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5049 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5050 and 'vfpregset' fields.
5052 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5054 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5055 (aarch64_linux_fpregset): New static regset structures.
5056 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5057 of regset structures.
5058 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5061 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5063 * regset.h (struct regset): Remove gdbarch field.
5064 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5065 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5066 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5068 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5069 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5070 (ppc32_linux_vsxregset): Likewise.
5071 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5072 via the regcache instead of the regset.
5073 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5074 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5075 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5076 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5079 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5081 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5082 Constify structures.
5083 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5084 (alphanbsd_aout_gregset): Likewise.
5085 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5086 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5088 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5089 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5091 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5092 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5093 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5094 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5095 * m88k-tdep.c (m88k_gregset): Likewise.
5096 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5097 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5098 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5099 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5100 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5101 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5102 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5103 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5104 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5106 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5107 * sh-tdep.h (sh_corefile_gregset): Likewise.
5108 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5109 * vax-tdep.c (vax_gregset): Likewise.
5111 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5113 Fix TLS access for -static -pthread.
5114 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5115 (try_thread_db_load_1): Initialize it.
5116 (thread_db_get_thread_local_address): Call it if LM is zero.
5117 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5118 * target.h (struct target_ops) (to_get_thread_local_address): Add
5119 load_module_addr comment.
5121 2014-05-21 Pedro Alves <palves@redhat.com>
5123 * dcache.c (dcache_read_memory_partial): If reading the cache line
5124 fails, fallback to reading just the memory the caller wanted.
5126 2014-05-20 Doug Evans <dje@google.com>
5128 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5129 instead of get_current_arch.
5131 2014-05-20 Pedro Alves <palves@redhat.com>
5133 * NEWS: Mention that compare-sections now works with all targets.
5135 * remote.c (PACKET_qCRC): New enum value.
5136 (remote_verify_memory): Don't send qCRC if the target has no
5137 execution. Use packet_support/packet_ok. If the target doesn't
5138 support the qCRC packet, fallback to a deep memory copy.
5139 (compare_sections_command): Say "target image" instead of "remote
5141 (_initialize_remote): Add PACKET_qCRC to the list of config
5142 packets that have no associated command. Extend comment.
5143 * target.c (simple_verify_memory, default_verify_memory): New
5145 * target.h (struct target_ops) <to_verify_memory>: Default to
5146 default_verify_memory.
5147 (simple_verify_memory): New declaration.
5148 * target-delegates.c: Regenerate.
5150 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5152 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5154 2014-05-20 Hui Zhu <hui@codesourcery.com>
5155 Yao Qi <yao@codesourcery.com>
5158 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5159 and change address of sp and pc.
5161 2014-05-19 Tom Tromey <tromey@redhat.com>
5163 * gdbtypes.c (rank_function): Use XNEWVEC.
5164 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5166 2014-05-19 Doug Evans <dje@google.com>
5168 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5169 build_type_unit_groups and moved closer to only caller. Remove
5170 arguments. All references updated. Remove outdated .gdb_index
5172 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5173 build_type_psymtabs_1.
5175 2014-05-19 Doug Evans <dje@google.com>
5177 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5178 n_type_unit_groups, all_type_unit_groups. All uses removed.
5179 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5180 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5181 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5182 (add_type_unit_group_to_table): Delete.
5184 2014-05-19 Doug Evans <dje@google.com>
5186 * eval.c (evaluate_subexp_standard): Add some comments.
5188 2014-05-17 Doug Evans <xdje42@gmail.com>
5190 * progspace.c (remove_program_space): Delete, unused.
5191 * progspace.h (remove_program_space): Ditto.
5193 2014-05-17 Doug Evans <xdje42@gmail.com>
5195 * inferior.c (prune_inferiors): Fix comment.
5196 (remove_inferior_command): Call prune_program_spaces.
5198 2014-05-16 Doug Evans <dje@google.com>
5200 New command line option -D.
5202 * main.c (set_gdb_data_directory): New function.
5203 (captured_main): Recognize -D. Flag error for --data-directory "".
5204 Call set_gdb_data_directory.
5205 (print_gdb_help): Print --data-directory, -D.
5206 * main.h (set_gdb_data_directory): Declare.
5207 * top.c (staged_gdb_datadir): New static global.
5208 (set_gdb_datadir): Call set_gdb_data_directory
5209 (show_gdb_datadir): New function.
5210 (init_main): Update init of data-directory parameter.
5212 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5214 Import the "dirfd" gnulib module.
5215 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5216 * gnulib/aclocal.m4: Update.
5217 * gnulib/config.in: Update.
5218 * gnulib/configure: Update.
5219 * gnulib/import/Makefile.am: Update.
5220 * gnulib/import/Makefile.in: Update.
5221 * gnulib/import/dirfd.c: New.
5222 * gnulib/import/m4/dirfd.m4: New.
5223 * gnulib/import/m4/gnulib-cache.m4: Update.
5224 * gnulib/import/m4/gnulib-comp.m4: Update.
5226 2014-05-16 Pierre Muller <muller@sourceware.org>
5227 Yao Qi <yao@codesourcery.com>
5229 * valprint.c (print_wchar): Move the code on checking whether
5230 W is a printable wide char to the default branch of switch
5231 statement below. Call wchar_printable instead of gdb_iswprint.
5233 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5235 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5236 ldr.w and ldrd instructions.
5238 2014-05-15 Doug Evans <dje@google.com>
5240 * dwarf2read.c (read_structure_type): Delete outdated comments.
5242 2014-05-14 Tom Tromey <tromey@redhat.com>
5244 * macrocmd.c (print_macro_definition): Reindent.
5246 2014-05-13 Doug Evans <xdje42@gmail.com>
5248 * python/py-cmd.c (cmdpy_completer): Add comment.
5249 (completers): Make const.
5251 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5253 * infrun.c (resume): Remove should_resume (unused). Move up
5254 declaration of resume_ptid.
5256 2014-05-13 Tom Tromey <tromey@redhat.com>
5258 * language.h (unop_type_check): Remove.
5259 (binop_type_check): Don't declare.
5261 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5263 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5264 call to regcache_raw_collect.
5266 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5268 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5269 mi_console->quote as the quoting character.
5271 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5273 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5275 2014-04-29 Tom Tromey <tromey@redhat.com>
5277 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5278 "show debug varobj".
5280 2014-05-07 Kyle McMartin <kyle@redhat.com>
5282 Pushed by Joel Brobecker <brobecker@adacore.com>.
5283 * aarch64-tdep.c (aarch64_software_single_step): New function.
5284 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5285 with aarch64_software_single_step.
5287 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5291 2014-05-05 Keith Seitz <keiths@redhat.com>
5293 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5294 variable or history value is successfully parsed.
5296 2014-05-05 Yao Qi <yao@codesourcery.com>
5297 Pedro Alves <palves@redhat.com>
5299 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5300 address of blocks that intersects the requested range. Trim
5301 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5303 * ctf.c (ctf_xfer_partial): Likewise.
5305 2014-05-05 Yao Qi <yao@codesourcery.com>
5307 * printcmd.c (display_command): Remove the check to
5308 target_has_execution.
5310 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5312 * ppcobsd-nat.c: Include "obsd-nat.h".
5313 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5315 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5317 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5319 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5320 and 16-bit signed and unsigned arguments. Update comment.
5321 (stap_parse_probe_arguments): Extend code to handle such
5322 arguments. Use warning instead of complaint to notify about
5323 unrecognized bitness.
5325 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5327 PR breakpoints/16889
5328 * stap-probe.c (stap_parse_probe_arguments): Simplify
5329 check for non-prefixed probes (i.e., probes whose
5330 arguments do not start with "N@"). Always set the
5331 argument type to a sane value.
5333 2014-05-01 David Taylor <dtaylor@emc.com>
5335 * remote.c (compare_sections_command): Add -r option to compare
5336 all loadable read-only sections.
5338 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5340 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5341 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5343 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5344 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5345 Remove unused CORE_ADDR argument. Update all callers.
5347 2014-04-29 Pedro Alves <palves@redhat.com>
5349 * remote.c (struct packet_config) <detect>: Extend comment.
5350 (add_packet_config_cmd): Don't set the config's detect or support
5352 (init_all_packet_configs): Also initialize the config's 'detect'
5354 (reset_all_packet_configs_support): New function.
5355 (remote_open_1): Call reset_all_packet_configs_support instead of
5356 init_all_packet_configs.
5357 (_initialize_remote): Initialize all packet configs. Assert that
5358 all packets have an associated command, except a few known
5361 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5363 * dwarf2read.c (read_subrange_type): Handle dynamic
5364 DW_AT_lower_bound attributes.
5366 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5368 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5369 dynamic bounds before computing its upper bound.
5370 (ada_discrete_type_low_bound): Same as above with the lower bound.
5372 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5374 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5375 range types. Adjust the array handling implementation to
5376 take advantage of this change.
5377 (resolve_dynamic_range): New function, mostly extracted from
5378 resolve_dynamic_bounds.
5379 (resolve_dynamic_array): New function, mostly extracted from
5380 resolve_dynamic_bounds.
5381 (resolve_dynamic_bounds): Delete.
5382 (resolve_dynamic_type): Reimplement. Add handling of
5383 TYPE_CODE_RANGE types.
5385 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5387 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5388 handling of parallel ___XA types.
5390 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5392 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5393 unnecessary second call to static_unwrap_type.
5395 2014-04-27 Hui Zhu <hui@codesourcery.com>
5397 * stack.c (print_frame_info): Call do_gdb_disassembly with
5398 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5400 2014-04-26 Doug Evans <xdje42@gmail.com>
5402 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5404 2014-04-25 Pedro Alves <palves@redhat.com>
5407 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5408 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5409 and newline from built string.
5410 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5411 (linux_ptrace_attach_fail_reason): ... this.
5412 * linux-nat.c (linux_nat_attach): Adjust to use
5413 linux_ptrace_attach_fail_reason.
5415 2014-04-25 Pedro Alves <palves@redhat.com>
5417 * remote.c (struct remote_state): Remove multi_process_aware,
5418 non_stop_aware, cond_tracepoints, cond_breakpoints,
5419 breakpoint_commands, fast_tracepoints, static_tracepoints,
5420 install_in_trace, disconnected_tracing,
5421 enable_disable_tracepoints, string_tracing, and
5422 augmented_libraries_svr4_read fields.
5423 (remote_multi_process_p): Move further below in the file.
5424 (struct packet_config): Add comments.
5425 (update_packet_config): Delete function.
5426 (show_packet_config_cmd): Use packet_config_support.
5427 (add_packet_config_cmd): Use NULL as set callback.
5428 (packet_ok): "set remote foo-packet"-style commands no longer
5429 change config->supported -- adjust.
5430 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5431 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5432 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5433 (PACKET_QNonStop, PACKET_multiprocess_feature)
5434 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5435 (PACKET_DisconnectedTracing_feature)
5436 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5437 (set_remote_protocol_packet_cmd): Delete function.
5438 (packet_config_support, packet_support): New functions.
5439 (set_remote_protocol_Z_packet_cmd): Don't call
5440 update_packet_config.
5441 (remote_query_attached, remote_pass_signals)
5442 (remote_program_signals, remote_threads_info)
5443 (remote_threads_extra_info, remote_start_remote): Use
5445 (remote_start_remote): Use packet_config_support and
5447 (init_all_packet_configs): Set all packets to unknown support,
5448 instead of calling update_packet_config.
5449 (remote_check_symbols): Use packet_support.
5450 (remote_supported_packet): Unconditionally set the packet config's
5452 (remote_multi_process_feature, remote_non_stop_feature)
5453 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5454 (remote_breakpoint_commands_feature)
5455 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5456 (remote_install_in_trace_feature)
5457 (remote_disconnected_tracing_feature)
5458 (remote_enable_disable_tracepoint_feature)
5459 (remote_string_tracing_feature)
5460 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5461 (remote_protocol_features): Adjust to use remote_supported_packet
5462 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5463 "ConditionalTracepoints", "ConditionalBreakpoints",
5464 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5465 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5466 "EnableDisableTracepoints", and "tracenz".
5467 (remote_query_supported): Use packet_support.
5468 (remote_open_1): Adjust.
5469 (extended_remote_attach_1): Use packet_support. Switch on the
5470 result of packet_ok instead of checking whether the packet ended
5472 (remote_vcont_resume): Use packet_support.
5473 (remote_resume, remote_stop_ns, fetch_register_using_p)
5474 (remote_prepare_to_store, store_register_using_P)
5475 (check_binary_download, remote_write_bytes): Use packet_support.
5476 (remote_vkill): Use packet_support. Switch on the result of
5477 packet_ok instead of checking whether the packet ended up
5479 (extended_remote_supports_disable_randomization): Use
5481 (extended_remote_run): Switch on the result of packet_ok instead
5482 of checking whether the packet ended up disabled.
5483 (remote_insert_breakpoint, remote_remove_breakpoint)
5484 (remote_insert_watchpoint, remote_remove_watchpoint)
5485 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5487 (remote_search_memory): Use packet_config_support.
5488 (remote_get_thread_local_address, remote_get_tib_address)
5489 (remote_hostio_send_command, remote_can_execute_reverse): Use
5491 (remote_supports_cond_tracepoints)
5492 (remote_supports_cond_breakpoints)
5493 (remote_supports_fast_tracepoints)
5494 (remote_supports_static_tracepoints)
5495 (remote_supports_install_in_trace)
5496 (remote_supports_enable_disable_tracepoint)
5497 (remote_supports_string_tracing)
5498 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5499 the packet config says the feature is enabled or disabled.
5500 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5501 (remote_get_trace_status): Use packet_support.
5502 (remote_set_disconnected_tracing): Adjust to check whether the
5503 feature is enabled with packet_support.
5504 (remote_set_trace_buffer_size, remote_use_agent)
5505 (remote_can_use_agent, remote_supports_btrace): Use
5507 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5508 Use packet_config_support.
5509 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5510 the packet config says the feature is enabled or disabled.
5511 (set_range_stepping): Use packet_support.
5513 2014-04-25 Tom Tromey <tromey@redhat.com>
5515 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5518 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5520 * NEWS: Mention support for C99 variable length arrays.
5522 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5524 * ada-lang.c (standard_exc): Expand introductory comment.
5526 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5527 Walfred Tedeschi <walfred.tedeschi@intel.com>
5529 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5531 (amd64_linux_read_description): Add code to handle AVX512 xstate
5532 mask and return respective tdesc.
5533 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5534 and features/i386/x32-avx512-linux.c.
5535 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5536 (amd64_linux_core_read_description): Add code to handle AVX512
5537 xstate mask and return respective tdesc.
5538 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5539 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5541 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5542 (tdesc_amd64_avx512_linux): New prototype.
5543 (tdesc_x32_avx512_linux): Likewise.
5544 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5545 features/i386/x32-avx512.c.
5546 (amd64_ymm_avx512_names): New register names for pseudo
5548 (amd64_ymmh_avx512_names): New register names for raw registers
5550 (amd64_k_names): New register names for K registers.
5551 (amd64_zmmh_names): New register names for ZMM raw registers.
5552 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5553 (amd64_xmm_avx512_names): New register names for XMM16-31
5555 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5557 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5558 if feature is present.
5559 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5560 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5561 (AMD64_NUM_REGS): Adjust to new number of registers.
5562 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5563 registers supplied via XSTATE by AVX512 registers.
5564 (i386_linux_read_description): Add case for AVX512.
5565 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5566 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5567 (i386_linux_core_read_description): Add case for AVX512.
5568 (i386_linux_init_abi): Install supported register note section
5570 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5572 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5573 registers to be number of zmm7h + 1.
5574 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5575 * i386-tdep.c: Include features/i386/i386-avx512.c.
5576 (i386_zmm_names): Add ZMM pseudo register names array.
5577 (i386_zmmh_names): Add ZMM raw register names array.
5578 (i386_k_names): Add K raw register names array.
5579 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5580 registers. AVX512 has 16 more ZMM registers than there are YMM
5582 (i386_zmmh_regnum_p): Add function to look up register number of
5584 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5585 (i386_k_regnum_p): Likewise for K raw registers.
5586 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5587 registers added by AVX512.
5588 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5589 registers added by AVX512.
5590 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5592 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5593 (i386_pseudo_register_name): Add ZMM pseudo registers.
5594 (i386_zmm_type): Construct and return vector registers type for ZMM
5596 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5597 ZMM0-31 pseudo registers and K registers.
5598 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5599 and YMM16-31 registers from register cache.
5600 (i386_pseudo_register_write): Add code to write K, ZMM and
5602 (i386_register_reggroup_p): Add code to include/exclude AVX512
5603 registers in/from respective register groups.
5604 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5605 registers if feature is present in xcr0.
5606 (i386_gdbarch_init): Add code to initialize AVX512 feature
5607 variables in tdep structure, wire in pseudo registers and call
5608 initialize_tdesc_i386_avx512.
5609 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5611 (i386_regnum): Add AVX512 registers.
5612 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5613 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5614 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5615 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5617 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5618 (i386_ymm_avx512_regnum_p): Likewise.
5619 (i386_k_regnum_p): Likewise.
5620 (i386_zmm_regnum_p): Likewise.
5621 (i386_zmmh_regnum_p): Likewise.
5622 * i387-tdep.c : Update year in copyright notice.
5623 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5625 (XSAVE_YMM_AVX512_ADDR): New macro.
5626 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5628 (XSAVE_XMM_AVX512_ADDR): New macro.
5629 (xsave_avx512_k_offset): New table for K register offsets in
5631 (XSAVE_AVX512_K_ADDR): New macro.
5632 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5634 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5635 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5637 (i387_collect_xsave): Add code to collect AVX512 registers from
5639 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5640 of XMM16-31 registers.
5641 (I387_NUM_K_REGS): New define for number of K registers.
5642 (I387_K0_REGNUM): New define for K0 register number.
5643 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5644 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5645 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5647 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5648 (I387_XMM16_REGNUM): New define for XMM16 register number.
5649 (I387_YMM0_REGNUM): New define for YMM0 register number.
5650 (I387_KEND_REGNUM): New define for last K register number.
5651 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5652 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5654 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5656 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5658 * features/Makefile: Add AVX512 related files.
5659 * features/i386/32bit-avx512.xml: New file.
5660 * features/i386/64bit-avx512.xml: Likewise.
5661 * features/i386/amd64-avx512-linux.c: Likewise.
5662 * features/i386/amd64-avx512-linux.xml: Likewise.
5663 * features/i386/amd64-avx512.c: Likewise.
5664 * features/i386/amd64-avx512.xml: Likewise.
5665 * features/i386/i386-avx512-linux.c: Likewise.
5666 * features/i386/i386-avx512-linux.xml: Likewise.
5667 * features/i386/i386-avx512.c: Likewise.
5668 * features/i386/i386-avx512.xml: Likewise.
5669 * features/i386/x32-avx512-linux.c: Likewise.
5670 * features/i386/x32-avx512-linux.xml: Likewise.
5671 * features/i386/x32-avx512.c: Likewise.
5672 * features/i386/x32-avx512.xml: Likewise.
5673 * regformats/i386/amd64-avx512-linux.dat: New file.
5674 * regformats/i386/amd64-avx512.dat: Likewise.
5675 * regformats/i386/i386-avx512-linux.dat: Likewise.
5676 * regformats/i386/i386-avx512.dat: Likewise.
5677 * regformats/i386/x32-avx512-linux.dat: Likewise.
5678 * regformats/i386/x32-avx512.dat: Likewise.
5679 * NEWS: Add note about new support for AVX512.
5682 2014-04-23 Pedro Alves <palves@redhat.com>
5684 * breakpoint.c (insert_bp_location): Tolerate errors if the
5685 breakpoint is set in a user-loaded objfile.
5686 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5687 location is marked shlib_disabled. If the breakpoint is set in a
5688 user-loaded objfile is a GDB-side memory breakpoint, validate it
5689 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5690 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5692 * mem-break.c (memory_validate_breakpoint): New function.
5693 * objfiles.c (userloaded_objfile_contains_address_p): New
5695 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5696 * target.h (memory_validate_breakpoint): New declaration.
5698 2014-04-23 Pedro Alves <palves@redhat.com>
5700 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5701 the breakpoint is set in a shared library, only suppress
5702 errors for software breakpoints, not hardware breakpoints.
5704 2014-04-22 Pedro Alves <palves@redhat.com>
5706 * infrun.c (schedlock_applies): New function, factored out from
5707 find_thread_needs_step_over.
5708 (find_thread_needs_step_over): Use it.
5709 (switch_back_to_stepped_thread): Always clear trap_expected if the
5710 step over is finished. Return early if scheduler locking applies.
5711 Look for the stepping thread and a potential step-over thread with
5713 (currently_stepping_or_nexting_callback): Delete.
5715 2014-04-22 Nick Clifton <nickc@redhat.com>
5717 * NEWS: Mention that ARM sim now supports tracing.
5719 2014-04-22 Yao Qi <yao@codesourcery.com>
5721 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5723 * tracefile.c (tracefile_fetch_registers): ... it. New
5725 * tracefile.h (tracefile_fetch_registers): Declare.
5726 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5727 tracefile_fetch_registers.
5729 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5732 * windows-nat.c (thread_rec): Don't display a warning when
5733 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5734 fails for any reason, set th->suspended to -1, so that we don't
5735 try to resume such a thread. Also, don't return NULL in these
5736 cases, to avoid completely ruin the session due to "PC register is
5737 not available" error.
5738 (do_windows_fetch_inferior_registers): Check errors in
5739 GetThreadContext call.
5740 (windows_continue): Accept an additional argument KILLED; if not
5741 zero, ignore errors in the SetThreadContext call, since the
5742 inferior was killed and is shutting down.
5743 (windows_resume, get_windows_debug_event)
5744 (windows_create_inferior, windows_mourn_inferior)
5745 (windows_kill_inferior): All callers of windows_continue changed
5746 to adjust to its new calling sequence.
5748 2014-04-19 Yao Qi <yao@codesourcery.com>
5750 * ctf.c (ctf_open): Call post_create_inferior.
5752 2014-04-19 Yao Qi <yao@codesourcery.com>
5754 * ctf.c (handle_id): New static variable.
5755 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5756 value. Get the declaration of event "register" and get length
5757 of field "contents".
5759 2014-04-19 Yao Qi <yao@codesourcery.com>
5761 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5763 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5765 * valops.c (oload_method_static): Remove unnecessary argument
5766 METHOD. Update all callers.
5768 2014-04-18 Pedro alves <palves@redhat.com>
5769 Tom Tromey <tromey@redhat.com>
5772 * frame.c (get_prev_frame_1): Rename to ...
5773 (get_prev_frame_always): ... this, and make extern. Adjust.
5774 (skip_artificial_frames): Use get_prev_frame_always.
5775 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5776 (get_frame_unwind_stop_reason): Adjust to rename.
5777 * frame.h (get_prev_frame_always): Declare.
5778 * inline-frame.c: Include frame.h.
5779 (inline_frame_this_id): Use get_prev_frame_always.
5781 2014-04-18 Tristan Gingold <gingold@adacore.com>
5783 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5784 code by using bfd_mach_o_get_base_address.
5786 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5788 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5789 (spu_ax_pseudo_register_collect): New function.
5790 (spu_ax_pseudo_register_push_stack): Likewise.
5791 (spu_dwarf_reg_to_regnum): Likewise.
5792 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5794 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5796 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5797 Replace FRAME argument with FRAME_ID.
5798 * gdbarch.c, gdbarch.h: Regenerate.
5799 * findvar.c (default_value_from_register): Add GDBARCH argument;
5800 replace FRAME by FRAME_ID. No longer call get_frame_id.
5801 (value_from_register): Update call to gdbarch_value_from_register.
5802 * value.h (default_value_from_register): Update prototype.
5803 * s390-linux-tdep.c (s390_value_from_register): Update interface
5804 and call to default_value_from_register.
5805 * spu-tdep.c (spu_value_from_register): Likewise.
5807 * findvar.c (address_from_register): Remove TYPE argument.
5808 Do not call value_from_register; use gdbarch_value_from_register
5809 with null_frame_id instead.
5810 * value.h (address_from_register): Update prototype.
5811 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5812 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5813 address_from_register interface change.
5815 2014-04-17 Yao Qi <yao@codesourcery.com>
5817 * gdbtypes.h: Update comments to link to types and macros'
5820 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5822 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5824 2014-04-16 Keith Seitz <keiths@redhat.com>
5827 * dwarf2read.c (skip_one_die): Check that all relative-offset
5828 sibling DIEs fall within range of the current reader's buffer.
5829 (read_partial_die): Likewise.
5831 2014-04-16 Keith Seitz <keiths@redhat.com>
5834 * cp-namespace.c (lookup_symbol_file): If the type name of
5835 `this' is NULL, return immediately.
5837 2014-04-14 Keith Seitz <keiths@redhat.com>
5840 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5841 from symbol_matches_domain in symtab.c. All local callers
5842 of symbol_matches_domain updated.
5843 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5844 search STRUCT_DOMAIN.
5845 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5846 independently. standard_lookup will do that automatically.
5847 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5848 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5849 (cp_lookup_symbol_in_namespace): Likewise.
5850 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5851 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5852 may return a STRUCT_DOMAIN match.
5853 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5854 * cp-support.c: Include language.h.
5855 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5857 * psymtab.c (match_partial_symbol): Compare the requested
5858 domain with the symbol's domain directly.
5859 (lookup_partial_symbol): Likewise.
5860 * symtab.c (lookup_symbol_in_language): Explain when/why
5861 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5862 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5863 appropriate languages.
5864 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5865 and moved to ada-lang.c
5866 (lookup_block_symbol): Explain that this function only returns
5867 symbol matching the requested DOMAIN.
5868 Compare the requested domain with the symbol's domain directly.
5869 (iterate_over_symbols): Compare the requested domain with the
5870 symbol's domain directly.
5871 * symtab.h (symbol_matches_domain): Remove.
5873 2014-04-14 Tom Tromey <tromey@redhat.com>
5876 * c-exp.y (type_aggregate_p): New function.
5877 (qualified_name, classify_inner_name): Use it.
5878 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5879 and TYPE_TARGET_TYPE of an enum type.
5880 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5882 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5883 handle TYPE_DECLARED_CLASS.
5884 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5886 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5887 * valops.c (enum_constant_from_type): New function.
5888 (value_aggregate_elt): Use it.
5889 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5892 2014-04-14 Tom Tromey <tromey@redhat.com>
5894 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5895 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5897 * value.h (value_aggregate_elt): Update.
5899 2014-04-14 Tom Tromey <tromey@redhat.com>
5901 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5903 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5905 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5906 (evaluate_subexp_standard): Pass noside argument.
5907 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5908 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5909 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5910 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5911 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5913 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5915 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5916 points to a constant blob.
5918 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5920 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5921 property and store it as the high bound and flag the range accordingly.
5922 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5923 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5924 * gdbtypes.h (enum range_flags): New enum.
5925 (struct range_bounds): Add flags member.
5927 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5929 * c-typeprint.c (c_type_print_varspec_suffix): Added
5930 check for not yet resolved high bound. If unresolved, print
5931 "variable length" string to the console instead of random
5934 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5936 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5938 (ada_template_to_fixed_record_type_1): Likewise.
5939 (ada_to_fixed_type_1): Likewise.
5940 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5941 (cp_print_value): Likewise.
5942 * d-valprint.c (dynamic_array_type): Likewise.
5943 * findvar.c (address_of_variable): Likewise.
5944 * jv-valprint.c (java_value_print): Likewise.
5945 * valops.c (value_ind): Likewise.
5946 * value.c (coerce_ref): Likewise.
5948 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5950 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5951 value and retrieve the dynamic type size.
5953 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5955 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5956 passed to sizeof is dynamic evaluate the argument to compute the length.
5958 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5959 Joel Brobecker <brobecker@adacore.com>
5961 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5962 (dwarf2_evaluate_property): New function.
5963 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5964 * dwarf2read.c (attr_to_dynamic_prop): New function.
5965 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5967 * gdbtypes.c: Include dwarf2loc.h.
5968 (is_dynamic_type): New function.
5969 (resolve_dynamic_type): New function.
5970 (resolve_dynamic_bounds): New function.
5971 (get_type_length): New function.
5972 (check_typedef): Use get_type_length to compute type length.
5973 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5974 (TYPE_LOW_BOUND_KIND): New macro.
5975 (is_dynamic_type): New function prototype.
5976 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5977 to resolve dynamic properties of the type. Update comment.
5978 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5980 2014-04-14 Richard Henderson <rth@redhat.com>
5982 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5984 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5985 Doug Evans <xdje42@gmail.com>
5987 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5988 dereference TYPE_CODE_REF values.
5990 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5992 Revert the following changes due to regressions:
5994 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5995 (dwarf2_evaluate_property): New function.
5996 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5997 * dwarf2read.c (attr_to_dynamic_prop): New function.
5998 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6000 * gdbtypes.c: Include dwarf2loc.h.
6001 (is_dynamic_type): New function.
6002 (resolve_dynamic_type): New function.
6003 (resolve_dynamic_bounds): New function.
6004 (get_type_length): New function.
6005 (check_typedef): Use get_type_length to compute type length.
6006 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6007 (TYPE_LOW_BOUND_KIND): New macro.
6008 (is_dynamic_type): New function prototype.
6009 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6010 to resolve dynamic properties of the type. Update comment.
6011 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6013 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6014 passed to sizeof is dynamic evaluate the argument to compute the length.
6016 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6017 value and retrieve the dynamic type size.
6019 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6020 (ada_template_to_fixed_record_type_1): Likewise.
6021 (ada_to_fixed_type_1): Likewise.
6022 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6023 (cp_print_value): Likewise.
6024 * d-valprint.c (dynamic_array_type): Likewise.
6025 * eval.c (evaluate_subexp_with_coercion): Likewise.
6026 * findvar.c (address_of_variable): Likewise.
6027 * jv-valprint.c (java_value_print): Likewise.
6028 * valops.c (value_ind): Likewise.
6029 * value.c (coerce_ref): Likewise.
6031 * c-typeprint.c (c_type_print_varspec_suffix): Added
6032 check for not yet resolved high bound. If unresolved, print
6033 "variable length" string to the console instead of random
6036 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6037 property and store it as the high bound and flag the range accordingly.
6038 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6039 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6040 * gdbtypes.h (enum range_flags): New enum.
6041 (struct range_bounds): Add flags member.
6043 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6044 points to a constant blob.
6046 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6047 (evaluate_subexp_standard): Pass noside argument.
6048 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6049 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6050 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6051 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6052 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6054 2014-04-11 Keith Seitz <keiths@redhat.com>
6057 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6058 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6061 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6063 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6064 (evaluate_subexp_standard): Pass noside argument.
6065 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6066 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6067 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6068 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6069 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6071 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6073 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6074 points to a constant blob.
6076 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6078 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6079 property and store it as the high bound and flag the range accordingly.
6080 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6081 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6082 * gdbtypes.h (enum range_flags): New enum.
6083 (struct range_bounds): Add flags member.
6085 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6087 * c-typeprint.c (c_type_print_varspec_suffix): Added
6088 check for not yet resolved high bound. If unresolved, print
6089 "variable length" string to the console instead of random
6092 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6094 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6095 (ada_template_to_fixed_record_type_1): Likewise.
6096 (ada_to_fixed_type_1): Likewise.
6097 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6098 (cp_print_value): Likewise.
6099 * d-valprint.c (dynamic_array_type): Likewise.
6100 * eval.c (evaluate_subexp_with_coercion): Likewise.
6101 * findvar.c (address_of_variable): Likewise.
6102 * jv-valprint.c (java_value_print): Likewise.
6103 * valops.c (value_ind): Likewise.
6104 * value.c (coerce_ref): Likewise.
6106 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6108 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6109 value and retrieve the dynamic type size.
6111 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6113 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6114 passed to sizeof is dynamic evaluate the argument to compute the length.
6116 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6118 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6119 (dwarf2_evaluate_property): New function.
6120 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6121 * dwarf2read.c (attr_to_dynamic_prop): New function.
6122 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6124 * gdbtypes.c: Include dwarf2loc.h.
6125 (is_dynamic_type): New function.
6126 (resolve_dynamic_type): New function.
6127 (resolve_dynamic_bounds): New function.
6128 (get_type_length): New function.
6129 (check_typedef): Use get_type_length to compute type length.
6130 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6131 (TYPE_LOW_BOUND_KIND): New macro.
6132 (is_dynamic_type): New function prototype.
6133 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6134 to resolve dynamic properties of the type. Update comment.
6135 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6137 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6139 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6140 declaring high/low bounds and change uses accordingly. Call
6141 create_range_type instead of create_static_range_type.
6142 * gdbtypes.c (create_range_type): New function.
6143 (create_range_type): Convert bounds into struct bound_prop and pass
6144 them to create_range_type.
6145 * gdbtypes.h (struct bound_prop): New struct.
6146 (create_range_type): New function prototype.
6147 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6148 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6149 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6151 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6155 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6156 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6157 * ada-lang.c: All uses of create_range_type updated.
6158 * coffread.c: All uses of create_range_type updated.
6159 * dwarf2read.c: All uses of create_range_type updated.
6160 * f-exp.y: All uses of create_range_type updated.
6161 * m2-valprint.c: All uses of create_range_type updated.
6162 * mdebugread.c: All uses of create_range_type updated.
6163 * stabsread.c: All uses of create_range_type updated.
6164 * valops.c: All uses of create_range_type updated.
6165 * valprint.c: All uses of create_range_type updated.
6167 2014-04-10 Pedro Alves <palves@redhat.com>
6169 * breakpoint.c (single_step_breakpoints)
6170 (single_step_gdbarch): Move up in the file.
6171 (one_breakpoint_xfer_memory): New function, factored out from ...
6172 (breakpoint_xfer_memory): ... here. Also process single-step
6175 2014-04-09 Tristan Gingold <gingold@adacore.com>
6177 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6179 (darwin_decode_exception_message): Free port only after use.
6181 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6183 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6184 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6185 when setting the size of call_length.
6187 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6189 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6190 dereference TYPE_CODE_REF values.
6192 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6194 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6195 end of warning message.
6197 2014-04-03 Doug Evans <dje@google.com>
6199 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6200 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6202 2014-04-02 Alan Modra <amodra@gmail.com>
6204 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6205 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6206 (struct symbol_file_add_from_memory_args): Add size field.
6207 (find_vdso_size): New function.
6208 (add_vsyscall_page): Attempt to find vdso size.
6210 2014-04-01 Doug Evans <dje@google.com>
6212 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6214 2014-04-01 Tristan Gingold <gingold@adacore.com>
6216 * darwin-nat.c (darwin_encode_reply): Add prototype.
6217 (darwin_decode_exception_message): Reply to unknown inferiors.
6218 (darwin_decode_message): Handle message by id. Ignore message
6219 to unknown inferior.
6220 (darwin_wait): Discard unknown messages, add debug trace.
6222 2014-03-31 Doug Evans <dje@google.com>
6224 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6227 2014-03-31 Doug Evans <dje@google.com>
6229 New option "set print symbol-loading".
6231 * solib.c (solib_read_symbols): Only print symbol loading messages
6233 (solib_add): If symbol loading is in "brief" mode, notify user
6234 symbols are being loaded.
6235 (reload_shared_libraries_1): Ditto.
6236 * symfile.c (print_symbol_loading_off): New static global.
6237 (print_symbol_loading_brief): New static global.
6238 (print_symbol_loading_full): New static global.
6239 (print_symbol_loading_enums): New static global.
6240 (print_symbol_loading): New static global.
6241 (print_symbol_loading_p): New function.
6242 (symbol_file_add_with_addrs): Only print symbol loading messages
6244 (_initialize_symfile): Register "print symbol-loading" set/show
6246 * symfile.h (print_symbol_loading_p): Declare.
6248 2014-03-30 Doug Evans <xdje42@gmail.com>
6250 * infrun.c (set_last_target_status): New function.
6251 (handle_inferior_event): Call it.
6253 2014-03-30 Doug Evans <xdje42@gmail.com>
6255 * inferior.h (enum stop_kind): Improve comment.
6257 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6259 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6260 a reference, strip the reference layer before calling
6261 the lang_ops value_has_mutated callback.
6263 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6265 Remove some globals from our parser.
6266 * language.c (unk_lang_parser): Add "struct parser_state"
6268 * language.h (struct language_defn) <la_parser>: Likewise.
6269 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6270 (initialize_expout): Add "struct parser_state" argument.
6271 Rewrite function to use the parser state.
6272 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6273 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6274 write_exp_elt_longcst, write_exp_elt_dblcst,
6275 write_exp_elt_decfloatcst, write_exp_elt_type,
6276 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6277 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6278 write_dollar_variable): Likewise.
6279 (parse_exp_in_context_1): Use parser state.
6280 (insert_type_address_space): Add "struct parser_state" argument.
6282 (increase_expout_size): New function.
6283 * parser-defs.h: Forward declare "struct language_defn" and
6284 "struct parser_state".
6285 (expout, expout_size, expout_ptr): Remove extern declarations.
6286 (parse_gdbarch, parse_language): Rewrite macro declarations to
6287 accept the parser state.
6288 (struct parser_state): New struct.
6289 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6290 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6291 write_exp_elt_decfloatcst, write_exp_elt_type,
6292 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6293 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6294 write_exp_msymbol, write_dollar_variable,
6295 mark_struct_expression, insert_type_address_space): Add "struct
6296 parser_state" argument.
6297 (increase_expout_size): New function.
6298 * utils.c (do_clear_parser_state): New function.
6299 (make_cleanup_clear_parser_state): Likewise.
6300 * utils.h (make_cleanup_clear_parser_state): New function
6302 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6303 Update calls to write_exp* in order to pass the parser state.
6304 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6305 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6306 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6307 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6308 * stap-probe.c (stap_parse_register_operand): Likewise.
6309 (stap_parse_single_operand): Likewise.
6310 (stap_parse_argument_1): Likewise.
6311 (stap_parse_argument): Use parser state.
6312 * stap-probe.h: Include "parser-defs.h".
6313 (struct stap_parse_info) <pstate>: New field.
6314 * c-exp.y (parse_type): Rewrite to use parser state.
6315 (yyparse): Redefine to c_parse_internal.
6316 (pstate): New global variable.
6317 (parse_number): Add "struct parser_state" argument.
6318 (write_destructor_name): Likewise.
6319 (type_exp): Update calls to write_exp* and similars in order to
6321 (exp1, exp, variable, qualified_name, space_identifier,
6322 typename, typebase): Likewise.
6323 (write_destructor_name, parse_number, lex_one_token,
6324 classify_name, classify_inner_name, c_parse): Add "struct
6325 parser_state" argument. Update function to use parser state.
6326 * c-lang.h: Forward declare "struct parser_state".
6327 (c_parse): Add "struct parser_state" argument.
6328 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6329 (yyparse): Redefine macro to ada_parse_internal.
6330 (pstate): New variable.
6331 (write_int, write_object_renaming, write_var_or_type,
6332 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6333 type_int, type_long, type_long_long, type_float, type_double,
6334 type_long_double, type_char, type_boolean, type_system_address):
6335 Add "struct parser_state" argument.
6336 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6337 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6338 var_or_type, aggregate, aggregate_component_list,
6339 positional_list, others, component_group,
6340 component_associations): Update calls to write_exp* and similar
6341 functions in order to use parser state.
6342 (ada_parse, write_var_from_sym, write_int,
6343 write_exp_op_with_string, write_object_renaming,
6344 find_primitive_type, write_selectors, write_ambiguous_var,
6345 write_var_or_type, write_name_assoc, type_int, type_long,
6346 type_long_long, type_float, type_double, type_long_double,
6347 type_char, type_boolean, type_system_address): Add "struct
6348 parser_state" argument. Adjust function to use parser state.
6349 * ada-lang.c (parse): Likewise.
6350 * ada-lang.h: Forward declare "struct parser_state".
6351 (ada_parse): Add "struct parser_state" argument.
6352 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6353 calls to both functions.
6354 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6356 (yyparse): Redefine macro to f_parse_internal.
6357 (pstate): New variable.
6358 (parse_number): Add "struct parser_state" argument.
6359 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6360 and similars in order to use parser state.
6361 (parse_number): Adjust code to use parser state.
6363 (f_parse): New function.
6364 * f-lang.h: Forward declare "struct parser_state".
6365 (f_parse): Add "struct parser_state" argument.
6366 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6368 (yyparse): Redefine macro for java_parse_internal.
6369 (pstate): New variable.
6370 (push_expression_name, push_expression_name, insert_exp): Add
6371 "struct parser_state" argument.
6372 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6373 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6374 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6375 PostIncrementExpression, PostDecrementExpression,
6376 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6377 UnaryExpressionNotPlusMinus, CastExpression,
6378 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6379 RelationalExpression, EqualityExpression, AndExpression,
6380 ExclusiveOrExpression, InclusiveOrExpression,
6381 ConditionalAndExpression, ConditionalOrExpression,
6382 ConditionalExpression, Assignment, LeftHandSide): Update
6383 calls to write_exp* and similars in order to use parser state.
6384 (parse_number): Ajust code to use parser state.
6386 (java_parse): New function.
6387 (push_variable): Add "struct parser_state" argument. Adjust
6388 code to user parser state.
6389 (push_fieldnames, push_qualified_expression_name,
6390 push_expression_name, insert_exp): Likewise.
6391 * jv-lang.h: Forward declare "struct parser_state".
6392 (java_parse): Add "struct parser_state" argument.
6393 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6395 (yyparse): Redefine macro to m2_parse_internal.
6396 (pstate): New variable.
6397 (type_exp, exp, fblock, variable, type): Update calls to
6398 write_exp* and similars to use parser state.
6400 (m2_parse): New function.
6401 * m2-lang.h: Forward declare "struct parser_state".
6402 (m2_parse): Add "struct parser_state" argument.
6403 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6404 * objc-lang.h: Forward declare "struct parser_state".
6405 (end_msglist): Add "struct parser_state" argument.
6406 * p-exp.y (parse_type): Rewrite macro to use parser state.
6407 (yyparse): Redefine macro to pascal_parse_internal.
6408 (pstate): New variable.
6409 (parse_number): Add "struct parser_state" argument.
6410 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6411 write_exp* and similars in order to use parser state.
6412 (parse_number, yylex): Adjust code to use parser state.
6413 (pascal_parse): New function.
6414 * p-lang.h: Forward declare "struct parser_state".
6415 (pascal_parse): Add "struct parser_state" argument.
6416 * go-exp.y (parse_type): Rewrite macro to use parser state.
6417 (yyparse): Redefine macro to go_parse_internal.
6418 (pstate): New variable.
6419 (parse_number): Add "struct parser_state" argument.
6420 (type_exp, exp1, exp, variable, type): Update calls to
6421 write_exp* and similars in order to use parser state.
6422 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6423 to use parser state.
6424 (go_parse): Likewise.
6425 * go-lang.h: Forward declare "struct parser_state".
6426 (go_parse): Add "struct parser_state" argument.
6428 2014-03-27 Doug Evans <dje@google.com>
6430 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6432 2014-03-27 Doug Evans <dje@google.com>
6434 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6435 Remove argument abbrev_section. All callers updated.
6437 2014-03-27 Doug Evans <dje@google.com>
6439 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6440 addr_base, ranges_base.
6442 2014-03-26 Keith Seitz <keiths@redhat.com>
6444 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6445 types, not VAR_DOMAIN.
6447 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6449 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6451 * features/nios2-linux.c: Regenerated.
6452 * features/nios2.c: Regenerated.
6454 2014-03-25 Pedro Alves <palves@redhat.com>
6456 * cli/cli-script.c (script_from_file): Force the interpreter to
6459 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6461 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6462 small stack allocation.
6464 2014-03-24 Tristan Gingold <gingold@adacore.com>
6466 * darwin-nat.c (exc_server): Remove unused prototype.
6467 (darwin_dump_message): Correctly display data on x86_64.
6468 (darwin_encode_reply): Fix style.
6469 Add comments and fix indentation.
6471 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6473 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6475 2014-03-22 Doug Evans <xdje42@gmail.com>
6477 * infcmd.c: Whitespace fixes.
6478 (interrupt_command): Merge two function comments into one.
6480 2014-03-22 Doug Evans <xdje42@gmail.com>
6482 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6485 2014-03-22 Yao Qi <yao@codesourcery.com>
6487 * remote.c (target_read_live_memory): Remove.
6488 (memory_xfer_live_readonly_partial): Rename it to
6489 remote_xfer_live_readonly_partial. Remove argument 'object'.
6490 All callers updated. Call remote_read_bytes_1
6491 instead of target_read_live_memory.
6492 * tracepoint.c (set_traceframe_number): Remove.
6493 (make_cleanup_restore_traceframe_number): Likewise .
6494 * tracepoint.h (set_traceframe_number): Remove declaration.
6495 (make_cleanup_restore_traceframe_number): Likewise.
6497 2014-03-22 Yao Qi <yao@codesourcery.com>
6499 * remote.c (remote_read_bytes): Move code on reading from the
6501 (remote_read_bytes_1): ... here. New function.
6503 2014-03-22 Yao Qi <yao@codesourcery.com>
6505 * ctf.c (ctf_xfer_partial): Check the return value of
6506 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6507 return TARGET_XFER_UNAVAILABLE.
6508 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6509 * target.c (target_read_live_memory): Move it to remote.c.
6510 (memory_xfer_live_readonly_partial): Likewise.
6511 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6512 * remote.c (target_read_live_memory): Moved from target.c.
6513 (memory_xfer_live_readonly_partial): Likewise.
6514 (remote_read_bytes): Factored out from
6515 memory_xfer_partial_1.
6517 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6519 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6522 2014-03-21 Pedro Alves <palves@redhat.com>
6524 * infrun.c (normal_stop): Extend comment.
6526 2014-03-21 Hui Zhu <hui@codesourcery.com>
6527 Pedro Alves <palves@redhat.com>
6529 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6531 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6532 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6533 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6535 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6537 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6538 `z' formatted output modifier.
6540 2014-03-20 Tom Tromey <tromey@redhat.com>
6541 Sergio Durigan Junior <sergiodj@redhat.com>
6543 * probe.c (parse_probes): Turn assert into an ordinary error.
6544 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6545 exceptions when parsing probes. Rearrange the code for clarity.
6547 2014-03-20 Tom Tromey <tromey@redhat.com>
6550 * top.c (execute_command): Only dispatch events if the command
6553 2014-03-20 Tom Tromey <tromey@redhat.com>
6556 * infcall.c: Include event-top.h.
6557 (run_inferior_call): Call async_disable_stdin if needed.
6559 2014-03-20 Pedro Alves <palves@redhat.com>
6561 * infrun.c (prepare_to_proceed): Delete.
6562 (thread_still_needs_step_over): New function.
6563 (find_thread_needs_step_over): New function.
6564 (proceed): If the current thread needs a step-over, set its
6565 steping_over_breakpoint flag. Adjust to use
6566 find_thread_needs_step_over instead of prepare_to_proceed.
6567 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6568 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6570 (switch_back_to_stepped_thread): Step over breakpoints of all
6571 threads not the stepping thread, before switching back to the
6574 2014-03-20 Pedro Alves <palves@redhat.com>
6576 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6578 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6579 * infrun.c (saved_singlestep_ptid)
6580 (stepping_past_singlestep_breakpoint): Delete.
6581 (resume): Remove stepping_past_singlestep_breakpoint handling.
6582 (proceed): Store the prev_pc of the stepping thread too.
6583 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6585 (enum infwait_states): Delete infwait_thread_hop_state.
6586 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6588 (handle_inferior_event): Adjust.
6589 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6590 handling and the thread-hop code. Before removing single-step
6591 breakpoints, check whether the thread hit a single-step breakpoint
6592 of another thread. If it did, the trap is not a random signal.
6593 (switch_back_to_stepped_thread): If the event thread hit a
6594 single-step breakpoint, unblock it before switching to the
6595 stepping thread. Handle the case of the stepped thread having
6597 (keep_going): Handle the case of the current thread moving past a
6598 single-step breakpoint.
6600 2014-03-20 Pedro Alves <palves@redhat.com>
6603 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6604 are being stepped over.
6605 (breakpoint_address_match): Make extern.
6606 * breakpoint.h (breakpoint_address_match): New declaration.
6607 * inferior.h (stepping_past_instruction_at): New declaration.
6608 * infrun.c (struct step_over_info): New type.
6609 (step_over_info): New global.
6610 (set_step_over_info, clear_step_over_info)
6611 (stepping_past_instruction_at): New functions.
6612 (handle_inferior_event): Clear the step-over info when
6613 trap_expected is cleared.
6614 (resume): Remove now stale comment.
6615 (clear_proceed_status): Clear step-over info.
6616 (proceed): Adjust step-over handling to set or clear the step-over
6617 info instead of removing all breakpoints.
6618 (handle_signal_stop): When setting up a thread-hop, don't remove
6620 (stop_stepping): Clear step-over info.
6621 (keep_going): Adjust step-over handling to set or clear step-over
6622 info and then always inserting breakpoints, instead of removing
6623 all breakpoints when stepping over one.
6625 2014-03-20 Pedro Alves <palves@redhat.com>
6627 * infrun.c (previous_inferior_ptid): Adjust comment.
6628 (deferred_step_ptid): Delete.
6629 (infrun_thread_ptid_changed, prepare_to_proceed)
6630 (init_wait_for_inferior): Adjust.
6631 (handle_signal_stop): Delete deferred_step_ptid handling.
6633 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6636 * defs.h (sync_quit_force_run): New declaration.
6637 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6638 * event-top.c (async_sigterm_handler): New declaration.
6639 (async_sigterm_token): New variable.
6640 (async_init_signals): Create also async_sigterm_token.
6641 (async_sigterm_handler): New function.
6642 (sync_quit_force_run): New variable.
6643 (handle_sigterm): Replace quit_force call by other calls.
6644 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6646 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6648 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6649 offset into SPE pseudo registers.
6651 2014-03-18 Pedro Alves <palves@redhat.com>
6654 * inferior.h (print_stop_event): Declare.
6655 * infrun.c (print_stop_event): New, factored out from ...
6656 (normal_stop): ... this.
6657 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6658 of bpstat_print/print_stack_frame.
6660 2014-03-17 Tom Tromey <tromey@redhat.com>
6662 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6664 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6666 * ada-lang.c (decode_constrained_packed_array): Perform a
6667 minimal coercion for reference with coerce_ref instead of
6670 2014-03-17 Tristan Gingold <gingold@adacore.com>
6672 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6673 (darwin_solib_create_inferior_hook): Emit a warning if version
6676 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6678 * python/py-value.c (get_field_flag): Cast flag_name argument to
6679 PyObject_GetAttrString to support Python 2.4.
6681 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6683 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6684 (Global Maintainers): Remove Jan Kratochvil.
6686 2014-03-14 Pedro Alves <palves@redhat.com>
6688 * inferior.h (terminal_ours_for_output): Rename to ...
6689 (child_terminal_ours_for_output): ... this.
6690 (terminal_save_ours): Rename to ...
6691 (child_terminal_save_ours): ... this.
6692 (terminal_ours): Rename to ...
6693 (child_terminal_ours): ... this.
6694 (terminal_inferior): Rename to ...
6695 (child_terminal_inferior): ... this.
6696 (terminal_init_inferior): Rename to ...
6697 (child_terminal_init_inferior): ... this.
6698 (terminal_init_inferior_with_pgrp): Rename to ...
6699 (child_terminal_init_inferior_with_pgrp): ... this.
6700 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6701 (child_terminal_init_with_pgrp): ... this.
6702 (terminal_save_ours): Rename to ...
6703 (child_terminal_save_ours): ... this.
6704 (terminal_init_inferior): Rename to ...
6705 (child_terminal_init): ... this. Adjust.
6706 (terminal_inferior): Rename to ...
6707 (child_terminal_inferior): ... this.
6708 (terminal_ours_for_output): Rename to ...
6709 (child_terminal_ours_for_output): ... this. Adjust.
6710 (terminal_ours): Rename to ...
6711 (child_terminal_ours): ... this.
6712 (terminal_ours_1): Rename to ...
6713 (child_terminal_ours_1): ... this. Adjust.
6714 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6715 * windows-nat.c (do_initial_windows_stuff): Adjust.
6716 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6717 (gnu_terminal_init): ... this. Adjust.
6718 (gnu_target): Adjust.
6719 * inf-child.c (inf_child_target): Adjust.
6721 2014-03-13 Doug Evans <xdje42@gmail.com>
6724 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6727 2014-03-13 Doug Evans <xdje42@gmail.com>
6729 * value.c (record_latest_value): Call release_value_or_incref
6730 instead of release_value.
6732 2014-03-13 Pedro Alves <palves@redhat.com>
6734 * procfs.c (procfs_target): Don't override to_shortname,
6735 to_longname or to_doc.
6737 2014-03-13 Pedro Alves <palves@redhat.com>
6739 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6740 Unix in user visible strings.
6742 2014-03-12 Stan Shebs <stan@codesourcery.com>
6744 * gdbtypes.h: Annotate comments for Doxygen, add a page
6745 block comment with some general info.
6747 2014-03-12 Pedro Alves <palves@redhat.com>
6749 * infcmd.c (prepare_execution_command): New function, factored out
6750 from several execution commands.
6751 (run_command_1, continue_command, step_1, jump_command)
6752 (signal_command, until_command, advance_command, finish_command)
6753 (attach_command): Use prepare_execution_command.
6755 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6757 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6760 (struct arm_linux_thread_points): Removed.
6761 (struct arm_linux_process_info): New.
6762 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6763 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6764 (arm_linux_find_breakpoints_by_tid): Removed.
6765 (struct arch_lwp_info): New.
6766 (arm_linux_find_process_pid): New functions.
6767 (arm_linux_add_process): New functions.
6768 (arm_linux_process_info_get): New functions.
6769 (arm_linux_forget_process): New function.
6770 (arm_linux_get_debug_reg_state): New function.
6771 (struct update_registers_data): New.
6772 (update_registers_callback): New function.
6773 (arm_linux_insert_hw_breakpoint1): Updated.
6774 (arm_linux_remove_hw_breakpoint1): Updated.
6775 (arm_linux_insert_hw_breakpoint): Updated.
6776 (arm_linux_remove_hw_breakpoint): Updated.
6777 (arm_linux_insert_watchpoint): Updated.
6778 (arm_linux_remove_watchpoint): Updated.
6779 (arm_linux_new_thread): Updated.
6780 (arm_linux_prepare_to_resume): New function.
6781 (arm_linux_new_fork): New function.
6782 (_initialize_arm_linux_nat): Updated.
6784 2014-03-12 Pedro Alves <palves@redhat.com>
6786 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6788 2014-03-12 Tom Tromey <tromey@redhat.com>
6790 * inf-child.c (return_zero): New function.
6791 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6792 * aix-thread.c (aix_thread_inferior_created): New function.
6793 (aix_thread_attach): Remove.
6794 (init_aix_thread_ops): Don't set to_attach.
6795 (_initialize_aix_thread): Register inferior_created observer.
6796 * corelow.c (init_core_ops): Don't set to_attach or
6798 * exec.c (init_exec_ops): Don't set to_attach or
6800 * infcmd.c (run_command_1): Use find_run_target. Make direct
6802 (attach_command): Use find_attach_target. Make direct target
6804 * record-btrace.c (init_record_btrace_ops): Don't set
6806 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6808 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6809 set to_create_inferior.
6810 * target.c (complete_target_initialization): Add assertion.
6811 (target_create_inferior): Remove.
6812 (find_default_attach, find_default_create_inferior): Remove.
6813 (find_attach_target, find_run_target): New functions.
6814 (find_default_is_async_p, find_default_can_async_p)
6815 (target_supports_non_stop, target_attach): Remove.
6816 (init_dummy_target): Don't set to_create_inferior or
6817 to_supports_non_stop.
6818 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6819 TARGET_DEFAULT_FUNC.
6820 <to_create_inferior>: Add comment.
6821 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6822 TARGET_DEFAULT_RETURN.
6823 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6824 (find_attach_target, find_run_target): Declare.
6825 (target_create_inferior): Remove.
6826 (target_has_execution_1): Update comment.
6827 (target_supports_non_stop): Remove.
6828 * target-delegates.c: Rebuild.
6830 2014-03-12 Pedro Alves <palves@redhat.com>
6832 * inf-child.h: Update comment to not mention Unix.
6834 2014-03-12 Pedro Alves <palves@redhat.com>
6836 * inf-child.c: Update top comment to not mention Unix. Add
6837 generic comment describing how this target is meant to be used.
6838 (inf_child_post_attach, inf_child_post_startup_inferior)
6839 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6842 2014-03-12 Pedro Alves <palves@redhat.com>
6844 * nto-procfs.c: Include inf-child.h.
6845 (procfs_ops): Delete global.
6846 (procfs_can_run): Delete method.
6847 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6848 target pointer instead of referencing procfs_ops.
6849 (procfs_prepare_to_store): Delete.
6850 (init_procfs_ops): Delete function.
6851 (procfs_target): New function, based on init_procfs_ops, but
6852 inherit inf_child_target.
6853 (_initialize_procfs): Use procfs_target.
6855 2014-03-12 Pedro Alves <palves@redhat.com>
6857 * windows-nat.c: Include inf-child.h.
6858 (windows_ops): Delete global.
6859 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6861 (init_windows_ops): Delete function.
6862 (windows_target): New function, based on init_windows_ops, but
6863 inherit inf_child_target.
6864 (_initialize_windows_nat): Use windows_target. Install x86
6865 specific target methods here.
6867 2014-03-10 Doug Evans <xdje42@gmail.com>
6869 * guile/guile.c (call_initialize_gdb_module): New function.
6870 (initialize_guile): Replace call to scm_init_guile with call to
6873 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6875 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6876 in call to TYPE_CODE macro.
6878 2014-03-10 Jerome Guitton <guitton@adacore.com>
6880 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6881 Resolve tagged types to full view.
6883 2014-03-10 Hui Zhu <hui@codesourcery.com>
6885 * target.h (target_insert_breakpoint): Remove "hardware" from its
6888 2014-03-07 Doug Evans <dje@google.com>
6890 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6892 2014-03-07 Doug Evans <dje@google.com>
6894 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6895 Remove unused local comp_dir_attr. Assert exactly one of
6896 stub_comp_unit_die, stub_comp_dir is non-NULL.
6898 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6900 * target.h (complete_target_initialization, add_target):
6903 2014-03-07 Pedro Alves <palves@redhat.com>
6905 * go32-nat.c: Include inf-child.h.
6906 (go32_ops): Delete global.
6907 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6909 (go32_create_inferior): Push the passed in target pointer instead
6910 of referencing go32_ops.
6911 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6912 (go32_target): New function, based on init_go32_ops, but inherit
6914 (_initialize_go32_nat): Use go32_target. Move parts of
6917 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6919 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6920 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6921 SYMBOL_VALUE_ADDRESS.
6922 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6924 2014-03-06 Yao Qi <yao@codesourcery.com>
6926 * breakpoint.c (get_tracepoint_by_number): Remove argument
6927 optional_p. All callers updated. Adjust comments. Update
6929 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6931 2014-03-06 Yao Qi <yao@codesourcery.com>
6933 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6934 early if get_number returns zero. Use 'p' instead of 'args'.
6936 2014-03-06 Yao Qi <yao@codesourcery.com>
6938 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6941 2014-03-06 Yao Qi <yao@codesourcery.com>
6943 PR breakpoints/16508
6944 * tracepoint.c (check_trace_running): New function.
6945 (trace_find_command): Move code to check_trace_running and
6946 call check_trace_running.
6947 (trace_find_pc_command): Likewise.
6948 (trace_find_tracepoint_command): Likewise.
6949 (trace_find_line_command): Likewise.
6950 (trace_find_range_command): Likewise.
6951 * tracepoint.h (check_trace_running): Likewise.
6952 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6954 2014-03-06 Yao Qi <yao@codesourcery.com>
6956 * target.h (struct target_ops) <to_traceframe_info>: Use
6957 TARGET_DEFAULT_NORETURN (tcomplain ()).
6958 * target-delegates.c: Regenerated.
6960 2014-03-05 Pedro Alves <palves@redhat.com>
6963 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6964 void. Update comment.
6965 (dcache_xfer_memory): Delete.
6966 (dcache_read_memory_partial): New, based on the read bits of
6968 (dcache_update): Add status parameter. Use ULONGEST for len, and
6969 adjust. Discard cache lines if the reason for the update was
6971 * dcache.h (dcache_xfer_memory): Delete declaration.
6972 (dcache_read_memory_partial): New declaration.
6973 (dcache_update): Update prototype.
6974 * target.c (raw_memory_xfer_partial): Update the dcache here.
6975 (memory_xfer_partial_1): Don't handle dcache writes here.
6977 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6979 * remote-sim.c (gdbsim_load): Add const to prog.
6981 2014-03-03 Tom Tromey <tromey@redhat.com>
6983 * elfread.c (probe_key): Change to bfd_data.
6984 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6985 now per-BFD, not per-objfile.
6986 * stap-probe.c (stap_probe_destroy): Update comment.
6987 (handle_stap_probe): Allocate on the per-BFD obstack.
6989 2014-03-03 Tom Tromey <tromey@redhat.com>
6991 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6992 * breakpoint.c (create_longjmp_master_breakpoint): Use
6994 (add_location_to_breakpoint, bkpt_probe_insert_location)
6995 (bkpt_probe_remove_location): Update.
6996 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6997 * elfread.c (elf_symfile_relocate_probe): Remove.
6998 (elf_probe_fns): Update.
6999 (insert_exception_resume_breakpoint): Change type of "probe"
7000 parameter to bound_probe.
7001 (check_exception_resume): Update.
7002 * objfiles.c (objfile_relocate1): Don't relocate probes.
7003 * probe.c (bound_probe_s): New typedef.
7004 (parse_probes): Use get_probe_address. Set sal's objfile.
7005 (find_probe_by_pc): Return a bound_probe.
7006 (collect_probes): Return a VEC(bound_probe_s).
7007 (compare_probes): Update.
7008 (gen_ui_out_table_header_info): Change type of "probes"
7010 (info_probes_for_ops): Update.
7011 (get_probe_address): New function.
7012 (probe_safe_evaluate_at_pc): Update.
7013 * probe.h (struct probe_ops) <get_probe_address>: New field.
7014 <set_semaphore, clear_semaphore>: Add objfile parameter.
7015 (struct probe) <objfile>: Remove field.
7017 <address>: Update comment.
7018 (struct bound_probe): New.
7019 (find_probe_by_pc): Return a bound_probe.
7020 (get_probe_address): Declare.
7021 * solib-svr4.c (struct probe_and_action) <address>: New field.
7022 (hash_probe_and_action, equal_probe_and_action): Update.
7023 (register_solib_event_probe): Add address parameter.
7024 (solib_event_probe_at): Update.
7025 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7027 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7028 (stap_get_probe_address): New function.
7029 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7030 (compile_probe_arg): Update.
7031 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7033 (handle_stap_probe): Don't relocate the probe.
7034 (stap_relocate): Remove.
7035 (stap_gen_info_probes_table_values): Update.
7036 (stap_probe_ops): Remove stap_relocate.
7037 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7038 (debug_sym_probe_fns): Update.
7039 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7040 * symtab.c (init_sal): Use memset.
7041 * symtab.h (struct symtab_and_line) <objfile>: New field.
7042 * tracepoint.c (start_tracing, stop_tracing): Update.
7044 2014-03-03 Tom Tromey <tromey@redhat.com>
7046 * probe.h (parse_probes, find_probe_by_pc)
7047 (find_probes_in_objfile): Fix comments.
7049 2014-03-02 Doug Evans <xdje42@gmail.com>
7051 * infrun.c (handle_signal_stop): Replace test for
7052 TARGET_WAITKIND_STOPPED with an assert.
7054 2014-03-02 Doug Evans <xdje42@gmail.com>
7056 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7058 2014-03-02 Doug Evans <xdje42@gmail.com>
7060 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7062 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7064 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7066 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7068 * i386obsd-nat.c: Include "obsd-nat.h".
7069 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7071 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7073 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7075 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7077 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7079 * mips64obsd-nat.c: Include "obsd-nath".
7080 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7082 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7084 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7086 * amd64obsd-nat.c: Include "obsd-nat,h.
7087 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7089 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7091 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7093 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7094 (find_overload_match): Update call to find_oload_champ.
7095 (find_oload_champ_namespace_loop): Likewise
7097 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7099 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7101 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7102 * config/sparc/obsd64.mh: New file.
7103 * sparc64obsd-nat.c: New file.
7105 * obsd-nat.h: New file.
7106 * obsd-nat.c: New file.
7107 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7108 (ALLDEPFILES): Add obsd-nat.c.
7110 2014-02-28 Tom Tromey <tromey@redhat.com>
7112 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7113 * cli-out.h (cli_ui_out_impl): Now const.
7114 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7115 * ui-out.c (struct ui_out) <impl>: Now const.
7116 (default_ui_out_impl): Now const.
7117 (ui_out_new): Make 'impl' parameter const.
7118 * ui-out.h (ui_out_new): Update.
7120 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7122 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7124 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7126 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7128 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7130 Additional PR 8882 fix.
7131 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7133 2014-02-27 Pedro Alves <palves@redhat.com>
7135 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7138 2014-02-27 Pedro Alves <palves@redhat.com>
7141 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7142 * nat/linux-waitpid.c: Include string.h.
7143 (status_to_str): Moved here and made extern.
7144 * nat/linux-waitpid.h (status_to_str): New declaration.
7146 2014-02-27 Hui Zhu <hui@codesourcery.com>
7149 * infrun.c (ptid_match): Move ...
7150 * common/ptid.c (ptid_match): ... here.
7151 * inferior.h (ptid_match): Move ...
7152 * common/ptid.h (ptid_match): ... here.
7154 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7156 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7157 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7160 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7162 * obsd-tdep.c (obsd_auxv_parse): New function.
7163 (obsd_init_abi): Set auxv_parse.
7165 * gdbarch.sh (auxv_parse): New.
7166 * gdbarch.h: Regenerated.
7167 * gdbarch.c: Regenerated.
7168 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7170 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7172 * guile/scm-value.c (gdbscm_history_append_x): New function.
7173 (value_functions): Add it.
7175 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7177 * dwarf2read.c (attr_value_as_address): New function.
7178 (dwarf2_find_base_address, read_call_site_scope): Use
7179 attr_value_as_address in place of DW_ADDR.
7180 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7181 the low and high addresses. Slight rework of the handling
7182 of the high pc being a constant form, and limit it to
7183 DWARF verson 4 or higher.
7184 (dwarf2_record_block_ranges): Likewise.
7185 (read_partial_die): Likewise.
7186 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7188 2014-02-26 Tom Tromey <tromey@redhat.com>
7190 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7192 2014-02-26 Tom Tromey <tromey@redhat.com>
7194 * elfread.c (elf_read_minimal_symbols): Return early if
7195 minimal symbols have already been read. Add "ei" parameter.
7196 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7197 * minsyms.c (prim_record_minimal_symbol_full): Update.
7198 * objfiles.h (struct objstats) <n_minsyms>: Move...
7199 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7200 * symmisc.c (print_objfile_statistics): Update.
7202 2014-02-26 Tom Tromey <tromey@redhat.com>
7204 * elfread.c (elf_read_minimal_symbols): New function, from
7206 (elf_symfile_read): Call it.
7208 2014-02-26 Tom Tromey <tromey@redhat.com>
7210 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7211 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7212 (lookup_minimal_symbol_solib_trampoline)
7213 (lookup_minimal_symbol_by_pc_section_1)
7214 (lookup_minimal_symbol_and_objfile): Update.
7215 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7216 Don't allocate a minimal symbol if minsyms have already been read.
7217 (build_minimal_symbol_hash_tables): Update.
7218 (install_minimal_symbols): Do nothing if minsyms already read.
7219 Use the per-BFD obstack.
7220 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7221 * objfiles.c (allocate_objfile): Call
7222 terminate_minimal_symbol_table later.
7223 (have_minimal_symbols): Update.
7224 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7225 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7226 Move from struct objfile.
7227 <minsyms_read>: New field.
7228 (struct objfile) <msymbols, minimal_symbol_count,
7229 msymbol_hash, msymbol_demangled_hash>: Move.
7230 (ALL_OBJFILE_MSYMBOLS): Update.
7231 * symfile.c (read_symbols): Set minsyms_read.
7232 (reread_symbols): Update.
7233 * symmisc.c (dump_objfile, dump_msymbols): Update.
7235 2014-02-26 Tom Tromey <tromey@redhat.com>
7237 * minsyms.c (msymbols_sort): Remove.
7238 * minsyms.h (msymbols_sort): Remove.
7239 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7240 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7241 * elfread.c (elf_symtab_read): Don't add section offsets.
7242 * xcoffread.c (record_minimal_symbol): Don't add section offset
7243 to minimal symbol address.
7244 * somread.c (text_offset, data_offset): Remove.
7245 (som_symtab_read): Don't add section offsets to minimal symbol
7247 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7248 Don't add section offsets to minimal symbols.
7249 * coffread.c (coff_symtab_read): Don't add section offsets
7250 to minimal symbol addresses.
7251 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7252 to minimal symbol addresses.
7253 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7254 section offset to minimal symbol addresses.
7255 * mdebugread.c (parse_partial_symbols): Don't add section
7256 offset to minimal symbol addresses.
7257 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7258 offset to minimal symbol addresses.
7260 2014-02-26 Tom Tromey <tromey@redhat.com>
7262 * ada-lang.c (ada_main_name): Update.
7263 (ada_add_standard_exceptions): Update.
7264 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7265 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7266 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7267 * auxv.c (ld_so_xfer_auxv): Update.
7268 * avr-tdep.c (avr_scan_prologue): Update.
7269 * ax-gdb.c (gen_var_ref): Update.
7270 * blockframe.c (get_pc_function_start)
7271 (find_pc_partial_function_gnu_ifunc): Update.
7272 * breakpoint.c (create_overlay_event_breakpoint)
7273 (create_longjmp_master_breakpoint)
7274 (create_std_terminate_master_breakpoint)
7275 (create_exception_master_breakpoint): Update.
7276 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7277 * c-valprint.c (c_val_print): Update.
7278 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7279 * common/agent.c (agent_look_up_symbols): Update.
7280 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7281 * dwarf2loc.c (call_site_to_target_addr): Update.
7282 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7283 * elfread.c (elf_gnu_ifunc_record_cache)
7284 (elf_gnu_ifunc_resolve_by_got): Update.
7285 * findvar.c (default_read_var_value): Update.
7286 * frame.c (inside_main_func): Update.
7287 * frv-tdep.c (frv_frame_this_id): Update.
7288 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7289 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7291 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7292 (hppa_hpux_find_dummy_bpaddr): Update.
7293 * hppa-tdep.c (hppa_symbol_address): Update.
7294 * infcmd.c (until_next_command): Update.
7295 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7297 * linespec.c (minsym_found, add_minsym): Update.
7298 * linux-nat.c (get_signo): Update.
7299 * linux-thread-db.c (inferior_has_bug): Update.
7300 * m32c-tdep.c (m32c_return_value)
7301 (m32c_m16c_address_to_pointer): Update.
7302 * m32r-tdep.c (m32r_frame_this_id): Update.
7303 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7304 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7305 * maint.c (maintenance_translate_address): Update.
7306 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7307 (frob_address): New function.
7308 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7309 frob_address. Rename parameter to "pc_in".
7310 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7312 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7314 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7315 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7316 * objc-lang.c (find_objc_msgsend): Update.
7317 * objfiles.c (objfile_relocate1): Update.
7318 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7319 * p-valprint.c (pascal_val_print): Update.
7320 * parse.c (write_exp_msymbol): Update.
7321 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7322 (ppc_elfv2_skip_entrypoint): Update.
7323 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7324 * printcmd.c (build_address_symbolic, msym_info)
7325 (address_info): Update.
7326 * proc-service.c (ps_pglobal_lookup): Update.
7327 * psymtab.c (find_pc_sect_psymtab_closer)
7328 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7329 Change msymbol parameter to bound_minimal_symbol.
7330 * ravenscar-thread.c (get_running_thread_id): Update.
7331 * remote.c (remote_check_symbols): Update.
7332 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7334 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7335 * solib-dsbt.c (lm_base): Update.
7336 * solib-frv.c (lm_base, main_got): Update.
7337 * solib-irix.c (locate_base): Update.
7338 * solib-som.c (som_solib_create_inferior_hook)
7339 (link_map_start): Update.
7340 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7341 * solib-svr4.c (elf_locate_base, enable_break): Update.
7342 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7343 (flush_ea_cache): Update.
7344 * stabsread.c (define_symbol, scan_file_globals): Update.
7345 * stack.c (find_frame_funname): Update.
7346 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7347 (debug_qf_find_pc_sect_symtab): Update.
7348 * symfile.c (simple_read_overlay_table)
7349 (simple_overlay_update): Update.
7350 * symfile.h (struct quick_symbol_functions)
7351 <find_pc_sect_symtab>: Change type of msymbol to
7352 bound_minimal_symbol.
7353 * symmisc.c (dump_msymbols): Update.
7354 * symtab.c (find_pc_sect_symtab_via_partial)
7355 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7356 (search_symbols, print_msymbol_info): Update.
7357 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7358 (MSYMBOL_VALUE_ADDRESS): Redefine.
7359 (BMSYMBOL_VALUE_ADDRESS): New macro.
7360 * tracepoint.c (scope_info): Update.
7361 * tui/tui-disasm.c (tui_find_disassembly_address)
7362 (tui_get_begin_asm_address): Update.
7363 * valops.c (find_function_in_inferior): Update.
7364 * value.c (value_static_field, value_fn_field): Update.
7366 2014-02-26 Tom Tromey <tromey@redhat.com>
7368 * ada-lang.c (ada_update_initial_language): Update.
7369 (ada_main_name, ada_has_this_exception_support): Update.
7370 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7371 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7372 * arm-tdep.c (arm_skip_stub): Update.
7373 * auxv.c (ld_so_xfer_auxv): Update.
7374 * avr-tdep.c (avr_scan_prologue): Update.
7375 * ax-gdb.c (gen_var_ref): Update.
7376 * breakpoint.c (struct breakpoint_objfile_data)
7377 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7378 type to bound_minimal_symbol.
7379 (create_overlay_event_breakpoint)
7380 (create_longjmp_master_breakpoint)
7381 (create_std_terminate_master_breakpoint)
7382 (create_exception_master_breakpoint): Update.
7383 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7384 * c-exp.y (classify_name): Update.
7385 * coffread.c (coff_symfile_read): Update.
7386 * common/agent.c (agent_look_up_symbols): Update.
7387 * d-lang.c (d_main_name): Update.
7388 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7389 * dec-thread.c (enable_dec_thread): Update.
7390 * dwarf2loc.c (call_site_to_target_addr): Update.
7391 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7392 * eval.c (evaluate_subexp_standard): Update.
7393 * findvar.c (struct minsym_lookup_data) <result>: Change type
7394 to bound_minimal_symbol.
7396 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7397 * frame.c (inside_main_func): Update.
7398 * frv-tdep.c (frv_frame_this_id): Update.
7399 * gcore.c (call_target_sbrk): Update.
7400 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7401 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7403 * go-lang.c (go_main_name): Update.
7404 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7405 (hppa_hpux_find_import_stub_for_addr): Update.
7406 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7407 Update. Change return type.
7408 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7410 * jit.c (jit_breakpoint_re_set_internal): Update.
7411 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7413 * linux-nat.c (get_signo): Update.
7414 * linux-thread-db.c (inferior_has_bug): Update
7415 * m32c-tdep.c (m32c_return_value)
7416 (m32c_m16c_address_to_pointer): Update.
7417 * m32r-tdep.c (m32r_frame_this_id): Update.
7418 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7419 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7420 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7421 lookup_minimal_symbol. Change return type.
7422 (lookup_minimal_symbol): Remove.
7423 (lookup_bound_minimal_symbol): Update.
7424 (lookup_minimal_symbol_text): Change return type.
7425 (lookup_minimal_symbol_solib_trampoline): Change return type.
7426 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7427 (lookup_minimal_symbol_solib_trampoline): Change return type.
7428 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7429 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7430 (value_nsstring, find_imps): Update.
7431 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7432 * p-lang.c (pascal_main_name): Update.
7433 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7434 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7435 * proc-service.c (ps_pglobal_lookup): Update.
7436 * ravenscar-thread.c (get_running_thread_msymbol): Change
7438 (has_ravenscar_runtime, get_running_thread_id): Update.
7439 * remote.c (remote_check_symbols): Update.
7440 * sol-thread.c (ps_pglobal_lookup): Update.
7441 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7442 * solib-dsbt.c (lm_base): Update.
7443 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7445 * solib-irix.c (locate_base): Update.
7446 * solib-som.c (som_solib_create_inferior_hook)
7447 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7449 * solib-spu.c (spu_enable_break): Update.
7450 * solib-svr4.c (elf_locate_base, enable_break): Update.
7451 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7452 (flush_ea_cache): Update.
7453 * stabsread.c (define_symbol): Update.
7454 * symfile.c (simple_read_overlay_table): Update.
7455 * symtab.c (find_pc_sect_line): Update.
7456 * tracepoint.c (scope_info): Update.
7457 * tui-disasm.c (tui_get_begin_asm_address): Update.
7458 * value.c (value_static_field): Update.
7460 2014-02-26 Tom Tromey <tromey@redhat.com>
7462 * minsyms.c (prim_record_minimal_symbol_full): Use
7463 SET_MSYMBOL_VALUE_ADDRESS.
7464 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7465 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7466 SET_MSYMBOL_VALUE_ADDRESS.
7467 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7468 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7470 2014-02-26 Tom Tromey <tromey@redhat.com>
7472 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7473 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7474 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7475 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7476 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7477 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7478 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7479 * ada-lang.c (ada_main_name): Update.
7480 (ada_lookup_simple_minsym): Update.
7481 (ada_make_symbol_completion_list): Update.
7482 (ada_add_standard_exceptions): Update.
7483 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7484 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7485 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7486 * arm-tdep.c (skip_prologue_function): Update.
7487 (arm_skip_stack_protector, arm_skip_stub): Update.
7488 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7489 (arm_wince_skip_main_prologue): Update.
7490 * auxv.c (ld_so_xfer_auxv): Update.
7491 * avr-tdep.c (avr_scan_prologue): Update.
7492 * ax-gdb.c (gen_var_ref): Update.
7493 * block.c (call_site_for_pc): Update.
7494 * blockframe.c (get_pc_function_start): Update.
7495 (find_pc_partial_function_gnu_ifunc): Update.
7496 * breakpoint.c (create_overlay_event_breakpoint): Update.
7497 (create_longjmp_master_breakpoint): Update.
7498 (create_std_terminate_master_breakpoint): Update.
7499 (create_exception_master_breakpoint): Update.
7500 (resolve_sal_pc): Update.
7501 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7502 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7504 * c-valprint.c (c_val_print): Update.
7505 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7506 * coffread.c (coff_symfile_read): Update.
7507 * common/agent.c (agent_look_up_symbols): Update.
7508 * dbxread.c (find_stab_function_addr): Update.
7509 (end_psymtab): Update.
7510 * dwarf2loc.c (call_site_to_target_addr): Update.
7511 (func_verify_no_selftailcall): Update.
7512 (tailcall_dump): Update.
7513 (call_site_find_chain_1): Update.
7514 (dwarf_expr_reg_to_entry_parameter): Update.
7515 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7516 (elf_gnu_ifunc_resolve_by_got): Update.
7517 * f-valprint.c (info_common_command): Update.
7518 * findvar.c (read_var_value): Update.
7519 * frame.c (get_prev_frame_1): Update.
7520 (inside_main_func): Update.
7521 * frv-tdep.c (frv_skip_main_prologue): Update.
7522 (frv_frame_this_id): Update.
7523 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7524 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7525 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7526 (gnuv3_skip_trampoline): Update.
7527 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7528 (hppa64_hpux_in_solib_call_trampoline): Update.
7529 (hppa_hpux_skip_trampoline_code): Update.
7530 (hppa64_hpux_search_dummy_call_sequence): Update.
7531 (hppa_hpux_find_import_stub_for_addr): Update.
7532 (hppa_hpux_find_dummy_bpaddr): Update.
7533 * hppa-tdep.c (hppa_symbol_address)
7534 (hppa_lookup_stub_minimal_symbol): Update.
7535 * i386-tdep.c (i386_skip_main_prologue): Update.
7536 (i386_pe_skip_trampoline_code): Update.
7537 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7538 * infcall.c (get_function_name): Update.
7539 * infcmd.c (until_next_command): Update.
7540 * jit.c (jit_breakpoint_re_set_internal): Update.
7541 (jit_inferior_init): Update.
7542 * linespec.c (minsym_found): Update.
7543 (add_minsym): Update.
7544 * linux-fork.c (info_checkpoints_command): Update.
7545 * linux-nat.c (get_signo): Update.
7546 * linux-thread-db.c (inferior_has_bug): Update.
7547 * m32c-tdep.c (m32c_return_value): Update.
7548 (m32c_m16c_address_to_pointer): Update.
7549 (m32c_m16c_pointer_to_address): Update.
7550 * m32r-tdep.c (m32r_frame_this_id): Update.
7551 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7552 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7553 * maint.c (maintenance_translate_address): Update.
7554 * minsyms.c (add_minsym_to_hash_table): Update.
7555 (add_minsym_to_demangled_hash_table): Update.
7556 (msymbol_objfile): Update.
7557 (lookup_minimal_symbol): Update.
7558 (iterate_over_minimal_symbols): Update.
7559 (lookup_minimal_symbol_text): Update.
7560 (lookup_minimal_symbol_by_pc_name): Update.
7561 (lookup_minimal_symbol_solib_trampoline): Update.
7562 (lookup_minimal_symbol_by_pc_section_1): Update.
7563 (lookup_minimal_symbol_and_objfile): Update.
7564 (prim_record_minimal_symbol_full): Update.
7565 (compare_minimal_symbols): Update.
7566 (compact_minimal_symbols): Update.
7567 (build_minimal_symbol_hash_tables): Update.
7568 (install_minimal_symbols): Update.
7569 (terminate_minimal_symbol_table): Update.
7570 (find_solib_trampoline_target): Update.
7571 (minimal_symbol_upper_bound): Update.
7572 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7573 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7574 (mips_skip_pic_trampoline_code): Update.
7575 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7576 * objc-lang.c (selectors_info): Update.
7577 (classes_info): Update.
7578 (find_methods): Update.
7579 (find_imps): Update.
7580 (find_objc_msgsend): Update.
7581 * objfiles.c (objfile_relocate1): Update.
7582 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7583 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7584 * p-valprint.c (pascal_val_print): Update.
7585 * parse.c (write_exp_msymbol): Update.
7586 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7587 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7588 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7589 * printcmd.c (build_address_symbolic): Update.
7591 (address_info): Update.
7592 * proc-service.c (ps_pglobal_lookup): Update.
7593 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7594 (find_pc_sect_psymtab): Update.
7595 * python/py-framefilter.c (py_print_frame): Update.
7596 * ravenscar-thread.c (get_running_thread_id): Update.
7597 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7599 * remote.c (remote_check_symbols): Update.
7600 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7601 (rs6000_skip_trampoline_code): Update.
7602 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7603 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7604 * solib-dsbt.c (lm_base): Update.
7605 * solib-frv.c (lm_base): Update.
7607 * solib-irix.c (locate_base): Update.
7608 * solib-som.c (som_solib_create_inferior_hook): Update.
7609 (som_solib_desire_dynamic_linker_symbols): Update.
7610 (link_map_start): Update.
7611 * solib-spu.c (spu_enable_break): Update.
7612 (ocl_enable_break): Update.
7613 * solib-svr4.c (elf_locate_base): Update.
7614 (enable_break): Update.
7615 * spu-tdep.c (spu_get_overlay_table): Update.
7616 (spu_catch_start): Update.
7617 (flush_ea_cache): Update.
7618 * stabsread.c (define_symbol): Update.
7619 (scan_file_globals): Update.
7620 * stack.c (find_frame_funname): Update.
7621 (frame_info): Update.
7622 * symfile.c (simple_read_overlay_table): Update.
7623 (simple_overlay_update): Update.
7624 * symmisc.c (dump_msymbols): Update.
7625 * symtab.c (fixup_section): Update.
7626 (find_pc_sect_line): Update.
7627 (skip_prologue_sal): Update.
7628 (search_symbols): Update.
7629 (print_msymbol_info): Update.
7630 (rbreak_command): Update.
7631 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7632 (completion_list_objc_symbol): Update.
7633 (default_make_symbol_completion_list_break_on): Update.
7634 * tracepoint.c (scope_info): Update.
7635 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7636 (tui_get_begin_asm_address): Update.
7637 * valops.c (find_function_in_inferior): Update.
7638 * value.c (value_static_field): Update.
7639 (value_fn_field): Update.
7641 2014-02-26 Tom Tromey <tromey@redhat.com>
7643 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7644 bound minimal symbols. Move code that knows about minsym
7646 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7648 * minsyms.h (minimal_symbol_upper_bound): Declare.
7649 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7650 minimal_symbol_upper_bound.
7652 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7654 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7655 Use the type's name if its basic type does not have a tag.
7657 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7659 * dwarf2read.c (read_subrange_type): Add comment.
7661 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7663 * dwarf2read.c (update_enumeration_type_from_children): New
7664 function, mostly extracted from process_structure_scope.
7665 (read_enumeration_type): Call update_enumeration_type_from_children.
7666 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7667 and flag_flag_enum fields.
7669 2014-02-26 Pedro Alves <palves@redhat.com>
7671 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7672 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7673 to_xfer_partial method.
7675 2014-02-26 Pedro Alves <palves@redhat.com>
7677 * target.c (complete_target_initialization): Don't install
7678 default_xfer_partial as to_xfer_partial hook.
7680 (update_current_target): Don't INHERIT nor de_fault
7681 deprecated_xfer_memory. Delete de_fault macro.
7682 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7683 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7684 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7687 2014-02-26 Pedro Alves <palves@redhat.com>
7689 * go32-nat.c (my_write_child): New function.
7690 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7691 (go32_xfer_partial): New function.
7692 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7693 Instead install a to_xfer_partial hook.
7695 2014-02-26 Pedro Alves <palves@redhat.com>
7697 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7698 to_xfer_partial helper. Rewrite.
7699 (procfs_xfer_partial): New function.
7700 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7701 Install a to_xfer_partial hook.
7703 2014-02-26 Pedro Alves <palves@redhat.com>
7705 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7706 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7707 (m32r_xfer_partial): New function.
7708 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7709 Install a to_xfer_partial hook.
7711 2014-02-26 Pedro Alves <palves@redhat.com>
7713 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7715 (mips_xfer_partial): New function.
7716 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7717 hook. Install a to_xfer_partial hook.
7719 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7721 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7722 * gdbtypes.c (create_array_type_with_stride): New function,
7723 renaming create_array_type, but with an added parameter
7724 called "bit_stride".
7725 (create_array_type): Re-implement using
7726 create_array_type_with_stride.
7727 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7728 and DW_AT_bit_stride attributes.
7730 2014-02-26 Pedro Alves <palves@redhat.com>
7732 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7733 task-specific breakpoints.
7735 2014-02-25 Pedro Alves <palves@redhat.com>
7737 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7738 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7740 2014-02-25 Stan Shebs <stan@codesourcery.com>
7742 * defs.h: Annotate comments for Doxygen.
7744 2014-02-25 Tom Tromey <tromey@redhat.com>
7746 * target.h (target_ignore): Don't declare.
7747 * target.c (target_ignore): Remove.
7749 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7752 * auto-load.c (auto_load_objfile_script_1): Change filename to
7755 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7757 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7758 documentation. Adjust prototype to match the target_ops
7759 to_xfer_partial method. Adjust implementation accordingly.
7761 2014-02-25 Hui Zhu <hui@codesourcery.com>
7763 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7766 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7768 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7769 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7770 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7771 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7772 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7773 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7774 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7775 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7777 (rl78_register_type): Use a data pointer type for SP and
7778 new pseudo registers mentioned above. Use a 16 bit integer
7779 type for all other register pairs.
7780 (rl78_register_name, rl78_g10_register_name): Update for
7781 new pseudo registers.
7782 (rl78_pseudo_register_read): Likewise.
7783 (rl78_pseudo_register_write): Likewise.
7784 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7785 to the newly added pseudo registers.
7787 2014-02-24 Doug Evans <dje@google.com>
7789 * value.c (record_latest_value): Fix comment.
7790 * printcmd.c (print_command_1): Remove code to handle -1 return from
7791 record_latest_value.
7793 2014-02-24 Pedro Alves <palves@redhat.com>
7795 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7796 deprecated_xfer_memory hook.
7797 (procfs_xfer_partial): Call procfs_xfer_memory instead
7798 of the deprecated_xfer_memory target hook.
7799 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7802 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7804 * windows-nat.c (windows_xfer_shared_libraries): Return
7805 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7806 requested object is TARGET_OBJECT_LIBRARIES.
7808 2014-02-24 Yao Qi <yao@codesourcery.com>
7810 * target.h (enum target_xfer_status)
7811 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7812 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7814 * corefile.c (memory_error_message): User updated.
7815 * exec.c (section_table_read_available_memory): Likewise.
7816 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7817 * target.c (target_xfer_status_to_string): Likewise.
7818 (raw_memory_xfer_partial): Likewise.
7819 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7820 * valops.c (read_value_memory): Likewise.
7821 * exec.h: Update comments.
7823 2014-02-24 Yao Qi <yao@codesourcery.com>
7825 * target.c (target_xfer_status_to_string): Rename argument err
7827 * target.h (target_xfer_status_to_string): Update declaration.
7828 Replace target_xfer_error_to_string with
7829 target_xfer_status_to_string in comment.
7831 2014-02-24 Yao Qi <yao@codesourcery.com>
7833 * mips-linux-nat.c (super_close): Update its type.
7834 (mips_linux_close): Pass 'self' to super_close.
7836 2014-02-24 Yao Qi <yao@codesourcery.com>
7838 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7839 * corefile.c (read_memory): Adjusted.
7840 * target.c (target_write_with_progress): Adjusted.
7842 2014-02-23 Yao Qi <yao@codesourcery.com>
7846 2013-10-25 Yao Qi <yao@codesourcery.com>
7848 * remote.c (remote_traceframe_info): Return early if
7849 traceframe is not selected.
7851 2013-07-19 Yao Qi <yao@codesourcery.com>
7853 * target.c (update_current_target): Change the default action
7854 of 'to_traceframe_info' from tcomplain to return_zero.
7855 * target.h (struct target_ops) <to_traceframe_info>: Add more
7858 2014-02-23 Yao Qi <yao@codesourcery.com>
7860 * valops.c (read_value_memory): Rewrite it. Call
7861 target_xfer_partial in a loop.
7862 * exec.h (section_table_available_memory): Remove declaration.
7863 Move comments to ...
7864 * exec.c (section_table_available_memory): ... here. Make it
7867 2014-02-23 Yao Qi <yao@codesourcery.com>
7869 * exec.c (section_table_read_available_memory): New function.
7870 * exec.h (section_table_read_available_memory): Declare.
7871 * ctf.c (ctf_xfer_partial): Call
7872 section_table_read_available_memory.
7873 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7875 2014-02-23 Yao Qi <yao@codesourcery.com>
7877 * ctf.c (ctf_xfer_partial): Move code to ...
7878 * exec.c (exec_read_partial_read_only): ... it. New function.
7879 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7880 * tracefile.c: Include "exec.h".
7881 * exec.h (exec_read_partial_read_only): Declare.
7883 2014-02-23 Yao Qi <yao@codesourcery.com>
7885 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7886 (tfile_has_memory): Remove.
7887 (init_tfile_ops): Don't set fields to_has_all_memory and
7888 to_has_memory of tfile_ops.
7889 * tracefile.c (tracefile_has_all_memory): New function.
7890 (tracefile_has_memory): New function.
7891 (init_tracefile_ops): Initialize fields to_has_all_memory and
7892 to_has_memory of 'ops'.
7894 2014-02-23 Yao Qi <yao@codesourcery.com>
7896 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7897 (ctf_thread_alive, ctf_get_trace_status): Remove.
7898 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7900 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7901 (tfile_has_stack, tfile_has_registers): Remove.
7902 (tfile_thread_alive): Remove.
7903 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7905 * tracefile.c (tracefile_has_stack): New function.
7906 (tracefile_has_registers): New function.
7907 (tracefile_thread_alive): New function.
7908 (tracefile_get_trace_status): New function.
7909 (init_tracefile_ops): New function.
7910 * tracefile.h (init_tracefile_ops): Declare.
7912 2014-02-23 Yao Qi <yao@codesourcery.com>
7914 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7915 (O_LARGEFILE): Likewise.
7916 (tfile_ops): Likewise.
7917 (TRACE_HEADER_SIZE): Likewise.
7918 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7919 (cur_data_size): Likewise.
7920 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7921 (tfile_close, tfile_files_info): Likewise.
7922 (tfile_get_trace_status): Likewise.
7923 (tfile_get_tracepoint_status): Likewise.
7924 (tfile_get_traceframe_address): Likewise.
7925 (tfile_trace_find, match_blocktype): Likewise.
7926 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7927 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7928 (tfile_get_trace_state_variable_value): Likewise.
7929 (tfile_has_all_memory, tfile_has_memory): Likewise.
7930 (tfile_has_stack, tfile_has_registers): Likewise.
7931 (tfile_thread_alive, build_traceframe_info): Likewise.
7932 (tfile_traceframe_info, init_tfile_ops): Likewise.
7933 (_initialize_tracepoint): Don't call init_tfile_ops
7934 and add_target_with_completer.
7935 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7936 exec.h, completer.h and filenames.h.
7937 (_initialize_tracefile_tfile): New function.
7939 2014-02-23 Yao Qi <yao@codesourcery.com>
7941 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7943 (HFILES_NO_SRCDIR): Add tracefile.h.
7944 * ctf.c: Include "tracefile.h".
7945 * tracefile.h: New file.
7946 * tracefile.c: New file
7947 * tracefile-tfile.c: New file.
7948 * tracepoint.c: Include "tracefile.h".
7949 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7950 (stop_reason_names): Add const.
7951 (trace_file_writer_xfree): Move it to tracefile.c.
7952 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7953 (trace_save_ctf): Likewise.
7954 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7955 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7956 (tfile_write_header, tfile_write_regblock_type): Likewise.
7957 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7958 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7959 (tfile_write_raw_data, tfile_end): Likewise.
7960 (tfile_trace_file_writer_new): Likewise.
7961 (free_uploaded_tp): Make it extern.
7962 (free_uploaded_tsv): Make it extern.
7963 (_initialize_tracepoint): Move code to register command 'tsave'
7965 * tracepoint.h (stop_reason_names): Declare.
7966 (struct trace_frame_write_ops): Move it to tracefile.h.
7967 (struct trace_file_write_ops): Likewise.
7968 (struct trace_file_writer): Likewise.
7969 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7971 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7974 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7976 (get_cores_used_by_process): New parameter num_cores, use it.
7977 (linux_xfer_osdata_processes): Pass num_cores to it.
7978 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7981 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7983 * target.c (memory_xfer_partial): Fix length arg in call to
7984 breakpoint_xfer_memory.
7986 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7989 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7990 number comes after the + or - signs. Adjust length of register
7991 name to be extracted.
7993 2014-02-20 Tom Tromey <tromey@redhat.com>
7995 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7996 (ada_varobj_ops): Mark "extern".
7998 2014-02-20 Tom Tromey <tromey@redhat.com>
8000 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8002 2014-02-20 Doug Evans <xdje42@gmail.com>
8004 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8005 All callers updated.
8006 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8007 All callers updated.
8008 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8009 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8011 2014-02-20 lin zuojian <manjian2006@gmail.com>
8012 Joel Brobecker <brobecker@adacore.com>
8013 Doug Evans <xdje42@gmail.com>
8016 * dwarf2read.c (struct die_info): New member in_process.
8017 (reset_die_in_process): New function.
8018 (process_die): Set it at the start, reset when returning.
8019 (inherit_abstract_dies): Only call process_die if origin_child_die
8020 not already being processed.
8022 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8024 * windows-nat.c (handle_unload_dll): Add function documentation.
8025 (do_initial_windows_stuff): Add comment explaining why we wait
8026 until after inferior initialization has finished before
8027 processing all DLLs.
8029 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8031 * windows-nat.c (get_module_name): Delete.
8032 (windows_get_exec_module_filename): New function, mostly
8033 inspired from get_module_name.
8034 (windows_pid_to_exec_file): Replace call to get_module_name
8035 by call to windows_get_exec_module_filename.
8037 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8039 * windows-nat.c (handle_load_dll): Rewrite this function's
8040 introductory comment. Remove code using get_module_name
8041 to get the DLL's name.
8043 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8045 * windows-nat.c (get_windows_debug_event): Ignore
8046 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8047 if windows_initialization_done == 0.
8048 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8049 Adjust implementation to always load all DLLs.
8050 (do_initial_windows_stuff): Replace call to
8051 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8053 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8055 * windows-nat.c (_initialize_windows_nat): Deprecate the
8056 "dll-symbols" command. Turn the "add-shared-symbol-files"
8057 and "assf" aliases into commands, and deprecate them as well.
8058 * NEWS: Add entry explaining that "dll-symbols" and its two
8059 aliases are now deprecated.
8061 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8063 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8064 new-line in debug string. Remove trailing spaces.
8066 2014-02-19 Stan Shebs <stan@codesourcery.com>
8068 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8070 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8072 * NEWS: Add entry for the new feature
8073 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8076 2014-02-19 Stan Shebs <stan@codesourcery.com>
8078 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8080 2014-02-19 Pedro Alves <palves@redhat.com>
8082 * common/ptid.h (struct ptid): Mention that process_stratum
8083 targets should prefer ptid.lwp.
8085 2014-02-19 Pedro Alves <palves@redhat.com>
8087 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8088 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8089 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8090 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8091 store remote thread ids rather than ptid.tid.
8092 (_initialize_remote): Adjust.
8094 2014-02-19 Tom Tromey <tromey@redhat.com>
8096 * target.c (target_get_unwinder): Rewrite.
8097 (target_get_tailcall_unwinder): Rewrite.
8098 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8099 (record_btrace_to_get_tailcall_unwinder): New function.
8100 (init_record_btrace_ops): Update.
8101 * target.h (struct target_ops) <to_get_unwinder,
8102 to_get_tailcall_unwinder>: Now function pointers. Use
8103 TARGET_DEFAULT_RETURN.
8105 2014-02-19 Tom Tromey <tromey@redhat.com>
8107 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8109 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8111 2014-02-19 Tom Tromey <tromey@redhat.com>
8113 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8115 * target-delegates.c: Rebuild.
8116 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8117 TARGET_DEFAULT_FUNC.
8118 * target.c (default_target_decr_pc_after_break): Rename from
8119 forward_target_decr_pc_after_break. Simplify.
8120 (target_decr_pc_after_break): Rely on delegation.
8122 2014-02-19 Tom Tromey <tromey@redhat.com>
8124 * target.c (update_current_target): Do not INHERIT to_doc or
8125 to_magic. Do not de_fault to_open or to_close.
8127 2014-02-19 Tom Tromey <tromey@redhat.com>
8129 * gcore.h (objfile_find_memory_regions): Declare.
8130 * gcore.c (objfile_find_memory_regions): No longer static. Add
8132 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8133 * exec.c: Include gcore.h.
8134 (exec_set_find_memory_regions): Remove.
8135 (exec_find_memory_regions): Remove.
8136 (exec_do_find_memory_regions): Remove.
8137 (init_exec_ops): Update.
8138 * defs.h (exec_set_find_memory_regions): Remove.
8140 2014-02-19 Tom Tromey <tromey@redhat.com>
8142 * target-delegates.c: Rebuild.
8143 * target.h (struct target_ops) <to_extra_thread_info,
8144 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8145 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8146 not 0, in TARGET_DEFAULT_RETURN.
8148 2014-02-19 Tom Tromey <tromey@redhat.com>
8150 * target.c (complete_target_initialization): Remove casts. Use
8151 return_zero_has_execution.
8152 (return_zero): Add "ignore" argument.
8153 (return_zero_has_execution): New function.
8154 (init_dummy_target): Remove casts. Use
8155 return_zero_has_execution.
8157 2014-02-19 Tom Tromey <tromey@redhat.com>
8159 * target.c (update_current_target): Update comments. Do not
8162 2014-02-19 Tom Tromey <tromey@redhat.com>
8164 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8166 * corelow.c (core_read_description): Delegate when needed.
8167 * remote.c (remote_read_description): Delegate when needed.
8168 * target-delegates.c: Rebuild.
8169 * target.c (target_read_description): Rewrite.
8170 * target.h (struct target_ops) <to_read_description>: Update
8171 comment. Use TARGET_DEFAULT_RETURN.
8173 2014-02-19 Tom Tromey <tromey@redhat.com>
8175 * target-delegates.c: Rebuild.
8176 * target.c (update_current_target): Don't inherit or default
8178 (find_default_run_target): Check against delegate_can_run.
8179 * target.h (struct target_ops) <to_can_run>: Use
8180 TARGET_DEFAULT_RETURN.
8182 2014-02-19 Tom Tromey <tromey@redhat.com>
8184 * target-delegates.c: Rebuild.
8185 * target.c (target_disconnect): Unconditionally delegate.
8186 * target.h (struct target_ops) <to_disconnect>: Use
8187 TARGET_DEFAULT_NORETURN.
8189 2014-02-19 Tom Tromey <tromey@redhat.com>
8191 * record.c (record_stop): Unconditionally delegate.
8192 * target-delegates.c: Rebuild.
8193 * target.c (target_stop_recording): Unconditionally delegate.
8194 * target.h (struct target_ops) <to_stop_recording>: Use
8195 TARGET_DEFAULT_IGNORE.
8197 2014-02-19 Tom Tromey <tromey@redhat.com>
8199 * target-delegates.c: Rebuild.
8200 * target.c (target_enable_btrace): Unconditionally delegate.
8201 * target.h (struct target_ops) <to_enable_btrace>: Use
8202 TARGET_DEFAULT_NORETURN.
8204 2014-02-19 Tom Tromey <tromey@redhat.com>
8206 * target-delegates.c: Rebuild.
8207 * target.c (target_read_btrace): Unconditionally delegate.
8208 * target.h (struct target_ops) <to_read_btrace>: Use
8209 TARGET_DEFAULT_NORETURN.
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * target-delegates.c: Rebuild.
8214 * target.c (target_teardown_btrace): Unconditionally delegate.
8215 * target.h (struct target_ops) <to_teardown_btrace>: Use
8216 TARGET_DEFAULT_NORETURN.
8218 2014-02-19 Tom Tromey <tromey@redhat.com>
8220 * target-delegates.c: Rebuild.
8221 * target.c (target_disable_btrace): Unconditionally delegate.
8222 * target.h (struct target_ops) <to_disable_btrace>: Use
8223 TARGET_DEFAULT_NORETURN.
8225 2014-02-19 Tom Tromey <tromey@redhat.com>
8227 * target-delegates.c: Rebuild.
8228 * target.c (default_search_memory): New function.
8229 (simple_search_memory): Update comment.
8230 (target_search_memory): Unconditionally delegate.
8231 * target.h (struct target_ops) <to_search_memory>: Use
8232 TARGET_DEFAULT_FUNC.
8234 2014-02-19 Tom Tromey <tromey@redhat.com>
8236 * auxv.c (default_auxv_parse): No longer static.
8237 (target_auxv_parse): Unconditionally delegate.
8238 * auxv.h (default_auxv_parse): Declare.
8239 * target-delegates.c: Rebuild.
8240 * target.c: Include auxv.h.
8241 * target.h (struct target_ops) <to_auxv_parse>: Use
8242 TARGET_DEFAULT_FUNC.
8244 2014-02-19 Tom Tromey <tromey@redhat.com>
8246 * target-delegates.c: Rebuild.
8247 * target.c (target_memory_map): Unconditionally delegate.
8248 * target.h (struct target_ops) <to_memory_map>: Use
8249 TARGET_DEFAULT_RETURN.
8251 2014-02-19 Tom Tromey <tromey@redhat.com>
8253 * target-delegates.c: Rebuild.
8254 * target.c (target_thread_alive): Unconditionally delegate.
8255 * target.h (struct target_ops) <to_thread_alive>: Use
8256 TARGET_DEFAULT_RETURN.
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target-delegates.c: Rebuild.
8261 * target.c (target_save_record): Unconditionally delegate.
8262 * target.h (struct target_ops) <to_save_record>: Use
8263 TARGET_DEFAULT_NORETURN.
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8267 * target-delegates.c: Rebuild.
8268 * target.c (target_delete_record): Unconditionally delegate.
8269 * target.h (struct target_ops) <to_delete_record>: Use
8270 TARGET_DEFAULT_NORETURN.
8272 2014-02-19 Tom Tromey <tromey@redhat.com>
8274 * target-delegates.c: Rebuild.
8275 * target.c (target_record_is_replaying): Unconditionally
8277 * target.h (struct target_ops) <to_record_is_replaying>: Use
8278 TARGET_DEFAULT_RETURN.
8280 2014-02-19 Tom Tromey <tromey@redhat.com>
8282 * target-delegates.c: Rebuild.
8283 * target.c (target_goto_record_begin): Unconditionally delegate.
8284 * target.h (struct target_ops) <to_goto_record_begin>: Use
8285 TARGET_DEFAULT_NORETURN.
8287 2014-02-19 Tom Tromey <tromey@redhat.com>
8289 * target-delegates.c: Rebuild.
8290 * target.c (target_goto_record_end): Unconditionally delegate.
8291 * target.h (struct target_ops) <to_goto_record_end>: Use
8292 TARGET_DEFAULT_NORETURN.
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8296 * target-delegates.c: Rebuild.
8297 * target.c (target_goto_record): Unconditionally delegate.
8298 * target.h (struct target_ops) <to_goto_record>: Use
8299 TARGET_DEFAULT_NORETURN.
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8303 * target-delegates.c: Rebuild.
8304 * target.c (target_insn_history): Unconditionally delegate.
8305 * target.h (struct target_ops) <to_insn_history>: Use
8306 TARGET_DEFAULT_NORETURN.
8308 2014-02-19 Tom Tromey <tromey@redhat.com>
8310 * target-delegates.c: Rebuild.
8311 * target.c (target_insn_history_from): Unconditionally delegate.
8312 * target.h (struct target_ops) <to_insn_history_from>: Use
8313 TARGET_DEFAULT_NORETURN.
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8317 * target-delegates.c: Rebuild.
8318 * target.c (target_insn_history_range): Unconditionally delegate.
8319 * target.h (struct target_ops) <to_insn_history_range>: Use
8320 TARGET_DEFAULT_NORETURN.
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8324 * target-delegates.c: Rebuild.
8325 * target.c (target_call_history): Unconditionally delegate.
8326 * target.h (struct target_ops) <to_call_history>: Use
8327 TARGET_DEFAULT_NORETURN.
8329 2014-02-19 Tom Tromey <tromey@redhat.com>
8331 * target-delegates.c: Rebuild.
8332 * target.c (target_call_history_from): Unconditionally delegate.
8333 * target.h (struct target_ops) <to_call_history_from>: Use
8334 TARGET_DEFAULT_NORETURN.
8336 2014-02-19 Tom Tromey <tromey@redhat.com>
8338 * target-delegates.c: Rebuild.
8339 * target.c (target_call_history_range): Unconditionally delegate.
8340 * target.h (struct target_ops) <to_call_history_range>: Use
8341 TARGET_DEFAULT_NORETURN.
8343 2014-02-19 Tom Tromey <tromey@redhat.com>
8345 * target-delegates.c: Rebuild.
8346 * target.c (target_verify_memory): Unconditionally delegate.
8347 * target.h (struct target_ops) <to_verify_memory>: Use
8348 TARGET_DEFAULT_NORETURN.
8350 2014-02-19 Tom Tromey <tromey@redhat.com>
8352 * target-delegates.c: Rebuild.
8353 * target.c (target_core_of_thread): Unconditionally delegate.
8354 * target.h (struct target_ops) <to_core_of_thread>: Use
8355 TARGET_DEFAULT_RETURN.
8357 2014-02-19 Tom Tromey <tromey@redhat.com>
8359 * target-delegates.c: Rebuild.
8360 * target.c (target_flash_done): Unconditionally delegate.
8361 * target.h (struct target_ops) <to_flash_done>: Use
8362 TARGET_DEFAULT_NORETURN.
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8366 * target-delegates.c: Rebuild.
8367 * target.c (target_flash_erase): Unconditionally delegate.
8368 * target.h (struct target_ops) <to_flash_erase>: Use
8369 TARGET_DEFAULT_NORETURN.
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target-delegates.c: Rebuild.
8374 * target.c (target_get_section_table): Unconditionally delegate.
8375 * target.h (struct target_ops) <to_get_section_table>: Use
8376 TARGET_DEFAULT_RETURN.
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8380 * target-delegates.c: Rebuild.
8381 * target.c (target_pid_to_str): Unconditionally delegate.
8382 (init_dummy_target): Don't initialize to_pid_to_str.
8383 (default_pid_to_str): Rename from dummy_pid_to_str.
8384 * target.h (struct target_ops) <to_pid_to_str>: Use
8385 TARGET_DEFAULT_FUNC.
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8389 * target-delegates.c: Rebuild.
8390 * target.c (target_find_new_threads): Unconditionally delegate.
8391 * target.h (struct target_ops) <to_find_new_threads>: Use
8392 TARGET_DEFAULT_RETURN.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target-delegates.c: Rebuild.
8397 * target.c (target_program_signals): Unconditionally delegate.
8398 * target.h (struct target_ops) <to_program_signals>: Use
8399 TARGET_DEFAULT_IGNORE.
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * target-delegates.c: Rebuild.
8404 * target.c (target_pass_signals): Unconditionally delegate.
8405 * target.h (struct target_ops) <to_pass_signals>: Use
8406 TARGET_DEFAULT_IGNORE.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target-delegates.c: Rebuild.
8411 * target.c (default_mourn_inferior): New function.
8412 (target_mourn_inferior): Unconditionally delegate.
8413 * target.h (struct target_ops) <to_mourn_inferior>: Use
8414 TARGET_DEFAULT_FUNC.
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8418 * target-delegates.c: Rebuild.
8419 * target.c (default_follow_fork): New function.
8420 (target_follow_fork): Unconditionally delegate.
8421 * target.h (struct target_ops) <to_follow_fork>: Use
8422 TARGET_DEFAULT_FUNC.
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target-delegates.c: Rebuild.
8427 * target.c (target_kill): Unconditionally delegate.
8428 * target.h (struct target_ops) <to_kill>: Use
8429 TARGET_DEFAULT_NORETURN.
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8433 * target-delegates.c: Rebuild.
8434 * target.c (target_masked_watch_num_registers): Unconditionally
8436 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8437 Use TARGET_DEFAULT_RETURN.
8439 2014-02-19 Tom Tromey <tromey@redhat.com>
8441 * target-delegates.c: Rebuild.
8442 * target.c (target_remove_mask_watchpoint): Unconditionally
8444 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8445 TARGET_DEFAULT_RETURN.
8447 2014-02-19 Tom Tromey <tromey@redhat.com>
8449 * target-delegates.c: Rebuild.
8450 * target.c (target_insert_mask_watchpoint): Unconditionally
8452 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8453 TARGET_DEFAULT_RETURN.
8455 2014-02-19 Tom Tromey <tromey@redhat.com>
8457 * target-delegates.c: Rebuild.
8458 * target.c (target_ranged_break_num_registers): Unconditionally
8460 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8461 Use TARGET_DEFAULT_RETURN.
8463 2014-02-19 Tom Tromey <tromey@redhat.com>
8465 * target-delegates.c: Rebuild.
8466 * target.c (target_fetch_registers): Unconditionally delegate.
8467 * target.h (struct target_ops) <to_fetch_registers>: Use
8468 TARGET_DEFAULT_NORETURN.
8470 2014-02-19 Tom Tromey <tromey@redhat.com>
8472 * target-delegates.c: Rebuild.
8473 * target.c (update_current_target): Don't inherit or default
8475 * target.h (struct target_ops) <to_stop>: Use
8476 TARGET_DEFAULT_IGNORE.
8478 2014-02-19 Tom Tromey <tromey@redhat.com>
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8482 to_can_run_breakpoint_commands.
8483 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8484 Use TARGET_DEFAULT_RETURN.
8486 2014-02-19 Tom Tromey <tromey@redhat.com>
8488 * target-delegates.c: Rebuild.
8489 * target.c (update_current_target): Don't inherit or default
8490 to_supports_evaluation_of_breakpoint_conditions.
8491 * target.h (struct target_ops)
8492 <to_supports_evaluation_of_breakpoint_conditions>: Use
8493 TARGET_DEFAULT_RETURN.
8495 2014-02-19 Tom Tromey <tromey@redhat.com>
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8499 to_augmented_libraries_svr4_read.
8500 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8501 Use TARGET_DEFAULT_RETURN.
8503 2014-02-19 Tom Tromey <tromey@redhat.com>
8505 * target-delegates.c: Rebuild.
8506 * target.c (update_current_target): Don't inherit or default
8508 * target.h (struct target_ops) <to_can_use_agent>: Use
8509 TARGET_DEFAULT_RETURN.
8511 2014-02-19 Tom Tromey <tromey@redhat.com>
8513 * target-delegates.c: Rebuild.
8514 * target.c (update_current_target): Don't inherit or default
8516 * target.h (struct target_ops) <to_use_agent>: Use
8517 TARGET_DEFAULT_NORETURN.
8519 2014-02-19 Tom Tromey <tromey@redhat.com>
8521 * target-delegates.c: Rebuild.
8522 * target.c (update_current_target): Don't inherit or default
8524 (return_null): Remove.
8525 * target.h (struct target_ops) <to_traceframe_info>: Use
8526 TARGET_DEFAULT_RETURN.
8528 2014-02-19 Tom Tromey <tromey@redhat.com>
8530 * target-delegates.c: Rebuild.
8531 * target.c (update_current_target): Don't inherit or default
8532 to_static_tracepoint_markers_by_strid.
8533 * target.h (struct target_ops)
8534 <to_static_tracepoint_markers_by_strid>: 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
8541 to_static_tracepoint_marker_at.
8542 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8543 Use TARGET_DEFAULT_RETURN.
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8547 * target-delegates.c: Rebuild.
8548 * target.c (update_current_target): Don't inherit or default
8550 * target.h (struct target_ops) <to_set_permissions>: Use
8551 TARGET_DEFAULT_IGNORE.
8553 2014-02-19 Tom Tromey <tromey@redhat.com>
8555 * target-delegates.c: Rebuild.
8556 * target.c (update_current_target): Don't inherit or default
8558 * target.h (struct target_ops) <to_get_tib_address>: Use
8559 TARGET_DEFAULT_NORETURN.
8561 2014-02-19 Tom Tromey <tromey@redhat.com>
8563 * target-delegates.c: Rebuild.
8564 * target.c (update_current_target): Don't inherit or default
8566 * target.h (struct target_ops) <to_set_trace_notes>: Use
8567 TARGET_DEFAULT_RETURN.
8569 2014-02-19 Tom Tromey <tromey@redhat.com>
8571 * target-delegates.c: Rebuild.
8572 * target.c (update_current_target): Don't initialize
8573 to_set_trace_buffer_size.
8574 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8575 TARGET_DEFAULT_IGNORE.
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8579 * target-delegates.c: Rebuild.
8580 * target.c (update_current_target): Don't inherit or default
8581 to_set_circular_trace_buffer.
8582 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8583 TARGET_DEFAULT_IGNORE.
8585 2014-02-19 Tom Tromey <tromey@redhat.com>
8587 * target-delegates.c: Rebuild.
8588 * target.c (update_current_target): Don't inherit or default
8589 to_set_disconnected_tracing.
8590 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8591 TARGET_DEFAULT_IGNORE.
8593 2014-02-19 Tom Tromey <tromey@redhat.com>
8595 * target-delegates.c: Rebuild.
8596 * target.c (update_current_target): Don't inherit or default
8597 to_get_min_fast_tracepoint_insn_len.
8598 (return_minus_one): Remove.
8599 * target.h (struct target_ops)
8600 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8602 2014-02-19 Tom Tromey <tromey@redhat.com>
8604 * target-delegates.c: Rebuild.
8605 * target.c (update_current_target): Don't inherit or default
8606 to_get_raw_trace_data.
8607 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8608 TARGET_DEFAULT_NORETURN.
8610 2014-02-19 Tom Tromey <tromey@redhat.com>
8612 * target-delegates.c: Rebuild.
8613 * target.c (update_current_target): Don't inherit or default
8614 to_upload_trace_state_variables.
8615 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8616 Use TARGET_DEFAULT_RETURN.
8618 2014-02-19 Tom Tromey <tromey@redhat.com>
8620 * target-delegates.c: Rebuild.
8621 * target.c (update_current_target): Don't inherit or default
8622 to_upload_tracepoints.
8623 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8624 TARGET_DEFAULT_RETURN.
8626 2014-02-19 Tom Tromey <tromey@redhat.com>
8628 * target-delegates.c: Rebuild.
8629 * target.c (update_current_target): Don't inherit or default
8631 * target.h (struct target_ops) <to_save_trace_data>: Use
8632 TARGET_DEFAULT_NORETURN.
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8636 * target-delegates.c: Rebuild.
8637 * target.c (update_current_target): Don't inherit or default
8638 to_get_trace_state_variable_value.
8639 * target.h (struct target_ops)
8640 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8644 * target-delegates.c: Rebuild.
8645 * target.c (update_current_target): Don't inherit or default
8647 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8649 2014-02-19 Tom Tromey <tromey@redhat.com>
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8654 * target.h (struct target_ops) <to_trace_stop>: Use
8655 TARGET_DEFAULT_NORETURN.
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_get_tracepoint_status.
8662 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8663 TARGET_DEFAULT_NORETURN.
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8669 to_get_trace_status.
8670 * target.h (struct target_ops) <to_get_trace_status>: Use
8671 TARGET_DEFAULT_RETURN.
8673 2014-02-19 Tom Tromey <tromey@redhat.com>
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8678 * target.h (struct target_ops) <to_trace_start>: Use
8679 TARGET_DEFAULT_NORETURN.
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8685 to_trace_set_readonly_regions.
8686 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8687 Use TARGET_DEFAULT_NORETURN.
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8693 to_disable_tracepoint.
8694 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8695 TARGET_DEFAULT_NORETURN.
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target-delegates.c: Rebuild.
8700 * target.c (update_current_target): Don't inherit or default
8701 to_enable_tracepoint.
8702 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8703 TARGET_DEFAULT_NORETURN.
8705 2014-02-19 Tom Tromey <tromey@redhat.com>
8707 * target-delegates.c: Rebuild.
8708 * target.c (update_current_target): Don't inherit or default
8709 to_download_trace_state_variable.
8710 * target.h (struct target_ops) <to_download_trace_state_variable>:
8711 Use TARGET_DEFAULT_NORETURN.
8713 2014-02-19 Tom Tromey <tromey@redhat.com>
8715 * target-delegates.c: Rebuild.
8716 * target.c (update_current_target): Don't inherit or default
8717 to_can_download_tracepoint.
8718 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8719 TARGET_DEFAULT_RETURN.
8721 2014-02-19 Tom Tromey <tromey@redhat.com>
8723 * target-delegates.c: Rebuild.
8724 * target.c (update_current_target): Don't inherit or default
8725 to_download_tracepoint.
8726 * target.h (struct target_ops) <to_download_tracepoint>: Use
8727 TARGET_DEFAULT_NORETURN.
8729 2014-02-19 Tom Tromey <tromey@redhat.com>
8731 * target-delegates.c: Rebuild.
8732 * target.c (update_current_target): Don't inherit or default
8734 * target.h (struct target_ops) <to_trace_init>: Use
8735 TARGET_DEFAULT_RETURN.
8737 2014-02-19 Tom Tromey <tromey@redhat.com>
8739 * target-delegates.c: Rebuild.
8740 * target.c (update_current_target): Don't inherit or default
8741 to_supports_string_tracing.
8742 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8743 TARGET_DEFAULT_RETURN.
8745 2014-02-19 Tom Tromey <tromey@redhat.com>
8747 * target-delegates.c: Rebuild.
8748 * target.c (update_current_target): Don't inherit or default
8749 to_supports_enable_disable_tracepoint.
8750 * target.h (struct target_ops)
8751 <to_supports_enable_disable_tracepoint>: Use
8752 TARGET_DEFAULT_RETURN.
8754 2014-02-19 Tom Tromey <tromey@redhat.com>
8756 * target-delegates.c: Rebuild.
8757 * target.c (update_current_target): Don't inherit or default
8758 to_supports_multi_process.
8759 * target.h (struct target_ops) <to_supports_multi_process>: Use
8760 TARGET_DEFAULT_RETURN.
8762 2014-02-19 Tom Tromey <tromey@redhat.com>
8764 * target-delegates.c: Rebuild.
8765 * target.c (update_current_target): Don't inherit or default
8766 to_get_ada_task_ptid.
8767 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8768 TARGET_DEFAULT_FUNC.
8770 2014-02-19 Tom Tromey <tromey@redhat.com>
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8774 to_thread_architecture.
8775 * target.h (struct target_ops) <to_thread_architecture>: Use
8776 TARGET_DEFAULT_FUNC.
8778 2014-02-19 Tom Tromey <tromey@redhat.com>
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_execution_direction.
8783 * target.h (struct target_ops) <to_execution_direction>: Use
8784 TARGET_DEFAULT_FUNC.
8786 2014-02-19 Tom Tromey <tromey@redhat.com>
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_can_execute_reverse.
8791 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8792 TARGET_DEFAULT_RETURN.
8793 (target_can_execute_reverse): Unconditionally delegate.
8795 2014-02-19 Tom Tromey <tromey@redhat.com>
8797 * target-delegates.c: Rebuild.
8798 * target.c (update_current_target): Don't inherit or default
8800 (dummy_goto_bookmark): Remove.
8801 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8802 * target.h (struct target_ops) <to_goto_bookmark>: Use
8803 TARGET_DEFAULT_NORETURN.
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8810 (dummy_get_bookmark): Remove.
8811 (init_dummy_target): Don't inherit or default to_get_bookmark.
8812 * target.h (struct target_ops) <to_get_bookmark>: Use
8813 TARGET_DEFAULT_NORETURN
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8819 to_make_corefile_notes.
8820 (init_dummy_target): Don't initialize to_make_corefile_notes.
8821 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8822 TARGET_DEFAULT_FUNC.
8824 2014-02-19 Tom Tromey <tromey@redhat.com>
8826 * target-delegates.c: Rebuild.
8827 * target.c (update_current_target): Don't inherit or default
8828 to_find_memory_regions.
8829 (init_dummy_target): Don't initialize to_find_memory_regions.
8830 * target.h (struct target_ops) <to_find_memory_regions>: Use
8831 TARGET_DEFAULT_FUNC.
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
8838 * target.h (struct target_ops) <to_log_command>: Use
8839 TARGET_DEFAULT_IGNORE.
8840 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
8847 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8848 TARGET_DEFAULT_RETURN.
8850 2014-02-19 Tom Tromey <tromey@redhat.com>
8852 * target-delegates.c: Rebuild.
8853 * target.c (update_current_target): Don't inherit or default
8855 (target_thread_name): Unconditionally delegate.
8856 * target.h (struct target_ops) <to_thread_name>: Use
8857 TARGET_DEFAULT_RETURN.
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * target-delegates.c: Rebuild.
8862 * target.c (update_current_target): Don't inherit or default
8863 to_extra_thread_info.
8864 * target.h (struct target_ops) <to_extra_thread_info>: Use
8865 TARGET_DEFAULT_RETURN.
8867 2014-02-19 Tom Tromey <tromey@redhat.com>
8869 * target-delegates.c: Rebuild.
8870 * target.c (update_current_target): Don't inherit or default
8872 * target.h (struct target_ops) <to_has_exited>: Use
8873 TARGET_DEFAULT_RETURN..
8875 2014-02-19 Tom Tromey <tromey@redhat.com>
8877 * target-delegates.c: Rebuild.
8878 * target.c (update_current_target): Don't inherit or default
8879 to_set_syscall_catchpoint.
8880 (return_one): Remove.
8881 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8882 TARGET_DEFAULT_RETURN.
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8886 * target-delegates.c: Rebuild.
8887 * target.c (update_current_target): Don't inherit or default
8888 to_insert_exec_catchpoint.
8889 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8890 TARGET_DEFAULT_RETURN.
8892 2014-01-08 Tom Tromey <tromey@redhat.com>
8894 * target-delegates.c: Rebuild.
8895 * target.c (update_current_target): Don't inherit or default
8896 to_insert_exec_catchpoint.
8897 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8898 TARGET_DEFAULT_RETURN.
8900 2014-02-19 Tom Tromey <tromey@redhat.com>
8902 * target-delegates.c: Rebuild.
8903 * target.c (update_current_target): Don't inherit or default
8904 to_remove_vfork_catchpoint.
8905 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8906 TARGET_DEFAULT_RETURN.
8908 2014-02-19 Tom Tromey <tromey@redhat.com>
8910 * target-delegates.c: Rebuild.
8911 * target.c (update_current_target): Don't inherit or default
8912 to_insert_vfork_catchpoint.
8913 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8914 TARGET_DEFAULT_RETURN.
8916 2014-02-19 Tom Tromey <tromey@redhat.com>
8918 * target-delegates.c: Rebuild.
8919 * target.c (update_current_target): Don't inherit or default
8920 to_remove_fork_catchpoint.
8921 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8922 TARGET_DEFAULT_RETURN.
8924 2014-02-19 Tom Tromey <tromey@redhat.com>
8926 * target-delegates.c: Rebuild.
8927 * target.c (update_current_target): Don't inherit or default
8928 to_insert_fork_catchpoint.
8929 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8930 TARGET_DEFAULT_RETURN.
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8934 * target-delegates.c: Rebuild.
8935 * target.c (update_current_target): Don't inherit or default
8936 to_post_startup_inferior.
8937 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8938 TARGET_DEFAULT_IGNORE.
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8942 * target-delegates.c: Rebuild.
8943 * target.c (update_current_target): Don't inherit or default
8945 * target.h (struct target_ops) <to_load>: Use
8946 TARGET_DEFAULT_NORETURN.
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8950 * target-delegates.c: Rebuild.
8951 * target.c (update_current_target): Don't inherit or default
8953 * target.h (struct target_ops) <to_terminal_info>: Use
8954 TARGET_DEFAULT_FUNC.
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8958 * target-delegates.c: Rebuild.
8959 * target.c (update_current_target): Don't inherit or default
8960 to_terminal_save_ours.
8961 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8962 TARGET_DEFAULT_IGNORE.
8964 2014-02-19 Tom Tromey <tromey@redhat.com>
8966 * target-delegates.c: Rebuild.
8967 * target.c (update_current_target): Don't inherit or default
8969 * target.h (struct target_ops) <to_terminal_ours>: Use
8970 TARGET_DEFAULT_IGNORE.
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8976 to_terminal_ours_for_output.
8977 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8978 TARGET_DEFAULT_IGNORE.
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8982 * target-delegates.c: Rebuild.
8983 * target.c (update_current_target): Don't inherit or default
8984 to_terminal_inferior.
8985 * target.h (struct target_ops) <to_terminal_inferior>: Use
8986 TARGET_DEFAULT_IGNORE.
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target-delegates.c: Rebuild.
8991 * target.c (update_current_target): Don't inherit or default
8993 * target.h (struct target_ops) <to_terminal_init>: Use
8994 TARGET_DEFAULT_IGNORE.
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9000 to_can_accel_watchpoint_condition.
9001 * target.h (struct target_ops)
9002 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9006 * target-delegates.c: Rebuild.
9007 * target.c (update_current_target): Don't inherit or default
9008 to_region_ok_for_hw_watchpoint.
9009 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9010 Use TARGET_DEFAULT_FUNC.
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9014 * target-delegates.c: Rebuild.
9015 * target.c (update_current_target): Don't inherit or default
9016 to_watchpoint_addr_within_range.
9017 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9018 Use TARGET_DEFAULT_FUNC.
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9022 * target-delegates.c: Rebuild.
9023 * target.c (update_current_target): Don't inherit or default
9024 to_remove_watchpoint.
9025 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9026 TARGET_DEFAULT_NORETURN.
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9030 * target-delegates.c: Rebuild.
9031 * target.c (update_current_target): Don't inherit or default
9032 to_insert_watchpoint.
9033 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9034 TARGET_DEFAULT_RETURN.
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9038 * target-delegates.c: Rebuild.
9039 * target.c (update_current_target): Don't inherit or default
9040 to_remove_hw_breakpoint.
9041 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9042 TARGET_DEFAULT_RETURN.
9044 2014-02-19 Tom Tromey <tromey@redhat.com>
9046 * target-delegates.c: Rebuild.
9047 * target.c (update_current_target): Don't inherit or default
9048 to_insert_hw_breakpoint.
9049 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9050 TARGET_DEFAULT_RETURN.
9052 2014-02-19 Tom Tromey <tromey@redhat.com>
9054 * target-delegates.c: Rebuild.
9055 * target.c (update_current_target): Don't inherit or default
9056 to_can_use_hw_breakpoint.
9057 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9058 TARGET_DEFAULT_RETURN.
9060 2014-02-19 Tom Tromey <tromey@redhat.com>
9062 * target-delegates.c: Rebuild.
9063 * target.c (update_current_target): Don't inherit or default
9065 * target.h (struct target_ops) <to_files_info>: Use
9066 TARGET_DEFAULT_IGNORE.
9068 2014-02-19 Tom Tromey <tromey@redhat.com>
9070 * target-delegates.c: Rebuild.
9071 * target.c (update_current_target): Don't inherit or default
9073 * target.h (struct target_ops) <to_store>: Use
9074 TARGET_DEFAULT_NORETURN.
9076 2014-02-19 Tom Tromey <tromey@redhat.com>
9078 * target-delegates.c: Rebuild.
9079 * target.c (update_current_target): Don't inherit or default
9081 * target.h (struct target_ops) <to_post_attach>: Use
9082 TARGET_DEFAULT_IGNORE.
9084 2014-02-19 Tom Tromey <tromey@redhat.com>
9086 * target-delegates.c: Rebuild.
9087 * target.c (update_current_target): Don't inherit or default
9089 (default_rcmd): New function.
9090 (do_monitor_command): Unconditionally delegate.
9091 * target.h (struct target_ops) <to_rmcd>: Use
9092 TARGET_DEFAULT_FUNC.
9094 2014-02-19 Tom Tromey <tromey@redhat.com>
9096 * target-delegates.c: Rebuild.
9097 * target.c (init_dummy_target): Don't initialize to_attach.
9098 (target_attach): Unconditionally delegate.
9099 * target.h (struct target_ops) <to_attach>: Use
9100 TARGET_DEFAULT_FUNC.
9102 2014-02-19 Tom Tromey <tromey@redhat.com>
9104 * target-delegates.c: Rebuild.
9105 * target.c (target_detach): Unconditionally delegate.
9106 (init_dummy_target): Don't initialize to_detach.
9107 * target.h (struct target_ops) <to_detach>: Use
9108 TARGET_DEFAULT_IGNORE.
9110 2014-02-19 Tom Tromey <tromey@redhat.com>
9112 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9114 (target_augmented_libraries_svr4_read): Add argument.
9115 * target.c (update_current_target): Update.
9116 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9119 2014-02-19 Tom Tromey <tromey@redhat.com>
9121 * target.h (struct target_ops) <to_call_history_range>: Add
9123 * target.c (target_call_history_range): Add argument.
9124 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9126 (record_btrace_call_history_from): Update.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target.h (struct target_ops) <to_call_history_from>: Add
9132 * target.c (target_call_history_from): Add argument.
9133 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target.h (struct target_ops) <to_call_history>: Add argument.
9139 * target.c (target_call_history): Add argument.
9140 * record-btrace.c (record_btrace_call_history): Add 'self'
9143 2014-02-19 Tom Tromey <tromey@redhat.com>
9145 * target.h (struct target_ops) <to_insn_history_range>: Add
9147 * target.c (target_insn_history_range): Add argument.
9148 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9150 (record_btrace_insn_history_from): Update.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target.h (struct target_ops) <to_insn_history_from>: Add
9156 * target.c (target_insn_history_from): Add argument.
9157 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9162 * target.h (struct target_ops) <to_insn_history>: Add argument.
9163 * target.c (target_insn_history): Add argument.
9164 * record-btrace.c (record_btrace_insn_history): Add 'self'
9167 2014-02-19 Tom Tromey <tromey@redhat.com>
9169 * target.h (struct target_ops) <to_goto_record>: Add argument.
9170 * target.c (target_goto_record): Add argument.
9171 * record-full.c (record_full_goto): Add 'self' argument.
9172 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9174 2014-02-19 Tom Tromey <tromey@redhat.com>
9176 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9177 * target.c (target_goto_record_end): Add argument.
9178 * record-full.c (record_full_goto_end): Add 'self' argument.
9179 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9181 2014-02-19 Tom Tromey <tromey@redhat.com>
9183 * target.h (struct target_ops) <to_goto_record_begin>: Add
9185 * target.c (target_goto_record_begin): Add argument.
9186 * record-full.c (record_full_goto_begin): Add 'self' argument.
9187 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9190 2014-02-19 Tom Tromey <tromey@redhat.com>
9192 * target.h (struct target_ops) <to_record_is_replaying>: Add
9194 * target.c (target_record_is_replaying): Add argument.
9195 * record-full.c (record_full_is_replaying): Add 'self' argument.
9196 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9198 (record_btrace_xfer_partial, record_btrace_store_registers)
9199 (record_btrace_prepare_to_store, record_btrace_resume)
9200 (record_btrace_wait, record_btrace_decr_pc_after_break)
9201 (record_btrace_find_new_threads, record_btrace_thread_alive):
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_delete_record>: Add argument.
9207 * target.c (target_delete_record): Add argument.
9208 * record-full.c (record_full_delete): Add 'self' argument.
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target.h (struct target_ops) <to_save_record>: Add argument.
9213 * target.c (target_save_record): Add argument.
9214 * record-full.c (record_full_save): Add 'self' argument.
9215 (record_full_save): Add 'self' argument.
9217 2014-02-19 Tom Tromey <tromey@redhat.com>
9219 * target.h (struct target_ops) <to_info_record>: Add argument.
9220 * target.c (target_info_record): Add argument.
9221 * record.c (info_record_command): Add argument.
9222 * record-full.c (record_full_info): Add 'self' argument.
9223 * record-btrace.c (record_btrace_info): Add 'self' argument.
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9227 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9228 * target.c (target_stop_recording): Add argument.
9229 * record.c (record_stop): Add argument.
9230 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9235 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9236 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9237 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9239 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9240 (_initialize_amd64_linux_nat): Use it.
9241 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9242 (_initialize_i386_linux_nat): Use it.
9244 2014-02-19 Tom Tromey <tromey@redhat.com>
9246 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9247 * target.c (target_teardown_btrace): Add argument.
9248 * remote.c (remote_teardown_btrace): Add 'self' argument.
9249 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9251 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9257 * target.c (target_disable_btrace): Add argument.
9258 * remote.c (remote_disable_btrace): Add 'self' argument.
9259 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9261 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9264 2014-02-19 Tom Tromey <tromey@redhat.com>
9266 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9267 * target.c (target_enable_btrace): Add argument.
9268 * remote.c (remote_enable_btrace): Add 'self' argument.
9269 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9271 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9277 (target_can_use_agent): Add argument.
9278 * target.c (update_current_target): Update.
9279 * remote.c (remote_can_use_agent): Add 'self' argument.
9280 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * target.h (struct target_ops) <to_use_agent>: Add argument.
9285 (target_use_agent): Add argument.
9286 * target.c (update_current_target): Update.
9287 * remote.c (remote_use_agent): Add 'self' argument.
9288 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9290 2014-02-19 Tom Tromey <tromey@redhat.com>
9292 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9293 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9294 (target_traceframe_info): Add argument.
9295 * target.c (update_current_target): Update.
9296 * remote.c (remote_traceframe_info): Add 'self' argument.
9297 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9301 * target.h (target_static_tracepoint_markers_by_strid): Add
9303 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9305 * target.c (update_current_target): Update.
9306 * remote.c (struct target_ops)
9307 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9308 * linux-nat.c (struct target_ops)
9309 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9311 2014-02-19 Tom Tromey <tromey@redhat.com>
9313 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9315 (target_static_tracepoint_marker_at): Add argument.
9316 * target.c (update_current_target): Update.
9317 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9323 (target_set_permissions): Add argument.
9324 * target.c (update_current_target): Update.
9325 * remote.c (remote_set_permissions): Add 'self' argument.
9326 (remote_start_remote): Update.
9328 2014-02-19 Tom Tromey <tromey@redhat.com>
9330 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9331 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9332 (target_get_tib_address): Add argument.
9333 * target.c (update_current_target): Update.
9334 * remote.c (remote_get_tib_address): Add 'self' argument.
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9338 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9339 (target_set_trace_notes): Add argument.
9340 * target.c (update_current_target): Update.
9341 * remote.c (remote_set_trace_notes): Add 'self' argument.
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9345 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9347 (target_set_trace_buffer_size): Add argument.
9348 * target.c (update_current_target): Update.
9349 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9351 2014-02-19 Tom Tromey <tromey@redhat.com>
9353 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9355 (target_set_circular_trace_buffer): Add argument.
9356 * target.c (update_current_target): Update.
9357 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9360 2014-02-19 Tom Tromey <tromey@redhat.com>
9362 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9364 (target_set_disconnected_tracing): Add argument.
9365 * target.c (update_current_target): Update.
9366 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9368 2014-02-19 Tom Tromey <tromey@redhat.com>
9370 * target.h (struct target_ops)
9371 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9372 (target_get_min_fast_tracepoint_insn_len): Add argument.
9373 * target.c (update_current_target): Update.
9374 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9379 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9381 (target_get_raw_trace_data): Add argument.
9382 * target.c (update_current_target): Update.
9383 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9387 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9389 (target_upload_trace_state_variables): Add argument.
9390 * target.c (update_current_target): Update.
9391 * remote.c (remote_upload_trace_state_variables): Add 'self'
9393 (remote_start_remote): Update.
9395 2014-02-19 Tom Tromey <tromey@redhat.com>
9397 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9399 (target_upload_tracepoints): Add argument.
9400 * target.c (update_current_target): Update.
9401 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9402 (remote_start_remote): Update.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9407 (target_save_trace_data): Add argument.
9408 * target.c (update_current_target): Update.
9409 * remote.c (remote_save_trace_data): Add 'self' argument.
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9413 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9415 * target.h (struct target_ops)
9416 <to_get_trace_state_variable_value>: Add argument.
9417 (target_get_trace_state_variable_value): Add argument.
9418 * target.c (update_current_target): Update.
9419 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9421 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9423 2014-02-19 Tom Tromey <tromey@redhat.com>
9425 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9426 * target.h (struct target_ops) <to_trace_find>: Add argument.
9427 (target_trace_find): Add argument.
9428 * target.c (update_current_target): Update.
9429 * remote.c (remote_trace_find): Add 'self' argument.
9430 * ctf.c (ctf_trace_find): Add 'self' argument.
9432 2014-02-19 Tom Tromey <tromey@redhat.com>
9434 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9435 (target_trace_stop): Add argument.
9436 * target.c (update_current_target): Update.
9437 * remote.c (remote_trace_stop): Add 'self' argument.
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9441 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9442 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9444 (target_get_tracepoint_status): Add argument.
9445 * target.c (update_current_target): Update.
9446 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9451 * target.h (struct target_ops) <to_get_trace_status>: Add
9453 (target_get_trace_status): Add argument.
9454 * target.c (update_current_target): Update.
9455 * remote.c (remote_get_trace_status): Add 'self' argument.
9456 (remote_start_remote, remote_can_download_tracepoint): Update.
9457 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9461 * target.h (struct target_ops) <to_trace_start>: Add argument.
9462 (target_trace_start): Add argument.
9463 * target.c (update_current_target): Update.
9464 * remote.c (remote_trace_start): Add 'self' argument.
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9468 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9470 (target_trace_set_readonly_regions): Add argument.
9471 * target.c (update_current_target): Update.
9472 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9477 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9479 (target_disable_tracepoint): Add argument.
9480 * target.c (update_current_target): Update.
9481 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9485 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9487 (target_enable_tracepoint): Add argument.
9488 * target.c (update_current_target): Update.
9489 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9493 * target.h (struct target_ops) <to_download_trace_state_variable>:
9495 (target_download_trace_state_variable): Add argument.
9496 * target.c (update_current_target): Update.
9497 * remote.c (remote_download_trace_state_variable): Add 'self'
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9502 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9504 (target_can_download_tracepoint): Add argument.
9505 * target.c (update_current_target): Update.
9506 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target.h (struct target_ops) <to_download_tracepoint>: Add
9512 (target_download_tracepoint): Add argument.
9513 * target.c (update_current_target): Update.
9514 * remote.c (remote_download_tracepoint): Add 'self' argument.
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9518 * target.h (struct target_ops) <to_trace_init>: Add argument.
9519 (target_trace_init): Add argument.
9520 * target.c (update_current_target): Update.
9521 * remote.c (remote_trace_init): Add 'self' argument.
9523 2014-02-19 Tom Tromey <tromey@redhat.com>
9525 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9526 * target.c (target_fileio_readlink): Add argument.
9527 * remote.c (remote_hostio_readlink): Add 'self' argument.
9528 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9530 2014-02-19 Tom Tromey <tromey@redhat.com>
9532 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9533 * target.c (target_fileio_unlink): Add argument.
9534 * remote.c (remote_hostio_unlink): Add 'self' argument.
9535 (remote_file_delete): Update.
9536 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9540 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9541 * target.c (target_fileio_close): Add argument.
9542 * remote.c (remote_hostio_close): Add 'self' argument.
9543 (remote_hostio_close_cleanup): Update.
9544 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9546 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9548 2014-02-19 Tom Tromey <tromey@redhat.com>
9550 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9551 * target.c (target_fileio_pread): Add argument.
9552 * remote.c (remote_hostio_pread): Add 'self' argument.
9553 (remote_bfd_iovec_pread, remote_file_get): Update.
9554 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9556 2014-02-19 Tom Tromey <tromey@redhat.com>
9558 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9559 * target.c (target_fileio_pwrite): Add argument.
9560 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9561 (remote_file_put): Update.
9562 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9564 2014-02-19 Tom Tromey <tromey@redhat.com>
9566 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9567 * target.c (target_fileio_open): Add argument.
9568 * remote.c (remote_hostio_open): Add 'self' argument.
9569 (remote_bfd_iovec_open): Add 'self' argument.
9570 (remote_file_put): Add 'self' argument.
9571 (remote_file_get): Add 'self' argument.
9572 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9578 (target_can_run_breakpoint_commands): Add argument.
9579 * target.c (update_current_target): Update.
9580 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9582 (remote_insert_breakpoint): Add 'self' argument.
9583 (remote_insert_hw_breakpoint): Add 'self' argument.
9584 (remote_can_run_breakpoint_commands): Add 'self' argument.
9586 2014-02-19 Tom Tromey <tromey@redhat.com>
9588 * target.h (struct target_ops)
9589 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9590 (target_supports_evaluation_of_breakpoint_conditions): Add
9592 * target.c (update_current_target): Update.
9593 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9595 (remote_insert_breakpoint): Add 'self' argument.
9596 (remote_insert_hw_breakpoint): Add 'self' argument.
9597 (remote_supports_cond_breakpoints): Add 'self' argument.
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9603 (target_supports_string_tracing): Add argument.
9604 * target.c (update_current_target): Update.
9605 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9607 2014-02-19 Tom Tromey <tromey@redhat.com>
9609 * target.h (struct target_ops)
9610 <to_supports_disable_randomization>: Add argument.
9611 * target.c (find_default_supports_disable_randomization): Add
9613 (target_supports_disable_randomization): Add argument.
9614 (find_default_supports_disable_randomization): Add 'self'
9616 * remote.c (extended_remote_supports_disable_randomization): Add
9618 (remote_supports_disable_randomization): Add 'self' argument.
9619 (extended_remote_create_inferior): Update.
9620 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9623 2014-02-19 Tom Tromey <tromey@redhat.com>
9625 * target.h (struct target_ops)
9626 <to_supports_enable_disable_tracepoint>: Add argument.
9627 (target_supports_enable_disable_tracepoint): Add argument.
9628 * target.c (update_current_target): Update.
9629 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target.h (struct target_ops) <to_supports_multi_process>: Add
9636 (target_supports_multi_process): Add argument.
9637 * target.c (update_current_target): Update.
9638 * remote.c (remote_supports_multi_process): Add 'self' argument.
9639 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9641 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9644 2014-02-19 Tom Tromey <tromey@redhat.com>
9646 * target.h (struct target_ops) <to_execution_direction>: Add
9648 (target_execution_direction): Add argument.
9649 * target.c (default_execution_direction): Add 'self' argument.
9650 * record-full.c (record_full_execution_direction): Add 'self'
9653 2014-02-19 Tom Tromey <tromey@redhat.com>
9655 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9657 (target_can_execute_reverse): Add argument.
9658 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9659 * record-full.c (record_full_can_execute_reverse): Add 'self'
9661 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9664 2014-02-19 Tom Tromey <tromey@redhat.com>
9666 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9667 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9669 (target_get_ada_task_ptid): Add argument.
9670 * target.c (update_current_target): Update.
9671 (default_get_ada_task_ptid): Add 'self' argument.
9672 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9673 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9674 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9676 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9678 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9680 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9682 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9683 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9688 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9689 (target_goto_bookmark): Add argument.
9690 * target.c (dummy_goto_bookmark): Add 'self' argument.
9691 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9695 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9696 (target_get_bookmark): Add argument.
9697 * target.c (dummy_get_bookmark): Add 'self' argument.
9698 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9700 2014-02-19 Tom Tromey <tromey@redhat.com>
9702 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9704 (target_make_corefile_notes): Add argument.
9705 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9706 * procfs.c (procfs_make_note_section): Add 'self' argument.
9707 (procfs_make_note_section): Add 'self' argument.
9708 (procfs_make_note_section): Add 'self' argument.
9709 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9711 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9712 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9713 * exec.c (exec_make_note_section): Add 'self' argument.
9714 (exec_make_note_section): Add 'self' argument.
9716 2014-02-19 Tom Tromey <tromey@redhat.com>
9718 * target.h (struct target_ops) <to_find_memory_regions>: Add
9720 (target_find_memory_regions): Add argument.
9721 * target.c (dummy_find_memory_regions): Add 'self' argument.
9722 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9723 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9724 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9725 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9726 * exec. (exec_do_find_memory_regions): New global.
9727 (exec_set_find_memory_regions): Rewrite.
9728 (exec_find_memory_regions): New function.
9729 (init_exec_ops): Use exec_find_memory_regions.
9731 2014-02-19 Tom Tromey <tromey@redhat.com>
9733 * target.h (struct target_ops) <to_supports_non_stop>: Add
9735 * target.c (find_default_supports_non_stop): Add argument.
9736 (target_supports_non_stop): Add argument.
9737 (find_default_supports_non_stop): Add 'self' argument.
9738 * remote.c (remote_supports_non_stop): Add 'self' argument.
9739 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9741 2014-02-19 Tom Tromey <tromey@redhat.com>
9743 * target.h (struct target_ops) <to_log_command>: Add argument.
9744 (target_log_command): Add argument.
9745 * serial.h (serial_log_command): Add 'self' argument.
9746 * serial.c (serial_log_command): Add 'self' argument.
9748 2014-02-19 Tom Tromey <tromey@redhat.com>
9750 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9751 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9753 (target_pid_to_exec_file): Add argument.
9754 * target.c (debug_to_pid_to_exec_file): Add argument.
9755 (update_current_target): Update.
9756 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9757 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9758 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9759 (linux_handle_extended_wait): Update.
9760 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9761 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9762 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9763 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9765 2014-02-19 Tom Tromey <tromey@redhat.com>
9767 * target.h (struct target_ops) <to_rcmd>: Add argument.
9768 (target_rcmd): Add argument.
9769 * target.c (debug_to_rcmd): Add argument.
9770 (update_current_target, do_monitor_command): Update.
9771 * remote.c (remote_rcmd): Add 'self' argument.
9772 * monitor.c (monitor_rcmd): Add 'self' argument.
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9776 * windows-nat.c (windows_stop): Add 'self' argument.
9777 * target.h (struct target_ops) <to_stop>: Add argument.
9778 * target.c (target_stop): Add argument.
9779 (debug_to_stop): Add argument.
9780 (update_current_target): Update.
9781 * remote.c (remote_stop): Add 'self' argument.
9782 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9783 (gdbsim_cntrl_c): Update.
9784 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9785 * procfs.c (procfs_stop): Add 'self' argument.
9786 * nto-procfs.c (procfs_stop): Add 'self' argument.
9787 * monitor.c (monitor_stop): Add 'self' argument.
9788 (monitor_open): Update.
9789 * linux-nat.c (linux_nat_stop): Add argument.
9790 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9791 * gnu-nat.c (gnu_stop): Add 'self' argument.
9792 * darwin-nat.c (darwin_stop): Add 'self' argument.
9794 2014-02-19 Tom Tromey <tromey@redhat.com>
9796 * target.h (struct target_ops) <to_thread_name>: Add argument.
9797 * target.c (target_thread_name): Add argument.
9798 (update_current_target): Update.
9799 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9803 * target.h (struct target_ops) <to_extra_thread_info>: Add
9805 (target_extra_thread_info): Add argument.
9806 * target.c (update_current_target): Update.
9807 * remote.c (remote_threads_extra_info): Add 'self' argument.
9808 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9810 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9811 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9812 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9814 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9816 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9818 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9823 * target.h (struct target_ops) <to_program_signals>: Add argument.
9824 * target.c (target_program_signals): Add argument.
9825 * remote.c (remote_program_signals): Add 'self' argument.
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9830 * target.c (target_pass_signals): Add argument.
9831 * remote.c (remote_pass_signals): Add 'self' argument.
9832 (remote_start_remote): Update.
9833 * procfs.c (procfs_pass_signals): Add 'self' argument.
9834 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9835 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9836 (linux_nat_create_inferior, linux_nat_attach): Update.
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9840 * windows-nat.c (windows_can_run): Add 'self' argument.
9841 * target.h (struct target_ops) <to_can_run>: Add argument.
9842 (target_can_run): Add argument.
9843 * target.c (debug_to_can_run): Add argument.
9844 (update_current_target): Update.
9845 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9846 * inf-child.c (inf_child_can_run): Add 'self' argument.
9847 * go32-nat.c (go32_can_run): Add 'self' argument.
9849 2014-02-19 Tom Tromey <tromey@redhat.com>
9851 * target.h (struct target_ops) <to_has_exited>: Add argument.
9852 (target_has_exited): Add argument.
9853 * target.c (debug_to_has_exited): Add argument.
9854 (update_current_target): Update.
9856 2014-02-19 Tom Tromey <tromey@redhat.com>
9858 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9860 (target_set_syscall_catchpoint): Add argument.
9861 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9863 * target.c (update_current_target): Update.
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9867 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9869 (target_remove_exec_catchpoint): Add argument.
9870 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9871 (update_current_target): Update.
9872 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9875 2014-02-19 Tom Tromey <tromey@redhat.com>
9877 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9879 (target_insert_exec_catchpoint): Add argument.
9880 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9881 (update_current_target): Update.
9882 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9885 2014-02-19 Tom Tromey <tromey@redhat.com>
9887 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9889 (target_remove_vfork_catchpoint): Add argument.
9890 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9891 (update_current_target): Update.
9892 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9895 2014-02-19 Tom Tromey <tromey@redhat.com>
9897 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9899 (target_insert_vfork_catchpoint): Add argument.
9900 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9901 (update_current_target): Update.
9902 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9905 2014-02-19 Tom Tromey <tromey@redhat.com>
9907 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9909 (target_remove_fork_catchpoint): Add argument.
9910 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9911 (update_current_target): Update.
9912 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9917 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9919 (target_insert_fork_catchpoint): Add argument.
9920 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9921 (update_current_target): Update.
9922 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9929 (target_post_startup_inferior): Add argument.
9930 * target.c (debug_to_post_startup_inferior): Add argument.
9931 (update_current_target): Update.
9932 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9934 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9936 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9938 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9940 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9942 (super_post_startup_inferior): Likewise.
9943 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9945 (super_post_startup_inferior): Likewise.
9946 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9947 Add 'self' argument.
9948 (super_post_startup_inferior): Likewise.
9950 2014-02-19 Tom Tromey <tromey@redhat.com>
9952 * target.h (struct target_ops) <to_load>: Add argument.
9953 * target.c (target_load): Add argument.
9954 (debug_to_load): Add argument.
9955 (update_current_target): Update.
9956 * remote.c (remote_load): Add 'self' argument.
9957 * remote-sim.c (gdbsim_load): Add 'self' argument.
9958 * remote-mips.c (mips_load): Add 'self' argument.
9959 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9960 * monitor.c (monitor_load): Add 'self' argument.
9961 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9963 2014-02-19 Tom Tromey <tromey@redhat.com>
9965 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9966 (target_terminal_info): Add argument.
9967 * target.c (debug_to_terminal_info): Add argument.
9968 (default_terminal_info): Likewise.
9969 * inflow.c (child_terminal_info): Add 'self' argument.
9970 * inferior.h (child_terminal_info): Add 'self' argument.
9971 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9975 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9977 (target_terminal_save_ours): Add argument.
9978 * target.c (debug_to_terminal_save_ours): Add argument.
9979 (update_current_target): Update.
9980 * inflow.c (terminal_save_ours): Add 'self' argument.
9981 * inferior.h (terminal_save_ours): Add 'self' argument.
9983 2014-02-19 Tom Tromey <tromey@redhat.com>
9985 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9986 (target_terminal_ours): Add argument.
9987 * target.c (debug_to_terminal_ours): Add argument.
9988 (update_current_target): Update.
9989 * remote.c (remote_terminal_ours): Add 'self' argument.
9990 (remote_close): Update.
9991 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9992 * inflow.c (terminal_ours): Add 'self' argument.
9993 * inferior.h (terminal_ours): Add 'self' argument.
9994 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9996 2014-02-19 Pedro Alves <palves@redhat.com>
9997 Tom Tromey <tromey@redhat.com>
9999 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10001 (target_terminal_ours_for_output): Add argument.
10002 * target.c (debug_to_terminal_ours_for_output): Add argument.
10003 (update_current_target): Update.
10004 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10005 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10006 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10008 2014-02-19 Tom Tromey <tromey@redhat.com>
10010 * target.h (struct target_ops) <to_terminal_inferior>: Add
10012 * target.c (target_terminal_inferior): Add argument.
10013 (update_current_target): Update.
10014 * remote.c (remote_terminal_inferior): Add 'self' argument.
10015 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10016 * inflow.c (terminal_inferior): Add 'self' argument.
10017 * inferior.h (terminal_inferior): Add 'self' argument.
10018 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10019 (go32_terminal_inferior): Add 'self' argument.
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10024 (target_terminal_init): Add argument.
10025 * target.c (debug_to_terminal_init): Add argument.
10026 (update_current_target): Update.
10027 * inflow.c (terminal_init_inferior): Add 'self' argument.
10028 * inferior.h (terminal_init_inferior): Add 'self' argument.
10029 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10030 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10032 2014-02-19 Tom Tromey <tromey@redhat.com>
10034 * target.h (struct target_ops)
10035 <to_can_accel_watchpoint_condition>: Add argument.
10036 (target_can_accel_watchpoint_condition): Add argument.
10037 * target.c (debug_to_can_accel_watchpoint_condition): Add
10039 (update_current_target): Update.
10040 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10043 2014-02-19 Tom Tromey <tromey@redhat.com>
10045 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10047 (target_region_ok_for_hw_watchpoint): Add argument.
10048 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10049 (default_region_ok_for_hw_watchpoint): Add argument.
10050 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10051 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10053 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10055 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10057 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10059 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10061 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10063 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10064 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10066 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10067 Add 'self' argument.
10069 2014-02-19 Tom Tromey <tromey@redhat.com>
10071 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10073 (target_insert_watchpoint): Add argument.
10074 * target.c (debug_to_insert_watchpoint): Add argument.
10075 (update_current_target): Update.
10076 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10077 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10078 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10079 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10080 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10081 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10083 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10084 (procfs_insert_hw_watchpoint): Add 'self' argument.
10085 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10087 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10089 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10091 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10092 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10094 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10099 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10101 (target_remove_watchpoint): Add argument.
10102 * target.c (debug_to_remove_watchpoint): Add argument.
10103 (update_current_target): Update.
10104 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10105 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10106 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10107 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10108 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10109 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10111 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10112 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10114 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10116 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10118 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10119 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10121 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10124 2014-02-19 Tom Tromey <tromey@redhat.com>
10126 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10128 (target_remove_hw_breakpoint): Add argument.
10129 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10130 (update_current_target): Update.
10131 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10132 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10134 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10135 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10137 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10140 2014-02-19 Tom Tromey <tromey@redhat.com>
10142 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10144 (target_insert_hw_breakpoint): Add argument.
10145 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10146 (update_current_target): Update.
10147 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10148 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10150 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10151 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10152 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10154 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10157 2014-02-19 Tom Tromey <tromey@redhat.com>
10159 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10161 (target_can_use_hardware_watchpoint): Add argument.
10162 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10163 (update_current_target): Update.
10164 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10166 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10168 * remote.c (remote_check_watch_resources): Add 'self' argument.
10169 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10170 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10172 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10173 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10175 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10177 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10179 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10181 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10183 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10185 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10186 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10188 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10193 * target.h (struct target_ops) <to_post_attach>: Add argument.
10194 (target_post_attach): Add argument.
10195 * target.c (debug_to_post_attach): Add argument.
10196 (update_current_target): Update.
10197 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10198 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10199 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10200 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10201 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10203 2014-02-19 Tom Tromey <tromey@redhat.com>
10205 * windows-nat.c (windows_close): Add 'self' argument.
10206 * tracepoint.c (tfile_close): Add 'self' argument.
10207 * target.h (struct target_ops) <to_close>: Add argument.
10208 * target.c (target_close): Add argument.
10209 (update_current_target): Update.
10210 * remote.c (remote_close): Add 'self' argument.
10211 * remote-sim.c (gdbsim_close): Add 'self' argument.
10212 * remote-mips.c (mips_close): Add 'self' argument.
10213 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10214 * record-full.c (record_full_close): Add 'self' argument.
10215 * record-btrace.c (record_btrace_close): Add 'self' argument.
10216 * monitor.h (monitor_close): Add 'self' argument.
10217 * monitor.c (monitor_close): Add 'self' argument.
10218 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10219 * linux-nat.c (linux_nat_close): Add argument.
10220 * go32-nat.c (go32_close): Add 'self' argument.
10221 * exec.c (exec_close_1): Add 'self' argument.
10222 * ctf.c (ctf_close): Add 'self' argument.
10223 * corelow.c (core_close): Add 'self' argument.
10224 (core_close_cleanup): Update.
10225 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10226 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10230 * remote.c (remote_load): New function.
10231 (init_remote_ops): Use it.
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10237 * common/linux-btrace.h (linux_supports_btrace): Update.
10238 * remote.c (remote_supports_btrace): Add "self" argument.
10239 * target-delegates.c: Rebuild.
10240 * target.c (target_supports_btrace): Remove.
10241 * target.h (struct target_ops) <to_supports_btrace>: Add
10242 target_ops argument.
10243 (target_supports_btrace): New define.
10245 2014-02-19 Tom Tromey <tromey@redhat.com>
10247 * record-full.c (record_full_beneath_to_resume_ops)
10248 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10249 (record_full_beneath_to_wait)
10250 (record_full_beneath_to_store_registers_ops)
10251 (record_full_beneath_to_store_registers)
10252 (record_full_beneath_to_xfer_partial_ops)
10253 (record_full_beneath_to_xfer_partial)
10254 (record_full_beneath_to_insert_breakpoint_ops)
10255 (record_full_beneath_to_insert_breakpoint)
10256 (record_full_beneath_to_remove_breakpoint_ops)
10257 (record_full_beneath_to_remove_breakpoint)
10258 (record_full_beneath_to_stopped_by_watchpoint)
10259 (record_full_beneath_to_stopped_data_address)
10260 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10261 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10262 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10263 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10264 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10265 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10266 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10267 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10268 (record_full_resume, record_full_wait_1)
10269 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10270 (record_full_store_registers, record_full_xfer_partial)
10271 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10272 (record_full_async, record_full_core_xfer_partial): Use target
10274 * target-delegates.c: Rebuild.
10275 * target.c (current_xfer_partial): Remove.
10276 (update_current_target): Do not INHERIT or de_fault
10277 to_insert_breakpoint, to_remove_breakpoint,
10278 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10279 to_is_async_p, to_async. Do not set to_xfer_partial field.
10280 (default_xfer_partial): Simplify.
10281 (current_xfer_partial): Remove.
10282 (target_wait, target_resume): Simplify.
10283 (find_default_can_async_p, find_default_is_async_p): Update.
10284 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10285 to_xfer_partial, to_stopped_by_watchpoint,
10286 to_stopped_data_address.
10287 (target_store_registers): Simplify.
10288 (forward_target_remove_breakpoint)
10289 (forward_target_insert_breakpoint): Remove.
10290 (target_remove_breakpoint, target_insert_breakpoint)
10291 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10292 * target.h (struct target_ops) <to_resume, to_wait,
10293 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10294 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10295 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10297 (forward_target_remove_breakpoint)
10298 (forward_target_insert_breakpoint): Remove.
10299 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10301 (record_btrace_insert_breakpoint): Delegate directly.
10303 2014-02-19 Tom Tromey <tromey@redhat.com>
10306 * target-delegates.c: New file.
10307 * target.c: Include target-delegates.c.
10308 (init_dummy_target): Call install_dummy_methods.
10309 (complete_target_initialization): Call install_delegators.
10310 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10311 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10312 * make-target-delegates: New file.
10314 2014-02-19 Tom Tromey <tromey@redhat.com>
10316 * record.c (find_record_target): Use find_target_at.
10317 * target.c (find_target_at): New function.
10318 * target.h (find_target_at): Declare.
10320 2014-02-19 Tom Tromey <tromey@redhat.com>
10322 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10323 Add 'ops' argument.
10324 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10326 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10327 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10329 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10331 * linux-nat.c (save_sigtrap): Update.
10332 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10333 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10334 (linux_nat_close): Update.
10335 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10337 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10339 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10340 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10341 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10342 (tmp_to_async): Add 'ops' argument.
10343 (record_full_stopped_by_watchpoint, record_full_async)
10344 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10346 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10347 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10348 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10349 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10350 (remote_is_async_p, remote_async): Add 'ops' argument.
10351 (remote_stopped_data_address): Update.
10352 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10353 * target.c (update_current_target)
10354 (find_default_can_async_p, find_default_is_async_p): Update.
10355 (init_dummy_target): Update.
10356 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10357 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10358 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10359 (target_can_async_p, target_is_async_p, target_async)
10360 (target_stopped_by_watchpoint): Update.
10362 2014-02-19 Yao Qi <yao@codesourcery.com>
10365 * gdbarch.sh: Remove startup_gdbarch.
10366 * gdbarch.c: Regenerated.
10367 * gdbarch.h: Likewise.
10369 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10371 * rl78-tdep.c (rl78_g10_register_name): New function.
10372 (rl78_return_value): Add g10 support.
10373 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10376 2014-02-17 Doug Evans <xdje42@gmail.com>
10378 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10379 (SUBDIR_GUILE_SRCS): Ditto.
10380 (scm-gsmob.o): Ditto.
10382 2014-02-17 Yao Qi <yao@codesourcery.com>
10384 * gnu-nat.c (ILL_RPC): Declare defined function.
10386 2014-02-17 Yao Qi <yao@codesourcery.com>
10388 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10389 mach_msg_type_number_t.
10390 (gnu_write_inferior): Likewise.
10392 2014-02-17 Yao Qi <yao@codesourcery.com>
10394 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10396 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10397 (inf_validate_procs, inf_signal): Likewise.
10398 (S_exception_raise_request): Likewise.
10399 (do_mach_notify_dead_name): Likewise.
10400 (steal_exc_port): Likewise.
10401 (gnu_read_inferior): Change 'copy_count''s type to
10402 mach_msg_type_number_t.
10403 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10406 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10408 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10409 flag. Adjust all users; in particular...
10410 (gnu_wait): ..., don't decrement its value in here...
10411 (gnu_create_inferior): ..., and instead set the flag in here,
10412 around the startup_inferior call, and call that one with
10413 START_INFERIOR_TRAPS_EXPECTED.
10415 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10416 (ILL_RPC): ... new macro.
10417 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10418 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10419 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10420 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10421 functions with ILL_RPC macro.
10422 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10423 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10424 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10425 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10426 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10427 (S_proc_getlogin_reply, S_proc_getsid_reply)
10428 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10429 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10430 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10431 (S_proc_getnports_reply, S_proc_is_important_reply)
10432 (S_proc_get_code_reply): New stub functions, generated with
10435 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10436 collected the type check structures.
10438 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10440 2014-02-14 Doug Evans <dje@google.com>
10442 * target.c (target_write_partial): Fix result type.
10444 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10446 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10447 the proper offsets to access fpregset_t.
10449 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10451 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10452 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10453 * h8300-tdep.c (setmachinelist): Remove global.
10454 * hppa-tdep.c (hppa_sigtramp): Remove global.
10455 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10456 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10457 * ravenscar-thread.c (update_target_observer): Remove global.
10458 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10460 2014-02-12 Tom Tromey <tromey@redhat.com>
10462 * common/rsp-low.c: Update comments.
10463 * common/rsp-low.h: Update comments.
10465 2014-02-12 Tom Tromey <tromey@redhat.com>
10467 * common/rsp-low.c (convert_ascii_to_int): Remove.
10468 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10470 2014-02-12 Tom Tromey <tromey@redhat.com>
10472 * common/rsp-low.h (unhexify): Don't declare.
10473 * common/rsp-low.c (unhexify): Remove.
10475 2014-02-12 Tom Tromey <tromey@redhat.com>
10477 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10478 * common/rsp-low.c (convert_int_to_ascii): Remove.
10480 2014-02-12 Tom Tromey <tromey@redhat.com>
10482 * common/rsp-low.h (hexify): Don't declare.
10483 * common/rsp-low.c (hexify): Remove.
10485 2014-02-12 Tom Tromey <tromey@redhat.com>
10487 * common/rsp-low.c (hexify): Never take strlen of argument.
10489 2014-02-12 Tom Tromey <tromey@redhat.com>
10491 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10492 * remote.c (extended_remote_run, remote_rcmd)
10493 (remote_download_trace_state_variable, remote_save_trace_data)
10494 (remote_set_trace_notes): Update.
10495 * tracepoint.c (encode_source_string, tfile_write_status)
10496 (tfile_write_uploaded_tsv): Update.
10498 2014-02-12 Tom Tromey <tromey@redhat.com>
10500 * tracepoint.c: Include rsp-low.h.
10501 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10502 * remote.c: Include rsp-low.h.
10503 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10504 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10505 (remote_unescape_input): Move to common/rsp-low.c.
10506 * common/rsp-low.h: New file.
10507 * common/rsp-low.c: New file.
10508 * Makefile.in (SFILES): Add common/rsp-low.c.
10509 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10510 (COMMON_OBS): Add rsp-low.o.
10511 (rsp-low.o): New target.
10513 2014-02-12 Tom Tromey <tromey@redhat.com>
10515 * utils.h: Include print-utils.h.
10516 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10517 (int_string, core_addr_to_string, core_addr_to_string_nz)
10518 (hex_string, hex_string_custom): Don't declare.
10519 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10520 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10521 (hex_string_custom, int_string, core_addr_to_string)
10522 (core_addr_to_string_nz, host_address_to_string): Move to
10523 common/print-utils.c.
10524 * common/print-utils.h: New file.
10525 * common/print-utils.c: New file
10526 * Makefile.in (SFILES): Add common/print-utils.c.
10527 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10528 (COMMON_OBS): Add print-utils.o.
10529 (print-utils.o): New target.
10531 2014-02-12 Tom Tromey <tromey@redhat.com>
10533 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10535 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10537 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10539 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10541 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10542 if a PT_IO ptrace request returns sucessfully but indicates that 0
10543 bytes were transferred.
10545 2014-02-12 Pedro Alves <palves@redhat.com>
10546 Kevin Buettner <kevinb@redhat.com>
10548 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10549 TYPE_INSTANCE_FLAG_CODE_SPACE.
10551 2014-02-12 Pedro Alves <palves@redhat.com>
10553 * h8300-tdep.c (pseudo_from_raw_register)
10554 (raw_from_pseudo_register): New functions.
10555 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10558 2014-02-12 Pedro Alves <palves@redhat.com>
10560 * h8300-tdep.c (h8300_register_sim_regno): New function.
10561 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10562 gdbarch_register_sim_regno hook.
10564 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10566 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10568 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10570 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10572 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10574 * obsd-tdep.h (obsd_init_abi): New prototype.
10575 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10576 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10577 (obsd_init_abi): New functions.
10578 * i386obsd-tdep.c: Include "obsd-tdep.h".
10579 (i386obsd_init_abi): Call obsd_init_abi.
10580 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10581 (amd64obsd_init_abi): Call obsd_init_abi.
10582 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10583 obsd-tdep.c to gdb_target_obs.
10585 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10587 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10588 double float arguments to 16-byte in the argument slots.
10590 2014-02-11 Doug Evans <xdje42@gmail.com>
10592 * configure.ac: Don't crash if pkg-config is not found and guile
10593 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10595 * configure: Regenerate.
10597 2014-02-11 Yao Qi <yao@codesourcery.com>
10599 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10600 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10601 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10602 * gnu-nat.c (gnu_xfer_memory): Likewise.
10603 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10604 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10605 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10606 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10608 2014-02-11 Yao Qi <yao@codesourcery.com>
10610 * target.h (enum target_xfer_error): Rename to ...
10611 (enum target_xfer_status): ... it. New. All users updated.
10612 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10614 (TARGET_XFER_STATUS_ERROR_P): New macro.
10615 (target_xfer_error_to_string): Remove declaration.
10616 (target_xfer_status_to_string): Declare.
10617 (target_xfer_partial_ftype): Adjust it.
10618 (struct target_ops) <to_xfer_partial>: Return
10619 target_xfer_status. Add argument xfered_len. Update
10621 * target.c (target_xfer_error_to_string): Rename to ...
10622 (target_xfer_status_to_string): ... it. New. All callers
10624 (target_read_live_memory): Likewise. Call target_xfer_partial
10625 instead of target_read.
10626 (memory_xfer_live_readonly_partial): Return
10627 target_xfer_status. Add argument xfered_len.
10628 (raw_memory_xfer_partial): Likewise.
10629 (memory_xfer_partial_1): Likewise.
10630 (memory_xfer_partial): Likewise.
10631 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10632 properly. Update debug message.
10633 (default_xfer_partial, current_xfer_partial): Likewise.
10634 (target_write_partial): Likewise.
10635 (target_read_partial): Likewise. All callers updated.
10636 (read_whatever_is_readable): Likewise.
10637 (target_write_with_progress): Likewise.
10638 (target_read_alloc_1): Likewise.
10640 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10641 * auxv.c (procfs_xfer_auxv): Likewise.
10642 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10643 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10644 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10645 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10646 * corefile.c (read_memory): Adjust.
10647 * corelow.c (core_xfer_partial): Likewise.
10648 * ctf.c (ctf_xfer_partial): Likewise.
10649 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10651 (darwin_xfer_partial): Likewise.
10652 * exec.c (section_table_xfer_memory_partial): Likewise. All
10654 (exec_xfer_partial): Likewise.
10655 * exec.h (section_table_xfer_memory_partial): Update
10657 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10659 (gnu_xfer_partial): Likewise.
10660 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10661 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10662 (ia64_hpux_xfer_solib_got): Likewise.
10663 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10664 type of 'partial_len' to ULONGEST.
10665 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10666 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10667 (linux_nat_xfer_partial): Likewise.
10668 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10669 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10670 * monitor.c (monitor_xfer_memory): Likewise.
10671 (monitor_xfer_partial): Likewise.
10672 * procfs.c (procfs_xfer_partial): Likewise.
10673 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10674 * record-full.c (record_full_xfer_partial): Likewise.
10675 (record_full_core_xfer_partial): Likewise.
10676 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10677 (gdbsim_xfer_partial): Likewise.
10678 * remote.c (remote_write_bytes_aux): Likewise. All callers
10680 (remote_write_bytes, remote_read_bytes): Likewise. All
10682 (remote_flash_erase): Likewise. All callers updated.
10683 (remote_write_qxfer): Likewise. All callers updated.
10684 (remote_read_qxfer): Likewise. All callers updated.
10685 (remote_xfer_partial): Likewise.
10686 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10687 (rs6000_xfer_shared_libraries): Likewise.
10688 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10689 (sol_thread_xfer_partial): Likewise.
10690 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10691 (sparc_xfer_partial): Likewise.
10692 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10694 (spu_xfer_partial): Likewise.
10695 * spu-multiarch.c (spu_xfer_partial): Likewise.
10696 * tracepoint.c (tfile_xfer_partial): Likewise.
10697 * windows-nat.c (windows_xfer_memory): Likewise.
10698 (windows_xfer_shared_libraries): Likewise.
10699 (windows_xfer_partial): Likewise.
10700 * valprint.c: Replace 'target_xfer_error' with
10701 'target_xfer_status' in comments.
10703 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10705 Checked in by Joel Brobecker <brobecker@adacore.com>.
10706 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10708 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10710 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10711 function parameters.
10713 2014-02-10 Will Newton <will.newton@linaro.org>
10715 * elfread.c (elf_rel_plt_read): Look for a .got section if
10716 looking up .got.plt fails.
10717 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10718 on address passed to elf_gnu_ifunc_record_cache.
10719 (elf_gnu_ifunc_resolve_addr): Likewise.
10720 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10722 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10724 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10725 (X_RETTURN): New macro.
10726 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10728 * sparc64-tdep.c (sparc64_init_abi): Hook
10729 sparc_in_function_epilogue_p.
10731 2014-02-10 Gary Benson <gbenson@redhat.com>
10733 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10734 Rename name_matcher to symbol_matcher.
10736 2014-02-10 Gary Benson <gbenson@redhat.com>
10738 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10739 Use expand_symtabs_file_matcher_ftype and
10740 expand_symtabs_symbol_matcher_ftype.
10742 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10744 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10745 (struct ada_symbol_cache): New.
10746 (ada_free_symbol_cache): Forward declare.
10747 (struct ada_pspace_data): New.
10748 (ada_pspace_data_handle): New static global.
10749 (get_ada_pspace_data, ada_pspace_data_cleanup)
10750 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10751 (cache_space, cache): Delete, now folded inside struct
10753 (ada_get_symbol_cache): New function.
10754 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10756 (_initialize_ada_language): Remove initialization of cache_space.
10757 Move call to observer_attach_inferior_exit up, grouping it
10758 with the other observer registrations inside this function.
10759 Rename command to be more general. Add call to
10760 register_program_space_data_with_cleanup.
10762 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10764 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10765 ada_new_objfile_observer.
10766 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10767 (_initialize_tasks): Update uses of ada_new_objfile_observer
10768 and ada_tasks_normal_stop_observer.
10770 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10772 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10773 returned by the 'Length attribute to integer.
10775 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10777 * ada-lang.c (_initialize_ada_language): Initialize
10778 cache_space obstack.
10780 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10782 * ada-lang.c (HASH_SIZE): New macro.
10783 (struct cache_entry): New type.
10784 (cache_space, cache): New static globals.
10785 (ada_clear_symbol_cache, find_entry): New functions.
10786 (lookup_cached_symbol, cache_symbol): Implement.
10787 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10788 (_initialize_ada_language): Attach ada_new_objfile_observer
10789 and ada_free_objfile_observer.
10791 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10793 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10794 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10795 struct block * parameter.
10796 (ada_lookup_symbol_list_worker): Constify local variable "block".
10797 Remove cast which is no longer necessary.
10799 2014-02-10 Doug Evans <xdje42@gmail.com>
10801 Add Guile as an extension language.
10802 * NEWS: Mention Guile scripting.
10803 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10804 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10805 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10806 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10807 (CLIBS): Add GUILE_LIBS.
10808 (install-guile): New rule.
10809 (guile.o): New rule.
10810 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10811 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10812 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10813 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10814 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10815 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10816 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10817 * configure.ac: New option --with-guile.
10818 * configure: Regenerate.
10819 * config.in: Regenerate.
10820 * auto-load.c: Remove #include "python/python.h". Add #include
10821 "gdb/section-scripts.h".
10822 (source_section_scripts): Handle Guile scripts.
10823 (_initialize_auto_load): Add name of Guile objfile script to
10824 scripts-directory help text.
10825 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10826 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10827 (struct breakpoint): New member scm_bp_object.
10828 * defs.h (enum command_control_type): New value guile_control.
10829 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10831 (show_user): Update comment.
10832 (_initialize_cli_cmds): Update help text for "show user". Update help
10833 text for max-user-call-depth.
10834 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10836 (multi_line_command_p): Add guile_control.
10837 (print_command_lines): Handle guile_control.
10838 (execute_control_command, recurse_read_control_structure): Ditto.
10839 (process_next_line): Recognize "guile" commands.
10840 * disasm.c (gdb_disassemble_info): Make non-static.
10841 * disasm.h: #include "dis-asm.h".
10842 (struct gdbarch): Add forward decl.
10843 (gdb_disassemble_info): Declare.
10844 * extension.c: #include "guile/guile.h".
10845 (extension_languages): Add guile.
10846 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10847 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10848 * gdbtypes.c (get_unsigned_type_max): New function.
10849 (get_signed_type_minmax): New function.
10850 * gdbtypes.h (get_unsigned_type_max): Declare.
10851 (get_signed_type_minmax): Declare.
10852 * guile/README: New file.
10853 * guile/guile-internal.h: New file.
10854 * guile/guile.c: New file.
10855 * guile/guile.h: New file.
10856 * guile/scm-arch.c: New file.
10857 * guile/scm-auto-load.c: New file.
10858 * guile/scm-block.c: New file.
10859 * guile/scm-breakpoint.c: New file.
10860 * guile/scm-disasm.c: New file.
10861 * guile/scm-exception.c: New file.
10862 * guile/scm-frame.c: New file.
10863 * guile/scm-gsmob.c: New file.
10864 * guile/scm-iterator.c: New file.
10865 * guile/scm-lazy-string.c: New file.
10866 * guile/scm-math.c: New file.
10867 * guile/scm-objfile.c: New file.
10868 * guile/scm-ports.c: New file.
10869 * guile/scm-pretty-print.c: New file.
10870 * guile/scm-safe-call.c: New file.
10871 * guile/scm-string.c: New file.
10872 * guile/scm-symbol.c: New file.
10873 * guile/scm-symtab.c: New file.
10874 * guile/scm-type.c: New file.
10875 * guile/scm-utils.c: New file.
10876 * guile/scm-value.c: New file.
10877 * guile/lib/gdb.scm: New file.
10878 * guile/lib/gdb/boot.scm: New file.
10879 * guile/lib/gdb/experimental.scm: New file.
10880 * guile/lib/gdb/init.scm: New file.
10881 * guile/lib/gdb/iterator.scm: New file.
10882 * guile/lib/gdb/printing.scm: New file.
10883 * guile/lib/gdb/types.scm: New file.
10884 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10885 (VPATH): Add $(GUILE_SRCDIR).
10886 (GUILE_DIR): New variable.
10887 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10888 (all): Add stamp-guile dependency.
10889 (stamp-guile): New rule.
10890 (clean-guile, install-guile, uninstall-guile): New rules.
10891 (install-only): Add install-guile dependency.
10892 (uninstall): Add uninstall-guile dependency.
10893 (clean): Add clean-guile dependency.
10895 2014-02-09 Doug Evans <xdje42@gmail.com>
10897 Revert this patch (which I approved, mea culpa).
10899 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10901 * Makefile.in (all-lib): Remove.
10902 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10904 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10906 Fix Python stack corruption.
10907 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10910 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10912 * Makefile.in (all-lib): Remove.
10913 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10915 2014-02-07 Doug Evans <dje@google.com>
10917 * extension-priv.h (extension_language_script_ops): Add comment.
10918 (extension_language_ops): Add comment.
10919 (active_ext_lang_state): Fix typo in comment.
10921 2014-02-07 Pedro Alves <palves@redhat.com>
10923 PR breakpoints/16292
10924 * infrun.c (handle_signal_stop) <signal arrives while stepping
10925 over a breakpoint>: Switch back to the stepping thread.
10927 2014-02-07 Yao Qi <yao@codesourcery.com>
10929 * target.c (target_xfer_partial): Return zero if LEN is zero.
10931 2014-02-07 Yao Qi <yao@codesourcery.com>
10933 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10934 (ld_so_xfer_auxv): Likewise.
10935 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10936 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10937 * corelow.c (core_xfer_partial): Likewise.
10938 * ctf.c (ctf_xfer_partial): Likewise.
10939 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10940 (darwin_xfer_partial): Likewise.
10941 * exec.c (exec_xfer_partial): Likewise.
10942 * gnu-nat.c (gnu_xfer_partial): Likewise.
10943 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10944 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10945 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10946 * linux-nat.c (linux_xfer_siginfo): Likewise.
10947 (linux_proc_xfer_spu): Likewise.
10948 * procfs.c (procfs_xfer_partial): Likewise.
10949 * record-full.c (record_full_xfer_partial): Likewise.
10950 (record_full_core_xfer_partial): Likewise.
10951 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10952 * remote.c (remote_write_qxfer): Likewise.
10953 (remote_write_qxfer, remote_read_qxfer): Likewise.
10954 (remote_xfer_partial): Likewise.
10955 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10956 (rs6000_xfer_shared_libraries): Likewise.
10957 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10958 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10959 (spu_xfer_partial): Likewise.
10960 * target.c (memory_xfer_partial_1): Likewise.
10961 * tracepoint.c (tfile_xfer_partial): Likewise.
10962 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10963 (windows_xfer_partial): Likewise.
10965 2014-02-07 Yao Qi <yao@codesourcery.com>
10967 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10969 (core_xfer_shared_libraries_aix): Likewise.
10970 * gdbarch.c, gdbarch.h: Regenerated.
10971 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10972 ULONGEST. Change 'len_avail' type to ULONGEST.
10973 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10974 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10976 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10978 2014-02-07 Yao Qi <yao@codesourcery.com>
10980 * corefile.c (memory_error): Get 'exception' from ERR and pass
10981 'exception' to throw_error.
10983 2014-02-06 Doug Evans <xdje42@gmail.com>
10985 * configure.ac (libpython checking): Remove all but python.o from
10986 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10987 * configure: Regenerate.
10989 * Makefile.in (SFILES): Add extension.c.
10990 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10991 (COMMON_OBS): Add extension.o.
10992 * extension.h: New file.
10993 * extension-priv.h: New file.
10994 * extension.c: New file.
10996 * python/python-internal.h: #include "extension.h".
10997 (gdbpy_auto_load_enabled): Declare.
10998 (gdbpy_apply_val_pretty_printer): Declare.
10999 (gdbpy_apply_frame_filter): Declare.
11000 (gdbpy_preserve_values): Declare.
11001 (gdbpy_breakpoint_cond_says_stop): Declare.
11002 (gdbpy_breakpoint_has_cond): Declare.
11003 (void source_python_script_for_objfile): Delete.
11004 * python/python.c: #include "extension-priv.h".
11005 Delete inclusion of "observer.h".
11006 (extension_language_python): Moved here and renamed from
11007 script_language_python in py-auto-load.c.
11008 Redefined to be of type extension_language_defn.
11009 (python_extension_script_ops): New global.
11010 (python_extension_ops): New global.
11011 (struct python_env): New member previous_active.
11012 (restore_python_env): Call restore_active_ext_lang.
11013 (ensure_python_env): Call set_active_ext_lang.
11014 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11016 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11018 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11020 (gdbpy_eval_from_control_command): Renamed from
11021 eval_python_from_control_command, made static. New arg extlang.
11022 (gdbpy_source_script) Renamed from source_python_script, made static.
11024 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11025 result to int. New arg extlang.
11026 (gdbpy_source_objfile_script): Renamed from
11027 source_python_script_for_objfile, made static. New arg extlang.
11028 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11029 static. New args extlang, extlang_printers. Change result type to
11031 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11032 static. New arg extlang. Rename arg printers to extlang_printers
11033 and change type to ext_lang_type_printers *.
11034 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11035 static. Replace argument arg with extlang, extlang_printers.
11036 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11037 (!HAVE_PYTHON, source_python_script): Delete.
11038 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11039 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11040 (!HAVE_PYTHON, start_type_printers): Delete.
11041 (!HAVE_PYTHON, apply_type_printers): Delete.
11042 (!HAVE_PYTHON, free_type_printers): Delete.
11043 (_initialize_python): Delete call to observer_attach_before_prompt.
11044 (finalize_python): Set/restore active extension language.
11045 (gdbpy_finish_initialization) Renamed from
11046 finish_python_initialization, made static. New arg extlang.
11047 (gdbpy_initialized): New function.
11048 * python/python.h: #include "extension.h". Delete #include
11049 "value.h", "mi/mi-cmds.h".
11050 (extension_language_python): Declare.
11051 (GDBPY_AUTO_FILE_NAME): Delete.
11052 (enum py_bt_status): Moved to extension.h and renamed to
11053 ext_lang_bt_status.
11054 (enum frame_filter_flags): Moved to extension.h.
11055 (enum py_frame_args): Moved to extension.h and renamed to
11056 ext_lang_frame_args.
11057 (finish_python_initialization): Delete.
11058 (eval_python_from_control_command): Delete.
11059 (source_python_script): Delete.
11060 (apply_val_pretty_printer): Delete.
11061 (apply_frame_filter): Delete.
11062 (preserve_python_values): Delete.
11063 (gdbpy_script_language_defn): Delete.
11064 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11065 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11067 * auto-load.c: #include "extension.h".
11068 (GDB_AUTO_FILE_NAME): Delete.
11069 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11070 (script_language_gdb): Delete, moved to extension.c and renamed to
11071 extension_language_gdb.
11072 (source_gdb_script_for_objfile): Delete.
11073 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11074 (loaded_script): Change type of language member to
11075 struct extension_language_defn *.
11076 (init_loaded_scripts_info): Initialize
11077 unsupported_script_warning_printed.
11078 (maybe_add_script): Make static. Change type of language arg to
11079 struct extension_language_defn *.
11080 (clear_section_scripts): Reset unsupported_script_warning_printed.
11081 (auto_load_objfile_script_1): Rewrite to use extension language API.
11082 (auto_load_objfile_script): Make public. Remove support-compiled-in
11083 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11084 (source_section_scripts): Rewrite to use extension language API.
11085 (load_auto_scripts_for_objfile): Rewrite to use
11086 auto_load_scripts_for_objfile.
11087 (collect_matching_scripts_data): Change type of language member to
11088 struct extension_language_defn *.
11089 (auto_load_info_scripts): Change type of language arg to
11090 struct extension_language_defn *.
11091 (unsupported_script_warning_print): New function.
11092 (script_not_found_warning_print): Make static.
11093 (_initialize_auto_load): Rewrite construction of scripts-directory
11095 * auto-load.h (struct objfile): Add forward decl.
11096 (struct script_language): Delete.
11097 (struct auto_load_pspace_info): Add forward decl.
11098 (struct extension_language_defn): Add forward decl.
11099 (maybe_add_script): Delete.
11100 (auto_load_objfile_script): Declare.
11101 (script_not_found_warning_print): Delete.
11102 (auto_load_info_scripts): Update prototype.
11103 (auto_load_gdb_scripts_enabled): Declare.
11104 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11105 auto_load_python_scripts_enabled and made public.
11106 (script_language_python): Delete, moved to python.c.
11107 (gdbpy_script_language_defn): Delete.
11108 (info_auto_load_python_scripts): Update to use
11109 extension_language_python.
11111 * breakpoint.c (condition_command): Replace call to
11112 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11113 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11114 with call to breakpoint_ext_lang_cond_says_stop.
11115 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11116 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11117 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11118 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11120 (local_setattro): Print name of extension language with existing
11123 * valprint.c (val_print, value_print): Update to call
11124 apply_ext_lang_val_pretty_printer.
11125 * cp-valprint.c (cp_print_value): Update call to
11126 apply_ext_lang_val_pretty_printer.
11127 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11128 (gdbpy_apply_val_pretty_printer): Renamed from
11129 apply_val_pretty_printer. New arg extlang.
11130 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11132 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11133 extension language API.
11134 * cli/cli-script.c (execute_control_command): Update to call
11135 eval_ext_lang_from_control_command.
11137 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11138 enum ext_lang_bt_status values. Update call to
11139 apply_ext_lang_frame_filter.
11140 (mi_cmd_stack_list_locals): Ditto.
11141 (mi_cmd_stack_list_args): Ditto.
11142 (mi_cmd_stack_list_variables): Ditto.
11143 * mi/mi-main.c: Delete #include "python/python-internal.h".
11144 Add #include "extension.h".
11145 (mi_cmd_list_features): Replace reference to python internal variable
11146 gdb_python_initialized with call to ext_lang_initialized_p.
11148 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11149 Update to use enum ext_lang_frame_args. Update to call
11150 apply_ext_lang_frame_filter.
11151 * python/py-framefilter.c (extract_sym): Update to use enum
11152 ext_lang_bt_status.
11153 (extract_value, py_print_type, py_print_value): Ditto.
11154 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11155 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11156 (py_print_frame): Ditto.
11157 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11158 New arg extlang. Update to use enum ext_lang_bt_status.
11160 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11161 finish_python_initialization. Replace with call to
11162 finish_ext_lang_initialization.
11164 * typeprint.c (do_free_global_table): Update to call
11165 free_ext_lang_type_printers.
11166 (create_global_typedef_table): Update to call
11167 start_ext_lang_type_printers.
11168 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11169 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11170 (type_print_options): Change type of global_printers from "void *"
11171 to "struct ext_lang_type_printers *".
11173 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11174 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11175 (gdbpy_preserve_values): Renamed from preserve_python_values.
11177 (!HAVE_PYTHON, preserve_python_values): Delete.
11179 * utils.c (quit_flag): Delete, moved to extension.c.
11180 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11183 * eval.c: Delete #include "python/python.h".
11184 * main.c: Delete #include "python/python.h".
11186 * defs.h: Update comment.
11188 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11192 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11194 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11197 2014-02-05 Yao Qi <yao@codesourcery.com>
11199 * remote.c (remote_pass_signals): Remove local 'buf' and use
11201 (remote_program_signals): Likewise.
11203 2014-02-05 Yao Qi <yao@codesourcery.com>
11205 * ctf.c: Include "inferior.h" and "gdbthread.h".
11206 (CTF_PID): A new macro.
11207 (ctf_open): Call inferior_appeared and add_thread_silent.
11208 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11209 (ctf_thread_alive): New function.
11210 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11212 2014-02-05 Yao Qi <yao@codesourcery.com>
11216 2013-05-24 Yao Qi <yao@codesourcery.com>
11218 * tracepoint.c (TFILE_PID): Remove.
11219 (tfile_open): Don't add thread and inferior.
11220 (tfile_close): Don't set 'inferior_ptid'. Don't call
11221 exit_inferior_silent.
11222 (tfile_thread_alive): Remove.
11223 (init_tfile_ops): Don't set field 'to_thread_alive' of
11226 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11228 * remote.c (remote_start_remote): Call remote_check_symbols even
11229 if only symbol-file (not file) has been given.
11231 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11233 * gdbarch.sh (skip_entrypoint): New callback.
11234 * gdbarch.c, gdbarch.h: Regenerate.
11235 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11236 * infrun.c (fill_in_stop_func): Likewise.
11237 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11238 (ppc_elfv2_elf_make_msymbol_special): New function.
11239 (ppc_elfv2_skip_entrypoint): Likewise.
11240 (ppc_linux_init_abi): Install them for ELFv2.
11242 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11244 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11245 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11246 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11247 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11248 structures returned in GPRs.
11250 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11252 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11253 offset to the stack parameter list for the ELFv2 ABI.
11255 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11257 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11258 set_gdbarch_convert_from_func_ptr_addr and
11259 set_gdbarch_elf_make_msymbol_special for ELFv1.
11260 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11261 function descriptors on ELFv1.
11262 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11263 set up r12 at function entry.
11265 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11267 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11268 (struct gdbarch_tdep): New member elf_abi.
11270 * rs6000-tdep.c: Include "elf/ppc64.h".
11271 (rs6000_gdbarch_init): Detect ELF ABI version.
11273 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11275 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11276 within a register pair holding a DFP 128-bit value on little-endian.
11277 (ppc64_sysv_abi_return_value_base): Likewise.
11278 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11279 (dfp_pseudo_register_write): Likewise.
11281 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11283 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11284 offset on little-endian when passing _Decimal32.
11285 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11287 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11289 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11290 of the overlapped FP register within the VSX register on little-
11292 (efpr_pseudo_register_write): Likewise.
11294 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11296 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11297 offset on little-endian when passing small structures.
11299 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11301 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11302 (struct ppc64_sysv_argpos): New data structure.
11303 (ppc64_sysv_abi_push_float): Remove.
11304 (ppc64_sysv_abi_push_val): New function.
11305 (ppc64_sysv_abi_push_integer): Likewise.
11306 (ppc64_sysv_abi_push_freg): Likewise.
11307 (ppc64_sysv_abi_push_vreg): Likewise.
11308 (ppc64_sysv_abi_push_param): Likewise.
11309 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11310 (ppc64_sysv_abi_return_value_base): New function.
11311 (ppc64_sysv_abi_return_value): Refactor to use it.
11313 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11315 * NEWS: Document new target powerpc64le-*-linux*.
11317 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11319 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11320 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11322 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11323 register set used in ELF core dumps. Add floating-point register set.
11325 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11327 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11328 dwarf2_to_gdb[] table using symbolic constants. Adjust
11329 penultimate entry from number representing the PC register
11330 to symbolic constant representing the MDR register. Add
11331 constant for the PC register to the end of the table.
11333 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11335 * bsd-kvm.c: Include <sys/param.h>
11337 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11339 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11341 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11343 * ada-lang.h (clear_ada_sym_cache): Delete.
11345 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11347 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11349 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11351 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11352 the sigreturn register save area only if the syscall is
11355 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11357 * valops.c (value_slice): Minor reformatting.
11359 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11361 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11363 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11365 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11366 New static globals.
11367 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11368 (ada_ignore_descriptive_types_p): New static global.
11369 (find_parallel_type_by_descriptive_type): Return immediately
11370 if ada_ignore_descriptive_types_p is set.
11371 (_initialize_ada_language): Register new commands "maintenance
11372 set ada", "maintenance show ada", "maintenance set ada
11373 ignore-descriptive-types" and "maintenance show ada
11374 ignore-descriptive-types".
11375 * NEWS: Add entry for new "maint ada set/show
11376 ignore-descriptive-types" commands.
11378 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11380 * record-btrace.c (record_btrace_close): Call btrace_teardown
11383 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11385 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11388 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11390 * ada-typeprint (type_is_full_subrange_of_target_type):
11392 (print_range): Add parameter bounds_prefered_p. If not set,
11393 try printing range types using the name of their base type.
11394 (print_range_type): Add parameter bounds_prefered_p.
11395 Use it in call to print_range.
11396 (print_array_type, ada_print_type): Update calls to print_range
11397 and print_range_type.
11399 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11401 * ada-typeprint.c (print_array_type, print_choices, print_range)
11402 (print_range_bound, print_dynamic_range_bound, print_range_type):
11403 Remove declaration.
11405 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11407 * ada-typeprint.c (print_range): Add missing empty line
11408 after local declaration.
11410 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11412 * ada-valprint.c (print_optional_low_bound): Get index_type's
11413 target type for as long as it is a TYPE_CODE_RANGE.
11415 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11417 * procfs.c (procfs_make_note_section): Remove assertion and
11418 associated comment.
11420 2014-01-24 Yao Qi <yao@codesourcery.com>
11422 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11423 * corelow.c (get_core_siginfo): Likewise.
11425 2014-01-24 Yao Qi <yao@codesourcery.com>
11427 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11428 ULONGEST. Don't check 'len' is negative.
11429 (remote_write_bytes): Change type of 'len' to ULONGEST.
11431 2014-01-23 Tom Tromey <tromey@redhat.com>
11434 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11435 Handle exception from frame.block.
11436 (FrameVars.fetch_frame_locals): Likewise.
11438 2014-01-23 Tom Tromey <tromey@redhat.com>
11441 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11442 on a NULL pointer. Move "goto error" to correct place.
11444 2014-01-23 Tom Tromey <tromey@redhat.com>
11447 * python/py-framefilter.c (apply_frame_filter): Call
11448 ensure_python_env after computing gdbarch.
11450 2014-01-23 Yao Qi <yao@codesourcery.com>
11452 * target.c (raw_memory_xfer_partial): Change argument type
11453 from void * to gdb_byte *.
11454 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11456 2014-01-22 Doug Evans <dje@google.com>
11458 New gdbserver option --debug-format=timestamp.
11459 * NEWS: Mention it.
11461 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11463 * syscalls/s390x-linux.xml: New file.
11464 * syscalls/s390-linux.xml: New file.
11465 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11466 (XML_SYSCALL_FILENAME_S390X): Likewise.
11467 (op_svc): New enum value for SVC opcode.
11468 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11469 (s390_linux_get_syscall_number): New function.
11470 (s390_gdbarch_init): Register '*get_syscall_number' and the
11471 syscall xml file name.
11472 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11473 "s390-linux.xml" and "s390x-linux.xml".
11474 * NEWS: Announce new feature.
11476 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11478 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11480 2014-01-22 Pedro Alves <palves@redhat.com>
11482 * xtensa-config.c: Include defs.h.
11484 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11486 * common/common-utils.h: Add "ARI:" comment beside __func__
11489 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11491 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11492 documentation a bit.
11494 2014-01-21 Roland McGrath <mcgrathr@google.com>
11496 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11497 * configure: Regenerate.
11498 * aclocal.m4: Regenerate.
11499 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11500 New substituted variables.
11501 (install-strip): New target.
11502 (INSTALL_SCRIPT): New substituted variable.
11503 (FLAGS_TO_PASS): Add it.
11504 (install-only): Use $(INSTALL_SCRIPT) rather than
11505 $(INSTALL_PROGRAM) for gcore.
11507 2014-01-20 Tom Tromey <tromey@redhat.com>
11509 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11512 2014-01-20 Tom Tromey <tromey@redhat.com>
11514 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11515 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11516 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11517 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11518 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11519 (struct cmd_list_element) <flags>: Remove.
11520 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11521 doc_allocated>: New fields.
11522 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11524 * maint.c (maintenance_do_deprecate): Update.
11525 * top.c (execute_command): Update.
11527 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11529 * xtensa-linux-nat.c: Include asm/ptrace.h.
11531 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11533 * Makefile.in (SFILES): Add d-support.c.
11534 (COMMON_OBS): Add d-support.o.
11535 * d-lang.h (d_parse_symbol): Add comment, now defined in
11537 * d-lang.c (parse_call_convention)
11538 (parse_attributes, parse_function_types)
11539 (parse_function_args, parse_type, parse_identifier)
11540 (call_convention_p, d_parse_symbol): Move functions to ...
11541 * d-support.c: ... New file.
11543 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11545 * d-lang.h (d_parse_symbol): Add declaration.
11546 * d-lang.c (extract_identifiers)
11547 (extract_type_info): Remove functions.
11548 (parse_call_convention, parse_attributes)
11549 (parse_function_types, parse_function_args)
11550 (parse_type, parse_identifier, call_convention_p)
11551 (d_parse_symbol): New functions.
11552 (d_demangle): Use d_parse_symbol to demangle D symbols.
11554 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11556 * d-lang.h (struct builtin_d_type): New data type.
11557 (builtin_d_type): Add declaration.
11558 * d-lang.c (d_language_arch_info, build_d_types)
11559 (builtin_d_type): New functions.
11560 (enum d_primitive_types): New data type.
11561 (d_language_defn): Change c_language_arch_info to
11562 d_language_arch_info.
11563 (d_type_data): New static variable.
11564 (_initialize_d_language): Initialize d_type_data.
11566 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11568 * d-lang.h (d_main_name): Add declaration.
11569 * d-lang.c (d_main_name): New function.
11570 * symtab.c (find_main_name): Add call to d_main_name.
11572 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11574 * d-lang.c (d_language_defn): Change macro_expansion_c to
11575 macro_expansion_no.
11577 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11579 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11581 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11583 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11584 gdb_exception" declaration.
11585 * remote.c (getpkt_or_notif_sane): Likewise.
11587 2014-01-17 Doug Evans <dje@google.com>
11589 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11590 function, contents of dirnames_to_char_ptr_vec_append moved here.
11591 (delim_string_to_char_ptr_vec): New function.
11592 (dirnames_to_char_ptr_vec_append): Rewrite.
11593 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11595 2014-01-17 Doug Evans <dje@google.com>
11597 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11599 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11600 #include "common-utils.h".
11601 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11602 * common/vec.h (VEC_ASSERT_PASS): Update.
11603 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11604 (MACH_CHECK_ERROR): Update.
11606 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11608 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11610 * gdbarch.h: Regenerate.
11612 2014-01-16 Tom Tromey <tromey@redhat.com>
11614 * value.c (struct value) <regnum>: Move earlier.
11616 2014-01-16 Tom Tromey <tromey@redhat.com>
11618 * remote.c (extended_remote_create_inferior): Rename from
11619 extended_remote_create_inferior_1. Add "ops" argument. Remove
11620 old implementation.
11622 2014-01-16 Pedro Alves <palves@redhat.com>
11624 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11625 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11628 2014-01-16 Doug Evans <dje@google.com>
11630 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11634 * btrace.h (btrace_thread_flag): New.
11635 (struct btrace_thread_info) <flags>: New.
11636 * record-btrace.c (record_btrace_resume_thread)
11637 (record_btrace_find_thread_to_move, btrace_step_no_history)
11638 (btrace_step_stopped, record_btrace_start_replaying)
11639 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11640 (record_btrace_find_resume_thread): New.
11641 (record_btrace_resume, record_btrace_wait): Extend.
11642 (record_btrace_can_execute_reverse): New.
11643 (record_btrace_open): Fail in non-stop mode.
11644 (record_btrace_set_replay): Split into this, ...
11645 (record_btrace_stop_replaying): ... this, ...
11646 (record_btrace_clear_histories): ... and this.
11647 (init_record_btrace_ops): Init to_can_execute_reverse.
11648 * NEWS: Announce it.
11650 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11652 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11653 (forward_target_decr_pc_after_break)
11654 (target_decr_pc_after_break): New.
11655 * target.c (forward_target_decr_pc_after_break)
11656 (target_decr_pc_after_break): New.
11657 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11658 instead of gdbarch_decr_pc_after_break.
11659 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11660 instead of gdbarch_decr_pc_after_break.
11661 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11662 instead of gdbarch_decr_pc_after_break.
11663 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11664 instead of gdbarch_decr_pc_after_break.
11665 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11666 instead of gdbarch_decr_pc_after_break.
11667 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11668 instead of gdbarch_decr_pc_after_break.
11670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11672 * btrace.c: Include regcache.h.
11673 (btrace_add_pc): New.
11674 (btrace_enable): Call btrace_add_pc.
11675 (btrace_is_empty): New.
11676 * btrace.h (btrace_is_empty): New.
11677 * record-btrace.c (require_btrace, record_btrace_info): Call
11680 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11682 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11683 Support delta reads.
11684 (linux_disable_btrace): Change return type.
11685 * common/linux-btrace.h (linux_read_btrace): Change parameters
11686 and return type to allow error reporting. Update users.
11687 (linux_disable_btrace): Change return type. Update users.
11688 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11690 (btrace_error): New.
11691 (btrace_block) <begin>: Comment on BEGIN == 0.
11692 * btrace.c (btrace_compute_ftrace): Start from the end of
11694 (btrace_stitch_trace, btrace_clear_history): New.
11695 (btrace_fetch): Read delta trace, return if replaying.
11696 (btrace_clear): Move clear history code to btrace_clear_history.
11697 (parse_xml_btrace): Throw an error if parsing failed.
11698 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11699 and return type to allow error reporting.
11700 (target_read_btrace): Change parameters and return type to allow
11702 * target.c (target_read_btrace): Update.
11703 * remote.c (remote_read_btrace): Support delta reads. Pass
11705 * NEWS: Announce it.
11707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11709 * record.h (record_btrace_frame_unwind)
11710 (record_btrace_tailcall_frame_unwind): New declarations.
11711 * dwarf2-frame: Include record.h
11712 (dwarf2_frame_cfa): Throw an error for btrace frames.
11713 * record-btrace.c: Include hashtab.h.
11714 (btrace_get_bfun_name): New.
11715 (btrace_call_history): Call btrace_get_bfun_name.
11716 (struct btrace_frame_cache): New.
11718 (bfcache_hash, bfcache_eq, bfcache_new): New.
11719 (btrace_get_frame_function): New.
11720 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11721 (record_btrace_frame_this_id): Compute own id.
11722 (record_btrace_frame_prev_register): Provide PC, throw_error
11723 for all other registers.
11724 (record_btrace_frame_sniffer): Detect btrace frames.
11725 (record_btrace_tailcall_frame_sniffer): New.
11726 (record_btrace_frame_dealloc_cache): New.
11727 (record_btrace_frame_unwind): Add new functions.
11728 (record_btrace_tailcall_frame_unwind): New.
11729 (_initialize_record_btrace): Allocate cache.
11730 * btrace.c (btrace_clear): Call reinit_frame_cache.
11731 * NEWS: Announce it.
11733 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11735 * record-btrace.c (record_btrace_set_replay)
11736 (record_btrace_goto_begin, record_btrace_goto_end)
11737 (record_btrace_goto): New.
11738 (init_record_btrace_ops): Initialize them.
11739 * NEWS: Announce it.
11741 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11743 * record-btrace.c (record_btrace_find_new_threads)
11744 (record_btrace_thread_alive): New.
11745 (init_record_btrace_ops): Initialize to_find_new_threads and
11748 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11750 * record-btrace.c (record_btrace_resume): New.
11751 (record_btrace_wait): New.
11752 (init_record_btrace_ops): Initialize to_wait and to_resume.
11754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11756 * record-btrace.c (record_btrace_xfer_partial)
11757 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11758 (record_btrace_allow_memory_access): New.
11759 (init_record_btrace_ops): Initialize new methods.
11760 * target.c (raw_memory_xfer_partial): Bail out if target reports
11761 that this memory is not available.
11763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11765 * target.h (target_ops) <to_insert_breakpoint>
11766 <to_remove_breakpoint>: Add target_ops parameter.
11767 (forward_target_insert_breakpoint): New.
11768 (forward_target_remove_breakpoint): New.
11769 (memory_remove_breakpoint, memory_insert_breakpoint):
11770 Add target_ops parameter.
11771 * target.c (target_insert_breakpoint): Split into this and ...
11772 (forward_target_insert_breakpoint): ... this.
11773 (target_remove_breakpoint): Split into this and ...
11774 (forward_target_remove_breakpoint): ... this.
11775 (debug_to_insert_breakpoint): Add target_ops parameter.
11776 Call forward_target_insert_breakpoint.
11777 (debug_to_remove_breakpoint): Add target_ops parameter.
11778 Call forward_target_remove_breakpoint.
11779 (update_current_target): Do not inherit or default to_insert_breakpoint
11780 and to_remove_breakpoint.
11781 * corelow.c (ignore): Add target_ops parameter.
11782 * exec.c (ignore): Add target_ops parameter.
11783 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11784 Add target_ops parameter.
11785 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11786 Add target_ops parameter.
11787 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11788 Add target_ops parameter.
11789 * record-full.c (record_full_beneath_to_insert_breakpoint)
11790 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11791 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11792 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11793 (record_full_core_remove_breakpoint): Add target_ops parameter.
11795 (record_full_beneath_to_insert_breakpoint_ops)
11796 (record_full_beneath_to_remove_breakpoint_ops)
11797 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11798 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11799 tmp_to_remove_breakpoint_ops,
11800 record_full_beneath_to_insert_breakpoint_ops, and
11801 record_full_beneath_to_remove_breakpoint_ops.
11802 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11803 (m32r_remove_breakpoint): Add target_ops parameter.
11804 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11805 Add target_ops parameter.
11806 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11807 Add target_ops parameter.
11809 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11810 Markus Metzger <markus.t.metzger@intel.com>
11812 * record-btrace.c: Include frame-unwind.h.
11813 (record_btrace_frame_unwind_stop_reason)
11814 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11815 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11817 (init_record_btrace_ops): Install it.
11819 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11821 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11824 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11826 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11829 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11831 * frame-unwind.c: Include target.h.
11832 (frame_unwind_try_unwinder): New function with code from ...
11833 (frame_unwind_find_by_frame): ... here. New variable
11834 unwinder_from_target, call also target_get_unwinder)
11835 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11836 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11837 * target.h (struct target_ops): New fields to_get_unwinder and
11838 to_get_tailcall_unwinder.
11839 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11841 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11843 * record-btrace.c (record_btrace_fetch_registers)
11844 (record_btrace_store_registers)
11845 (record_btrace_to_prepare_to_store): New.
11846 (init_record_btrace_ops): Add the above.
11848 2014-01-16 Tom Tromey <tromey@redhat.com>
11850 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11851 * target.h (struct target_ops) <to_prepare_to_store>: Add
11853 (target_prepare_to_store): Add argument.
11854 * target.c (debug_to_prepare_to_store): Add argument.
11855 (update_current_target): Update.
11856 * remote.c (remote_prepare_to_store): Add 'self' argument.
11857 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11858 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11859 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11860 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11862 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11863 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11864 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11865 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11866 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11870 * btrace.h (replay) <replay>: New.
11871 (btrace_is_replaying): New.
11872 * btrace.c (btrace_clear): Free replay iterator.
11873 (btrace_is_replaying): New.
11874 * record-btrace.c (record_btrace_is_replaying): New.
11875 (record_btrace_info): Print insn number if replaying.
11876 (record_btrace_insn_history): Start at replay position.
11877 (record_btrace_call_history): Start at replay position.
11878 (init_record_btrace_ops): Init to_record_is_replaying.
11880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11882 * record-btrace.c (record_btrace_insn_history_range): Include
11884 (record_btrace_insn_history_from): Adjust range.
11885 (record_btrace_call_history_range): Include
11887 (record_btrace_call_history_from): Adjust range.
11888 * NEWS: Announce changes.
11890 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11892 * record.h (enum record_print_flag)
11893 <record_print_indent_calls>: New.
11894 * record.c (get_call_history_modifiers): Recognize /c modifier.
11895 (_initialize_record): Document /c modifier.
11896 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11897 Reorder fields. Optionally indent the function name. Update
11899 * NEWS: Announce changes.
11901 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11903 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11907 * btrace.c (ftrace_new_function): Start counting at one.
11908 * record-btrace.c (record_btrace_info): Adjust number of calls
11910 * NEWS: Announce it.
11912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11914 * record-btrace.c (btrace_call_history_insn_range): Print
11915 insn range as [begin, end].
11917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11919 * btrace.h (struct btrace_func_link): New.
11920 (enum btrace_function_flag): New.
11921 (struct btrace_inst): Rename to ...
11922 (struct btrace_insn): ...this. Update all users.
11923 (struct btrace_func) <ibegin, iend>: Remove.
11924 (struct btrace_func_link): New.
11925 (struct btrace_func): Rename to ...
11926 (struct btrace_function): ...this. Update all users.
11927 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11928 (number, level, flags>: New.
11929 (struct btrace_insn_iterator): Rename to ...
11930 (struct btrace_insn_history): ...this.
11932 (struct btrace_insn_iterator, btrace_call_iterator): New.
11933 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11934 (struct btrace_target_info) <begin, end, level>
11935 <insn_history, call_history>: New.
11936 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11937 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11938 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11939 (btrace_call_number, btrace_call_begin, btrace_call_end)
11940 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11941 (btrace_find_function_by_number, btrace_set_insn_history)
11942 (btrace_set_call_history): New.
11943 * btrace.c (btrace_init_insn_iterator)
11944 (btrace_init_func_iterator, compute_itrace): Remove.
11945 (ftrace_print_function_name, ftrace_print_filename)
11946 (ftrace_skip_file): Change
11947 parameter to const.
11948 (ftrace_init_func): Remove.
11949 (ftrace_debug): Use new btrace_function fields.
11950 (ftrace_function_switched): Also consider gaining and
11951 losing symbol information).
11952 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11953 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11954 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11956 (ftrace_new_function): Move. Remove debug print.
11957 (ftrace_update_lines, ftrace_update_insns): New.
11958 (ftrace_update_function): Check for call, ret, and jump.
11959 (compute_ftrace): Renamed to ...
11960 (btrace_compute_ftrace): ...this. Rewritten to compute call
11962 (btrace_fetch, btrace_clear): Updated.
11963 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11964 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11965 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11966 (btrace_call_number, btrace_call_begin, btrace_call_end)
11967 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11968 (btrace_find_function_by_number, btrace_set_insn_history)
11969 (btrace_set_call_history): New.
11970 * record-btrace.c (require_btrace): Use new btrace thread
11972 (record_btrace_info, btrace_insn_history)
11973 (record_btrace_insn_history, record_btrace_insn_history_range):
11974 Use new btrace thread info fields and new iterator.
11975 (btrace_func_history_src_line): Rename to ...
11976 (btrace_call_history_src_line): ...this. Use new btrace
11977 thread info fields.
11978 (btrace_func_history): Rename to ...
11979 (btrace_call_history): ...this. Use new btrace thread info
11980 fields and new iterator.
11981 (record_btrace_call_history, record_btrace_call_history_range):
11982 Use new btrace thread info fields and new iterator.
11984 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11986 * frame.h (frame_id_build_unavailable_stack_special): New.
11987 * frame.c (frame_id_build_unavailable_stack_special): New.
11989 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11991 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11992 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11993 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11995 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11996 (i386_insn_is_jump, i386_jmp_p): New.
11997 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11998 insn_is_jump to gdbarch.
11999 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12000 * gdbarch.h: Regenerated.
12001 * gdbarch.c: Regenerated.
12002 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12003 (default_insn_is_jump): New.
12004 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12005 (default_insn_is_jump): New.
12007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12009 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12011 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12012 (btrace_read_type) <btrace_read_new>: Change to ...
12013 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12017 * common/linux-btrace.c (linux_read_btrace): Free trace from
12018 previous iteration.
12020 2014-01-15 Doug Evans <dje@google.com>
12022 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12025 2014-01-15 Tom Tromey <tromey@redhat.com>
12027 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12028 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12029 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12030 (set_objfile_main_name): New function.
12031 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12032 language_of_main>: New fields.
12033 (set_objfile_main_name): Declare.
12034 * symtab.c (find_main_name): Loop over objfiles to find the main
12036 (set_main_name): Now static.
12037 (get_main_info): Add comment.
12038 * symtab.h (set_main_name): Don't declare.
12040 2014-01-15 Tom Tromey <tromey@redhat.com>
12042 * symtab.c (main_progspace_key): New global.
12043 (struct main_info): New.
12044 (name_of_main, language_of_main): Remove.
12045 (get_main_info, main_info_cleanup): New function.
12046 (set_main_name, main_name, main_language): Use get_main_info.
12047 (_initialize_symtab): Initialize main_progspace_key.
12049 2014-01-15 Tom Tromey <tromey@redhat.com>
12051 * dbxread.c (process_one_symbol): Update.
12052 * dwarf2read.c (read_partial_die): Update.
12053 * symfile.c (set_initial_language): Call main_language.
12054 * symtab.c (language_of_main): Now static.
12055 (set_main_name): Add 'lang' parameter.
12056 (find_main_name): Update.
12057 (main_language): New function.
12058 (symtab_observer_executable_changed): Update.
12059 * symtab.h (set_main_name): Update.
12060 (language_of_main): Remove.
12061 (main_language): Declare.
12063 2014-01-15 Tom Tromey <tromey@redhat.com>
12065 * symfile.c (init_entry_point_info): Use new "initialized" field.
12067 * objfiles.h (struct entry_point) <initialized>: New field.
12068 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12069 (struct objfile) <ei>: ...here. Remove.
12070 * objfiles.c (entry_point_address_query): Update.
12072 2014-01-15 Tom Tromey <tromey@redhat.com>
12074 * objfiles.c (entry_point_address_query): Relocate entry point
12076 (objfile_relocate1): Do not relocate entry point address.
12077 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12078 <the_bfd_section_index>: New field.
12079 * symfile.c (init_entry_point_info): Find the entry point's
12082 2014-01-15 Tom Tromey <tromey@redhat.com>
12084 * solib-frv.c (enable_break): Use entry_point_address_query.
12086 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12088 * NEWS: Add note on improved process record-replay on
12089 arm*-linux* targets.
12091 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12093 * arm-tdep.c (enum arm_record_result): New enum.
12094 (arm_record_unsupported_insn): New function.
12095 (arm_record_coproc_data_proc): Removed.
12096 (thumb2_record_ld_st_multiple): New function.
12097 (thumb2_record_ld_st_dual_ex_tbb): New function.
12098 (thumb2_record_data_proc_sreg_mimm): New function.
12099 (thumb2_record_ps_dest_generic): New function.
12100 (thumb2_record_branch_misc_cntrl): New function.
12101 (thumb2_record_str_single_data): New function.
12102 (thumb2_record_ld_mem_hints): New function.
12103 (thumb2_record_ld_word): New function.
12104 (thumb2_record_lmul_lmla_div): New function.
12105 (thumb2_record_decode_insn_handler): New function.
12106 (decode_insn): Add thumb32 instruction handlers.
12108 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12110 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12111 (struct arm_linux_record_tdep): Declare.
12112 (arm_canonicalize_syscall): New function.
12113 (arm_all_but_pc_registers_record): New function.
12114 (arm_linux_syscall_record): New function.
12115 (arm_linux_init_abi): Add syscall recording constructs.
12116 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12117 decoding. (arm_record_coproc_data_proc): Update arm syscall
12119 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12120 <arm_syscall_record>: New field.
12121 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12124 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12126 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12127 register for push instruction recording.
12129 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12131 * arm-tdep.c (thumb_record_misc): Update to correct logical
12132 error while recording ldm, ldmia and pop instructions.
12134 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12136 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12138 2014-01-15 Pedro Alves <palves@redhat.com>
12140 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12141 (go32_resume, go32_fetch_registers, store_register)
12142 (go32_store_registers, go32_prepare_to_store)
12143 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12144 (go32_create_inferior, go32_can_run, go32_terminal_init)
12145 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12148 2014-01-15 Tom Tromey <tromey@redhat.com>
12150 * target.h (async_callback_ftype): New typedef.
12151 (struct target_ops) <to_async>: Use it.
12153 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12155 * python/py-value.c (get_field_type): Remove unnecessary curly
12156 braces for single-statement if block.
12158 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12160 * python/py-type.c (convert_field): Add missing empty line
12161 after declarations.
12163 2014-01-14 Doug Evans <dje@google.com>
12165 * symfile.h (expand_symtabs_matching): Renamed from
12166 expand_partial_symbol_names. Update prototype.
12167 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12168 * symfile.c (expand_symtabs_matching): Renamed from
12169 expand_partial_symbol_names. New args file_matcher, kind.
12170 Rename arg fun to symbol_matcher.
12171 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12172 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12173 ada_expand_partial_symbol_name.
12174 (ada_make_symbol_completion_list): Update to call
12175 expand_symtabs_matching.
12176 (ada_add_global_exceptions): Call expand_symtabs_matching.
12177 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12178 call map_symbol_filenames.
12179 * symtab.c (sources_info): Update to call map_symbol_filenames.
12180 (search_symbols): Call expand_symtabs_matching.
12181 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12182 (default_make_symbol_completion_list_break_on): Update to call
12183 expand_symtabs_matching.
12184 (make_source_files_completion_list): Update to call
12185 map_symbol_filenames.
12187 2014-01-14 Doug Evans <dje@google.com>
12189 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12190 (expand_symtabs_symbol_matcher_ftype): New typedef.
12191 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12192 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12193 * symfile.c (expand_partial_symbol_names): Update to use
12194 expand_symtabs_symbol_matcher_ftype.
12195 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12196 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12197 Arg name_matcher renamed to symbol_matcher.
12198 * psymtab.c (recursively_search_psymtabs): Update to use
12199 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12201 (expand_symtabs_matching_via_partial): Update to use
12202 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12203 Arg name_matcher renamed to symbol_matcher.
12205 2014-01-14 Doug Evans <dje@google.com>
12207 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12208 (map_partial_symbol_filenames): Ditto.
12209 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12210 (map_partial_symbol_filenames): Ditto.
12211 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12212 (map_partial_symbol_filenames): Ditto.
12213 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12214 (map_partial_symbol_filenames): Ditto.
12215 * symtab.c: Delete #include "psymtab.h".
12217 2014-01-14 Pedro Alves <palves@redhat.com>
12218 Tom Tromey <tromey@redhat.com>
12220 * infrun.c (use_displaced_stepping): Use find_record_target
12221 instead of RECORD_IS_USED.
12222 (adjust_pc_after_break): Use record_full_is_used instead of
12224 * record-btrace.c (record_btrace_open): Call record_preopen
12225 instead of checking RECORD_IS_USED.
12226 * record-full.c (record_full_shortname)
12227 (record_full_core_shortname): New globals.
12228 (record_full_is_used): New function.
12229 (find_full_open): Call record_preopen instead of checking
12231 (init_record_full_ops): Set the target's shortname to
12232 record_full_shortname.
12233 (init_record_full_core_ops): Set the target's shortname to
12234 record_full_core_shortname.
12235 * record-full.h (record_full_is_used): Declare.
12236 * record.c (find_record_target): Make extern.
12237 (record_preopen): New function.
12238 * record.h (RECORD_IS_USED): Delete macro.
12239 (find_record_target, record_preopen): Declare functions.
12241 2014-01-14 Yao Qi <yao@codesourcery.com>
12243 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12244 'len''s type to ULONGEST.
12245 (core_xfer_shared_libraries_aix): Likewise.
12246 * gdbarch.c, gdbarch.h: Regenerated.
12247 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12248 Change type of 'len' to ULONGEST.
12249 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12250 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12252 2014-01-14 Yao Qi <yao@codesourcery.com>
12254 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12255 type of 'len' to ULONGEST.
12256 (linux_xfer_osdata_processgroups): Likewise.
12257 (linux_xfer_osdata_threads): Likewise.
12258 (linux_xfer_osdata_fds): Likewise.
12259 (linux_xfer_osdata_isockets): Likewise.
12260 (linux_xfer_osdata_shm): Likewise.
12261 (linux_xfer_osdata_sem): Likewise.
12262 (linux_xfer_osdata_msg): Likewise.
12263 (linux_common_xfer_osdata): Likewise.
12264 (struct osdata_type) <getter>: Likewise.
12265 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12268 2014-01-14 Yao Qi <yao@codesourcery.com>
12270 * target.h (target_xfer_partial_ftype): Update.
12271 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12273 * aix-thread.c (aix_thread_xfer_partial): Change type of
12274 argument 'len' to ULONGEST.
12275 * auxv.c (procfs_xfer_auxv): Likewise.
12276 (ld_so_xfer_auxv): Likewise.
12277 (memory_xfer_auxv): Likewise.
12278 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12279 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12280 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12281 * corelow.c (core_xfer_partial): Likewise.
12282 * ctf.c (ctf_xfer_partial): Likewise.
12283 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12285 (darwin_read_dyld_info): Likewise.
12286 (darwin_xfer_partial): Likewise.
12287 * exec.c (section_table_xfer_memory_partial): Likewise.
12288 (exec_xfer_partial): Likewise.
12289 * exec.h (section_table_xfer_memory_partial): Update
12291 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12292 instead of plongest.
12293 (gnu_xfer_partial): Likewise.
12294 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12295 (ia64_hpux_xfer_solib_got): Likewise.
12296 (ia64_hpux_xfer_partial): Likewise.
12297 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12298 * inf-ptrace.c (inf_ptrace_xfer_partial):
12299 * inf-ttrace.c (inf_ttrace_xfer_partial):
12300 * linux-nat.c (linux_xfer_siginfo): Likewise.
12301 (linux_nat_xfer_partial): Likewise.
12302 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12303 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12304 * monitor.c (monitor_xfer_memory): Likewise.
12305 (monitor_xfer_partial): Likewise.
12306 * procfs.c (procfs_xfer_partial): Likewise.
12307 * record-full.c (record_full_xfer_partial): Likewise.
12308 (record_full_core_xfer_partial): Likewise.
12309 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12310 instead of plongest.
12311 (gdbsim_xfer_partial): Likewise.
12312 * remote.c (remote_xfer_partial): Likewise.
12313 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12314 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12316 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12317 (rs6000_xfer_shared_libraries): Likewise.
12318 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12319 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12320 (sparc_xfer_partial): Likewise.
12321 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12322 (spu_xfer_partial): Likewise.
12323 * spu-multiarch.c (spu_xfer_partial): Likewise.
12324 * target.c (target_read_live_memory): Likewise.
12325 (memory_xfer_live_readonly_partial): Likewise.
12326 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12327 (target_xfer_partial, default_xfer_partial): Likewise.
12328 (current_xfer_partial): Likewise.
12329 * tracepoint.c (tfile_xfer_partial): Likewise.
12330 * windows-nat.c (windows_xfer_memory): Likewise. Call
12331 pulongest instead of plongest.
12332 (windows_xfer_partial): Likewise.
12333 (windows_xfer_shared_libraries): Likewise.
12335 2014-01-14 Yao Qi <yao@codesourcery.com>
12337 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12338 target_xfer_partial_ftype.
12340 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12344 * valops.c (value_struct_elt_bitpos): New function
12345 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12346 object to 'None' if the field name is an empty string ("").
12347 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12348 attribute to look for a field when 'name' is 'None'.
12349 (get_field_type): New function
12351 2014-01-13 Doug Evans <dje@google.com>
12354 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12355 (try_open_dwop_file): Ditto.
12356 * gdb_bfd.c: #include "vec.h".
12357 (bfdp): New typedef.
12358 (struct gdb_bfd_data): New member included_bfds.
12359 (gdb_bfd_unref): Unref all included bfds.
12360 (gdb_bfd_record_inclusion): New function.
12361 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12363 2014-01-13 Tom Tromey <tromey@redhat.com>
12365 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12367 2014-01-13 Tom Tromey <tromey@redhat.com>
12369 * defs.h (use_windows): Remove.
12370 * gdb.c (main): Update.
12371 * main.c (captured_main, gdb_main): Update.
12372 * main.h (struct captured_main_args) <use_windows>: Remove.
12373 * top.c (use_windows): Remove.
12375 2014-01-13 Tom Tromey <tromey@redhat.com>
12377 * defs.h (deprecated_flush_hook): Remove.
12379 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12382 * linux-thread-db.c (try_thread_db_load): Add parameter
12383 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12384 (try_thread_db_load_from_pdir_1): Move it there from here.
12385 (try_thread_db_load_from_sdir): Update caller.
12386 (try_thread_db_load_from_dir): Move it there from here.
12388 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12390 * regformats/regdat.sh: Always rewrite the register file.
12392 2014-01-13 Pedro Alves <palves@redhat.com>
12394 * Makefile.in (CHECK_HEADERS): New variable.
12395 (check-headers:): New rule.
12397 2014-01-13 Tom Tromey <tromey@redhat.com>
12399 * cli/cli-setshow.c (do_set_command): Update.
12400 * defs.h (deprecated_set_hook): Remove.
12401 * top.c (deprecated_set_hook): Remove.
12403 2014-01-13 Pedro Alves <palves@redhat.com>
12405 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12406 the tracepoint if the PC is a pseudo-register.
12408 2014-01-13 Tom Tromey <tromey@redhat.com>
12410 * defs.h (XCALLOC): Remove.
12411 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12412 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12413 * dwarf2loc.c (allocate_piece_closure): Likewise.
12414 * elfread.c (elf_symfile_segments): Likewise.
12415 (elf_symfile_segments): Likewise.
12416 * gdbtypes.c (copy_type_recursive): Likewise.
12417 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12418 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12419 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12421 * mt-tdep.c (mt_gdbarch_init): Likewise.
12422 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12424 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12425 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12426 * registry.c (registry_alloc_data): Likewise.
12427 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12428 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12429 * serial.c (serial_fdopen_ops): Likewise.
12430 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12432 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12433 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12436 2014-01-13 Tom Tromey <tromey@redhat.com>
12438 * defs.h (XMALLOC): Remove.
12439 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12440 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12441 * cli-out.c (struct ui_out *): Likewise.
12442 * cli/cli-dump.c (add_dump_command): Likewise.
12443 (add_dump_command): Likewise.
12444 * complaints.c (get_complaints): Likewise.
12445 (find_complaint): Likewise.
12446 * dwarf2-frame.c (execute_cfa_program): Likewise.
12447 * dwarf2read.c (abbrev_table_read_table): Likewise.
12448 * gdbarch.sh: Likewise.
12449 * gdbarch.c: Rebuild.
12450 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12451 * interps.c (interp_new): Likewise.
12452 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12453 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12454 * mi/mi-console.c (mi_console_file_new): Likewise.
12455 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12456 * mi/mi-out.c (mi_out_new): Likewise.
12457 * mi/mi-parse.c (mi_parse): Likewise.
12458 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12459 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12460 * observer.c (xalloc_observer_list_node): Likewise.
12461 * regcache.c (regcache_xmalloc_1): Likewise.
12462 * reggroups.c (reggroup_new): Likewise.
12463 (_initialize_reggroup): Likewise.
12464 * registry.c (register_data_with_cleanup): Likewise.
12465 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12466 * ser-base.c (serial_ttystate): Likewise.
12467 * ser-mingw.c (make_pipe_state): Likewise.
12468 * ser-pipe.c (pipe_open): Likewise.
12469 * serial.c (serial_open): Likewise.
12470 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12471 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12472 (tui_alloc_win_info): Likewise.
12473 (tui_add_content_elements): Likewise.
12474 * tui/tui-file.c (tui_file_new): Likewise.
12475 * tui/tui-out.c (tui_out_new): Likewise.
12476 * ui-file.c (mem_file_new): Likewise.
12477 * ui-out.c (push_level): Likewise.
12478 (make_cleanup_ui_out_end): Likewise.
12479 (append_header_to_list): Likewise.
12480 (ui_out_new): Likewise.
12481 * user-regs.c (user_reg_add_builtin): Likewise.
12483 2014-01-13 Tom Tromey <tromey@redhat.com>
12485 * defs.h (XZALLOC): Remove.
12486 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12487 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12488 (get_ada_tasks_inferior_data): Likewise.
12489 * auto-load.c (get_auto_load_pspace_data): Likewise.
12490 * auxv.c (get_auxv_inferior_data): Likewise.
12491 * bfd-target.c (target_bfd_reopen): Likewise.
12492 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12493 (deprecated_insert_raw_breakpoint): Likewise.
12494 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12495 * corelow.c (core_open): Likewise.
12496 * darwin-nat.c (darwin_check_new_threads): Likewise.
12497 (darwin_attach_pid): Likewise.
12498 * dummy-frame.c (dummy_frame_push): Likewise.
12499 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12500 * dwarf2loc.c (allocate_piece_closure): Likewise.
12501 * elfread.c (elf_symfile_segments): Likewise.
12502 * eval.c (ptrmath_type_p): Likewise.
12503 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12504 * gdbtypes.c (alloc_type_arch): Likewise.
12505 (alloc_type_instance): Likewise.
12506 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12507 * inf-child.c (inf_child_can_use_agent): Likewise.
12508 * inflow.c (get_inflow_inferior_data): Likewise.
12509 * infrun.c (save_infcall_suspend_state): Likewise.
12510 * jit.c (jit_reader_load): Likewise.
12511 (get_jit_objfile_data): Likewise.
12512 (get_jit_program_space_data): Likewise.
12513 (jit_object_open_impl): Likewise.
12514 (jit_symtab_open_impl): Likewise.
12515 (jit_block_open_impl): Likewise.
12516 (jit_frame_sniffer): Likewise.
12517 * linux-fork.c (add_fork): Likewise.
12518 * maint.c (make_command_stats_cleanup): Likewise.
12519 * objfiles.c (get_objfile_pspace_data): Likewise.
12520 * opencl-lang.c (struct lval_closure): Likewise.
12521 * osdata.c (osdata_start_osdata): Likewise.
12522 * progspace.c (new_address_space): Likewise.
12523 (add_program_space): Likewise.
12524 * remote-sim.c (get_sim_inferior_data): Likewise.
12525 * sh-tdep.c (sh_gdbarch_init): Likewise.
12526 * skip.c (Ignore): Likewise.
12527 (skip_delete_command): Likewise.
12528 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12529 (library_list_start_library): Likewise.
12530 (solib_aix_current_sos): Likewise.
12531 * solib-darwin.c (get_darwin_info): Likewise.
12532 (darwin_current_sos): Likewise.
12533 * solib-dsbt.c (get_dsbt_info): Likewise.
12534 * solib-ia64-hpux.c (new_so_list): Likewise.
12535 (ia64_hpux_get_solib_linkage_addr): Likewise.
12536 * solib-spu.c (append_ocl_sos): Likewise.
12537 (spu_current_sos): Likewise.
12538 * solib-svr4.c (get_svr4_info): Likewise.
12539 (svr4_keep_data_in_core): Likewise.
12540 (library_list_start_library): Likewise.
12541 (svr4_default_sos): Likewise.
12542 (svr4_read_so_list): Likewise.
12543 * solib-target.c (library_list_start_library): Likewise.
12544 (solib_target_current_sos): Likewise.
12545 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12546 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12547 * symfile.c (default_symfile_segments): Likewise.
12548 * target-descriptions.c (tdesc_data_init): Likewise.
12549 (tdesc_create_reg): Likewise.
12550 (struct tdesc_type *): Likewise.
12551 (tdesc_create_vector): Likewise.
12552 (tdesc_set_struct_size): Likewise.
12553 (struct tdesc_type *): Likewise.
12554 (tdesc_free_feature): Likewise.
12555 (tdesc_create_feature): Likewise.
12556 * windows-nat.c (windows_add_thread): Likewise.
12557 (windows_make_so): Likewise.
12558 * xml-support.c (gdb_xml_body_text): Likewise.
12559 (gdb_xml_create_parser_and_cleanup): Likewise.
12560 (xml_process_xincludes): Likewise.
12561 * xml-syscall.c (allocate_syscalls_info): Likewise.
12562 (syscall_create_syscall_desc): Likewise.
12564 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12566 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12567 function, with code from i386_stap_parse_special_token.
12568 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12569 (i386_stap_parse_special_token): Move code to the two functions
12570 above; simplify it.
12572 2014-01-09 Pedro Alves <palves@redhat.com>
12573 Hui Zhu <hui@codesourcery.com>
12576 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12577 bp_err_string. Don't mark the location shlib_disabled if the
12578 error thrown wasn't a generic or memory error. Catch errors
12579 thrown while inserting breakpoints in overlayed code. Output
12580 error message of software breakpoints.
12581 * remote.c (remote_insert_breakpoint): If this breakpoint has
12582 target-side commands but this stub doesn't support Z0 packets,
12583 throw NOT_SUPPORTED_ERROR error.
12584 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12585 * target.h (target_insert_breakpoint): Extend comment.
12586 (target_insert_hw_breakpoint): Add comment.
12588 2014-01-08 Pedro Alves <palves@redhat.com>
12590 * remote.c (remote_add_thread): Add threads silently if starting
12592 (remote_notice_new_inferior): If in all-stop, and starting up,
12593 don't call notice_new_inferior.
12594 (get_current_thread): New function, factored out from ...
12595 (add_current_inferior_and_thread): ... this. Adjust.
12596 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12597 found any thread, then select the remote's current thread as GDB's
12598 current thread too.
12600 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12602 * NEWS: Create a new section for the next release branch.
12603 Rename the section of the current branch, now that it has
12606 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12608 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12609 * version.in: Bump version to 7.7.50.DATE-cvs.
12611 2014-01-08 Yao Qi <yao@codesourcery.com>
12613 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12614 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12615 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12617 2014-01-08 Yao Qi <yao@codesourcery.com>
12619 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12620 return value of bfd_get_filename to symbol_file_add_from_bfd.
12622 2014-01-08 Pierre Muller <muller@sourceware.org>
12625 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12626 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12627 to prim_record_mininal_symbol_and_info.
12628 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12629 in call to prim_record_minimal_symbol_and_info.
12630 (read_pe_exported_syms): Set index field of section_data.
12632 2014-01-07 Andrew Pinski <apinski@cavium.com>
12634 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12635 * features/aarch64.c: Regenerate.
12637 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12639 * target.c (return_null): Define.
12640 (update_current_target): Use it instead of return_zero for
12641 functions that return a pointer.
12643 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12645 * source.c (add_path): Fix check for duplicated paths in the previously
12648 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12650 * ada-lang.c: Remove duplicated include statements.
12651 * alphabsd-nat.c: Ditto.
12652 * amd64-darwin-tdep.c: Ditto.
12653 * amd64fbsd-nat.c: Ditto.
12654 * auto-load.c: Ditto.
12656 * breakpoint.c: Ditto.
12657 * dbxread.c: Ditto.
12658 * fork-child.c: Ditto.
12659 * gdb_usleep.c: Ditto.
12660 * i386-darwin-tdep.c: Ditto.
12661 * i386fbsd-nat.c: Ditto.
12663 * inferior.c: Ditto.
12664 * jv-lang.c: Ditto.
12665 * linux-nat.c: Ditto.
12666 * linux-tdep.c: Ditto.
12667 * m68kbsd-nat.c: Ditto.
12668 * m68klinux-nat.c: Ditto.
12669 * microblaze-tdep.c: Ditto.
12670 * mips-linux-tdep.c: Ditto.
12671 * mn10300-tdep.c: Ditto.
12672 * nto-tdep.c: Ditto.
12673 * opencl-lang.c: Ditto.
12675 * printcmd.c: Ditto.
12676 * regcache.c: Ditto.
12677 * remote-m32r-sdi.c: Ditto.
12679 * symfile.c: Ditto.
12681 * tilegx-linux-nat.c: Ditto.
12682 * tilegx-tdep.c: Ditto.
12683 * tracepoint.c: Ditto.
12685 * vaxbsd-nat.c: Ditto.
12686 * windows-nat.c: Ditto.
12687 * xtensa-tdep.c: Ditto.
12689 2014-01-07 Yao Qi <yao@codesourcery.com>
12691 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12693 2014-01-07 Yao Qi <yao@codesourcery.com>
12694 Joel Brobecker <brobecker@adacore.com>
12696 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12697 (pdc_write_regs): Likewise.
12698 (fetch_regs_kernel_thread): Likewise.
12699 (store_regs_kernel_thread): Likewise.
12701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12703 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12704 tagged type objects to their actual type.
12706 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12708 * ada-valprint.c (print_field_values): Add "language" parameter.
12709 Update calls to print_field_values and print_variant_part.
12710 Pass new parameter "language" in call to val_print instead
12711 of "current_language". Replace call to ada_val_print by call
12713 (print_variant_part): Add "language" parameter.
12714 (ada_val_print_struct_union): Update call to print_field_values.
12716 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12718 * ada-valprint.c (ui_memcpy): Delete.
12719 (ada_print_floating): Update documentation. Add empty line
12720 between between function documentation and implementation.
12721 Delete variable "buffer". Use ui_file_xstrdup in place of
12722 ui_file_put. Minor adjustments following this change.
12724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12726 * ada-valprint.c (ada_val_print_string): New function,
12727 extracted from ada_val_print_array.
12728 (ada_val_print_array): Replace extracted code by call
12729 to ada_val_print_string followed by a return. Move
12730 "else" branch to the function's top block.
12732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12734 * ada-valprint.c (ada_val_print_array): Move implementation
12735 down. Rename parameter "offset" and "val" into "offset_aligned"
12736 and "original_value" respectively. Add parameter "offset".
12738 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12740 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12741 re-organizing the code. Change the "???" message printed
12742 when target type is a TYPE_CODE_UNDEF into
12743 "<ref to undefined type>".
12745 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12747 * ada-valprint.c (print_record): Delete, implementation inlined...
12748 (ada_val_print_struct_union): ... here. Remove call to
12749 ada_check_typedef in inlined implementation.
12751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12753 * ada-valprint.c (ada_val_print_gnat_array): New function,
12754 extracted from ada_val_print_1;
12755 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12756 (ada_val_print_flt, ada_val_print_struct_union)
12757 (ada_val_print_ref): Likewise.
12758 (ada_val_print_1): Delete variables i and elttype.
12759 Replace extracted-out code by call to corresponding
12762 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12764 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12766 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12768 * ada-valprint.c (ada_val_print_1): Replace calls to
12769 ada_val_print_1 by calls to val_print.
12771 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12773 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12774 Update calls to self accordingly. Replace calls to c_val_print
12775 by calls to val_print.
12777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12779 * ada-valprint.c (print_record): Delete declaration.
12780 (adjust_type_signedness, ada_val_print_1): Likewise.
12781 (ada_val_print): Move function implementation down.
12782 (print_variant_part, print_field_values, print_record):
12783 Move function implementation up.
12785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12787 * python/py-type.c (typy_get_name): New function.
12788 (type_object_getset): Add entry for attribute "name".
12789 * NEWS: Add entry mentioning this new attribute.
12791 2014-01-07 Yao Qi <yao@codesourcery.com>
12793 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12796 2014-01-07 Yao Qi <yao@codesourcery.com>
12798 * gnu-nat.c (info_port_rights): Add qualifier const to
12801 2014-01-07 Yao Qi <yao@codesourcery.com>
12803 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12805 2014-01-07 Yao Qi <yao@codesourcery.com>
12807 * gnu-nat.c (make_inf) Update declaration.
12808 (make_inf): Make it static.
12809 (inf_set_traced): Likewise.
12810 (inf_port_to_thread, inf_task_died_status): Likewise.
12812 2014-01-07 Yao Qi <yao@codesourcery.com>
12814 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12816 2014-01-07 Yao Qi <yao@codesourcery.com>
12818 * gnu-nat.c (_initialize_gnu_nat): Declare.
12820 2014-01-07 Yao Qi <yao@codesourcery.com>
12822 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12824 (struct gdbarch_info) <byte_order>: Change type to
12826 <byte_order_for_code>: Likewise.
12827 * gdbarch.c, gdbarch.h: Regenerated.
12829 2014-01-06 Sasha Smundak <asmundak@google.com>
12831 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12833 2014-01-06 Tom Tromey <tromey@redhat.com>
12835 * doublest.c (convert_doublest_to_floatformat): Use const, not
12837 * somread.c (som_symtab_read): Likewise.
12839 2014-01-07 Hui Zhu <hui@codesourcery.com>
12841 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12842 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12843 (gdb_bfd_fopen): Ditto.
12844 (gdb_bfd_openr): Ditto.
12845 (gdb_bfd_openw): Ditto.
12846 (gdb_bfd_openr_iovec): Ditto.
12847 (gdb_bfd_fdopenr): Ditto.
12848 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12849 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12851 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12853 * symfile-mem.c (symbol_file_add_from_memory): Removed
12854 gdb_bfd_stash_filename.
12856 2014-01-03 Doug Evans <dje@google.com>
12858 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12861 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12863 Update year range in copyright notice of all files.
12865 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12867 * top.c (print_gdb_version): Set copyright year to 2014.
12869 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12871 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12873 For older changes see ChangeLog-2013.
12879 version-control: never