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