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