1 2014-09-12 Pedro Alves <palves@redhat.com>
3 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
4 (create_and_insert_solib_event_breakpoint): New functions.
5 * breakpoint.h (create_and_insert_solib_event_breakpoint)
6 (remove_solib_event_breakpoints_at_next_stop): New declarations.
7 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
8 (remove_dbx_link_breakpoint): Delete function.
9 (insert_dbx_link_bpt_in_file): Use
10 create_and_insert_solib_event_breakpoint instead of
11 deprecated_insert_raw_breakpoint.
12 (procfs_wait): Don't check whether we hit __dbx_link here.
13 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
15 * solib-irix.c (base_breakpoint): Delete global.
16 (disable_break): Delete function.
17 (enable_break): Use create_solib_event_breakpoint
18 instead of deprecated_insert_raw_breakpoint.
19 (irix_solib_handle_event): New function.
20 (irix_solib_create_inferior_hook): Don't run the target or disable
21 the mapping-complete breakpoint here.
22 (_initialize_irix_solib): Install irix_solib_handle_event as
23 so_ops->handle_event hook.
25 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
26 Ulrich Weigand <uweigand@de.ibm.com>
29 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
30 instead of read_memory_unsigned_integer.
32 2014-09-12 Gary Benson <gbenson@redhat.com>
34 * nat/linux-waitpid.c: Include common-defs.h.
35 [GDBSERVER]: Add FIXME comment.
36 [!GDBSERVER]: Don't include defs.h or signal.h.
37 (linux_debug) [!GDBSERVER]: Remove empty block.
39 2014-09-12 Gary Benson <gbenson@redhat.com>
41 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
42 Don't include defs.h or server.h.
44 2014-09-12 Gary Benson <gbenson@redhat.com>
46 * nat/linux-btrace.c: Include common-defs.h.
47 Don't include defs.h, server.h or gdbthread.h.
48 * nat/linux-btrace.h (struct target_ops): New forward declaration.
50 2014-09-12 Gary Benson <gbenson@redhat.com>
52 * common/agent.c: Include common-defs.h.
53 Don't include defs.h or server.h.
54 * common/buffer.c: Likewise.
55 * common/common-debug.c: Likewise.
56 * common/common-utils.c: Likewise.
57 * common/errors.c: Likewise.
58 * common/filestuff.c: Likewise.
59 * common/format.c: Likewise.
60 * common/gdb_vecs.c: Likewise.
61 * common/print-utils.c: Likewise.
62 * common/ptid.c: Likewise.
63 * common/rsp-low.c: Likewise.
64 * common/signals.c: Likewise.
65 * common/vec.c: Likewise.
66 * common/xml-utils.c: Likewise.
67 * nat/linux-osdata.c: Likewise.
68 * nat/linux-procfs.c: Likewise.
69 * nat/linux-ptrace.c: Likewise.
70 * nat/mips-linux-watch.c: Likewise.
71 * target/waitstatus.c: Likewise.
73 2014-09-12 Tom Tromey <tromey@redhat.com>
74 Gary Benson <gbenson@redhat.com>
76 * common/common-regcache.h: New file.
77 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
78 * regcache.h: Include common-regcache.h.
79 (regcache_read_pc): Don't declare.
80 * regcache.c (get_thread_regcache_for_ptid): New function.
81 * nat/linux-btrace.c: Don't include regcache.h.
82 Include common-regcache.h.
83 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
85 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
87 * regcache.h (struct regset): Declare.
89 2014-09-11 Pedro Alves <palves@redhat.com>
92 * main.c: Include "infrun.h".
93 (catch_command_errors, catch_command_errors_const): Wait for the
94 foreground command to complete.
95 * top.c (maybe_wait_sync_command_done): New function, factored out
97 (maybe_wait_sync_command_done): ... here.
98 * top.h (maybe_wait_sync_command_done): New declaration.
100 2014-09-11 Tom Tromey <tromey@redhat.com>
101 Gary Benson <gbenson@redhat.com>
103 * common/symbol.h: New file.
104 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
105 * minsyms.c (find_minimal_symbol_address): New function.
106 * common/agent.c: Include common/symbol.h.
107 [!GDBSERVER]: Don't include objfiles.h.
108 (agent_look_up_symbols): Use find_minimal_symbol_address.
110 2014-09-11 Gary Benson <gbenson@redhat.com>
112 * target/target.h (target_stop_ptid, target_continue_ptid):
114 * target.c (target_stop_ptid, target_continue_ptid): New
116 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
117 (agent_run_command): Always use target_stop_ptid and
118 target_continue_ptid.
120 2014-09-11 Tom Tromey <tromey@redhat.com>
121 Gary Benson <gbenson@redhat.com>
123 * target/target.h: New file.
124 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
125 * target.h: Include target/target.h.
126 (target_read_memory, target_write_memory): Don't declare.
127 * target.c (target_read_uint32): New function.
128 * common/agent.c: Include target/target.h.
129 [!GDBSERVER]: Don't include target.h.
130 (helper_thread_id): Type changed to uint32_t.
131 (agent_get_helper_thread_id): Use target_read_uint32.
132 (agent_run_command): Always use target_read_memory and
134 (agent_capability): Type changed to uint32_t.
135 (agent_capability_check): Use target_read_uint32.
137 2014-09-11 Gary Benson <gbenson@redhat.com>
139 * common/common-debug.h (show_debug_regs): Declare.
140 * common/common-debug.c (show_debug_regs): Define.
141 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
142 all uses with show_debug_regs. Replace all uses that considered
143 debug_hw_points as a multi-value integer with straight boolean
145 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
146 with show_debug_regs.
147 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
148 all uses with show_debug_regs.
149 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
150 uses with show_debug_regs.
152 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
154 * findvar.c (address_from_register): Handle targets requiring
155 a special conversion routine even for plain pointer types.
157 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
159 * rs6000-nat.c (exec_one_dummy_insn): Remove.
160 (store_register): Do not call exec_one_dummy_insn.
162 2014-09-10 Joel Brobecker <brobecker@adacore.com>
164 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
165 dereference it first. Use value_enclosing_type instead of
167 (ada_array_length): Likewise.
169 2014-09-10 Joel Brobecker <brobecker@adacore.com>
171 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
172 Adjust function implementation and documentation accordingly.
173 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
174 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
175 Update call to ada_value_ptr_subscript.
177 2014-09-10 Joel Brobecker <brobecker@adacore.com>
179 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
180 instead of VAL's type.
182 2014-09-10 Joel Brobecker <brobecker@adacore.com>
184 * amd64-linux-nat.c: Add <sys/uio.h> #include.
186 2014-09-09 Doug Evans <xdje42@gmail.com>
189 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
190 last parameter to pkg-config, not first.
191 * configure.ac: Pass --with-guile provided pkg-config path to
192 GDB_GUILE_PROGRAM_NAMES.
193 * configure: Regenerate.
195 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
197 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
200 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
202 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
203 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
204 the list of sections determining GDB_OSABI_IRIX.
206 2014-09-09 James Hogan <james.hogan@imgtec.com>
208 * MAINTAINERS (Write After Approval): Add "James Hogan".
210 2014-09-09 James Hogan <james.hogan@imgtec.com>
212 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
214 2014-09-09 Joel Brobecker <brobecker@adacore.com>
216 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
218 2014-09-08 Doug Evans <xdje42@gmail.com>
221 * guile.c: #include <signal.h>.
222 (_initialize_guile): Block SIGCHLD while initializing Guile.
224 Replaces the following, which is reverted.
226 2014-07-26 Doug Evans <xdje42@gmail.com>
229 * configure.ac: Add check for header gc/gc.h.
230 Add check for function setenv.
231 * configure: Regenerate.
232 * config.in: Regenerate.
233 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
235 2014-09-08 Doug Evans <xdje42@gmail.com>
237 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
238 with named constant. Fix style of pointer comparison.
239 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
241 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
244 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
245 decide whether we display the command on "show user".
246 * cli/cli-script.c (show_user_1): Only verify cmdlines after
247 printing command name.
248 * cli/cli-decode.h (cli_user_command_p): Declare new function.
249 * cli/cli-decode.c (cli_user_command_p): Create helper function
250 to verify whether cmd_list_element is a user-defined command.
252 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
255 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
256 Fix goto out of TRY_CATCH.
258 2014-09-06 Doug Evans <xdje42@gmail.com>
259 Tom Tromey <tromey@redhat.com>
262 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
263 $_any_caller_matches.
264 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
265 * python/lib/gdb/function/caller_is.py: New file.
267 2014-09-06 Doug Evans <xdje42@gmail.com>
269 * infcmd.c (program_info): Fix typo.
271 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
274 * stap-probe.c (stap_parse_single_operand): Delete unused variable
275 'number'. New variable 'has_digit'. Rewrite code to deal with
276 subexpressions on SDT probes.
278 2014-09-04 Pedro Alves <palves@redhat.com>
280 * c-exp.y (parse_number): Skip handling base-switching prefixes if
281 the input is only one character long.
283 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
286 * f-valprint.c (f_val_print): Specify the correct print option to
287 use when printing integer values.
289 2014-09-04 Gary Benson <gbenson@redhat.com>
291 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
292 Remove code to cope with LWPs wrapped as PIDs.
293 Add assertions to ensure no wrapped LWPs are passed.
295 2014-09-04 Pedro Alves <palves@redhat.com>
297 * value.c (value_ranges_copy_adjusted): New function, factored out
299 (value_contents_copy_raw): ... here.
300 (unpack_value_bits_as_long_1): Rename back to ...
301 (unpack_bits_as_long): ... this. Remove 'original_value' and
302 'result' parameters. Change return type to LONGEST.
303 (unpack_value_bits_as_long): Delete.
304 (unpack_value_field_as_long_1): Delete.
305 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
306 (unpack_value_bitfield): New function.
307 (value_field_bitfield): Reimplement using unpack_value_bitfield.
308 (value_fetch_lazy): Use unpack_value_bitfield.
309 * value.h (unpack_value_bits_as_long): Delete declaration.
311 2014-09-03 Sasha Smundak <asmundak@google.com>
313 * python/py-frame.c (frapy_read_register): New function.
315 2014-09-03 James Hogan <james.hogan@imgtec.com>
317 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
318 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
320 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
323 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
325 (add_cmd): Set "completer_handle_brkchars" to NULL.
326 * cli/cli-decode.h (struct cmd_list_element)
327 <completer_handle_brkchars>: New field.
328 * command.h (completer_ftype_void): New typedef.
329 (set_cmd_completer_handle_brkchars): New prototype.
330 * completer.c (set_gdb_completion_word_break_characters): New
332 (complete_line_internal): Call "completer_handle_brkchars"
333 callback from command.
334 * completer.h: Include "command.h".
335 (set_gdb_completion_word_break_characters): New prototype.
336 * python/py-cmd.c (cmdpy_completer_helper): New function.
337 (cmdpy_completer_handle_brkchars): New function.
338 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
339 (cmdpy_init): Set completer_handle_brkchars to
340 cmdpy_completer_handle_brkchars.
342 2014-09-03 Gary Benson <gbenson@redhat.com>
344 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
345 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
346 Loop conditions changed to equivalent form.
347 (struct x86_debug_reg_state): Updated dr_ref_count comment.
348 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
349 ALL_DEBUG_ADDRESS_REGISTERS.
351 2014-09-03 Joel Brobecker <brobecker@adacore.com>
353 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
356 2014-09-02 Doug Evans <dje@google.com>
358 * typeprint.c (find_global_typedef): Fix comment.
360 2014-09-02 Gary Benson <gbenson@redhat.com>
362 * i386-nat.h: Renamed as...
363 * x86-nat.h: New file. All type, function and variable name
364 prefixes changed from "i386_" to "x86_". All references updated.
365 * i386-nat.c: Renamed as...
366 * x86-nat.c: New file. All type, function and variable name
367 prefixes changed from "i386_" to "x86_". All references updated.
368 * common/i386-xstate.h: Renamed as...
369 * common/x86-xstate.h: New file. All type, function and variable
370 name prefixes changed from "i386_" to "x86_". All references
372 * nat/i386-cpuid.h: Renamed as...
373 * nat/x86-cpuid.h: New file. All type, function and variable name
374 prefixes changed from "i386_" to "x86_". All references updated.
375 * nat/i386-gcc-cpuid.h: Renamed as...
376 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
377 name prefixes changed from "i386_" to "x86_". All references
379 * nat/i386-dregs.h: Renamed as...
380 * nat/x86-dregs.h: New file. All type, function and variable name
381 prefixes changed from "i386_" to "x86_". All references updated.
382 * nat/i386-dregs.c: Renamed as...
383 * nat/x86-dregs.c: New file. All type, function and variable name
384 prefixes changed from "i386_" to "x86_". All references updated.
386 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
388 * varobj.c (_initialize_varobj): Move to the end of file.
390 2014-08-29 Gary Benson <gbenson@redhat.com>
392 * common/common-exceptions.h: New file.
393 * common/common-exceptions.c: Likewise.
394 * Makefile.in (SFILES): Add common/common-exceptions.c.
395 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
396 (COMMON_OBS): Add common-exceptions.o.
397 (common-exceptions.o): New rule.
398 * exceptions.h (common-exceptions.h): Include.
399 (gdb_setjmp.h): Do not include.
400 (return_reason): Moved to common-exceptions.h.
401 (enum return_reason): Likewise.
402 (RETURN_MASK): Likewise.
403 (typedef return_mask): Likewise.
404 (enum errors): Likewise.
405 (struct gdb_exception): Likewise.
406 (exceptions_state_mc_init): Likewise.
407 (exceptions_state_mc_action_iter): Likewise.
408 (exceptions_state_mc_action_iter_1): Likewise.
409 (TRY_CATCH): Likewise.
410 (throw_exception): Likewise.
411 (throw_verror): Likewise.
412 (throw_vquit): Likewise.
413 (throw_error): Likewise.
414 (throw_quit): Likewise.
415 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
416 (enum catcher_action): Likewise.
417 (struct catcher): Likewise.
418 (current_catcher): Likewise.
419 (catcher_list_size): Likewise.
420 (exceptions_state_mc_init): Likewise.
421 (catcher_pop): Likewise.
422 (exceptions_state_mc): Likewise.
423 (exceptions_state_mc_action_iter): Likewise.
424 (exceptions_state_mc_action_iter_1): Likewise.
425 (throw_exception): Likewise.
426 (exception_messages): Likewise.
427 (exception_messages_size): Likewise.
428 (throw_it): Likewise.
429 (throw_verror): Likewise.
430 (throw_vquit): Likewise.
431 (throw_error): Likewise.
432 (throw_quit): Likewise.
433 (prepare_to_throw_exception): New function.
435 2014-08-29 Gary Benson <gbenson@redhat.com>
437 * common/gdb_setjmp.h: New file.
438 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
439 * configure.ac: Move sigsetjmp check...
440 * common/common.m4: ...here.
441 * configure: Regenerate.
442 * cp-support.c (SIGJMP_BUF): Delete.
443 (SIGSETJMP): Likewise.
444 (SIGLONGJMP): Likewise.
445 * exceptions.h (gdb_setjmp.h): Include.
446 (setjmp.h): Do not include.
447 (EXCEPTIONS_SIGJMP_BUF): Delete.
448 (EXCEPTIONS_SIGSETJMP): Likewise.
449 (EXCEPTIONS_SIGLONGJMP): Likewise.
450 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
452 * exceptions.c: Likewise.
454 2014-08-29 Gary Benson <gbenson@redhat.com>
456 * cleanups.h: Moved to...
457 * common/cleanups.h: New file.
458 * cleanups.c: Moved to...
459 * common/cleanups.c: New file. Include common-defs.h and
460 cleanups.h. Do not include defs.h.
461 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
462 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
463 (cleanups.o): New rule.
465 2014-08-29 Gary Benson <gbenson@redhat.com>
467 * common/errors.h (internal_warning): New declaration.
468 (internal_vwarning): Likewise.
469 * common/errors.c (internal_warning): New function.
470 * utils.h (internal_warning): Don't declare.
471 (internal_vwarning): Likewise.
472 * utils.c (internal_warning): Removed.
474 2014-08-29 Gary Benson <gbenson@redhat.com>
476 * main.c (captured_main): Use warning during startup.
477 Prefix startup warning messages with command name.
479 2014-08-29 Gary Benson <gbenson@redhat.com>
481 * main.c (captured_main): Handle usage errors with error.
483 2014-08-29 Gary Benson <gbenson@redhat.com>
485 * go32-nat.c (go32_create_inferior): Replace a fprintf/
486 exit pair with a call to error. Wrap the message with _().
488 2014-08-29 Gary Benson <gbenson@redhat.com>
490 * main.c (captured_main): Replace a fprintf/exit
491 pair with a call to error. Wrap the message with _().
493 2014-08-29 Gary Benson <gbenson@redhat.com>
495 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
496 pairs with calls to error. Wrap the message with _().
498 2014-08-29 Gary Benson <gbenson@redhat.com>
500 * utils.c (vwarning): Protect calls to target_terminal_ours
503 2014-08-29 Gary Benson <gbenson@redhat.com>
505 * exceptions.c (print_flush): Protect calls to
506 target_terminal_ours and wrap_here.
508 2014-08-29 Gary Benson <gbenson@redhat.com>
510 * utils.h (filtered_printing_initialized): New declaration.
511 * utils.c (abort_with_message): New function.
512 (internal_vproblem): Use abort_with_message for first level
513 recursive internal problems, and if gdb_stderr is not set up.
514 Protect calls to target_terminal_ours, begin_line and query.
516 2014-08-28 Doug Evans <dje@google.com>
518 * symtab.c (in_prologue): Move definition to better spot.
519 (skip_prologue_using_sal): Ditto.
521 2014-08-28 Doug Evans <dje@google.com>
523 * symtab.c (find_function_start_sal): Move definition to better spot.
525 2014-08-28 Yao Qi <yao@codesourcery.com>
527 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
528 found_stack_adjust in forward scan. Remove condition check
529 on found_stack_adjust which is always true. Indent the code.
531 2014-08-28 Yao Qi <yao@codesourcery.com>
533 * dwarf2read.c (dwarf_decode_lines): Update declaration.
534 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
535 (dwarf_decode_lines): Remove argument
536 want_line_info. Remove condition check on want_line_info.
539 2014-08-27 Doug Evans <dje@google.com>
541 * dwarf2read.c (dwarf_record_line): Fix typo.
543 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
545 * target.h (struct target_ops::to_terminal_save_ours): Remove
547 (target_terminal_save_ours): Remove macro.
548 * target-delegates.c: Regenerate.
549 * inf-child.c (inf_child_target): Don't set the nonexistent
550 field to_terminal_save_ours.
551 * inferior.h (child_terminal_save_ours): Remove declaration.
552 * terminal.h (gdb_save_tty_state): New declaration.
553 * inflow.c (child_terminal_save_ours): Rename to ...
554 (gdb_save_tty_state): ... this.
555 * tui/tui.c: Include terminal.h.
556 (tui_enable): Use gdb_save_tty_state instead of
557 target_terminal_save_ours.
558 (tui_disable): Likewise.
560 2014-08-25 Doug Evans <dje@google.com>
562 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
563 Pass NULL instead of 0 for context pointer.
565 2014-08-25 Yao Qi <yao@codesourcery.com>
567 * dwarf2read.c: Fix grammatical error.
569 2014-08-24 Yao Qi <yao@codesourcery.com>
571 * dwarf2read.c (scan_partial_symbols): Update comments.
572 Rename argument 'need_pc' with 'set_addrmap'.
573 (add_partial_namespace): Rename argument 'need_pc' with
575 (add_partial_module): Likewise.
576 (add_partial_subprogram): Likewise. Update comments.
577 (dwarf2_name): Fix typo.
579 2014-08-22 Doug Evans <dje@google.com>
582 * dwarf2read.c (dwarf_record_line_p): New function.
583 (dwarf_decode_lines_1): Ignore subsequent line number entries
584 for the same line if any entry had a non-zero discriminator.
586 2014-08-22 Doug Evans <dje@google.com>
588 * buildsym.h (record_line_ftype): New typedef.
589 (record_line): Use it.
590 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
591 (dwarf_decode_lines_1): Call them.
593 2014-08-22 Yao Qi <yao@codesourcery.com>
595 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
596 (ctf_end): Remove code.
598 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
600 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
601 (linux_make_corefile_notes): call update_thread_list, protected against
604 2014-08-21 Pedro Alves <palves@redhat.com>
606 * infcmd.c (attach_command): Remove comment.
608 2014-08-21 Bin Cheng <bin.cheng@arm.com>
610 * aarch64-linux-nat.c (dr_changed_t): Change the type from
611 unsigned LONGEST to ULONGEST.
613 2014-08-20 Pedro Alves <palves@redhat.com>
615 * Makefile.in (check-read1): New rule.
617 2014-08-20 Joel Brobecker <brobecker@adacore.com>
619 * value.c (value_from_contents_and_address): Strip resolved_type's
620 typedef layers before checking its TYPE_DATA_LOCATION.
622 2014-08-20 Pedro Alves <palves@redhat.com>
624 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
626 2014-08-20 Yao Qi <yao@codesourcery.com>
628 * amd64-tdep.c (amd64_classify): Add a blank line after the
629 example. Move "*/" to a new line.
630 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
631 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
632 * dwarf2read.c (psymtab_include_file_name): Likewise.
634 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
635 Pedro Alves <palves@redhat.com>
639 * ada-lang.c (coerce_unspec_val_to_type): Use
640 value_contents_copy_raw.
641 * ada-valprint.c (val_print_packed_array_elements): Adjust.
642 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
643 * cp-valprint.c (cp_print_value_fields): Let the common printing
644 code handle optimized out values.
645 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
646 * d-valprint.c (dynamic_array_type): Use
647 value_bits_any_optimized_out.
648 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
649 check_any_valid fields.
650 (check_pieced_value_bits): Delete and inline ...
651 (check_pieced_synthetic_pointer): ... here.
652 (check_pieced_value_validity): Delete.
653 (check_pieced_value_invalid): Delete.
654 (pieced_value_funcs): Remove check_validity and check_any_valid
656 (read_pieced_value): Use mark_value_bits_optimized_out.
657 (write_pieced_value): Switch to use
658 mark_value_bytes_optimized_out.
659 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
660 of assuming the whole value is optimized out.
661 * findvar.c (read_frame_register_value): Remove special handling
662 of optimized out registers.
663 (value_from_register): Use mark_value_bytes_optimized_out.
664 * frame-unwind.c (frame_unwind_got_optimized): Use
665 mark_value_bytes_optimized_out.
666 * jv-valprint.c (java_value_print): Adjust.
667 (java_print_value_fields): Let the common printing code handle
668 optimized out values.
669 * mips-tdep.c (mips_print_register): Remove special handling of
670 optimized out registers.
671 * opencl-lang.c (lval_func_check_validity): Delete.
672 (lval_func_check_any_valid): Delete.
673 (opencl_value_funcs): Remove check_validity and check_any_valid
675 * p-valprint.c (pascal_object_print_value_fields): Let the common
676 printing code handle optimized out values.
677 * stack.c (read_frame_arg): Remove special handling of optimized
678 out values. Fetch both VAL and ENTRYVAL before comparing
679 contents. Adjust to value_available_contents_eq rename.
680 * valprint.c (valprint_check_validity)
681 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
682 (val_print_array_elements): Adjust.
683 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
684 (value_bits_any_optimized_out): New function.
685 (value_entirely_covered_by_range_vector): New function, factored
686 out from value_entirely_unavailable.
687 (value_entirely_unavailable): Reimplement.
688 (value_entirely_optimized_out): New function.
689 (insert_into_bit_range_vector): New function, factored out from
690 mark_value_bits_unavailable.
691 (mark_value_bits_unavailable): Reimplement.
692 (struct ranges_and_idx): New struct.
693 (find_first_range_overlap_and_match): New function, factored out
694 from value_available_contents_bits_eq.
695 (value_available_contents_bits_eq): Rename to ...
696 (value_contents_bits_eq): ... this. Check both unavailable
697 contents and optimized out contents.
698 (value_available_contents_eq): Rename to ...
699 (value_contents_eq): ... this.
700 (allocate_value_lazy): Remove reference to the old optimized_out
702 (allocate_optimized_out_value): Use
703 mark_value_bytes_optimized_out.
704 (require_not_optimized_out): Adjust to check whether the
705 optimized_out vec is empty.
706 (ranges_copy_adjusted): New function, factored out from
707 value_contents_copy_raw.
708 (value_contents_copy_raw): Also copy the optimized out ranges.
709 Assert the destination ranges aren't optimized out.
710 (value_contents_copy): Update comment, remove call to
711 require_not_optimized_out.
712 (value_contents_equal): Adjust to check whether the optimized_out
714 (set_value_optimized_out, value_optimized_out_const): Delete.
715 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
717 (value_entirely_optimized_out, value_bits_valid): Delete.
718 (value_copy): Take a VEC copy of the 'optimized_out' field.
719 (value_primitive_field): Remove special handling of optimized out.
720 (value_fetch_lazy): Assert that lazy values have no unavailable
721 regions. Use value_bits_any_optimized_out. Remove some special
722 handling for optimized out values.
723 * value.h: Add intro comment about <optimized out> and
725 (struct lval_funcs): Remove check_validity and check_any_valid
727 (set_value_optimized_out, value_optimized_out_const): Remove.
728 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
730 (value_bits_any_optimized_out): New declaration.
731 (value_bits_valid): Delete declaration.
732 (value_available_contents_eq): Rename to ...
733 (value_contents_eq): ... this, and extend comments.
735 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
737 Fix -fsanitize=address on unreadable inferior strings.
738 * valprint.c (val_print_string): Fix access before BUFFER.
740 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
742 * target.c (target_struct_size): Remove.
743 (target_struct_allocsize): Remove.
744 (DEFAULT_ALLOCSIZE): Remove.
745 (target_ops_p): New typedef.
746 (DEF_VEC_P (target_ops_p)): New vector type.
747 (target_structs): Change type to VEC (target_ops_p).
748 (add_target_with_completer): Replace "push" code by VEC_safe_push.
749 (find_default_run_target): Rewrite for loop following changes to
752 2014-08-19 Joel Brobecker <brobecker@adacore.com>
754 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
755 Adjust code accordingly. Adjust function description comment.
757 2014-08-19 Yao Qi <yao@codesourcery.com>
759 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
762 2014-08-19 Alan Modra <amodra@gmail.com>
764 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
765 * config.in: Regenerate.
766 * configure: Regenerate.
768 2014-08-19 Tom Tromey <tromey@redhat.com>
769 Gary Benson <gbenson@redhat.com>
771 * common/common-debug.h: New file.
772 * common/common-debug.c: Likewise.
774 * Makefile.in (SFILES): Add common/common-debug.c.
775 (HFILES_NO_SRCDIR): Add common/common-debug.h.
776 (COMMON_OBS): Add common-debug.o and debug.o.
777 (common-debug.o): New rule.
778 * common/common-defs.h: Include common-debug.h.
779 * common/agent.c (debug_agent_printf): New function.
780 (DEBUG_AGENT): Redefine.
781 * nat/i386-dregs.c (debug_printf): Undefine.
783 2014-08-19 Gary Benson <gbenson@redhat.com>
785 * common/common-defs.h: Include print-utils.h.
786 * utils.h: Do not include print-utils.h.
788 2014-08-19 Tom Tromey <tromey@redhat.com>
789 Gary Benson <gbenson@redhat.com>
791 * common/common-types.h: New file.
792 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
793 * common/common-defs.h: Include common-types.h.
794 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
797 2014-08-19 Tom Tromey <tromey@redhat.com>
798 Gary Benson <gbenson@redhat.com>
800 * common/errors.h: New file.
801 * common/errors.c: Likewise.
802 * Makefile.in (SFILES): Add common/errors.c.
803 (HFILES_NO_SRCDIR): Add common/errors.h.
804 (COMMON_OBS): Add errors.o.
805 (errors.o): New rule.
806 * common/common-defs.h: Include errors.h.
807 * utils.h (perror_with_name, error, verror, warning, vwarning):
809 * common/common-utils.h: (malloc_failure, internal_error):
812 2014-08-19 Gary Benson <gbenson@redhat.com>
814 * utils.c (internal_vproblem): Always print the message.
816 2014-08-18 Doug Evans <dje@google.com>
818 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
820 2014-08-18 Joel Brobecker <brobecker@adacore.com>
822 * ada-typeprint.c (type_is_full_subrange_of_target_type):
823 Return 0 if TYPE is dynamic.
824 (print_range): Add handling of dynamic ranges.
826 2014-08-18 Keven Boell <keven.boell@intel.com>
827 Joel Brobecker <brobecker@adacore.com>
829 * gdbtypes.h (struct main_type): Add field "data_location".
830 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
831 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
832 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
833 a dynamic data location.
834 (resolve_dynamic_type): Add DW_AT_data_location handling.
835 (copy_recursive, copy_type): Copy the data_location information
837 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
838 * value.c (value_from_contents_and_address): Add
839 DW_AT_data_location handling.
841 2014-08-18 Keven Boell <keven.boell@intel.com>
842 Joel Brobecker <brobecker@adacore.com>
844 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
845 field "get_object_address".
846 * dwarf2expr.c (execute_stack_op): Add handling for
847 DW_OP_push_object_address.
848 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
849 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
850 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
851 (dwarf_expr_get_obj_addr): New function.
852 (dwarf_expr_ctx_funcs): Add get_object_address field.
853 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
854 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
855 (dwarf2_evaluate_property): Add parameter "address". Use it.
856 (needs_get_obj_addr): New function.
857 (needs_frame_ctx_funcs): Add get_object_address field.
858 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
859 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
860 (resolve_dynamic_array): Likewise.
862 2014-08-18 Joel Brobecker <brobecker@adacore.com>
864 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
865 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
866 fixed value for records and unions for which some GNAT encodings
869 2014-08-18 Joel Brobecker <brobecker@adacore.com>
871 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
872 rewrite to avoid "else if" and "else" constructs. Should be
875 2014-08-18 Joel Brobecker <brobecker@adacore.com>
877 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
880 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
883 * eval.c: Update all calls to find_overload_match.
884 * valarith.c: Likewise.
885 (value_user_defined_cpp_op, value_user_defined_op): New
886 argument NOSIDE. Update all callers.
887 * valops.c (find_overload_match): New argument NOSIDE.
888 * value.h (find_overload_match): Update signature.
890 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
892 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
893 'items' methods instead of 'iteritems' method on dictionaries.
895 2014-08-15 Doug Evans <dje@google.com>
897 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
900 2014-08-15 Doug Evans <dje@google.com>
902 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
904 2014-08-15 Doug Evans <dje@google.com>
906 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
908 2014-08-15 Doug Evans <dje@google.com>
910 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
913 2014-08-15 Eli Zaretskii <eliz@gnu.org>
915 * dcache.h: Include target.h, to avoid compile time warnings.
917 2014-08-15 Joel Brobecker <brobecker@adacore.com>
919 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
920 frame_info" partial declaration.
921 * gdbarch.h: Regenerate.
923 2014-08-15 Yao Qi <yao@codesourcery.com>
925 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
926 Add parameter 'decode_for_pst_p'. Callers update.
928 2014-08-13 Yao Qi <yao@codesourcery.com>
931 * configure.ac: Use local variable 'pos'.
932 * configure: Regenerated.
934 2014-08-11 Doug Evans <dje@google.com>
936 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
937 message, it is redundant with "Reading symbols from ..." message.
939 2014-08-10 Doug Evans <xdje42@gmail.com>
941 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
943 2014-08-09 Yao Qi <yao@codesourcery.com>
946 * remote.c (remote_xfer_partial): Remove dead code.
948 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
950 * ia64-linux-tdep.c: Include "regset.h".
951 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
952 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
953 (ia64_linux_supply_fpregset): New function.
954 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
955 (ia64_linux_regset_from_core_section): New function.
956 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
959 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
961 * m68klinux-tdep.c: Include "regset.h".
962 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
963 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
964 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
965 (m68k_linux_regset_from_core_section): New function.
966 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
969 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
971 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
972 function. Move logic to...
973 (tilegx_linux_regmap): ... this new register map.
974 (tilegx_linux_regset): Refer to register map, replace supply
975 method by regcache_supply_regset, and add collect method.
976 * tilegx-tdep.h (enum tilegx_regnum): New enum value
977 TILEGX_FIRST_EASY_REGNUM.
979 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
981 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
982 that calls regcache_supply_regset and handles the EPC register
983 separately. Move main logic to...
984 (score7_linux_gregmap): ... this new register map.
985 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
986 (score7_linux_gregset): Refer to register map. Add collect method.
987 (score7_linux_regset_from_core_section): Replace
988 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
989 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
990 (struct regset): Delete unused forward declaraction.
991 (struct pt_regs): Delete structure definition.
992 (elf_gregset_t): Delete typedef.
994 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
996 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
997 (nios2_core_regset): Add collect method.
999 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1001 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1002 platform-independent and don't write to read-only input buffer.
1003 (m32r_linux_collect_gregset): New function.
1004 (m32r_linux_gregset): Add collect method.
1006 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1008 * hppa-linux-tdep.c (greg_map): Rename to...
1009 (hppa_linux_gregmap): ... this. Also convert to
1010 regcache_map_entry format.
1011 (hppa_linux_supply_regset): Delete function.
1012 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1013 (hppa_linux_fpregmap): ... this new register map.
1014 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1015 register map, replace supply method by regcache_supply_regset, and
1016 add collect method regcache_collect_regset.
1018 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1020 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1021 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1022 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1023 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1024 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1025 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1026 (frv_linux_supply_gregset): Replace main logic by call to
1027 regcache_supply_regset, but keep clearing gr32-gr63.
1028 (frv_linux_supply_fpregset): Delete function.
1029 (frv_linux_gregset): Refer to appropriate register map and add
1030 regcache_collect_regset as the collect method.
1031 (frv_linux_fpregset): Likewise. Also exchange the supply method
1032 by regcache_supply_regset.
1034 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1036 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1037 by call to alpha_supply_int_regs.
1038 (alpha_linux_collect_gregset): New function.
1039 (alpha_linux_supply_fpregset): Replace logic by call to
1040 alpha_supply_fp_regs.
1041 (alpha_linux_collect_fpregset): New function.
1042 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1044 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1046 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1047 by call to regcache_collect_regset.
1048 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1049 instead of aarch64_linux_supply_gregset/_fpregset.
1050 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1051 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1052 header file instead.
1053 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1054 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1055 functions. Move logic to ...
1056 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1058 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1059 refer to new register maps, replace *_regset_from_core by
1060 regcache_supply_regset, and also use regcache_collect_regset.
1061 * aarch64-linux-tdep.h: Include "regset.h".
1062 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1064 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1065 macros, moved from C source file.
1066 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1067 variable declarations.
1069 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1071 * s390-linux-nat.c: Include "regset.h".
1072 (regmap_gregset): Delete macro.
1073 (s390_64_regmap_gregset): New register map for
1074 regcache_supply/_collect_regset.
1075 (s390_64_gregset): New regset.
1076 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1077 (regmap_fpregset): Delete macro.
1078 (s390_native_supply, s390_native_collect): Delete functions.
1079 (supply_gregset, fill_gregset): Replace s390-specific regmap
1080 handling by a call to regcache_supply/_collect_regset.
1081 (supply_fpregset, fill_fpregset): Call regcache_supply/
1082 _collect_regset instead of s390_native_supply/_collect.
1083 (fetch_regset, store_regset): Likewise. Also change the last
1084 parameter to a regset instead of a regmap.
1085 (s390_linux_fetch_inferior_registers)
1086 (390_linux_store_inferior_registers): Adjust last parameter in
1087 calls to fetch_regset and store_regset.
1088 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1089 (s390_gregmap): ... this. Also make static const and convert to
1090 regcache_map_entry format.
1091 (s390x_regmap_gregset): Delete.
1092 (s390_regmap_fpregset): Rename to...
1093 (s390_fpregmap): ... this. Make static const and convert to
1094 regcache_map_entry format.
1095 (s390_regmap_upper, s390_regmap_last_break)
1096 (s390x_regmap_last_break, s390_regmap_system_call)
1097 (s390_regmap_tdb): Likewise.
1098 (s390_supply_regset, s390_collect_regset): Remove functions.
1099 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1101 (s390_gregset, s390_fpregset, s390_upper_regset)
1102 (s390_last_break_regset, s390x_last_break_regset)
1103 (s390_system_call_regset, s390_tdb_regset): Make global and
1104 replace s390_supply/_collect_regset by regcache_supply/
1106 (s390x_gregset): Delete.
1107 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1108 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1109 (s390_regmap_fpregset, s390_regmap_last_break)
1110 (s390x_regmap_last_break, s390_regmap_system_call)
1111 (s390_regmap_tdb): Delete global variable declarations.
1112 (s390_gregset, s390_fpregset, s390_last_break_regset)
1113 (s390x_last_break_regset, s390_system_call_regset)
1114 (s390_tdb_regset): New global variable declarations.
1116 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1118 * regcache.c: Include "regset.h".
1119 (regcache_transfer_regset): New local function.
1120 (regcache_supply_regset, regcache_collect_regset): New functions.
1121 * regcache.h (struct regcache_map_entry): New structure.
1122 (REGCACHE_MAP_SKIP): New enum value.
1123 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1125 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1127 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1128 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1129 (ppc_linux_collect_gregset ): Likewise.
1130 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1131 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1132 (ppc_collect_vrregset): Likewise.
1133 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1136 2014-08-07 Yao Qi <yao@codesourcery.com>
1138 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1139 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1140 * remote.c (remote_read_bytes): Likewise.
1142 2014-08-07 Yao Qi <yao@codesourcery.com>
1144 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1146 2014-08-07 Yao Qi <yao@codesourcery.com>
1149 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1150 TARGET_XFER_OK instead of 0.
1152 2014-08-07 Gary Benson <gbenson@redhat.com>
1154 * common/common-defs.h: Include errno.h.
1155 * defs.h: Do not include errno.h.
1156 * ada-typeprint.c: Likewise.
1157 * c-typeprint.c: Likewise.
1158 * core-regset.c: Likewise.
1159 * corefile.c: Likewise.
1160 * corelow.c: Likewise.
1161 * event-loop.c: Likewise.
1162 * f-typeprint.c: Likewise.
1163 * gnu-nat.c: Likewise.
1164 * go32-nat.c: Likewise.
1165 * i386gnu-nat.c: Likewise.
1166 * m2-typeprint.c: Likewise.
1167 * nat/linux-btrace.c: Likewise.
1168 * p-typeprint.c: Likewise.
1169 * procfs.c: Likewise.
1170 * remote-sim.c: Likewise.
1171 * rs6000-nat.c: Likewise.
1172 * target.c: Likewise.
1173 * typeprint.c: Likewise.
1174 * ui-file.c: Likewise.
1175 * valops.c: Likewise.
1176 * valprint.c: Likewise.
1178 2014-08-07 Gary Benson <gbenson@redhat.com>
1180 * common/common-defs.h: Include string.h.
1181 * aarch64-tdep.c: Do not include string.h.
1182 * ada-exp.y: Likewise.
1183 * ada-lang.c: Likewise.
1184 * ada-lex.l: Likewise.
1185 * ada-typeprint.c: Likewise.
1186 * ada-valprint.c: Likewise.
1187 * aix-thread.c: Likewise.
1188 * alpha-linux-tdep.c: Likewise.
1189 * alpha-mdebug-tdep.c: Likewise.
1190 * alpha-nat.c: Likewise.
1191 * alpha-osf1-tdep.c: Likewise.
1192 * alpha-tdep.c: Likewise.
1193 * alphanbsd-tdep.c: Likewise.
1194 * amd64-dicos-tdep.c: Likewise.
1195 * amd64-linux-tdep.c: Likewise.
1196 * amd64-nat.c: Likewise.
1197 * amd64-sol2-tdep.c: Likewise.
1198 * amd64fbsd-tdep.c: Likewise.
1199 * amd64obsd-tdep.c: Likewise.
1200 * arch-utils.c: Likewise.
1201 * arm-linux-nat.c: Likewise.
1202 * arm-linux-tdep.c: Likewise.
1203 * arm-tdep.c: Likewise.
1204 * arm-wince-tdep.c: Likewise.
1205 * armbsd-tdep.c: Likewise.
1206 * armnbsd-nat.c: Likewise.
1207 * armnbsd-tdep.c: Likewise.
1208 * armobsd-tdep.c: Likewise.
1209 * avr-tdep.c: Likewise.
1210 * ax-gdb.c: Likewise.
1211 * ax-general.c: Likewise.
1212 * bcache.c: Likewise.
1213 * bfin-tdep.c: Likewise.
1214 * breakpoint.c: Likewise.
1215 * build-id.c: Likewise.
1216 * buildsym.c: Likewise.
1217 * c-exp.y: Likewise.
1218 * c-lang.c: Likewise.
1219 * c-typeprint.c: Likewise.
1220 * c-valprint.c: Likewise.
1221 * charset.c: Likewise.
1222 * cli-out.c: Likewise.
1223 * cli/cli-cmds.c: Likewise.
1224 * cli/cli-decode.c: Likewise.
1225 * cli/cli-dump.c: Likewise.
1226 * cli/cli-interp.c: Likewise.
1227 * cli/cli-logging.c: Likewise.
1228 * cli/cli-script.c: Likewise.
1229 * cli/cli-setshow.c: Likewise.
1230 * cli/cli-utils.c: Likewise.
1231 * coffread.c: Likewise.
1232 * common/agent.c: Likewise.
1233 * common/buffer.c: Likewise.
1234 * common/buffer.h: Likewise.
1235 * common/common-utils.c: Likewise.
1236 * common/filestuff.c: Likewise.
1237 * common/filestuff.c: Likewise.
1238 * common/format.c: Likewise.
1239 * common/print-utils.c: Likewise.
1240 * common/rsp-low.c: Likewise.
1241 * common/signals.c: Likewise.
1242 * common/vec.h: Likewise.
1243 * common/xml-utils.c: Likewise.
1244 * core-regset.c: Likewise.
1245 * corefile.c: Likewise.
1246 * corelow.c: Likewise.
1247 * cp-abi.c: Likewise.
1248 * cp-name-parser.y: Likewise.
1249 * cp-support.c: Likewise.
1250 * cp-valprint.c: Likewise.
1251 * cris-tdep.c: Likewise.
1252 * d-exp.y: Likewise.
1253 * darwin-nat.c: Likewise.
1254 * dbxread.c: Likewise.
1255 * dcache.c: Likewise.
1256 * demangle.c: Likewise.
1257 * dicos-tdep.c: Likewise.
1258 * disasm.c: Likewise.
1259 * doublest.c: Likewise.
1260 * dsrec.c: Likewise.
1261 * dummy-frame.c: Likewise.
1262 * dwarf2-frame.c: Likewise.
1263 * dwarf2loc.c: Likewise.
1264 * dwarf2read.c: Likewise.
1265 * elfread.c: Likewise.
1266 * environ.c: Likewise.
1268 * event-loop.c: Likewise.
1269 * exceptions.c: Likewise.
1271 * expprint.c: Likewise.
1272 * f-exp.y: Likewise.
1273 * f-lang.c: Likewise.
1274 * f-typeprint.c: Likewise.
1275 * f-valprint.c: Likewise.
1276 * fbsd-nat.c: Likewise.
1277 * findcmd.c: Likewise.
1278 * findvar.c: Likewise.
1279 * fork-child.c: Likewise.
1280 * frame.c: Likewise.
1281 * frv-linux-tdep.c: Likewise.
1282 * frv-tdep.c: Likewise.
1284 * gdb_bfd.c: Likewise.
1285 * gdbarch.c: Likewise.
1286 * gdbarch.sh: Likewise.
1287 * gdbtypes.c: Likewise.
1288 * gnu-nat.c: Likewise.
1289 * gnu-v2-abi.c: Likewise.
1290 * gnu-v3-abi.c: Likewise.
1291 * go-exp.y: Likewise.
1292 * go-lang.c: Likewise.
1293 * go32-nat.c: Likewise.
1294 * guile/guile.c: Likewise.
1295 * guile/scm-auto-load.c: Likewise.
1296 * hppa-hpux-tdep.c: Likewise.
1297 * hppa-linux-nat.c: Likewise.
1298 * hppanbsd-tdep.c: Likewise.
1299 * hppaobsd-tdep.c: Likewise.
1300 * i386-cygwin-tdep.c: Likewise.
1301 * i386-dicos-tdep.c: Likewise.
1302 * i386-linux-tdep.c: Likewise.
1303 * i386-nto-tdep.c: Likewise.
1304 * i386-sol2-tdep.c: Likewise.
1305 * i386-tdep.c: Likewise.
1306 * i386bsd-tdep.c: Likewise.
1307 * i386gnu-nat.c: Likewise.
1308 * i386nbsd-tdep.c: Likewise.
1309 * i386obsd-tdep.c: Likewise.
1310 * i387-tdep.c: Likewise.
1311 * ia64-libunwind-tdep.c: Likewise.
1312 * ia64-linux-nat.c: Likewise.
1313 * inf-child.c: Likewise.
1314 * inf-ptrace.c: Likewise.
1315 * inf-ttrace.c: Likewise.
1316 * infcall.c: Likewise.
1317 * infcmd.c: Likewise.
1318 * inflow.c: Likewise.
1319 * infrun.c: Likewise.
1320 * interps.c: Likewise.
1321 * iq2000-tdep.c: Likewise.
1322 * irix5-nat.c: Likewise.
1323 * jv-exp.y: Likewise.
1324 * jv-lang.c: Likewise.
1325 * jv-typeprint.c: Likewise.
1326 * jv-valprint.c: Likewise.
1327 * language.c: Likewise.
1328 * linux-fork.c: Likewise.
1329 * linux-nat.c: Likewise.
1330 * lm32-tdep.c: Likewise.
1331 * m2-exp.y: Likewise.
1332 * m2-typeprint.c: Likewise.
1333 * m32c-tdep.c: Likewise.
1334 * m32r-linux-nat.c: Likewise.
1335 * m32r-linux-tdep.c: Likewise.
1336 * m32r-rom.c: Likewise.
1337 * m32r-tdep.c: Likewise.
1338 * m68hc11-tdep.c: Likewise.
1339 * m68k-tdep.c: Likewise.
1340 * m68kbsd-tdep.c: Likewise.
1341 * m68klinux-nat.c: Likewise.
1342 * m68klinux-tdep.c: Likewise.
1343 * m88k-tdep.c: Likewise.
1344 * machoread.c: Likewise.
1345 * macrocmd.c: Likewise.
1347 * mdebugread.c: Likewise.
1348 * mem-break.c: Likewise.
1349 * memattr.c: Likewise.
1350 * memory-map.c: Likewise.
1351 * mep-tdep.c: Likewise.
1352 * mi/mi-cmd-break.c: Likewise.
1353 * mi/mi-cmd-disas.c: Likewise.
1354 * mi/mi-cmd-env.c: Likewise.
1355 * mi/mi-cmd-stack.c: Likewise.
1356 * mi/mi-cmd-var.c: Likewise.
1357 * mi/mi-cmds.c: Likewise.
1358 * mi/mi-console.c: Likewise.
1359 * mi/mi-getopt.c: Likewise.
1360 * mi/mi-interp.c: Likewise.
1361 * mi/mi-main.c: Likewise.
1362 * mi/mi-parse.c: Likewise.
1363 * microblaze-rom.c: Likewise.
1364 * microblaze-tdep.c: Likewise.
1365 * mingw-hdep.c: Likewise.
1366 * minidebug.c: Likewise.
1367 * minsyms.c: Likewise.
1368 * mips-irix-tdep.c: Likewise.
1369 * mips-linux-tdep.c: Likewise.
1370 * mips-tdep.c: Likewise.
1371 * mips64obsd-tdep.c: Likewise.
1372 * mipsnbsd-tdep.c: Likewise.
1373 * mipsread.c: Likewise.
1374 * mn10300-linux-tdep.c: Likewise.
1375 * mn10300-tdep.c: Likewise.
1376 * monitor.c: Likewise.
1377 * moxie-tdep.c: Likewise.
1378 * mt-tdep.c: Likewise.
1379 * nat/linux-btrace.c: Likewise.
1380 * nat/linux-osdata.c: Likewise.
1381 * nat/linux-procfs.c: Likewise.
1382 * nat/linux-ptrace.c: Likewise.
1383 * nat/linux-waitpid.c: Likewise.
1384 * nbsd-tdep.c: Likewise.
1385 * nios2-linux-tdep.c: Likewise.
1386 * nto-procfs.c: Likewise.
1387 * nto-tdep.c: Likewise.
1388 * objc-lang.c: Likewise.
1389 * objfiles.c: Likewise.
1390 * opencl-lang.c: Likewise.
1391 * osabi.c: Likewise.
1392 * osdata.c: Likewise.
1393 * p-exp.y: Likewise.
1394 * p-lang.c: Likewise.
1395 * p-typeprint.c: Likewise.
1396 * parse.c: Likewise.
1397 * posix-hdep.c: Likewise.
1398 * ppc-linux-nat.c: Likewise.
1399 * ppc-sysv-tdep.c: Likewise.
1400 * ppcfbsd-tdep.c: Likewise.
1401 * ppcnbsd-tdep.c: Likewise.
1402 * ppcobsd-tdep.c: Likewise.
1403 * printcmd.c: Likewise.
1404 * procfs.c: Likewise.
1405 * prologue-value.c: Likewise.
1406 * python/py-auto-load.c: Likewise.
1407 * python/py-gdb-readline.c: Likewise.
1408 * ravenscar-thread.c: Likewise.
1409 * regcache.c: Likewise.
1410 * registry.c: Likewise.
1411 * remote-fileio.c: Likewise.
1412 * remote-m32r-sdi.c: Likewise.
1413 * remote-mips.c: Likewise.
1414 * remote-notif.c: Likewise.
1415 * remote-sim.c: Likewise.
1416 * remote.c: Likewise.
1417 * reverse.c: Likewise.
1418 * rs6000-aix-tdep.c: Likewise.
1419 * ser-base.c: Likewise.
1420 * ser-go32.c: Likewise.
1421 * ser-mingw.c: Likewise.
1422 * ser-pipe.c: Likewise.
1423 * ser-tcp.c: Likewise.
1424 * ser-unix.c: Likewise.
1425 * serial.c: Likewise.
1426 * sh-tdep.c: Likewise.
1427 * sh64-tdep.c: Likewise.
1428 * shnbsd-tdep.c: Likewise.
1430 * sol-thread.c: Likewise.
1431 * solib-dsbt.c: Likewise.
1432 * solib-frv.c: Likewise.
1433 * solib-osf.c: Likewise.
1434 * solib-som.c: Likewise.
1435 * solib-spu.c: Likewise.
1436 * solib-target.c: Likewise.
1437 * solib.c: Likewise.
1438 * somread.c: Likewise.
1439 * source.c: Likewise.
1440 * sparc-nat.c: Likewise.
1441 * sparc-sol2-tdep.c: Likewise.
1442 * sparc-tdep.c: Likewise.
1443 * sparc64-tdep.c: Likewise.
1444 * sparc64fbsd-tdep.c: Likewise.
1445 * sparc64nbsd-tdep.c: Likewise.
1446 * sparcnbsd-tdep.c: Likewise.
1447 * spu-linux-nat.c: Likewise.
1448 * spu-multiarch.c: Likewise.
1449 * spu-tdep.c: Likewise.
1450 * stabsread.c: Likewise.
1451 * stack.c: Likewise.
1452 * std-regs.c: Likewise.
1453 * symfile.c: Likewise.
1454 * symmisc.c: Likewise.
1455 * symtab.c: Likewise.
1456 * target.c: Likewise.
1457 * thread.c: Likewise.
1458 * tilegx-linux-nat.c: Likewise.
1459 * tilegx-tdep.c: Likewise.
1461 * tracepoint.c: Likewise.
1462 * tui/tui-command.c: Likewise.
1463 * tui/tui-data.c: Likewise.
1464 * tui/tui-disasm.c: Likewise.
1465 * tui/tui-file.c: Likewise.
1466 * tui/tui-layout.c: Likewise.
1467 * tui/tui-out.c: Likewise.
1468 * tui/tui-regs.c: Likewise.
1469 * tui/tui-source.c: Likewise.
1470 * tui/tui-stack.c: Likewise.
1471 * tui/tui-win.c: Likewise.
1472 * tui/tui-windata.c: Likewise.
1473 * tui/tui-winsource.c: Likewise.
1474 * typeprint.c: Likewise.
1475 * ui-file.c: Likewise.
1476 * ui-out.c: Likewise.
1477 * user-regs.c: Likewise.
1478 * utils.c: Likewise.
1479 * v850-tdep.c: Likewise.
1480 * valarith.c: Likewise.
1481 * valops.c: Likewise.
1482 * valprint.c: Likewise.
1483 * value.c: Likewise.
1484 * varobj.c: Likewise.
1485 * vax-tdep.c: Likewise.
1486 * vaxnbsd-tdep.c: Likewise.
1487 * vaxobsd-tdep.c: Likewise.
1488 * windows-nat.c: Likewise.
1489 * xcoffread.c: Likewise.
1490 * xml-support.c: Likewise.
1491 * xstormy16-tdep.c: Likewise.
1492 * xtensa-linux-nat.c: Likewise.
1494 2014-08-07 Gary Benson <gbenson@redhat.com>
1496 * common/common-defs.h: Include gdb_assert.h.
1497 * aarch64-tdep.c: Do not include gdb_assert.h.
1498 * addrmap.c: Likewise.
1499 * aix-thread.c: Likewise.
1500 * alpha-linux-tdep.c: Likewise.
1501 * alpha-mdebug-tdep.c: Likewise.
1502 * alphanbsd-tdep.c: Likewise.
1503 * amd64-nat.c: Likewise.
1504 * amd64-tdep.c: Likewise.
1505 * amd64bsd-nat.c: Likewise.
1506 * amd64fbsd-nat.c: Likewise.
1507 * amd64fbsd-tdep.c: Likewise.
1508 * amd64nbsd-nat.c: Likewise.
1509 * amd64nbsd-tdep.c: Likewise.
1510 * amd64obsd-nat.c: Likewise.
1511 * amd64obsd-tdep.c: Likewise.
1512 * arch-utils.c: Likewise.
1513 * arm-tdep.c: Likewise.
1514 * armbsd-tdep.c: Likewise.
1516 * bcache.c: Likewise.
1517 * bfin-tdep.c: Likewise.
1518 * blockframe.c: Likewise.
1519 * breakpoint.c: Likewise.
1520 * bsd-kvm.c: Likewise.
1521 * bsd-uthread.c: Likewise.
1522 * buildsym.c: Likewise.
1523 * c-exp.y: Likewise.
1524 * c-lang.c: Likewise.
1525 * charset.c: Likewise.
1526 * cleanups.c: Likewise.
1527 * cli-out.c: Likewise.
1528 * cli/cli-decode.c: Likewise.
1529 * cli/cli-dump.c: Likewise.
1530 * cli/cli-logging.c: Likewise.
1531 * cli/cli-script.c: Likewise.
1532 * cli/cli-utils.c: Likewise.
1533 * coffread.c: Likewise.
1534 * common/common-utils.c: Likewise.
1535 * common/queue.h: Likewise.
1536 * common/signals.c: Likewise.
1537 * common/vec.h: Likewise.
1538 * complaints.c: Likewise.
1539 * completer.c: Likewise.
1540 * corelow.c: Likewise.
1541 * cp-abi.c: Likewise.
1542 * cp-name-parser.y: Likewise.
1543 * cp-namespace.c: Likewise.
1544 * cp-support.c: Likewise.
1545 * cris-tdep.c: Likewise.
1546 * dbxread.c: Likewise.
1547 * dictionary.c: Likewise.
1548 * doublest.c: Likewise.
1549 * dsrec.c: Likewise.
1550 * dummy-frame.c: Likewise.
1551 * dwarf2-frame-tailcall.c: Likewise.
1552 * dwarf2-frame.c: Likewise.
1553 * dwarf2expr.c: Likewise.
1554 * dwarf2loc.c: Likewise.
1555 * dwarf2read.c: Likewise.
1557 * event-loop.c: Likewise.
1558 * exceptions.c: Likewise.
1559 * expprint.c: Likewise.
1560 * f-valprint.c: Likewise.
1561 * fbsd-nat.c: Likewise.
1562 * findvar.c: Likewise.
1563 * frame-unwind.c: Likewise.
1564 * frame.c: Likewise.
1565 * frv-tdep.c: Likewise.
1566 * gcore.c: Likewise.
1567 * gdb-dlfcn.c: Likewise.
1568 * gdb_bfd.c: Likewise.
1569 * gdbarch.c: Likewise.
1570 * gdbarch.sh: Likewise.
1571 * gdbtypes.c: Likewise.
1572 * gnu-nat.c: Likewise.
1573 * gnu-v3-abi.c: Likewise.
1574 * go-lang.c: Likewise.
1575 * guile/scm-exception.c: Likewise.
1576 * guile/scm-gsmob.c: Likewise.
1577 * guile/scm-lazy-string.c: Likewise.
1578 * guile/scm-math.c: Likewise.
1579 * guile/scm-pretty-print.c: Likewise.
1580 * guile/scm-safe-call.c: Likewise.
1581 * guile/scm-utils.c: Likewise.
1582 * guile/scm-value.c: Likewise.
1583 * h8300-tdep.c: Likewise.
1584 * hppa-hpux-nat.c: Likewise.
1585 * hppa-tdep.c: Likewise.
1586 * hppanbsd-tdep.c: Likewise.
1587 * hppaobsd-tdep.c: Likewise.
1588 * i386-darwin-nat.c: Likewise.
1589 * i386-darwin-tdep.c: Likewise.
1590 * i386-nto-tdep.c: Likewise.
1591 * i386-tdep.c: Likewise.
1592 * i386bsd-nat.c: Likewise.
1593 * i386fbsd-tdep.c: Likewise.
1594 * i386gnu-nat.c: Likewise.
1595 * i386nbsd-tdep.c: Likewise.
1596 * i386obsd-tdep.c: Likewise.
1597 * i387-tdep.c: Likewise.
1598 * ia64-libunwind-tdep.c: Likewise.
1599 * ia64-tdep.c: Likewise.
1600 * inf-ptrace.c: Likewise.
1601 * inf-ttrace.c: Likewise.
1602 * infcall.c: Likewise.
1603 * infcmd.c: Likewise.
1604 * infrun.c: Likewise.
1605 * inline-frame.c: Likewise.
1606 * interps.c: Likewise.
1607 * jv-lang.c: Likewise.
1608 * jv-typeprint.c: Likewise.
1609 * linux-fork.c: Likewise.
1610 * linux-nat.c: Likewise.
1611 * linux-thread-db.c: Likewise.
1612 * m32c-tdep.c: Likewise.
1613 * m32r-linux-nat.c: Likewise.
1614 * m32r-tdep.c: Likewise.
1615 * m68k-tdep.c: Likewise.
1616 * m68kbsd-nat.c: Likewise.
1617 * m68kbsd-tdep.c: Likewise.
1618 * m88k-tdep.c: Likewise.
1619 * machoread.c: Likewise.
1620 * macroexp.c: Likewise.
1621 * macrotab.c: Likewise.
1622 * maint.c: Likewise.
1623 * mdebugread.c: Likewise.
1624 * memory-map.c: Likewise.
1625 * mep-tdep.c: Likewise.
1626 * mi/mi-common.c: Likewise.
1627 * microblaze-tdep.c: Likewise.
1628 * mingw-hdep.c: Likewise.
1629 * mips-linux-nat.c: Likewise.
1630 * mips-linux-tdep.c: Likewise.
1631 * mips-tdep.c: Likewise.
1632 * mips64obsd-tdep.c: Likewise.
1633 * mipsnbsd-tdep.c: Likewise.
1634 * mn10300-linux-tdep.c: Likewise.
1635 * mn10300-tdep.c: Likewise.
1636 * moxie-tdep.c: Likewise.
1637 * mt-tdep.c: Likewise.
1638 * nat/linux-btrace.c: Likewise.
1639 * nat/linux-osdata.c: Likewise.
1640 * nat/linux-ptrace.c: Likewise.
1641 * nat/mips-linux-watch.c: Likewise.
1642 * nios2-linux-tdep.c: Likewise.
1643 * nios2-tdep.c: Likewise.
1644 * objc-lang.c: Likewise.
1645 * objfiles.c: Likewise.
1646 * obsd-nat.c: Likewise.
1647 * opencl-lang.c: Likewise.
1648 * osabi.c: Likewise.
1649 * parse.c: Likewise.
1650 * ppc-linux-nat.c: Likewise.
1651 * ppc-sysv-tdep.c: Likewise.
1652 * ppcfbsd-nat.c: Likewise.
1653 * ppcfbsd-tdep.c: Likewise.
1654 * ppcnbsd-nat.c: Likewise.
1655 * ppcnbsd-tdep.c: Likewise.
1656 * ppcobsd-nat.c: Likewise.
1657 * ppcobsd-tdep.c: Likewise.
1658 * printcmd.c: Likewise.
1659 * procfs.c: Likewise.
1660 * prologue-value.c: Likewise.
1661 * psymtab.c: Likewise.
1662 * python/py-lazy-string.c: Likewise.
1663 * python/py-value.c: Likewise.
1664 * regcache.c: Likewise.
1665 * reggroups.c: Likewise.
1666 * registry.c: Likewise.
1667 * remote-sim.c: Likewise.
1668 * remote.c: Likewise.
1669 * rs6000-aix-tdep.c: Likewise.
1670 * rs6000-tdep.c: Likewise.
1671 * s390-linux-tdep.c: Likewise.
1672 * score-tdep.c: Likewise.
1673 * ser-base.c: Likewise.
1674 * ser-mingw.c: Likewise.
1675 * sh-tdep.c: Likewise.
1676 * sh64-tdep.c: Likewise.
1677 * solib-darwin.c: Likewise.
1678 * solib-spu.c: Likewise.
1679 * solib-svr4.c: Likewise.
1680 * source.c: Likewise.
1681 * sparc-nat.c: Likewise.
1682 * sparc-sol2-tdep.c: Likewise.
1683 * sparc-tdep.c: Likewise.
1684 * sparc64-sol2-tdep.c: Likewise.
1685 * sparc64-tdep.c: Likewise.
1686 * sparc64fbsd-tdep.c: Likewise.
1687 * sparc64nbsd-tdep.c: Likewise.
1688 * sparc64obsd-tdep.c: Likewise.
1689 * sparcnbsd-tdep.c: Likewise.
1690 * sparcobsd-tdep.c: Likewise.
1691 * spu-multiarch.c: Likewise.
1692 * spu-tdep.c: Likewise.
1693 * stabsread.c: Likewise.
1694 * stack.c: Likewise.
1695 * symfile.c: Likewise.
1696 * symtab.c: Likewise.
1697 * target-descriptions.c: Likewise.
1698 * target-memory.c: Likewise.
1699 * target.c: Likewise.
1700 * tic6x-linux-tdep.c: Likewise.
1701 * tic6x-tdep.c: Likewise.
1702 * tilegx-linux-nat.c: Likewise.
1703 * tilegx-tdep.c: Likewise.
1705 * tramp-frame.c: Likewise.
1706 * tui/tui-out.c: Likewise.
1707 * tui/tui-winsource.c: Likewise.
1708 * ui-out.c: Likewise.
1709 * user-regs.c: Likewise.
1710 * utils.c: Likewise.
1711 * v850-tdep.c: Likewise.
1712 * valops.c: Likewise.
1713 * value.c: Likewise.
1714 * varobj.c: Likewise.
1715 * vax-nat.c: Likewise.
1716 * xml-syscall.c: Likewise.
1717 * xml-tdesc.c: Likewise.
1718 * xstormy16-tdep.c: Likewise.
1719 * xtensa-linux-nat.c: Likewise.
1720 * xtensa-tdep.c: Likewise.
1722 2014-08-07 Gary Benson <gbenson@redhat.com>
1724 * common/common-defs.h: Include common-utils.h.
1725 * defs.h: Do not include common-utils.h.
1726 * common/gdb_assert.h: Likewise.
1727 * darwin-nat.h: Likewise.
1728 * nat/linux-btrace.c: Likewise.
1729 * target/waitstatus.h: Likewise.
1731 2014-08-07 Gary Benson <gbenson@redhat.com>
1733 * common/common-defs.h: Include ptid.h.
1734 * defs.h: Do not include ptid.h.
1735 * inferior.h: Likewise.
1736 * infrun.h: Likewise.
1737 * nat/linux-btrace.h: Likewise.
1738 * nat/linux-osdata.h: Likewise.
1739 * target/waitstatus.h: Likewise.
1741 2014-08-07 Gary Benson <gbenson@redhat.com>
1743 * common/common-defs.h: Include gdb_locale.h.
1744 * defs.h: Do not include gdb_locale.h.
1746 2014-08-07 Gary Benson <gbenson@redhat.com>
1748 * common/common-defs.h: Include gdb/signals.h.
1749 * defs.h: Do not include gdb/signals.h.
1751 2014-08-07 Gary Benson <gbenson@redhat.com>
1753 * common/common-defs.h: Include pathmax.h.
1754 * defs.h: Do not include pathmax.h.
1756 2014-08-07 Gary Benson <gbenson@redhat.com>
1758 * common/common-defs.h: Include libiberty.h.
1759 * defs.h: Do not include libiberty.h.
1760 * common/queue.h: Likewise.
1761 * cp-name-parser.y: Likewise.
1762 * mi/mi-cmd-catch.c: Likewise.
1763 * python/python.c: Likewise.
1765 2014-08-07 Gary Benson <gbenson@redhat.com>
1767 * common/common-defs.h: Include ansidecl.h.
1768 * defs.h: Do not include ansidecl.h.
1769 * common/buffer.h: Likewise.
1770 * common/common-utils.h: Likewise.
1772 2014-08-07 Gary Benson <gbenson@redhat.com>
1774 * common/common-defs.h: Include stddef.h.
1775 * defs.h: Do not include stddef.h.
1776 * common/common-utils.h: Likewise.
1777 * amd64fbsd-nat.c: Likewise.
1778 * bcache.c: Likewise.
1779 * charset.c: Likewise.
1780 * common/buffer.h: Likewise.
1781 * common/vec.h: Likewise.
1782 * i386bsd-nat.c: Likewise.
1783 * nat/linux-btrace.h: Likewise.
1784 * ppcfbsd-nat.c: Likewise.
1785 * ppcnbsd-tdep.h: Likewise.
1786 * ppcobsd-nat.c: Likewise.
1787 * ppcobsd-tdep.h: Likewise.
1788 * python/py-gdb-readline.c: Likewise.
1790 2014-08-07 Gary Benson <gbenson@redhat.com>
1792 * common/common-defs.h: Include stdarg.h.
1793 * defs.h: Do not include stdarg.h.
1794 * ada-lang.c: Likewise.
1795 * common/common-utils.h: Likewise.
1796 * guile/scm-string.c: Likewise.
1797 * guile/scm-utils.c: Likewise.
1798 * m32c-tdep.c: Likewise.
1800 2014-08-07 Gary Benson <gbenson@redhat.com>
1802 * common/common-defs.h: Include stdlib.h.
1803 * defs.h: Do not include stdlib.h.
1804 * addrmap.c: Likewise.
1805 * bcache.c: Likewise.
1806 * common/buffer.c: Likewise.
1807 * common/common-utils.c: Likewise.
1808 * cp-name-parser.y: Likewise.
1809 * go32-nat.c: Likewise.
1810 * mn10300-linux-tdep.c: Likewise.
1811 * nat/linux-osdata.c: Likewise.
1812 * tui/tui.c: Likewise.
1813 * windows-nat.c: Likewise.
1815 2014-08-07 Gary Benson <gbenson@redhat.com>
1817 * common/common-defs.h: Include stdio.h.
1818 * defs.h: Do not include stdio.h.
1819 * ada-lang.c: Likewise.
1820 * common/buffer.c: Likewise.
1821 * common/common-utils.c: Likewise.
1822 * cp-name-parser.y: Likewise.
1823 * gnu-nat.c: Likewise.
1824 * go32-nat.c: Likewise.
1825 * i386gnu-nat.c: Likewise.
1826 * proc-api.c: Likewise.
1827 * proc-events.c: Likewise.
1828 * proc-flags.c: Likewise.
1829 * proc-why.c: Likewise.
1830 * python/python-internal.h: Likewise.
1831 * target-memory.c: Likewise.
1832 * tui/tui-io.c: Likewise.
1833 * tui/tui.c: Likewise.
1835 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1837 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1838 (scan_dyntag_auxv): Same.
1840 2014-08-06 Yao Qi <yao@codesourcery.com>
1842 * amd64-linux-nat.c: Remove duplicated include
1844 * i386-linux-nat.c: Likewise.
1846 2014-08-06 Yao Qi <yao@codesourcery.com>
1848 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1849 operand" with "Special opcode" in comments.
1851 2014-08-05 Gary Benson <gbenson@redhat.com>
1853 * interps.c (initialize_interps): Remove prototype.
1854 (interpreter_initialized): Remove static global.
1855 (interp_add): Do not call initialize_interps.
1856 (initialize_interps): Remove function.
1858 2014-08-05 Gary Benson <gbenson@redhat.com>
1860 * utils.c (vwarning): Remove spurious va_end.
1862 2014-08-05 Alan Modra <amodra@gmail.com>
1864 * charset.c (convert_between_encodings): Cast result of obstack_base.
1865 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1866 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1867 (read_unwind_info): Use size_t for some locals.
1868 * jit.c (finalize_symtab): Likewise.
1869 * utils.c (hashtab_obstack_allocate): Likewise.
1870 * symmisc.c (print_objfile_statistics): Update format strings.
1872 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1874 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1875 (Changes in GDB 7.8): ... here.
1877 2014-08-04 Tom Tromey <tromey@redhat.com>
1879 * target.c (set_targetdebug): New function.
1880 (initialize_targets): Pass set_targetdebug when creating "set
1883 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1885 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1886 if detecting a variable-sized field that is not the last field.
1887 Fix struct type length computation.
1889 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1891 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1894 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1896 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1897 Remove "+ 8" offset in computation of CHAIN_VMA.
1899 2014-07-31 Doug Evans <dje@google.com>
1901 * inflow.c (child_terminal_inferior): Add comment.
1902 (child_terminal_ours_for_output): Add comment.
1903 (child_terminal_ours): Add comment.
1904 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1905 (linux_nat_terminal_ours): Add comment.
1907 2014-07-31 Gary Benson <gbenson@redhat.com>
1909 * common/btrace-common.h: Do not include defs.h or server.h.
1910 * nat/mips-linux-watch.h: Likewise.
1911 * gdb-dlfcn.h: Do not include defs.h.
1912 * tracefile.h: Likewise.
1914 2014-07-30 Roland McGrath <mcgrathr@google.com>
1916 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1918 2014-07-30 Tom Tromey <tromey@redhat.com>
1920 * bsd-kvm.c (bsd_kvm_open): Constify.
1921 * corelow.c (core_open): Constify.
1922 * ctf.c (ctf_open): Constify.
1923 * dbug-rom.c (dbug_open): Constify.
1924 * exec.c (exec_open): Constify.
1925 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1926 * microblaze-rom.c (picobug_open): Constify.
1927 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1929 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1930 * record-btrace.c (record_btrace_open): Constify.
1931 * record-full.c (record_full_core_open_1, record_full_open_1)
1932 (record_full_open): Constify.
1933 * remote-m32r-sdi.c (m32r_open): Constify.
1934 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1935 (rockhopper_open, lsi_open): Constify.
1936 * remote-sim.c (gdbsim_open): Constify.
1937 * remote.c (remote_open, extended_remote_open, remote_open_1):
1939 * target.h (struct target_ops) <to_open>: Make "arg" const.
1940 * tracefile-tfile.c (tfile_open): Constify.
1942 2014-07-30 Tom Tromey <tromey@redhat.com>
1944 * breakpoint.c (map_breakpoint_numbers): Update.
1945 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1946 (get_number_const): New function.
1947 (get_number): Rewrite using get_number_const.
1948 (init_number_or_range): Make "string" const.
1949 (number_is_in_list): Make "list" const.
1950 * cli/cli-utils.h (get_number_const): Declare.
1951 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1952 (init_number_or_range, number_is_in_list): Update.
1953 * printcmd.c (map_display_numbers): Update.
1954 * value.c (value_from_history_ref): Constify.
1955 * value.h (value_from_history_ref): Update.
1957 2014-07-30 Tom Tromey <tromey@redhat.com>
1959 * corefile.c (hook_type, call_extra_exec_file_hooks)
1960 (specify_exec_file_hook): Constify.
1961 * exec.c (exec_file_attach): Make "filename" const.
1962 * gdbcore.h (deprecated_exec_file_display_hook)
1963 (specify_exec_file_hook, exec_file_attach): Constify.
1964 * main.c (captured_main): Use catch_command_errors_const.
1966 2014-07-30 Tom Tromey <tromey@redhat.com>
1968 * target.c (open_target): New function.
1969 (add_target_with_completer, add_deprecated_target_alias): Use
1970 set_cmd_sfunc, set_cmd_context.
1971 (debug_to_open): Remove.
1972 (setup_target_debug): Update.
1974 2014-07-30 Yao Qi <yao@codesourcery.com>
1976 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1978 * parse.c (exp_iterate): Update comments.
1980 2014-07-30 Gary Benson <gbenson@redhat.com>
1982 * common/common-defs.h: New file.
1983 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1984 * defs.h: Include common-defs.h.
1985 Do not include config.h or build-gnulib/config.h.
1987 2014-07-30 Gary Benson <gbenson@redhat.com>
1989 * common/common-utils.h: Do not include config.h.
1990 * nat/linux-btrace.h: Likewise.
1992 2014-07-30 Gary Benson <gbenson@redhat.com>
1994 * btrace.c: Include defs.h.
1995 * common/ptid.c: Include defs.h or server.h as appropriate.
1996 * nat/mips-linux-watch.c: Likewise.
1998 2014-07-29 Tom Tromey <tromey@redhat.com>
2000 * target.c (target_is_pushed): Simplify.
2002 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2006 2014-07-29 Yao Qi <yao@codesourcery.com>
2009 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2011 2014-07-28 Doug Evans <xdje42@gmail.com>
2014 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2015 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2018 2014-07-28 Will Newton <will.newton@linaro.org>
2020 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2021 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2022 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2023 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2024 (THUMB2_EABI_SYSCALL): Likewise.
2025 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2027 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2028 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2030 2014-07-27 Doug Evans <xdje42@gmail.com>
2032 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2034 2014-07-27 Doug Evans <xdje42@gmail.com>
2036 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2038 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2039 Doug Evans <xdje42@gmail.com>
2042 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2043 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2044 * configure.ac: Try to use guild to compile an scm file, if it fails
2045 then disable guile support.
2046 * configure: Regenerate.
2047 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2049 (GUILE_COMPILED_FILES): New variable.
2050 (GUILE_FILES) Update.
2051 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2052 (stamp-guile): Compile scm files.
2053 * guile/guile.c (boot_guile_support): New function.
2054 (standard_throw_args_p): New function.
2055 (print_standard_throw_error, print_throw_error): New functions.
2056 (handle_boot_error): New function.
2057 (initialize_scheme_side): Rewrite to call boot_guile_support.
2058 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2059 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2061 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2062 Doug Evans <xdje42@gmail.com>
2065 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2066 * guile/lib/gdb/support.scm: New file.
2067 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2068 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2070 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2072 (%assert-type): Ditto, and renamed to assert-type.
2073 (%exception-print-style): Delete.
2075 2014-07-26 Doug Evans <xdje42@gmail.com>
2078 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2079 * configure: Regenerate.
2080 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2082 (PYTHON_FILES): New variable.
2083 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2084 (GUILE_FILES): New variable.
2085 (stamp-python, install-python, uninstall-python): Handle empty
2087 (stamp-guile, install-guile, uninstall-guile): Ditto.
2089 2014-07-26 Doug Evans <xdje42@gmail.com>
2092 * guile/lib/gdb.scm (pretty-printers): Export.
2093 (set-pretty-printers!): Export.
2094 * guile/lib/gdb/printing.scm (gdb module): Update.
2095 (prepend-pretty-printer!, append-pretty-printer!): Update.
2096 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2097 (pretty_printer_list_var): Delete.
2098 (pretty_printer_list): New static global.
2099 (gdbscm_pretty_printers): New function.
2100 (gdbscm_set_pretty_printers_x): New function.
2101 (ppscm_find_pretty_printer_from_gdb): Update.
2102 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2103 (gdbscm_initialize_pretty_printers): Update.
2105 2014-07-26 Doug Evans <xdje42@gmail.com>
2108 * configure.ac: Add check for header gc/gc.h.
2109 Add check for function setenv.
2110 * configure: Regenerate.
2111 * config.in: Regenerate.
2112 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2114 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2116 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2117 variation in gdbarch matching.
2119 2014-07-25 Tom Tromey <tromey@redhat.com>
2121 * exec.c (using_exec_ops): Remove.
2122 (exec_close_1): Update. Remove extraneous block, reindent.
2123 (add_target_sections): Use target_is_pushed.
2125 2014-07-25 Pedro Alves <palves@redhat.com>
2127 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2128 * monitor.c (monitor_create_inferior): Likewise.
2129 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2130 * remote-sim.c (gdbsim_create_inferior): Likewise.
2131 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2132 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2133 * windows-nat.c (do_initial_windows_stuff): Likewise.
2135 2014-07-25 Pedro Alves <palves@redhat.com>
2137 * NEWS: Mention signal passing and "signal" command changes.
2138 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2140 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2142 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2143 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2144 (jump_command): Adjust clear_proceed_status call.
2145 (signal_command): Warn if other thread that are resumed have
2146 signals that will be delivered. Adjust clear_proceed_status call.
2147 (until_next_command, finish_command)
2148 (proceed_after_attach_callback, attach_command_post_wait)
2149 (attach_command): Adjust clear_proceed_status call.
2150 * infrun.c (proceed_after_vfork_done): Likewise.
2151 (proceed_after_attach_callback): Adjust comment.
2152 (clear_proceed_status_thread): Clear stop_signal if not in pass
2154 (clear_proceed_status_callback): Delete.
2155 (clear_proceed_status): New 'step' parameter. Only clear the
2156 proceed status of threads the command being prepared is about to
2158 (proceed): If passed in an explicit signal, override stop_signal
2159 with it. Don't pass the last stop signal to the thread we're
2161 (init_wait_for_inferior): Adjust clear_proceed_status call.
2162 (switch_back_to_stepped_thread): Clear the signal if it should not
2164 * infrun.h (clear_proceed_status): New 'step' parameter.
2165 (user_visible_resume_ptid): Add comment.
2166 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2167 signal is in pass state.
2168 * remote.c (append_pending_thread_resumptions): Likewise.
2169 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2171 2014-07-25 Tom Tromey <tromey@redhat.com>
2173 * target.h (target_stopped_data_address)
2174 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2177 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2179 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2181 (avr_pointer_to_address): Likewise.
2183 2014-07-24 Tom Tromey <tromey@redhat.com>
2185 * monitor.c (compile_pattern): Update.
2186 * target.h (struct target_ops) <to_shortname, to_longname,
2189 2014-07-24 Tom Tromey <tromey@redhat.com>
2191 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2192 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2193 (add_info_alias, add_com): Make "doc" const.
2194 (print_doc_line): Make "str" const.
2195 (delete_cmd): Update.
2196 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2197 (print_doc_line): Update.
2198 * cli/cli-script.c (document_command): Update.
2199 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2200 (add_com, add_info, add_info_alias): Update.
2201 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2202 * python/py-cmd.c (cmdpy_destroyer): Update.
2204 2014-07-24 Tom Tromey <tromey@redhat.com>
2206 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2207 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2208 (help_cmd_list): Constify.
2209 (lookup_cmd): Update.
2210 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2212 (help_cmd_list, apropos_cmd): Update.
2213 * cli/cli-script.c (show_user): Update.
2214 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2215 * cli/cli-setshow.h (cmd_show_list): Update.
2216 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2217 (cmd_show_list): Update.
2218 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2219 * python/py-cmd.c (cmdpy_destroyer): Update.
2221 2014-07-24 Tom Tromey <tromey@redhat.com>
2223 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2224 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2226 * command.h (deprecate_cmd): Update.
2227 * maint.c (maintenance_do_deprecate): Add casts.
2229 2014-07-24 Tom Tromey <tromey@redhat.com>
2231 * cli/cli-decode.c (help_cmd): Make parameter "const".
2232 * cli/cli-decode.h (help_cmd): Update.
2234 2014-07-24 Tom Tromey <tromey@redhat.com>
2236 * stack.c (up_silently_base, down_silently_base): Make argument
2239 2014-07-24 Tom Tromey <tromey@redhat.com>
2241 * solib.c (solib_add): Make "pattern" const.
2242 * solib.h (solib_add): Update.
2244 2014-07-24 Tom Tromey <tromey@redhat.com>
2246 * remote.c (remote_serial_open, print_packet, putpkt)
2247 (putpkt_binary): Constify.
2248 * remote.h (putpkt): Update.
2250 2014-07-24 Tom Tromey <tromey@redhat.com>
2252 * monitor.c (monitor_open): Make "args" const.
2253 * monitor.h (monitor_open): Update.
2255 2014-07-24 Tom Tromey <tromey@redhat.com>
2257 * maint.c (match_bfd_flags): Make "string" const.
2258 (print_bfd_section_info): Remove casts.
2259 (print_objfile_section_info): Make "string" const.
2261 2014-07-24 Tom Tromey <tromey@redhat.com>
2263 * inf-child.c (inf_child_open_target): Make "arg" const.
2264 * inf-child.h (inf_child_open_target): Update.
2266 2014-07-24 Tom Tromey <tromey@redhat.com>
2268 * environ.c (unset_in_environ): Make "var" const.
2269 * environ.h (unset_in_environ): Update.
2271 2014-07-24 Tom Tromey <tromey@redhat.com>
2273 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2275 (scan_filename_with_cleanup): Likewise.
2276 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2277 Make arguments const.
2278 (restore_command): Update.
2280 2014-07-24 Pedro Alves <palves@redhat.com>
2282 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2284 2014-07-24 Tom Tromey <tromey@redhat.com>
2285 Gary Benson <gbenson@redhat.com>
2287 * nat/linux-ptrace.c (additional_flags): New global.
2288 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2289 additional_flags; don't check GDBSERVER.
2290 (linux_ptrace_set_additional_flags): New function.
2291 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2293 * linux-nat.c (_initialize_linux_nat): Call
2294 linux_ptrace_set_additional_flags.
2296 2014-07-24 Tom Tromey <tromey@redhat.com>
2298 * make-target-delegates (munge_type, write_debugmethod): New
2300 (debug_names): New global.
2301 ($TARGET_DEBUG_PRINTER): New global.
2302 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2304 Write debug methods. Generate init_debug_target.
2305 * target-debug.h: New file.
2306 * target-delegates.c: Rebuild.
2307 * target.c: Include target-debug.h.
2308 (debug_target): Hoist definition.
2309 (target_kill, target_get_section_table, target_memory_map)
2310 (target_flash_erase, target_flash_done, target_detach)
2311 (target_disconnect, target_wait, target_resume)
2312 (target_pass_signals, target_program_signals, target_follow_fork)
2313 (target_mourn_inferior, target_search_memory)
2314 (target_thread_address_space, target_close)
2315 (target_find_new_threads, target_core_of_thread)
2316 (target_verify_memory, target_insert_mask_watchpoint)
2317 (target_remove_mask_watchpoint): Remove targetdebug code.
2318 (debug_to_post_attach, debug_to_prepare_to_store)
2319 (debug_to_files_info, debug_to_insert_breakpoint)
2320 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2321 (debug_to_region_ok_for_hw_watchpoint)
2322 (debug_to_can_accel_watchpoint_condition)
2323 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2324 (debug_to_watchpoint_addr_within_range)
2325 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2326 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2327 (debug_to_terminal_init, debug_to_terminal_inferior)
2328 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2329 (debug_to_terminal_save_ours, debug_to_terminal_info)
2330 (debug_to_load, debug_to_post_startup_inferior)
2331 (debug_to_insert_fork_catchpoint)
2332 (debug_to_remove_fork_catchpoint)
2333 (debug_to_insert_vfork_catchpoint)
2334 (debug_to_remove_vfork_catchpoint)
2335 (debug_to_insert_exec_catchpoint)
2336 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2337 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2338 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2339 (setup_target_debug): Call init_debug_target.
2340 * target.h (TARGET_DEBUG_PRINTER): New macro.
2341 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2342 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2344 2014-07-24 Gary Benson <gbenson@redhat.com>
2346 * exceptions.h (throw_vfatal): Renamed to...
2347 (throw_vquit): New declaration.
2348 (throw_quit): Likewise.
2349 * exceptions.c (throw_vfatal): Renamed to...
2350 (throw_vquit): New function.
2351 (throw_quit): Likewise.
2352 (throw_error): Call throw_verror rather than throw_it.
2353 * utils.h (vfatal): Removed.
2355 * utils.c (vfatal): Removed.
2357 (internal_verror): Replaced call to fatal with call to throw_quit.
2358 (quit): Replaced calls to fatal with calls to throw_quit.
2360 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2362 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2365 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2367 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2368 less than zero in conditional expression.
2370 2014-07-23 Tom Tromey <tromey@redhat.com>
2372 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2373 ($INTRO_PART): Don't match whitespace.
2374 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2376 ($METHOD): Add $METHOD_TRAILER.
2378 (scan_target_h): New sub.
2379 Change main loop not to collect state.
2380 * target-delegates.c: Rebuild.
2382 2014-07-23 Gary Benson <gbenson@redhat.com>
2384 * cp-support.c (gdb_demangle): Fix build on systems without
2387 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2389 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2390 for reference entry value target data value.
2392 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2395 value_available_contents_eq.
2397 2014-07-22 Pedro Alves <palves@redhat.com>
2399 * value.c (allocate_optimized_out_value): Don't mark value as
2402 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2404 * MAINTAINERS (Write After Approval): Update my email address.
2406 2014-07-20 Doug Evans <dje@google.com>
2409 * remote.c (putpkt_binary): Add text to error message.
2411 2014-07-20 Yao Qi <yao@codesourcery.com>
2413 * eval.c: Remove "Chill" from comments.
2414 * gdbtypes.h: Likewise.
2415 * symtab.h: Likewise.
2417 2014-07-20 Yao Qi <yao@codesourcery.com>
2419 * std-operator.def: Update comments to TERNOP_SLICE.
2421 2014-07-20 Yao Qi <yao@codesourcery.com>
2423 * std-operator.def: Remove BINOP_RANGE.
2424 * breakpoint.c (watchpoint_exp_is_const): Update.
2425 * expprint.c (dump_subexp_body_standard): Likewise.
2426 * eval.c (init_array_element): Remove dead code.
2427 (evaluate_subexp_standard): Likewise.
2429 2014-07-20 Yao Qi <yao@codesourcery.com>
2431 * std-operator.def: Remove BINOP_IN.
2432 * breakpoint.c (watchpoint_exp_is_const): Update.
2433 * eval.c (evaluate_subexp_standard): Likewise.
2434 * expprint.c (dump_subexp_body_standard): Likewise.
2436 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2438 * microblaze-tdep.c (microblaze_register_names): Add
2439 the rshr and rslr register names.
2440 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2441 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2442 Use of tdesc_numbered_register. Use of
2443 microblaze_register_g_packet_guesses. Use of
2444 tdesc_use_registers. Use of set_gdbarch_register_type.
2445 (microblaze_register_g_packet_guesses): New.
2446 * microblaze-tdep.h (microblaze_reg_num): Add
2447 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2448 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2449 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2450 * features/microblaze-core.xml: New file.
2451 * features/microblaze-stack-protect.xml: New file.
2452 * features/microblaze-with-stack-protect.c: New file.
2453 * features/microblaze-with-stack-protect.xml: New file.
2454 * features/microblaze.xml: New file.
2455 * features/microblaze.c: New file.
2456 * features/Makefile (microblaze-with-stack-protect): Add
2457 microblaze-with-stack-protect microblaze and microblaze-expedite.
2458 * regformats/microblaze-with-stack-protect.dat: New file.
2459 * regformats/microblaze.dat: New file.
2460 * doc/gdb.texinfo (MicroBlaze Features): Added.
2462 2014-07-18 Tom Tromey <tromey@redhat.com>
2464 * exec.c (exec_ops): Now static.
2465 * exec.h (exec_ops): Don't declare.
2467 2014-07-18 Tom Tromey <tromey@redhat.com>
2469 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2470 to find_target_beneath.
2471 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2472 find_target_beneath.
2473 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2475 2014-07-18 Tom Tromey <tromey@redhat.com>
2478 * utils.c (quit): Use target_supports_terminal_ours.
2479 * target.h (target_supports_terminal_ours): Declare.
2480 * target.c (target_supports_delete_record): Don't check
2481 to_delete_record against NULL.
2482 (target_supports_terminal_ours): New function.
2484 2014-07-18 Tom Tromey <tromey@redhat.com>
2487 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2488 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2489 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2490 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2491 * windows-nat.c (windows_xfer_partial): Always delegate.
2492 * record-btrace.c (record_btrace_xfer_partial): Simplify
2494 (record_btrace_fetch_registers, record_btrace_store_registers)
2495 (record_btrace_prepare_to_store, record_btrace_resume)
2496 (record_btrace_wait, record_btrace_find_new_threads)
2497 (record_btrace_thread_alive): Likewise.
2498 * procfs.c (procfs_xfer_partial): Always delegate.
2499 * corelow.c (core_xfer_partial): Always delegate.
2500 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2502 2014-07-18 Tom Tromey <tromey@redhat.com>
2504 * exec.c (exec_make_note_section): Move earlier.
2506 2014-07-17 Doug Evans <dje@google.com>
2509 * maint.c (count_symtabs_and_blocks): Handle NULL
2510 current_program_space.
2511 (report_command_stats): Check global enabled flag in addition to
2512 recorded enabled flag.
2513 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2515 2014-07-16 Pedro Alves <palves@redhat.com>
2517 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2519 2014-07-16 Tom Tromey <tromey@redhat.com>
2521 * target.h (struct target_ops) <to_delete_record>: Reformat
2524 2014-07-16 Tom Tromey <tromey@redhat.com>
2526 * target-delegates.c: Rebuild.
2528 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2530 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2531 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2532 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2533 (avr_pointer_to_address): Likewise.
2534 (avr_address_class_type_flags): New function.
2535 (avr_address_class_type_flags_to_name): Likewise.
2536 (avr_address_class_name_to_type_flags): Likewise.
2537 (avr_gdbarch_init): Set address_class_type_flags,
2538 address_class_type_flags_to_name and
2539 address_class_name_to_type_flags.
2541 2014-07-15 Pedro Alves <palves@redhat.com>
2543 * linux-nat.c (kill_callback): Save errno and work with saved
2546 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2548 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2550 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2552 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2553 breakpoint support correctly.
2555 2014-07-14 Pedro Alves <palves@redhat.com>
2557 * utils.c (prompt_for_continue): Call target_terminal_ours.
2559 2014-07-14 Pedro Alves <palves@redhat.com>
2561 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2562 catch_errors. Don't re-enable stdin or notify observers where,
2564 (fetch_inferior_event_wrapper): Delete.
2566 2014-07-14 Pedro Alves <palves@redhat.com>
2569 * top.c: Include "inf-loop.h".
2570 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2572 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2574 (gdb_readline_wrapper): Store whether the target is async, and
2577 2014-07-14 Pedro Alves <palves@redhat.com>
2580 * top.c (gdb_readline_wrapper_line): Tweak comment.
2581 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2582 the input handler callback.
2584 2014-07-14 Pedro Alves <palves@redhat.com>
2587 * main.c: Include event-top.h.
2588 (handle_command_errors): New function.
2589 (catch_command_errors, catch_command_errors_const): Use it.
2591 2014-07-14 Pedro Alves <palves@redhat.com>
2593 * exceptions.c (catch_command_errors, catch_command_errors_const):
2595 * exceptions.h (catch_command_errors_ftype)
2596 (catch_command_errors_const_ftype): Moved to main.c.
2597 (catch_command_errors, catch_command_errors_const): Delete
2599 * main.c (catch_command_errors_ftype)
2600 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2601 (catch_command_errors, catch_command_errors_const)): Moved here
2602 from exceptions.c and make static.
2604 2014-07-14 Pedro Alves <palves@redhat.com>
2606 * exceptions.c (print_any_exception): Delete.
2607 (catch_exceptions_with_msg): Use exception_print instead of
2608 print_any_exception.
2609 (catch_errors): Use exception_fprintf instead of
2610 print_any_exception.
2611 (catch_command_errors, catch_command_errors_const): Use
2612 exception_print instead of print_any_exception.
2614 2014-07-14 Pedro Alves <palves@redhat.com>
2616 * infcall.c (run_inferior_call): Set 'sync_execution' while
2617 running the inferior call.
2619 2014-07-14 Pedro Alves <palves@redhat.com>
2621 * value.c (value_contents_equal): Delete function.
2622 * value.h (value_contents_equal): Delete declaration.
2624 2014-07-14 Tom Tromey <tromey@redhat.com>
2627 * gdbtypes.c (is_dynamic_type_internal): New function, from
2629 (is_dynamic_type): Rewrite.
2630 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2631 (resolve_dynamic_struct): Likewise.
2632 (resolve_dynamic_type_internal): New function, from
2633 resolve_dynamic_type.
2634 (resolve_dynamic_type): Rewrite.
2636 2014-07-14 Tom Tromey <tromey@redhat.com>
2638 * target.c (target_require_runnable): Also check record_stratum.
2641 2014-07-11 Yao Qi <yao@codesourcery.com>
2643 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2644 thumb_instruction_restores_sp return true.
2646 2014-07-11 Yao Qi <yao@codesourcery.com>
2648 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2649 (thumb_in_function_epilogue_p): Call
2650 thumb_instruction_restores_sp.
2652 2014-07-11 Yao Qi <yao@codesourcery.com>
2654 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2656 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2658 2014-07-11 Gary Benson <gbenson@redhat.com>
2660 * amd64-linux-nat.c (gdbcore.h): Remove include.
2661 (regset.h): Likewise.
2662 (nat/linux-btrace.h): Likewise.
2663 (btrace.h): Likewise.
2664 (gdb_assert.h): Likewise.
2665 (string.h): Likewise.
2666 (sys/uio.h): Likewise.
2667 (sys/debugreg.h): Likewise.
2668 (sys/syscall.h): Likewise.
2669 (sys/procfs.h): Likewise.
2670 (sys/user.h): Likewise.
2671 (asm/ptrace.h): Likewise.
2672 (i386-nat.h): Likewise.
2673 * i386-linux-nat.c (i386-nat.h): Likewise.
2674 (regset.h): Likewise.
2675 (target.h): Likewise.
2676 (linux-nat.h): Likewise.
2677 (nat/linux-btrace.h): Likewise.
2678 (btrace.h): Likewise.
2679 (gdb_assert.h): Likewise.
2680 (string.h): Likewise.
2681 (sys/uio.h): Likewise.
2682 (sys/user.h): Likewise.
2683 (sys/procfs.h): Likewise.
2684 (sys/reg.h): Likewise.
2685 (sys/debugreg.h): Likewise.
2686 (ORIG_EAX): Remove definition.
2688 2014-07-11 Gary Benson <gbenson@redhat.com>
2690 * i386-linux-nat.h: New file.
2691 * x86-linux-nat.h: Likewise.
2692 * x86-linux-nat.c: Likewise.
2693 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2694 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2695 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2696 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2697 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2698 (PTRACE_SETREGSET): Likewise.
2699 (arch_lwp_info): Now in x86-linux-nat.c.
2700 (have_ptrace_getregset): Now in x86-linux-nat.h.
2701 (x86_linux_dr_get): Now in x86-linux-nat.c.
2702 (x86_linux_dr_set): Likewise.
2703 (x86_linux_dr_get_addr): Likewise.
2704 (x86_linux_dr_get_control): Likewise.
2705 (x86_linux_dr_get_status): Likewise.
2706 (update_debug_registers_callback): Likewise.
2707 (x86_linux_dr_set_control): Likewise.
2708 (x86_linux_dr_set_addr): Likewise.
2709 (x86_linux_prepare_to_resume): Likewise.
2710 (x86_linux_new_thread): Likewise.
2711 (x86_linux_new_fork): Likewise.
2712 (x86_linux_get_thread_area): Likewise.
2713 (super_post_startup_inferior): Likewise.
2714 (x86_linux_child_post_startup_inferior): Likewise.
2715 (AMD64_LINUX_USER64_CS): Likewise.
2716 (AMD64_LINUX_X32_DS): Likewise.
2717 (x86_linux_read_description): Likewise.
2718 (x86_linux_enable_btrace): Likewise.
2719 (x86_linux_disable_btrace): Likewise.
2720 (x86_linux_teardown_btrace): Likewise.
2721 (x86_linux_read_btrace): Likewise.
2722 (x86_linux_create_target): Likewise.
2723 (x86_linux_add_target): Likewise.
2724 * i386-linux-nat.c (x86-linux-nat.h): New include.
2725 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2726 (PTRACE_SETREGSET): Likewise.
2727 (arch_lwp_info): Now in x86-linux-nat.c.
2728 (have_ptrace_getregset): Now in x86-linux-nat.h.
2729 (x86_linux_dr_get): Now in x86-linux-nat.c.
2730 (x86_linux_dr_set): Likewise.
2731 (x86_linux_dr_get_addr): Likewise.
2732 (x86_linux_dr_get_control): Likewise.
2733 (x86_linux_dr_get_status): Likewise.
2734 (update_debug_registers_callback): Likewise.
2735 (x86_linux_dr_set_control): Likewise.
2736 (x86_linux_dr_set_addr): Likewise.
2737 (x86_linux_prepare_to_resume): Likewise.
2738 (x86_linux_new_thread): Likewise.
2739 (x86_linux_new_fork): Likewise.
2740 (x86_linux_get_thread_area): Likewise.
2741 (super_post_startup_inferior): Likewise.
2742 (x86_linux_child_post_startup_inferior): Likewise.
2743 (AMD64_LINUX_USER64_CS): Likewise.
2744 (AMD64_LINUX_X32_DS): Likewise.
2745 (x86_linux_read_description): Likewise.
2746 (x86_linux_enable_btrace): Likewise.
2747 (x86_linux_disable_btrace): Likewise.
2748 (x86_linux_teardown_btrace): Likewise.
2749 (x86_linux_read_btrace): Likewise.
2750 (x86_linux_create_target): Likewise.
2751 (x86_linux_add_target): Likewise.
2753 2014-07-11 Gary Benson <gbenson@redhat.com>
2755 * amd64-linux-nat.c: Comment and whitespace changes.
2756 * i386-linux-nat.c: Comment and whitespace changes.
2758 2014-07-11 Gary Benson <gbenson@redhat.com>
2760 * amd64-linux-nat.c (x86_linux_create_target): New function.
2761 (x86_linux_add_target): Likewise.
2762 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2763 * i386-linux-nat.c (x86_linux_create_target): New function.
2764 (x86_linux_add_target): Likewise.
2765 (_initialize_i386_linux_nat): Delegate to the above new functions.
2767 2014-07-11 Gary Benson <gbenson@redhat.com>
2769 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2770 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2771 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2772 (ps_get_thread_area): Delegate to the above.
2774 2014-07-11 Gary Benson <gbenson@redhat.com>
2776 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2777 x86_linux_read_description. All uses updated. amd64-specific
2778 code conditionalized. Conditionalized i386-specific code added.
2779 Redundant cast removed.
2780 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2781 x86_linux_read_description. All uses updated. i386-specific
2782 code conditionalized. Conditionalized amd64-specific code added.
2783 One sizeof replaced with the actual type it is describing.
2785 2014-07-11 Gary Benson <gbenson@redhat.com>
2787 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2788 x86_linux_dr_get. All uses updated.
2789 (amd64_linux_dr_set): Renamed to
2790 x86_linux_dr_set. All uses updated.
2791 (amd64_linux_dr_get_addr): Renamed to
2792 x86_linux_dr_get_addr. All uses updated.
2793 (amd64_linux_dr_get_control): Renamed to
2794 x86_linux_dr_get_control. All uses updated.
2795 (amd64_linux_dr_get_status): Renamed to
2796 x86_linux_dr_get_status. All uses updated.
2797 (amd64_linux_dr_set_control): Renamed to
2798 x86_linux_dr_set_control. All uses updated.
2799 (amd64_linux_dr_set_addr): Renamed to
2800 x86_linux_dr_set_addr. All uses updated.
2801 (amd64_linux_prepare_to_resume): Renamed to
2802 x86_linux_prepare_to_resume. All uses updated.
2803 (amd64_linux_new_thread): Renamed to
2804 x86_linux_new_thread. All uses updated.
2805 (amd64_linux_new_fork): Renamed to
2806 x86_linux_new_fork. All uses updated.
2807 (amd64_linux_child_post_startup_inferior): Renamed to
2808 x86_linux_child_post_startup_inferior. All uses updated.
2809 (amd64_linux_enable_btrace): Renamed to
2810 x86_linux_enable_btrace. All uses updated.
2811 (amd64_linux_disable_btrace): Renamed to
2812 x86_linux_disable_btrace. All uses updated.
2813 (amd64_linux_teardown_btrace): Renamed to
2814 x86_linux_teardown_btrace. All uses updated.
2815 (amd64_linux_read_btrace): Renamed to
2816 x86_linux_read_btrace. All uses updated.
2817 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2818 x86_linux_dr_get. All uses updated.
2819 (i386_linux_dr_set): Renamed to
2820 x86_linux_dr_set. All uses updated.
2821 (i386_linux_dr_get_addr): Renamed to
2822 x86_linux_dr_get_addr. All uses updated.
2823 (i386_linux_dr_get_control): Renamed to
2824 x86_linux_dr_get_control. All uses updated.
2825 (i386_linux_dr_get_status): Renamed to
2826 x86_linux_dr_get_status. All uses updated.
2827 (i386_linux_dr_set_control): Renamed to
2828 x86_linux_dr_set_control. All uses updated.
2829 (i386_linux_dr_set_addr): Renamed to
2830 x86_linux_dr_set_addr. All uses updated.
2831 (i386_linux_prepare_to_resume): Renamed to
2832 x86_linux_prepare_to_resume. All uses updated.
2833 (i386_linux_new_thread): Renamed to
2834 x86_linux_new_thread. All uses updated.
2835 (i386_linux_new_fork): Renamed to
2836 x86_linux_new_fork. All uses updated.
2837 (i386_linux_child_post_startup_inferior): Renamed to
2838 x86_linux_child_post_startup_inferior. All uses updated.
2839 (i386_linux_enable_btrace): Renamed to
2840 x86_linux_enable_btrace. All uses updated.
2841 (i386_linux_disable_btrace): Renamed to
2842 x86_linux_disable_btrace. All uses updated.
2843 (i386_linux_teardown_btrace): Renamed to
2844 x86_linux_teardown_btrace. All uses updated.
2845 (i386_linux_read_btrace): Renamed to
2846 x86_linux_read_btrace. All uses updated.
2848 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2850 * remote.c (extended_remote_post_attach): New function.
2851 (init_extended_remote_ops): Install it as to_post_attach method.
2853 2014-07-09 Pedro Alves <palves@redhat.com>
2855 * infcmd.c (attach_command_post_wait): Don't call
2856 target_terminal_inferior here.
2857 (attach_command): Call it here instead.
2859 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2861 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2863 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2864 from varobj.c, with additional checks.
2865 (c_varobj_ops): Fill in is_path_expr_parent field.
2866 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2867 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2869 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2871 (varobj_default_is_path_expr_parent): New function.
2872 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2873 (varobj_default_is_path_expr_parent): Declare new function.
2875 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2877 * infcmd.c (finish_backward): Turn internal error into normal error.
2879 2014-07-07 Pedro Alves <palves@redhat.com>
2882 * remote.c (async_handle_remote_sigint)
2883 (async_handle_remote_sigint_twice): Call
2884 gdb_call_async_signal_handler instead of
2885 mark_async_signal_handler.
2887 2014-07-07 Tom Tromey <tromey@redhat.com>
2889 * target-delegates.c: Rebuild.
2890 * target.c (target_info_record): Remove.
2891 * record.c (info_record_command): Unconditionally call
2893 * target.h (struct target_ops) <to_info_record>: Use
2894 TARGET_DEFAULT_IGNORE.
2895 (target_info_record): Remove.
2897 2014-07-07 Tom Tromey <tromey@redhat.com>
2899 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2900 TARGET_DEFAULT_NORETURN.
2901 * target.c (generic_tls_error): New function.
2902 (target_translate_tls_address): Don't search target stack.
2903 * target-delegates.c: Rebuild.
2904 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2906 * linux-thread-db.c (thread_db_get_thread_local_address):
2907 Unconditionally call beneath target.
2909 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2911 * cli/cli-logging.c (pop_output_files): Assign targerr to
2914 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2916 * MAINTAINERS (Write After Approval): Update my email address.
2918 2014-07-02 Gary Benson <gbenson@redhat.com>
2920 * proc-service.c (ps_xfer_memory): Update comment.
2921 (ps_pstop): Remove unused function.
2922 (ps_pcontinue): Likewise.
2923 (ps_lstop): Likewise.
2924 (ps_lcontinue): Likewise.
2925 (ps_lgetxregsize): Likewise.
2926 (ps_lgetxregs): Likewise.
2927 (ps_lsetxregs): Likewise.
2928 (ps_plog): Likewise.
2929 (ps_ptread): Likewise.
2930 (ps_ptwrite): Likewise.
2932 2014-07-01 Mark Wielaard <mjw@redhat.com>
2934 * dwarf2read.c (add_array_cv_type): New function.
2935 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2936 (read_tag_volatile_type): Likewise.
2938 2014-07-01 Tom Tromey <tromey@redhat.com>
2940 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2941 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2942 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2943 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2944 * command.h (cmd_cfunc_ftype): Move earlier.
2945 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2946 (add_com, add_info): Use cmd_cfunc_ftype.
2948 2014-06-30 Tom Tromey <tromey@redhat.com>
2950 * symtab.c (operator_chars): Make parameters and return type
2952 (file_matches): Make "files" const.
2953 (struct search_symbols_data) <files>: Now const.
2954 (search_symbols): Make "regexp" and "files" parameters const.
2956 (symtab_symbol_info): Remove cast.
2957 (rbreak_command): Update.
2958 * symtab.h (search_symbols): Update.
2960 2014-06-27 Yao Qi <yao@codesourcery.com>
2962 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2963 Change parameter type to 'struct thread_info *'. Caller
2965 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2967 * dummy-frame.c (struct dummy_frame_id): New.
2968 (dummy_frame_id_eq): New function.
2969 (struct dummy_frame) <id>: Change its type to 'struct
2971 (dummy_frame_push): Add parameter ptid and save it in
2973 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2975 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2977 (lookup_dummy_frame): Change parameter type to 'struct
2978 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2979 instead of frame_id_eq.
2980 (dummy_frame_pop): Add parameter ptid. Callers updated.
2981 Update comments. Compose dummy_frame_id and pass it to
2983 (dummy_frame_discard): Add parameter ptid.
2984 (dummy_frame_sniffer): Compose dummy_frame_id and call
2985 dummy_frame_id_eq instead of frame_id_eq.
2986 (fprint_dummy_frames): Print ptid.
2987 * dummy-frame.h: Remove comments.
2988 (dummy_frame_push): Add ptid in declaration.
2989 (dummy_frame_pop, dummy_frame_discard): Likewise.
2991 2014-06-26 Tom Tromey <tromey@redhat.com>
2993 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2994 * command.h (error_no_arg): Update.
2996 2014-06-26 Tom Tromey <tromey@redhat.com>
2998 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2999 (do_show_command): Make "arg" const.
3000 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3002 2014-06-26 Tom Tromey <tromey@redhat.com>
3004 * record-full.c (record_full_get_bookmark): Make "args" const.
3005 (record_full_goto_bookmark): Make "raw_bookmark" const.
3006 * record.c (record_goto): New function.
3007 (cmd_record_goto): Use it. Now static.
3008 * record.h (record_goto): Declare.
3009 (cmd_record_goto): Remove declaration.
3010 * target-delegates.c: Rebuild.
3011 * target.h (struct target_ops) <to_get_bookmark,
3012 to_goto_bookmark>: Make parameter const.
3014 2014-06-26 Tom Tromey <tromey@redhat.com>
3016 * defs.h (generic_load): Update.
3017 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3018 * monitor.c (monitor_load): Make "args" const.
3019 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3020 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3022 (mips_load): Make "file" const.
3023 * remote-sim.c (gdbsim_load): Make "args" const.
3024 * remote.c (remote_load): Make "name" const.
3025 * symfile.c (generic_load): Make "args" const.
3026 * target-delegates.c: Rebuild.
3027 * target.c (target_load): Make "arg" const.
3028 (debug_to_load): Make "args" const.
3029 * target.h (struct target_ops) <to_load>: Make parameter const.
3030 (target_load): Update.
3032 2014-06-26 Tom Tromey <tromey@redhat.com>
3035 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3036 (dwarf2_physname, read_partial_die)
3037 (guess_partial_die_structure_name, fixup_partial_die)
3038 (guess_full_die_structure_name, anonymous_struct_prefix)
3039 (dwarf2_name): Use per-BFD obstack.
3041 2014-06-26 Yao Qi <yao@codesourcery.com>
3043 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3044 dummyframe and this_id into inner block below.
3046 2014-06-26 Yao Qi <yao@codesourcery.com>
3048 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3049 with "signal_pass[0]" in the initialization of signal_pass.
3051 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3053 * record-btrace.c (record_btrace_generating_corefile)
3054 (record_btrace_prepare_to_generate_core)
3055 (record_btrace_done_generating_core): New.
3056 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3057 (record_btrace_store_registers, record_btrace_prepare_to_store):
3058 Forward request when generating a core file.
3059 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3060 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3061 to_done_generating_core.
3063 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3065 * target.h (target_ops) <to_prepare_to_generate_core>
3066 <to_done_generating_core>: New.
3067 (target_prepare_to_generate_core, target_done_generating_core): New.
3068 * target.c (target_prepare_to_generate_core)
3069 (target_done_generating_core): New.
3070 * target-delegates.c: Regenerate.
3071 * gcore.c: (write_gcore_file): Rename to ...
3072 (write_gcore_file_1): ...this.
3073 (write_gcore_file): Call target_prepare_to_generate_core
3074 and target_done_generating_core.
3076 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3078 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3079 * gcore.c (write_gcore_file): Free memory returned from
3080 make_corefile_notes.
3081 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3082 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3084 2014-06-24 Yao Qi <yao@codesourcery.com>
3086 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3087 (arm_linux_init_abi): Set skip_trampoline_code with
3088 gdbarch_skip_trampoline_code instead of
3089 find_solib_trampoline_target.
3091 2014-06-24 Yao Qi <yao@codesourcery.com>
3093 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3094 arm_skip_bx_reg returns non-zero.
3096 2014-06-24 Yao Qi <yao@codesourcery.com>
3098 * arm-tdep.c (arm_skip_bx_reg): New function.
3099 (arm_skip_stub): Call arm_skip_bx_reg.
3101 2014-06-23 Don Breazeal <donb@codesourcery.com>
3103 * MAINTAINERS: Add myself as write-after-approval maintainer.
3105 2014-06-23 Pedro Alves <palves@redhat.com>
3107 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3108 DR_CONTROL before setting DR0..DR3.
3109 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3110 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3111 bits of DR_CONTROL related to the debug register slot being
3112 disabled. If all slots are vacant, clear local slowdown as well,
3113 and assert DR_CONTROL is 0.
3115 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3117 * python/lib/gdb/command/xmethods.py
3118 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3119 current progspace only if the string "progspace" matches LOCUS_RE.
3121 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3123 Fix --with-system-readline with readline-6.3 patch 5.
3124 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3125 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3128 2014-06-20 Tom Tromey <tromey@redhat.com>
3130 * dwarf2read.c (dw2_get_real_path): Use correct type in
3132 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3134 2014-06-20 Gary Benson <gbenson@redhat.com>
3136 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3137 * common/glibc_thread_db.h: Likewise.
3138 * common/i386-cpuid.h: Likewise.
3139 * common/i386-gcc-cpuid.h: Likewise.
3140 * common/linux-btrace.h: Likewise.
3141 * common/linux-osdata.h: Likewise.
3142 * common/linux-procfs.h: Likewise.
3143 * common/linux-ptrace.h: Likewise.
3144 * common/mips-linux-watch.h: Likewise.
3145 * common/linux-btrace.c: Moved to nat.
3146 * common/linux-osdata.c: Likewise.
3147 * common/linux-procfs.c: Likewise.
3148 * common/linux-ptrace.c: Likewise.
3149 * common/mips-linux-watch.c: Likewise.
3150 * nat/gdb_thread_db.h: Moved from common.
3151 * nat/glibc_thread_db.h: Likewise.
3152 * nat/i386-cpuid.h: Likewise.
3153 * nat/i386-gcc-cpuid.h: Likewise.
3154 * nat/linux-btrace.c: Likewise.
3155 * nat/linux-btrace.h: Likewise.
3156 * nat/linux-osdata.c: Likewise.
3157 * nat/linux-osdata.h: Likewise.
3158 * nat/linux-procfs.c: Likewise.
3159 * nat/linux-procfs.h: Likewise.
3160 * nat/linux-ptrace.c: Likewise.
3161 * nat/linux-ptrace.h: Likewise.
3162 * nat/mips-linux-watch.c: Likewise.
3163 * nat/mips-linux-watch.h: Likewise.
3164 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3165 (object file files): Reordered.
3166 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3167 of glibc_thread_db.h.
3169 2014-06-20 Gary Benson <gbenson@redhat.com>
3171 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3172 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3173 (i386_dr_low): Likewise.
3174 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3175 (i386_dr_low_set_addr): Likewise.
3176 (i386_dr_low_get_addr): Likewise.
3177 (i386_dr_low_can_set_control): Likewise.
3178 (i386_dr_low_set_control): Likewise.
3179 (i386_dr_low_get_control): Likewise.
3180 (i386_dr_low_get_status): Likewise.
3181 (i386_get_debug_register_length): Likewise.
3182 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3183 (i386_dr_low): Likewise.
3184 * nat/i386-dregs.c (i386-low.h): Remove include.
3185 (i386-nat.h): Likewise.
3186 (nat/i386-dregs.h): New include.
3187 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3188 (i386_dr_low_set_addr): Likewise.
3189 (i386_dr_low_get_addr): Likewise.
3190 (i386_dr_low_can_set_control): Likewise.
3191 (i386_dr_low_set_control): Likewise.
3192 (i386_dr_low_get_control): Likewise.
3193 (i386_dr_low_get_status): Likewise.
3194 (i386_get_debug_register_length): Likewise.
3195 (debug_hw_points): Likewise.
3197 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3199 * Makefile.in (SFILES): Add d-exp.y.
3200 (YYFILES): Add d-exp.c.
3201 (YYOBJ): Add d-exp.o.
3202 (local-maintainer-clean): Delete d-exp.c.
3203 * d-exp.y: New file.
3204 * d-lang.h (d_parse): New declaration.
3205 (d_error): New declaration.
3206 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3207 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3208 PREC_ORDER operators.
3209 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3211 2014-06-19 Yao Qi <yao@codesourcery.com>
3213 * gdbthread.h (any_running): Remove the declaration.
3214 * thread.c (any_running): Remove.
3216 2014-06-19 Yao Qi <yao@codesourcery.com>
3218 * gdbthread.h (struct thread_info) <state>: Change its type to
3219 'enum thread_state'. Update comments.
3221 2014-06-19 Pedro Alves <palves@redhat.com>
3223 * gdbthread.h (ALL_THREADS): Delete.
3224 (ALL_NON_EXITED_THREADS): New macro.
3225 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3226 instead of ALL_THREADS.
3227 * infrun.c (find_thread_needs_step_over)
3228 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3229 instead of ALL_THREADS.
3230 * record-btrace.c (record_btrace_open)
3231 (record_btrace_stop_recording, record_btrace_close)
3232 (record_btrace_is_replaying, record_btrace_resume)
3233 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3234 * remote.c (append_pending_thread_resumptions): Likewise.
3235 * thread.c (thread_apply_all_command): Likewise.
3237 2014-06-19 Gary Benson <gbenson@redhat.com>
3239 * i386-nat.c (i386_stopped_by_watchpoint):
3240 Use i386_dr_stopped_by_watchpoint.
3241 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3242 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3244 2014-06-19 Gary Benson <gbenson@redhat.com>
3246 * nat/i386-dregs.c: New file.
3247 * Makefile.in (i386-dregs.o): New rule.
3248 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3249 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3250 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3251 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3252 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3253 * config/i386/go32.mh (NATDEPFILES): Likewise.
3254 * config/i386/linux.mh (NATDEPFILES): Likewise.
3255 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3256 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3257 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3258 * i386-nat.h (debug_hw_points): New declaration.
3259 * i386-nat.c (breakpoint.h): Remove include.
3260 (command.h): Likewise.
3261 (target.h): Likewise.
3262 (gdb_assert.h): Likewise.
3263 (debug_hw_points): Made nonstatic.
3264 (debug_printf): Now in i386-dregs.c.
3265 (TARGET_HAS_DR_LEN_8): Likewise.
3266 (DR_CONTROL_SHIFT): Likewise.
3267 (DR_CONTROL_SIZE): Likewise.
3268 (DR_RW_EXECUTE): Likewise.
3269 (DR_RW_WRITE): Likewise.
3270 (DR_RW_READ): Likewise.
3271 (DR_RW_IORW): Likewise.
3272 (DR_LEN_1): Likewise.
3273 (DR_LEN_2): Likewise.
3274 (DR_LEN_4): Likewise.
3275 (DR_LEN_8): Likewise.
3276 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3277 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3278 (DR_ENABLE_SIZE): Likewise.
3279 (DR_LOCAL_SLOWDOWN): Likewise.
3280 (DR_GLOBAL_SLOWDOWN): Likewise.
3281 (DR_CONTROL_RESERVED): Likewise.
3282 (I386_DR_CONTROL_MASK): Likewise.
3283 (I386_DR_VACANT): Likewise.
3284 (I386_DR_LOCAL_ENABLE): Likewise.
3285 (I386_DR_GLOBAL_ENABLE): Likewise.
3286 (I386_DR_DISABLE): Likewise.
3287 (I386_DR_SET_RW_LEN): Likewise.
3288 (I386_DR_GET_RW_LEN): Likewise.
3289 (I386_DR_WATCH_HIT): Likewise.
3290 (i386_wp_op_t): Likewise.
3291 (i386_show_dr): Likewise.
3292 (i386_length_and_rw_bits): Likewise.
3293 (i386_insert_aligned_watchpoint): Likewise.
3294 (i386_remove_aligned_watchpoint): Likewise.
3295 (i386_handle_nonaligned_watchpoint): Likewise.
3296 (i386_update_inferior_debug_regs): Likewise.
3297 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3298 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3299 (i386_region_ok_for_watchpoint):
3300 Use i386_dr_region_ok_for_watchpoint.
3301 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3303 2014-06-19 Gary Benson <gbenson@redhat.com>
3305 * i386-nat.c (i386_insert_hw_breakpoint): Use
3306 i386_insert_watchpoint.
3307 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3309 2014-06-19 Gary Benson <gbenson@redhat.com>
3311 * i386-nat.c (i386_dr_show): Renamed to
3312 i386_show_dr and made static. All uses updated.
3313 (i386_dr_length_and_rw_bits): Renamed to
3314 i386_length_and_rw_bits and made static.
3316 (i386_dr_insert_aligned_watchpoint): Renamed to
3317 i386_insert_aligned_watchpoint and made static.
3319 (i386_dr_remove_aligned_watchpoint): Renamed to
3320 i386_remove_aligned_watchpoint and made static.
3322 (i386_dr_update_inferior_debug_regs): Renamed to
3323 i386_update_inferior_debug_regs and made static.
3325 * nat/i386-dregs.h (i386_dr_show): Removed.
3326 (i386_dr_length_and_rw_bits): Likewise.
3327 (i386_dr_insert_aligned_watchpoint): Likewise.
3328 (i386_dr_remove_aligned_watchpoint): Likewise.
3329 (i386_dr_update_inferior_debug_regs): Likewise.
3331 2014-06-19 Gary Benson <gbenson@redhat.com>
3333 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3334 * configure: Regenerate.
3335 * config.in: Likewise.
3336 * main.c (signal.h): New include.
3337 (setup_alternate_signal_stack): New function.
3338 (captured_main): Call the above.
3339 * cp-support.c (signal.h): New include.
3340 (catch_demangler_crashes): New flag.
3341 (SIGJMP_BUF): New define.
3342 (SIGSETJMP): Likewise.
3343 (SIGLONGJMP): Likewise.
3344 (gdb_demangle_jmp_buf): New static global.
3345 (gdb_demangle_attempt_core_dump): Likewise.
3346 (gdb_demangle_signal_handler): New function.
3347 (gdb_demangle): If catch_demangler_crashes is set, install the
3348 above signal handler before calling bfd_demangle, and restore
3349 the original signal handler afterwards. Display the offending
3350 symbol and call demangler_warning the first time a segmentation
3352 (_initialize_cp_support): New maint set/show command.
3354 2014-06-19 Gary Benson <gbenson@redhat.com>
3356 * utils.h (resource_limit_kind): New enum.
3357 (can_dump_core): New declaration.
3358 (warn_cant_dump_core): Likewise.
3359 (dump_core): Likewise.
3360 * utils.c (dump_core): Made nonstatic. Added new
3361 parameter "limit_kind".
3362 (can_dump_core): Made nonstatic. Moved printing code to...
3363 (warn_cant_dump_core): New function.
3364 (can_dump_core_warn): Likewise.
3365 (internal_vproblem): Replace calls to can_dump_core with
3366 calls to can_dump_core_warn. Supply new argument to each.
3368 2014-06-19 Gary Benson <gbenson@redhat.com>
3370 * utils.h (demangler_vwarning): New declaration.
3371 (demangler_warning): Likewise.
3372 * utils.c (struct internal_problem)
3373 <user_settable_should_quit>: New field.
3374 <user_settable_should_dump_core>: Likewise
3375 (internal_error_problem): Add values for above new fields.
3376 (internal_warning_problem): Likewise.
3377 (demangler_warning_problem): New static global.
3378 (demangler_vwarning): New function.
3379 (demangler_warning): Likewise.
3380 (add_internal_problem_command): Selectively add commands.
3381 (_initialize_utils): New internal problem command.
3382 * maint.c (maintenance_demangler_warning): New function.
3383 (_initialize_maint_cmds): New command.
3385 2014-06-18 Tom Tromey <tromey@redhat.com>
3387 * f-valprint.c (info_common_command_for_block): Update.
3388 * symtab.h (struct general_symbol_info) <common_block>: Now
3391 2014-06-18 Tom Tromey <tromey@redhat.com>
3393 * symtab.h (struct symtab) <blockvector>: Now const.
3394 * ada-lang.c (ada_add_global_exceptions): Update.
3395 * buildsym.c (augment_type_symtab): Update.
3396 * dwarf2read.c (dw2_lookup_symbol): Update.
3397 * jit.c (finalize_symtab): Update.
3398 * jv-lang.c (add_class_symtab_symbol): Update.
3399 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3401 * objfiles.c (objfile_relocate1): Update.
3402 * psymtab.c (lookup_symbol_aux_psymtabs)
3403 (maintenance_check_psymtabs): Update.
3404 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3406 * spu-tdep.c (spu_catch_start): Update.
3407 * symmisc.c (dump_symtab_1): Update.
3408 * symtab.c (lookup_global_symbol_from_objfile)
3409 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3410 (basic_lookup_transparent_type_quick)
3411 (basic_lookup_transparent_type, find_pc_sect_symtab)
3412 (find_pc_sect_line, search_symbols): Update.
3413 * block.c (find_block_in_blockvector): Make "bl" const.
3414 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3416 (blockvector_contains_pc): Make "bv" const.
3417 (block_for_pc_sect): Update.
3418 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3419 (blockvector_contains_pc): Update.
3420 * breakpoint.c (resolve_sal_pc): Update.
3421 * inline-frame.c (block_starting_point_at): Update.
3423 2014-06-18 Tom Tromey <tromey@redhat.com>
3425 * completer.c (complete_line): Make "line_buffer" const.
3426 * completer.h (complete_line): Update.
3428 2014-06-18 Tom Tromey <tromey@redhat.com>
3430 * symtab.c (add_macro_name): Remove unneeded cast.
3432 2014-06-18 Tom Tromey <tromey@redhat.com>
3434 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3435 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3437 2014-06-18 Tom Tromey <tromey@redhat.com>
3439 * probe.c (info_probes_for_ops): Make "arg" const.
3440 * probe.h (info_probes_for_ops): Update.
3442 2014-06-18 Tom Tromey <tromey@redhat.com>
3444 * varobj.c (varobj_create): Update.
3445 * valops.c (value_of_this): Update.
3446 * tracepoint.c (add_local_symbols, scope_info): Update.
3447 * symtab.h (struct general_symbol_info) <block>: Now const.
3448 * symtab.c (skip_prologue_sal)
3449 (default_make_symbol_completion_list_break_on)
3450 (skip_prologue_using_sal): Update.
3451 * stack.h (iterate_over_block_locals)
3452 (iterate_over_block_local_vars): Update.
3453 * stack.c (print_frame_args): Update.
3454 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3456 (get_selected_block): Make return type const.
3457 * python/py-frame.c (frapy_block): Update.
3458 * python/py-block.c (gdbpy_block_for_pc): Update.
3459 * p-exp.y (%union) <bval>: Now const.
3460 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3461 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3462 * m2-exp.y (%union) <bval>: Now const.
3463 * linespec.c (get_current_search_block): Make return type const.
3464 (create_sals_line_offset, find_label_symbols): Update.
3465 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3467 (block_starting_point_at): Make "block" const.
3468 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3469 (check_exception_resume): Update.
3470 * guile/scm-frame.c (gdbscm_frame_block): Update.
3471 * guile/scm-block.c (gdbscm_lookup_block): Update.
3472 * frame.h (get_frame_block): Update.
3473 (get_selected_block): Make return type const.
3474 * frame.c (frame_id_inner): Update.
3475 * f-valprint.c (info_common_command_for_block)
3476 (info_common_command): Update.
3477 * dwarf2loc.c (dwarf2_find_location_expression)
3478 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3479 (locexpr_describe_location_piece): Update.
3480 * c-exp.y (%union) <bval>: Now const.
3481 * breakpoint.c (resolve_sal_pc): Update.
3482 * blockframe.c (get_frame_block):Make return type const.
3483 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3484 (block_innermost_frame): Update.
3485 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3486 (block_for_pc, block_for_pc_sect): Update.
3487 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3489 (block_for_pc_sect, block_for_pc): Make return type const.
3490 * ax-gdb.c (gen_expr): Update.
3491 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3492 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3493 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3494 (ada_read_var_value): Update.
3495 * ada-exp.y (struct name_info) <block>: Now const.
3497 (block_lookup): Constify.
3499 2014-06-18 Gary Benson <gbenson@redhat.com>
3501 * nat/i386-dregs.h: New file.
3502 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3503 * i386-nat.h (i386-dregs.h): New include.
3504 (DR_FIRSTADDR): Now in i386-dregs.h.
3505 (DR_LASTADDR): Likewise.
3506 (DR_NADDR): Likewise.
3507 (DR_STATUS): Likewise.
3508 (DR_CONTROL): Likewise.
3509 (i386_debug_reg_state): Likewise.
3510 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3512 2014-06-18 Don Breazeal <donb@codesourcery.com>
3514 * breakpoint.c (set_longjmp_breakpoint): Call
3515 momentary_breakpoint_from_master with additional argument.
3516 (set_longjmp_breakpoint_for_call_dummy): Call
3517 momentary_breakpoint_from_master with additional argument.
3518 (set_std_terminate_breakpoint): Call
3519 momentary_breakpoint_from_master with additional argument.
3520 (momentary_breakpoint_from_master): Add argument to function
3521 definition and use it to initialize structure member flag.
3522 (clone_momentary_breakpoint): Call
3523 momentary_breakpoint_from_master with additional argument.
3524 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3525 member flags set in momentary_breakpoint_from_master.
3527 2014-06-18 Gary Benson <gbenson@redhat.com>
3529 * i386-nat.c (i386_show_dr): Renamed to
3530 i386_dr_show and made nonstatic. All uses updated.
3531 (i386_length_and_rw_bits): Renamed to
3532 i386_dr_length_and_rw_bits and made nonstatic.
3534 (i386_insert_aligned_watchpoint): Renamed to
3535 i386_dr_insert_aligned_watchpoint and made nonstatic.
3537 (i386_remove_aligned_watchpoint): Renamed to
3538 i386_dr_remove_aligned_watchpoint and made nonstatic.
3540 (i386_update_inferior_debug_regs): Renamed to
3541 i386_dr_update_inferior_debug_regs and made nonstatic.
3544 2014-06-18 Gary Benson <gbenson@redhat.com>
3546 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3547 (i386_dr_low_can_set_control): Likewise.
3548 (i386_dr_low_set_addr): Likewise.
3549 (i386_dr_low_set_control): Likewise.
3550 (i386_dr_low_get_addr): Likewise.
3551 (i386_dr_low_get_status): Likewise.
3552 (i386_dr_low_get_control): Likewise.
3553 (i386_insert_aligned_watchpoint): Use new macros.
3554 (i386_update_inferior_debug_regs): Likewise.
3555 (i386_stopped_data_address): Likewise.
3557 2014-06-18 Gary Benson <gbenson@redhat.com>
3559 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3560 New parameter. All uses updated.
3562 2014-06-18 Gary Benson <gbenson@redhat.com>
3564 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3567 2014-06-18 Gary Benson <gbenson@redhat.com>
3569 * i386-nat.c (debug_printf): New macro.
3570 (i386_get_debug_register_length): Likewise.
3571 (TARGET_HAS_DR_LEN_8): Use above macro.
3572 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3573 and printf_unfiltered. Use phex to format values.
3575 2014-06-18 Gary Benson <gbenson@redhat.com>
3577 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3580 2014-06-18 Gary Benson <gbenson@redhat.com>
3582 * i386-nat.c: Comment changes.
3584 2014-06-18 Gary Benson <gbenson@redhat.com>
3586 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3588 2014-06-18 Gary Benson <gbenson@redhat.com>
3590 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3591 (i386_insert_aligned_watchpoint): Likewise.
3592 (i386_remove_aligned_watchpoint): Likewise.
3593 (i386_handle_nonaligned_watchpoint): Likewise.
3595 2014-06-18 Gary Benson <gbenson@redhat.com>
3597 * i386-nat.c: Whitespace changes.
3599 2014-06-17 Samuel Bronson <naesten@gmail.com>
3601 * MAINTAINERS: Update Roland McGrath's email address.
3602 Thanks to Sergio Durigan Junior for pointing out that he left
3603 Red Hat a while ago, and giving me a current address.
3605 2014-06-17 Tom Tromey <tromey@redhat.com>
3607 * utils.h (savestring): Remove declaration.
3609 2014-06-17 Tom Tromey <tromey@redhat.com>
3611 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3613 2014-06-16 Keith Seitz <keiths@redhat.com>
3616 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3617 to update the varobj if inferior_ptid is null_ptid.
3619 2014-06-16 Tom Tromey <tromey@redhat.com>
3621 * target.h (struct target_ops) <to_info_proc>: Make parameter
3623 (target_info_proc): Update.
3624 * target.c (target_info_proc): Make "args" const.
3625 * procfs.c (procfs_info_proc): Update.
3626 * linux-tdep.c (linux_info_proc): Update.
3627 (linux_core_info_proc_mappings): Make "args" const.
3628 (linux_core_info_proc): Update.
3629 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3630 * gdbarch.c: Rebuild.
3631 * gdbarch.h: Rebuild.
3632 * corelow.c (core_info_proc): Update.
3634 2014-06-16 Tom Tromey <tromey@redhat.com>
3636 * target.h (struct target_ops) <to_disconnect>: Make parameter
3638 (target_disconnect): Update.
3639 * target.c (target_disconnect): Make "args" const.
3640 * target-delegates.c: Rebuild.
3641 * remote.c (remote_disconnect): Update.
3642 * record.h (record_disconnect): Update.
3643 * record.c (record_disconnect): Update.
3644 * inf-child.c (inf_child_disconnect): Update.
3646 2014-06-16 Tom Tromey <tromey@redhat.com>
3648 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3649 * target.c (debug_to_rcmd, default_rcmd): Update.
3650 * target-delegates.c: Rebuild.
3651 * remote.c (remote_rcmd): Update.
3652 * monitor.c (monitor_rcmd): Update.
3654 2014-06-16 Pedro Alves <palves@redhat.com>
3656 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3657 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3658 have OBJF_SHARED set.
3659 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3660 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3661 instead of OBJF_USERLOADED.
3662 * objfiles.h (OBJF_SHARED): Update comment.
3663 (userloaded_objfile_contains_address_p): Rename to ...
3664 (shared_objfile_contains_address_p): ... this, and update
3666 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3668 (remove_symbol_file_command): Skip objfiles that don't have
3671 2014-06-16 Tom Tromey <tromey@redhat.com>
3673 * minsyms.h (prim_record_minimal_symbol)
3674 (prim_record_minimal_symbol_and_info): Update comments.
3676 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3678 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3679 or --without-guile, according to how GDB was built.
3681 2014-06-13 Tom Tromey <tromey@redhat.com>
3683 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3685 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3687 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3689 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3690 help_list.Pass all_commands, not -1, to help_list.
3691 * cli/cli-dump.c (dump_command, append_command)
3692 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3693 (binary_dump_command, binary_append_command): Pass all_commands,
3694 not -1, to help_list.
3695 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3697 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3699 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3701 * top.c (set_history): Pass all_commands, not -1, to help_list.
3702 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3703 all_commands, not -1, to help_list.
3704 * symfile.c (overlay_command): Pass all_commands, not -1, to
3706 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3708 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3710 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3712 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3713 not -1, to help_list.
3714 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3715 not -1, to help_list.
3716 * maint.c (maintenance_command, maintenance_info_command)
3717 (maintenance_print_command, maintenance_set_cmd): Pass
3718 all_commands, not -1, to help_list.
3719 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3721 * language.c (set_check): Pass all_commands, not -1, to help_list.
3722 * infcmd.c (unset_command): Pass all_commands, not -1, to
3724 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3726 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3728 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3730 * breakpoint.c (save_command): Pass all_commands, not -1, to
3732 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3733 all_commands, not -1, to help_list.
3735 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3737 * regcache.c (struct register_to_invalidate): New structure.
3738 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3740 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3742 2014-06-12 Yao Qi <yao@codesourcery.com>
3744 * varobj.c (varobj_get_num_children): Call
3745 varobj_is_dynamic_p.
3746 (varobj_list_children): Likewise.
3747 (varobj_update): Likewise. Update comments.
3749 2014-06-12 Yao Qi <yao@codesourcery.com>
3751 * varobj.c (varobj_pretty_printed_p): Rename to ...
3752 (varobj_is_dynamic_p): ... this. New function.
3753 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3754 (varobj_is_dynamic_p): Declare.
3755 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3756 (mi_print_value_p, varobj_update_one): Likewise.
3758 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3759 Yao Qi <yao@codesourcery.com>
3761 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3762 (varobj_get_iterator): Wrap up code for pretty-printer by
3763 "#if HAVE_PYTHON" and "#endif".
3764 (update_dynamic_varobj_children): Likewise.
3766 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3767 Yao Qi <yao@codesourcery.com>
3769 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3770 gdb_python_initialized is false. Move some code from varobj.c.
3771 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3772 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3773 (struct varobj_item): Moved to varobj-iter.h".
3774 (varobj_clear_saved_item): New function.
3775 (update_dynamic_varobj_children): Move python-related code to
3777 (free_variable): Call varobj_clear_saved_item and
3780 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3781 Yao Qi <yao@codesourcery.com>
3783 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3784 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3785 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3786 (py-varobj.o): New rule.
3787 * python/py-varobj.c: New file.
3788 * python/python-internal.h (py_varobj_get_iterator): Declare.
3789 * varobj-iter.h: New file.
3790 * varobj.c: Include "varobj-iter.h"
3791 (struct varobj) <child_iter>: Change its type from "PyObject *"
3792 to "struct varobj_iter *".
3793 <saved_item>: Likewise.
3794 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3795 [HAVE_PYTHON] (varobj_get_iterator): New function.
3796 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3797 python-specific code to python/py-varobj.c.
3798 (install_visualizer): Call varobj_iter_delete instead of
3800 * varobj.h (varobj_ensure_python_env): Declare.
3802 2014-06-12 Yao Qi <yao@codesourcery.com>
3804 * varobj.c (struct varobj_item): New structure.
3805 (create_child_with_value): Update declaration.
3806 (varobj_add_child): Replace arguments 'name' and 'value' with
3807 'item'. All callers updated.
3808 (install_dynamic_child): Likewise.
3809 (update_dynamic_varobj_children): Likewise.
3810 (varobj_add_child): Likewise.
3811 (create_child_with_value): Likewise.
3813 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3815 * NEWS: Create a new section for the next release branch.
3816 Rename the section of the current branch, now that it has
3819 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3821 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3822 * version.in: Bump version to 7.8.50.DATE-cvs.
3824 2014-06-11 Pedro Alves <palves@redhat.com>
3827 * ser-mingw.c (net_windows_socket_check_pending): New function.
3828 (net_windows_select_thread): Ignore spurious wakeups. Use
3829 net_windows_socket_check_pending.
3830 (net_windows_wait_handle): Check for pending events with
3831 ioctlsocket, through net_windows_socket_check_pending, instead of
3832 checking the socket's event.
3834 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3836 * python/python-internal.h (gdb_PyObject_GetAttrString)
3837 (gdb_PyObject_HasAttrString): New inline function definitions.
3838 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3839 char * of the second argument to PyObject_GetAttrString.
3841 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3843 * serial.c (serial_write): Fix index of character to be printed
3844 in call to serial_logchar when serial debug traces are enabled.
3846 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3848 * gdbtypes (resolve_dynamic_range): Add function description.
3850 2014-06-09 Pedro Alves <palves@redhat.com>
3852 * linux-nat.c (linux_child_follow_fork): Initialize status with
3853 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3854 inner block. Only pass the signal to PTRACE_DETACH if in pass
3857 2014-06-09 Gary Benson <gbenson@redhat.com>
3859 * common/signals.c (gdb_signal_from_host): Reorder to separate
3860 the always-available ANSI-standard signals from the signals that
3862 (do_gdb_signal_to_host): Likewise.
3863 * proc-events.c (signal_table): Likewise.
3865 2014-06-08 Hui Zhu <hui@codesourcery.com>
3867 * common/linux-ptrace.c (linux_disable_event_reporting): New
3869 * common/linux-ptrace.h (linux_disable_event_reporting): New
3871 * linux-nat.c (linux_child_follow_fork): Do a single step before
3874 2014-06-07 Keith Seitz <keiths@redhat.com>
3878 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3879 from symbol_matches_domain in symtab.c. All local callers
3880 of symbol_matches_domain updated.
3881 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3882 search STRUCT_DOMAIN.
3883 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3884 independently. standard_lookup will do that automatically.
3885 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3886 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3887 (cp_lookup_symbol_in_namespace): Likewise.
3888 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3889 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3890 may return a STRUCT_DOMAIN match.
3891 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3892 * cp-support.c: Include language.h.
3893 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3895 * psymtab.c (match_partial_symbol): Compare the requested
3896 domain with the symbol's domain directly.
3897 (lookup_partial_symbol): Likewise.
3898 * symtab.c (lookup_symbol_in_language): Explain when/why
3899 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3900 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3901 appropriate languages.
3902 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3903 and moved to ada-lang.c
3904 (lookup_block_symbol): Explain that this function only returns
3905 symbol matching the requested DOMAIN.
3906 Compare the requested domain with the symbol's domain directly.
3907 (iterate_over_symbols): Compare the requested domain with the
3908 symbol's domain directly.
3909 * symtab.h (symbol_matches_domain): Remove.
3911 2014-06-06 Doug Evans <xdje42@gmail.com>
3913 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3914 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3915 (gdbscm_guile_version_is_at_least): Declare.
3916 (gdbscm_scm_string_to_int): Declare.
3917 * guile/guile.c (gdbscm_guile_major_version): New global.
3918 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3919 (guile_datadir): New static global.
3920 (gdbscm_guile_data_directory): New function.
3921 (initialize_scheme_side): Update.
3922 (misc_guile_functions): Add guile-data-directory.
3923 (initialize_gdb_module): Fetch guile version number.
3924 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3925 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3926 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3927 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3929 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3930 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3931 * guile/scm-value.c (gdbscm_value_to_string): Only call
3932 scm_port_conversion_strategy if Guile version >= 2.0.6.
3934 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3936 * main.c (print_gdb_help): Add -q and --silent.
3938 2014-06-06 Gary Benson <gbenson@redhat.com>
3940 * common/signals.c: Remove preprocessor conditionals for
3941 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3942 SIGSEGV and SIGTERM.
3943 * proc-events.c: Likewise.
3945 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3947 * symfile.c (symfile_free_objfile): Remove restriction to
3949 * symfile-mem.c (symbol_file_add_from_memory): Call
3950 add_target_sections_of_objfile.
3952 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3954 * guile/scm-value.c (gdbscm_history_append_x): Use
3955 'vlscm_get_value_smob_arg_unsafe' instead of
3956 'vlscm_scm_to_value'.
3958 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3961 * utils.c (printchar): Don't escape at all if quoter is NUL.
3962 Update function documentation to clarify effect of parameter
3964 * remote.c (escape_buffer): Pass '\\' as the quoter to
3965 fputstrn_unfiltered.
3966 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3967 generate the output.
3968 (mi_solib_unloaded): Same.
3970 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3972 * development.sh: Delete.
3973 * Makefile.in (config.status): Adjust dependency on development.sh.
3974 * configure.ac: Adjust development.sh source call.
3975 * configure: Regenerate.
3977 2014-06-04 Doug Evans <xdje42@gmail.com>
3979 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3980 is_scheme_bkpt, spec.
3981 (bpscm_make_breakpoint_smob): Initialize new members.
3982 (gdbscm_create_breakpoint_x): Split into two ...
3983 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3984 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3985 (scheme_function breakpoint_functions): Update.
3986 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3987 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3988 register-breakpoint!.
3990 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3993 * mem-break.c (z_type_supported): Return zero if
3994 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3996 2014-06-04 Tom Tromey <tromey@redhat.com>
3998 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3999 value_from_contents_and_address_unresolved.
4000 (ada_template_to_fixed_record_type_1): Likewise.
4001 (ada_which_variant_applies): Likewise.
4002 * value.h (value_from_contents_and_address_unresolved): Declare.
4003 * value.c (value_from_contents_and_address_unresolved): New
4005 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4006 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4007 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4009 2014-06-04 Tom Tromey <tromey@redhat.com>
4011 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4013 2014-06-04 Tom Tromey <tromey@redhat.com>
4015 * procfs.c (procfs_attach): Make "args" const.
4016 * windows-nat.c (windows_attach): Make "args" const.
4017 * nto-procfs.c (procfs_attach): Make "args" const.
4018 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4019 * go32-nat.c (go32_attach): Make "args" const.
4020 * gnu-nat.c (gnu_attach): Make "args" const.
4021 * darwin-nat.c (darwin_attach): Make "args" const.
4022 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4023 * linux-nat.c (linux_nat_attach): Make "args" const.
4024 * remote.c (extended_remote_attach_1, extended_remote_attach):
4026 * target.h (struct target_ops) <to_attach>: Make "args" const.
4027 (find_default_attach): Likewise.
4028 * utils.c (parse_pid_to_attach): Make "args" const.
4029 * utils.h (parse_pid_to_attach): Update.
4031 2014-06-04 Tom Tromey <tromey@redhat.com>
4033 * target-delegates.c: Rebuild.
4034 * target.c (default_thread_address_space): New function.
4035 (target_thread_address_space): Simplify.
4036 * target.h (struct target_ops) <to_thread_address_space>: Add
4037 TARGET_DEFAULT_FUNC.
4039 2014-06-04 Doug Evans <xdje42@gmail.com>
4041 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4043 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4045 * record-btrace.c: Include event-loop.h and inf-loop.h.
4046 (record_btrace_resume_exec_dir)
4047 (record_btrace_async_inferior_event_handler)
4048 (record_btrace_handle_async_inferior_event): New.
4049 (record_btrace_open): Create async event handler.
4050 (record_btrace_close): Delete async event handler.
4051 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4052 Mark async event handler.
4053 (record_btrace_execution_direction): New.
4054 (init_record_btrace_ops): Initialize to_execution_direction.
4056 2014-06-03 Doug Evans <xdje42@gmail.com>
4058 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4059 (gdbscm_make_parameter): Ditto.
4061 2014-06-03 Doug Evans <dje@google.com>
4063 * exec.c (exec_close_1): Call clear_section_table instead of
4064 resize_section_table.
4065 (clear_section_table): New function.
4066 (resize_section_table): Make static. Rename arg num_added to
4068 * exec.h (clear_section_table): Declare.
4069 (resize_section_table): Delete.
4070 * progspace.c (release_program_space): Call clear_section_table
4071 instead of resize_section_table.
4073 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4075 * NEWS (Python Scripting): Add entry about the new xmethods
4078 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4080 * python/py-xmethods.c: New file.
4081 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4082 (objfpy_dealloc): XDECREF on the new xmethods field.
4083 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4085 (objfpy_get_xmethods): New function.
4086 (objfile_getset): New entry 'xmethods'.
4087 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4088 (pspy_dealloc): XDECREF on the new xmethods field.
4089 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4091 (pspy_get_xmethods): New function.
4092 (pspace_getset): New entry 'xmethods'.
4093 * python/python-internal.h: Add declarations for new functions.
4094 * python/python.c (_initialize_python): Invoke
4095 gdbpy_initialize_xmethods.
4096 * python/lib/gdb/__init__.py (xmethods): New
4098 * python/lib/gdb/xmethod.py: New file.
4099 * python/lib/gdb/command/xmethods.py: New file.
4101 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4103 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4104 best match method returned by find_overload_match is an xmethod.
4105 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4106 the best matching operator returned by find_overload_match is an
4108 * valops.c: #include "extension.h".
4109 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4110 Return void. The list of matching source methods is returned in
4111 "fn_list" and a vector of matching debug method workers is
4112 returned in "xm_worker_vec". Update all callers.
4113 (value_find_oload_method_list): Likewise.
4114 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4115 non-NULL, then the index of the best matching method in this
4116 vector is returned. Update all callers.
4117 (find_overload_match): Include xmethods while performing overload
4120 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4122 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4123 * extension-priv.h (struct extension_language_ops): Add the
4125 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4126 get_matching_xmethod_workers, get_xmethod_argtypes,
4127 invoke_xmethod, free_xmethod_worker,
4128 free_xmethod_worker_vec): New functions.
4129 * extension.h: #include "common/vec.h".
4130 New function declarations.
4131 (struct xmethod_worker): New struct.
4132 (VEC (xmethod_worker_ptr)): New vector type.
4133 (xmethod_worker_ptr): New typedef.
4134 (xmethod_worker_vec): Likewise.
4135 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4137 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4138 (struct builtin_type): New field "xmethod".
4139 * valarith.c (value_ptradd): Assert that the value argument is not
4141 * valops.c (value_must_coerce_to_target): Return 0 for
4142 lval_xcallable values.
4143 * value.c (struct value): New field XM_WORKER in the field
4145 (value_address, value_raw_address): Return 0 for lval_xcallable
4147 (set_value_address): Assert that the value is not an
4149 (value_free): Free the associated xmethod worker when freeing
4150 lval_xcallable values.
4151 (set_value_component_location): Assert that the WHOLE value is not
4153 (value_of_xmethod, call_xmethod): New functions.
4154 * value.h: Declare "struct xmethod_worker".
4155 Declare new functions value_of_xmethod, call_xmethod.
4157 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4158 Pedro Alves <palves@redhat.com>
4160 PR breakpoints/17000
4161 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4162 New function, extracted from software_breakpoint_inserted_here_p.
4163 (software_breakpoint_inserted_here_p): Replace factored out code
4164 by call to find_non_raw_software_breakpoint_inserted_here.
4165 (bp_target_info_copy_insertion_state): New function.
4166 (bkpt_insert_location): Handle the case of a single-step
4167 breakpoint already inserted at the same address.
4168 (bkpt_remove_location): Handle the case of a single-step
4169 breakpoint still inserted at the same address.
4170 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4171 breakpoint already inserted at the same address.
4172 (deprecated_remove_raw_breakpoint): Handle the case of a
4173 non-raw breakpoint still inserted at the same address.
4174 (find_single_step_breakpoint): New function, extracted from
4175 single_step_breakpoint_inserted_here_p.
4176 (find_single_step_breakpoint): New function,
4177 factored out from single_step_breakpoint_inserted_here_p.
4178 (single_step_breakpoint_inserted_here_p): Reimplement.
4180 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4182 Pushed by Joel Brobecker <brobecker@adacore.com>
4183 * source.c (show_substitute_path_command): Fix display of matching
4186 2014-06-03 Gary Benson <gbenson@redhat.com>
4188 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4190 2014-06-02 Doug Evans <xdje42@gmail.com>
4192 Add parameter support for Guile.
4193 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4194 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4195 (scm-param.o): New rule.
4196 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4197 (gdbscm_misc_error): Declare.
4198 (gdbscm_canonicalize_command_name): Declare.
4199 (gdbscm_scm_to_host_string): Declare.
4200 (gdbscm_scm_from_host_string): Declare.
4201 (gdbscm_initialize_parameters): Declare.
4202 * guile/guile.c (initialize_gdb_module): Call
4203 gdbscm_initialize_parameters.
4204 * guile/lib/gdb.scm: Export parameter symbols.
4205 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4206 cmdscm_canonicalize_name and made public. All callers updated.
4207 * guile/scm-exception.c (gdbscm_misc_error): New function.
4208 * guile/scm-param.c: New file.
4209 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4210 (gdbscm_scm_to_host_string): New function.
4211 (gdbscm_scm_from_host_string): New function.
4212 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4214 2014-06-02 Doug Evans <xdje42@gmail.com>
4216 Add command support for Guile.
4217 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4218 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4219 (scm-cmd.o): New rule.
4220 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4221 (gdbscm_user_error_p): Declare.
4222 (gdbscm_parse_command_name): Declare.
4223 (gdbscm_valid_command_class_p): Declare.
4224 (gdbscm_initialize_commands): Declare.
4225 * guile/guile.c (initialize_gdb_module): Call
4226 gdbscm_initialize_commands.
4227 * guile/lib/gdb.scm: Export command symbols.
4228 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4229 (throw-user-error): New function.
4230 * guile/scm-cmd.c: New file.
4231 * guile/scm-exception.c (user_error_symbol): New static global.
4232 (gdbscm_user_error_p): New function.
4233 (gdbscm_initialize_exceptions): Set user_error_symbol.
4234 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4236 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4238 * top.c (command_loop): Handle comments here...
4239 (command_line_input): ... not here.
4241 2014-06-02 Doug Evans <xdje42@gmail.com>
4243 Add progspace support for Guile.
4244 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4245 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4246 (scm-progspace.o): New rule.
4247 * guile/guile-internal.h (pspace_smob): New typedef.
4248 (psscm_pspace_smob_pretty_printers): Declare.
4249 (psscm_pspace_smob_from_pspace): Declare.
4250 (psscm_scm_from_pspace): Declare.
4251 * guile/guile.c (initialize_gdb_module): Call
4252 gdbscm_initialize_pspaces.
4253 * guile/lib/gdb.scm: Export progspace symbols.
4254 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4256 (append-pretty-printer!): Ditto.
4257 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4259 * guile/scm-progspace.c: New file.
4261 2014-06-03 Alan Modra <amodra@gmail.com>
4263 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4264 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4266 2014-06-02 Doug Evans <dje@google.com>
4268 Add support for skeletonless type units.
4269 * dwarf2read.c (struct dwarf2_per_objfile): New member
4270 n_allocated_type_units.
4271 (struct dwarf2_per_objfile) <tu_stats>: New member
4272 nr_all_type_units_reallocs.
4273 (create_signatured_type_table_from_index): Initialize
4274 n_allocated_type_units
4275 (create_all_type_units): Ditto.
4276 (add_type_unit): Move up in file. New arg slot.
4277 All callers updated. Increase space for all_type_units more
4279 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4280 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4281 (lookup_dwp_signatured_type): Ditto.
4282 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4283 All callers updated.
4284 (build_type_psymtabs_1): Leave type_unit_groups as
4285 NULL if no TUs present.
4286 (print_tu_stats): New function.
4287 (process_skeletonless_type_unit): New function.
4288 (process_dwo_file_for_skeletonless_type_units): New
4290 (process_skeletonless_type_units): New function.
4291 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4292 Call print tu_stats if debugging enabled.
4294 2014-06-02 Pedro Alves <palves@redhat.com>
4296 * breakpoint.c (build_target_command_list): Don't build a command
4297 list if we have any duplicate location that isn't a dprintf.
4299 2014-06-02 Pedro Alves <palves@redhat.com>
4301 * breakpoint.c (dprintf_breakpoint_hit): New function.
4302 (initialize_breakpoint_ops): Install it as dprintf's
4303 breakpoint_hit method.
4305 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4307 * source.c (substitute_path_rule_matches): Simplify using
4308 filename_ncmp instead of FILENAME_CMP.
4310 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4312 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4314 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4316 * configure.ac: When Guile is available, check for the
4317 availability of 'scm_new_smob'.
4318 * configure, config.h.in: Regenerate.
4319 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4322 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4324 * frame.c (struct frame_info): Add stop_string field.
4325 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4326 (get_prev_frame_always): Old content moved into
4327 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4328 TRY_CATCH, handle MEMORY_ERROR exceptions.
4329 (frame_stop_reason_string): New function definition.
4330 * frame.h (unwind_stop_reason_to_string): Extend comment to
4331 mention frame_stop_reason_string.
4332 (frame_stop_reason_string): New function declaration.
4333 * stack.c (frame_info): Switch to frame_stop_reason_string.
4334 (backtrace_command_1): Switch to frame_stop_reason_string.
4335 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4336 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4337 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4339 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4341 * frame.c (frame_stop_reason_string): Rename to ...
4342 (unwind_stop_reason_to_string): this.
4343 * frame.h (frame_stop_reason_string): Rename to ...
4344 (unwind_stop_reason_to_string): this.
4345 * stack.c (frame_info): Update call to frame_stop_reason_string.
4346 (backtrace_command_1): Likewise.
4347 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4348 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4350 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4352 * frame.c (remove_prev_frame): New function.
4353 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4356 2014-05-29 Pedro Alves <palves@redhat.com>
4358 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4359 and make it const. When a single-step decays to a continue,
4360 clear 'step', not 'hw_step'. Pass whether the caller wanted
4361 to step to user_visible_resume_ptid, not what we ask the
4364 2014-05-29 Pedro Alves <palves@redhat.com>
4366 * infrun.c (process_event_stop_test, handle_step_into_function)
4367 (handle_step_into_function_backward): Adjust.
4368 Don't set the even thread's stop_step and call stop_waiting before
4369 calling end_stepping_range. Instead do that ...
4370 (end_stepping_range): ... here. Take an ecs pointer parameter.
4372 2014-05-29 Pedro Alves <palves@redhat.com>
4374 * infrun.c (stop_stepping): Rename to ...
4375 (stop_waiting): ... this.
4376 (proceed): Update comment.
4377 (process_event_stop_test, handle_inferior_event)
4378 (handle_signal_stop, handle_step_into_function)
4379 (handle_step_into_function_backward): Update.
4381 2014-05-29 Pedro Alves <palves@redhat.com>
4383 * infcall.c (run_inferior_call): Don't check whether the current
4384 thread is running after the proceed call.
4386 2014-05-29 Pedro Alves <palves@redhat.com>
4387 Tom Tromey <tromey@redhat.com>
4389 * NEWS: Mention "maint set target-async", "set mi-async", and that
4390 background execution commands are now always available.
4391 * target.h (target_async_permitted): Update comment.
4392 * target.c (target_async_permitted, target_async_permitted_1):
4394 (set_target_async_command): Rename to ...
4395 (maint_set_target_async_command): ... this.
4396 (show_target_async_command): Rename to ...
4397 (maint_show_target_async_command): ... this.
4398 (_initialize_target): Adjust.
4399 * infcmd.c (prepare_execution_command): Make extern.
4400 * inferior.h (prepare_execution_command): Declare.
4401 * infrun.c (set_observer_mode): Leave target async alone.
4402 * mi/mi-interp.c (mi_interpreter_init): Install
4403 mi_on_sync_execution_done as sync_execution_done observer.
4404 (mi_on_sync_execution_done): New function.
4405 (mi_execute_command_input_handler): Don't print the prompt if we
4406 just started a synchronous command with an async target.
4407 (mi_on_resume): Check sync_execution before printing prompt.
4408 * mi/mi-main.h (mi_async_p): Declare.
4409 * mi/mi-main.c: Include gdbcmd.h.
4410 (mi_async_p): New function.
4411 (mi_async, mi_async_1): New globals.
4412 (set_mi_async_command, show_mi_async_command, mi_async): New
4414 (exec_continue): Call prepare_execution_command.
4415 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4416 (mi_execute_async_cli_command): Use mi_async_p.
4417 (_initialize_mi_main): Install "set mi-async". Make
4418 "target-async" a deprecated alias.
4420 2014-05-29 Pedro Alves <palves@redhat.com>
4422 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4423 (_initialize_cli_interp): Adjust.
4424 * event-loop.c: Include "observer.h".
4425 (start_event_loop): Notify 'command_error' observers instead of
4426 calling display_gdb_prompt. Remove FIXME comment.
4427 * event-top.c (display_gdb_prompt): Remove call into the
4429 * inf-loop.c: Include "observer.h".
4430 (inferior_event_handler): Notify 'command_error' observers instead
4431 of calling display_gdb_prompt.
4432 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4433 observers instead of calling display_gdb_prompt.
4434 * interps.c (interp_set): Don't call display_gdb_prompt.
4435 (current_interp_display_prompt_p): Delete.
4436 * interps.h (interp_prompt_p): Delete declaration.
4437 (interp_prompt_p_ftype): Delete.
4438 (struct interp_procs) <prompt_proc_p>: Delete field.
4439 (current_interp_display_prompt_p): Delete declaration.
4440 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4441 (_initialize_mi_interp): Adjust.
4442 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4443 'command_error' observers.
4444 (tui_on_sync_execution_done, tui_on_command_error): New
4446 (tui_display_prompt_p): Delete.
4447 (_initialize_tui_interp): Adjust.
4449 2014-05-29 Pedro Alves <palves@redhat.com>
4452 * cli/cli-interp.c: Include infrun.h and observer.h.
4453 (cli_uiout, cli_interp): New globals.
4454 (cli_on_signal_received, cli_on_end_stepping_range)
4455 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4457 (cli_interpreter_init): Install them as 'end_stepping_range',
4458 'signal_received' 'signal_exited', 'exited' and 'no_history'
4460 (_initialize_cli_interp): Remove cli_interp local.
4461 * infrun.c (handle_inferior_event): Call the several stop reason
4462 observers instead of printing the stop reason directly.
4463 (end_stepping_range): New function.
4464 (print_end_stepping_range_reason, print_signal_exited_reason)
4465 (print_exited_reason, print_signal_received_reason)
4466 (print_no_history_reason): Make static, and add an uiout
4467 parameter. Print to that instead of to CURRENT_UIOUT.
4468 * infrun.h (print_end_stepping_range_reason)
4469 (print_signal_exited_reason, print_exited_reason)
4470 (print_signal_received_reason print_no_history_reason): New
4472 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4474 <cli_uiout>: New field.
4475 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4476 uiout for CLI output. Install 'signal_received',
4477 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4479 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4480 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4481 (mi_on_no_history): New functions.
4482 (ui_out_free_cleanup): Delete function.
4483 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4484 instead use the one already stored in the MI interpreter data.
4485 (mi_ui_out): Adjust.
4486 * tui/tui-interp.c: Include infrun.h and observer.h.
4487 (tui_interp): New global.
4488 (tui_on_signal_received, tui_on_end_stepping_range)
4489 (tui_on_signal_exited, tui_on_exited)
4490 (tui_on_no_history): New functions.
4491 (tui_init): Install them as 'end_stepping_range',
4492 'signal_received' 'signal_exited', 'exited' and 'no_history'
4494 (_initialize_tui_interp): Delete tui_interp local.
4496 2014-05-29 Pedro Alves <palves@redhat.com>
4499 * linux-nat.c (linux_nat_resume_callback): Rename the second
4500 parameter to 'except'. Skip LP if it points to EXCEPT.
4501 (linux_nat_resume): Don't mark the event lwp as not stopped
4502 before resuming sibling lwps. Instead ask
4503 linux_nat_resume_callback to skip the event lwp. Mark it as not
4504 stopped after actually resuming it.
4505 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4507 (wait_lwp): Mark the lwp as stopped here.
4508 (stop_wait_callback): Mark the lwp as not stopped right after
4509 resuming it. Don't mark lwps as stopped here.
4510 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4511 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4513 2014-05-29 Pedro Alves <palves@redhat.com>
4516 * infrun.c (resume): Determine how much to resume depending on
4517 whether the caller wanted a step, not whether we can hardware step
4518 the target. Mark all threads that we intend to run as running,
4519 unless we're calling an inferior function.
4520 (normal_stop): If the thread is running an infcall, don't finish
4522 * target.c (target_resume): Don't mark threads as running here.
4524 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4526 * serial.c (_initialize_serial): Remove support for
4527 the "set remotebaud" and "show remotebaud" commands.
4528 * NEWS: Add entry documenting the removal of that command.
4530 2014-05-28 Yao Qi <yao@codesourcery.com>
4532 * charset.c: Fix typo in comments.
4534 2014-05-27 Gary Benson <gbenson@redhat.com>
4536 * utils.c (internal_vproblem): Prompt for a bug report.
4538 2014-05-26 Andy Wingo <wingo@igalia.com>
4540 * guile/scm-arch.c (arscm_mark_arch_smob):
4541 * guile/scm-block.c (bkscm_mark_block_smob)
4542 (bkscm_mark_block_syms_progress_smob):
4543 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4544 * guile/scm-exception.c (exscm_mark_exception_smob):
4545 * guile/scm-frame.c (frscm_mark_frame_smob):
4546 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4547 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4548 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4549 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4550 (ppscm_mark_pretty_printer_worker_smob):
4551 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4552 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4553 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4554 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4556 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4559 2014-05-26 Andy Wingo <wingo@igalia.com>
4560 Doug Evans <xdje42@gmail.com>
4562 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4563 empty_base_class. All uses updated.
4564 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4565 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4567 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4568 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4569 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4570 (gdbscm_gsmob_has_property_p, add_property_name)
4571 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4572 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4573 (gdb-object-has-property?, gdb-object-properties): Remove.
4574 (gdb-object-kind): Renamed from gsmob-kind.
4576 2014-05-26 Andy Wingo <wingo@igalia.com>
4578 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4579 * configure: Regenerate.
4581 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4583 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4585 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4587 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4588 (replay_memory_access_read_only, replay_memory_access_read_write)
4589 (replay_memory_access_types, replay_memory_access)
4590 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4591 (cmd_set_record_btrace, cmd_show_record_btrace)
4592 (cmd_show_replay_memory_access): New.
4593 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4594 (record_btrace_remove_breakpoint): Replace
4595 record_btrace_allow_memory_access with replay_memory_access.
4596 (_initialize_record_btrace): Add commands.
4597 * NEWS: Announce it.
4599 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4601 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4603 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4605 * MAINTAINERS (Write After Approval): Move self back from
4608 2014-05-22 Pedro Alves <palves@redhat.com>
4610 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4611 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4612 (disable_randomization, enum exec_direction_kind)
4613 (execution_direction, stop_registers, start_remote)
4614 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4615 (wait_for_inferior, normal_stop, get_last_target_status)
4616 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4617 (insert_step_resume_breakpoint_at_sal)
4618 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4619 (set_step_info, print_stop_event, signal_stop_state)
4620 (signal_print_state, signal_pass_state, signal_stop_update)
4621 (signal_print_update, signal_pass_update)
4622 (update_signals_program_target, clear_exit_convenience_vars)
4623 (displaced_step_dump_bytes, update_observer_mode)
4624 (signal_catch_update, gdb_signal_from_command): Move
4626 * infrun.h: ... to this new file.
4627 * amd64-tdep.c: Include infrun.h.
4628 * annotate.c: Include infrun.h.
4629 * arch-utils.c: Include infrun.h.
4630 * arm-linux-tdep.c: Include infrun.h.
4631 * arm-tdep.c: Include infrun.h.
4632 * break-catch-sig.c: Include infrun.h.
4633 * breakpoint.c: Include infrun.h.
4634 * common/agent.c: Include infrun.h instead of inferior.h.
4635 * corelow.c: Include infrun.h.
4636 * event-top.c: Include infrun.h.
4637 * go32-nat.c: Include infrun.h.
4638 * i386-tdep.c: Include infrun.h.
4639 * inf-loop.c: Include infrun.h.
4640 * infcall.c: Include infrun.h.
4641 * infcmd.c: Include infrun.h.
4642 * infrun.c: Include infrun.h.
4643 * linux-fork.c: Include infrun.h.
4644 * linux-nat.c: Include infrun.h.
4645 * linux-thread-db.c: Include infrun.h.
4646 * monitor.c: Include infrun.h.
4647 * nto-tdep.c: Include infrun.h.
4648 * procfs.c: Include infrun.h.
4649 * record-btrace.c: Include infrun.h.
4650 * record-full.c: Include infrun.h.
4651 * remote-m32r-sdi.c: Include infrun.h.
4652 * remote-mips.c: Include infrun.h.
4653 * remote-notif.c: Include infrun.h.
4654 * remote-sim.c: Include infrun.h.
4655 * remote.c: Include infrun.h.
4656 * reverse.c: Include infrun.h.
4657 * rs6000-tdep.c: Include infrun.h.
4658 * s390-linux-tdep.c: Include infrun.h.
4659 * solib-irix.c: Include infrun.h.
4660 * solib-osf.c: Include infrun.h.
4661 * solib-svr4.c: Include infrun.h.
4662 * target.c: Include infrun.h.
4663 * top.c: Include infrun.h.
4664 * windows-nat.c: Include infrun.h.
4665 * mi/mi-interp.c: Include infrun.h.
4666 * mi/mi-main.c: Include infrun.h.
4667 * python/py-threadevent.c: Include infrun.h.
4669 2014-05-22 Pedro Alves <palves@redhat.com>
4671 * infrun.c (handle_inferior_event): Store the exit code for
4672 --return-child-result here, instead of ...
4673 (print_exited_reason): ... here.
4675 2014-05-21 Pedro Alves <palves@redhat.com>
4678 * gdbthread.h (struct thread_control_state): New field
4680 * infrun.c (follow_fork): Copy the new thread control field to the
4682 (clear_proceed_status_thread): Clear the new thread control field.
4683 (proceed): Set the new thread control field.
4684 * interps.h (command_interp): Declare.
4685 * interps.c (command_interpreter): New global.
4686 (command_interp): New function.
4687 (interp_exec): Set `command_interpreter' while here.
4688 * cli-out.c (cli_uiout_dtor): New function.
4689 (cli_ui_out_impl): Install it.
4690 * mi/mi-interp.c: Include cli-out.h.
4691 (mi_cmd_interpreter_exec): Add comment.
4692 (restore_current_uiout_cleanup): New function.
4693 (ui_out_free_cleanup): New function.
4694 (mi_on_normal_stop): If finishing an execution command started by
4695 a CLI command, or any kind of breakpoint-like event triggered,
4696 print the stop event to the output (CLI) stream.
4697 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4699 2014-05-21 Pedro Alves <palves@redhat.com>
4701 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4702 current source line having changed.
4703 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4704 * infrun.c (normal_stop): Adjust call to
4705 set_current_sal_from_frame.
4706 * source.c (clear_lines_listed_range): New function.
4707 (set_current_source_symtab_and_line, identify_source_line): Clear
4708 the lines listed range.
4709 (line_info): Handle the first "info line" after the current source
4710 line having changed.
4711 * stack.c (print_stack_frame): Remove center handling.
4712 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4715 2014-05-21 Pedro Alves <palves@redhat.com>
4717 * inf-child.c (inf_child_mourn_inferior): New function.
4718 * inf-child.h (inf_child_mourn_inferior): New declaration.
4719 * darwin-nat.c (darwin_mourn_inferior): Use
4720 inf_child_mourn_inferior.
4721 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4722 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4723 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4724 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4725 * windows-nat.c (windows_mourn_inferior): Likewise.
4727 2014-05-21 Doug Evans <xdje42@gmail.com>
4729 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4731 2014-05-21 Doug Evans <xdje42@gmail.com>
4733 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4734 (gdbscm_out_of_range_error): Ditto.
4735 (gdbscm_memory_error): Ditto.
4736 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4737 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4738 (gdbscm_out_of_range_error): Update.
4739 (gdbscm_memory_error): Update.
4740 (gdbscm_scm_to_target_string_unsafe): Delete.
4742 2014-05-21 Pedro Alves <palves@redhat.com>
4744 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4746 (inf_child_open_target): New function.
4747 (inf_child_open): Use inf_child_open_target to push the target
4748 instead of erroring out.
4749 (inf_child_disconnect, inf_child_close)
4750 (inf_child_maybe_unpush_target): New functions.
4751 (inf_child_target): Install inf_child_disconnect and
4752 inf_child_close. Store a pointer to the returned object.
4753 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4755 * target.c (auto_connect_native_target): New global.
4756 (show_default_run_target): New function.
4757 (find_default_run_target): Return NULL if automatically connecting
4758 to the native target is disabled.
4759 (_initialize_target): Install set/show auto-connect-native-target.
4760 * NEWS: Mention "set auto-connect-native-target", and "target
4762 * linux-nat.c (super_close): New global.
4763 (linux_nat_close): Call super_close.
4764 (linux_nat_add_target): Store a pointer to the base class's
4766 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4767 inf_child_maybe_unpush.
4768 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4770 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4771 the inferior. Use inf_child_maybe_unpush_target.
4772 (inf_ttrace_attach): Don't push the target if it is already
4774 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4775 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4776 after mourning the inferior. Use inf_child_maybe_unpush_target.
4777 (darwin_attach_pid): Don't push the target if it is already
4779 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4780 mourning the inferior. Use inf_child_maybe_unpush_target.
4781 (gnu_detach): Use inf_child_maybe_unpush_target.
4782 * go32-nat.c (go32_create_inferior): Don't push the target if it
4784 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4785 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4786 (procfs_open): Rename to ...
4787 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4788 comments. Can target_preopen before changing node. Call
4789 inf_child_open_target to push the target explicitly.
4790 (procfs_attach): Don't push the target if it is already pushed.
4791 (procfs_detach): Use inf_child_maybe_unpush_target.
4792 (procfs_create_inferior): Don't push the target if it is already
4794 (nto_native_ops): New global.
4795 (procfs_open): Reimplement.
4796 (procfs_native_open): New function.
4797 (init_procfs_targets): Install procfs_native_open as to_open of
4798 "target native". Store a pointer to the "native" target in
4800 * procfs.c (procfs_attach): Don't push the target if it is already
4802 (procfs_detach): Use inf_child_maybe_unpush_target.
4803 (procfs_mourn_inferior): Only unpush the target after mourning the
4804 inferior. Use inf_child_maybe_unpush_target.
4805 (procfs_init_inferior): Don't push the target if it is already
4807 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4808 if it is already pushed.
4810 2014-05-21 Pedro Alves <palves@redhat.com>
4812 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4813 and "procfs" targets are now called "native" instead.
4815 2014-05-21 Pedro Alves <palves@redhat.com>
4817 * go32-nat.c (go32_open): Delete.
4818 (go32_target): Don't override the to_open method.
4820 2014-05-21 Pedro Alves <palves@redhat.com>
4822 * nto-procfs.c (procfs_can_run): New function.
4823 (nto_procfs_ops): New global.
4824 (init_procfs_targets): New, based on procfs_target. Install
4825 "target native" in addition to "target procfs".
4826 (_initialize_procfs): Call init_procfs_targets instead of adding
4829 2014-05-21 Pedro Alves <palves@redhat.com>
4831 * windows-nat.c (windows_target): Don't override to_shortname,
4832 to_longname or to_doc.
4834 2014-05-21 Pedro Alves <palves@redhat.com>
4836 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4839 2014-05-21 Pedro Alves <palves@redhat.com>
4841 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4842 to_shortname, to_longname or to_doc.
4844 2014-05-21 Pedro Alves <palves@redhat.com>
4846 * go32-nat.c (go32_target): Don't override to_shortname,
4847 to_longname or to_doc.
4849 2014-05-21 Pedro Alves <palves@redhat.com>
4851 * inf-child.c (inf_child_open): Remove mention of "child".
4852 (inf_child_target): Rename target to "native" instead of "child".
4854 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4856 * Makefile.in (SFILES): Delete "regset.c".
4857 (COMMON_OBS): Delete "regset.o".
4859 * regset.h (regset_alloc): Delete prototype.
4861 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4863 * sparc-linux-tdep.c (sparc32_linux_gregset)
4864 (sparc32_linux_fpregset): New static regset structures.
4865 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4866 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4868 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4869 (sparc64_linux_fpregset): New static regset structures.
4870 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4871 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4872 New static regset structures.
4873 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4874 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4875 New static regset structures.
4876 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4877 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4878 New static regset structures.
4879 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4880 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4881 New static regset structures.
4882 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4884 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4886 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4887 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4888 register maps ("regmaps") from "*regset" to "*regmap". Do this
4889 for all regmap types and variables.
4890 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4891 (sparc32_linux_supply_core_gregset)
4892 (sparc32_linux_collect_core_gregset)
4893 (sparc32_linux_supply_core_fpregset)
4894 (sparc32_linux_collect_core_fpregset): Likewise.
4895 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4896 (sparc_gregmap, sparc_fpregmap): ... these.
4897 (sparc_supply_gregset, sparc_collect_gregset)
4898 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4899 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4900 (_initialize_sparc_nat): Rename regmaps.
4901 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4902 (sparc_gregmap, sparc_fpregmap): ... these.
4903 (sparc_supply_gregset, sparc_collect_gregset)
4904 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4905 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4907 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4908 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4910 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4912 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4913 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4914 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4916 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4917 (sparc32_bsd_fpregset): Rename to...
4918 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4919 (sparc32_bsd_fpregmap): ... these.
4920 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4921 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4922 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4923 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4924 (struct sparc_gregmap, struct sparc_fpregmap)
4925 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4926 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4927 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4928 (sparc32_supply_regset, sparc32_collect_gregset)
4929 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4931 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4932 (sparc64_linux_ptrace_gregmap): ... this.
4933 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4934 (_initialize_sparc64_linux_nat): Rename regmaps.
4935 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4936 (sparc64_linux_core_gregmap): ... this.
4937 (sparc64_linux_supply_core_gregset)
4938 (sparc64_linux_collect_core_gregset)
4939 (sparc64_linux_supply_core_fpregset)
4940 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4941 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4942 (sparc64_sol2_fpregset): Rename to...
4943 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4944 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4945 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4947 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4948 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4949 (sparc64_bsd_fpregset): Rename to...
4950 (struct sparc_gregmap, sparc64_sol2_gregmap)
4951 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4952 (sparc64_bsd_fpregmap): ... these.
4953 (sparc64_supply_gregset, sparc64_collect_gregset)
4954 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4956 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4957 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4958 (sparc64fbsd_gregmap): ... this.
4959 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4960 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4962 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4963 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4964 (sparc64nbsd_collect_fpregset): Likewise.
4965 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4966 (sparc64nbsd_gregmap): ... this.
4967 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4969 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4970 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4971 (sparc64obsd_gregmap): ... this.
4972 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4974 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4975 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4976 (sparc32nbsd_gregmap): ... this.
4977 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4980 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4982 * score-tdep.c (score7_linux_gregset): New static regset
4984 (score7_linux_regset_from_core_section): Remove dynamic regset
4986 (score_gdbarch_init): Drop allocation of tdep structure.
4987 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4989 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4991 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4993 (am33_regset_from_core_section): Remove dynamic regset
4996 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4998 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4999 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5001 (mips_linux_regset_from_core_section): Remove dynamic regset
5003 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5004 'gregset64', 'fpregset', and 'fpregset64'.
5005 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5006 deleted tdep fields.
5008 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5010 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5012 (amd64_regset_from_core_section): Remove dynamic regset
5014 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5016 (amd64obsd_regset_from_core_section): Remove dynamic regset
5018 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5020 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5021 x86-common regset supply function.
5022 * i386-tdep.c (i386_collect_gregset): Make static.
5023 (i386_gregset): New global regset structure.
5024 (i386_fpregset, i386_xstateregset): New static regset structures.
5025 (i386_regset_from_core_section): Remove dynamic regset
5027 (i386_gdbarch_init): Remove initialization of tdep fields
5028 'gregset', 'fpregset', and 'xstateregset'.
5029 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5030 'fpregset', and 'xstateregset'.
5031 (i386_collect_gregset): Remove prototype.
5032 (i386_gregset): New declaration.
5033 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5035 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5038 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5040 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5041 (arm_linux_vfpregset): New static regset structures.
5042 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5044 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5045 and 'vfpregset' fields.
5047 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5049 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5050 (aarch64_linux_fpregset): New static regset structures.
5051 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5052 of regset structures.
5053 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5056 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5058 * regset.h (struct regset): Remove gdbarch field.
5059 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5060 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5061 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5063 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5064 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5065 (ppc32_linux_vsxregset): Likewise.
5066 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5067 via the regcache instead of the regset.
5068 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5069 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5070 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5071 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5074 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5076 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5077 Constify structures.
5078 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5079 (alphanbsd_aout_gregset): Likewise.
5080 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5081 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5083 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5084 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5086 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5087 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5088 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5089 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5090 * m88k-tdep.c (m88k_gregset): Likewise.
5091 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5092 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5093 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5094 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5095 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5096 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5097 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5098 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5099 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5101 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5102 * sh-tdep.h (sh_corefile_gregset): Likewise.
5103 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5104 * vax-tdep.c (vax_gregset): Likewise.
5106 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5108 Fix TLS access for -static -pthread.
5109 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5110 (try_thread_db_load_1): Initialize it.
5111 (thread_db_get_thread_local_address): Call it if LM is zero.
5112 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5113 * target.h (struct target_ops) (to_get_thread_local_address): Add
5114 load_module_addr comment.
5116 2014-05-21 Pedro Alves <palves@redhat.com>
5118 * dcache.c (dcache_read_memory_partial): If reading the cache line
5119 fails, fallback to reading just the memory the caller wanted.
5121 2014-05-20 Doug Evans <dje@google.com>
5123 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5124 instead of get_current_arch.
5126 2014-05-20 Pedro Alves <palves@redhat.com>
5128 * NEWS: Mention that compare-sections now works with all targets.
5130 * remote.c (PACKET_qCRC): New enum value.
5131 (remote_verify_memory): Don't send qCRC if the target has no
5132 execution. Use packet_support/packet_ok. If the target doesn't
5133 support the qCRC packet, fallback to a deep memory copy.
5134 (compare_sections_command): Say "target image" instead of "remote
5136 (_initialize_remote): Add PACKET_qCRC to the list of config
5137 packets that have no associated command. Extend comment.
5138 * target.c (simple_verify_memory, default_verify_memory): New
5140 * target.h (struct target_ops) <to_verify_memory>: Default to
5141 default_verify_memory.
5142 (simple_verify_memory): New declaration.
5143 * target-delegates.c: Regenerate.
5145 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5147 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5149 2014-05-20 Hui Zhu <hui@codesourcery.com>
5150 Yao Qi <yao@codesourcery.com>
5153 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5154 and change address of sp and pc.
5156 2014-05-19 Tom Tromey <tromey@redhat.com>
5158 * gdbtypes.c (rank_function): Use XNEWVEC.
5159 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5161 2014-05-19 Doug Evans <dje@google.com>
5163 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5164 build_type_unit_groups and moved closer to only caller. Remove
5165 arguments. All references updated. Remove outdated .gdb_index
5167 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5168 build_type_psymtabs_1.
5170 2014-05-19 Doug Evans <dje@google.com>
5172 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5173 n_type_unit_groups, all_type_unit_groups. All uses removed.
5174 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5175 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5176 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5177 (add_type_unit_group_to_table): Delete.
5179 2014-05-19 Doug Evans <dje@google.com>
5181 * eval.c (evaluate_subexp_standard): Add some comments.
5183 2014-05-17 Doug Evans <xdje42@gmail.com>
5185 * progspace.c (remove_program_space): Delete, unused.
5186 * progspace.h (remove_program_space): Ditto.
5188 2014-05-17 Doug Evans <xdje42@gmail.com>
5190 * inferior.c (prune_inferiors): Fix comment.
5191 (remove_inferior_command): Call prune_program_spaces.
5193 2014-05-16 Doug Evans <dje@google.com>
5195 New command line option -D.
5197 * main.c (set_gdb_data_directory): New function.
5198 (captured_main): Recognize -D. Flag error for --data-directory "".
5199 Call set_gdb_data_directory.
5200 (print_gdb_help): Print --data-directory, -D.
5201 * main.h (set_gdb_data_directory): Declare.
5202 * top.c (staged_gdb_datadir): New static global.
5203 (set_gdb_datadir): Call set_gdb_data_directory
5204 (show_gdb_datadir): New function.
5205 (init_main): Update init of data-directory parameter.
5207 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5209 Import the "dirfd" gnulib module.
5210 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5211 * gnulib/aclocal.m4: Update.
5212 * gnulib/config.in: Update.
5213 * gnulib/configure: Update.
5214 * gnulib/import/Makefile.am: Update.
5215 * gnulib/import/Makefile.in: Update.
5216 * gnulib/import/dirfd.c: New.
5217 * gnulib/import/m4/dirfd.m4: New.
5218 * gnulib/import/m4/gnulib-cache.m4: Update.
5219 * gnulib/import/m4/gnulib-comp.m4: Update.
5221 2014-05-16 Pierre Muller <muller@sourceware.org>
5222 Yao Qi <yao@codesourcery.com>
5224 * valprint.c (print_wchar): Move the code on checking whether
5225 W is a printable wide char to the default branch of switch
5226 statement below. Call wchar_printable instead of gdb_iswprint.
5228 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5230 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5231 ldr.w and ldrd instructions.
5233 2014-05-15 Doug Evans <dje@google.com>
5235 * dwarf2read.c (read_structure_type): Delete outdated comments.
5237 2014-05-14 Tom Tromey <tromey@redhat.com>
5239 * macrocmd.c (print_macro_definition): Reindent.
5241 2014-05-13 Doug Evans <xdje42@gmail.com>
5243 * python/py-cmd.c (cmdpy_completer): Add comment.
5244 (completers): Make const.
5246 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5248 * infrun.c (resume): Remove should_resume (unused). Move up
5249 declaration of resume_ptid.
5251 2014-05-13 Tom Tromey <tromey@redhat.com>
5253 * language.h (unop_type_check): Remove.
5254 (binop_type_check): Don't declare.
5256 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5258 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5259 call to regcache_raw_collect.
5261 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5263 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5264 mi_console->quote as the quoting character.
5266 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5268 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5270 2014-04-29 Tom Tromey <tromey@redhat.com>
5272 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5273 "show debug varobj".
5275 2014-05-07 Kyle McMartin <kyle@redhat.com>
5277 Pushed by Joel Brobecker <brobecker@adacore.com>.
5278 * aarch64-tdep.c (aarch64_software_single_step): New function.
5279 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5280 with aarch64_software_single_step.
5282 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5286 2014-05-05 Keith Seitz <keiths@redhat.com>
5288 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5289 variable or history value is successfully parsed.
5291 2014-05-05 Yao Qi <yao@codesourcery.com>
5292 Pedro Alves <palves@redhat.com>
5294 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5295 address of blocks that intersects the requested range. Trim
5296 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5298 * ctf.c (ctf_xfer_partial): Likewise.
5300 2014-05-05 Yao Qi <yao@codesourcery.com>
5302 * printcmd.c (display_command): Remove the check to
5303 target_has_execution.
5305 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5307 * ppcobsd-nat.c: Include "obsd-nat.h".
5308 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5310 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5312 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5314 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5315 and 16-bit signed and unsigned arguments. Update comment.
5316 (stap_parse_probe_arguments): Extend code to handle such
5317 arguments. Use warning instead of complaint to notify about
5318 unrecognized bitness.
5320 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5322 PR breakpoints/16889
5323 * stap-probe.c (stap_parse_probe_arguments): Simplify
5324 check for non-prefixed probes (i.e., probes whose
5325 arguments do not start with "N@"). Always set the
5326 argument type to a sane value.
5328 2014-05-01 David Taylor <dtaylor@emc.com>
5330 * remote.c (compare_sections_command): Add -r option to compare
5331 all loadable read-only sections.
5333 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5335 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5336 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5338 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5339 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5340 Remove unused CORE_ADDR argument. Update all callers.
5342 2014-04-29 Pedro Alves <palves@redhat.com>
5344 * remote.c (struct packet_config) <detect>: Extend comment.
5345 (add_packet_config_cmd): Don't set the config's detect or support
5347 (init_all_packet_configs): Also initialize the config's 'detect'
5349 (reset_all_packet_configs_support): New function.
5350 (remote_open_1): Call reset_all_packet_configs_support instead of
5351 init_all_packet_configs.
5352 (_initialize_remote): Initialize all packet configs. Assert that
5353 all packets have an associated command, except a few known
5356 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5358 * dwarf2read.c (read_subrange_type): Handle dynamic
5359 DW_AT_lower_bound attributes.
5361 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5363 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5364 dynamic bounds before computing its upper bound.
5365 (ada_discrete_type_low_bound): Same as above with the lower bound.
5367 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5369 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5370 range types. Adjust the array handling implementation to
5371 take advantage of this change.
5372 (resolve_dynamic_range): New function, mostly extracted from
5373 resolve_dynamic_bounds.
5374 (resolve_dynamic_array): New function, mostly extracted from
5375 resolve_dynamic_bounds.
5376 (resolve_dynamic_bounds): Delete.
5377 (resolve_dynamic_type): Reimplement. Add handling of
5378 TYPE_CODE_RANGE types.
5380 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5382 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5383 handling of parallel ___XA types.
5385 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5387 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5388 unnecessary second call to static_unwrap_type.
5390 2014-04-27 Hui Zhu <hui@codesourcery.com>
5392 * stack.c (print_frame_info): Call do_gdb_disassembly with
5393 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5395 2014-04-26 Doug Evans <xdje42@gmail.com>
5397 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5399 2014-04-25 Pedro Alves <palves@redhat.com>
5402 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5403 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5404 and newline from built string.
5405 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5406 (linux_ptrace_attach_fail_reason): ... this.
5407 * linux-nat.c (linux_nat_attach): Adjust to use
5408 linux_ptrace_attach_fail_reason.
5410 2014-04-25 Pedro Alves <palves@redhat.com>
5412 * remote.c (struct remote_state): Remove multi_process_aware,
5413 non_stop_aware, cond_tracepoints, cond_breakpoints,
5414 breakpoint_commands, fast_tracepoints, static_tracepoints,
5415 install_in_trace, disconnected_tracing,
5416 enable_disable_tracepoints, string_tracing, and
5417 augmented_libraries_svr4_read fields.
5418 (remote_multi_process_p): Move further below in the file.
5419 (struct packet_config): Add comments.
5420 (update_packet_config): Delete function.
5421 (show_packet_config_cmd): Use packet_config_support.
5422 (add_packet_config_cmd): Use NULL as set callback.
5423 (packet_ok): "set remote foo-packet"-style commands no longer
5424 change config->supported -- adjust.
5425 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5426 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5427 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5428 (PACKET_QNonStop, PACKET_multiprocess_feature)
5429 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5430 (PACKET_DisconnectedTracing_feature)
5431 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5432 (set_remote_protocol_packet_cmd): Delete function.
5433 (packet_config_support, packet_support): New functions.
5434 (set_remote_protocol_Z_packet_cmd): Don't call
5435 update_packet_config.
5436 (remote_query_attached, remote_pass_signals)
5437 (remote_program_signals, remote_threads_info)
5438 (remote_threads_extra_info, remote_start_remote): Use
5440 (remote_start_remote): Use packet_config_support and
5442 (init_all_packet_configs): Set all packets to unknown support,
5443 instead of calling update_packet_config.
5444 (remote_check_symbols): Use packet_support.
5445 (remote_supported_packet): Unconditionally set the packet config's
5447 (remote_multi_process_feature, remote_non_stop_feature)
5448 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5449 (remote_breakpoint_commands_feature)
5450 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5451 (remote_install_in_trace_feature)
5452 (remote_disconnected_tracing_feature)
5453 (remote_enable_disable_tracepoint_feature)
5454 (remote_string_tracing_feature)
5455 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5456 (remote_protocol_features): Adjust to use remote_supported_packet
5457 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5458 "ConditionalTracepoints", "ConditionalBreakpoints",
5459 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5460 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5461 "EnableDisableTracepoints", and "tracenz".
5462 (remote_query_supported): Use packet_support.
5463 (remote_open_1): Adjust.
5464 (extended_remote_attach_1): Use packet_support. Switch on the
5465 result of packet_ok instead of checking whether the packet ended
5467 (remote_vcont_resume): Use packet_support.
5468 (remote_resume, remote_stop_ns, fetch_register_using_p)
5469 (remote_prepare_to_store, store_register_using_P)
5470 (check_binary_download, remote_write_bytes): Use packet_support.
5471 (remote_vkill): Use packet_support. Switch on the result of
5472 packet_ok instead of checking whether the packet ended up
5474 (extended_remote_supports_disable_randomization): Use
5476 (extended_remote_run): Switch on the result of packet_ok instead
5477 of checking whether the packet ended up disabled.
5478 (remote_insert_breakpoint, remote_remove_breakpoint)
5479 (remote_insert_watchpoint, remote_remove_watchpoint)
5480 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5482 (remote_search_memory): Use packet_config_support.
5483 (remote_get_thread_local_address, remote_get_tib_address)
5484 (remote_hostio_send_command, remote_can_execute_reverse): Use
5486 (remote_supports_cond_tracepoints)
5487 (remote_supports_cond_breakpoints)
5488 (remote_supports_fast_tracepoints)
5489 (remote_supports_static_tracepoints)
5490 (remote_supports_install_in_trace)
5491 (remote_supports_enable_disable_tracepoint)
5492 (remote_supports_string_tracing)
5493 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5494 the packet config says the feature is enabled or disabled.
5495 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5496 (remote_get_trace_status): Use packet_support.
5497 (remote_set_disconnected_tracing): Adjust to check whether the
5498 feature is enabled with packet_support.
5499 (remote_set_trace_buffer_size, remote_use_agent)
5500 (remote_can_use_agent, remote_supports_btrace): Use
5502 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5503 Use packet_config_support.
5504 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5505 the packet config says the feature is enabled or disabled.
5506 (set_range_stepping): Use packet_support.
5508 2014-04-25 Tom Tromey <tromey@redhat.com>
5510 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5513 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5515 * NEWS: Mention support for C99 variable length arrays.
5517 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5519 * ada-lang.c (standard_exc): Expand introductory comment.
5521 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5522 Walfred Tedeschi <walfred.tedeschi@intel.com>
5524 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5526 (amd64_linux_read_description): Add code to handle AVX512 xstate
5527 mask and return respective tdesc.
5528 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5529 and features/i386/x32-avx512-linux.c.
5530 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5531 (amd64_linux_core_read_description): Add code to handle AVX512
5532 xstate mask and return respective tdesc.
5533 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5534 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5536 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5537 (tdesc_amd64_avx512_linux): New prototype.
5538 (tdesc_x32_avx512_linux): Likewise.
5539 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5540 features/i386/x32-avx512.c.
5541 (amd64_ymm_avx512_names): New register names for pseudo
5543 (amd64_ymmh_avx512_names): New register names for raw registers
5545 (amd64_k_names): New register names for K registers.
5546 (amd64_zmmh_names): New register names for ZMM raw registers.
5547 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5548 (amd64_xmm_avx512_names): New register names for XMM16-31
5550 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5552 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5553 if feature is present.
5554 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5555 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5556 (AMD64_NUM_REGS): Adjust to new number of registers.
5557 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5558 registers supplied via XSTATE by AVX512 registers.
5559 (i386_linux_read_description): Add case for AVX512.
5560 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5561 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5562 (i386_linux_core_read_description): Add case for AVX512.
5563 (i386_linux_init_abi): Install supported register note section
5565 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5567 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5568 registers to be number of zmm7h + 1.
5569 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5570 * i386-tdep.c: Include features/i386/i386-avx512.c.
5571 (i386_zmm_names): Add ZMM pseudo register names array.
5572 (i386_zmmh_names): Add ZMM raw register names array.
5573 (i386_k_names): Add K raw register names array.
5574 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5575 registers. AVX512 has 16 more ZMM registers than there are YMM
5577 (i386_zmmh_regnum_p): Add function to look up register number of
5579 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5580 (i386_k_regnum_p): Likewise for K raw registers.
5581 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5582 registers added by AVX512.
5583 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5584 registers added by AVX512.
5585 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5587 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5588 (i386_pseudo_register_name): Add ZMM pseudo registers.
5589 (i386_zmm_type): Construct and return vector registers type for ZMM
5591 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5592 ZMM0-31 pseudo registers and K registers.
5593 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5594 and YMM16-31 registers from register cache.
5595 (i386_pseudo_register_write): Add code to write K, ZMM and
5597 (i386_register_reggroup_p): Add code to include/exclude AVX512
5598 registers in/from respective register groups.
5599 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5600 registers if feature is present in xcr0.
5601 (i386_gdbarch_init): Add code to initialize AVX512 feature
5602 variables in tdep structure, wire in pseudo registers and call
5603 initialize_tdesc_i386_avx512.
5604 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5606 (i386_regnum): Add AVX512 registers.
5607 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5608 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5609 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5610 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5612 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5613 (i386_ymm_avx512_regnum_p): Likewise.
5614 (i386_k_regnum_p): Likewise.
5615 (i386_zmm_regnum_p): Likewise.
5616 (i386_zmmh_regnum_p): Likewise.
5617 * i387-tdep.c : Update year in copyright notice.
5618 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5620 (XSAVE_YMM_AVX512_ADDR): New macro.
5621 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5623 (XSAVE_XMM_AVX512_ADDR): New macro.
5624 (xsave_avx512_k_offset): New table for K register offsets in
5626 (XSAVE_AVX512_K_ADDR): New macro.
5627 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5629 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5630 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5632 (i387_collect_xsave): Add code to collect AVX512 registers from
5634 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5635 of XMM16-31 registers.
5636 (I387_NUM_K_REGS): New define for number of K registers.
5637 (I387_K0_REGNUM): New define for K0 register number.
5638 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5639 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5640 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5642 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5643 (I387_XMM16_REGNUM): New define for XMM16 register number.
5644 (I387_YMM0_REGNUM): New define for YMM0 register number.
5645 (I387_KEND_REGNUM): New define for last K register number.
5646 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5647 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5649 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5651 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5653 * features/Makefile: Add AVX512 related files.
5654 * features/i386/32bit-avx512.xml: New file.
5655 * features/i386/64bit-avx512.xml: Likewise.
5656 * features/i386/amd64-avx512-linux.c: Likewise.
5657 * features/i386/amd64-avx512-linux.xml: Likewise.
5658 * features/i386/amd64-avx512.c: Likewise.
5659 * features/i386/amd64-avx512.xml: Likewise.
5660 * features/i386/i386-avx512-linux.c: Likewise.
5661 * features/i386/i386-avx512-linux.xml: Likewise.
5662 * features/i386/i386-avx512.c: Likewise.
5663 * features/i386/i386-avx512.xml: Likewise.
5664 * features/i386/x32-avx512-linux.c: Likewise.
5665 * features/i386/x32-avx512-linux.xml: Likewise.
5666 * features/i386/x32-avx512.c: Likewise.
5667 * features/i386/x32-avx512.xml: Likewise.
5668 * regformats/i386/amd64-avx512-linux.dat: New file.
5669 * regformats/i386/amd64-avx512.dat: Likewise.
5670 * regformats/i386/i386-avx512-linux.dat: Likewise.
5671 * regformats/i386/i386-avx512.dat: Likewise.
5672 * regformats/i386/x32-avx512-linux.dat: Likewise.
5673 * regformats/i386/x32-avx512.dat: Likewise.
5674 * NEWS: Add note about new support for AVX512.
5677 2014-04-23 Pedro Alves <palves@redhat.com>
5679 * breakpoint.c (insert_bp_location): Tolerate errors if the
5680 breakpoint is set in a user-loaded objfile.
5681 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5682 location is marked shlib_disabled. If the breakpoint is set in a
5683 user-loaded objfile is a GDB-side memory breakpoint, validate it
5684 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5685 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5687 * mem-break.c (memory_validate_breakpoint): New function.
5688 * objfiles.c (userloaded_objfile_contains_address_p): New
5690 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5691 * target.h (memory_validate_breakpoint): New declaration.
5693 2014-04-23 Pedro Alves <palves@redhat.com>
5695 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5696 the breakpoint is set in a shared library, only suppress
5697 errors for software breakpoints, not hardware breakpoints.
5699 2014-04-22 Pedro Alves <palves@redhat.com>
5701 * infrun.c (schedlock_applies): New function, factored out from
5702 find_thread_needs_step_over.
5703 (find_thread_needs_step_over): Use it.
5704 (switch_back_to_stepped_thread): Always clear trap_expected if the
5705 step over is finished. Return early if scheduler locking applies.
5706 Look for the stepping thread and a potential step-over thread with
5708 (currently_stepping_or_nexting_callback): Delete.
5710 2014-04-22 Nick Clifton <nickc@redhat.com>
5712 * NEWS: Mention that ARM sim now supports tracing.
5714 2014-04-22 Yao Qi <yao@codesourcery.com>
5716 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5718 * tracefile.c (tracefile_fetch_registers): ... it. New
5720 * tracefile.h (tracefile_fetch_registers): Declare.
5721 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5722 tracefile_fetch_registers.
5724 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5727 * windows-nat.c (thread_rec): Don't display a warning when
5728 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5729 fails for any reason, set th->suspended to -1, so that we don't
5730 try to resume such a thread. Also, don't return NULL in these
5731 cases, to avoid completely ruin the session due to "PC register is
5732 not available" error.
5733 (do_windows_fetch_inferior_registers): Check errors in
5734 GetThreadContext call.
5735 (windows_continue): Accept an additional argument KILLED; if not
5736 zero, ignore errors in the SetThreadContext call, since the
5737 inferior was killed and is shutting down.
5738 (windows_resume, get_windows_debug_event)
5739 (windows_create_inferior, windows_mourn_inferior)
5740 (windows_kill_inferior): All callers of windows_continue changed
5741 to adjust to its new calling sequence.
5743 2014-04-19 Yao Qi <yao@codesourcery.com>
5745 * ctf.c (ctf_open): Call post_create_inferior.
5747 2014-04-19 Yao Qi <yao@codesourcery.com>
5749 * ctf.c (handle_id): New static variable.
5750 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5751 value. Get the declaration of event "register" and get length
5752 of field "contents".
5754 2014-04-19 Yao Qi <yao@codesourcery.com>
5756 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5758 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5760 * valops.c (oload_method_static): Remove unnecessary argument
5761 METHOD. Update all callers.
5763 2014-04-18 Pedro alves <palves@redhat.com>
5764 Tom Tromey <tromey@redhat.com>
5767 * frame.c (get_prev_frame_1): Rename to ...
5768 (get_prev_frame_always): ... this, and make extern. Adjust.
5769 (skip_artificial_frames): Use get_prev_frame_always.
5770 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5771 (get_frame_unwind_stop_reason): Adjust to rename.
5772 * frame.h (get_prev_frame_always): Declare.
5773 * inline-frame.c: Include frame.h.
5774 (inline_frame_this_id): Use get_prev_frame_always.
5776 2014-04-18 Tristan Gingold <gingold@adacore.com>
5778 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5779 code by using bfd_mach_o_get_base_address.
5781 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5783 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5784 (spu_ax_pseudo_register_collect): New function.
5785 (spu_ax_pseudo_register_push_stack): Likewise.
5786 (spu_dwarf_reg_to_regnum): Likewise.
5787 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5789 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5791 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5792 Replace FRAME argument with FRAME_ID.
5793 * gdbarch.c, gdbarch.h: Regenerate.
5794 * findvar.c (default_value_from_register): Add GDBARCH argument;
5795 replace FRAME by FRAME_ID. No longer call get_frame_id.
5796 (value_from_register): Update call to gdbarch_value_from_register.
5797 * value.h (default_value_from_register): Update prototype.
5798 * s390-linux-tdep.c (s390_value_from_register): Update interface
5799 and call to default_value_from_register.
5800 * spu-tdep.c (spu_value_from_register): Likewise.
5802 * findvar.c (address_from_register): Remove TYPE argument.
5803 Do not call value_from_register; use gdbarch_value_from_register
5804 with null_frame_id instead.
5805 * value.h (address_from_register): Update prototype.
5806 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5807 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5808 address_from_register interface change.
5810 2014-04-17 Yao Qi <yao@codesourcery.com>
5812 * gdbtypes.h: Update comments to link to types and macros'
5815 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5817 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5819 2014-04-16 Keith Seitz <keiths@redhat.com>
5822 * dwarf2read.c (skip_one_die): Check that all relative-offset
5823 sibling DIEs fall within range of the current reader's buffer.
5824 (read_partial_die): Likewise.
5826 2014-04-16 Keith Seitz <keiths@redhat.com>
5829 * cp-namespace.c (lookup_symbol_file): If the type name of
5830 `this' is NULL, return immediately.
5832 2014-04-14 Keith Seitz <keiths@redhat.com>
5835 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5836 from symbol_matches_domain in symtab.c. All local callers
5837 of symbol_matches_domain updated.
5838 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5839 search STRUCT_DOMAIN.
5840 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5841 independently. standard_lookup will do that automatically.
5842 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5843 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5844 (cp_lookup_symbol_in_namespace): Likewise.
5845 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5846 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5847 may return a STRUCT_DOMAIN match.
5848 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5849 * cp-support.c: Include language.h.
5850 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5852 * psymtab.c (match_partial_symbol): Compare the requested
5853 domain with the symbol's domain directly.
5854 (lookup_partial_symbol): Likewise.
5855 * symtab.c (lookup_symbol_in_language): Explain when/why
5856 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5857 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5858 appropriate languages.
5859 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5860 and moved to ada-lang.c
5861 (lookup_block_symbol): Explain that this function only returns
5862 symbol matching the requested DOMAIN.
5863 Compare the requested domain with the symbol's domain directly.
5864 (iterate_over_symbols): Compare the requested domain with the
5865 symbol's domain directly.
5866 * symtab.h (symbol_matches_domain): Remove.
5868 2014-04-14 Tom Tromey <tromey@redhat.com>
5871 * c-exp.y (type_aggregate_p): New function.
5872 (qualified_name, classify_inner_name): Use it.
5873 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5874 and TYPE_TARGET_TYPE of an enum type.
5875 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5877 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5878 handle TYPE_DECLARED_CLASS.
5879 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5881 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5882 * valops.c (enum_constant_from_type): New function.
5883 (value_aggregate_elt): Use it.
5884 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5887 2014-04-14 Tom Tromey <tromey@redhat.com>
5889 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5890 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5892 * value.h (value_aggregate_elt): Update.
5894 2014-04-14 Tom Tromey <tromey@redhat.com>
5896 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5898 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5900 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5901 (evaluate_subexp_standard): Pass noside argument.
5902 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5903 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5904 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5905 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5906 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5908 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5910 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5911 points to a constant blob.
5913 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5915 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5916 property and store it as the high bound and flag the range accordingly.
5917 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5918 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5919 * gdbtypes.h (enum range_flags): New enum.
5920 (struct range_bounds): Add flags member.
5922 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5924 * c-typeprint.c (c_type_print_varspec_suffix): Added
5925 check for not yet resolved high bound. If unresolved, print
5926 "variable length" string to the console instead of random
5929 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5931 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5933 (ada_template_to_fixed_record_type_1): Likewise.
5934 (ada_to_fixed_type_1): Likewise.
5935 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5936 (cp_print_value): Likewise.
5937 * d-valprint.c (dynamic_array_type): Likewise.
5938 * findvar.c (address_of_variable): Likewise.
5939 * jv-valprint.c (java_value_print): Likewise.
5940 * valops.c (value_ind): Likewise.
5941 * value.c (coerce_ref): Likewise.
5943 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5945 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5946 value and retrieve the dynamic type size.
5948 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5950 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5951 passed to sizeof is dynamic evaluate the argument to compute the length.
5953 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5954 Joel Brobecker <brobecker@adacore.com>
5956 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5957 (dwarf2_evaluate_property): New function.
5958 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5959 * dwarf2read.c (attr_to_dynamic_prop): New function.
5960 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5962 * gdbtypes.c: Include dwarf2loc.h.
5963 (is_dynamic_type): New function.
5964 (resolve_dynamic_type): New function.
5965 (resolve_dynamic_bounds): New function.
5966 (get_type_length): New function.
5967 (check_typedef): Use get_type_length to compute type length.
5968 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5969 (TYPE_LOW_BOUND_KIND): New macro.
5970 (is_dynamic_type): New function prototype.
5971 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5972 to resolve dynamic properties of the type. Update comment.
5973 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5975 2014-04-14 Richard Henderson <rth@redhat.com>
5977 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5979 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5980 Doug Evans <xdje42@gmail.com>
5982 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5983 dereference TYPE_CODE_REF values.
5985 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5987 Revert the following changes due to regressions:
5989 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5990 (dwarf2_evaluate_property): New function.
5991 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5992 * dwarf2read.c (attr_to_dynamic_prop): New function.
5993 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5995 * gdbtypes.c: Include dwarf2loc.h.
5996 (is_dynamic_type): New function.
5997 (resolve_dynamic_type): New function.
5998 (resolve_dynamic_bounds): New function.
5999 (get_type_length): New function.
6000 (check_typedef): Use get_type_length to compute type length.
6001 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6002 (TYPE_LOW_BOUND_KIND): New macro.
6003 (is_dynamic_type): New function prototype.
6004 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6005 to resolve dynamic properties of the type. Update comment.
6006 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6008 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6009 passed to sizeof is dynamic evaluate the argument to compute the length.
6011 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6012 value and retrieve the dynamic type size.
6014 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6015 (ada_template_to_fixed_record_type_1): Likewise.
6016 (ada_to_fixed_type_1): Likewise.
6017 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6018 (cp_print_value): Likewise.
6019 * d-valprint.c (dynamic_array_type): Likewise.
6020 * eval.c (evaluate_subexp_with_coercion): Likewise.
6021 * findvar.c (address_of_variable): Likewise.
6022 * jv-valprint.c (java_value_print): Likewise.
6023 * valops.c (value_ind): Likewise.
6024 * value.c (coerce_ref): Likewise.
6026 * c-typeprint.c (c_type_print_varspec_suffix): Added
6027 check for not yet resolved high bound. If unresolved, print
6028 "variable length" string to the console instead of random
6031 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6032 property and store it as the high bound and flag the range accordingly.
6033 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6034 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6035 * gdbtypes.h (enum range_flags): New enum.
6036 (struct range_bounds): Add flags member.
6038 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6039 points to a constant blob.
6041 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6042 (evaluate_subexp_standard): Pass noside argument.
6043 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6044 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6045 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6046 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6047 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6049 2014-04-11 Keith Seitz <keiths@redhat.com>
6052 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6053 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6056 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6058 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6059 (evaluate_subexp_standard): Pass noside argument.
6060 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6061 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6062 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6063 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6064 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6066 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6068 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6069 points to a constant blob.
6071 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6073 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6074 property and store it as the high bound and flag the range accordingly.
6075 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6076 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6077 * gdbtypes.h (enum range_flags): New enum.
6078 (struct range_bounds): Add flags member.
6080 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6082 * c-typeprint.c (c_type_print_varspec_suffix): Added
6083 check for not yet resolved high bound. If unresolved, print
6084 "variable length" string to the console instead of random
6087 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6089 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6090 (ada_template_to_fixed_record_type_1): Likewise.
6091 (ada_to_fixed_type_1): Likewise.
6092 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6093 (cp_print_value): Likewise.
6094 * d-valprint.c (dynamic_array_type): Likewise.
6095 * eval.c (evaluate_subexp_with_coercion): Likewise.
6096 * findvar.c (address_of_variable): Likewise.
6097 * jv-valprint.c (java_value_print): Likewise.
6098 * valops.c (value_ind): Likewise.
6099 * value.c (coerce_ref): Likewise.
6101 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6103 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6104 value and retrieve the dynamic type size.
6106 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6108 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6109 passed to sizeof is dynamic evaluate the argument to compute the length.
6111 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6113 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6114 (dwarf2_evaluate_property): New function.
6115 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6116 * dwarf2read.c (attr_to_dynamic_prop): New function.
6117 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6119 * gdbtypes.c: Include dwarf2loc.h.
6120 (is_dynamic_type): New function.
6121 (resolve_dynamic_type): New function.
6122 (resolve_dynamic_bounds): New function.
6123 (get_type_length): New function.
6124 (check_typedef): Use get_type_length to compute type length.
6125 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6126 (TYPE_LOW_BOUND_KIND): New macro.
6127 (is_dynamic_type): New function prototype.
6128 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6129 to resolve dynamic properties of the type. Update comment.
6130 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6132 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6134 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6135 declaring high/low bounds and change uses accordingly. Call
6136 create_range_type instead of create_static_range_type.
6137 * gdbtypes.c (create_range_type): New function.
6138 (create_range_type): Convert bounds into struct bound_prop and pass
6139 them to create_range_type.
6140 * gdbtypes.h (struct bound_prop): New struct.
6141 (create_range_type): New function prototype.
6142 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6143 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6144 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6146 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6148 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6150 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6151 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6152 * ada-lang.c: All uses of create_range_type updated.
6153 * coffread.c: All uses of create_range_type updated.
6154 * dwarf2read.c: All uses of create_range_type updated.
6155 * f-exp.y: All uses of create_range_type updated.
6156 * m2-valprint.c: All uses of create_range_type updated.
6157 * mdebugread.c: All uses of create_range_type updated.
6158 * stabsread.c: All uses of create_range_type updated.
6159 * valops.c: All uses of create_range_type updated.
6160 * valprint.c: All uses of create_range_type updated.
6162 2014-04-10 Pedro Alves <palves@redhat.com>
6164 * breakpoint.c (single_step_breakpoints)
6165 (single_step_gdbarch): Move up in the file.
6166 (one_breakpoint_xfer_memory): New function, factored out from ...
6167 (breakpoint_xfer_memory): ... here. Also process single-step
6170 2014-04-09 Tristan Gingold <gingold@adacore.com>
6172 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6174 (darwin_decode_exception_message): Free port only after use.
6176 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6178 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6179 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6180 when setting the size of call_length.
6182 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6184 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6185 dereference TYPE_CODE_REF values.
6187 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6189 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6190 end of warning message.
6192 2014-04-03 Doug Evans <dje@google.com>
6194 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6195 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6197 2014-04-02 Alan Modra <amodra@gmail.com>
6199 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6200 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6201 (struct symbol_file_add_from_memory_args): Add size field.
6202 (find_vdso_size): New function.
6203 (add_vsyscall_page): Attempt to find vdso size.
6205 2014-04-01 Doug Evans <dje@google.com>
6207 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6209 2014-04-01 Tristan Gingold <gingold@adacore.com>
6211 * darwin-nat.c (darwin_encode_reply): Add prototype.
6212 (darwin_decode_exception_message): Reply to unknown inferiors.
6213 (darwin_decode_message): Handle message by id. Ignore message
6214 to unknown inferior.
6215 (darwin_wait): Discard unknown messages, add debug trace.
6217 2014-03-31 Doug Evans <dje@google.com>
6219 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6222 2014-03-31 Doug Evans <dje@google.com>
6224 New option "set print symbol-loading".
6226 * solib.c (solib_read_symbols): Only print symbol loading messages
6228 (solib_add): If symbol loading is in "brief" mode, notify user
6229 symbols are being loaded.
6230 (reload_shared_libraries_1): Ditto.
6231 * symfile.c (print_symbol_loading_off): New static global.
6232 (print_symbol_loading_brief): New static global.
6233 (print_symbol_loading_full): New static global.
6234 (print_symbol_loading_enums): New static global.
6235 (print_symbol_loading): New static global.
6236 (print_symbol_loading_p): New function.
6237 (symbol_file_add_with_addrs): Only print symbol loading messages
6239 (_initialize_symfile): Register "print symbol-loading" set/show
6241 * symfile.h (print_symbol_loading_p): Declare.
6243 2014-03-30 Doug Evans <xdje42@gmail.com>
6245 * infrun.c (set_last_target_status): New function.
6246 (handle_inferior_event): Call it.
6248 2014-03-30 Doug Evans <xdje42@gmail.com>
6250 * inferior.h (enum stop_kind): Improve comment.
6252 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6254 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6255 a reference, strip the reference layer before calling
6256 the lang_ops value_has_mutated callback.
6258 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6260 Remove some globals from our parser.
6261 * language.c (unk_lang_parser): Add "struct parser_state"
6263 * language.h (struct language_defn) <la_parser>: Likewise.
6264 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6265 (initialize_expout): Add "struct parser_state" argument.
6266 Rewrite function to use the parser state.
6267 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6268 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6269 write_exp_elt_longcst, write_exp_elt_dblcst,
6270 write_exp_elt_decfloatcst, write_exp_elt_type,
6271 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6272 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6273 write_dollar_variable): Likewise.
6274 (parse_exp_in_context_1): Use parser state.
6275 (insert_type_address_space): Add "struct parser_state" argument.
6277 (increase_expout_size): New function.
6278 * parser-defs.h: Forward declare "struct language_defn" and
6279 "struct parser_state".
6280 (expout, expout_size, expout_ptr): Remove extern declarations.
6281 (parse_gdbarch, parse_language): Rewrite macro declarations to
6282 accept the parser state.
6283 (struct parser_state): New struct.
6284 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6285 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6286 write_exp_elt_decfloatcst, write_exp_elt_type,
6287 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6288 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6289 write_exp_msymbol, write_dollar_variable,
6290 mark_struct_expression, insert_type_address_space): Add "struct
6291 parser_state" argument.
6292 (increase_expout_size): New function.
6293 * utils.c (do_clear_parser_state): New function.
6294 (make_cleanup_clear_parser_state): Likewise.
6295 * utils.h (make_cleanup_clear_parser_state): New function
6297 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6298 Update calls to write_exp* in order to pass the parser state.
6299 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6300 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6301 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6302 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6303 * stap-probe.c (stap_parse_register_operand): Likewise.
6304 (stap_parse_single_operand): Likewise.
6305 (stap_parse_argument_1): Likewise.
6306 (stap_parse_argument): Use parser state.
6307 * stap-probe.h: Include "parser-defs.h".
6308 (struct stap_parse_info) <pstate>: New field.
6309 * c-exp.y (parse_type): Rewrite to use parser state.
6310 (yyparse): Redefine to c_parse_internal.
6311 (pstate): New global variable.
6312 (parse_number): Add "struct parser_state" argument.
6313 (write_destructor_name): Likewise.
6314 (type_exp): Update calls to write_exp* and similars in order to
6316 (exp1, exp, variable, qualified_name, space_identifier,
6317 typename, typebase): Likewise.
6318 (write_destructor_name, parse_number, lex_one_token,
6319 classify_name, classify_inner_name, c_parse): Add "struct
6320 parser_state" argument. Update function to use parser state.
6321 * c-lang.h: Forward declare "struct parser_state".
6322 (c_parse): Add "struct parser_state" argument.
6323 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6324 (yyparse): Redefine macro to ada_parse_internal.
6325 (pstate): New variable.
6326 (write_int, write_object_renaming, write_var_or_type,
6327 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6328 type_int, type_long, type_long_long, type_float, type_double,
6329 type_long_double, type_char, type_boolean, type_system_address):
6330 Add "struct parser_state" argument.
6331 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6332 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6333 var_or_type, aggregate, aggregate_component_list,
6334 positional_list, others, component_group,
6335 component_associations): Update calls to write_exp* and similar
6336 functions in order to use parser state.
6337 (ada_parse, write_var_from_sym, write_int,
6338 write_exp_op_with_string, write_object_renaming,
6339 find_primitive_type, write_selectors, write_ambiguous_var,
6340 write_var_or_type, write_name_assoc, type_int, type_long,
6341 type_long_long, type_float, type_double, type_long_double,
6342 type_char, type_boolean, type_system_address): Add "struct
6343 parser_state" argument. Adjust function to use parser state.
6344 * ada-lang.c (parse): Likewise.
6345 * ada-lang.h: Forward declare "struct parser_state".
6346 (ada_parse): Add "struct parser_state" argument.
6347 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6348 calls to both functions.
6349 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6351 (yyparse): Redefine macro to f_parse_internal.
6352 (pstate): New variable.
6353 (parse_number): Add "struct parser_state" argument.
6354 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6355 and similars in order to use parser state.
6356 (parse_number): Adjust code to use parser state.
6358 (f_parse): New function.
6359 * f-lang.h: Forward declare "struct parser_state".
6360 (f_parse): Add "struct parser_state" argument.
6361 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6363 (yyparse): Redefine macro for java_parse_internal.
6364 (pstate): New variable.
6365 (push_expression_name, push_expression_name, insert_exp): Add
6366 "struct parser_state" argument.
6367 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6368 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6369 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6370 PostIncrementExpression, PostDecrementExpression,
6371 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6372 UnaryExpressionNotPlusMinus, CastExpression,
6373 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6374 RelationalExpression, EqualityExpression, AndExpression,
6375 ExclusiveOrExpression, InclusiveOrExpression,
6376 ConditionalAndExpression, ConditionalOrExpression,
6377 ConditionalExpression, Assignment, LeftHandSide): Update
6378 calls to write_exp* and similars in order to use parser state.
6379 (parse_number): Ajust code to use parser state.
6381 (java_parse): New function.
6382 (push_variable): Add "struct parser_state" argument. Adjust
6383 code to user parser state.
6384 (push_fieldnames, push_qualified_expression_name,
6385 push_expression_name, insert_exp): Likewise.
6386 * jv-lang.h: Forward declare "struct parser_state".
6387 (java_parse): Add "struct parser_state" argument.
6388 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6390 (yyparse): Redefine macro to m2_parse_internal.
6391 (pstate): New variable.
6392 (type_exp, exp, fblock, variable, type): Update calls to
6393 write_exp* and similars to use parser state.
6395 (m2_parse): New function.
6396 * m2-lang.h: Forward declare "struct parser_state".
6397 (m2_parse): Add "struct parser_state" argument.
6398 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6399 * objc-lang.h: Forward declare "struct parser_state".
6400 (end_msglist): Add "struct parser_state" argument.
6401 * p-exp.y (parse_type): Rewrite macro to use parser state.
6402 (yyparse): Redefine macro to pascal_parse_internal.
6403 (pstate): New variable.
6404 (parse_number): Add "struct parser_state" argument.
6405 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6406 write_exp* and similars in order to use parser state.
6407 (parse_number, yylex): Adjust code to use parser state.
6408 (pascal_parse): New function.
6409 * p-lang.h: Forward declare "struct parser_state".
6410 (pascal_parse): Add "struct parser_state" argument.
6411 * go-exp.y (parse_type): Rewrite macro to use parser state.
6412 (yyparse): Redefine macro to go_parse_internal.
6413 (pstate): New variable.
6414 (parse_number): Add "struct parser_state" argument.
6415 (type_exp, exp1, exp, variable, type): Update calls to
6416 write_exp* and similars in order to use parser state.
6417 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6418 to use parser state.
6419 (go_parse): Likewise.
6420 * go-lang.h: Forward declare "struct parser_state".
6421 (go_parse): Add "struct parser_state" argument.
6423 2014-03-27 Doug Evans <dje@google.com>
6425 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6427 2014-03-27 Doug Evans <dje@google.com>
6429 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6430 Remove argument abbrev_section. All callers updated.
6432 2014-03-27 Doug Evans <dje@google.com>
6434 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6435 addr_base, ranges_base.
6437 2014-03-26 Keith Seitz <keiths@redhat.com>
6439 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6440 types, not VAR_DOMAIN.
6442 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6444 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6446 * features/nios2-linux.c: Regenerated.
6447 * features/nios2.c: Regenerated.
6449 2014-03-25 Pedro Alves <palves@redhat.com>
6451 * cli/cli-script.c (script_from_file): Force the interpreter to
6454 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6456 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6457 small stack allocation.
6459 2014-03-24 Tristan Gingold <gingold@adacore.com>
6461 * darwin-nat.c (exc_server): Remove unused prototype.
6462 (darwin_dump_message): Correctly display data on x86_64.
6463 (darwin_encode_reply): Fix style.
6464 Add comments and fix indentation.
6466 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6468 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6470 2014-03-22 Doug Evans <xdje42@gmail.com>
6472 * infcmd.c: Whitespace fixes.
6473 (interrupt_command): Merge two function comments into one.
6475 2014-03-22 Doug Evans <xdje42@gmail.com>
6477 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6480 2014-03-22 Yao Qi <yao@codesourcery.com>
6482 * remote.c (target_read_live_memory): Remove.
6483 (memory_xfer_live_readonly_partial): Rename it to
6484 remote_xfer_live_readonly_partial. Remove argument 'object'.
6485 All callers updated. Call remote_read_bytes_1
6486 instead of target_read_live_memory.
6487 * tracepoint.c (set_traceframe_number): Remove.
6488 (make_cleanup_restore_traceframe_number): Likewise .
6489 * tracepoint.h (set_traceframe_number): Remove declaration.
6490 (make_cleanup_restore_traceframe_number): Likewise.
6492 2014-03-22 Yao Qi <yao@codesourcery.com>
6494 * remote.c (remote_read_bytes): Move code on reading from the
6496 (remote_read_bytes_1): ... here. New function.
6498 2014-03-22 Yao Qi <yao@codesourcery.com>
6500 * ctf.c (ctf_xfer_partial): Check the return value of
6501 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6502 return TARGET_XFER_UNAVAILABLE.
6503 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6504 * target.c (target_read_live_memory): Move it to remote.c.
6505 (memory_xfer_live_readonly_partial): Likewise.
6506 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6507 * remote.c (target_read_live_memory): Moved from target.c.
6508 (memory_xfer_live_readonly_partial): Likewise.
6509 (remote_read_bytes): Factored out from
6510 memory_xfer_partial_1.
6512 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6514 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6517 2014-03-21 Pedro Alves <palves@redhat.com>
6519 * infrun.c (normal_stop): Extend comment.
6521 2014-03-21 Hui Zhu <hui@codesourcery.com>
6522 Pedro Alves <palves@redhat.com>
6524 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6526 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6527 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6528 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6530 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6532 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6533 `z' formatted output modifier.
6535 2014-03-20 Tom Tromey <tromey@redhat.com>
6536 Sergio Durigan Junior <sergiodj@redhat.com>
6538 * probe.c (parse_probes): Turn assert into an ordinary error.
6539 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6540 exceptions when parsing probes. Rearrange the code for clarity.
6542 2014-03-20 Tom Tromey <tromey@redhat.com>
6545 * top.c (execute_command): Only dispatch events if the command
6548 2014-03-20 Tom Tromey <tromey@redhat.com>
6551 * infcall.c: Include event-top.h.
6552 (run_inferior_call): Call async_disable_stdin if needed.
6554 2014-03-20 Pedro Alves <palves@redhat.com>
6556 * infrun.c (prepare_to_proceed): Delete.
6557 (thread_still_needs_step_over): New function.
6558 (find_thread_needs_step_over): New function.
6559 (proceed): If the current thread needs a step-over, set its
6560 steping_over_breakpoint flag. Adjust to use
6561 find_thread_needs_step_over instead of prepare_to_proceed.
6562 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6563 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6565 (switch_back_to_stepped_thread): Step over breakpoints of all
6566 threads not the stepping thread, before switching back to the
6569 2014-03-20 Pedro Alves <palves@redhat.com>
6571 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6573 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6574 * infrun.c (saved_singlestep_ptid)
6575 (stepping_past_singlestep_breakpoint): Delete.
6576 (resume): Remove stepping_past_singlestep_breakpoint handling.
6577 (proceed): Store the prev_pc of the stepping thread too.
6578 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6580 (enum infwait_states): Delete infwait_thread_hop_state.
6581 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6583 (handle_inferior_event): Adjust.
6584 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6585 handling and the thread-hop code. Before removing single-step
6586 breakpoints, check whether the thread hit a single-step breakpoint
6587 of another thread. If it did, the trap is not a random signal.
6588 (switch_back_to_stepped_thread): If the event thread hit a
6589 single-step breakpoint, unblock it before switching to the
6590 stepping thread. Handle the case of the stepped thread having
6592 (keep_going): Handle the case of the current thread moving past a
6593 single-step breakpoint.
6595 2014-03-20 Pedro Alves <palves@redhat.com>
6598 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6599 are being stepped over.
6600 (breakpoint_address_match): Make extern.
6601 * breakpoint.h (breakpoint_address_match): New declaration.
6602 * inferior.h (stepping_past_instruction_at): New declaration.
6603 * infrun.c (struct step_over_info): New type.
6604 (step_over_info): New global.
6605 (set_step_over_info, clear_step_over_info)
6606 (stepping_past_instruction_at): New functions.
6607 (handle_inferior_event): Clear the step-over info when
6608 trap_expected is cleared.
6609 (resume): Remove now stale comment.
6610 (clear_proceed_status): Clear step-over info.
6611 (proceed): Adjust step-over handling to set or clear the step-over
6612 info instead of removing all breakpoints.
6613 (handle_signal_stop): When setting up a thread-hop, don't remove
6615 (stop_stepping): Clear step-over info.
6616 (keep_going): Adjust step-over handling to set or clear step-over
6617 info and then always inserting breakpoints, instead of removing
6618 all breakpoints when stepping over one.
6620 2014-03-20 Pedro Alves <palves@redhat.com>
6622 * infrun.c (previous_inferior_ptid): Adjust comment.
6623 (deferred_step_ptid): Delete.
6624 (infrun_thread_ptid_changed, prepare_to_proceed)
6625 (init_wait_for_inferior): Adjust.
6626 (handle_signal_stop): Delete deferred_step_ptid handling.
6628 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6631 * defs.h (sync_quit_force_run): New declaration.
6632 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6633 * event-top.c (async_sigterm_handler): New declaration.
6634 (async_sigterm_token): New variable.
6635 (async_init_signals): Create also async_sigterm_token.
6636 (async_sigterm_handler): New function.
6637 (sync_quit_force_run): New variable.
6638 (handle_sigterm): Replace quit_force call by other calls.
6639 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6641 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6643 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6644 offset into SPE pseudo registers.
6646 2014-03-18 Pedro Alves <palves@redhat.com>
6649 * inferior.h (print_stop_event): Declare.
6650 * infrun.c (print_stop_event): New, factored out from ...
6651 (normal_stop): ... this.
6652 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6653 of bpstat_print/print_stack_frame.
6655 2014-03-17 Tom Tromey <tromey@redhat.com>
6657 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6659 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6661 * ada-lang.c (decode_constrained_packed_array): Perform a
6662 minimal coercion for reference with coerce_ref instead of
6665 2014-03-17 Tristan Gingold <gingold@adacore.com>
6667 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6668 (darwin_solib_create_inferior_hook): Emit a warning if version
6671 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6673 * python/py-value.c (get_field_flag): Cast flag_name argument to
6674 PyObject_GetAttrString to support Python 2.4.
6676 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6678 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6679 (Global Maintainers): Remove Jan Kratochvil.
6681 2014-03-14 Pedro Alves <palves@redhat.com>
6683 * inferior.h (terminal_ours_for_output): Rename to ...
6684 (child_terminal_ours_for_output): ... this.
6685 (terminal_save_ours): Rename to ...
6686 (child_terminal_save_ours): ... this.
6687 (terminal_ours): Rename to ...
6688 (child_terminal_ours): ... this.
6689 (terminal_inferior): Rename to ...
6690 (child_terminal_inferior): ... this.
6691 (terminal_init_inferior): Rename to ...
6692 (child_terminal_init_inferior): ... this.
6693 (terminal_init_inferior_with_pgrp): Rename to ...
6694 (child_terminal_init_inferior_with_pgrp): ... this.
6695 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6696 (child_terminal_init_with_pgrp): ... this.
6697 (terminal_save_ours): Rename to ...
6698 (child_terminal_save_ours): ... this.
6699 (terminal_init_inferior): Rename to ...
6700 (child_terminal_init): ... this. Adjust.
6701 (terminal_inferior): Rename to ...
6702 (child_terminal_inferior): ... this.
6703 (terminal_ours_for_output): Rename to ...
6704 (child_terminal_ours_for_output): ... this. Adjust.
6705 (terminal_ours): Rename to ...
6706 (child_terminal_ours): ... this.
6707 (terminal_ours_1): Rename to ...
6708 (child_terminal_ours_1): ... this. Adjust.
6709 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6710 * windows-nat.c (do_initial_windows_stuff): Adjust.
6711 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6712 (gnu_terminal_init): ... this. Adjust.
6713 (gnu_target): Adjust.
6714 * inf-child.c (inf_child_target): Adjust.
6716 2014-03-13 Doug Evans <xdje42@gmail.com>
6719 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6722 2014-03-13 Doug Evans <xdje42@gmail.com>
6724 * value.c (record_latest_value): Call release_value_or_incref
6725 instead of release_value.
6727 2014-03-13 Pedro Alves <palves@redhat.com>
6729 * procfs.c (procfs_target): Don't override to_shortname,
6730 to_longname or to_doc.
6732 2014-03-13 Pedro Alves <palves@redhat.com>
6734 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6735 Unix in user visible strings.
6737 2014-03-12 Stan Shebs <stan@codesourcery.com>
6739 * gdbtypes.h: Annotate comments for Doxygen, add a page
6740 block comment with some general info.
6742 2014-03-12 Pedro Alves <palves@redhat.com>
6744 * infcmd.c (prepare_execution_command): New function, factored out
6745 from several execution commands.
6746 (run_command_1, continue_command, step_1, jump_command)
6747 (signal_command, until_command, advance_command, finish_command)
6748 (attach_command): Use prepare_execution_command.
6750 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6752 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6755 (struct arm_linux_thread_points): Removed.
6756 (struct arm_linux_process_info): New.
6757 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6758 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6759 (arm_linux_find_breakpoints_by_tid): Removed.
6760 (struct arch_lwp_info): New.
6761 (arm_linux_find_process_pid): New functions.
6762 (arm_linux_add_process): New functions.
6763 (arm_linux_process_info_get): New functions.
6764 (arm_linux_forget_process): New function.
6765 (arm_linux_get_debug_reg_state): New function.
6766 (struct update_registers_data): New.
6767 (update_registers_callback): New function.
6768 (arm_linux_insert_hw_breakpoint1): Updated.
6769 (arm_linux_remove_hw_breakpoint1): Updated.
6770 (arm_linux_insert_hw_breakpoint): Updated.
6771 (arm_linux_remove_hw_breakpoint): Updated.
6772 (arm_linux_insert_watchpoint): Updated.
6773 (arm_linux_remove_watchpoint): Updated.
6774 (arm_linux_new_thread): Updated.
6775 (arm_linux_prepare_to_resume): New function.
6776 (arm_linux_new_fork): New function.
6777 (_initialize_arm_linux_nat): Updated.
6779 2014-03-12 Pedro Alves <palves@redhat.com>
6781 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6783 2014-03-12 Tom Tromey <tromey@redhat.com>
6785 * inf-child.c (return_zero): New function.
6786 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6787 * aix-thread.c (aix_thread_inferior_created): New function.
6788 (aix_thread_attach): Remove.
6789 (init_aix_thread_ops): Don't set to_attach.
6790 (_initialize_aix_thread): Register inferior_created observer.
6791 * corelow.c (init_core_ops): Don't set to_attach or
6793 * exec.c (init_exec_ops): Don't set to_attach or
6795 * infcmd.c (run_command_1): Use find_run_target. Make direct
6797 (attach_command): Use find_attach_target. Make direct target
6799 * record-btrace.c (init_record_btrace_ops): Don't set
6801 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6803 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6804 set to_create_inferior.
6805 * target.c (complete_target_initialization): Add assertion.
6806 (target_create_inferior): Remove.
6807 (find_default_attach, find_default_create_inferior): Remove.
6808 (find_attach_target, find_run_target): New functions.
6809 (find_default_is_async_p, find_default_can_async_p)
6810 (target_supports_non_stop, target_attach): Remove.
6811 (init_dummy_target): Don't set to_create_inferior or
6812 to_supports_non_stop.
6813 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6814 TARGET_DEFAULT_FUNC.
6815 <to_create_inferior>: Add comment.
6816 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6817 TARGET_DEFAULT_RETURN.
6818 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6819 (find_attach_target, find_run_target): Declare.
6820 (target_create_inferior): Remove.
6821 (target_has_execution_1): Update comment.
6822 (target_supports_non_stop): Remove.
6823 * target-delegates.c: Rebuild.
6825 2014-03-12 Pedro Alves <palves@redhat.com>
6827 * inf-child.h: Update comment to not mention Unix.
6829 2014-03-12 Pedro Alves <palves@redhat.com>
6831 * inf-child.c: Update top comment to not mention Unix. Add
6832 generic comment describing how this target is meant to be used.
6833 (inf_child_post_attach, inf_child_post_startup_inferior)
6834 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6837 2014-03-12 Pedro Alves <palves@redhat.com>
6839 * nto-procfs.c: Include inf-child.h.
6840 (procfs_ops): Delete global.
6841 (procfs_can_run): Delete method.
6842 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6843 target pointer instead of referencing procfs_ops.
6844 (procfs_prepare_to_store): Delete.
6845 (init_procfs_ops): Delete function.
6846 (procfs_target): New function, based on init_procfs_ops, but
6847 inherit inf_child_target.
6848 (_initialize_procfs): Use procfs_target.
6850 2014-03-12 Pedro Alves <palves@redhat.com>
6852 * windows-nat.c: Include inf-child.h.
6853 (windows_ops): Delete global.
6854 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6856 (init_windows_ops): Delete function.
6857 (windows_target): New function, based on init_windows_ops, but
6858 inherit inf_child_target.
6859 (_initialize_windows_nat): Use windows_target. Install x86
6860 specific target methods here.
6862 2014-03-10 Doug Evans <xdje42@gmail.com>
6864 * guile/guile.c (call_initialize_gdb_module): New function.
6865 (initialize_guile): Replace call to scm_init_guile with call to
6868 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6870 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6871 in call to TYPE_CODE macro.
6873 2014-03-10 Jerome Guitton <guitton@adacore.com>
6875 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6876 Resolve tagged types to full view.
6878 2014-03-10 Hui Zhu <hui@codesourcery.com>
6880 * target.h (target_insert_breakpoint): Remove "hardware" from its
6883 2014-03-07 Doug Evans <dje@google.com>
6885 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6887 2014-03-07 Doug Evans <dje@google.com>
6889 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6890 Remove unused local comp_dir_attr. Assert exactly one of
6891 stub_comp_unit_die, stub_comp_dir is non-NULL.
6893 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6895 * target.h (complete_target_initialization, add_target):
6898 2014-03-07 Pedro Alves <palves@redhat.com>
6900 * go32-nat.c: Include inf-child.h.
6901 (go32_ops): Delete global.
6902 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6904 (go32_create_inferior): Push the passed in target pointer instead
6905 of referencing go32_ops.
6906 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6907 (go32_target): New function, based on init_go32_ops, but inherit
6909 (_initialize_go32_nat): Use go32_target. Move parts of
6912 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6914 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6915 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6916 SYMBOL_VALUE_ADDRESS.
6917 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6919 2014-03-06 Yao Qi <yao@codesourcery.com>
6921 * breakpoint.c (get_tracepoint_by_number): Remove argument
6922 optional_p. All callers updated. Adjust comments. Update
6924 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6926 2014-03-06 Yao Qi <yao@codesourcery.com>
6928 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6929 early if get_number returns zero. Use 'p' instead of 'args'.
6931 2014-03-06 Yao Qi <yao@codesourcery.com>
6933 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6936 2014-03-06 Yao Qi <yao@codesourcery.com>
6938 PR breakpoints/16508
6939 * tracepoint.c (check_trace_running): New function.
6940 (trace_find_command): Move code to check_trace_running and
6941 call check_trace_running.
6942 (trace_find_pc_command): Likewise.
6943 (trace_find_tracepoint_command): Likewise.
6944 (trace_find_line_command): Likewise.
6945 (trace_find_range_command): Likewise.
6946 * tracepoint.h (check_trace_running): Likewise.
6947 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6949 2014-03-06 Yao Qi <yao@codesourcery.com>
6951 * target.h (struct target_ops) <to_traceframe_info>: Use
6952 TARGET_DEFAULT_NORETURN (tcomplain ()).
6953 * target-delegates.c: Regenerated.
6955 2014-03-05 Pedro Alves <palves@redhat.com>
6958 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6959 void. Update comment.
6960 (dcache_xfer_memory): Delete.
6961 (dcache_read_memory_partial): New, based on the read bits of
6963 (dcache_update): Add status parameter. Use ULONGEST for len, and
6964 adjust. Discard cache lines if the reason for the update was
6966 * dcache.h (dcache_xfer_memory): Delete declaration.
6967 (dcache_read_memory_partial): New declaration.
6968 (dcache_update): Update prototype.
6969 * target.c (raw_memory_xfer_partial): Update the dcache here.
6970 (memory_xfer_partial_1): Don't handle dcache writes here.
6972 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6974 * remote-sim.c (gdbsim_load): Add const to prog.
6976 2014-03-03 Tom Tromey <tromey@redhat.com>
6978 * elfread.c (probe_key): Change to bfd_data.
6979 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6980 now per-BFD, not per-objfile.
6981 * stap-probe.c (stap_probe_destroy): Update comment.
6982 (handle_stap_probe): Allocate on the per-BFD obstack.
6984 2014-03-03 Tom Tromey <tromey@redhat.com>
6986 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6987 * breakpoint.c (create_longjmp_master_breakpoint): Use
6989 (add_location_to_breakpoint, bkpt_probe_insert_location)
6990 (bkpt_probe_remove_location): Update.
6991 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6992 * elfread.c (elf_symfile_relocate_probe): Remove.
6993 (elf_probe_fns): Update.
6994 (insert_exception_resume_breakpoint): Change type of "probe"
6995 parameter to bound_probe.
6996 (check_exception_resume): Update.
6997 * objfiles.c (objfile_relocate1): Don't relocate probes.
6998 * probe.c (bound_probe_s): New typedef.
6999 (parse_probes): Use get_probe_address. Set sal's objfile.
7000 (find_probe_by_pc): Return a bound_probe.
7001 (collect_probes): Return a VEC(bound_probe_s).
7002 (compare_probes): Update.
7003 (gen_ui_out_table_header_info): Change type of "probes"
7005 (info_probes_for_ops): Update.
7006 (get_probe_address): New function.
7007 (probe_safe_evaluate_at_pc): Update.
7008 * probe.h (struct probe_ops) <get_probe_address>: New field.
7009 <set_semaphore, clear_semaphore>: Add objfile parameter.
7010 (struct probe) <objfile>: Remove field.
7012 <address>: Update comment.
7013 (struct bound_probe): New.
7014 (find_probe_by_pc): Return a bound_probe.
7015 (get_probe_address): Declare.
7016 * solib-svr4.c (struct probe_and_action) <address>: New field.
7017 (hash_probe_and_action, equal_probe_and_action): Update.
7018 (register_solib_event_probe): Add address parameter.
7019 (solib_event_probe_at): Update.
7020 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7022 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7023 (stap_get_probe_address): New function.
7024 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7025 (compile_probe_arg): Update.
7026 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7028 (handle_stap_probe): Don't relocate the probe.
7029 (stap_relocate): Remove.
7030 (stap_gen_info_probes_table_values): Update.
7031 (stap_probe_ops): Remove stap_relocate.
7032 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7033 (debug_sym_probe_fns): Update.
7034 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7035 * symtab.c (init_sal): Use memset.
7036 * symtab.h (struct symtab_and_line) <objfile>: New field.
7037 * tracepoint.c (start_tracing, stop_tracing): Update.
7039 2014-03-03 Tom Tromey <tromey@redhat.com>
7041 * probe.h (parse_probes, find_probe_by_pc)
7042 (find_probes_in_objfile): Fix comments.
7044 2014-03-02 Doug Evans <xdje42@gmail.com>
7046 * infrun.c (handle_signal_stop): Replace test for
7047 TARGET_WAITKIND_STOPPED with an assert.
7049 2014-03-02 Doug Evans <xdje42@gmail.com>
7051 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7053 2014-03-02 Doug Evans <xdje42@gmail.com>
7055 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7057 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7059 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7061 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7063 * i386obsd-nat.c: Include "obsd-nat.h".
7064 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7066 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7068 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7070 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7072 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7074 * mips64obsd-nat.c: Include "obsd-nath".
7075 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7077 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7079 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7081 * amd64obsd-nat.c: Include "obsd-nat,h.
7082 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7084 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7086 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7088 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7089 (find_overload_match): Update call to find_oload_champ.
7090 (find_oload_champ_namespace_loop): Likewise
7092 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7094 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7096 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7097 * config/sparc/obsd64.mh: New file.
7098 * sparc64obsd-nat.c: New file.
7100 * obsd-nat.h: New file.
7101 * obsd-nat.c: New file.
7102 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7103 (ALLDEPFILES): Add obsd-nat.c.
7105 2014-02-28 Tom Tromey <tromey@redhat.com>
7107 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7108 * cli-out.h (cli_ui_out_impl): Now const.
7109 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7110 * ui-out.c (struct ui_out) <impl>: Now const.
7111 (default_ui_out_impl): Now const.
7112 (ui_out_new): Make 'impl' parameter const.
7113 * ui-out.h (ui_out_new): Update.
7115 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7117 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7119 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7121 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7123 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7125 Additional PR 8882 fix.
7126 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7128 2014-02-27 Pedro Alves <palves@redhat.com>
7130 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7133 2014-02-27 Pedro Alves <palves@redhat.com>
7136 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7137 * nat/linux-waitpid.c: Include string.h.
7138 (status_to_str): Moved here and made extern.
7139 * nat/linux-waitpid.h (status_to_str): New declaration.
7141 2014-02-27 Hui Zhu <hui@codesourcery.com>
7144 * infrun.c (ptid_match): Move ...
7145 * common/ptid.c (ptid_match): ... here.
7146 * inferior.h (ptid_match): Move ...
7147 * common/ptid.h (ptid_match): ... here.
7149 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7151 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7152 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7155 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7157 * obsd-tdep.c (obsd_auxv_parse): New function.
7158 (obsd_init_abi): Set auxv_parse.
7160 * gdbarch.sh (auxv_parse): New.
7161 * gdbarch.h: Regenerated.
7162 * gdbarch.c: Regenerated.
7163 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7165 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7167 * guile/scm-value.c (gdbscm_history_append_x): New function.
7168 (value_functions): Add it.
7170 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7172 * dwarf2read.c (attr_value_as_address): New function.
7173 (dwarf2_find_base_address, read_call_site_scope): Use
7174 attr_value_as_address in place of DW_ADDR.
7175 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7176 the low and high addresses. Slight rework of the handling
7177 of the high pc being a constant form, and limit it to
7178 DWARF verson 4 or higher.
7179 (dwarf2_record_block_ranges): Likewise.
7180 (read_partial_die): Likewise.
7181 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7183 2014-02-26 Tom Tromey <tromey@redhat.com>
7185 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7187 2014-02-26 Tom Tromey <tromey@redhat.com>
7189 * elfread.c (elf_read_minimal_symbols): Return early if
7190 minimal symbols have already been read. Add "ei" parameter.
7191 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7192 * minsyms.c (prim_record_minimal_symbol_full): Update.
7193 * objfiles.h (struct objstats) <n_minsyms>: Move...
7194 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7195 * symmisc.c (print_objfile_statistics): Update.
7197 2014-02-26 Tom Tromey <tromey@redhat.com>
7199 * elfread.c (elf_read_minimal_symbols): New function, from
7201 (elf_symfile_read): Call it.
7203 2014-02-26 Tom Tromey <tromey@redhat.com>
7205 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7206 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7207 (lookup_minimal_symbol_solib_trampoline)
7208 (lookup_minimal_symbol_by_pc_section_1)
7209 (lookup_minimal_symbol_and_objfile): Update.
7210 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7211 Don't allocate a minimal symbol if minsyms have already been read.
7212 (build_minimal_symbol_hash_tables): Update.
7213 (install_minimal_symbols): Do nothing if minsyms already read.
7214 Use the per-BFD obstack.
7215 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7216 * objfiles.c (allocate_objfile): Call
7217 terminate_minimal_symbol_table later.
7218 (have_minimal_symbols): Update.
7219 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7220 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7221 Move from struct objfile.
7222 <minsyms_read>: New field.
7223 (struct objfile) <msymbols, minimal_symbol_count,
7224 msymbol_hash, msymbol_demangled_hash>: Move.
7225 (ALL_OBJFILE_MSYMBOLS): Update.
7226 * symfile.c (read_symbols): Set minsyms_read.
7227 (reread_symbols): Update.
7228 * symmisc.c (dump_objfile, dump_msymbols): Update.
7230 2014-02-26 Tom Tromey <tromey@redhat.com>
7232 * minsyms.c (msymbols_sort): Remove.
7233 * minsyms.h (msymbols_sort): Remove.
7234 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7235 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7236 * elfread.c (elf_symtab_read): Don't add section offsets.
7237 * xcoffread.c (record_minimal_symbol): Don't add section offset
7238 to minimal symbol address.
7239 * somread.c (text_offset, data_offset): Remove.
7240 (som_symtab_read): Don't add section offsets to minimal symbol
7242 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7243 Don't add section offsets to minimal symbols.
7244 * coffread.c (coff_symtab_read): Don't add section offsets
7245 to minimal symbol addresses.
7246 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7247 to minimal symbol addresses.
7248 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7249 section offset to minimal symbol addresses.
7250 * mdebugread.c (parse_partial_symbols): Don't add section
7251 offset to minimal symbol addresses.
7252 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7253 offset to minimal symbol addresses.
7255 2014-02-26 Tom Tromey <tromey@redhat.com>
7257 * ada-lang.c (ada_main_name): Update.
7258 (ada_add_standard_exceptions): Update.
7259 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7260 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7261 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7262 * auxv.c (ld_so_xfer_auxv): Update.
7263 * avr-tdep.c (avr_scan_prologue): Update.
7264 * ax-gdb.c (gen_var_ref): Update.
7265 * blockframe.c (get_pc_function_start)
7266 (find_pc_partial_function_gnu_ifunc): Update.
7267 * breakpoint.c (create_overlay_event_breakpoint)
7268 (create_longjmp_master_breakpoint)
7269 (create_std_terminate_master_breakpoint)
7270 (create_exception_master_breakpoint): Update.
7271 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7272 * c-valprint.c (c_val_print): Update.
7273 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7274 * common/agent.c (agent_look_up_symbols): Update.
7275 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7276 * dwarf2loc.c (call_site_to_target_addr): Update.
7277 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7278 * elfread.c (elf_gnu_ifunc_record_cache)
7279 (elf_gnu_ifunc_resolve_by_got): Update.
7280 * findvar.c (default_read_var_value): Update.
7281 * frame.c (inside_main_func): Update.
7282 * frv-tdep.c (frv_frame_this_id): Update.
7283 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7284 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7286 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7287 (hppa_hpux_find_dummy_bpaddr): Update.
7288 * hppa-tdep.c (hppa_symbol_address): Update.
7289 * infcmd.c (until_next_command): Update.
7290 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7292 * linespec.c (minsym_found, add_minsym): Update.
7293 * linux-nat.c (get_signo): Update.
7294 * linux-thread-db.c (inferior_has_bug): Update.
7295 * m32c-tdep.c (m32c_return_value)
7296 (m32c_m16c_address_to_pointer): Update.
7297 * m32r-tdep.c (m32r_frame_this_id): Update.
7298 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7299 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7300 * maint.c (maintenance_translate_address): Update.
7301 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7302 (frob_address): New function.
7303 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7304 frob_address. Rename parameter to "pc_in".
7305 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7307 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7309 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7310 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7311 * objc-lang.c (find_objc_msgsend): Update.
7312 * objfiles.c (objfile_relocate1): Update.
7313 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7314 * p-valprint.c (pascal_val_print): Update.
7315 * parse.c (write_exp_msymbol): Update.
7316 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7317 (ppc_elfv2_skip_entrypoint): Update.
7318 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7319 * printcmd.c (build_address_symbolic, msym_info)
7320 (address_info): Update.
7321 * proc-service.c (ps_pglobal_lookup): Update.
7322 * psymtab.c (find_pc_sect_psymtab_closer)
7323 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7324 Change msymbol parameter to bound_minimal_symbol.
7325 * ravenscar-thread.c (get_running_thread_id): Update.
7326 * remote.c (remote_check_symbols): Update.
7327 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7329 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7330 * solib-dsbt.c (lm_base): Update.
7331 * solib-frv.c (lm_base, main_got): Update.
7332 * solib-irix.c (locate_base): Update.
7333 * solib-som.c (som_solib_create_inferior_hook)
7334 (link_map_start): Update.
7335 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7336 * solib-svr4.c (elf_locate_base, enable_break): Update.
7337 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7338 (flush_ea_cache): Update.
7339 * stabsread.c (define_symbol, scan_file_globals): Update.
7340 * stack.c (find_frame_funname): Update.
7341 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7342 (debug_qf_find_pc_sect_symtab): Update.
7343 * symfile.c (simple_read_overlay_table)
7344 (simple_overlay_update): Update.
7345 * symfile.h (struct quick_symbol_functions)
7346 <find_pc_sect_symtab>: Change type of msymbol to
7347 bound_minimal_symbol.
7348 * symmisc.c (dump_msymbols): Update.
7349 * symtab.c (find_pc_sect_symtab_via_partial)
7350 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7351 (search_symbols, print_msymbol_info): Update.
7352 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7353 (MSYMBOL_VALUE_ADDRESS): Redefine.
7354 (BMSYMBOL_VALUE_ADDRESS): New macro.
7355 * tracepoint.c (scope_info): Update.
7356 * tui/tui-disasm.c (tui_find_disassembly_address)
7357 (tui_get_begin_asm_address): Update.
7358 * valops.c (find_function_in_inferior): Update.
7359 * value.c (value_static_field, value_fn_field): Update.
7361 2014-02-26 Tom Tromey <tromey@redhat.com>
7363 * ada-lang.c (ada_update_initial_language): Update.
7364 (ada_main_name, ada_has_this_exception_support): Update.
7365 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7366 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7367 * arm-tdep.c (arm_skip_stub): Update.
7368 * auxv.c (ld_so_xfer_auxv): Update.
7369 * avr-tdep.c (avr_scan_prologue): Update.
7370 * ax-gdb.c (gen_var_ref): Update.
7371 * breakpoint.c (struct breakpoint_objfile_data)
7372 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7373 type to bound_minimal_symbol.
7374 (create_overlay_event_breakpoint)
7375 (create_longjmp_master_breakpoint)
7376 (create_std_terminate_master_breakpoint)
7377 (create_exception_master_breakpoint): Update.
7378 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7379 * c-exp.y (classify_name): Update.
7380 * coffread.c (coff_symfile_read): Update.
7381 * common/agent.c (agent_look_up_symbols): Update.
7382 * d-lang.c (d_main_name): Update.
7383 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7384 * dec-thread.c (enable_dec_thread): Update.
7385 * dwarf2loc.c (call_site_to_target_addr): Update.
7386 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7387 * eval.c (evaluate_subexp_standard): Update.
7388 * findvar.c (struct minsym_lookup_data) <result>: Change type
7389 to bound_minimal_symbol.
7391 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7392 * frame.c (inside_main_func): Update.
7393 * frv-tdep.c (frv_frame_this_id): Update.
7394 * gcore.c (call_target_sbrk): Update.
7395 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7396 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7398 * go-lang.c (go_main_name): Update.
7399 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7400 (hppa_hpux_find_import_stub_for_addr): Update.
7401 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7402 Update. Change return type.
7403 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7405 * jit.c (jit_breakpoint_re_set_internal): Update.
7406 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7408 * linux-nat.c (get_signo): Update.
7409 * linux-thread-db.c (inferior_has_bug): Update
7410 * m32c-tdep.c (m32c_return_value)
7411 (m32c_m16c_address_to_pointer): Update.
7412 * m32r-tdep.c (m32r_frame_this_id): Update.
7413 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7414 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7415 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7416 lookup_minimal_symbol. Change return type.
7417 (lookup_minimal_symbol): Remove.
7418 (lookup_bound_minimal_symbol): Update.
7419 (lookup_minimal_symbol_text): Change return type.
7420 (lookup_minimal_symbol_solib_trampoline): Change return type.
7421 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7422 (lookup_minimal_symbol_solib_trampoline): Change return type.
7423 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7424 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7425 (value_nsstring, find_imps): Update.
7426 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7427 * p-lang.c (pascal_main_name): Update.
7428 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7429 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7430 * proc-service.c (ps_pglobal_lookup): Update.
7431 * ravenscar-thread.c (get_running_thread_msymbol): Change
7433 (has_ravenscar_runtime, get_running_thread_id): Update.
7434 * remote.c (remote_check_symbols): Update.
7435 * sol-thread.c (ps_pglobal_lookup): Update.
7436 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7437 * solib-dsbt.c (lm_base): Update.
7438 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7440 * solib-irix.c (locate_base): Update.
7441 * solib-som.c (som_solib_create_inferior_hook)
7442 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7444 * solib-spu.c (spu_enable_break): Update.
7445 * solib-svr4.c (elf_locate_base, enable_break): Update.
7446 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7447 (flush_ea_cache): Update.
7448 * stabsread.c (define_symbol): Update.
7449 * symfile.c (simple_read_overlay_table): Update.
7450 * symtab.c (find_pc_sect_line): Update.
7451 * tracepoint.c (scope_info): Update.
7452 * tui-disasm.c (tui_get_begin_asm_address): Update.
7453 * value.c (value_static_field): Update.
7455 2014-02-26 Tom Tromey <tromey@redhat.com>
7457 * minsyms.c (prim_record_minimal_symbol_full): Use
7458 SET_MSYMBOL_VALUE_ADDRESS.
7459 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7460 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7461 SET_MSYMBOL_VALUE_ADDRESS.
7462 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7463 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7465 2014-02-26 Tom Tromey <tromey@redhat.com>
7467 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7468 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7469 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7470 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7471 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7472 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7473 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7474 * ada-lang.c (ada_main_name): Update.
7475 (ada_lookup_simple_minsym): Update.
7476 (ada_make_symbol_completion_list): Update.
7477 (ada_add_standard_exceptions): Update.
7478 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7479 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7480 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7481 * arm-tdep.c (skip_prologue_function): Update.
7482 (arm_skip_stack_protector, arm_skip_stub): Update.
7483 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7484 (arm_wince_skip_main_prologue): Update.
7485 * auxv.c (ld_so_xfer_auxv): Update.
7486 * avr-tdep.c (avr_scan_prologue): Update.
7487 * ax-gdb.c (gen_var_ref): Update.
7488 * block.c (call_site_for_pc): Update.
7489 * blockframe.c (get_pc_function_start): Update.
7490 (find_pc_partial_function_gnu_ifunc): Update.
7491 * breakpoint.c (create_overlay_event_breakpoint): Update.
7492 (create_longjmp_master_breakpoint): Update.
7493 (create_std_terminate_master_breakpoint): Update.
7494 (create_exception_master_breakpoint): Update.
7495 (resolve_sal_pc): Update.
7496 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7497 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7499 * c-valprint.c (c_val_print): Update.
7500 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7501 * coffread.c (coff_symfile_read): Update.
7502 * common/agent.c (agent_look_up_symbols): Update.
7503 * dbxread.c (find_stab_function_addr): Update.
7504 (end_psymtab): Update.
7505 * dwarf2loc.c (call_site_to_target_addr): Update.
7506 (func_verify_no_selftailcall): Update.
7507 (tailcall_dump): Update.
7508 (call_site_find_chain_1): Update.
7509 (dwarf_expr_reg_to_entry_parameter): Update.
7510 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7511 (elf_gnu_ifunc_resolve_by_got): Update.
7512 * f-valprint.c (info_common_command): Update.
7513 * findvar.c (read_var_value): Update.
7514 * frame.c (get_prev_frame_1): Update.
7515 (inside_main_func): Update.
7516 * frv-tdep.c (frv_skip_main_prologue): Update.
7517 (frv_frame_this_id): Update.
7518 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7519 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7520 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7521 (gnuv3_skip_trampoline): Update.
7522 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7523 (hppa64_hpux_in_solib_call_trampoline): Update.
7524 (hppa_hpux_skip_trampoline_code): Update.
7525 (hppa64_hpux_search_dummy_call_sequence): Update.
7526 (hppa_hpux_find_import_stub_for_addr): Update.
7527 (hppa_hpux_find_dummy_bpaddr): Update.
7528 * hppa-tdep.c (hppa_symbol_address)
7529 (hppa_lookup_stub_minimal_symbol): Update.
7530 * i386-tdep.c (i386_skip_main_prologue): Update.
7531 (i386_pe_skip_trampoline_code): Update.
7532 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7533 * infcall.c (get_function_name): Update.
7534 * infcmd.c (until_next_command): Update.
7535 * jit.c (jit_breakpoint_re_set_internal): Update.
7536 (jit_inferior_init): Update.
7537 * linespec.c (minsym_found): Update.
7538 (add_minsym): Update.
7539 * linux-fork.c (info_checkpoints_command): Update.
7540 * linux-nat.c (get_signo): Update.
7541 * linux-thread-db.c (inferior_has_bug): Update.
7542 * m32c-tdep.c (m32c_return_value): Update.
7543 (m32c_m16c_address_to_pointer): Update.
7544 (m32c_m16c_pointer_to_address): Update.
7545 * m32r-tdep.c (m32r_frame_this_id): Update.
7546 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7547 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7548 * maint.c (maintenance_translate_address): Update.
7549 * minsyms.c (add_minsym_to_hash_table): Update.
7550 (add_minsym_to_demangled_hash_table): Update.
7551 (msymbol_objfile): Update.
7552 (lookup_minimal_symbol): Update.
7553 (iterate_over_minimal_symbols): Update.
7554 (lookup_minimal_symbol_text): Update.
7555 (lookup_minimal_symbol_by_pc_name): Update.
7556 (lookup_minimal_symbol_solib_trampoline): Update.
7557 (lookup_minimal_symbol_by_pc_section_1): Update.
7558 (lookup_minimal_symbol_and_objfile): Update.
7559 (prim_record_minimal_symbol_full): Update.
7560 (compare_minimal_symbols): Update.
7561 (compact_minimal_symbols): Update.
7562 (build_minimal_symbol_hash_tables): Update.
7563 (install_minimal_symbols): Update.
7564 (terminate_minimal_symbol_table): Update.
7565 (find_solib_trampoline_target): Update.
7566 (minimal_symbol_upper_bound): Update.
7567 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7568 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7569 (mips_skip_pic_trampoline_code): Update.
7570 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7571 * objc-lang.c (selectors_info): Update.
7572 (classes_info): Update.
7573 (find_methods): Update.
7574 (find_imps): Update.
7575 (find_objc_msgsend): Update.
7576 * objfiles.c (objfile_relocate1): Update.
7577 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7578 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7579 * p-valprint.c (pascal_val_print): Update.
7580 * parse.c (write_exp_msymbol): Update.
7581 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7582 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7583 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7584 * printcmd.c (build_address_symbolic): Update.
7586 (address_info): Update.
7587 * proc-service.c (ps_pglobal_lookup): Update.
7588 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7589 (find_pc_sect_psymtab): Update.
7590 * python/py-framefilter.c (py_print_frame): Update.
7591 * ravenscar-thread.c (get_running_thread_id): Update.
7592 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7594 * remote.c (remote_check_symbols): Update.
7595 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7596 (rs6000_skip_trampoline_code): Update.
7597 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7598 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7599 * solib-dsbt.c (lm_base): Update.
7600 * solib-frv.c (lm_base): Update.
7602 * solib-irix.c (locate_base): Update.
7603 * solib-som.c (som_solib_create_inferior_hook): Update.
7604 (som_solib_desire_dynamic_linker_symbols): Update.
7605 (link_map_start): Update.
7606 * solib-spu.c (spu_enable_break): Update.
7607 (ocl_enable_break): Update.
7608 * solib-svr4.c (elf_locate_base): Update.
7609 (enable_break): Update.
7610 * spu-tdep.c (spu_get_overlay_table): Update.
7611 (spu_catch_start): Update.
7612 (flush_ea_cache): Update.
7613 * stabsread.c (define_symbol): Update.
7614 (scan_file_globals): Update.
7615 * stack.c (find_frame_funname): Update.
7616 (frame_info): Update.
7617 * symfile.c (simple_read_overlay_table): Update.
7618 (simple_overlay_update): Update.
7619 * symmisc.c (dump_msymbols): Update.
7620 * symtab.c (fixup_section): Update.
7621 (find_pc_sect_line): Update.
7622 (skip_prologue_sal): Update.
7623 (search_symbols): Update.
7624 (print_msymbol_info): Update.
7625 (rbreak_command): Update.
7626 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7627 (completion_list_objc_symbol): Update.
7628 (default_make_symbol_completion_list_break_on): Update.
7629 * tracepoint.c (scope_info): Update.
7630 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7631 (tui_get_begin_asm_address): Update.
7632 * valops.c (find_function_in_inferior): Update.
7633 * value.c (value_static_field): Update.
7634 (value_fn_field): Update.
7636 2014-02-26 Tom Tromey <tromey@redhat.com>
7638 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7639 bound minimal symbols. Move code that knows about minsym
7641 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7643 * minsyms.h (minimal_symbol_upper_bound): Declare.
7644 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7645 minimal_symbol_upper_bound.
7647 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7649 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7650 Use the type's name if its basic type does not have a tag.
7652 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7654 * dwarf2read.c (read_subrange_type): Add comment.
7656 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7658 * dwarf2read.c (update_enumeration_type_from_children): New
7659 function, mostly extracted from process_structure_scope.
7660 (read_enumeration_type): Call update_enumeration_type_from_children.
7661 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7662 and flag_flag_enum fields.
7664 2014-02-26 Pedro Alves <palves@redhat.com>
7666 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7667 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7668 to_xfer_partial method.
7670 2014-02-26 Pedro Alves <palves@redhat.com>
7672 * target.c (complete_target_initialization): Don't install
7673 default_xfer_partial as to_xfer_partial hook.
7675 (update_current_target): Don't INHERIT nor de_fault
7676 deprecated_xfer_memory. Delete de_fault macro.
7677 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7678 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7679 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7682 2014-02-26 Pedro Alves <palves@redhat.com>
7684 * go32-nat.c (my_write_child): New function.
7685 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7686 (go32_xfer_partial): New function.
7687 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7688 Instead install a to_xfer_partial hook.
7690 2014-02-26 Pedro Alves <palves@redhat.com>
7692 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7693 to_xfer_partial helper. Rewrite.
7694 (procfs_xfer_partial): New function.
7695 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7696 Install a to_xfer_partial hook.
7698 2014-02-26 Pedro Alves <palves@redhat.com>
7700 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7701 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7702 (m32r_xfer_partial): New function.
7703 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7704 Install a to_xfer_partial hook.
7706 2014-02-26 Pedro Alves <palves@redhat.com>
7708 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7710 (mips_xfer_partial): New function.
7711 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7712 hook. Install a to_xfer_partial hook.
7714 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7716 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7717 * gdbtypes.c (create_array_type_with_stride): New function,
7718 renaming create_array_type, but with an added parameter
7719 called "bit_stride".
7720 (create_array_type): Re-implement using
7721 create_array_type_with_stride.
7722 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7723 and DW_AT_bit_stride attributes.
7725 2014-02-26 Pedro Alves <palves@redhat.com>
7727 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7728 task-specific breakpoints.
7730 2014-02-25 Pedro Alves <palves@redhat.com>
7732 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7733 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7735 2014-02-25 Stan Shebs <stan@codesourcery.com>
7737 * defs.h: Annotate comments for Doxygen.
7739 2014-02-25 Tom Tromey <tromey@redhat.com>
7741 * target.h (target_ignore): Don't declare.
7742 * target.c (target_ignore): Remove.
7744 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7747 * auto-load.c (auto_load_objfile_script_1): Change filename to
7750 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7752 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7753 documentation. Adjust prototype to match the target_ops
7754 to_xfer_partial method. Adjust implementation accordingly.
7756 2014-02-25 Hui Zhu <hui@codesourcery.com>
7758 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7761 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7763 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7764 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7765 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7766 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7767 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7768 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7769 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7770 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7772 (rl78_register_type): Use a data pointer type for SP and
7773 new pseudo registers mentioned above. Use a 16 bit integer
7774 type for all other register pairs.
7775 (rl78_register_name, rl78_g10_register_name): Update for
7776 new pseudo registers.
7777 (rl78_pseudo_register_read): Likewise.
7778 (rl78_pseudo_register_write): Likewise.
7779 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7780 to the newly added pseudo registers.
7782 2014-02-24 Doug Evans <dje@google.com>
7784 * value.c (record_latest_value): Fix comment.
7785 * printcmd.c (print_command_1): Remove code to handle -1 return from
7786 record_latest_value.
7788 2014-02-24 Pedro Alves <palves@redhat.com>
7790 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7791 deprecated_xfer_memory hook.
7792 (procfs_xfer_partial): Call procfs_xfer_memory instead
7793 of the deprecated_xfer_memory target hook.
7794 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7797 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7799 * windows-nat.c (windows_xfer_shared_libraries): Return
7800 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7801 requested object is TARGET_OBJECT_LIBRARIES.
7803 2014-02-24 Yao Qi <yao@codesourcery.com>
7805 * target.h (enum target_xfer_status)
7806 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7807 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7809 * corefile.c (memory_error_message): User updated.
7810 * exec.c (section_table_read_available_memory): Likewise.
7811 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7812 * target.c (target_xfer_status_to_string): Likewise.
7813 (raw_memory_xfer_partial): Likewise.
7814 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7815 * valops.c (read_value_memory): Likewise.
7816 * exec.h: Update comments.
7818 2014-02-24 Yao Qi <yao@codesourcery.com>
7820 * target.c (target_xfer_status_to_string): Rename argument err
7822 * target.h (target_xfer_status_to_string): Update declaration.
7823 Replace target_xfer_error_to_string with
7824 target_xfer_status_to_string in comment.
7826 2014-02-24 Yao Qi <yao@codesourcery.com>
7828 * mips-linux-nat.c (super_close): Update its type.
7829 (mips_linux_close): Pass 'self' to super_close.
7831 2014-02-24 Yao Qi <yao@codesourcery.com>
7833 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7834 * corefile.c (read_memory): Adjusted.
7835 * target.c (target_write_with_progress): Adjusted.
7837 2014-02-23 Yao Qi <yao@codesourcery.com>
7841 2013-10-25 Yao Qi <yao@codesourcery.com>
7843 * remote.c (remote_traceframe_info): Return early if
7844 traceframe is not selected.
7846 2013-07-19 Yao Qi <yao@codesourcery.com>
7848 * target.c (update_current_target): Change the default action
7849 of 'to_traceframe_info' from tcomplain to return_zero.
7850 * target.h (struct target_ops) <to_traceframe_info>: Add more
7853 2014-02-23 Yao Qi <yao@codesourcery.com>
7855 * valops.c (read_value_memory): Rewrite it. Call
7856 target_xfer_partial in a loop.
7857 * exec.h (section_table_available_memory): Remove declaration.
7858 Move comments to ...
7859 * exec.c (section_table_available_memory): ... here. Make it
7862 2014-02-23 Yao Qi <yao@codesourcery.com>
7864 * exec.c (section_table_read_available_memory): New function.
7865 * exec.h (section_table_read_available_memory): Declare.
7866 * ctf.c (ctf_xfer_partial): Call
7867 section_table_read_available_memory.
7868 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7870 2014-02-23 Yao Qi <yao@codesourcery.com>
7872 * ctf.c (ctf_xfer_partial): Move code to ...
7873 * exec.c (exec_read_partial_read_only): ... it. New function.
7874 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7875 * tracefile.c: Include "exec.h".
7876 * exec.h (exec_read_partial_read_only): Declare.
7878 2014-02-23 Yao Qi <yao@codesourcery.com>
7880 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7881 (tfile_has_memory): Remove.
7882 (init_tfile_ops): Don't set fields to_has_all_memory and
7883 to_has_memory of tfile_ops.
7884 * tracefile.c (tracefile_has_all_memory): New function.
7885 (tracefile_has_memory): New function.
7886 (init_tracefile_ops): Initialize fields to_has_all_memory and
7887 to_has_memory of 'ops'.
7889 2014-02-23 Yao Qi <yao@codesourcery.com>
7891 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7892 (ctf_thread_alive, ctf_get_trace_status): Remove.
7893 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7895 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7896 (tfile_has_stack, tfile_has_registers): Remove.
7897 (tfile_thread_alive): Remove.
7898 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7900 * tracefile.c (tracefile_has_stack): New function.
7901 (tracefile_has_registers): New function.
7902 (tracefile_thread_alive): New function.
7903 (tracefile_get_trace_status): New function.
7904 (init_tracefile_ops): New function.
7905 * tracefile.h (init_tracefile_ops): Declare.
7907 2014-02-23 Yao Qi <yao@codesourcery.com>
7909 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7910 (O_LARGEFILE): Likewise.
7911 (tfile_ops): Likewise.
7912 (TRACE_HEADER_SIZE): Likewise.
7913 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7914 (cur_data_size): Likewise.
7915 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7916 (tfile_close, tfile_files_info): Likewise.
7917 (tfile_get_trace_status): Likewise.
7918 (tfile_get_tracepoint_status): Likewise.
7919 (tfile_get_traceframe_address): Likewise.
7920 (tfile_trace_find, match_blocktype): Likewise.
7921 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7922 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7923 (tfile_get_trace_state_variable_value): Likewise.
7924 (tfile_has_all_memory, tfile_has_memory): Likewise.
7925 (tfile_has_stack, tfile_has_registers): Likewise.
7926 (tfile_thread_alive, build_traceframe_info): Likewise.
7927 (tfile_traceframe_info, init_tfile_ops): Likewise.
7928 (_initialize_tracepoint): Don't call init_tfile_ops
7929 and add_target_with_completer.
7930 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7931 exec.h, completer.h and filenames.h.
7932 (_initialize_tracefile_tfile): New function.
7934 2014-02-23 Yao Qi <yao@codesourcery.com>
7936 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7938 (HFILES_NO_SRCDIR): Add tracefile.h.
7939 * ctf.c: Include "tracefile.h".
7940 * tracefile.h: New file.
7941 * tracefile.c: New file
7942 * tracefile-tfile.c: New file.
7943 * tracepoint.c: Include "tracefile.h".
7944 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7945 (stop_reason_names): Add const.
7946 (trace_file_writer_xfree): Move it to tracefile.c.
7947 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7948 (trace_save_ctf): Likewise.
7949 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7950 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7951 (tfile_write_header, tfile_write_regblock_type): Likewise.
7952 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7953 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7954 (tfile_write_raw_data, tfile_end): Likewise.
7955 (tfile_trace_file_writer_new): Likewise.
7956 (free_uploaded_tp): Make it extern.
7957 (free_uploaded_tsv): Make it extern.
7958 (_initialize_tracepoint): Move code to register command 'tsave'
7960 * tracepoint.h (stop_reason_names): Declare.
7961 (struct trace_frame_write_ops): Move it to tracefile.h.
7962 (struct trace_file_write_ops): Likewise.
7963 (struct trace_file_writer): Likewise.
7964 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7966 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7969 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7971 (get_cores_used_by_process): New parameter num_cores, use it.
7972 (linux_xfer_osdata_processes): Pass num_cores to it.
7973 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7976 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7978 * target.c (memory_xfer_partial): Fix length arg in call to
7979 breakpoint_xfer_memory.
7981 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7984 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7985 number comes after the + or - signs. Adjust length of register
7986 name to be extracted.
7988 2014-02-20 Tom Tromey <tromey@redhat.com>
7990 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7991 (ada_varobj_ops): Mark "extern".
7993 2014-02-20 Tom Tromey <tromey@redhat.com>
7995 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7997 2014-02-20 Doug Evans <xdje42@gmail.com>
7999 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8000 All callers updated.
8001 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8002 All callers updated.
8003 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8004 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8006 2014-02-20 lin zuojian <manjian2006@gmail.com>
8007 Joel Brobecker <brobecker@adacore.com>
8008 Doug Evans <xdje42@gmail.com>
8011 * dwarf2read.c (struct die_info): New member in_process.
8012 (reset_die_in_process): New function.
8013 (process_die): Set it at the start, reset when returning.
8014 (inherit_abstract_dies): Only call process_die if origin_child_die
8015 not already being processed.
8017 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8019 * windows-nat.c (handle_unload_dll): Add function documentation.
8020 (do_initial_windows_stuff): Add comment explaining why we wait
8021 until after inferior initialization has finished before
8022 processing all DLLs.
8024 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8026 * windows-nat.c (get_module_name): Delete.
8027 (windows_get_exec_module_filename): New function, mostly
8028 inspired from get_module_name.
8029 (windows_pid_to_exec_file): Replace call to get_module_name
8030 by call to windows_get_exec_module_filename.
8032 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8034 * windows-nat.c (handle_load_dll): Rewrite this function's
8035 introductory comment. Remove code using get_module_name
8036 to get the DLL's name.
8038 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8040 * windows-nat.c (get_windows_debug_event): Ignore
8041 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8042 if windows_initialization_done == 0.
8043 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8044 Adjust implementation to always load all DLLs.
8045 (do_initial_windows_stuff): Replace call to
8046 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8048 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8050 * windows-nat.c (_initialize_windows_nat): Deprecate the
8051 "dll-symbols" command. Turn the "add-shared-symbol-files"
8052 and "assf" aliases into commands, and deprecate them as well.
8053 * NEWS: Add entry explaining that "dll-symbols" and its two
8054 aliases are now deprecated.
8056 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8058 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8059 new-line in debug string. Remove trailing spaces.
8061 2014-02-19 Stan Shebs <stan@codesourcery.com>
8063 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8065 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8067 * NEWS: Add entry for the new feature
8068 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8071 2014-02-19 Stan Shebs <stan@codesourcery.com>
8073 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8075 2014-02-19 Pedro Alves <palves@redhat.com>
8077 * common/ptid.h (struct ptid): Mention that process_stratum
8078 targets should prefer ptid.lwp.
8080 2014-02-19 Pedro Alves <palves@redhat.com>
8082 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8083 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8084 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8085 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8086 store remote thread ids rather than ptid.tid.
8087 (_initialize_remote): Adjust.
8089 2014-02-19 Tom Tromey <tromey@redhat.com>
8091 * target.c (target_get_unwinder): Rewrite.
8092 (target_get_tailcall_unwinder): Rewrite.
8093 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8094 (record_btrace_to_get_tailcall_unwinder): New function.
8095 (init_record_btrace_ops): Update.
8096 * target.h (struct target_ops) <to_get_unwinder,
8097 to_get_tailcall_unwinder>: Now function pointers. Use
8098 TARGET_DEFAULT_RETURN.
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8102 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8104 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8108 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8110 * target-delegates.c: Rebuild.
8111 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8112 TARGET_DEFAULT_FUNC.
8113 * target.c (default_target_decr_pc_after_break): Rename from
8114 forward_target_decr_pc_after_break. Simplify.
8115 (target_decr_pc_after_break): Rely on delegation.
8117 2014-02-19 Tom Tromey <tromey@redhat.com>
8119 * target.c (update_current_target): Do not INHERIT to_doc or
8120 to_magic. Do not de_fault to_open or to_close.
8122 2014-02-19 Tom Tromey <tromey@redhat.com>
8124 * gcore.h (objfile_find_memory_regions): Declare.
8125 * gcore.c (objfile_find_memory_regions): No longer static. Add
8127 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8128 * exec.c: Include gcore.h.
8129 (exec_set_find_memory_regions): Remove.
8130 (exec_find_memory_regions): Remove.
8131 (exec_do_find_memory_regions): Remove.
8132 (init_exec_ops): Update.
8133 * defs.h (exec_set_find_memory_regions): Remove.
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * target-delegates.c: Rebuild.
8138 * target.h (struct target_ops) <to_extra_thread_info,
8139 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8140 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8141 not 0, in TARGET_DEFAULT_RETURN.
8143 2014-02-19 Tom Tromey <tromey@redhat.com>
8145 * target.c (complete_target_initialization): Remove casts. Use
8146 return_zero_has_execution.
8147 (return_zero): Add "ignore" argument.
8148 (return_zero_has_execution): New function.
8149 (init_dummy_target): Remove casts. Use
8150 return_zero_has_execution.
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8154 * target.c (update_current_target): Update comments. Do not
8157 2014-02-19 Tom Tromey <tromey@redhat.com>
8159 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8161 * corelow.c (core_read_description): Delegate when needed.
8162 * remote.c (remote_read_description): Delegate when needed.
8163 * target-delegates.c: Rebuild.
8164 * target.c (target_read_description): Rewrite.
8165 * target.h (struct target_ops) <to_read_description>: Update
8166 comment. Use TARGET_DEFAULT_RETURN.
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8170 * target-delegates.c: Rebuild.
8171 * target.c (update_current_target): Don't inherit or default
8173 (find_default_run_target): Check against delegate_can_run.
8174 * target.h (struct target_ops) <to_can_run>: Use
8175 TARGET_DEFAULT_RETURN.
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_disconnect): Unconditionally delegate.
8181 * target.h (struct target_ops) <to_disconnect>: Use
8182 TARGET_DEFAULT_NORETURN.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * record.c (record_stop): Unconditionally delegate.
8187 * target-delegates.c: Rebuild.
8188 * target.c (target_stop_recording): Unconditionally delegate.
8189 * target.h (struct target_ops) <to_stop_recording>: Use
8190 TARGET_DEFAULT_IGNORE.
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8194 * target-delegates.c: Rebuild.
8195 * target.c (target_enable_btrace): Unconditionally delegate.
8196 * target.h (struct target_ops) <to_enable_btrace>: Use
8197 TARGET_DEFAULT_NORETURN.
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * target-delegates.c: Rebuild.
8202 * target.c (target_read_btrace): Unconditionally delegate.
8203 * target.h (struct target_ops) <to_read_btrace>: Use
8204 TARGET_DEFAULT_NORETURN.
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8208 * target-delegates.c: Rebuild.
8209 * target.c (target_teardown_btrace): Unconditionally delegate.
8210 * target.h (struct target_ops) <to_teardown_btrace>: Use
8211 TARGET_DEFAULT_NORETURN.
8213 2014-02-19 Tom Tromey <tromey@redhat.com>
8215 * target-delegates.c: Rebuild.
8216 * target.c (target_disable_btrace): Unconditionally delegate.
8217 * target.h (struct target_ops) <to_disable_btrace>: Use
8218 TARGET_DEFAULT_NORETURN.
8220 2014-02-19 Tom Tromey <tromey@redhat.com>
8222 * target-delegates.c: Rebuild.
8223 * target.c (default_search_memory): New function.
8224 (simple_search_memory): Update comment.
8225 (target_search_memory): Unconditionally delegate.
8226 * target.h (struct target_ops) <to_search_memory>: Use
8227 TARGET_DEFAULT_FUNC.
8229 2014-02-19 Tom Tromey <tromey@redhat.com>
8231 * auxv.c (default_auxv_parse): No longer static.
8232 (target_auxv_parse): Unconditionally delegate.
8233 * auxv.h (default_auxv_parse): Declare.
8234 * target-delegates.c: Rebuild.
8235 * target.c: Include auxv.h.
8236 * target.h (struct target_ops) <to_auxv_parse>: Use
8237 TARGET_DEFAULT_FUNC.
8239 2014-02-19 Tom Tromey <tromey@redhat.com>
8241 * target-delegates.c: Rebuild.
8242 * target.c (target_memory_map): Unconditionally delegate.
8243 * target.h (struct target_ops) <to_memory_map>: Use
8244 TARGET_DEFAULT_RETURN.
8246 2014-02-19 Tom Tromey <tromey@redhat.com>
8248 * target-delegates.c: Rebuild.
8249 * target.c (target_thread_alive): Unconditionally delegate.
8250 * target.h (struct target_ops) <to_thread_alive>: Use
8251 TARGET_DEFAULT_RETURN.
8253 2014-02-19 Tom Tromey <tromey@redhat.com>
8255 * target-delegates.c: Rebuild.
8256 * target.c (target_save_record): Unconditionally delegate.
8257 * target.h (struct target_ops) <to_save_record>: Use
8258 TARGET_DEFAULT_NORETURN.
8260 2014-02-19 Tom Tromey <tromey@redhat.com>
8262 * target-delegates.c: Rebuild.
8263 * target.c (target_delete_record): Unconditionally delegate.
8264 * target.h (struct target_ops) <to_delete_record>: Use
8265 TARGET_DEFAULT_NORETURN.
8267 2014-02-19 Tom Tromey <tromey@redhat.com>
8269 * target-delegates.c: Rebuild.
8270 * target.c (target_record_is_replaying): Unconditionally
8272 * target.h (struct target_ops) <to_record_is_replaying>: Use
8273 TARGET_DEFAULT_RETURN.
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8277 * target-delegates.c: Rebuild.
8278 * target.c (target_goto_record_begin): Unconditionally delegate.
8279 * target.h (struct target_ops) <to_goto_record_begin>: Use
8280 TARGET_DEFAULT_NORETURN.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_goto_record_end): Unconditionally delegate.
8286 * target.h (struct target_ops) <to_goto_record_end>: Use
8287 TARGET_DEFAULT_NORETURN.
8289 2014-02-19 Tom Tromey <tromey@redhat.com>
8291 * target-delegates.c: Rebuild.
8292 * target.c (target_goto_record): Unconditionally delegate.
8293 * target.h (struct target_ops) <to_goto_record>: Use
8294 TARGET_DEFAULT_NORETURN.
8296 2014-02-19 Tom Tromey <tromey@redhat.com>
8298 * target-delegates.c: Rebuild.
8299 * target.c (target_insn_history): Unconditionally delegate.
8300 * target.h (struct target_ops) <to_insn_history>: Use
8301 TARGET_DEFAULT_NORETURN.
8303 2014-02-19 Tom Tromey <tromey@redhat.com>
8305 * target-delegates.c: Rebuild.
8306 * target.c (target_insn_history_from): Unconditionally delegate.
8307 * target.h (struct target_ops) <to_insn_history_from>: Use
8308 TARGET_DEFAULT_NORETURN.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * target-delegates.c: Rebuild.
8313 * target.c (target_insn_history_range): Unconditionally delegate.
8314 * target.h (struct target_ops) <to_insn_history_range>: Use
8315 TARGET_DEFAULT_NORETURN.
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target-delegates.c: Rebuild.
8320 * target.c (target_call_history): Unconditionally delegate.
8321 * target.h (struct target_ops) <to_call_history>: Use
8322 TARGET_DEFAULT_NORETURN.
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8326 * target-delegates.c: Rebuild.
8327 * target.c (target_call_history_from): Unconditionally delegate.
8328 * target.h (struct target_ops) <to_call_history_from>: Use
8329 TARGET_DEFAULT_NORETURN.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (target_call_history_range): Unconditionally delegate.
8335 * target.h (struct target_ops) <to_call_history_range>: Use
8336 TARGET_DEFAULT_NORETURN.
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8340 * target-delegates.c: Rebuild.
8341 * target.c (target_verify_memory): Unconditionally delegate.
8342 * target.h (struct target_ops) <to_verify_memory>: Use
8343 TARGET_DEFAULT_NORETURN.
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8347 * target-delegates.c: Rebuild.
8348 * target.c (target_core_of_thread): Unconditionally delegate.
8349 * target.h (struct target_ops) <to_core_of_thread>: Use
8350 TARGET_DEFAULT_RETURN.
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8354 * target-delegates.c: Rebuild.
8355 * target.c (target_flash_done): Unconditionally delegate.
8356 * target.h (struct target_ops) <to_flash_done>: Use
8357 TARGET_DEFAULT_NORETURN.
8359 2014-02-19 Tom Tromey <tromey@redhat.com>
8361 * target-delegates.c: Rebuild.
8362 * target.c (target_flash_erase): Unconditionally delegate.
8363 * target.h (struct target_ops) <to_flash_erase>: Use
8364 TARGET_DEFAULT_NORETURN.
8366 2014-02-19 Tom Tromey <tromey@redhat.com>
8368 * target-delegates.c: Rebuild.
8369 * target.c (target_get_section_table): Unconditionally delegate.
8370 * target.h (struct target_ops) <to_get_section_table>: Use
8371 TARGET_DEFAULT_RETURN.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * target-delegates.c: Rebuild.
8376 * target.c (target_pid_to_str): Unconditionally delegate.
8377 (init_dummy_target): Don't initialize to_pid_to_str.
8378 (default_pid_to_str): Rename from dummy_pid_to_str.
8379 * target.h (struct target_ops) <to_pid_to_str>: Use
8380 TARGET_DEFAULT_FUNC.
8382 2014-02-19 Tom Tromey <tromey@redhat.com>
8384 * target-delegates.c: Rebuild.
8385 * target.c (target_find_new_threads): Unconditionally delegate.
8386 * target.h (struct target_ops) <to_find_new_threads>: Use
8387 TARGET_DEFAULT_RETURN.
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8391 * target-delegates.c: Rebuild.
8392 * target.c (target_program_signals): Unconditionally delegate.
8393 * target.h (struct target_ops) <to_program_signals>: Use
8394 TARGET_DEFAULT_IGNORE.
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8398 * target-delegates.c: Rebuild.
8399 * target.c (target_pass_signals): Unconditionally delegate.
8400 * target.h (struct target_ops) <to_pass_signals>: Use
8401 TARGET_DEFAULT_IGNORE.
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8405 * target-delegates.c: Rebuild.
8406 * target.c (default_mourn_inferior): New function.
8407 (target_mourn_inferior): Unconditionally delegate.
8408 * target.h (struct target_ops) <to_mourn_inferior>: Use
8409 TARGET_DEFAULT_FUNC.
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8413 * target-delegates.c: Rebuild.
8414 * target.c (default_follow_fork): New function.
8415 (target_follow_fork): Unconditionally delegate.
8416 * target.h (struct target_ops) <to_follow_fork>: Use
8417 TARGET_DEFAULT_FUNC.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target-delegates.c: Rebuild.
8422 * target.c (target_kill): Unconditionally delegate.
8423 * target.h (struct target_ops) <to_kill>: Use
8424 TARGET_DEFAULT_NORETURN.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (target_masked_watch_num_registers): Unconditionally
8431 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8432 Use TARGET_DEFAULT_RETURN.
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8436 * target-delegates.c: Rebuild.
8437 * target.c (target_remove_mask_watchpoint): Unconditionally
8439 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8440 TARGET_DEFAULT_RETURN.
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8444 * target-delegates.c: Rebuild.
8445 * target.c (target_insert_mask_watchpoint): Unconditionally
8447 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8448 TARGET_DEFAULT_RETURN.
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8452 * target-delegates.c: Rebuild.
8453 * target.c (target_ranged_break_num_registers): Unconditionally
8455 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8456 Use TARGET_DEFAULT_RETURN.
8458 2014-02-19 Tom Tromey <tromey@redhat.com>
8460 * target-delegates.c: Rebuild.
8461 * target.c (target_fetch_registers): Unconditionally delegate.
8462 * target.h (struct target_ops) <to_fetch_registers>: Use
8463 TARGET_DEFAULT_NORETURN.
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8467 * target-delegates.c: Rebuild.
8468 * target.c (update_current_target): Don't inherit or default
8470 * target.h (struct target_ops) <to_stop>: Use
8471 TARGET_DEFAULT_IGNORE.
8473 2014-02-19 Tom Tromey <tromey@redhat.com>
8475 * target-delegates.c: Rebuild.
8476 * target.c (update_current_target): Don't inherit or default
8477 to_can_run_breakpoint_commands.
8478 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8479 Use TARGET_DEFAULT_RETURN.
8481 2014-02-19 Tom Tromey <tromey@redhat.com>
8483 * target-delegates.c: Rebuild.
8484 * target.c (update_current_target): Don't inherit or default
8485 to_supports_evaluation_of_breakpoint_conditions.
8486 * target.h (struct target_ops)
8487 <to_supports_evaluation_of_breakpoint_conditions>: Use
8488 TARGET_DEFAULT_RETURN.
8490 2014-02-19 Tom Tromey <tromey@redhat.com>
8492 * target-delegates.c: Rebuild.
8493 * target.c (update_current_target): Don't inherit or default
8494 to_augmented_libraries_svr4_read.
8495 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8496 Use TARGET_DEFAULT_RETURN.
8498 2014-02-19 Tom Tromey <tromey@redhat.com>
8500 * target-delegates.c: Rebuild.
8501 * target.c (update_current_target): Don't inherit or default
8503 * target.h (struct target_ops) <to_can_use_agent>: Use
8504 TARGET_DEFAULT_RETURN.
8506 2014-02-19 Tom Tromey <tromey@redhat.com>
8508 * target-delegates.c: Rebuild.
8509 * target.c (update_current_target): Don't inherit or default
8511 * target.h (struct target_ops) <to_use_agent>: Use
8512 TARGET_DEFAULT_NORETURN.
8514 2014-02-19 Tom Tromey <tromey@redhat.com>
8516 * target-delegates.c: Rebuild.
8517 * target.c (update_current_target): Don't inherit or default
8519 (return_null): Remove.
8520 * target.h (struct target_ops) <to_traceframe_info>: Use
8521 TARGET_DEFAULT_RETURN.
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_static_tracepoint_markers_by_strid.
8528 * target.h (struct target_ops)
8529 <to_static_tracepoint_markers_by_strid>: Use
8530 TARGET_DEFAULT_NORETURN.
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_static_tracepoint_marker_at.
8537 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8538 Use TARGET_DEFAULT_RETURN.
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8545 * target.h (struct target_ops) <to_set_permissions>: Use
8546 TARGET_DEFAULT_IGNORE.
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8553 * target.h (struct target_ops) <to_get_tib_address>: Use
8554 TARGET_DEFAULT_NORETURN.
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8561 * target.h (struct target_ops) <to_set_trace_notes>: Use
8562 TARGET_DEFAULT_RETURN.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't initialize
8568 to_set_trace_buffer_size.
8569 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8570 TARGET_DEFAULT_IGNORE.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_set_circular_trace_buffer.
8577 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8578 TARGET_DEFAULT_IGNORE.
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_set_disconnected_tracing.
8585 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8586 TARGET_DEFAULT_IGNORE.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8592 to_get_min_fast_tracepoint_insn_len.
8593 (return_minus_one): Remove.
8594 * target.h (struct target_ops)
8595 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_get_raw_trace_data.
8602 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8603 TARGET_DEFAULT_NORETURN.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_upload_trace_state_variables.
8610 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8611 Use TARGET_DEFAULT_RETURN.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_upload_tracepoints.
8618 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8619 TARGET_DEFAULT_RETURN.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8626 * target.h (struct target_ops) <to_save_trace_data>: Use
8627 TARGET_DEFAULT_NORETURN.
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_get_trace_state_variable_value.
8634 * target.h (struct target_ops)
8635 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8642 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8644 2014-02-19 Tom Tromey <tromey@redhat.com>
8646 * target-delegates.c: Rebuild.
8647 * target.c (update_current_target): Don't inherit or default
8649 * target.h (struct target_ops) <to_trace_stop>: Use
8650 TARGET_DEFAULT_NORETURN.
8652 2014-02-19 Tom Tromey <tromey@redhat.com>
8654 * target-delegates.c: Rebuild.
8655 * target.c (update_current_target): Don't inherit or default
8656 to_get_tracepoint_status.
8657 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8658 TARGET_DEFAULT_NORETURN.
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8662 * target-delegates.c: Rebuild.
8663 * target.c (update_current_target): Don't inherit or default
8664 to_get_trace_status.
8665 * target.h (struct target_ops) <to_get_trace_status>: Use
8666 TARGET_DEFAULT_RETURN.
8668 2014-02-19 Tom Tromey <tromey@redhat.com>
8670 * target-delegates.c: Rebuild.
8671 * target.c (update_current_target): Don't inherit or default
8673 * target.h (struct target_ops) <to_trace_start>: Use
8674 TARGET_DEFAULT_NORETURN.
8676 2014-02-19 Tom Tromey <tromey@redhat.com>
8678 * target-delegates.c: Rebuild.
8679 * target.c (update_current_target): Don't inherit or default
8680 to_trace_set_readonly_regions.
8681 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8682 Use TARGET_DEFAULT_NORETURN.
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8686 * target-delegates.c: Rebuild.
8687 * target.c (update_current_target): Don't inherit or default
8688 to_disable_tracepoint.
8689 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8690 TARGET_DEFAULT_NORETURN.
8692 2014-02-19 Tom Tromey <tromey@redhat.com>
8694 * target-delegates.c: Rebuild.
8695 * target.c (update_current_target): Don't inherit or default
8696 to_enable_tracepoint.
8697 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8698 TARGET_DEFAULT_NORETURN.
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8704 to_download_trace_state_variable.
8705 * target.h (struct target_ops) <to_download_trace_state_variable>:
8706 Use TARGET_DEFAULT_NORETURN.
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8710 * target-delegates.c: Rebuild.
8711 * target.c (update_current_target): Don't inherit or default
8712 to_can_download_tracepoint.
8713 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8714 TARGET_DEFAULT_RETURN.
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8718 * target-delegates.c: Rebuild.
8719 * target.c (update_current_target): Don't inherit or default
8720 to_download_tracepoint.
8721 * target.h (struct target_ops) <to_download_tracepoint>: Use
8722 TARGET_DEFAULT_NORETURN.
8724 2014-02-19 Tom Tromey <tromey@redhat.com>
8726 * target-delegates.c: Rebuild.
8727 * target.c (update_current_target): Don't inherit or default
8729 * target.h (struct target_ops) <to_trace_init>: Use
8730 TARGET_DEFAULT_RETURN.
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8734 * target-delegates.c: Rebuild.
8735 * target.c (update_current_target): Don't inherit or default
8736 to_supports_string_tracing.
8737 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8738 TARGET_DEFAULT_RETURN.
8740 2014-02-19 Tom Tromey <tromey@redhat.com>
8742 * target-delegates.c: Rebuild.
8743 * target.c (update_current_target): Don't inherit or default
8744 to_supports_enable_disable_tracepoint.
8745 * target.h (struct target_ops)
8746 <to_supports_enable_disable_tracepoint>: Use
8747 TARGET_DEFAULT_RETURN.
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_supports_multi_process.
8754 * target.h (struct target_ops) <to_supports_multi_process>: Use
8755 TARGET_DEFAULT_RETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_get_ada_task_ptid.
8762 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8763 TARGET_DEFAULT_FUNC.
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_thread_architecture.
8770 * target.h (struct target_ops) <to_thread_architecture>: Use
8771 TARGET_DEFAULT_FUNC.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_execution_direction.
8778 * target.h (struct target_ops) <to_execution_direction>: Use
8779 TARGET_DEFAULT_FUNC.
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_can_execute_reverse.
8786 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8787 TARGET_DEFAULT_RETURN.
8788 (target_can_execute_reverse): Unconditionally delegate.
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8792 * target-delegates.c: Rebuild.
8793 * target.c (update_current_target): Don't inherit or default
8795 (dummy_goto_bookmark): Remove.
8796 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8797 * target.h (struct target_ops) <to_goto_bookmark>: Use
8798 TARGET_DEFAULT_NORETURN.
8800 2014-02-19 Tom Tromey <tromey@redhat.com>
8802 * target-delegates.c: Rebuild.
8803 * target.c (update_current_target): Don't inherit or default
8805 (dummy_get_bookmark): Remove.
8806 (init_dummy_target): Don't inherit or default to_get_bookmark.
8807 * target.h (struct target_ops) <to_get_bookmark>: Use
8808 TARGET_DEFAULT_NORETURN
8810 2014-02-19 Tom Tromey <tromey@redhat.com>
8812 * target-delegates.c: Rebuild.
8813 * target.c (update_current_target): Don't inherit or default
8814 to_make_corefile_notes.
8815 (init_dummy_target): Don't initialize to_make_corefile_notes.
8816 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8817 TARGET_DEFAULT_FUNC.
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8821 * target-delegates.c: Rebuild.
8822 * target.c (update_current_target): Don't inherit or default
8823 to_find_memory_regions.
8824 (init_dummy_target): Don't initialize to_find_memory_regions.
8825 * target.h (struct target_ops) <to_find_memory_regions>: Use
8826 TARGET_DEFAULT_FUNC.
8828 2014-02-19 Tom Tromey <tromey@redhat.com>
8830 * target-delegates.c: Rebuild.
8831 * target.c (update_current_target): Don't inherit or default
8833 * target.h (struct target_ops) <to_log_command>: Use
8834 TARGET_DEFAULT_IGNORE.
8835 (target_log_command): Unconditionally delegate.
8837 2014-02-19 Tom Tromey <tromey@redhat.com>
8839 * target-delegates.c: Rebuild.
8840 * target.c (update_current_target): Don't inherit or default
8841 to_pid_to_exec_file.
8842 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8843 TARGET_DEFAULT_RETURN.
8845 2014-02-19 Tom Tromey <tromey@redhat.com>
8847 * target-delegates.c: Rebuild.
8848 * target.c (update_current_target): Don't inherit or default
8850 (target_thread_name): Unconditionally delegate.
8851 * target.h (struct target_ops) <to_thread_name>: Use
8852 TARGET_DEFAULT_RETURN.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_extra_thread_info.
8859 * target.h (struct target_ops) <to_extra_thread_info>: Use
8860 TARGET_DEFAULT_RETURN.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8867 * target.h (struct target_ops) <to_has_exited>: Use
8868 TARGET_DEFAULT_RETURN..
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8874 to_set_syscall_catchpoint.
8875 (return_one): Remove.
8876 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8877 TARGET_DEFAULT_RETURN.
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8881 * target-delegates.c: Rebuild.
8882 * target.c (update_current_target): Don't inherit or default
8883 to_insert_exec_catchpoint.
8884 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8885 TARGET_DEFAULT_RETURN.
8887 2014-01-08 Tom Tromey <tromey@redhat.com>
8889 * target-delegates.c: Rebuild.
8890 * target.c (update_current_target): Don't inherit or default
8891 to_insert_exec_catchpoint.
8892 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8893 TARGET_DEFAULT_RETURN.
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8899 to_remove_vfork_catchpoint.
8900 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8901 TARGET_DEFAULT_RETURN.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8907 to_insert_vfork_catchpoint.
8908 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8909 TARGET_DEFAULT_RETURN.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8915 to_remove_fork_catchpoint.
8916 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8917 TARGET_DEFAULT_RETURN.
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8923 to_insert_fork_catchpoint.
8924 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8925 TARGET_DEFAULT_RETURN.
8927 2014-02-19 Tom Tromey <tromey@redhat.com>
8929 * target-delegates.c: Rebuild.
8930 * target.c (update_current_target): Don't inherit or default
8931 to_post_startup_inferior.
8932 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8933 TARGET_DEFAULT_IGNORE.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8940 * target.h (struct target_ops) <to_load>: Use
8941 TARGET_DEFAULT_NORETURN.
8943 2014-02-19 Tom Tromey <tromey@redhat.com>
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8948 * target.h (struct target_ops) <to_terminal_info>: Use
8949 TARGET_DEFAULT_FUNC.
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8953 * target-delegates.c: Rebuild.
8954 * target.c (update_current_target): Don't inherit or default
8955 to_terminal_save_ours.
8956 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8957 TARGET_DEFAULT_IGNORE.
8959 2014-02-19 Tom Tromey <tromey@redhat.com>
8961 * target-delegates.c: Rebuild.
8962 * target.c (update_current_target): Don't inherit or default
8964 * target.h (struct target_ops) <to_terminal_ours>: Use
8965 TARGET_DEFAULT_IGNORE.
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8969 * target-delegates.c: Rebuild.
8970 * target.c (update_current_target): Don't inherit or default
8971 to_terminal_ours_for_output.
8972 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8973 TARGET_DEFAULT_IGNORE.
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8977 * target-delegates.c: Rebuild.
8978 * target.c (update_current_target): Don't inherit or default
8979 to_terminal_inferior.
8980 * target.h (struct target_ops) <to_terminal_inferior>: Use
8981 TARGET_DEFAULT_IGNORE.
8983 2014-02-19 Tom Tromey <tromey@redhat.com>
8985 * target-delegates.c: Rebuild.
8986 * target.c (update_current_target): Don't inherit or default
8988 * target.h (struct target_ops) <to_terminal_init>: Use
8989 TARGET_DEFAULT_IGNORE.
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8993 * target-delegates.c: Rebuild.
8994 * target.c (update_current_target): Don't inherit or default
8995 to_can_accel_watchpoint_condition.
8996 * target.h (struct target_ops)
8997 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8999 2014-02-19 Tom Tromey <tromey@redhat.com>
9001 * target-delegates.c: Rebuild.
9002 * target.c (update_current_target): Don't inherit or default
9003 to_region_ok_for_hw_watchpoint.
9004 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9005 Use TARGET_DEFAULT_FUNC.
9007 2014-02-19 Tom Tromey <tromey@redhat.com>
9009 * target-delegates.c: Rebuild.
9010 * target.c (update_current_target): Don't inherit or default
9011 to_watchpoint_addr_within_range.
9012 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9013 Use TARGET_DEFAULT_FUNC.
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9017 * target-delegates.c: Rebuild.
9018 * target.c (update_current_target): Don't inherit or default
9019 to_remove_watchpoint.
9020 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9021 TARGET_DEFAULT_NORETURN.
9023 2014-02-19 Tom Tromey <tromey@redhat.com>
9025 * target-delegates.c: Rebuild.
9026 * target.c (update_current_target): Don't inherit or default
9027 to_insert_watchpoint.
9028 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9029 TARGET_DEFAULT_RETURN.
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9033 * target-delegates.c: Rebuild.
9034 * target.c (update_current_target): Don't inherit or default
9035 to_remove_hw_breakpoint.
9036 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9037 TARGET_DEFAULT_RETURN.
9039 2014-02-19 Tom Tromey <tromey@redhat.com>
9041 * target-delegates.c: Rebuild.
9042 * target.c (update_current_target): Don't inherit or default
9043 to_insert_hw_breakpoint.
9044 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9045 TARGET_DEFAULT_RETURN.
9047 2014-02-19 Tom Tromey <tromey@redhat.com>
9049 * target-delegates.c: Rebuild.
9050 * target.c (update_current_target): Don't inherit or default
9051 to_can_use_hw_breakpoint.
9052 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9053 TARGET_DEFAULT_RETURN.
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9057 * target-delegates.c: Rebuild.
9058 * target.c (update_current_target): Don't inherit or default
9060 * target.h (struct target_ops) <to_files_info>: Use
9061 TARGET_DEFAULT_IGNORE.
9063 2014-02-19 Tom Tromey <tromey@redhat.com>
9065 * target-delegates.c: Rebuild.
9066 * target.c (update_current_target): Don't inherit or default
9068 * target.h (struct target_ops) <to_store>: Use
9069 TARGET_DEFAULT_NORETURN.
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9073 * target-delegates.c: Rebuild.
9074 * target.c (update_current_target): Don't inherit or default
9076 * target.h (struct target_ops) <to_post_attach>: Use
9077 TARGET_DEFAULT_IGNORE.
9079 2014-02-19 Tom Tromey <tromey@redhat.com>
9081 * target-delegates.c: Rebuild.
9082 * target.c (update_current_target): Don't inherit or default
9084 (default_rcmd): New function.
9085 (do_monitor_command): Unconditionally delegate.
9086 * target.h (struct target_ops) <to_rmcd>: Use
9087 TARGET_DEFAULT_FUNC.
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target-delegates.c: Rebuild.
9092 * target.c (init_dummy_target): Don't initialize to_attach.
9093 (target_attach): Unconditionally delegate.
9094 * target.h (struct target_ops) <to_attach>: Use
9095 TARGET_DEFAULT_FUNC.
9097 2014-02-19 Tom Tromey <tromey@redhat.com>
9099 * target-delegates.c: Rebuild.
9100 * target.c (target_detach): Unconditionally delegate.
9101 (init_dummy_target): Don't initialize to_detach.
9102 * target.h (struct target_ops) <to_detach>: Use
9103 TARGET_DEFAULT_IGNORE.
9105 2014-02-19 Tom Tromey <tromey@redhat.com>
9107 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9109 (target_augmented_libraries_svr4_read): Add argument.
9110 * target.c (update_current_target): Update.
9111 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9114 2014-02-19 Tom Tromey <tromey@redhat.com>
9116 * target.h (struct target_ops) <to_call_history_range>: Add
9118 * target.c (target_call_history_range): Add argument.
9119 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9121 (record_btrace_call_history_from): Update.
9123 2014-02-19 Tom Tromey <tromey@redhat.com>
9125 * target.h (struct target_ops) <to_call_history_from>: Add
9127 * target.c (target_call_history_from): Add argument.
9128 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9131 2014-02-19 Tom Tromey <tromey@redhat.com>
9133 * target.h (struct target_ops) <to_call_history>: Add argument.
9134 * target.c (target_call_history): Add argument.
9135 * record-btrace.c (record_btrace_call_history): Add 'self'
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9140 * target.h (struct target_ops) <to_insn_history_range>: Add
9142 * target.c (target_insn_history_range): Add argument.
9143 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9145 (record_btrace_insn_history_from): Update.
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9149 * target.h (struct target_ops) <to_insn_history_from>: Add
9151 * target.c (target_insn_history_from): Add argument.
9152 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9157 * target.h (struct target_ops) <to_insn_history>: Add argument.
9158 * target.c (target_insn_history): Add argument.
9159 * record-btrace.c (record_btrace_insn_history): Add 'self'
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9164 * target.h (struct target_ops) <to_goto_record>: Add argument.
9165 * target.c (target_goto_record): Add argument.
9166 * record-full.c (record_full_goto): Add 'self' argument.
9167 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9171 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9172 * target.c (target_goto_record_end): Add argument.
9173 * record-full.c (record_full_goto_end): Add 'self' argument.
9174 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9176 2014-02-19 Tom Tromey <tromey@redhat.com>
9178 * target.h (struct target_ops) <to_goto_record_begin>: Add
9180 * target.c (target_goto_record_begin): Add argument.
9181 * record-full.c (record_full_goto_begin): Add 'self' argument.
9182 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * target.h (struct target_ops) <to_record_is_replaying>: Add
9189 * target.c (target_record_is_replaying): Add argument.
9190 * record-full.c (record_full_is_replaying): Add 'self' argument.
9191 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9193 (record_btrace_xfer_partial, record_btrace_store_registers)
9194 (record_btrace_prepare_to_store, record_btrace_resume)
9195 (record_btrace_wait, record_btrace_decr_pc_after_break)
9196 (record_btrace_find_new_threads, record_btrace_thread_alive):
9199 2014-02-19 Tom Tromey <tromey@redhat.com>
9201 * target.h (struct target_ops) <to_delete_record>: Add argument.
9202 * target.c (target_delete_record): Add argument.
9203 * record-full.c (record_full_delete): Add 'self' argument.
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9207 * target.h (struct target_ops) <to_save_record>: Add argument.
9208 * target.c (target_save_record): Add argument.
9209 * record-full.c (record_full_save): Add 'self' argument.
9210 (record_full_save): Add 'self' argument.
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target.h (struct target_ops) <to_info_record>: Add argument.
9215 * target.c (target_info_record): Add argument.
9216 * record.c (info_record_command): Add argument.
9217 * record-full.c (record_full_info): Add 'self' argument.
9218 * record-btrace.c (record_btrace_info): Add 'self' argument.
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9222 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9223 * target.c (target_stop_recording): Add argument.
9224 * record.c (record_stop): Add argument.
9225 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9231 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9232 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9234 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9235 (_initialize_amd64_linux_nat): Use it.
9236 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9237 (_initialize_i386_linux_nat): Use it.
9239 2014-02-19 Tom Tromey <tromey@redhat.com>
9241 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9242 * target.c (target_teardown_btrace): Add argument.
9243 * remote.c (remote_teardown_btrace): Add 'self' argument.
9244 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9246 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9249 2014-02-19 Tom Tromey <tromey@redhat.com>
9251 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9252 * target.c (target_disable_btrace): Add argument.
9253 * remote.c (remote_disable_btrace): Add 'self' argument.
9254 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9256 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9261 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9262 * target.c (target_enable_btrace): Add argument.
9263 * remote.c (remote_enable_btrace): Add 'self' argument.
9264 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9266 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9272 (target_can_use_agent): Add argument.
9273 * target.c (update_current_target): Update.
9274 * remote.c (remote_can_use_agent): Add 'self' argument.
9275 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target.h (struct target_ops) <to_use_agent>: Add argument.
9280 (target_use_agent): Add argument.
9281 * target.c (update_current_target): Update.
9282 * remote.c (remote_use_agent): Add 'self' argument.
9283 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9285 2014-02-19 Tom Tromey <tromey@redhat.com>
9287 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9288 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9289 (target_traceframe_info): Add argument.
9290 * target.c (update_current_target): Update.
9291 * remote.c (remote_traceframe_info): Add 'self' argument.
9292 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9294 2014-02-19 Tom Tromey <tromey@redhat.com>
9296 * target.h (target_static_tracepoint_markers_by_strid): Add
9298 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9300 * target.c (update_current_target): Update.
9301 * remote.c (struct target_ops)
9302 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9303 * linux-nat.c (struct target_ops)
9304 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9310 (target_static_tracepoint_marker_at): Add argument.
9311 * target.c (update_current_target): Update.
9312 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9315 2014-02-19 Tom Tromey <tromey@redhat.com>
9317 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9318 (target_set_permissions): Add argument.
9319 * target.c (update_current_target): Update.
9320 * remote.c (remote_set_permissions): Add 'self' argument.
9321 (remote_start_remote): Update.
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9325 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9326 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9327 (target_get_tib_address): Add argument.
9328 * target.c (update_current_target): Update.
9329 * remote.c (remote_get_tib_address): Add 'self' argument.
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9333 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9334 (target_set_trace_notes): Add argument.
9335 * target.c (update_current_target): Update.
9336 * remote.c (remote_set_trace_notes): Add 'self' argument.
9338 2014-02-19 Tom Tromey <tromey@redhat.com>
9340 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9342 (target_set_trace_buffer_size): Add argument.
9343 * target.c (update_current_target): Update.
9344 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9346 2014-02-19 Tom Tromey <tromey@redhat.com>
9348 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9350 (target_set_circular_trace_buffer): Add argument.
9351 * target.c (update_current_target): Update.
9352 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9357 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9359 (target_set_disconnected_tracing): Add argument.
9360 * target.c (update_current_target): Update.
9361 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9363 2014-02-19 Tom Tromey <tromey@redhat.com>
9365 * target.h (struct target_ops)
9366 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9367 (target_get_min_fast_tracepoint_insn_len): Add argument.
9368 * target.c (update_current_target): Update.
9369 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9372 2014-02-19 Tom Tromey <tromey@redhat.com>
9374 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9376 (target_get_raw_trace_data): Add argument.
9377 * target.c (update_current_target): Update.
9378 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9384 (target_upload_trace_state_variables): Add argument.
9385 * target.c (update_current_target): Update.
9386 * remote.c (remote_upload_trace_state_variables): Add 'self'
9388 (remote_start_remote): Update.
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9392 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9394 (target_upload_tracepoints): Add argument.
9395 * target.c (update_current_target): Update.
9396 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9397 (remote_start_remote): Update.
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9401 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9402 (target_save_trace_data): Add argument.
9403 * target.c (update_current_target): Update.
9404 * remote.c (remote_save_trace_data): Add 'self' argument.
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9408 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9410 * target.h (struct target_ops)
9411 <to_get_trace_state_variable_value>: Add argument.
9412 (target_get_trace_state_variable_value): Add argument.
9413 * target.c (update_current_target): Update.
9414 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9416 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9420 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9421 * target.h (struct target_ops) <to_trace_find>: Add argument.
9422 (target_trace_find): Add argument.
9423 * target.c (update_current_target): Update.
9424 * remote.c (remote_trace_find): Add 'self' argument.
9425 * ctf.c (ctf_trace_find): Add 'self' argument.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9430 (target_trace_stop): Add argument.
9431 * target.c (update_current_target): Update.
9432 * remote.c (remote_trace_stop): Add 'self' argument.
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9436 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9437 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9439 (target_get_tracepoint_status): Add argument.
9440 * target.c (update_current_target): Update.
9441 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9443 2014-02-19 Tom Tromey <tromey@redhat.com>
9445 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9446 * target.h (struct target_ops) <to_get_trace_status>: Add
9448 (target_get_trace_status): Add argument.
9449 * target.c (update_current_target): Update.
9450 * remote.c (remote_get_trace_status): Add 'self' argument.
9451 (remote_start_remote, remote_can_download_tracepoint): Update.
9452 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9456 * target.h (struct target_ops) <to_trace_start>: Add argument.
9457 (target_trace_start): Add argument.
9458 * target.c (update_current_target): Update.
9459 * remote.c (remote_trace_start): Add 'self' argument.
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9463 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9465 (target_trace_set_readonly_regions): Add argument.
9466 * target.c (update_current_target): Update.
9467 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9470 2014-02-19 Tom Tromey <tromey@redhat.com>
9472 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9474 (target_disable_tracepoint): Add argument.
9475 * target.c (update_current_target): Update.
9476 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9480 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9482 (target_enable_tracepoint): Add argument.
9483 * target.c (update_current_target): Update.
9484 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9486 2014-02-19 Tom Tromey <tromey@redhat.com>
9488 * target.h (struct target_ops) <to_download_trace_state_variable>:
9490 (target_download_trace_state_variable): Add argument.
9491 * target.c (update_current_target): Update.
9492 * remote.c (remote_download_trace_state_variable): Add 'self'
9495 2014-02-19 Tom Tromey <tromey@redhat.com>
9497 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9499 (target_can_download_tracepoint): Add argument.
9500 * target.c (update_current_target): Update.
9501 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target.h (struct target_ops) <to_download_tracepoint>: Add
9507 (target_download_tracepoint): Add argument.
9508 * target.c (update_current_target): Update.
9509 * remote.c (remote_download_tracepoint): Add 'self' argument.
9511 2014-02-19 Tom Tromey <tromey@redhat.com>
9513 * target.h (struct target_ops) <to_trace_init>: Add argument.
9514 (target_trace_init): Add argument.
9515 * target.c (update_current_target): Update.
9516 * remote.c (remote_trace_init): Add 'self' argument.
9518 2014-02-19 Tom Tromey <tromey@redhat.com>
9520 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9521 * target.c (target_fileio_readlink): Add argument.
9522 * remote.c (remote_hostio_readlink): Add 'self' argument.
9523 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9525 2014-02-19 Tom Tromey <tromey@redhat.com>
9527 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9528 * target.c (target_fileio_unlink): Add argument.
9529 * remote.c (remote_hostio_unlink): Add 'self' argument.
9530 (remote_file_delete): Update.
9531 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9533 2014-02-19 Tom Tromey <tromey@redhat.com>
9535 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9536 * target.c (target_fileio_close): Add argument.
9537 * remote.c (remote_hostio_close): Add 'self' argument.
9538 (remote_hostio_close_cleanup): Update.
9539 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9541 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9545 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9546 * target.c (target_fileio_pread): Add argument.
9547 * remote.c (remote_hostio_pread): Add 'self' argument.
9548 (remote_bfd_iovec_pread, remote_file_get): Update.
9549 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9554 * target.c (target_fileio_pwrite): Add argument.
9555 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9556 (remote_file_put): Update.
9557 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9562 * target.c (target_fileio_open): Add argument.
9563 * remote.c (remote_hostio_open): Add 'self' argument.
9564 (remote_bfd_iovec_open): Add 'self' argument.
9565 (remote_file_put): Add 'self' argument.
9566 (remote_file_get): Add 'self' argument.
9567 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9573 (target_can_run_breakpoint_commands): Add argument.
9574 * target.c (update_current_target): Update.
9575 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9577 (remote_insert_breakpoint): Add 'self' argument.
9578 (remote_insert_hw_breakpoint): Add 'self' argument.
9579 (remote_can_run_breakpoint_commands): Add 'self' argument.
9581 2014-02-19 Tom Tromey <tromey@redhat.com>
9583 * target.h (struct target_ops)
9584 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9585 (target_supports_evaluation_of_breakpoint_conditions): Add
9587 * target.c (update_current_target): Update.
9588 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9590 (remote_insert_breakpoint): Add 'self' argument.
9591 (remote_insert_hw_breakpoint): Add 'self' argument.
9592 (remote_supports_cond_breakpoints): Add 'self' argument.
9594 2014-02-19 Tom Tromey <tromey@redhat.com>
9596 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9598 (target_supports_string_tracing): Add argument.
9599 * target.c (update_current_target): Update.
9600 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9604 * target.h (struct target_ops)
9605 <to_supports_disable_randomization>: Add argument.
9606 * target.c (find_default_supports_disable_randomization): Add
9608 (target_supports_disable_randomization): Add argument.
9609 (find_default_supports_disable_randomization): Add 'self'
9611 * remote.c (extended_remote_supports_disable_randomization): Add
9613 (remote_supports_disable_randomization): Add 'self' argument.
9614 (extended_remote_create_inferior): Update.
9615 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9620 * target.h (struct target_ops)
9621 <to_supports_enable_disable_tracepoint>: Add argument.
9622 (target_supports_enable_disable_tracepoint): Add argument.
9623 * target.c (update_current_target): Update.
9624 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9627 2014-02-19 Tom Tromey <tromey@redhat.com>
9629 * target.h (struct target_ops) <to_supports_multi_process>: Add
9631 (target_supports_multi_process): Add argument.
9632 * target.c (update_current_target): Update.
9633 * remote.c (remote_supports_multi_process): Add 'self' argument.
9634 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9636 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9641 * target.h (struct target_ops) <to_execution_direction>: Add
9643 (target_execution_direction): Add argument.
9644 * target.c (default_execution_direction): Add 'self' argument.
9645 * record-full.c (record_full_execution_direction): Add 'self'
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9650 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9652 (target_can_execute_reverse): Add argument.
9653 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9654 * record-full.c (record_full_can_execute_reverse): Add 'self'
9656 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9659 2014-02-19 Tom Tromey <tromey@redhat.com>
9661 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9662 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9664 (target_get_ada_task_ptid): Add argument.
9665 * target.c (update_current_target): Update.
9666 (default_get_ada_task_ptid): Add 'self' argument.
9667 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9668 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9669 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9671 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9673 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9675 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9677 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9678 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9681 2014-02-19 Tom Tromey <tromey@redhat.com>
9683 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9684 (target_goto_bookmark): Add argument.
9685 * target.c (dummy_goto_bookmark): Add 'self' argument.
9686 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9691 (target_get_bookmark): Add argument.
9692 * target.c (dummy_get_bookmark): Add 'self' argument.
9693 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9695 2014-02-19 Tom Tromey <tromey@redhat.com>
9697 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9699 (target_make_corefile_notes): Add argument.
9700 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9701 * procfs.c (procfs_make_note_section): Add 'self' argument.
9702 (procfs_make_note_section): Add 'self' argument.
9703 (procfs_make_note_section): Add 'self' argument.
9704 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9706 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9707 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9708 * exec.c (exec_make_note_section): Add 'self' argument.
9709 (exec_make_note_section): Add 'self' argument.
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9713 * target.h (struct target_ops) <to_find_memory_regions>: Add
9715 (target_find_memory_regions): Add argument.
9716 * target.c (dummy_find_memory_regions): Add 'self' argument.
9717 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9718 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9719 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9720 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9721 * exec. (exec_do_find_memory_regions): New global.
9722 (exec_set_find_memory_regions): Rewrite.
9723 (exec_find_memory_regions): New function.
9724 (init_exec_ops): Use exec_find_memory_regions.
9726 2014-02-19 Tom Tromey <tromey@redhat.com>
9728 * target.h (struct target_ops) <to_supports_non_stop>: Add
9730 * target.c (find_default_supports_non_stop): Add argument.
9731 (target_supports_non_stop): Add argument.
9732 (find_default_supports_non_stop): Add 'self' argument.
9733 * remote.c (remote_supports_non_stop): Add 'self' argument.
9734 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9736 2014-02-19 Tom Tromey <tromey@redhat.com>
9738 * target.h (struct target_ops) <to_log_command>: Add argument.
9739 (target_log_command): Add argument.
9740 * serial.h (serial_log_command): Add 'self' argument.
9741 * serial.c (serial_log_command): Add 'self' argument.
9743 2014-02-19 Tom Tromey <tromey@redhat.com>
9745 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9746 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9748 (target_pid_to_exec_file): Add argument.
9749 * target.c (debug_to_pid_to_exec_file): Add argument.
9750 (update_current_target): Update.
9751 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9752 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9753 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9754 (linux_handle_extended_wait): Update.
9755 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9756 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9757 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9758 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9762 * target.h (struct target_ops) <to_rcmd>: Add argument.
9763 (target_rcmd): Add argument.
9764 * target.c (debug_to_rcmd): Add argument.
9765 (update_current_target, do_monitor_command): Update.
9766 * remote.c (remote_rcmd): Add 'self' argument.
9767 * monitor.c (monitor_rcmd): Add 'self' argument.
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9771 * windows-nat.c (windows_stop): Add 'self' argument.
9772 * target.h (struct target_ops) <to_stop>: Add argument.
9773 * target.c (target_stop): Add argument.
9774 (debug_to_stop): Add argument.
9775 (update_current_target): Update.
9776 * remote.c (remote_stop): Add 'self' argument.
9777 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9778 (gdbsim_cntrl_c): Update.
9779 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9780 * procfs.c (procfs_stop): Add 'self' argument.
9781 * nto-procfs.c (procfs_stop): Add 'self' argument.
9782 * monitor.c (monitor_stop): Add 'self' argument.
9783 (monitor_open): Update.
9784 * linux-nat.c (linux_nat_stop): Add argument.
9785 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9786 * gnu-nat.c (gnu_stop): Add 'self' argument.
9787 * darwin-nat.c (darwin_stop): Add 'self' argument.
9789 2014-02-19 Tom Tromey <tromey@redhat.com>
9791 * target.h (struct target_ops) <to_thread_name>: Add argument.
9792 * target.c (target_thread_name): Add argument.
9793 (update_current_target): Update.
9794 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9796 2014-02-19 Tom Tromey <tromey@redhat.com>
9798 * target.h (struct target_ops) <to_extra_thread_info>: Add
9800 (target_extra_thread_info): Add argument.
9801 * target.c (update_current_target): Update.
9802 * remote.c (remote_threads_extra_info): Add 'self' argument.
9803 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9805 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9806 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9807 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9809 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9811 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9813 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9816 2014-02-19 Tom Tromey <tromey@redhat.com>
9818 * target.h (struct target_ops) <to_program_signals>: Add argument.
9819 * target.c (target_program_signals): Add argument.
9820 * remote.c (remote_program_signals): Add 'self' argument.
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9824 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9825 * target.c (target_pass_signals): Add argument.
9826 * remote.c (remote_pass_signals): Add 'self' argument.
9827 (remote_start_remote): Update.
9828 * procfs.c (procfs_pass_signals): Add 'self' argument.
9829 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9830 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9831 (linux_nat_create_inferior, linux_nat_attach): Update.
9833 2014-02-19 Tom Tromey <tromey@redhat.com>
9835 * windows-nat.c (windows_can_run): Add 'self' argument.
9836 * target.h (struct target_ops) <to_can_run>: Add argument.
9837 (target_can_run): Add argument.
9838 * target.c (debug_to_can_run): Add argument.
9839 (update_current_target): Update.
9840 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9841 * inf-child.c (inf_child_can_run): Add 'self' argument.
9842 * go32-nat.c (go32_can_run): Add 'self' argument.
9844 2014-02-19 Tom Tromey <tromey@redhat.com>
9846 * target.h (struct target_ops) <to_has_exited>: Add argument.
9847 (target_has_exited): Add argument.
9848 * target.c (debug_to_has_exited): Add argument.
9849 (update_current_target): Update.
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9855 (target_set_syscall_catchpoint): Add argument.
9856 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9858 * target.c (update_current_target): Update.
9860 2014-02-19 Tom Tromey <tromey@redhat.com>
9862 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9864 (target_remove_exec_catchpoint): Add argument.
9865 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9866 (update_current_target): Update.
9867 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9874 (target_insert_exec_catchpoint): Add argument.
9875 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9876 (update_current_target): Update.
9877 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9880 2014-02-19 Tom Tromey <tromey@redhat.com>
9882 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9884 (target_remove_vfork_catchpoint): Add argument.
9885 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9886 (update_current_target): Update.
9887 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9890 2014-02-19 Tom Tromey <tromey@redhat.com>
9892 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9894 (target_insert_vfork_catchpoint): Add argument.
9895 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9896 (update_current_target): Update.
9897 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9902 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9904 (target_remove_fork_catchpoint): Add argument.
9905 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9906 (update_current_target): Update.
9907 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9910 2014-02-19 Tom Tromey <tromey@redhat.com>
9912 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9914 (target_insert_fork_catchpoint): Add argument.
9915 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9916 (update_current_target): Update.
9917 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9920 2014-02-19 Tom Tromey <tromey@redhat.com>
9922 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9924 (target_post_startup_inferior): Add argument.
9925 * target.c (debug_to_post_startup_inferior): Add argument.
9926 (update_current_target): Update.
9927 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9929 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9931 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9933 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9935 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9937 (super_post_startup_inferior): Likewise.
9938 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9940 (super_post_startup_inferior): Likewise.
9941 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9942 Add 'self' argument.
9943 (super_post_startup_inferior): Likewise.
9945 2014-02-19 Tom Tromey <tromey@redhat.com>
9947 * target.h (struct target_ops) <to_load>: Add argument.
9948 * target.c (target_load): Add argument.
9949 (debug_to_load): Add argument.
9950 (update_current_target): Update.
9951 * remote.c (remote_load): Add 'self' argument.
9952 * remote-sim.c (gdbsim_load): Add 'self' argument.
9953 * remote-mips.c (mips_load): Add 'self' argument.
9954 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9955 * monitor.c (monitor_load): Add 'self' argument.
9956 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9960 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9961 (target_terminal_info): Add argument.
9962 * target.c (debug_to_terminal_info): Add argument.
9963 (default_terminal_info): Likewise.
9964 * inflow.c (child_terminal_info): Add 'self' argument.
9965 * inferior.h (child_terminal_info): Add 'self' argument.
9966 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9968 2014-02-19 Tom Tromey <tromey@redhat.com>
9970 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9972 (target_terminal_save_ours): Add argument.
9973 * target.c (debug_to_terminal_save_ours): Add argument.
9974 (update_current_target): Update.
9975 * inflow.c (terminal_save_ours): Add 'self' argument.
9976 * inferior.h (terminal_save_ours): Add 'self' argument.
9978 2014-02-19 Tom Tromey <tromey@redhat.com>
9980 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9981 (target_terminal_ours): Add argument.
9982 * target.c (debug_to_terminal_ours): Add argument.
9983 (update_current_target): Update.
9984 * remote.c (remote_terminal_ours): Add 'self' argument.
9985 (remote_close): Update.
9986 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9987 * inflow.c (terminal_ours): Add 'self' argument.
9988 * inferior.h (terminal_ours): Add 'self' argument.
9989 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9991 2014-02-19 Pedro Alves <palves@redhat.com>
9992 Tom Tromey <tromey@redhat.com>
9994 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9996 (target_terminal_ours_for_output): Add argument.
9997 * target.c (debug_to_terminal_ours_for_output): Add argument.
9998 (update_current_target): Update.
9999 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10000 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10001 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10003 2014-02-19 Tom Tromey <tromey@redhat.com>
10005 * target.h (struct target_ops) <to_terminal_inferior>: Add
10007 * target.c (target_terminal_inferior): Add argument.
10008 (update_current_target): Update.
10009 * remote.c (remote_terminal_inferior): Add 'self' argument.
10010 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10011 * inflow.c (terminal_inferior): Add 'self' argument.
10012 * inferior.h (terminal_inferior): Add 'self' argument.
10013 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10014 (go32_terminal_inferior): Add 'self' argument.
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10018 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10019 (target_terminal_init): Add argument.
10020 * target.c (debug_to_terminal_init): Add argument.
10021 (update_current_target): Update.
10022 * inflow.c (terminal_init_inferior): Add 'self' argument.
10023 * inferior.h (terminal_init_inferior): Add 'self' argument.
10024 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10025 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10029 * target.h (struct target_ops)
10030 <to_can_accel_watchpoint_condition>: Add argument.
10031 (target_can_accel_watchpoint_condition): Add argument.
10032 * target.c (debug_to_can_accel_watchpoint_condition): Add
10034 (update_current_target): Update.
10035 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10038 2014-02-19 Tom Tromey <tromey@redhat.com>
10040 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10042 (target_region_ok_for_hw_watchpoint): Add argument.
10043 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10044 (default_region_ok_for_hw_watchpoint): Add argument.
10045 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10046 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10048 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10050 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10052 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10054 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10056 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10058 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10059 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10061 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10062 Add 'self' argument.
10064 2014-02-19 Tom Tromey <tromey@redhat.com>
10066 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10068 (target_insert_watchpoint): Add argument.
10069 * target.c (debug_to_insert_watchpoint): Add argument.
10070 (update_current_target): Update.
10071 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10072 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10073 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10074 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10075 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10076 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10078 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10079 (procfs_insert_hw_watchpoint): Add 'self' argument.
10080 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10082 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10084 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10086 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10087 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10089 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10096 (target_remove_watchpoint): Add argument.
10097 * target.c (debug_to_remove_watchpoint): Add argument.
10098 (update_current_target): Update.
10099 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10100 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10101 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10102 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10103 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10104 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10106 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10107 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10109 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10111 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10113 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10114 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10116 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10121 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10123 (target_remove_hw_breakpoint): Add argument.
10124 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10125 (update_current_target): Update.
10126 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10127 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10129 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10130 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10132 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10135 2014-02-19 Tom Tromey <tromey@redhat.com>
10137 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10139 (target_insert_hw_breakpoint): Add argument.
10140 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10141 (update_current_target): Update.
10142 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10143 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10145 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10146 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10147 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10149 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10152 2014-02-19 Tom Tromey <tromey@redhat.com>
10154 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10156 (target_can_use_hardware_watchpoint): Add argument.
10157 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10158 (update_current_target): Update.
10159 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10161 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10163 * remote.c (remote_check_watch_resources): Add 'self' argument.
10164 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10165 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10167 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10168 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10170 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10172 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10174 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10176 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10178 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10180 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10181 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10183 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10186 2014-02-19 Tom Tromey <tromey@redhat.com>
10188 * target.h (struct target_ops) <to_post_attach>: Add argument.
10189 (target_post_attach): Add argument.
10190 * target.c (debug_to_post_attach): Add argument.
10191 (update_current_target): Update.
10192 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10193 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10194 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10195 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10196 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10198 2014-02-19 Tom Tromey <tromey@redhat.com>
10200 * windows-nat.c (windows_close): Add 'self' argument.
10201 * tracepoint.c (tfile_close): Add 'self' argument.
10202 * target.h (struct target_ops) <to_close>: Add argument.
10203 * target.c (target_close): Add argument.
10204 (update_current_target): Update.
10205 * remote.c (remote_close): Add 'self' argument.
10206 * remote-sim.c (gdbsim_close): Add 'self' argument.
10207 * remote-mips.c (mips_close): Add 'self' argument.
10208 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10209 * record-full.c (record_full_close): Add 'self' argument.
10210 * record-btrace.c (record_btrace_close): Add 'self' argument.
10211 * monitor.h (monitor_close): Add 'self' argument.
10212 * monitor.c (monitor_close): Add 'self' argument.
10213 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10214 * linux-nat.c (linux_nat_close): Add argument.
10215 * go32-nat.c (go32_close): Add 'self' argument.
10216 * exec.c (exec_close_1): Add 'self' argument.
10217 * ctf.c (ctf_close): Add 'self' argument.
10218 * corelow.c (core_close): Add 'self' argument.
10219 (core_close_cleanup): Update.
10220 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10221 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10223 2014-02-19 Tom Tromey <tromey@redhat.com>
10225 * remote.c (remote_load): New function.
10226 (init_remote_ops): Use it.
10228 2014-02-19 Tom Tromey <tromey@redhat.com>
10230 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10232 * common/linux-btrace.h (linux_supports_btrace): Update.
10233 * remote.c (remote_supports_btrace): Add "self" argument.
10234 * target-delegates.c: Rebuild.
10235 * target.c (target_supports_btrace): Remove.
10236 * target.h (struct target_ops) <to_supports_btrace>: Add
10237 target_ops argument.
10238 (target_supports_btrace): New define.
10240 2014-02-19 Tom Tromey <tromey@redhat.com>
10242 * record-full.c (record_full_beneath_to_resume_ops)
10243 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10244 (record_full_beneath_to_wait)
10245 (record_full_beneath_to_store_registers_ops)
10246 (record_full_beneath_to_store_registers)
10247 (record_full_beneath_to_xfer_partial_ops)
10248 (record_full_beneath_to_xfer_partial)
10249 (record_full_beneath_to_insert_breakpoint_ops)
10250 (record_full_beneath_to_insert_breakpoint)
10251 (record_full_beneath_to_remove_breakpoint_ops)
10252 (record_full_beneath_to_remove_breakpoint)
10253 (record_full_beneath_to_stopped_by_watchpoint)
10254 (record_full_beneath_to_stopped_data_address)
10255 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10256 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10257 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10258 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10259 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10260 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10261 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10262 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10263 (record_full_resume, record_full_wait_1)
10264 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10265 (record_full_store_registers, record_full_xfer_partial)
10266 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10267 (record_full_async, record_full_core_xfer_partial): Use target
10269 * target-delegates.c: Rebuild.
10270 * target.c (current_xfer_partial): Remove.
10271 (update_current_target): Do not INHERIT or de_fault
10272 to_insert_breakpoint, to_remove_breakpoint,
10273 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10274 to_is_async_p, to_async. Do not set to_xfer_partial field.
10275 (default_xfer_partial): Simplify.
10276 (current_xfer_partial): Remove.
10277 (target_wait, target_resume): Simplify.
10278 (find_default_can_async_p, find_default_is_async_p): Update.
10279 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10280 to_xfer_partial, to_stopped_by_watchpoint,
10281 to_stopped_data_address.
10282 (target_store_registers): Simplify.
10283 (forward_target_remove_breakpoint)
10284 (forward_target_insert_breakpoint): Remove.
10285 (target_remove_breakpoint, target_insert_breakpoint)
10286 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10287 * target.h (struct target_ops) <to_resume, to_wait,
10288 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10289 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10290 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10292 (forward_target_remove_breakpoint)
10293 (forward_target_insert_breakpoint): Remove.
10294 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10296 (record_btrace_insert_breakpoint): Delegate directly.
10298 2014-02-19 Tom Tromey <tromey@redhat.com>
10301 * target-delegates.c: New file.
10302 * target.c: Include target-delegates.c.
10303 (init_dummy_target): Call install_dummy_methods.
10304 (complete_target_initialization): Call install_delegators.
10305 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10306 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10307 * make-target-delegates: New file.
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10311 * record.c (find_record_target): Use find_target_at.
10312 * target.c (find_target_at): New function.
10313 * target.h (find_target_at): Declare.
10315 2014-02-19 Tom Tromey <tromey@redhat.com>
10317 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10318 Add 'ops' argument.
10319 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10321 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10322 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10324 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10326 * linux-nat.c (save_sigtrap): Update.
10327 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10328 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10329 (linux_nat_close): Update.
10330 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10332 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10334 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10335 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10336 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10337 (tmp_to_async): Add 'ops' argument.
10338 (record_full_stopped_by_watchpoint, record_full_async)
10339 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10341 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10342 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10343 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10344 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10345 (remote_is_async_p, remote_async): Add 'ops' argument.
10346 (remote_stopped_data_address): Update.
10347 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10348 * target.c (update_current_target)
10349 (find_default_can_async_p, find_default_is_async_p): Update.
10350 (init_dummy_target): Update.
10351 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10352 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10353 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10354 (target_can_async_p, target_is_async_p, target_async)
10355 (target_stopped_by_watchpoint): Update.
10357 2014-02-19 Yao Qi <yao@codesourcery.com>
10360 * gdbarch.sh: Remove startup_gdbarch.
10361 * gdbarch.c: Regenerated.
10362 * gdbarch.h: Likewise.
10364 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10366 * rl78-tdep.c (rl78_g10_register_name): New function.
10367 (rl78_return_value): Add g10 support.
10368 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10371 2014-02-17 Doug Evans <xdje42@gmail.com>
10373 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10374 (SUBDIR_GUILE_SRCS): Ditto.
10375 (scm-gsmob.o): Ditto.
10377 2014-02-17 Yao Qi <yao@codesourcery.com>
10379 * gnu-nat.c (ILL_RPC): Declare defined function.
10381 2014-02-17 Yao Qi <yao@codesourcery.com>
10383 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10384 mach_msg_type_number_t.
10385 (gnu_write_inferior): Likewise.
10387 2014-02-17 Yao Qi <yao@codesourcery.com>
10389 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10391 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10392 (inf_validate_procs, inf_signal): Likewise.
10393 (S_exception_raise_request): Likewise.
10394 (do_mach_notify_dead_name): Likewise.
10395 (steal_exc_port): Likewise.
10396 (gnu_read_inferior): Change 'copy_count''s type to
10397 mach_msg_type_number_t.
10398 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10401 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10403 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10404 flag. Adjust all users; in particular...
10405 (gnu_wait): ..., don't decrement its value in here...
10406 (gnu_create_inferior): ..., and instead set the flag in here,
10407 around the startup_inferior call, and call that one with
10408 START_INFERIOR_TRAPS_EXPECTED.
10410 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10411 (ILL_RPC): ... new macro.
10412 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10413 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10414 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10415 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10416 functions with ILL_RPC macro.
10417 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10418 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10419 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10420 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10421 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10422 (S_proc_getlogin_reply, S_proc_getsid_reply)
10423 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10424 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10425 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10426 (S_proc_getnports_reply, S_proc_is_important_reply)
10427 (S_proc_get_code_reply): New stub functions, generated with
10430 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10431 collected the type check structures.
10433 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10435 2014-02-14 Doug Evans <dje@google.com>
10437 * target.c (target_write_partial): Fix result type.
10439 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10441 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10442 the proper offsets to access fpregset_t.
10444 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10446 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10447 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10448 * h8300-tdep.c (setmachinelist): Remove global.
10449 * hppa-tdep.c (hppa_sigtramp): Remove global.
10450 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10451 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10452 * ravenscar-thread.c (update_target_observer): Remove global.
10453 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10455 2014-02-12 Tom Tromey <tromey@redhat.com>
10457 * common/rsp-low.c: Update comments.
10458 * common/rsp-low.h: Update comments.
10460 2014-02-12 Tom Tromey <tromey@redhat.com>
10462 * common/rsp-low.c (convert_ascii_to_int): Remove.
10463 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10465 2014-02-12 Tom Tromey <tromey@redhat.com>
10467 * common/rsp-low.h (unhexify): Don't declare.
10468 * common/rsp-low.c (unhexify): Remove.
10470 2014-02-12 Tom Tromey <tromey@redhat.com>
10472 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10473 * common/rsp-low.c (convert_int_to_ascii): Remove.
10475 2014-02-12 Tom Tromey <tromey@redhat.com>
10477 * common/rsp-low.h (hexify): Don't declare.
10478 * common/rsp-low.c (hexify): Remove.
10480 2014-02-12 Tom Tromey <tromey@redhat.com>
10482 * common/rsp-low.c (hexify): Never take strlen of argument.
10484 2014-02-12 Tom Tromey <tromey@redhat.com>
10486 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10487 * remote.c (extended_remote_run, remote_rcmd)
10488 (remote_download_trace_state_variable, remote_save_trace_data)
10489 (remote_set_trace_notes): Update.
10490 * tracepoint.c (encode_source_string, tfile_write_status)
10491 (tfile_write_uploaded_tsv): Update.
10493 2014-02-12 Tom Tromey <tromey@redhat.com>
10495 * tracepoint.c: Include rsp-low.h.
10496 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10497 * remote.c: Include rsp-low.h.
10498 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10499 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10500 (remote_unescape_input): Move to common/rsp-low.c.
10501 * common/rsp-low.h: New file.
10502 * common/rsp-low.c: New file.
10503 * Makefile.in (SFILES): Add common/rsp-low.c.
10504 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10505 (COMMON_OBS): Add rsp-low.o.
10506 (rsp-low.o): New target.
10508 2014-02-12 Tom Tromey <tromey@redhat.com>
10510 * utils.h: Include print-utils.h.
10511 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10512 (int_string, core_addr_to_string, core_addr_to_string_nz)
10513 (hex_string, hex_string_custom): Don't declare.
10514 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10515 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10516 (hex_string_custom, int_string, core_addr_to_string)
10517 (core_addr_to_string_nz, host_address_to_string): Move to
10518 common/print-utils.c.
10519 * common/print-utils.h: New file.
10520 * common/print-utils.c: New file
10521 * Makefile.in (SFILES): Add common/print-utils.c.
10522 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10523 (COMMON_OBS): Add print-utils.o.
10524 (print-utils.o): New target.
10526 2014-02-12 Tom Tromey <tromey@redhat.com>
10528 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10530 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10532 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10534 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10536 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10537 if a PT_IO ptrace request returns sucessfully but indicates that 0
10538 bytes were transferred.
10540 2014-02-12 Pedro Alves <palves@redhat.com>
10541 Kevin Buettner <kevinb@redhat.com>
10543 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10544 TYPE_INSTANCE_FLAG_CODE_SPACE.
10546 2014-02-12 Pedro Alves <palves@redhat.com>
10548 * h8300-tdep.c (pseudo_from_raw_register)
10549 (raw_from_pseudo_register): New functions.
10550 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10553 2014-02-12 Pedro Alves <palves@redhat.com>
10555 * h8300-tdep.c (h8300_register_sim_regno): New function.
10556 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10557 gdbarch_register_sim_regno hook.
10559 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10561 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10563 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10565 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10567 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10569 * obsd-tdep.h (obsd_init_abi): New prototype.
10570 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10571 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10572 (obsd_init_abi): New functions.
10573 * i386obsd-tdep.c: Include "obsd-tdep.h".
10574 (i386obsd_init_abi): Call obsd_init_abi.
10575 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10576 (amd64obsd_init_abi): Call obsd_init_abi.
10577 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10578 obsd-tdep.c to gdb_target_obs.
10580 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10582 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10583 double float arguments to 16-byte in the argument slots.
10585 2014-02-11 Doug Evans <xdje42@gmail.com>
10587 * configure.ac: Don't crash if pkg-config is not found and guile
10588 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10590 * configure: Regenerate.
10592 2014-02-11 Yao Qi <yao@codesourcery.com>
10594 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10595 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10596 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10597 * gnu-nat.c (gnu_xfer_memory): Likewise.
10598 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10599 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10600 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10601 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10603 2014-02-11 Yao Qi <yao@codesourcery.com>
10605 * target.h (enum target_xfer_error): Rename to ...
10606 (enum target_xfer_status): ... it. New. All users updated.
10607 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10609 (TARGET_XFER_STATUS_ERROR_P): New macro.
10610 (target_xfer_error_to_string): Remove declaration.
10611 (target_xfer_status_to_string): Declare.
10612 (target_xfer_partial_ftype): Adjust it.
10613 (struct target_ops) <to_xfer_partial>: Return
10614 target_xfer_status. Add argument xfered_len. Update
10616 * target.c (target_xfer_error_to_string): Rename to ...
10617 (target_xfer_status_to_string): ... it. New. All callers
10619 (target_read_live_memory): Likewise. Call target_xfer_partial
10620 instead of target_read.
10621 (memory_xfer_live_readonly_partial): Return
10622 target_xfer_status. Add argument xfered_len.
10623 (raw_memory_xfer_partial): Likewise.
10624 (memory_xfer_partial_1): Likewise.
10625 (memory_xfer_partial): Likewise.
10626 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10627 properly. Update debug message.
10628 (default_xfer_partial, current_xfer_partial): Likewise.
10629 (target_write_partial): Likewise.
10630 (target_read_partial): Likewise. All callers updated.
10631 (read_whatever_is_readable): Likewise.
10632 (target_write_with_progress): Likewise.
10633 (target_read_alloc_1): Likewise.
10635 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10636 * auxv.c (procfs_xfer_auxv): Likewise.
10637 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10638 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10639 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10640 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10641 * corefile.c (read_memory): Adjust.
10642 * corelow.c (core_xfer_partial): Likewise.
10643 * ctf.c (ctf_xfer_partial): Likewise.
10644 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10646 (darwin_xfer_partial): Likewise.
10647 * exec.c (section_table_xfer_memory_partial): Likewise. All
10649 (exec_xfer_partial): Likewise.
10650 * exec.h (section_table_xfer_memory_partial): Update
10652 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10654 (gnu_xfer_partial): Likewise.
10655 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10656 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10657 (ia64_hpux_xfer_solib_got): Likewise.
10658 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10659 type of 'partial_len' to ULONGEST.
10660 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10661 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10662 (linux_nat_xfer_partial): Likewise.
10663 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10664 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10665 * monitor.c (monitor_xfer_memory): Likewise.
10666 (monitor_xfer_partial): Likewise.
10667 * procfs.c (procfs_xfer_partial): Likewise.
10668 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10669 * record-full.c (record_full_xfer_partial): Likewise.
10670 (record_full_core_xfer_partial): Likewise.
10671 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10672 (gdbsim_xfer_partial): Likewise.
10673 * remote.c (remote_write_bytes_aux): Likewise. All callers
10675 (remote_write_bytes, remote_read_bytes): Likewise. All
10677 (remote_flash_erase): Likewise. All callers updated.
10678 (remote_write_qxfer): Likewise. All callers updated.
10679 (remote_read_qxfer): Likewise. All callers updated.
10680 (remote_xfer_partial): Likewise.
10681 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10682 (rs6000_xfer_shared_libraries): Likewise.
10683 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10684 (sol_thread_xfer_partial): Likewise.
10685 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10686 (sparc_xfer_partial): Likewise.
10687 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10689 (spu_xfer_partial): Likewise.
10690 * spu-multiarch.c (spu_xfer_partial): Likewise.
10691 * tracepoint.c (tfile_xfer_partial): Likewise.
10692 * windows-nat.c (windows_xfer_memory): Likewise.
10693 (windows_xfer_shared_libraries): Likewise.
10694 (windows_xfer_partial): Likewise.
10695 * valprint.c: Replace 'target_xfer_error' with
10696 'target_xfer_status' in comments.
10698 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10700 Checked in by Joel Brobecker <brobecker@adacore.com>.
10701 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10703 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10705 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10706 function parameters.
10708 2014-02-10 Will Newton <will.newton@linaro.org>
10710 * elfread.c (elf_rel_plt_read): Look for a .got section if
10711 looking up .got.plt fails.
10712 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10713 on address passed to elf_gnu_ifunc_record_cache.
10714 (elf_gnu_ifunc_resolve_addr): Likewise.
10715 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10717 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10719 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10720 (X_RETTURN): New macro.
10721 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10723 * sparc64-tdep.c (sparc64_init_abi): Hook
10724 sparc_in_function_epilogue_p.
10726 2014-02-10 Gary Benson <gbenson@redhat.com>
10728 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10729 Rename name_matcher to symbol_matcher.
10731 2014-02-10 Gary Benson <gbenson@redhat.com>
10733 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10734 Use expand_symtabs_file_matcher_ftype and
10735 expand_symtabs_symbol_matcher_ftype.
10737 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10739 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10740 (struct ada_symbol_cache): New.
10741 (ada_free_symbol_cache): Forward declare.
10742 (struct ada_pspace_data): New.
10743 (ada_pspace_data_handle): New static global.
10744 (get_ada_pspace_data, ada_pspace_data_cleanup)
10745 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10746 (cache_space, cache): Delete, now folded inside struct
10748 (ada_get_symbol_cache): New function.
10749 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10751 (_initialize_ada_language): Remove initialization of cache_space.
10752 Move call to observer_attach_inferior_exit up, grouping it
10753 with the other observer registrations inside this function.
10754 Rename command to be more general. Add call to
10755 register_program_space_data_with_cleanup.
10757 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10759 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10760 ada_new_objfile_observer.
10761 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10762 (_initialize_tasks): Update uses of ada_new_objfile_observer
10763 and ada_tasks_normal_stop_observer.
10765 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10767 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10768 returned by the 'Length attribute to integer.
10770 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10772 * ada-lang.c (_initialize_ada_language): Initialize
10773 cache_space obstack.
10775 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10777 * ada-lang.c (HASH_SIZE): New macro.
10778 (struct cache_entry): New type.
10779 (cache_space, cache): New static globals.
10780 (ada_clear_symbol_cache, find_entry): New functions.
10781 (lookup_cached_symbol, cache_symbol): Implement.
10782 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10783 (_initialize_ada_language): Attach ada_new_objfile_observer
10784 and ada_free_objfile_observer.
10786 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10788 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10789 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10790 struct block * parameter.
10791 (ada_lookup_symbol_list_worker): Constify local variable "block".
10792 Remove cast which is no longer necessary.
10794 2014-02-10 Doug Evans <xdje42@gmail.com>
10796 Add Guile as an extension language.
10797 * NEWS: Mention Guile scripting.
10798 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10799 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10800 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10801 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10802 (CLIBS): Add GUILE_LIBS.
10803 (install-guile): New rule.
10804 (guile.o): New rule.
10805 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10806 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10807 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10808 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10809 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10810 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10811 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10812 * configure.ac: New option --with-guile.
10813 * configure: Regenerate.
10814 * config.in: Regenerate.
10815 * auto-load.c: Remove #include "python/python.h". Add #include
10816 "gdb/section-scripts.h".
10817 (source_section_scripts): Handle Guile scripts.
10818 (_initialize_auto_load): Add name of Guile objfile script to
10819 scripts-directory help text.
10820 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10821 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10822 (struct breakpoint): New member scm_bp_object.
10823 * defs.h (enum command_control_type): New value guile_control.
10824 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10826 (show_user): Update comment.
10827 (_initialize_cli_cmds): Update help text for "show user". Update help
10828 text for max-user-call-depth.
10829 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10831 (multi_line_command_p): Add guile_control.
10832 (print_command_lines): Handle guile_control.
10833 (execute_control_command, recurse_read_control_structure): Ditto.
10834 (process_next_line): Recognize "guile" commands.
10835 * disasm.c (gdb_disassemble_info): Make non-static.
10836 * disasm.h: #include "dis-asm.h".
10837 (struct gdbarch): Add forward decl.
10838 (gdb_disassemble_info): Declare.
10839 * extension.c: #include "guile/guile.h".
10840 (extension_languages): Add guile.
10841 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10842 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10843 * gdbtypes.c (get_unsigned_type_max): New function.
10844 (get_signed_type_minmax): New function.
10845 * gdbtypes.h (get_unsigned_type_max): Declare.
10846 (get_signed_type_minmax): Declare.
10847 * guile/README: New file.
10848 * guile/guile-internal.h: New file.
10849 * guile/guile.c: New file.
10850 * guile/guile.h: New file.
10851 * guile/scm-arch.c: New file.
10852 * guile/scm-auto-load.c: New file.
10853 * guile/scm-block.c: New file.
10854 * guile/scm-breakpoint.c: New file.
10855 * guile/scm-disasm.c: New file.
10856 * guile/scm-exception.c: New file.
10857 * guile/scm-frame.c: New file.
10858 * guile/scm-gsmob.c: New file.
10859 * guile/scm-iterator.c: New file.
10860 * guile/scm-lazy-string.c: New file.
10861 * guile/scm-math.c: New file.
10862 * guile/scm-objfile.c: New file.
10863 * guile/scm-ports.c: New file.
10864 * guile/scm-pretty-print.c: New file.
10865 * guile/scm-safe-call.c: New file.
10866 * guile/scm-string.c: New file.
10867 * guile/scm-symbol.c: New file.
10868 * guile/scm-symtab.c: New file.
10869 * guile/scm-type.c: New file.
10870 * guile/scm-utils.c: New file.
10871 * guile/scm-value.c: New file.
10872 * guile/lib/gdb.scm: New file.
10873 * guile/lib/gdb/boot.scm: New file.
10874 * guile/lib/gdb/experimental.scm: New file.
10875 * guile/lib/gdb/init.scm: New file.
10876 * guile/lib/gdb/iterator.scm: New file.
10877 * guile/lib/gdb/printing.scm: New file.
10878 * guile/lib/gdb/types.scm: New file.
10879 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10880 (VPATH): Add $(GUILE_SRCDIR).
10881 (GUILE_DIR): New variable.
10882 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10883 (all): Add stamp-guile dependency.
10884 (stamp-guile): New rule.
10885 (clean-guile, install-guile, uninstall-guile): New rules.
10886 (install-only): Add install-guile dependency.
10887 (uninstall): Add uninstall-guile dependency.
10888 (clean): Add clean-guile dependency.
10890 2014-02-09 Doug Evans <xdje42@gmail.com>
10892 Revert this patch (which I approved, mea culpa).
10894 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10896 * Makefile.in (all-lib): Remove.
10897 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10899 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10901 Fix Python stack corruption.
10902 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10905 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10907 * Makefile.in (all-lib): Remove.
10908 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10910 2014-02-07 Doug Evans <dje@google.com>
10912 * extension-priv.h (extension_language_script_ops): Add comment.
10913 (extension_language_ops): Add comment.
10914 (active_ext_lang_state): Fix typo in comment.
10916 2014-02-07 Pedro Alves <palves@redhat.com>
10918 PR breakpoints/16292
10919 * infrun.c (handle_signal_stop) <signal arrives while stepping
10920 over a breakpoint>: Switch back to the stepping thread.
10922 2014-02-07 Yao Qi <yao@codesourcery.com>
10924 * target.c (target_xfer_partial): Return zero if LEN is zero.
10926 2014-02-07 Yao Qi <yao@codesourcery.com>
10928 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10929 (ld_so_xfer_auxv): Likewise.
10930 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10931 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10932 * corelow.c (core_xfer_partial): Likewise.
10933 * ctf.c (ctf_xfer_partial): Likewise.
10934 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10935 (darwin_xfer_partial): Likewise.
10936 * exec.c (exec_xfer_partial): Likewise.
10937 * gnu-nat.c (gnu_xfer_partial): Likewise.
10938 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10939 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10940 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10941 * linux-nat.c (linux_xfer_siginfo): Likewise.
10942 (linux_proc_xfer_spu): Likewise.
10943 * procfs.c (procfs_xfer_partial): Likewise.
10944 * record-full.c (record_full_xfer_partial): Likewise.
10945 (record_full_core_xfer_partial): Likewise.
10946 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10947 * remote.c (remote_write_qxfer): Likewise.
10948 (remote_write_qxfer, remote_read_qxfer): Likewise.
10949 (remote_xfer_partial): Likewise.
10950 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10951 (rs6000_xfer_shared_libraries): Likewise.
10952 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10953 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10954 (spu_xfer_partial): Likewise.
10955 * target.c (memory_xfer_partial_1): Likewise.
10956 * tracepoint.c (tfile_xfer_partial): Likewise.
10957 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10958 (windows_xfer_partial): Likewise.
10960 2014-02-07 Yao Qi <yao@codesourcery.com>
10962 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10964 (core_xfer_shared_libraries_aix): Likewise.
10965 * gdbarch.c, gdbarch.h: Regenerated.
10966 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10967 ULONGEST. Change 'len_avail' type to ULONGEST.
10968 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10969 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10971 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10973 2014-02-07 Yao Qi <yao@codesourcery.com>
10975 * corefile.c (memory_error): Get 'exception' from ERR and pass
10976 'exception' to throw_error.
10978 2014-02-06 Doug Evans <xdje42@gmail.com>
10980 * configure.ac (libpython checking): Remove all but python.o from
10981 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10982 * configure: Regenerate.
10984 * Makefile.in (SFILES): Add extension.c.
10985 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10986 (COMMON_OBS): Add extension.o.
10987 * extension.h: New file.
10988 * extension-priv.h: New file.
10989 * extension.c: New file.
10991 * python/python-internal.h: #include "extension.h".
10992 (gdbpy_auto_load_enabled): Declare.
10993 (gdbpy_apply_val_pretty_printer): Declare.
10994 (gdbpy_apply_frame_filter): Declare.
10995 (gdbpy_preserve_values): Declare.
10996 (gdbpy_breakpoint_cond_says_stop): Declare.
10997 (gdbpy_breakpoint_has_cond): Declare.
10998 (void source_python_script_for_objfile): Delete.
10999 * python/python.c: #include "extension-priv.h".
11000 Delete inclusion of "observer.h".
11001 (extension_language_python): Moved here and renamed from
11002 script_language_python in py-auto-load.c.
11003 Redefined to be of type extension_language_defn.
11004 (python_extension_script_ops): New global.
11005 (python_extension_ops): New global.
11006 (struct python_env): New member previous_active.
11007 (restore_python_env): Call restore_active_ext_lang.
11008 (ensure_python_env): Call set_active_ext_lang.
11009 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11011 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11013 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11015 (gdbpy_eval_from_control_command): Renamed from
11016 eval_python_from_control_command, made static. New arg extlang.
11017 (gdbpy_source_script) Renamed from source_python_script, made static.
11019 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11020 result to int. New arg extlang.
11021 (gdbpy_source_objfile_script): Renamed from
11022 source_python_script_for_objfile, made static. New arg extlang.
11023 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11024 static. New args extlang, extlang_printers. Change result type to
11026 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11027 static. New arg extlang. Rename arg printers to extlang_printers
11028 and change type to ext_lang_type_printers *.
11029 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11030 static. Replace argument arg with extlang, extlang_printers.
11031 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11032 (!HAVE_PYTHON, source_python_script): Delete.
11033 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11034 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11035 (!HAVE_PYTHON, start_type_printers): Delete.
11036 (!HAVE_PYTHON, apply_type_printers): Delete.
11037 (!HAVE_PYTHON, free_type_printers): Delete.
11038 (_initialize_python): Delete call to observer_attach_before_prompt.
11039 (finalize_python): Set/restore active extension language.
11040 (gdbpy_finish_initialization) Renamed from
11041 finish_python_initialization, made static. New arg extlang.
11042 (gdbpy_initialized): New function.
11043 * python/python.h: #include "extension.h". Delete #include
11044 "value.h", "mi/mi-cmds.h".
11045 (extension_language_python): Declare.
11046 (GDBPY_AUTO_FILE_NAME): Delete.
11047 (enum py_bt_status): Moved to extension.h and renamed to
11048 ext_lang_bt_status.
11049 (enum frame_filter_flags): Moved to extension.h.
11050 (enum py_frame_args): Moved to extension.h and renamed to
11051 ext_lang_frame_args.
11052 (finish_python_initialization): Delete.
11053 (eval_python_from_control_command): Delete.
11054 (source_python_script): Delete.
11055 (apply_val_pretty_printer): Delete.
11056 (apply_frame_filter): Delete.
11057 (preserve_python_values): Delete.
11058 (gdbpy_script_language_defn): Delete.
11059 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11060 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11062 * auto-load.c: #include "extension.h".
11063 (GDB_AUTO_FILE_NAME): Delete.
11064 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11065 (script_language_gdb): Delete, moved to extension.c and renamed to
11066 extension_language_gdb.
11067 (source_gdb_script_for_objfile): Delete.
11068 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11069 (loaded_script): Change type of language member to
11070 struct extension_language_defn *.
11071 (init_loaded_scripts_info): Initialize
11072 unsupported_script_warning_printed.
11073 (maybe_add_script): Make static. Change type of language arg to
11074 struct extension_language_defn *.
11075 (clear_section_scripts): Reset unsupported_script_warning_printed.
11076 (auto_load_objfile_script_1): Rewrite to use extension language API.
11077 (auto_load_objfile_script): Make public. Remove support-compiled-in
11078 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11079 (source_section_scripts): Rewrite to use extension language API.
11080 (load_auto_scripts_for_objfile): Rewrite to use
11081 auto_load_scripts_for_objfile.
11082 (collect_matching_scripts_data): Change type of language member to
11083 struct extension_language_defn *.
11084 (auto_load_info_scripts): Change type of language arg to
11085 struct extension_language_defn *.
11086 (unsupported_script_warning_print): New function.
11087 (script_not_found_warning_print): Make static.
11088 (_initialize_auto_load): Rewrite construction of scripts-directory
11090 * auto-load.h (struct objfile): Add forward decl.
11091 (struct script_language): Delete.
11092 (struct auto_load_pspace_info): Add forward decl.
11093 (struct extension_language_defn): Add forward decl.
11094 (maybe_add_script): Delete.
11095 (auto_load_objfile_script): Declare.
11096 (script_not_found_warning_print): Delete.
11097 (auto_load_info_scripts): Update prototype.
11098 (auto_load_gdb_scripts_enabled): Declare.
11099 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11100 auto_load_python_scripts_enabled and made public.
11101 (script_language_python): Delete, moved to python.c.
11102 (gdbpy_script_language_defn): Delete.
11103 (info_auto_load_python_scripts): Update to use
11104 extension_language_python.
11106 * breakpoint.c (condition_command): Replace call to
11107 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11108 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11109 with call to breakpoint_ext_lang_cond_says_stop.
11110 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11111 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11112 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11113 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11115 (local_setattro): Print name of extension language with existing
11118 * valprint.c (val_print, value_print): Update to call
11119 apply_ext_lang_val_pretty_printer.
11120 * cp-valprint.c (cp_print_value): Update call to
11121 apply_ext_lang_val_pretty_printer.
11122 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11123 (gdbpy_apply_val_pretty_printer): Renamed from
11124 apply_val_pretty_printer. New arg extlang.
11125 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11127 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11128 extension language API.
11129 * cli/cli-script.c (execute_control_command): Update to call
11130 eval_ext_lang_from_control_command.
11132 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11133 enum ext_lang_bt_status values. Update call to
11134 apply_ext_lang_frame_filter.
11135 (mi_cmd_stack_list_locals): Ditto.
11136 (mi_cmd_stack_list_args): Ditto.
11137 (mi_cmd_stack_list_variables): Ditto.
11138 * mi/mi-main.c: Delete #include "python/python-internal.h".
11139 Add #include "extension.h".
11140 (mi_cmd_list_features): Replace reference to python internal variable
11141 gdb_python_initialized with call to ext_lang_initialized_p.
11143 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11144 Update to use enum ext_lang_frame_args. Update to call
11145 apply_ext_lang_frame_filter.
11146 * python/py-framefilter.c (extract_sym): Update to use enum
11147 ext_lang_bt_status.
11148 (extract_value, py_print_type, py_print_value): Ditto.
11149 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11150 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11151 (py_print_frame): Ditto.
11152 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11153 New arg extlang. Update to use enum ext_lang_bt_status.
11155 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11156 finish_python_initialization. Replace with call to
11157 finish_ext_lang_initialization.
11159 * typeprint.c (do_free_global_table): Update to call
11160 free_ext_lang_type_printers.
11161 (create_global_typedef_table): Update to call
11162 start_ext_lang_type_printers.
11163 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11164 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11165 (type_print_options): Change type of global_printers from "void *"
11166 to "struct ext_lang_type_printers *".
11168 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11169 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11170 (gdbpy_preserve_values): Renamed from preserve_python_values.
11172 (!HAVE_PYTHON, preserve_python_values): Delete.
11174 * utils.c (quit_flag): Delete, moved to extension.c.
11175 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11178 * eval.c: Delete #include "python/python.h".
11179 * main.c: Delete #include "python/python.h".
11181 * defs.h: Update comment.
11183 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11187 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11189 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11192 2014-02-05 Yao Qi <yao@codesourcery.com>
11194 * remote.c (remote_pass_signals): Remove local 'buf' and use
11196 (remote_program_signals): Likewise.
11198 2014-02-05 Yao Qi <yao@codesourcery.com>
11200 * ctf.c: Include "inferior.h" and "gdbthread.h".
11201 (CTF_PID): A new macro.
11202 (ctf_open): Call inferior_appeared and add_thread_silent.
11203 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11204 (ctf_thread_alive): New function.
11205 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11207 2014-02-05 Yao Qi <yao@codesourcery.com>
11211 2013-05-24 Yao Qi <yao@codesourcery.com>
11213 * tracepoint.c (TFILE_PID): Remove.
11214 (tfile_open): Don't add thread and inferior.
11215 (tfile_close): Don't set 'inferior_ptid'. Don't call
11216 exit_inferior_silent.
11217 (tfile_thread_alive): Remove.
11218 (init_tfile_ops): Don't set field 'to_thread_alive' of
11221 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11223 * remote.c (remote_start_remote): Call remote_check_symbols even
11224 if only symbol-file (not file) has been given.
11226 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11228 * gdbarch.sh (skip_entrypoint): New callback.
11229 * gdbarch.c, gdbarch.h: Regenerate.
11230 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11231 * infrun.c (fill_in_stop_func): Likewise.
11232 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11233 (ppc_elfv2_elf_make_msymbol_special): New function.
11234 (ppc_elfv2_skip_entrypoint): Likewise.
11235 (ppc_linux_init_abi): Install them for ELFv2.
11237 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11239 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11240 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11241 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11242 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11243 structures returned in GPRs.
11245 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11247 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11248 offset to the stack parameter list for the ELFv2 ABI.
11250 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11252 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11253 set_gdbarch_convert_from_func_ptr_addr and
11254 set_gdbarch_elf_make_msymbol_special for ELFv1.
11255 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11256 function descriptors on ELFv1.
11257 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11258 set up r12 at function entry.
11260 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11262 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11263 (struct gdbarch_tdep): New member elf_abi.
11265 * rs6000-tdep.c: Include "elf/ppc64.h".
11266 (rs6000_gdbarch_init): Detect ELF ABI version.
11268 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11270 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11271 within a register pair holding a DFP 128-bit value on little-endian.
11272 (ppc64_sysv_abi_return_value_base): Likewise.
11273 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11274 (dfp_pseudo_register_write): Likewise.
11276 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11278 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11279 offset on little-endian when passing _Decimal32.
11280 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11282 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11284 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11285 of the overlapped FP register within the VSX register on little-
11287 (efpr_pseudo_register_write): Likewise.
11289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11291 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11292 offset on little-endian when passing small structures.
11294 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11296 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11297 (struct ppc64_sysv_argpos): New data structure.
11298 (ppc64_sysv_abi_push_float): Remove.
11299 (ppc64_sysv_abi_push_val): New function.
11300 (ppc64_sysv_abi_push_integer): Likewise.
11301 (ppc64_sysv_abi_push_freg): Likewise.
11302 (ppc64_sysv_abi_push_vreg): Likewise.
11303 (ppc64_sysv_abi_push_param): Likewise.
11304 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11305 (ppc64_sysv_abi_return_value_base): New function.
11306 (ppc64_sysv_abi_return_value): Refactor to use it.
11308 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11310 * NEWS: Document new target powerpc64le-*-linux*.
11312 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11314 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11315 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11317 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11318 register set used in ELF core dumps. Add floating-point register set.
11320 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11322 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11323 dwarf2_to_gdb[] table using symbolic constants. Adjust
11324 penultimate entry from number representing the PC register
11325 to symbolic constant representing the MDR register. Add
11326 constant for the PC register to the end of the table.
11328 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11330 * bsd-kvm.c: Include <sys/param.h>
11332 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11334 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11336 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11338 * ada-lang.h (clear_ada_sym_cache): Delete.
11340 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11342 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11344 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11346 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11347 the sigreturn register save area only if the syscall is
11350 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11352 * valops.c (value_slice): Minor reformatting.
11354 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11356 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11358 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11360 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11361 New static globals.
11362 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11363 (ada_ignore_descriptive_types_p): New static global.
11364 (find_parallel_type_by_descriptive_type): Return immediately
11365 if ada_ignore_descriptive_types_p is set.
11366 (_initialize_ada_language): Register new commands "maintenance
11367 set ada", "maintenance show ada", "maintenance set ada
11368 ignore-descriptive-types" and "maintenance show ada
11369 ignore-descriptive-types".
11370 * NEWS: Add entry for new "maint ada set/show
11371 ignore-descriptive-types" commands.
11373 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11375 * record-btrace.c (record_btrace_close): Call btrace_teardown
11378 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11380 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11383 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11385 * ada-typeprint (type_is_full_subrange_of_target_type):
11387 (print_range): Add parameter bounds_prefered_p. If not set,
11388 try printing range types using the name of their base type.
11389 (print_range_type): Add parameter bounds_prefered_p.
11390 Use it in call to print_range.
11391 (print_array_type, ada_print_type): Update calls to print_range
11392 and print_range_type.
11394 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11396 * ada-typeprint.c (print_array_type, print_choices, print_range)
11397 (print_range_bound, print_dynamic_range_bound, print_range_type):
11398 Remove declaration.
11400 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11402 * ada-typeprint.c (print_range): Add missing empty line
11403 after local declaration.
11405 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11407 * ada-valprint.c (print_optional_low_bound): Get index_type's
11408 target type for as long as it is a TYPE_CODE_RANGE.
11410 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11412 * procfs.c (procfs_make_note_section): Remove assertion and
11413 associated comment.
11415 2014-01-24 Yao Qi <yao@codesourcery.com>
11417 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11418 * corelow.c (get_core_siginfo): Likewise.
11420 2014-01-24 Yao Qi <yao@codesourcery.com>
11422 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11423 ULONGEST. Don't check 'len' is negative.
11424 (remote_write_bytes): Change type of 'len' to ULONGEST.
11426 2014-01-23 Tom Tromey <tromey@redhat.com>
11429 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11430 Handle exception from frame.block.
11431 (FrameVars.fetch_frame_locals): Likewise.
11433 2014-01-23 Tom Tromey <tromey@redhat.com>
11436 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11437 on a NULL pointer. Move "goto error" to correct place.
11439 2014-01-23 Tom Tromey <tromey@redhat.com>
11442 * python/py-framefilter.c (apply_frame_filter): Call
11443 ensure_python_env after computing gdbarch.
11445 2014-01-23 Yao Qi <yao@codesourcery.com>
11447 * target.c (raw_memory_xfer_partial): Change argument type
11448 from void * to gdb_byte *.
11449 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11451 2014-01-22 Doug Evans <dje@google.com>
11453 New gdbserver option --debug-format=timestamp.
11454 * NEWS: Mention it.
11456 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11458 * syscalls/s390x-linux.xml: New file.
11459 * syscalls/s390-linux.xml: New file.
11460 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11461 (XML_SYSCALL_FILENAME_S390X): Likewise.
11462 (op_svc): New enum value for SVC opcode.
11463 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11464 (s390_linux_get_syscall_number): New function.
11465 (s390_gdbarch_init): Register '*get_syscall_number' and the
11466 syscall xml file name.
11467 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11468 "s390-linux.xml" and "s390x-linux.xml".
11469 * NEWS: Announce new feature.
11471 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11473 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11475 2014-01-22 Pedro Alves <palves@redhat.com>
11477 * xtensa-config.c: Include defs.h.
11479 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11481 * common/common-utils.h: Add "ARI:" comment beside __func__
11484 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11486 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11487 documentation a bit.
11489 2014-01-21 Roland McGrath <mcgrathr@google.com>
11491 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11492 * configure: Regenerate.
11493 * aclocal.m4: Regenerate.
11494 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11495 New substituted variables.
11496 (install-strip): New target.
11497 (INSTALL_SCRIPT): New substituted variable.
11498 (FLAGS_TO_PASS): Add it.
11499 (install-only): Use $(INSTALL_SCRIPT) rather than
11500 $(INSTALL_PROGRAM) for gcore.
11502 2014-01-20 Tom Tromey <tromey@redhat.com>
11504 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11507 2014-01-20 Tom Tromey <tromey@redhat.com>
11509 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11510 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11511 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11512 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11513 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11514 (struct cmd_list_element) <flags>: Remove.
11515 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11516 doc_allocated>: New fields.
11517 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11519 * maint.c (maintenance_do_deprecate): Update.
11520 * top.c (execute_command): Update.
11522 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11524 * xtensa-linux-nat.c: Include asm/ptrace.h.
11526 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11528 * Makefile.in (SFILES): Add d-support.c.
11529 (COMMON_OBS): Add d-support.o.
11530 * d-lang.h (d_parse_symbol): Add comment, now defined in
11532 * d-lang.c (parse_call_convention)
11533 (parse_attributes, parse_function_types)
11534 (parse_function_args, parse_type, parse_identifier)
11535 (call_convention_p, d_parse_symbol): Move functions to ...
11536 * d-support.c: ... New file.
11538 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11540 * d-lang.h (d_parse_symbol): Add declaration.
11541 * d-lang.c (extract_identifiers)
11542 (extract_type_info): Remove functions.
11543 (parse_call_convention, parse_attributes)
11544 (parse_function_types, parse_function_args)
11545 (parse_type, parse_identifier, call_convention_p)
11546 (d_parse_symbol): New functions.
11547 (d_demangle): Use d_parse_symbol to demangle D symbols.
11549 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11551 * d-lang.h (struct builtin_d_type): New data type.
11552 (builtin_d_type): Add declaration.
11553 * d-lang.c (d_language_arch_info, build_d_types)
11554 (builtin_d_type): New functions.
11555 (enum d_primitive_types): New data type.
11556 (d_language_defn): Change c_language_arch_info to
11557 d_language_arch_info.
11558 (d_type_data): New static variable.
11559 (_initialize_d_language): Initialize d_type_data.
11561 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11563 * d-lang.h (d_main_name): Add declaration.
11564 * d-lang.c (d_main_name): New function.
11565 * symtab.c (find_main_name): Add call to d_main_name.
11567 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11569 * d-lang.c (d_language_defn): Change macro_expansion_c to
11570 macro_expansion_no.
11572 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11574 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11576 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11578 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11579 gdb_exception" declaration.
11580 * remote.c (getpkt_or_notif_sane): Likewise.
11582 2014-01-17 Doug Evans <dje@google.com>
11584 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11585 function, contents of dirnames_to_char_ptr_vec_append moved here.
11586 (delim_string_to_char_ptr_vec): New function.
11587 (dirnames_to_char_ptr_vec_append): Rewrite.
11588 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11590 2014-01-17 Doug Evans <dje@google.com>
11592 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11594 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11595 #include "common-utils.h".
11596 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11597 * common/vec.h (VEC_ASSERT_PASS): Update.
11598 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11599 (MACH_CHECK_ERROR): Update.
11601 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11603 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11605 * gdbarch.h: Regenerate.
11607 2014-01-16 Tom Tromey <tromey@redhat.com>
11609 * value.c (struct value) <regnum>: Move earlier.
11611 2014-01-16 Tom Tromey <tromey@redhat.com>
11613 * remote.c (extended_remote_create_inferior): Rename from
11614 extended_remote_create_inferior_1. Add "ops" argument. Remove
11615 old implementation.
11617 2014-01-16 Pedro Alves <palves@redhat.com>
11619 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11620 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11623 2014-01-16 Doug Evans <dje@google.com>
11625 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11627 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11629 * btrace.h (btrace_thread_flag): New.
11630 (struct btrace_thread_info) <flags>: New.
11631 * record-btrace.c (record_btrace_resume_thread)
11632 (record_btrace_find_thread_to_move, btrace_step_no_history)
11633 (btrace_step_stopped, record_btrace_start_replaying)
11634 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11635 (record_btrace_find_resume_thread): New.
11636 (record_btrace_resume, record_btrace_wait): Extend.
11637 (record_btrace_can_execute_reverse): New.
11638 (record_btrace_open): Fail in non-stop mode.
11639 (record_btrace_set_replay): Split into this, ...
11640 (record_btrace_stop_replaying): ... this, ...
11641 (record_btrace_clear_histories): ... and this.
11642 (init_record_btrace_ops): Init to_can_execute_reverse.
11643 * NEWS: Announce it.
11645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11647 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11648 (forward_target_decr_pc_after_break)
11649 (target_decr_pc_after_break): New.
11650 * target.c (forward_target_decr_pc_after_break)
11651 (target_decr_pc_after_break): New.
11652 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11653 instead of gdbarch_decr_pc_after_break.
11654 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11655 instead of gdbarch_decr_pc_after_break.
11656 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11657 instead of gdbarch_decr_pc_after_break.
11658 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11659 instead of gdbarch_decr_pc_after_break.
11660 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11661 instead of gdbarch_decr_pc_after_break.
11662 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11663 instead of gdbarch_decr_pc_after_break.
11665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11667 * btrace.c: Include regcache.h.
11668 (btrace_add_pc): New.
11669 (btrace_enable): Call btrace_add_pc.
11670 (btrace_is_empty): New.
11671 * btrace.h (btrace_is_empty): New.
11672 * record-btrace.c (require_btrace, record_btrace_info): Call
11675 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11677 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11678 Support delta reads.
11679 (linux_disable_btrace): Change return type.
11680 * common/linux-btrace.h (linux_read_btrace): Change parameters
11681 and return type to allow error reporting. Update users.
11682 (linux_disable_btrace): Change return type. Update users.
11683 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11685 (btrace_error): New.
11686 (btrace_block) <begin>: Comment on BEGIN == 0.
11687 * btrace.c (btrace_compute_ftrace): Start from the end of
11689 (btrace_stitch_trace, btrace_clear_history): New.
11690 (btrace_fetch): Read delta trace, return if replaying.
11691 (btrace_clear): Move clear history code to btrace_clear_history.
11692 (parse_xml_btrace): Throw an error if parsing failed.
11693 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11694 and return type to allow error reporting.
11695 (target_read_btrace): Change parameters and return type to allow
11697 * target.c (target_read_btrace): Update.
11698 * remote.c (remote_read_btrace): Support delta reads. Pass
11700 * NEWS: Announce it.
11702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11704 * record.h (record_btrace_frame_unwind)
11705 (record_btrace_tailcall_frame_unwind): New declarations.
11706 * dwarf2-frame: Include record.h
11707 (dwarf2_frame_cfa): Throw an error for btrace frames.
11708 * record-btrace.c: Include hashtab.h.
11709 (btrace_get_bfun_name): New.
11710 (btrace_call_history): Call btrace_get_bfun_name.
11711 (struct btrace_frame_cache): New.
11713 (bfcache_hash, bfcache_eq, bfcache_new): New.
11714 (btrace_get_frame_function): New.
11715 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11716 (record_btrace_frame_this_id): Compute own id.
11717 (record_btrace_frame_prev_register): Provide PC, throw_error
11718 for all other registers.
11719 (record_btrace_frame_sniffer): Detect btrace frames.
11720 (record_btrace_tailcall_frame_sniffer): New.
11721 (record_btrace_frame_dealloc_cache): New.
11722 (record_btrace_frame_unwind): Add new functions.
11723 (record_btrace_tailcall_frame_unwind): New.
11724 (_initialize_record_btrace): Allocate cache.
11725 * btrace.c (btrace_clear): Call reinit_frame_cache.
11726 * NEWS: Announce it.
11728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11730 * record-btrace.c (record_btrace_set_replay)
11731 (record_btrace_goto_begin, record_btrace_goto_end)
11732 (record_btrace_goto): New.
11733 (init_record_btrace_ops): Initialize them.
11734 * NEWS: Announce it.
11736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11738 * record-btrace.c (record_btrace_find_new_threads)
11739 (record_btrace_thread_alive): New.
11740 (init_record_btrace_ops): Initialize to_find_new_threads and
11743 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11745 * record-btrace.c (record_btrace_resume): New.
11746 (record_btrace_wait): New.
11747 (init_record_btrace_ops): Initialize to_wait and to_resume.
11749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11751 * record-btrace.c (record_btrace_xfer_partial)
11752 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11753 (record_btrace_allow_memory_access): New.
11754 (init_record_btrace_ops): Initialize new methods.
11755 * target.c (raw_memory_xfer_partial): Bail out if target reports
11756 that this memory is not available.
11758 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11760 * target.h (target_ops) <to_insert_breakpoint>
11761 <to_remove_breakpoint>: Add target_ops parameter.
11762 (forward_target_insert_breakpoint): New.
11763 (forward_target_remove_breakpoint): New.
11764 (memory_remove_breakpoint, memory_insert_breakpoint):
11765 Add target_ops parameter.
11766 * target.c (target_insert_breakpoint): Split into this and ...
11767 (forward_target_insert_breakpoint): ... this.
11768 (target_remove_breakpoint): Split into this and ...
11769 (forward_target_remove_breakpoint): ... this.
11770 (debug_to_insert_breakpoint): Add target_ops parameter.
11771 Call forward_target_insert_breakpoint.
11772 (debug_to_remove_breakpoint): Add target_ops parameter.
11773 Call forward_target_remove_breakpoint.
11774 (update_current_target): Do not inherit or default to_insert_breakpoint
11775 and to_remove_breakpoint.
11776 * corelow.c (ignore): Add target_ops parameter.
11777 * exec.c (ignore): Add target_ops parameter.
11778 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11779 Add target_ops parameter.
11780 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11781 Add target_ops parameter.
11782 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11783 Add target_ops parameter.
11784 * record-full.c (record_full_beneath_to_insert_breakpoint)
11785 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11786 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11787 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11788 (record_full_core_remove_breakpoint): Add target_ops parameter.
11790 (record_full_beneath_to_insert_breakpoint_ops)
11791 (record_full_beneath_to_remove_breakpoint_ops)
11792 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11793 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11794 tmp_to_remove_breakpoint_ops,
11795 record_full_beneath_to_insert_breakpoint_ops, and
11796 record_full_beneath_to_remove_breakpoint_ops.
11797 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11798 (m32r_remove_breakpoint): Add target_ops parameter.
11799 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11800 Add target_ops parameter.
11801 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11802 Add target_ops parameter.
11804 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11805 Markus Metzger <markus.t.metzger@intel.com>
11807 * record-btrace.c: Include frame-unwind.h.
11808 (record_btrace_frame_unwind_stop_reason)
11809 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11810 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11812 (init_record_btrace_ops): Install it.
11814 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11816 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11819 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11821 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11824 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11826 * frame-unwind.c: Include target.h.
11827 (frame_unwind_try_unwinder): New function with code from ...
11828 (frame_unwind_find_by_frame): ... here. New variable
11829 unwinder_from_target, call also target_get_unwinder)
11830 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11831 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11832 * target.h (struct target_ops): New fields to_get_unwinder and
11833 to_get_tailcall_unwinder.
11834 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11836 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11838 * record-btrace.c (record_btrace_fetch_registers)
11839 (record_btrace_store_registers)
11840 (record_btrace_to_prepare_to_store): New.
11841 (init_record_btrace_ops): Add the above.
11843 2014-01-16 Tom Tromey <tromey@redhat.com>
11845 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11846 * target.h (struct target_ops) <to_prepare_to_store>: Add
11848 (target_prepare_to_store): Add argument.
11849 * target.c (debug_to_prepare_to_store): Add argument.
11850 (update_current_target): Update.
11851 * remote.c (remote_prepare_to_store): Add 'self' argument.
11852 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11853 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11854 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11855 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11857 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11858 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11859 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11860 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11861 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11863 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11865 * btrace.h (replay) <replay>: New.
11866 (btrace_is_replaying): New.
11867 * btrace.c (btrace_clear): Free replay iterator.
11868 (btrace_is_replaying): New.
11869 * record-btrace.c (record_btrace_is_replaying): New.
11870 (record_btrace_info): Print insn number if replaying.
11871 (record_btrace_insn_history): Start at replay position.
11872 (record_btrace_call_history): Start at replay position.
11873 (init_record_btrace_ops): Init to_record_is_replaying.
11875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11877 * record-btrace.c (record_btrace_insn_history_range): Include
11879 (record_btrace_insn_history_from): Adjust range.
11880 (record_btrace_call_history_range): Include
11882 (record_btrace_call_history_from): Adjust range.
11883 * NEWS: Announce changes.
11885 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11887 * record.h (enum record_print_flag)
11888 <record_print_indent_calls>: New.
11889 * record.c (get_call_history_modifiers): Recognize /c modifier.
11890 (_initialize_record): Document /c modifier.
11891 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11892 Reorder fields. Optionally indent the function name. Update
11894 * NEWS: Announce changes.
11896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11898 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11900 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11902 * btrace.c (ftrace_new_function): Start counting at one.
11903 * record-btrace.c (record_btrace_info): Adjust number of calls
11905 * NEWS: Announce it.
11907 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11909 * record-btrace.c (btrace_call_history_insn_range): Print
11910 insn range as [begin, end].
11912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11914 * btrace.h (struct btrace_func_link): New.
11915 (enum btrace_function_flag): New.
11916 (struct btrace_inst): Rename to ...
11917 (struct btrace_insn): ...this. Update all users.
11918 (struct btrace_func) <ibegin, iend>: Remove.
11919 (struct btrace_func_link): New.
11920 (struct btrace_func): Rename to ...
11921 (struct btrace_function): ...this. Update all users.
11922 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11923 (number, level, flags>: New.
11924 (struct btrace_insn_iterator): Rename to ...
11925 (struct btrace_insn_history): ...this.
11927 (struct btrace_insn_iterator, btrace_call_iterator): New.
11928 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11929 (struct btrace_target_info) <begin, end, level>
11930 <insn_history, call_history>: New.
11931 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11932 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11933 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11934 (btrace_call_number, btrace_call_begin, btrace_call_end)
11935 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11936 (btrace_find_function_by_number, btrace_set_insn_history)
11937 (btrace_set_call_history): New.
11938 * btrace.c (btrace_init_insn_iterator)
11939 (btrace_init_func_iterator, compute_itrace): Remove.
11940 (ftrace_print_function_name, ftrace_print_filename)
11941 (ftrace_skip_file): Change
11942 parameter to const.
11943 (ftrace_init_func): Remove.
11944 (ftrace_debug): Use new btrace_function fields.
11945 (ftrace_function_switched): Also consider gaining and
11946 losing symbol information).
11947 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11948 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11949 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11951 (ftrace_new_function): Move. Remove debug print.
11952 (ftrace_update_lines, ftrace_update_insns): New.
11953 (ftrace_update_function): Check for call, ret, and jump.
11954 (compute_ftrace): Renamed to ...
11955 (btrace_compute_ftrace): ...this. Rewritten to compute call
11957 (btrace_fetch, btrace_clear): Updated.
11958 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11959 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11960 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11961 (btrace_call_number, btrace_call_begin, btrace_call_end)
11962 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11963 (btrace_find_function_by_number, btrace_set_insn_history)
11964 (btrace_set_call_history): New.
11965 * record-btrace.c (require_btrace): Use new btrace thread
11967 (record_btrace_info, btrace_insn_history)
11968 (record_btrace_insn_history, record_btrace_insn_history_range):
11969 Use new btrace thread info fields and new iterator.
11970 (btrace_func_history_src_line): Rename to ...
11971 (btrace_call_history_src_line): ...this. Use new btrace
11972 thread info fields.
11973 (btrace_func_history): Rename to ...
11974 (btrace_call_history): ...this. Use new btrace thread info
11975 fields and new iterator.
11976 (record_btrace_call_history, record_btrace_call_history_range):
11977 Use new btrace thread info fields and new iterator.
11979 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11981 * frame.h (frame_id_build_unavailable_stack_special): New.
11982 * frame.c (frame_id_build_unavailable_stack_special): New.
11984 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11986 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11987 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11988 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11990 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11991 (i386_insn_is_jump, i386_jmp_p): New.
11992 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11993 insn_is_jump to gdbarch.
11994 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11995 * gdbarch.h: Regenerated.
11996 * gdbarch.c: Regenerated.
11997 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11998 (default_insn_is_jump): New.
11999 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12000 (default_insn_is_jump): New.
12002 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12004 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12006 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12007 (btrace_read_type) <btrace_read_new>: Change to ...
12008 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12010 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12012 * common/linux-btrace.c (linux_read_btrace): Free trace from
12013 previous iteration.
12015 2014-01-15 Doug Evans <dje@google.com>
12017 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12020 2014-01-15 Tom Tromey <tromey@redhat.com>
12022 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12023 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12024 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12025 (set_objfile_main_name): New function.
12026 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12027 language_of_main>: New fields.
12028 (set_objfile_main_name): Declare.
12029 * symtab.c (find_main_name): Loop over objfiles to find the main
12031 (set_main_name): Now static.
12032 (get_main_info): Add comment.
12033 * symtab.h (set_main_name): Don't declare.
12035 2014-01-15 Tom Tromey <tromey@redhat.com>
12037 * symtab.c (main_progspace_key): New global.
12038 (struct main_info): New.
12039 (name_of_main, language_of_main): Remove.
12040 (get_main_info, main_info_cleanup): New function.
12041 (set_main_name, main_name, main_language): Use get_main_info.
12042 (_initialize_symtab): Initialize main_progspace_key.
12044 2014-01-15 Tom Tromey <tromey@redhat.com>
12046 * dbxread.c (process_one_symbol): Update.
12047 * dwarf2read.c (read_partial_die): Update.
12048 * symfile.c (set_initial_language): Call main_language.
12049 * symtab.c (language_of_main): Now static.
12050 (set_main_name): Add 'lang' parameter.
12051 (find_main_name): Update.
12052 (main_language): New function.
12053 (symtab_observer_executable_changed): Update.
12054 * symtab.h (set_main_name): Update.
12055 (language_of_main): Remove.
12056 (main_language): Declare.
12058 2014-01-15 Tom Tromey <tromey@redhat.com>
12060 * symfile.c (init_entry_point_info): Use new "initialized" field.
12062 * objfiles.h (struct entry_point) <initialized>: New field.
12063 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12064 (struct objfile) <ei>: ...here. Remove.
12065 * objfiles.c (entry_point_address_query): Update.
12067 2014-01-15 Tom Tromey <tromey@redhat.com>
12069 * objfiles.c (entry_point_address_query): Relocate entry point
12071 (objfile_relocate1): Do not relocate entry point address.
12072 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12073 <the_bfd_section_index>: New field.
12074 * symfile.c (init_entry_point_info): Find the entry point's
12077 2014-01-15 Tom Tromey <tromey@redhat.com>
12079 * solib-frv.c (enable_break): Use entry_point_address_query.
12081 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12083 * NEWS: Add note on improved process record-replay on
12084 arm*-linux* targets.
12086 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12088 * arm-tdep.c (enum arm_record_result): New enum.
12089 (arm_record_unsupported_insn): New function.
12090 (arm_record_coproc_data_proc): Removed.
12091 (thumb2_record_ld_st_multiple): New function.
12092 (thumb2_record_ld_st_dual_ex_tbb): New function.
12093 (thumb2_record_data_proc_sreg_mimm): New function.
12094 (thumb2_record_ps_dest_generic): New function.
12095 (thumb2_record_branch_misc_cntrl): New function.
12096 (thumb2_record_str_single_data): New function.
12097 (thumb2_record_ld_mem_hints): New function.
12098 (thumb2_record_ld_word): New function.
12099 (thumb2_record_lmul_lmla_div): New function.
12100 (thumb2_record_decode_insn_handler): New function.
12101 (decode_insn): Add thumb32 instruction handlers.
12103 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12105 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12106 (struct arm_linux_record_tdep): Declare.
12107 (arm_canonicalize_syscall): New function.
12108 (arm_all_but_pc_registers_record): New function.
12109 (arm_linux_syscall_record): New function.
12110 (arm_linux_init_abi): Add syscall recording constructs.
12111 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12112 decoding. (arm_record_coproc_data_proc): Update arm syscall
12114 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12115 <arm_syscall_record>: New field.
12116 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12119 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12121 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12122 register for push instruction recording.
12124 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12126 * arm-tdep.c (thumb_record_misc): Update to correct logical
12127 error while recording ldm, ldmia and pop instructions.
12129 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12131 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12133 2014-01-15 Pedro Alves <palves@redhat.com>
12135 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12136 (go32_resume, go32_fetch_registers, store_register)
12137 (go32_store_registers, go32_prepare_to_store)
12138 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12139 (go32_create_inferior, go32_can_run, go32_terminal_init)
12140 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12143 2014-01-15 Tom Tromey <tromey@redhat.com>
12145 * target.h (async_callback_ftype): New typedef.
12146 (struct target_ops) <to_async>: Use it.
12148 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12150 * python/py-value.c (get_field_type): Remove unnecessary curly
12151 braces for single-statement if block.
12153 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12155 * python/py-type.c (convert_field): Add missing empty line
12156 after declarations.
12158 2014-01-14 Doug Evans <dje@google.com>
12160 * symfile.h (expand_symtabs_matching): Renamed from
12161 expand_partial_symbol_names. Update prototype.
12162 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12163 * symfile.c (expand_symtabs_matching): Renamed from
12164 expand_partial_symbol_names. New args file_matcher, kind.
12165 Rename arg fun to symbol_matcher.
12166 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12167 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12168 ada_expand_partial_symbol_name.
12169 (ada_make_symbol_completion_list): Update to call
12170 expand_symtabs_matching.
12171 (ada_add_global_exceptions): Call expand_symtabs_matching.
12172 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12173 call map_symbol_filenames.
12174 * symtab.c (sources_info): Update to call map_symbol_filenames.
12175 (search_symbols): Call expand_symtabs_matching.
12176 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12177 (default_make_symbol_completion_list_break_on): Update to call
12178 expand_symtabs_matching.
12179 (make_source_files_completion_list): Update to call
12180 map_symbol_filenames.
12182 2014-01-14 Doug Evans <dje@google.com>
12184 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12185 (expand_symtabs_symbol_matcher_ftype): New typedef.
12186 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12187 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12188 * symfile.c (expand_partial_symbol_names): Update to use
12189 expand_symtabs_symbol_matcher_ftype.
12190 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12191 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12192 Arg name_matcher renamed to symbol_matcher.
12193 * psymtab.c (recursively_search_psymtabs): Update to use
12194 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12196 (expand_symtabs_matching_via_partial): Update to use
12197 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12198 Arg name_matcher renamed to symbol_matcher.
12200 2014-01-14 Doug Evans <dje@google.com>
12202 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12203 (map_partial_symbol_filenames): Ditto.
12204 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12205 (map_partial_symbol_filenames): Ditto.
12206 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12207 (map_partial_symbol_filenames): Ditto.
12208 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12209 (map_partial_symbol_filenames): Ditto.
12210 * symtab.c: Delete #include "psymtab.h".
12212 2014-01-14 Pedro Alves <palves@redhat.com>
12213 Tom Tromey <tromey@redhat.com>
12215 * infrun.c (use_displaced_stepping): Use find_record_target
12216 instead of RECORD_IS_USED.
12217 (adjust_pc_after_break): Use record_full_is_used instead of
12219 * record-btrace.c (record_btrace_open): Call record_preopen
12220 instead of checking RECORD_IS_USED.
12221 * record-full.c (record_full_shortname)
12222 (record_full_core_shortname): New globals.
12223 (record_full_is_used): New function.
12224 (find_full_open): Call record_preopen instead of checking
12226 (init_record_full_ops): Set the target's shortname to
12227 record_full_shortname.
12228 (init_record_full_core_ops): Set the target's shortname to
12229 record_full_core_shortname.
12230 * record-full.h (record_full_is_used): Declare.
12231 * record.c (find_record_target): Make extern.
12232 (record_preopen): New function.
12233 * record.h (RECORD_IS_USED): Delete macro.
12234 (find_record_target, record_preopen): Declare functions.
12236 2014-01-14 Yao Qi <yao@codesourcery.com>
12238 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12239 'len''s type to ULONGEST.
12240 (core_xfer_shared_libraries_aix): Likewise.
12241 * gdbarch.c, gdbarch.h: Regenerated.
12242 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12243 Change type of 'len' to ULONGEST.
12244 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12245 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12247 2014-01-14 Yao Qi <yao@codesourcery.com>
12249 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12250 type of 'len' to ULONGEST.
12251 (linux_xfer_osdata_processgroups): Likewise.
12252 (linux_xfer_osdata_threads): Likewise.
12253 (linux_xfer_osdata_fds): Likewise.
12254 (linux_xfer_osdata_isockets): Likewise.
12255 (linux_xfer_osdata_shm): Likewise.
12256 (linux_xfer_osdata_sem): Likewise.
12257 (linux_xfer_osdata_msg): Likewise.
12258 (linux_common_xfer_osdata): Likewise.
12259 (struct osdata_type) <getter>: Likewise.
12260 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12263 2014-01-14 Yao Qi <yao@codesourcery.com>
12265 * target.h (target_xfer_partial_ftype): Update.
12266 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12268 * aix-thread.c (aix_thread_xfer_partial): Change type of
12269 argument 'len' to ULONGEST.
12270 * auxv.c (procfs_xfer_auxv): Likewise.
12271 (ld_so_xfer_auxv): Likewise.
12272 (memory_xfer_auxv): Likewise.
12273 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12274 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12275 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12276 * corelow.c (core_xfer_partial): Likewise.
12277 * ctf.c (ctf_xfer_partial): Likewise.
12278 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12280 (darwin_read_dyld_info): Likewise.
12281 (darwin_xfer_partial): Likewise.
12282 * exec.c (section_table_xfer_memory_partial): Likewise.
12283 (exec_xfer_partial): Likewise.
12284 * exec.h (section_table_xfer_memory_partial): Update
12286 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12287 instead of plongest.
12288 (gnu_xfer_partial): Likewise.
12289 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12290 (ia64_hpux_xfer_solib_got): Likewise.
12291 (ia64_hpux_xfer_partial): Likewise.
12292 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12293 * inf-ptrace.c (inf_ptrace_xfer_partial):
12294 * inf-ttrace.c (inf_ttrace_xfer_partial):
12295 * linux-nat.c (linux_xfer_siginfo): Likewise.
12296 (linux_nat_xfer_partial): Likewise.
12297 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12298 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12299 * monitor.c (monitor_xfer_memory): Likewise.
12300 (monitor_xfer_partial): Likewise.
12301 * procfs.c (procfs_xfer_partial): Likewise.
12302 * record-full.c (record_full_xfer_partial): Likewise.
12303 (record_full_core_xfer_partial): Likewise.
12304 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12305 instead of plongest.
12306 (gdbsim_xfer_partial): Likewise.
12307 * remote.c (remote_xfer_partial): Likewise.
12308 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12309 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12311 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12312 (rs6000_xfer_shared_libraries): Likewise.
12313 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12314 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12315 (sparc_xfer_partial): Likewise.
12316 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12317 (spu_xfer_partial): Likewise.
12318 * spu-multiarch.c (spu_xfer_partial): Likewise.
12319 * target.c (target_read_live_memory): Likewise.
12320 (memory_xfer_live_readonly_partial): Likewise.
12321 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12322 (target_xfer_partial, default_xfer_partial): Likewise.
12323 (current_xfer_partial): Likewise.
12324 * tracepoint.c (tfile_xfer_partial): Likewise.
12325 * windows-nat.c (windows_xfer_memory): Likewise. Call
12326 pulongest instead of plongest.
12327 (windows_xfer_partial): Likewise.
12328 (windows_xfer_shared_libraries): Likewise.
12330 2014-01-14 Yao Qi <yao@codesourcery.com>
12332 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12333 target_xfer_partial_ftype.
12335 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12339 * valops.c (value_struct_elt_bitpos): New function
12340 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12341 object to 'None' if the field name is an empty string ("").
12342 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12343 attribute to look for a field when 'name' is 'None'.
12344 (get_field_type): New function
12346 2014-01-13 Doug Evans <dje@google.com>
12349 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12350 (try_open_dwop_file): Ditto.
12351 * gdb_bfd.c: #include "vec.h".
12352 (bfdp): New typedef.
12353 (struct gdb_bfd_data): New member included_bfds.
12354 (gdb_bfd_unref): Unref all included bfds.
12355 (gdb_bfd_record_inclusion): New function.
12356 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12358 2014-01-13 Tom Tromey <tromey@redhat.com>
12360 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12362 2014-01-13 Tom Tromey <tromey@redhat.com>
12364 * defs.h (use_windows): Remove.
12365 * gdb.c (main): Update.
12366 * main.c (captured_main, gdb_main): Update.
12367 * main.h (struct captured_main_args) <use_windows>: Remove.
12368 * top.c (use_windows): Remove.
12370 2014-01-13 Tom Tromey <tromey@redhat.com>
12372 * defs.h (deprecated_flush_hook): Remove.
12374 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12377 * linux-thread-db.c (try_thread_db_load): Add parameter
12378 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12379 (try_thread_db_load_from_pdir_1): Move it there from here.
12380 (try_thread_db_load_from_sdir): Update caller.
12381 (try_thread_db_load_from_dir): Move it there from here.
12383 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12385 * regformats/regdat.sh: Always rewrite the register file.
12387 2014-01-13 Pedro Alves <palves@redhat.com>
12389 * Makefile.in (CHECK_HEADERS): New variable.
12390 (check-headers:): New rule.
12392 2014-01-13 Tom Tromey <tromey@redhat.com>
12394 * cli/cli-setshow.c (do_set_command): Update.
12395 * defs.h (deprecated_set_hook): Remove.
12396 * top.c (deprecated_set_hook): Remove.
12398 2014-01-13 Pedro Alves <palves@redhat.com>
12400 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12401 the tracepoint if the PC is a pseudo-register.
12403 2014-01-13 Tom Tromey <tromey@redhat.com>
12405 * defs.h (XCALLOC): Remove.
12406 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12407 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12408 * dwarf2loc.c (allocate_piece_closure): Likewise.
12409 * elfread.c (elf_symfile_segments): Likewise.
12410 (elf_symfile_segments): Likewise.
12411 * gdbtypes.c (copy_type_recursive): Likewise.
12412 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12413 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12414 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12416 * mt-tdep.c (mt_gdbarch_init): Likewise.
12417 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12419 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12420 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12421 * registry.c (registry_alloc_data): Likewise.
12422 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12423 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12424 * serial.c (serial_fdopen_ops): Likewise.
12425 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12427 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12428 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12431 2014-01-13 Tom Tromey <tromey@redhat.com>
12433 * defs.h (XMALLOC): Remove.
12434 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12435 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12436 * cli-out.c (struct ui_out *): Likewise.
12437 * cli/cli-dump.c (add_dump_command): Likewise.
12438 (add_dump_command): Likewise.
12439 * complaints.c (get_complaints): Likewise.
12440 (find_complaint): Likewise.
12441 * dwarf2-frame.c (execute_cfa_program): Likewise.
12442 * dwarf2read.c (abbrev_table_read_table): Likewise.
12443 * gdbarch.sh: Likewise.
12444 * gdbarch.c: Rebuild.
12445 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12446 * interps.c (interp_new): Likewise.
12447 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12448 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12449 * mi/mi-console.c (mi_console_file_new): Likewise.
12450 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12451 * mi/mi-out.c (mi_out_new): Likewise.
12452 * mi/mi-parse.c (mi_parse): Likewise.
12453 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12454 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12455 * observer.c (xalloc_observer_list_node): Likewise.
12456 * regcache.c (regcache_xmalloc_1): Likewise.
12457 * reggroups.c (reggroup_new): Likewise.
12458 (_initialize_reggroup): Likewise.
12459 * registry.c (register_data_with_cleanup): Likewise.
12460 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12461 * ser-base.c (serial_ttystate): Likewise.
12462 * ser-mingw.c (make_pipe_state): Likewise.
12463 * ser-pipe.c (pipe_open): Likewise.
12464 * serial.c (serial_open): Likewise.
12465 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12466 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12467 (tui_alloc_win_info): Likewise.
12468 (tui_add_content_elements): Likewise.
12469 * tui/tui-file.c (tui_file_new): Likewise.
12470 * tui/tui-out.c (tui_out_new): Likewise.
12471 * ui-file.c (mem_file_new): Likewise.
12472 * ui-out.c (push_level): Likewise.
12473 (make_cleanup_ui_out_end): Likewise.
12474 (append_header_to_list): Likewise.
12475 (ui_out_new): Likewise.
12476 * user-regs.c (user_reg_add_builtin): Likewise.
12478 2014-01-13 Tom Tromey <tromey@redhat.com>
12480 * defs.h (XZALLOC): Remove.
12481 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12482 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12483 (get_ada_tasks_inferior_data): Likewise.
12484 * auto-load.c (get_auto_load_pspace_data): Likewise.
12485 * auxv.c (get_auxv_inferior_data): Likewise.
12486 * bfd-target.c (target_bfd_reopen): Likewise.
12487 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12488 (deprecated_insert_raw_breakpoint): Likewise.
12489 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12490 * corelow.c (core_open): Likewise.
12491 * darwin-nat.c (darwin_check_new_threads): Likewise.
12492 (darwin_attach_pid): Likewise.
12493 * dummy-frame.c (dummy_frame_push): Likewise.
12494 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12495 * dwarf2loc.c (allocate_piece_closure): Likewise.
12496 * elfread.c (elf_symfile_segments): Likewise.
12497 * eval.c (ptrmath_type_p): Likewise.
12498 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12499 * gdbtypes.c (alloc_type_arch): Likewise.
12500 (alloc_type_instance): Likewise.
12501 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12502 * inf-child.c (inf_child_can_use_agent): Likewise.
12503 * inflow.c (get_inflow_inferior_data): Likewise.
12504 * infrun.c (save_infcall_suspend_state): Likewise.
12505 * jit.c (jit_reader_load): Likewise.
12506 (get_jit_objfile_data): Likewise.
12507 (get_jit_program_space_data): Likewise.
12508 (jit_object_open_impl): Likewise.
12509 (jit_symtab_open_impl): Likewise.
12510 (jit_block_open_impl): Likewise.
12511 (jit_frame_sniffer): Likewise.
12512 * linux-fork.c (add_fork): Likewise.
12513 * maint.c (make_command_stats_cleanup): Likewise.
12514 * objfiles.c (get_objfile_pspace_data): Likewise.
12515 * opencl-lang.c (struct lval_closure): Likewise.
12516 * osdata.c (osdata_start_osdata): Likewise.
12517 * progspace.c (new_address_space): Likewise.
12518 (add_program_space): Likewise.
12519 * remote-sim.c (get_sim_inferior_data): Likewise.
12520 * sh-tdep.c (sh_gdbarch_init): Likewise.
12521 * skip.c (Ignore): Likewise.
12522 (skip_delete_command): Likewise.
12523 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12524 (library_list_start_library): Likewise.
12525 (solib_aix_current_sos): Likewise.
12526 * solib-darwin.c (get_darwin_info): Likewise.
12527 (darwin_current_sos): Likewise.
12528 * solib-dsbt.c (get_dsbt_info): Likewise.
12529 * solib-ia64-hpux.c (new_so_list): Likewise.
12530 (ia64_hpux_get_solib_linkage_addr): Likewise.
12531 * solib-spu.c (append_ocl_sos): Likewise.
12532 (spu_current_sos): Likewise.
12533 * solib-svr4.c (get_svr4_info): Likewise.
12534 (svr4_keep_data_in_core): Likewise.
12535 (library_list_start_library): Likewise.
12536 (svr4_default_sos): Likewise.
12537 (svr4_read_so_list): Likewise.
12538 * solib-target.c (library_list_start_library): Likewise.
12539 (solib_target_current_sos): Likewise.
12540 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12541 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12542 * symfile.c (default_symfile_segments): Likewise.
12543 * target-descriptions.c (tdesc_data_init): Likewise.
12544 (tdesc_create_reg): Likewise.
12545 (struct tdesc_type *): Likewise.
12546 (tdesc_create_vector): Likewise.
12547 (tdesc_set_struct_size): Likewise.
12548 (struct tdesc_type *): Likewise.
12549 (tdesc_free_feature): Likewise.
12550 (tdesc_create_feature): Likewise.
12551 * windows-nat.c (windows_add_thread): Likewise.
12552 (windows_make_so): Likewise.
12553 * xml-support.c (gdb_xml_body_text): Likewise.
12554 (gdb_xml_create_parser_and_cleanup): Likewise.
12555 (xml_process_xincludes): Likewise.
12556 * xml-syscall.c (allocate_syscalls_info): Likewise.
12557 (syscall_create_syscall_desc): Likewise.
12559 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12561 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12562 function, with code from i386_stap_parse_special_token.
12563 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12564 (i386_stap_parse_special_token): Move code to the two functions
12565 above; simplify it.
12567 2014-01-09 Pedro Alves <palves@redhat.com>
12568 Hui Zhu <hui@codesourcery.com>
12571 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12572 bp_err_string. Don't mark the location shlib_disabled if the
12573 error thrown wasn't a generic or memory error. Catch errors
12574 thrown while inserting breakpoints in overlayed code. Output
12575 error message of software breakpoints.
12576 * remote.c (remote_insert_breakpoint): If this breakpoint has
12577 target-side commands but this stub doesn't support Z0 packets,
12578 throw NOT_SUPPORTED_ERROR error.
12579 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12580 * target.h (target_insert_breakpoint): Extend comment.
12581 (target_insert_hw_breakpoint): Add comment.
12583 2014-01-08 Pedro Alves <palves@redhat.com>
12585 * remote.c (remote_add_thread): Add threads silently if starting
12587 (remote_notice_new_inferior): If in all-stop, and starting up,
12588 don't call notice_new_inferior.
12589 (get_current_thread): New function, factored out from ...
12590 (add_current_inferior_and_thread): ... this. Adjust.
12591 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12592 found any thread, then select the remote's current thread as GDB's
12593 current thread too.
12595 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12597 * NEWS: Create a new section for the next release branch.
12598 Rename the section of the current branch, now that it has
12601 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12603 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12604 * version.in: Bump version to 7.7.50.DATE-cvs.
12606 2014-01-08 Yao Qi <yao@codesourcery.com>
12608 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12609 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12610 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12612 2014-01-08 Yao Qi <yao@codesourcery.com>
12614 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12615 return value of bfd_get_filename to symbol_file_add_from_bfd.
12617 2014-01-08 Pierre Muller <muller@sourceware.org>
12620 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12621 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12622 to prim_record_mininal_symbol_and_info.
12623 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12624 in call to prim_record_minimal_symbol_and_info.
12625 (read_pe_exported_syms): Set index field of section_data.
12627 2014-01-07 Andrew Pinski <apinski@cavium.com>
12629 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12630 * features/aarch64.c: Regenerate.
12632 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12634 * target.c (return_null): Define.
12635 (update_current_target): Use it instead of return_zero for
12636 functions that return a pointer.
12638 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12640 * source.c (add_path): Fix check for duplicated paths in the previously
12643 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12645 * ada-lang.c: Remove duplicated include statements.
12646 * alphabsd-nat.c: Ditto.
12647 * amd64-darwin-tdep.c: Ditto.
12648 * amd64fbsd-nat.c: Ditto.
12649 * auto-load.c: Ditto.
12651 * breakpoint.c: Ditto.
12652 * dbxread.c: Ditto.
12653 * fork-child.c: Ditto.
12654 * gdb_usleep.c: Ditto.
12655 * i386-darwin-tdep.c: Ditto.
12656 * i386fbsd-nat.c: Ditto.
12658 * inferior.c: Ditto.
12659 * jv-lang.c: Ditto.
12660 * linux-nat.c: Ditto.
12661 * linux-tdep.c: Ditto.
12662 * m68kbsd-nat.c: Ditto.
12663 * m68klinux-nat.c: Ditto.
12664 * microblaze-tdep.c: Ditto.
12665 * mips-linux-tdep.c: Ditto.
12666 * mn10300-tdep.c: Ditto.
12667 * nto-tdep.c: Ditto.
12668 * opencl-lang.c: Ditto.
12670 * printcmd.c: Ditto.
12671 * regcache.c: Ditto.
12672 * remote-m32r-sdi.c: Ditto.
12674 * symfile.c: Ditto.
12676 * tilegx-linux-nat.c: Ditto.
12677 * tilegx-tdep.c: Ditto.
12678 * tracepoint.c: Ditto.
12680 * vaxbsd-nat.c: Ditto.
12681 * windows-nat.c: Ditto.
12682 * xtensa-tdep.c: Ditto.
12684 2014-01-07 Yao Qi <yao@codesourcery.com>
12686 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12688 2014-01-07 Yao Qi <yao@codesourcery.com>
12689 Joel Brobecker <brobecker@adacore.com>
12691 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12692 (pdc_write_regs): Likewise.
12693 (fetch_regs_kernel_thread): Likewise.
12694 (store_regs_kernel_thread): Likewise.
12696 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12698 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12699 tagged type objects to their actual type.
12701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12703 * ada-valprint.c (print_field_values): Add "language" parameter.
12704 Update calls to print_field_values and print_variant_part.
12705 Pass new parameter "language" in call to val_print instead
12706 of "current_language". Replace call to ada_val_print by call
12708 (print_variant_part): Add "language" parameter.
12709 (ada_val_print_struct_union): Update call to print_field_values.
12711 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12713 * ada-valprint.c (ui_memcpy): Delete.
12714 (ada_print_floating): Update documentation. Add empty line
12715 between between function documentation and implementation.
12716 Delete variable "buffer". Use ui_file_xstrdup in place of
12717 ui_file_put. Minor adjustments following this change.
12719 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12721 * ada-valprint.c (ada_val_print_string): New function,
12722 extracted from ada_val_print_array.
12723 (ada_val_print_array): Replace extracted code by call
12724 to ada_val_print_string followed by a return. Move
12725 "else" branch to the function's top block.
12727 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12729 * ada-valprint.c (ada_val_print_array): Move implementation
12730 down. Rename parameter "offset" and "val" into "offset_aligned"
12731 and "original_value" respectively. Add parameter "offset".
12733 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12735 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12736 re-organizing the code. Change the "???" message printed
12737 when target type is a TYPE_CODE_UNDEF into
12738 "<ref to undefined type>".
12740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12742 * ada-valprint.c (print_record): Delete, implementation inlined...
12743 (ada_val_print_struct_union): ... here. Remove call to
12744 ada_check_typedef in inlined implementation.
12746 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12748 * ada-valprint.c (ada_val_print_gnat_array): New function,
12749 extracted from ada_val_print_1;
12750 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12751 (ada_val_print_flt, ada_val_print_struct_union)
12752 (ada_val_print_ref): Likewise.
12753 (ada_val_print_1): Delete variables i and elttype.
12754 Replace extracted-out code by call to corresponding
12757 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12759 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12761 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12763 * ada-valprint.c (ada_val_print_1): Replace calls to
12764 ada_val_print_1 by calls to val_print.
12766 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12768 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12769 Update calls to self accordingly. Replace calls to c_val_print
12770 by calls to val_print.
12772 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12774 * ada-valprint.c (print_record): Delete declaration.
12775 (adjust_type_signedness, ada_val_print_1): Likewise.
12776 (ada_val_print): Move function implementation down.
12777 (print_variant_part, print_field_values, print_record):
12778 Move function implementation up.
12780 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12782 * python/py-type.c (typy_get_name): New function.
12783 (type_object_getset): Add entry for attribute "name".
12784 * NEWS: Add entry mentioning this new attribute.
12786 2014-01-07 Yao Qi <yao@codesourcery.com>
12788 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12791 2014-01-07 Yao Qi <yao@codesourcery.com>
12793 * gnu-nat.c (info_port_rights): Add qualifier const to
12796 2014-01-07 Yao Qi <yao@codesourcery.com>
12798 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12800 2014-01-07 Yao Qi <yao@codesourcery.com>
12802 * gnu-nat.c (make_inf) Update declaration.
12803 (make_inf): Make it static.
12804 (inf_set_traced): Likewise.
12805 (inf_port_to_thread, inf_task_died_status): Likewise.
12807 2014-01-07 Yao Qi <yao@codesourcery.com>
12809 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12811 2014-01-07 Yao Qi <yao@codesourcery.com>
12813 * gnu-nat.c (_initialize_gnu_nat): Declare.
12815 2014-01-07 Yao Qi <yao@codesourcery.com>
12817 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12819 (struct gdbarch_info) <byte_order>: Change type to
12821 <byte_order_for_code>: Likewise.
12822 * gdbarch.c, gdbarch.h: Regenerated.
12824 2014-01-06 Sasha Smundak <asmundak@google.com>
12826 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12828 2014-01-06 Tom Tromey <tromey@redhat.com>
12830 * doublest.c (convert_doublest_to_floatformat): Use const, not
12832 * somread.c (som_symtab_read): Likewise.
12834 2014-01-07 Hui Zhu <hui@codesourcery.com>
12836 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12837 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12838 (gdb_bfd_fopen): Ditto.
12839 (gdb_bfd_openr): Ditto.
12840 (gdb_bfd_openw): Ditto.
12841 (gdb_bfd_openr_iovec): Ditto.
12842 (gdb_bfd_fdopenr): Ditto.
12843 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12844 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12846 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12848 * symfile-mem.c (symbol_file_add_from_memory): Removed
12849 gdb_bfd_stash_filename.
12851 2014-01-03 Doug Evans <dje@google.com>
12853 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12856 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12858 Update year range in copyright notice of all files.
12860 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12862 * top.c (print_gdb_version): Set copyright year to 2014.
12864 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12866 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12868 For older changes see ChangeLog-2013.
12874 version-control: never