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