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