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