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