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