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