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