1 2014-08-07 Gary Benson <gbenson@redhat.com>
3 * common/common-defs.h: Include common-utils.h.
4 * defs.h: Do not include common-utils.h.
5 * common/gdb_assert.h: Likewise.
6 * darwin-nat.h: Likewise.
7 * nat/linux-btrace.c: Likewise.
8 * target/waitstatus.h: Likewise.
10 2014-08-07 Gary Benson <gbenson@redhat.com>
12 * common/common-defs.h: Include ptid.h.
13 * defs.h: Do not include ptid.h.
14 * inferior.h: Likewise.
16 * nat/linux-btrace.h: Likewise.
17 * nat/linux-osdata.h: Likewise.
18 * target/waitstatus.h: Likewise.
20 2014-08-07 Gary Benson <gbenson@redhat.com>
22 * common/common-defs.h: Include gdb_locale.h.
23 * defs.h: Do not include gdb_locale.h.
25 2014-08-07 Gary Benson <gbenson@redhat.com>
27 * common/common-defs.h: Include gdb/signals.h.
28 * defs.h: Do not include gdb/signals.h.
30 2014-08-07 Gary Benson <gbenson@redhat.com>
32 * common/common-defs.h: Include pathmax.h.
33 * defs.h: Do not include pathmax.h.
35 2014-08-07 Gary Benson <gbenson@redhat.com>
37 * common/common-defs.h: Include libiberty.h.
38 * defs.h: Do not include libiberty.h.
39 * common/queue.h: Likewise.
40 * cp-name-parser.y: Likewise.
41 * mi/mi-cmd-catch.c: Likewise.
42 * python/python.c: Likewise.
44 2014-08-07 Gary Benson <gbenson@redhat.com>
46 * common/common-defs.h: Include ansidecl.h.
47 * defs.h: Do not include ansidecl.h.
48 * common/buffer.h: Likewise.
49 * common/common-utils.h: Likewise.
51 2014-08-07 Gary Benson <gbenson@redhat.com>
53 * common/common-defs.h: Include stddef.h.
54 * defs.h: Do not include stddef.h.
55 * common/common-utils.h: Likewise.
56 * amd64fbsd-nat.c: Likewise.
58 * charset.c: Likewise.
59 * common/buffer.h: Likewise.
60 * common/vec.h: Likewise.
61 * i386bsd-nat.c: Likewise.
62 * nat/linux-btrace.h: Likewise.
63 * ppcfbsd-nat.c: Likewise.
64 * ppcnbsd-tdep.h: Likewise.
65 * ppcobsd-nat.c: Likewise.
66 * ppcobsd-tdep.h: Likewise.
67 * python/py-gdb-readline.c: Likewise.
69 2014-08-07 Gary Benson <gbenson@redhat.com>
71 * common/common-defs.h: Include stdarg.h.
72 * defs.h: Do not include stdarg.h.
73 * ada-lang.c: Likewise.
74 * common/common-utils.h: Likewise.
75 * guile/scm-string.c: Likewise.
76 * guile/scm-utils.c: Likewise.
77 * m32c-tdep.c: Likewise.
79 2014-08-07 Gary Benson <gbenson@redhat.com>
81 * common/common-defs.h: Include stdlib.h.
82 * defs.h: Do not include stdlib.h.
83 * addrmap.c: Likewise.
85 * common/buffer.c: Likewise.
86 * common/common-utils.c: Likewise.
87 * cp-name-parser.y: Likewise.
88 * go32-nat.c: Likewise.
89 * mn10300-linux-tdep.c: Likewise.
90 * nat/linux-osdata.c: Likewise.
91 * tui/tui.c: Likewise.
92 * windows-nat.c: Likewise.
94 2014-08-07 Gary Benson <gbenson@redhat.com>
96 * common/common-defs.h: Include stdio.h.
97 * defs.h: Do not include stdio.h.
98 * ada-lang.c: Likewise.
99 * common/buffer.c: Likewise.
100 * common/common-utils.c: Likewise.
101 * cp-name-parser.y: Likewise.
102 * gnu-nat.c: Likewise.
103 * go32-nat.c: Likewise.
104 * i386gnu-nat.c: Likewise.
105 * proc-api.c: Likewise.
106 * proc-events.c: Likewise.
107 * proc-flags.c: Likewise.
108 * proc-why.c: Likewise.
109 * python/python-internal.h: Likewise.
110 * target-memory.c: Likewise.
111 * tui/tui-io.c: Likewise.
112 * tui/tui.c: Likewise.
114 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
116 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
117 (scan_dyntag_auxv): Same.
119 2014-08-06 Yao Qi <yao@codesourcery.com>
121 * amd64-linux-nat.c: Remove duplicated include
123 * i386-linux-nat.c: Likewise.
125 2014-08-06 Yao Qi <yao@codesourcery.com>
127 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
128 operand" with "Special opcode" in comments.
130 2014-08-05 Gary Benson <gbenson@redhat.com>
132 * interps.c (initialize_interps): Remove prototype.
133 (interpreter_initialized): Remove static global.
134 (interp_add): Do not call initialize_interps.
135 (initialize_interps): Remove function.
137 2014-08-05 Gary Benson <gbenson@redhat.com>
139 * utils.c (vwarning): Remove spurious va_end.
141 2014-08-05 Alan Modra <amodra@gmail.com>
143 * charset.c (convert_between_encodings): Cast result of obstack_base.
144 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
145 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
146 (read_unwind_info): Use size_t for some locals.
147 * jit.c (finalize_symtab): Likewise.
148 * utils.c (hashtab_obstack_allocate): Likewise.
149 * symmisc.c (print_objfile_statistics): Update format strings.
151 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
153 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
154 (Changes in GDB 7.8): ... here.
156 2014-08-04 Tom Tromey <tromey@redhat.com>
158 * target.c (set_targetdebug): New function.
159 (initialize_targets): Pass set_targetdebug when creating "set
162 2014-08-01 Joel Brobecker <brobecker@adacore.com>
164 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
165 if detecting a variable-sized field that is not the last field.
166 Fix struct type length computation.
168 2014-08-01 Joel Brobecker <brobecker@adacore.com>
170 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
173 2014-08-01 Joel Brobecker <brobecker@adacore.com>
175 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
176 Remove "+ 8" offset in computation of CHAIN_VMA.
178 2014-07-31 Doug Evans <dje@google.com>
180 * inflow.c (child_terminal_inferior): Add comment.
181 (child_terminal_ours_for_output): Add comment.
182 (child_terminal_ours): Add comment.
183 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
184 (linux_nat_terminal_ours): Add comment.
186 2014-07-31 Gary Benson <gbenson@redhat.com>
188 * common/btrace-common.h: Do not include defs.h or server.h.
189 * nat/mips-linux-watch.h: Likewise.
190 * gdb-dlfcn.h: Do not include defs.h.
191 * tracefile.h: Likewise.
193 2014-07-30 Roland McGrath <mcgrathr@google.com>
195 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
197 2014-07-30 Tom Tromey <tromey@redhat.com>
199 * bsd-kvm.c (bsd_kvm_open): Constify.
200 * corelow.c (core_open): Constify.
201 * ctf.c (ctf_open): Constify.
202 * dbug-rom.c (dbug_open): Constify.
203 * exec.c (exec_open): Constify.
204 * m32r-rom.c (m32r_open, mon2000_open): Constify.
205 * microblaze-rom.c (picobug_open): Constify.
206 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
208 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
209 * record-btrace.c (record_btrace_open): Constify.
210 * record-full.c (record_full_core_open_1, record_full_open_1)
211 (record_full_open): Constify.
212 * remote-m32r-sdi.c (m32r_open): Constify.
213 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
214 (rockhopper_open, lsi_open): Constify.
215 * remote-sim.c (gdbsim_open): Constify.
216 * remote.c (remote_open, extended_remote_open, remote_open_1):
218 * target.h (struct target_ops) <to_open>: Make "arg" const.
219 * tracefile-tfile.c (tfile_open): Constify.
221 2014-07-30 Tom Tromey <tromey@redhat.com>
223 * breakpoint.c (map_breakpoint_numbers): Update.
224 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
225 (get_number_const): New function.
226 (get_number): Rewrite using get_number_const.
227 (init_number_or_range): Make "string" const.
228 (number_is_in_list): Make "list" const.
229 * cli/cli-utils.h (get_number_const): Declare.
230 (struct get_number_or_range_state) <string, end_ptr>: Now const.
231 (init_number_or_range, number_is_in_list): Update.
232 * printcmd.c (map_display_numbers): Update.
233 * value.c (value_from_history_ref): Constify.
234 * value.h (value_from_history_ref): Update.
236 2014-07-30 Tom Tromey <tromey@redhat.com>
238 * corefile.c (hook_type, call_extra_exec_file_hooks)
239 (specify_exec_file_hook): Constify.
240 * exec.c (exec_file_attach): Make "filename" const.
241 * gdbcore.h (deprecated_exec_file_display_hook)
242 (specify_exec_file_hook, exec_file_attach): Constify.
243 * main.c (captured_main): Use catch_command_errors_const.
245 2014-07-30 Tom Tromey <tromey@redhat.com>
247 * target.c (open_target): New function.
248 (add_target_with_completer, add_deprecated_target_alias): Use
249 set_cmd_sfunc, set_cmd_context.
250 (debug_to_open): Remove.
251 (setup_target_debug): Update.
253 2014-07-30 Yao Qi <yao@codesourcery.com>
255 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
257 * parse.c (exp_iterate): Update comments.
259 2014-07-30 Gary Benson <gbenson@redhat.com>
261 * common/common-defs.h: New file.
262 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
263 * defs.h: Include common-defs.h.
264 Do not include config.h or build-gnulib/config.h.
266 2014-07-30 Gary Benson <gbenson@redhat.com>
268 * common/common-utils.h: Do not include config.h.
269 * nat/linux-btrace.h: Likewise.
271 2014-07-30 Gary Benson <gbenson@redhat.com>
273 * btrace.c: Include defs.h.
274 * common/ptid.c: Include defs.h or server.h as appropriate.
275 * nat/mips-linux-watch.c: Likewise.
277 2014-07-29 Tom Tromey <tromey@redhat.com>
279 * target.c (target_is_pushed): Simplify.
281 2014-07-29 Joel Brobecker <brobecker@adacore.com>
285 2014-07-29 Yao Qi <yao@codesourcery.com>
288 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
290 2014-07-28 Doug Evans <xdje42@gmail.com>
293 * guile/scm-param.c (pascm_parameter_defined_p): New function.
294 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
297 2014-07-28 Will Newton <will.newton@linaro.org>
299 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
300 (THUMB2_SET_R7_SIGRETURN2): Likewise.
301 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
302 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
303 (THUMB2_EABI_SYSCALL): Likewise.
304 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
306 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
307 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
309 2014-07-27 Doug Evans <xdje42@gmail.com>
311 * guile/scm-param.c (pascm_print_param_smob): Fix output.
313 2014-07-27 Doug Evans <xdje42@gmail.com>
315 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
317 2014-07-26 Ludovic Courtès <ludo@gnu.org>
318 Doug Evans <xdje42@gmail.com>
321 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
322 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
323 * configure.ac: Try to use guild to compile an scm file, if it fails
324 then disable guile support.
325 * configure: Regenerate.
326 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
328 (GUILE_COMPILED_FILES): New variable.
329 (GUILE_FILES) Update.
330 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
331 (stamp-guile): Compile scm files.
332 * guile/guile.c (boot_guile_support): New function.
333 (standard_throw_args_p): New function.
334 (print_standard_throw_error, print_throw_error): New functions.
335 (handle_boot_error): New function.
336 (initialize_scheme_side): Rewrite to call boot_guile_support.
337 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
338 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
340 2014-07-26 Ludovic Courtès <ludo@gnu.org>
341 Doug Evans <xdje42@gmail.com>
344 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
345 * guile/lib/gdb/support.scm: New file.
346 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
347 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
349 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
351 (%assert-type): Ditto, and renamed to assert-type.
352 (%exception-print-style): Delete.
354 2014-07-26 Doug Evans <xdje42@gmail.com>
357 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
358 * configure: Regenerate.
359 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
361 (PYTHON_FILES): New variable.
362 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
363 (GUILE_FILES): New variable.
364 (stamp-python, install-python, uninstall-python): Handle empty
366 (stamp-guile, install-guile, uninstall-guile): Ditto.
368 2014-07-26 Doug Evans <xdje42@gmail.com>
371 * guile/lib/gdb.scm (pretty-printers): Export.
372 (set-pretty-printers!): Export.
373 * guile/lib/gdb/printing.scm (gdb module): Update.
374 (prepend-pretty-printer!, append-pretty-printer!): Update.
375 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
376 (pretty_printer_list_var): Delete.
377 (pretty_printer_list): New static global.
378 (gdbscm_pretty_printers): New function.
379 (gdbscm_set_pretty_printers_x): New function.
380 (ppscm_find_pretty_printer_from_gdb): Update.
381 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
382 (gdbscm_initialize_pretty_printers): Update.
384 2014-07-26 Doug Evans <xdje42@gmail.com>
387 * configure.ac: Add check for header gc/gc.h.
388 Add check for function setenv.
389 * configure: Regenerate.
390 * config.in: Regenerate.
391 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
393 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
395 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
396 variation in gdbarch matching.
398 2014-07-25 Tom Tromey <tromey@redhat.com>
400 * exec.c (using_exec_ops): Remove.
401 (exec_close_1): Update. Remove extraneous block, reindent.
402 (add_target_sections): Use target_is_pushed.
404 2014-07-25 Pedro Alves <palves@redhat.com>
406 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
407 * monitor.c (monitor_create_inferior): Likewise.
408 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
409 * remote-sim.c (gdbsim_create_inferior): Likewise.
410 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
411 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
412 * windows-nat.c (do_initial_windows_stuff): Likewise.
414 2014-07-25 Pedro Alves <palves@redhat.com>
416 * NEWS: Mention signal passing and "signal" command changes.
417 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
419 * breakpoint.c (until_break_command): Adjust clear_proceed_status
421 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
422 * infcmd.c (proceed_thread_callback, continue_1, step_once)
423 (jump_command): Adjust clear_proceed_status call.
424 (signal_command): Warn if other thread that are resumed have
425 signals that will be delivered. Adjust clear_proceed_status call.
426 (until_next_command, finish_command)
427 (proceed_after_attach_callback, attach_command_post_wait)
428 (attach_command): Adjust clear_proceed_status call.
429 * infrun.c (proceed_after_vfork_done): Likewise.
430 (proceed_after_attach_callback): Adjust comment.
431 (clear_proceed_status_thread): Clear stop_signal if not in pass
433 (clear_proceed_status_callback): Delete.
434 (clear_proceed_status): New 'step' parameter. Only clear the
435 proceed status of threads the command being prepared is about to
437 (proceed): If passed in an explicit signal, override stop_signal
438 with it. Don't pass the last stop signal to the thread we're
440 (init_wait_for_inferior): Adjust clear_proceed_status call.
441 (switch_back_to_stepped_thread): Clear the signal if it should not
443 * infrun.h (clear_proceed_status): New 'step' parameter.
444 (user_visible_resume_ptid): Add comment.
445 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
446 signal is in pass state.
447 * remote.c (append_pending_thread_resumptions): Likewise.
448 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
450 2014-07-25 Tom Tromey <tromey@redhat.com>
452 * target.h (target_stopped_data_address)
453 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
456 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
458 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
460 (avr_pointer_to_address): Likewise.
462 2014-07-24 Tom Tromey <tromey@redhat.com>
464 * monitor.c (compile_pattern): Update.
465 * target.h (struct target_ops) <to_shortname, to_longname,
468 2014-07-24 Tom Tromey <tromey@redhat.com>
470 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
471 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
472 (add_info_alias, add_com): Make "doc" const.
473 (print_doc_line): Make "str" const.
474 (delete_cmd): Update.
475 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
476 (print_doc_line): Update.
477 * cli/cli-script.c (document_command): Update.
478 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
479 (add_com, add_info, add_info_alias): Update.
480 * guile/scm-cmd.c (cmdscm_destroyer): Update.
481 * python/py-cmd.c (cmdpy_destroyer): Update.
483 2014-07-24 Tom Tromey <tromey@redhat.com>
485 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
486 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
487 (help_cmd_list): Constify.
488 (lookup_cmd): Update.
489 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
491 (help_cmd_list, apropos_cmd): Update.
492 * cli/cli-script.c (show_user): Update.
493 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
494 * cli/cli-setshow.h (cmd_show_list): Update.
495 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
496 (cmd_show_list): Update.
497 * guile/scm-cmd.c (cmdscm_destroyer): Update.
498 * python/py-cmd.c (cmdpy_destroyer): Update.
500 2014-07-24 Tom Tromey <tromey@redhat.com>
502 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
503 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
505 * command.h (deprecate_cmd): Update.
506 * maint.c (maintenance_do_deprecate): Add casts.
508 2014-07-24 Tom Tromey <tromey@redhat.com>
510 * cli/cli-decode.c (help_cmd): Make parameter "const".
511 * cli/cli-decode.h (help_cmd): Update.
513 2014-07-24 Tom Tromey <tromey@redhat.com>
515 * stack.c (up_silently_base, down_silently_base): Make argument
518 2014-07-24 Tom Tromey <tromey@redhat.com>
520 * solib.c (solib_add): Make "pattern" const.
521 * solib.h (solib_add): Update.
523 2014-07-24 Tom Tromey <tromey@redhat.com>
525 * remote.c (remote_serial_open, print_packet, putpkt)
526 (putpkt_binary): Constify.
527 * remote.h (putpkt): Update.
529 2014-07-24 Tom Tromey <tromey@redhat.com>
531 * monitor.c (monitor_open): Make "args" const.
532 * monitor.h (monitor_open): Update.
534 2014-07-24 Tom Tromey <tromey@redhat.com>
536 * maint.c (match_bfd_flags): Make "string" const.
537 (print_bfd_section_info): Remove casts.
538 (print_objfile_section_info): Make "string" const.
540 2014-07-24 Tom Tromey <tromey@redhat.com>
542 * inf-child.c (inf_child_open_target): Make "arg" const.
543 * inf-child.h (inf_child_open_target): Update.
545 2014-07-24 Tom Tromey <tromey@redhat.com>
547 * environ.c (unset_in_environ): Make "var" const.
548 * environ.h (unset_in_environ): Update.
550 2014-07-24 Tom Tromey <tromey@redhat.com>
552 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
554 (scan_filename_with_cleanup): Likewise.
555 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
556 Make arguments const.
557 (restore_command): Update.
559 2014-07-24 Pedro Alves <palves@redhat.com>
561 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
563 2014-07-24 Tom Tromey <tromey@redhat.com>
564 Gary Benson <gbenson@redhat.com>
566 * nat/linux-ptrace.c (additional_flags): New global.
567 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
568 additional_flags; don't check GDBSERVER.
569 (linux_ptrace_set_additional_flags): New function.
570 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
572 * linux-nat.c (_initialize_linux_nat): Call
573 linux_ptrace_set_additional_flags.
575 2014-07-24 Tom Tromey <tromey@redhat.com>
577 * make-target-delegates (munge_type, write_debugmethod): New
579 (debug_names): New global.
580 ($TARGET_DEBUG_PRINTER): New global.
581 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
583 Write debug methods. Generate init_debug_target.
584 * target-debug.h: New file.
585 * target-delegates.c: Rebuild.
586 * target.c: Include target-debug.h.
587 (debug_target): Hoist definition.
588 (target_kill, target_get_section_table, target_memory_map)
589 (target_flash_erase, target_flash_done, target_detach)
590 (target_disconnect, target_wait, target_resume)
591 (target_pass_signals, target_program_signals, target_follow_fork)
592 (target_mourn_inferior, target_search_memory)
593 (target_thread_address_space, target_close)
594 (target_find_new_threads, target_core_of_thread)
595 (target_verify_memory, target_insert_mask_watchpoint)
596 (target_remove_mask_watchpoint): Remove targetdebug code.
597 (debug_to_post_attach, debug_to_prepare_to_store)
598 (debug_to_files_info, debug_to_insert_breakpoint)
599 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
600 (debug_to_region_ok_for_hw_watchpoint)
601 (debug_to_can_accel_watchpoint_condition)
602 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
603 (debug_to_watchpoint_addr_within_range)
604 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
605 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
606 (debug_to_terminal_init, debug_to_terminal_inferior)
607 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
608 (debug_to_terminal_save_ours, debug_to_terminal_info)
609 (debug_to_load, debug_to_post_startup_inferior)
610 (debug_to_insert_fork_catchpoint)
611 (debug_to_remove_fork_catchpoint)
612 (debug_to_insert_vfork_catchpoint)
613 (debug_to_remove_vfork_catchpoint)
614 (debug_to_insert_exec_catchpoint)
615 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
616 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
617 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
618 (setup_target_debug): Call init_debug_target.
619 * target.h (TARGET_DEBUG_PRINTER): New macro.
620 (struct target_ops) <to_resume, to_wait, to_pass_signals,
621 to_program_signals>: Use TARGET_DEBUG_PRINTER.
623 2014-07-24 Gary Benson <gbenson@redhat.com>
625 * exceptions.h (throw_vfatal): Renamed to...
626 (throw_vquit): New declaration.
627 (throw_quit): Likewise.
628 * exceptions.c (throw_vfatal): Renamed to...
629 (throw_vquit): New function.
630 (throw_quit): Likewise.
631 (throw_error): Call throw_verror rather than throw_it.
632 * utils.h (vfatal): Removed.
634 * utils.c (vfatal): Removed.
636 (internal_verror): Replaced call to fatal with call to throw_quit.
637 (quit): Replaced calls to fatal with calls to throw_quit.
639 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
641 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
644 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
646 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
647 less than zero in conditional expression.
649 2014-07-23 Tom Tromey <tromey@redhat.com>
651 * make-target-delegates ($ARGS_PART): Match trailing close paren.
652 ($INTRO_PART): Don't match whitespace.
653 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
655 ($METHOD): Add $METHOD_TRAILER.
657 (scan_target_h): New sub.
658 Change main loop not to collect state.
659 * target-delegates.c: Rebuild.
661 2014-07-23 Gary Benson <gbenson@redhat.com>
663 * cp-support.c (gdb_demangle): Fix build on systems without
666 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
668 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
669 for reference entry value target data value.
671 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
673 * stack.c (read_frame_arg): Verify value_optimized_out before calling
674 value_available_contents_eq.
676 2014-07-22 Pedro Alves <palves@redhat.com>
678 * value.c (allocate_optimized_out_value): Don't mark value as
681 2014-07-22 Jiong Wang <jiong.wang@arm.com>
683 * MAINTAINERS (Write After Approval): Update my email address.
685 2014-07-20 Doug Evans <dje@google.com>
688 * remote.c (putpkt_binary): Add text to error message.
690 2014-07-20 Yao Qi <yao@codesourcery.com>
692 * eval.c: Remove "Chill" from comments.
693 * gdbtypes.h: Likewise.
694 * symtab.h: Likewise.
696 2014-07-20 Yao Qi <yao@codesourcery.com>
698 * std-operator.def: Update comments to TERNOP_SLICE.
700 2014-07-20 Yao Qi <yao@codesourcery.com>
702 * std-operator.def: Remove BINOP_RANGE.
703 * breakpoint.c (watchpoint_exp_is_const): Update.
704 * expprint.c (dump_subexp_body_standard): Likewise.
705 * eval.c (init_array_element): Remove dead code.
706 (evaluate_subexp_standard): Likewise.
708 2014-07-20 Yao Qi <yao@codesourcery.com>
710 * std-operator.def: Remove BINOP_IN.
711 * breakpoint.c (watchpoint_exp_is_const): Update.
712 * eval.c (evaluate_subexp_standard): Likewise.
713 * expprint.c (dump_subexp_body_standard): Likewise.
715 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
717 * microblaze-tdep.c (microblaze_register_names): Add
718 the rshr and rslr register names.
719 (microblaze_gdbarch_init): Use of tdesc_has_registers.
720 Use of tdesc_find_feature. Use of tdesc_data_alloc.
721 Use of tdesc_numbered_register. Use of
722 microblaze_register_g_packet_guesses. Use of
723 tdesc_use_registers. Use of set_gdbarch_register_type.
724 (microblaze_register_g_packet_guesses): New.
725 * microblaze-tdep.h (microblaze_reg_num): Add
726 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
727 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
728 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
729 * features/microblaze-core.xml: New file.
730 * features/microblaze-stack-protect.xml: New file.
731 * features/microblaze-with-stack-protect.c: New file.
732 * features/microblaze-with-stack-protect.xml: New file.
733 * features/microblaze.xml: New file.
734 * features/microblaze.c: New file.
735 * features/Makefile (microblaze-with-stack-protect): Add
736 microblaze-with-stack-protect microblaze and microblaze-expedite.
737 * regformats/microblaze-with-stack-protect.dat: New file.
738 * regformats/microblaze.dat: New file.
739 * doc/gdb.texinfo (MicroBlaze Features): Added.
741 2014-07-18 Tom Tromey <tromey@redhat.com>
743 * exec.c (exec_ops): Now static.
744 * exec.h (exec_ops): Don't declare.
746 2014-07-18 Tom Tromey <tromey@redhat.com>
748 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
749 to find_target_beneath.
750 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
752 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
754 2014-07-18 Tom Tromey <tromey@redhat.com>
757 * utils.c (quit): Use target_supports_terminal_ours.
758 * target.h (target_supports_terminal_ours): Declare.
759 * target.c (target_supports_delete_record): Don't check
760 to_delete_record against NULL.
761 (target_supports_terminal_ours): New function.
763 2014-07-18 Tom Tromey <tromey@redhat.com>
766 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
767 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
768 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
769 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
770 * windows-nat.c (windows_xfer_partial): Always delegate.
771 * record-btrace.c (record_btrace_xfer_partial): Simplify
773 (record_btrace_fetch_registers, record_btrace_store_registers)
774 (record_btrace_prepare_to_store, record_btrace_resume)
775 (record_btrace_wait, record_btrace_find_new_threads)
776 (record_btrace_thread_alive): Likewise.
777 * procfs.c (procfs_xfer_partial): Always delegate.
778 * corelow.c (core_xfer_partial): Always delegate.
779 * sol-thread.c (sol_find_new_threads): Simplify delegation.
781 2014-07-18 Tom Tromey <tromey@redhat.com>
783 * exec.c (exec_make_note_section): Move earlier.
785 2014-07-17 Doug Evans <dje@google.com>
788 * maint.c (count_symtabs_and_blocks): Handle NULL
789 current_program_space.
790 (report_command_stats): Check global enabled flag in addition to
791 recorded enabled flag.
792 (make_command_stats_cleanup): Handle msg_type == 0, startup.
794 2014-07-16 Pedro Alves <palves@redhat.com>
796 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
798 2014-07-16 Tom Tromey <tromey@redhat.com>
800 * target.h (struct target_ops) <to_delete_record>: Reformat
803 2014-07-16 Tom Tromey <tromey@redhat.com>
805 * target-delegates.c: Rebuild.
807 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
809 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
810 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
811 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
812 (avr_pointer_to_address): Likewise.
813 (avr_address_class_type_flags): New function.
814 (avr_address_class_type_flags_to_name): Likewise.
815 (avr_address_class_name_to_type_flags): Likewise.
816 (avr_gdbarch_init): Set address_class_type_flags,
817 address_class_type_flags_to_name and
818 address_class_name_to_type_flags.
820 2014-07-15 Pedro Alves <palves@redhat.com>
822 * linux-nat.c (kill_callback): Save errno and work with saved
825 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
827 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
829 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
831 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
832 breakpoint support correctly.
834 2014-07-14 Pedro Alves <palves@redhat.com>
836 * utils.c (prompt_for_continue): Call target_terminal_ours.
838 2014-07-14 Pedro Alves <palves@redhat.com>
840 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
841 catch_errors. Don't re-enable stdin or notify observers where,
843 (fetch_inferior_event_wrapper): Delete.
845 2014-07-14 Pedro Alves <palves@redhat.com>
848 * top.c: Include "inf-loop.h".
849 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
851 (gdb_readline_wrapper_cleanup): Make the target async again, if it
853 (gdb_readline_wrapper): Store whether the target is async, and
856 2014-07-14 Pedro Alves <palves@redhat.com>
859 * top.c (gdb_readline_wrapper_line): Tweak comment.
860 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
861 the input handler callback.
863 2014-07-14 Pedro Alves <palves@redhat.com>
866 * main.c: Include event-top.h.
867 (handle_command_errors): New function.
868 (catch_command_errors, catch_command_errors_const): Use it.
870 2014-07-14 Pedro Alves <palves@redhat.com>
872 * exceptions.c (catch_command_errors, catch_command_errors_const):
874 * exceptions.h (catch_command_errors_ftype)
875 (catch_command_errors_const_ftype): Moved to main.c.
876 (catch_command_errors, catch_command_errors_const): Delete
878 * main.c (catch_command_errors_ftype)
879 (catch_command_errors_const_ftype): Moved here from exceptions.h.
880 (catch_command_errors, catch_command_errors_const)): Moved here
881 from exceptions.c and make static.
883 2014-07-14 Pedro Alves <palves@redhat.com>
885 * exceptions.c (print_any_exception): Delete.
886 (catch_exceptions_with_msg): Use exception_print instead of
888 (catch_errors): Use exception_fprintf instead of
890 (catch_command_errors, catch_command_errors_const): Use
891 exception_print instead of print_any_exception.
893 2014-07-14 Pedro Alves <palves@redhat.com>
895 * infcall.c (run_inferior_call): Set 'sync_execution' while
896 running the inferior call.
898 2014-07-14 Pedro Alves <palves@redhat.com>
900 * value.c (value_contents_equal): Delete function.
901 * value.h (value_contents_equal): Delete declaration.
903 2014-07-14 Tom Tromey <tromey@redhat.com>
906 * gdbtypes.c (is_dynamic_type_internal): New function, from
908 (is_dynamic_type): Rewrite.
909 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
910 (resolve_dynamic_struct): Likewise.
911 (resolve_dynamic_type_internal): New function, from
912 resolve_dynamic_type.
913 (resolve_dynamic_type): Rewrite.
915 2014-07-14 Tom Tromey <tromey@redhat.com>
917 * target.c (target_require_runnable): Also check record_stratum.
920 2014-07-11 Yao Qi <yao@codesourcery.com>
922 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
923 thumb_instruction_restores_sp return true.
925 2014-07-11 Yao Qi <yao@codesourcery.com>
927 * arm-tdep.c (thumb_instruction_restores_sp): New function.
928 (thumb_in_function_epilogue_p): Call
929 thumb_instruction_restores_sp.
931 2014-07-11 Yao Qi <yao@codesourcery.com>
933 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
935 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
937 2014-07-11 Gary Benson <gbenson@redhat.com>
939 * amd64-linux-nat.c (gdbcore.h): Remove include.
940 (regset.h): Likewise.
941 (nat/linux-btrace.h): Likewise.
942 (btrace.h): Likewise.
943 (gdb_assert.h): Likewise.
944 (string.h): Likewise.
945 (sys/uio.h): Likewise.
946 (sys/debugreg.h): Likewise.
947 (sys/syscall.h): Likewise.
948 (sys/procfs.h): Likewise.
949 (sys/user.h): Likewise.
950 (asm/ptrace.h): Likewise.
951 (i386-nat.h): Likewise.
952 * i386-linux-nat.c (i386-nat.h): Likewise.
953 (regset.h): Likewise.
954 (target.h): Likewise.
955 (linux-nat.h): Likewise.
956 (nat/linux-btrace.h): Likewise.
957 (btrace.h): Likewise.
958 (gdb_assert.h): Likewise.
959 (string.h): Likewise.
960 (sys/uio.h): Likewise.
961 (sys/user.h): Likewise.
962 (sys/procfs.h): Likewise.
963 (sys/reg.h): Likewise.
964 (sys/debugreg.h): Likewise.
965 (ORIG_EAX): Remove definition.
967 2014-07-11 Gary Benson <gbenson@redhat.com>
969 * i386-linux-nat.h: New file.
970 * x86-linux-nat.h: Likewise.
971 * x86-linux-nat.c: Likewise.
972 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
973 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
974 * config/i386/linux64.mh (NATDEPFILES): Likewise.
975 * amd64-linux-nat.c (x86-linux-nat.h): New include.
976 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
977 (PTRACE_SETREGSET): Likewise.
978 (arch_lwp_info): Now in x86-linux-nat.c.
979 (have_ptrace_getregset): Now in x86-linux-nat.h.
980 (x86_linux_dr_get): Now in x86-linux-nat.c.
981 (x86_linux_dr_set): Likewise.
982 (x86_linux_dr_get_addr): Likewise.
983 (x86_linux_dr_get_control): Likewise.
984 (x86_linux_dr_get_status): Likewise.
985 (update_debug_registers_callback): Likewise.
986 (x86_linux_dr_set_control): Likewise.
987 (x86_linux_dr_set_addr): Likewise.
988 (x86_linux_prepare_to_resume): Likewise.
989 (x86_linux_new_thread): Likewise.
990 (x86_linux_new_fork): Likewise.
991 (x86_linux_get_thread_area): Likewise.
992 (super_post_startup_inferior): Likewise.
993 (x86_linux_child_post_startup_inferior): Likewise.
994 (AMD64_LINUX_USER64_CS): Likewise.
995 (AMD64_LINUX_X32_DS): Likewise.
996 (x86_linux_read_description): Likewise.
997 (x86_linux_enable_btrace): Likewise.
998 (x86_linux_disable_btrace): Likewise.
999 (x86_linux_teardown_btrace): Likewise.
1000 (x86_linux_read_btrace): Likewise.
1001 (x86_linux_create_target): Likewise.
1002 (x86_linux_add_target): Likewise.
1003 * i386-linux-nat.c (x86-linux-nat.h): New include.
1004 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
1005 (PTRACE_SETREGSET): Likewise.
1006 (arch_lwp_info): Now in x86-linux-nat.c.
1007 (have_ptrace_getregset): Now in x86-linux-nat.h.
1008 (x86_linux_dr_get): Now in x86-linux-nat.c.
1009 (x86_linux_dr_set): Likewise.
1010 (x86_linux_dr_get_addr): Likewise.
1011 (x86_linux_dr_get_control): Likewise.
1012 (x86_linux_dr_get_status): Likewise.
1013 (update_debug_registers_callback): Likewise.
1014 (x86_linux_dr_set_control): Likewise.
1015 (x86_linux_dr_set_addr): Likewise.
1016 (x86_linux_prepare_to_resume): Likewise.
1017 (x86_linux_new_thread): Likewise.
1018 (x86_linux_new_fork): Likewise.
1019 (x86_linux_get_thread_area): Likewise.
1020 (super_post_startup_inferior): Likewise.
1021 (x86_linux_child_post_startup_inferior): Likewise.
1022 (AMD64_LINUX_USER64_CS): Likewise.
1023 (AMD64_LINUX_X32_DS): Likewise.
1024 (x86_linux_read_description): Likewise.
1025 (x86_linux_enable_btrace): Likewise.
1026 (x86_linux_disable_btrace): Likewise.
1027 (x86_linux_teardown_btrace): Likewise.
1028 (x86_linux_read_btrace): Likewise.
1029 (x86_linux_create_target): Likewise.
1030 (x86_linux_add_target): Likewise.
1032 2014-07-11 Gary Benson <gbenson@redhat.com>
1034 * amd64-linux-nat.c: Comment and whitespace changes.
1035 * i386-linux-nat.c: Comment and whitespace changes.
1037 2014-07-11 Gary Benson <gbenson@redhat.com>
1039 * amd64-linux-nat.c (x86_linux_create_target): New function.
1040 (x86_linux_add_target): Likewise.
1041 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1042 * i386-linux-nat.c (x86_linux_create_target): New function.
1043 (x86_linux_add_target): Likewise.
1044 (_initialize_i386_linux_nat): Delegate to the above new functions.
1046 2014-07-11 Gary Benson <gbenson@redhat.com>
1048 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1049 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1050 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1051 (ps_get_thread_area): Delegate to the above.
1053 2014-07-11 Gary Benson <gbenson@redhat.com>
1055 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1056 x86_linux_read_description. All uses updated. amd64-specific
1057 code conditionalized. Conditionalized i386-specific code added.
1058 Redundant cast removed.
1059 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1060 x86_linux_read_description. All uses updated. i386-specific
1061 code conditionalized. Conditionalized amd64-specific code added.
1062 One sizeof replaced with the actual type it is describing.
1064 2014-07-11 Gary Benson <gbenson@redhat.com>
1066 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1067 x86_linux_dr_get. All uses updated.
1068 (amd64_linux_dr_set): Renamed to
1069 x86_linux_dr_set. All uses updated.
1070 (amd64_linux_dr_get_addr): Renamed to
1071 x86_linux_dr_get_addr. All uses updated.
1072 (amd64_linux_dr_get_control): Renamed to
1073 x86_linux_dr_get_control. All uses updated.
1074 (amd64_linux_dr_get_status): Renamed to
1075 x86_linux_dr_get_status. All uses updated.
1076 (amd64_linux_dr_set_control): Renamed to
1077 x86_linux_dr_set_control. All uses updated.
1078 (amd64_linux_dr_set_addr): Renamed to
1079 x86_linux_dr_set_addr. All uses updated.
1080 (amd64_linux_prepare_to_resume): Renamed to
1081 x86_linux_prepare_to_resume. All uses updated.
1082 (amd64_linux_new_thread): Renamed to
1083 x86_linux_new_thread. All uses updated.
1084 (amd64_linux_new_fork): Renamed to
1085 x86_linux_new_fork. All uses updated.
1086 (amd64_linux_child_post_startup_inferior): Renamed to
1087 x86_linux_child_post_startup_inferior. All uses updated.
1088 (amd64_linux_enable_btrace): Renamed to
1089 x86_linux_enable_btrace. All uses updated.
1090 (amd64_linux_disable_btrace): Renamed to
1091 x86_linux_disable_btrace. All uses updated.
1092 (amd64_linux_teardown_btrace): Renamed to
1093 x86_linux_teardown_btrace. All uses updated.
1094 (amd64_linux_read_btrace): Renamed to
1095 x86_linux_read_btrace. All uses updated.
1096 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1097 x86_linux_dr_get. All uses updated.
1098 (i386_linux_dr_set): Renamed to
1099 x86_linux_dr_set. All uses updated.
1100 (i386_linux_dr_get_addr): Renamed to
1101 x86_linux_dr_get_addr. All uses updated.
1102 (i386_linux_dr_get_control): Renamed to
1103 x86_linux_dr_get_control. All uses updated.
1104 (i386_linux_dr_get_status): Renamed to
1105 x86_linux_dr_get_status. All uses updated.
1106 (i386_linux_dr_set_control): Renamed to
1107 x86_linux_dr_set_control. All uses updated.
1108 (i386_linux_dr_set_addr): Renamed to
1109 x86_linux_dr_set_addr. All uses updated.
1110 (i386_linux_prepare_to_resume): Renamed to
1111 x86_linux_prepare_to_resume. All uses updated.
1112 (i386_linux_new_thread): Renamed to
1113 x86_linux_new_thread. All uses updated.
1114 (i386_linux_new_fork): Renamed to
1115 x86_linux_new_fork. All uses updated.
1116 (i386_linux_child_post_startup_inferior): Renamed to
1117 x86_linux_child_post_startup_inferior. All uses updated.
1118 (i386_linux_enable_btrace): Renamed to
1119 x86_linux_enable_btrace. All uses updated.
1120 (i386_linux_disable_btrace): Renamed to
1121 x86_linux_disable_btrace. All uses updated.
1122 (i386_linux_teardown_btrace): Renamed to
1123 x86_linux_teardown_btrace. All uses updated.
1124 (i386_linux_read_btrace): Renamed to
1125 x86_linux_read_btrace. All uses updated.
1127 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1129 * remote.c (extended_remote_post_attach): New function.
1130 (init_extended_remote_ops): Install it as to_post_attach method.
1132 2014-07-09 Pedro Alves <palves@redhat.com>
1134 * infcmd.c (attach_command_post_wait): Don't call
1135 target_terminal_inferior here.
1136 (attach_command): Call it here instead.
1138 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1140 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1142 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1143 from varobj.c, with additional checks.
1144 (c_varobj_ops): Fill in is_path_expr_parent field.
1145 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1146 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1148 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1150 (varobj_default_is_path_expr_parent): New function.
1151 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1152 (varobj_default_is_path_expr_parent): Declare new function.
1154 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1156 * infcmd.c (finish_backward): Turn internal error into normal error.
1158 2014-07-07 Pedro Alves <palves@redhat.com>
1161 * remote.c (async_handle_remote_sigint)
1162 (async_handle_remote_sigint_twice): Call
1163 gdb_call_async_signal_handler instead of
1164 mark_async_signal_handler.
1166 2014-07-07 Tom Tromey <tromey@redhat.com>
1168 * target-delegates.c: Rebuild.
1169 * target.c (target_info_record): Remove.
1170 * record.c (info_record_command): Unconditionally call
1172 * target.h (struct target_ops) <to_info_record>: Use
1173 TARGET_DEFAULT_IGNORE.
1174 (target_info_record): Remove.
1176 2014-07-07 Tom Tromey <tromey@redhat.com>
1178 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1179 TARGET_DEFAULT_NORETURN.
1180 * target.c (generic_tls_error): New function.
1181 (target_translate_tls_address): Don't search target stack.
1182 * target-delegates.c: Rebuild.
1183 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1185 * linux-thread-db.c (thread_db_get_thread_local_address):
1186 Unconditionally call beneath target.
1188 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1190 * cli/cli-logging.c (pop_output_files): Assign targerr to
1193 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1195 * MAINTAINERS (Write After Approval): Update my email address.
1197 2014-07-02 Gary Benson <gbenson@redhat.com>
1199 * proc-service.c (ps_xfer_memory): Update comment.
1200 (ps_pstop): Remove unused function.
1201 (ps_pcontinue): Likewise.
1202 (ps_lstop): Likewise.
1203 (ps_lcontinue): Likewise.
1204 (ps_lgetxregsize): Likewise.
1205 (ps_lgetxregs): Likewise.
1206 (ps_lsetxregs): Likewise.
1207 (ps_plog): Likewise.
1208 (ps_ptread): Likewise.
1209 (ps_ptwrite): Likewise.
1211 2014-07-01 Mark Wielaard <mjw@redhat.com>
1213 * dwarf2read.c (add_array_cv_type): New function.
1214 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1215 (read_tag_volatile_type): Likewise.
1217 2014-07-01 Tom Tromey <tromey@redhat.com>
1219 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1220 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1221 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1222 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1223 * command.h (cmd_cfunc_ftype): Move earlier.
1224 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1225 (add_com, add_info): Use cmd_cfunc_ftype.
1227 2014-06-30 Tom Tromey <tromey@redhat.com>
1229 * symtab.c (operator_chars): Make parameters and return type
1231 (file_matches): Make "files" const.
1232 (struct search_symbols_data) <files>: Now const.
1233 (search_symbols): Make "regexp" and "files" parameters const.
1235 (symtab_symbol_info): Remove cast.
1236 (rbreak_command): Update.
1237 * symtab.h (search_symbols): Update.
1239 2014-06-27 Yao Qi <yao@codesourcery.com>
1241 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1242 Change parameter type to 'struct thread_info *'. Caller
1244 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1246 * dummy-frame.c (struct dummy_frame_id): New.
1247 (dummy_frame_id_eq): New function.
1248 (struct dummy_frame) <id>: Change its type to 'struct
1250 (dummy_frame_push): Add parameter ptid and save it in
1252 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1254 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1256 (lookup_dummy_frame): Change parameter type to 'struct
1257 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1258 instead of frame_id_eq.
1259 (dummy_frame_pop): Add parameter ptid. Callers updated.
1260 Update comments. Compose dummy_frame_id and pass it to
1262 (dummy_frame_discard): Add parameter ptid.
1263 (dummy_frame_sniffer): Compose dummy_frame_id and call
1264 dummy_frame_id_eq instead of frame_id_eq.
1265 (fprint_dummy_frames): Print ptid.
1266 * dummy-frame.h: Remove comments.
1267 (dummy_frame_push): Add ptid in declaration.
1268 (dummy_frame_pop, dummy_frame_discard): Likewise.
1270 2014-06-26 Tom Tromey <tromey@redhat.com>
1272 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1273 * command.h (error_no_arg): Update.
1275 2014-06-26 Tom Tromey <tromey@redhat.com>
1277 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1278 (do_show_command): Make "arg" const.
1279 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1281 2014-06-26 Tom Tromey <tromey@redhat.com>
1283 * record-full.c (record_full_get_bookmark): Make "args" const.
1284 (record_full_goto_bookmark): Make "raw_bookmark" const.
1285 * record.c (record_goto): New function.
1286 (cmd_record_goto): Use it. Now static.
1287 * record.h (record_goto): Declare.
1288 (cmd_record_goto): Remove declaration.
1289 * target-delegates.c: Rebuild.
1290 * target.h (struct target_ops) <to_get_bookmark,
1291 to_goto_bookmark>: Make parameter const.
1293 2014-06-26 Tom Tromey <tromey@redhat.com>
1295 * defs.h (generic_load): Update.
1296 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1297 * monitor.c (monitor_load): Make "args" const.
1298 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1299 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1301 (mips_load): Make "file" const.
1302 * remote-sim.c (gdbsim_load): Make "args" const.
1303 * remote.c (remote_load): Make "name" const.
1304 * symfile.c (generic_load): Make "args" const.
1305 * target-delegates.c: Rebuild.
1306 * target.c (target_load): Make "arg" const.
1307 (debug_to_load): Make "args" const.
1308 * target.h (struct target_ops) <to_load>: Make parameter const.
1309 (target_load): Update.
1311 2014-06-26 Tom Tromey <tromey@redhat.com>
1314 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1315 (dwarf2_physname, read_partial_die)
1316 (guess_partial_die_structure_name, fixup_partial_die)
1317 (guess_full_die_structure_name, anonymous_struct_prefix)
1318 (dwarf2_name): Use per-BFD obstack.
1320 2014-06-26 Yao Qi <yao@codesourcery.com>
1322 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1323 dummyframe and this_id into inner block below.
1325 2014-06-26 Yao Qi <yao@codesourcery.com>
1327 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1328 with "signal_pass[0]" in the initialization of signal_pass.
1330 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1332 * record-btrace.c (record_btrace_generating_corefile)
1333 (record_btrace_prepare_to_generate_core)
1334 (record_btrace_done_generating_core): New.
1335 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1336 (record_btrace_store_registers, record_btrace_prepare_to_store):
1337 Forward request when generating a core file.
1338 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1339 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1340 to_done_generating_core.
1342 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1344 * target.h (target_ops) <to_prepare_to_generate_core>
1345 <to_done_generating_core>: New.
1346 (target_prepare_to_generate_core, target_done_generating_core): New.
1347 * target.c (target_prepare_to_generate_core)
1348 (target_done_generating_core): New.
1349 * target-delegates.c: Regenerate.
1350 * gcore.c: (write_gcore_file): Rename to ...
1351 (write_gcore_file_1): ...this.
1352 (write_gcore_file): Call target_prepare_to_generate_core
1353 and target_done_generating_core.
1355 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1357 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1358 * gcore.c (write_gcore_file): Free memory returned from
1359 make_corefile_notes.
1360 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1361 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1363 2014-06-24 Yao Qi <yao@codesourcery.com>
1365 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1366 (arm_linux_init_abi): Set skip_trampoline_code with
1367 gdbarch_skip_trampoline_code instead of
1368 find_solib_trampoline_target.
1370 2014-06-24 Yao Qi <yao@codesourcery.com>
1372 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1373 arm_skip_bx_reg returns non-zero.
1375 2014-06-24 Yao Qi <yao@codesourcery.com>
1377 * arm-tdep.c (arm_skip_bx_reg): New function.
1378 (arm_skip_stub): Call arm_skip_bx_reg.
1380 2014-06-23 Don Breazeal <donb@codesourcery.com>
1382 * MAINTAINERS: Add myself as write-after-approval maintainer.
1384 2014-06-23 Pedro Alves <palves@redhat.com>
1386 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1387 DR_CONTROL before setting DR0..DR3.
1388 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1389 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1390 bits of DR_CONTROL related to the debug register slot being
1391 disabled. If all slots are vacant, clear local slowdown as well,
1392 and assert DR_CONTROL is 0.
1394 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1396 * python/lib/gdb/command/xmethods.py
1397 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1398 current progspace only if the string "progspace" matches LOCUS_RE.
1400 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1402 Fix --with-system-readline with readline-6.3 patch 5.
1403 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1404 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1407 2014-06-20 Tom Tromey <tromey@redhat.com>
1409 * dwarf2read.c (dw2_get_real_path): Use correct type in
1411 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1413 2014-06-20 Gary Benson <gbenson@redhat.com>
1415 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1416 * common/glibc_thread_db.h: Likewise.
1417 * common/i386-cpuid.h: Likewise.
1418 * common/i386-gcc-cpuid.h: Likewise.
1419 * common/linux-btrace.h: Likewise.
1420 * common/linux-osdata.h: Likewise.
1421 * common/linux-procfs.h: Likewise.
1422 * common/linux-ptrace.h: Likewise.
1423 * common/mips-linux-watch.h: Likewise.
1424 * common/linux-btrace.c: Moved to nat.
1425 * common/linux-osdata.c: Likewise.
1426 * common/linux-procfs.c: Likewise.
1427 * common/linux-ptrace.c: Likewise.
1428 * common/mips-linux-watch.c: Likewise.
1429 * nat/gdb_thread_db.h: Moved from common.
1430 * nat/glibc_thread_db.h: Likewise.
1431 * nat/i386-cpuid.h: Likewise.
1432 * nat/i386-gcc-cpuid.h: Likewise.
1433 * nat/linux-btrace.c: Likewise.
1434 * nat/linux-btrace.h: Likewise.
1435 * nat/linux-osdata.c: Likewise.
1436 * nat/linux-osdata.h: Likewise.
1437 * nat/linux-procfs.c: Likewise.
1438 * nat/linux-procfs.h: Likewise.
1439 * nat/linux-ptrace.c: Likewise.
1440 * nat/linux-ptrace.h: Likewise.
1441 * nat/mips-linux-watch.c: Likewise.
1442 * nat/mips-linux-watch.h: Likewise.
1443 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1444 (object file files): Reordered.
1445 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1446 of glibc_thread_db.h.
1448 2014-06-20 Gary Benson <gbenson@redhat.com>
1450 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1451 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1452 (i386_dr_low): Likewise.
1453 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1454 (i386_dr_low_set_addr): Likewise.
1455 (i386_dr_low_get_addr): Likewise.
1456 (i386_dr_low_can_set_control): Likewise.
1457 (i386_dr_low_set_control): Likewise.
1458 (i386_dr_low_get_control): Likewise.
1459 (i386_dr_low_get_status): Likewise.
1460 (i386_get_debug_register_length): Likewise.
1461 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1462 (i386_dr_low): Likewise.
1463 * nat/i386-dregs.c (i386-low.h): Remove include.
1464 (i386-nat.h): Likewise.
1465 (nat/i386-dregs.h): New include.
1466 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1467 (i386_dr_low_set_addr): Likewise.
1468 (i386_dr_low_get_addr): Likewise.
1469 (i386_dr_low_can_set_control): Likewise.
1470 (i386_dr_low_set_control): Likewise.
1471 (i386_dr_low_get_control): Likewise.
1472 (i386_dr_low_get_status): Likewise.
1473 (i386_get_debug_register_length): Likewise.
1474 (debug_hw_points): Likewise.
1476 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1478 * Makefile.in (SFILES): Add d-exp.y.
1479 (YYFILES): Add d-exp.c.
1480 (YYOBJ): Add d-exp.o.
1481 (local-maintainer-clean): Delete d-exp.c.
1482 * d-exp.y: New file.
1483 * d-lang.h (d_parse): New declaration.
1484 (d_error): New declaration.
1485 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1486 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1487 PREC_ORDER operators.
1488 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1490 2014-06-19 Yao Qi <yao@codesourcery.com>
1492 * gdbthread.h (any_running): Remove the declaration.
1493 * thread.c (any_running): Remove.
1495 2014-06-19 Yao Qi <yao@codesourcery.com>
1497 * gdbthread.h (struct thread_info) <state>: Change its type to
1498 'enum thread_state'. Update comments.
1500 2014-06-19 Pedro Alves <palves@redhat.com>
1502 * gdbthread.h (ALL_THREADS): Delete.
1503 (ALL_NON_EXITED_THREADS): New macro.
1504 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1505 instead of ALL_THREADS.
1506 * infrun.c (find_thread_needs_step_over)
1507 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1508 instead of ALL_THREADS.
1509 * record-btrace.c (record_btrace_open)
1510 (record_btrace_stop_recording, record_btrace_close)
1511 (record_btrace_is_replaying, record_btrace_resume)
1512 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1513 * remote.c (append_pending_thread_resumptions): Likewise.
1514 * thread.c (thread_apply_all_command): Likewise.
1516 2014-06-19 Gary Benson <gbenson@redhat.com>
1518 * i386-nat.c (i386_stopped_by_watchpoint):
1519 Use i386_dr_stopped_by_watchpoint.
1520 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1521 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1523 2014-06-19 Gary Benson <gbenson@redhat.com>
1525 * nat/i386-dregs.c: New file.
1526 * Makefile.in (i386-dregs.o): New rule.
1527 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1528 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1529 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1530 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1531 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1532 * config/i386/go32.mh (NATDEPFILES): Likewise.
1533 * config/i386/linux.mh (NATDEPFILES): Likewise.
1534 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1535 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1536 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1537 * i386-nat.h (debug_hw_points): New declaration.
1538 * i386-nat.c (breakpoint.h): Remove include.
1539 (command.h): Likewise.
1540 (target.h): Likewise.
1541 (gdb_assert.h): Likewise.
1542 (debug_hw_points): Made nonstatic.
1543 (debug_printf): Now in i386-dregs.c.
1544 (TARGET_HAS_DR_LEN_8): Likewise.
1545 (DR_CONTROL_SHIFT): Likewise.
1546 (DR_CONTROL_SIZE): Likewise.
1547 (DR_RW_EXECUTE): Likewise.
1548 (DR_RW_WRITE): Likewise.
1549 (DR_RW_READ): Likewise.
1550 (DR_RW_IORW): Likewise.
1551 (DR_LEN_1): Likewise.
1552 (DR_LEN_2): Likewise.
1553 (DR_LEN_4): Likewise.
1554 (DR_LEN_8): Likewise.
1555 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1556 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1557 (DR_ENABLE_SIZE): Likewise.
1558 (DR_LOCAL_SLOWDOWN): Likewise.
1559 (DR_GLOBAL_SLOWDOWN): Likewise.
1560 (DR_CONTROL_RESERVED): Likewise.
1561 (I386_DR_CONTROL_MASK): Likewise.
1562 (I386_DR_VACANT): Likewise.
1563 (I386_DR_LOCAL_ENABLE): Likewise.
1564 (I386_DR_GLOBAL_ENABLE): Likewise.
1565 (I386_DR_DISABLE): Likewise.
1566 (I386_DR_SET_RW_LEN): Likewise.
1567 (I386_DR_GET_RW_LEN): Likewise.
1568 (I386_DR_WATCH_HIT): Likewise.
1569 (i386_wp_op_t): Likewise.
1570 (i386_show_dr): Likewise.
1571 (i386_length_and_rw_bits): Likewise.
1572 (i386_insert_aligned_watchpoint): Likewise.
1573 (i386_remove_aligned_watchpoint): Likewise.
1574 (i386_handle_nonaligned_watchpoint): Likewise.
1575 (i386_update_inferior_debug_regs): Likewise.
1576 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1577 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1578 (i386_region_ok_for_watchpoint):
1579 Use i386_dr_region_ok_for_watchpoint.
1580 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1582 2014-06-19 Gary Benson <gbenson@redhat.com>
1584 * i386-nat.c (i386_insert_hw_breakpoint): Use
1585 i386_insert_watchpoint.
1586 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1588 2014-06-19 Gary Benson <gbenson@redhat.com>
1590 * i386-nat.c (i386_dr_show): Renamed to
1591 i386_show_dr and made static. All uses updated.
1592 (i386_dr_length_and_rw_bits): Renamed to
1593 i386_length_and_rw_bits and made static.
1595 (i386_dr_insert_aligned_watchpoint): Renamed to
1596 i386_insert_aligned_watchpoint and made static.
1598 (i386_dr_remove_aligned_watchpoint): Renamed to
1599 i386_remove_aligned_watchpoint and made static.
1601 (i386_dr_update_inferior_debug_regs): Renamed to
1602 i386_update_inferior_debug_regs and made static.
1604 * nat/i386-dregs.h (i386_dr_show): Removed.
1605 (i386_dr_length_and_rw_bits): Likewise.
1606 (i386_dr_insert_aligned_watchpoint): Likewise.
1607 (i386_dr_remove_aligned_watchpoint): Likewise.
1608 (i386_dr_update_inferior_debug_regs): Likewise.
1610 2014-06-19 Gary Benson <gbenson@redhat.com>
1612 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1613 * configure: Regenerate.
1614 * config.in: Likewise.
1615 * main.c (signal.h): New include.
1616 (setup_alternate_signal_stack): New function.
1617 (captured_main): Call the above.
1618 * cp-support.c (signal.h): New include.
1619 (catch_demangler_crashes): New flag.
1620 (SIGJMP_BUF): New define.
1621 (SIGSETJMP): Likewise.
1622 (SIGLONGJMP): Likewise.
1623 (gdb_demangle_jmp_buf): New static global.
1624 (gdb_demangle_attempt_core_dump): Likewise.
1625 (gdb_demangle_signal_handler): New function.
1626 (gdb_demangle): If catch_demangler_crashes is set, install the
1627 above signal handler before calling bfd_demangle, and restore
1628 the original signal handler afterwards. Display the offending
1629 symbol and call demangler_warning the first time a segmentation
1631 (_initialize_cp_support): New maint set/show command.
1633 2014-06-19 Gary Benson <gbenson@redhat.com>
1635 * utils.h (resource_limit_kind): New enum.
1636 (can_dump_core): New declaration.
1637 (warn_cant_dump_core): Likewise.
1638 (dump_core): Likewise.
1639 * utils.c (dump_core): Made nonstatic. Added new
1640 parameter "limit_kind".
1641 (can_dump_core): Made nonstatic. Moved printing code to...
1642 (warn_cant_dump_core): New function.
1643 (can_dump_core_warn): Likewise.
1644 (internal_vproblem): Replace calls to can_dump_core with
1645 calls to can_dump_core_warn. Supply new argument to each.
1647 2014-06-19 Gary Benson <gbenson@redhat.com>
1649 * utils.h (demangler_vwarning): New declaration.
1650 (demangler_warning): Likewise.
1651 * utils.c (struct internal_problem)
1652 <user_settable_should_quit>: New field.
1653 <user_settable_should_dump_core>: Likewise
1654 (internal_error_problem): Add values for above new fields.
1655 (internal_warning_problem): Likewise.
1656 (demangler_warning_problem): New static global.
1657 (demangler_vwarning): New function.
1658 (demangler_warning): Likewise.
1659 (add_internal_problem_command): Selectively add commands.
1660 (_initialize_utils): New internal problem command.
1661 * maint.c (maintenance_demangler_warning): New function.
1662 (_initialize_maint_cmds): New command.
1664 2014-06-18 Tom Tromey <tromey@redhat.com>
1666 * f-valprint.c (info_common_command_for_block): Update.
1667 * symtab.h (struct general_symbol_info) <common_block>: Now
1670 2014-06-18 Tom Tromey <tromey@redhat.com>
1672 * symtab.h (struct symtab) <blockvector>: Now const.
1673 * ada-lang.c (ada_add_global_exceptions): Update.
1674 * buildsym.c (augment_type_symtab): Update.
1675 * dwarf2read.c (dw2_lookup_symbol): Update.
1676 * jit.c (finalize_symtab): Update.
1677 * jv-lang.c (add_class_symtab_symbol): Update.
1678 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1680 * objfiles.c (objfile_relocate1): Update.
1681 * psymtab.c (lookup_symbol_aux_psymtabs)
1682 (maintenance_check_psymtabs): Update.
1683 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1685 * spu-tdep.c (spu_catch_start): Update.
1686 * symmisc.c (dump_symtab_1): Update.
1687 * symtab.c (lookup_global_symbol_from_objfile)
1688 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1689 (basic_lookup_transparent_type_quick)
1690 (basic_lookup_transparent_type, find_pc_sect_symtab)
1691 (find_pc_sect_line, search_symbols): Update.
1692 * block.c (find_block_in_blockvector): Make "bl" const.
1693 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1695 (blockvector_contains_pc): Make "bv" const.
1696 (block_for_pc_sect): Update.
1697 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1698 (blockvector_contains_pc): Update.
1699 * breakpoint.c (resolve_sal_pc): Update.
1700 * inline-frame.c (block_starting_point_at): Update.
1702 2014-06-18 Tom Tromey <tromey@redhat.com>
1704 * completer.c (complete_line): Make "line_buffer" const.
1705 * completer.h (complete_line): Update.
1707 2014-06-18 Tom Tromey <tromey@redhat.com>
1709 * symtab.c (add_macro_name): Remove unneeded cast.
1711 2014-06-18 Tom Tromey <tromey@redhat.com>
1713 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1714 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1716 2014-06-18 Tom Tromey <tromey@redhat.com>
1718 * probe.c (info_probes_for_ops): Make "arg" const.
1719 * probe.h (info_probes_for_ops): Update.
1721 2014-06-18 Tom Tromey <tromey@redhat.com>
1723 * varobj.c (varobj_create): Update.
1724 * valops.c (value_of_this): Update.
1725 * tracepoint.c (add_local_symbols, scope_info): Update.
1726 * symtab.h (struct general_symbol_info) <block>: Now const.
1727 * symtab.c (skip_prologue_sal)
1728 (default_make_symbol_completion_list_break_on)
1729 (skip_prologue_using_sal): Update.
1730 * stack.h (iterate_over_block_locals)
1731 (iterate_over_block_local_vars): Update.
1732 * stack.c (print_frame_args): Update.
1733 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1735 (get_selected_block): Make return type const.
1736 * python/py-frame.c (frapy_block): Update.
1737 * python/py-block.c (gdbpy_block_for_pc): Update.
1738 * p-exp.y (%union) <bval>: Now const.
1739 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1740 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1741 * m2-exp.y (%union) <bval>: Now const.
1742 * linespec.c (get_current_search_block): Make return type const.
1743 (create_sals_line_offset, find_label_symbols): Update.
1744 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1746 (block_starting_point_at): Make "block" const.
1747 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1748 (check_exception_resume): Update.
1749 * guile/scm-frame.c (gdbscm_frame_block): Update.
1750 * guile/scm-block.c (gdbscm_lookup_block): Update.
1751 * frame.h (get_frame_block): Update.
1752 (get_selected_block): Make return type const.
1753 * frame.c (frame_id_inner): Update.
1754 * f-valprint.c (info_common_command_for_block)
1755 (info_common_command): Update.
1756 * dwarf2loc.c (dwarf2_find_location_expression)
1757 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1758 (locexpr_describe_location_piece): Update.
1759 * c-exp.y (%union) <bval>: Now const.
1760 * breakpoint.c (resolve_sal_pc): Update.
1761 * blockframe.c (get_frame_block):Make return type const.
1762 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1763 (block_innermost_frame): Update.
1764 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1765 (block_for_pc, block_for_pc_sect): Update.
1766 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1768 (block_for_pc_sect, block_for_pc): Make return type const.
1769 * ax-gdb.c (gen_expr): Update.
1770 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1771 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1772 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1773 (ada_read_var_value): Update.
1774 * ada-exp.y (struct name_info) <block>: Now const.
1776 (block_lookup): Constify.
1778 2014-06-18 Gary Benson <gbenson@redhat.com>
1780 * nat/i386-dregs.h: New file.
1781 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1782 * i386-nat.h (i386-dregs.h): New include.
1783 (DR_FIRSTADDR): Now in i386-dregs.h.
1784 (DR_LASTADDR): Likewise.
1785 (DR_NADDR): Likewise.
1786 (DR_STATUS): Likewise.
1787 (DR_CONTROL): Likewise.
1788 (i386_debug_reg_state): Likewise.
1789 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1791 2014-06-18 Don Breazeal <donb@codesourcery.com>
1793 * breakpoint.c (set_longjmp_breakpoint): Call
1794 momentary_breakpoint_from_master with additional argument.
1795 (set_longjmp_breakpoint_for_call_dummy): Call
1796 momentary_breakpoint_from_master with additional argument.
1797 (set_std_terminate_breakpoint): Call
1798 momentary_breakpoint_from_master with additional argument.
1799 (momentary_breakpoint_from_master): Add argument to function
1800 definition and use it to initialize structure member flag.
1801 (clone_momentary_breakpoint): Call
1802 momentary_breakpoint_from_master with additional argument.
1803 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1804 member flags set in momentary_breakpoint_from_master.
1806 2014-06-18 Gary Benson <gbenson@redhat.com>
1808 * i386-nat.c (i386_show_dr): Renamed to
1809 i386_dr_show and made nonstatic. All uses updated.
1810 (i386_length_and_rw_bits): Renamed to
1811 i386_dr_length_and_rw_bits and made nonstatic.
1813 (i386_insert_aligned_watchpoint): Renamed to
1814 i386_dr_insert_aligned_watchpoint and made nonstatic.
1816 (i386_remove_aligned_watchpoint): Renamed to
1817 i386_dr_remove_aligned_watchpoint and made nonstatic.
1819 (i386_update_inferior_debug_regs): Renamed to
1820 i386_dr_update_inferior_debug_regs and made nonstatic.
1823 2014-06-18 Gary Benson <gbenson@redhat.com>
1825 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1826 (i386_dr_low_can_set_control): Likewise.
1827 (i386_dr_low_set_addr): Likewise.
1828 (i386_dr_low_set_control): Likewise.
1829 (i386_dr_low_get_addr): Likewise.
1830 (i386_dr_low_get_status): Likewise.
1831 (i386_dr_low_get_control): Likewise.
1832 (i386_insert_aligned_watchpoint): Use new macros.
1833 (i386_update_inferior_debug_regs): Likewise.
1834 (i386_stopped_data_address): Likewise.
1836 2014-06-18 Gary Benson <gbenson@redhat.com>
1838 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1839 New parameter. All uses updated.
1841 2014-06-18 Gary Benson <gbenson@redhat.com>
1843 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1846 2014-06-18 Gary Benson <gbenson@redhat.com>
1848 * i386-nat.c (debug_printf): New macro.
1849 (i386_get_debug_register_length): Likewise.
1850 (TARGET_HAS_DR_LEN_8): Use above macro.
1851 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1852 and printf_unfiltered. Use phex to format values.
1854 2014-06-18 Gary Benson <gbenson@redhat.com>
1856 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1859 2014-06-18 Gary Benson <gbenson@redhat.com>
1861 * i386-nat.c: Comment changes.
1863 2014-06-18 Gary Benson <gbenson@redhat.com>
1865 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1867 2014-06-18 Gary Benson <gbenson@redhat.com>
1869 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1870 (i386_insert_aligned_watchpoint): Likewise.
1871 (i386_remove_aligned_watchpoint): Likewise.
1872 (i386_handle_nonaligned_watchpoint): Likewise.
1874 2014-06-18 Gary Benson <gbenson@redhat.com>
1876 * i386-nat.c: Whitespace changes.
1878 2014-06-17 Samuel Bronson <naesten@gmail.com>
1880 * MAINTAINERS: Update Roland McGrath's email address.
1881 Thanks to Sergio Durigan Junior for pointing out that he left
1882 Red Hat a while ago, and giving me a current address.
1884 2014-06-17 Tom Tromey <tromey@redhat.com>
1886 * utils.h (savestring): Remove declaration.
1888 2014-06-17 Tom Tromey <tromey@redhat.com>
1890 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1892 2014-06-16 Keith Seitz <keiths@redhat.com>
1895 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1896 to update the varobj if inferior_ptid is null_ptid.
1898 2014-06-16 Tom Tromey <tromey@redhat.com>
1900 * target.h (struct target_ops) <to_info_proc>: Make parameter
1902 (target_info_proc): Update.
1903 * target.c (target_info_proc): Make "args" const.
1904 * procfs.c (procfs_info_proc): Update.
1905 * linux-tdep.c (linux_info_proc): Update.
1906 (linux_core_info_proc_mappings): Make "args" const.
1907 (linux_core_info_proc): Update.
1908 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1909 * gdbarch.c: Rebuild.
1910 * gdbarch.h: Rebuild.
1911 * corelow.c (core_info_proc): Update.
1913 2014-06-16 Tom Tromey <tromey@redhat.com>
1915 * target.h (struct target_ops) <to_disconnect>: Make parameter
1917 (target_disconnect): Update.
1918 * target.c (target_disconnect): Make "args" const.
1919 * target-delegates.c: Rebuild.
1920 * remote.c (remote_disconnect): Update.
1921 * record.h (record_disconnect): Update.
1922 * record.c (record_disconnect): Update.
1923 * inf-child.c (inf_child_disconnect): Update.
1925 2014-06-16 Tom Tromey <tromey@redhat.com>
1927 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1928 * target.c (debug_to_rcmd, default_rcmd): Update.
1929 * target-delegates.c: Rebuild.
1930 * remote.c (remote_rcmd): Update.
1931 * monitor.c (monitor_rcmd): Update.
1933 2014-06-16 Pedro Alves <palves@redhat.com>
1935 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1936 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1937 have OBJF_SHARED set.
1938 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1939 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1940 instead of OBJF_USERLOADED.
1941 * objfiles.h (OBJF_SHARED): Update comment.
1942 (userloaded_objfile_contains_address_p): Rename to ...
1943 (shared_objfile_contains_address_p): ... this, and update
1945 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1947 (remove_symbol_file_command): Skip objfiles that don't have
1950 2014-06-16 Tom Tromey <tromey@redhat.com>
1952 * minsyms.h (prim_record_minimal_symbol)
1953 (prim_record_minimal_symbol_and_info): Update comments.
1955 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1957 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1958 or --without-guile, according to how GDB was built.
1960 2014-06-13 Tom Tromey <tromey@redhat.com>
1962 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1964 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1966 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1968 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1969 help_list.Pass all_commands, not -1, to help_list.
1970 * cli/cli-dump.c (dump_command, append_command)
1971 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1972 (binary_dump_command, binary_append_command): Pass all_commands,
1973 not -1, to help_list.
1974 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1976 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1978 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1980 * top.c (set_history): Pass all_commands, not -1, to help_list.
1981 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1982 all_commands, not -1, to help_list.
1983 * symfile.c (overlay_command): Pass all_commands, not -1, to
1985 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1987 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1989 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1991 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1992 not -1, to help_list.
1993 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1994 not -1, to help_list.
1995 * maint.c (maintenance_command, maintenance_info_command)
1996 (maintenance_print_command, maintenance_set_cmd): Pass
1997 all_commands, not -1, to help_list.
1998 * macrocmd.c (macro_command): Pass all_commands, not -1, to
2000 * language.c (set_check): Pass all_commands, not -1, to help_list.
2001 * infcmd.c (unset_command): Pass all_commands, not -1, to
2003 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
2005 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
2007 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
2009 * breakpoint.c (save_command): Pass all_commands, not -1, to
2011 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
2012 all_commands, not -1, to help_list.
2014 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
2016 * regcache.c (struct register_to_invalidate): New structure.
2017 (do_register_invalidate, make_cleanup_regcache_invalidate): New
2019 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
2021 2014-06-12 Yao Qi <yao@codesourcery.com>
2023 * varobj.c (varobj_get_num_children): Call
2024 varobj_is_dynamic_p.
2025 (varobj_list_children): Likewise.
2026 (varobj_update): Likewise. Update comments.
2028 2014-06-12 Yao Qi <yao@codesourcery.com>
2030 * varobj.c (varobj_pretty_printed_p): Rename to ...
2031 (varobj_is_dynamic_p): ... this. New function.
2032 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2033 (varobj_is_dynamic_p): Declare.
2034 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2035 (mi_print_value_p, varobj_update_one): Likewise.
2037 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2038 Yao Qi <yao@codesourcery.com>
2040 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2041 (varobj_get_iterator): Wrap up code for pretty-printer by
2042 "#if HAVE_PYTHON" and "#endif".
2043 (update_dynamic_varobj_children): Likewise.
2045 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2046 Yao Qi <yao@codesourcery.com>
2048 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2049 gdb_python_initialized is false. Move some code from varobj.c.
2050 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2051 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2052 (struct varobj_item): Moved to varobj-iter.h".
2053 (varobj_clear_saved_item): New function.
2054 (update_dynamic_varobj_children): Move python-related code to
2056 (free_variable): Call varobj_clear_saved_item and
2059 2014-06-12 Pedro Alves <pedro@codesourcery.com>
2060 Yao Qi <yao@codesourcery.com>
2062 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2063 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2064 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2065 (py-varobj.o): New rule.
2066 * python/py-varobj.c: New file.
2067 * python/python-internal.h (py_varobj_get_iterator): Declare.
2068 * varobj-iter.h: New file.
2069 * varobj.c: Include "varobj-iter.h"
2070 (struct varobj) <child_iter>: Change its type from "PyObject *"
2071 to "struct varobj_iter *".
2072 <saved_item>: Likewise.
2073 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2074 [HAVE_PYTHON] (varobj_get_iterator): New function.
2075 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2076 python-specific code to python/py-varobj.c.
2077 (install_visualizer): Call varobj_iter_delete instead of
2079 * varobj.h (varobj_ensure_python_env): Declare.
2081 2014-06-12 Yao Qi <yao@codesourcery.com>
2083 * varobj.c (struct varobj_item): New structure.
2084 (create_child_with_value): Update declaration.
2085 (varobj_add_child): Replace arguments 'name' and 'value' with
2086 'item'. All callers updated.
2087 (install_dynamic_child): Likewise.
2088 (update_dynamic_varobj_children): Likewise.
2089 (varobj_add_child): Likewise.
2090 (create_child_with_value): Likewise.
2092 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2094 * NEWS: Create a new section for the next release branch.
2095 Rename the section of the current branch, now that it has
2098 2014-06-11 Joel Brobecker <brobecker@adacore.com>
2100 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2101 * version.in: Bump version to 7.8.50.DATE-cvs.
2103 2014-06-11 Pedro Alves <palves@redhat.com>
2106 * ser-mingw.c (net_windows_socket_check_pending): New function.
2107 (net_windows_select_thread): Ignore spurious wakeups. Use
2108 net_windows_socket_check_pending.
2109 (net_windows_wait_handle): Check for pending events with
2110 ioctlsocket, through net_windows_socket_check_pending, instead of
2111 checking the socket's event.
2113 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2115 * python/python-internal.h (gdb_PyObject_GetAttrString)
2116 (gdb_PyObject_HasAttrString): New inline function definitions.
2117 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2118 char * of the second argument to PyObject_GetAttrString.
2120 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2122 * serial.c (serial_write): Fix index of character to be printed
2123 in call to serial_logchar when serial debug traces are enabled.
2125 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2127 * gdbtypes (resolve_dynamic_range): Add function description.
2129 2014-06-09 Pedro Alves <palves@redhat.com>
2131 * linux-nat.c (linux_child_follow_fork): Initialize status with
2132 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2133 inner block. Only pass the signal to PTRACE_DETACH if in pass
2136 2014-06-09 Gary Benson <gbenson@redhat.com>
2138 * common/signals.c (gdb_signal_from_host): Reorder to separate
2139 the always-available ANSI-standard signals from the signals that
2141 (do_gdb_signal_to_host): Likewise.
2142 * proc-events.c (signal_table): Likewise.
2144 2014-06-08 Hui Zhu <hui@codesourcery.com>
2146 * common/linux-ptrace.c (linux_disable_event_reporting): New
2148 * common/linux-ptrace.h (linux_disable_event_reporting): New
2150 * linux-nat.c (linux_child_follow_fork): Do a single step before
2153 2014-06-07 Keith Seitz <keiths@redhat.com>
2157 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2158 from symbol_matches_domain in symtab.c. All local callers
2159 of symbol_matches_domain updated.
2160 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2161 search STRUCT_DOMAIN.
2162 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2163 independently. standard_lookup will do that automatically.
2164 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2165 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2166 (cp_lookup_symbol_in_namespace): Likewise.
2167 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2168 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2169 may return a STRUCT_DOMAIN match.
2170 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2171 * cp-support.c: Include language.h.
2172 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2174 * psymtab.c (match_partial_symbol): Compare the requested
2175 domain with the symbol's domain directly.
2176 (lookup_partial_symbol): Likewise.
2177 * symtab.c (lookup_symbol_in_language): Explain when/why
2178 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2179 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2180 appropriate languages.
2181 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2182 and moved to ada-lang.c
2183 (lookup_block_symbol): Explain that this function only returns
2184 symbol matching the requested DOMAIN.
2185 Compare the requested domain with the symbol's domain directly.
2186 (iterate_over_symbols): Compare the requested domain with the
2187 symbol's domain directly.
2188 * symtab.h (symbol_matches_domain): Remove.
2190 2014-06-06 Doug Evans <xdje42@gmail.com>
2192 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2193 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2194 (gdbscm_guile_version_is_at_least): Declare.
2195 (gdbscm_scm_string_to_int): Declare.
2196 * guile/guile.c (gdbscm_guile_major_version): New global.
2197 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2198 (guile_datadir): New static global.
2199 (gdbscm_guile_data_directory): New function.
2200 (initialize_scheme_side): Update.
2201 (misc_guile_functions): Add guile-data-directory.
2202 (initialize_gdb_module): Fetch guile version number.
2203 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2204 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2205 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2206 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2208 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2209 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2210 * guile/scm-value.c (gdbscm_value_to_string): Only call
2211 scm_port_conversion_strategy if Guile version >= 2.0.6.
2213 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2215 * main.c (print_gdb_help): Add -q and --silent.
2217 2014-06-06 Gary Benson <gbenson@redhat.com>
2219 * common/signals.c: Remove preprocessor conditionals for
2220 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2221 SIGSEGV and SIGTERM.
2222 * proc-events.c: Likewise.
2224 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2226 * symfile.c (symfile_free_objfile): Remove restriction to
2228 * symfile-mem.c (symbol_file_add_from_memory): Call
2229 add_target_sections_of_objfile.
2231 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2233 * guile/scm-value.c (gdbscm_history_append_x): Use
2234 'vlscm_get_value_smob_arg_unsafe' instead of
2235 'vlscm_scm_to_value'.
2237 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2240 * utils.c (printchar): Don't escape at all if quoter is NUL.
2241 Update function documentation to clarify effect of parameter
2243 * remote.c (escape_buffer): Pass '\\' as the quoter to
2244 fputstrn_unfiltered.
2245 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2246 generate the output.
2247 (mi_solib_unloaded): Same.
2249 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2251 * development.sh: Delete.
2252 * Makefile.in (config.status): Adjust dependency on development.sh.
2253 * configure.ac: Adjust development.sh source call.
2254 * configure: Regenerate.
2256 2014-06-04 Doug Evans <xdje42@gmail.com>
2258 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2259 is_scheme_bkpt, spec.
2260 (bpscm_make_breakpoint_smob): Initialize new members.
2261 (gdbscm_create_breakpoint_x): Split into two ...
2262 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2263 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2264 (scheme_function breakpoint_functions): Update.
2265 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2266 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2267 register-breakpoint!.
2269 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2272 * mem-break.c (z_type_supported): Return zero if
2273 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2275 2014-06-04 Tom Tromey <tromey@redhat.com>
2277 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2278 value_from_contents_and_address_unresolved.
2279 (ada_template_to_fixed_record_type_1): Likewise.
2280 (ada_which_variant_applies): Likewise.
2281 * value.h (value_from_contents_and_address_unresolved): Declare.
2282 * value.c (value_from_contents_and_address_unresolved): New
2284 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2285 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2286 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2288 2014-06-04 Tom Tromey <tromey@redhat.com>
2290 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2292 2014-06-04 Tom Tromey <tromey@redhat.com>
2294 * procfs.c (procfs_attach): Make "args" const.
2295 * windows-nat.c (windows_attach): Make "args" const.
2296 * nto-procfs.c (procfs_attach): Make "args" const.
2297 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2298 * go32-nat.c (go32_attach): Make "args" const.
2299 * gnu-nat.c (gnu_attach): Make "args" const.
2300 * darwin-nat.c (darwin_attach): Make "args" const.
2301 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2302 * linux-nat.c (linux_nat_attach): Make "args" const.
2303 * remote.c (extended_remote_attach_1, extended_remote_attach):
2305 * target.h (struct target_ops) <to_attach>: Make "args" const.
2306 (find_default_attach): Likewise.
2307 * utils.c (parse_pid_to_attach): Make "args" const.
2308 * utils.h (parse_pid_to_attach): Update.
2310 2014-06-04 Tom Tromey <tromey@redhat.com>
2312 * target-delegates.c: Rebuild.
2313 * target.c (default_thread_address_space): New function.
2314 (target_thread_address_space): Simplify.
2315 * target.h (struct target_ops) <to_thread_address_space>: Add
2316 TARGET_DEFAULT_FUNC.
2318 2014-06-04 Doug Evans <xdje42@gmail.com>
2320 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2322 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2324 * record-btrace.c: Include event-loop.h and inf-loop.h.
2325 (record_btrace_resume_exec_dir)
2326 (record_btrace_async_inferior_event_handler)
2327 (record_btrace_handle_async_inferior_event): New.
2328 (record_btrace_open): Create async event handler.
2329 (record_btrace_close): Delete async event handler.
2330 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2331 Mark async event handler.
2332 (record_btrace_execution_direction): New.
2333 (init_record_btrace_ops): Initialize to_execution_direction.
2335 2014-06-03 Doug Evans <xdje42@gmail.com>
2337 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2338 (gdbscm_make_parameter): Ditto.
2340 2014-06-03 Doug Evans <dje@google.com>
2342 * exec.c (exec_close_1): Call clear_section_table instead of
2343 resize_section_table.
2344 (clear_section_table): New function.
2345 (resize_section_table): Make static. Rename arg num_added to
2347 * exec.h (clear_section_table): Declare.
2348 (resize_section_table): Delete.
2349 * progspace.c (release_program_space): Call clear_section_table
2350 instead of resize_section_table.
2352 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2354 * NEWS (Python Scripting): Add entry about the new xmethods
2357 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2359 * python/py-xmethods.c: New file.
2360 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2361 (objfpy_dealloc): XDECREF on the new xmethods field.
2362 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2364 (objfpy_get_xmethods): New function.
2365 (objfile_getset): New entry 'xmethods'.
2366 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2367 (pspy_dealloc): XDECREF on the new xmethods field.
2368 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2370 (pspy_get_xmethods): New function.
2371 (pspace_getset): New entry 'xmethods'.
2372 * python/python-internal.h: Add declarations for new functions.
2373 * python/python.c (_initialize_python): Invoke
2374 gdbpy_initialize_xmethods.
2375 * python/lib/gdb/__init__.py (xmethods): New
2377 * python/lib/gdb/xmethod.py: New file.
2378 * python/lib/gdb/command/xmethods.py: New file.
2380 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2382 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2383 best match method returned by find_overload_match is an xmethod.
2384 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2385 the best matching operator returned by find_overload_match is an
2387 * valops.c: #include "extension.h".
2388 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2389 Return void. The list of matching source methods is returned in
2390 "fn_list" and a vector of matching debug method workers is
2391 returned in "xm_worker_vec". Update all callers.
2392 (value_find_oload_method_list): Likewise.
2393 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2394 non-NULL, then the index of the best matching method in this
2395 vector is returned. Update all callers.
2396 (find_overload_match): Include xmethods while performing overload
2399 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2401 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2402 * extension-priv.h (struct extension_language_ops): Add the
2404 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2405 get_matching_xmethod_workers, get_xmethod_argtypes,
2406 invoke_xmethod, free_xmethod_worker,
2407 free_xmethod_worker_vec): New functions.
2408 * extension.h: #include "common/vec.h".
2409 New function declarations.
2410 (struct xmethod_worker): New struct.
2411 (VEC (xmethod_worker_ptr)): New vector type.
2412 (xmethod_worker_ptr): New typedef.
2413 (xmethod_worker_vec): Likewise.
2414 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2416 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2417 (struct builtin_type): New field "xmethod".
2418 * valarith.c (value_ptradd): Assert that the value argument is not
2420 * valops.c (value_must_coerce_to_target): Return 0 for
2421 lval_xcallable values.
2422 * value.c (struct value): New field XM_WORKER in the field
2424 (value_address, value_raw_address): Return 0 for lval_xcallable
2426 (set_value_address): Assert that the value is not an
2428 (value_free): Free the associated xmethod worker when freeing
2429 lval_xcallable values.
2430 (set_value_component_location): Assert that the WHOLE value is not
2432 (value_of_xmethod, call_xmethod): New functions.
2433 * value.h: Declare "struct xmethod_worker".
2434 Declare new functions value_of_xmethod, call_xmethod.
2436 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2437 Pedro Alves <palves@redhat.com>
2439 PR breakpoints/17000
2440 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2441 New function, extracted from software_breakpoint_inserted_here_p.
2442 (software_breakpoint_inserted_here_p): Replace factored out code
2443 by call to find_non_raw_software_breakpoint_inserted_here.
2444 (bp_target_info_copy_insertion_state): New function.
2445 (bkpt_insert_location): Handle the case of a single-step
2446 breakpoint already inserted at the same address.
2447 (bkpt_remove_location): Handle the case of a single-step
2448 breakpoint still inserted at the same address.
2449 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2450 breakpoint already inserted at the same address.
2451 (deprecated_remove_raw_breakpoint): Handle the case of a
2452 non-raw breakpoint still inserted at the same address.
2453 (find_single_step_breakpoint): New function, extracted from
2454 single_step_breakpoint_inserted_here_p.
2455 (find_single_step_breakpoint): New function,
2456 factored out from single_step_breakpoint_inserted_here_p.
2457 (single_step_breakpoint_inserted_here_p): Reimplement.
2459 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2461 Pushed by Joel Brobecker <brobecker@adacore.com>
2462 * source.c (show_substitute_path_command): Fix display of matching
2465 2014-06-03 Gary Benson <gbenson@redhat.com>
2467 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2469 2014-06-02 Doug Evans <xdje42@gmail.com>
2471 Add parameter support for Guile.
2472 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2473 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2474 (scm-param.o): New rule.
2475 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2476 (gdbscm_misc_error): Declare.
2477 (gdbscm_canonicalize_command_name): Declare.
2478 (gdbscm_scm_to_host_string): Declare.
2479 (gdbscm_scm_from_host_string): Declare.
2480 (gdbscm_initialize_parameters): Declare.
2481 * guile/guile.c (initialize_gdb_module): Call
2482 gdbscm_initialize_parameters.
2483 * guile/lib/gdb.scm: Export parameter symbols.
2484 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2485 cmdscm_canonicalize_name and made public. All callers updated.
2486 * guile/scm-exception.c (gdbscm_misc_error): New function.
2487 * guile/scm-param.c: New file.
2488 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2489 (gdbscm_scm_to_host_string): New function.
2490 (gdbscm_scm_from_host_string): New function.
2491 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2493 2014-06-02 Doug Evans <xdje42@gmail.com>
2495 Add command support for Guile.
2496 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2497 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2498 (scm-cmd.o): New rule.
2499 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2500 (gdbscm_user_error_p): Declare.
2501 (gdbscm_parse_command_name): Declare.
2502 (gdbscm_valid_command_class_p): Declare.
2503 (gdbscm_initialize_commands): Declare.
2504 * guile/guile.c (initialize_gdb_module): Call
2505 gdbscm_initialize_commands.
2506 * guile/lib/gdb.scm: Export command symbols.
2507 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2508 (throw-user-error): New function.
2509 * guile/scm-cmd.c: New file.
2510 * guile/scm-exception.c (user_error_symbol): New static global.
2511 (gdbscm_user_error_p): New function.
2512 (gdbscm_initialize_exceptions): Set user_error_symbol.
2513 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2515 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2517 * top.c (command_loop): Handle comments here...
2518 (command_line_input): ... not here.
2520 2014-06-02 Doug Evans <xdje42@gmail.com>
2522 Add progspace support for Guile.
2523 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2524 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2525 (scm-progspace.o): New rule.
2526 * guile/guile-internal.h (pspace_smob): New typedef.
2527 (psscm_pspace_smob_pretty_printers): Declare.
2528 (psscm_pspace_smob_from_pspace): Declare.
2529 (psscm_scm_from_pspace): Declare.
2530 * guile/guile.c (initialize_gdb_module): Call
2531 gdbscm_initialize_pspaces.
2532 * guile/lib/gdb.scm: Export progspace symbols.
2533 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2535 (append-pretty-printer!): Ditto.
2536 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2538 * guile/scm-progspace.c: New file.
2540 2014-06-03 Alan Modra <amodra@gmail.com>
2542 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2543 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2545 2014-06-02 Doug Evans <dje@google.com>
2547 Add support for skeletonless type units.
2548 * dwarf2read.c (struct dwarf2_per_objfile): New member
2549 n_allocated_type_units.
2550 (struct dwarf2_per_objfile) <tu_stats>: New member
2551 nr_all_type_units_reallocs.
2552 (create_signatured_type_table_from_index): Initialize
2553 n_allocated_type_units
2554 (create_all_type_units): Ditto.
2555 (add_type_unit): Move up in file. New arg slot.
2556 All callers updated. Increase space for all_type_units more
2558 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2559 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2560 (lookup_dwp_signatured_type): Ditto.
2561 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2562 All callers updated.
2563 (build_type_psymtabs_1): Leave type_unit_groups as
2564 NULL if no TUs present.
2565 (print_tu_stats): New function.
2566 (process_skeletonless_type_unit): New function.
2567 (process_dwo_file_for_skeletonless_type_units): New
2569 (process_skeletonless_type_units): New function.
2570 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2571 Call print tu_stats if debugging enabled.
2573 2014-06-02 Pedro Alves <palves@redhat.com>
2575 * breakpoint.c (build_target_command_list): Don't build a command
2576 list if we have any duplicate location that isn't a dprintf.
2578 2014-06-02 Pedro Alves <palves@redhat.com>
2580 * breakpoint.c (dprintf_breakpoint_hit): New function.
2581 (initialize_breakpoint_ops): Install it as dprintf's
2582 breakpoint_hit method.
2584 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2586 * source.c (substitute_path_rule_matches): Simplify using
2587 filename_ncmp instead of FILENAME_CMP.
2589 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2591 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2593 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2595 * configure.ac: When Guile is available, check for the
2596 availability of 'scm_new_smob'.
2597 * configure, config.h.in: Regenerate.
2598 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2601 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2603 * frame.c (struct frame_info): Add stop_string field.
2604 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2605 (get_prev_frame_always): Old content moved into
2606 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2607 TRY_CATCH, handle MEMORY_ERROR exceptions.
2608 (frame_stop_reason_string): New function definition.
2609 * frame.h (unwind_stop_reason_to_string): Extend comment to
2610 mention frame_stop_reason_string.
2611 (frame_stop_reason_string): New function declaration.
2612 * stack.c (frame_info): Switch to frame_stop_reason_string.
2613 (backtrace_command_1): Switch to frame_stop_reason_string.
2614 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2615 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2616 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2618 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2620 * frame.c (frame_stop_reason_string): Rename to ...
2621 (unwind_stop_reason_to_string): this.
2622 * frame.h (frame_stop_reason_string): Rename to ...
2623 (unwind_stop_reason_to_string): this.
2624 * stack.c (frame_info): Update call to frame_stop_reason_string.
2625 (backtrace_command_1): Likewise.
2626 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2627 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2629 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2631 * frame.c (remove_prev_frame): New function.
2632 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2635 2014-05-29 Pedro Alves <palves@redhat.com>
2637 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2638 and make it const. When a single-step decays to a continue,
2639 clear 'step', not 'hw_step'. Pass whether the caller wanted
2640 to step to user_visible_resume_ptid, not what we ask the
2643 2014-05-29 Pedro Alves <palves@redhat.com>
2645 * infrun.c (process_event_stop_test, handle_step_into_function)
2646 (handle_step_into_function_backward): Adjust.
2647 Don't set the even thread's stop_step and call stop_waiting before
2648 calling end_stepping_range. Instead do that ...
2649 (end_stepping_range): ... here. Take an ecs pointer parameter.
2651 2014-05-29 Pedro Alves <palves@redhat.com>
2653 * infrun.c (stop_stepping): Rename to ...
2654 (stop_waiting): ... this.
2655 (proceed): Update comment.
2656 (process_event_stop_test, handle_inferior_event)
2657 (handle_signal_stop, handle_step_into_function)
2658 (handle_step_into_function_backward): Update.
2660 2014-05-29 Pedro Alves <palves@redhat.com>
2662 * infcall.c (run_inferior_call): Don't check whether the current
2663 thread is running after the proceed call.
2665 2014-05-29 Pedro Alves <palves@redhat.com>
2666 Tom Tromey <tromey@redhat.com>
2668 * NEWS: Mention "maint set target-async", "set mi-async", and that
2669 background execution commands are now always available.
2670 * target.h (target_async_permitted): Update comment.
2671 * target.c (target_async_permitted, target_async_permitted_1):
2673 (set_target_async_command): Rename to ...
2674 (maint_set_target_async_command): ... this.
2675 (show_target_async_command): Rename to ...
2676 (maint_show_target_async_command): ... this.
2677 (_initialize_target): Adjust.
2678 * infcmd.c (prepare_execution_command): Make extern.
2679 * inferior.h (prepare_execution_command): Declare.
2680 * infrun.c (set_observer_mode): Leave target async alone.
2681 * mi/mi-interp.c (mi_interpreter_init): Install
2682 mi_on_sync_execution_done as sync_execution_done observer.
2683 (mi_on_sync_execution_done): New function.
2684 (mi_execute_command_input_handler): Don't print the prompt if we
2685 just started a synchronous command with an async target.
2686 (mi_on_resume): Check sync_execution before printing prompt.
2687 * mi/mi-main.h (mi_async_p): Declare.
2688 * mi/mi-main.c: Include gdbcmd.h.
2689 (mi_async_p): New function.
2690 (mi_async, mi_async_1): New globals.
2691 (set_mi_async_command, show_mi_async_command, mi_async): New
2693 (exec_continue): Call prepare_execution_command.
2694 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2695 (mi_execute_async_cli_command): Use mi_async_p.
2696 (_initialize_mi_main): Install "set mi-async". Make
2697 "target-async" a deprecated alias.
2699 2014-05-29 Pedro Alves <palves@redhat.com>
2701 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2702 (_initialize_cli_interp): Adjust.
2703 * event-loop.c: Include "observer.h".
2704 (start_event_loop): Notify 'command_error' observers instead of
2705 calling display_gdb_prompt. Remove FIXME comment.
2706 * event-top.c (display_gdb_prompt): Remove call into the
2708 * inf-loop.c: Include "observer.h".
2709 (inferior_event_handler): Notify 'command_error' observers instead
2710 of calling display_gdb_prompt.
2711 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2712 observers instead of calling display_gdb_prompt.
2713 * interps.c (interp_set): Don't call display_gdb_prompt.
2714 (current_interp_display_prompt_p): Delete.
2715 * interps.h (interp_prompt_p): Delete declaration.
2716 (interp_prompt_p_ftype): Delete.
2717 (struct interp_procs) <prompt_proc_p>: Delete field.
2718 (current_interp_display_prompt_p): Delete declaration.
2719 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2720 (_initialize_mi_interp): Adjust.
2721 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2722 'command_error' observers.
2723 (tui_on_sync_execution_done, tui_on_command_error): New
2725 (tui_display_prompt_p): Delete.
2726 (_initialize_tui_interp): Adjust.
2728 2014-05-29 Pedro Alves <palves@redhat.com>
2731 * cli/cli-interp.c: Include infrun.h and observer.h.
2732 (cli_uiout, cli_interp): New globals.
2733 (cli_on_signal_received, cli_on_end_stepping_range)
2734 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2736 (cli_interpreter_init): Install them as 'end_stepping_range',
2737 'signal_received' 'signal_exited', 'exited' and 'no_history'
2739 (_initialize_cli_interp): Remove cli_interp local.
2740 * infrun.c (handle_inferior_event): Call the several stop reason
2741 observers instead of printing the stop reason directly.
2742 (end_stepping_range): New function.
2743 (print_end_stepping_range_reason, print_signal_exited_reason)
2744 (print_exited_reason, print_signal_received_reason)
2745 (print_no_history_reason): Make static, and add an uiout
2746 parameter. Print to that instead of to CURRENT_UIOUT.
2747 * infrun.h (print_end_stepping_range_reason)
2748 (print_signal_exited_reason, print_exited_reason)
2749 (print_signal_received_reason print_no_history_reason): New
2751 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2753 <cli_uiout>: New field.
2754 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2755 uiout for CLI output. Install 'signal_received',
2756 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2758 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2759 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2760 (mi_on_no_history): New functions.
2761 (ui_out_free_cleanup): Delete function.
2762 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2763 instead use the one already stored in the MI interpreter data.
2764 (mi_ui_out): Adjust.
2765 * tui/tui-interp.c: Include infrun.h and observer.h.
2766 (tui_interp): New global.
2767 (tui_on_signal_received, tui_on_end_stepping_range)
2768 (tui_on_signal_exited, tui_on_exited)
2769 (tui_on_no_history): New functions.
2770 (tui_init): Install them as 'end_stepping_range',
2771 'signal_received' 'signal_exited', 'exited' and 'no_history'
2773 (_initialize_tui_interp): Delete tui_interp local.
2775 2014-05-29 Pedro Alves <palves@redhat.com>
2778 * linux-nat.c (linux_nat_resume_callback): Rename the second
2779 parameter to 'except'. Skip LP if it points to EXCEPT.
2780 (linux_nat_resume): Don't mark the event lwp as not stopped
2781 before resuming sibling lwps. Instead ask
2782 linux_nat_resume_callback to skip the event lwp. Mark it as not
2783 stopped after actually resuming it.
2784 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2786 (wait_lwp): Mark the lwp as stopped here.
2787 (stop_wait_callback): Mark the lwp as not stopped right after
2788 resuming it. Don't mark lwps as stopped here.
2789 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2790 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2792 2014-05-29 Pedro Alves <palves@redhat.com>
2795 * infrun.c (resume): Determine how much to resume depending on
2796 whether the caller wanted a step, not whether we can hardware step
2797 the target. Mark all threads that we intend to run as running,
2798 unless we're calling an inferior function.
2799 (normal_stop): If the thread is running an infcall, don't finish
2801 * target.c (target_resume): Don't mark threads as running here.
2803 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2805 * serial.c (_initialize_serial): Remove support for
2806 the "set remotebaud" and "show remotebaud" commands.
2807 * NEWS: Add entry documenting the removal of that command.
2809 2014-05-28 Yao Qi <yao@codesourcery.com>
2811 * charset.c: Fix typo in comments.
2813 2014-05-27 Gary Benson <gbenson@redhat.com>
2815 * utils.c (internal_vproblem): Prompt for a bug report.
2817 2014-05-26 Andy Wingo <wingo@igalia.com>
2819 * guile/scm-arch.c (arscm_mark_arch_smob):
2820 * guile/scm-block.c (bkscm_mark_block_smob)
2821 (bkscm_mark_block_syms_progress_smob):
2822 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2823 * guile/scm-exception.c (exscm_mark_exception_smob):
2824 * guile/scm-frame.c (frscm_mark_frame_smob):
2825 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2826 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2827 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2828 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2829 (ppscm_mark_pretty_printer_worker_smob):
2830 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2831 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2832 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2833 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2835 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2838 2014-05-26 Andy Wingo <wingo@igalia.com>
2839 Doug Evans <xdje42@gmail.com>
2841 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2842 empty_base_class. All uses updated.
2843 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2844 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2846 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2847 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2848 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2849 (gdbscm_gsmob_has_property_p, add_property_name)
2850 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2851 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2852 (gdb-object-has-property?, gdb-object-properties): Remove.
2853 (gdb-object-kind): Renamed from gsmob-kind.
2855 2014-05-26 Andy Wingo <wingo@igalia.com>
2857 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2858 * configure: Regenerate.
2860 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2862 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2864 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2866 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2867 (replay_memory_access_read_only, replay_memory_access_read_write)
2868 (replay_memory_access_types, replay_memory_access)
2869 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2870 (cmd_set_record_btrace, cmd_show_record_btrace)
2871 (cmd_show_replay_memory_access): New.
2872 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2873 (record_btrace_remove_breakpoint): Replace
2874 record_btrace_allow_memory_access with replay_memory_access.
2875 (_initialize_record_btrace): Add commands.
2876 * NEWS: Announce it.
2878 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2880 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2882 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2884 * MAINTAINERS (Write After Approval): Move self back from
2887 2014-05-22 Pedro Alves <palves@redhat.com>
2889 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2890 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2891 (disable_randomization, enum exec_direction_kind)
2892 (execution_direction, stop_registers, start_remote)
2893 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2894 (wait_for_inferior, normal_stop, get_last_target_status)
2895 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2896 (insert_step_resume_breakpoint_at_sal)
2897 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2898 (set_step_info, print_stop_event, signal_stop_state)
2899 (signal_print_state, signal_pass_state, signal_stop_update)
2900 (signal_print_update, signal_pass_update)
2901 (update_signals_program_target, clear_exit_convenience_vars)
2902 (displaced_step_dump_bytes, update_observer_mode)
2903 (signal_catch_update, gdb_signal_from_command): Move
2905 * infrun.h: ... to this new file.
2906 * amd64-tdep.c: Include infrun.h.
2907 * annotate.c: Include infrun.h.
2908 * arch-utils.c: Include infrun.h.
2909 * arm-linux-tdep.c: Include infrun.h.
2910 * arm-tdep.c: Include infrun.h.
2911 * break-catch-sig.c: Include infrun.h.
2912 * breakpoint.c: Include infrun.h.
2913 * common/agent.c: Include infrun.h instead of inferior.h.
2914 * corelow.c: Include infrun.h.
2915 * event-top.c: Include infrun.h.
2916 * go32-nat.c: Include infrun.h.
2917 * i386-tdep.c: Include infrun.h.
2918 * inf-loop.c: Include infrun.h.
2919 * infcall.c: Include infrun.h.
2920 * infcmd.c: Include infrun.h.
2921 * infrun.c: Include infrun.h.
2922 * linux-fork.c: Include infrun.h.
2923 * linux-nat.c: Include infrun.h.
2924 * linux-thread-db.c: Include infrun.h.
2925 * monitor.c: Include infrun.h.
2926 * nto-tdep.c: Include infrun.h.
2927 * procfs.c: Include infrun.h.
2928 * record-btrace.c: Include infrun.h.
2929 * record-full.c: Include infrun.h.
2930 * remote-m32r-sdi.c: Include infrun.h.
2931 * remote-mips.c: Include infrun.h.
2932 * remote-notif.c: Include infrun.h.
2933 * remote-sim.c: Include infrun.h.
2934 * remote.c: Include infrun.h.
2935 * reverse.c: Include infrun.h.
2936 * rs6000-tdep.c: Include infrun.h.
2937 * s390-linux-tdep.c: Include infrun.h.
2938 * solib-irix.c: Include infrun.h.
2939 * solib-osf.c: Include infrun.h.
2940 * solib-svr4.c: Include infrun.h.
2941 * target.c: Include infrun.h.
2942 * top.c: Include infrun.h.
2943 * windows-nat.c: Include infrun.h.
2944 * mi/mi-interp.c: Include infrun.h.
2945 * mi/mi-main.c: Include infrun.h.
2946 * python/py-threadevent.c: Include infrun.h.
2948 2014-05-22 Pedro Alves <palves@redhat.com>
2950 * infrun.c (handle_inferior_event): Store the exit code for
2951 --return-child-result here, instead of ...
2952 (print_exited_reason): ... here.
2954 2014-05-21 Pedro Alves <palves@redhat.com>
2957 * gdbthread.h (struct thread_control_state): New field
2959 * infrun.c (follow_fork): Copy the new thread control field to the
2961 (clear_proceed_status_thread): Clear the new thread control field.
2962 (proceed): Set the new thread control field.
2963 * interps.h (command_interp): Declare.
2964 * interps.c (command_interpreter): New global.
2965 (command_interp): New function.
2966 (interp_exec): Set `command_interpreter' while here.
2967 * cli-out.c (cli_uiout_dtor): New function.
2968 (cli_ui_out_impl): Install it.
2969 * mi/mi-interp.c: Include cli-out.h.
2970 (mi_cmd_interpreter_exec): Add comment.
2971 (restore_current_uiout_cleanup): New function.
2972 (ui_out_free_cleanup): New function.
2973 (mi_on_normal_stop): If finishing an execution command started by
2974 a CLI command, or any kind of breakpoint-like event triggered,
2975 print the stop event to the output (CLI) stream.
2976 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2978 2014-05-21 Pedro Alves <palves@redhat.com>
2980 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2981 current source line having changed.
2982 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2983 * infrun.c (normal_stop): Adjust call to
2984 set_current_sal_from_frame.
2985 * source.c (clear_lines_listed_range): New function.
2986 (set_current_source_symtab_and_line, identify_source_line): Clear
2987 the lines listed range.
2988 (line_info): Handle the first "info line" after the current source
2989 line having changed.
2990 * stack.c (print_stack_frame): Remove center handling.
2991 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2994 2014-05-21 Pedro Alves <palves@redhat.com>
2996 * inf-child.c (inf_child_mourn_inferior): New function.
2997 * inf-child.h (inf_child_mourn_inferior): New declaration.
2998 * darwin-nat.c (darwin_mourn_inferior): Use
2999 inf_child_mourn_inferior.
3000 * gnu-nat.c (gnu_mourn_inferior): Likewise.
3001 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
3002 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
3003 * nto-procfs.c (procfs_mourn_inferior): Likewise.
3004 * windows-nat.c (windows_mourn_inferior): Likewise.
3006 2014-05-21 Doug Evans <xdje42@gmail.com>
3008 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
3010 2014-05-21 Doug Evans <xdje42@gmail.com>
3012 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
3013 (gdbscm_out_of_range_error): Ditto.
3014 (gdbscm_memory_error): Ditto.
3015 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
3016 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
3017 (gdbscm_out_of_range_error): Update.
3018 (gdbscm_memory_error): Update.
3019 (gdbscm_scm_to_target_string_unsafe): Delete.
3021 2014-05-21 Pedro Alves <palves@redhat.com>
3023 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3025 (inf_child_open_target): New function.
3026 (inf_child_open): Use inf_child_open_target to push the target
3027 instead of erroring out.
3028 (inf_child_disconnect, inf_child_close)
3029 (inf_child_maybe_unpush_target): New functions.
3030 (inf_child_target): Install inf_child_disconnect and
3031 inf_child_close. Store a pointer to the returned object.
3032 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3034 * target.c (auto_connect_native_target): New global.
3035 (show_default_run_target): New function.
3036 (find_default_run_target): Return NULL if automatically connecting
3037 to the native target is disabled.
3038 (_initialize_target): Install set/show auto-connect-native-target.
3039 * NEWS: Mention "set auto-connect-native-target", and "target
3041 * linux-nat.c (super_close): New global.
3042 (linux_nat_close): Call super_close.
3043 (linux_nat_add_target): Store a pointer to the base class's
3045 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3046 inf_child_maybe_unpush.
3047 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3049 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3050 the inferior. Use inf_child_maybe_unpush_target.
3051 (inf_ttrace_attach): Don't push the target if it is already
3053 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3054 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3055 after mourning the inferior. Use inf_child_maybe_unpush_target.
3056 (darwin_attach_pid): Don't push the target if it is already
3058 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3059 mourning the inferior. Use inf_child_maybe_unpush_target.
3060 (gnu_detach): Use inf_child_maybe_unpush_target.
3061 * go32-nat.c (go32_create_inferior): Don't push the target if it
3063 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3064 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3065 (procfs_open): Rename to ...
3066 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3067 comments. Can target_preopen before changing node. Call
3068 inf_child_open_target to push the target explicitly.
3069 (procfs_attach): Don't push the target if it is already pushed.
3070 (procfs_detach): Use inf_child_maybe_unpush_target.
3071 (procfs_create_inferior): Don't push the target if it is already
3073 (nto_native_ops): New global.
3074 (procfs_open): Reimplement.
3075 (procfs_native_open): New function.
3076 (init_procfs_targets): Install procfs_native_open as to_open of
3077 "target native". Store a pointer to the "native" target in
3079 * procfs.c (procfs_attach): Don't push the target if it is already
3081 (procfs_detach): Use inf_child_maybe_unpush_target.
3082 (procfs_mourn_inferior): Only unpush the target after mourning the
3083 inferior. Use inf_child_maybe_unpush_target.
3084 (procfs_init_inferior): Don't push the target if it is already
3086 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3087 if it is already pushed.
3089 2014-05-21 Pedro Alves <palves@redhat.com>
3091 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3092 and "procfs" targets are now called "native" instead.
3094 2014-05-21 Pedro Alves <palves@redhat.com>
3096 * go32-nat.c (go32_open): Delete.
3097 (go32_target): Don't override the to_open method.
3099 2014-05-21 Pedro Alves <palves@redhat.com>
3101 * nto-procfs.c (procfs_can_run): New function.
3102 (nto_procfs_ops): New global.
3103 (init_procfs_targets): New, based on procfs_target. Install
3104 "target native" in addition to "target procfs".
3105 (_initialize_procfs): Call init_procfs_targets instead of adding
3108 2014-05-21 Pedro Alves <palves@redhat.com>
3110 * windows-nat.c (windows_target): Don't override to_shortname,
3111 to_longname or to_doc.
3113 2014-05-21 Pedro Alves <palves@redhat.com>
3115 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3118 2014-05-21 Pedro Alves <palves@redhat.com>
3120 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3121 to_shortname, to_longname or to_doc.
3123 2014-05-21 Pedro Alves <palves@redhat.com>
3125 * go32-nat.c (go32_target): Don't override to_shortname,
3126 to_longname or to_doc.
3128 2014-05-21 Pedro Alves <palves@redhat.com>
3130 * inf-child.c (inf_child_open): Remove mention of "child".
3131 (inf_child_target): Rename target to "native" instead of "child".
3133 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3135 * Makefile.in (SFILES): Delete "regset.c".
3136 (COMMON_OBS): Delete "regset.o".
3138 * regset.h (regset_alloc): Delete prototype.
3140 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3142 * sparc-linux-tdep.c (sparc32_linux_gregset)
3143 (sparc32_linux_fpregset): New static regset structures.
3144 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3145 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3147 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3148 (sparc64_linux_fpregset): New static regset structures.
3149 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3150 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3151 New static regset structures.
3152 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3153 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3154 New static regset structures.
3155 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3156 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3157 New static regset structures.
3158 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3159 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3160 New static regset structures.
3161 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3163 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3165 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3166 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3167 register maps ("regmaps") from "*regset" to "*regmap". Do this
3168 for all regmap types and variables.
3169 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3170 (sparc32_linux_supply_core_gregset)
3171 (sparc32_linux_collect_core_gregset)
3172 (sparc32_linux_supply_core_fpregset)
3173 (sparc32_linux_collect_core_fpregset): Likewise.
3174 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3175 (sparc_gregmap, sparc_fpregmap): ... these.
3176 (sparc_supply_gregset, sparc_collect_gregset)
3177 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3178 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3179 (_initialize_sparc_nat): Rename regmaps.
3180 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3181 (sparc_gregmap, sparc_fpregmap): ... these.
3182 (sparc_supply_gregset, sparc_collect_gregset)
3183 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3184 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3186 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3187 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3189 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3191 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3192 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3193 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3195 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3196 (sparc32_bsd_fpregset): Rename to...
3197 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3198 (sparc32_bsd_fpregmap): ... these.
3199 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3200 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3201 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3202 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3203 (struct sparc_gregmap, struct sparc_fpregmap)
3204 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3205 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3206 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3207 (sparc32_supply_regset, sparc32_collect_gregset)
3208 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3210 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3211 (sparc64_linux_ptrace_gregmap): ... this.
3212 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3213 (_initialize_sparc64_linux_nat): Rename regmaps.
3214 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3215 (sparc64_linux_core_gregmap): ... this.
3216 (sparc64_linux_supply_core_gregset)
3217 (sparc64_linux_collect_core_gregset)
3218 (sparc64_linux_supply_core_fpregset)
3219 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3220 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3221 (sparc64_sol2_fpregset): Rename to...
3222 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3223 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3224 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3226 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3227 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3228 (sparc64_bsd_fpregset): Rename to...
3229 (struct sparc_gregmap, sparc64_sol2_gregmap)
3230 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3231 (sparc64_bsd_fpregmap): ... these.
3232 (sparc64_supply_gregset, sparc64_collect_gregset)
3233 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3235 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3236 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3237 (sparc64fbsd_gregmap): ... this.
3238 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3239 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3241 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3242 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3243 (sparc64nbsd_collect_fpregset): Likewise.
3244 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3245 (sparc64nbsd_gregmap): ... this.
3246 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3248 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3249 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3250 (sparc64obsd_gregmap): ... this.
3251 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3253 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3254 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3255 (sparc32nbsd_gregmap): ... this.
3256 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3259 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3261 * score-tdep.c (score7_linux_gregset): New static regset
3263 (score7_linux_regset_from_core_section): Remove dynamic regset
3265 (score_gdbarch_init): Drop allocation of tdep structure.
3266 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3268 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3270 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3272 (am33_regset_from_core_section): Remove dynamic regset
3275 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3277 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3278 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3280 (mips_linux_regset_from_core_section): Remove dynamic regset
3282 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3283 'gregset64', 'fpregset', and 'fpregset64'.
3284 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3285 deleted tdep fields.
3287 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3289 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3291 (amd64_regset_from_core_section): Remove dynamic regset
3293 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3295 (amd64obsd_regset_from_core_section): Remove dynamic regset
3297 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3299 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3300 x86-common regset supply function.
3301 * i386-tdep.c (i386_collect_gregset): Make static.
3302 (i386_gregset): New global regset structure.
3303 (i386_fpregset, i386_xstateregset): New static regset structures.
3304 (i386_regset_from_core_section): Remove dynamic regset
3306 (i386_gdbarch_init): Remove initialization of tdep fields
3307 'gregset', 'fpregset', and 'xstateregset'.
3308 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3309 'fpregset', and 'xstateregset'.
3310 (i386_collect_gregset): Remove prototype.
3311 (i386_gregset): New declaration.
3312 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3314 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3317 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3319 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3320 (arm_linux_vfpregset): New static regset structures.
3321 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3323 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3324 and 'vfpregset' fields.
3326 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3328 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3329 (aarch64_linux_fpregset): New static regset structures.
3330 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3331 of regset structures.
3332 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3335 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3337 * regset.h (struct regset): Remove gdbarch field.
3338 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3339 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3340 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3342 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3343 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3344 (ppc32_linux_vsxregset): Likewise.
3345 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3346 via the regcache instead of the regset.
3347 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3348 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3349 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3350 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3353 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3355 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3356 Constify structures.
3357 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3358 (alphanbsd_aout_gregset): Likewise.
3359 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3360 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3362 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3363 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3365 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3366 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3367 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3368 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3369 * m88k-tdep.c (m88k_gregset): Likewise.
3370 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3371 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3372 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3373 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3374 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3375 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3376 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3377 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3378 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3380 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3381 * sh-tdep.h (sh_corefile_gregset): Likewise.
3382 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3383 * vax-tdep.c (vax_gregset): Likewise.
3385 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3387 Fix TLS access for -static -pthread.
3388 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3389 (try_thread_db_load_1): Initialize it.
3390 (thread_db_get_thread_local_address): Call it if LM is zero.
3391 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3392 * target.h (struct target_ops) (to_get_thread_local_address): Add
3393 load_module_addr comment.
3395 2014-05-21 Pedro Alves <palves@redhat.com>
3397 * dcache.c (dcache_read_memory_partial): If reading the cache line
3398 fails, fallback to reading just the memory the caller wanted.
3400 2014-05-20 Doug Evans <dje@google.com>
3402 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3403 instead of get_current_arch.
3405 2014-05-20 Pedro Alves <palves@redhat.com>
3407 * NEWS: Mention that compare-sections now works with all targets.
3409 * remote.c (PACKET_qCRC): New enum value.
3410 (remote_verify_memory): Don't send qCRC if the target has no
3411 execution. Use packet_support/packet_ok. If the target doesn't
3412 support the qCRC packet, fallback to a deep memory copy.
3413 (compare_sections_command): Say "target image" instead of "remote
3415 (_initialize_remote): Add PACKET_qCRC to the list of config
3416 packets that have no associated command. Extend comment.
3417 * target.c (simple_verify_memory, default_verify_memory): New
3419 * target.h (struct target_ops) <to_verify_memory>: Default to
3420 default_verify_memory.
3421 (simple_verify_memory): New declaration.
3422 * target-delegates.c: Regenerate.
3424 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3426 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3428 2014-05-20 Hui Zhu <hui@codesourcery.com>
3429 Yao Qi <yao@codesourcery.com>
3432 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3433 and change address of sp and pc.
3435 2014-05-19 Tom Tromey <tromey@redhat.com>
3437 * gdbtypes.c (rank_function): Use XNEWVEC.
3438 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3440 2014-05-19 Doug Evans <dje@google.com>
3442 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3443 build_type_unit_groups and moved closer to only caller. Remove
3444 arguments. All references updated. Remove outdated .gdb_index
3446 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3447 build_type_psymtabs_1.
3449 2014-05-19 Doug Evans <dje@google.com>
3451 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3452 n_type_unit_groups, all_type_unit_groups. All uses removed.
3453 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3454 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3455 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3456 (add_type_unit_group_to_table): Delete.
3458 2014-05-19 Doug Evans <dje@google.com>
3460 * eval.c (evaluate_subexp_standard): Add some comments.
3462 2014-05-17 Doug Evans <xdje42@gmail.com>
3464 * progspace.c (remove_program_space): Delete, unused.
3465 * progspace.h (remove_program_space): Ditto.
3467 2014-05-17 Doug Evans <xdje42@gmail.com>
3469 * inferior.c (prune_inferiors): Fix comment.
3470 (remove_inferior_command): Call prune_program_spaces.
3472 2014-05-16 Doug Evans <dje@google.com>
3474 New command line option -D.
3476 * main.c (set_gdb_data_directory): New function.
3477 (captured_main): Recognize -D. Flag error for --data-directory "".
3478 Call set_gdb_data_directory.
3479 (print_gdb_help): Print --data-directory, -D.
3480 * main.h (set_gdb_data_directory): Declare.
3481 * top.c (staged_gdb_datadir): New static global.
3482 (set_gdb_datadir): Call set_gdb_data_directory
3483 (show_gdb_datadir): New function.
3484 (init_main): Update init of data-directory parameter.
3486 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3488 Import the "dirfd" gnulib module.
3489 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3490 * gnulib/aclocal.m4: Update.
3491 * gnulib/config.in: Update.
3492 * gnulib/configure: Update.
3493 * gnulib/import/Makefile.am: Update.
3494 * gnulib/import/Makefile.in: Update.
3495 * gnulib/import/dirfd.c: New.
3496 * gnulib/import/m4/dirfd.m4: New.
3497 * gnulib/import/m4/gnulib-cache.m4: Update.
3498 * gnulib/import/m4/gnulib-comp.m4: Update.
3500 2014-05-16 Pierre Muller <muller@sourceware.org>
3501 Yao Qi <yao@codesourcery.com>
3503 * valprint.c (print_wchar): Move the code on checking whether
3504 W is a printable wide char to the default branch of switch
3505 statement below. Call wchar_printable instead of gdb_iswprint.
3507 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3509 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3510 ldr.w and ldrd instructions.
3512 2014-05-15 Doug Evans <dje@google.com>
3514 * dwarf2read.c (read_structure_type): Delete outdated comments.
3516 2014-05-14 Tom Tromey <tromey@redhat.com>
3518 * macrocmd.c (print_macro_definition): Reindent.
3520 2014-05-13 Doug Evans <xdje42@gmail.com>
3522 * python/py-cmd.c (cmdpy_completer): Add comment.
3523 (completers): Make const.
3525 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3527 * infrun.c (resume): Remove should_resume (unused). Move up
3528 declaration of resume_ptid.
3530 2014-05-13 Tom Tromey <tromey@redhat.com>
3532 * language.h (unop_type_check): Remove.
3533 (binop_type_check): Don't declare.
3535 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3537 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3538 call to regcache_raw_collect.
3540 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3542 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3543 mi_console->quote as the quoting character.
3545 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3547 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3549 2014-04-29 Tom Tromey <tromey@redhat.com>
3551 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3552 "show debug varobj".
3554 2014-05-07 Kyle McMartin <kyle@redhat.com>
3556 Pushed by Joel Brobecker <brobecker@adacore.com>.
3557 * aarch64-tdep.c (aarch64_software_single_step): New function.
3558 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3559 with aarch64_software_single_step.
3561 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3565 2014-05-05 Keith Seitz <keiths@redhat.com>
3567 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3568 variable or history value is successfully parsed.
3570 2014-05-05 Yao Qi <yao@codesourcery.com>
3571 Pedro Alves <palves@redhat.com>
3573 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3574 address of blocks that intersects the requested range. Trim
3575 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3577 * ctf.c (ctf_xfer_partial): Likewise.
3579 2014-05-05 Yao Qi <yao@codesourcery.com>
3581 * printcmd.c (display_command): Remove the check to
3582 target_has_execution.
3584 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3586 * ppcobsd-nat.c: Include "obsd-nat.h".
3587 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3589 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3591 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3593 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3594 and 16-bit signed and unsigned arguments. Update comment.
3595 (stap_parse_probe_arguments): Extend code to handle such
3596 arguments. Use warning instead of complaint to notify about
3597 unrecognized bitness.
3599 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3601 PR breakpoints/16889
3602 * stap-probe.c (stap_parse_probe_arguments): Simplify
3603 check for non-prefixed probes (i.e., probes whose
3604 arguments do not start with "N@"). Always set the
3605 argument type to a sane value.
3607 2014-05-01 David Taylor <dtaylor@emc.com>
3609 * remote.c (compare_sections_command): Add -r option to compare
3610 all loadable read-only sections.
3612 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3614 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3615 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3617 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3618 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3619 Remove unused CORE_ADDR argument. Update all callers.
3621 2014-04-29 Pedro Alves <palves@redhat.com>
3623 * remote.c (struct packet_config) <detect>: Extend comment.
3624 (add_packet_config_cmd): Don't set the config's detect or support
3626 (init_all_packet_configs): Also initialize the config's 'detect'
3628 (reset_all_packet_configs_support): New function.
3629 (remote_open_1): Call reset_all_packet_configs_support instead of
3630 init_all_packet_configs.
3631 (_initialize_remote): Initialize all packet configs. Assert that
3632 all packets have an associated command, except a few known
3635 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3637 * dwarf2read.c (read_subrange_type): Handle dynamic
3638 DW_AT_lower_bound attributes.
3640 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3642 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3643 dynamic bounds before computing its upper bound.
3644 (ada_discrete_type_low_bound): Same as above with the lower bound.
3646 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3648 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3649 range types. Adjust the array handling implementation to
3650 take advantage of this change.
3651 (resolve_dynamic_range): New function, mostly extracted from
3652 resolve_dynamic_bounds.
3653 (resolve_dynamic_array): New function, mostly extracted from
3654 resolve_dynamic_bounds.
3655 (resolve_dynamic_bounds): Delete.
3656 (resolve_dynamic_type): Reimplement. Add handling of
3657 TYPE_CODE_RANGE types.
3659 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3661 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3662 handling of parallel ___XA types.
3664 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3666 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3667 unnecessary second call to static_unwrap_type.
3669 2014-04-27 Hui Zhu <hui@codesourcery.com>
3671 * stack.c (print_frame_info): Call do_gdb_disassembly with
3672 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3674 2014-04-26 Doug Evans <xdje42@gmail.com>
3676 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3678 2014-04-25 Pedro Alves <palves@redhat.com>
3681 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3682 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3683 and newline from built string.
3684 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3685 (linux_ptrace_attach_fail_reason): ... this.
3686 * linux-nat.c (linux_nat_attach): Adjust to use
3687 linux_ptrace_attach_fail_reason.
3689 2014-04-25 Pedro Alves <palves@redhat.com>
3691 * remote.c (struct remote_state): Remove multi_process_aware,
3692 non_stop_aware, cond_tracepoints, cond_breakpoints,
3693 breakpoint_commands, fast_tracepoints, static_tracepoints,
3694 install_in_trace, disconnected_tracing,
3695 enable_disable_tracepoints, string_tracing, and
3696 augmented_libraries_svr4_read fields.
3697 (remote_multi_process_p): Move further below in the file.
3698 (struct packet_config): Add comments.
3699 (update_packet_config): Delete function.
3700 (show_packet_config_cmd): Use packet_config_support.
3701 (add_packet_config_cmd): Use NULL as set callback.
3702 (packet_ok): "set remote foo-packet"-style commands no longer
3703 change config->supported -- adjust.
3704 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3705 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3706 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3707 (PACKET_QNonStop, PACKET_multiprocess_feature)
3708 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3709 (PACKET_DisconnectedTracing_feature)
3710 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3711 (set_remote_protocol_packet_cmd): Delete function.
3712 (packet_config_support, packet_support): New functions.
3713 (set_remote_protocol_Z_packet_cmd): Don't call
3714 update_packet_config.
3715 (remote_query_attached, remote_pass_signals)
3716 (remote_program_signals, remote_threads_info)
3717 (remote_threads_extra_info, remote_start_remote): Use
3719 (remote_start_remote): Use packet_config_support and
3721 (init_all_packet_configs): Set all packets to unknown support,
3722 instead of calling update_packet_config.
3723 (remote_check_symbols): Use packet_support.
3724 (remote_supported_packet): Unconditionally set the packet config's
3726 (remote_multi_process_feature, remote_non_stop_feature)
3727 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3728 (remote_breakpoint_commands_feature)
3729 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3730 (remote_install_in_trace_feature)
3731 (remote_disconnected_tracing_feature)
3732 (remote_enable_disable_tracepoint_feature)
3733 (remote_string_tracing_feature)
3734 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3735 (remote_protocol_features): Adjust to use remote_supported_packet
3736 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3737 "ConditionalTracepoints", "ConditionalBreakpoints",
3738 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3739 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3740 "EnableDisableTracepoints", and "tracenz".
3741 (remote_query_supported): Use packet_support.
3742 (remote_open_1): Adjust.
3743 (extended_remote_attach_1): Use packet_support. Switch on the
3744 result of packet_ok instead of checking whether the packet ended
3746 (remote_vcont_resume): Use packet_support.
3747 (remote_resume, remote_stop_ns, fetch_register_using_p)
3748 (remote_prepare_to_store, store_register_using_P)
3749 (check_binary_download, remote_write_bytes): Use packet_support.
3750 (remote_vkill): Use packet_support. Switch on the result of
3751 packet_ok instead of checking whether the packet ended up
3753 (extended_remote_supports_disable_randomization): Use
3755 (extended_remote_run): Switch on the result of packet_ok instead
3756 of checking whether the packet ended up disabled.
3757 (remote_insert_breakpoint, remote_remove_breakpoint)
3758 (remote_insert_watchpoint, remote_remove_watchpoint)
3759 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3761 (remote_search_memory): Use packet_config_support.
3762 (remote_get_thread_local_address, remote_get_tib_address)
3763 (remote_hostio_send_command, remote_can_execute_reverse): Use
3765 (remote_supports_cond_tracepoints)
3766 (remote_supports_cond_breakpoints)
3767 (remote_supports_fast_tracepoints)
3768 (remote_supports_static_tracepoints)
3769 (remote_supports_install_in_trace)
3770 (remote_supports_enable_disable_tracepoint)
3771 (remote_supports_string_tracing)
3772 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3773 the packet config says the feature is enabled or disabled.
3774 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3775 (remote_get_trace_status): Use packet_support.
3776 (remote_set_disconnected_tracing): Adjust to check whether the
3777 feature is enabled with packet_support.
3778 (remote_set_trace_buffer_size, remote_use_agent)
3779 (remote_can_use_agent, remote_supports_btrace): Use
3781 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3782 Use packet_config_support.
3783 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3784 the packet config says the feature is enabled or disabled.
3785 (set_range_stepping): Use packet_support.
3787 2014-04-25 Tom Tromey <tromey@redhat.com>
3789 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3792 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3794 * NEWS: Mention support for C99 variable length arrays.
3796 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3798 * ada-lang.c (standard_exc): Expand introductory comment.
3800 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3801 Walfred Tedeschi <walfred.tedeschi@intel.com>
3803 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3805 (amd64_linux_read_description): Add code to handle AVX512 xstate
3806 mask and return respective tdesc.
3807 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3808 and features/i386/x32-avx512-linux.c.
3809 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3810 (amd64_linux_core_read_description): Add code to handle AVX512
3811 xstate mask and return respective tdesc.
3812 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3813 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3815 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3816 (tdesc_amd64_avx512_linux): New prototype.
3817 (tdesc_x32_avx512_linux): Likewise.
3818 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3819 features/i386/x32-avx512.c.
3820 (amd64_ymm_avx512_names): New register names for pseudo
3822 (amd64_ymmh_avx512_names): New register names for raw registers
3824 (amd64_k_names): New register names for K registers.
3825 (amd64_zmmh_names): New register names for ZMM raw registers.
3826 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3827 (amd64_xmm_avx512_names): New register names for XMM16-31
3829 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3831 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3832 if feature is present.
3833 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3834 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3835 (AMD64_NUM_REGS): Adjust to new number of registers.
3836 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3837 registers supplied via XSTATE by AVX512 registers.
3838 (i386_linux_read_description): Add case for AVX512.
3839 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3840 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3841 (i386_linux_core_read_description): Add case for AVX512.
3842 (i386_linux_init_abi): Install supported register note section
3844 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3846 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3847 registers to be number of zmm7h + 1.
3848 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3849 * i386-tdep.c: Include features/i386/i386-avx512.c.
3850 (i386_zmm_names): Add ZMM pseudo register names array.
3851 (i386_zmmh_names): Add ZMM raw register names array.
3852 (i386_k_names): Add K raw register names array.
3853 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3854 registers. AVX512 has 16 more ZMM registers than there are YMM
3856 (i386_zmmh_regnum_p): Add function to look up register number of
3858 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3859 (i386_k_regnum_p): Likewise for K raw registers.
3860 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3861 registers added by AVX512.
3862 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3863 registers added by AVX512.
3864 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3866 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3867 (i386_pseudo_register_name): Add ZMM pseudo registers.
3868 (i386_zmm_type): Construct and return vector registers type for ZMM
3870 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3871 ZMM0-31 pseudo registers and K registers.
3872 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3873 and YMM16-31 registers from register cache.
3874 (i386_pseudo_register_write): Add code to write K, ZMM and
3876 (i386_register_reggroup_p): Add code to include/exclude AVX512
3877 registers in/from respective register groups.
3878 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3879 registers if feature is present in xcr0.
3880 (i386_gdbarch_init): Add code to initialize AVX512 feature
3881 variables in tdep structure, wire in pseudo registers and call
3882 initialize_tdesc_i386_avx512.
3883 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3885 (i386_regnum): Add AVX512 registers.
3886 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3887 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3888 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3889 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3891 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3892 (i386_ymm_avx512_regnum_p): Likewise.
3893 (i386_k_regnum_p): Likewise.
3894 (i386_zmm_regnum_p): Likewise.
3895 (i386_zmmh_regnum_p): Likewise.
3896 * i387-tdep.c : Update year in copyright notice.
3897 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3899 (XSAVE_YMM_AVX512_ADDR): New macro.
3900 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3902 (XSAVE_XMM_AVX512_ADDR): New macro.
3903 (xsave_avx512_k_offset): New table for K register offsets in
3905 (XSAVE_AVX512_K_ADDR): New macro.
3906 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3908 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3909 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3911 (i387_collect_xsave): Add code to collect AVX512 registers from
3913 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3914 of XMM16-31 registers.
3915 (I387_NUM_K_REGS): New define for number of K registers.
3916 (I387_K0_REGNUM): New define for K0 register number.
3917 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3918 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3919 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3921 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3922 (I387_XMM16_REGNUM): New define for XMM16 register number.
3923 (I387_YMM0_REGNUM): New define for YMM0 register number.
3924 (I387_KEND_REGNUM): New define for last K register number.
3925 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3926 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3928 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3930 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3932 * features/Makefile: Add AVX512 related files.
3933 * features/i386/32bit-avx512.xml: New file.
3934 * features/i386/64bit-avx512.xml: Likewise.
3935 * features/i386/amd64-avx512-linux.c: Likewise.
3936 * features/i386/amd64-avx512-linux.xml: Likewise.
3937 * features/i386/amd64-avx512.c: Likewise.
3938 * features/i386/amd64-avx512.xml: Likewise.
3939 * features/i386/i386-avx512-linux.c: Likewise.
3940 * features/i386/i386-avx512-linux.xml: Likewise.
3941 * features/i386/i386-avx512.c: Likewise.
3942 * features/i386/i386-avx512.xml: Likewise.
3943 * features/i386/x32-avx512-linux.c: Likewise.
3944 * features/i386/x32-avx512-linux.xml: Likewise.
3945 * features/i386/x32-avx512.c: Likewise.
3946 * features/i386/x32-avx512.xml: Likewise.
3947 * regformats/i386/amd64-avx512-linux.dat: New file.
3948 * regformats/i386/amd64-avx512.dat: Likewise.
3949 * regformats/i386/i386-avx512-linux.dat: Likewise.
3950 * regformats/i386/i386-avx512.dat: Likewise.
3951 * regformats/i386/x32-avx512-linux.dat: Likewise.
3952 * regformats/i386/x32-avx512.dat: Likewise.
3953 * NEWS: Add note about new support for AVX512.
3956 2014-04-23 Pedro Alves <palves@redhat.com>
3958 * breakpoint.c (insert_bp_location): Tolerate errors if the
3959 breakpoint is set in a user-loaded objfile.
3960 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3961 location is marked shlib_disabled. If the breakpoint is set in a
3962 user-loaded objfile is a GDB-side memory breakpoint, validate it
3963 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3964 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3966 * mem-break.c (memory_validate_breakpoint): New function.
3967 * objfiles.c (userloaded_objfile_contains_address_p): New
3969 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3970 * target.h (memory_validate_breakpoint): New declaration.
3972 2014-04-23 Pedro Alves <palves@redhat.com>
3974 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3975 the breakpoint is set in a shared library, only suppress
3976 errors for software breakpoints, not hardware breakpoints.
3978 2014-04-22 Pedro Alves <palves@redhat.com>
3980 * infrun.c (schedlock_applies): New function, factored out from
3981 find_thread_needs_step_over.
3982 (find_thread_needs_step_over): Use it.
3983 (switch_back_to_stepped_thread): Always clear trap_expected if the
3984 step over is finished. Return early if scheduler locking applies.
3985 Look for the stepping thread and a potential step-over thread with
3987 (currently_stepping_or_nexting_callback): Delete.
3989 2014-04-22 Nick Clifton <nickc@redhat.com>
3991 * NEWS: Mention that ARM sim now supports tracing.
3993 2014-04-22 Yao Qi <yao@codesourcery.com>
3995 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3997 * tracefile.c (tracefile_fetch_registers): ... it. New
3999 * tracefile.h (tracefile_fetch_registers): Declare.
4000 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
4001 tracefile_fetch_registers.
4003 2014-04-19 Eli Zaretskii <eliz@gnu.org>
4006 * windows-nat.c (thread_rec): Don't display a warning when
4007 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
4008 fails for any reason, set th->suspended to -1, so that we don't
4009 try to resume such a thread. Also, don't return NULL in these
4010 cases, to avoid completely ruin the session due to "PC register is
4011 not available" error.
4012 (do_windows_fetch_inferior_registers): Check errors in
4013 GetThreadContext call.
4014 (windows_continue): Accept an additional argument KILLED; if not
4015 zero, ignore errors in the SetThreadContext call, since the
4016 inferior was killed and is shutting down.
4017 (windows_resume, get_windows_debug_event)
4018 (windows_create_inferior, windows_mourn_inferior)
4019 (windows_kill_inferior): All callers of windows_continue changed
4020 to adjust to its new calling sequence.
4022 2014-04-19 Yao Qi <yao@codesourcery.com>
4024 * ctf.c (ctf_open): Call post_create_inferior.
4026 2014-04-19 Yao Qi <yao@codesourcery.com>
4028 * ctf.c (handle_id): New static variable.
4029 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4030 value. Get the declaration of event "register" and get length
4031 of field "contents".
4033 2014-04-19 Yao Qi <yao@codesourcery.com>
4035 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4037 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4039 * valops.c (oload_method_static): Remove unnecessary argument
4040 METHOD. Update all callers.
4042 2014-04-18 Pedro alves <palves@redhat.com>
4043 Tom Tromey <tromey@redhat.com>
4046 * frame.c (get_prev_frame_1): Rename to ...
4047 (get_prev_frame_always): ... this, and make extern. Adjust.
4048 (skip_artificial_frames): Use get_prev_frame_always.
4049 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4050 (get_frame_unwind_stop_reason): Adjust to rename.
4051 * frame.h (get_prev_frame_always): Declare.
4052 * inline-frame.c: Include frame.h.
4053 (inline_frame_this_id): Use get_prev_frame_always.
4055 2014-04-18 Tristan Gingold <gingold@adacore.com>
4057 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4058 code by using bfd_mach_o_get_base_address.
4060 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4062 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4063 (spu_ax_pseudo_register_collect): New function.
4064 (spu_ax_pseudo_register_push_stack): Likewise.
4065 (spu_dwarf_reg_to_regnum): Likewise.
4066 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4068 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
4070 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4071 Replace FRAME argument with FRAME_ID.
4072 * gdbarch.c, gdbarch.h: Regenerate.
4073 * findvar.c (default_value_from_register): Add GDBARCH argument;
4074 replace FRAME by FRAME_ID. No longer call get_frame_id.
4075 (value_from_register): Update call to gdbarch_value_from_register.
4076 * value.h (default_value_from_register): Update prototype.
4077 * s390-linux-tdep.c (s390_value_from_register): Update interface
4078 and call to default_value_from_register.
4079 * spu-tdep.c (spu_value_from_register): Likewise.
4081 * findvar.c (address_from_register): Remove TYPE argument.
4082 Do not call value_from_register; use gdbarch_value_from_register
4083 with null_frame_id instead.
4084 * value.h (address_from_register): Update prototype.
4085 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4086 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4087 address_from_register interface change.
4089 2014-04-17 Yao Qi <yao@codesourcery.com>
4091 * gdbtypes.h: Update comments to link to types and macros'
4094 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4096 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4098 2014-04-16 Keith Seitz <keiths@redhat.com>
4101 * dwarf2read.c (skip_one_die): Check that all relative-offset
4102 sibling DIEs fall within range of the current reader's buffer.
4103 (read_partial_die): Likewise.
4105 2014-04-16 Keith Seitz <keiths@redhat.com>
4108 * cp-namespace.c (lookup_symbol_file): If the type name of
4109 `this' is NULL, return immediately.
4111 2014-04-14 Keith Seitz <keiths@redhat.com>
4114 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4115 from symbol_matches_domain in symtab.c. All local callers
4116 of symbol_matches_domain updated.
4117 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4118 search STRUCT_DOMAIN.
4119 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4120 independently. standard_lookup will do that automatically.
4121 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4122 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4123 (cp_lookup_symbol_in_namespace): Likewise.
4124 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4125 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4126 may return a STRUCT_DOMAIN match.
4127 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4128 * cp-support.c: Include language.h.
4129 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4131 * psymtab.c (match_partial_symbol): Compare the requested
4132 domain with the symbol's domain directly.
4133 (lookup_partial_symbol): Likewise.
4134 * symtab.c (lookup_symbol_in_language): Explain when/why
4135 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4136 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4137 appropriate languages.
4138 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4139 and moved to ada-lang.c
4140 (lookup_block_symbol): Explain that this function only returns
4141 symbol matching the requested DOMAIN.
4142 Compare the requested domain with the symbol's domain directly.
4143 (iterate_over_symbols): Compare the requested domain with the
4144 symbol's domain directly.
4145 * symtab.h (symbol_matches_domain): Remove.
4147 2014-04-14 Tom Tromey <tromey@redhat.com>
4150 * c-exp.y (type_aggregate_p): New function.
4151 (qualified_name, classify_inner_name): Use it.
4152 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4153 and TYPE_TARGET_TYPE of an enum type.
4154 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4156 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4157 handle TYPE_DECLARED_CLASS.
4158 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4160 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4161 * valops.c (enum_constant_from_type): New function.
4162 (value_aggregate_elt): Use it.
4163 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4166 2014-04-14 Tom Tromey <tromey@redhat.com>
4168 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4169 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4171 * value.h (value_aggregate_elt): Update.
4173 2014-04-14 Tom Tromey <tromey@redhat.com>
4175 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4177 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4179 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4180 (evaluate_subexp_standard): Pass noside argument.
4181 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4182 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4183 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4184 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4185 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4187 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4189 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4190 points to a constant blob.
4192 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4194 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4195 property and store it as the high bound and flag the range accordingly.
4196 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4197 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4198 * gdbtypes.h (enum range_flags): New enum.
4199 (struct range_bounds): Add flags member.
4201 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4203 * c-typeprint.c (c_type_print_varspec_suffix): Added
4204 check for not yet resolved high bound. If unresolved, print
4205 "variable length" string to the console instead of random
4208 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4210 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4212 (ada_template_to_fixed_record_type_1): Likewise.
4213 (ada_to_fixed_type_1): Likewise.
4214 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4215 (cp_print_value): Likewise.
4216 * d-valprint.c (dynamic_array_type): Likewise.
4217 * findvar.c (address_of_variable): Likewise.
4218 * jv-valprint.c (java_value_print): Likewise.
4219 * valops.c (value_ind): Likewise.
4220 * value.c (coerce_ref): Likewise.
4222 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4224 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4225 value and retrieve the dynamic type size.
4227 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4229 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4230 passed to sizeof is dynamic evaluate the argument to compute the length.
4232 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4233 Joel Brobecker <brobecker@adacore.com>
4235 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4236 (dwarf2_evaluate_property): New function.
4237 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4238 * dwarf2read.c (attr_to_dynamic_prop): New function.
4239 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4241 * gdbtypes.c: Include dwarf2loc.h.
4242 (is_dynamic_type): New function.
4243 (resolve_dynamic_type): New function.
4244 (resolve_dynamic_bounds): New function.
4245 (get_type_length): New function.
4246 (check_typedef): Use get_type_length to compute type length.
4247 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4248 (TYPE_LOW_BOUND_KIND): New macro.
4249 (is_dynamic_type): New function prototype.
4250 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4251 to resolve dynamic properties of the type. Update comment.
4252 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4254 2014-04-14 Richard Henderson <rth@redhat.com>
4256 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4258 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4259 Doug Evans <xdje42@gmail.com>
4261 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4262 dereference TYPE_CODE_REF values.
4264 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4266 Revert the following changes due to regressions:
4268 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4269 (dwarf2_evaluate_property): New function.
4270 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4271 * dwarf2read.c (attr_to_dynamic_prop): New function.
4272 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4274 * gdbtypes.c: Include dwarf2loc.h.
4275 (is_dynamic_type): New function.
4276 (resolve_dynamic_type): New function.
4277 (resolve_dynamic_bounds): New function.
4278 (get_type_length): New function.
4279 (check_typedef): Use get_type_length to compute type length.
4280 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4281 (TYPE_LOW_BOUND_KIND): New macro.
4282 (is_dynamic_type): New function prototype.
4283 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4284 to resolve dynamic properties of the type. Update comment.
4285 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4287 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4288 passed to sizeof is dynamic evaluate the argument to compute the length.
4290 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4291 value and retrieve the dynamic type size.
4293 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4294 (ada_template_to_fixed_record_type_1): Likewise.
4295 (ada_to_fixed_type_1): Likewise.
4296 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4297 (cp_print_value): Likewise.
4298 * d-valprint.c (dynamic_array_type): Likewise.
4299 * eval.c (evaluate_subexp_with_coercion): Likewise.
4300 * findvar.c (address_of_variable): Likewise.
4301 * jv-valprint.c (java_value_print): Likewise.
4302 * valops.c (value_ind): Likewise.
4303 * value.c (coerce_ref): Likewise.
4305 * c-typeprint.c (c_type_print_varspec_suffix): Added
4306 check for not yet resolved high bound. If unresolved, print
4307 "variable length" string to the console instead of random
4310 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4311 property and store it as the high bound and flag the range accordingly.
4312 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4313 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4314 * gdbtypes.h (enum range_flags): New enum.
4315 (struct range_bounds): Add flags member.
4317 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4318 points to a constant blob.
4320 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4321 (evaluate_subexp_standard): Pass noside argument.
4322 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4323 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4324 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4325 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4326 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4328 2014-04-11 Keith Seitz <keiths@redhat.com>
4331 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4332 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4335 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4337 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4338 (evaluate_subexp_standard): Pass noside argument.
4339 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4340 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4341 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4342 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4343 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4345 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4347 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4348 points to a constant blob.
4350 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4352 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4353 property and store it as the high bound and flag the range accordingly.
4354 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4355 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4356 * gdbtypes.h (enum range_flags): New enum.
4357 (struct range_bounds): Add flags member.
4359 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4361 * c-typeprint.c (c_type_print_varspec_suffix): Added
4362 check for not yet resolved high bound. If unresolved, print
4363 "variable length" string to the console instead of random
4366 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4368 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4369 (ada_template_to_fixed_record_type_1): Likewise.
4370 (ada_to_fixed_type_1): Likewise.
4371 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4372 (cp_print_value): Likewise.
4373 * d-valprint.c (dynamic_array_type): Likewise.
4374 * eval.c (evaluate_subexp_with_coercion): Likewise.
4375 * findvar.c (address_of_variable): Likewise.
4376 * jv-valprint.c (java_value_print): Likewise.
4377 * valops.c (value_ind): Likewise.
4378 * value.c (coerce_ref): Likewise.
4380 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4382 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4383 value and retrieve the dynamic type size.
4385 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4387 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4388 passed to sizeof is dynamic evaluate the argument to compute the length.
4390 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4392 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4393 (dwarf2_evaluate_property): New function.
4394 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4395 * dwarf2read.c (attr_to_dynamic_prop): New function.
4396 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4398 * gdbtypes.c: Include dwarf2loc.h.
4399 (is_dynamic_type): New function.
4400 (resolve_dynamic_type): New function.
4401 (resolve_dynamic_bounds): New function.
4402 (get_type_length): New function.
4403 (check_typedef): Use get_type_length to compute type length.
4404 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4405 (TYPE_LOW_BOUND_KIND): New macro.
4406 (is_dynamic_type): New function prototype.
4407 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4408 to resolve dynamic properties of the type. Update comment.
4409 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4411 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4413 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4414 declaring high/low bounds and change uses accordingly. Call
4415 create_range_type instead of create_static_range_type.
4416 * gdbtypes.c (create_range_type): New function.
4417 (create_range_type): Convert bounds into struct bound_prop and pass
4418 them to create_range_type.
4419 * gdbtypes.h (struct bound_prop): New struct.
4420 (create_range_type): New function prototype.
4421 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4422 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4423 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4425 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4427 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4429 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4430 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4431 * ada-lang.c: All uses of create_range_type updated.
4432 * coffread.c: All uses of create_range_type updated.
4433 * dwarf2read.c: All uses of create_range_type updated.
4434 * f-exp.y: All uses of create_range_type updated.
4435 * m2-valprint.c: All uses of create_range_type updated.
4436 * mdebugread.c: All uses of create_range_type updated.
4437 * stabsread.c: All uses of create_range_type updated.
4438 * valops.c: All uses of create_range_type updated.
4439 * valprint.c: All uses of create_range_type updated.
4441 2014-04-10 Pedro Alves <palves@redhat.com>
4443 * breakpoint.c (single_step_breakpoints)
4444 (single_step_gdbarch): Move up in the file.
4445 (one_breakpoint_xfer_memory): New function, factored out from ...
4446 (breakpoint_xfer_memory): ... here. Also process single-step
4449 2014-04-09 Tristan Gingold <gingold@adacore.com>
4451 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4453 (darwin_decode_exception_message): Free port only after use.
4455 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4457 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4458 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4459 when setting the size of call_length.
4461 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4463 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4464 dereference TYPE_CODE_REF values.
4466 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4468 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4469 end of warning message.
4471 2014-04-03 Doug Evans <dje@google.com>
4473 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4474 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4476 2014-04-02 Alan Modra <amodra@gmail.com>
4478 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4479 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4480 (struct symbol_file_add_from_memory_args): Add size field.
4481 (find_vdso_size): New function.
4482 (add_vsyscall_page): Attempt to find vdso size.
4484 2014-04-01 Doug Evans <dje@google.com>
4486 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4488 2014-04-01 Tristan Gingold <gingold@adacore.com>
4490 * darwin-nat.c (darwin_encode_reply): Add prototype.
4491 (darwin_decode_exception_message): Reply to unknown inferiors.
4492 (darwin_decode_message): Handle message by id. Ignore message
4493 to unknown inferior.
4494 (darwin_wait): Discard unknown messages, add debug trace.
4496 2014-03-31 Doug Evans <dje@google.com>
4498 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4501 2014-03-31 Doug Evans <dje@google.com>
4503 New option "set print symbol-loading".
4505 * solib.c (solib_read_symbols): Only print symbol loading messages
4507 (solib_add): If symbol loading is in "brief" mode, notify user
4508 symbols are being loaded.
4509 (reload_shared_libraries_1): Ditto.
4510 * symfile.c (print_symbol_loading_off): New static global.
4511 (print_symbol_loading_brief): New static global.
4512 (print_symbol_loading_full): New static global.
4513 (print_symbol_loading_enums): New static global.
4514 (print_symbol_loading): New static global.
4515 (print_symbol_loading_p): New function.
4516 (symbol_file_add_with_addrs): Only print symbol loading messages
4518 (_initialize_symfile): Register "print symbol-loading" set/show
4520 * symfile.h (print_symbol_loading_p): Declare.
4522 2014-03-30 Doug Evans <xdje42@gmail.com>
4524 * infrun.c (set_last_target_status): New function.
4525 (handle_inferior_event): Call it.
4527 2014-03-30 Doug Evans <xdje42@gmail.com>
4529 * inferior.h (enum stop_kind): Improve comment.
4531 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4533 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4534 a reference, strip the reference layer before calling
4535 the lang_ops value_has_mutated callback.
4537 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4539 Remove some globals from our parser.
4540 * language.c (unk_lang_parser): Add "struct parser_state"
4542 * language.h (struct language_defn) <la_parser>: Likewise.
4543 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4544 (initialize_expout): Add "struct parser_state" argument.
4545 Rewrite function to use the parser state.
4546 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4547 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4548 write_exp_elt_longcst, write_exp_elt_dblcst,
4549 write_exp_elt_decfloatcst, write_exp_elt_type,
4550 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4551 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4552 write_dollar_variable): Likewise.
4553 (parse_exp_in_context_1): Use parser state.
4554 (insert_type_address_space): Add "struct parser_state" argument.
4556 (increase_expout_size): New function.
4557 * parser-defs.h: Forward declare "struct language_defn" and
4558 "struct parser_state".
4559 (expout, expout_size, expout_ptr): Remove extern declarations.
4560 (parse_gdbarch, parse_language): Rewrite macro declarations to
4561 accept the parser state.
4562 (struct parser_state): New struct.
4563 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4564 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4565 write_exp_elt_decfloatcst, write_exp_elt_type,
4566 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4567 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4568 write_exp_msymbol, write_dollar_variable,
4569 mark_struct_expression, insert_type_address_space): Add "struct
4570 parser_state" argument.
4571 (increase_expout_size): New function.
4572 * utils.c (do_clear_parser_state): New function.
4573 (make_cleanup_clear_parser_state): Likewise.
4574 * utils.h (make_cleanup_clear_parser_state): New function
4576 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4577 Update calls to write_exp* in order to pass the parser state.
4578 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4579 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4580 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4581 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4582 * stap-probe.c (stap_parse_register_operand): Likewise.
4583 (stap_parse_single_operand): Likewise.
4584 (stap_parse_argument_1): Likewise.
4585 (stap_parse_argument): Use parser state.
4586 * stap-probe.h: Include "parser-defs.h".
4587 (struct stap_parse_info) <pstate>: New field.
4588 * c-exp.y (parse_type): Rewrite to use parser state.
4589 (yyparse): Redefine to c_parse_internal.
4590 (pstate): New global variable.
4591 (parse_number): Add "struct parser_state" argument.
4592 (write_destructor_name): Likewise.
4593 (type_exp): Update calls to write_exp* and similars in order to
4595 (exp1, exp, variable, qualified_name, space_identifier,
4596 typename, typebase): Likewise.
4597 (write_destructor_name, parse_number, lex_one_token,
4598 classify_name, classify_inner_name, c_parse): Add "struct
4599 parser_state" argument. Update function to use parser state.
4600 * c-lang.h: Forward declare "struct parser_state".
4601 (c_parse): Add "struct parser_state" argument.
4602 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4603 (yyparse): Redefine macro to ada_parse_internal.
4604 (pstate): New variable.
4605 (write_int, write_object_renaming, write_var_or_type,
4606 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4607 type_int, type_long, type_long_long, type_float, type_double,
4608 type_long_double, type_char, type_boolean, type_system_address):
4609 Add "struct parser_state" argument.
4610 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4611 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4612 var_or_type, aggregate, aggregate_component_list,
4613 positional_list, others, component_group,
4614 component_associations): Update calls to write_exp* and similar
4615 functions in order to use parser state.
4616 (ada_parse, write_var_from_sym, write_int,
4617 write_exp_op_with_string, write_object_renaming,
4618 find_primitive_type, write_selectors, write_ambiguous_var,
4619 write_var_or_type, write_name_assoc, type_int, type_long,
4620 type_long_long, type_float, type_double, type_long_double,
4621 type_char, type_boolean, type_system_address): Add "struct
4622 parser_state" argument. Adjust function to use parser state.
4623 * ada-lang.c (parse): Likewise.
4624 * ada-lang.h: Forward declare "struct parser_state".
4625 (ada_parse): Add "struct parser_state" argument.
4626 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4627 calls to both functions.
4628 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4630 (yyparse): Redefine macro to f_parse_internal.
4631 (pstate): New variable.
4632 (parse_number): Add "struct parser_state" argument.
4633 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4634 and similars in order to use parser state.
4635 (parse_number): Adjust code to use parser state.
4637 (f_parse): New function.
4638 * f-lang.h: Forward declare "struct parser_state".
4639 (f_parse): Add "struct parser_state" argument.
4640 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4642 (yyparse): Redefine macro for java_parse_internal.
4643 (pstate): New variable.
4644 (push_expression_name, push_expression_name, insert_exp): Add
4645 "struct parser_state" argument.
4646 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4647 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4648 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4649 PostIncrementExpression, PostDecrementExpression,
4650 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4651 UnaryExpressionNotPlusMinus, CastExpression,
4652 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4653 RelationalExpression, EqualityExpression, AndExpression,
4654 ExclusiveOrExpression, InclusiveOrExpression,
4655 ConditionalAndExpression, ConditionalOrExpression,
4656 ConditionalExpression, Assignment, LeftHandSide): Update
4657 calls to write_exp* and similars in order to use parser state.
4658 (parse_number): Ajust code to use parser state.
4660 (java_parse): New function.
4661 (push_variable): Add "struct parser_state" argument. Adjust
4662 code to user parser state.
4663 (push_fieldnames, push_qualified_expression_name,
4664 push_expression_name, insert_exp): Likewise.
4665 * jv-lang.h: Forward declare "struct parser_state".
4666 (java_parse): Add "struct parser_state" argument.
4667 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4669 (yyparse): Redefine macro to m2_parse_internal.
4670 (pstate): New variable.
4671 (type_exp, exp, fblock, variable, type): Update calls to
4672 write_exp* and similars to use parser state.
4674 (m2_parse): New function.
4675 * m2-lang.h: Forward declare "struct parser_state".
4676 (m2_parse): Add "struct parser_state" argument.
4677 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4678 * objc-lang.h: Forward declare "struct parser_state".
4679 (end_msglist): Add "struct parser_state" argument.
4680 * p-exp.y (parse_type): Rewrite macro to use parser state.
4681 (yyparse): Redefine macro to pascal_parse_internal.
4682 (pstate): New variable.
4683 (parse_number): Add "struct parser_state" argument.
4684 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4685 write_exp* and similars in order to use parser state.
4686 (parse_number, yylex): Adjust code to use parser state.
4687 (pascal_parse): New function.
4688 * p-lang.h: Forward declare "struct parser_state".
4689 (pascal_parse): Add "struct parser_state" argument.
4690 * go-exp.y (parse_type): Rewrite macro to use parser state.
4691 (yyparse): Redefine macro to go_parse_internal.
4692 (pstate): New variable.
4693 (parse_number): Add "struct parser_state" argument.
4694 (type_exp, exp1, exp, variable, type): Update calls to
4695 write_exp* and similars in order to use parser state.
4696 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4697 to use parser state.
4698 (go_parse): Likewise.
4699 * go-lang.h: Forward declare "struct parser_state".
4700 (go_parse): Add "struct parser_state" argument.
4702 2014-03-27 Doug Evans <dje@google.com>
4704 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4706 2014-03-27 Doug Evans <dje@google.com>
4708 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4709 Remove argument abbrev_section. All callers updated.
4711 2014-03-27 Doug Evans <dje@google.com>
4713 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4714 addr_base, ranges_base.
4716 2014-03-26 Keith Seitz <keiths@redhat.com>
4718 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4719 types, not VAR_DOMAIN.
4721 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4723 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4725 * features/nios2-linux.c: Regenerated.
4726 * features/nios2.c: Regenerated.
4728 2014-03-25 Pedro Alves <palves@redhat.com>
4730 * cli/cli-script.c (script_from_file): Force the interpreter to
4733 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4735 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4736 small stack allocation.
4738 2014-03-24 Tristan Gingold <gingold@adacore.com>
4740 * darwin-nat.c (exc_server): Remove unused prototype.
4741 (darwin_dump_message): Correctly display data on x86_64.
4742 (darwin_encode_reply): Fix style.
4743 Add comments and fix indentation.
4745 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4747 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4749 2014-03-22 Doug Evans <xdje42@gmail.com>
4751 * infcmd.c: Whitespace fixes.
4752 (interrupt_command): Merge two function comments into one.
4754 2014-03-22 Doug Evans <xdje42@gmail.com>
4756 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4759 2014-03-22 Yao Qi <yao@codesourcery.com>
4761 * remote.c (target_read_live_memory): Remove.
4762 (memory_xfer_live_readonly_partial): Rename it to
4763 remote_xfer_live_readonly_partial. Remove argument 'object'.
4764 All callers updated. Call remote_read_bytes_1
4765 instead of target_read_live_memory.
4766 * tracepoint.c (set_traceframe_number): Remove.
4767 (make_cleanup_restore_traceframe_number): Likewise .
4768 * tracepoint.h (set_traceframe_number): Remove declaration.
4769 (make_cleanup_restore_traceframe_number): Likewise.
4771 2014-03-22 Yao Qi <yao@codesourcery.com>
4773 * remote.c (remote_read_bytes): Move code on reading from the
4775 (remote_read_bytes_1): ... here. New function.
4777 2014-03-22 Yao Qi <yao@codesourcery.com>
4779 * ctf.c (ctf_xfer_partial): Check the return value of
4780 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4781 return TARGET_XFER_UNAVAILABLE.
4782 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4783 * target.c (target_read_live_memory): Move it to remote.c.
4784 (memory_xfer_live_readonly_partial): Likewise.
4785 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4786 * remote.c (target_read_live_memory): Moved from target.c.
4787 (memory_xfer_live_readonly_partial): Likewise.
4788 (remote_read_bytes): Factored out from
4789 memory_xfer_partial_1.
4791 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4793 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4796 2014-03-21 Pedro Alves <palves@redhat.com>
4798 * infrun.c (normal_stop): Extend comment.
4800 2014-03-21 Hui Zhu <hui@codesourcery.com>
4801 Pedro Alves <palves@redhat.com>
4803 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4805 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4806 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4807 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4809 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4811 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4812 `z' formatted output modifier.
4814 2014-03-20 Tom Tromey <tromey@redhat.com>
4815 Sergio Durigan Junior <sergiodj@redhat.com>
4817 * probe.c (parse_probes): Turn assert into an ordinary error.
4818 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4819 exceptions when parsing probes. Rearrange the code for clarity.
4821 2014-03-20 Tom Tromey <tromey@redhat.com>
4824 * top.c (execute_command): Only dispatch events if the command
4827 2014-03-20 Tom Tromey <tromey@redhat.com>
4830 * infcall.c: Include event-top.h.
4831 (run_inferior_call): Call async_disable_stdin if needed.
4833 2014-03-20 Pedro Alves <palves@redhat.com>
4835 * infrun.c (prepare_to_proceed): Delete.
4836 (thread_still_needs_step_over): New function.
4837 (find_thread_needs_step_over): New function.
4838 (proceed): If the current thread needs a step-over, set its
4839 steping_over_breakpoint flag. Adjust to use
4840 find_thread_needs_step_over instead of prepare_to_proceed.
4841 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4842 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4844 (switch_back_to_stepped_thread): Step over breakpoints of all
4845 threads not the stepping thread, before switching back to the
4848 2014-03-20 Pedro Alves <palves@redhat.com>
4850 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4852 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4853 * infrun.c (saved_singlestep_ptid)
4854 (stepping_past_singlestep_breakpoint): Delete.
4855 (resume): Remove stepping_past_singlestep_breakpoint handling.
4856 (proceed): Store the prev_pc of the stepping thread too.
4857 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4859 (enum infwait_states): Delete infwait_thread_hop_state.
4860 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4862 (handle_inferior_event): Adjust.
4863 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4864 handling and the thread-hop code. Before removing single-step
4865 breakpoints, check whether the thread hit a single-step breakpoint
4866 of another thread. If it did, the trap is not a random signal.
4867 (switch_back_to_stepped_thread): If the event thread hit a
4868 single-step breakpoint, unblock it before switching to the
4869 stepping thread. Handle the case of the stepped thread having
4871 (keep_going): Handle the case of the current thread moving past a
4872 single-step breakpoint.
4874 2014-03-20 Pedro Alves <palves@redhat.com>
4877 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4878 are being stepped over.
4879 (breakpoint_address_match): Make extern.
4880 * breakpoint.h (breakpoint_address_match): New declaration.
4881 * inferior.h (stepping_past_instruction_at): New declaration.
4882 * infrun.c (struct step_over_info): New type.
4883 (step_over_info): New global.
4884 (set_step_over_info, clear_step_over_info)
4885 (stepping_past_instruction_at): New functions.
4886 (handle_inferior_event): Clear the step-over info when
4887 trap_expected is cleared.
4888 (resume): Remove now stale comment.
4889 (clear_proceed_status): Clear step-over info.
4890 (proceed): Adjust step-over handling to set or clear the step-over
4891 info instead of removing all breakpoints.
4892 (handle_signal_stop): When setting up a thread-hop, don't remove
4894 (stop_stepping): Clear step-over info.
4895 (keep_going): Adjust step-over handling to set or clear step-over
4896 info and then always inserting breakpoints, instead of removing
4897 all breakpoints when stepping over one.
4899 2014-03-20 Pedro Alves <palves@redhat.com>
4901 * infrun.c (previous_inferior_ptid): Adjust comment.
4902 (deferred_step_ptid): Delete.
4903 (infrun_thread_ptid_changed, prepare_to_proceed)
4904 (init_wait_for_inferior): Adjust.
4905 (handle_signal_stop): Delete deferred_step_ptid handling.
4907 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4910 * defs.h (sync_quit_force_run): New declaration.
4911 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4912 * event-top.c (async_sigterm_handler): New declaration.
4913 (async_sigterm_token): New variable.
4914 (async_init_signals): Create also async_sigterm_token.
4915 (async_sigterm_handler): New function.
4916 (sync_quit_force_run): New variable.
4917 (handle_sigterm): Replace quit_force call by other calls.
4918 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4920 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4922 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4923 offset into SPE pseudo registers.
4925 2014-03-18 Pedro Alves <palves@redhat.com>
4928 * inferior.h (print_stop_event): Declare.
4929 * infrun.c (print_stop_event): New, factored out from ...
4930 (normal_stop): ... this.
4931 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4932 of bpstat_print/print_stack_frame.
4934 2014-03-17 Tom Tromey <tromey@redhat.com>
4936 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4938 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4940 * ada-lang.c (decode_constrained_packed_array): Perform a
4941 minimal coercion for reference with coerce_ref instead of
4944 2014-03-17 Tristan Gingold <gingold@adacore.com>
4946 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4947 (darwin_solib_create_inferior_hook): Emit a warning if version
4950 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4952 * python/py-value.c (get_field_flag): Cast flag_name argument to
4953 PyObject_GetAttrString to support Python 2.4.
4955 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4957 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4958 (Global Maintainers): Remove Jan Kratochvil.
4960 2014-03-14 Pedro Alves <palves@redhat.com>
4962 * inferior.h (terminal_ours_for_output): Rename to ...
4963 (child_terminal_ours_for_output): ... this.
4964 (terminal_save_ours): Rename to ...
4965 (child_terminal_save_ours): ... this.
4966 (terminal_ours): Rename to ...
4967 (child_terminal_ours): ... this.
4968 (terminal_inferior): Rename to ...
4969 (child_terminal_inferior): ... this.
4970 (terminal_init_inferior): Rename to ...
4971 (child_terminal_init_inferior): ... this.
4972 (terminal_init_inferior_with_pgrp): Rename to ...
4973 (child_terminal_init_inferior_with_pgrp): ... this.
4974 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4975 (child_terminal_init_with_pgrp): ... this.
4976 (terminal_save_ours): Rename to ...
4977 (child_terminal_save_ours): ... this.
4978 (terminal_init_inferior): Rename to ...
4979 (child_terminal_init): ... this. Adjust.
4980 (terminal_inferior): Rename to ...
4981 (child_terminal_inferior): ... this.
4982 (terminal_ours_for_output): Rename to ...
4983 (child_terminal_ours_for_output): ... this. Adjust.
4984 (terminal_ours): Rename to ...
4985 (child_terminal_ours): ... this.
4986 (terminal_ours_1): Rename to ...
4987 (child_terminal_ours_1): ... this. Adjust.
4988 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4989 * windows-nat.c (do_initial_windows_stuff): Adjust.
4990 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4991 (gnu_terminal_init): ... this. Adjust.
4992 (gnu_target): Adjust.
4993 * inf-child.c (inf_child_target): Adjust.
4995 2014-03-13 Doug Evans <xdje42@gmail.com>
4998 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
5001 2014-03-13 Doug Evans <xdje42@gmail.com>
5003 * value.c (record_latest_value): Call release_value_or_incref
5004 instead of release_value.
5006 2014-03-13 Pedro Alves <palves@redhat.com>
5008 * procfs.c (procfs_target): Don't override to_shortname,
5009 to_longname or to_doc.
5011 2014-03-13 Pedro Alves <palves@redhat.com>
5013 * inf-child.c (inf_child_open, inf_child_target): Don't mention
5014 Unix in user visible strings.
5016 2014-03-12 Stan Shebs <stan@codesourcery.com>
5018 * gdbtypes.h: Annotate comments for Doxygen, add a page
5019 block comment with some general info.
5021 2014-03-12 Pedro Alves <palves@redhat.com>
5023 * infcmd.c (prepare_execution_command): New function, factored out
5024 from several execution commands.
5025 (run_command_1, continue_command, step_1, jump_command)
5026 (signal_command, until_command, advance_command, finish_command)
5027 (attach_command): Use prepare_execution_command.
5029 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
5031 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5034 (struct arm_linux_thread_points): Removed.
5035 (struct arm_linux_process_info): New.
5036 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5037 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5038 (arm_linux_find_breakpoints_by_tid): Removed.
5039 (struct arch_lwp_info): New.
5040 (arm_linux_find_process_pid): New functions.
5041 (arm_linux_add_process): New functions.
5042 (arm_linux_process_info_get): New functions.
5043 (arm_linux_forget_process): New function.
5044 (arm_linux_get_debug_reg_state): New function.
5045 (struct update_registers_data): New.
5046 (update_registers_callback): New function.
5047 (arm_linux_insert_hw_breakpoint1): Updated.
5048 (arm_linux_remove_hw_breakpoint1): Updated.
5049 (arm_linux_insert_hw_breakpoint): Updated.
5050 (arm_linux_remove_hw_breakpoint): Updated.
5051 (arm_linux_insert_watchpoint): Updated.
5052 (arm_linux_remove_watchpoint): Updated.
5053 (arm_linux_new_thread): Updated.
5054 (arm_linux_prepare_to_resume): New function.
5055 (arm_linux_new_fork): New function.
5056 (_initialize_arm_linux_nat): Updated.
5058 2014-03-12 Pedro Alves <palves@redhat.com>
5060 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5062 2014-03-12 Tom Tromey <tromey@redhat.com>
5064 * inf-child.c (return_zero): New function.
5065 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5066 * aix-thread.c (aix_thread_inferior_created): New function.
5067 (aix_thread_attach): Remove.
5068 (init_aix_thread_ops): Don't set to_attach.
5069 (_initialize_aix_thread): Register inferior_created observer.
5070 * corelow.c (init_core_ops): Don't set to_attach or
5072 * exec.c (init_exec_ops): Don't set to_attach or
5074 * infcmd.c (run_command_1): Use find_run_target. Make direct
5076 (attach_command): Use find_attach_target. Make direct target
5078 * record-btrace.c (init_record_btrace_ops): Don't set
5080 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5082 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5083 set to_create_inferior.
5084 * target.c (complete_target_initialization): Add assertion.
5085 (target_create_inferior): Remove.
5086 (find_default_attach, find_default_create_inferior): Remove.
5087 (find_attach_target, find_run_target): New functions.
5088 (find_default_is_async_p, find_default_can_async_p)
5089 (target_supports_non_stop, target_attach): Remove.
5090 (init_dummy_target): Don't set to_create_inferior or
5091 to_supports_non_stop.
5092 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5093 TARGET_DEFAULT_FUNC.
5094 <to_create_inferior>: Add comment.
5095 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5096 TARGET_DEFAULT_RETURN.
5097 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5098 (find_attach_target, find_run_target): Declare.
5099 (target_create_inferior): Remove.
5100 (target_has_execution_1): Update comment.
5101 (target_supports_non_stop): Remove.
5102 * target-delegates.c: Rebuild.
5104 2014-03-12 Pedro Alves <palves@redhat.com>
5106 * inf-child.h: Update comment to not mention Unix.
5108 2014-03-12 Pedro Alves <palves@redhat.com>
5110 * inf-child.c: Update top comment to not mention Unix. Add
5111 generic comment describing how this target is meant to be used.
5112 (inf_child_post_attach, inf_child_post_startup_inferior)
5113 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5116 2014-03-12 Pedro Alves <palves@redhat.com>
5118 * nto-procfs.c: Include inf-child.h.
5119 (procfs_ops): Delete global.
5120 (procfs_can_run): Delete method.
5121 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5122 target pointer instead of referencing procfs_ops.
5123 (procfs_prepare_to_store): Delete.
5124 (init_procfs_ops): Delete function.
5125 (procfs_target): New function, based on init_procfs_ops, but
5126 inherit inf_child_target.
5127 (_initialize_procfs): Use procfs_target.
5129 2014-03-12 Pedro Alves <palves@redhat.com>
5131 * windows-nat.c: Include inf-child.h.
5132 (windows_ops): Delete global.
5133 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5135 (init_windows_ops): Delete function.
5136 (windows_target): New function, based on init_windows_ops, but
5137 inherit inf_child_target.
5138 (_initialize_windows_nat): Use windows_target. Install x86
5139 specific target methods here.
5141 2014-03-10 Doug Evans <xdje42@gmail.com>
5143 * guile/guile.c (call_initialize_gdb_module): New function.
5144 (initialize_guile): Replace call to scm_init_guile with call to
5147 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5149 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5150 in call to TYPE_CODE macro.
5152 2014-03-10 Jerome Guitton <guitton@adacore.com>
5154 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5155 Resolve tagged types to full view.
5157 2014-03-10 Hui Zhu <hui@codesourcery.com>
5159 * target.h (target_insert_breakpoint): Remove "hardware" from its
5162 2014-03-07 Doug Evans <dje@google.com>
5164 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5166 2014-03-07 Doug Evans <dje@google.com>
5168 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5169 Remove unused local comp_dir_attr. Assert exactly one of
5170 stub_comp_unit_die, stub_comp_dir is non-NULL.
5172 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5174 * target.h (complete_target_initialization, add_target):
5177 2014-03-07 Pedro Alves <palves@redhat.com>
5179 * go32-nat.c: Include inf-child.h.
5180 (go32_ops): Delete global.
5181 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5183 (go32_create_inferior): Push the passed in target pointer instead
5184 of referencing go32_ops.
5185 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5186 (go32_target): New function, based on init_go32_ops, but inherit
5188 (_initialize_go32_nat): Use go32_target. Move parts of
5191 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5193 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5194 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5195 SYMBOL_VALUE_ADDRESS.
5196 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5198 2014-03-06 Yao Qi <yao@codesourcery.com>
5200 * breakpoint.c (get_tracepoint_by_number): Remove argument
5201 optional_p. All callers updated. Adjust comments. Update
5203 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5205 2014-03-06 Yao Qi <yao@codesourcery.com>
5207 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5208 early if get_number returns zero. Use 'p' instead of 'args'.
5210 2014-03-06 Yao Qi <yao@codesourcery.com>
5212 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5215 2014-03-06 Yao Qi <yao@codesourcery.com>
5217 PR breakpoints/16508
5218 * tracepoint.c (check_trace_running): New function.
5219 (trace_find_command): Move code to check_trace_running and
5220 call check_trace_running.
5221 (trace_find_pc_command): Likewise.
5222 (trace_find_tracepoint_command): Likewise.
5223 (trace_find_line_command): Likewise.
5224 (trace_find_range_command): Likewise.
5225 * tracepoint.h (check_trace_running): Likewise.
5226 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5228 2014-03-06 Yao Qi <yao@codesourcery.com>
5230 * target.h (struct target_ops) <to_traceframe_info>: Use
5231 TARGET_DEFAULT_NORETURN (tcomplain ()).
5232 * target-delegates.c: Regenerated.
5234 2014-03-05 Pedro Alves <palves@redhat.com>
5237 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5238 void. Update comment.
5239 (dcache_xfer_memory): Delete.
5240 (dcache_read_memory_partial): New, based on the read bits of
5242 (dcache_update): Add status parameter. Use ULONGEST for len, and
5243 adjust. Discard cache lines if the reason for the update was
5245 * dcache.h (dcache_xfer_memory): Delete declaration.
5246 (dcache_read_memory_partial): New declaration.
5247 (dcache_update): Update prototype.
5248 * target.c (raw_memory_xfer_partial): Update the dcache here.
5249 (memory_xfer_partial_1): Don't handle dcache writes here.
5251 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5253 * remote-sim.c (gdbsim_load): Add const to prog.
5255 2014-03-03 Tom Tromey <tromey@redhat.com>
5257 * elfread.c (probe_key): Change to bfd_data.
5258 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5259 now per-BFD, not per-objfile.
5260 * stap-probe.c (stap_probe_destroy): Update comment.
5261 (handle_stap_probe): Allocate on the per-BFD obstack.
5263 2014-03-03 Tom Tromey <tromey@redhat.com>
5265 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5266 * breakpoint.c (create_longjmp_master_breakpoint): Use
5268 (add_location_to_breakpoint, bkpt_probe_insert_location)
5269 (bkpt_probe_remove_location): Update.
5270 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5271 * elfread.c (elf_symfile_relocate_probe): Remove.
5272 (elf_probe_fns): Update.
5273 (insert_exception_resume_breakpoint): Change type of "probe"
5274 parameter to bound_probe.
5275 (check_exception_resume): Update.
5276 * objfiles.c (objfile_relocate1): Don't relocate probes.
5277 * probe.c (bound_probe_s): New typedef.
5278 (parse_probes): Use get_probe_address. Set sal's objfile.
5279 (find_probe_by_pc): Return a bound_probe.
5280 (collect_probes): Return a VEC(bound_probe_s).
5281 (compare_probes): Update.
5282 (gen_ui_out_table_header_info): Change type of "probes"
5284 (info_probes_for_ops): Update.
5285 (get_probe_address): New function.
5286 (probe_safe_evaluate_at_pc): Update.
5287 * probe.h (struct probe_ops) <get_probe_address>: New field.
5288 <set_semaphore, clear_semaphore>: Add objfile parameter.
5289 (struct probe) <objfile>: Remove field.
5291 <address>: Update comment.
5292 (struct bound_probe): New.
5293 (find_probe_by_pc): Return a bound_probe.
5294 (get_probe_address): Declare.
5295 * solib-svr4.c (struct probe_and_action) <address>: New field.
5296 (hash_probe_and_action, equal_probe_and_action): Update.
5297 (register_solib_event_probe): Add address parameter.
5298 (solib_event_probe_at): Update.
5299 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5301 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5302 (stap_get_probe_address): New function.
5303 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5304 (compile_probe_arg): Update.
5305 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5307 (handle_stap_probe): Don't relocate the probe.
5308 (stap_relocate): Remove.
5309 (stap_gen_info_probes_table_values): Update.
5310 (stap_probe_ops): Remove stap_relocate.
5311 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5312 (debug_sym_probe_fns): Update.
5313 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5314 * symtab.c (init_sal): Use memset.
5315 * symtab.h (struct symtab_and_line) <objfile>: New field.
5316 * tracepoint.c (start_tracing, stop_tracing): Update.
5318 2014-03-03 Tom Tromey <tromey@redhat.com>
5320 * probe.h (parse_probes, find_probe_by_pc)
5321 (find_probes_in_objfile): Fix comments.
5323 2014-03-02 Doug Evans <xdje42@gmail.com>
5325 * infrun.c (handle_signal_stop): Replace test for
5326 TARGET_WAITKIND_STOPPED with an assert.
5328 2014-03-02 Doug Evans <xdje42@gmail.com>
5330 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5332 2014-03-02 Doug Evans <xdje42@gmail.com>
5334 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5336 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5338 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5340 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5342 * i386obsd-nat.c: Include "obsd-nat.h".
5343 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5345 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5347 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5349 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5351 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5353 * mips64obsd-nat.c: Include "obsd-nath".
5354 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5356 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5358 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5360 * amd64obsd-nat.c: Include "obsd-nat,h.
5361 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5363 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5365 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5367 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5368 (find_overload_match): Update call to find_oload_champ.
5369 (find_oload_champ_namespace_loop): Likewise
5371 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5373 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5375 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5376 * config/sparc/obsd64.mh: New file.
5377 * sparc64obsd-nat.c: New file.
5379 * obsd-nat.h: New file.
5380 * obsd-nat.c: New file.
5381 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5382 (ALLDEPFILES): Add obsd-nat.c.
5384 2014-02-28 Tom Tromey <tromey@redhat.com>
5386 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5387 * cli-out.h (cli_ui_out_impl): Now const.
5388 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5389 * ui-out.c (struct ui_out) <impl>: Now const.
5390 (default_ui_out_impl): Now const.
5391 (ui_out_new): Make 'impl' parameter const.
5392 * ui-out.h (ui_out_new): Update.
5394 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5396 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5398 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5400 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5402 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5404 Additional PR 8882 fix.
5405 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5407 2014-02-27 Pedro Alves <palves@redhat.com>
5409 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5412 2014-02-27 Pedro Alves <palves@redhat.com>
5415 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5416 * nat/linux-waitpid.c: Include string.h.
5417 (status_to_str): Moved here and made extern.
5418 * nat/linux-waitpid.h (status_to_str): New declaration.
5420 2014-02-27 Hui Zhu <hui@codesourcery.com>
5423 * infrun.c (ptid_match): Move ...
5424 * common/ptid.c (ptid_match): ... here.
5425 * inferior.h (ptid_match): Move ...
5426 * common/ptid.h (ptid_match): ... here.
5428 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5430 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5431 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5434 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5436 * obsd-tdep.c (obsd_auxv_parse): New function.
5437 (obsd_init_abi): Set auxv_parse.
5439 * gdbarch.sh (auxv_parse): New.
5440 * gdbarch.h: Regenerated.
5441 * gdbarch.c: Regenerated.
5442 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5444 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5446 * guile/scm-value.c (gdbscm_history_append_x): New function.
5447 (value_functions): Add it.
5449 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5451 * dwarf2read.c (attr_value_as_address): New function.
5452 (dwarf2_find_base_address, read_call_site_scope): Use
5453 attr_value_as_address in place of DW_ADDR.
5454 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5455 the low and high addresses. Slight rework of the handling
5456 of the high pc being a constant form, and limit it to
5457 DWARF verson 4 or higher.
5458 (dwarf2_record_block_ranges): Likewise.
5459 (read_partial_die): Likewise.
5460 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5462 2014-02-26 Tom Tromey <tromey@redhat.com>
5464 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5466 2014-02-26 Tom Tromey <tromey@redhat.com>
5468 * elfread.c (elf_read_minimal_symbols): Return early if
5469 minimal symbols have already been read. Add "ei" parameter.
5470 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5471 * minsyms.c (prim_record_minimal_symbol_full): Update.
5472 * objfiles.h (struct objstats) <n_minsyms>: Move...
5473 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5474 * symmisc.c (print_objfile_statistics): Update.
5476 2014-02-26 Tom Tromey <tromey@redhat.com>
5478 * elfread.c (elf_read_minimal_symbols): New function, from
5480 (elf_symfile_read): Call it.
5482 2014-02-26 Tom Tromey <tromey@redhat.com>
5484 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5485 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5486 (lookup_minimal_symbol_solib_trampoline)
5487 (lookup_minimal_symbol_by_pc_section_1)
5488 (lookup_minimal_symbol_and_objfile): Update.
5489 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5490 Don't allocate a minimal symbol if minsyms have already been read.
5491 (build_minimal_symbol_hash_tables): Update.
5492 (install_minimal_symbols): Do nothing if minsyms already read.
5493 Use the per-BFD obstack.
5494 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5495 * objfiles.c (allocate_objfile): Call
5496 terminate_minimal_symbol_table later.
5497 (have_minimal_symbols): Update.
5498 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5499 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5500 Move from struct objfile.
5501 <minsyms_read>: New field.
5502 (struct objfile) <msymbols, minimal_symbol_count,
5503 msymbol_hash, msymbol_demangled_hash>: Move.
5504 (ALL_OBJFILE_MSYMBOLS): Update.
5505 * symfile.c (read_symbols): Set minsyms_read.
5506 (reread_symbols): Update.
5507 * symmisc.c (dump_objfile, dump_msymbols): Update.
5509 2014-02-26 Tom Tromey <tromey@redhat.com>
5511 * minsyms.c (msymbols_sort): Remove.
5512 * minsyms.h (msymbols_sort): Remove.
5513 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5514 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5515 * elfread.c (elf_symtab_read): Don't add section offsets.
5516 * xcoffread.c (record_minimal_symbol): Don't add section offset
5517 to minimal symbol address.
5518 * somread.c (text_offset, data_offset): Remove.
5519 (som_symtab_read): Don't add section offsets to minimal symbol
5521 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5522 Don't add section offsets to minimal symbols.
5523 * coffread.c (coff_symtab_read): Don't add section offsets
5524 to minimal symbol addresses.
5525 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5526 to minimal symbol addresses.
5527 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5528 section offset to minimal symbol addresses.
5529 * mdebugread.c (parse_partial_symbols): Don't add section
5530 offset to minimal symbol addresses.
5531 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5532 offset to minimal symbol addresses.
5534 2014-02-26 Tom Tromey <tromey@redhat.com>
5536 * ada-lang.c (ada_main_name): Update.
5537 (ada_add_standard_exceptions): Update.
5538 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5539 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5540 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5541 * auxv.c (ld_so_xfer_auxv): Update.
5542 * avr-tdep.c (avr_scan_prologue): Update.
5543 * ax-gdb.c (gen_var_ref): Update.
5544 * blockframe.c (get_pc_function_start)
5545 (find_pc_partial_function_gnu_ifunc): Update.
5546 * breakpoint.c (create_overlay_event_breakpoint)
5547 (create_longjmp_master_breakpoint)
5548 (create_std_terminate_master_breakpoint)
5549 (create_exception_master_breakpoint): Update.
5550 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5551 * c-valprint.c (c_val_print): Update.
5552 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5553 * common/agent.c (agent_look_up_symbols): Update.
5554 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5555 * dwarf2loc.c (call_site_to_target_addr): Update.
5556 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5557 * elfread.c (elf_gnu_ifunc_record_cache)
5558 (elf_gnu_ifunc_resolve_by_got): Update.
5559 * findvar.c (default_read_var_value): Update.
5560 * frame.c (inside_main_func): Update.
5561 * frv-tdep.c (frv_frame_this_id): Update.
5562 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5563 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5565 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5566 (hppa_hpux_find_dummy_bpaddr): Update.
5567 * hppa-tdep.c (hppa_symbol_address): Update.
5568 * infcmd.c (until_next_command): Update.
5569 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5571 * linespec.c (minsym_found, add_minsym): Update.
5572 * linux-nat.c (get_signo): Update.
5573 * linux-thread-db.c (inferior_has_bug): Update.
5574 * m32c-tdep.c (m32c_return_value)
5575 (m32c_m16c_address_to_pointer): Update.
5576 * m32r-tdep.c (m32r_frame_this_id): Update.
5577 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5578 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5579 * maint.c (maintenance_translate_address): Update.
5580 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5581 (frob_address): New function.
5582 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5583 frob_address. Rename parameter to "pc_in".
5584 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5586 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5588 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5589 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5590 * objc-lang.c (find_objc_msgsend): Update.
5591 * objfiles.c (objfile_relocate1): Update.
5592 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5593 * p-valprint.c (pascal_val_print): Update.
5594 * parse.c (write_exp_msymbol): Update.
5595 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5596 (ppc_elfv2_skip_entrypoint): Update.
5597 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5598 * printcmd.c (build_address_symbolic, msym_info)
5599 (address_info): Update.
5600 * proc-service.c (ps_pglobal_lookup): Update.
5601 * psymtab.c (find_pc_sect_psymtab_closer)
5602 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5603 Change msymbol parameter to bound_minimal_symbol.
5604 * ravenscar-thread.c (get_running_thread_id): Update.
5605 * remote.c (remote_check_symbols): Update.
5606 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5608 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5609 * solib-dsbt.c (lm_base): Update.
5610 * solib-frv.c (lm_base, main_got): Update.
5611 * solib-irix.c (locate_base): Update.
5612 * solib-som.c (som_solib_create_inferior_hook)
5613 (link_map_start): Update.
5614 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5615 * solib-svr4.c (elf_locate_base, enable_break): Update.
5616 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5617 (flush_ea_cache): Update.
5618 * stabsread.c (define_symbol, scan_file_globals): Update.
5619 * stack.c (find_frame_funname): Update.
5620 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5621 (debug_qf_find_pc_sect_symtab): Update.
5622 * symfile.c (simple_read_overlay_table)
5623 (simple_overlay_update): Update.
5624 * symfile.h (struct quick_symbol_functions)
5625 <find_pc_sect_symtab>: Change type of msymbol to
5626 bound_minimal_symbol.
5627 * symmisc.c (dump_msymbols): Update.
5628 * symtab.c (find_pc_sect_symtab_via_partial)
5629 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5630 (search_symbols, print_msymbol_info): Update.
5631 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5632 (MSYMBOL_VALUE_ADDRESS): Redefine.
5633 (BMSYMBOL_VALUE_ADDRESS): New macro.
5634 * tracepoint.c (scope_info): Update.
5635 * tui/tui-disasm.c (tui_find_disassembly_address)
5636 (tui_get_begin_asm_address): Update.
5637 * valops.c (find_function_in_inferior): Update.
5638 * value.c (value_static_field, value_fn_field): Update.
5640 2014-02-26 Tom Tromey <tromey@redhat.com>
5642 * ada-lang.c (ada_update_initial_language): Update.
5643 (ada_main_name, ada_has_this_exception_support): Update.
5644 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5645 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5646 * arm-tdep.c (arm_skip_stub): Update.
5647 * auxv.c (ld_so_xfer_auxv): Update.
5648 * avr-tdep.c (avr_scan_prologue): Update.
5649 * ax-gdb.c (gen_var_ref): Update.
5650 * breakpoint.c (struct breakpoint_objfile_data)
5651 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5652 type to bound_minimal_symbol.
5653 (create_overlay_event_breakpoint)
5654 (create_longjmp_master_breakpoint)
5655 (create_std_terminate_master_breakpoint)
5656 (create_exception_master_breakpoint): Update.
5657 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5658 * c-exp.y (classify_name): Update.
5659 * coffread.c (coff_symfile_read): Update.
5660 * common/agent.c (agent_look_up_symbols): Update.
5661 * d-lang.c (d_main_name): Update.
5662 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5663 * dec-thread.c (enable_dec_thread): Update.
5664 * dwarf2loc.c (call_site_to_target_addr): Update.
5665 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5666 * eval.c (evaluate_subexp_standard): Update.
5667 * findvar.c (struct minsym_lookup_data) <result>: Change type
5668 to bound_minimal_symbol.
5670 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5671 * frame.c (inside_main_func): Update.
5672 * frv-tdep.c (frv_frame_this_id): Update.
5673 * gcore.c (call_target_sbrk): Update.
5674 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5675 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5677 * go-lang.c (go_main_name): Update.
5678 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5679 (hppa_hpux_find_import_stub_for_addr): Update.
5680 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5681 Update. Change return type.
5682 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5684 * jit.c (jit_breakpoint_re_set_internal): Update.
5685 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5687 * linux-nat.c (get_signo): Update.
5688 * linux-thread-db.c (inferior_has_bug): Update
5689 * m32c-tdep.c (m32c_return_value)
5690 (m32c_m16c_address_to_pointer): Update.
5691 * m32r-tdep.c (m32r_frame_this_id): Update.
5692 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5693 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5694 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5695 lookup_minimal_symbol. Change return type.
5696 (lookup_minimal_symbol): Remove.
5697 (lookup_bound_minimal_symbol): Update.
5698 (lookup_minimal_symbol_text): Change return type.
5699 (lookup_minimal_symbol_solib_trampoline): Change return type.
5700 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5701 (lookup_minimal_symbol_solib_trampoline): Change return type.
5702 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5703 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5704 (value_nsstring, find_imps): Update.
5705 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5706 * p-lang.c (pascal_main_name): Update.
5707 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5708 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5709 * proc-service.c (ps_pglobal_lookup): Update.
5710 * ravenscar-thread.c (get_running_thread_msymbol): Change
5712 (has_ravenscar_runtime, get_running_thread_id): Update.
5713 * remote.c (remote_check_symbols): Update.
5714 * sol-thread.c (ps_pglobal_lookup): Update.
5715 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5716 * solib-dsbt.c (lm_base): Update.
5717 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5719 * solib-irix.c (locate_base): Update.
5720 * solib-som.c (som_solib_create_inferior_hook)
5721 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5723 * solib-spu.c (spu_enable_break): Update.
5724 * solib-svr4.c (elf_locate_base, enable_break): Update.
5725 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5726 (flush_ea_cache): Update.
5727 * stabsread.c (define_symbol): Update.
5728 * symfile.c (simple_read_overlay_table): Update.
5729 * symtab.c (find_pc_sect_line): Update.
5730 * tracepoint.c (scope_info): Update.
5731 * tui-disasm.c (tui_get_begin_asm_address): Update.
5732 * value.c (value_static_field): Update.
5734 2014-02-26 Tom Tromey <tromey@redhat.com>
5736 * minsyms.c (prim_record_minimal_symbol_full): Use
5737 SET_MSYMBOL_VALUE_ADDRESS.
5738 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5739 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5740 SET_MSYMBOL_VALUE_ADDRESS.
5741 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5742 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5744 2014-02-26 Tom Tromey <tromey@redhat.com>
5746 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5747 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5748 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5749 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5750 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5751 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5752 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5753 * ada-lang.c (ada_main_name): Update.
5754 (ada_lookup_simple_minsym): Update.
5755 (ada_make_symbol_completion_list): Update.
5756 (ada_add_standard_exceptions): Update.
5757 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5758 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5759 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5760 * arm-tdep.c (skip_prologue_function): Update.
5761 (arm_skip_stack_protector, arm_skip_stub): Update.
5762 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5763 (arm_wince_skip_main_prologue): Update.
5764 * auxv.c (ld_so_xfer_auxv): Update.
5765 * avr-tdep.c (avr_scan_prologue): Update.
5766 * ax-gdb.c (gen_var_ref): Update.
5767 * block.c (call_site_for_pc): Update.
5768 * blockframe.c (get_pc_function_start): Update.
5769 (find_pc_partial_function_gnu_ifunc): Update.
5770 * breakpoint.c (create_overlay_event_breakpoint): Update.
5771 (create_longjmp_master_breakpoint): Update.
5772 (create_std_terminate_master_breakpoint): Update.
5773 (create_exception_master_breakpoint): Update.
5774 (resolve_sal_pc): Update.
5775 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5776 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5778 * c-valprint.c (c_val_print): Update.
5779 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5780 * coffread.c (coff_symfile_read): Update.
5781 * common/agent.c (agent_look_up_symbols): Update.
5782 * dbxread.c (find_stab_function_addr): Update.
5783 (end_psymtab): Update.
5784 * dwarf2loc.c (call_site_to_target_addr): Update.
5785 (func_verify_no_selftailcall): Update.
5786 (tailcall_dump): Update.
5787 (call_site_find_chain_1): Update.
5788 (dwarf_expr_reg_to_entry_parameter): Update.
5789 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5790 (elf_gnu_ifunc_resolve_by_got): Update.
5791 * f-valprint.c (info_common_command): Update.
5792 * findvar.c (read_var_value): Update.
5793 * frame.c (get_prev_frame_1): Update.
5794 (inside_main_func): Update.
5795 * frv-tdep.c (frv_skip_main_prologue): Update.
5796 (frv_frame_this_id): Update.
5797 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5798 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5799 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5800 (gnuv3_skip_trampoline): Update.
5801 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5802 (hppa64_hpux_in_solib_call_trampoline): Update.
5803 (hppa_hpux_skip_trampoline_code): Update.
5804 (hppa64_hpux_search_dummy_call_sequence): Update.
5805 (hppa_hpux_find_import_stub_for_addr): Update.
5806 (hppa_hpux_find_dummy_bpaddr): Update.
5807 * hppa-tdep.c (hppa_symbol_address)
5808 (hppa_lookup_stub_minimal_symbol): Update.
5809 * i386-tdep.c (i386_skip_main_prologue): Update.
5810 (i386_pe_skip_trampoline_code): Update.
5811 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5812 * infcall.c (get_function_name): Update.
5813 * infcmd.c (until_next_command): Update.
5814 * jit.c (jit_breakpoint_re_set_internal): Update.
5815 (jit_inferior_init): Update.
5816 * linespec.c (minsym_found): Update.
5817 (add_minsym): Update.
5818 * linux-fork.c (info_checkpoints_command): Update.
5819 * linux-nat.c (get_signo): Update.
5820 * linux-thread-db.c (inferior_has_bug): Update.
5821 * m32c-tdep.c (m32c_return_value): Update.
5822 (m32c_m16c_address_to_pointer): Update.
5823 (m32c_m16c_pointer_to_address): Update.
5824 * m32r-tdep.c (m32r_frame_this_id): Update.
5825 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5826 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5827 * maint.c (maintenance_translate_address): Update.
5828 * minsyms.c (add_minsym_to_hash_table): Update.
5829 (add_minsym_to_demangled_hash_table): Update.
5830 (msymbol_objfile): Update.
5831 (lookup_minimal_symbol): Update.
5832 (iterate_over_minimal_symbols): Update.
5833 (lookup_minimal_symbol_text): Update.
5834 (lookup_minimal_symbol_by_pc_name): Update.
5835 (lookup_minimal_symbol_solib_trampoline): Update.
5836 (lookup_minimal_symbol_by_pc_section_1): Update.
5837 (lookup_minimal_symbol_and_objfile): Update.
5838 (prim_record_minimal_symbol_full): Update.
5839 (compare_minimal_symbols): Update.
5840 (compact_minimal_symbols): Update.
5841 (build_minimal_symbol_hash_tables): Update.
5842 (install_minimal_symbols): Update.
5843 (terminate_minimal_symbol_table): Update.
5844 (find_solib_trampoline_target): Update.
5845 (minimal_symbol_upper_bound): Update.
5846 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5847 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5848 (mips_skip_pic_trampoline_code): Update.
5849 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5850 * objc-lang.c (selectors_info): Update.
5851 (classes_info): Update.
5852 (find_methods): Update.
5853 (find_imps): Update.
5854 (find_objc_msgsend): Update.
5855 * objfiles.c (objfile_relocate1): Update.
5856 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5857 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5858 * p-valprint.c (pascal_val_print): Update.
5859 * parse.c (write_exp_msymbol): Update.
5860 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5861 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5862 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5863 * printcmd.c (build_address_symbolic): Update.
5865 (address_info): Update.
5866 * proc-service.c (ps_pglobal_lookup): Update.
5867 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5868 (find_pc_sect_psymtab): Update.
5869 * python/py-framefilter.c (py_print_frame): Update.
5870 * ravenscar-thread.c (get_running_thread_id): Update.
5871 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5873 * remote.c (remote_check_symbols): Update.
5874 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5875 (rs6000_skip_trampoline_code): Update.
5876 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5877 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5878 * solib-dsbt.c (lm_base): Update.
5879 * solib-frv.c (lm_base): Update.
5881 * solib-irix.c (locate_base): Update.
5882 * solib-som.c (som_solib_create_inferior_hook): Update.
5883 (som_solib_desire_dynamic_linker_symbols): Update.
5884 (link_map_start): Update.
5885 * solib-spu.c (spu_enable_break): Update.
5886 (ocl_enable_break): Update.
5887 * solib-svr4.c (elf_locate_base): Update.
5888 (enable_break): Update.
5889 * spu-tdep.c (spu_get_overlay_table): Update.
5890 (spu_catch_start): Update.
5891 (flush_ea_cache): Update.
5892 * stabsread.c (define_symbol): Update.
5893 (scan_file_globals): Update.
5894 * stack.c (find_frame_funname): Update.
5895 (frame_info): Update.
5896 * symfile.c (simple_read_overlay_table): Update.
5897 (simple_overlay_update): Update.
5898 * symmisc.c (dump_msymbols): Update.
5899 * symtab.c (fixup_section): Update.
5900 (find_pc_sect_line): Update.
5901 (skip_prologue_sal): Update.
5902 (search_symbols): Update.
5903 (print_msymbol_info): Update.
5904 (rbreak_command): Update.
5905 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5906 (completion_list_objc_symbol): Update.
5907 (default_make_symbol_completion_list_break_on): Update.
5908 * tracepoint.c (scope_info): Update.
5909 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5910 (tui_get_begin_asm_address): Update.
5911 * valops.c (find_function_in_inferior): Update.
5912 * value.c (value_static_field): Update.
5913 (value_fn_field): Update.
5915 2014-02-26 Tom Tromey <tromey@redhat.com>
5917 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5918 bound minimal symbols. Move code that knows about minsym
5920 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5922 * minsyms.h (minimal_symbol_upper_bound): Declare.
5923 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5924 minimal_symbol_upper_bound.
5926 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5928 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5929 Use the type's name if its basic type does not have a tag.
5931 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5933 * dwarf2read.c (read_subrange_type): Add comment.
5935 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5937 * dwarf2read.c (update_enumeration_type_from_children): New
5938 function, mostly extracted from process_structure_scope.
5939 (read_enumeration_type): Call update_enumeration_type_from_children.
5940 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5941 and flag_flag_enum fields.
5943 2014-02-26 Pedro Alves <palves@redhat.com>
5945 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5946 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5947 to_xfer_partial method.
5949 2014-02-26 Pedro Alves <palves@redhat.com>
5951 * target.c (complete_target_initialization): Don't install
5952 default_xfer_partial as to_xfer_partial hook.
5954 (update_current_target): Don't INHERIT nor de_fault
5955 deprecated_xfer_memory. Delete de_fault macro.
5956 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5957 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5958 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5961 2014-02-26 Pedro Alves <palves@redhat.com>
5963 * go32-nat.c (my_write_child): New function.
5964 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5965 (go32_xfer_partial): New function.
5966 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5967 Instead install a to_xfer_partial hook.
5969 2014-02-26 Pedro Alves <palves@redhat.com>
5971 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5972 to_xfer_partial helper. Rewrite.
5973 (procfs_xfer_partial): New function.
5974 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5975 Install a to_xfer_partial hook.
5977 2014-02-26 Pedro Alves <palves@redhat.com>
5979 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5980 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5981 (m32r_xfer_partial): New function.
5982 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5983 Install a to_xfer_partial hook.
5985 2014-02-26 Pedro Alves <palves@redhat.com>
5987 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5989 (mips_xfer_partial): New function.
5990 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5991 hook. Install a to_xfer_partial hook.
5993 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5995 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5996 * gdbtypes.c (create_array_type_with_stride): New function,
5997 renaming create_array_type, but with an added parameter
5998 called "bit_stride".
5999 (create_array_type): Re-implement using
6000 create_array_type_with_stride.
6001 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
6002 and DW_AT_bit_stride attributes.
6004 2014-02-26 Pedro Alves <palves@redhat.com>
6006 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
6007 task-specific breakpoints.
6009 2014-02-25 Pedro Alves <palves@redhat.com>
6011 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
6012 handling of object == TARGET_OBJECT_UNWIND_TABLE.
6014 2014-02-25 Stan Shebs <stan@codesourcery.com>
6016 * defs.h: Annotate comments for Doxygen.
6018 2014-02-25 Tom Tromey <tromey@redhat.com>
6020 * target.h (target_ignore): Don't declare.
6021 * target.c (target_ignore): Remove.
6023 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6026 * auto-load.c (auto_load_objfile_script_1): Change filename to
6029 2014-02-25 Joel Brobecker <brobecker@adacore.com>
6031 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6032 documentation. Adjust prototype to match the target_ops
6033 to_xfer_partial method. Adjust implementation accordingly.
6035 2014-02-25 Hui Zhu <hui@codesourcery.com>
6037 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6040 2014-02-25 Kevin Buettner <kevinb@redhat.com>
6042 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6043 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6044 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6045 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6046 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6047 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6048 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6049 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6051 (rl78_register_type): Use a data pointer type for SP and
6052 new pseudo registers mentioned above. Use a 16 bit integer
6053 type for all other register pairs.
6054 (rl78_register_name, rl78_g10_register_name): Update for
6055 new pseudo registers.
6056 (rl78_pseudo_register_read): Likewise.
6057 (rl78_pseudo_register_write): Likewise.
6058 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6059 to the newly added pseudo registers.
6061 2014-02-24 Doug Evans <dje@google.com>
6063 * value.c (record_latest_value): Fix comment.
6064 * printcmd.c (print_command_1): Remove code to handle -1 return from
6065 record_latest_value.
6067 2014-02-24 Pedro Alves <palves@redhat.com>
6069 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6070 deprecated_xfer_memory hook.
6071 (procfs_xfer_partial): Call procfs_xfer_memory instead
6072 of the deprecated_xfer_memory target hook.
6073 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6076 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6078 * windows-nat.c (windows_xfer_shared_libraries): Return
6079 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6080 requested object is TARGET_OBJECT_LIBRARIES.
6082 2014-02-24 Yao Qi <yao@codesourcery.com>
6084 * target.h (enum target_xfer_status)
6085 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6086 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6088 * corefile.c (memory_error_message): User updated.
6089 * exec.c (section_table_read_available_memory): Likewise.
6090 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6091 * target.c (target_xfer_status_to_string): Likewise.
6092 (raw_memory_xfer_partial): Likewise.
6093 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6094 * valops.c (read_value_memory): Likewise.
6095 * exec.h: Update comments.
6097 2014-02-24 Yao Qi <yao@codesourcery.com>
6099 * target.c (target_xfer_status_to_string): Rename argument err
6101 * target.h (target_xfer_status_to_string): Update declaration.
6102 Replace target_xfer_error_to_string with
6103 target_xfer_status_to_string in comment.
6105 2014-02-24 Yao Qi <yao@codesourcery.com>
6107 * mips-linux-nat.c (super_close): Update its type.
6108 (mips_linux_close): Pass 'self' to super_close.
6110 2014-02-24 Yao Qi <yao@codesourcery.com>
6112 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6113 * corefile.c (read_memory): Adjusted.
6114 * target.c (target_write_with_progress): Adjusted.
6116 2014-02-23 Yao Qi <yao@codesourcery.com>
6120 2013-10-25 Yao Qi <yao@codesourcery.com>
6122 * remote.c (remote_traceframe_info): Return early if
6123 traceframe is not selected.
6125 2013-07-19 Yao Qi <yao@codesourcery.com>
6127 * target.c (update_current_target): Change the default action
6128 of 'to_traceframe_info' from tcomplain to return_zero.
6129 * target.h (struct target_ops) <to_traceframe_info>: Add more
6132 2014-02-23 Yao Qi <yao@codesourcery.com>
6134 * valops.c (read_value_memory): Rewrite it. Call
6135 target_xfer_partial in a loop.
6136 * exec.h (section_table_available_memory): Remove declaration.
6137 Move comments to ...
6138 * exec.c (section_table_available_memory): ... here. Make it
6141 2014-02-23 Yao Qi <yao@codesourcery.com>
6143 * exec.c (section_table_read_available_memory): New function.
6144 * exec.h (section_table_read_available_memory): Declare.
6145 * ctf.c (ctf_xfer_partial): Call
6146 section_table_read_available_memory.
6147 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6149 2014-02-23 Yao Qi <yao@codesourcery.com>
6151 * ctf.c (ctf_xfer_partial): Move code to ...
6152 * exec.c (exec_read_partial_read_only): ... it. New function.
6153 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6154 * tracefile.c: Include "exec.h".
6155 * exec.h (exec_read_partial_read_only): Declare.
6157 2014-02-23 Yao Qi <yao@codesourcery.com>
6159 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6160 (tfile_has_memory): Remove.
6161 (init_tfile_ops): Don't set fields to_has_all_memory and
6162 to_has_memory of tfile_ops.
6163 * tracefile.c (tracefile_has_all_memory): New function.
6164 (tracefile_has_memory): New function.
6165 (init_tracefile_ops): Initialize fields to_has_all_memory and
6166 to_has_memory of 'ops'.
6168 2014-02-23 Yao Qi <yao@codesourcery.com>
6170 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6171 (ctf_thread_alive, ctf_get_trace_status): Remove.
6172 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6174 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6175 (tfile_has_stack, tfile_has_registers): Remove.
6176 (tfile_thread_alive): Remove.
6177 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6179 * tracefile.c (tracefile_has_stack): New function.
6180 (tracefile_has_registers): New function.
6181 (tracefile_thread_alive): New function.
6182 (tracefile_get_trace_status): New function.
6183 (init_tracefile_ops): New function.
6184 * tracefile.h (init_tracefile_ops): Declare.
6186 2014-02-23 Yao Qi <yao@codesourcery.com>
6188 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6189 (O_LARGEFILE): Likewise.
6190 (tfile_ops): Likewise.
6191 (TRACE_HEADER_SIZE): Likewise.
6192 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6193 (cur_data_size): Likewise.
6194 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6195 (tfile_close, tfile_files_info): Likewise.
6196 (tfile_get_trace_status): Likewise.
6197 (tfile_get_tracepoint_status): Likewise.
6198 (tfile_get_traceframe_address): Likewise.
6199 (tfile_trace_find, match_blocktype): Likewise.
6200 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6201 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6202 (tfile_get_trace_state_variable_value): Likewise.
6203 (tfile_has_all_memory, tfile_has_memory): Likewise.
6204 (tfile_has_stack, tfile_has_registers): Likewise.
6205 (tfile_thread_alive, build_traceframe_info): Likewise.
6206 (tfile_traceframe_info, init_tfile_ops): Likewise.
6207 (_initialize_tracepoint): Don't call init_tfile_ops
6208 and add_target_with_completer.
6209 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6210 exec.h, completer.h and filenames.h.
6211 (_initialize_tracefile_tfile): New function.
6213 2014-02-23 Yao Qi <yao@codesourcery.com>
6215 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6217 (HFILES_NO_SRCDIR): Add tracefile.h.
6218 * ctf.c: Include "tracefile.h".
6219 * tracefile.h: New file.
6220 * tracefile.c: New file
6221 * tracefile-tfile.c: New file.
6222 * tracepoint.c: Include "tracefile.h".
6223 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6224 (stop_reason_names): Add const.
6225 (trace_file_writer_xfree): Move it to tracefile.c.
6226 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6227 (trace_save_ctf): Likewise.
6228 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6229 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6230 (tfile_write_header, tfile_write_regblock_type): Likewise.
6231 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6232 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6233 (tfile_write_raw_data, tfile_end): Likewise.
6234 (tfile_trace_file_writer_new): Likewise.
6235 (free_uploaded_tp): Make it extern.
6236 (free_uploaded_tsv): Make it extern.
6237 (_initialize_tracepoint): Move code to register command 'tsave'
6239 * tracepoint.h (stop_reason_names): Declare.
6240 (struct trace_frame_write_ops): Move it to tracefile.h.
6241 (struct trace_file_write_ops): Likewise.
6242 (struct trace_file_writer): Likewise.
6243 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6245 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6248 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6250 (get_cores_used_by_process): New parameter num_cores, use it.
6251 (linux_xfer_osdata_processes): Pass num_cores to it.
6252 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6255 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6257 * target.c (memory_xfer_partial): Fix length arg in call to
6258 breakpoint_xfer_memory.
6260 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6263 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6264 number comes after the + or - signs. Adjust length of register
6265 name to be extracted.
6267 2014-02-20 Tom Tromey <tromey@redhat.com>
6269 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6270 (ada_varobj_ops): Mark "extern".
6272 2014-02-20 Tom Tromey <tromey@redhat.com>
6274 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6276 2014-02-20 Doug Evans <xdje42@gmail.com>
6278 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6279 All callers updated.
6280 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6281 All callers updated.
6282 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6283 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6285 2014-02-20 lin zuojian <manjian2006@gmail.com>
6286 Joel Brobecker <brobecker@adacore.com>
6287 Doug Evans <xdje42@gmail.com>
6290 * dwarf2read.c (struct die_info): New member in_process.
6291 (reset_die_in_process): New function.
6292 (process_die): Set it at the start, reset when returning.
6293 (inherit_abstract_dies): Only call process_die if origin_child_die
6294 not already being processed.
6296 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6298 * windows-nat.c (handle_unload_dll): Add function documentation.
6299 (do_initial_windows_stuff): Add comment explaining why we wait
6300 until after inferior initialization has finished before
6301 processing all DLLs.
6303 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6305 * windows-nat.c (get_module_name): Delete.
6306 (windows_get_exec_module_filename): New function, mostly
6307 inspired from get_module_name.
6308 (windows_pid_to_exec_file): Replace call to get_module_name
6309 by call to windows_get_exec_module_filename.
6311 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6313 * windows-nat.c (handle_load_dll): Rewrite this function's
6314 introductory comment. Remove code using get_module_name
6315 to get the DLL's name.
6317 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6319 * windows-nat.c (get_windows_debug_event): Ignore
6320 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6321 if windows_initialization_done == 0.
6322 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6323 Adjust implementation to always load all DLLs.
6324 (do_initial_windows_stuff): Replace call to
6325 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6327 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6329 * windows-nat.c (_initialize_windows_nat): Deprecate the
6330 "dll-symbols" command. Turn the "add-shared-symbol-files"
6331 and "assf" aliases into commands, and deprecate them as well.
6332 * NEWS: Add entry explaining that "dll-symbols" and its two
6333 aliases are now deprecated.
6335 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6337 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6338 new-line in debug string. Remove trailing spaces.
6340 2014-02-19 Stan Shebs <stan@codesourcery.com>
6342 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6344 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6346 * NEWS: Add entry for the new feature
6347 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6350 2014-02-19 Stan Shebs <stan@codesourcery.com>
6352 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6354 2014-02-19 Pedro Alves <palves@redhat.com>
6356 * common/ptid.h (struct ptid): Mention that process_stratum
6357 targets should prefer ptid.lwp.
6359 2014-02-19 Pedro Alves <palves@redhat.com>
6361 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6362 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6363 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6364 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6365 store remote thread ids rather than ptid.tid.
6366 (_initialize_remote): Adjust.
6368 2014-02-19 Tom Tromey <tromey@redhat.com>
6370 * target.c (target_get_unwinder): Rewrite.
6371 (target_get_tailcall_unwinder): Rewrite.
6372 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6373 (record_btrace_to_get_tailcall_unwinder): New function.
6374 (init_record_btrace_ops): Update.
6375 * target.h (struct target_ops) <to_get_unwinder,
6376 to_get_tailcall_unwinder>: Now function pointers. Use
6377 TARGET_DEFAULT_RETURN.
6379 2014-02-19 Tom Tromey <tromey@redhat.com>
6381 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6383 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6385 2014-02-19 Tom Tromey <tromey@redhat.com>
6387 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6389 * target-delegates.c: Rebuild.
6390 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6391 TARGET_DEFAULT_FUNC.
6392 * target.c (default_target_decr_pc_after_break): Rename from
6393 forward_target_decr_pc_after_break. Simplify.
6394 (target_decr_pc_after_break): Rely on delegation.
6396 2014-02-19 Tom Tromey <tromey@redhat.com>
6398 * target.c (update_current_target): Do not INHERIT to_doc or
6399 to_magic. Do not de_fault to_open or to_close.
6401 2014-02-19 Tom Tromey <tromey@redhat.com>
6403 * gcore.h (objfile_find_memory_regions): Declare.
6404 * gcore.c (objfile_find_memory_regions): No longer static. Add
6406 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6407 * exec.c: Include gcore.h.
6408 (exec_set_find_memory_regions): Remove.
6409 (exec_find_memory_regions): Remove.
6410 (exec_do_find_memory_regions): Remove.
6411 (init_exec_ops): Update.
6412 * defs.h (exec_set_find_memory_regions): Remove.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target-delegates.c: Rebuild.
6417 * target.h (struct target_ops) <to_extra_thread_info,
6418 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6419 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6420 not 0, in TARGET_DEFAULT_RETURN.
6422 2014-02-19 Tom Tromey <tromey@redhat.com>
6424 * target.c (complete_target_initialization): Remove casts. Use
6425 return_zero_has_execution.
6426 (return_zero): Add "ignore" argument.
6427 (return_zero_has_execution): New function.
6428 (init_dummy_target): Remove casts. Use
6429 return_zero_has_execution.
6431 2014-02-19 Tom Tromey <tromey@redhat.com>
6433 * target.c (update_current_target): Update comments. Do not
6436 2014-02-19 Tom Tromey <tromey@redhat.com>
6438 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6440 * corelow.c (core_read_description): Delegate when needed.
6441 * remote.c (remote_read_description): Delegate when needed.
6442 * target-delegates.c: Rebuild.
6443 * target.c (target_read_description): Rewrite.
6444 * target.h (struct target_ops) <to_read_description>: Update
6445 comment. Use TARGET_DEFAULT_RETURN.
6447 2014-02-19 Tom Tromey <tromey@redhat.com>
6449 * target-delegates.c: Rebuild.
6450 * target.c (update_current_target): Don't inherit or default
6452 (find_default_run_target): Check against delegate_can_run.
6453 * target.h (struct target_ops) <to_can_run>: Use
6454 TARGET_DEFAULT_RETURN.
6456 2014-02-19 Tom Tromey <tromey@redhat.com>
6458 * target-delegates.c: Rebuild.
6459 * target.c (target_disconnect): Unconditionally delegate.
6460 * target.h (struct target_ops) <to_disconnect>: Use
6461 TARGET_DEFAULT_NORETURN.
6463 2014-02-19 Tom Tromey <tromey@redhat.com>
6465 * record.c (record_stop): Unconditionally delegate.
6466 * target-delegates.c: Rebuild.
6467 * target.c (target_stop_recording): Unconditionally delegate.
6468 * target.h (struct target_ops) <to_stop_recording>: Use
6469 TARGET_DEFAULT_IGNORE.
6471 2014-02-19 Tom Tromey <tromey@redhat.com>
6473 * target-delegates.c: Rebuild.
6474 * target.c (target_enable_btrace): Unconditionally delegate.
6475 * target.h (struct target_ops) <to_enable_btrace>: Use
6476 TARGET_DEFAULT_NORETURN.
6478 2014-02-19 Tom Tromey <tromey@redhat.com>
6480 * target-delegates.c: Rebuild.
6481 * target.c (target_read_btrace): Unconditionally delegate.
6482 * target.h (struct target_ops) <to_read_btrace>: Use
6483 TARGET_DEFAULT_NORETURN.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target-delegates.c: Rebuild.
6488 * target.c (target_teardown_btrace): Unconditionally delegate.
6489 * target.h (struct target_ops) <to_teardown_btrace>: Use
6490 TARGET_DEFAULT_NORETURN.
6492 2014-02-19 Tom Tromey <tromey@redhat.com>
6494 * target-delegates.c: Rebuild.
6495 * target.c (target_disable_btrace): Unconditionally delegate.
6496 * target.h (struct target_ops) <to_disable_btrace>: Use
6497 TARGET_DEFAULT_NORETURN.
6499 2014-02-19 Tom Tromey <tromey@redhat.com>
6501 * target-delegates.c: Rebuild.
6502 * target.c (default_search_memory): New function.
6503 (simple_search_memory): Update comment.
6504 (target_search_memory): Unconditionally delegate.
6505 * target.h (struct target_ops) <to_search_memory>: Use
6506 TARGET_DEFAULT_FUNC.
6508 2014-02-19 Tom Tromey <tromey@redhat.com>
6510 * auxv.c (default_auxv_parse): No longer static.
6511 (target_auxv_parse): Unconditionally delegate.
6512 * auxv.h (default_auxv_parse): Declare.
6513 * target-delegates.c: Rebuild.
6514 * target.c: Include auxv.h.
6515 * target.h (struct target_ops) <to_auxv_parse>: Use
6516 TARGET_DEFAULT_FUNC.
6518 2014-02-19 Tom Tromey <tromey@redhat.com>
6520 * target-delegates.c: Rebuild.
6521 * target.c (target_memory_map): Unconditionally delegate.
6522 * target.h (struct target_ops) <to_memory_map>: Use
6523 TARGET_DEFAULT_RETURN.
6525 2014-02-19 Tom Tromey <tromey@redhat.com>
6527 * target-delegates.c: Rebuild.
6528 * target.c (target_thread_alive): Unconditionally delegate.
6529 * target.h (struct target_ops) <to_thread_alive>: Use
6530 TARGET_DEFAULT_RETURN.
6532 2014-02-19 Tom Tromey <tromey@redhat.com>
6534 * target-delegates.c: Rebuild.
6535 * target.c (target_save_record): Unconditionally delegate.
6536 * target.h (struct target_ops) <to_save_record>: Use
6537 TARGET_DEFAULT_NORETURN.
6539 2014-02-19 Tom Tromey <tromey@redhat.com>
6541 * target-delegates.c: Rebuild.
6542 * target.c (target_delete_record): Unconditionally delegate.
6543 * target.h (struct target_ops) <to_delete_record>: Use
6544 TARGET_DEFAULT_NORETURN.
6546 2014-02-19 Tom Tromey <tromey@redhat.com>
6548 * target-delegates.c: Rebuild.
6549 * target.c (target_record_is_replaying): Unconditionally
6551 * target.h (struct target_ops) <to_record_is_replaying>: Use
6552 TARGET_DEFAULT_RETURN.
6554 2014-02-19 Tom Tromey <tromey@redhat.com>
6556 * target-delegates.c: Rebuild.
6557 * target.c (target_goto_record_begin): Unconditionally delegate.
6558 * target.h (struct target_ops) <to_goto_record_begin>: Use
6559 TARGET_DEFAULT_NORETURN.
6561 2014-02-19 Tom Tromey <tromey@redhat.com>
6563 * target-delegates.c: Rebuild.
6564 * target.c (target_goto_record_end): Unconditionally delegate.
6565 * target.h (struct target_ops) <to_goto_record_end>: Use
6566 TARGET_DEFAULT_NORETURN.
6568 2014-02-19 Tom Tromey <tromey@redhat.com>
6570 * target-delegates.c: Rebuild.
6571 * target.c (target_goto_record): Unconditionally delegate.
6572 * target.h (struct target_ops) <to_goto_record>: Use
6573 TARGET_DEFAULT_NORETURN.
6575 2014-02-19 Tom Tromey <tromey@redhat.com>
6577 * target-delegates.c: Rebuild.
6578 * target.c (target_insn_history): Unconditionally delegate.
6579 * target.h (struct target_ops) <to_insn_history>: Use
6580 TARGET_DEFAULT_NORETURN.
6582 2014-02-19 Tom Tromey <tromey@redhat.com>
6584 * target-delegates.c: Rebuild.
6585 * target.c (target_insn_history_from): Unconditionally delegate.
6586 * target.h (struct target_ops) <to_insn_history_from>: Use
6587 TARGET_DEFAULT_NORETURN.
6589 2014-02-19 Tom Tromey <tromey@redhat.com>
6591 * target-delegates.c: Rebuild.
6592 * target.c (target_insn_history_range): Unconditionally delegate.
6593 * target.h (struct target_ops) <to_insn_history_range>: Use
6594 TARGET_DEFAULT_NORETURN.
6596 2014-02-19 Tom Tromey <tromey@redhat.com>
6598 * target-delegates.c: Rebuild.
6599 * target.c (target_call_history): Unconditionally delegate.
6600 * target.h (struct target_ops) <to_call_history>: Use
6601 TARGET_DEFAULT_NORETURN.
6603 2014-02-19 Tom Tromey <tromey@redhat.com>
6605 * target-delegates.c: Rebuild.
6606 * target.c (target_call_history_from): Unconditionally delegate.
6607 * target.h (struct target_ops) <to_call_history_from>: Use
6608 TARGET_DEFAULT_NORETURN.
6610 2014-02-19 Tom Tromey <tromey@redhat.com>
6612 * target-delegates.c: Rebuild.
6613 * target.c (target_call_history_range): Unconditionally delegate.
6614 * target.h (struct target_ops) <to_call_history_range>: Use
6615 TARGET_DEFAULT_NORETURN.
6617 2014-02-19 Tom Tromey <tromey@redhat.com>
6619 * target-delegates.c: Rebuild.
6620 * target.c (target_verify_memory): Unconditionally delegate.
6621 * target.h (struct target_ops) <to_verify_memory>: Use
6622 TARGET_DEFAULT_NORETURN.
6624 2014-02-19 Tom Tromey <tromey@redhat.com>
6626 * target-delegates.c: Rebuild.
6627 * target.c (target_core_of_thread): Unconditionally delegate.
6628 * target.h (struct target_ops) <to_core_of_thread>: Use
6629 TARGET_DEFAULT_RETURN.
6631 2014-02-19 Tom Tromey <tromey@redhat.com>
6633 * target-delegates.c: Rebuild.
6634 * target.c (target_flash_done): Unconditionally delegate.
6635 * target.h (struct target_ops) <to_flash_done>: Use
6636 TARGET_DEFAULT_NORETURN.
6638 2014-02-19 Tom Tromey <tromey@redhat.com>
6640 * target-delegates.c: Rebuild.
6641 * target.c (target_flash_erase): Unconditionally delegate.
6642 * target.h (struct target_ops) <to_flash_erase>: Use
6643 TARGET_DEFAULT_NORETURN.
6645 2014-02-19 Tom Tromey <tromey@redhat.com>
6647 * target-delegates.c: Rebuild.
6648 * target.c (target_get_section_table): Unconditionally delegate.
6649 * target.h (struct target_ops) <to_get_section_table>: Use
6650 TARGET_DEFAULT_RETURN.
6652 2014-02-19 Tom Tromey <tromey@redhat.com>
6654 * target-delegates.c: Rebuild.
6655 * target.c (target_pid_to_str): Unconditionally delegate.
6656 (init_dummy_target): Don't initialize to_pid_to_str.
6657 (default_pid_to_str): Rename from dummy_pid_to_str.
6658 * target.h (struct target_ops) <to_pid_to_str>: Use
6659 TARGET_DEFAULT_FUNC.
6661 2014-02-19 Tom Tromey <tromey@redhat.com>
6663 * target-delegates.c: Rebuild.
6664 * target.c (target_find_new_threads): Unconditionally delegate.
6665 * target.h (struct target_ops) <to_find_new_threads>: Use
6666 TARGET_DEFAULT_RETURN.
6668 2014-02-19 Tom Tromey <tromey@redhat.com>
6670 * target-delegates.c: Rebuild.
6671 * target.c (target_program_signals): Unconditionally delegate.
6672 * target.h (struct target_ops) <to_program_signals>: Use
6673 TARGET_DEFAULT_IGNORE.
6675 2014-02-19 Tom Tromey <tromey@redhat.com>
6677 * target-delegates.c: Rebuild.
6678 * target.c (target_pass_signals): Unconditionally delegate.
6679 * target.h (struct target_ops) <to_pass_signals>: Use
6680 TARGET_DEFAULT_IGNORE.
6682 2014-02-19 Tom Tromey <tromey@redhat.com>
6684 * target-delegates.c: Rebuild.
6685 * target.c (default_mourn_inferior): New function.
6686 (target_mourn_inferior): Unconditionally delegate.
6687 * target.h (struct target_ops) <to_mourn_inferior>: Use
6688 TARGET_DEFAULT_FUNC.
6690 2014-02-19 Tom Tromey <tromey@redhat.com>
6692 * target-delegates.c: Rebuild.
6693 * target.c (default_follow_fork): New function.
6694 (target_follow_fork): Unconditionally delegate.
6695 * target.h (struct target_ops) <to_follow_fork>: Use
6696 TARGET_DEFAULT_FUNC.
6698 2014-02-19 Tom Tromey <tromey@redhat.com>
6700 * target-delegates.c: Rebuild.
6701 * target.c (target_kill): Unconditionally delegate.
6702 * target.h (struct target_ops) <to_kill>: Use
6703 TARGET_DEFAULT_NORETURN.
6705 2014-02-19 Tom Tromey <tromey@redhat.com>
6707 * target-delegates.c: Rebuild.
6708 * target.c (target_masked_watch_num_registers): Unconditionally
6710 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6711 Use TARGET_DEFAULT_RETURN.
6713 2014-02-19 Tom Tromey <tromey@redhat.com>
6715 * target-delegates.c: Rebuild.
6716 * target.c (target_remove_mask_watchpoint): Unconditionally
6718 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6719 TARGET_DEFAULT_RETURN.
6721 2014-02-19 Tom Tromey <tromey@redhat.com>
6723 * target-delegates.c: Rebuild.
6724 * target.c (target_insert_mask_watchpoint): Unconditionally
6726 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6727 TARGET_DEFAULT_RETURN.
6729 2014-02-19 Tom Tromey <tromey@redhat.com>
6731 * target-delegates.c: Rebuild.
6732 * target.c (target_ranged_break_num_registers): Unconditionally
6734 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6735 Use TARGET_DEFAULT_RETURN.
6737 2014-02-19 Tom Tromey <tromey@redhat.com>
6739 * target-delegates.c: Rebuild.
6740 * target.c (target_fetch_registers): Unconditionally delegate.
6741 * target.h (struct target_ops) <to_fetch_registers>: Use
6742 TARGET_DEFAULT_NORETURN.
6744 2014-02-19 Tom Tromey <tromey@redhat.com>
6746 * target-delegates.c: Rebuild.
6747 * target.c (update_current_target): Don't inherit or default
6749 * target.h (struct target_ops) <to_stop>: Use
6750 TARGET_DEFAULT_IGNORE.
6752 2014-02-19 Tom Tromey <tromey@redhat.com>
6754 * target-delegates.c: Rebuild.
6755 * target.c (update_current_target): Don't inherit or default
6756 to_can_run_breakpoint_commands.
6757 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6758 Use TARGET_DEFAULT_RETURN.
6760 2014-02-19 Tom Tromey <tromey@redhat.com>
6762 * target-delegates.c: Rebuild.
6763 * target.c (update_current_target): Don't inherit or default
6764 to_supports_evaluation_of_breakpoint_conditions.
6765 * target.h (struct target_ops)
6766 <to_supports_evaluation_of_breakpoint_conditions>: Use
6767 TARGET_DEFAULT_RETURN.
6769 2014-02-19 Tom Tromey <tromey@redhat.com>
6771 * target-delegates.c: Rebuild.
6772 * target.c (update_current_target): Don't inherit or default
6773 to_augmented_libraries_svr4_read.
6774 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6775 Use TARGET_DEFAULT_RETURN.
6777 2014-02-19 Tom Tromey <tromey@redhat.com>
6779 * target-delegates.c: Rebuild.
6780 * target.c (update_current_target): Don't inherit or default
6782 * target.h (struct target_ops) <to_can_use_agent>: Use
6783 TARGET_DEFAULT_RETURN.
6785 2014-02-19 Tom Tromey <tromey@redhat.com>
6787 * target-delegates.c: Rebuild.
6788 * target.c (update_current_target): Don't inherit or default
6790 * target.h (struct target_ops) <to_use_agent>: Use
6791 TARGET_DEFAULT_NORETURN.
6793 2014-02-19 Tom Tromey <tromey@redhat.com>
6795 * target-delegates.c: Rebuild.
6796 * target.c (update_current_target): Don't inherit or default
6798 (return_null): Remove.
6799 * target.h (struct target_ops) <to_traceframe_info>: Use
6800 TARGET_DEFAULT_RETURN.
6802 2014-02-19 Tom Tromey <tromey@redhat.com>
6804 * target-delegates.c: Rebuild.
6805 * target.c (update_current_target): Don't inherit or default
6806 to_static_tracepoint_markers_by_strid.
6807 * target.h (struct target_ops)
6808 <to_static_tracepoint_markers_by_strid>: Use
6809 TARGET_DEFAULT_NORETURN.
6811 2014-02-19 Tom Tromey <tromey@redhat.com>
6813 * target-delegates.c: Rebuild.
6814 * target.c (update_current_target): Don't inherit or default
6815 to_static_tracepoint_marker_at.
6816 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6817 Use TARGET_DEFAULT_RETURN.
6819 2014-02-19 Tom Tromey <tromey@redhat.com>
6821 * target-delegates.c: Rebuild.
6822 * target.c (update_current_target): Don't inherit or default
6824 * target.h (struct target_ops) <to_set_permissions>: Use
6825 TARGET_DEFAULT_IGNORE.
6827 2014-02-19 Tom Tromey <tromey@redhat.com>
6829 * target-delegates.c: Rebuild.
6830 * target.c (update_current_target): Don't inherit or default
6832 * target.h (struct target_ops) <to_get_tib_address>: Use
6833 TARGET_DEFAULT_NORETURN.
6835 2014-02-19 Tom Tromey <tromey@redhat.com>
6837 * target-delegates.c: Rebuild.
6838 * target.c (update_current_target): Don't inherit or default
6840 * target.h (struct target_ops) <to_set_trace_notes>: Use
6841 TARGET_DEFAULT_RETURN.
6843 2014-02-19 Tom Tromey <tromey@redhat.com>
6845 * target-delegates.c: Rebuild.
6846 * target.c (update_current_target): Don't initialize
6847 to_set_trace_buffer_size.
6848 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6849 TARGET_DEFAULT_IGNORE.
6851 2014-02-19 Tom Tromey <tromey@redhat.com>
6853 * target-delegates.c: Rebuild.
6854 * target.c (update_current_target): Don't inherit or default
6855 to_set_circular_trace_buffer.
6856 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6857 TARGET_DEFAULT_IGNORE.
6859 2014-02-19 Tom Tromey <tromey@redhat.com>
6861 * target-delegates.c: Rebuild.
6862 * target.c (update_current_target): Don't inherit or default
6863 to_set_disconnected_tracing.
6864 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6865 TARGET_DEFAULT_IGNORE.
6867 2014-02-19 Tom Tromey <tromey@redhat.com>
6869 * target-delegates.c: Rebuild.
6870 * target.c (update_current_target): Don't inherit or default
6871 to_get_min_fast_tracepoint_insn_len.
6872 (return_minus_one): Remove.
6873 * target.h (struct target_ops)
6874 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6876 2014-02-19 Tom Tromey <tromey@redhat.com>
6878 * target-delegates.c: Rebuild.
6879 * target.c (update_current_target): Don't inherit or default
6880 to_get_raw_trace_data.
6881 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6882 TARGET_DEFAULT_NORETURN.
6884 2014-02-19 Tom Tromey <tromey@redhat.com>
6886 * target-delegates.c: Rebuild.
6887 * target.c (update_current_target): Don't inherit or default
6888 to_upload_trace_state_variables.
6889 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6890 Use TARGET_DEFAULT_RETURN.
6892 2014-02-19 Tom Tromey <tromey@redhat.com>
6894 * target-delegates.c: Rebuild.
6895 * target.c (update_current_target): Don't inherit or default
6896 to_upload_tracepoints.
6897 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6898 TARGET_DEFAULT_RETURN.
6900 2014-02-19 Tom Tromey <tromey@redhat.com>
6902 * target-delegates.c: Rebuild.
6903 * target.c (update_current_target): Don't inherit or default
6905 * target.h (struct target_ops) <to_save_trace_data>: Use
6906 TARGET_DEFAULT_NORETURN.
6908 2014-02-19 Tom Tromey <tromey@redhat.com>
6910 * target-delegates.c: Rebuild.
6911 * target.c (update_current_target): Don't inherit or default
6912 to_get_trace_state_variable_value.
6913 * target.h (struct target_ops)
6914 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6916 2014-02-19 Tom Tromey <tromey@redhat.com>
6918 * target-delegates.c: Rebuild.
6919 * target.c (update_current_target): Don't inherit or default
6921 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6923 2014-02-19 Tom Tromey <tromey@redhat.com>
6925 * target-delegates.c: Rebuild.
6926 * target.c (update_current_target): Don't inherit or default
6928 * target.h (struct target_ops) <to_trace_stop>: Use
6929 TARGET_DEFAULT_NORETURN.
6931 2014-02-19 Tom Tromey <tromey@redhat.com>
6933 * target-delegates.c: Rebuild.
6934 * target.c (update_current_target): Don't inherit or default
6935 to_get_tracepoint_status.
6936 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6937 TARGET_DEFAULT_NORETURN.
6939 2014-02-19 Tom Tromey <tromey@redhat.com>
6941 * target-delegates.c: Rebuild.
6942 * target.c (update_current_target): Don't inherit or default
6943 to_get_trace_status.
6944 * target.h (struct target_ops) <to_get_trace_status>: Use
6945 TARGET_DEFAULT_RETURN.
6947 2014-02-19 Tom Tromey <tromey@redhat.com>
6949 * target-delegates.c: Rebuild.
6950 * target.c (update_current_target): Don't inherit or default
6952 * target.h (struct target_ops) <to_trace_start>: Use
6953 TARGET_DEFAULT_NORETURN.
6955 2014-02-19 Tom Tromey <tromey@redhat.com>
6957 * target-delegates.c: Rebuild.
6958 * target.c (update_current_target): Don't inherit or default
6959 to_trace_set_readonly_regions.
6960 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6961 Use TARGET_DEFAULT_NORETURN.
6963 2014-02-19 Tom Tromey <tromey@redhat.com>
6965 * target-delegates.c: Rebuild.
6966 * target.c (update_current_target): Don't inherit or default
6967 to_disable_tracepoint.
6968 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6969 TARGET_DEFAULT_NORETURN.
6971 2014-02-19 Tom Tromey <tromey@redhat.com>
6973 * target-delegates.c: Rebuild.
6974 * target.c (update_current_target): Don't inherit or default
6975 to_enable_tracepoint.
6976 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6977 TARGET_DEFAULT_NORETURN.
6979 2014-02-19 Tom Tromey <tromey@redhat.com>
6981 * target-delegates.c: Rebuild.
6982 * target.c (update_current_target): Don't inherit or default
6983 to_download_trace_state_variable.
6984 * target.h (struct target_ops) <to_download_trace_state_variable>:
6985 Use TARGET_DEFAULT_NORETURN.
6987 2014-02-19 Tom Tromey <tromey@redhat.com>
6989 * target-delegates.c: Rebuild.
6990 * target.c (update_current_target): Don't inherit or default
6991 to_can_download_tracepoint.
6992 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6993 TARGET_DEFAULT_RETURN.
6995 2014-02-19 Tom Tromey <tromey@redhat.com>
6997 * target-delegates.c: Rebuild.
6998 * target.c (update_current_target): Don't inherit or default
6999 to_download_tracepoint.
7000 * target.h (struct target_ops) <to_download_tracepoint>: Use
7001 TARGET_DEFAULT_NORETURN.
7003 2014-02-19 Tom Tromey <tromey@redhat.com>
7005 * target-delegates.c: Rebuild.
7006 * target.c (update_current_target): Don't inherit or default
7008 * target.h (struct target_ops) <to_trace_init>: Use
7009 TARGET_DEFAULT_RETURN.
7011 2014-02-19 Tom Tromey <tromey@redhat.com>
7013 * target-delegates.c: Rebuild.
7014 * target.c (update_current_target): Don't inherit or default
7015 to_supports_string_tracing.
7016 * target.h (struct target_ops) <to_supports_string_tracing>: Use
7017 TARGET_DEFAULT_RETURN.
7019 2014-02-19 Tom Tromey <tromey@redhat.com>
7021 * target-delegates.c: Rebuild.
7022 * target.c (update_current_target): Don't inherit or default
7023 to_supports_enable_disable_tracepoint.
7024 * target.h (struct target_ops)
7025 <to_supports_enable_disable_tracepoint>: Use
7026 TARGET_DEFAULT_RETURN.
7028 2014-02-19 Tom Tromey <tromey@redhat.com>
7030 * target-delegates.c: Rebuild.
7031 * target.c (update_current_target): Don't inherit or default
7032 to_supports_multi_process.
7033 * target.h (struct target_ops) <to_supports_multi_process>: Use
7034 TARGET_DEFAULT_RETURN.
7036 2014-02-19 Tom Tromey <tromey@redhat.com>
7038 * target-delegates.c: Rebuild.
7039 * target.c (update_current_target): Don't inherit or default
7040 to_get_ada_task_ptid.
7041 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7042 TARGET_DEFAULT_FUNC.
7044 2014-02-19 Tom Tromey <tromey@redhat.com>
7046 * target-delegates.c: Rebuild.
7047 * target.c (update_current_target): Don't inherit or default
7048 to_thread_architecture.
7049 * target.h (struct target_ops) <to_thread_architecture>: Use
7050 TARGET_DEFAULT_FUNC.
7052 2014-02-19 Tom Tromey <tromey@redhat.com>
7054 * target-delegates.c: Rebuild.
7055 * target.c (update_current_target): Don't inherit or default
7056 to_execution_direction.
7057 * target.h (struct target_ops) <to_execution_direction>: Use
7058 TARGET_DEFAULT_FUNC.
7060 2014-02-19 Tom Tromey <tromey@redhat.com>
7062 * target-delegates.c: Rebuild.
7063 * target.c (update_current_target): Don't inherit or default
7064 to_can_execute_reverse.
7065 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7066 TARGET_DEFAULT_RETURN.
7067 (target_can_execute_reverse): Unconditionally delegate.
7069 2014-02-19 Tom Tromey <tromey@redhat.com>
7071 * target-delegates.c: Rebuild.
7072 * target.c (update_current_target): Don't inherit or default
7074 (dummy_goto_bookmark): Remove.
7075 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7076 * target.h (struct target_ops) <to_goto_bookmark>: Use
7077 TARGET_DEFAULT_NORETURN.
7079 2014-02-19 Tom Tromey <tromey@redhat.com>
7081 * target-delegates.c: Rebuild.
7082 * target.c (update_current_target): Don't inherit or default
7084 (dummy_get_bookmark): Remove.
7085 (init_dummy_target): Don't inherit or default to_get_bookmark.
7086 * target.h (struct target_ops) <to_get_bookmark>: Use
7087 TARGET_DEFAULT_NORETURN
7089 2014-02-19 Tom Tromey <tromey@redhat.com>
7091 * target-delegates.c: Rebuild.
7092 * target.c (update_current_target): Don't inherit or default
7093 to_make_corefile_notes.
7094 (init_dummy_target): Don't initialize to_make_corefile_notes.
7095 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7096 TARGET_DEFAULT_FUNC.
7098 2014-02-19 Tom Tromey <tromey@redhat.com>
7100 * target-delegates.c: Rebuild.
7101 * target.c (update_current_target): Don't inherit or default
7102 to_find_memory_regions.
7103 (init_dummy_target): Don't initialize to_find_memory_regions.
7104 * target.h (struct target_ops) <to_find_memory_regions>: Use
7105 TARGET_DEFAULT_FUNC.
7107 2014-02-19 Tom Tromey <tromey@redhat.com>
7109 * target-delegates.c: Rebuild.
7110 * target.c (update_current_target): Don't inherit or default
7112 * target.h (struct target_ops) <to_log_command>: Use
7113 TARGET_DEFAULT_IGNORE.
7114 (target_log_command): Unconditionally delegate.
7116 2014-02-19 Tom Tromey <tromey@redhat.com>
7118 * target-delegates.c: Rebuild.
7119 * target.c (update_current_target): Don't inherit or default
7120 to_pid_to_exec_file.
7121 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7122 TARGET_DEFAULT_RETURN.
7124 2014-02-19 Tom Tromey <tromey@redhat.com>
7126 * target-delegates.c: Rebuild.
7127 * target.c (update_current_target): Don't inherit or default
7129 (target_thread_name): Unconditionally delegate.
7130 * target.h (struct target_ops) <to_thread_name>: Use
7131 TARGET_DEFAULT_RETURN.
7133 2014-02-19 Tom Tromey <tromey@redhat.com>
7135 * target-delegates.c: Rebuild.
7136 * target.c (update_current_target): Don't inherit or default
7137 to_extra_thread_info.
7138 * target.h (struct target_ops) <to_extra_thread_info>: Use
7139 TARGET_DEFAULT_RETURN.
7141 2014-02-19 Tom Tromey <tromey@redhat.com>
7143 * target-delegates.c: Rebuild.
7144 * target.c (update_current_target): Don't inherit or default
7146 * target.h (struct target_ops) <to_has_exited>: Use
7147 TARGET_DEFAULT_RETURN..
7149 2014-02-19 Tom Tromey <tromey@redhat.com>
7151 * target-delegates.c: Rebuild.
7152 * target.c (update_current_target): Don't inherit or default
7153 to_set_syscall_catchpoint.
7154 (return_one): Remove.
7155 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7156 TARGET_DEFAULT_RETURN.
7158 2014-02-19 Tom Tromey <tromey@redhat.com>
7160 * target-delegates.c: Rebuild.
7161 * target.c (update_current_target): Don't inherit or default
7162 to_insert_exec_catchpoint.
7163 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7164 TARGET_DEFAULT_RETURN.
7166 2014-01-08 Tom Tromey <tromey@redhat.com>
7168 * target-delegates.c: Rebuild.
7169 * target.c (update_current_target): Don't inherit or default
7170 to_insert_exec_catchpoint.
7171 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7172 TARGET_DEFAULT_RETURN.
7174 2014-02-19 Tom Tromey <tromey@redhat.com>
7176 * target-delegates.c: Rebuild.
7177 * target.c (update_current_target): Don't inherit or default
7178 to_remove_vfork_catchpoint.
7179 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7180 TARGET_DEFAULT_RETURN.
7182 2014-02-19 Tom Tromey <tromey@redhat.com>
7184 * target-delegates.c: Rebuild.
7185 * target.c (update_current_target): Don't inherit or default
7186 to_insert_vfork_catchpoint.
7187 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7188 TARGET_DEFAULT_RETURN.
7190 2014-02-19 Tom Tromey <tromey@redhat.com>
7192 * target-delegates.c: Rebuild.
7193 * target.c (update_current_target): Don't inherit or default
7194 to_remove_fork_catchpoint.
7195 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7196 TARGET_DEFAULT_RETURN.
7198 2014-02-19 Tom Tromey <tromey@redhat.com>
7200 * target-delegates.c: Rebuild.
7201 * target.c (update_current_target): Don't inherit or default
7202 to_insert_fork_catchpoint.
7203 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7204 TARGET_DEFAULT_RETURN.
7206 2014-02-19 Tom Tromey <tromey@redhat.com>
7208 * target-delegates.c: Rebuild.
7209 * target.c (update_current_target): Don't inherit or default
7210 to_post_startup_inferior.
7211 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7212 TARGET_DEFAULT_IGNORE.
7214 2014-02-19 Tom Tromey <tromey@redhat.com>
7216 * target-delegates.c: Rebuild.
7217 * target.c (update_current_target): Don't inherit or default
7219 * target.h (struct target_ops) <to_load>: Use
7220 TARGET_DEFAULT_NORETURN.
7222 2014-02-19 Tom Tromey <tromey@redhat.com>
7224 * target-delegates.c: Rebuild.
7225 * target.c (update_current_target): Don't inherit or default
7227 * target.h (struct target_ops) <to_terminal_info>: Use
7228 TARGET_DEFAULT_FUNC.
7230 2014-02-19 Tom Tromey <tromey@redhat.com>
7232 * target-delegates.c: Rebuild.
7233 * target.c (update_current_target): Don't inherit or default
7234 to_terminal_save_ours.
7235 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7236 TARGET_DEFAULT_IGNORE.
7238 2014-02-19 Tom Tromey <tromey@redhat.com>
7240 * target-delegates.c: Rebuild.
7241 * target.c (update_current_target): Don't inherit or default
7243 * target.h (struct target_ops) <to_terminal_ours>: Use
7244 TARGET_DEFAULT_IGNORE.
7246 2014-02-19 Tom Tromey <tromey@redhat.com>
7248 * target-delegates.c: Rebuild.
7249 * target.c (update_current_target): Don't inherit or default
7250 to_terminal_ours_for_output.
7251 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7252 TARGET_DEFAULT_IGNORE.
7254 2014-02-19 Tom Tromey <tromey@redhat.com>
7256 * target-delegates.c: Rebuild.
7257 * target.c (update_current_target): Don't inherit or default
7258 to_terminal_inferior.
7259 * target.h (struct target_ops) <to_terminal_inferior>: Use
7260 TARGET_DEFAULT_IGNORE.
7262 2014-02-19 Tom Tromey <tromey@redhat.com>
7264 * target-delegates.c: Rebuild.
7265 * target.c (update_current_target): Don't inherit or default
7267 * target.h (struct target_ops) <to_terminal_init>: Use
7268 TARGET_DEFAULT_IGNORE.
7270 2014-02-19 Tom Tromey <tromey@redhat.com>
7272 * target-delegates.c: Rebuild.
7273 * target.c (update_current_target): Don't inherit or default
7274 to_can_accel_watchpoint_condition.
7275 * target.h (struct target_ops)
7276 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7278 2014-02-19 Tom Tromey <tromey@redhat.com>
7280 * target-delegates.c: Rebuild.
7281 * target.c (update_current_target): Don't inherit or default
7282 to_region_ok_for_hw_watchpoint.
7283 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7284 Use TARGET_DEFAULT_FUNC.
7286 2014-02-19 Tom Tromey <tromey@redhat.com>
7288 * target-delegates.c: Rebuild.
7289 * target.c (update_current_target): Don't inherit or default
7290 to_watchpoint_addr_within_range.
7291 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7292 Use TARGET_DEFAULT_FUNC.
7294 2014-02-19 Tom Tromey <tromey@redhat.com>
7296 * target-delegates.c: Rebuild.
7297 * target.c (update_current_target): Don't inherit or default
7298 to_remove_watchpoint.
7299 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7300 TARGET_DEFAULT_NORETURN.
7302 2014-02-19 Tom Tromey <tromey@redhat.com>
7304 * target-delegates.c: Rebuild.
7305 * target.c (update_current_target): Don't inherit or default
7306 to_insert_watchpoint.
7307 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7308 TARGET_DEFAULT_RETURN.
7310 2014-02-19 Tom Tromey <tromey@redhat.com>
7312 * target-delegates.c: Rebuild.
7313 * target.c (update_current_target): Don't inherit or default
7314 to_remove_hw_breakpoint.
7315 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7316 TARGET_DEFAULT_RETURN.
7318 2014-02-19 Tom Tromey <tromey@redhat.com>
7320 * target-delegates.c: Rebuild.
7321 * target.c (update_current_target): Don't inherit or default
7322 to_insert_hw_breakpoint.
7323 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7324 TARGET_DEFAULT_RETURN.
7326 2014-02-19 Tom Tromey <tromey@redhat.com>
7328 * target-delegates.c: Rebuild.
7329 * target.c (update_current_target): Don't inherit or default
7330 to_can_use_hw_breakpoint.
7331 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7332 TARGET_DEFAULT_RETURN.
7334 2014-02-19 Tom Tromey <tromey@redhat.com>
7336 * target-delegates.c: Rebuild.
7337 * target.c (update_current_target): Don't inherit or default
7339 * target.h (struct target_ops) <to_files_info>: Use
7340 TARGET_DEFAULT_IGNORE.
7342 2014-02-19 Tom Tromey <tromey@redhat.com>
7344 * target-delegates.c: Rebuild.
7345 * target.c (update_current_target): Don't inherit or default
7347 * target.h (struct target_ops) <to_store>: Use
7348 TARGET_DEFAULT_NORETURN.
7350 2014-02-19 Tom Tromey <tromey@redhat.com>
7352 * target-delegates.c: Rebuild.
7353 * target.c (update_current_target): Don't inherit or default
7355 * target.h (struct target_ops) <to_post_attach>: Use
7356 TARGET_DEFAULT_IGNORE.
7358 2014-02-19 Tom Tromey <tromey@redhat.com>
7360 * target-delegates.c: Rebuild.
7361 * target.c (update_current_target): Don't inherit or default
7363 (default_rcmd): New function.
7364 (do_monitor_command): Unconditionally delegate.
7365 * target.h (struct target_ops) <to_rmcd>: Use
7366 TARGET_DEFAULT_FUNC.
7368 2014-02-19 Tom Tromey <tromey@redhat.com>
7370 * target-delegates.c: Rebuild.
7371 * target.c (init_dummy_target): Don't initialize to_attach.
7372 (target_attach): Unconditionally delegate.
7373 * target.h (struct target_ops) <to_attach>: Use
7374 TARGET_DEFAULT_FUNC.
7376 2014-02-19 Tom Tromey <tromey@redhat.com>
7378 * target-delegates.c: Rebuild.
7379 * target.c (target_detach): Unconditionally delegate.
7380 (init_dummy_target): Don't initialize to_detach.
7381 * target.h (struct target_ops) <to_detach>: Use
7382 TARGET_DEFAULT_IGNORE.
7384 2014-02-19 Tom Tromey <tromey@redhat.com>
7386 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7388 (target_augmented_libraries_svr4_read): Add argument.
7389 * target.c (update_current_target): Update.
7390 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7393 2014-02-19 Tom Tromey <tromey@redhat.com>
7395 * target.h (struct target_ops) <to_call_history_range>: Add
7397 * target.c (target_call_history_range): Add argument.
7398 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7400 (record_btrace_call_history_from): Update.
7402 2014-02-19 Tom Tromey <tromey@redhat.com>
7404 * target.h (struct target_ops) <to_call_history_from>: Add
7406 * target.c (target_call_history_from): Add argument.
7407 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7410 2014-02-19 Tom Tromey <tromey@redhat.com>
7412 * target.h (struct target_ops) <to_call_history>: Add argument.
7413 * target.c (target_call_history): Add argument.
7414 * record-btrace.c (record_btrace_call_history): Add 'self'
7417 2014-02-19 Tom Tromey <tromey@redhat.com>
7419 * target.h (struct target_ops) <to_insn_history_range>: Add
7421 * target.c (target_insn_history_range): Add argument.
7422 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7424 (record_btrace_insn_history_from): Update.
7426 2014-02-19 Tom Tromey <tromey@redhat.com>
7428 * target.h (struct target_ops) <to_insn_history_from>: Add
7430 * target.c (target_insn_history_from): Add argument.
7431 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7434 2014-02-19 Tom Tromey <tromey@redhat.com>
7436 * target.h (struct target_ops) <to_insn_history>: Add argument.
7437 * target.c (target_insn_history): Add argument.
7438 * record-btrace.c (record_btrace_insn_history): Add 'self'
7441 2014-02-19 Tom Tromey <tromey@redhat.com>
7443 * target.h (struct target_ops) <to_goto_record>: Add argument.
7444 * target.c (target_goto_record): Add argument.
7445 * record-full.c (record_full_goto): Add 'self' argument.
7446 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7448 2014-02-19 Tom Tromey <tromey@redhat.com>
7450 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7451 * target.c (target_goto_record_end): Add argument.
7452 * record-full.c (record_full_goto_end): Add 'self' argument.
7453 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7455 2014-02-19 Tom Tromey <tromey@redhat.com>
7457 * target.h (struct target_ops) <to_goto_record_begin>: Add
7459 * target.c (target_goto_record_begin): Add argument.
7460 * record-full.c (record_full_goto_begin): Add 'self' argument.
7461 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7464 2014-02-19 Tom Tromey <tromey@redhat.com>
7466 * target.h (struct target_ops) <to_record_is_replaying>: Add
7468 * target.c (target_record_is_replaying): Add argument.
7469 * record-full.c (record_full_is_replaying): Add 'self' argument.
7470 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7472 (record_btrace_xfer_partial, record_btrace_store_registers)
7473 (record_btrace_prepare_to_store, record_btrace_resume)
7474 (record_btrace_wait, record_btrace_decr_pc_after_break)
7475 (record_btrace_find_new_threads, record_btrace_thread_alive):
7478 2014-02-19 Tom Tromey <tromey@redhat.com>
7480 * target.h (struct target_ops) <to_delete_record>: Add argument.
7481 * target.c (target_delete_record): Add argument.
7482 * record-full.c (record_full_delete): Add 'self' argument.
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * target.h (struct target_ops) <to_save_record>: Add argument.
7487 * target.c (target_save_record): Add argument.
7488 * record-full.c (record_full_save): Add 'self' argument.
7489 (record_full_save): Add 'self' argument.
7491 2014-02-19 Tom Tromey <tromey@redhat.com>
7493 * target.h (struct target_ops) <to_info_record>: Add argument.
7494 * target.c (target_info_record): Add argument.
7495 * record.c (info_record_command): Add argument.
7496 * record-full.c (record_full_info): Add 'self' argument.
7497 * record-btrace.c (record_btrace_info): Add 'self' argument.
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7502 * target.c (target_stop_recording): Add argument.
7503 * record.c (record_stop): Add argument.
7504 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7507 2014-02-19 Tom Tromey <tromey@redhat.com>
7509 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7510 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7511 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7513 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7514 (_initialize_amd64_linux_nat): Use it.
7515 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7516 (_initialize_i386_linux_nat): Use it.
7518 2014-02-19 Tom Tromey <tromey@redhat.com>
7520 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7521 * target.c (target_teardown_btrace): Add argument.
7522 * remote.c (remote_teardown_btrace): Add 'self' argument.
7523 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7525 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7528 2014-02-19 Tom Tromey <tromey@redhat.com>
7530 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7531 * target.c (target_disable_btrace): Add argument.
7532 * remote.c (remote_disable_btrace): Add 'self' argument.
7533 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7535 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7538 2014-02-19 Tom Tromey <tromey@redhat.com>
7540 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7541 * target.c (target_enable_btrace): Add argument.
7542 * remote.c (remote_enable_btrace): Add 'self' argument.
7543 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7545 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7548 2014-02-19 Tom Tromey <tromey@redhat.com>
7550 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7551 (target_can_use_agent): Add argument.
7552 * target.c (update_current_target): Update.
7553 * remote.c (remote_can_use_agent): Add 'self' argument.
7554 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7556 2014-02-19 Tom Tromey <tromey@redhat.com>
7558 * target.h (struct target_ops) <to_use_agent>: Add argument.
7559 (target_use_agent): Add argument.
7560 * target.c (update_current_target): Update.
7561 * remote.c (remote_use_agent): Add 'self' argument.
7562 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7564 2014-02-19 Tom Tromey <tromey@redhat.com>
7566 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7567 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7568 (target_traceframe_info): Add argument.
7569 * target.c (update_current_target): Update.
7570 * remote.c (remote_traceframe_info): Add 'self' argument.
7571 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7573 2014-02-19 Tom Tromey <tromey@redhat.com>
7575 * target.h (target_static_tracepoint_markers_by_strid): Add
7577 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7579 * target.c (update_current_target): Update.
7580 * remote.c (struct target_ops)
7581 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7582 * linux-nat.c (struct target_ops)
7583 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7585 2014-02-19 Tom Tromey <tromey@redhat.com>
7587 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7589 (target_static_tracepoint_marker_at): Add argument.
7590 * target.c (update_current_target): Update.
7591 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7594 2014-02-19 Tom Tromey <tromey@redhat.com>
7596 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7597 (target_set_permissions): Add argument.
7598 * target.c (update_current_target): Update.
7599 * remote.c (remote_set_permissions): Add 'self' argument.
7600 (remote_start_remote): Update.
7602 2014-02-19 Tom Tromey <tromey@redhat.com>
7604 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7605 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7606 (target_get_tib_address): Add argument.
7607 * target.c (update_current_target): Update.
7608 * remote.c (remote_get_tib_address): Add 'self' argument.
7610 2014-02-19 Tom Tromey <tromey@redhat.com>
7612 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7613 (target_set_trace_notes): Add argument.
7614 * target.c (update_current_target): Update.
7615 * remote.c (remote_set_trace_notes): Add 'self' argument.
7617 2014-02-19 Tom Tromey <tromey@redhat.com>
7619 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7621 (target_set_trace_buffer_size): Add argument.
7622 * target.c (update_current_target): Update.
7623 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7625 2014-02-19 Tom Tromey <tromey@redhat.com>
7627 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7629 (target_set_circular_trace_buffer): Add argument.
7630 * target.c (update_current_target): Update.
7631 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7634 2014-02-19 Tom Tromey <tromey@redhat.com>
7636 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7638 (target_set_disconnected_tracing): Add argument.
7639 * target.c (update_current_target): Update.
7640 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7642 2014-02-19 Tom Tromey <tromey@redhat.com>
7644 * target.h (struct target_ops)
7645 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7646 (target_get_min_fast_tracepoint_insn_len): Add argument.
7647 * target.c (update_current_target): Update.
7648 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7651 2014-02-19 Tom Tromey <tromey@redhat.com>
7653 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7655 (target_get_raw_trace_data): Add argument.
7656 * target.c (update_current_target): Update.
7657 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7659 2014-02-19 Tom Tromey <tromey@redhat.com>
7661 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7663 (target_upload_trace_state_variables): Add argument.
7664 * target.c (update_current_target): Update.
7665 * remote.c (remote_upload_trace_state_variables): Add 'self'
7667 (remote_start_remote): Update.
7669 2014-02-19 Tom Tromey <tromey@redhat.com>
7671 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7673 (target_upload_tracepoints): Add argument.
7674 * target.c (update_current_target): Update.
7675 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7676 (remote_start_remote): Update.
7678 2014-02-19 Tom Tromey <tromey@redhat.com>
7680 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7681 (target_save_trace_data): Add argument.
7682 * target.c (update_current_target): Update.
7683 * remote.c (remote_save_trace_data): Add 'self' argument.
7685 2014-02-19 Tom Tromey <tromey@redhat.com>
7687 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7689 * target.h (struct target_ops)
7690 <to_get_trace_state_variable_value>: Add argument.
7691 (target_get_trace_state_variable_value): Add argument.
7692 * target.c (update_current_target): Update.
7693 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7695 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7697 2014-02-19 Tom Tromey <tromey@redhat.com>
7699 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7700 * target.h (struct target_ops) <to_trace_find>: Add argument.
7701 (target_trace_find): Add argument.
7702 * target.c (update_current_target): Update.
7703 * remote.c (remote_trace_find): Add 'self' argument.
7704 * ctf.c (ctf_trace_find): Add 'self' argument.
7706 2014-02-19 Tom Tromey <tromey@redhat.com>
7708 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7709 (target_trace_stop): Add argument.
7710 * target.c (update_current_target): Update.
7711 * remote.c (remote_trace_stop): Add 'self' argument.
7713 2014-02-19 Tom Tromey <tromey@redhat.com>
7715 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7716 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7718 (target_get_tracepoint_status): Add argument.
7719 * target.c (update_current_target): Update.
7720 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7722 2014-02-19 Tom Tromey <tromey@redhat.com>
7724 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7725 * target.h (struct target_ops) <to_get_trace_status>: Add
7727 (target_get_trace_status): Add argument.
7728 * target.c (update_current_target): Update.
7729 * remote.c (remote_get_trace_status): Add 'self' argument.
7730 (remote_start_remote, remote_can_download_tracepoint): Update.
7731 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7733 2014-02-19 Tom Tromey <tromey@redhat.com>
7735 * target.h (struct target_ops) <to_trace_start>: Add argument.
7736 (target_trace_start): Add argument.
7737 * target.c (update_current_target): Update.
7738 * remote.c (remote_trace_start): Add 'self' argument.
7740 2014-02-19 Tom Tromey <tromey@redhat.com>
7742 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7744 (target_trace_set_readonly_regions): Add argument.
7745 * target.c (update_current_target): Update.
7746 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7749 2014-02-19 Tom Tromey <tromey@redhat.com>
7751 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7753 (target_disable_tracepoint): Add argument.
7754 * target.c (update_current_target): Update.
7755 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7757 2014-02-19 Tom Tromey <tromey@redhat.com>
7759 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7761 (target_enable_tracepoint): Add argument.
7762 * target.c (update_current_target): Update.
7763 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7765 2014-02-19 Tom Tromey <tromey@redhat.com>
7767 * target.h (struct target_ops) <to_download_trace_state_variable>:
7769 (target_download_trace_state_variable): Add argument.
7770 * target.c (update_current_target): Update.
7771 * remote.c (remote_download_trace_state_variable): Add 'self'
7774 2014-02-19 Tom Tromey <tromey@redhat.com>
7776 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7778 (target_can_download_tracepoint): Add argument.
7779 * target.c (update_current_target): Update.
7780 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7782 2014-02-19 Tom Tromey <tromey@redhat.com>
7784 * target.h (struct target_ops) <to_download_tracepoint>: Add
7786 (target_download_tracepoint): Add argument.
7787 * target.c (update_current_target): Update.
7788 * remote.c (remote_download_tracepoint): Add 'self' argument.
7790 2014-02-19 Tom Tromey <tromey@redhat.com>
7792 * target.h (struct target_ops) <to_trace_init>: Add argument.
7793 (target_trace_init): Add argument.
7794 * target.c (update_current_target): Update.
7795 * remote.c (remote_trace_init): Add 'self' argument.
7797 2014-02-19 Tom Tromey <tromey@redhat.com>
7799 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7800 * target.c (target_fileio_readlink): Add argument.
7801 * remote.c (remote_hostio_readlink): Add 'self' argument.
7802 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7804 2014-02-19 Tom Tromey <tromey@redhat.com>
7806 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7807 * target.c (target_fileio_unlink): Add argument.
7808 * remote.c (remote_hostio_unlink): Add 'self' argument.
7809 (remote_file_delete): Update.
7810 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7812 2014-02-19 Tom Tromey <tromey@redhat.com>
7814 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7815 * target.c (target_fileio_close): Add argument.
7816 * remote.c (remote_hostio_close): Add 'self' argument.
7817 (remote_hostio_close_cleanup): Update.
7818 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7820 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7822 2014-02-19 Tom Tromey <tromey@redhat.com>
7824 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7825 * target.c (target_fileio_pread): Add argument.
7826 * remote.c (remote_hostio_pread): Add 'self' argument.
7827 (remote_bfd_iovec_pread, remote_file_get): Update.
7828 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7830 2014-02-19 Tom Tromey <tromey@redhat.com>
7832 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7833 * target.c (target_fileio_pwrite): Add argument.
7834 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7835 (remote_file_put): Update.
7836 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7838 2014-02-19 Tom Tromey <tromey@redhat.com>
7840 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7841 * target.c (target_fileio_open): Add argument.
7842 * remote.c (remote_hostio_open): Add 'self' argument.
7843 (remote_bfd_iovec_open): Add 'self' argument.
7844 (remote_file_put): Add 'self' argument.
7845 (remote_file_get): Add 'self' argument.
7846 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7848 2014-02-19 Tom Tromey <tromey@redhat.com>
7850 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7852 (target_can_run_breakpoint_commands): Add argument.
7853 * target.c (update_current_target): Update.
7854 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7856 (remote_insert_breakpoint): Add 'self' argument.
7857 (remote_insert_hw_breakpoint): Add 'self' argument.
7858 (remote_can_run_breakpoint_commands): Add 'self' argument.
7860 2014-02-19 Tom Tromey <tromey@redhat.com>
7862 * target.h (struct target_ops)
7863 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7864 (target_supports_evaluation_of_breakpoint_conditions): Add
7866 * target.c (update_current_target): Update.
7867 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7869 (remote_insert_breakpoint): Add 'self' argument.
7870 (remote_insert_hw_breakpoint): Add 'self' argument.
7871 (remote_supports_cond_breakpoints): Add 'self' argument.
7873 2014-02-19 Tom Tromey <tromey@redhat.com>
7875 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7877 (target_supports_string_tracing): Add argument.
7878 * target.c (update_current_target): Update.
7879 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7881 2014-02-19 Tom Tromey <tromey@redhat.com>
7883 * target.h (struct target_ops)
7884 <to_supports_disable_randomization>: Add argument.
7885 * target.c (find_default_supports_disable_randomization): Add
7887 (target_supports_disable_randomization): Add argument.
7888 (find_default_supports_disable_randomization): Add 'self'
7890 * remote.c (extended_remote_supports_disable_randomization): Add
7892 (remote_supports_disable_randomization): Add 'self' argument.
7893 (extended_remote_create_inferior): Update.
7894 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7897 2014-02-19 Tom Tromey <tromey@redhat.com>
7899 * target.h (struct target_ops)
7900 <to_supports_enable_disable_tracepoint>: Add argument.
7901 (target_supports_enable_disable_tracepoint): Add argument.
7902 * target.c (update_current_target): Update.
7903 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7906 2014-02-19 Tom Tromey <tromey@redhat.com>
7908 * target.h (struct target_ops) <to_supports_multi_process>: Add
7910 (target_supports_multi_process): Add argument.
7911 * target.c (update_current_target): Update.
7912 * remote.c (remote_supports_multi_process): Add 'self' argument.
7913 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7915 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7918 2014-02-19 Tom Tromey <tromey@redhat.com>
7920 * target.h (struct target_ops) <to_execution_direction>: Add
7922 (target_execution_direction): Add argument.
7923 * target.c (default_execution_direction): Add 'self' argument.
7924 * record-full.c (record_full_execution_direction): Add 'self'
7927 2014-02-19 Tom Tromey <tromey@redhat.com>
7929 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7931 (target_can_execute_reverse): Add argument.
7932 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7933 * record-full.c (record_full_can_execute_reverse): Add 'self'
7935 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7938 2014-02-19 Tom Tromey <tromey@redhat.com>
7940 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7941 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7943 (target_get_ada_task_ptid): Add argument.
7944 * target.c (update_current_target): Update.
7945 (default_get_ada_task_ptid): Add 'self' argument.
7946 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7947 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7948 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7950 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7952 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7954 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7956 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7957 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7960 2014-02-19 Tom Tromey <tromey@redhat.com>
7962 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7963 (target_goto_bookmark): Add argument.
7964 * target.c (dummy_goto_bookmark): Add 'self' argument.
7965 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7969 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7970 (target_get_bookmark): Add argument.
7971 * target.c (dummy_get_bookmark): Add 'self' argument.
7972 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7976 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7978 (target_make_corefile_notes): Add argument.
7979 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7980 * procfs.c (procfs_make_note_section): Add 'self' argument.
7981 (procfs_make_note_section): Add 'self' argument.
7982 (procfs_make_note_section): Add 'self' argument.
7983 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7985 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7986 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7987 * exec.c (exec_make_note_section): Add 'self' argument.
7988 (exec_make_note_section): Add 'self' argument.
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7992 * target.h (struct target_ops) <to_find_memory_regions>: Add
7994 (target_find_memory_regions): Add argument.
7995 * target.c (dummy_find_memory_regions): Add 'self' argument.
7996 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7997 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7998 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7999 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
8000 * exec. (exec_do_find_memory_regions): New global.
8001 (exec_set_find_memory_regions): Rewrite.
8002 (exec_find_memory_regions): New function.
8003 (init_exec_ops): Use exec_find_memory_regions.
8005 2014-02-19 Tom Tromey <tromey@redhat.com>
8007 * target.h (struct target_ops) <to_supports_non_stop>: Add
8009 * target.c (find_default_supports_non_stop): Add argument.
8010 (target_supports_non_stop): Add argument.
8011 (find_default_supports_non_stop): Add 'self' argument.
8012 * remote.c (remote_supports_non_stop): Add 'self' argument.
8013 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
8015 2014-02-19 Tom Tromey <tromey@redhat.com>
8017 * target.h (struct target_ops) <to_log_command>: Add argument.
8018 (target_log_command): Add argument.
8019 * serial.h (serial_log_command): Add 'self' argument.
8020 * serial.c (serial_log_command): Add 'self' argument.
8022 2014-02-19 Tom Tromey <tromey@redhat.com>
8024 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8025 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8027 (target_pid_to_exec_file): Add argument.
8028 * target.c (debug_to_pid_to_exec_file): Add argument.
8029 (update_current_target): Update.
8030 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8031 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8032 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8033 (linux_handle_extended_wait): Update.
8034 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8035 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8036 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8037 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8039 2014-02-19 Tom Tromey <tromey@redhat.com>
8041 * target.h (struct target_ops) <to_rcmd>: Add argument.
8042 (target_rcmd): Add argument.
8043 * target.c (debug_to_rcmd): Add argument.
8044 (update_current_target, do_monitor_command): Update.
8045 * remote.c (remote_rcmd): Add 'self' argument.
8046 * monitor.c (monitor_rcmd): Add 'self' argument.
8048 2014-02-19 Tom Tromey <tromey@redhat.com>
8050 * windows-nat.c (windows_stop): Add 'self' argument.
8051 * target.h (struct target_ops) <to_stop>: Add argument.
8052 * target.c (target_stop): Add argument.
8053 (debug_to_stop): Add argument.
8054 (update_current_target): Update.
8055 * remote.c (remote_stop): Add 'self' argument.
8056 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8057 (gdbsim_cntrl_c): Update.
8058 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8059 * procfs.c (procfs_stop): Add 'self' argument.
8060 * nto-procfs.c (procfs_stop): Add 'self' argument.
8061 * monitor.c (monitor_stop): Add 'self' argument.
8062 (monitor_open): Update.
8063 * linux-nat.c (linux_nat_stop): Add argument.
8064 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8065 * gnu-nat.c (gnu_stop): Add 'self' argument.
8066 * darwin-nat.c (darwin_stop): Add 'self' argument.
8068 2014-02-19 Tom Tromey <tromey@redhat.com>
8070 * target.h (struct target_ops) <to_thread_name>: Add argument.
8071 * target.c (target_thread_name): Add argument.
8072 (update_current_target): Update.
8073 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8075 2014-02-19 Tom Tromey <tromey@redhat.com>
8077 * target.h (struct target_ops) <to_extra_thread_info>: Add
8079 (target_extra_thread_info): Add argument.
8080 * target.c (update_current_target): Update.
8081 * remote.c (remote_threads_extra_info): Add 'self' argument.
8082 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8084 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8085 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8086 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8088 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8090 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8092 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8097 * target.h (struct target_ops) <to_program_signals>: Add argument.
8098 * target.c (target_program_signals): Add argument.
8099 * remote.c (remote_program_signals): Add 'self' argument.
8101 2014-02-19 Tom Tromey <tromey@redhat.com>
8103 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8104 * target.c (target_pass_signals): Add argument.
8105 * remote.c (remote_pass_signals): Add 'self' argument.
8106 (remote_start_remote): Update.
8107 * procfs.c (procfs_pass_signals): Add 'self' argument.
8108 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8109 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8110 (linux_nat_create_inferior, linux_nat_attach): Update.
8112 2014-02-19 Tom Tromey <tromey@redhat.com>
8114 * windows-nat.c (windows_can_run): Add 'self' argument.
8115 * target.h (struct target_ops) <to_can_run>: Add argument.
8116 (target_can_run): Add argument.
8117 * target.c (debug_to_can_run): Add argument.
8118 (update_current_target): Update.
8119 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8120 * inf-child.c (inf_child_can_run): Add 'self' argument.
8121 * go32-nat.c (go32_can_run): Add 'self' argument.
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8125 * target.h (struct target_ops) <to_has_exited>: Add argument.
8126 (target_has_exited): Add argument.
8127 * target.c (debug_to_has_exited): Add argument.
8128 (update_current_target): Update.
8130 2014-02-19 Tom Tromey <tromey@redhat.com>
8132 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8134 (target_set_syscall_catchpoint): Add argument.
8135 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8137 * target.c (update_current_target): Update.
8139 2014-02-19 Tom Tromey <tromey@redhat.com>
8141 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8143 (target_remove_exec_catchpoint): Add argument.
8144 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8145 (update_current_target): Update.
8146 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8153 (target_insert_exec_catchpoint): Add argument.
8154 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8155 (update_current_target): Update.
8156 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8159 2014-02-19 Tom Tromey <tromey@redhat.com>
8161 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8163 (target_remove_vfork_catchpoint): Add argument.
8164 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8165 (update_current_target): Update.
8166 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8169 2014-02-19 Tom Tromey <tromey@redhat.com>
8171 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8173 (target_insert_vfork_catchpoint): Add argument.
8174 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8175 (update_current_target): Update.
8176 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8179 2014-02-19 Tom Tromey <tromey@redhat.com>
8181 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8183 (target_remove_fork_catchpoint): Add argument.
8184 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8185 (update_current_target): Update.
8186 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8189 2014-02-19 Tom Tromey <tromey@redhat.com>
8191 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8193 (target_insert_fork_catchpoint): Add argument.
8194 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8195 (update_current_target): Update.
8196 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8203 (target_post_startup_inferior): Add argument.
8204 * target.c (debug_to_post_startup_inferior): Add argument.
8205 (update_current_target): Update.
8206 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8208 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8210 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8212 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8214 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8216 (super_post_startup_inferior): Likewise.
8217 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8219 (super_post_startup_inferior): Likewise.
8220 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8221 Add 'self' argument.
8222 (super_post_startup_inferior): Likewise.
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8226 * target.h (struct target_ops) <to_load>: Add argument.
8227 * target.c (target_load): Add argument.
8228 (debug_to_load): Add argument.
8229 (update_current_target): Update.
8230 * remote.c (remote_load): Add 'self' argument.
8231 * remote-sim.c (gdbsim_load): Add 'self' argument.
8232 * remote-mips.c (mips_load): Add 'self' argument.
8233 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8234 * monitor.c (monitor_load): Add 'self' argument.
8235 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8237 2014-02-19 Tom Tromey <tromey@redhat.com>
8239 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8240 (target_terminal_info): Add argument.
8241 * target.c (debug_to_terminal_info): Add argument.
8242 (default_terminal_info): Likewise.
8243 * inflow.c (child_terminal_info): Add 'self' argument.
8244 * inferior.h (child_terminal_info): Add 'self' argument.
8245 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8249 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8251 (target_terminal_save_ours): Add argument.
8252 * target.c (debug_to_terminal_save_ours): Add argument.
8253 (update_current_target): Update.
8254 * inflow.c (terminal_save_ours): Add 'self' argument.
8255 * inferior.h (terminal_save_ours): Add 'self' argument.
8257 2014-02-19 Tom Tromey <tromey@redhat.com>
8259 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8260 (target_terminal_ours): Add argument.
8261 * target.c (debug_to_terminal_ours): Add argument.
8262 (update_current_target): Update.
8263 * remote.c (remote_terminal_ours): Add 'self' argument.
8264 (remote_close): Update.
8265 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8266 * inflow.c (terminal_ours): Add 'self' argument.
8267 * inferior.h (terminal_ours): Add 'self' argument.
8268 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8270 2014-02-19 Pedro Alves <palves@redhat.com>
8271 Tom Tromey <tromey@redhat.com>
8273 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8275 (target_terminal_ours_for_output): Add argument.
8276 * target.c (debug_to_terminal_ours_for_output): Add argument.
8277 (update_current_target): Update.
8278 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8279 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8280 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target.h (struct target_ops) <to_terminal_inferior>: Add
8286 * target.c (target_terminal_inferior): Add argument.
8287 (update_current_target): Update.
8288 * remote.c (remote_terminal_inferior): Add 'self' argument.
8289 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8290 * inflow.c (terminal_inferior): Add 'self' argument.
8291 * inferior.h (terminal_inferior): Add 'self' argument.
8292 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8293 (go32_terminal_inferior): Add 'self' argument.
8295 2014-02-19 Tom Tromey <tromey@redhat.com>
8297 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8298 (target_terminal_init): Add argument.
8299 * target.c (debug_to_terminal_init): Add argument.
8300 (update_current_target): Update.
8301 * inflow.c (terminal_init_inferior): Add 'self' argument.
8302 * inferior.h (terminal_init_inferior): Add 'self' argument.
8303 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8304 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8308 * target.h (struct target_ops)
8309 <to_can_accel_watchpoint_condition>: Add argument.
8310 (target_can_accel_watchpoint_condition): Add argument.
8311 * target.c (debug_to_can_accel_watchpoint_condition): Add
8313 (update_current_target): Update.
8314 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8321 (target_region_ok_for_hw_watchpoint): Add argument.
8322 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8323 (default_region_ok_for_hw_watchpoint): Add argument.
8324 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8325 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8327 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8329 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8331 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8333 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8335 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8337 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8338 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8340 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8341 Add 'self' argument.
8343 2014-02-19 Tom Tromey <tromey@redhat.com>
8345 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8347 (target_insert_watchpoint): Add argument.
8348 * target.c (debug_to_insert_watchpoint): Add argument.
8349 (update_current_target): Update.
8350 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8351 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8352 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8353 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8354 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8355 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8357 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8358 (procfs_insert_hw_watchpoint): Add 'self' argument.
8359 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8361 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8363 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8365 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8366 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8368 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8373 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8375 (target_remove_watchpoint): Add argument.
8376 * target.c (debug_to_remove_watchpoint): Add argument.
8377 (update_current_target): Update.
8378 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8379 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8380 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8381 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8382 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8383 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8385 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8386 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8388 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8390 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8392 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8393 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8395 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8398 2014-02-19 Tom Tromey <tromey@redhat.com>
8400 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8402 (target_remove_hw_breakpoint): Add argument.
8403 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8404 (update_current_target): Update.
8405 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8406 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8408 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8409 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8411 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8414 2014-02-19 Tom Tromey <tromey@redhat.com>
8416 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8418 (target_insert_hw_breakpoint): Add argument.
8419 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8420 (update_current_target): Update.
8421 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8422 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8424 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8425 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8426 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8428 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8433 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8435 (target_can_use_hardware_watchpoint): Add argument.
8436 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8437 (update_current_target): Update.
8438 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8440 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8442 * remote.c (remote_check_watch_resources): Add 'self' argument.
8443 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8444 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8446 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8447 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8449 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8451 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8453 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8455 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8457 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8459 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8460 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8462 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8467 * target.h (struct target_ops) <to_post_attach>: Add argument.
8468 (target_post_attach): Add argument.
8469 * target.c (debug_to_post_attach): Add argument.
8470 (update_current_target): Update.
8471 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8472 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8473 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8474 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8475 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8479 * windows-nat.c (windows_close): Add 'self' argument.
8480 * tracepoint.c (tfile_close): Add 'self' argument.
8481 * target.h (struct target_ops) <to_close>: Add argument.
8482 * target.c (target_close): Add argument.
8483 (update_current_target): Update.
8484 * remote.c (remote_close): Add 'self' argument.
8485 * remote-sim.c (gdbsim_close): Add 'self' argument.
8486 * remote-mips.c (mips_close): Add 'self' argument.
8487 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8488 * record-full.c (record_full_close): Add 'self' argument.
8489 * record-btrace.c (record_btrace_close): Add 'self' argument.
8490 * monitor.h (monitor_close): Add 'self' argument.
8491 * monitor.c (monitor_close): Add 'self' argument.
8492 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8493 * linux-nat.c (linux_nat_close): Add argument.
8494 * go32-nat.c (go32_close): Add 'self' argument.
8495 * exec.c (exec_close_1): Add 'self' argument.
8496 * ctf.c (ctf_close): Add 'self' argument.
8497 * corelow.c (core_close): Add 'self' argument.
8498 (core_close_cleanup): Update.
8499 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8500 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8502 2014-02-19 Tom Tromey <tromey@redhat.com>
8504 * remote.c (remote_load): New function.
8505 (init_remote_ops): Use it.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8511 * common/linux-btrace.h (linux_supports_btrace): Update.
8512 * remote.c (remote_supports_btrace): Add "self" argument.
8513 * target-delegates.c: Rebuild.
8514 * target.c (target_supports_btrace): Remove.
8515 * target.h (struct target_ops) <to_supports_btrace>: Add
8516 target_ops argument.
8517 (target_supports_btrace): New define.
8519 2014-02-19 Tom Tromey <tromey@redhat.com>
8521 * record-full.c (record_full_beneath_to_resume_ops)
8522 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8523 (record_full_beneath_to_wait)
8524 (record_full_beneath_to_store_registers_ops)
8525 (record_full_beneath_to_store_registers)
8526 (record_full_beneath_to_xfer_partial_ops)
8527 (record_full_beneath_to_xfer_partial)
8528 (record_full_beneath_to_insert_breakpoint_ops)
8529 (record_full_beneath_to_insert_breakpoint)
8530 (record_full_beneath_to_remove_breakpoint_ops)
8531 (record_full_beneath_to_remove_breakpoint)
8532 (record_full_beneath_to_stopped_by_watchpoint)
8533 (record_full_beneath_to_stopped_data_address)
8534 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8535 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8536 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8537 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8538 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8539 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8540 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8541 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8542 (record_full_resume, record_full_wait_1)
8543 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8544 (record_full_store_registers, record_full_xfer_partial)
8545 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8546 (record_full_async, record_full_core_xfer_partial): Use target
8548 * target-delegates.c: Rebuild.
8549 * target.c (current_xfer_partial): Remove.
8550 (update_current_target): Do not INHERIT or de_fault
8551 to_insert_breakpoint, to_remove_breakpoint,
8552 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8553 to_is_async_p, to_async. Do not set to_xfer_partial field.
8554 (default_xfer_partial): Simplify.
8555 (current_xfer_partial): Remove.
8556 (target_wait, target_resume): Simplify.
8557 (find_default_can_async_p, find_default_is_async_p): Update.
8558 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8559 to_xfer_partial, to_stopped_by_watchpoint,
8560 to_stopped_data_address.
8561 (target_store_registers): Simplify.
8562 (forward_target_remove_breakpoint)
8563 (forward_target_insert_breakpoint): Remove.
8564 (target_remove_breakpoint, target_insert_breakpoint)
8565 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8566 * target.h (struct target_ops) <to_resume, to_wait,
8567 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8568 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8569 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8571 (forward_target_remove_breakpoint)
8572 (forward_target_insert_breakpoint): Remove.
8573 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8575 (record_btrace_insert_breakpoint): Delegate directly.
8577 2014-02-19 Tom Tromey <tromey@redhat.com>
8580 * target-delegates.c: New file.
8581 * target.c: Include target-delegates.c.
8582 (init_dummy_target): Call install_dummy_methods.
8583 (complete_target_initialization): Call install_delegators.
8584 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8585 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8586 * make-target-delegates: New file.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * record.c (find_record_target): Use find_target_at.
8591 * target.c (find_target_at): New function.
8592 * target.h (find_target_at): Declare.
8594 2014-02-19 Tom Tromey <tromey@redhat.com>
8596 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8598 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8600 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8601 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8603 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8605 * linux-nat.c (save_sigtrap): Update.
8606 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8607 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8608 (linux_nat_close): Update.
8609 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8611 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8613 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8614 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8615 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8616 (tmp_to_async): Add 'ops' argument.
8617 (record_full_stopped_by_watchpoint, record_full_async)
8618 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8620 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8621 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8622 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8623 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8624 (remote_is_async_p, remote_async): Add 'ops' argument.
8625 (remote_stopped_data_address): Update.
8626 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8627 * target.c (update_current_target)
8628 (find_default_can_async_p, find_default_is_async_p): Update.
8629 (init_dummy_target): Update.
8630 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8631 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8632 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8633 (target_can_async_p, target_is_async_p, target_async)
8634 (target_stopped_by_watchpoint): Update.
8636 2014-02-19 Yao Qi <yao@codesourcery.com>
8639 * gdbarch.sh: Remove startup_gdbarch.
8640 * gdbarch.c: Regenerated.
8641 * gdbarch.h: Likewise.
8643 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8645 * rl78-tdep.c (rl78_g10_register_name): New function.
8646 (rl78_return_value): Add g10 support.
8647 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8650 2014-02-17 Doug Evans <xdje42@gmail.com>
8652 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8653 (SUBDIR_GUILE_SRCS): Ditto.
8654 (scm-gsmob.o): Ditto.
8656 2014-02-17 Yao Qi <yao@codesourcery.com>
8658 * gnu-nat.c (ILL_RPC): Declare defined function.
8660 2014-02-17 Yao Qi <yao@codesourcery.com>
8662 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8663 mach_msg_type_number_t.
8664 (gnu_write_inferior): Likewise.
8666 2014-02-17 Yao Qi <yao@codesourcery.com>
8668 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8670 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8671 (inf_validate_procs, inf_signal): Likewise.
8672 (S_exception_raise_request): Likewise.
8673 (do_mach_notify_dead_name): Likewise.
8674 (steal_exc_port): Likewise.
8675 (gnu_read_inferior): Change 'copy_count''s type to
8676 mach_msg_type_number_t.
8677 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8680 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8682 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8683 flag. Adjust all users; in particular...
8684 (gnu_wait): ..., don't decrement its value in here...
8685 (gnu_create_inferior): ..., and instead set the flag in here,
8686 around the startup_inferior call, and call that one with
8687 START_INFERIOR_TRAPS_EXPECTED.
8689 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8690 (ILL_RPC): ... new macro.
8691 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8692 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8693 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8694 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8695 functions with ILL_RPC macro.
8696 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8697 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8698 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8699 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8700 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8701 (S_proc_getlogin_reply, S_proc_getsid_reply)
8702 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8703 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8704 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8705 (S_proc_getnports_reply, S_proc_is_important_reply)
8706 (S_proc_get_code_reply): New stub functions, generated with
8709 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8710 collected the type check structures.
8712 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8714 2014-02-14 Doug Evans <dje@google.com>
8716 * target.c (target_write_partial): Fix result type.
8718 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8720 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8721 the proper offsets to access fpregset_t.
8723 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8725 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8726 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8727 * h8300-tdep.c (setmachinelist): Remove global.
8728 * hppa-tdep.c (hppa_sigtramp): Remove global.
8729 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8730 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8731 * ravenscar-thread.c (update_target_observer): Remove global.
8732 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8734 2014-02-12 Tom Tromey <tromey@redhat.com>
8736 * common/rsp-low.c: Update comments.
8737 * common/rsp-low.h: Update comments.
8739 2014-02-12 Tom Tromey <tromey@redhat.com>
8741 * common/rsp-low.c (convert_ascii_to_int): Remove.
8742 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8744 2014-02-12 Tom Tromey <tromey@redhat.com>
8746 * common/rsp-low.h (unhexify): Don't declare.
8747 * common/rsp-low.c (unhexify): Remove.
8749 2014-02-12 Tom Tromey <tromey@redhat.com>
8751 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8752 * common/rsp-low.c (convert_int_to_ascii): Remove.
8754 2014-02-12 Tom Tromey <tromey@redhat.com>
8756 * common/rsp-low.h (hexify): Don't declare.
8757 * common/rsp-low.c (hexify): Remove.
8759 2014-02-12 Tom Tromey <tromey@redhat.com>
8761 * common/rsp-low.c (hexify): Never take strlen of argument.
8763 2014-02-12 Tom Tromey <tromey@redhat.com>
8765 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8766 * remote.c (extended_remote_run, remote_rcmd)
8767 (remote_download_trace_state_variable, remote_save_trace_data)
8768 (remote_set_trace_notes): Update.
8769 * tracepoint.c (encode_source_string, tfile_write_status)
8770 (tfile_write_uploaded_tsv): Update.
8772 2014-02-12 Tom Tromey <tromey@redhat.com>
8774 * tracepoint.c: Include rsp-low.h.
8775 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8776 * remote.c: Include rsp-low.h.
8777 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8778 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8779 (remote_unescape_input): Move to common/rsp-low.c.
8780 * common/rsp-low.h: New file.
8781 * common/rsp-low.c: New file.
8782 * Makefile.in (SFILES): Add common/rsp-low.c.
8783 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8784 (COMMON_OBS): Add rsp-low.o.
8785 (rsp-low.o): New target.
8787 2014-02-12 Tom Tromey <tromey@redhat.com>
8789 * utils.h: Include print-utils.h.
8790 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8791 (int_string, core_addr_to_string, core_addr_to_string_nz)
8792 (hex_string, hex_string_custom): Don't declare.
8793 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8794 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8795 (hex_string_custom, int_string, core_addr_to_string)
8796 (core_addr_to_string_nz, host_address_to_string): Move to
8797 common/print-utils.c.
8798 * common/print-utils.h: New file.
8799 * common/print-utils.c: New file
8800 * Makefile.in (SFILES): Add common/print-utils.c.
8801 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8802 (COMMON_OBS): Add print-utils.o.
8803 (print-utils.o): New target.
8805 2014-02-12 Tom Tromey <tromey@redhat.com>
8807 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8809 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8811 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8813 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8815 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8816 if a PT_IO ptrace request returns sucessfully but indicates that 0
8817 bytes were transferred.
8819 2014-02-12 Pedro Alves <palves@redhat.com>
8820 Kevin Buettner <kevinb@redhat.com>
8822 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8823 TYPE_INSTANCE_FLAG_CODE_SPACE.
8825 2014-02-12 Pedro Alves <palves@redhat.com>
8827 * h8300-tdep.c (pseudo_from_raw_register)
8828 (raw_from_pseudo_register): New functions.
8829 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8832 2014-02-12 Pedro Alves <palves@redhat.com>
8834 * h8300-tdep.c (h8300_register_sim_regno): New function.
8835 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8836 gdbarch_register_sim_regno hook.
8838 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8840 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8842 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8844 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8846 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8848 * obsd-tdep.h (obsd_init_abi): New prototype.
8849 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8850 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8851 (obsd_init_abi): New functions.
8852 * i386obsd-tdep.c: Include "obsd-tdep.h".
8853 (i386obsd_init_abi): Call obsd_init_abi.
8854 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8855 (amd64obsd_init_abi): Call obsd_init_abi.
8856 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8857 obsd-tdep.c to gdb_target_obs.
8859 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8861 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8862 double float arguments to 16-byte in the argument slots.
8864 2014-02-11 Doug Evans <xdje42@gmail.com>
8866 * configure.ac: Don't crash if pkg-config is not found and guile
8867 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8869 * configure: Regenerate.
8871 2014-02-11 Yao Qi <yao@codesourcery.com>
8873 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8874 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8875 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8876 * gnu-nat.c (gnu_xfer_memory): Likewise.
8877 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8878 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8879 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8880 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8882 2014-02-11 Yao Qi <yao@codesourcery.com>
8884 * target.h (enum target_xfer_error): Rename to ...
8885 (enum target_xfer_status): ... it. New. All users updated.
8886 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8888 (TARGET_XFER_STATUS_ERROR_P): New macro.
8889 (target_xfer_error_to_string): Remove declaration.
8890 (target_xfer_status_to_string): Declare.
8891 (target_xfer_partial_ftype): Adjust it.
8892 (struct target_ops) <to_xfer_partial>: Return
8893 target_xfer_status. Add argument xfered_len. Update
8895 * target.c (target_xfer_error_to_string): Rename to ...
8896 (target_xfer_status_to_string): ... it. New. All callers
8898 (target_read_live_memory): Likewise. Call target_xfer_partial
8899 instead of target_read.
8900 (memory_xfer_live_readonly_partial): Return
8901 target_xfer_status. Add argument xfered_len.
8902 (raw_memory_xfer_partial): Likewise.
8903 (memory_xfer_partial_1): Likewise.
8904 (memory_xfer_partial): Likewise.
8905 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8906 properly. Update debug message.
8907 (default_xfer_partial, current_xfer_partial): Likewise.
8908 (target_write_partial): Likewise.
8909 (target_read_partial): Likewise. All callers updated.
8910 (read_whatever_is_readable): Likewise.
8911 (target_write_with_progress): Likewise.
8912 (target_read_alloc_1): Likewise.
8914 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8915 * auxv.c (procfs_xfer_auxv): Likewise.
8916 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8917 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8918 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8919 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8920 * corefile.c (read_memory): Adjust.
8921 * corelow.c (core_xfer_partial): Likewise.
8922 * ctf.c (ctf_xfer_partial): Likewise.
8923 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8925 (darwin_xfer_partial): Likewise.
8926 * exec.c (section_table_xfer_memory_partial): Likewise. All
8928 (exec_xfer_partial): Likewise.
8929 * exec.h (section_table_xfer_memory_partial): Update
8931 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8933 (gnu_xfer_partial): Likewise.
8934 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8935 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8936 (ia64_hpux_xfer_solib_got): Likewise.
8937 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8938 type of 'partial_len' to ULONGEST.
8939 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8940 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8941 (linux_nat_xfer_partial): Likewise.
8942 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8943 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8944 * monitor.c (monitor_xfer_memory): Likewise.
8945 (monitor_xfer_partial): Likewise.
8946 * procfs.c (procfs_xfer_partial): Likewise.
8947 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8948 * record-full.c (record_full_xfer_partial): Likewise.
8949 (record_full_core_xfer_partial): Likewise.
8950 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8951 (gdbsim_xfer_partial): Likewise.
8952 * remote.c (remote_write_bytes_aux): Likewise. All callers
8954 (remote_write_bytes, remote_read_bytes): Likewise. All
8956 (remote_flash_erase): Likewise. All callers updated.
8957 (remote_write_qxfer): Likewise. All callers updated.
8958 (remote_read_qxfer): Likewise. All callers updated.
8959 (remote_xfer_partial): Likewise.
8960 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8961 (rs6000_xfer_shared_libraries): Likewise.
8962 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8963 (sol_thread_xfer_partial): Likewise.
8964 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8965 (sparc_xfer_partial): Likewise.
8966 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8968 (spu_xfer_partial): Likewise.
8969 * spu-multiarch.c (spu_xfer_partial): Likewise.
8970 * tracepoint.c (tfile_xfer_partial): Likewise.
8971 * windows-nat.c (windows_xfer_memory): Likewise.
8972 (windows_xfer_shared_libraries): Likewise.
8973 (windows_xfer_partial): Likewise.
8974 * valprint.c: Replace 'target_xfer_error' with
8975 'target_xfer_status' in comments.
8977 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8979 Checked in by Joel Brobecker <brobecker@adacore.com>.
8980 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8982 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8984 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8985 function parameters.
8987 2014-02-10 Will Newton <will.newton@linaro.org>
8989 * elfread.c (elf_rel_plt_read): Look for a .got section if
8990 looking up .got.plt fails.
8991 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8992 on address passed to elf_gnu_ifunc_record_cache.
8993 (elf_gnu_ifunc_resolve_addr): Likewise.
8994 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8996 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8998 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8999 (X_RETTURN): New macro.
9000 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
9002 * sparc64-tdep.c (sparc64_init_abi): Hook
9003 sparc_in_function_epilogue_p.
9005 2014-02-10 Gary Benson <gbenson@redhat.com>
9007 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9008 Rename name_matcher to symbol_matcher.
9010 2014-02-10 Gary Benson <gbenson@redhat.com>
9012 * symfile-debug.c (debug_qf_expand_symtabs_matching):
9013 Use expand_symtabs_file_matcher_ftype and
9014 expand_symtabs_symbol_matcher_ftype.
9016 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9018 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
9019 (struct ada_symbol_cache): New.
9020 (ada_free_symbol_cache): Forward declare.
9021 (struct ada_pspace_data): New.
9022 (ada_pspace_data_handle): New static global.
9023 (get_ada_pspace_data, ada_pspace_data_cleanup)
9024 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9025 (cache_space, cache): Delete, now folded inside struct
9027 (ada_get_symbol_cache): New function.
9028 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9030 (_initialize_ada_language): Remove initialization of cache_space.
9031 Move call to observer_attach_inferior_exit up, grouping it
9032 with the other observer registrations inside this function.
9033 Rename command to be more general. Add call to
9034 register_program_space_data_with_cleanup.
9036 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9038 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9039 ada_new_objfile_observer.
9040 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9041 (_initialize_tasks): Update uses of ada_new_objfile_observer
9042 and ada_tasks_normal_stop_observer.
9044 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9046 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9047 returned by the 'Length attribute to integer.
9049 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9051 * ada-lang.c (_initialize_ada_language): Initialize
9052 cache_space obstack.
9054 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9056 * ada-lang.c (HASH_SIZE): New macro.
9057 (struct cache_entry): New type.
9058 (cache_space, cache): New static globals.
9059 (ada_clear_symbol_cache, find_entry): New functions.
9060 (lookup_cached_symbol, cache_symbol): Implement.
9061 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9062 (_initialize_ada_language): Attach ada_new_objfile_observer
9063 and ada_free_objfile_observer.
9065 2014-02-10 Joel Brobecker <brobecker@adacore.com>
9067 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9068 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9069 struct block * parameter.
9070 (ada_lookup_symbol_list_worker): Constify local variable "block".
9071 Remove cast which is no longer necessary.
9073 2014-02-10 Doug Evans <xdje42@gmail.com>
9075 Add Guile as an extension language.
9076 * NEWS: Mention Guile scripting.
9077 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9078 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9079 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9080 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9081 (CLIBS): Add GUILE_LIBS.
9082 (install-guile): New rule.
9083 (guile.o): New rule.
9084 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9085 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9086 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9087 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9088 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9089 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9090 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9091 * configure.ac: New option --with-guile.
9092 * configure: Regenerate.
9093 * config.in: Regenerate.
9094 * auto-load.c: Remove #include "python/python.h". Add #include
9095 "gdb/section-scripts.h".
9096 (source_section_scripts): Handle Guile scripts.
9097 (_initialize_auto_load): Add name of Guile objfile script to
9098 scripts-directory help text.
9099 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9100 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9101 (struct breakpoint): New member scm_bp_object.
9102 * defs.h (enum command_control_type): New value guile_control.
9103 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9105 (show_user): Update comment.
9106 (_initialize_cli_cmds): Update help text for "show user". Update help
9107 text for max-user-call-depth.
9108 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9110 (multi_line_command_p): Add guile_control.
9111 (print_command_lines): Handle guile_control.
9112 (execute_control_command, recurse_read_control_structure): Ditto.
9113 (process_next_line): Recognize "guile" commands.
9114 * disasm.c (gdb_disassemble_info): Make non-static.
9115 * disasm.h: #include "dis-asm.h".
9116 (struct gdbarch): Add forward decl.
9117 (gdb_disassemble_info): Declare.
9118 * extension.c: #include "guile/guile.h".
9119 (extension_languages): Add guile.
9120 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9121 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9122 * gdbtypes.c (get_unsigned_type_max): New function.
9123 (get_signed_type_minmax): New function.
9124 * gdbtypes.h (get_unsigned_type_max): Declare.
9125 (get_signed_type_minmax): Declare.
9126 * guile/README: New file.
9127 * guile/guile-internal.h: New file.
9128 * guile/guile.c: New file.
9129 * guile/guile.h: New file.
9130 * guile/scm-arch.c: New file.
9131 * guile/scm-auto-load.c: New file.
9132 * guile/scm-block.c: New file.
9133 * guile/scm-breakpoint.c: New file.
9134 * guile/scm-disasm.c: New file.
9135 * guile/scm-exception.c: New file.
9136 * guile/scm-frame.c: New file.
9137 * guile/scm-gsmob.c: New file.
9138 * guile/scm-iterator.c: New file.
9139 * guile/scm-lazy-string.c: New file.
9140 * guile/scm-math.c: New file.
9141 * guile/scm-objfile.c: New file.
9142 * guile/scm-ports.c: New file.
9143 * guile/scm-pretty-print.c: New file.
9144 * guile/scm-safe-call.c: New file.
9145 * guile/scm-string.c: New file.
9146 * guile/scm-symbol.c: New file.
9147 * guile/scm-symtab.c: New file.
9148 * guile/scm-type.c: New file.
9149 * guile/scm-utils.c: New file.
9150 * guile/scm-value.c: New file.
9151 * guile/lib/gdb.scm: New file.
9152 * guile/lib/gdb/boot.scm: New file.
9153 * guile/lib/gdb/experimental.scm: New file.
9154 * guile/lib/gdb/init.scm: New file.
9155 * guile/lib/gdb/iterator.scm: New file.
9156 * guile/lib/gdb/printing.scm: New file.
9157 * guile/lib/gdb/types.scm: New file.
9158 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9159 (VPATH): Add $(GUILE_SRCDIR).
9160 (GUILE_DIR): New variable.
9161 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9162 (all): Add stamp-guile dependency.
9163 (stamp-guile): New rule.
9164 (clean-guile, install-guile, uninstall-guile): New rules.
9165 (install-only): Add install-guile dependency.
9166 (uninstall): Add uninstall-guile dependency.
9167 (clean): Add clean-guile dependency.
9169 2014-02-09 Doug Evans <xdje42@gmail.com>
9171 Revert this patch (which I approved, mea culpa).
9173 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9175 * Makefile.in (all-lib): Remove.
9176 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9178 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9180 Fix Python stack corruption.
9181 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9184 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9186 * Makefile.in (all-lib): Remove.
9187 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9189 2014-02-07 Doug Evans <dje@google.com>
9191 * extension-priv.h (extension_language_script_ops): Add comment.
9192 (extension_language_ops): Add comment.
9193 (active_ext_lang_state): Fix typo in comment.
9195 2014-02-07 Pedro Alves <palves@redhat.com>
9197 PR breakpoints/16292
9198 * infrun.c (handle_signal_stop) <signal arrives while stepping
9199 over a breakpoint>: Switch back to the stepping thread.
9201 2014-02-07 Yao Qi <yao@codesourcery.com>
9203 * target.c (target_xfer_partial): Return zero if LEN is zero.
9205 2014-02-07 Yao Qi <yao@codesourcery.com>
9207 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9208 (ld_so_xfer_auxv): Likewise.
9209 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9210 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9211 * corelow.c (core_xfer_partial): Likewise.
9212 * ctf.c (ctf_xfer_partial): Likewise.
9213 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9214 (darwin_xfer_partial): Likewise.
9215 * exec.c (exec_xfer_partial): Likewise.
9216 * gnu-nat.c (gnu_xfer_partial): Likewise.
9217 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9218 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9219 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9220 * linux-nat.c (linux_xfer_siginfo): Likewise.
9221 (linux_proc_xfer_spu): Likewise.
9222 * procfs.c (procfs_xfer_partial): Likewise.
9223 * record-full.c (record_full_xfer_partial): Likewise.
9224 (record_full_core_xfer_partial): Likewise.
9225 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9226 * remote.c (remote_write_qxfer): Likewise.
9227 (remote_write_qxfer, remote_read_qxfer): Likewise.
9228 (remote_xfer_partial): Likewise.
9229 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9230 (rs6000_xfer_shared_libraries): Likewise.
9231 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9232 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9233 (spu_xfer_partial): Likewise.
9234 * target.c (memory_xfer_partial_1): Likewise.
9235 * tracepoint.c (tfile_xfer_partial): Likewise.
9236 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9237 (windows_xfer_partial): Likewise.
9239 2014-02-07 Yao Qi <yao@codesourcery.com>
9241 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9243 (core_xfer_shared_libraries_aix): Likewise.
9244 * gdbarch.c, gdbarch.h: Regenerated.
9245 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9246 ULONGEST. Change 'len_avail' type to ULONGEST.
9247 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9248 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9250 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9252 2014-02-07 Yao Qi <yao@codesourcery.com>
9254 * corefile.c (memory_error): Get 'exception' from ERR and pass
9255 'exception' to throw_error.
9257 2014-02-06 Doug Evans <xdje42@gmail.com>
9259 * configure.ac (libpython checking): Remove all but python.o from
9260 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9261 * configure: Regenerate.
9263 * Makefile.in (SFILES): Add extension.c.
9264 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9265 (COMMON_OBS): Add extension.o.
9266 * extension.h: New file.
9267 * extension-priv.h: New file.
9268 * extension.c: New file.
9270 * python/python-internal.h: #include "extension.h".
9271 (gdbpy_auto_load_enabled): Declare.
9272 (gdbpy_apply_val_pretty_printer): Declare.
9273 (gdbpy_apply_frame_filter): Declare.
9274 (gdbpy_preserve_values): Declare.
9275 (gdbpy_breakpoint_cond_says_stop): Declare.
9276 (gdbpy_breakpoint_has_cond): Declare.
9277 (void source_python_script_for_objfile): Delete.
9278 * python/python.c: #include "extension-priv.h".
9279 Delete inclusion of "observer.h".
9280 (extension_language_python): Moved here and renamed from
9281 script_language_python in py-auto-load.c.
9282 Redefined to be of type extension_language_defn.
9283 (python_extension_script_ops): New global.
9284 (python_extension_ops): New global.
9285 (struct python_env): New member previous_active.
9286 (restore_python_env): Call restore_active_ext_lang.
9287 (ensure_python_env): Call set_active_ext_lang.
9288 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9290 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9292 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9294 (gdbpy_eval_from_control_command): Renamed from
9295 eval_python_from_control_command, made static. New arg extlang.
9296 (gdbpy_source_script) Renamed from source_python_script, made static.
9298 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9299 result to int. New arg extlang.
9300 (gdbpy_source_objfile_script): Renamed from
9301 source_python_script_for_objfile, made static. New arg extlang.
9302 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9303 static. New args extlang, extlang_printers. Change result type to
9305 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9306 static. New arg extlang. Rename arg printers to extlang_printers
9307 and change type to ext_lang_type_printers *.
9308 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9309 static. Replace argument arg with extlang, extlang_printers.
9310 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9311 (!HAVE_PYTHON, source_python_script): Delete.
9312 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9313 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9314 (!HAVE_PYTHON, start_type_printers): Delete.
9315 (!HAVE_PYTHON, apply_type_printers): Delete.
9316 (!HAVE_PYTHON, free_type_printers): Delete.
9317 (_initialize_python): Delete call to observer_attach_before_prompt.
9318 (finalize_python): Set/restore active extension language.
9319 (gdbpy_finish_initialization) Renamed from
9320 finish_python_initialization, made static. New arg extlang.
9321 (gdbpy_initialized): New function.
9322 * python/python.h: #include "extension.h". Delete #include
9323 "value.h", "mi/mi-cmds.h".
9324 (extension_language_python): Declare.
9325 (GDBPY_AUTO_FILE_NAME): Delete.
9326 (enum py_bt_status): Moved to extension.h and renamed to
9328 (enum frame_filter_flags): Moved to extension.h.
9329 (enum py_frame_args): Moved to extension.h and renamed to
9330 ext_lang_frame_args.
9331 (finish_python_initialization): Delete.
9332 (eval_python_from_control_command): Delete.
9333 (source_python_script): Delete.
9334 (apply_val_pretty_printer): Delete.
9335 (apply_frame_filter): Delete.
9336 (preserve_python_values): Delete.
9337 (gdbpy_script_language_defn): Delete.
9338 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9339 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9341 * auto-load.c: #include "extension.h".
9342 (GDB_AUTO_FILE_NAME): Delete.
9343 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9344 (script_language_gdb): Delete, moved to extension.c and renamed to
9345 extension_language_gdb.
9346 (source_gdb_script_for_objfile): Delete.
9347 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9348 (loaded_script): Change type of language member to
9349 struct extension_language_defn *.
9350 (init_loaded_scripts_info): Initialize
9351 unsupported_script_warning_printed.
9352 (maybe_add_script): Make static. Change type of language arg to
9353 struct extension_language_defn *.
9354 (clear_section_scripts): Reset unsupported_script_warning_printed.
9355 (auto_load_objfile_script_1): Rewrite to use extension language API.
9356 (auto_load_objfile_script): Make public. Remove support-compiled-in
9357 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9358 (source_section_scripts): Rewrite to use extension language API.
9359 (load_auto_scripts_for_objfile): Rewrite to use
9360 auto_load_scripts_for_objfile.
9361 (collect_matching_scripts_data): Change type of language member to
9362 struct extension_language_defn *.
9363 (auto_load_info_scripts): Change type of language arg to
9364 struct extension_language_defn *.
9365 (unsupported_script_warning_print): New function.
9366 (script_not_found_warning_print): Make static.
9367 (_initialize_auto_load): Rewrite construction of scripts-directory
9369 * auto-load.h (struct objfile): Add forward decl.
9370 (struct script_language): Delete.
9371 (struct auto_load_pspace_info): Add forward decl.
9372 (struct extension_language_defn): Add forward decl.
9373 (maybe_add_script): Delete.
9374 (auto_load_objfile_script): Declare.
9375 (script_not_found_warning_print): Delete.
9376 (auto_load_info_scripts): Update prototype.
9377 (auto_load_gdb_scripts_enabled): Declare.
9378 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9379 auto_load_python_scripts_enabled and made public.
9380 (script_language_python): Delete, moved to python.c.
9381 (gdbpy_script_language_defn): Delete.
9382 (info_auto_load_python_scripts): Update to use
9383 extension_language_python.
9385 * breakpoint.c (condition_command): Replace call to
9386 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9387 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9388 with call to breakpoint_ext_lang_cond_says_stop.
9389 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9390 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9391 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9392 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9394 (local_setattro): Print name of extension language with existing
9397 * valprint.c (val_print, value_print): Update to call
9398 apply_ext_lang_val_pretty_printer.
9399 * cp-valprint.c (cp_print_value): Update call to
9400 apply_ext_lang_val_pretty_printer.
9401 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9402 (gdbpy_apply_val_pretty_printer): Renamed from
9403 apply_val_pretty_printer. New arg extlang.
9404 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9406 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9407 extension language API.
9408 * cli/cli-script.c (execute_control_command): Update to call
9409 eval_ext_lang_from_control_command.
9411 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9412 enum ext_lang_bt_status values. Update call to
9413 apply_ext_lang_frame_filter.
9414 (mi_cmd_stack_list_locals): Ditto.
9415 (mi_cmd_stack_list_args): Ditto.
9416 (mi_cmd_stack_list_variables): Ditto.
9417 * mi/mi-main.c: Delete #include "python/python-internal.h".
9418 Add #include "extension.h".
9419 (mi_cmd_list_features): Replace reference to python internal variable
9420 gdb_python_initialized with call to ext_lang_initialized_p.
9422 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9423 Update to use enum ext_lang_frame_args. Update to call
9424 apply_ext_lang_frame_filter.
9425 * python/py-framefilter.c (extract_sym): Update to use enum
9427 (extract_value, py_print_type, py_print_value): Ditto.
9428 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9429 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9430 (py_print_frame): Ditto.
9431 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9432 New arg extlang. Update to use enum ext_lang_bt_status.
9434 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9435 finish_python_initialization. Replace with call to
9436 finish_ext_lang_initialization.
9438 * typeprint.c (do_free_global_table): Update to call
9439 free_ext_lang_type_printers.
9440 (create_global_typedef_table): Update to call
9441 start_ext_lang_type_printers.
9442 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9443 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9444 (type_print_options): Change type of global_printers from "void *"
9445 to "struct ext_lang_type_printers *".
9447 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9448 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9449 (gdbpy_preserve_values): Renamed from preserve_python_values.
9451 (!HAVE_PYTHON, preserve_python_values): Delete.
9453 * utils.c (quit_flag): Delete, moved to extension.c.
9454 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9457 * eval.c: Delete #include "python/python.h".
9458 * main.c: Delete #include "python/python.h".
9460 * defs.h: Update comment.
9462 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9466 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9468 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9471 2014-02-05 Yao Qi <yao@codesourcery.com>
9473 * remote.c (remote_pass_signals): Remove local 'buf' and use
9475 (remote_program_signals): Likewise.
9477 2014-02-05 Yao Qi <yao@codesourcery.com>
9479 * ctf.c: Include "inferior.h" and "gdbthread.h".
9480 (CTF_PID): A new macro.
9481 (ctf_open): Call inferior_appeared and add_thread_silent.
9482 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9483 (ctf_thread_alive): New function.
9484 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9486 2014-02-05 Yao Qi <yao@codesourcery.com>
9490 2013-05-24 Yao Qi <yao@codesourcery.com>
9492 * tracepoint.c (TFILE_PID): Remove.
9493 (tfile_open): Don't add thread and inferior.
9494 (tfile_close): Don't set 'inferior_ptid'. Don't call
9495 exit_inferior_silent.
9496 (tfile_thread_alive): Remove.
9497 (init_tfile_ops): Don't set field 'to_thread_alive' of
9500 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9502 * remote.c (remote_start_remote): Call remote_check_symbols even
9503 if only symbol-file (not file) has been given.
9505 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9507 * gdbarch.sh (skip_entrypoint): New callback.
9508 * gdbarch.c, gdbarch.h: Regenerate.
9509 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9510 * infrun.c (fill_in_stop_func): Likewise.
9511 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9512 (ppc_elfv2_elf_make_msymbol_special): New function.
9513 (ppc_elfv2_skip_entrypoint): Likewise.
9514 (ppc_linux_init_abi): Install them for ELFv2.
9516 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9518 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9519 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9520 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9521 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9522 structures returned in GPRs.
9524 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9526 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9527 offset to the stack parameter list for the ELFv2 ABI.
9529 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9531 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9532 set_gdbarch_convert_from_func_ptr_addr and
9533 set_gdbarch_elf_make_msymbol_special for ELFv1.
9534 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9535 function descriptors on ELFv1.
9536 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9537 set up r12 at function entry.
9539 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9541 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9542 (struct gdbarch_tdep): New member elf_abi.
9544 * rs6000-tdep.c: Include "elf/ppc64.h".
9545 (rs6000_gdbarch_init): Detect ELF ABI version.
9547 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9549 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9550 within a register pair holding a DFP 128-bit value on little-endian.
9551 (ppc64_sysv_abi_return_value_base): Likewise.
9552 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9553 (dfp_pseudo_register_write): Likewise.
9555 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9557 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9558 offset on little-endian when passing _Decimal32.
9559 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9561 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9563 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9564 of the overlapped FP register within the VSX register on little-
9566 (efpr_pseudo_register_write): Likewise.
9568 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9570 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9571 offset on little-endian when passing small structures.
9573 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9575 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9576 (struct ppc64_sysv_argpos): New data structure.
9577 (ppc64_sysv_abi_push_float): Remove.
9578 (ppc64_sysv_abi_push_val): New function.
9579 (ppc64_sysv_abi_push_integer): Likewise.
9580 (ppc64_sysv_abi_push_freg): Likewise.
9581 (ppc64_sysv_abi_push_vreg): Likewise.
9582 (ppc64_sysv_abi_push_param): Likewise.
9583 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9584 (ppc64_sysv_abi_return_value_base): New function.
9585 (ppc64_sysv_abi_return_value): Refactor to use it.
9587 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9589 * NEWS: Document new target powerpc64le-*-linux*.
9591 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9593 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9594 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9596 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9597 register set used in ELF core dumps. Add floating-point register set.
9599 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9601 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9602 dwarf2_to_gdb[] table using symbolic constants. Adjust
9603 penultimate entry from number representing the PC register
9604 to symbolic constant representing the MDR register. Add
9605 constant for the PC register to the end of the table.
9607 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9609 * bsd-kvm.c: Include <sys/param.h>
9611 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9613 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9615 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9617 * ada-lang.h (clear_ada_sym_cache): Delete.
9619 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9621 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9623 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9625 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9626 the sigreturn register save area only if the syscall is
9629 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9631 * valops.c (value_slice): Minor reformatting.
9633 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9635 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9637 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9639 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9641 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9642 (ada_ignore_descriptive_types_p): New static global.
9643 (find_parallel_type_by_descriptive_type): Return immediately
9644 if ada_ignore_descriptive_types_p is set.
9645 (_initialize_ada_language): Register new commands "maintenance
9646 set ada", "maintenance show ada", "maintenance set ada
9647 ignore-descriptive-types" and "maintenance show ada
9648 ignore-descriptive-types".
9649 * NEWS: Add entry for new "maint ada set/show
9650 ignore-descriptive-types" commands.
9652 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9654 * record-btrace.c (record_btrace_close): Call btrace_teardown
9657 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9659 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9662 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9664 * ada-typeprint (type_is_full_subrange_of_target_type):
9666 (print_range): Add parameter bounds_prefered_p. If not set,
9667 try printing range types using the name of their base type.
9668 (print_range_type): Add parameter bounds_prefered_p.
9669 Use it in call to print_range.
9670 (print_array_type, ada_print_type): Update calls to print_range
9671 and print_range_type.
9673 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9675 * ada-typeprint.c (print_array_type, print_choices, print_range)
9676 (print_range_bound, print_dynamic_range_bound, print_range_type):
9679 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9681 * ada-typeprint.c (print_range): Add missing empty line
9682 after local declaration.
9684 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9686 * ada-valprint.c (print_optional_low_bound): Get index_type's
9687 target type for as long as it is a TYPE_CODE_RANGE.
9689 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9691 * procfs.c (procfs_make_note_section): Remove assertion and
9694 2014-01-24 Yao Qi <yao@codesourcery.com>
9696 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9697 * corelow.c (get_core_siginfo): Likewise.
9699 2014-01-24 Yao Qi <yao@codesourcery.com>
9701 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9702 ULONGEST. Don't check 'len' is negative.
9703 (remote_write_bytes): Change type of 'len' to ULONGEST.
9705 2014-01-23 Tom Tromey <tromey@redhat.com>
9708 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9709 Handle exception from frame.block.
9710 (FrameVars.fetch_frame_locals): Likewise.
9712 2014-01-23 Tom Tromey <tromey@redhat.com>
9715 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9716 on a NULL pointer. Move "goto error" to correct place.
9718 2014-01-23 Tom Tromey <tromey@redhat.com>
9721 * python/py-framefilter.c (apply_frame_filter): Call
9722 ensure_python_env after computing gdbarch.
9724 2014-01-23 Yao Qi <yao@codesourcery.com>
9726 * target.c (raw_memory_xfer_partial): Change argument type
9727 from void * to gdb_byte *.
9728 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9730 2014-01-22 Doug Evans <dje@google.com>
9732 New gdbserver option --debug-format=timestamp.
9735 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9737 * syscalls/s390x-linux.xml: New file.
9738 * syscalls/s390-linux.xml: New file.
9739 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9740 (XML_SYSCALL_FILENAME_S390X): Likewise.
9741 (op_svc): New enum value for SVC opcode.
9742 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9743 (s390_linux_get_syscall_number): New function.
9744 (s390_gdbarch_init): Register '*get_syscall_number' and the
9745 syscall xml file name.
9746 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9747 "s390-linux.xml" and "s390x-linux.xml".
9748 * NEWS: Announce new feature.
9750 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9752 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9754 2014-01-22 Pedro Alves <palves@redhat.com>
9756 * xtensa-config.c: Include defs.h.
9758 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9760 * common/common-utils.h: Add "ARI:" comment beside __func__
9763 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9765 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9766 documentation a bit.
9768 2014-01-21 Roland McGrath <mcgrathr@google.com>
9770 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9771 * configure: Regenerate.
9772 * aclocal.m4: Regenerate.
9773 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9774 New substituted variables.
9775 (install-strip): New target.
9776 (INSTALL_SCRIPT): New substituted variable.
9777 (FLAGS_TO_PASS): Add it.
9778 (install-only): Use $(INSTALL_SCRIPT) rather than
9779 $(INSTALL_PROGRAM) for gcore.
9781 2014-01-20 Tom Tromey <tromey@redhat.com>
9783 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9786 2014-01-20 Tom Tromey <tromey@redhat.com>
9788 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9789 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9790 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9791 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9792 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9793 (struct cmd_list_element) <flags>: Remove.
9794 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9795 doc_allocated>: New fields.
9796 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9798 * maint.c (maintenance_do_deprecate): Update.
9799 * top.c (execute_command): Update.
9801 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9803 * xtensa-linux-nat.c: Include asm/ptrace.h.
9805 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9807 * Makefile.in (SFILES): Add d-support.c.
9808 (COMMON_OBS): Add d-support.o.
9809 * d-lang.h (d_parse_symbol): Add comment, now defined in
9811 * d-lang.c (parse_call_convention)
9812 (parse_attributes, parse_function_types)
9813 (parse_function_args, parse_type, parse_identifier)
9814 (call_convention_p, d_parse_symbol): Move functions to ...
9815 * d-support.c: ... New file.
9817 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9819 * d-lang.h (d_parse_symbol): Add declaration.
9820 * d-lang.c (extract_identifiers)
9821 (extract_type_info): Remove functions.
9822 (parse_call_convention, parse_attributes)
9823 (parse_function_types, parse_function_args)
9824 (parse_type, parse_identifier, call_convention_p)
9825 (d_parse_symbol): New functions.
9826 (d_demangle): Use d_parse_symbol to demangle D symbols.
9828 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9830 * d-lang.h (struct builtin_d_type): New data type.
9831 (builtin_d_type): Add declaration.
9832 * d-lang.c (d_language_arch_info, build_d_types)
9833 (builtin_d_type): New functions.
9834 (enum d_primitive_types): New data type.
9835 (d_language_defn): Change c_language_arch_info to
9836 d_language_arch_info.
9837 (d_type_data): New static variable.
9838 (_initialize_d_language): Initialize d_type_data.
9840 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9842 * d-lang.h (d_main_name): Add declaration.
9843 * d-lang.c (d_main_name): New function.
9844 * symtab.c (find_main_name): Add call to d_main_name.
9846 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9848 * d-lang.c (d_language_defn): Change macro_expansion_c to
9851 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9853 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9855 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9857 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9858 gdb_exception" declaration.
9859 * remote.c (getpkt_or_notif_sane): Likewise.
9861 2014-01-17 Doug Evans <dje@google.com>
9863 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9864 function, contents of dirnames_to_char_ptr_vec_append moved here.
9865 (delim_string_to_char_ptr_vec): New function.
9866 (dirnames_to_char_ptr_vec_append): Rewrite.
9867 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9869 2014-01-17 Doug Evans <dje@google.com>
9871 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9873 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9874 #include "common-utils.h".
9875 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9876 * common/vec.h (VEC_ASSERT_PASS): Update.
9877 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9878 (MACH_CHECK_ERROR): Update.
9880 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9882 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9884 * gdbarch.h: Regenerate.
9886 2014-01-16 Tom Tromey <tromey@redhat.com>
9888 * value.c (struct value) <regnum>: Move earlier.
9890 2014-01-16 Tom Tromey <tromey@redhat.com>
9892 * remote.c (extended_remote_create_inferior): Rename from
9893 extended_remote_create_inferior_1. Add "ops" argument. Remove
9896 2014-01-16 Pedro Alves <palves@redhat.com>
9898 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9899 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9902 2014-01-16 Doug Evans <dje@google.com>
9904 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9908 * btrace.h (btrace_thread_flag): New.
9909 (struct btrace_thread_info) <flags>: New.
9910 * record-btrace.c (record_btrace_resume_thread)
9911 (record_btrace_find_thread_to_move, btrace_step_no_history)
9912 (btrace_step_stopped, record_btrace_start_replaying)
9913 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9914 (record_btrace_find_resume_thread): New.
9915 (record_btrace_resume, record_btrace_wait): Extend.
9916 (record_btrace_can_execute_reverse): New.
9917 (record_btrace_open): Fail in non-stop mode.
9918 (record_btrace_set_replay): Split into this, ...
9919 (record_btrace_stop_replaying): ... this, ...
9920 (record_btrace_clear_histories): ... and this.
9921 (init_record_btrace_ops): Init to_can_execute_reverse.
9922 * NEWS: Announce it.
9924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9926 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9927 (forward_target_decr_pc_after_break)
9928 (target_decr_pc_after_break): New.
9929 * target.c (forward_target_decr_pc_after_break)
9930 (target_decr_pc_after_break): New.
9931 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9932 instead of gdbarch_decr_pc_after_break.
9933 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9934 instead of gdbarch_decr_pc_after_break.
9935 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9936 instead of gdbarch_decr_pc_after_break.
9937 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9938 instead of gdbarch_decr_pc_after_break.
9939 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9940 instead of gdbarch_decr_pc_after_break.
9941 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9942 instead of gdbarch_decr_pc_after_break.
9944 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9946 * btrace.c: Include regcache.h.
9947 (btrace_add_pc): New.
9948 (btrace_enable): Call btrace_add_pc.
9949 (btrace_is_empty): New.
9950 * btrace.h (btrace_is_empty): New.
9951 * record-btrace.c (require_btrace, record_btrace_info): Call
9954 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9956 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9957 Support delta reads.
9958 (linux_disable_btrace): Change return type.
9959 * common/linux-btrace.h (linux_read_btrace): Change parameters
9960 and return type to allow error reporting. Update users.
9961 (linux_disable_btrace): Change return type. Update users.
9962 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9964 (btrace_error): New.
9965 (btrace_block) <begin>: Comment on BEGIN == 0.
9966 * btrace.c (btrace_compute_ftrace): Start from the end of
9968 (btrace_stitch_trace, btrace_clear_history): New.
9969 (btrace_fetch): Read delta trace, return if replaying.
9970 (btrace_clear): Move clear history code to btrace_clear_history.
9971 (parse_xml_btrace): Throw an error if parsing failed.
9972 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9973 and return type to allow error reporting.
9974 (target_read_btrace): Change parameters and return type to allow
9976 * target.c (target_read_btrace): Update.
9977 * remote.c (remote_read_btrace): Support delta reads. Pass
9979 * NEWS: Announce it.
9981 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9983 * record.h (record_btrace_frame_unwind)
9984 (record_btrace_tailcall_frame_unwind): New declarations.
9985 * dwarf2-frame: Include record.h
9986 (dwarf2_frame_cfa): Throw an error for btrace frames.
9987 * record-btrace.c: Include hashtab.h.
9988 (btrace_get_bfun_name): New.
9989 (btrace_call_history): Call btrace_get_bfun_name.
9990 (struct btrace_frame_cache): New.
9992 (bfcache_hash, bfcache_eq, bfcache_new): New.
9993 (btrace_get_frame_function): New.
9994 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9995 (record_btrace_frame_this_id): Compute own id.
9996 (record_btrace_frame_prev_register): Provide PC, throw_error
9997 for all other registers.
9998 (record_btrace_frame_sniffer): Detect btrace frames.
9999 (record_btrace_tailcall_frame_sniffer): New.
10000 (record_btrace_frame_dealloc_cache): New.
10001 (record_btrace_frame_unwind): Add new functions.
10002 (record_btrace_tailcall_frame_unwind): New.
10003 (_initialize_record_btrace): Allocate cache.
10004 * btrace.c (btrace_clear): Call reinit_frame_cache.
10005 * NEWS: Announce it.
10007 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10009 * record-btrace.c (record_btrace_set_replay)
10010 (record_btrace_goto_begin, record_btrace_goto_end)
10011 (record_btrace_goto): New.
10012 (init_record_btrace_ops): Initialize them.
10013 * NEWS: Announce it.
10015 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10017 * record-btrace.c (record_btrace_find_new_threads)
10018 (record_btrace_thread_alive): New.
10019 (init_record_btrace_ops): Initialize to_find_new_threads and
10022 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10024 * record-btrace.c (record_btrace_resume): New.
10025 (record_btrace_wait): New.
10026 (init_record_btrace_ops): Initialize to_wait and to_resume.
10028 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10030 * record-btrace.c (record_btrace_xfer_partial)
10031 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10032 (record_btrace_allow_memory_access): New.
10033 (init_record_btrace_ops): Initialize new methods.
10034 * target.c (raw_memory_xfer_partial): Bail out if target reports
10035 that this memory is not available.
10037 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10039 * target.h (target_ops) <to_insert_breakpoint>
10040 <to_remove_breakpoint>: Add target_ops parameter.
10041 (forward_target_insert_breakpoint): New.
10042 (forward_target_remove_breakpoint): New.
10043 (memory_remove_breakpoint, memory_insert_breakpoint):
10044 Add target_ops parameter.
10045 * target.c (target_insert_breakpoint): Split into this and ...
10046 (forward_target_insert_breakpoint): ... this.
10047 (target_remove_breakpoint): Split into this and ...
10048 (forward_target_remove_breakpoint): ... this.
10049 (debug_to_insert_breakpoint): Add target_ops parameter.
10050 Call forward_target_insert_breakpoint.
10051 (debug_to_remove_breakpoint): Add target_ops parameter.
10052 Call forward_target_remove_breakpoint.
10053 (update_current_target): Do not inherit or default to_insert_breakpoint
10054 and to_remove_breakpoint.
10055 * corelow.c (ignore): Add target_ops parameter.
10056 * exec.c (ignore): Add target_ops parameter.
10057 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10058 Add target_ops parameter.
10059 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10060 Add target_ops parameter.
10061 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10062 Add target_ops parameter.
10063 * record-full.c (record_full_beneath_to_insert_breakpoint)
10064 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10065 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10066 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10067 (record_full_core_remove_breakpoint): Add target_ops parameter.
10069 (record_full_beneath_to_insert_breakpoint_ops)
10070 (record_full_beneath_to_remove_breakpoint_ops)
10071 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10072 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10073 tmp_to_remove_breakpoint_ops,
10074 record_full_beneath_to_insert_breakpoint_ops, and
10075 record_full_beneath_to_remove_breakpoint_ops.
10076 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10077 (m32r_remove_breakpoint): Add target_ops parameter.
10078 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10079 Add target_ops parameter.
10080 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10081 Add target_ops parameter.
10083 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10084 Markus Metzger <markus.t.metzger@intel.com>
10086 * record-btrace.c: Include frame-unwind.h.
10087 (record_btrace_frame_unwind_stop_reason)
10088 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10089 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10091 (init_record_btrace_ops): Install it.
10093 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10095 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10098 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10100 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10103 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10105 * frame-unwind.c: Include target.h.
10106 (frame_unwind_try_unwinder): New function with code from ...
10107 (frame_unwind_find_by_frame): ... here. New variable
10108 unwinder_from_target, call also target_get_unwinder)
10109 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10110 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10111 * target.h (struct target_ops): New fields to_get_unwinder and
10112 to_get_tailcall_unwinder.
10113 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10115 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10117 * record-btrace.c (record_btrace_fetch_registers)
10118 (record_btrace_store_registers)
10119 (record_btrace_to_prepare_to_store): New.
10120 (init_record_btrace_ops): Add the above.
10122 2014-01-16 Tom Tromey <tromey@redhat.com>
10124 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10125 * target.h (struct target_ops) <to_prepare_to_store>: Add
10127 (target_prepare_to_store): Add argument.
10128 * target.c (debug_to_prepare_to_store): Add argument.
10129 (update_current_target): Update.
10130 * remote.c (remote_prepare_to_store): Add 'self' argument.
10131 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10132 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10133 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10134 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10136 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10137 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10138 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10139 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10140 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10142 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10144 * btrace.h (replay) <replay>: New.
10145 (btrace_is_replaying): New.
10146 * btrace.c (btrace_clear): Free replay iterator.
10147 (btrace_is_replaying): New.
10148 * record-btrace.c (record_btrace_is_replaying): New.
10149 (record_btrace_info): Print insn number if replaying.
10150 (record_btrace_insn_history): Start at replay position.
10151 (record_btrace_call_history): Start at replay position.
10152 (init_record_btrace_ops): Init to_record_is_replaying.
10154 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10156 * record-btrace.c (record_btrace_insn_history_range): Include
10158 (record_btrace_insn_history_from): Adjust range.
10159 (record_btrace_call_history_range): Include
10161 (record_btrace_call_history_from): Adjust range.
10162 * NEWS: Announce changes.
10164 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10166 * record.h (enum record_print_flag)
10167 <record_print_indent_calls>: New.
10168 * record.c (get_call_history_modifiers): Recognize /c modifier.
10169 (_initialize_record): Document /c modifier.
10170 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10171 Reorder fields. Optionally indent the function name. Update
10173 * NEWS: Announce changes.
10175 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10177 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10179 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10181 * btrace.c (ftrace_new_function): Start counting at one.
10182 * record-btrace.c (record_btrace_info): Adjust number of calls
10184 * NEWS: Announce it.
10186 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10188 * record-btrace.c (btrace_call_history_insn_range): Print
10189 insn range as [begin, end].
10191 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10193 * btrace.h (struct btrace_func_link): New.
10194 (enum btrace_function_flag): New.
10195 (struct btrace_inst): Rename to ...
10196 (struct btrace_insn): ...this. Update all users.
10197 (struct btrace_func) <ibegin, iend>: Remove.
10198 (struct btrace_func_link): New.
10199 (struct btrace_func): Rename to ...
10200 (struct btrace_function): ...this. Update all users.
10201 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10202 (number, level, flags>: New.
10203 (struct btrace_insn_iterator): Rename to ...
10204 (struct btrace_insn_history): ...this.
10206 (struct btrace_insn_iterator, btrace_call_iterator): New.
10207 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10208 (struct btrace_target_info) <begin, end, level>
10209 <insn_history, call_history>: New.
10210 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10211 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10212 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10213 (btrace_call_number, btrace_call_begin, btrace_call_end)
10214 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10215 (btrace_find_function_by_number, btrace_set_insn_history)
10216 (btrace_set_call_history): New.
10217 * btrace.c (btrace_init_insn_iterator)
10218 (btrace_init_func_iterator, compute_itrace): Remove.
10219 (ftrace_print_function_name, ftrace_print_filename)
10220 (ftrace_skip_file): Change
10221 parameter to const.
10222 (ftrace_init_func): Remove.
10223 (ftrace_debug): Use new btrace_function fields.
10224 (ftrace_function_switched): Also consider gaining and
10225 losing symbol information).
10226 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10227 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10228 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10230 (ftrace_new_function): Move. Remove debug print.
10231 (ftrace_update_lines, ftrace_update_insns): New.
10232 (ftrace_update_function): Check for call, ret, and jump.
10233 (compute_ftrace): Renamed to ...
10234 (btrace_compute_ftrace): ...this. Rewritten to compute call
10236 (btrace_fetch, btrace_clear): Updated.
10237 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10238 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10239 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10240 (btrace_call_number, btrace_call_begin, btrace_call_end)
10241 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10242 (btrace_find_function_by_number, btrace_set_insn_history)
10243 (btrace_set_call_history): New.
10244 * record-btrace.c (require_btrace): Use new btrace thread
10246 (record_btrace_info, btrace_insn_history)
10247 (record_btrace_insn_history, record_btrace_insn_history_range):
10248 Use new btrace thread info fields and new iterator.
10249 (btrace_func_history_src_line): Rename to ...
10250 (btrace_call_history_src_line): ...this. Use new btrace
10251 thread info fields.
10252 (btrace_func_history): Rename to ...
10253 (btrace_call_history): ...this. Use new btrace thread info
10254 fields and new iterator.
10255 (record_btrace_call_history, record_btrace_call_history_range):
10256 Use new btrace thread info fields and new iterator.
10258 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10260 * frame.h (frame_id_build_unavailable_stack_special): New.
10261 * frame.c (frame_id_build_unavailable_stack_special): New.
10263 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10265 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10266 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10267 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10269 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10270 (i386_insn_is_jump, i386_jmp_p): New.
10271 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10272 insn_is_jump to gdbarch.
10273 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10274 * gdbarch.h: Regenerated.
10275 * gdbarch.c: Regenerated.
10276 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10277 (default_insn_is_jump): New.
10278 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10279 (default_insn_is_jump): New.
10281 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10283 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10285 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10286 (btrace_read_type) <btrace_read_new>: Change to ...
10287 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10289 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10291 * common/linux-btrace.c (linux_read_btrace): Free trace from
10292 previous iteration.
10294 2014-01-15 Doug Evans <dje@google.com>
10296 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10299 2014-01-15 Tom Tromey <tromey@redhat.com>
10301 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10302 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10303 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10304 (set_objfile_main_name): New function.
10305 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10306 language_of_main>: New fields.
10307 (set_objfile_main_name): Declare.
10308 * symtab.c (find_main_name): Loop over objfiles to find the main
10310 (set_main_name): Now static.
10311 (get_main_info): Add comment.
10312 * symtab.h (set_main_name): Don't declare.
10314 2014-01-15 Tom Tromey <tromey@redhat.com>
10316 * symtab.c (main_progspace_key): New global.
10317 (struct main_info): New.
10318 (name_of_main, language_of_main): Remove.
10319 (get_main_info, main_info_cleanup): New function.
10320 (set_main_name, main_name, main_language): Use get_main_info.
10321 (_initialize_symtab): Initialize main_progspace_key.
10323 2014-01-15 Tom Tromey <tromey@redhat.com>
10325 * dbxread.c (process_one_symbol): Update.
10326 * dwarf2read.c (read_partial_die): Update.
10327 * symfile.c (set_initial_language): Call main_language.
10328 * symtab.c (language_of_main): Now static.
10329 (set_main_name): Add 'lang' parameter.
10330 (find_main_name): Update.
10331 (main_language): New function.
10332 (symtab_observer_executable_changed): Update.
10333 * symtab.h (set_main_name): Update.
10334 (language_of_main): Remove.
10335 (main_language): Declare.
10337 2014-01-15 Tom Tromey <tromey@redhat.com>
10339 * symfile.c (init_entry_point_info): Use new "initialized" field.
10341 * objfiles.h (struct entry_point) <initialized>: New field.
10342 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10343 (struct objfile) <ei>: ...here. Remove.
10344 * objfiles.c (entry_point_address_query): Update.
10346 2014-01-15 Tom Tromey <tromey@redhat.com>
10348 * objfiles.c (entry_point_address_query): Relocate entry point
10350 (objfile_relocate1): Do not relocate entry point address.
10351 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10352 <the_bfd_section_index>: New field.
10353 * symfile.c (init_entry_point_info): Find the entry point's
10356 2014-01-15 Tom Tromey <tromey@redhat.com>
10358 * solib-frv.c (enable_break): Use entry_point_address_query.
10360 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10362 * NEWS: Add note on improved process record-replay on
10363 arm*-linux* targets.
10365 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10367 * arm-tdep.c (enum arm_record_result): New enum.
10368 (arm_record_unsupported_insn): New function.
10369 (arm_record_coproc_data_proc): Removed.
10370 (thumb2_record_ld_st_multiple): New function.
10371 (thumb2_record_ld_st_dual_ex_tbb): New function.
10372 (thumb2_record_data_proc_sreg_mimm): New function.
10373 (thumb2_record_ps_dest_generic): New function.
10374 (thumb2_record_branch_misc_cntrl): New function.
10375 (thumb2_record_str_single_data): New function.
10376 (thumb2_record_ld_mem_hints): New function.
10377 (thumb2_record_ld_word): New function.
10378 (thumb2_record_lmul_lmla_div): New function.
10379 (thumb2_record_decode_insn_handler): New function.
10380 (decode_insn): Add thumb32 instruction handlers.
10382 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10384 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10385 (struct arm_linux_record_tdep): Declare.
10386 (arm_canonicalize_syscall): New function.
10387 (arm_all_but_pc_registers_record): New function.
10388 (arm_linux_syscall_record): New function.
10389 (arm_linux_init_abi): Add syscall recording constructs.
10390 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10391 decoding. (arm_record_coproc_data_proc): Update arm syscall
10393 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10394 <arm_syscall_record>: New field.
10395 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10398 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10400 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10401 register for push instruction recording.
10403 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10405 * arm-tdep.c (thumb_record_misc): Update to correct logical
10406 error while recording ldm, ldmia and pop instructions.
10408 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10410 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10412 2014-01-15 Pedro Alves <palves@redhat.com>
10414 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10415 (go32_resume, go32_fetch_registers, store_register)
10416 (go32_store_registers, go32_prepare_to_store)
10417 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10418 (go32_create_inferior, go32_can_run, go32_terminal_init)
10419 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10422 2014-01-15 Tom Tromey <tromey@redhat.com>
10424 * target.h (async_callback_ftype): New typedef.
10425 (struct target_ops) <to_async>: Use it.
10427 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10429 * python/py-value.c (get_field_type): Remove unnecessary curly
10430 braces for single-statement if block.
10432 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10434 * python/py-type.c (convert_field): Add missing empty line
10435 after declarations.
10437 2014-01-14 Doug Evans <dje@google.com>
10439 * symfile.h (expand_symtabs_matching): Renamed from
10440 expand_partial_symbol_names. Update prototype.
10441 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10442 * symfile.c (expand_symtabs_matching): Renamed from
10443 expand_partial_symbol_names. New args file_matcher, kind.
10444 Rename arg fun to symbol_matcher.
10445 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10446 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10447 ada_expand_partial_symbol_name.
10448 (ada_make_symbol_completion_list): Update to call
10449 expand_symtabs_matching.
10450 (ada_add_global_exceptions): Call expand_symtabs_matching.
10451 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10452 call map_symbol_filenames.
10453 * symtab.c (sources_info): Update to call map_symbol_filenames.
10454 (search_symbols): Call expand_symtabs_matching.
10455 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10456 (default_make_symbol_completion_list_break_on): Update to call
10457 expand_symtabs_matching.
10458 (make_source_files_completion_list): Update to call
10459 map_symbol_filenames.
10461 2014-01-14 Doug Evans <dje@google.com>
10463 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10464 (expand_symtabs_symbol_matcher_ftype): New typedef.
10465 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10466 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10467 * symfile.c (expand_partial_symbol_names): Update to use
10468 expand_symtabs_symbol_matcher_ftype.
10469 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10470 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10471 Arg name_matcher renamed to symbol_matcher.
10472 * psymtab.c (recursively_search_psymtabs): Update to use
10473 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10475 (expand_symtabs_matching_via_partial): Update to use
10476 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10477 Arg name_matcher renamed to symbol_matcher.
10479 2014-01-14 Doug Evans <dje@google.com>
10481 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10482 (map_partial_symbol_filenames): Ditto.
10483 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10484 (map_partial_symbol_filenames): Ditto.
10485 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10486 (map_partial_symbol_filenames): Ditto.
10487 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10488 (map_partial_symbol_filenames): Ditto.
10489 * symtab.c: Delete #include "psymtab.h".
10491 2014-01-14 Pedro Alves <palves@redhat.com>
10492 Tom Tromey <tromey@redhat.com>
10494 * infrun.c (use_displaced_stepping): Use find_record_target
10495 instead of RECORD_IS_USED.
10496 (adjust_pc_after_break): Use record_full_is_used instead of
10498 * record-btrace.c (record_btrace_open): Call record_preopen
10499 instead of checking RECORD_IS_USED.
10500 * record-full.c (record_full_shortname)
10501 (record_full_core_shortname): New globals.
10502 (record_full_is_used): New function.
10503 (find_full_open): Call record_preopen instead of checking
10505 (init_record_full_ops): Set the target's shortname to
10506 record_full_shortname.
10507 (init_record_full_core_ops): Set the target's shortname to
10508 record_full_core_shortname.
10509 * record-full.h (record_full_is_used): Declare.
10510 * record.c (find_record_target): Make extern.
10511 (record_preopen): New function.
10512 * record.h (RECORD_IS_USED): Delete macro.
10513 (find_record_target, record_preopen): Declare functions.
10515 2014-01-14 Yao Qi <yao@codesourcery.com>
10517 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10518 'len''s type to ULONGEST.
10519 (core_xfer_shared_libraries_aix): Likewise.
10520 * gdbarch.c, gdbarch.h: Regenerated.
10521 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10522 Change type of 'len' to ULONGEST.
10523 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10524 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10526 2014-01-14 Yao Qi <yao@codesourcery.com>
10528 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10529 type of 'len' to ULONGEST.
10530 (linux_xfer_osdata_processgroups): Likewise.
10531 (linux_xfer_osdata_threads): Likewise.
10532 (linux_xfer_osdata_fds): Likewise.
10533 (linux_xfer_osdata_isockets): Likewise.
10534 (linux_xfer_osdata_shm): Likewise.
10535 (linux_xfer_osdata_sem): Likewise.
10536 (linux_xfer_osdata_msg): Likewise.
10537 (linux_common_xfer_osdata): Likewise.
10538 (struct osdata_type) <getter>: Likewise.
10539 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10542 2014-01-14 Yao Qi <yao@codesourcery.com>
10544 * target.h (target_xfer_partial_ftype): Update.
10545 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10547 * aix-thread.c (aix_thread_xfer_partial): Change type of
10548 argument 'len' to ULONGEST.
10549 * auxv.c (procfs_xfer_auxv): Likewise.
10550 (ld_so_xfer_auxv): Likewise.
10551 (memory_xfer_auxv): Likewise.
10552 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10553 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10554 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10555 * corelow.c (core_xfer_partial): Likewise.
10556 * ctf.c (ctf_xfer_partial): Likewise.
10557 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10559 (darwin_read_dyld_info): Likewise.
10560 (darwin_xfer_partial): Likewise.
10561 * exec.c (section_table_xfer_memory_partial): Likewise.
10562 (exec_xfer_partial): Likewise.
10563 * exec.h (section_table_xfer_memory_partial): Update
10565 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10566 instead of plongest.
10567 (gnu_xfer_partial): Likewise.
10568 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10569 (ia64_hpux_xfer_solib_got): Likewise.
10570 (ia64_hpux_xfer_partial): Likewise.
10571 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10572 * inf-ptrace.c (inf_ptrace_xfer_partial):
10573 * inf-ttrace.c (inf_ttrace_xfer_partial):
10574 * linux-nat.c (linux_xfer_siginfo): Likewise.
10575 (linux_nat_xfer_partial): Likewise.
10576 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10577 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10578 * monitor.c (monitor_xfer_memory): Likewise.
10579 (monitor_xfer_partial): Likewise.
10580 * procfs.c (procfs_xfer_partial): Likewise.
10581 * record-full.c (record_full_xfer_partial): Likewise.
10582 (record_full_core_xfer_partial): Likewise.
10583 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10584 instead of plongest.
10585 (gdbsim_xfer_partial): Likewise.
10586 * remote.c (remote_xfer_partial): Likewise.
10587 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10588 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10590 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10591 (rs6000_xfer_shared_libraries): Likewise.
10592 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10593 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10594 (sparc_xfer_partial): Likewise.
10595 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10596 (spu_xfer_partial): Likewise.
10597 * spu-multiarch.c (spu_xfer_partial): Likewise.
10598 * target.c (target_read_live_memory): Likewise.
10599 (memory_xfer_live_readonly_partial): Likewise.
10600 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10601 (target_xfer_partial, default_xfer_partial): Likewise.
10602 (current_xfer_partial): Likewise.
10603 * tracepoint.c (tfile_xfer_partial): Likewise.
10604 * windows-nat.c (windows_xfer_memory): Likewise. Call
10605 pulongest instead of plongest.
10606 (windows_xfer_partial): Likewise.
10607 (windows_xfer_shared_libraries): Likewise.
10609 2014-01-14 Yao Qi <yao@codesourcery.com>
10611 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10612 target_xfer_partial_ftype.
10614 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10618 * valops.c (value_struct_elt_bitpos): New function
10619 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10620 object to 'None' if the field name is an empty string ("").
10621 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10622 attribute to look for a field when 'name' is 'None'.
10623 (get_field_type): New function
10625 2014-01-13 Doug Evans <dje@google.com>
10628 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10629 (try_open_dwop_file): Ditto.
10630 * gdb_bfd.c: #include "vec.h".
10631 (bfdp): New typedef.
10632 (struct gdb_bfd_data): New member included_bfds.
10633 (gdb_bfd_unref): Unref all included bfds.
10634 (gdb_bfd_record_inclusion): New function.
10635 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10637 2014-01-13 Tom Tromey <tromey@redhat.com>
10639 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10641 2014-01-13 Tom Tromey <tromey@redhat.com>
10643 * defs.h (use_windows): Remove.
10644 * gdb.c (main): Update.
10645 * main.c (captured_main, gdb_main): Update.
10646 * main.h (struct captured_main_args) <use_windows>: Remove.
10647 * top.c (use_windows): Remove.
10649 2014-01-13 Tom Tromey <tromey@redhat.com>
10651 * defs.h (deprecated_flush_hook): Remove.
10653 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10656 * linux-thread-db.c (try_thread_db_load): Add parameter
10657 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10658 (try_thread_db_load_from_pdir_1): Move it there from here.
10659 (try_thread_db_load_from_sdir): Update caller.
10660 (try_thread_db_load_from_dir): Move it there from here.
10662 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10664 * regformats/regdat.sh: Always rewrite the register file.
10666 2014-01-13 Pedro Alves <palves@redhat.com>
10668 * Makefile.in (CHECK_HEADERS): New variable.
10669 (check-headers:): New rule.
10671 2014-01-13 Tom Tromey <tromey@redhat.com>
10673 * cli/cli-setshow.c (do_set_command): Update.
10674 * defs.h (deprecated_set_hook): Remove.
10675 * top.c (deprecated_set_hook): Remove.
10677 2014-01-13 Pedro Alves <palves@redhat.com>
10679 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10680 the tracepoint if the PC is a pseudo-register.
10682 2014-01-13 Tom Tromey <tromey@redhat.com>
10684 * defs.h (XCALLOC): Remove.
10685 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10686 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10687 * dwarf2loc.c (allocate_piece_closure): Likewise.
10688 * elfread.c (elf_symfile_segments): Likewise.
10689 (elf_symfile_segments): Likewise.
10690 * gdbtypes.c (copy_type_recursive): Likewise.
10691 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10692 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10693 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10695 * mt-tdep.c (mt_gdbarch_init): Likewise.
10696 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10698 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10699 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10700 * registry.c (registry_alloc_data): Likewise.
10701 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10702 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10703 * serial.c (serial_fdopen_ops): Likewise.
10704 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10706 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10707 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10710 2014-01-13 Tom Tromey <tromey@redhat.com>
10712 * defs.h (XMALLOC): Remove.
10713 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10714 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10715 * cli-out.c (struct ui_out *): Likewise.
10716 * cli/cli-dump.c (add_dump_command): Likewise.
10717 (add_dump_command): Likewise.
10718 * complaints.c (get_complaints): Likewise.
10719 (find_complaint): Likewise.
10720 * dwarf2-frame.c (execute_cfa_program): Likewise.
10721 * dwarf2read.c (abbrev_table_read_table): Likewise.
10722 * gdbarch.sh: Likewise.
10723 * gdbarch.c: Rebuild.
10724 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10725 * interps.c (interp_new): Likewise.
10726 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10727 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10728 * mi/mi-console.c (mi_console_file_new): Likewise.
10729 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10730 * mi/mi-out.c (mi_out_new): Likewise.
10731 * mi/mi-parse.c (mi_parse): Likewise.
10732 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10733 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10734 * observer.c (xalloc_observer_list_node): Likewise.
10735 * regcache.c (regcache_xmalloc_1): Likewise.
10736 * reggroups.c (reggroup_new): Likewise.
10737 (_initialize_reggroup): Likewise.
10738 * registry.c (register_data_with_cleanup): Likewise.
10739 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10740 * ser-base.c (serial_ttystate): Likewise.
10741 * ser-mingw.c (make_pipe_state): Likewise.
10742 * ser-pipe.c (pipe_open): Likewise.
10743 * serial.c (serial_open): Likewise.
10744 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10745 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10746 (tui_alloc_win_info): Likewise.
10747 (tui_add_content_elements): Likewise.
10748 * tui/tui-file.c (tui_file_new): Likewise.
10749 * tui/tui-out.c (tui_out_new): Likewise.
10750 * ui-file.c (mem_file_new): Likewise.
10751 * ui-out.c (push_level): Likewise.
10752 (make_cleanup_ui_out_end): Likewise.
10753 (append_header_to_list): Likewise.
10754 (ui_out_new): Likewise.
10755 * user-regs.c (user_reg_add_builtin): Likewise.
10757 2014-01-13 Tom Tromey <tromey@redhat.com>
10759 * defs.h (XZALLOC): Remove.
10760 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10761 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10762 (get_ada_tasks_inferior_data): Likewise.
10763 * auto-load.c (get_auto_load_pspace_data): Likewise.
10764 * auxv.c (get_auxv_inferior_data): Likewise.
10765 * bfd-target.c (target_bfd_reopen): Likewise.
10766 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10767 (deprecated_insert_raw_breakpoint): Likewise.
10768 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10769 * corelow.c (core_open): Likewise.
10770 * darwin-nat.c (darwin_check_new_threads): Likewise.
10771 (darwin_attach_pid): Likewise.
10772 * dummy-frame.c (dummy_frame_push): Likewise.
10773 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10774 * dwarf2loc.c (allocate_piece_closure): Likewise.
10775 * elfread.c (elf_symfile_segments): Likewise.
10776 * eval.c (ptrmath_type_p): Likewise.
10777 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10778 * gdbtypes.c (alloc_type_arch): Likewise.
10779 (alloc_type_instance): Likewise.
10780 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10781 * inf-child.c (inf_child_can_use_agent): Likewise.
10782 * inflow.c (get_inflow_inferior_data): Likewise.
10783 * infrun.c (save_infcall_suspend_state): Likewise.
10784 * jit.c (jit_reader_load): Likewise.
10785 (get_jit_objfile_data): Likewise.
10786 (get_jit_program_space_data): Likewise.
10787 (jit_object_open_impl): Likewise.
10788 (jit_symtab_open_impl): Likewise.
10789 (jit_block_open_impl): Likewise.
10790 (jit_frame_sniffer): Likewise.
10791 * linux-fork.c (add_fork): Likewise.
10792 * maint.c (make_command_stats_cleanup): Likewise.
10793 * objfiles.c (get_objfile_pspace_data): Likewise.
10794 * opencl-lang.c (struct lval_closure): Likewise.
10795 * osdata.c (osdata_start_osdata): Likewise.
10796 * progspace.c (new_address_space): Likewise.
10797 (add_program_space): Likewise.
10798 * remote-sim.c (get_sim_inferior_data): Likewise.
10799 * sh-tdep.c (sh_gdbarch_init): Likewise.
10800 * skip.c (Ignore): Likewise.
10801 (skip_delete_command): Likewise.
10802 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10803 (library_list_start_library): Likewise.
10804 (solib_aix_current_sos): Likewise.
10805 * solib-darwin.c (get_darwin_info): Likewise.
10806 (darwin_current_sos): Likewise.
10807 * solib-dsbt.c (get_dsbt_info): Likewise.
10808 * solib-ia64-hpux.c (new_so_list): Likewise.
10809 (ia64_hpux_get_solib_linkage_addr): Likewise.
10810 * solib-spu.c (append_ocl_sos): Likewise.
10811 (spu_current_sos): Likewise.
10812 * solib-svr4.c (get_svr4_info): Likewise.
10813 (svr4_keep_data_in_core): Likewise.
10814 (library_list_start_library): Likewise.
10815 (svr4_default_sos): Likewise.
10816 (svr4_read_so_list): Likewise.
10817 * solib-target.c (library_list_start_library): Likewise.
10818 (solib_target_current_sos): Likewise.
10819 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10820 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10821 * symfile.c (default_symfile_segments): Likewise.
10822 * target-descriptions.c (tdesc_data_init): Likewise.
10823 (tdesc_create_reg): Likewise.
10824 (struct tdesc_type *): Likewise.
10825 (tdesc_create_vector): Likewise.
10826 (tdesc_set_struct_size): Likewise.
10827 (struct tdesc_type *): Likewise.
10828 (tdesc_free_feature): Likewise.
10829 (tdesc_create_feature): Likewise.
10830 * windows-nat.c (windows_add_thread): Likewise.
10831 (windows_make_so): Likewise.
10832 * xml-support.c (gdb_xml_body_text): Likewise.
10833 (gdb_xml_create_parser_and_cleanup): Likewise.
10834 (xml_process_xincludes): Likewise.
10835 * xml-syscall.c (allocate_syscalls_info): Likewise.
10836 (syscall_create_syscall_desc): Likewise.
10838 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10840 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10841 function, with code from i386_stap_parse_special_token.
10842 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10843 (i386_stap_parse_special_token): Move code to the two functions
10844 above; simplify it.
10846 2014-01-09 Pedro Alves <palves@redhat.com>
10847 Hui Zhu <hui@codesourcery.com>
10850 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10851 bp_err_string. Don't mark the location shlib_disabled if the
10852 error thrown wasn't a generic or memory error. Catch errors
10853 thrown while inserting breakpoints in overlayed code. Output
10854 error message of software breakpoints.
10855 * remote.c (remote_insert_breakpoint): If this breakpoint has
10856 target-side commands but this stub doesn't support Z0 packets,
10857 throw NOT_SUPPORTED_ERROR error.
10858 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10859 * target.h (target_insert_breakpoint): Extend comment.
10860 (target_insert_hw_breakpoint): Add comment.
10862 2014-01-08 Pedro Alves <palves@redhat.com>
10864 * remote.c (remote_add_thread): Add threads silently if starting
10866 (remote_notice_new_inferior): If in all-stop, and starting up,
10867 don't call notice_new_inferior.
10868 (get_current_thread): New function, factored out from ...
10869 (add_current_inferior_and_thread): ... this. Adjust.
10870 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10871 found any thread, then select the remote's current thread as GDB's
10872 current thread too.
10874 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10876 * NEWS: Create a new section for the next release branch.
10877 Rename the section of the current branch, now that it has
10880 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10882 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10883 * version.in: Bump version to 7.7.50.DATE-cvs.
10885 2014-01-08 Yao Qi <yao@codesourcery.com>
10887 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10888 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10889 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10891 2014-01-08 Yao Qi <yao@codesourcery.com>
10893 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10894 return value of bfd_get_filename to symbol_file_add_from_bfd.
10896 2014-01-08 Pierre Muller <muller@sourceware.org>
10899 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10900 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10901 to prim_record_mininal_symbol_and_info.
10902 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10903 in call to prim_record_minimal_symbol_and_info.
10904 (read_pe_exported_syms): Set index field of section_data.
10906 2014-01-07 Andrew Pinski <apinski@cavium.com>
10908 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10909 * features/aarch64.c: Regenerate.
10911 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10913 * target.c (return_null): Define.
10914 (update_current_target): Use it instead of return_zero for
10915 functions that return a pointer.
10917 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10919 * source.c (add_path): Fix check for duplicated paths in the previously
10922 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10924 * ada-lang.c: Remove duplicated include statements.
10925 * alphabsd-nat.c: Ditto.
10926 * amd64-darwin-tdep.c: Ditto.
10927 * amd64fbsd-nat.c: Ditto.
10928 * auto-load.c: Ditto.
10930 * breakpoint.c: Ditto.
10931 * dbxread.c: Ditto.
10932 * fork-child.c: Ditto.
10933 * gdb_usleep.c: Ditto.
10934 * i386-darwin-tdep.c: Ditto.
10935 * i386fbsd-nat.c: Ditto.
10937 * inferior.c: Ditto.
10938 * jv-lang.c: Ditto.
10939 * linux-nat.c: Ditto.
10940 * linux-tdep.c: Ditto.
10941 * m68kbsd-nat.c: Ditto.
10942 * m68klinux-nat.c: Ditto.
10943 * microblaze-tdep.c: Ditto.
10944 * mips-linux-tdep.c: Ditto.
10945 * mn10300-tdep.c: Ditto.
10946 * nto-tdep.c: Ditto.
10947 * opencl-lang.c: Ditto.
10949 * printcmd.c: Ditto.
10950 * regcache.c: Ditto.
10951 * remote-m32r-sdi.c: Ditto.
10953 * symfile.c: Ditto.
10955 * tilegx-linux-nat.c: Ditto.
10956 * tilegx-tdep.c: Ditto.
10957 * tracepoint.c: Ditto.
10959 * vaxbsd-nat.c: Ditto.
10960 * windows-nat.c: Ditto.
10961 * xtensa-tdep.c: Ditto.
10963 2014-01-07 Yao Qi <yao@codesourcery.com>
10965 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10967 2014-01-07 Yao Qi <yao@codesourcery.com>
10968 Joel Brobecker <brobecker@adacore.com>
10970 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10971 (pdc_write_regs): Likewise.
10972 (fetch_regs_kernel_thread): Likewise.
10973 (store_regs_kernel_thread): Likewise.
10975 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10977 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10978 tagged type objects to their actual type.
10980 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10982 * ada-valprint.c (print_field_values): Add "language" parameter.
10983 Update calls to print_field_values and print_variant_part.
10984 Pass new parameter "language" in call to val_print instead
10985 of "current_language". Replace call to ada_val_print by call
10987 (print_variant_part): Add "language" parameter.
10988 (ada_val_print_struct_union): Update call to print_field_values.
10990 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10992 * ada-valprint.c (ui_memcpy): Delete.
10993 (ada_print_floating): Update documentation. Add empty line
10994 between between function documentation and implementation.
10995 Delete variable "buffer". Use ui_file_xstrdup in place of
10996 ui_file_put. Minor adjustments following this change.
10998 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11000 * ada-valprint.c (ada_val_print_string): New function,
11001 extracted from ada_val_print_array.
11002 (ada_val_print_array): Replace extracted code by call
11003 to ada_val_print_string followed by a return. Move
11004 "else" branch to the function's top block.
11006 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11008 * ada-valprint.c (ada_val_print_array): Move implementation
11009 down. Rename parameter "offset" and "val" into "offset_aligned"
11010 and "original_value" respectively. Add parameter "offset".
11012 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11014 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
11015 re-organizing the code. Change the "???" message printed
11016 when target type is a TYPE_CODE_UNDEF into
11017 "<ref to undefined type>".
11019 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11021 * ada-valprint.c (print_record): Delete, implementation inlined...
11022 (ada_val_print_struct_union): ... here. Remove call to
11023 ada_check_typedef in inlined implementation.
11025 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11027 * ada-valprint.c (ada_val_print_gnat_array): New function,
11028 extracted from ada_val_print_1;
11029 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11030 (ada_val_print_flt, ada_val_print_struct_union)
11031 (ada_val_print_ref): Likewise.
11032 (ada_val_print_1): Delete variables i and elttype.
11033 Replace extracted-out code by call to corresponding
11036 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11038 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11040 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11042 * ada-valprint.c (ada_val_print_1): Replace calls to
11043 ada_val_print_1 by calls to val_print.
11045 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11047 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11048 Update calls to self accordingly. Replace calls to c_val_print
11049 by calls to val_print.
11051 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11053 * ada-valprint.c (print_record): Delete declaration.
11054 (adjust_type_signedness, ada_val_print_1): Likewise.
11055 (ada_val_print): Move function implementation down.
11056 (print_variant_part, print_field_values, print_record):
11057 Move function implementation up.
11059 2014-01-07 Joel Brobecker <brobecker@adacore.com>
11061 * python/py-type.c (typy_get_name): New function.
11062 (type_object_getset): Add entry for attribute "name".
11063 * NEWS: Add entry mentioning this new attribute.
11065 2014-01-07 Yao Qi <yao@codesourcery.com>
11067 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11070 2014-01-07 Yao Qi <yao@codesourcery.com>
11072 * gnu-nat.c (info_port_rights): Add qualifier const to
11075 2014-01-07 Yao Qi <yao@codesourcery.com>
11077 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11079 2014-01-07 Yao Qi <yao@codesourcery.com>
11081 * gnu-nat.c (make_inf) Update declaration.
11082 (make_inf): Make it static.
11083 (inf_set_traced): Likewise.
11084 (inf_port_to_thread, inf_task_died_status): Likewise.
11086 2014-01-07 Yao Qi <yao@codesourcery.com>
11088 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11090 2014-01-07 Yao Qi <yao@codesourcery.com>
11092 * gnu-nat.c (_initialize_gnu_nat): Declare.
11094 2014-01-07 Yao Qi <yao@codesourcery.com>
11096 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11098 (struct gdbarch_info) <byte_order>: Change type to
11100 <byte_order_for_code>: Likewise.
11101 * gdbarch.c, gdbarch.h: Regenerated.
11103 2014-01-06 Sasha Smundak <asmundak@google.com>
11105 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11107 2014-01-06 Tom Tromey <tromey@redhat.com>
11109 * doublest.c (convert_doublest_to_floatformat): Use const, not
11111 * somread.c (som_symtab_read): Likewise.
11113 2014-01-07 Hui Zhu <hui@codesourcery.com>
11115 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11116 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11117 (gdb_bfd_fopen): Ditto.
11118 (gdb_bfd_openr): Ditto.
11119 (gdb_bfd_openw): Ditto.
11120 (gdb_bfd_openr_iovec): Ditto.
11121 (gdb_bfd_fdopenr): Ditto.
11122 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11123 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11125 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11127 * symfile-mem.c (symbol_file_add_from_memory): Removed
11128 gdb_bfd_stash_filename.
11130 2014-01-03 Doug Evans <dje@google.com>
11132 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11135 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11137 Update year range in copyright notice of all files.
11139 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11141 * top.c (print_gdb_version): Set copyright year to 2014.
11143 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11145 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11147 For older changes see ChangeLog-2013.
11153 version-control: never