Add -momit_lock_prefix=[no|yes] option
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
af19829b
YQ
12014-08-06 Yao Qi <yao@codesourcery.com>
2
3 * amd64-linux-nat.c: Remove duplicated include
4 "x86-linux-nat.h".
5 * i386-linux-nat.c: Likewise.
6
8e07a239
YQ
72014-08-06 Yao Qi <yao@codesourcery.com>
8
9 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
10 operand" with "Special opcode" in comments.
11
7bfe8241
GB
122014-08-05 Gary Benson <gbenson@redhat.com>
13
14 * interps.c (initialize_interps): Remove prototype.
15 (interpreter_initialized): Remove static global.
16 (interp_add): Do not call initialize_interps.
17 (initialize_interps): Remove function.
18
d6c95504
GB
192014-08-05 Gary Benson <gbenson@redhat.com>
20
21 * utils.c (vwarning): Remove spurious va_end.
22
241fd515
AM
232014-08-05 Alan Modra <amodra@gmail.com>
24
25 * charset.c (convert_between_encodings): Cast result of obstack_base.
26 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
27 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
28 (read_unwind_info): Use size_t for some locals.
29 * jit.c (finalize_symtab): Likewise.
30 * utils.c (hashtab_obstack_allocate): Likewise.
31 * symmisc.c (print_objfile_statistics): Update format strings.
32
dc304a94
JK
332014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
34
35 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
36 (Changes in GDB 7.8): ... here.
37
3cecbbbe
TT
382014-08-04 Tom Tromey <tromey@redhat.com>
39
40 * target.c (set_targetdebug): New function.
41 (initialize_targets): Pass set_targetdebug when creating "set
42 debug target".
43
6908c509
JB
442014-08-01 Joel Brobecker <brobecker@adacore.com>
45
46 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
47 if detecting a variable-sized field that is not the last field.
48 Fix struct type length computation.
49
53e8f97d
JB
502014-08-01 Joel Brobecker <brobecker@adacore.com>
51
52 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
53 Add debug trace.
54
e068c55d
JB
552014-08-01 Joel Brobecker <brobecker@adacore.com>
56
57 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
58 Remove "+ 8" offset in computation of CHAIN_VMA.
59
4d4ca2a1
DE
602014-07-31 Doug Evans <dje@google.com>
61
62 * inflow.c (child_terminal_inferior): Add comment.
63 (child_terminal_ours_for_output): Add comment.
64 (child_terminal_ours): Add comment.
65 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
66 (linux_nat_terminal_ours): Add comment.
67
462f517e
GB
682014-07-31 Gary Benson <gbenson@redhat.com>
69
70 * common/btrace-common.h: Do not include defs.h or server.h.
71 * nat/mips-linux-watch.h: Likewise.
72 * gdb-dlfcn.h: Do not include defs.h.
73 * tracefile.h: Likewise.
74
74228e77
RM
752014-07-30 Roland McGrath <mcgrathr@google.com>
76
77 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
78
014f9477
TT
792014-07-30 Tom Tromey <tromey@redhat.com>
80
81 * bsd-kvm.c (bsd_kvm_open): Constify.
82 * corelow.c (core_open): Constify.
83 * ctf.c (ctf_open): Constify.
84 * dbug-rom.c (dbug_open): Constify.
85 * exec.c (exec_open): Constify.
86 * m32r-rom.c (m32r_open, mon2000_open): Constify.
87 * microblaze-rom.c (picobug_open): Constify.
88 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
89 Constify.
90 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
91 * record-btrace.c (record_btrace_open): Constify.
92 * record-full.c (record_full_core_open_1, record_full_open_1)
93 (record_full_open): Constify.
94 * remote-m32r-sdi.c (m32r_open): Constify.
95 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
96 (rockhopper_open, lsi_open): Constify.
97 * remote-sim.c (gdbsim_open): Constify.
98 * remote.c (remote_open, extended_remote_open, remote_open_1):
99 Constify.
100 * target.h (struct target_ops) <to_open>: Make "arg" const.
101 * tracefile-tfile.c (tfile_open): Constify.
102
e799154c
TT
1032014-07-30 Tom Tromey <tromey@redhat.com>
104
105 * breakpoint.c (map_breakpoint_numbers): Update.
106 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
107 (get_number_const): New function.
108 (get_number): Rewrite using get_number_const.
109 (init_number_or_range): Make "string" const.
110 (number_is_in_list): Make "list" const.
111 * cli/cli-utils.h (get_number_const): Declare.
112 (struct get_number_or_range_state) <string, end_ptr>: Now const.
113 (init_number_or_range, number_is_in_list): Update.
114 * printcmd.c (map_display_numbers): Update.
115 * value.c (value_from_history_ref): Constify.
116 * value.h (value_from_history_ref): Update.
117
5f08566b
TT
1182014-07-30 Tom Tromey <tromey@redhat.com>
119
120 * corefile.c (hook_type, call_extra_exec_file_hooks)
121 (specify_exec_file_hook): Constify.
122 * exec.c (exec_file_attach): Make "filename" const.
123 * gdbcore.h (deprecated_exec_file_display_hook)
124 (specify_exec_file_hook, exec_file_attach): Constify.
125 * main.c (captured_main): Use catch_command_errors_const.
126
8981c758
TT
1272014-07-30 Tom Tromey <tromey@redhat.com>
128
129 * target.c (open_target): New function.
130 (add_target_with_completer, add_deprecated_target_alias): Use
131 set_cmd_sfunc, set_cmd_context.
132 (debug_to_open): Remove.
133 (setup_target_debug): Update.
134
a1c7835a
YQ
1352014-07-30 Yao Qi <yao@codesourcery.com>
136
137 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
138 comments.
139 * parse.c (exp_iterate): Update comments.
140
976411d6
GB
1412014-07-30 Gary Benson <gbenson@redhat.com>
142
143 * common/common-defs.h: New file.
144 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
145 * defs.h: Include common-defs.h.
146 Do not include config.h or build-gnulib/config.h.
147
5d4848a4
GB
1482014-07-30 Gary Benson <gbenson@redhat.com>
149
150 * common/common-utils.h: Do not include config.h.
151 * nat/linux-btrace.h: Likewise.
152
d41f6d8e
GB
1532014-07-30 Gary Benson <gbenson@redhat.com>
154
155 * btrace.c: Include defs.h.
156 * common/ptid.c: Include defs.h or server.h as appropriate.
157 * nat/mips-linux-watch.c: Likewise.
158
84202f9c
TT
1592014-07-29 Tom Tromey <tromey@redhat.com>
160
161 * target.c (target_is_pushed): Simplify.
162
2530441c
JB
1632014-07-29 Joel Brobecker <brobecker@adacore.com>
164
165 GDB 7.8 released.
166
7e09a223
YQ
1672014-07-29 Yao Qi <yao@codesourcery.com>
168
169 PR gdb/17206
170 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
171
7ebdbe92
DE
1722014-07-28 Doug Evans <xdje42@gmail.com>
173
174 PR guile/17203
175 * guile/scm-param.c (pascm_parameter_defined_p): New function.
176 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
177 parameters.
178
f347ffc9
WN
1792014-07-28 Will Newton <will.newton@linaro.org>
180
181 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
182 (THUMB2_SET_R7_SIGRETURN2): Likewise.
183 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
184 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
185 (THUMB2_EABI_SYSCALL): Likewise.
186 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
187 struct tramp_frame.
188 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
189 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
190
37c5f1f7
DE
1912014-07-27 Doug Evans <xdje42@gmail.com>
192
193 * guile/scm-param.c (pascm_print_param_smob): Fix output.
194
0c3abbc7
DE
1952014-07-27 Doug Evans <xdje42@gmail.com>
196
197 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
198
e76c5d17
DE
1992014-07-26 Ludovic Courtès <ludo@gnu.org>
200 Doug Evans <xdje42@gmail.com>
201
202 PR guile/17146
203 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
204 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
205 * configure.ac: Try to use guild to compile an scm file, if it fails
206 then disable guile support.
207 * configure: Regenerate.
208 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
209 GUILE_FILE_LIST.
210 (GUILE_COMPILED_FILES): New variable.
211 (GUILE_FILES) Update.
212 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
213 (stamp-guile): Compile scm files.
214 * guile/guile.c (boot_guile_support): New function.
215 (standard_throw_args_p): New function.
216 (print_standard_throw_error, print_throw_error): New functions.
217 (handle_boot_error): New function.
218 (initialize_scheme_side): Rewrite to call boot_guile_support.
219 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
220 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
221
186fcde0
DE
2222014-07-26 Ludovic Courtès <ludo@gnu.org>
223 Doug Evans <xdje42@gmail.com>
224
225 PR guile/17146
226 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
227 * guile/lib/gdb/support.scm: New file.
228 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
229 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
230 All uses updated.
231 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
232 All uses updated.
233 (%assert-type): Ditto, and renamed to assert-type.
234 (%exception-print-style): Delete.
235
4df42755
DE
2362014-07-26 Doug Evans <xdje42@gmail.com>
237
238 PR build/17105
239 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
240 * configure: Regenerate.
241 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
242 PYTHON_FILES.
243 (PYTHON_FILES): New variable.
244 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
245 (GUILE_FILES): New variable.
246 (stamp-python, install-python, uninstall-python): Handle empty
247 file list.
248 (stamp-guile, install-guile, uninstall-guile): Ditto.
249
ee7333ae
DE
2502014-07-26 Doug Evans <xdje42@gmail.com>
251
252 PR guile/17177
253 * guile/lib/gdb.scm (pretty-printers): Export.
254 (set-pretty-printers!): Export.
255 * guile/lib/gdb/printing.scm (gdb module): Update.
256 (prepend-pretty-printer!, append-pretty-printer!): Update.
257 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
258 (pretty_printer_list_var): Delete.
259 (pretty_printer_list): New static global.
260 (gdbscm_pretty_printers): New function.
261 (gdbscm_set_pretty_printers_x): New function.
262 (ppscm_find_pretty_printer_from_gdb): Update.
263 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
264 (gdbscm_initialize_pretty_printers): Update.
265
74edf516
DE
2662014-07-26 Doug Evans <xdje42@gmail.com>
267
268 PR 17185
269 * configure.ac: Add check for header gc/gc.h.
270 Add check for function setenv.
271 * configure: Regenerate.
272 * config.in: Regenerate.
273 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
274
d54398a7
MR
2752014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
276
277 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
278 variation in gdbarch matching.
279
ab16fce8
TT
2802014-07-25 Tom Tromey <tromey@redhat.com>
281
282 * exec.c (using_exec_ops): Remove.
283 (exec_close_1): Update. Remove extraneous block, reindent.
284 (add_target_sections): Use target_is_pushed.
285
88056fbb
PA
2862014-07-25 Pedro Alves <palves@redhat.com>
287
288 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
289 * monitor.c (monitor_create_inferior): Likewise.
290 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
291 * remote-sim.c (gdbsim_create_inferior): Likewise.
292 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
293 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
294 * windows-nat.c (do_initial_windows_stuff): Likewise.
295
70509625
PA
2962014-07-25 Pedro Alves <palves@redhat.com>
297
298 * NEWS: Mention signal passing and "signal" command changes.
299 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
300 comment.
301 * breakpoint.c (until_break_command): Adjust clear_proceed_status
302 call.
303 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
304 * infcmd.c (proceed_thread_callback, continue_1, step_once)
305 (jump_command): Adjust clear_proceed_status call.
306 (signal_command): Warn if other thread that are resumed have
307 signals that will be delivered. Adjust clear_proceed_status call.
308 (until_next_command, finish_command)
309 (proceed_after_attach_callback, attach_command_post_wait)
310 (attach_command): Adjust clear_proceed_status call.
311 * infrun.c (proceed_after_vfork_done): Likewise.
312 (proceed_after_attach_callback): Adjust comment.
313 (clear_proceed_status_thread): Clear stop_signal if not in pass
314 state.
315 (clear_proceed_status_callback): Delete.
316 (clear_proceed_status): New 'step' parameter. Only clear the
317 proceed status of threads the command being prepared is about to
318 resume.
319 (proceed): If passed in an explicit signal, override stop_signal
320 with it. Don't pass the last stop signal to the thread we're
321 resuming.
322 (init_wait_for_inferior): Adjust clear_proceed_status call.
323 (switch_back_to_stepped_thread): Clear the signal if it should not
324 be passed.
325 * infrun.h (clear_proceed_status): New 'step' parameter.
326 (user_visible_resume_ptid): Add comment.
327 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
328 signal is in pass state.
329 * remote.c (append_pending_thread_resumptions): Likewise.
330 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
331
d8be2939
TT
3322014-07-25 Tom Tromey <tromey@redhat.com>
333
334 * target.h (target_stopped_data_address)
335 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
336 parentheses.
337
7d0d9d2b
PL
3382014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
339
340 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
341 comments.
342 (avr_pointer_to_address): Likewise.
343
e9e7f724
TT
3442014-07-24 Tom Tromey <tromey@redhat.com>
345
346 * monitor.c (compile_pattern): Update.
347 * target.h (struct target_ops) <to_shortname, to_longname,
348 to_doc>: Now const.
349
1947513d
TT
3502014-07-24 Tom Tromey <tromey@redhat.com>
351
352 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
353 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
354 (add_info_alias, add_com): Make "doc" const.
355 (print_doc_line): Make "str" const.
356 (delete_cmd): Update.
357 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
358 (print_doc_line): Update.
359 * cli/cli-script.c (document_command): Update.
360 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
361 (add_com, add_info, add_info_alias): Update.
362 * guile/scm-cmd.c (cmdscm_destroyer): Update.
363 * python/py-cmd.c (cmdpy_destroyer): Update.
364
64e61d29
TT
3652014-07-24 Tom Tromey <tromey@redhat.com>
366
367 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
368 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
369 (help_cmd_list): Constify.
370 (lookup_cmd): Update.
371 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
372 const.
373 (help_cmd_list, apropos_cmd): Update.
374 * cli/cli-script.c (show_user): Update.
375 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
376 * cli/cli-setshow.h (cmd_show_list): Update.
377 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
378 (cmd_show_list): Update.
379 * guile/scm-cmd.c (cmdscm_destroyer): Update.
380 * python/py-cmd.c (cmdpy_destroyer): Update.
381
429e55ea
TT
3822014-07-24 Tom Tromey <tromey@redhat.com>
383
384 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
385 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
386 const.
387 * command.h (deprecate_cmd): Update.
388 * maint.c (maintenance_do_deprecate): Add casts.
389
64669f3b
TT
3902014-07-24 Tom Tromey <tromey@redhat.com>
391
392 * cli/cli-decode.c (help_cmd): Make parameter "const".
393 * cli/cli-decode.h (help_cmd): Update.
394
d3d3328b
TT
3952014-07-24 Tom Tromey <tromey@redhat.com>
396
397 * stack.c (up_silently_base, down_silently_base): Make argument
398 const.
399
414842dc
TT
4002014-07-24 Tom Tromey <tromey@redhat.com>
401
402 * solib.c (solib_add): Make "pattern" const.
403 * solib.h (solib_add): Update.
404
baa336ce
TT
4052014-07-24 Tom Tromey <tromey@redhat.com>
406
407 * remote.c (remote_serial_open, print_packet, putpkt)
408 (putpkt_binary): Constify.
409 * remote.h (putpkt): Update.
410
5a19e2d0
TT
4112014-07-24 Tom Tromey <tromey@redhat.com>
412
413 * monitor.c (monitor_open): Make "args" const.
414 * monitor.h (monitor_open): Update.
415
fc4baa5e
TT
4162014-07-24 Tom Tromey <tromey@redhat.com>
417
418 * maint.c (match_bfd_flags): Make "string" const.
419 (print_bfd_section_info): Remove casts.
420 (print_objfile_section_info): Make "string" const.
421
0d5f0dbe
TT
4222014-07-24 Tom Tromey <tromey@redhat.com>
423
424 * inf-child.c (inf_child_open_target): Make "arg" const.
425 * inf-child.h (inf_child_open_target): Update.
426
41c77899
TT
4272014-07-24 Tom Tromey <tromey@redhat.com>
428
429 * environ.c (unset_in_environ): Make "var" const.
430 * environ.h (unset_in_environ): Update.
431
93db0d79
TT
4322014-07-24 Tom Tromey <tromey@redhat.com>
433
434 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
435 Make "cmd" const.
436 (scan_filename_with_cleanup): Likewise.
437 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
438 Make arguments const.
439 (restore_command): Update.
440
36d6eb95
PA
4412014-07-24 Pedro Alves <palves@redhat.com>
442
443 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
444
8009206a
TT
4452014-07-24 Tom Tromey <tromey@redhat.com>
446 Gary Benson <gbenson@redhat.com>
447
448 * nat/linux-ptrace.c (additional_flags): New global.
449 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
450 additional_flags; don't check GDBSERVER.
451 (linux_ptrace_set_additional_flags): New function.
452 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
453 Declare.
454 * linux-nat.c (_initialize_linux_nat): Call
455 linux_ptrace_set_additional_flags.
456
a7068b60
TT
4572014-07-24 Tom Tromey <tromey@redhat.com>
458
459 * make-target-delegates (munge_type, write_debugmethod): New
460 functions.
461 (debug_names): New global.
462 ($TARGET_DEBUG_PRINTER): New global.
463 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
464 name.
465 Write debug methods. Generate init_debug_target.
466 * target-debug.h: New file.
467 * target-delegates.c: Rebuild.
468 * target.c: Include target-debug.h.
469 (debug_target): Hoist definition.
470 (target_kill, target_get_section_table, target_memory_map)
471 (target_flash_erase, target_flash_done, target_detach)
472 (target_disconnect, target_wait, target_resume)
473 (target_pass_signals, target_program_signals, target_follow_fork)
474 (target_mourn_inferior, target_search_memory)
475 (target_thread_address_space, target_close)
476 (target_find_new_threads, target_core_of_thread)
477 (target_verify_memory, target_insert_mask_watchpoint)
478 (target_remove_mask_watchpoint): Remove targetdebug code.
479 (debug_to_post_attach, debug_to_prepare_to_store)
480 (debug_to_files_info, debug_to_insert_breakpoint)
481 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
482 (debug_to_region_ok_for_hw_watchpoint)
483 (debug_to_can_accel_watchpoint_condition)
484 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
485 (debug_to_watchpoint_addr_within_range)
486 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
487 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
488 (debug_to_terminal_init, debug_to_terminal_inferior)
489 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
490 (debug_to_terminal_save_ours, debug_to_terminal_info)
491 (debug_to_load, debug_to_post_startup_inferior)
492 (debug_to_insert_fork_catchpoint)
493 (debug_to_remove_fork_catchpoint)
494 (debug_to_insert_vfork_catchpoint)
495 (debug_to_remove_vfork_catchpoint)
496 (debug_to_insert_exec_catchpoint)
497 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
498 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
499 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
500 (setup_target_debug): Call init_debug_target.
501 * target.h (TARGET_DEBUG_PRINTER): New macro.
502 (struct target_ops) <to_resume, to_wait, to_pass_signals,
503 to_program_signals>: Use TARGET_DEBUG_PRINTER.
504
2c51604d
GB
5052014-07-24 Gary Benson <gbenson@redhat.com>
506
507 * exceptions.h (throw_vfatal): Renamed to...
508 (throw_vquit): New declaration.
509 (throw_quit): Likewise.
510 * exceptions.c (throw_vfatal): Renamed to...
511 (throw_vquit): New function.
512 (throw_quit): Likewise.
513 (throw_error): Call throw_verror rather than throw_it.
514 * utils.h (vfatal): Removed.
515 (fatal): Likewise.
516 * utils.c (vfatal): Removed.
517 (fatal): Likewise.
518 (internal_verror): Replaced call to fatal with call to throw_quit.
519 (quit): Replaced calls to fatal with calls to throw_quit.
520
34211963
ME
5212014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
522
523 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
524 target_read_code.
525
a52b4d3e
ME
5262014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
527
528 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
529 less than zero in conditional expression.
530
a8bdc56b
TT
5312014-07-23 Tom Tromey <tromey@redhat.com>
532
533 * make-target-delegates ($ARGS_PART): Match trailing close paren.
534 ($INTRO_PART): Don't match whitespace.
535 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
536 argument matching.
537 ($METHOD): Add $METHOD_TRAILER.
538 (trim): Rewrite.
539 (scan_target_h): New sub.
540 Change main loop not to collect state.
541 * target-delegates.c: Rebuild.
542
91b52240
GB
5432014-07-23 Gary Benson <gbenson@redhat.com>
544
545 * cp-support.c (gdb_demangle): Fix build on systems without
546 sigaltstack.
547
45326f6f
JK
5482014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
549
550 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
551 for reference entry value target data value.
552
e214cf6c
JK
5532014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
554
555 * stack.c (read_frame_arg): Verify value_optimized_out before calling
556 value_available_contents_eq.
557
bddbbedd
PA
5582014-07-22 Pedro Alves <palves@redhat.com>
559
560 * value.c (allocate_optimized_out_value): Don't mark value as
561 non-lazy.
562
45c71484
JW
5632014-07-22 Jiong Wang <jiong.wang@arm.com>
564
565 * MAINTAINERS (Write After Approval): Update my email address.
566
9597b22a
DE
5672014-07-20 Doug Evans <dje@google.com>
568
569 PR server/17147
570 * remote.c (putpkt_binary): Add text to error message.
571
91101fe5
YQ
5722014-07-20 Yao Qi <yao@codesourcery.com>
573
574 * eval.c: Remove "Chill" from comments.
575 * gdbtypes.h: Likewise.
576 * symtab.h: Likewise.
577
c9402c95
YQ
5782014-07-20 Yao Qi <yao@codesourcery.com>
579
580 * std-operator.def: Update comments to TERNOP_SLICE.
581
ae8fddda
YQ
5822014-07-20 Yao Qi <yao@codesourcery.com>
583
584 * std-operator.def: Remove BINOP_RANGE.
585 * breakpoint.c (watchpoint_exp_is_const): Update.
586 * expprint.c (dump_subexp_body_standard): Likewise.
587 * eval.c (init_array_element): Remove dead code.
588 (evaluate_subexp_standard): Likewise.
589
9c816640
YQ
5902014-07-20 Yao Qi <yao@codesourcery.com>
591
592 * std-operator.def: Remove BINOP_IN.
593 * breakpoint.c (watchpoint_exp_is_const): Update.
594 * eval.c (evaluate_subexp_standard): Likewise.
595 * expprint.c (dump_subexp_body_standard): Likewise.
596
164224e9
ME
5972014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
598
599 * microblaze-tdep.c (microblaze_register_names): Add
600 the rshr and rslr register names.
601 (microblaze_gdbarch_init): Use of tdesc_has_registers.
602 Use of tdesc_find_feature. Use of tdesc_data_alloc.
603 Use of tdesc_numbered_register. Use of
604 microblaze_register_g_packet_guesses. Use of
605 tdesc_use_registers. Use of set_gdbarch_register_type.
606 (microblaze_register_g_packet_guesses): New.
607 * microblaze-tdep.h (microblaze_reg_num): Add
608 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
609 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
610 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
611 * features/microblaze-core.xml: New file.
612 * features/microblaze-stack-protect.xml: New file.
613 * features/microblaze-with-stack-protect.c: New file.
614 * features/microblaze-with-stack-protect.xml: New file.
615 * features/microblaze.xml: New file.
616 * features/microblaze.c: New file.
617 * features/Makefile (microblaze-with-stack-protect): Add
618 microblaze-with-stack-protect microblaze and microblaze-expedite.
619 * regformats/microblaze-with-stack-protect.dat: New file.
620 * regformats/microblaze.dat: New file.
621 * doc/gdb.texinfo (MicroBlaze Features): Added.
622
e8b2341c
TT
6232014-07-18 Tom Tromey <tromey@redhat.com>
624
625 * exec.c (exec_ops): Now static.
626 * exec.h (exec_ops): Don't declare.
627
44e89118
TT
6282014-07-18 Tom Tromey <tromey@redhat.com>
629
630 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
631 to find_target_beneath.
632 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
633 find_target_beneath.
634 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
635
b0ed115f
TT
6362014-07-18 Tom Tromey <tromey@redhat.com>
637
638 PR gdb/17130:
639 * utils.c (quit): Use target_supports_terminal_ours.
640 * target.h (target_supports_terminal_ours): Declare.
641 * target.c (target_supports_delete_record): Don't check
642 to_delete_record against NULL.
643 (target_supports_terminal_ours): New function.
644
e75fdfca
TT
6452014-07-18 Tom Tromey <tromey@redhat.com>
646
647 PR gdb/17130:
648 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
649 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
650 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
651 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
652 * windows-nat.c (windows_xfer_partial): Always delegate.
653 * record-btrace.c (record_btrace_xfer_partial): Simplify
654 delegation.
655 (record_btrace_fetch_registers, record_btrace_store_registers)
656 (record_btrace_prepare_to_store, record_btrace_resume)
657 (record_btrace_wait, record_btrace_find_new_threads)
658 (record_btrace_thread_alive): Likewise.
659 * procfs.c (procfs_xfer_partial): Always delegate.
660 * corelow.c (core_xfer_partial): Always delegate.
661 * sol-thread.c (sol_find_new_threads): Simplify delegation.
662
83814951
TT
6632014-07-18 Tom Tromey <tromey@redhat.com>
664
665 * exec.c (exec_make_note_section): Move earlier.
666
b8b8facf
DE
6672014-07-17 Doug Evans <dje@google.com>
668
74b49205 669 PR gdb/17170
b8b8facf
DE
670 * maint.c (count_symtabs_and_blocks): Handle NULL
671 current_program_space.
672 (report_command_stats): Check global enabled flag in addition to
673 recorded enabled flag.
674 (make_command_stats_cleanup): Handle msg_type == 0, startup.
675
69ff6be5
PA
6762014-07-16 Pedro Alves <palves@redhat.com>
677
678 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
679
252db1b5
TT
6802014-07-16 Tom Tromey <tromey@redhat.com>
681
682 * target.h (struct target_ops) <to_delete_record>: Reformat
683 comment.
684
a432721e
TT
6852014-07-16 Tom Tromey <tromey@redhat.com>
686
687 * target-delegates.c: Rebuild.
688
487d9753
PL
6892014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
690
691 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
692 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
693 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
694 (avr_pointer_to_address): Likewise.
695 (avr_address_class_type_flags): New function.
696 (avr_address_class_type_flags_to_name): Likewise.
697 (avr_address_class_name_to_type_flags): Likewise.
698 (avr_gdbarch_init): Set address_class_type_flags,
699 address_class_type_flags_to_name and
700 address_class_name_to_type_flags.
701
57745c90
PA
7022014-07-15 Pedro Alves <palves@redhat.com>
703
704 * linux-nat.c (kill_callback): Save errno and work with saved
705 copy.
706
2d40be18
SM
7072014-07-15 Simon Marchi <simon.marchi@ericsson.com>
708
709 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
710
572f6555
EBM
7112014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
712
713 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
714 breakpoint support correctly.
715
cc1c52ad
PA
7162014-07-14 Pedro Alves <palves@redhat.com>
717
718 * utils.c (prompt_for_continue): Call target_terminal_ours.
719
1e973570
PA
7202014-07-14 Pedro Alves <palves@redhat.com>
721
722 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
723 catch_errors. Don't re-enable stdin or notify observers where,
724 and rethrow error.
725 (fetch_inferior_event_wrapper): Delete.
726
93d6eb10
PA
7272014-07-14 Pedro Alves <palves@redhat.com>
728
729 PR gdb/17072
730 * top.c: Include "inf-loop.h".
731 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
732 field.
733 (gdb_readline_wrapper_cleanup): Make the target async again, if it
734 was async before.
735 (gdb_readline_wrapper): Store whether the target is async, and
736 make it sync.
737
0017922d
PA
7382014-07-14 Pedro Alves <palves@redhat.com>
739
740 PR gdb/17072
741 * top.c (gdb_readline_wrapper_line): Tweak comment.
742 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
743 the input handler callback.
744
94696ad3
PA
7452014-07-14 Pedro Alves <palves@redhat.com>
746
747 PR gdb/17072
748 * main.c: Include event-top.h.
749 (handle_command_errors): New function.
750 (catch_command_errors, catch_command_errors_const): Use it.
751
9d1e69a2
PA
7522014-07-14 Pedro Alves <palves@redhat.com>
753
754 * exceptions.c (catch_command_errors, catch_command_errors_const):
755 Moved to main.c.
756 * exceptions.h (catch_command_errors_ftype)
757 (catch_command_errors_const_ftype): Moved to main.c.
758 (catch_command_errors, catch_command_errors_const): Delete
759 declarations.
760 * main.c (catch_command_errors_ftype)
761 (catch_command_errors_const_ftype): Moved here from exceptions.h.
762 (catch_command_errors, catch_command_errors_const)): Moved here
763 from exceptions.c and make static.
764
feefc97b
PA
7652014-07-14 Pedro Alves <palves@redhat.com>
766
767 * exceptions.c (print_any_exception): Delete.
768 (catch_exceptions_with_msg): Use exception_print instead of
769 print_any_exception.
770 (catch_errors): Use exception_fprintf instead of
771 print_any_exception.
772 (catch_command_errors, catch_command_errors_const): Use
773 exception_print instead of print_any_exception.
774
c933f875
PA
7752014-07-14 Pedro Alves <palves@redhat.com>
776
777 * infcall.c (run_inferior_call): Set 'sync_execution' while
778 running the inferior call.
779
feb6f816
PA
7802014-07-14 Pedro Alves <palves@redhat.com>
781
782 * value.c (value_contents_equal): Delete function.
783 * value.h (value_contents_equal): Delete declaration.
784
d98b7a16
TT
7852014-07-14 Tom Tromey <tromey@redhat.com>
786
787 PR exp/17106:
788 * gdbtypes.c (is_dynamic_type_internal): New function, from
789 is_dynamic_type.
790 (is_dynamic_type): Rewrite.
791 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
792 (resolve_dynamic_struct): Likewise.
793 (resolve_dynamic_type_internal): New function, from
794 resolve_dynamic_type.
795 (resolve_dynamic_type): Rewrite.
796
548740d6
TT
7972014-07-14 Tom Tromey <tromey@redhat.com>
798
799 * target.c (target_require_runnable): Also check record_stratum.
800 Update comment.
801
808f7ab1
YQ
8022014-07-11 Yao Qi <yao@codesourcery.com>
803
804 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
805 thumb_instruction_restores_sp return true.
806
540314bd
YQ
8072014-07-11 Yao Qi <yao@codesourcery.com>
808
809 * arm-tdep.c (thumb_instruction_restores_sp): New function.
810 (thumb_in_function_epilogue_p): Call
811 thumb_instruction_restores_sp.
812
1db01f22
YQ
8132014-07-11 Yao Qi <yao@codesourcery.com>
814
815 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
816 'add sp, #imm'.
817 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
818
3116063b
GB
8192014-07-11 Gary Benson <gbenson@redhat.com>
820
821 * amd64-linux-nat.c (gdbcore.h): Remove include.
822 (regset.h): Likewise.
823 (nat/linux-btrace.h): Likewise.
824 (btrace.h): Likewise.
825 (gdb_assert.h): Likewise.
826 (string.h): Likewise.
827 (sys/uio.h): Likewise.
828 (sys/debugreg.h): Likewise.
829 (sys/syscall.h): Likewise.
830 (sys/procfs.h): Likewise.
831 (sys/user.h): Likewise.
832 (asm/ptrace.h): Likewise.
833 (i386-nat.h): Likewise.
834 * i386-linux-nat.c (i386-nat.h): Likewise.
835 (regset.h): Likewise.
836 (target.h): Likewise.
837 (linux-nat.h): Likewise.
838 (nat/linux-btrace.h): Likewise.
839 (btrace.h): Likewise.
840 (gdb_assert.h): Likewise.
841 (string.h): Likewise.
842 (sys/uio.h): Likewise.
843 (sys/user.h): Likewise.
844 (sys/procfs.h): Likewise.
845 (sys/reg.h): Likewise.
846 (sys/debugreg.h): Likewise.
847 (ORIG_EAX): Remove definition.
848
040baaf6
GB
8492014-07-11 Gary Benson <gbenson@redhat.com>
850
851 * i386-linux-nat.h: New file.
852 * x86-linux-nat.h: Likewise.
853 * x86-linux-nat.c: Likewise.
854 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
855 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
856 * config/i386/linux64.mh (NATDEPFILES): Likewise.
857 * amd64-linux-nat.c (x86-linux-nat.h): New include.
858 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
859 (PTRACE_SETREGSET): Likewise.
860 (arch_lwp_info): Now in x86-linux-nat.c.
861 (have_ptrace_getregset): Now in x86-linux-nat.h.
862 (x86_linux_dr_get): Now in x86-linux-nat.c.
863 (x86_linux_dr_set): Likewise.
864 (x86_linux_dr_get_addr): Likewise.
865 (x86_linux_dr_get_control): Likewise.
866 (x86_linux_dr_get_status): Likewise.
867 (update_debug_registers_callback): Likewise.
868 (x86_linux_dr_set_control): Likewise.
869 (x86_linux_dr_set_addr): Likewise.
870 (x86_linux_prepare_to_resume): Likewise.
871 (x86_linux_new_thread): Likewise.
872 (x86_linux_new_fork): Likewise.
873 (x86_linux_get_thread_area): Likewise.
874 (super_post_startup_inferior): Likewise.
875 (x86_linux_child_post_startup_inferior): Likewise.
876 (AMD64_LINUX_USER64_CS): Likewise.
877 (AMD64_LINUX_X32_DS): Likewise.
878 (x86_linux_read_description): Likewise.
879 (x86_linux_enable_btrace): Likewise.
880 (x86_linux_disable_btrace): Likewise.
881 (x86_linux_teardown_btrace): Likewise.
882 (x86_linux_read_btrace): Likewise.
883 (x86_linux_create_target): Likewise.
884 (x86_linux_add_target): Likewise.
885 * i386-linux-nat.c (x86-linux-nat.h): New include.
886 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
887 (PTRACE_SETREGSET): Likewise.
888 (arch_lwp_info): Now in x86-linux-nat.c.
889 (have_ptrace_getregset): Now in x86-linux-nat.h.
890 (x86_linux_dr_get): Now in x86-linux-nat.c.
891 (x86_linux_dr_set): Likewise.
892 (x86_linux_dr_get_addr): Likewise.
893 (x86_linux_dr_get_control): Likewise.
894 (x86_linux_dr_get_status): Likewise.
895 (update_debug_registers_callback): Likewise.
896 (x86_linux_dr_set_control): Likewise.
897 (x86_linux_dr_set_addr): Likewise.
898 (x86_linux_prepare_to_resume): Likewise.
899 (x86_linux_new_thread): Likewise.
900 (x86_linux_new_fork): Likewise.
901 (x86_linux_get_thread_area): Likewise.
902 (super_post_startup_inferior): Likewise.
903 (x86_linux_child_post_startup_inferior): Likewise.
904 (AMD64_LINUX_USER64_CS): Likewise.
905 (AMD64_LINUX_X32_DS): Likewise.
906 (x86_linux_read_description): Likewise.
907 (x86_linux_enable_btrace): Likewise.
908 (x86_linux_disable_btrace): Likewise.
909 (x86_linux_teardown_btrace): Likewise.
910 (x86_linux_read_btrace): Likewise.
911 (x86_linux_create_target): Likewise.
912 (x86_linux_add_target): Likewise.
913
1aa7e42c
GB
9142014-07-11 Gary Benson <gbenson@redhat.com>
915
916 * amd64-linux-nat.c: Comment and whitespace changes.
917 * i386-linux-nat.c: Comment and whitespace changes.
918
c1e246a0
GB
9192014-07-11 Gary Benson <gbenson@redhat.com>
920
921 * amd64-linux-nat.c (x86_linux_create_target): New function.
922 (x86_linux_add_target): Likewise.
923 (_initialize_amd64_linux_nat): Delegate to the above new functions.
924 * i386-linux-nat.c (x86_linux_create_target): New function.
925 (x86_linux_add_target): Likewise.
926 (_initialize_i386_linux_nat): Delegate to the above new functions.
927
8c420b8d
GB
9282014-07-11 Gary Benson <gbenson@redhat.com>
929
930 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
931 (ps_get_thread_area): Delegate to the above in 32-bit mode.
932 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
933 (ps_get_thread_area): Delegate to the above.
934
cb1da100
GB
9352014-07-11 Gary Benson <gbenson@redhat.com>
936
937 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
938 x86_linux_read_description. All uses updated. amd64-specific
939 code conditionalized. Conditionalized i386-specific code added.
940 Redundant cast removed.
941 * i386-linux-nat.c (i386_linux_read_description): Renamed to
942 x86_linux_read_description. All uses updated. i386-specific
943 code conditionalized. Conditionalized amd64-specific code added.
944 One sizeof replaced with the actual type it is describing.
945
2acf3cd0
GB
9462014-07-11 Gary Benson <gbenson@redhat.com>
947
948 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
949 x86_linux_dr_get. All uses updated.
950 (amd64_linux_dr_set): Renamed to
951 x86_linux_dr_set. All uses updated.
952 (amd64_linux_dr_get_addr): Renamed to
953 x86_linux_dr_get_addr. All uses updated.
954 (amd64_linux_dr_get_control): Renamed to
955 x86_linux_dr_get_control. All uses updated.
956 (amd64_linux_dr_get_status): Renamed to
957 x86_linux_dr_get_status. All uses updated.
958 (amd64_linux_dr_set_control): Renamed to
959 x86_linux_dr_set_control. All uses updated.
960 (amd64_linux_dr_set_addr): Renamed to
961 x86_linux_dr_set_addr. All uses updated.
962 (amd64_linux_prepare_to_resume): Renamed to
963 x86_linux_prepare_to_resume. All uses updated.
964 (amd64_linux_new_thread): Renamed to
965 x86_linux_new_thread. All uses updated.
966 (amd64_linux_new_fork): Renamed to
967 x86_linux_new_fork. All uses updated.
968 (amd64_linux_child_post_startup_inferior): Renamed to
969 x86_linux_child_post_startup_inferior. All uses updated.
970 (amd64_linux_enable_btrace): Renamed to
971 x86_linux_enable_btrace. All uses updated.
972 (amd64_linux_disable_btrace): Renamed to
973 x86_linux_disable_btrace. All uses updated.
974 (amd64_linux_teardown_btrace): Renamed to
975 x86_linux_teardown_btrace. All uses updated.
976 (amd64_linux_read_btrace): Renamed to
977 x86_linux_read_btrace. All uses updated.
978 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
979 x86_linux_dr_get. All uses updated.
980 (i386_linux_dr_set): Renamed to
981 x86_linux_dr_set. All uses updated.
982 (i386_linux_dr_get_addr): Renamed to
983 x86_linux_dr_get_addr. All uses updated.
984 (i386_linux_dr_get_control): Renamed to
985 x86_linux_dr_get_control. All uses updated.
986 (i386_linux_dr_get_status): Renamed to
987 x86_linux_dr_get_status. All uses updated.
988 (i386_linux_dr_set_control): Renamed to
989 x86_linux_dr_set_control. All uses updated.
990 (i386_linux_dr_set_addr): Renamed to
991 x86_linux_dr_set_addr. All uses updated.
992 (i386_linux_prepare_to_resume): Renamed to
993 x86_linux_prepare_to_resume. All uses updated.
994 (i386_linux_new_thread): Renamed to
995 x86_linux_new_thread. All uses updated.
996 (i386_linux_new_fork): Renamed to
997 x86_linux_new_fork. All uses updated.
998 (i386_linux_child_post_startup_inferior): Renamed to
999 x86_linux_child_post_startup_inferior. All uses updated.
1000 (i386_linux_enable_btrace): Renamed to
1001 x86_linux_enable_btrace. All uses updated.
1002 (i386_linux_disable_btrace): Renamed to
1003 x86_linux_disable_btrace. All uses updated.
1004 (i386_linux_teardown_btrace): Renamed to
1005 x86_linux_teardown_btrace. All uses updated.
1006 (i386_linux_read_btrace): Renamed to
1007 x86_linux_read_btrace. All uses updated.
1008
b9c1d481
AS
10092014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1010
1011 * remote.c (extended_remote_post_attach): New function.
1012 (init_extended_remote_ops): Install it as to_post_attach method.
1013
7180e04a
PA
10142014-07-09 Pedro Alves <palves@redhat.com>
1015
1016 * infcmd.c (attach_command_post_wait): Don't call
1017 target_terminal_inferior here.
1018 (attach_command): Call it here instead.
1019
9a9a7608
AB
10202014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1021
1022 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1023 field.
1024 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1025 from varobj.c, with additional checks.
1026 (c_varobj_ops): Fill in is_path_expr_parent field.
1027 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1028 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1029 field.
1030 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1031 ops method.
1032 (varobj_default_is_path_expr_parent): New function.
1033 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1034 (varobj_default_is_path_expr_parent): Declare new function.
1035
1f267ae3
MM
10362014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1037
1038 * infcmd.c (finish_backward): Turn internal error into normal error.
1039
b2ee242b
PA
10402014-07-07 Pedro Alves <palves@redhat.com>
1041
8a869bca 1042 PR gdb/17096
b2ee242b
PA
1043 * remote.c (async_handle_remote_sigint)
1044 (async_handle_remote_sigint_twice): Call
1045 gdb_call_async_signal_handler instead of
1046 mark_async_signal_handler.
1047
38e229b2
TT
10482014-07-07 Tom Tromey <tromey@redhat.com>
1049
1050 * target-delegates.c: Rebuild.
1051 * target.c (target_info_record): Remove.
1052 * record.c (info_record_command): Unconditionally call
1053 to_info_record.
1054 * target.h (struct target_ops) <to_info_record>: Use
1055 TARGET_DEFAULT_IGNORE.
1056 (target_info_record): Remove.
1057
f0f9ff95
TT
10582014-07-07 Tom Tromey <tromey@redhat.com>
1059
1060 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1061 TARGET_DEFAULT_NORETURN.
1062 * target.c (generic_tls_error): New function.
1063 (target_translate_tls_address): Don't search target stack.
1064 * target-delegates.c: Rebuild.
1065 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1066 stack.
1067 * linux-thread-db.c (thread_db_get_thread_local_address):
1068 Unconditionally call beneath target.
1069
4a5be5ee
MK
10702014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1071
1072 * cli/cli-logging.c (pop_output_files): Assign targerr to
1073 gdb_stdtargerr.
1074
92c3b204
AB
10752014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1076
1077 * MAINTAINERS (Write After Approval): Update my email address.
1078
9b11e3a7
GB
10792014-07-02 Gary Benson <gbenson@redhat.com>
1080
1081 * proc-service.c (ps_xfer_memory): Update comment.
1082 (ps_pstop): Remove unused function.
1083 (ps_pcontinue): Likewise.
1084 (ps_lstop): Likewise.
1085 (ps_lcontinue): Likewise.
1086 (ps_lgetxregsize): Likewise.
1087 (ps_lgetxregs): Likewise.
1088 (ps_lsetxregs): Likewise.
1089 (ps_plog): Likewise.
1090 (ps_ptread): Likewise.
1091 (ps_ptwrite): Likewise.
1092
cf363f18
MW
10932014-07-01 Mark Wielaard <mjw@redhat.com>
1094
1095 * dwarf2read.c (add_array_cv_type): New function.
1096 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1097 (read_tag_volatile_type): Likewise.
1098
82ae6c8d
TT
10992014-07-01 Tom Tromey <tromey@redhat.com>
1100
1101 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1102 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1103 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1104 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1105 * command.h (cmd_cfunc_ftype): Move earlier.
1106 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1107 (add_com, add_info): Use cmd_cfunc_ftype.
1108
96142726
TT
11092014-06-30 Tom Tromey <tromey@redhat.com>
1110
1111 * symtab.c (operator_chars): Make parameters and return type
1112 const.
1113 (file_matches): Make "files" const.
1114 (struct search_symbols_data) <files>: Now const.
1115 (search_symbols): Make "regexp" and "files" parameters const.
1116 Update.
1117 (symtab_symbol_info): Remove cast.
1118 (rbreak_command): Update.
1119 * symtab.h (search_symbols): Update.
1120
b67a2c6f
YQ
11212014-06-27 Yao Qi <yao@codesourcery.com>
1122
1123 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1124 Change parameter type to 'struct thread_info *'. Caller
1125 updated.
1126 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1127 Update declaration.
1128 * dummy-frame.c (struct dummy_frame_id): New.
1129 (dummy_frame_id_eq): New function.
1130 (struct dummy_frame) <id>: Change its type to 'struct
1131 dummy_frame_id'.
1132 (dummy_frame_push): Add parameter ptid and save it in
1133 dummy_frame_id.
1134 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1135 inferior_ptid.
1136 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1137 to inferior_ptid.
1138 (lookup_dummy_frame): Change parameter type to 'struct
1139 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1140 instead of frame_id_eq.
1141 (dummy_frame_pop): Add parameter ptid. Callers updated.
1142 Update comments. Compose dummy_frame_id and pass it to
1143 lookup_dummy_frame.
1144 (dummy_frame_discard): Add parameter ptid.
1145 (dummy_frame_sniffer): Compose dummy_frame_id and call
1146 dummy_frame_id_eq instead of frame_id_eq.
1147 (fprint_dummy_frames): Print ptid.
1148 * dummy-frame.h: Remove comments.
1149 (dummy_frame_push): Add ptid in declaration.
1150 (dummy_frame_pop, dummy_frame_discard): Likewise.
1151
5b10184c
TT
11522014-06-26 Tom Tromey <tromey@redhat.com>
1153
1154 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1155 * command.h (error_no_arg): Update.
1156
06900326
TT
11572014-06-26 Tom Tromey <tromey@redhat.com>
1158
1159 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1160 (do_show_command): Make "arg" const.
1161 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1162
c2bcbb1d
TT
11632014-06-26 Tom Tromey <tromey@redhat.com>
1164
1165 * record-full.c (record_full_get_bookmark): Make "args" const.
1166 (record_full_goto_bookmark): Make "raw_bookmark" const.
1167 * record.c (record_goto): New function.
1168 (cmd_record_goto): Use it. Now static.
1169 * record.h (record_goto): Declare.
1170 (cmd_record_goto): Remove declaration.
1171 * target-delegates.c: Rebuild.
1172 * target.h (struct target_ops) <to_get_bookmark,
1173 to_goto_bookmark>: Make parameter const.
1174
9cbe5fff
TT
11752014-06-26 Tom Tromey <tromey@redhat.com>
1176
1177 * defs.h (generic_load): Update.
1178 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1179 * monitor.c (monitor_load): Make "args" const.
1180 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1181 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1182 const.
1183 (mips_load): Make "file" const.
1184 * remote-sim.c (gdbsim_load): Make "args" const.
1185 * remote.c (remote_load): Make "name" const.
1186 * symfile.c (generic_load): Make "args" const.
1187 * target-delegates.c: Rebuild.
1188 * target.c (target_load): Make "arg" const.
1189 (debug_to_load): Make "args" const.
1190 * target.h (struct target_ops) <to_load>: Make parameter const.
1191 (target_load): Update.
1192
34a68019
TT
11932014-06-26 Tom Tromey <tromey@redhat.com>
1194
1195 PR symtab/16902:
1196 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1197 (dwarf2_physname, read_partial_die)
1198 (guess_partial_die_structure_name, fixup_partial_die)
1199 (guess_full_die_structure_name, anonymous_struct_prefix)
1200 (dwarf2_name): Use per-BFD obstack.
1201
efc889c1
YQ
12022014-06-26 Yao Qi <yao@codesourcery.com>
1203
1204 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1205 dummyframe and this_id into inner block below.
1206
4395285e
YQ
12072014-06-26 Yao Qi <yao@codesourcery.com>
1208
1209 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1210 with "signal_pass[0]" in the initialization of signal_pass.
1211
aef92902
MM
12122014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1213
1214 * record-btrace.c (record_btrace_generating_corefile)
1215 (record_btrace_prepare_to_generate_core)
1216 (record_btrace_done_generating_core): New.
1217 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1218 (record_btrace_store_registers, record_btrace_prepare_to_store):
1219 Forward request when generating a core file.
1220 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1221 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1222 to_done_generating_core.
1223
5fff78c4
MM
12242014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1225
1226 * target.h (target_ops) <to_prepare_to_generate_core>
1227 <to_done_generating_core>: New.
1228 (target_prepare_to_generate_core, target_done_generating_core): New.
1229 * target.c (target_prepare_to_generate_core)
1230 (target_done_generating_core): New.
1231 * target-delegates.c: Regenerate.
1232 * gcore.c: (write_gcore_file): Rename to ...
1233 (write_gcore_file_1): ...this.
1234 (write_gcore_file): Call target_prepare_to_generate_core
1235 and target_done_generating_core.
1236
1d1f1ccb
MM
12372014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1238
1239 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1240 * gcore.c (write_gcore_file): Free memory returned from
1241 make_corefile_notes.
1242 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1243 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1244
3343ef86
YQ
12452014-06-24 Yao Qi <yao@codesourcery.com>
1246
1247 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1248 (arm_linux_init_abi): Set skip_trampoline_code with
1249 gdbarch_skip_trampoline_code instead of
1250 find_solib_trampoline_target.
1251
18d18ac8
YQ
12522014-06-24 Yao Qi <yao@codesourcery.com>
1253
1254 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1255 arm_skip_bx_reg returns non-zero.
1256
80d8d390
YQ
12572014-06-24 Yao Qi <yao@codesourcery.com>
1258
1259 * arm-tdep.c (arm_skip_bx_reg): New function.
1260 (arm_skip_stub): Call arm_skip_bx_reg.
1261
6a18a01c
DB
12622014-06-23 Don Breazeal <donb@codesourcery.com>
1263
1264 * MAINTAINERS: Add myself as write-after-approval maintainer.
1265
8e9db26e
PA
12662014-06-23 Pedro Alves <palves@redhat.com>
1267
1268 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1269 DR_CONTROL before setting DR0..DR3.
1270 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1271 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1272 bits of DR_CONTROL related to the debug register slot being
1273 disabled. If all slots are vacant, clear local slowdown as well,
1274 and assert DR_CONTROL is 0.
1275
70afc5b7
SC
12762014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1277
1278 * python/lib/gdb/command/xmethods.py
1279 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1280 current progspace only if the string "progspace" matches LOCUS_RE.
1281
840ed64d
JK
12822014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1283
1284 Fix --with-system-readline with readline-6.3 patch 5.
1285 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1286 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1287 types.
1288
26f2dc30
TT
12892014-06-20 Tom Tromey <tromey@redhat.com>
1290
1291 * dwarf2read.c (dw2_get_real_path): Use correct type in
1292 OBSTACK_CALLOC.
1293 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1294
125f8a3d
GB
12952014-06-20 Gary Benson <gbenson@redhat.com>
1296
1297 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1298 * common/glibc_thread_db.h: Likewise.
1299 * common/i386-cpuid.h: Likewise.
1300 * common/i386-gcc-cpuid.h: Likewise.
1301 * common/linux-btrace.h: Likewise.
1302 * common/linux-osdata.h: Likewise.
1303 * common/linux-procfs.h: Likewise.
1304 * common/linux-ptrace.h: Likewise.
1305 * common/mips-linux-watch.h: Likewise.
1306 * common/linux-btrace.c: Moved to nat.
1307 * common/linux-osdata.c: Likewise.
1308 * common/linux-procfs.c: Likewise.
1309 * common/linux-ptrace.c: Likewise.
1310 * common/mips-linux-watch.c: Likewise.
1311 * nat/gdb_thread_db.h: Moved from common.
1312 * nat/glibc_thread_db.h: Likewise.
1313 * nat/i386-cpuid.h: Likewise.
1314 * nat/i386-gcc-cpuid.h: Likewise.
1315 * nat/linux-btrace.c: Likewise.
1316 * nat/linux-btrace.h: Likewise.
1317 * nat/linux-osdata.c: Likewise.
1318 * nat/linux-osdata.h: Likewise.
1319 * nat/linux-procfs.c: Likewise.
1320 * nat/linux-procfs.h: Likewise.
1321 * nat/linux-ptrace.c: Likewise.
1322 * nat/linux-ptrace.h: Likewise.
1323 * nat/mips-linux-watch.c: Likewise.
1324 * nat/mips-linux-watch.h: Likewise.
1325 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1326 (object file files): Reordered.
1327 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1328 of glibc_thread_db.h.
1329
42995dbd
GB
13302014-06-20 Gary Benson <gbenson@redhat.com>
1331
1332 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1333 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1334 (i386_dr_low): Likewise.
1335 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1336 (i386_dr_low_set_addr): Likewise.
1337 (i386_dr_low_get_addr): Likewise.
1338 (i386_dr_low_can_set_control): Likewise.
1339 (i386_dr_low_set_control): Likewise.
1340 (i386_dr_low_get_control): Likewise.
1341 (i386_dr_low_get_status): Likewise.
1342 (i386_get_debug_register_length): Likewise.
1343 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1344 (i386_dr_low): Likewise.
1345 * nat/i386-dregs.c (i386-low.h): Remove include.
1346 (i386-nat.h): Likewise.
1347 (nat/i386-dregs.h): New include.
1348 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1349 (i386_dr_low_set_addr): Likewise.
1350 (i386_dr_low_get_addr): Likewise.
1351 (i386_dr_low_can_set_control): Likewise.
1352 (i386_dr_low_set_control): Likewise.
1353 (i386_dr_low_get_control): Likewise.
1354 (i386_dr_low_get_status): Likewise.
1355 (i386_get_debug_register_length): Likewise.
1356 (debug_hw_points): Likewise.
1357
3ed9baed
IB
13582014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1359
1360 * Makefile.in (SFILES): Add d-exp.y.
1361 (YYFILES): Add d-exp.c.
1362 (YYOBJ): Add d-exp.o.
1363 (local-maintainer-clean): Delete d-exp.c.
1364 * d-exp.y: New file.
1365 * d-lang.h (d_parse): New declaration.
1366 (d_error): New declaration.
1367 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1368 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1369 PREC_ORDER operators.
1370 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1371
78c164b0
YQ
13722014-06-19 Yao Qi <yao@codesourcery.com>
1373
1374 * gdbthread.h (any_running): Remove the declaration.
1375 * thread.c (any_running): Remove.
1376
f6e29b6e
YQ
13772014-06-19 Yao Qi <yao@codesourcery.com>
1378
1379 * gdbthread.h (struct thread_info) <state>: Change its type to
1380 'enum thread_state'. Update comments.
1381
034f788c
PA
13822014-06-19 Pedro Alves <palves@redhat.com>
1383
1384 * gdbthread.h (ALL_THREADS): Delete.
1385 (ALL_NON_EXITED_THREADS): New macro.
1386 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1387 instead of ALL_THREADS.
1388 * infrun.c (find_thread_needs_step_over)
1389 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1390 instead of ALL_THREADS.
1391 * record-btrace.c (record_btrace_open)
1392 (record_btrace_stop_recording, record_btrace_close)
1393 (record_btrace_is_replaying, record_btrace_resume)
1394 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1395 * remote.c (append_pending_thread_resumptions): Likewise.
1396 * thread.c (thread_apply_all_command): Likewise.
1397
46e33252
GB
13982014-06-19 Gary Benson <gbenson@redhat.com>
1399
1400 * i386-nat.c (i386_stopped_by_watchpoint):
1401 Use i386_dr_stopped_by_watchpoint.
1402 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1403 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1404
3a8ee006
GB
14052014-06-19 Gary Benson <gbenson@redhat.com>
1406
1407 * nat/i386-dregs.c: New file.
1408 * Makefile.in (i386-dregs.o): New rule.
1409 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1410 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1411 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1412 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1413 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1414 * config/i386/go32.mh (NATDEPFILES): Likewise.
1415 * config/i386/linux.mh (NATDEPFILES): Likewise.
1416 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1417 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1418 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1419 * i386-nat.h (debug_hw_points): New declaration.
1420 * i386-nat.c (breakpoint.h): Remove include.
1421 (command.h): Likewise.
1422 (target.h): Likewise.
1423 (gdb_assert.h): Likewise.
1424 (debug_hw_points): Made nonstatic.
1425 (debug_printf): Now in i386-dregs.c.
1426 (TARGET_HAS_DR_LEN_8): Likewise.
1427 (DR_CONTROL_SHIFT): Likewise.
1428 (DR_CONTROL_SIZE): Likewise.
1429 (DR_RW_EXECUTE): Likewise.
1430 (DR_RW_WRITE): Likewise.
1431 (DR_RW_READ): Likewise.
1432 (DR_RW_IORW): Likewise.
1433 (DR_LEN_1): Likewise.
1434 (DR_LEN_2): Likewise.
1435 (DR_LEN_4): Likewise.
1436 (DR_LEN_8): Likewise.
1437 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1438 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1439 (DR_ENABLE_SIZE): Likewise.
1440 (DR_LOCAL_SLOWDOWN): Likewise.
1441 (DR_GLOBAL_SLOWDOWN): Likewise.
1442 (DR_CONTROL_RESERVED): Likewise.
1443 (I386_DR_CONTROL_MASK): Likewise.
1444 (I386_DR_VACANT): Likewise.
1445 (I386_DR_LOCAL_ENABLE): Likewise.
1446 (I386_DR_GLOBAL_ENABLE): Likewise.
1447 (I386_DR_DISABLE): Likewise.
1448 (I386_DR_SET_RW_LEN): Likewise.
1449 (I386_DR_GET_RW_LEN): Likewise.
1450 (I386_DR_WATCH_HIT): Likewise.
1451 (i386_wp_op_t): Likewise.
1452 (i386_show_dr): Likewise.
1453 (i386_length_and_rw_bits): Likewise.
1454 (i386_insert_aligned_watchpoint): Likewise.
1455 (i386_remove_aligned_watchpoint): Likewise.
1456 (i386_handle_nonaligned_watchpoint): Likewise.
1457 (i386_update_inferior_debug_regs): Likewise.
1458 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1459 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1460 (i386_region_ok_for_watchpoint):
1461 Use i386_dr_region_ok_for_watchpoint.
1462 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1463
322a8e06
GB
14642014-06-19 Gary Benson <gbenson@redhat.com>
1465
1466 * i386-nat.c (i386_insert_hw_breakpoint): Use
1467 i386_insert_watchpoint.
1468 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1469
8f26655c
GB
14702014-06-19 Gary Benson <gbenson@redhat.com>
1471
1472 * i386-nat.c (i386_dr_show): Renamed to
1473 i386_show_dr and made static. All uses updated.
1474 (i386_dr_length_and_rw_bits): Renamed to
1475 i386_length_and_rw_bits and made static.
1476 All uses updated.
1477 (i386_dr_insert_aligned_watchpoint): Renamed to
1478 i386_insert_aligned_watchpoint and made static.
1479 All uses updated.
1480 (i386_dr_remove_aligned_watchpoint): Renamed to
1481 i386_remove_aligned_watchpoint and made static.
1482 All uses updated.
1483 (i386_dr_update_inferior_debug_regs): Renamed to
1484 i386_update_inferior_debug_regs and made static.
1485 All uses updated.
1486 * nat/i386-dregs.h (i386_dr_show): Removed.
1487 (i386_dr_length_and_rw_bits): Likewise.
1488 (i386_dr_insert_aligned_watchpoint): Likewise.
1489 (i386_dr_remove_aligned_watchpoint): Likewise.
1490 (i386_dr_update_inferior_debug_regs): Likewise.
1491
992c7d70
GB
14922014-06-19 Gary Benson <gbenson@redhat.com>
1493
1494 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1495 * configure: Regenerate.
1496 * config.in: Likewise.
1497 * main.c (signal.h): New include.
1498 (setup_alternate_signal_stack): New function.
1499 (captured_main): Call the above.
1500 * cp-support.c (signal.h): New include.
1501 (catch_demangler_crashes): New flag.
1502 (SIGJMP_BUF): New define.
1503 (SIGSETJMP): Likewise.
1504 (SIGLONGJMP): Likewise.
1505 (gdb_demangle_jmp_buf): New static global.
1506 (gdb_demangle_attempt_core_dump): Likewise.
1507 (gdb_demangle_signal_handler): New function.
1508 (gdb_demangle): If catch_demangler_crashes is set, install the
1509 above signal handler before calling bfd_demangle, and restore
1510 the original signal handler afterwards. Display the offending
1511 symbol and call demangler_warning the first time a segmentation
1512 fault is caught.
1513 (_initialize_cp_support): New maint set/show command.
1514
eae7090b
GB
15152014-06-19 Gary Benson <gbenson@redhat.com>
1516
1517 * utils.h (resource_limit_kind): New enum.
1518 (can_dump_core): New declaration.
1519 (warn_cant_dump_core): Likewise.
1520 (dump_core): Likewise.
1521 * utils.c (dump_core): Made nonstatic. Added new
1522 parameter "limit_kind".
1523 (can_dump_core): Made nonstatic. Moved printing code to...
1524 (warn_cant_dump_core): New function.
1525 (can_dump_core_warn): Likewise.
1526 (internal_vproblem): Replace calls to can_dump_core with
1527 calls to can_dump_core_warn. Supply new argument to each.
1528
57fcfb1b
GB
15292014-06-19 Gary Benson <gbenson@redhat.com>
1530
1531 * utils.h (demangler_vwarning): New declaration.
1532 (demangler_warning): Likewise.
1533 * utils.c (struct internal_problem)
1534 <user_settable_should_quit>: New field.
1535 <user_settable_should_dump_core>: Likewise
1536 (internal_error_problem): Add values for above new fields.
1537 (internal_warning_problem): Likewise.
1538 (demangler_warning_problem): New static global.
1539 (demangler_vwarning): New function.
1540 (demangler_warning): Likewise.
1541 (add_internal_problem_command): Selectively add commands.
1542 (_initialize_utils): New internal problem command.
1543 * maint.c (maintenance_demangler_warning): New function.
1544 (_initialize_maint_cmds): New command.
1545
17a40b44
TT
15462014-06-18 Tom Tromey <tromey@redhat.com>
1547
1548 * f-valprint.c (info_common_command_for_block): Update.
1549 * symtab.h (struct general_symbol_info) <common_block>: Now
1550 const.
1551
346d1dfe
TT
15522014-06-18 Tom Tromey <tromey@redhat.com>
1553
1554 * symtab.h (struct symtab) <blockvector>: Now const.
1555 * ada-lang.c (ada_add_global_exceptions): Update.
1556 * buildsym.c (augment_type_symtab): Update.
1557 * dwarf2read.c (dw2_lookup_symbol): Update.
1558 * jit.c (finalize_symtab): Update.
1559 * jv-lang.c (add_class_symtab_symbol): Update.
1560 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1561 Update.
1562 * objfiles.c (objfile_relocate1): Update.
1563 * psymtab.c (lookup_symbol_aux_psymtabs)
1564 (maintenance_check_psymtabs): Update.
1565 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1566 Update.
1567 * spu-tdep.c (spu_catch_start): Update.
1568 * symmisc.c (dump_symtab_1): Update.
1569 * symtab.c (lookup_global_symbol_from_objfile)
1570 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1571 (basic_lookup_transparent_type_quick)
1572 (basic_lookup_transparent_type, find_pc_sect_symtab)
1573 (find_pc_sect_line, search_symbols): Update.
1574 * block.c (find_block_in_blockvector): Make "bl" const.
1575 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1576 const.
1577 (blockvector_contains_pc): Make "bv" const.
1578 (block_for_pc_sect): Update.
1579 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1580 (blockvector_contains_pc): Update.
1581 * breakpoint.c (resolve_sal_pc): Update.
1582 * inline-frame.c (block_starting_point_at): Update.
1583
1834676b
TT
15842014-06-18 Tom Tromey <tromey@redhat.com>
1585
1586 * completer.c (complete_line): Make "line_buffer" const.
1587 * completer.h (complete_line): Update.
1588
ac1a991b
TT
15892014-06-18 Tom Tromey <tromey@redhat.com>
1590
1591 * symtab.c (add_macro_name): Remove unneeded cast.
1592
5bc98e52
TT
15932014-06-18 Tom Tromey <tromey@redhat.com>
1594
1595 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1596 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1597
8236def8
TT
15982014-06-18 Tom Tromey <tromey@redhat.com>
1599
1600 * probe.c (info_probes_for_ops): Make "arg" const.
1601 * probe.h (info_probes_for_ops): Update.
1602
3977b71f
TT
16032014-06-18 Tom Tromey <tromey@redhat.com>
1604
1605 * varobj.c (varobj_create): Update.
1606 * valops.c (value_of_this): Update.
1607 * tracepoint.c (add_local_symbols, scope_info): Update.
1608 * symtab.h (struct general_symbol_info) <block>: Now const.
1609 * symtab.c (skip_prologue_sal)
1610 (default_make_symbol_completion_list_break_on)
1611 (skip_prologue_using_sal): Update.
1612 * stack.h (iterate_over_block_locals)
1613 (iterate_over_block_local_vars): Update.
1614 * stack.c (print_frame_args): Update.
1615 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1616 parameter const.
1617 (get_selected_block): Make return type const.
1618 * python/py-frame.c (frapy_block): Update.
1619 * python/py-block.c (gdbpy_block_for_pc): Update.
1620 * p-exp.y (%union) <bval>: Now const.
1621 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1622 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1623 * m2-exp.y (%union) <bval>: Now const.
1624 * linespec.c (get_current_search_block): Make return type const.
1625 (create_sals_line_offset, find_label_symbols): Update.
1626 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1627 Update.
1628 (block_starting_point_at): Make "block" const.
1629 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1630 (check_exception_resume): Update.
1631 * guile/scm-frame.c (gdbscm_frame_block): Update.
1632 * guile/scm-block.c (gdbscm_lookup_block): Update.
1633 * frame.h (get_frame_block): Update.
1634 (get_selected_block): Make return type const.
1635 * frame.c (frame_id_inner): Update.
1636 * f-valprint.c (info_common_command_for_block)
1637 (info_common_command): Update.
1638 * dwarf2loc.c (dwarf2_find_location_expression)
1639 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1640 (locexpr_describe_location_piece): Update.
1641 * c-exp.y (%union) <bval>: Now const.
1642 * breakpoint.c (resolve_sal_pc): Update.
1643 * blockframe.c (get_frame_block):Make return type const.
1644 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1645 (block_innermost_frame): Update.
1646 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1647 (block_for_pc, block_for_pc_sect): Update.
1648 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1649 'pblock' const.
1650 (block_for_pc_sect, block_for_pc): Make return type const.
1651 * ax-gdb.c (gen_expr): Update.
1652 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1653 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1654 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1655 (ada_read_var_value): Update.
1656 * ada-exp.y (struct name_info) <block>: Now const.
1657 (%union): Likewise.
1658 (block_lookup): Constify.
1659
b9228891
GB
16602014-06-18 Gary Benson <gbenson@redhat.com>
1661
1662 * nat/i386-dregs.h: New file.
1663 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1664 * i386-nat.h (i386-dregs.h): New include.
1665 (DR_FIRSTADDR): Now in i386-dregs.h.
1666 (DR_LASTADDR): Likewise.
1667 (DR_NADDR): Likewise.
1668 (DR_STATUS): Likewise.
1669 (DR_CONTROL): Likewise.
1670 (i386_debug_reg_state): Likewise.
1671 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1672
a1aa2221
LM
16732014-06-18 Don Breazeal <donb@codesourcery.com>
1674
1675 * breakpoint.c (set_longjmp_breakpoint): Call
1676 momentary_breakpoint_from_master with additional argument.
1677 (set_longjmp_breakpoint_for_call_dummy): Call
1678 momentary_breakpoint_from_master with additional argument.
1679 (set_std_terminate_breakpoint): Call
1680 momentary_breakpoint_from_master with additional argument.
1681 (momentary_breakpoint_from_master): Add argument to function
1682 definition and use it to initialize structure member flag.
74228e77 1683 (clone_momentary_breakpoint): Call
a1aa2221
LM
1684 momentary_breakpoint_from_master with additional argument.
1685 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1686 member flags set in momentary_breakpoint_from_master.
1687
4be83cc2
GB
16882014-06-18 Gary Benson <gbenson@redhat.com>
1689
1690 * i386-nat.c (i386_show_dr): Renamed to
1691 i386_dr_show and made nonstatic. All uses updated.
1692 (i386_length_and_rw_bits): Renamed to
1693 i386_dr_length_and_rw_bits and made nonstatic.
1694 All uses updated.
1695 (i386_insert_aligned_watchpoint): Renamed to
1696 i386_dr_insert_aligned_watchpoint and made nonstatic.
1697 All uses updated.
1698 (i386_remove_aligned_watchpoint): Renamed to
1699 i386_dr_remove_aligned_watchpoint and made nonstatic.
1700 All uses updated.
1701 (i386_update_inferior_debug_regs): Renamed to
1702 i386_dr_update_inferior_debug_regs and made nonstatic.
1703 All uses updated.
1704
131aa0d4
GB
17052014-06-18 Gary Benson <gbenson@redhat.com>
1706
1707 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1708 (i386_dr_low_can_set_control): Likewise.
1709 (i386_dr_low_set_addr): Likewise.
1710 (i386_dr_low_set_control): Likewise.
1711 (i386_dr_low_get_addr): Likewise.
1712 (i386_dr_low_get_status): Likewise.
1713 (i386_dr_low_get_control): Likewise.
1714 (i386_insert_aligned_watchpoint): Use new macros.
1715 (i386_update_inferior_debug_regs): Likewise.
1716 (i386_stopped_data_address): Likewise.
1717
d9305f7f
GB
17182014-06-18 Gary Benson <gbenson@redhat.com>
1719
1720 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1721 New parameter. All uses updated.
1722
ea008da4
GB
17232014-06-18 Gary Benson <gbenson@redhat.com>
1724
1725 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1726 All uses updated.
1727
1b6d4134
GB
17282014-06-18 Gary Benson <gbenson@redhat.com>
1729
1730 * i386-nat.c (debug_printf): New macro.
1731 (i386_get_debug_register_length): Likewise.
1732 (TARGET_HAS_DR_LEN_8): Use above macro.
1733 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1734 and printf_unfiltered. Use phex to format values.
1735
9b4550ef
GB
17362014-06-18 Gary Benson <gbenson@redhat.com>
1737
1738 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1739 Make const.
1740
6e62758f
GB
17412014-06-18 Gary Benson <gbenson@redhat.com>
1742
1743 * i386-nat.c: Comment changes.
1744
51c79e94
GB
17452014-06-18 Gary Benson <gbenson@redhat.com>
1746
1747 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1748
3e11889a
GB
17492014-06-18 Gary Benson <gbenson@redhat.com>
1750
1751 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1752 (i386_insert_aligned_watchpoint): Likewise.
1753 (i386_remove_aligned_watchpoint): Likewise.
1754 (i386_handle_nonaligned_watchpoint): Likewise.
1755
fc6e2f03
GB
17562014-06-18 Gary Benson <gbenson@redhat.com>
1757
1758 * i386-nat.c: Whitespace changes.
1759
2afe7d50
SB
17602014-06-17 Samuel Bronson <naesten@gmail.com>
1761
1762 * MAINTAINERS: Update Roland McGrath's email address.
1763 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 1764 Red Hat a while ago, and giving me a current address.
2afe7d50 1765
3bca49ee
TT
17662014-06-17 Tom Tromey <tromey@redhat.com>
1767
1768 * utils.h (savestring): Remove declaration.
1769
6e366df1
TT
17702014-06-17 Tom Tromey <tromey@redhat.com>
1771
1772 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1773
6be47f0c
KS
17742014-06-16 Keith Seitz <keiths@redhat.com>
1775
1776 PR mi/15863
1777 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1778 to update the varobj if inferior_ptid is null_ptid.
1779
7bc112c1
TT
17802014-06-16 Tom Tromey <tromey@redhat.com>
1781
1782 * target.h (struct target_ops) <to_info_proc>: Make parameter
1783 const.
1784 (target_info_proc): Update.
1785 * target.c (target_info_proc): Make "args" const.
1786 * procfs.c (procfs_info_proc): Update.
1787 * linux-tdep.c (linux_info_proc): Update.
1788 (linux_core_info_proc_mappings): Make "args" const.
1789 (linux_core_info_proc): Update.
1790 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1791 * gdbarch.c: Rebuild.
1792 * gdbarch.h: Rebuild.
1793 * corelow.c (core_info_proc): Update.
1794
fee354ee
TT
17952014-06-16 Tom Tromey <tromey@redhat.com>
1796
1797 * target.h (struct target_ops) <to_disconnect>: Make parameter
1798 const.
1799 (target_disconnect): Update.
1800 * target.c (target_disconnect): Make "args" const.
1801 * target-delegates.c: Rebuild.
1802 * remote.c (remote_disconnect): Update.
1803 * record.h (record_disconnect): Update.
1804 * record.c (record_disconnect): Update.
1805 * inf-child.c (inf_child_disconnect): Update.
1806
a30bf1f1
TT
18072014-06-16 Tom Tromey <tromey@redhat.com>
1808
1809 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1810 * target.c (debug_to_rcmd, default_rcmd): Update.
1811 * target-delegates.c: Rebuild.
1812 * remote.c (remote_rcmd): Update.
1813 * monitor.c (monitor_rcmd): Update.
1814
d03de421
PA
18152014-06-16 Pedro Alves <palves@redhat.com>
1816
1817 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1818 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1819 have OBJF_SHARED set.
1820 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1821 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1822 instead of OBJF_USERLOADED.
1823 * objfiles.h (OBJF_SHARED): Update comment.
1824 (userloaded_objfile_contains_address_p): Rename to ...
1825 (shared_objfile_contains_address_p): ... this, and update
1826 comments.
1827 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1828 new objfile.
1829 (remove_symbol_file_command): Skip objfiles that don't have
1830 OBJF_SHARED set.
1831
99f4262f
TT
18322014-06-16 Tom Tromey <tromey@redhat.com>
1833
1834 * minsyms.h (prim_record_minimal_symbol)
1835 (prim_record_minimal_symbol_and_info): Update comments.
1836
97d66cc6
EZ
18372014-06-14 Eli Zaretskii <eliz@gnu.org>
1838
1839 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1840 or --without-guile, according to how GDB was built.
1841
635c7e8a
TT
18422014-06-13 Tom Tromey <tromey@redhat.com>
1843
1844 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1845 to help_list.
1846 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1847 to help_list.
1848 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1849 help_list.
1850 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1851 help_list.Pass all_commands, not -1, to help_list.
1852 * cli/cli-dump.c (dump_command, append_command)
1853 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1854 (binary_dump_command, binary_append_command): Pass all_commands,
1855 not -1, to help_list.
1856 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1857 -1, to help_list.
1858 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1859 -1, to help_list.
1860 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1861 help_list.
1862 * top.c (set_history): Pass all_commands, not -1, to help_list.
1863 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1864 all_commands, not -1, to help_list.
1865 * symfile.c (overlay_command): Pass all_commands, not -1, to
1866 help_list.
1867 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1868 help_list.
1869 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1870 help_list.
1871 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1872 -1, to help_list.
1873 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1874 not -1, to help_list.
1875 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1876 not -1, to help_list.
1877 * maint.c (maintenance_command, maintenance_info_command)
1878 (maintenance_print_command, maintenance_set_cmd): Pass
1879 all_commands, not -1, to help_list.
1880 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1881 help_list.
1882 * language.c (set_check): Pass all_commands, not -1, to help_list.
1883 * infcmd.c (unset_command): Pass all_commands, not -1, to
1884 help_list.
1885 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1886 help_list.
1887 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1888 help_list.
1889 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1890 help_list.
1891 * breakpoint.c (save_command): Pass all_commands, not -1, to
1892 help_list.
1893 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1894 all_commands, not -1, to help_list.
1895
b94ade42
PL
18962014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1897
1898 * regcache.c (struct register_to_invalidate): New structure.
1899 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1900 functions.
1901 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1902
31f628ae
YQ
19032014-06-12 Yao Qi <yao@codesourcery.com>
1904
1905 * varobj.c (varobj_get_num_children): Call
1906 varobj_is_dynamic_p.
1907 (varobj_list_children): Likewise.
1908 (varobj_update): Likewise. Update comments.
1909
cde5ef40
YQ
19102014-06-12 Yao Qi <yao@codesourcery.com>
1911
1912 * varobj.c (varobj_pretty_printed_p): Rename to ...
1913 (varobj_is_dynamic_p): ... this. New function.
1914 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1915 (varobj_is_dynamic_p): Declare.
1916 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1917 (mi_print_value_p, varobj_update_one): Likewise.
1918
576ea091
YQ
19192014-06-12 Pedro Alves <pedro@codesourcery.com>
1920 Yao Qi <yao@codesourcery.com>
1921
1922 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1923 (varobj_get_iterator): Wrap up code for pretty-printer by
1924 "#if HAVE_PYTHON" and "#endif".
1925 (update_dynamic_varobj_children): Likewise.
1926
827f100c
YQ
19272014-06-12 Pedro Alves <pedro@codesourcery.com>
1928 Yao Qi <yao@codesourcery.com>
1929
1930 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1931 gdb_python_initialized is false. Move some code from varobj.c.
1932 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1933 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1934 (struct varobj_item): Moved to varobj-iter.h".
1935 (varobj_clear_saved_item): New function.
1936 (update_dynamic_varobj_children): Move python-related code to
1937 py-varobj.c.
1938 (free_variable): Call varobj_clear_saved_item and
1939 varobj_iter_delete.
1940
e5250216
YQ
19412014-06-12 Pedro Alves <pedro@codesourcery.com>
1942 Yao Qi <yao@codesourcery.com>
1943
1944 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1945 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1946 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1947 (py-varobj.o): New rule.
1948 * python/py-varobj.c: New file.
1949 * python/python-internal.h (py_varobj_get_iterator): Declare.
1950 * varobj-iter.h: New file.
1951 * varobj.c: Include "varobj-iter.h"
1952 (struct varobj) <child_iter>: Change its type from "PyObject *"
1953 to "struct varobj_iter *".
1954 <saved_item>: Likewise.
1955 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1956 [HAVE_PYTHON] (varobj_get_iterator): New function.
1957 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1958 python-specific code to python/py-varobj.c.
1959 (install_visualizer): Call varobj_iter_delete instead of
1960 Py_XDECREF.
1961 * varobj.h (varobj_ensure_python_env): Declare.
1962
5a2e0d6e
YQ
19632014-06-12 Yao Qi <yao@codesourcery.com>
1964
1965 * varobj.c (struct varobj_item): New structure.
1966 (create_child_with_value): Update declaration.
1967 (varobj_add_child): Replace arguments 'name' and 'value' with
1968 'item'. All callers updated.
1969 (install_dynamic_child): Likewise.
1970 (update_dynamic_varobj_children): Likewise.
1971 (varobj_add_child): Likewise.
1972 (create_child_with_value): Likewise.
1973
919b9a93
JB
19742014-06-11 Joel Brobecker <brobecker@adacore.com>
1975
1976 * NEWS: Create a new section for the next release branch.
1977 Rename the section of the current branch, now that it has
1978 been cut.
1979
71a55bdf
JB
19802014-06-11 Joel Brobecker <brobecker@adacore.com>
1981
1982 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1983 * version.in: Bump version to 7.8.50.DATE-cvs.
1984
364fe1f7
PA
19852014-06-11 Pedro Alves <palves@redhat.com>
1986
1987 PR remote/17028
1988 * ser-mingw.c (net_windows_socket_check_pending): New function.
1989 (net_windows_select_thread): Ignore spurious wakeups. Use
1990 net_windows_socket_check_pending.
1991 (net_windows_wait_handle): Check for pending events with
1992 ioctlsocket, through net_windows_socket_check_pending, instead of
1993 checking the socket's event.
1994
5a6c7709
SC
19952014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1996
1997 * python/python-internal.h (gdb_PyObject_GetAttrString)
1998 (gdb_PyObject_HasAttrString): New inline function definitions.
1999 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2000 char * of the second argument to PyObject_GetAttrString.
74228e77 2001
0e58ee40
JB
20022014-06-10 Joel Brobecker <brobecker@adacore.com>
2003
2004 * serial.c (serial_write): Fix index of character to be printed
2005 in call to serial_logchar when serial debug traces are enabled.
2006
d190df30
JB
20072014-06-10 Joel Brobecker <brobecker@adacore.com>
2008
2009 * gdbtypes (resolve_dynamic_range): Add function description.
2010
b4b01d36
PA
20112014-06-09 Pedro Alves <palves@redhat.com>
2012
2013 * linux-nat.c (linux_child_follow_fork): Initialize status with
2014 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2015 inner block. Only pass the signal to PTRACE_DETACH if in pass
2016 state.
2017
3657956b
GB
20182014-06-09 Gary Benson <gbenson@redhat.com>
2019
2020 * common/signals.c (gdb_signal_from_host): Reorder to separate
2021 the always-available ANSI-standard signals from the signals that
2022 require checking.
2023 (do_gdb_signal_to_host): Likewise.
2024 * proc-events.c (signal_table): Likewise.
2025
c077881a
HZ
20262014-06-08 Hui Zhu <hui@codesourcery.com>
2027
2028 * common/linux-ptrace.c (linux_disable_event_reporting): New
2029 function.
2030 * common/linux-ptrace.h (linux_disable_event_reporting): New
2031 declaration.
2032 * linux-nat.c (linux_child_follow_fork): Do a single step before
2033 detach.
2034
4186eb54
KS
20352014-06-07 Keith Seitz <keiths@redhat.com>
2036
2037 Revert:
2038 PR c++/16253
2039 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2040 from symbol_matches_domain in symtab.c. All local callers
2041 of symbol_matches_domain updated.
2042 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2043 search STRUCT_DOMAIN.
2044 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2045 independently. standard_lookup will do that automatically.
2046 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2047 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2048 (cp_lookup_symbol_in_namespace): Likewise.
2049 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2050 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2051 may return a STRUCT_DOMAIN match.
2052 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2053 * cp-support.c: Include language.h.
2054 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2055 VAR_DOMAIN.
2056 * psymtab.c (match_partial_symbol): Compare the requested
2057 domain with the symbol's domain directly.
2058 (lookup_partial_symbol): Likewise.
2059 * symtab.c (lookup_symbol_in_language): Explain when/why
2060 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2061 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2062 appropriate languages.
2063 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2064 and moved to ada-lang.c
2065 (lookup_block_symbol): Explain that this function only returns
2066 symbol matching the requested DOMAIN.
2067 Compare the requested domain with the symbol's domain directly.
2068 (iterate_over_symbols): Compare the requested domain with the
2069 symbol's domain directly.
2070 * symtab.h (symbol_matches_domain): Remove.
2071
25326a28 20722014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2073
2074 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2075 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2076 (gdbscm_guile_version_is_at_least): Declare.
2077 (gdbscm_scm_string_to_int): Declare.
2078 * guile/guile.c (gdbscm_guile_major_version): New global.
2079 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2080 (guile_datadir): New static global.
2081 (gdbscm_guile_data_directory): New function.
2082 (initialize_scheme_side): Update.
2083 (misc_guile_functions): Add guile-data-directory.
2084 (initialize_gdb_module): Fetch guile version number.
2085 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2086 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2087 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2088 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2089 comments.
2090 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2091 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2092 * guile/scm-value.c (gdbscm_value_to_string): Only call
2093 scm_port_conversion_strategy if Guile version >= 2.0.6.
2094
0a770bb2 20952014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2096
2097 * main.c (print_gdb_help): Add -q and --silent.
2098
73ba372c
GB
20992014-06-06 Gary Benson <gbenson@redhat.com>
2100
2101 * common/signals.c: Remove preprocessor conditionals for
2102 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2103 SIGSEGV and SIGTERM.
2104 * proc-events.c: Likewise.
2105
c33b2f12
MM
21062014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2107
2108 * symfile.c (symfile_free_objfile): Remove restriction to
2109 OBJF_USERLOADED.
2110 * symfile-mem.c (symbol_file_add_from_memory): Call
2111 add_target_sections_of_objfile.
2112
fb934770
LC
21132014-06-05 Ludovic Courtès <ludo@gnu.org>
2114
2115 * guile/scm-value.c (gdbscm_history_append_x): Use
2116 'vlscm_get_value_smob_arg_unsafe' instead of
2117 'vlscm_scm_to_value'.
2118
6ef284bd
SM
21192014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2120
2121 PR mi/15806
2122 * utils.c (printchar): Don't escape at all if quoter is NUL.
2123 Update function documentation to clarify effect of parameter
2124 QUOTER.
2125 * remote.c (escape_buffer): Pass '\\' as the quoter to
2126 fputstrn_unfiltered.
2127 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2128 generate the output.
2129 (mi_solib_unloaded): Same.
2130
270c9937
JB
21312014-06-05 Joel Brobecker <brobecker@adacore.com>
2132
2133 * development.sh: Delete.
2134 * Makefile.in (config.status): Adjust dependency on development.sh.
2135 * configure.ac: Adjust development.sh source call.
2136 * configure: Regenerate.
2137
16f691fb
DE
21382014-06-04 Doug Evans <xdje42@gmail.com>
2139
2140 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2141 is_scheme_bkpt, spec.
2142 (bpscm_make_breakpoint_smob): Initialize new members.
2143 (gdbscm_create_breakpoint_x): Split into two ...
2144 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2145 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2146 (scheme_function breakpoint_functions): Update.
2147 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2148 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2149 register-breakpoint!.
2150
ef7cab6b
JB
21512014-06-04 Joel Brobecker <brobecker@adacorer.com>
2152
2153 PR server/17023
2154 * mem-break.c (z_type_supported): Return zero if
2155 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2156
012370f6
TT
21572014-06-04 Tom Tromey <tromey@redhat.com>
2158
2159 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2160 value_from_contents_and_address_unresolved.
2161 (ada_template_to_fixed_record_type_1): Likewise.
2162 (ada_which_variant_applies): Likewise.
2163 * value.h (value_from_contents_and_address_unresolved): Declare.
2164 * value.c (value_from_contents_and_address_unresolved): New
2165 function.
2166 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2167 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2168 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2169
92e2a17f
TT
21702014-06-04 Tom Tromey <tromey@redhat.com>
2171
2172 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2173
c0939df1
TT
21742014-06-04 Tom Tromey <tromey@redhat.com>
2175
2176 * procfs.c (procfs_attach): Make "args" const.
2177 * windows-nat.c (windows_attach): Make "args" const.
2178 * nto-procfs.c (procfs_attach): Make "args" const.
2179 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2180 * go32-nat.c (go32_attach): Make "args" const.
2181 * gnu-nat.c (gnu_attach): Make "args" const.
2182 * darwin-nat.c (darwin_attach): Make "args" const.
2183 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2184 * linux-nat.c (linux_nat_attach): Make "args" const.
2185 * remote.c (extended_remote_attach_1, extended_remote_attach):
2186 Make "args" const.
2187 * target.h (struct target_ops) <to_attach>: Make "args" const.
2188 (find_default_attach): Likewise.
2189 * utils.c (parse_pid_to_attach): Make "args" const.
2190 * utils.h (parse_pid_to_attach): Update.
2191
8eaff7cd
TT
21922014-06-04 Tom Tromey <tromey@redhat.com>
2193
2194 * target-delegates.c: Rebuild.
2195 * target.c (default_thread_address_space): New function.
2196 (target_thread_address_space): Simplify.
2197 * target.h (struct target_ops) <to_thread_address_space>: Add
2198 TARGET_DEFAULT_FUNC.
2199
1913f160
DE
22002014-06-04 Doug Evans <xdje42@gmail.com>
2201
2202 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2203
70ad5bff
MM
22042014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2205
2206 * record-btrace.c: Include event-loop.h and inf-loop.h.
2207 (record_btrace_resume_exec_dir)
2208 (record_btrace_async_inferior_event_handler)
2209 (record_btrace_handle_async_inferior_event): New.
2210 (record_btrace_open): Create async event handler.
2211 (record_btrace_close): Delete async event handler.
2212 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2213 Mark async event handler.
2214 (record_btrace_execution_direction): New.
2215 (init_record_btrace_ops): Initialize to_execution_direction.
2216
b6210538
DE
22172014-06-03 Doug Evans <xdje42@gmail.com>
2218
2219 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2220 (gdbscm_make_parameter): Ditto.
2221
a5b1fd27
DE
22222014-06-03 Doug Evans <dje@google.com>
2223
2224 * exec.c (exec_close_1): Call clear_section_table instead of
2225 resize_section_table.
2226 (clear_section_table): New function.
2227 (resize_section_table): Make static. Rename arg num_added to
2228 adjustment.
2229 * exec.h (clear_section_table): Declare.
2230 (resize_section_table): Delete.
2231 * progspace.c (release_program_space): Call clear_section_table
2232 instead of resize_section_table.
2233
0c6e92a5
SC
22342014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2235
2236 * NEWS (Python Scripting): Add entry about the new xmethods
2237 feature.
2238
883964a7
SC
22392014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2240
2241 * python/py-xmethods.c: New file.
2242 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2243 (objfpy_dealloc): XDECREF on the new xmethods field.
2244 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2245 field.
2246 (objfpy_get_xmethods): New function.
2247 (objfile_getset): New entry 'xmethods'.
2248 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2249 (pspy_dealloc): XDECREF on the new xmethods field.
2250 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2251 field.
2252 (pspy_get_xmethods): New function.
2253 (pspace_getset): New entry 'xmethods'.
2254 * python/python-internal.h: Add declarations for new functions.
2255 * python/python.c (_initialize_python): Invoke
2256 gdbpy_initialize_xmethods.
2257 * python/lib/gdb/__init__.py (xmethods): New
2258 attribute.
2259 * python/lib/gdb/xmethod.py: New file.
2260 * python/lib/gdb/command/xmethods.py: New file.
2261
58992dc5
SC
22622014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2263
2264 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2265 best match method returned by find_overload_match is an xmethod.
2266 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2267 the best matching operator returned by find_overload_match is an
2268 xmethod.
2269 * valops.c: #include "extension.h".
2270 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2271 Return void. The list of matching source methods is returned in
2272 "fn_list" and a vector of matching debug method workers is
2273 returned in "xm_worker_vec". Update all callers.
2274 (value_find_oload_method_list): Likewise.
2275 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2276 non-NULL, then the index of the best matching method in this
2277 vector is returned. Update all callers.
2278 (find_overload_match): Include xmethods while performing overload
2279 resolution.
2280
e81e7f5e
SC
22812014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2282
2283 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2284 * extension-priv.h (struct extension_language_ops): Add the
2285 xmethod interface.
2286 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2287 get_matching_xmethod_workers, get_xmethod_argtypes,
2288 invoke_xmethod, free_xmethod_worker,
2289 free_xmethod_worker_vec): New functions.
2290 * extension.h: #include "common/vec.h".
2291 New function declarations.
2292 (struct xmethod_worker): New struct.
2293 (VEC (xmethod_worker_ptr)): New vector type.
2294 (xmethod_worker_ptr): New typedef.
2295 (xmethod_worker_vec): Likewise.
2296 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2297 builtin_type.
2298 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2299 (struct builtin_type): New field "xmethod".
2300 * valarith.c (value_ptradd): Assert that the value argument is not
2301 lval_xcallable.
2302 * valops.c (value_must_coerce_to_target): Return 0 for
2303 lval_xcallable values.
2304 * value.c (struct value): New field XM_WORKER in the field
2305 LOCATION.
2306 (value_address, value_raw_address): Return 0 for lval_xcallable
2307 values.
2308 (set_value_address): Assert that the value is not an
2309 lval_xcallable.
2310 (value_free): Free the associated xmethod worker when freeing
2311 lval_xcallable values.
2312 (set_value_component_location): Assert that the WHOLE value is not
2313 lval_xcallable.
2314 (value_of_xmethod, call_xmethod): New functions.
2315 * value.h: Declare "struct xmethod_worker".
2316 Declare new functions value_of_xmethod, call_xmethod.
2317
ef370185
JB
23182014-06-03 Joel Brobecker <brobecker@adacore.com>
2319 Pedro Alves <palves@redhat.com>
2320
2321 PR breakpoints/17000
2322 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2323 New function, extracted from software_breakpoint_inserted_here_p.
2324 (software_breakpoint_inserted_here_p): Replace factored out code
2325 by call to find_non_raw_software_breakpoint_inserted_here.
2326 (bp_target_info_copy_insertion_state): New function.
2327 (bkpt_insert_location): Handle the case of a single-step
2328 breakpoint already inserted at the same address.
2329 (bkpt_remove_location): Handle the case of a single-step
2330 breakpoint still inserted at the same address.
2331 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2332 breakpoint already inserted at the same address.
2333 (deprecated_remove_raw_breakpoint): Handle the case of a
2334 non-raw breakpoint still inserted at the same address.
2335 (find_single_step_breakpoint): New function, extracted from
2336 single_step_breakpoint_inserted_here_p.
2337 (find_single_step_breakpoint): New function,
2338 factored out from single_step_breakpoint_inserted_here_p.
2339 (single_step_breakpoint_inserted_here_p): Reimplement.
2340
1e2ccb61
BM
23412014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2342
2343 Pushed by Joel Brobecker <brobecker@adacore.com>
2344 * source.c (show_substitute_path_command): Fix display of matching
2345 substitution rules.
2346
d3448d85
GB
23472014-06-03 Gary Benson <gbenson@redhat.com>
2348
2349 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2350
06eb1586
DE
23512014-06-02 Doug Evans <xdje42@gmail.com>
2352
2353 Add parameter support for Guile.
2354 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2355 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2356 (scm-param.o): New rule.
2357 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2358 (gdbscm_misc_error): Declare.
2359 (gdbscm_canonicalize_command_name): Declare.
2360 (gdbscm_scm_to_host_string): Declare.
2361 (gdbscm_scm_from_host_string): Declare.
2362 (gdbscm_initialize_parameters): Declare.
2363 * guile/guile.c (initialize_gdb_module): Call
2364 gdbscm_initialize_parameters.
2365 * guile/lib/gdb.scm: Export parameter symbols.
2366 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2367 cmdscm_canonicalize_name and made public. All callers updated.
2368 * guile/scm-exception.c (gdbscm_misc_error): New function.
2369 * guile/scm-param.c: New file.
2370 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2371 (gdbscm_scm_to_host_string): New function.
2372 (gdbscm_scm_from_host_string): New function.
2373 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2374
e698b8c4
DE
23752014-06-02 Doug Evans <xdje42@gmail.com>
2376
2377 Add command support for Guile.
2378 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2379 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2380 (scm-cmd.o): New rule.
2381 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2382 (gdbscm_user_error_p): Declare.
2383 (gdbscm_parse_command_name): Declare.
2384 (gdbscm_valid_command_class_p): Declare.
2385 (gdbscm_initialize_commands): Declare.
2386 * guile/guile.c (initialize_gdb_module): Call
2387 gdbscm_initialize_commands.
2388 * guile/lib/gdb.scm: Export command symbols.
2389 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2390 (throw-user-error): New function.
2391 * guile/scm-cmd.c: New file.
2392 * guile/scm-exception.c (user_error_symbol): New static global.
2393 (gdbscm_user_error_p): New function.
2394 (gdbscm_initialize_exceptions): Set user_error_symbol.
2395 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2396
fb1f94b0
PM
23972014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2398
2399 * top.c (command_loop): Handle comments here...
2400 (command_line_input): ... not here.
2401
ded03782
DE
24022014-06-02 Doug Evans <xdje42@gmail.com>
2403
2404 Add progspace support for Guile.
2405 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2406 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2407 (scm-progspace.o): New rule.
2408 * guile/guile-internal.h (pspace_smob): New typedef.
2409 (psscm_pspace_smob_pretty_printers): Declare.
2410 (psscm_pspace_smob_from_pspace): Declare.
2411 (psscm_scm_from_pspace): Declare.
2412 * guile/guile.c (initialize_gdb_module): Call
2413 gdbscm_initialize_pspaces.
2414 * guile/lib/gdb.scm: Export progspace symbols.
2415 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2416 support.
2417 (append-pretty-printer!): Ditto.
2418 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2419 Implement.
2420 * guile/scm-progspace.c: New file.
2421
397998fc
AM
24222014-06-03 Alan Modra <amodra@gmail.com>
2423
2424 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2425 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2426
6aa5f3a6
DE
24272014-06-02 Doug Evans <dje@google.com>
2428
2429 Add support for skeletonless type units.
2430 * dwarf2read.c (struct dwarf2_per_objfile): New member
2431 n_allocated_type_units.
2432 (struct dwarf2_per_objfile) <tu_stats>: New member
2433 nr_all_type_units_reallocs.
2434 (create_signatured_type_table_from_index): Initialize
2435 n_allocated_type_units
2436 (create_all_type_units): Ditto.
2437 (add_type_unit): Move up in file. New arg slot.
2438 All callers updated. Increase space for all_type_units more
2439 efficiently.
2440 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2441 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2442 (lookup_dwp_signatured_type): Ditto.
2443 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2444 All callers updated.
2445 (build_type_psymtabs_1): Leave type_unit_groups as
2446 NULL if no TUs present.
2447 (print_tu_stats): New function.
2448 (process_skeletonless_type_unit): New function.
2449 (process_dwo_file_for_skeletonless_type_units): New
2450 function.
2451 (process_skeletonless_type_units): New function.
2452 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2453 Call print tu_stats if debugging enabled.
2454
41fac0cf
PA
24552014-06-02 Pedro Alves <palves@redhat.com>
2456
2457 * breakpoint.c (build_target_command_list): Don't build a command
2458 list if we have any duplicate location that isn't a dprintf.
2459
cd1608cc
PA
24602014-06-02 Pedro Alves <palves@redhat.com>
2461
2462 * breakpoint.c (dprintf_breakpoint_hit): New function.
2463 (initialize_breakpoint_ops): Install it as dprintf's
2464 breakpoint_hit method.
2465
486ef3b9
JB
24662014-06-02 Joel Brobecker <brobecker@adacore.com>
2467
2468 * source.c (substitute_path_rule_matches): Simplify using
2469 filename_ncmp instead of FILENAME_CMP.
2470
230cd560
JB
24712014-06-02 Joel Brobecker <brobecker@adacore.com>
2472
2473 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2474
16954d5d
LC
24752014-06-01 Ludovic Courtès <ludo@gnu.org>
2476
2477 * configure.ac: When Guile is available, check for the
2478 availability of 'scm_new_smob'.
2479 * configure, config.h.in: Regenerate.
2480 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2481 function.
2482
53e8a631
AB
24832014-05-30 Andrew Burgess <aburgess@broadcom.com>
2484
2485 * frame.c (struct frame_info): Add stop_string field.
2486 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2487 (get_prev_frame_always): Old content moved into
2488 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2489 TRY_CATCH, handle MEMORY_ERROR exceptions.
2490 (frame_stop_reason_string): New function definition.
2491 * frame.h (unwind_stop_reason_to_string): Extend comment to
2492 mention frame_stop_reason_string.
2493 (frame_stop_reason_string): New function declaration.
2494 * stack.c (frame_info): Switch to frame_stop_reason_string.
2495 (backtrace_command_1): Switch to frame_stop_reason_string.
2496 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2497 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2498 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2499
70e38b8e
AB
25002014-05-30 Andrew Burgess <aburgess@broadcom.com>
2501
2502 * frame.c (frame_stop_reason_string): Rename to ...
2503 (unwind_stop_reason_to_string): this.
2504 * frame.h (frame_stop_reason_string): Rename to ...
2505 (unwind_stop_reason_to_string): this.
2506 * stack.c (frame_info): Update call to frame_stop_reason_string.
2507 (backtrace_command_1): Likewise.
2508 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2509 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2510
938f0e2f
AB
25112014-05-30 Andrew Burgess <aburgess@broadcom.com>
2512
2513 * frame.c (remove_prev_frame): New function.
2514 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2515 remove_prev_frame.
2516
a09dd441
PA
25172014-05-29 Pedro Alves <palves@redhat.com>
2518
2519 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2520 and make it const. When a single-step decays to a continue,
2521 clear 'step', not 'hw_step'. Pass whether the caller wanted
2522 to step to user_visible_resume_ptid, not what we ask the
2523 target to do.
2524
bdc36728
PA
25252014-05-29 Pedro Alves <palves@redhat.com>
2526
2527 * infrun.c (process_event_stop_test, handle_step_into_function)
2528 (handle_step_into_function_backward): Adjust.
2529 Don't set the even thread's stop_step and call stop_waiting before
2530 calling end_stepping_range. Instead do that ...
2531 (end_stepping_range): ... here. Take an ecs pointer parameter.
2532
22bcd14b
PA
25332014-05-29 Pedro Alves <palves@redhat.com>
2534
2535 * infrun.c (stop_stepping): Rename to ...
2536 (stop_waiting): ... this.
2537 (proceed): Update comment.
2538 (process_event_stop_test, handle_inferior_event)
2539 (handle_signal_stop, handle_step_into_function)
2540 (handle_step_into_function_backward): Update.
2541
4ae57c05
PA
25422014-05-29 Pedro Alves <palves@redhat.com>
2543
2544 * infcall.c (run_inferior_call): Don't check whether the current
2545 thread is running after the proceed call.
2546
329ea579
PA
25472014-05-29 Pedro Alves <palves@redhat.com>
2548 Tom Tromey <tromey@redhat.com>
2549
2550 * NEWS: Mention "maint set target-async", "set mi-async", and that
2551 background execution commands are now always available.
2552 * target.h (target_async_permitted): Update comment.
2553 * target.c (target_async_permitted, target_async_permitted_1):
2554 Default to 1.
2555 (set_target_async_command): Rename to ...
2556 (maint_set_target_async_command): ... this.
2557 (show_target_async_command): Rename to ...
2558 (maint_show_target_async_command): ... this.
2559 (_initialize_target): Adjust.
2560 * infcmd.c (prepare_execution_command): Make extern.
2561 * inferior.h (prepare_execution_command): Declare.
2562 * infrun.c (set_observer_mode): Leave target async alone.
2563 * mi/mi-interp.c (mi_interpreter_init): Install
2564 mi_on_sync_execution_done as sync_execution_done observer.
2565 (mi_on_sync_execution_done): New function.
2566 (mi_execute_command_input_handler): Don't print the prompt if we
2567 just started a synchronous command with an async target.
2568 (mi_on_resume): Check sync_execution before printing prompt.
2569 * mi/mi-main.h (mi_async_p): Declare.
2570 * mi/mi-main.c: Include gdbcmd.h.
2571 (mi_async_p): New function.
2572 (mi_async, mi_async_1): New globals.
2573 (set_mi_async_command, show_mi_async_command, mi_async): New
2574 functions.
2575 (exec_continue): Call prepare_execution_command.
2576 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2577 (mi_execute_async_cli_command): Use mi_async_p.
2578 (_initialize_mi_main): Install "set mi-async". Make
2579 "target-async" a deprecated alias.
2580
92bcb5f9
PA
25812014-05-29 Pedro Alves <palves@redhat.com>
2582
2583 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2584 (_initialize_cli_interp): Adjust.
2585 * event-loop.c: Include "observer.h".
2586 (start_event_loop): Notify 'command_error' observers instead of
2587 calling display_gdb_prompt. Remove FIXME comment.
2588 * event-top.c (display_gdb_prompt): Remove call into the
2589 interpreters.
2590 * inf-loop.c: Include "observer.h".
2591 (inferior_event_handler): Notify 'command_error' observers instead
2592 of calling display_gdb_prompt.
2593 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2594 observers instead of calling display_gdb_prompt.
2595 * interps.c (interp_set): Don't call display_gdb_prompt.
2596 (current_interp_display_prompt_p): Delete.
2597 * interps.h (interp_prompt_p): Delete declaration.
2598 (interp_prompt_p_ftype): Delete.
2599 (struct interp_procs) <prompt_proc_p>: Delete field.
2600 (current_interp_display_prompt_p): Delete declaration.
2601 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2602 (_initialize_mi_interp): Adjust.
2603 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2604 'command_error' observers.
2605 (tui_on_sync_execution_done, tui_on_command_error): New
2606 functions.
2607 (tui_display_prompt_p): Delete.
2608 (_initialize_tui_interp): Adjust.
2609
fd664c91
PA
26102014-05-29 Pedro Alves <palves@redhat.com>
2611
2612 PR gdb/13860
2613 * cli/cli-interp.c: Include infrun.h and observer.h.
2614 (cli_uiout, cli_interp): New globals.
2615 (cli_on_signal_received, cli_on_end_stepping_range)
2616 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2617 functions.
2618 (cli_interpreter_init): Install them as 'end_stepping_range',
2619 'signal_received' 'signal_exited', 'exited' and 'no_history'
2620 observers.
2621 (_initialize_cli_interp): Remove cli_interp local.
2622 * infrun.c (handle_inferior_event): Call the several stop reason
2623 observers instead of printing the stop reason directly.
2624 (end_stepping_range): New function.
2625 (print_end_stepping_range_reason, print_signal_exited_reason)
2626 (print_exited_reason, print_signal_received_reason)
2627 (print_no_history_reason): Make static, and add an uiout
2628 parameter. Print to that instead of to CURRENT_UIOUT.
2629 * infrun.h (print_end_stepping_range_reason)
2630 (print_signal_exited_reason, print_exited_reason)
2631 (print_signal_received_reason print_no_history_reason): New
2632 declarations.
2633 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2634 'mi_uiout'.
2635 <cli_uiout>: New field.
2636 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2637 uiout for CLI output. Install 'signal_received',
2638 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2639 observers.
2640 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2641 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2642 (mi_on_no_history): New functions.
2643 (ui_out_free_cleanup): Delete function.
2644 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2645 instead use the one already stored in the MI interpreter data.
2646 (mi_ui_out): Adjust.
2647 * tui/tui-interp.c: Include infrun.h and observer.h.
2648 (tui_interp): New global.
2649 (tui_on_signal_received, tui_on_end_stepping_range)
2650 (tui_on_signal_exited, tui_on_exited)
2651 (tui_on_no_history): New functions.
2652 (tui_init): Install them as 'end_stepping_range',
2653 'signal_received' 'signal_exited', 'exited' and 'no_history'
2654 observers.
2655 (_initialize_tui_interp): Delete tui_interp local.
2656
8817a6f2
PA
26572014-05-29 Pedro Alves <palves@redhat.com>
2658
2659 PR gdb/15713
2660 * linux-nat.c (linux_nat_resume_callback): Rename the second
2661 parameter to 'except'. Skip LP if it points to EXCEPT.
2662 (linux_nat_resume): Don't mark the event lwp as not stopped
2663 before resuming sibling lwps. Instead ask
2664 linux_nat_resume_callback to skip the event lwp. Mark it as not
2665 stopped after actually resuming it.
2666 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2667 resuming it.
2668 (wait_lwp): Mark the lwp as stopped here.
2669 (stop_wait_callback): Mark the lwp as not stopped right after
2670 resuming it. Don't mark lwps as stopped here.
2671 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2672 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2673
251bde03
PA
26742014-05-29 Pedro Alves <palves@redhat.com>
2675
2676 PR PR15693
2677 * infrun.c (resume): Determine how much to resume depending on
2678 whether the caller wanted a step, not whether we can hardware step
2679 the target. Mark all threads that we intend to run as running,
2680 unless we're calling an inferior function.
2681 (normal_stop): If the thread is running an infcall, don't finish
2682 thread state.
2683 * target.c (target_resume): Don't mark threads as running here.
2684
7f3c0343
JB
26852014-05-28 Joel Brobecker <brobecker@adacore.com>
2686
2687 * serial.c (_initialize_serial): Remove support for
2688 the "set remotebaud" and "show remotebaud" commands.
2689 * NEWS: Add entry documenting the removal of that command.
2690
ee34b3f9
YQ
26912014-05-28 Yao Qi <yao@codesourcery.com>
2692
2693 * charset.c: Fix typo in comments.
2694
add6c04d
GB
26952014-05-27 Gary Benson <gbenson@redhat.com>
2696
2697 * utils.c (internal_vproblem): Prompt for a bug report.
2698
92c48fc5
AW
26992014-05-26 Andy Wingo <wingo@igalia.com>
2700
2701 * guile/scm-arch.c (arscm_mark_arch_smob):
2702 * guile/scm-block.c (bkscm_mark_block_smob)
2703 (bkscm_mark_block_syms_progress_smob):
2704 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2705 * guile/scm-exception.c (exscm_mark_exception_smob):
2706 * guile/scm-frame.c (frscm_mark_frame_smob):
2707 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2708 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2709 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2710 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2711 (ppscm_mark_pretty_printer_worker_smob):
2712 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2713 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2714 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2715 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2716 mark functions.
2717 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2718 function.
2719
b2715b27
AW
27202014-05-26 Andy Wingo <wingo@igalia.com>
2721 Doug Evans <xdje42@gmail.com>
2722
2723 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2724 empty_base_class. All uses updated.
2725 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2726 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2727 Adapt all callers.
2728 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2729 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2730 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2731 (gdbscm_gsmob_has_property_p, add_property_name)
2732 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2733 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2734 (gdb-object-has-property?, gdb-object-properties): Remove.
2735 (gdb-object-kind): Renamed from gsmob-kind.
2736
214ab2da
AW
27372014-05-26 Andy Wingo <wingo@igalia.com>
2738
2739 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2740 * configure: Regenerate.
2741
589fdceb
MM
27422014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2743
2744 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2745
67b5c0c1
MM
27462014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2747
2748 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2749 (replay_memory_access_read_only, replay_memory_access_read_write)
2750 (replay_memory_access_types, replay_memory_access)
2751 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2752 (cmd_set_record_btrace, cmd_show_record_btrace)
2753 (cmd_show_replay_memory_access): New.
2754 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2755 (record_btrace_remove_breakpoint): Replace
2756 record_btrace_allow_memory_access with replay_memory_access.
2757 (_initialize_record_btrace): Add commands.
2758 * NEWS: Announce it.
2759
036cd381
RR
27602014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2761
2762 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2763
c77c1e42
RR
27642014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2765
2766 * MAINTAINERS (Write After Approval): Move self back from
2767 paper trail.
2768
45741a9c
PA
27692014-05-22 Pedro Alves <palves@redhat.com>
2770
2771 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2772 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2773 (disable_randomization, enum exec_direction_kind)
2774 (execution_direction, stop_registers, start_remote)
2775 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2776 (wait_for_inferior, normal_stop, get_last_target_status)
2777 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2778 (insert_step_resume_breakpoint_at_sal)
2779 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2780 (set_step_info, print_stop_event, signal_stop_state)
2781 (signal_print_state, signal_pass_state, signal_stop_update)
2782 (signal_print_update, signal_pass_update)
2783 (update_signals_program_target, clear_exit_convenience_vars)
2784 (displaced_step_dump_bytes, update_observer_mode)
2785 (signal_catch_update, gdb_signal_from_command): Move
2786 declarations ...
2787 * infrun.h: ... to this new file.
2788 * amd64-tdep.c: Include infrun.h.
2789 * annotate.c: Include infrun.h.
2790 * arch-utils.c: Include infrun.h.
2791 * arm-linux-tdep.c: Include infrun.h.
2792 * arm-tdep.c: Include infrun.h.
2793 * break-catch-sig.c: Include infrun.h.
2794 * breakpoint.c: Include infrun.h.
2795 * common/agent.c: Include infrun.h instead of inferior.h.
2796 * corelow.c: Include infrun.h.
2797 * event-top.c: Include infrun.h.
2798 * go32-nat.c: Include infrun.h.
2799 * i386-tdep.c: Include infrun.h.
2800 * inf-loop.c: Include infrun.h.
2801 * infcall.c: Include infrun.h.
2802 * infcmd.c: Include infrun.h.
2803 * infrun.c: Include infrun.h.
2804 * linux-fork.c: Include infrun.h.
2805 * linux-nat.c: Include infrun.h.
2806 * linux-thread-db.c: Include infrun.h.
2807 * monitor.c: Include infrun.h.
2808 * nto-tdep.c: Include infrun.h.
2809 * procfs.c: Include infrun.h.
2810 * record-btrace.c: Include infrun.h.
2811 * record-full.c: Include infrun.h.
2812 * remote-m32r-sdi.c: Include infrun.h.
2813 * remote-mips.c: Include infrun.h.
2814 * remote-notif.c: Include infrun.h.
2815 * remote-sim.c: Include infrun.h.
2816 * remote.c: Include infrun.h.
2817 * reverse.c: Include infrun.h.
2818 * rs6000-tdep.c: Include infrun.h.
2819 * s390-linux-tdep.c: Include infrun.h.
2820 * solib-irix.c: Include infrun.h.
2821 * solib-osf.c: Include infrun.h.
2822 * solib-svr4.c: Include infrun.h.
2823 * target.c: Include infrun.h.
2824 * top.c: Include infrun.h.
2825 * windows-nat.c: Include infrun.h.
2826 * mi/mi-interp.c: Include infrun.h.
2827 * mi/mi-main.c: Include infrun.h.
2828 * python/py-threadevent.c: Include infrun.h.
2829
98eb56a4
PA
28302014-05-22 Pedro Alves <palves@redhat.com>
2831
2832 * infrun.c (handle_inferior_event): Store the exit code for
2833 --return-child-result here, instead of ...
2834 (print_exited_reason): ... here.
2835
17b2616c
PA
28362014-05-21 Pedro Alves <palves@redhat.com>
2837
2838 PR gdb/13860
2839 * gdbthread.h (struct thread_control_state): New field
2840 `command_interp'.
2841 * infrun.c (follow_fork): Copy the new thread control field to the
2842 child fork thread.
2843 (clear_proceed_status_thread): Clear the new thread control field.
2844 (proceed): Set the new thread control field.
2845 * interps.h (command_interp): Declare.
2846 * interps.c (command_interpreter): New global.
2847 (command_interp): New function.
2848 (interp_exec): Set `command_interpreter' while here.
2849 * cli-out.c (cli_uiout_dtor): New function.
2850 (cli_ui_out_impl): Install it.
2851 * mi/mi-interp.c: Include cli-out.h.
2852 (mi_cmd_interpreter_exec): Add comment.
2853 (restore_current_uiout_cleanup): New function.
2854 (ui_out_free_cleanup): New function.
2855 (mi_on_normal_stop): If finishing an execution command started by
2856 a CLI command, or any kind of breakpoint-like event triggered,
2857 print the stop event to the output (CLI) stream.
2858 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2859
5166082f
PA
28602014-05-21 Pedro Alves <palves@redhat.com>
2861
2862 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2863 current source line having changed.
2864 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2865 * infrun.c (normal_stop): Adjust call to
2866 set_current_sal_from_frame.
2867 * source.c (clear_lines_listed_range): New function.
2868 (set_current_source_symtab_and_line, identify_source_line): Clear
2869 the lines listed range.
2870 (line_info): Handle the first "info line" after the current source
2871 line having changed.
2872 * stack.c (print_stack_frame): Remove center handling.
2873 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2874 center sal.line.
2875
c1ee2fb3
PA
28762014-05-21 Pedro Alves <palves@redhat.com>
2877
2878 * inf-child.c (inf_child_mourn_inferior): New function.
2879 * inf-child.h (inf_child_mourn_inferior): New declaration.
2880 * darwin-nat.c (darwin_mourn_inferior): Use
2881 inf_child_mourn_inferior.
2882 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2883 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2884 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2885 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2886 * windows-nat.c (windows_mourn_inferior): Likewise.
2887
5c6d4fb2
DE
28882014-05-21 Doug Evans <xdje42@gmail.com>
2889
250748cb 2890 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 2891
4a2722c5
DE
28922014-05-21 Doug Evans <xdje42@gmail.com>
2893
17292b30 2894 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
2895 (gdbscm_out_of_range_error): Ditto.
2896 (gdbscm_memory_error): Ditto.
250748cb
DE
2897 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2898 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
2899 (gdbscm_out_of_range_error): Update.
2900 (gdbscm_memory_error): Update.
2901 (gdbscm_scm_to_target_string_unsafe): Delete.
2902
6a3cb8e8
PA
29032014-05-21 Pedro Alves <palves@redhat.com>
2904
2905 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2906 globals.
2907 (inf_child_open_target): New function.
2908 (inf_child_open): Use inf_child_open_target to push the target
2909 instead of erroring out.
2910 (inf_child_disconnect, inf_child_close)
2911 (inf_child_maybe_unpush_target): New functions.
2912 (inf_child_target): Install inf_child_disconnect and
2913 inf_child_close. Store a pointer to the returned object.
2914 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2915 declarations.
2916 * target.c (auto_connect_native_target): New global.
2917 (show_default_run_target): New function.
2918 (find_default_run_target): Return NULL if automatically connecting
2919 to the native target is disabled.
2920 (_initialize_target): Install set/show auto-connect-native-target.
2921 * NEWS: Mention "set auto-connect-native-target", and "target
2922 native".
2923 * linux-nat.c (super_close): New global.
2924 (linux_nat_close): Call super_close.
2925 (linux_nat_add_target): Store a pointer to the base class's
2926 to_close method.
2927 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2928 inf_child_maybe_unpush.
2929 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2930 already pushed.
2931 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2932 the inferior. Use inf_child_maybe_unpush_target.
2933 (inf_ttrace_attach): Don't push the target if it is already
2934 pushed.
2935 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2936 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2937 after mourning the inferior. Use inf_child_maybe_unpush_target.
2938 (darwin_attach_pid): Don't push the target if it is already
2939 pushed.
2940 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2941 mourning the inferior. Use inf_child_maybe_unpush_target.
2942 (gnu_detach): Use inf_child_maybe_unpush_target.
2943 * go32-nat.c (go32_create_inferior): Don't push the target if it
2944 is already pushed.
2945 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2946 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2947 (procfs_open): Rename to ...
2948 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2949 comments. Can target_preopen before changing node. Call
2950 inf_child_open_target to push the target explicitly.
2951 (procfs_attach): Don't push the target if it is already pushed.
2952 (procfs_detach): Use inf_child_maybe_unpush_target.
2953 (procfs_create_inferior): Don't push the target if it is already
2954 pushed.
2955 (nto_native_ops): New global.
2956 (procfs_open): Reimplement.
2957 (procfs_native_open): New function.
2958 (init_procfs_targets): Install procfs_native_open as to_open of
2959 "target native". Store a pointer to the "native" target in
2960 nto_native_ops.
2961 * procfs.c (procfs_attach): Don't push the target if it is already
2962 pushed.
2963 (procfs_detach): Use inf_child_maybe_unpush_target.
2964 (procfs_mourn_inferior): Only unpush the target after mourning the
2965 inferior. Use inf_child_maybe_unpush_target.
2966 (procfs_init_inferior): Don't push the target if it is already
2967 pushed.
2968 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2969 if it is already pushed.
2970
930ee1b1
PA
29712014-05-21 Pedro Alves <palves@redhat.com>
2972
2973 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2974 and "procfs" targets are now called "native" instead.
2975
1f5d1b13
PA
29762014-05-21 Pedro Alves <palves@redhat.com>
2977
2978 * go32-nat.c (go32_open): Delete.
2979 (go32_target): Don't override the to_open method.
2980
132f8e03
PA
29812014-05-21 Pedro Alves <palves@redhat.com>
2982
2983 * nto-procfs.c (procfs_can_run): New function.
2984 (nto_procfs_ops): New global.
2985 (init_procfs_targets): New, based on procfs_target. Install
2986 "target native" in addition to "target procfs".
2987 (_initialize_procfs): Call init_procfs_targets instead of adding
2988 the target here.
2989
03c136c3
PA
29902014-05-21 Pedro Alves <palves@redhat.com>
2991
2992 * windows-nat.c (windows_target): Don't override to_shortname,
2993 to_longname or to_doc.
2994
a635d0f3
PA
29952014-05-21 Pedro Alves <palves@redhat.com>
2996
2997 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
2998 to_doc.
2999
4f9b5133
PA
30002014-05-21 Pedro Alves <palves@redhat.com>
3001
3002 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3003 to_shortname, to_longname or to_doc.
3004
bc85afde
PA
30052014-05-21 Pedro Alves <palves@redhat.com>
3006
3007 * go32-nat.c (go32_target): Don't override to_shortname,
3008 to_longname or to_doc.
3009
4ebfc96e
PA
30102014-05-21 Pedro Alves <palves@redhat.com>
3011
3012 * inf-child.c (inf_child_open): Remove mention of "child".
3013 (inf_child_target): Rename target to "native" instead of "child".
3014
2648dfed
AA
30152014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3016
3017 * Makefile.in (SFILES): Delete "regset.c".
3018 (COMMON_OBS): Delete "regset.o".
3019 * regset.c: Remove.
3020 * regset.h (regset_alloc): Delete prototype.
3021
b13feb94
AA
30222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3023
3024 * sparc-linux-tdep.c (sparc32_linux_gregset)
3025 (sparc32_linux_fpregset): New static regset structures.
3026 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3027 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3028 'fpregset' fields.
3029 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3030 (sparc64_linux_fpregset): New static regset structures.
3031 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3032 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3033 New static regset structures.
3034 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3035 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3036 New static regset structures.
3037 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3038 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3039 New static regset structures.
3040 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3041 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3042 New static regset structures.
3043 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3044
b4fd25c9
AA
30452014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3046
3047 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3048 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3049 register maps ("regmaps") from "*regset" to "*regmap". Do this
3050 for all regmap types and variables.
3051 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3052 (sparc32_linux_supply_core_gregset)
3053 (sparc32_linux_collect_core_gregset)
3054 (sparc32_linux_supply_core_fpregset)
3055 (sparc32_linux_collect_core_fpregset): Likewise.
3056 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3057 (sparc_gregmap, sparc_fpregmap): ... these.
3058 (sparc_supply_gregset, sparc_collect_gregset)
3059 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3060 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3061 (_initialize_sparc_nat): Rename regmaps.
3062 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3063 (sparc_gregmap, sparc_fpregmap): ... these.
3064 (sparc_supply_gregset, sparc_collect_gregset)
3065 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3066 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3067 Rename macros to...
3068 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3069 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3070 Likewise.
3071 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3072 Rename to...
3073 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3074 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3075 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3076 regmaps.
3077 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3078 (sparc32_bsd_fpregset): Rename to...
3079 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3080 (sparc32_bsd_fpregmap): ... these.
3081 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3082 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3083 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3084 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3085 (struct sparc_gregmap, struct sparc_fpregmap)
3086 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3087 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3088 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3089 (sparc32_supply_regset, sparc32_collect_gregset)
3090 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3091 prototypes.
3092 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3093 (sparc64_linux_ptrace_gregmap): ... this.
3094 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3095 (_initialize_sparc64_linux_nat): Rename regmaps.
3096 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3097 (sparc64_linux_core_gregmap): ... this.
3098 (sparc64_linux_supply_core_gregset)
3099 (sparc64_linux_collect_core_gregset)
3100 (sparc64_linux_supply_core_fpregset)
3101 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3102 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3103 (sparc64_sol2_fpregset): Rename to...
3104 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3105 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3106 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3107 regmaps.
3108 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3109 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3110 (sparc64_bsd_fpregset): Rename to...
3111 (struct sparc_gregmap, sparc64_sol2_gregmap)
3112 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3113 (sparc64_bsd_fpregmap): ... these.
3114 (sparc64_supply_gregset, sparc64_collect_gregset)
3115 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3116 prototypes.
3117 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3118 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3119 (sparc64fbsd_gregmap): ... this.
3120 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3121 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3122 Rename regmaps.
3123 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3124 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3125 (sparc64nbsd_collect_fpregset): Likewise.
3126 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3127 (sparc64nbsd_gregmap): ... this.
3128 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3129 regmaps.
3130 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3131 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3132 (sparc64obsd_gregmap): ... this.
3133 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3134 regmaps.
3135 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3136 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3137 (sparc32nbsd_gregmap): ... this.
3138 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3139 regmaps.
3140
8fea3224
AA
31412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3142
3143 * score-tdep.c (score7_linux_gregset): New static regset
3144 structure.
3145 (score7_linux_regset_from_core_section): Remove dynamic regset
3146 allocation.
3147 (score_gdbarch_init): Drop allocation of tdep structure.
3148 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3149
24534243
AA
31502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3151
3152 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3153 regset structures.
3154 (am33_regset_from_core_section): Remove dynamic regset
3155 allocations.
3156
b7195f27
AA
31572014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3158
3159 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3160 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3161 structures.
3162 (mips_linux_regset_from_core_section): Remove dynamic regset
3163 allocations.
3164 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3165 'gregset64', 'fpregset', and 'fpregset64'.
3166 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3167 deleted tdep fields.
3168
ecc37a5a
AA
31692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3170
3171 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3172 regset structures.
3173 (amd64_regset_from_core_section): Remove dynamic regset
3174 allocations.
3175 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3176 structure.
3177 (amd64obsd_regset_from_core_section): Remove dynamic regset
3178 allocation.
3179 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3180 Likewise.
3181 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3182 x86-common regset supply function.
3183 * i386-tdep.c (i386_collect_gregset): Make static.
3184 (i386_gregset): New global regset structure.
3185 (i386_fpregset, i386_xstateregset): New static regset structures.
3186 (i386_regset_from_core_section): Remove dynamic regset
3187 allocations.
3188 (i386_gdbarch_init): Remove initialization of tdep fields
3189 'gregset', 'fpregset', and 'xstateregset'.
3190 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3191 'fpregset', and 'xstateregset'.
3192 (i386_collect_gregset): Remove prototype.
3193 (i386_gregset): New declaration.
3194 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3195 structure.
3196 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3197 allocation.
3198
b7611c43
AA
31992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3200
3201 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3202 (arm_linux_vfpregset): New static regset structures.
3203 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3204 regset structures.
3205 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3206 and 'vfpregset' fields.
3207
a069a2bd
AA
32082014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3209
3210 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3211 (aarch64_linux_fpregset): New static regset structures.
3212 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3213 of regset structures.
3214 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3215 'fpregset' fields.
3216
09424cff
AA
32172014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3218
3219 * regset.h (struct regset): Remove gdbarch field.
3220 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3221 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3222 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3223 Likewise.
3224 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3225 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3226 (ppc32_linux_vsxregset): Likewise.
3227 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3228 via the regcache instead of the regset.
3229 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3230 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3231 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3232 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3233 Likewise.
3234
3ca7dae4
AA
32352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3236
3237 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3238 Constify structures.
3239 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3240 (alphanbsd_aout_gregset): Likewise.
3241 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3242 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3243 Likewise.
3244 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3245 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3246 Likewise.
3247 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3248 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3249 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3250 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3251 * m88k-tdep.c (m88k_gregset): Likewise.
3252 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3253 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3254 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3255 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3256 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3257 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3258 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3259 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3260 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3261 Likewise.
3262 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3263 * sh-tdep.h (sh_corefile_gregset): Likewise.
3264 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3265 * vax-tdep.c (vax_gregset): Likewise.
3266
5876f503
JK
32672014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3268
3269 Fix TLS access for -static -pthread.
3270 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3271 (try_thread_db_load_1): Initialize it.
3272 (thread_db_get_thread_local_address): Call it if LM is zero.
3273 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3274 * target.h (struct target_ops) (to_get_thread_local_address): Add
3275 load_module_addr comment.
3276
0256a6ac
PA
32772014-05-21 Pedro Alves <palves@redhat.com>
3278
3279 * dcache.c (dcache_read_memory_partial): If reading the cache line
3280 fails, fallback to reading just the memory the caller wanted.
3281
227533ac
DE
32822014-05-20 Doug Evans <dje@google.com>
3283
3284 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3285 instead of get_current_arch.
3286
936d2992
PA
32872014-05-20 Pedro Alves <palves@redhat.com>
3288
3289 * NEWS: Mention that compare-sections now works with all targets.
3290
3291 * remote.c (PACKET_qCRC): New enum value.
3292 (remote_verify_memory): Don't send qCRC if the target has no
3293 execution. Use packet_support/packet_ok. If the target doesn't
3294 support the qCRC packet, fallback to a deep memory copy.
3295 (compare_sections_command): Say "target image" instead of "remote
3296 executable".
3297 (_initialize_remote): Add PACKET_qCRC to the list of config
3298 packets that have no associated command. Extend comment.
3299 * target.c (simple_verify_memory, default_verify_memory): New
3300 function.
3301 * target.h (struct target_ops) <to_verify_memory>: Default to
3302 default_verify_memory.
3303 (simple_verify_memory): New declaration.
3304 * target-delegates.c: Regenerate.
3305
e59fa00f
MM
33062014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3307
3308 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3309
f2205de0
HZ
33102014-05-20 Hui Zhu <hui@codesourcery.com>
3311 Yao Qi <yao@codesourcery.com>
3312
3313 PR backtrace/16558
3314 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3315 and change address of sp and pc.
3316
c4e54771
TT
33172014-05-19 Tom Tromey <tromey@redhat.com>
3318
3319 * gdbtypes.c (rank_function): Use XNEWVEC.
3320 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3321
73051182
DE
33222014-05-19 Doug Evans <dje@google.com>
3323
3324 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3325 build_type_unit_groups and moved closer to only caller. Remove
3326 arguments. All references updated. Remove outdated .gdb_index
3327 comment.
3328 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3329 build_type_psymtabs_1.
3330
8832e7e3
DE
33312014-05-19 Doug Evans <dje@google.com>
3332
3333 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3334 n_type_unit_groups, all_type_unit_groups. All uses removed.
3335 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3336 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3337 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3338 (add_type_unit_group_to_table): Delete.
3339
cd8ae15e
DE
33402014-05-19 Doug Evans <dje@google.com>
3341
3342 * eval.c (evaluate_subexp_standard): Add some comments.
3343
08f4850b
DE
33442014-05-17 Doug Evans <xdje42@gmail.com>
3345
3346 * progspace.c (remove_program_space): Delete, unused.
3347 * progspace.h (remove_program_space): Ditto.
3348
bed8455c
DE
33492014-05-17 Doug Evans <xdje42@gmail.com>
3350
3351 * inferior.c (prune_inferiors): Fix comment.
3352 (remove_inferior_command): Call prune_program_spaces.
3353
8d551b02
DE
33542014-05-16 Doug Evans <dje@google.com>
3355
3356 New command line option -D.
3357 * NEWS: Mention it.
3358 * main.c (set_gdb_data_directory): New function.
3359 (captured_main): Recognize -D. Flag error for --data-directory "".
3360 Call set_gdb_data_directory.
3361 (print_gdb_help): Print --data-directory, -D.
3362 * main.h (set_gdb_data_directory): Declare.
3363 * top.c (staged_gdb_datadir): New static global.
3364 (set_gdb_datadir): Call set_gdb_data_directory
3365 (show_gdb_datadir): New function.
3366 (init_main): Update init of data-directory parameter.
3367
18848e28
GF
33682014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3369
3370 Import the "dirfd" gnulib module.
3371 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3372 * gnulib/aclocal.m4: Update.
3373 * gnulib/config.in: Update.
3374 * gnulib/configure: Update.
3375 * gnulib/import/Makefile.am: Update.
3376 * gnulib/import/Makefile.in: Update.
3377 * gnulib/import/dirfd.c: New.
3378 * gnulib/import/m4/dirfd.m4: New.
3379 * gnulib/import/m4/gnulib-cache.m4: Update.
3380 * gnulib/import/m4/gnulib-comp.m4: Update.
3381
95c64f92
YQ
33822014-05-16 Pierre Muller <muller@sourceware.org>
3383 Yao Qi <yao@codesourcery.com>
3384
3385 * valprint.c (print_wchar): Move the code on checking whether
3386 W is a printable wide char to the default branch of switch
3387 statement below. Call wchar_printable instead of gdb_iswprint.
3388
cac395ea
TM
33892014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3390
19679eca 3391 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
3392 ldr.w and ldrd instructions.
3393
83655187
DE
33942014-05-15 Doug Evans <dje@google.com>
3395
3396 * dwarf2read.c (read_structure_type): Delete outdated comments.
3397
dd756689
TT
33982014-05-14 Tom Tromey <tromey@redhat.com>
3399
3400 * macrocmd.c (print_macro_definition): Reindent.
3401
75ddda77
DE
34022014-05-13 Doug Evans <xdje42@gmail.com>
3403
3404 * python/py-cmd.c (cmdpy_completer): Add comment.
3405 (completers): Make const.
3406
b0f16a3e
SM
34072014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3408
3409 * infrun.c (resume): Remove should_resume (unused). Move up
3410 declaration of resume_ptid.
3411
033c3379
TT
34122014-05-13 Tom Tromey <tromey@redhat.com>
3413
3414 * language.h (unop_type_check): Remove.
3415 (binop_type_check): Don't declare.
3416
9b44a3a5
AA
34172014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3418
3419 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3420 call to regcache_raw_collect.
3421
303a33fa
SM
34222014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3423
3424 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3425 mi_console->quote as the quoting character.
3426
196100a0
SM
34272014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3428
3429 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3430
f989a1c8
TT
34312014-04-29 Tom Tromey <tromey@redhat.com>
3432
3433 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3434 "show debug varobj".
3435
9404b58f
KM
34362014-05-07 Kyle McMartin <kyle@redhat.com>
3437
3438 Pushed by Joel Brobecker <brobecker@adacore.com>.
3439 * aarch64-tdep.c (aarch64_software_single_step): New function.
3440 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3441 with aarch64_software_single_step.
3442
5e49ba57
JB
34432014-05-05 Joel Brobecker <brobecker@adacore.com>
3444
3445 GDB 7.7.1 released.
3446
c888a17d
KS
34472014-05-05 Keith Seitz <keiths@redhat.com>
3448
3449 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3450 variable or history value is successfully parsed.
3451
290a839c
YQ
34522014-05-05 Yao Qi <yao@codesourcery.com>
3453 Pedro Alves <palves@redhat.com>
3454
3455 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3456 address of blocks that intersects the requested range. Trim
3457 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3458 sections.
3459 * ctf.c (ctf_xfer_partial): Likewise.
3460
91256dc2
YQ
34612014-05-05 Yao Qi <yao@codesourcery.com>
3462
3463 * printcmd.c (display_command): Remove the check to
3464 target_has_execution.
3465
07284463
MK
34662014-05-03 Mark Kettenis <kettenis@gnu.org>
3467
3468 * ppcobsd-nat.c: Include "obsd-nat.h".
3469 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3470 add_target.
3471 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3472
30a1e6cc
SDJ
34732014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3474
3475 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3476 and 16-bit signed and unsigned arguments. Update comment.
3477 (stap_parse_probe_arguments): Extend code to handle such
3478 arguments. Use warning instead of complaint to notify about
3479 unrecognized bitness.
3480
f33da99a
SDJ
34812014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3482
3483 PR breakpoints/16889
3484 * stap-probe.c (stap_parse_probe_arguments): Simplify
3485 check for non-prefixed probes (i.e., probes whose
3486 arguments do not start with "N@"). Always set the
3487 argument type to a sane value.
3488
95cf3b38
DT
34892014-05-01 David Taylor <dtaylor@emc.com>
3490
3491 * remote.c (compare_sections_command): Add -r option to compare
3492 all loadable read-only sections.
3493
1cfdf534
SC
34942014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3495
3496 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3497 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3498 Update all callers.
3499 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3500 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3501 Remove unused CORE_ADDR argument. Update all callers.
3502
ca4f7f8b
PA
35032014-04-29 Pedro Alves <palves@redhat.com>
3504
3505 * remote.c (struct packet_config) <detect>: Extend comment.
3506 (add_packet_config_cmd): Don't set the config's detect or support
3507 fields here.
3508 (init_all_packet_configs): Also initialize the config's 'detect'
3509 field.
3510 (reset_all_packet_configs_support): New function.
3511 (remote_open_1): Call reset_all_packet_configs_support instead of
3512 init_all_packet_configs.
3513 (_initialize_remote): Initialize all packet configs. Assert that
3514 all packets have an associated command, except a few known
3515 outliers.
3516
11c1ba78
JB
35172014-04-28 Joel Brobecker <brobecker@adacore.com>
3518
3519 * dwarf2read.c (read_subrange_type): Handle dynamic
3520 DW_AT_lower_bound attributes.
3521
8739bc53
JB
35222014-04-28 Joel Brobecker <brobecker@adacore.com>
3523
3524 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3525 dynamic bounds before computing its upper bound.
3526 (ada_discrete_type_low_bound): Same as above with the lower bound.
3527
6f8a3220
JB
35282014-04-28 Joel Brobecker <brobecker@adacore.com>
3529
3530 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3531 range types. Adjust the array handling implementation to
3532 take advantage of this change.
3533 (resolve_dynamic_range): New function, mostly extracted from
3534 resolve_dynamic_bounds.
3535 (resolve_dynamic_array): New function, mostly extracted from
3536 resolve_dynamic_bounds.
3537 (resolve_dynamic_bounds): Delete.
3538 (resolve_dynamic_type): Reimplement. Add handling of
3539 TYPE_CODE_RANGE types.
3540
4d072ce4
JB
35412014-04-28 Joel Brobecker <brobecker@adacore.com>
3542
3543 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3544 handling of parallel ___XA types.
3545
52865325
JB
35462014-04-28 Joel Brobecker <brobecker@adacore.com>
3547
3548 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3549 unnecessary second call to static_unwrap_type.
3550
433e77fa
HZ
35512014-04-27 Hui Zhu <hui@codesourcery.com>
3552
3553 * stack.c (print_frame_info): Call do_gdb_disassembly with
3554 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3555
b51a69ee
DE
35562014-04-26 Doug Evans <xdje42@gmail.com>
3557
3558 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3559
7ae1a6a6
PA
35602014-04-25 Pedro Alves <palves@redhat.com>
3561
3562 PR server/16255
3563 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3564 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3565 and newline from built string.
3566 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3567 (linux_ptrace_attach_fail_reason): ... this.
3568 * linux-nat.c (linux_nat_attach): Adjust to use
3569 linux_ptrace_attach_fail_reason.
3570
4082afcc
PA
35712014-04-25 Pedro Alves <palves@redhat.com>
3572
3573 * remote.c (struct remote_state): Remove multi_process_aware,
3574 non_stop_aware, cond_tracepoints, cond_breakpoints,
3575 breakpoint_commands, fast_tracepoints, static_tracepoints,
3576 install_in_trace, disconnected_tracing,
3577 enable_disable_tracepoints, string_tracing, and
3578 augmented_libraries_svr4_read fields.
3579 (remote_multi_process_p): Move further below in the file.
3580 (struct packet_config): Add comments.
3581 (update_packet_config): Delete function.
3582 (show_packet_config_cmd): Use packet_config_support.
3583 (add_packet_config_cmd): Use NULL as set callback.
3584 (packet_ok): "set remote foo-packet"-style commands no longer
3585 change config->supported -- adjust.
3586 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3587 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3588 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3589 (PACKET_QNonStop, PACKET_multiprocess_feature)
3590 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3591 (PACKET_DisconnectedTracing_feature)
3592 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3593 (set_remote_protocol_packet_cmd): Delete function.
3594 (packet_config_support, packet_support): New functions.
3595 (set_remote_protocol_Z_packet_cmd): Don't call
3596 update_packet_config.
3597 (remote_query_attached, remote_pass_signals)
3598 (remote_program_signals, remote_threads_info)
3599 (remote_threads_extra_info, remote_start_remote): Use
3600 packet_support.
3601 (remote_start_remote): Use packet_config_support and
3602 packet_support.
3603 (init_all_packet_configs): Set all packets to unknown support,
3604 instead of calling update_packet_config.
3605 (remote_check_symbols): Use packet_support.
3606 (remote_supported_packet): Unconditionally set the packet config's
3607 support status.
3608 (remote_multi_process_feature, remote_non_stop_feature)
3609 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3610 (remote_breakpoint_commands_feature)
3611 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3612 (remote_install_in_trace_feature)
3613 (remote_disconnected_tracing_feature)
3614 (remote_enable_disable_tracepoint_feature)
3615 (remote_string_tracing_feature)
3616 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3617 (remote_protocol_features): Adjust to use remote_supported_packet
3618 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3619 "ConditionalTracepoints", "ConditionalBreakpoints",
3620 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3621 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3622 "EnableDisableTracepoints", and "tracenz".
3623 (remote_query_supported): Use packet_support.
3624 (remote_open_1): Adjust.
3625 (extended_remote_attach_1): Use packet_support. Switch on the
3626 result of packet_ok instead of checking whether the packet ended
3627 up disabled.
3628 (remote_vcont_resume): Use packet_support.
3629 (remote_resume, remote_stop_ns, fetch_register_using_p)
3630 (remote_prepare_to_store, store_register_using_P)
3631 (check_binary_download, remote_write_bytes): Use packet_support.
3632 (remote_vkill): Use packet_support. Switch on the result of
3633 packet_ok instead of checking whether the packet ended up
3634 disabled.
3635 (extended_remote_supports_disable_randomization): Use
3636 packet_support.
3637 (extended_remote_run): Switch on the result of packet_ok instead
3638 of checking whether the packet ended up disabled.
3639 (remote_insert_breakpoint, remote_remove_breakpoint)
3640 (remote_insert_watchpoint, remote_remove_watchpoint)
3641 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3642 packet_support.
3643 (remote_search_memory): Use packet_config_support.
3644 (remote_get_thread_local_address, remote_get_tib_address)
3645 (remote_hostio_send_command, remote_can_execute_reverse): Use
3646 packet_support.
3647 (remote_supports_cond_tracepoints)
3648 (remote_supports_cond_breakpoints)
3649 (remote_supports_fast_tracepoints)
3650 (remote_supports_static_tracepoints)
3651 (remote_supports_install_in_trace)
3652 (remote_supports_enable_disable_tracepoint)
3653 (remote_supports_string_tracing)
3654 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3655 the packet config says the feature is enabled or disabled.
3656 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3657 (remote_get_trace_status): Use packet_support.
3658 (remote_set_disconnected_tracing): Adjust to check whether the
3659 feature is enabled with packet_support.
3660 (remote_set_trace_buffer_size, remote_use_agent)
3661 (remote_can_use_agent, remote_supports_btrace): Use
3662 packet_support.
3663 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3664 Use packet_config_support.
3665 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3666 the packet config says the feature is enabled or disabled.
3667 (set_range_stepping): Use packet_support.
3668
bdb52a22
TT
36692014-04-25 Tom Tromey <tromey@redhat.com>
3670
3671 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3672 argument.
3673
e9475ead
SA
36742014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3675
3676 * NEWS: Mention support for C99 variable length arrays.
3677
82eacd52
JB
36782014-04-24 Joel Brobecker <brobecker@adacore.com>
3679
3680 * ada-lang.c (standard_exc): Expand introductory comment.
3681
01f9f808
MS
36822014-04-24 Michael Sturm <michael.sturm@mintel.com>
3683 Walfred Tedeschi <walfred.tedeschi@intel.com>
3684
3685 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3686 AVX512 registers.
3687 (amd64_linux_read_description): Add code to handle AVX512 xstate
3688 mask and return respective tdesc.
3689 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3690 and features/i386/x32-avx512-linux.c.
3691 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3692 (amd64_linux_core_read_description): Add code to handle AVX512
3693 xstate mask and return respective tdesc.
3694 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3695 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3696 calculation.
3697 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3698 (tdesc_amd64_avx512_linux): New prototype.
3699 (tdesc_x32_avx512_linux): Likewise.
3700 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3701 features/i386/x32-avx512.c.
3702 (amd64_ymm_avx512_names): New register names for pseudo
3703 registers YMM16-31.
3704 (amd64_ymmh_avx512_names): New register names for raw registers
3705 YMMH16-31.
3706 (amd64_k_names): New register names for K registers.
3707 (amd64_zmmh_names): New register names for ZMM raw registers.
3708 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3709 (amd64_xmm_avx512_names): New register names for XMM16-31
3710 registers.
3711 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3712 registers.
3713 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3714 if feature is present.
3715 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3716 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3717 (AMD64_NUM_REGS): Adjust to new number of registers.
3718 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3719 registers supplied via XSTATE by AVX512 registers.
3720 (i386_linux_read_description): Add case for AVX512.
3721 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3722 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3723 (i386_linux_core_read_description): Add case for AVX512.
3724 (i386_linux_init_abi): Install supported register note section
3725 for AVX512.
3726 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3727 AVX512.
3728 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3729 registers to be number of zmm7h + 1.
3730 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3731 * i386-tdep.c: Include features/i386/i386-avx512.c.
3732 (i386_zmm_names): Add ZMM pseudo register names array.
3733 (i386_zmmh_names): Add ZMM raw register names array.
3734 (i386_k_names): Add K raw register names array.
3735 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3736 registers. AVX512 has 16 more ZMM registers than there are YMM
3737 registers.
3738 (i386_zmmh_regnum_p): Add function to look up register number of
3739 ZMM raw registers.
3740 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3741 (i386_k_regnum_p): Likewise for K raw registers.
3742 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3743 registers added by AVX512.
3744 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3745 registers added by AVX512.
3746 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3747 added by AVX512.
3748 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3749 (i386_pseudo_register_name): Add ZMM pseudo registers.
3750 (i386_zmm_type): Construct and return vector registers type for ZMM
3751 registers.
3752 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3753 ZMM0-31 pseudo registers and K registers.
3754 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3755 and YMM16-31 registers from register cache.
3756 (i386_pseudo_register_write): Add code to write K, ZMM and
3757 YMM16-31 registers.
3758 (i386_register_reggroup_p): Add code to include/exclude AVX512
3759 registers in/from respective register groups.
3760 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3761 registers if feature is present in xcr0.
3762 (i386_gdbarch_init): Add code to initialize AVX512 feature
3763 variables in tdep structure, wire in pseudo registers and call
3764 initialize_tdesc_i386_avx512.
3765 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3766 variables.
3767 (i386_regnum): Add AVX512 registers.
3768 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3769 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3770 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3771 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3772 512 bits wide.
3773 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3774 (i386_ymm_avx512_regnum_p): Likewise.
3775 (i386_k_regnum_p): Likewise.
3776 (i386_zmm_regnum_p): Likewise.
3777 (i386_zmmh_regnum_p): Likewise.
3778 * i387-tdep.c : Update year in copyright notice.
3779 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3780 XSAVE buffer.
3781 (XSAVE_YMM_AVX512_ADDR): New macro.
3782 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3783 XSAVE buffer.
3784 (XSAVE_XMM_AVX512_ADDR): New macro.
3785 (xsave_avx512_k_offset): New table for K register offsets in
3786 XSAVE buffer.
3787 (XSAVE_AVX512_K_ADDR): New macro.
3788 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3789 in XSAVE buffer.
3790 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3791 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3792 buffer.
3793 (i387_collect_xsave): Add code to collect AVX512 registers from
3794 XSAVE buffer.
3795 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3796 of XMM16-31 registers.
3797 (I387_NUM_K_REGS): New define for number of K registers.
3798 (I387_K0_REGNUM): New define for K0 register number.
3799 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3800 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3801 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3802 registers.
3803 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3804 (I387_XMM16_REGNUM): New define for XMM16 register number.
3805 (I387_YMM0_REGNUM): New define for YMM0 register number.
3806 (I387_KEND_REGNUM): New define for last K register number.
3807 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3808 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3809 number.
3810 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3811 number.
3812 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3813 size.
3814 * features/Makefile: Add AVX512 related files.
3815 * features/i386/32bit-avx512.xml: New file.
3816 * features/i386/64bit-avx512.xml: Likewise.
3817 * features/i386/amd64-avx512-linux.c: Likewise.
3818 * features/i386/amd64-avx512-linux.xml: Likewise.
3819 * features/i386/amd64-avx512.c: Likewise.
3820 * features/i386/amd64-avx512.xml: Likewise.
3821 * features/i386/i386-avx512-linux.c: Likewise.
3822 * features/i386/i386-avx512-linux.xml: Likewise.
3823 * features/i386/i386-avx512.c: Likewise.
3824 * features/i386/i386-avx512.xml: Likewise.
3825 * features/i386/x32-avx512-linux.c: Likewise.
3826 * features/i386/x32-avx512-linux.xml: Likewise.
3827 * features/i386/x32-avx512.c: Likewise.
3828 * features/i386/x32-avx512.xml: Likewise.
3829 * regformats/i386/amd64-avx512-linux.dat: New file.
3830 * regformats/i386/amd64-avx512.dat: Likewise.
3831 * regformats/i386/i386-avx512-linux.dat: Likewise.
3832 * regformats/i386/i386-avx512.dat: Likewise.
3833 * regformats/i386/x32-avx512-linux.dat: Likewise.
3834 * regformats/i386/x32-avx512.dat: Likewise.
3835 * NEWS: Add note about new support for AVX512.
3836
3837
08351840
PA
38382014-04-23 Pedro Alves <palves@redhat.com>
3839
3840 * breakpoint.c (insert_bp_location): Tolerate errors if the
3841 breakpoint is set in a user-loaded objfile.
3842 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3843 location is marked shlib_disabled. If the breakpoint is set in a
3844 user-loaded objfile is a GDB-side memory breakpoint, validate it
3845 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3846 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3847 flag.
3848 * mem-break.c (memory_validate_breakpoint): New function.
3849 * objfiles.c (userloaded_objfile_contains_address_p): New
3850 function.
3851 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3852 * target.h (memory_validate_breakpoint): New declaration.
3853
076855f9
PA
38542014-04-23 Pedro Alves <palves@redhat.com>
3855
3856 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3857 the breakpoint is set in a shared library, only suppress
3858 errors for software breakpoints, not hardware breakpoints.
3859
483805cf
PA
38602014-04-22 Pedro Alves <palves@redhat.com>
3861
3862 * infrun.c (schedlock_applies): New function, factored out from
3863 find_thread_needs_step_over.
3864 (find_thread_needs_step_over): Use it.
3865 (switch_back_to_stepped_thread): Always clear trap_expected if the
3866 step over is finished. Return early if scheduler locking applies.
3867 Look for the stepping thread and a potential step-over thread with
3868 a single loop.
3869 (currently_stepping_or_nexting_callback): Delete.
3870
a75fef0e
NC
38712014-04-22 Nick Clifton <nickc@redhat.com>
3872
3873 * NEWS: Mention that ARM sim now supports tracing.
3874
48b6e87e
YQ
38752014-04-22 Yao Qi <yao@codesourcery.com>
3876
3877 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3878 to ...
3879 * tracefile.c (tracefile_fetch_registers): ... it. New
3880 function.
3881 * tracefile.h (tracefile_fetch_registers): Declare.
3882 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3883 tracefile_fetch_registers.
3884
17617f2d
EZ
38852014-04-19 Eli Zaretskii <eliz@gnu.org>
3886
3887 PR gdb/14018
3888 * windows-nat.c (thread_rec): Don't display a warning when
3889 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3890 fails for any reason, set th->suspended to -1, so that we don't
3891 try to resume such a thread. Also, don't return NULL in these
3892 cases, to avoid completely ruin the session due to "PC register is
3893 not available" error.
3894 (do_windows_fetch_inferior_registers): Check errors in
3895 GetThreadContext call.
3896 (windows_continue): Accept an additional argument KILLED; if not
3897 zero, ignore errors in the SetThreadContext call, since the
3898 inferior was killed and is shutting down.
3899 (windows_resume, get_windows_debug_event)
3900 (windows_create_inferior, windows_mourn_inferior)
3901 (windows_kill_inferior): All callers of windows_continue changed
3902 to adjust to its new calling sequence.
3903
5723a6fd
YQ
39042014-04-19 Yao Qi <yao@codesourcery.com>
3905
3906 * ctf.c (ctf_open): Call post_create_inferior.
3907
614d5099
YQ
39082014-04-19 Yao Qi <yao@codesourcery.com>
3909
3910 * ctf.c (handle_id): New static variable.
3911 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3912 value. Get the declaration of event "register" and get length
3913 of field "contents".
3914
dac3e710
YQ
39152014-04-19 Yao Qi <yao@codesourcery.com>
3916
3917 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3918
2bca57ba
SC
39192014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3920
3921 * valops.c (oload_method_static): Remove unnecessary argument
3922 METHOD. Update all callers.
3923
51d48146
PA
39242014-04-18 Pedro alves <palves@redhat.com>
3925 Tom Tromey <tromey@redhat.com>
3926
3927 PR backtrace/15558
3928 * frame.c (get_prev_frame_1): Rename to ...
3929 (get_prev_frame_always): ... this, and make extern. Adjust.
3930 (skip_artificial_frames): Use get_prev_frame_always.
3931 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3932 (get_frame_unwind_stop_reason): Adjust to rename.
3933 * frame.h (get_prev_frame_always): Declare.
3934 * inline-frame.c: Include frame.h.
3935 (inline_frame_this_id): Use get_prev_frame_always.
3936
1bdad2e0
TG
39372014-04-18 Tristan Gingold <gingold@adacore.com>
3938
3939 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3940 code by using bfd_mach_o_get_base_address.
3941
7ce16bd4
UW
39422014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
3943
3944 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3945 (spu_ax_pseudo_register_collect): New function.
3946 (spu_ax_pseudo_register_push_stack): Likewise.
3947 (spu_dwarf_reg_to_regnum): Likewise.
3948 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3949
2ed3c037
UW
39502014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
3951
3952 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3953 Replace FRAME argument with FRAME_ID.
3954 * gdbarch.c, gdbarch.h: Regenerate.
3955 * findvar.c (default_value_from_register): Add GDBARCH argument;
3956 replace FRAME by FRAME_ID. No longer call get_frame_id.
3957 (value_from_register): Update call to gdbarch_value_from_register.
3958 * value.h (default_value_from_register): Update prototype.
3959 * s390-linux-tdep.c (s390_value_from_register): Update interface
3960 and call to default_value_from_register.
3961 * spu-tdep.c (spu_value_from_register): Likewise.
3962
3963 * findvar.c (address_from_register): Remove TYPE argument.
3964 Do not call value_from_register; use gdbarch_value_from_register
3965 with null_frame_id instead.
3966 * value.h (address_from_register): Update prototype.
3967 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3968 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3969 address_from_register interface change.
3970
71e50e83
YQ
39712014-04-17 Yao Qi <yao@codesourcery.com>
3972
3973 * gdbtypes.h: Update comments to link to types and macros'
3974 definitions.
3975
7a23c549
SC
39762014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3977
3978 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3979
22869d73
KS
39802014-04-16 Keith Seitz <keiths@redhat.com>
3981
3982 PR gdb/15827
3983 * dwarf2read.c (skip_one_die): Check that all relative-offset
3984 sibling DIEs fall within range of the current reader's buffer.
3985 (read_partial_die): Likewise.
3986
c4f87ca6
KS
39872014-04-16 Keith Seitz <keiths@redhat.com>
3988
3989 PR c++/16597
3990 * cp-namespace.c (lookup_symbol_file): If the type name of
3991 `this' is NULL, return immediately.
3992
b50c8614
KS
39932014-04-14 Keith Seitz <keiths@redhat.com>
3994
3995 PR c++/16253
3996 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3997 from symbol_matches_domain in symtab.c. All local callers
3998 of symbol_matches_domain updated.
3999 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4000 search STRUCT_DOMAIN.
4001 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4002 independently. standard_lookup will do that automatically.
4003 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4004 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4005 (cp_lookup_symbol_in_namespace): Likewise.
4006 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4007 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4008 may return a STRUCT_DOMAIN match.
4009 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4010 * cp-support.c: Include language.h.
4011 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4012 VAR_DOMAIN.
4013 * psymtab.c (match_partial_symbol): Compare the requested
4014 domain with the symbol's domain directly.
4015 (lookup_partial_symbol): Likewise.
4016 * symtab.c (lookup_symbol_in_language): Explain when/why
4017 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4018 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4019 appropriate languages.
4020 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4021 and moved to ada-lang.c
4022 (lookup_block_symbol): Explain that this function only returns
4023 symbol matching the requested DOMAIN.
4024 Compare the requested domain with the symbol's domain directly.
4025 (iterate_over_symbols): Compare the requested domain with the
4026 symbol's domain directly.
4027 * symtab.h (symbol_matches_domain): Remove.
4028
3d567982
TT
40292014-04-14 Tom Tromey <tromey@redhat.com>
4030
4031 PR c++/15246:
4032 * c-exp.y (type_aggregate_p): New function.
4033 (qualified_name, classify_inner_name): Use it.
4034 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4035 and TYPE_TARGET_TYPE of an enum type.
4036 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4037 an enum type.
4038 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4039 handle TYPE_DECLARED_CLASS.
4040 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4041 types.
4042 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4043 * valops.c (enum_constant_from_type): New function.
4044 (value_aggregate_elt): Use it.
4045 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4046 TYPE_CODE_ENUM.
4047
c848d642
TT
40482014-04-14 Tom Tromey <tromey@redhat.com>
4049
4050 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4051 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4052 const.
4053 * value.h (value_aggregate_elt): Update.
4054
0626fc76
TT
40552014-04-14 Tom Tromey <tromey@redhat.com>
4056
4057 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4058
5ecaaa66
SA
40592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4060
4061 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4062 (evaluate_subexp_standard): Pass noside argument.
4063 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4064 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4065 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4066 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4067 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4068
1612e0c0
SA
40692014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4070
4071 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4072 points to a constant blob.
4073
c451ebe5
SA
40742014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4075
4076 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4077 property and store it as the high bound and flag the range accordingly.
4078 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4079 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4080 * gdbtypes.h (enum range_flags): New enum.
4081 (struct range_bounds): Add flags member.
4082
1d42e4c4
SA
40832014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4084
4085 * c-typeprint.c (c_type_print_varspec_suffix): Added
4086 check for not yet resolved high bound. If unresolved, print
4087 "variable length" string to the console instead of random
4088 length.
4089
9f1f738a
SA
40902014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4091
4092 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4093 value.
4094 (ada_template_to_fixed_record_type_1): Likewise.
4095 (ada_to_fixed_type_1): Likewise.
4096 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4097 (cp_print_value): Likewise.
4098 * d-valprint.c (dynamic_array_type): Likewise.
4099 * findvar.c (address_of_variable): Likewise.
4100 * jv-valprint.c (java_value_print): Likewise.
4101 * valops.c (value_ind): Likewise.
4102 * value.c (coerce_ref): Likewise.
4103
3c8452d4
SA
41042014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4105
4106 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4107 value and retrieve the dynamic type size.
4108
4ad88275
SA
41092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4110
4111 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4112 passed to sizeof is dynamic evaluate the argument to compute the length.
4113
80180f79
SA
41142014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4115 Joel Brobecker <brobecker@adacore.com>
4116
4117 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4118 (dwarf2_evaluate_property): New function.
4119 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4120 * dwarf2read.c (attr_to_dynamic_prop): New function.
4121 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4122 attribute.
4123 * gdbtypes.c: Include dwarf2loc.h.
4124 (is_dynamic_type): New function.
4125 (resolve_dynamic_type): New function.
4126 (resolve_dynamic_bounds): New function.
4127 (get_type_length): New function.
4128 (check_typedef): Use get_type_length to compute type length.
4129 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4130 (TYPE_LOW_BOUND_KIND): New macro.
4131 (is_dynamic_type): New function prototype.
4132 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4133 to resolve dynamic properties of the type. Update comment.
4134 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4135
a1556843
RH
41362014-04-14 Richard Henderson <rth@redhat.com>
4137
4138 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4139
0be03e84
DE
41402014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4141 Doug Evans <xdje42@gmail.com>
4142
4143 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4144 dereference TYPE_CODE_REF values.
4145
6b662e19
JB
41462014-04-11 Joel Brobecker <brobecker@adacore.com>
4147
4148 Revert the following changes due to regressions:
4149
4150 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4151 (dwarf2_evaluate_property): New function.
4152 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4153 * dwarf2read.c (attr_to_dynamic_prop): New function.
4154 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4155 attribute.
4156 * gdbtypes.c: Include dwarf2loc.h.
4157 (is_dynamic_type): New function.
4158 (resolve_dynamic_type): New function.
4159 (resolve_dynamic_bounds): New function.
4160 (get_type_length): New function.
4161 (check_typedef): Use get_type_length to compute type length.
4162 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4163 (TYPE_LOW_BOUND_KIND): New macro.
4164 (is_dynamic_type): New function prototype.
4165 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4166 to resolve dynamic properties of the type. Update comment.
4167 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4168
4169 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4170 passed to sizeof is dynamic evaluate the argument to compute the length.
4171
4172 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4173 value and retrieve the dynamic type size.
4174
4175 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4176 (ada_template_to_fixed_record_type_1): Likewise.
4177 (ada_to_fixed_type_1): Likewise.
4178 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4179 (cp_print_value): Likewise.
4180 * d-valprint.c (dynamic_array_type): Likewise.
4181 * eval.c (evaluate_subexp_with_coercion): Likewise.
4182 * findvar.c (address_of_variable): Likewise.
4183 * jv-valprint.c (java_value_print): Likewise.
4184 * valops.c (value_ind): Likewise.
4185 * value.c (coerce_ref): Likewise.
4186
4187 * c-typeprint.c (c_type_print_varspec_suffix): Added
4188 check for not yet resolved high bound. If unresolved, print
4189 "variable length" string to the console instead of random
4190 length.
4191
4192 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4193 property and store it as the high bound and flag the range accordingly.
4194 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4195 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4196 * gdbtypes.h (enum range_flags): New enum.
4197 (struct range_bounds): Add flags member.
4198
4199 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4200 points to a constant blob.
4201
4202 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4203 (evaluate_subexp_standard): Pass noside argument.
4204 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4205 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4206 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4207 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4208 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4209
245a5f0b
KS
42102014-04-11 Keith Seitz <keiths@redhat.com>
4211
4212 PR c++/16675
4213 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4214 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4215 reference types.
4216
3bce8237
SA
42172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4218
4219 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4220 (evaluate_subexp_standard): Pass noside argument.
4221 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4222 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4223 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4224 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4225 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4226
92b09522
SA
42272014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4228
4229 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4230 points to a constant blob.
4231
e1969afb
SA
42322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4233
4234 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4235 property and store it as the high bound and flag the range accordingly.
4236 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4237 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4238 * gdbtypes.h (enum range_flags): New enum.
4239 (struct range_bounds): Add flags member.
4240
b86138fb
SA
42412014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4242
4243 * c-typeprint.c (c_type_print_varspec_suffix): Added
4244 check for not yet resolved high bound. If unresolved, print
4245 "variable length" string to the console instead of random
4246 length.
4247
bcd629a4
SA
42482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4249
4250 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4251 (ada_template_to_fixed_record_type_1): Likewise.
4252 (ada_to_fixed_type_1): Likewise.
4253 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4254 (cp_print_value): Likewise.
4255 * d-valprint.c (dynamic_array_type): Likewise.
4256 * eval.c (evaluate_subexp_with_coercion): Likewise.
4257 * findvar.c (address_of_variable): Likewise.
4258 * jv-valprint.c (java_value_print): Likewise.
4259 * valops.c (value_ind): Likewise.
4260 * value.c (coerce_ref): Likewise.
4261
04b19544
SA
42622014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4263
4264 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4265 value and retrieve the dynamic type size.
4266
26cb189f
SA
42672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4268
4269 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4270 passed to sizeof is dynamic evaluate the argument to compute the length.
4271
37c1ab67
SA
42722014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4273
4274 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4275 (dwarf2_evaluate_property): New function.
4276 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4277 * dwarf2read.c (attr_to_dynamic_prop): New function.
4278 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4279 attribute.
4280 * gdbtypes.c: Include dwarf2loc.h.
4281 (is_dynamic_type): New function.
4282 (resolve_dynamic_type): New function.
4283 (resolve_dynamic_bounds): New function.
4284 (get_type_length): New function.
4285 (check_typedef): Use get_type_length to compute type length.
4286 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4287 (TYPE_LOW_BOUND_KIND): New macro.
4288 (is_dynamic_type): New function prototype.
4289 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4290 to resolve dynamic properties of the type. Update comment.
4291 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4292
729efb13
SA
42932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4294
4295 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4296 declaring high/low bounds and change uses accordingly. Call
4297 create_range_type instead of create_static_range_type.
4298 * gdbtypes.c (create_range_type): New function.
4299 (create_range_type): Convert bounds into struct bound_prop and pass
4300 them to create_range_type.
4301 * gdbtypes.h (struct bound_prop): New struct.
4302 (create_range_type): New function prototype.
4303 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4304 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4305 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4306 part of the bound.
4307 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4308
0c9c3474
SA
43092014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4310
4311 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4312 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4313 * ada-lang.c: All uses of create_range_type updated.
4314 * coffread.c: All uses of create_range_type updated.
4315 * dwarf2read.c: All uses of create_range_type updated.
4316 * f-exp.y: All uses of create_range_type updated.
4317 * m2-valprint.c: All uses of create_range_type updated.
4318 * mdebugread.c: All uses of create_range_type updated.
4319 * stabsread.c: All uses of create_range_type updated.
4320 * valops.c: All uses of create_range_type updated.
4321 * valprint.c: All uses of create_range_type updated.
4322
9d497a19
PA
43232014-04-10 Pedro Alves <palves@redhat.com>
4324
4325 * breakpoint.c (single_step_breakpoints)
4326 (single_step_gdbarch): Move up in the file.
4327 (one_breakpoint_xfer_memory): New function, factored out from ...
4328 (breakpoint_xfer_memory): ... here. Also process single-step
4329 breakpoints.
4330
15a9128a
TG
43312014-04-09 Tristan Gingold <gingold@adacore.com>
4332
4333 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4334 comments.
4335 (darwin_decode_exception_message): Free port only after use.
4336
9c97a070
PL
43372014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4338
4339 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4340 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4341 when setting the size of call_length.
4342
7af389b8
SC
43432014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4344
4345 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4346 dereference TYPE_CODE_REF values.
4347
86ad98c3
JB
43482014-04-07 Joel Brobecker <brobecker@adacore.com>
4349
4350 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4351 end of warning message.
4352
b0aeadb3
DE
43532014-04-03 Doug Evans <dje@google.com>
4354
4355 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4356 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4357
5979d6b6
AM
43582014-04-02 Alan Modra <amodra@gmail.com>
4359
4360 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4361 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4362 (struct symbol_file_add_from_memory_args): Add size field.
4363 (find_vdso_size): New function.
4364 (add_vsyscall_page): Attempt to find vdso size.
4365
0d60c288
DE
43662014-04-01 Doug Evans <dje@google.com>
4367
4368 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4369
a41f2563
TG
43702014-04-01 Tristan Gingold <gingold@adacore.com>
4371
4372 * darwin-nat.c (darwin_encode_reply): Add prototype.
4373 (darwin_decode_exception_message): Reply to unknown inferiors.
4374 (darwin_decode_message): Handle message by id. Ignore message
4375 to unknown inferior.
4376 (darwin_wait): Discard unknown messages, add debug trace.
4377
11a865c8
DE
43782014-03-31 Doug Evans <dje@google.com>
4379
4380 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4381 comp_dir_string.
4382
770e7fc7
DE
43832014-03-31 Doug Evans <dje@google.com>
4384
4385 New option "set print symbol-loading".
4386 * NEWS: Mention it.
4387 * solib.c (solib_read_symbols): Only print symbol loading messages
4388 if requested.
4389 (solib_add): If symbol loading is in "brief" mode, notify user
4390 symbols are being loaded.
4391 (reload_shared_libraries_1): Ditto.
4392 * symfile.c (print_symbol_loading_off): New static global.
4393 (print_symbol_loading_brief): New static global.
4394 (print_symbol_loading_full): New static global.
4395 (print_symbol_loading_enums): New static global.
4396 (print_symbol_loading): New static global.
4397 (print_symbol_loading_p): New function.
4398 (symbol_file_add_with_addrs): Only print symbol loading messages
4399 if requested.
4400 (_initialize_symfile): Register "print symbol-loading" set/show
4401 command.
4402 * symfile.h (print_symbol_loading_p): Declare.
4403
c32c64b7
DE
44042014-03-30 Doug Evans <xdje42@gmail.com>
4405
4406 * infrun.c (set_last_target_status): New function.
4407 (handle_inferior_event): Call it.
4408
7c0bc051
DE
44092014-03-30 Doug Evans <xdje42@gmail.com>
4410
4411 * inferior.h (enum stop_kind): Improve comment.
4412
8776cfe9
JB
44132014-03-28 Joel Brobecker <brobecker@adacore.com>
4414
4415 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4416 a reference, strip the reference layer before calling
4417 the lang_ops value_has_mutated callback.
4418
410a0ff2
SDJ
44192014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4420
4421 Remove some globals from our parser.
4422 * language.c (unk_lang_parser): Add "struct parser_state"
4423 argument.
4424 * language.h (struct language_defn) <la_parser>: Likewise.
4425 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4426 (initialize_expout): Add "struct parser_state" argument.
4427 Rewrite function to use the parser state.
4428 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4429 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4430 write_exp_elt_longcst, write_exp_elt_dblcst,
4431 write_exp_elt_decfloatcst, write_exp_elt_type,
4432 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4433 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4434 write_dollar_variable): Likewise.
4435 (parse_exp_in_context_1): Use parser state.
4436 (insert_type_address_space): Add "struct parser_state" argument.
4437 Use parser state.
4438 (increase_expout_size): New function.
4439 * parser-defs.h: Forward declare "struct language_defn" and
4440 "struct parser_state".
4441 (expout, expout_size, expout_ptr): Remove extern declarations.
4442 (parse_gdbarch, parse_language): Rewrite macro declarations to
4443 accept the parser state.
4444 (struct parser_state): New struct.
4445 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4446 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4447 write_exp_elt_decfloatcst, write_exp_elt_type,
4448 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4449 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4450 write_exp_msymbol, write_dollar_variable,
4451 mark_struct_expression, insert_type_address_space): Add "struct
4452 parser_state" argument.
4453 (increase_expout_size): New function.
4454 * utils.c (do_clear_parser_state): New function.
4455 (make_cleanup_clear_parser_state): Likewise.
4456 * utils.h (make_cleanup_clear_parser_state): New function
4457 prototype.
4458 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4459 Update calls to write_exp* in order to pass the parser state.
4460 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4461 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4462 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4463 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4464 * stap-probe.c (stap_parse_register_operand): Likewise.
4465 (stap_parse_single_operand): Likewise.
4466 (stap_parse_argument_1): Likewise.
4467 (stap_parse_argument): Use parser state.
4468 * stap-probe.h: Include "parser-defs.h".
4469 (struct stap_parse_info) <pstate>: New field.
4470 * c-exp.y (parse_type): Rewrite to use parser state.
4471 (yyparse): Redefine to c_parse_internal.
4472 (pstate): New global variable.
4473 (parse_number): Add "struct parser_state" argument.
4474 (write_destructor_name): Likewise.
4475 (type_exp): Update calls to write_exp* and similars in order to
4476 use parser state.
4477 (exp1, exp, variable, qualified_name, space_identifier,
4478 typename, typebase): Likewise.
4479 (write_destructor_name, parse_number, lex_one_token,
4480 classify_name, classify_inner_name, c_parse): Add "struct
4481 parser_state" argument. Update function to use parser state.
4482 * c-lang.h: Forward declare "struct parser_state".
4483 (c_parse): Add "struct parser_state" argument.
4484 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4485 (yyparse): Redefine macro to ada_parse_internal.
4486 (pstate): New variable.
4487 (write_int, write_object_renaming, write_var_or_type,
4488 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4489 type_int, type_long, type_long_long, type_float, type_double,
4490 type_long_double, type_char, type_boolean, type_system_address):
4491 Add "struct parser_state" argument.
4492 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4493 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4494 var_or_type, aggregate, aggregate_component_list,
4495 positional_list, others, component_group,
4496 component_associations): Update calls to write_exp* and similar
4497 functions in order to use parser state.
4498 (ada_parse, write_var_from_sym, write_int,
4499 write_exp_op_with_string, write_object_renaming,
4500 find_primitive_type, write_selectors, write_ambiguous_var,
4501 write_var_or_type, write_name_assoc, type_int, type_long,
4502 type_long_long, type_float, type_double, type_long_double,
4503 type_char, type_boolean, type_system_address): Add "struct
4504 parser_state" argument. Adjust function to use parser state.
4505 * ada-lang.c (parse): Likewise.
4506 * ada-lang.h: Forward declare "struct parser_state".
4507 (ada_parse): Add "struct parser_state" argument.
4508 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4509 calls to both functions.
4510 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4511 parser state.
4512 (yyparse): Redefine macro to f_parse_internal.
4513 (pstate): New variable.
4514 (parse_number): Add "struct parser_state" argument.
4515 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4516 and similars in order to use parser state.
4517 (parse_number): Adjust code to use parser state.
4518 (yylex): Likewise.
4519 (f_parse): New function.
4520 * f-lang.h: Forward declare "struct parser_state".
4521 (f_parse): Add "struct parser_state" argument.
4522 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4523 parser state.
4524 (yyparse): Redefine macro for java_parse_internal.
4525 (pstate): New variable.
4526 (push_expression_name, push_expression_name, insert_exp): Add
4527 "struct parser_state" argument.
4528 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4529 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4530 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4531 PostIncrementExpression, PostDecrementExpression,
4532 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4533 UnaryExpressionNotPlusMinus, CastExpression,
4534 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4535 RelationalExpression, EqualityExpression, AndExpression,
4536 ExclusiveOrExpression, InclusiveOrExpression,
4537 ConditionalAndExpression, ConditionalOrExpression,
4538 ConditionalExpression, Assignment, LeftHandSide): Update
4539 calls to write_exp* and similars in order to use parser state.
4540 (parse_number): Ajust code to use parser state.
4541 (yylex): Likewise.
4542 (java_parse): New function.
4543 (push_variable): Add "struct parser_state" argument. Adjust
4544 code to user parser state.
4545 (push_fieldnames, push_qualified_expression_name,
4546 push_expression_name, insert_exp): Likewise.
4547 * jv-lang.h: Forward declare "struct parser_state".
4548 (java_parse): Add "struct parser_state" argument.
4549 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4550 parser state.
4551 (yyparse): Redefine macro to m2_parse_internal.
4552 (pstate): New variable.
4553 (type_exp, exp, fblock, variable, type): Update calls to
4554 write_exp* and similars to use parser state.
4555 (yylex): Likewise.
4556 (m2_parse): New function.
4557 * m2-lang.h: Forward declare "struct parser_state".
4558 (m2_parse): Add "struct parser_state" argument.
4559 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4560 * objc-lang.h: Forward declare "struct parser_state".
4561 (end_msglist): Add "struct parser_state" argument.
4562 * p-exp.y (parse_type): Rewrite macro to use parser state.
4563 (yyparse): Redefine macro to pascal_parse_internal.
4564 (pstate): New variable.
4565 (parse_number): Add "struct parser_state" argument.
4566 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4567 write_exp* and similars in order to use parser state.
4568 (parse_number, yylex): Adjust code to use parser state.
4569 (pascal_parse): New function.
4570 * p-lang.h: Forward declare "struct parser_state".
4571 (pascal_parse): Add "struct parser_state" argument.
4572 * go-exp.y (parse_type): Rewrite macro to use parser state.
4573 (yyparse): Redefine macro to go_parse_internal.
4574 (pstate): New variable.
4575 (parse_number): Add "struct parser_state" argument.
4576 (type_exp, exp1, exp, variable, type): Update calls to
4577 write_exp* and similars in order to use parser state.
4578 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4579 to use parser state.
4580 (go_parse): Likewise.
4581 * go-lang.h: Forward declare "struct parser_state".
4582 (go_parse): Add "struct parser_state" argument.
4583
342587c4
DE
45842014-03-27 Doug Evans <dje@google.com>
4585
4586 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4587
33e80786
DE
45882014-03-27 Doug Evans <dje@google.com>
4589
4590 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4591 Remove argument abbrev_section. All callers updated.
4592
1dbab08b
DE
45932014-03-27 Doug Evans <dje@google.com>
4594
4595 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4596 addr_base, ranges_base.
4597
318d3177
KS
45982014-03-26 Keith Seitz <keiths@redhat.com>
4599
4600 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4601 types, not VAR_DOMAIN.
4602
1e54db15
SL
46032014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4604
4605 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4606 "ra" registers.
4607 * features/nios2-linux.c: Regenerated.
4608 * features/nios2.c: Regenerated.
4609
d3839ede
PA
46102014-03-25 Pedro Alves <palves@redhat.com>
4611
4612 * cli/cli-script.c (script_from_file): Force the interpreter to
4613 sync mode.
4614
7588d2ec
PL
46152014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4616
4617 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4618 small stack allocation.
4619
a6290449
TG
46202014-03-24 Tristan Gingold <gingold@adacore.com>
4621
4622 * darwin-nat.c (exc_server): Remove unused prototype.
4623 (darwin_dump_message): Correctly display data on x86_64.
4624 (darwin_encode_reply): Fix style.
4625 Add comments and fix indentation.
4626
31ae9d24 46272014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
4628
4629 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4630
6339bfc4
DE
46312014-03-22 Doug Evans <xdje42@gmail.com>
4632
4633 * infcmd.c: Whitespace fixes.
4634 (interrupt_command): Merge two function comments into one.
4635
0a07590b
DE
46362014-03-22 Doug Evans <xdje42@gmail.com>
4637
4638 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4639 All uses updated.
4640
b55fbac4
YQ
46412014-03-22 Yao Qi <yao@codesourcery.com>
4642
4643 * remote.c (target_read_live_memory): Remove.
4644 (memory_xfer_live_readonly_partial): Rename it to
4645 remote_xfer_live_readonly_partial. Remove argument 'object'.
4646 All callers updated. Call remote_read_bytes_1
4647 instead of target_read_live_memory.
4648 * tracepoint.c (set_traceframe_number): Remove.
4649 (make_cleanup_restore_traceframe_number): Likewise .
4650 * tracepoint.h (set_traceframe_number): Remove declaration.
4651 (make_cleanup_restore_traceframe_number): Likewise.
4652
9217e74e
YQ
46532014-03-22 Yao Qi <yao@codesourcery.com>
4654
4655 * remote.c (remote_read_bytes): Move code on reading from the
4656 remote stub to ...
4657 (remote_read_bytes_1): ... here. New function.
4658
8acf9577
YQ
46592014-03-22 Yao Qi <yao@codesourcery.com>
4660
4661 * ctf.c (ctf_xfer_partial): Check the return value of
4662 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4663 return TARGET_XFER_UNAVAILABLE.
4664 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4665 * target.c (target_read_live_memory): Move it to remote.c.
4666 (memory_xfer_live_readonly_partial): Likewise.
4667 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4668 * remote.c (target_read_live_memory): Moved from target.c.
4669 (memory_xfer_live_readonly_partial): Likewise.
4670 (remote_read_bytes): Factored out from
4671 memory_xfer_partial_1.
4672
feef67ab
DE
46732014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4674
4675 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4676 NULL pointer.
4677
b65dc60b
PA
46782014-03-21 Pedro Alves <palves@redhat.com>
4679
4680 * infrun.c (normal_stop): Extend comment.
4681
b4ab256d
HZ
46822014-03-21 Hui Zhu <hui@codesourcery.com>
4683 Pedro Alves <palves@redhat.com>
4684
4685 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4686 static buffer.
4687 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4688 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4689 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4690
deba7593
MR
46912014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4692
4693 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4694 `z' formatted output modifier.
4695
1bff71c3
SDJ
46962014-03-20 Tom Tromey <tromey@redhat.com>
4697 Sergio Durigan Junior <sergiodj@redhat.com>
4698
4699 * probe.c (parse_probes): Turn assert into an ordinary error.
4700 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4701 exceptions when parsing probes. Rearrange the code for clarity.
4702
90e28950
TT
47032014-03-20 Tom Tromey <tromey@redhat.com>
4704
4705 PR gdb/14135
4706 * top.c (execute_command): Only dispatch events if the command
4707 started the target.
4708
beb460e8
PA
47092014-03-20 Tom Tromey <tromey@redhat.com>
4710
4711 PR cli/15718
4712 * infcall.c: Include event-top.h.
4713 (run_inferior_call): Call async_disable_stdin if needed.
4714
99619bea
PA
47152014-03-20 Pedro Alves <palves@redhat.com>
4716
4717 * infrun.c (prepare_to_proceed): Delete.
4718 (thread_still_needs_step_over): New function.
4719 (find_thread_needs_step_over): New function.
4720 (proceed): If the current thread needs a step-over, set its
4721 steping_over_breakpoint flag. Adjust to use
4722 find_thread_needs_step_over instead of prepare_to_proceed.
4723 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4724 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4725 breakpoint.
4726 (switch_back_to_stepped_thread): Step over breakpoints of all
4727 threads not the stepping thread, before switching back to the
4728 stepping thread.
4729
2adfaa28
PA
47302014-03-20 Pedro Alves <palves@redhat.com>
4731
4732 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4733 extern.
4734 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4735 * infrun.c (saved_singlestep_ptid)
4736 (stepping_past_singlestep_breakpoint): Delete.
4737 (resume): Remove stepping_past_singlestep_breakpoint handling.
4738 (proceed): Store the prev_pc of the stepping thread too.
4739 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4740 singlestep_pc.
4741 (enum infwait_states): Delete infwait_thread_hop_state.
4742 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4743 field.
4744 (handle_inferior_event): Adjust.
4745 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4746 handling and the thread-hop code. Before removing single-step
4747 breakpoints, check whether the thread hit a single-step breakpoint
4748 of another thread. If it did, the trap is not a random signal.
4749 (switch_back_to_stepped_thread): If the event thread hit a
4750 single-step breakpoint, unblock it before switching to the
4751 stepping thread. Handle the case of the stepped thread having
4752 advanced already.
4753 (keep_going): Handle the case of the current thread moving past a
4754 single-step breakpoint.
4755
31e77af2
PA
47562014-03-20 Pedro Alves <palves@redhat.com>
4757
4758 PR breakpoints/7143
4759 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4760 are being stepped over.
4761 (breakpoint_address_match): Make extern.
4762 * breakpoint.h (breakpoint_address_match): New declaration.
4763 * inferior.h (stepping_past_instruction_at): New declaration.
4764 * infrun.c (struct step_over_info): New type.
4765 (step_over_info): New global.
4766 (set_step_over_info, clear_step_over_info)
4767 (stepping_past_instruction_at): New functions.
4768 (handle_inferior_event): Clear the step-over info when
4769 trap_expected is cleared.
4770 (resume): Remove now stale comment.
4771 (clear_proceed_status): Clear step-over info.
4772 (proceed): Adjust step-over handling to set or clear the step-over
4773 info instead of removing all breakpoints.
4774 (handle_signal_stop): When setting up a thread-hop, don't remove
4775 breakpoints here.
4776 (stop_stepping): Clear step-over info.
4777 (keep_going): Adjust step-over handling to set or clear step-over
4778 info and then always inserting breakpoints, instead of removing
4779 all breakpoints when stepping over one.
4780
b9f437de
PA
47812014-03-20 Pedro Alves <palves@redhat.com>
4782
4783 * infrun.c (previous_inferior_ptid): Adjust comment.
4784 (deferred_step_ptid): Delete.
4785 (infrun_thread_ptid_changed, prepare_to_proceed)
4786 (init_wait_for_inferior): Adjust.
4787 (handle_signal_stop): Delete deferred_step_ptid handling.
4788
06c868a8
JK
47892014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4790
4791 PR gdb/15358
4792 * defs.h (sync_quit_force_run): New declaration.
4793 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4794 * event-top.c (async_sigterm_handler): New declaration.
4795 (async_sigterm_token): New variable.
4796 (async_init_signals): Create also async_sigterm_token.
4797 (async_sigterm_handler): New function.
4798 (sync_quit_force_run): New variable.
4799 (handle_sigterm): Replace quit_force call by other calls.
4800 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4801
dea80df0
MR
48022014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4803
4804 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4805 offset into SPE pseudo registers.
4806
0c7e1a46
PA
48072014-03-18 Pedro Alves <palves@redhat.com>
4808
4809 PR gdb/13860
4810 * inferior.h (print_stop_event): Declare.
4811 * infrun.c (print_stop_event): New, factored out from ...
4812 (normal_stop): ... this.
4813 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4814 of bpstat_print/print_stack_frame.
4815
9c1fcd01
TT
48162014-03-17 Tom Tromey <tromey@redhat.com>
4817
4818 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4819
11aa919a
PMR
48202014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4821
4822 * ada-lang.c (decode_constrained_packed_array): Perform a
4823 minimal coercion for reference with coerce_ref instead of
4824 ada_coerce_ref.
4825
d4ccb5e0
TG
48262014-03-17 Tristan Gingold <gingold@adacore.com>
4827
4828 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4829 (darwin_solib_create_inferior_hook): Emit a warning if version
4830 is unhandled.
4831
49840f2a
UW
48322014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
4833
4834 * python/py-value.c (get_field_flag): Cast flag_name argument to
4835 PyObject_GetAttrString to support Python 2.4.
4836
ed4123e5
JK
48372014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4838
4839 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4840 (Global Maintainers): Remove Jan Kratochvil.
4841
d6b64346
PA
48422014-03-14 Pedro Alves <palves@redhat.com>
4843
4844 * inferior.h (terminal_ours_for_output): Rename to ...
4845 (child_terminal_ours_for_output): ... this.
4846 (terminal_save_ours): Rename to ...
4847 (child_terminal_save_ours): ... this.
4848 (terminal_ours): Rename to ...
4849 (child_terminal_ours): ... this.
4850 (terminal_inferior): Rename to ...
4851 (child_terminal_inferior): ... this.
4852 (terminal_init_inferior): Rename to ...
4853 (child_terminal_init_inferior): ... this.
4854 (terminal_init_inferior_with_pgrp): Rename to ...
4855 (child_terminal_init_inferior_with_pgrp): ... this.
4856 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4857 (child_terminal_init_with_pgrp): ... this.
4858 (terminal_save_ours): Rename to ...
4859 (child_terminal_save_ours): ... this.
4860 (terminal_init_inferior): Rename to ...
4861 (child_terminal_init): ... this. Adjust.
4862 (terminal_inferior): Rename to ...
4863 (child_terminal_inferior): ... this.
4864 (terminal_ours_for_output): Rename to ...
4865 (child_terminal_ours_for_output): ... this. Adjust.
4866 (terminal_ours): Rename to ...
4867 (child_terminal_ours): ... this.
4868 (terminal_ours_1): Rename to ...
4869 (child_terminal_ours_1): ... this. Adjust.
4870 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4871 * windows-nat.c (do_initial_windows_stuff): Adjust.
4872 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4873 (gnu_terminal_init): ... this. Adjust.
4874 (gnu_target): Adjust.
4875 * inf-child.c (inf_child_target): Adjust.
4876
5a1e8c7a
DE
48772014-03-13 Doug Evans <xdje42@gmail.com>
4878
4879 PR guile/16612
4880 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4881 new eq?-hashtab.
4882
350e1a76
DE
48832014-03-13 Doug Evans <xdje42@gmail.com>
4884
4885 * value.c (record_latest_value): Call release_value_or_incref
4886 instead of release_value.
4887
a69900ae
PA
48882014-03-13 Pedro Alves <palves@redhat.com>
4889
4890 * procfs.c (procfs_target): Don't override to_shortname,
4891 to_longname or to_doc.
4892
5db9f0bd
PA
48932014-03-13 Pedro Alves <palves@redhat.com>
4894
4895 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4896 Unix in user visible strings.
4897
5e3a2c38
SS
48982014-03-12 Stan Shebs <stan@codesourcery.com>
4899
4900 * gdbtypes.h: Annotate comments for Doxygen, add a page
4901 block comment with some general info.
4902
8bc2fe48
PA
49032014-03-12 Pedro Alves <palves@redhat.com>
4904
4905 * infcmd.c (prepare_execution_command): New function, factored out
4906 from several execution commands.
4907 (run_command_1, continue_command, step_1, jump_command)
4908 (signal_command, until_command, advance_command, finish_command)
4909 (attach_command): Use prepare_execution_command.
4910
638c5f49
OJ
49112014-03-12 Omair Javaid <omair.javaid@linaro.org>
4912
4913 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4914 (MAX_BPTS): Define.
4915 (MAX_WPTS): Define.
4916 (struct arm_linux_thread_points): Removed.
4917 (struct arm_linux_process_info): New.
4918 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4919 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4920 (arm_linux_find_breakpoints_by_tid): Removed.
4921 (struct arch_lwp_info): New.
4922 (arm_linux_find_process_pid): New functions.
4923 (arm_linux_add_process): New functions.
4924 (arm_linux_process_info_get): New functions.
4925 (arm_linux_forget_process): New function.
4926 (arm_linux_get_debug_reg_state): New function.
4927 (struct update_registers_data): New.
4928 (update_registers_callback): New function.
4929 (arm_linux_insert_hw_breakpoint1): Updated.
4930 (arm_linux_remove_hw_breakpoint1): Updated.
4931 (arm_linux_insert_hw_breakpoint): Updated.
4932 (arm_linux_remove_hw_breakpoint): Updated.
4933 (arm_linux_insert_watchpoint): Updated.
4934 (arm_linux_remove_watchpoint): Updated.
4935 (arm_linux_new_thread): Updated.
4936 (arm_linux_prepare_to_resume): New function.
4937 (arm_linux_new_fork): New function.
4938 (_initialize_arm_linux_nat): Updated.
4939
6d03af93
PA
49402014-03-12 Pedro Alves <palves@redhat.com>
4941
4942 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4943
b3ccfe11
TT
49442014-03-12 Tom Tromey <tromey@redhat.com>
4945
4946 * inf-child.c (return_zero): New function.
4947 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4948 * aix-thread.c (aix_thread_inferior_created): New function.
4949 (aix_thread_attach): Remove.
4950 (init_aix_thread_ops): Don't set to_attach.
4951 (_initialize_aix_thread): Register inferior_created observer.
4952 * corelow.c (init_core_ops): Don't set to_attach or
4953 to_create_inferior.
4954 * exec.c (init_exec_ops): Don't set to_attach or
4955 to_create_inferior.
4956 * infcmd.c (run_command_1): Use find_run_target. Make direct
4957 target calls.
4958 (attach_command): Use find_attach_target. Make direct target
4959 calls.
4960 * record-btrace.c (init_record_btrace_ops): Don't set
4961 to_create_inferior.
4962 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4963 Remove.
4964 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4965 set to_create_inferior.
4966 * target.c (complete_target_initialization): Add assertion.
4967 (target_create_inferior): Remove.
4968 (find_default_attach, find_default_create_inferior): Remove.
4969 (find_attach_target, find_run_target): New functions.
4970 (find_default_is_async_p, find_default_can_async_p)
4971 (target_supports_non_stop, target_attach): Remove.
4972 (init_dummy_target): Don't set to_create_inferior or
4973 to_supports_non_stop.
4974 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4975 TARGET_DEFAULT_FUNC.
4976 <to_create_inferior>: Add comment.
4977 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4978 TARGET_DEFAULT_RETURN.
4979 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4980 (find_attach_target, find_run_target): Declare.
4981 (target_create_inferior): Remove.
4982 (target_has_execution_1): Update comment.
4983 (target_supports_non_stop): Remove.
4984 * target-delegates.c: Rebuild.
4985
91f83b02
PA
49862014-03-12 Pedro Alves <palves@redhat.com>
4987
4988 * inf-child.h: Update comment to not mention Unix.
4989
f1aea813
PA
49902014-03-12 Pedro Alves <palves@redhat.com>
4991
4992 * inf-child.c: Update top comment to not mention Unix. Add
4993 generic comment describing how this target is meant to be used.
4994 (inf_child_post_attach, inf_child_post_startup_inferior)
4995 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4996 Unix in comment.
4997
ee8e9165
PA
49982014-03-12 Pedro Alves <palves@redhat.com>
4999
5000 * nto-procfs.c: Include inf-child.h.
5001 (procfs_ops): Delete global.
5002 (procfs_can_run): Delete method.
5003 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5004 target pointer instead of referencing procfs_ops.
5005 (procfs_prepare_to_store): Delete.
5006 (init_procfs_ops): Delete function.
5007 (procfs_target): New function, based on init_procfs_ops, but
5008 inherit inf_child_target.
5009 (_initialize_procfs): Use procfs_target.
5010
51a9c8c5
PA
50112014-03-12 Pedro Alves <palves@redhat.com>
5012
5013 * windows-nat.c: Include inf-child.h.
5014 (windows_ops): Delete global.
5015 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5016 methods.
5017 (init_windows_ops): Delete function.
5018 (windows_target): New function, based on init_windows_ops, but
5019 inherit inf_child_target.
5020 (_initialize_windows_nat): Use windows_target. Install x86
5021 specific target methods here.
5022
c1966e26
DE
50232014-03-10 Doug Evans <xdje42@gmail.com>
5024
5025 * guile/guile.c (call_initialize_gdb_module): New function.
5026 (initialize_guile): Replace call to scm_init_guile with call to
5027 scm_with_guile.
5028
023db19c
JB
50292014-03-10 Joel Brobecker <brobecker@adacore.com>
5030
5031 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5032 in call to TYPE_CODE macro.
5033
5ec18f2b
JG
50342014-03-10 Jerome Guitton <guitton@adacore.com>
5035
8668be63
JB
5036 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5037 Resolve tagged types to full view.
5ec18f2b 5038
7d03f2eb
HZ
50392014-03-10 Hui Zhu <hui@codesourcery.com>
5040
5041 * target.h (target_insert_breakpoint): Remove "hardware" from its
5042 comments.
5043
c5164cbc
DE
50442014-03-07 Doug Evans <dje@google.com>
5045
5046 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5047
c4a3fee2
DE
50482014-03-07 Doug Evans <dje@google.com>
5049
5050 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5051 Remove unused local comp_dir_attr. Assert exactly one of
5052 stub_comp_unit_die, stub_comp_dir is non-NULL.
5053
3156469c
JB
50542014-03-07 Joel Brobecker <brobecker@adacore.com>
5055
5056 * target.h (complete_target_initialization, add_target):
5057 Add comment.
5058
c1a7b7c6
PA
50592014-03-07 Pedro Alves <palves@redhat.com>
5060
5061 * go32-nat.c: Include inf-child.h.
5062 (go32_ops): Delete global.
5063 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5064 Delete methods.
5065 (go32_create_inferior): Push the passed in target pointer instead
5066 of referencing go32_ops.
5067 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5068 (go32_target): New function, based on init_go32_ops, but inherit
5069 inf_child_target.
5070 (_initialize_go32_nat): Use go32_target. Move parts of
5071 init_go32_ops here.
5072
d3c1a85f
JB
50732014-03-06 Joel Brobecker <brobecker@adacore.com>
5074
5075 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5076 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5077 SYMBOL_VALUE_ADDRESS.
5078 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5079
5fa1d40e
YQ
50802014-03-06 Yao Qi <yao@codesourcery.com>
5081
5082 * breakpoint.c (get_tracepoint_by_number): Remove argument
5083 optional_p. All callers updated. Adjust comments. Update
5084 output message.
5085 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5086
0c13193f
YQ
50872014-03-06 Yao Qi <yao@codesourcery.com>
5088
5089 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5090 early if get_number returns zero. Use 'p' instead of 'args'.
5091
2217da06
YQ
50922014-03-06 Yao Qi <yao@codesourcery.com>
5093
5094 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5095 message.
5096
cc3da688
YQ
50972014-03-06 Yao Qi <yao@codesourcery.com>
5098
5099 PR breakpoints/16508
5100 * tracepoint.c (check_trace_running): New function.
5101 (trace_find_command): Move code to check_trace_running and
5102 call check_trace_running.
5103 (trace_find_pc_command): Likewise.
5104 (trace_find_tracepoint_command): Likewise.
5105 (trace_find_line_command): Likewise.
5106 (trace_find_range_command): Likewise.
5107 * tracepoint.h (check_trace_running): Likewise.
5108 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5109
6a5f844b
YQ
51102014-03-06 Yao Qi <yao@codesourcery.com>
5111
5112 * target.h (struct target_ops) <to_traceframe_info>: Use
5113 TARGET_DEFAULT_NORETURN (tcomplain ()).
5114 * target-delegates.c: Regenerated.
5115
0f26cec1
PA
51162014-03-05 Pedro Alves <palves@redhat.com>
5117
5118 PR gdb/16575
5119 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5120 void. Update comment.
5121 (dcache_xfer_memory): Delete.
5122 (dcache_read_memory_partial): New, based on the read bits of
5123 dcache_xfer_memory.
5124 (dcache_update): Add status parameter. Use ULONGEST for len, and
5125 adjust. Discard cache lines if the reason for the update was
5126 error.
5127 * dcache.h (dcache_xfer_memory): Delete declaration.
5128 (dcache_read_memory_partial): New declaration.
5129 (dcache_update): Update prototype.
5130 * target.c (raw_memory_xfer_partial): Update the dcache here.
5131 (memory_xfer_partial_1): Don't handle dcache writes here.
5132
b2b255bd
MF
51332014-03-05 Mike Frysinger <vapier@gentoo.org>
5134
5135 * remote-sim.c (gdbsim_load): Add const to prog.
5136
5d9cf8a4
TT
51372014-03-03 Tom Tromey <tromey@redhat.com>
5138
5139 * elfread.c (probe_key): Change to bfd_data.
5140 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5141 now per-BFD, not per-objfile.
5142 * stap-probe.c (stap_probe_destroy): Update comment.
5143 (handle_stap_probe): Allocate on the per-BFD obstack.
5144
729662a5
TT
51452014-03-03 Tom Tromey <tromey@redhat.com>
5146
5147 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5148 * breakpoint.c (create_longjmp_master_breakpoint): Use
5149 get_probe_address.
5150 (add_location_to_breakpoint, bkpt_probe_insert_location)
5151 (bkpt_probe_remove_location): Update.
5152 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5153 * elfread.c (elf_symfile_relocate_probe): Remove.
5154 (elf_probe_fns): Update.
5155 (insert_exception_resume_breakpoint): Change type of "probe"
5156 parameter to bound_probe.
5157 (check_exception_resume): Update.
5158 * objfiles.c (objfile_relocate1): Don't relocate probes.
5159 * probe.c (bound_probe_s): New typedef.
5160 (parse_probes): Use get_probe_address. Set sal's objfile.
5161 (find_probe_by_pc): Return a bound_probe.
5162 (collect_probes): Return a VEC(bound_probe_s).
5163 (compare_probes): Update.
5164 (gen_ui_out_table_header_info): Change type of "probes"
5165 parameter. Update.
5166 (info_probes_for_ops): Update.
5167 (get_probe_address): New function.
5168 (probe_safe_evaluate_at_pc): Update.
5169 * probe.h (struct probe_ops) <get_probe_address>: New field.
5170 <set_semaphore, clear_semaphore>: Add objfile parameter.
5171 (struct probe) <objfile>: Remove field.
5172 <arch>: New field.
5173 <address>: Update comment.
5174 (struct bound_probe): New.
5175 (find_probe_by_pc): Return a bound_probe.
5176 (get_probe_address): Declare.
5177 * solib-svr4.c (struct probe_and_action) <address>: New field.
5178 (hash_probe_and_action, equal_probe_and_action): Update.
5179 (register_solib_event_probe): Add address parameter.
5180 (solib_event_probe_at): Update.
5181 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5182 get_probe_address.
5183 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5184 (stap_get_probe_address): New function.
5185 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5186 (compile_probe_arg): Update.
5187 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5188 address.
5189 (handle_stap_probe): Don't relocate the probe.
5190 (stap_relocate): Remove.
5191 (stap_gen_info_probes_table_values): Update.
5192 (stap_probe_ops): Remove stap_relocate.
5193 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5194 (debug_sym_probe_fns): Update.
5195 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5196 * symtab.c (init_sal): Use memset.
5197 * symtab.h (struct symtab_and_line) <objfile>: New field.
5198 * tracepoint.c (start_tracing, stop_tracing): Update.
5199
ff887920
TT
52002014-03-03 Tom Tromey <tromey@redhat.com>
5201
5202 * probe.h (parse_probes, find_probe_by_pc)
5203 (find_probes_in_objfile): Fix comments.
5204
f0407826
DE
52052014-03-02 Doug Evans <xdje42@gmail.com>
5206
5207 * infrun.c (handle_signal_stop): Replace test for
5208 TARGET_WAITKIND_STOPPED with an assert.
5209
35e6a711
DE
52102014-03-02 Doug Evans <xdje42@gmail.com>
5211
5212 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5213
667f9d0b
DE
52142014-03-02 Doug Evans <xdje42@gmail.com>
5215
5216 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5217
dc92ace0
MK
52182014-03-01 Mark Kettenis <kettenis@gnu.org>
5219
5220 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5221
a900370f
MK
52222014-03-01 Mark Kettenis <kettenis@gnu.org>
5223
5224 * i386obsd-nat.c: Include "obsd-nat.h".
5225 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5226 add_target.
5227 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5228
b72a7981
MK
52292014-03-01 Mark Kettenis <kettenis@gnu.org>
5230
5231 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5232
96c70aba
MK
52332014-03-01 Mark Kettenis <kettenis@gnu.org>
5234
5235 * mips64obsd-nat.c: Include "obsd-nath".
5236 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5237 add_target
5238 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5239
874a80af
MK
52402014-03-01 Mark Kettenis <kettenis@gnu.org>
5241
8fd408f1
MK
5242 * amd64obsd-nat.c: Include "obsd-nat,h.
5243 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5244 add_target.
874a80af
MK
5245 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5246
9cf95373
SC
52472014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5248
5249 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5250 (find_overload_match): Update call to find_oload_champ.
5251 (find_oload_champ_namespace_loop): Likewise
5252
863e4da4
MK
52532014-02-28 Mark Kettenis <kettenis@gnu.org>
5254
025cac40
MK
5255 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5256
1ed586ce
MK
5257 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5258 * config/sparc/obsd64.mh: New file.
5259 * sparc64obsd-nat.c: New file.
5260
863e4da4
MK
5261 * obsd-nat.h: New file.
5262 * obsd-nat.c: New file.
5263 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5264 (ALLDEPFILES): Add obsd-nat.c.
5265
89de4da4
TT
52662014-02-28 Tom Tromey <tromey@redhat.com>
5267
5268 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5269 * cli-out.h (cli_ui_out_impl): Now const.
5270 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5271 * ui-out.c (struct ui_out) <impl>: Now const.
5272 (default_ui_out_impl): Now const.
5273 (ui_out_new): Make 'impl' parameter const.
5274 * ui-out.h (ui_out_new): Update.
5275
c725e7b6
MK
52762014-02-27 Mark Kettenis <kettenis@gnu.org>
5277
5278 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5279
670b46b3
MK
52802014-02-27 Mark Kettenis <kettenis@gnu.org>
5281
5282 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5283
c91550fc
JK
52842014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5285
5286 Additional PR 8882 fix.
5287 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5288
2fa0369e
PA
52892014-02-27 Pedro Alves <palves@redhat.com>
5290
5291 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5292 isn't set.
5293
d632a097
PA
52942014-02-27 Pedro Alves <palves@redhat.com>
5295
5296 PR 12702
5297 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5298 * nat/linux-waitpid.c: Include string.h.
5299 (status_to_str): Moved here and made extern.
5300 * nat/linux-waitpid.h (status_to_str): New declaration.
5301
2ebd5a35
HZ
53022014-02-27 Hui Zhu <hui@codesourcery.com>
5303
5304 PR 12702
5305 * infrun.c (ptid_match): Move ...
5306 * common/ptid.c (ptid_match): ... here.
5307 * inferior.h (ptid_match): Move ...
5308 * common/ptid.h (ptid_match): ... here.
5309
3cdd631f
MK
53102014-02-27 Mark Kettenis <kettenis@gnu.org>
5311
5312 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5313 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5314 gdb_target_obs.
5315
bee30a64
MK
53162014-02-27 Mark Kettenis <kettenis@gnu.org>
5317
5318 * obsd-tdep.c (obsd_auxv_parse): New function.
5319 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
5320
5321 * gdbarch.sh (auxv_parse): New.
5322 * gdbarch.h: Regenerated.
5323 * gdbarch.c: Regenerated.
5324 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5325
7a5a839f
LC
53262014-02-26 Ludovic Courtès <ludo@gnu.org>
5327
5328 * guile/scm-value.c (gdbscm_history_append_x): New function.
5329 (value_functions): Add it.
5330
31aa7e4e
JB
53312014-02-27 Joel Brobecker <brobecker@adacore.com>
5332
5333 * dwarf2read.c (attr_value_as_address): New function.
5334 (dwarf2_find_base_address, read_call_site_scope): Use
5335 attr_value_as_address in place of DW_ADDR.
5336 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5337 the low and high addresses. Slight rework of the handling
5338 of the high pc being a constant form, and limit it to
5339 DWARF verson 4 or higher.
5340 (dwarf2_record_block_ranges): Likewise.
5341 (read_partial_die): Likewise.
5342 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5343
9b333ba3
TT
53442014-02-26 Tom Tromey <tromey@redhat.com>
5345
5346 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5347
5f6cac40
TT
53482014-02-26 Tom Tromey <tromey@redhat.com>
5349
5350 * elfread.c (elf_read_minimal_symbols): Return early if
5351 minimal symbols have already been read. Add "ei" parameter.
5352 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5353 * minsyms.c (prim_record_minimal_symbol_full): Update.
5354 * objfiles.h (struct objstats) <n_minsyms>: Move...
5355 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5356 * symmisc.c (print_objfile_statistics): Update.
5357
2750ef27
TT
53582014-02-26 Tom Tromey <tromey@redhat.com>
5359
5360 * elfread.c (elf_read_minimal_symbols): New function, from
5361 elf_symfile_read.
5362 (elf_symfile_read): Call it.
5363
34643a32
TT
53642014-02-26 Tom Tromey <tromey@redhat.com>
5365
5366 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5367 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5368 (lookup_minimal_symbol_solib_trampoline)
5369 (lookup_minimal_symbol_by_pc_section_1)
5370 (lookup_minimal_symbol_and_objfile): Update.
5371 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5372 Don't allocate a minimal symbol if minsyms have already been read.
5373 (build_minimal_symbol_hash_tables): Update.
5374 (install_minimal_symbols): Do nothing if minsyms already read.
5375 Use the per-BFD obstack.
5376 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5377 * objfiles.c (allocate_objfile): Call
5378 terminate_minimal_symbol_table later.
5379 (have_minimal_symbols): Update.
5380 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5381 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5382 Move from struct objfile.
5383 <minsyms_read>: New field.
5384 (struct objfile) <msymbols, minimal_symbol_count,
5385 msymbol_hash, msymbol_demangled_hash>: Move.
5386 (ALL_OBJFILE_MSYMBOLS): Update.
5387 * symfile.c (read_symbols): Set minsyms_read.
5388 (reread_symbols): Update.
5389 * symmisc.c (dump_objfile, dump_msymbols): Update.
5390
2273f0ac
TT
53912014-02-26 Tom Tromey <tromey@redhat.com>
5392
5393 * minsyms.c (msymbols_sort): Remove.
5394 * minsyms.h (msymbols_sort): Remove.
5395 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5396 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5397 * elfread.c (elf_symtab_read): Don't add section offsets.
5398 * xcoffread.c (record_minimal_symbol): Don't add section offset
5399 to minimal symbol address.
5400 * somread.c (text_offset, data_offset): Remove.
5401 (som_symtab_read): Don't add section offsets to minimal symbol
5402 addresses.
5403 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5404 Don't add section offsets to minimal symbols.
5405 * coffread.c (coff_symtab_read): Don't add section offsets
5406 to minimal symbol addresses.
5407 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5408 to minimal symbol addresses.
5409 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5410 section offset to minimal symbol addresses.
5411 * mdebugread.c (parse_partial_symbols): Don't add section
5412 offset to minimal symbol addresses.
5413 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5414 offset to minimal symbol addresses.
5415
77e371c0
TT
54162014-02-26 Tom Tromey <tromey@redhat.com>
5417
5418 * ada-lang.c (ada_main_name): Update.
5419 (ada_add_standard_exceptions): Update.
5420 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5421 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5422 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5423 * auxv.c (ld_so_xfer_auxv): Update.
5424 * avr-tdep.c (avr_scan_prologue): Update.
5425 * ax-gdb.c (gen_var_ref): Update.
5426 * blockframe.c (get_pc_function_start)
5427 (find_pc_partial_function_gnu_ifunc): Update.
5428 * breakpoint.c (create_overlay_event_breakpoint)
5429 (create_longjmp_master_breakpoint)
5430 (create_std_terminate_master_breakpoint)
5431 (create_exception_master_breakpoint): Update.
5432 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5433 * c-valprint.c (c_val_print): Update.
5434 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5435 * common/agent.c (agent_look_up_symbols): Update.
5436 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5437 * dwarf2loc.c (call_site_to_target_addr): Update.
5438 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5439 * elfread.c (elf_gnu_ifunc_record_cache)
5440 (elf_gnu_ifunc_resolve_by_got): Update.
5441 * findvar.c (default_read_var_value): Update.
5442 * frame.c (inside_main_func): Update.
5443 * frv-tdep.c (frv_frame_this_id): Update.
5444 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5445 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5446 Update.
5447 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5448 (hppa_hpux_find_dummy_bpaddr): Update.
5449 * hppa-tdep.c (hppa_symbol_address): Update.
5450 * infcmd.c (until_next_command): Update.
5451 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5452 Update.
5453 * linespec.c (minsym_found, add_minsym): Update.
5454 * linux-nat.c (get_signo): Update.
5455 * linux-thread-db.c (inferior_has_bug): Update.
5456 * m32c-tdep.c (m32c_return_value)
5457 (m32c_m16c_address_to_pointer): Update.
5458 * m32r-tdep.c (m32r_frame_this_id): Update.
5459 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5460 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5461 * maint.c (maintenance_translate_address): Update.
5462 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5463 (frob_address): New function.
5464 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5465 frob_address. Rename parameter to "pc_in".
5466 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5467 addresses.
5468 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5469 Update.
5470 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5471 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5472 * objc-lang.c (find_objc_msgsend): Update.
5473 * objfiles.c (objfile_relocate1): Update.
5474 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5475 * p-valprint.c (pascal_val_print): Update.
5476 * parse.c (write_exp_msymbol): Update.
5477 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5478 (ppc_elfv2_skip_entrypoint): Update.
5479 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5480 * printcmd.c (build_address_symbolic, msym_info)
5481 (address_info): Update.
5482 * proc-service.c (ps_pglobal_lookup): Update.
5483 * psymtab.c (find_pc_sect_psymtab_closer)
5484 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5485 Change msymbol parameter to bound_minimal_symbol.
5486 * ravenscar-thread.c (get_running_thread_id): Update.
5487 * remote.c (remote_check_symbols): Update.
5488 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5489 address.
5490 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5491 * solib-dsbt.c (lm_base): Update.
5492 * solib-frv.c (lm_base, main_got): Update.
5493 * solib-irix.c (locate_base): Update.
5494 * solib-som.c (som_solib_create_inferior_hook)
5495 (link_map_start): Update.
5496 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5497 * solib-svr4.c (elf_locate_base, enable_break): Update.
5498 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5499 (flush_ea_cache): Update.
5500 * stabsread.c (define_symbol, scan_file_globals): Update.
5501 * stack.c (find_frame_funname): Update.
5502 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5503 (debug_qf_find_pc_sect_symtab): Update.
5504 * symfile.c (simple_read_overlay_table)
5505 (simple_overlay_update): Update.
5506 * symfile.h (struct quick_symbol_functions)
5507 <find_pc_sect_symtab>: Change type of msymbol to
5508 bound_minimal_symbol.
5509 * symmisc.c (dump_msymbols): Update.
5510 * symtab.c (find_pc_sect_symtab_via_partial)
5511 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5512 (search_symbols, print_msymbol_info): Update.
5513 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5514 (MSYMBOL_VALUE_ADDRESS): Redefine.
5515 (BMSYMBOL_VALUE_ADDRESS): New macro.
5516 * tracepoint.c (scope_info): Update.
5517 * tui/tui-disasm.c (tui_find_disassembly_address)
5518 (tui_get_begin_asm_address): Update.
5519 * valops.c (find_function_in_inferior): Update.
5520 * value.c (value_static_field, value_fn_field): Update.
5521
3b7344d5
TT
55222014-02-26 Tom Tromey <tromey@redhat.com>
5523
5524 * ada-lang.c (ada_update_initial_language): Update.
5525 (ada_main_name, ada_has_this_exception_support): Update.
5526 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5527 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5528 * arm-tdep.c (arm_skip_stub): Update.
5529 * auxv.c (ld_so_xfer_auxv): Update.
5530 * avr-tdep.c (avr_scan_prologue): Update.
5531 * ax-gdb.c (gen_var_ref): Update.
5532 * breakpoint.c (struct breakpoint_objfile_data)
5533 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5534 type to bound_minimal_symbol.
5535 (create_overlay_event_breakpoint)
5536 (create_longjmp_master_breakpoint)
5537 (create_std_terminate_master_breakpoint)
5538 (create_exception_master_breakpoint): Update.
5539 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5540 * c-exp.y (classify_name): Update.
5541 * coffread.c (coff_symfile_read): Update.
5542 * common/agent.c (agent_look_up_symbols): Update.
5543 * d-lang.c (d_main_name): Update.
5544 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5545 * dec-thread.c (enable_dec_thread): Update.
5546 * dwarf2loc.c (call_site_to_target_addr): Update.
5547 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5548 * eval.c (evaluate_subexp_standard): Update.
5549 * findvar.c (struct minsym_lookup_data) <result>: Change type
5550 to bound_minimal_symbol.
5551 <objfile>: Remove.
5552 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5553 * frame.c (inside_main_func): Update.
5554 * frv-tdep.c (frv_frame_this_id): Update.
5555 * gcore.c (call_target_sbrk): Update.
5556 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5557 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5558 Update.
5559 * go-lang.c (go_main_name): Update.
5560 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5561 (hppa_hpux_find_import_stub_for_addr): Update.
5562 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5563 Update. Change return type.
5564 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5565 type.
5566 * jit.c (jit_breakpoint_re_set_internal): Update.
5567 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5568 Update.
5569 * linux-nat.c (get_signo): Update.
5570 * linux-thread-db.c (inferior_has_bug): Update
5571 * m32c-tdep.c (m32c_return_value)
5572 (m32c_m16c_address_to_pointer): Update.
5573 * m32r-tdep.c (m32r_frame_this_id): Update.
5574 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5575 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5576 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5577 lookup_minimal_symbol. Change return type.
5578 (lookup_minimal_symbol): Remove.
5579 (lookup_bound_minimal_symbol): Update.
5580 (lookup_minimal_symbol_text): Change return type.
5581 (lookup_minimal_symbol_solib_trampoline): Change return type.
5582 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5583 (lookup_minimal_symbol_solib_trampoline): Change return type.
5584 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5585 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5586 (value_nsstring, find_imps): Update.
5587 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5588 * p-lang.c (pascal_main_name): Update.
5589 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5590 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5591 * proc-service.c (ps_pglobal_lookup): Update.
5592 * ravenscar-thread.c (get_running_thread_msymbol): Change
5593 return type.
5594 (has_ravenscar_runtime, get_running_thread_id): Update.
5595 * remote.c (remote_check_symbols): Update.
5596 * sol-thread.c (ps_pglobal_lookup): Update.
5597 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5598 * solib-dsbt.c (lm_base): Update.
5599 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5600 Update.
5601 * solib-irix.c (locate_base): Update.
5602 * solib-som.c (som_solib_create_inferior_hook)
5603 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5604 Update.
5605 * solib-spu.c (spu_enable_break): Update.
5606 * solib-svr4.c (elf_locate_base, enable_break): Update.
5607 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5608 (flush_ea_cache): Update.
5609 * stabsread.c (define_symbol): Update.
5610 * symfile.c (simple_read_overlay_table): Update.
5611 * symtab.c (find_pc_sect_line): Update.
5612 * tracepoint.c (scope_info): Update.
5613 * tui-disasm.c (tui_get_begin_asm_address): Update.
5614 * value.c (value_static_field): Update.
5615
40c1a007
TT
56162014-02-26 Tom Tromey <tromey@redhat.com>
5617
5618 * minsyms.c (prim_record_minimal_symbol_full): Use
5619 SET_MSYMBOL_VALUE_ADDRESS.
5620 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5621 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5622 SET_MSYMBOL_VALUE_ADDRESS.
5623 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5624 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5625
efd66ac6
TT
56262014-02-26 Tom Tromey <tromey@redhat.com>
5627
5628 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5629 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5630 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5631 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5632 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5633 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5634 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5635 * ada-lang.c (ada_main_name): Update.
5636 (ada_lookup_simple_minsym): Update.
5637 (ada_make_symbol_completion_list): Update.
5638 (ada_add_standard_exceptions): Update.
5639 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5640 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5641 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5642 * arm-tdep.c (skip_prologue_function): Update.
5643 (arm_skip_stack_protector, arm_skip_stub): Update.
5644 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5645 (arm_wince_skip_main_prologue): Update.
5646 * auxv.c (ld_so_xfer_auxv): Update.
5647 * avr-tdep.c (avr_scan_prologue): Update.
5648 * ax-gdb.c (gen_var_ref): Update.
5649 * block.c (call_site_for_pc): Update.
5650 * blockframe.c (get_pc_function_start): Update.
5651 (find_pc_partial_function_gnu_ifunc): Update.
5652 * breakpoint.c (create_overlay_event_breakpoint): Update.
5653 (create_longjmp_master_breakpoint): Update.
5654 (create_std_terminate_master_breakpoint): Update.
5655 (create_exception_master_breakpoint): Update.
5656 (resolve_sal_pc): Update.
5657 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5658 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5659 Update.
5660 * c-valprint.c (c_val_print): Update.
5661 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5662 * coffread.c (coff_symfile_read): Update.
5663 * common/agent.c (agent_look_up_symbols): Update.
5664 * dbxread.c (find_stab_function_addr): Update.
5665 (end_psymtab): Update.
5666 * dwarf2loc.c (call_site_to_target_addr): Update.
5667 (func_verify_no_selftailcall): Update.
5668 (tailcall_dump): Update.
5669 (call_site_find_chain_1): Update.
5670 (dwarf_expr_reg_to_entry_parameter): Update.
5671 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5672 (elf_gnu_ifunc_resolve_by_got): Update.
5673 * f-valprint.c (info_common_command): Update.
5674 * findvar.c (read_var_value): Update.
5675 * frame.c (get_prev_frame_1): Update.
5676 (inside_main_func): Update.
5677 * frv-tdep.c (frv_skip_main_prologue): Update.
5678 (frv_frame_this_id): Update.
5679 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5680 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5681 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5682 (gnuv3_skip_trampoline): Update.
5683 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5684 (hppa64_hpux_in_solib_call_trampoline): Update.
5685 (hppa_hpux_skip_trampoline_code): Update.
5686 (hppa64_hpux_search_dummy_call_sequence): Update.
5687 (hppa_hpux_find_import_stub_for_addr): Update.
5688 (hppa_hpux_find_dummy_bpaddr): Update.
5689 * hppa-tdep.c (hppa_symbol_address)
5690 (hppa_lookup_stub_minimal_symbol): Update.
5691 * i386-tdep.c (i386_skip_main_prologue): Update.
5692 (i386_pe_skip_trampoline_code): Update.
5693 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5694 * infcall.c (get_function_name): Update.
5695 * infcmd.c (until_next_command): Update.
5696 * jit.c (jit_breakpoint_re_set_internal): Update.
5697 (jit_inferior_init): Update.
5698 * linespec.c (minsym_found): Update.
5699 (add_minsym): Update.
5700 * linux-fork.c (info_checkpoints_command): Update.
5701 * linux-nat.c (get_signo): Update.
5702 * linux-thread-db.c (inferior_has_bug): Update.
5703 * m32c-tdep.c (m32c_return_value): Update.
5704 (m32c_m16c_address_to_pointer): Update.
5705 (m32c_m16c_pointer_to_address): Update.
5706 * m32r-tdep.c (m32r_frame_this_id): Update.
5707 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5708 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5709 * maint.c (maintenance_translate_address): Update.
5710 * minsyms.c (add_minsym_to_hash_table): Update.
5711 (add_minsym_to_demangled_hash_table): Update.
5712 (msymbol_objfile): Update.
5713 (lookup_minimal_symbol): Update.
5714 (iterate_over_minimal_symbols): Update.
5715 (lookup_minimal_symbol_text): Update.
5716 (lookup_minimal_symbol_by_pc_name): Update.
5717 (lookup_minimal_symbol_solib_trampoline): Update.
5718 (lookup_minimal_symbol_by_pc_section_1): Update.
5719 (lookup_minimal_symbol_and_objfile): Update.
5720 (prim_record_minimal_symbol_full): Update.
5721 (compare_minimal_symbols): Update.
5722 (compact_minimal_symbols): Update.
5723 (build_minimal_symbol_hash_tables): Update.
5724 (install_minimal_symbols): Update.
5725 (terminate_minimal_symbol_table): Update.
5726 (find_solib_trampoline_target): Update.
5727 (minimal_symbol_upper_bound): Update.
5728 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5729 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5730 (mips_skip_pic_trampoline_code): Update.
5731 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5732 * objc-lang.c (selectors_info): Update.
5733 (classes_info): Update.
5734 (find_methods): Update.
5735 (find_imps): Update.
5736 (find_objc_msgsend): Update.
5737 * objfiles.c (objfile_relocate1): Update.
5738 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5739 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5740 * p-valprint.c (pascal_val_print): Update.
5741 * parse.c (write_exp_msymbol): Update.
5742 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5743 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5744 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5745 * printcmd.c (build_address_symbolic): Update.
5746 (sym_info): Update.
5747 (address_info): Update.
5748 * proc-service.c (ps_pglobal_lookup): Update.
5749 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5750 (find_pc_sect_psymtab): Update.
5751 * python/py-framefilter.c (py_print_frame): Update.
5752 * ravenscar-thread.c (get_running_thread_id): Update.
5753 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5754 Update.
5755 * remote.c (remote_check_symbols): Update.
5756 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5757 (rs6000_skip_trampoline_code): Update.
5758 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5759 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5760 * solib-dsbt.c (lm_base): Update.
5761 * solib-frv.c (lm_base): Update.
5762 (main_got): Update.
5763 * solib-irix.c (locate_base): Update.
5764 * solib-som.c (som_solib_create_inferior_hook): Update.
5765 (som_solib_desire_dynamic_linker_symbols): Update.
5766 (link_map_start): Update.
5767 * solib-spu.c (spu_enable_break): Update.
5768 (ocl_enable_break): Update.
5769 * solib-svr4.c (elf_locate_base): Update.
5770 (enable_break): Update.
5771 * spu-tdep.c (spu_get_overlay_table): Update.
5772 (spu_catch_start): Update.
5773 (flush_ea_cache): Update.
5774 * stabsread.c (define_symbol): Update.
5775 (scan_file_globals): Update.
5776 * stack.c (find_frame_funname): Update.
5777 (frame_info): Update.
5778 * symfile.c (simple_read_overlay_table): Update.
5779 (simple_overlay_update): Update.
5780 * symmisc.c (dump_msymbols): Update.
5781 * symtab.c (fixup_section): Update.
5782 (find_pc_sect_line): Update.
5783 (skip_prologue_sal): Update.
5784 (search_symbols): Update.
5785 (print_msymbol_info): Update.
5786 (rbreak_command): Update.
5787 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5788 (completion_list_objc_symbol): Update.
5789 (default_make_symbol_completion_list_break_on): Update.
5790 * tracepoint.c (scope_info): Update.
5791 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5792 (tui_get_begin_asm_address): Update.
5793 * valops.c (find_function_in_inferior): Update.
5794 * value.c (value_static_field): Update.
5795 (value_fn_field): Update.
5796
50e65b17
TT
57972014-02-26 Tom Tromey <tromey@redhat.com>
5798
5799 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5800 bound minimal symbols. Move code that knows about minsym
5801 table layout...
5802 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5803 function.
5804 * minsyms.h (minimal_symbol_upper_bound): Declare.
5805 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5806 minimal_symbol_upper_bound.
5807
1b588015
JB
58082014-02-27 Joel Brobecker <brobecker@adacore.com>
5809
5810 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5811 Use the type's name if its basic type does not have a tag.
5812
dbb9c2b1
JB
58132014-02-27 Joel Brobecker <brobecker@adacore.com>
5814
5815 * dwarf2read.c (read_subrange_type): Add comment.
5816
55426c9d
JB
58172014-02-27 Joel Brobecker <brobecker@adacore.com>
5818
5819 * dwarf2read.c (update_enumeration_type_from_children): New
5820 function, mostly extracted from process_structure_scope.
5821 (read_enumeration_type): Call update_enumeration_type_from_children.
5822 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5823 and flag_flag_enum fields.
5824
f2fce0ca
PA
58252014-02-26 Pedro Alves <palves@redhat.com>
5826
5827 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5828 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5829 to_xfer_partial method.
5830
7a44e40e
PA
58312014-02-26 Pedro Alves <palves@redhat.com>
5832
5833 * target.c (complete_target_initialization): Don't install
5834 default_xfer_partial as to_xfer_partial hook.
5835 (nomemory): Delete.
5836 (update_current_target): Don't INHERIT nor de_fault
5837 deprecated_xfer_memory. Delete de_fault macro.
5838 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5839 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5840 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5841 field.
5842
bd265cd0
PA
58432014-02-26 Pedro Alves <palves@redhat.com>
5844
5845 * go32-nat.c (my_write_child): New function.
5846 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5847 (go32_xfer_partial): New function.
5848 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5849 Instead install a to_xfer_partial hook.
5850
9d46c4e5
PA
58512014-02-26 Pedro Alves <palves@redhat.com>
5852
5853 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5854 to_xfer_partial helper. Rewrite.
5855 (procfs_xfer_partial): New function.
5856 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5857 Install a to_xfer_partial hook.
5858
a1583b1f
PA
58592014-02-26 Pedro Alves <palves@redhat.com>
5860
5861 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5862 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5863 (m32r_xfer_partial): New function.
5864 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5865 Install a to_xfer_partial hook.
5866
6df1b29f
PA
58672014-02-26 Pedro Alves <palves@redhat.com>
5868
5869 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5870 helper.
5871 (mips_xfer_partial): New function.
5872 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5873 hook. Install a to_xfer_partial hook.
5874
dc53a7ad
JB
58752014-02-26 Joel Brobecker <brobecker@adacore.com>
5876
5877 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5878 * gdbtypes.c (create_array_type_with_stride): New function,
5879 renaming create_array_type, but with an added parameter
5880 called "bit_stride".
5881 (create_array_type): Re-implement using
5882 create_array_type_with_stride.
5883 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5884 and DW_AT_bit_stride attributes.
5885
12ab52e9
PA
58862014-02-26 Pedro Alves <palves@redhat.com>
5887
5888 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5889 task-specific breakpoints.
5890
d16461ae
PA
58912014-02-25 Pedro Alves <palves@redhat.com>
5892
5893 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5894 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5895
a8b16220
SS
58962014-02-25 Stan Shebs <stan@codesourcery.com>
5897
5898 * defs.h: Annotate comments for Doxygen.
5899
b9e795ee
TT
59002014-02-25 Tom Tromey <tromey@redhat.com>
5901
5902 * target.h (target_ignore): Don't declare.
5903 * target.c (target_ignore): Remove.
5904
849c862e
JK
59052014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5906
5907 PR gdb/16626
5908 * auto-load.c (auto_load_objfile_script_1): Change filename to
5909 debugfile.
5910
475109d8
JB
59112014-02-25 Joel Brobecker <brobecker@adacore.com>
5912
5913 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5914 documentation. Adjust prototype to match the target_ops
5915 to_xfer_partial method. Adjust implementation accordingly.
5916
e186c3bd
HZ
59172014-02-25 Hui Zhu <hui@codesourcery.com>
5918
5919 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5920 to_traceframe_info.
5921
6d451942
KB
59222014-02-25 Kevin Buettner <kevinb@redhat.com>
5923
041ab8b4 5924 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
5925 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5926 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5927 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5928 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5929 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5930 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5931 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5932 New constants.
5933 (rl78_register_type): Use a data pointer type for SP and
5934 new pseudo registers mentioned above. Use a 16 bit integer
5935 type for all other register pairs.
5936 (rl78_register_name, rl78_g10_register_name): Update for
5937 new pseudo registers.
5938 (rl78_pseudo_register_read): Likewise.
5939 (rl78_pseudo_register_write): Likewise.
5940 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5941 to the newly added pseudo registers.
5942
eddf0bae
DE
59432014-02-24 Doug Evans <dje@google.com>
5944
5945 * value.c (record_latest_value): Fix comment.
5946 * printcmd.c (print_command_1): Remove code to handle -1 return from
5947 record_latest_value.
5948
e96027e0
PA
59492014-02-24 Pedro Alves <palves@redhat.com>
5950
5951 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5952 deprecated_xfer_memory hook.
5953 (procfs_xfer_partial): Call procfs_xfer_memory instead
5954 of the deprecated_xfer_memory target hook.
5955 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5956 helper.
5957
0837c976
YZ
59582014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5959
5960 * windows-nat.c (windows_xfer_shared_libraries): Return
5961 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5962 requested object is TARGET_OBJECT_LIBRARIES.
5963
bc113b4e
YQ
59642014-02-24 Yao Qi <yao@codesourcery.com>
5965
5966 * target.h (enum target_xfer_status)
5967 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5968 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5969 explicitly. New.
5970 * corefile.c (memory_error_message): User updated.
5971 * exec.c (section_table_read_available_memory): Likewise.
5972 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5973 * target.c (target_xfer_status_to_string): Likewise.
5974 (raw_memory_xfer_partial): Likewise.
5975 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5976 * valops.c (read_value_memory): Likewise.
5977 * exec.h: Update comments.
5978
01cb8804
YQ
59792014-02-24 Yao Qi <yao@codesourcery.com>
5980
5981 * target.c (target_xfer_status_to_string): Rename argument err
5982 to status.
5983 * target.h (target_xfer_status_to_string): Update declaration.
5984 Replace target_xfer_error_to_string with
5985 target_xfer_status_to_string in comment.
5986
93063aa6
YQ
59872014-02-24 Yao Qi <yao@codesourcery.com>
5988
5989 * mips-linux-nat.c (super_close): Update its type.
5990 (mips_linux_close): Pass 'self' to super_close.
5991
5c328c05
YQ
59922014-02-24 Yao Qi <yao@codesourcery.com>
5993
5994 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5995 * corefile.c (read_memory): Adjusted.
5996 * target.c (target_write_with_progress): Adjusted.
5997
f73023dd
YQ
59982014-02-23 Yao Qi <yao@codesourcery.com>
5999
6000 Revert two patches:
6001
6002 2013-10-25 Yao Qi <yao@codesourcery.com>
6003
6004 * remote.c (remote_traceframe_info): Return early if
6005 traceframe is not selected.
6006
6007 2013-07-19 Yao Qi <yao@codesourcery.com>
6008
6009 * target.c (update_current_target): Change the default action
6010 of 'to_traceframe_info' from tcomplain to return_zero.
6011 * target.h (struct target_ops) <to_traceframe_info>: Add more
6012 comments.
6013
5a2eb0ef
YQ
60142014-02-23 Yao Qi <yao@codesourcery.com>
6015
6016 * valops.c (read_value_memory): Rewrite it. Call
6017 target_xfer_partial in a loop.
6018 * exec.h (section_table_available_memory): Remove declaration.
6019 Move comments to ...
6020 * exec.c (section_table_available_memory): ... here. Make it
6021 static.
6022
1ee79381
YQ
60232014-02-23 Yao Qi <yao@codesourcery.com>
6024
6025 * exec.c (section_table_read_available_memory): New function.
6026 * exec.h (section_table_read_available_memory): Declare.
6027 * ctf.c (ctf_xfer_partial): Call
6028 section_table_read_available_memory.
6029 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6030
1ca49d37
YQ
60312014-02-23 Yao Qi <yao@codesourcery.com>
6032
6033 * ctf.c (ctf_xfer_partial): Move code to ...
6034 * exec.c (exec_read_partial_read_only): ... it. New function.
6035 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6036 * tracefile.c: Include "exec.h".
6037 * exec.h (exec_read_partial_read_only): Declare.
6038
a283690e
YQ
60392014-02-23 Yao Qi <yao@codesourcery.com>
6040
6041 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6042 (tfile_has_memory): Remove.
6043 (init_tfile_ops): Don't set fields to_has_all_memory and
6044 to_has_memory of tfile_ops.
6045 * tracefile.c (tracefile_has_all_memory): New function.
6046 (tracefile_has_memory): New function.
6047 (init_tracefile_ops): Initialize fields to_has_all_memory and
6048 to_has_memory of 'ops'.
6049
12e03cd0
YQ
60502014-02-23 Yao Qi <yao@codesourcery.com>
6051
6052 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6053 (ctf_thread_alive, ctf_get_trace_status): Remove.
6054 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6055 init_tracefile_ops.
6056 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6057 (tfile_has_stack, tfile_has_registers): Remove.
6058 (tfile_thread_alive): Remove.
6059 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6060 init_tracefile_ops.
6061 * tracefile.c (tracefile_has_stack): New function.
6062 (tracefile_has_registers): New function.
6063 (tracefile_thread_alive): New function.
6064 (tracefile_get_trace_status): New function.
6065 (init_tracefile_ops): New function.
6066 * tracefile.h (init_tracefile_ops): Declare.
6067
11395323
YQ
60682014-02-23 Yao Qi <yao@codesourcery.com>
6069
6070 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6071 (O_LARGEFILE): Likewise.
6072 (tfile_ops): Likewise.
6073 (TRACE_HEADER_SIZE): Likewise.
6074 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6075 (cur_data_size): Likewise.
6076 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6077 (tfile_close, tfile_files_info): Likewise.
6078 (tfile_get_trace_status): Likewise.
6079 (tfile_get_tracepoint_status): Likewise.
6080 (tfile_get_traceframe_address): Likewise.
6081 (tfile_trace_find, match_blocktype): Likewise.
6082 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6083 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6084 (tfile_get_trace_state_variable_value): Likewise.
6085 (tfile_has_all_memory, tfile_has_memory): Likewise.
6086 (tfile_has_stack, tfile_has_registers): Likewise.
6087 (tfile_thread_alive, build_traceframe_info): Likewise.
6088 (tfile_traceframe_info, init_tfile_ops): Likewise.
6089 (_initialize_tracepoint): Don't call init_tfile_ops
6090 and add_target_with_completer.
6091 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6092 exec.h, completer.h and filenames.h.
6093 (_initialize_tracefile_tfile): New function.
6094
7951c4eb
YQ
60952014-02-23 Yao Qi <yao@codesourcery.com>
6096
6097 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6098 tracefile-tfile.o.
6099 (HFILES_NO_SRCDIR): Add tracefile.h.
6100 * ctf.c: Include "tracefile.h".
6101 * tracefile.h: New file.
6102 * tracefile.c: New file
6103 * tracefile-tfile.c: New file.
6104 * tracepoint.c: Include "tracefile.h".
6105 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6106 (stop_reason_names): Add const.
6107 (trace_file_writer_xfree): Move it to tracefile.c.
6108 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6109 (trace_save_ctf): Likewise.
6110 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6111 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6112 (tfile_write_header, tfile_write_regblock_type): Likewise.
6113 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6114 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6115 (tfile_write_raw_data, tfile_end): Likewise.
6116 (tfile_trace_file_writer_new): Likewise.
6117 (free_uploaded_tp): Make it extern.
6118 (free_uploaded_tsv): Make it extern.
6119 (_initialize_tracepoint): Move code to register command 'tsave'
6120 to tracefile.c.
6121 * tracepoint.h (stop_reason_names): Declare.
6122 (struct trace_frame_write_ops): Move it to tracefile.h.
6123 (struct trace_file_write_ops): Likewise.
6124 (struct trace_file_writer): Likewise.
6125 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6126
184cd072
JK
61272014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6128
6129 PR gdb/16594
6130 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6131 process name.
6132 (get_cores_used_by_process): New parameter num_cores, use it.
6133 (linux_xfer_osdata_processes): Pass num_cores to it.
6134 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6135 process name.
6136
c63528fc
AK
61372014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6138
6139 * target.c (memory_xfer_partial): Fix length arg in call to
6140 breakpoint_xfer_memory.
6141
d7b30f67
SDJ
61422014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6143
6144 PR tdep/16397
6145 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6146 number comes after the + or - signs. Adjust length of register
6147 name to be extracted.
6148
8838afaf
TT
61492014-02-20 Tom Tromey <tromey@redhat.com>
6150
6151 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6152 (ada_varobj_ops): Mark "extern".
6153
05227d14
TT
61542014-02-20 Tom Tromey <tromey@redhat.com>
6155
6156 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6157
1254eefc
DE
61582014-02-20 Doug Evans <xdje42@gmail.com>
6159
6160 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6161 All callers updated.
6162 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6163 All callers updated.
6164 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6165 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6166
adde2bff
DE
61672014-02-20 lin zuojian <manjian2006@gmail.com>
6168 Joel Brobecker <brobecker@adacore.com>
6169 Doug Evans <xdje42@gmail.com>
6170
6171 PR symtab/16581
6172 * dwarf2read.c (struct die_info): New member in_process.
6173 (reset_die_in_process): New function.
6174 (process_die): Set it at the start, reset when returning.
6175 (inherit_abstract_dies): Only call process_die if origin_child_die
6176 not already being processed.
6177
3be75f87
JB
61782014-02-20 Joel Brobecker <brobecker@adacore.com>
6179
6180 * windows-nat.c (handle_unload_dll): Add function documentation.
6181 (do_initial_windows_stuff): Add comment explaining why we wait
6182 until after inferior initialization has finished before
6183 processing all DLLs.
6184
47f7ffdb
JB
61852014-02-20 Joel Brobecker <brobecker@adacore.com>
6186
6187 * windows-nat.c (get_module_name): Delete.
6188 (windows_get_exec_module_filename): New function, mostly
6189 inspired from get_module_name.
6190 (windows_pid_to_exec_file): Replace call to get_module_name
6191 by call to windows_get_exec_module_filename.
6192
1cd9feab
JB
61932014-02-20 Joel Brobecker <brobecker@adacore.com>
6194
6195 * windows-nat.c (handle_load_dll): Rewrite this function's
6196 introductory comment. Remove code using get_module_name
6197 to get the DLL's name.
6198
ea39ad35
JB
61992014-02-20 Joel Brobecker <brobecker@adacore.com>
6200
6201 * windows-nat.c (get_windows_debug_event): Ignore
6202 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6203 if windows_initialization_done == 0.
6204 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6205 Adjust implementation to always load all DLLs.
6206 (do_initial_windows_stuff): Replace call to
6207 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6208
95060284
JB
62092014-02-20 Joel Brobecker <brobecker@adacore.com>
6210
6211 * windows-nat.c (_initialize_windows_nat): Deprecate the
6212 "dll-symbols" command. Turn the "add-shared-symbol-files"
6213 and "assf" aliases into commands, and deprecate them as well.
6214 * NEWS: Add entry explaining that "dll-symbols" and its two
6215 aliases are now deprecated.
6216
8d4fdb12
JB
62172014-02-20 Joel Brobecker <brobecker@adacore.com>
6218
6219 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6220 new-line in debug string. Remove trailing spaces.
6221
1b281443
SS
62222014-02-19 Stan Shebs <stan@codesourcery.com>
6223
6224 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6225
f7bd0f78
SC
62262014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6227
6228 * NEWS: Add entry for the new feature
6229 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6230 and class values.
6231
399ebc3d
SS
62322014-02-19 Stan Shebs <stan@codesourcery.com>
6233
6234 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6235
c658158d
PA
62362014-02-19 Pedro Alves <palves@redhat.com>
6237
6238 * common/ptid.h (struct ptid): Mention that process_stratum
6239 targets should prefer ptid.lwp.
6240
ba348170
PA
62412014-02-19 Pedro Alves <palves@redhat.com>
6242
6243 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6244 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6245 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6246 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6247 store remote thread ids rather than ptid.tid.
6248 (_initialize_remote): Adjust.
6249
ac01945b
TT
62502014-02-19 Tom Tromey <tromey@redhat.com>
6251
6252 * target.c (target_get_unwinder): Rewrite.
6253 (target_get_tailcall_unwinder): Rewrite.
6254 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6255 (record_btrace_to_get_tailcall_unwinder): New function.
6256 (init_record_btrace_ops): Update.
6257 * target.h (struct target_ops) <to_get_unwinder,
6258 to_get_tailcall_unwinder>: Now function pointers. Use
6259 TARGET_DEFAULT_RETURN.
6260
8476dc92
TT
62612014-02-19 Tom Tromey <tromey@redhat.com>
6262
6263 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6264 argument.
6265 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6266
c0eca49f
TT
62672014-02-19 Tom Tromey <tromey@redhat.com>
6268
6269 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6270 directly.
6271 * target-delegates.c: Rebuild.
6272 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6273 TARGET_DEFAULT_FUNC.
6274 * target.c (default_target_decr_pc_after_break): Rename from
6275 forward_target_decr_pc_after_break. Simplify.
6276 (target_decr_pc_after_break): Rely on delegation.
6277
596b6b39
TT
62782014-02-19 Tom Tromey <tromey@redhat.com>
6279
6280 * target.c (update_current_target): Do not INHERIT to_doc or
6281 to_magic. Do not de_fault to_open or to_close.
6282
b427c1bc
TT
62832014-02-19 Tom Tromey <tromey@redhat.com>
6284
6285 * gcore.h (objfile_find_memory_regions): Declare.
6286 * gcore.c (objfile_find_memory_regions): No longer static. Add
6287 "self" argument.
6288 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6289 * exec.c: Include gcore.h.
6290 (exec_set_find_memory_regions): Remove.
6291 (exec_find_memory_regions): Remove.
6292 (exec_do_find_memory_regions): Remove.
6293 (init_exec_ops): Update.
6294 * defs.h (exec_set_find_memory_regions): Remove.
6295
9b144037
TT
62962014-02-19 Tom Tromey <tromey@redhat.com>
6297
6298 * target-delegates.c: Rebuild.
6299 * target.h (struct target_ops) <to_extra_thread_info,
6300 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6301 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6302 not 0, in TARGET_DEFAULT_RETURN.
6303
555bbdeb
TT
63042014-02-19 Tom Tromey <tromey@redhat.com>
6305
6306 * target.c (complete_target_initialization): Remove casts. Use
6307 return_zero_has_execution.
6308 (return_zero): Add "ignore" argument.
6309 (return_zero_has_execution): New function.
6310 (init_dummy_target): Remove casts. Use
6311 return_zero_has_execution.
6312
be4ddd36
TT
63132014-02-19 Tom Tromey <tromey@redhat.com>
6314
6315 * target.c (update_current_target): Update comments. Do not
6316 INHERIT to_stratum.
6317
2117c711
TT
63182014-02-19 Tom Tromey <tromey@redhat.com>
6319
6320 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6321 needed.
6322 * corelow.c (core_read_description): Delegate when needed.
6323 * remote.c (remote_read_description): Delegate when needed.
6324 * target-delegates.c: Rebuild.
6325 * target.c (target_read_description): Rewrite.
6326 * target.h (struct target_ops) <to_read_description>: Update
6327 comment. Use TARGET_DEFAULT_RETURN.
6328
e88ef65c
TT
63292014-02-19 Tom Tromey <tromey@redhat.com>
6330
6331 * target-delegates.c: Rebuild.
6332 * target.c (update_current_target): Don't inherit or default
6333 to_can_run.
6334 (find_default_run_target): Check against delegate_can_run.
6335 * target.h (struct target_ops) <to_can_run>: Use
6336 TARGET_DEFAULT_RETURN.
6337
86a0854a
TT
63382014-02-19 Tom Tromey <tromey@redhat.com>
6339
6340 * target-delegates.c: Rebuild.
6341 * target.c (target_disconnect): Unconditionally delegate.
6342 * target.h (struct target_ops) <to_disconnect>: Use
6343 TARGET_DEFAULT_NORETURN.
6344
ee97f592
TT
63452014-02-19 Tom Tromey <tromey@redhat.com>
6346
6347 * record.c (record_stop): Unconditionally delegate.
6348 * target-delegates.c: Rebuild.
6349 * target.c (target_stop_recording): Unconditionally delegate.
6350 * target.h (struct target_ops) <to_stop_recording>: Use
6351 TARGET_DEFAULT_IGNORE.
6352
6dc7fcf4
TT
63532014-02-19 Tom Tromey <tromey@redhat.com>
6354
6355 * target-delegates.c: Rebuild.
6356 * target.c (target_enable_btrace): Unconditionally delegate.
6357 * target.h (struct target_ops) <to_enable_btrace>: Use
6358 TARGET_DEFAULT_NORETURN.
6359
eb5b20d4
TT
63602014-02-19 Tom Tromey <tromey@redhat.com>
6361
6362 * target-delegates.c: Rebuild.
6363 * target.c (target_read_btrace): Unconditionally delegate.
6364 * target.h (struct target_ops) <to_read_btrace>: Use
6365 TARGET_DEFAULT_NORETURN.
6366
9ace480d
TT
63672014-02-19 Tom Tromey <tromey@redhat.com>
6368
6369 * target-delegates.c: Rebuild.
6370 * target.c (target_teardown_btrace): Unconditionally delegate.
6371 * target.h (struct target_ops) <to_teardown_btrace>: Use
6372 TARGET_DEFAULT_NORETURN.
6373
8dc292d3
TT
63742014-02-19 Tom Tromey <tromey@redhat.com>
6375
6376 * target-delegates.c: Rebuild.
6377 * target.c (target_disable_btrace): Unconditionally delegate.
6378 * target.h (struct target_ops) <to_disable_btrace>: Use
6379 TARGET_DEFAULT_NORETURN.
6380
58a5184e
TT
63812014-02-19 Tom Tromey <tromey@redhat.com>
6382
6383 * target-delegates.c: Rebuild.
6384 * target.c (default_search_memory): New function.
6385 (simple_search_memory): Update comment.
6386 (target_search_memory): Unconditionally delegate.
6387 * target.h (struct target_ops) <to_search_memory>: Use
6388 TARGET_DEFAULT_FUNC.
6389
8de71aab
TT
63902014-02-19 Tom Tromey <tromey@redhat.com>
6391
6392 * auxv.c (default_auxv_parse): No longer static.
6393 (target_auxv_parse): Unconditionally delegate.
6394 * auxv.h (default_auxv_parse): Declare.
6395 * target-delegates.c: Rebuild.
6396 * target.c: Include auxv.h.
6397 * target.h (struct target_ops) <to_auxv_parse>: Use
6398 TARGET_DEFAULT_FUNC.
6399
6b2c5a57
TT
64002014-02-19 Tom Tromey <tromey@redhat.com>
6401
6402 * target-delegates.c: Rebuild.
6403 * target.c (target_memory_map): Unconditionally delegate.
6404 * target.h (struct target_ops) <to_memory_map>: Use
6405 TARGET_DEFAULT_RETURN.
6406
cbffc065
TT
64072014-02-19 Tom Tromey <tromey@redhat.com>
6408
6409 * target-delegates.c: Rebuild.
6410 * target.c (target_thread_alive): Unconditionally delegate.
6411 * target.h (struct target_ops) <to_thread_alive>: Use
6412 TARGET_DEFAULT_RETURN.
6413
f09e2107
TT
64142014-02-19 Tom Tromey <tromey@redhat.com>
6415
6416 * target-delegates.c: Rebuild.
6417 * target.c (target_save_record): Unconditionally delegate.
6418 * target.h (struct target_ops) <to_save_record>: Use
6419 TARGET_DEFAULT_NORETURN.
6420
07366925
TT
64212014-02-19 Tom Tromey <tromey@redhat.com>
6422
6423 * target-delegates.c: Rebuild.
6424 * target.c (target_delete_record): Unconditionally delegate.
6425 * target.h (struct target_ops) <to_delete_record>: Use
6426 TARGET_DEFAULT_NORETURN.
6427
dd2e9d25
TT
64282014-02-19 Tom Tromey <tromey@redhat.com>
6429
6430 * target-delegates.c: Rebuild.
6431 * target.c (target_record_is_replaying): Unconditionally
6432 delegate.
6433 * target.h (struct target_ops) <to_record_is_replaying>: Use
6434 TARGET_DEFAULT_RETURN.
6435
671e76cc
TT
64362014-02-19 Tom Tromey <tromey@redhat.com>
6437
6438 * target-delegates.c: Rebuild.
6439 * target.c (target_goto_record_begin): Unconditionally delegate.
6440 * target.h (struct target_ops) <to_goto_record_begin>: Use
6441 TARGET_DEFAULT_NORETURN.
6442
e9179bb3
TT
64432014-02-19 Tom Tromey <tromey@redhat.com>
6444
6445 * target-delegates.c: Rebuild.
6446 * target.c (target_goto_record_end): Unconditionally delegate.
6447 * target.h (struct target_ops) <to_goto_record_end>: Use
6448 TARGET_DEFAULT_NORETURN.
6449
05969c84
TT
64502014-02-19 Tom Tromey <tromey@redhat.com>
6451
6452 * target-delegates.c: Rebuild.
6453 * target.c (target_goto_record): Unconditionally delegate.
6454 * target.h (struct target_ops) <to_goto_record>: Use
6455 TARGET_DEFAULT_NORETURN.
6456
3679abfa
TT
64572014-02-19 Tom Tromey <tromey@redhat.com>
6458
6459 * target-delegates.c: Rebuild.
6460 * target.c (target_insn_history): Unconditionally delegate.
6461 * target.h (struct target_ops) <to_insn_history>: Use
6462 TARGET_DEFAULT_NORETURN.
6463
8444ab58
TT
64642014-02-19 Tom Tromey <tromey@redhat.com>
6465
6466 * target-delegates.c: Rebuild.
6467 * target.c (target_insn_history_from): Unconditionally delegate.
6468 * target.h (struct target_ops) <to_insn_history_from>: Use
6469 TARGET_DEFAULT_NORETURN.
6470
c29302cc
TT
64712014-02-19 Tom Tromey <tromey@redhat.com>
6472
6473 * target-delegates.c: Rebuild.
6474 * target.c (target_insn_history_range): Unconditionally delegate.
6475 * target.h (struct target_ops) <to_insn_history_range>: Use
6476 TARGET_DEFAULT_NORETURN.
6477
170049d4
TT
64782014-02-19 Tom Tromey <tromey@redhat.com>
6479
6480 * target-delegates.c: Rebuild.
6481 * target.c (target_call_history): Unconditionally delegate.
6482 * target.h (struct target_ops) <to_call_history>: Use
6483 TARGET_DEFAULT_NORETURN.
6484
16fc27d6
TT
64852014-02-19 Tom Tromey <tromey@redhat.com>
6486
6487 * target-delegates.c: Rebuild.
6488 * target.c (target_call_history_from): Unconditionally delegate.
6489 * target.h (struct target_ops) <to_call_history_from>: Use
6490 TARGET_DEFAULT_NORETURN.
6491
115d9817
TT
64922014-02-19 Tom Tromey <tromey@redhat.com>
6493
6494 * target-delegates.c: Rebuild.
6495 * target.c (target_call_history_range): Unconditionally delegate.
6496 * target.h (struct target_ops) <to_call_history_range>: Use
6497 TARGET_DEFAULT_NORETURN.
6498
eb276a6b
TT
64992014-02-19 Tom Tromey <tromey@redhat.com>
6500
6501 * target-delegates.c: Rebuild.
6502 * target.c (target_verify_memory): Unconditionally delegate.
6503 * target.h (struct target_ops) <to_verify_memory>: Use
6504 TARGET_DEFAULT_NORETURN.
6505
9e538d0d
TT
65062014-02-19 Tom Tromey <tromey@redhat.com>
6507
6508 * target-delegates.c: Rebuild.
6509 * target.c (target_core_of_thread): Unconditionally delegate.
6510 * target.h (struct target_ops) <to_core_of_thread>: Use
6511 TARGET_DEFAULT_RETURN.
6512
f6fb2925
TT
65132014-02-19 Tom Tromey <tromey@redhat.com>
6514
6515 * target-delegates.c: Rebuild.
6516 * target.c (target_flash_done): Unconditionally delegate.
6517 * target.h (struct target_ops) <to_flash_done>: Use
6518 TARGET_DEFAULT_NORETURN.
6519
e8a6c6ac
TT
65202014-02-19 Tom Tromey <tromey@redhat.com>
6521
6522 * target-delegates.c: Rebuild.
6523 * target.c (target_flash_erase): Unconditionally delegate.
6524 * target.h (struct target_ops) <to_flash_erase>: Use
6525 TARGET_DEFAULT_NORETURN.
6526
7e35c012
TT
65272014-02-19 Tom Tromey <tromey@redhat.com>
6528
6529 * target-delegates.c: Rebuild.
6530 * target.c (target_get_section_table): Unconditionally delegate.
6531 * target.h (struct target_ops) <to_get_section_table>: Use
6532 TARGET_DEFAULT_RETURN.
6533
770234d3
TT
65342014-02-19 Tom Tromey <tromey@redhat.com>
6535
6536 * target-delegates.c: Rebuild.
6537 * target.c (target_pid_to_str): Unconditionally delegate.
6538 (init_dummy_target): Don't initialize to_pid_to_str.
6539 (default_pid_to_str): Rename from dummy_pid_to_str.
6540 * target.h (struct target_ops) <to_pid_to_str>: Use
6541 TARGET_DEFAULT_FUNC.
6542
09b0dc2b
TT
65432014-02-19 Tom Tromey <tromey@redhat.com>
6544
6545 * target-delegates.c: Rebuild.
6546 * target.c (target_find_new_threads): Unconditionally delegate.
6547 * target.h (struct target_ops) <to_find_new_threads>: Use
6548 TARGET_DEFAULT_RETURN.
6549
7d4f8efa
TT
65502014-02-19 Tom Tromey <tromey@redhat.com>
6551
6552 * target-delegates.c: Rebuild.
6553 * target.c (target_program_signals): Unconditionally delegate.
6554 * target.h (struct target_ops) <to_program_signals>: Use
6555 TARGET_DEFAULT_IGNORE.
6556
035cad7f
TT
65572014-02-19 Tom Tromey <tromey@redhat.com>
6558
6559 * target-delegates.c: Rebuild.
6560 * target.c (target_pass_signals): Unconditionally delegate.
6561 * target.h (struct target_ops) <to_pass_signals>: Use
6562 TARGET_DEFAULT_IGNORE.
6563
8d657035
TT
65642014-02-19 Tom Tromey <tromey@redhat.com>
6565
6566 * target-delegates.c: Rebuild.
6567 * target.c (default_mourn_inferior): New function.
6568 (target_mourn_inferior): Unconditionally delegate.
6569 * target.h (struct target_ops) <to_mourn_inferior>: Use
6570 TARGET_DEFAULT_FUNC.
6571
098dba18
TT
65722014-02-19 Tom Tromey <tromey@redhat.com>
6573
6574 * target-delegates.c: Rebuild.
6575 * target.c (default_follow_fork): New function.
6576 (target_follow_fork): Unconditionally delegate.
6577 * target.h (struct target_ops) <to_follow_fork>: Use
6578 TARGET_DEFAULT_FUNC.
6579
423a4807
TT
65802014-02-19 Tom Tromey <tromey@redhat.com>
6581
6582 * target-delegates.c: Rebuild.
6583 * target.c (target_kill): Unconditionally delegate.
6584 * target.h (struct target_ops) <to_kill>: Use
6585 TARGET_DEFAULT_NORETURN.
6586
6c7e5e5c
TT
65872014-02-19 Tom Tromey <tromey@redhat.com>
6588
6589 * target-delegates.c: Rebuild.
6590 * target.c (target_masked_watch_num_registers): Unconditionally
6591 delegate.
6592 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6593 Use TARGET_DEFAULT_RETURN.
6594
8b1c364c
TT
65952014-02-19 Tom Tromey <tromey@redhat.com>
6596
6597 * target-delegates.c: Rebuild.
6598 * target.c (target_remove_mask_watchpoint): Unconditionally
6599 delegate.
6600 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6601 TARGET_DEFAULT_RETURN.
6602
cd4ae029
TT
66032014-02-19 Tom Tromey <tromey@redhat.com>
6604
6605 * target-delegates.c: Rebuild.
6606 * target.c (target_insert_mask_watchpoint): Unconditionally
6607 delegate.
6608 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6609 TARGET_DEFAULT_RETURN.
6610
a134316b
TT
66112014-02-19 Tom Tromey <tromey@redhat.com>
6612
6613 * target-delegates.c: Rebuild.
6614 * target.c (target_ranged_break_num_registers): Unconditionally
6615 delegate.
6616 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6617 Use TARGET_DEFAULT_RETURN.
6618
ad5989bd
TT
66192014-02-19 Tom Tromey <tromey@redhat.com>
6620
6621 * target-delegates.c: Rebuild.
6622 * target.c (target_fetch_registers): Unconditionally delegate.
6623 * target.h (struct target_ops) <to_fetch_registers>: Use
6624 TARGET_DEFAULT_NORETURN.
6625
46ee7e8d
TT
66262014-02-19 Tom Tromey <tromey@redhat.com>
6627
6628 * target-delegates.c: Rebuild.
6629 * target.c (update_current_target): Don't inherit or default
6630 to_stop.
6631 * target.h (struct target_ops) <to_stop>: Use
6632 TARGET_DEFAULT_IGNORE.
6633
843f59ed
TT
66342014-02-19 Tom Tromey <tromey@redhat.com>
6635
6636 * target-delegates.c: Rebuild.
6637 * target.c (update_current_target): Don't inherit or default
6638 to_can_run_breakpoint_commands.
6639 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6640 Use TARGET_DEFAULT_RETURN.
6641
ccfde2a0
TT
66422014-02-19 Tom Tromey <tromey@redhat.com>
6643
6644 * target-delegates.c: Rebuild.
6645 * target.c (update_current_target): Don't inherit or default
6646 to_supports_evaluation_of_breakpoint_conditions.
6647 * target.h (struct target_ops)
6648 <to_supports_evaluation_of_breakpoint_conditions>: Use
6649 TARGET_DEFAULT_RETURN.
6650
0de91722
TT
66512014-02-19 Tom Tromey <tromey@redhat.com>
6652
6653 * target-delegates.c: Rebuild.
6654 * target.c (update_current_target): Don't inherit or default
6655 to_augmented_libraries_svr4_read.
6656 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6657 Use TARGET_DEFAULT_RETURN.
6658
9a7d8b48
TT
66592014-02-19 Tom Tromey <tromey@redhat.com>
6660
6661 * target-delegates.c: Rebuild.
6662 * target.c (update_current_target): Don't inherit or default
6663 to_can_use_agent.
6664 * target.h (struct target_ops) <to_can_use_agent>: Use
6665 TARGET_DEFAULT_RETURN.
6666
d9db5b21
TT
66672014-02-19 Tom Tromey <tromey@redhat.com>
6668
6669 * target-delegates.c: Rebuild.
6670 * target.c (update_current_target): Don't inherit or default
6671 to_use_agent.
6672 * target.h (struct target_ops) <to_use_agent>: Use
6673 TARGET_DEFAULT_NORETURN.
6674
92155eeb
TT
66752014-02-19 Tom Tromey <tromey@redhat.com>
6676
6677 * target-delegates.c: Rebuild.
6678 * target.c (update_current_target): Don't inherit or default
6679 to_traceframe_info.
6680 (return_null): Remove.
6681 * target.h (struct target_ops) <to_traceframe_info>: Use
6682 TARGET_DEFAULT_RETURN.
6683
d6522a22
TT
66842014-02-19 Tom Tromey <tromey@redhat.com>
6685
6686 * target-delegates.c: Rebuild.
6687 * target.c (update_current_target): Don't inherit or default
6688 to_static_tracepoint_markers_by_strid.
6689 * target.h (struct target_ops)
6690 <to_static_tracepoint_markers_by_strid>: Use
6691 TARGET_DEFAULT_NORETURN.
6692
4c3e4425
TT
66932014-02-19 Tom Tromey <tromey@redhat.com>
6694
6695 * target-delegates.c: Rebuild.
6696 * target.c (update_current_target): Don't inherit or default
6697 to_static_tracepoint_marker_at.
6698 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6699 Use TARGET_DEFAULT_RETURN.
6700
dcd6917f
TT
67012014-02-19 Tom Tromey <tromey@redhat.com>
6702
6703 * target-delegates.c: Rebuild.
6704 * target.c (update_current_target): Don't inherit or default
6705 to_set_permissions.
6706 * target.h (struct target_ops) <to_set_permissions>: Use
6707 TARGET_DEFAULT_IGNORE.
6708
22bcceee
TT
67092014-02-19 Tom Tromey <tromey@redhat.com>
6710
6711 * target-delegates.c: Rebuild.
6712 * target.c (update_current_target): Don't inherit or default
6713 to_get_tib_address.
6714 * target.h (struct target_ops) <to_get_tib_address>: Use
6715 TARGET_DEFAULT_NORETURN.
6716
8586ccaa
TT
67172014-02-19 Tom Tromey <tromey@redhat.com>
6718
6719 * target-delegates.c: Rebuild.
6720 * target.c (update_current_target): Don't inherit or default
6721 to_set_trace_notes.
6722 * target.h (struct target_ops) <to_set_trace_notes>: Use
6723 TARGET_DEFAULT_RETURN.
6724
91df8d1d
TT
67252014-02-19 Tom Tromey <tromey@redhat.com>
6726
6727 * target-delegates.c: Rebuild.
6728 * target.c (update_current_target): Don't initialize
6729 to_set_trace_buffer_size.
6730 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6731 TARGET_DEFAULT_IGNORE.
6732
8d526939
TT
67332014-02-19 Tom Tromey <tromey@redhat.com>
6734
6735 * target-delegates.c: Rebuild.
6736 * target.c (update_current_target): Don't inherit or default
6737 to_set_circular_trace_buffer.
6738 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6739 TARGET_DEFAULT_IGNORE.
6740
0bcfeddf
TT
67412014-02-19 Tom Tromey <tromey@redhat.com>
6742
6743 * target-delegates.c: Rebuild.
6744 * target.c (update_current_target): Don't inherit or default
6745 to_set_disconnected_tracing.
6746 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6747 TARGET_DEFAULT_IGNORE.
6748
9249843f
TT
67492014-02-19 Tom Tromey <tromey@redhat.com>
6750
6751 * target-delegates.c: Rebuild.
6752 * target.c (update_current_target): Don't inherit or default
6753 to_get_min_fast_tracepoint_insn_len.
6754 (return_minus_one): Remove.
6755 * target.h (struct target_ops)
6756 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6757
ace92e7d
TT
67582014-02-19 Tom Tromey <tromey@redhat.com>
6759
6760 * target-delegates.c: Rebuild.
6761 * target.c (update_current_target): Don't inherit or default
6762 to_get_raw_trace_data.
6763 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6764 TARGET_DEFAULT_NORETURN.
6765
08120467
TT
67662014-02-19 Tom Tromey <tromey@redhat.com>
6767
6768 * target-delegates.c: Rebuild.
6769 * target.c (update_current_target): Don't inherit or default
6770 to_upload_trace_state_variables.
6771 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6772 Use TARGET_DEFAULT_RETURN.
6773
1e949b00
TT
67742014-02-19 Tom Tromey <tromey@redhat.com>
6775
6776 * target-delegates.c: Rebuild.
6777 * target.c (update_current_target): Don't inherit or default
6778 to_upload_tracepoints.
6779 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6780 TARGET_DEFAULT_RETURN.
6781
a2e6c147
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_save_trace_data.
6787 * target.h (struct target_ops) <to_save_trace_data>: Use
6788 TARGET_DEFAULT_NORETURN.
6789
959bcd0b
TT
67902014-02-19 Tom Tromey <tromey@redhat.com>
6791
6792 * target-delegates.c: Rebuild.
6793 * target.c (update_current_target): Don't inherit or default
6794 to_get_trace_state_variable_value.
6795 * target.h (struct target_ops)
6796 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6797
afc94e66
TT
67982014-02-19 Tom Tromey <tromey@redhat.com>
6799
6800 * target-delegates.c: Rebuild.
6801 * target.c (update_current_target): Don't inherit or default
6802 to_trace_find.
6803 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6804
e51c07ea
TT
68052014-02-19 Tom Tromey <tromey@redhat.com>
6806
6807 * target-delegates.c: Rebuild.
6808 * target.c (update_current_target): Don't inherit or default
6809 to_trace_stop.
6810 * target.h (struct target_ops) <to_trace_stop>: Use
6811 TARGET_DEFAULT_NORETURN.
6812
6fea14cd
TT
68132014-02-19 Tom Tromey <tromey@redhat.com>
6814
6815 * target-delegates.c: Rebuild.
6816 * target.c (update_current_target): Don't inherit or default
6817 to_get_tracepoint_status.
6818 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6819 TARGET_DEFAULT_NORETURN.
6820
4072d4ff
TT
68212014-02-19 Tom Tromey <tromey@redhat.com>
6822
6823 * target-delegates.c: Rebuild.
6824 * target.c (update_current_target): Don't inherit or default
6825 to_get_trace_status.
6826 * target.h (struct target_ops) <to_get_trace_status>: Use
6827 TARGET_DEFAULT_RETURN.
6828
25da2e80
TT
68292014-02-19 Tom Tromey <tromey@redhat.com>
6830
6831 * target-delegates.c: Rebuild.
6832 * target.c (update_current_target): Don't inherit or default
6833 to_trace_start.
6834 * target.h (struct target_ops) <to_trace_start>: Use
6835 TARGET_DEFAULT_NORETURN.
6836
86dd181d
TT
68372014-02-19 Tom Tromey <tromey@redhat.com>
6838
6839 * target-delegates.c: Rebuild.
6840 * target.c (update_current_target): Don't inherit or default
6841 to_trace_set_readonly_regions.
6842 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6843 Use TARGET_DEFAULT_NORETURN.
6844
05c41993
TT
68452014-02-19 Tom Tromey <tromey@redhat.com>
6846
6847 * target-delegates.c: Rebuild.
6848 * target.c (update_current_target): Don't inherit or default
6849 to_disable_tracepoint.
6850 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6851 TARGET_DEFAULT_NORETURN.
6852
151f70f1
TT
68532014-02-19 Tom Tromey <tromey@redhat.com>
6854
6855 * target-delegates.c: Rebuild.
6856 * target.c (update_current_target): Don't inherit or default
6857 to_enable_tracepoint.
6858 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6859 TARGET_DEFAULT_NORETURN.
6860
94eb98b9
TT
68612014-02-19 Tom Tromey <tromey@redhat.com>
6862
6863 * target-delegates.c: Rebuild.
6864 * target.c (update_current_target): Don't inherit or default
6865 to_download_trace_state_variable.
6866 * target.h (struct target_ops) <to_download_trace_state_variable>:
6867 Use TARGET_DEFAULT_NORETURN.
6868
719acc4a
TT
68692014-02-19 Tom Tromey <tromey@redhat.com>
6870
6871 * target-delegates.c: Rebuild.
6872 * target.c (update_current_target): Don't inherit or default
6873 to_can_download_tracepoint.
6874 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6875 TARGET_DEFAULT_RETURN.
6876
9a980a22
TT
68772014-02-19 Tom Tromey <tromey@redhat.com>
6878
6879 * target-delegates.c: Rebuild.
6880 * target.c (update_current_target): Don't inherit or default
6881 to_download_tracepoint.
6882 * target.h (struct target_ops) <to_download_tracepoint>: Use
6883 TARGET_DEFAULT_NORETURN.
6884
5536135b
TT
68852014-02-19 Tom Tromey <tromey@redhat.com>
6886
6887 * target-delegates.c: Rebuild.
6888 * target.c (update_current_target): Don't inherit or default
6889 to_trace_init.
6890 * target.h (struct target_ops) <to_trace_init>: Use
6891 TARGET_DEFAULT_RETURN.
6892
9409d39e
TT
68932014-02-19 Tom Tromey <tromey@redhat.com>
6894
6895 * target-delegates.c: Rebuild.
6896 * target.c (update_current_target): Don't inherit or default
6897 to_supports_string_tracing.
6898 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6899 TARGET_DEFAULT_RETURN.
6900
aab1b22d
TT
69012014-02-19 Tom Tromey <tromey@redhat.com>
6902
6903 * target-delegates.c: Rebuild.
6904 * target.c (update_current_target): Don't inherit or default
6905 to_supports_enable_disable_tracepoint.
6906 * target.h (struct target_ops)
6907 <to_supports_enable_disable_tracepoint>: Use
6908 TARGET_DEFAULT_RETURN.
6909
a7304748
TT
69102014-02-19 Tom Tromey <tromey@redhat.com>
6911
6912 * target-delegates.c: Rebuild.
6913 * target.c (update_current_target): Don't inherit or default
6914 to_supports_multi_process.
6915 * target.h (struct target_ops) <to_supports_multi_process>: Use
6916 TARGET_DEFAULT_RETURN.
6917
4229b31d
TT
69182014-02-19 Tom Tromey <tromey@redhat.com>
6919
6920 * target-delegates.c: Rebuild.
6921 * target.c (update_current_target): Don't inherit or default
6922 to_get_ada_task_ptid.
6923 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6924 TARGET_DEFAULT_FUNC.
6925
43eba180
TT
69262014-02-19 Tom Tromey <tromey@redhat.com>
6927
6928 * target-delegates.c: Rebuild.
6929 * target.c (update_current_target): Don't inherit or default
6930 to_thread_architecture.
6931 * target.h (struct target_ops) <to_thread_architecture>: Use
6932 TARGET_DEFAULT_FUNC.
6933
fe31bf5b
TT
69342014-02-19 Tom Tromey <tromey@redhat.com>
6935
6936 * target-delegates.c: Rebuild.
6937 * target.c (update_current_target): Don't inherit or default
6938 to_execution_direction.
6939 * target.h (struct target_ops) <to_execution_direction>: Use
6940 TARGET_DEFAULT_FUNC.
6941
53e1cfc7
TT
69422014-02-19 Tom Tromey <tromey@redhat.com>
6943
6944 * target-delegates.c: Rebuild.
6945 * target.c (update_current_target): Don't inherit or default
6946 to_can_execute_reverse.
6947 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6948 TARGET_DEFAULT_RETURN.
6949 (target_can_execute_reverse): Unconditionally delegate.
6950
9bb9d61d
TT
69512014-02-19 Tom Tromey <tromey@redhat.com>
6952
6953 * target-delegates.c: Rebuild.
6954 * target.c (update_current_target): Don't inherit or default
6955 to_goto_bookmark.
6956 (dummy_goto_bookmark): Remove.
6957 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6958 * target.h (struct target_ops) <to_goto_bookmark>: Use
6959 TARGET_DEFAULT_NORETURN.
6960
3dbafbbb
TT
69612014-02-19 Tom Tromey <tromey@redhat.com>
6962
6963 * target-delegates.c: Rebuild.
6964 * target.c (update_current_target): Don't inherit or default
6965 to_get_bookmark.
6966 (dummy_get_bookmark): Remove.
6967 (init_dummy_target): Don't inherit or default to_get_bookmark.
6968 * target.h (struct target_ops) <to_get_bookmark>: Use
6969 TARGET_DEFAULT_NORETURN
6970
16f796b1
TT
69712014-02-19 Tom Tromey <tromey@redhat.com>
6972
6973 * target-delegates.c: Rebuild.
6974 * target.c (update_current_target): Don't inherit or default
6975 to_make_corefile_notes.
6976 (init_dummy_target): Don't initialize to_make_corefile_notes.
6977 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6978 TARGET_DEFAULT_FUNC.
6979
0b5a2719
TT
69802014-02-19 Tom Tromey <tromey@redhat.com>
6981
6982 * target-delegates.c: Rebuild.
6983 * target.c (update_current_target): Don't inherit or default
6984 to_find_memory_regions.
6985 (init_dummy_target): Don't initialize to_find_memory_regions.
6986 * target.h (struct target_ops) <to_find_memory_regions>: Use
6987 TARGET_DEFAULT_FUNC.
6988
d9cb0195
TT
69892014-02-19 Tom Tromey <tromey@redhat.com>
6990
6991 * target-delegates.c: Rebuild.
6992 * target.c (update_current_target): Don't inherit or default
6993 to_log_command.
6994 * target.h (struct target_ops) <to_log_command>: Use
6995 TARGET_DEFAULT_IGNORE.
6996 (target_log_command): Unconditionally delegate.
6997
830ca330
TT
69982014-02-19 Tom Tromey <tromey@redhat.com>
6999
7000 * target-delegates.c: Rebuild.
7001 * target.c (update_current_target): Don't inherit or default
7002 to_pid_to_exec_file.
7003 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7004 TARGET_DEFAULT_RETURN.
7005
825828fc
TT
70062014-02-19 Tom Tromey <tromey@redhat.com>
7007
7008 * target-delegates.c: Rebuild.
7009 * target.c (update_current_target): Don't inherit or default
7010 to_thread_name.
7011 (target_thread_name): Unconditionally delegate.
7012 * target.h (struct target_ops) <to_thread_name>: Use
7013 TARGET_DEFAULT_RETURN.
7014
4a7e6dda
TT
70152014-02-19 Tom Tromey <tromey@redhat.com>
7016
7017 * target-delegates.c: Rebuild.
7018 * target.c (update_current_target): Don't inherit or default
7019 to_extra_thread_info.
7020 * target.h (struct target_ops) <to_extra_thread_info>: Use
7021 TARGET_DEFAULT_RETURN.
7022
0db88c1d
TT
70232014-02-19 Tom Tromey <tromey@redhat.com>
7024
7025 * target-delegates.c: Rebuild.
7026 * target.c (update_current_target): Don't inherit or default
7027 to_has_exited.
7028 * target.h (struct target_ops) <to_has_exited>: Use
7029 TARGET_DEFAULT_RETURN..
7030
6a9fa051
TT
70312014-02-19 Tom Tromey <tromey@redhat.com>
7032
7033 * target-delegates.c: Rebuild.
7034 * target.c (update_current_target): Don't inherit or default
7035 to_set_syscall_catchpoint.
7036 (return_one): Remove.
7037 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7038 TARGET_DEFAULT_RETURN.
7039
62f64d7a
TT
70402014-02-19 Tom Tromey <tromey@redhat.com>
7041
7042 * target-delegates.c: Rebuild.
7043 * target.c (update_current_target): Don't inherit or default
7044 to_insert_exec_catchpoint.
7045 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7046 TARGET_DEFAULT_RETURN.
7047
cda0f38c
TT
70482014-01-08 Tom Tromey <tromey@redhat.com>
7049
7050 * target-delegates.c: Rebuild.
7051 * target.c (update_current_target): Don't inherit or default
7052 to_insert_exec_catchpoint.
7053 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7054 TARGET_DEFAULT_RETURN.
7055
95c3375e
TT
70562014-02-19 Tom Tromey <tromey@redhat.com>
7057
7058 * target-delegates.c: Rebuild.
7059 * target.c (update_current_target): Don't inherit or default
7060 to_remove_vfork_catchpoint.
7061 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7062 TARGET_DEFAULT_RETURN.
7063
7e18a8dc
TT
70642014-02-19 Tom Tromey <tromey@redhat.com>
7065
7066 * target-delegates.c: Rebuild.
7067 * target.c (update_current_target): Don't inherit or default
7068 to_insert_vfork_catchpoint.
7069 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7070 TARGET_DEFAULT_RETURN.
7071
e1a21fb7
TT
70722014-02-19 Tom Tromey <tromey@redhat.com>
7073
7074 * target-delegates.c: Rebuild.
7075 * target.c (update_current_target): Don't inherit or default
7076 to_remove_fork_catchpoint.
7077 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7078 TARGET_DEFAULT_RETURN.
7079
5958ebeb
TT
70802014-02-19 Tom Tromey <tromey@redhat.com>
7081
7082 * target-delegates.c: Rebuild.
7083 * target.c (update_current_target): Don't inherit or default
7084 to_insert_fork_catchpoint.
7085 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7086 TARGET_DEFAULT_RETURN.
7087
340ba4bf
TT
70882014-02-19 Tom Tromey <tromey@redhat.com>
7089
7090 * target-delegates.c: Rebuild.
7091 * target.c (update_current_target): Don't inherit or default
7092 to_post_startup_inferior.
7093 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7094 TARGET_DEFAULT_IGNORE.
7095
7634da87
TT
70962014-02-19 Tom Tromey <tromey@redhat.com>
7097
7098 * target-delegates.c: Rebuild.
7099 * target.c (update_current_target): Don't inherit or default
7100 to_load.
7101 * target.h (struct target_ops) <to_load>: Use
7102 TARGET_DEFAULT_NORETURN.
7103
e19e919f
TT
71042014-02-19 Tom Tromey <tromey@redhat.com>
7105
7106 * target-delegates.c: Rebuild.
7107 * target.c (update_current_target): Don't inherit or default
7108 to_terminal_info.
7109 * target.h (struct target_ops) <to_terminal_info>: Use
7110 TARGET_DEFAULT_FUNC.
7111
c6ea8f79
TT
71122014-02-19 Tom Tromey <tromey@redhat.com>
7113
7114 * target-delegates.c: Rebuild.
7115 * target.c (update_current_target): Don't inherit or default
7116 to_terminal_save_ours.
7117 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7118 TARGET_DEFAULT_IGNORE.
7119
e4a733f1
TT
71202014-02-19 Tom Tromey <tromey@redhat.com>
7121
7122 * target-delegates.c: Rebuild.
7123 * target.c (update_current_target): Don't inherit or default
7124 to_terminal_ours.
7125 * target.h (struct target_ops) <to_terminal_ours>: Use
7126 TARGET_DEFAULT_IGNORE.
7127
74fcbef9
TT
71282014-02-19 Tom Tromey <tromey@redhat.com>
7129
7130 * target-delegates.c: Rebuild.
7131 * target.c (update_current_target): Don't inherit or default
7132 to_terminal_ours_for_output.
7133 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7134 TARGET_DEFAULT_IGNORE.
7135
ddeaacc9
TT
71362014-02-19 Tom Tromey <tromey@redhat.com>
7137
7138 * target-delegates.c: Rebuild.
7139 * target.c (update_current_target): Don't inherit or default
7140 to_terminal_inferior.
7141 * target.h (struct target_ops) <to_terminal_inferior>: Use
7142 TARGET_DEFAULT_IGNORE.
7143
0343661d
TT
71442014-02-19 Tom Tromey <tromey@redhat.com>
7145
7146 * target-delegates.c: Rebuild.
7147 * target.c (update_current_target): Don't inherit or default
7148 to_terminal_init.
7149 * target.h (struct target_ops) <to_terminal_init>: Use
7150 TARGET_DEFAULT_IGNORE.
7151
77cdffe9
TT
71522014-02-19 Tom Tromey <tromey@redhat.com>
7153
7154 * target-delegates.c: Rebuild.
7155 * target.c (update_current_target): Don't inherit or default
7156 to_can_accel_watchpoint_condition.
7157 * target.h (struct target_ops)
7158 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7159
d03655e4
TT
71602014-02-19 Tom Tromey <tromey@redhat.com>
7161
7162 * target-delegates.c: Rebuild.
7163 * target.c (update_current_target): Don't inherit or default
7164 to_region_ok_for_hw_watchpoint.
7165 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7166 Use TARGET_DEFAULT_FUNC.
7167
65f160a9
TT
71682014-02-19 Tom Tromey <tromey@redhat.com>
7169
7170 * target-delegates.c: Rebuild.
7171 * target.c (update_current_target): Don't inherit or default
7172 to_watchpoint_addr_within_range.
7173 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7174 Use TARGET_DEFAULT_FUNC.
7175
61dd109f
TT
71762014-02-19 Tom Tromey <tromey@redhat.com>
7177
7178 * target-delegates.c: Rebuild.
7179 * target.c (update_current_target): Don't inherit or default
7180 to_remove_watchpoint.
7181 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7182 TARGET_DEFAULT_NORETURN.
7183
016facd4
TT
71842014-02-19 Tom Tromey <tromey@redhat.com>
7185
7186 * target-delegates.c: Rebuild.
7187 * target.c (update_current_target): Don't inherit or default
7188 to_insert_watchpoint.
7189 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7190 TARGET_DEFAULT_RETURN.
7191
418dabac
TT
71922014-02-19 Tom Tromey <tromey@redhat.com>
7193
7194 * target-delegates.c: Rebuild.
7195 * target.c (update_current_target): Don't inherit or default
7196 to_remove_hw_breakpoint.
7197 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7198 TARGET_DEFAULT_RETURN.
7199
61b371f9
TT
72002014-02-19 Tom Tromey <tromey@redhat.com>
7201
7202 * target-delegates.c: Rebuild.
7203 * target.c (update_current_target): Don't inherit or default
7204 to_insert_hw_breakpoint.
7205 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7206 TARGET_DEFAULT_RETURN.
7207
52b51d06
TT
72082014-02-19 Tom Tromey <tromey@redhat.com>
7209
7210 * target-delegates.c: Rebuild.
7211 * target.c (update_current_target): Don't inherit or default
7212 to_can_use_hw_breakpoint.
7213 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7214 TARGET_DEFAULT_RETURN.
7215
f86e59b2
TT
72162014-02-19 Tom Tromey <tromey@redhat.com>
7217
7218 * target-delegates.c: Rebuild.
7219 * target.c (update_current_target): Don't inherit or default
7220 to_files_info.
7221 * target.h (struct target_ops) <to_files_info>: Use
7222 TARGET_DEFAULT_IGNORE.
7223
6c628163
TT
72242014-02-19 Tom Tromey <tromey@redhat.com>
7225
7226 * target-delegates.c: Rebuild.
7227 * target.c (update_current_target): Don't inherit or default
7228 to_store.
7229 * target.h (struct target_ops) <to_store>: Use
7230 TARGET_DEFAULT_NORETURN.
7231
bebd3233
TT
72322014-02-19 Tom Tromey <tromey@redhat.com>
7233
7234 * target-delegates.c: Rebuild.
7235 * target.c (update_current_target): Don't inherit or default
7236 to_post_attach.
7237 * target.h (struct target_ops) <to_post_attach>: Use
7238 TARGET_DEFAULT_IGNORE.
7239
a53f3625
TT
72402014-02-19 Tom Tromey <tromey@redhat.com>
7241
7242 * target-delegates.c: Rebuild.
7243 * target.c (update_current_target): Don't inherit or default
7244 to_rcmd.
7245 (default_rcmd): New function.
7246 (do_monitor_command): Unconditionally delegate.
7247 * target.h (struct target_ops) <to_rmcd>: Use
7248 TARGET_DEFAULT_FUNC.
7249
e9a29200
TT
72502014-02-19 Tom Tromey <tromey@redhat.com>
7251
7252 * target-delegates.c: Rebuild.
7253 * target.c (init_dummy_target): Don't initialize to_attach.
7254 (target_attach): Unconditionally delegate.
7255 * target.h (struct target_ops) <to_attach>: Use
7256 TARGET_DEFAULT_FUNC.
7257
09da0d0a
TT
72582014-02-19 Tom Tromey <tromey@redhat.com>
7259
7260 * target-delegates.c: Rebuild.
7261 * target.c (target_detach): Unconditionally delegate.
7262 (init_dummy_target): Don't initialize to_detach.
7263 * target.h (struct target_ops) <to_detach>: Use
7264 TARGET_DEFAULT_IGNORE.
7265
5436ff03
TT
72662014-02-19 Tom Tromey <tromey@redhat.com>
7267
7268 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7269 Add argument.
7270 (target_augmented_libraries_svr4_read): Add argument.
7271 * target.c (update_current_target): Update.
7272 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7273 argument.
7274
f0d960ea
TT
72752014-02-19 Tom Tromey <tromey@redhat.com>
7276
7277 * target.h (struct target_ops) <to_call_history_range>: Add
7278 argument.
7279 * target.c (target_call_history_range): Add argument.
7280 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7281 argument.
7282 (record_btrace_call_history_from): Update.
7283
ec0aea04
TT
72842014-02-19 Tom Tromey <tromey@redhat.com>
7285
7286 * target.h (struct target_ops) <to_call_history_from>: Add
7287 argument.
7288 * target.c (target_call_history_from): Add argument.
7289 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7290 argument.
7291
5df2fcba
TT
72922014-02-19 Tom Tromey <tromey@redhat.com>
7293
7294 * target.h (struct target_ops) <to_call_history>: Add argument.
7295 * target.c (target_call_history): Add argument.
7296 * record-btrace.c (record_btrace_call_history): Add 'self'
7297 argument.
7298
4e99c6b7
TT
72992014-02-19 Tom Tromey <tromey@redhat.com>
7300
7301 * target.h (struct target_ops) <to_insn_history_range>: Add
7302 argument.
7303 * target.c (target_insn_history_range): Add argument.
7304 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7305 argument.
7306 (record_btrace_insn_history_from): Update.
7307
9abc3ff3
TT
73082014-02-19 Tom Tromey <tromey@redhat.com>
7309
7310 * target.h (struct target_ops) <to_insn_history_from>: Add
7311 argument.
7312 * target.c (target_insn_history_from): Add argument.
7313 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7314 argument.
7315
7a6c5609
TT
73162014-02-19 Tom Tromey <tromey@redhat.com>
7317
7318 * target.h (struct target_ops) <to_insn_history>: Add argument.
7319 * target.c (target_insn_history): Add argument.
7320 * record-btrace.c (record_btrace_insn_history): Add 'self'
7321 argument.
7322
606183ac
TT
73232014-02-19 Tom Tromey <tromey@redhat.com>
7324
7325 * target.h (struct target_ops) <to_goto_record>: Add argument.
7326 * target.c (target_goto_record): Add argument.
7327 * record-full.c (record_full_goto): Add 'self' argument.
7328 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7329
307a1b91
TT
73302014-02-19 Tom Tromey <tromey@redhat.com>
7331
7332 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7333 * target.c (target_goto_record_end): Add argument.
7334 * record-full.c (record_full_goto_end): Add 'self' argument.
7335 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7336
08475817
TT
73372014-02-19 Tom Tromey <tromey@redhat.com>
7338
7339 * target.h (struct target_ops) <to_goto_record_begin>: Add
7340 argument.
7341 * target.c (target_goto_record_begin): Add argument.
7342 * record-full.c (record_full_goto_begin): Add 'self' argument.
7343 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7344 argument.
7345
1c63c994
TT
73462014-02-19 Tom Tromey <tromey@redhat.com>
7347
7348 * target.h (struct target_ops) <to_record_is_replaying>: Add
7349 argument.
7350 * target.c (target_record_is_replaying): Add argument.
7351 * record-full.c (record_full_is_replaying): Add 'self' argument.
7352 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7353 argument.
7354 (record_btrace_xfer_partial, record_btrace_store_registers)
7355 (record_btrace_prepare_to_store, record_btrace_resume)
7356 (record_btrace_wait, record_btrace_decr_pc_after_break)
7357 (record_btrace_find_new_threads, record_btrace_thread_alive):
7358 Update.
7359
d1b55219
TT
73602014-02-19 Tom Tromey <tromey@redhat.com>
7361
7362 * target.h (struct target_ops) <to_delete_record>: Add argument.
7363 * target.c (target_delete_record): Add argument.
7364 * record-full.c (record_full_delete): Add 'self' argument.
7365
1390f529
TT
73662014-02-19 Tom Tromey <tromey@redhat.com>
7367
7368 * target.h (struct target_ops) <to_save_record>: Add argument.
7369 * target.c (target_save_record): Add argument.
7370 * record-full.c (record_full_save): Add 'self' argument.
7371 (record_full_save): Add 'self' argument.
7372
630d6a4a
TT
73732014-02-19 Tom Tromey <tromey@redhat.com>
7374
7375 * target.h (struct target_ops) <to_info_record>: Add argument.
7376 * target.c (target_info_record): Add argument.
7377 * record.c (info_record_command): Add argument.
7378 * record-full.c (record_full_info): Add 'self' argument.
7379 * record-btrace.c (record_btrace_info): Add 'self' argument.
7380
c6cd7c02
TT
73812014-02-19 Tom Tromey <tromey@redhat.com>
7382
7383 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7384 * target.c (target_stop_recording): Add argument.
7385 * record.c (record_stop): Add argument.
7386 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7387 argument.
7388
39c49f83
TT
73892014-02-19 Tom Tromey <tromey@redhat.com>
7390
7391 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7392 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7393 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7394 argument.
7395 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7396 (_initialize_amd64_linux_nat): Use it.
7397 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7398 (_initialize_i386_linux_nat): Use it.
7399
1777056d
TT
74002014-02-19 Tom Tromey <tromey@redhat.com>
7401
7402 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7403 * target.c (target_teardown_btrace): Add argument.
7404 * remote.c (remote_teardown_btrace): Add 'self' argument.
7405 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7406 argument.
7407 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7408 argument.
7409
25e95349
TT
74102014-02-19 Tom Tromey <tromey@redhat.com>
7411
7412 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7413 * target.c (target_disable_btrace): Add argument.
7414 * remote.c (remote_disable_btrace): Add 'self' argument.
7415 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7416 argument.
7417 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7418 argument.
7419
e3c49f88
TT
74202014-02-19 Tom Tromey <tromey@redhat.com>
7421
7422 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7423 * target.c (target_enable_btrace): Add argument.
7424 * remote.c (remote_enable_btrace): Add 'self' argument.
7425 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7426 argument.
7427 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7428 argument.
7429
fe38f897
TT
74302014-02-19 Tom Tromey <tromey@redhat.com>
7431
7432 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7433 (target_can_use_agent): Add argument.
7434 * target.c (update_current_target): Update.
7435 * remote.c (remote_can_use_agent): Add 'self' argument.
7436 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7437
2c152180
TT
74382014-02-19 Tom Tromey <tromey@redhat.com>
7439
7440 * target.h (struct target_ops) <to_use_agent>: Add argument.
7441 (target_use_agent): Add argument.
7442 * target.c (update_current_target): Update.
7443 * remote.c (remote_use_agent): Add 'self' argument.
7444 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7445
a893e81f
TT
74462014-02-19 Tom Tromey <tromey@redhat.com>
7447
7448 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7449 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7450 (target_traceframe_info): Add argument.
7451 * target.c (update_current_target): Update.
7452 * remote.c (remote_traceframe_info): Add 'self' argument.
7453 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7454
c686c57f
TT
74552014-02-19 Tom Tromey <tromey@redhat.com>
7456
7457 * target.h (target_static_tracepoint_markers_by_strid): Add
7458 argument.
7459 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7460 'self' argument.
7461 * target.c (update_current_target): Update.
7462 * remote.c (struct target_ops)
7463 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7464 * linux-nat.c (struct target_ops)
7465 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7466
61fc905d
TT
74672014-02-19 Tom Tromey <tromey@redhat.com>
7468
7469 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7470 Add argument.
7471 (target_static_tracepoint_marker_at): Add argument.
7472 * target.c (update_current_target): Update.
7473 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7474 argument.
7475
c378d69d
TT
74762014-02-19 Tom Tromey <tromey@redhat.com>
7477
7478 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7479 (target_set_permissions): Add argument.
7480 * target.c (update_current_target): Update.
7481 * remote.c (remote_set_permissions): Add 'self' argument.
7482 (remote_start_remote): Update.
7483
bd7ae0f5
TT
74842014-02-19 Tom Tromey <tromey@redhat.com>
7485
7486 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7487 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7488 (target_get_tib_address): Add argument.
7489 * target.c (update_current_target): Update.
7490 * remote.c (remote_get_tib_address): Add 'self' argument.
7491
d9e68a2c
TT
74922014-02-19 Tom Tromey <tromey@redhat.com>
7493
7494 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7495 (target_set_trace_notes): Add argument.
7496 * target.c (update_current_target): Update.
7497 * remote.c (remote_set_trace_notes): Add 'self' argument.
7498
4da384be
TT
74992014-02-19 Tom Tromey <tromey@redhat.com>
7500
7501 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7502 argument.
7503 (target_set_trace_buffer_size): Add argument.
7504 * target.c (update_current_target): Update.
7505 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7506
736d5b1f
TT
75072014-02-19 Tom Tromey <tromey@redhat.com>
7508
7509 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7510 argument.
7511 (target_set_circular_trace_buffer): Add argument.
7512 * target.c (update_current_target): Update.
7513 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7514 argument.
7515
37b25738
TT
75162014-02-19 Tom Tromey <tromey@redhat.com>
7517
7518 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7519 argument.
7520 (target_set_disconnected_tracing): Add argument.
7521 * target.c (update_current_target): Update.
7522 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7523
0e67620a
TT
75242014-02-19 Tom Tromey <tromey@redhat.com>
7525
7526 * target.h (struct target_ops)
7527 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7528 (target_get_min_fast_tracepoint_insn_len): Add argument.
7529 * target.c (update_current_target): Update.
7530 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7531 argument.
7532
88ee6f45
TT
75332014-02-19 Tom Tromey <tromey@redhat.com>
7534
7535 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7536 argument.
7537 (target_get_raw_trace_data): Add argument.
7538 * target.c (update_current_target): Update.
7539 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7540
181e3713
TT
75412014-02-19 Tom Tromey <tromey@redhat.com>
7542
7543 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7544 Add argument.
7545 (target_upload_trace_state_variables): Add argument.
7546 * target.c (update_current_target): Update.
7547 * remote.c (remote_upload_trace_state_variables): Add 'self'
7548 argument.
7549 (remote_start_remote): Update.
7550
ab6617cc
TT
75512014-02-19 Tom Tromey <tromey@redhat.com>
7552
7553 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7554 argument.
7555 (target_upload_tracepoints): Add argument.
7556 * target.c (update_current_target): Update.
7557 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7558 (remote_start_remote): Update.
7559
dc3decaf
TT
75602014-02-19 Tom Tromey <tromey@redhat.com>
7561
7562 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7563 (target_save_trace_data): Add argument.
7564 * target.c (update_current_target): Update.
7565 * remote.c (remote_save_trace_data): Add 'self' argument.
7566
4011015b
TT
75672014-02-19 Tom Tromey <tromey@redhat.com>
7568
7569 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7570 argument.
7571 * target.h (struct target_ops)
7572 <to_get_trace_state_variable_value>: Add argument.
7573 (target_get_trace_state_variable_value): Add argument.
7574 * target.c (update_current_target): Update.
7575 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7576 argument.
7577 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7578
bd4c6793
TT
75792014-02-19 Tom Tromey <tromey@redhat.com>
7580
7581 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7582 * target.h (struct target_ops) <to_trace_find>: Add argument.
7583 (target_trace_find): Add argument.
7584 * target.c (update_current_target): Update.
7585 * remote.c (remote_trace_find): Add 'self' argument.
7586 * ctf.c (ctf_trace_find): Add 'self' argument.
7587
74499f1b
TT
75882014-02-19 Tom Tromey <tromey@redhat.com>
7589
7590 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7591 (target_trace_stop): Add argument.
7592 * target.c (update_current_target): Update.
7593 * remote.c (remote_trace_stop): Add 'self' argument.
7594
db90e85c
TT
75952014-02-19 Tom Tromey <tromey@redhat.com>
7596
7597 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7598 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7599 argument.
7600 (target_get_tracepoint_status): Add argument.
7601 * target.c (update_current_target): Update.
7602 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7603
8bd200f1
TT
76042014-02-19 Tom Tromey <tromey@redhat.com>
7605
7606 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7607 * target.h (struct target_ops) <to_get_trace_status>: Add
7608 argument.
7609 (target_get_trace_status): Add argument.
7610 * target.c (update_current_target): Update.
7611 * remote.c (remote_get_trace_status): Add 'self' argument.
7612 (remote_start_remote, remote_can_download_tracepoint): Update.
7613 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7614
e2d1aae3
TT
76152014-02-19 Tom Tromey <tromey@redhat.com>
7616
7617 * target.h (struct target_ops) <to_trace_start>: Add argument.
7618 (target_trace_start): Add argument.
7619 * target.c (update_current_target): Update.
7620 * remote.c (remote_trace_start): Add 'self' argument.
7621
583f9a86
TT
76222014-02-19 Tom Tromey <tromey@redhat.com>
7623
7624 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7625 Add argument.
7626 (target_trace_set_readonly_regions): Add argument.
7627 * target.c (update_current_target): Update.
7628 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7629 argument.
7630
780b049c
TT
76312014-02-19 Tom Tromey <tromey@redhat.com>
7632
7633 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7634 argument.
7635 (target_disable_tracepoint): Add argument.
7636 * target.c (update_current_target): Update.
7637 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7638
46670d57
TT
76392014-02-19 Tom Tromey <tromey@redhat.com>
7640
7641 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7642 argument.
7643 (target_enable_tracepoint): Add argument.
7644 * target.c (update_current_target): Update.
7645 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7646
559d2b81
TT
76472014-02-19 Tom Tromey <tromey@redhat.com>
7648
7649 * target.h (struct target_ops) <to_download_trace_state_variable>:
7650 Add argument.
7651 (target_download_trace_state_variable): Add argument.
7652 * target.c (update_current_target): Update.
7653 * remote.c (remote_download_trace_state_variable): Add 'self'
7654 argument.
7655
a52a8357
TT
76562014-02-19 Tom Tromey <tromey@redhat.com>
7657
7658 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7659 argument.
7660 (target_can_download_tracepoint): Add argument.
7661 * target.c (update_current_target): Update.
7662 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7663
548f7808
TT
76642014-02-19 Tom Tromey <tromey@redhat.com>
7665
7666 * target.h (struct target_ops) <to_download_tracepoint>: Add
7667 argument.
7668 (target_download_tracepoint): Add argument.
7669 * target.c (update_current_target): Update.
7670 * remote.c (remote_download_tracepoint): Add 'self' argument.
7671
ecae04e1
TT
76722014-02-19 Tom Tromey <tromey@redhat.com>
7673
7674 * target.h (struct target_ops) <to_trace_init>: Add argument.
7675 (target_trace_init): Add argument.
7676 * target.c (update_current_target): Update.
7677 * remote.c (remote_trace_init): Add 'self' argument.
7678
fab5aa7c
TT
76792014-02-19 Tom Tromey <tromey@redhat.com>
7680
7681 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7682 * target.c (target_fileio_readlink): Add argument.
7683 * remote.c (remote_hostio_readlink): Add 'self' argument.
7684 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7685
dbbca37d
TT
76862014-02-19 Tom Tromey <tromey@redhat.com>
7687
7688 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7689 * target.c (target_fileio_unlink): Add argument.
7690 * remote.c (remote_hostio_unlink): Add 'self' argument.
7691 (remote_file_delete): Update.
7692 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7693
df39ea25
TT
76942014-02-19 Tom Tromey <tromey@redhat.com>
7695
7696 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7697 * target.c (target_fileio_close): Add argument.
7698 * remote.c (remote_hostio_close): Add 'self' argument.
7699 (remote_hostio_close_cleanup): Update.
7700 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7701 Update.
7702 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7703
a3be983c
TT
77042014-02-19 Tom Tromey <tromey@redhat.com>
7705
7706 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7707 * target.c (target_fileio_pread): Add argument.
7708 * remote.c (remote_hostio_pread): Add 'self' argument.
7709 (remote_bfd_iovec_pread, remote_file_get): Update.
7710 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7711
0d866f62
TT
77122014-02-19 Tom Tromey <tromey@redhat.com>
7713
7714 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7715 * target.c (target_fileio_pwrite): Add argument.
7716 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7717 (remote_file_put): Update.
7718 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7719
cd897586
TT
77202014-02-19 Tom Tromey <tromey@redhat.com>
7721
7722 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7723 * target.c (target_fileio_open): Add argument.
7724 * remote.c (remote_hostio_open): Add 'self' argument.
7725 (remote_bfd_iovec_open): Add 'self' argument.
7726 (remote_file_put): Add 'self' argument.
7727 (remote_file_get): Add 'self' argument.
7728 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7729
78eff0ec
TT
77302014-02-19 Tom Tromey <tromey@redhat.com>
7731
7732 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7733 Add argument.
7734 (target_can_run_breakpoint_commands): Add argument.
7735 * target.c (update_current_target): Update.
7736 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7737 argument.
7738 (remote_insert_breakpoint): Add 'self' argument.
7739 (remote_insert_hw_breakpoint): Add 'self' argument.
7740 (remote_can_run_breakpoint_commands): Add 'self' argument.
7741
efcc2da7
TT
77422014-02-19 Tom Tromey <tromey@redhat.com>
7743
7744 * target.h (struct target_ops)
7745 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7746 (target_supports_evaluation_of_breakpoint_conditions): Add
7747 argument.
7748 * target.c (update_current_target): Update.
7749 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7750 argument.
7751 (remote_insert_breakpoint): Add 'self' argument.
7752 (remote_insert_hw_breakpoint): Add 'self' argument.
7753 (remote_supports_cond_breakpoints): Add 'self' argument.
7754
6de37a3a
TT
77552014-02-19 Tom Tromey <tromey@redhat.com>
7756
7757 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7758 argument.
7759 (target_supports_string_tracing): Add argument.
7760 * target.c (update_current_target): Update.
7761 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7762
2bfc0540
TT
77632014-02-19 Tom Tromey <tromey@redhat.com>
7764
7765 * target.h (struct target_ops)
7766 <to_supports_disable_randomization>: Add argument.
7767 * target.c (find_default_supports_disable_randomization): Add
7768 argument.
7769 (target_supports_disable_randomization): Add argument.
7770 (find_default_supports_disable_randomization): Add 'self'
7771 argument.
7772 * remote.c (extended_remote_supports_disable_randomization): Add
7773 'self' argument.
7774 (remote_supports_disable_randomization): Add 'self' argument.
7775 (extended_remote_create_inferior): Update.
7776 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7777 'self' argument.
7778
7d178d6a
TT
77792014-02-19 Tom Tromey <tromey@redhat.com>
7780
7781 * target.h (struct target_ops)
7782 <to_supports_enable_disable_tracepoint>: Add argument.
7783 (target_supports_enable_disable_tracepoint): Add argument.
7784 * target.c (update_current_target): Update.
7785 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7786 argument.
7787
86ce2668
TT
77882014-02-19 Tom Tromey <tromey@redhat.com>
7789
7790 * target.h (struct target_ops) <to_supports_multi_process>: Add
7791 argument.
7792 (target_supports_multi_process): Add argument.
7793 * target.c (update_current_target): Update.
7794 * remote.c (remote_supports_multi_process): Add 'self' argument.
7795 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7796 argument.
7797 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7798 argument.
7799
4c612759
TT
78002014-02-19 Tom Tromey <tromey@redhat.com>
7801
7802 * target.h (struct target_ops) <to_execution_direction>: Add
7803 argument.
7804 (target_execution_direction): Add argument.
7805 * target.c (default_execution_direction): Add 'self' argument.
7806 * record-full.c (record_full_execution_direction): Add 'self'
7807 argument.
7808
19db3e69
TT
78092014-02-19 Tom Tromey <tromey@redhat.com>
7810
7811 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7812 argument.
7813 (target_can_execute_reverse): Add argument.
7814 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7815 * record-full.c (record_full_can_execute_reverse): Add 'self'
7816 argument.
7817 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7818 argument.
7819
1e6b91a4
TT
78202014-02-19 Tom Tromey <tromey@redhat.com>
7821
7822 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7823 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7824 argument.
7825 (target_get_ada_task_ptid): Add argument.
7826 * target.c (update_current_target): Update.
7827 (default_get_ada_task_ptid): Add 'self' argument.
7828 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7829 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7830 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7831 argument.
7832 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7833 argument.
7834 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7835 argument.
7836 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7837 argument.
7838 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7839 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7840 argument.
7841
3c80fb48
TT
78422014-02-19 Tom Tromey <tromey@redhat.com>
7843
7844 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7845 (target_goto_bookmark): Add argument.
7846 * target.c (dummy_goto_bookmark): Add 'self' argument.
7847 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7848
dd0e2830
TT
78492014-02-19 Tom Tromey <tromey@redhat.com>
7850
7851 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7852 (target_get_bookmark): Add argument.
7853 * target.c (dummy_get_bookmark): Add 'self' argument.
7854 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7855
fc6691b2
TT
78562014-02-19 Tom Tromey <tromey@redhat.com>
7857
7858 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7859 argument.
7860 (target_make_corefile_notes): Add argument.
7861 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7862 * procfs.c (procfs_make_note_section): Add 'self' argument.
7863 (procfs_make_note_section): Add 'self' argument.
7864 (procfs_make_note_section): Add 'self' argument.
7865 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7866 argument.
7867 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7868 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7869 * exec.c (exec_make_note_section): Add 'self' argument.
7870 (exec_make_note_section): Add 'self' argument.
7871
2e73927c
TT
78722014-02-19 Tom Tromey <tromey@redhat.com>
7873
7874 * target.h (struct target_ops) <to_find_memory_regions>: Add
7875 argument.
7876 (target_find_memory_regions): Add argument.
7877 * target.c (dummy_find_memory_regions): Add 'self' argument.
7878 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7879 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7880 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7881 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7882 * exec. (exec_do_find_memory_regions): New global.
7883 (exec_set_find_memory_regions): Rewrite.
7884 (exec_find_memory_regions): New function.
7885 (init_exec_ops): Use exec_find_memory_regions.
7886
2a9a2795
TT
78872014-02-19 Tom Tromey <tromey@redhat.com>
7888
7889 * target.h (struct target_ops) <to_supports_non_stop>: Add
7890 argument.
7891 * target.c (find_default_supports_non_stop): Add argument.
7892 (target_supports_non_stop): Add argument.
7893 (find_default_supports_non_stop): Add 'self' argument.
7894 * remote.c (remote_supports_non_stop): Add 'self' argument.
7895 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7896
4ab76ea3
TT
78972014-02-19 Tom Tromey <tromey@redhat.com>
7898
7899 * target.h (struct target_ops) <to_log_command>: Add argument.
7900 (target_log_command): Add argument.
7901 * serial.h (serial_log_command): Add 'self' argument.
7902 * serial.c (serial_log_command): Add 'self' argument.
7903
8dd27370
TT
79042014-02-19 Tom Tromey <tromey@redhat.com>
7905
7906 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7907 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7908 argument.
7909 (target_pid_to_exec_file): Add argument.
7910 * target.c (debug_to_pid_to_exec_file): Add argument.
7911 (update_current_target): Update.
7912 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7913 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7914 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7915 (linux_handle_extended_wait): Update.
7916 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7917 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7918 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7919 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7920
1aac633b
TT
79212014-02-19 Tom Tromey <tromey@redhat.com>
7922
7923 * target.h (struct target_ops) <to_rcmd>: Add argument.
7924 (target_rcmd): Add argument.
7925 * target.c (debug_to_rcmd): Add argument.
7926 (update_current_target, do_monitor_command): Update.
7927 * remote.c (remote_rcmd): Add 'self' argument.
7928 * monitor.c (monitor_rcmd): Add 'self' argument.
7929
1eab8a48
TT
79302014-02-19 Tom Tromey <tromey@redhat.com>
7931
7932 * windows-nat.c (windows_stop): Add 'self' argument.
7933 * target.h (struct target_ops) <to_stop>: Add argument.
7934 * target.c (target_stop): Add argument.
7935 (debug_to_stop): Add argument.
7936 (update_current_target): Update.
7937 * remote.c (remote_stop): Add 'self' argument.
7938 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7939 (gdbsim_cntrl_c): Update.
7940 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7941 * procfs.c (procfs_stop): Add 'self' argument.
7942 * nto-procfs.c (procfs_stop): Add 'self' argument.
7943 * monitor.c (monitor_stop): Add 'self' argument.
7944 (monitor_open): Update.
7945 * linux-nat.c (linux_nat_stop): Add argument.
7946 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7947 * gnu-nat.c (gnu_stop): Add 'self' argument.
7948 * darwin-nat.c (darwin_stop): Add 'self' argument.
7949
503a628d
TT
79502014-02-19 Tom Tromey <tromey@redhat.com>
7951
7952 * target.h (struct target_ops) <to_thread_name>: Add argument.
7953 * target.c (target_thread_name): Add argument.
7954 (update_current_target): Update.
7955 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7956
c15906d8
TT
79572014-02-19 Tom Tromey <tromey@redhat.com>
7958
7959 * target.h (struct target_ops) <to_extra_thread_info>: Add
7960 argument.
7961 (target_extra_thread_info): Add argument.
7962 * target.c (update_current_target): Update.
7963 * remote.c (remote_threads_extra_info): Add 'self' argument.
7964 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7965 argument.
7966 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7967 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7968 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7969 argument.
7970 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7971 argument.
7972 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7973 argument.
7974 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7975 argument.
7976
daf5e9b6
TT
79772014-02-19 Tom Tromey <tromey@redhat.com>
7978
7979 * target.h (struct target_ops) <to_program_signals>: Add argument.
7980 * target.c (target_program_signals): Add argument.
7981 * remote.c (remote_program_signals): Add 'self' argument.
7982
94bedb42
TT
79832014-02-19 Tom Tromey <tromey@redhat.com>
7984
7985 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7986 * target.c (target_pass_signals): Add argument.
7987 * remote.c (remote_pass_signals): Add 'self' argument.
7988 (remote_start_remote): Update.
7989 * procfs.c (procfs_pass_signals): Add 'self' argument.
7990 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7991 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7992 (linux_nat_create_inferior, linux_nat_attach): Update.
7993
da82bd6b
TT
79942014-02-19 Tom Tromey <tromey@redhat.com>
7995
7996 * windows-nat.c (windows_can_run): Add 'self' argument.
7997 * target.h (struct target_ops) <to_can_run>: Add argument.
7998 (target_can_run): Add argument.
7999 * target.c (debug_to_can_run): Add argument.
8000 (update_current_target): Update.
8001 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8002 * inf-child.c (inf_child_can_run): Add 'self' argument.
8003 * go32-nat.c (go32_can_run): Add 'self' argument.
8004
d796e1d6
TT
80052014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target.h (struct target_ops) <to_has_exited>: Add argument.
8008 (target_has_exited): Add argument.
8009 * target.c (debug_to_has_exited): Add argument.
8010 (update_current_target): Update.
8011
ff214e67
TT
80122014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8015 argument.
8016 (target_set_syscall_catchpoint): Add argument.
8017 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8018 argument.
8019 * target.c (update_current_target): Update.
8020
758e29d2
TT
80212014-02-19 Tom Tromey <tromey@redhat.com>
8022
8023 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8024 argument.
8025 (target_remove_exec_catchpoint): Add argument.
8026 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8027 (update_current_target): Update.
8028 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8029 argument.
8030
ba025e51
TT
80312014-02-19 Tom Tromey <tromey@redhat.com>
8032
8033 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8034 argument.
8035 (target_insert_exec_catchpoint): Add argument.
8036 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8037 (update_current_target): Update.
8038 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8039 argument.
8040
e98cf0cd
TT
80412014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8044 argument.
8045 (target_remove_vfork_catchpoint): Add argument.
8046 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8047 (update_current_target): Update.
8048 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8049 argument.
8050
3ecc7da0
TT
80512014-02-19 Tom Tromey <tromey@redhat.com>
8052
8053 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8054 argument.
8055 (target_insert_vfork_catchpoint): Add argument.
8056 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8057 (update_current_target): Update.
8058 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8059 argument.
8060
973fc227
TT
80612014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8064 argument.
8065 (target_remove_fork_catchpoint): Add argument.
8066 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8067 (update_current_target): Update.
8068 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8069 argument.
8070
a863b201
TT
80712014-02-19 Tom Tromey <tromey@redhat.com>
8072
8073 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8074 argument.
8075 (target_insert_fork_catchpoint): Add argument.
8076 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8077 (update_current_target): Update.
8078 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8079 argument.
8080
2e97a79e
TT
80812014-02-19 Tom Tromey <tromey@redhat.com>
8082
8083 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8084 argument.
8085 (target_post_startup_inferior): Add argument.
8086 * target.c (debug_to_post_startup_inferior): Add argument.
8087 (update_current_target): Update.
8088 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8089 argument.
8090 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8091 argument.
8092 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8093 argument.
8094 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8095 argument.
8096 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8097 'self' argument.
8098 (super_post_startup_inferior): Likewise.
8099 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8100 'self' argument.
8101 (super_post_startup_inferior): Likewise.
8102 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8103 Add 'self' argument.
8104 (super_post_startup_inferior): Likewise.
8105
71a9f134
TT
81062014-02-19 Tom Tromey <tromey@redhat.com>
8107
8108 * target.h (struct target_ops) <to_load>: Add argument.
8109 * target.c (target_load): Add argument.
8110 (debug_to_load): Add argument.
8111 (update_current_target): Update.
8112 * remote.c (remote_load): Add 'self' argument.
8113 * remote-sim.c (gdbsim_load): Add 'self' argument.
8114 * remote-mips.c (mips_load): Add 'self' argument.
8115 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8116 * monitor.c (monitor_load): Add 'self' argument.
8117 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8118
0a4f40a2
TT
81192014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8122 (target_terminal_info): Add argument.
8123 * target.c (debug_to_terminal_info): Add argument.
8124 (default_terminal_info): Likewise.
8125 * inflow.c (child_terminal_info): Add 'self' argument.
8126 * inferior.h (child_terminal_info): Add 'self' argument.
8127 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8128
ae3bd431
TT
81292014-02-19 Tom Tromey <tromey@redhat.com>
8130
8131 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8132 argument.
8133 (target_terminal_save_ours): Add argument.
8134 * target.c (debug_to_terminal_save_ours): Add argument.
8135 (update_current_target): Update.
8136 * inflow.c (terminal_save_ours): Add 'self' argument.
8137 * inferior.h (terminal_save_ours): Add 'self' argument.
8138
e3594fd1
TT
81392014-02-19 Tom Tromey <tromey@redhat.com>
8140
8141 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8142 (target_terminal_ours): Add argument.
8143 * target.c (debug_to_terminal_ours): Add argument.
8144 (update_current_target): Update.
8145 * remote.c (remote_terminal_ours): Add 'self' argument.
8146 (remote_close): Update.
8147 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8148 * inflow.c (terminal_ours): Add 'self' argument.
8149 * inferior.h (terminal_ours): Add 'self' argument.
8150 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8151
2e1e1a19
TT
81522014-02-19 Pedro Alves <palves@redhat.com>
8153 Tom Tromey <tromey@redhat.com>
8154
8155 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8156 argument.
8157 (target_terminal_ours_for_output): Add argument.
8158 * target.c (debug_to_terminal_ours_for_output): Add argument.
8159 (update_current_target): Update.
8160 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8161 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8162 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8163
d2f640d4
TT
81642014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target.h (struct target_ops) <to_terminal_inferior>: Add
8167 argument.
8168 * target.c (target_terminal_inferior): Add argument.
8169 (update_current_target): Update.
8170 * remote.c (remote_terminal_inferior): Add 'self' argument.
8171 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8172 * inflow.c (terminal_inferior): Add 'self' argument.
8173 * inferior.h (terminal_inferior): Add 'self' argument.
8174 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8175 (go32_terminal_inferior): Add 'self' argument.
8176
c42bf286
TT
81772014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8180 (target_terminal_init): Add argument.
8181 * target.c (debug_to_terminal_init): Add argument.
8182 (update_current_target): Update.
8183 * inflow.c (terminal_init_inferior): Add 'self' argument.
8184 * inferior.h (terminal_init_inferior): Add 'self' argument.
8185 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8186 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8187
c3a5ff89
TT
81882014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target.h (struct target_ops)
8191 <to_can_accel_watchpoint_condition>: Add argument.
8192 (target_can_accel_watchpoint_condition): Add argument.
8193 * target.c (debug_to_can_accel_watchpoint_condition): Add
8194 argument.
8195 (update_current_target): Update.
8196 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8197 'self' argument.
8198
31568a15
TT
81992014-02-19 Tom Tromey <tromey@redhat.com>
8200
8201 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8202 Add argument.
8203 (target_region_ok_for_hw_watchpoint): Add argument.
8204 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8205 (default_region_ok_for_hw_watchpoint): Add argument.
8206 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8207 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8208 argument.
8209 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8210 argument.
8211 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8212 argument.
8213 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8214 'self' argument.
8215 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8216 'self' argument.
8217 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8218 'self' argument.
8219 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8220 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8221 'self' argument.
8222 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8223 Add 'self' argument.
8224
7bb99c53
TT
82252014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8228 argument.
8229 (target_insert_watchpoint): Add argument.
8230 * target.c (debug_to_insert_watchpoint): Add argument.
8231 (update_current_target): Update.
8232 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8233 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8234 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8235 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8236 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8237 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8238 argument.
8239 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8240 (procfs_insert_hw_watchpoint): Add 'self' argument.
8241 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8242 argument.
8243 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8244 argument.
8245 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8246 argument.
8247 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8248 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8249 argument.
8250 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8251 'self' argument.
8252
11b5219a
TT
82532014-02-19 Tom Tromey <tromey@redhat.com>
8254
8255 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8256 argument.
8257 (target_remove_watchpoint): Add argument.
8258 * target.c (debug_to_remove_watchpoint): Add argument.
8259 (update_current_target): Update.
8260 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8261 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8262 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8263 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8264 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8265 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8266 argument.
8267 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8268 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8269 argument.
8270 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8271 argument.
8272 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8273 argument.
8274 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8275 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8276 argument.
8277 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8278 'self' argument.
8279
a64dc96c
TT
82802014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8283 argument.
8284 (target_remove_hw_breakpoint): Add argument.
8285 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8286 (update_current_target): Update.
8287 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8288 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8289 argument.
8290 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8291 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8292 argument.
8293 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8294 'self' argument.
8295
23a26771
TT
82962014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8299 argument.
8300 (target_insert_hw_breakpoint): Add argument.
8301 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8302 (update_current_target): Update.
8303 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8304 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8305 argument.
8306 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8307 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8308 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8309 argument.
8310 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8311 'self' argument.
8312
5461485a
TT
83132014-02-19 Tom Tromey <tromey@redhat.com>
8314
8315 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8316 argument.
8317 (target_can_use_hardware_watchpoint): Add argument.
8318 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8319 (update_current_target): Update.
8320 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8321 argument.
8322 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8323 argument.
8324 * remote.c (remote_check_watch_resources): Add 'self' argument.
8325 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8326 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8327 argument.
8328 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8329 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8330 argument.
8331 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8332 argument.
8333 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8334 argument.
8335 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8336 argument.
8337 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8338 argument.
8339 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8340 argument.
8341 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8342 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8343 argument.
8344 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8345 'self' argument.
8346
f045800c
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target.h (struct target_ops) <to_post_attach>: Add argument.
8350 (target_post_attach): Add argument.
8351 * target.c (debug_to_post_attach): Add argument.
8352 (update_current_target): Update.
8353 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8354 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8355 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8356 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8357 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8358
de90e03d
TT
83592014-02-19 Tom Tromey <tromey@redhat.com>
8360
8361 * windows-nat.c (windows_close): Add 'self' argument.
8362 * tracepoint.c (tfile_close): Add 'self' argument.
8363 * target.h (struct target_ops) <to_close>: Add argument.
8364 * target.c (target_close): Add argument.
8365 (update_current_target): Update.
8366 * remote.c (remote_close): Add 'self' argument.
8367 * remote-sim.c (gdbsim_close): Add 'self' argument.
8368 * remote-mips.c (mips_close): Add 'self' argument.
8369 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8370 * record-full.c (record_full_close): Add 'self' argument.
8371 * record-btrace.c (record_btrace_close): Add 'self' argument.
8372 * monitor.h (monitor_close): Add 'self' argument.
8373 * monitor.c (monitor_close): Add 'self' argument.
8374 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8375 * linux-nat.c (linux_nat_close): Add argument.
8376 * go32-nat.c (go32_close): Add 'self' argument.
8377 * exec.c (exec_close_1): Add 'self' argument.
8378 * ctf.c (ctf_close): Add 'self' argument.
8379 * corelow.c (core_close): Add 'self' argument.
8380 (core_close_cleanup): Update.
8381 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8382 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8383
9dd130a0
TT
83842014-02-19 Tom Tromey <tromey@redhat.com>
8385
8386 * remote.c (remote_load): New function.
8387 (init_remote_ops): Use it.
8388
46917d26
TT
83892014-02-19 Tom Tromey <tromey@redhat.com>
8390
8391 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8392 argument.
8393 * common/linux-btrace.h (linux_supports_btrace): Update.
8394 * remote.c (remote_supports_btrace): Add "self" argument.
8395 * target-delegates.c: Rebuild.
8396 * target.c (target_supports_btrace): Remove.
8397 * target.h (struct target_ops) <to_supports_btrace>: Add
8398 target_ops argument.
8399 (target_supports_btrace): New define.
8400
6b84065d
TT
84012014-02-19 Tom Tromey <tromey@redhat.com>
8402
8403 * record-full.c (record_full_beneath_to_resume_ops)
8404 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8405 (record_full_beneath_to_wait)
8406 (record_full_beneath_to_store_registers_ops)
8407 (record_full_beneath_to_store_registers)
8408 (record_full_beneath_to_xfer_partial_ops)
8409 (record_full_beneath_to_xfer_partial)
8410 (record_full_beneath_to_insert_breakpoint_ops)
8411 (record_full_beneath_to_insert_breakpoint)
8412 (record_full_beneath_to_remove_breakpoint_ops)
8413 (record_full_beneath_to_remove_breakpoint)
8414 (record_full_beneath_to_stopped_by_watchpoint)
8415 (record_full_beneath_to_stopped_data_address)
8416 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8417 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8418 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8419 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8420 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8421 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8422 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8423 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8424 (record_full_resume, record_full_wait_1)
8425 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8426 (record_full_store_registers, record_full_xfer_partial)
8427 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8428 (record_full_async, record_full_core_xfer_partial): Use target
8429 delegation.
8430 * target-delegates.c: Rebuild.
8431 * target.c (current_xfer_partial): Remove.
8432 (update_current_target): Do not INHERIT or de_fault
8433 to_insert_breakpoint, to_remove_breakpoint,
8434 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8435 to_is_async_p, to_async. Do not set to_xfer_partial field.
8436 (default_xfer_partial): Simplify.
8437 (current_xfer_partial): Remove.
8438 (target_wait, target_resume): Simplify.
8439 (find_default_can_async_p, find_default_is_async_p): Update.
8440 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8441 to_xfer_partial, to_stopped_by_watchpoint,
8442 to_stopped_data_address.
8443 (target_store_registers): Simplify.
8444 (forward_target_remove_breakpoint)
8445 (forward_target_insert_breakpoint): Remove.
8446 (target_remove_breakpoint, target_insert_breakpoint)
8447 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8448 * target.h (struct target_ops) <to_resume, to_wait,
8449 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8450 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8451 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8452 markup.
8453 (forward_target_remove_breakpoint)
8454 (forward_target_insert_breakpoint): Remove.
8455 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8456 directly.
8457 (record_btrace_insert_breakpoint): Delegate directly.
8458
1101cb7b
TT
84592014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 PR build/7701:
8462 * target-delegates.c: New file.
8463 * target.c: Include target-delegates.c.
8464 (init_dummy_target): Call install_dummy_methods.
8465 (complete_target_initialization): Call install_delegators.
8466 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8467 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8468 * make-target-delegates: New file.
8469
8b06beed
TT
84702014-02-19 Tom Tromey <tromey@redhat.com>
8471
8472 * record.c (find_record_target): Use find_target_at.
8473 * target.c (find_target_at): New function.
8474 * target.h (find_target_at): Declare.
8475
6a109b6b
TT
84762014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8479 Add 'ops' argument.
8480 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8481 'ops' argument.
8482 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8483 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8484 'ops' argument.
8485 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8486 argument.
8487 * linux-nat.c (save_sigtrap): Update.
8488 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8489 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8490 (linux_nat_close): Update.
8491 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8492 argument.
8493 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8494 argument.
8495 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8496 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8497 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8498 (tmp_to_async): Add 'ops' argument.
8499 (record_full_stopped_by_watchpoint, record_full_async)
8500 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8501 argument.
8502 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8503 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8504 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8505 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8506 (remote_is_async_p, remote_async): Add 'ops' argument.
8507 (remote_stopped_data_address): Update.
8508 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8509 * target.c (update_current_target)
8510 (find_default_can_async_p, find_default_is_async_p): Update.
8511 (init_dummy_target): Update.
8512 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8513 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8514 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8515 (target_can_async_p, target_is_async_p, target_async)
8516 (target_stopped_by_watchpoint): Update.
8517
e095146b
YQ
85182014-02-19 Yao Qi <yao@codesourcery.com>
8519
8520 PR gdb/16220
8521 * gdbarch.sh: Remove startup_gdbarch.
8522 * gdbarch.c: Regenerated.
8523 * gdbarch.h: Likewise.
8524
bc3c6b36
KB
85252014-02-17 Kevin Buettner <kevinb@redhat.com>
8526
8527 * rl78-tdep.c (rl78_g10_register_name): New function.
8528 (rl78_return_value): Add g10 support.
8529 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8530 g10.
8531
98dc0167 85322014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
8533
8534 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8535 (SUBDIR_GUILE_SRCS): Ditto.
8536 (scm-gsmob.o): Ditto.
8537
842c05cd
YQ
85382014-02-17 Yao Qi <yao@codesourcery.com>
8539
8540 * gnu-nat.c (ILL_RPC): Declare defined function.
8541
25c0bd04
YQ
85422014-02-17 Yao Qi <yao@codesourcery.com>
8543
8544 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8545 mach_msg_type_number_t.
8546 (gnu_write_inferior): Likewise.
8547
a9a758e3
YQ
85482014-02-17 Yao Qi <yao@codesourcery.com>
8549
8550 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8551 in format string.
8552 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8553 (inf_validate_procs, inf_signal): Likewise.
8554 (S_exception_raise_request): Likewise.
8555 (do_mach_notify_dead_name): Likewise.
8556 (steal_exc_port): Likewise.
8557 (gnu_read_inferior): Change 'copy_count''s type to
8558 mach_msg_type_number_t.
8559 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8560 format string.
8561
bae8023e
TS
85622014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8563
c82f56d9
TS
8564 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8565 flag. Adjust all users; in particular...
8566 (gnu_wait): ..., don't decrement its value in here...
8567 (gnu_create_inferior): ..., and instead set the flag in here,
8568 around the startup_inferior call, and call that one with
8569 START_INFERIOR_TRAPS_EXPECTED.
8570
3398af6a
TS
8571 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8572 (ILL_RPC): ... new macro.
8573 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8574 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8575 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8576 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8577 functions with ILL_RPC macro.
8578 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8579 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8580 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8581 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8582 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8583 (S_proc_getlogin_reply, S_proc_getsid_reply)
8584 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8585 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8586 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8587 (S_proc_getnports_reply, S_proc_is_important_reply)
8588 (S_proc_get_code_reply): New stub functions, generated with
8589 ILL_RPC macro.
8590
d47642c9
TS
8591 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8592 collected the type check structures.
8593
bae8023e
TS
8594 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8595
8a55ffb0
DE
85962014-02-14 Doug Evans <dje@google.com>
8597
8598 * target.c (target_write_partial): Fix result type.
8599
c2853f3d
JM
86002014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8601
8602 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8603 the proper offsets to access fpregset_t.
8604
ac61d2db
SA
86052014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8606
8607 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8608 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8609 * h8300-tdep.c (setmachinelist): Remove global.
8610 * hppa-tdep.c (hppa_sigtramp): Remove global.
8611 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8612 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8613 * ravenscar-thread.c (update_target_observer): Remove global.
8614 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8615
9d2d0b8b
TT
86162014-02-12 Tom Tromey <tromey@redhat.com>
8617
8618 * common/rsp-low.c: Update comments.
8619 * common/rsp-low.h: Update comments.
8620
a7191e8b
TT
86212014-02-12 Tom Tromey <tromey@redhat.com>
8622
8623 * common/rsp-low.c (convert_ascii_to_int): Remove.
8624 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8625
ff0e980e
TT
86262014-02-12 Tom Tromey <tromey@redhat.com>
8627
8628 * common/rsp-low.h (unhexify): Don't declare.
8629 * common/rsp-low.c (unhexify): Remove.
8630
e9371aff
TT
86312014-02-12 Tom Tromey <tromey@redhat.com>
8632
8633 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8634 * common/rsp-low.c (convert_int_to_ascii): Remove.
8635
971dc0b8
TT
86362014-02-12 Tom Tromey <tromey@redhat.com>
8637
8638 * common/rsp-low.h (hexify): Don't declare.
8639 * common/rsp-low.c (hexify): Remove.
8640
0a822afb
TT
86412014-02-12 Tom Tromey <tromey@redhat.com>
8642
8643 * common/rsp-low.c (hexify): Never take strlen of argument.
8644
9f1b45b0
TT
86452014-02-12 Tom Tromey <tromey@redhat.com>
8646
8647 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8648 * remote.c (extended_remote_run, remote_rcmd)
8649 (remote_download_trace_state_variable, remote_save_trace_data)
8650 (remote_set_trace_notes): Update.
8651 * tracepoint.c (encode_source_string, tfile_write_status)
8652 (tfile_write_uploaded_tsv): Update.
8653
9c3d6531
TT
86542014-02-12 Tom Tromey <tromey@redhat.com>
8655
8656 * tracepoint.c: Include rsp-low.h.
8657 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8658 * remote.c: Include rsp-low.h.
8659 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8660 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8661 (remote_unescape_input): Move to common/rsp-low.c.
8662 * common/rsp-low.h: New file.
8663 * common/rsp-low.c: New file.
8664 * Makefile.in (SFILES): Add common/rsp-low.c.
8665 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8666 (COMMON_OBS): Add rsp-low.o.
8667 (rsp-low.o): New target.
8668
01fd3ea5
TT
86692014-02-12 Tom Tromey <tromey@redhat.com>
8670
8671 * utils.h: Include print-utils.h.
8672 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8673 (int_string, core_addr_to_string, core_addr_to_string_nz)
8674 (hex_string, hex_string_custom): Don't declare.
8675 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8676 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8677 (hex_string_custom, int_string, core_addr_to_string)
8678 (core_addr_to_string_nz, host_address_to_string): Move to
8679 common/print-utils.c.
8680 * common/print-utils.h: New file.
8681 * common/print-utils.c: New file
8682 * Makefile.in (SFILES): Add common/print-utils.c.
8683 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8684 (COMMON_OBS): Add print-utils.o.
8685 (print-utils.o): New target.
8686
9fb50108
TT
86872014-02-12 Tom Tromey <tromey@redhat.com>
8688
8689 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8690
0548b5db
MK
86912014-02-12 Mark Kettenis <kettenis@gnu.org>
8692
8693 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8694
493443a4
MK
86952014-02-12 Mark Kettenis <kettenis@gnu.org>
8696
8697 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8698 if a PT_IO ptrace request returns sucessfully but indicates that 0
8699 bytes were transferred.
8700
706d0883
PA
87012014-02-12 Pedro Alves <palves@redhat.com>
8702 Kevin Buettner <kevinb@redhat.com>
8703
8704 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8705 TYPE_INSTANCE_FLAG_CODE_SPACE.
8706
5caa2f0b
PA
87072014-02-12 Pedro Alves <palves@redhat.com>
8708
8709 * h8300-tdep.c (pseudo_from_raw_register)
8710 (raw_from_pseudo_register): New functions.
8711 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8712 them.
8713
76fd5f74
PA
87142014-02-12 Pedro Alves <palves@redhat.com>
8715
8716 * h8300-tdep.c (h8300_register_sim_regno): New function.
8717 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8718 gdbarch_register_sim_regno hook.
8719
8f008406
SA
87202014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8721
8722 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8723
195abc10
SA
87242014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8725
8726 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8727
93ffa5b9
MK
87282014-02-12 Mark Kettenis <kettenis@gnu.org>
8729
8730 * obsd-tdep.h (obsd_init_abi): New prototype.
8731 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8732 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8733 (obsd_init_abi): New functions.
8734 * i386obsd-tdep.c: Include "obsd-tdep.h".
8735 (i386obsd_init_abi): Call obsd_init_abi.
8736 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8737 (amd64obsd_init_abi): Call obsd_init_abi.
8738 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8739 obsd-tdep.c to gdb_target_obs.
8740
49caec94
JM
87412014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8742
8743 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8744 double float arguments to 16-byte in the argument slots.
8745
e1402065
DE
87462014-02-11 Doug Evans <xdje42@gmail.com>
8747
8748 * configure.ac: Don't crash if pkg-config is not found and guile
8749 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8750 in guile checks.
8751 * configure: Regenerate.
8752
edcc890f
YQ
87532014-02-11 Yao Qi <yao@codesourcery.com>
8754
8755 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8756 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8757 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8758 * gnu-nat.c (gnu_xfer_memory): Likewise.
8759 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8760 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8761 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8762 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8763
9b409511
YQ
87642014-02-11 Yao Qi <yao@codesourcery.com>
8765
8766 * target.h (enum target_xfer_error): Rename to ...
8767 (enum target_xfer_status): ... it. New. All users updated.
8768 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8769 New.
8770 (TARGET_XFER_STATUS_ERROR_P): New macro.
8771 (target_xfer_error_to_string): Remove declaration.
8772 (target_xfer_status_to_string): Declare.
8773 (target_xfer_partial_ftype): Adjust it.
8774 (struct target_ops) <to_xfer_partial>: Return
8775 target_xfer_status. Add argument xfered_len. Update
8776 comments.
8777 * target.c (target_xfer_error_to_string): Rename to ...
8778 (target_xfer_status_to_string): ... it. New. All callers
8779 updated.
8780 (target_read_live_memory): Likewise. Call target_xfer_partial
8781 instead of target_read.
8782 (memory_xfer_live_readonly_partial): Return
8783 target_xfer_status. Add argument xfered_len.
8784 (raw_memory_xfer_partial): Likewise.
8785 (memory_xfer_partial_1): Likewise.
8786 (memory_xfer_partial): Likewise.
8787 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8788 properly. Update debug message.
8789 (default_xfer_partial, current_xfer_partial): Likewise.
8790 (target_write_partial): Likewise.
8791 (target_read_partial): Likewise. All callers updated.
8792 (read_whatever_is_readable): Likewise.
8793 (target_write_with_progress): Likewise.
8794 (target_read_alloc_1): Likewise.
8795
8796 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8797 * auxv.c (procfs_xfer_auxv): Likewise.
8798 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8799 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8800 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8801 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8802 * corefile.c (read_memory): Adjust.
8803 * corelow.c (core_xfer_partial): Likewise.
8804 * ctf.c (ctf_xfer_partial): Likewise.
8805 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8806 updated.
8807 (darwin_xfer_partial): Likewise.
8808 * exec.c (section_table_xfer_memory_partial): Likewise. All
8809 callers updated.
8810 (exec_xfer_partial): Likewise.
8811 * exec.h (section_table_xfer_memory_partial): Update
8812 declaration.
8813 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8814 negative.
8815 (gnu_xfer_partial): Likewise.
8816 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8817 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8818 (ia64_hpux_xfer_solib_got): Likewise.
8819 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8820 type of 'partial_len' to ULONGEST.
8821 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8822 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8823 (linux_nat_xfer_partial): Likewise.
8824 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8825 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8826 * monitor.c (monitor_xfer_memory): Likewise.
8827 (monitor_xfer_partial): Likewise.
8828 * procfs.c (procfs_xfer_partial): Likewise.
8829 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8830 * record-full.c (record_full_xfer_partial): Likewise.
8831 (record_full_core_xfer_partial): Likewise.
8832 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8833 (gdbsim_xfer_partial): Likewise.
8834 * remote.c (remote_write_bytes_aux): Likewise. All callers
8835 updated.
8836 (remote_write_bytes, remote_read_bytes): Likewise. All
8837 callers updated.
8838 (remote_flash_erase): Likewise. All callers updated.
8839 (remote_write_qxfer): Likewise. All callers updated.
8840 (remote_read_qxfer): Likewise. All callers updated.
8841 (remote_xfer_partial): Likewise.
8842 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8843 (rs6000_xfer_shared_libraries): Likewise.
8844 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8845 (sol_thread_xfer_partial): Likewise.
8846 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8847 (sparc_xfer_partial): Likewise.
8848 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8849 updated.
8850 (spu_xfer_partial): Likewise.
8851 * spu-multiarch.c (spu_xfer_partial): Likewise.
8852 * tracepoint.c (tfile_xfer_partial): Likewise.
8853 * windows-nat.c (windows_xfer_memory): Likewise.
8854 (windows_xfer_shared_libraries): Likewise.
8855 (windows_xfer_partial): Likewise.
8856 * valprint.c: Replace 'target_xfer_error' with
8857 'target_xfer_status' in comments.
8858
a8e63083
JB
88592014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8860
8861 Checked in by Joel Brobecker <brobecker@adacore.com>.
8862 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8863
e86b67d3
JB
88642014-02-11 Joel Brobecker <brobecker@adacore.com>
8865
8866 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8867 function parameters.
8868
4b7d1f7f
WN
88692014-02-10 Will Newton <will.newton@linaro.org>
8870
8871 * elfread.c (elf_rel_plt_read): Look for a .got section if
8872 looking up .got.plt fails.
8873 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8874 on address passed to elf_gnu_ifunc_record_cache.
8875 (elf_gnu_ifunc_resolve_addr): Likewise.
8876 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8877
961842b2
JM
88782014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8879
8880 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8881 (X_RETTURN): New macro.
8882 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8883
8884 * sparc64-tdep.c (sparc64_init_abi): Hook
8885 sparc_in_function_epilogue_p.
8886
3f03e7b1
GB
88872014-02-10 Gary Benson <gbenson@redhat.com>
8888
8889 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8890 Rename name_matcher to symbol_matcher.
8891
96f861ef
GB
88922014-02-10 Gary Benson <gbenson@redhat.com>
8893
8894 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8895 Use expand_symtabs_file_matcher_ftype and
8896 expand_symtabs_symbol_matcher_ftype.
8897
ee01b665
JB
88982014-02-10 Joel Brobecker <brobecker@adacore.com>
8899
8900 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8901 (struct ada_symbol_cache): New.
8902 (ada_free_symbol_cache): Forward declare.
8903 (struct ada_pspace_data): New.
8904 (ada_pspace_data_handle): New static global.
8905 (get_ada_pspace_data, ada_pspace_data_cleanup)
8906 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8907 (cache_space, cache): Delete, now folded inside struct
8908 ada_pspace_data.
8909 (ada_get_symbol_cache): New function.
8910 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8911 implementation.
8912 (_initialize_ada_language): Remove initialization of cache_space.
8913 Move call to observer_attach_inferior_exit up, grouping it
8914 with the other observer registrations inside this function.
8915 Rename command to be more general. Add call to
8916 register_program_space_data_with_cleanup.
8917
143adbbf
JB
89182014-02-10 Joel Brobecker <brobecker@adacore.com>
8919
8920 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8921 ada_new_objfile_observer.
8922 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8923 (_initialize_tasks): Update uses of ada_new_objfile_observer
8924 and ada_tasks_normal_stop_observer.
8925
aa4fb036
JB
89262014-02-10 Joel Brobecker <brobecker@adacore.com>
8927
8928 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8929 returned by the 'Length attribute to integer.
8930
9dee8cc6
JB
89312014-02-10 Joel Brobecker <brobecker@adacore.com>
8932
8933 * ada-lang.c (_initialize_ada_language): Initialize
8934 cache_space obstack.
8935
3d9434b5
JB
89362014-02-10 Joel Brobecker <brobecker@adacore.com>
8937
8938 * ada-lang.c (HASH_SIZE): New macro.
8939 (struct cache_entry): New type.
8940 (cache_space, cache): New static globals.
8941 (ada_clear_symbol_cache, find_entry): New functions.
8942 (lookup_cached_symbol, cache_symbol): Implement.
8943 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8944 (_initialize_ada_language): Attach ada_new_objfile_observer
8945 and ada_free_objfile_observer.
8946
f0c5f9b2
JB
89472014-02-10 Joel Brobecker <brobecker@adacore.com>
8948
8949 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8950 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8951 struct block * parameter.
8952 (ada_lookup_symbol_list_worker): Constify local variable "block".
8953 Remove cast which is no longer necessary.
8954
ed3ef339
DE
89552014-02-10 Doug Evans <xdje42@gmail.com>
8956
8957 Add Guile as an extension language.
8958 * NEWS: Mention Guile scripting.
8959 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8960 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8961 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8962 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8963 (CLIBS): Add GUILE_LIBS.
8964 (install-guile): New rule.
8965 (guile.o): New rule.
8966 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8967 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8968 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8969 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8970 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8971 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8972 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8973 * configure.ac: New option --with-guile.
8974 * configure: Regenerate.
8975 * config.in: Regenerate.
8976 * auto-load.c: Remove #include "python/python.h". Add #include
8977 "gdb/section-scripts.h".
8978 (source_section_scripts): Handle Guile scripts.
8979 (_initialize_auto_load): Add name of Guile objfile script to
8980 scripts-directory help text.
8981 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8982 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8983 (struct breakpoint): New member scm_bp_object.
8984 * defs.h (enum command_control_type): New value guile_control.
8985 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8986 "extension.h".
8987 (show_user): Update comment.
8988 (_initialize_cli_cmds): Update help text for "show user". Update help
8989 text for max-user-call-depth.
8990 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8991 "extension.h".
8992 (multi_line_command_p): Add guile_control.
8993 (print_command_lines): Handle guile_control.
8994 (execute_control_command, recurse_read_control_structure): Ditto.
8995 (process_next_line): Recognize "guile" commands.
8996 * disasm.c (gdb_disassemble_info): Make non-static.
8997 * disasm.h: #include "dis-asm.h".
8998 (struct gdbarch): Add forward decl.
8999 (gdb_disassemble_info): Declare.
9000 * extension.c: #include "guile/guile.h".
9001 (extension_languages): Add guile.
9002 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9003 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9004 * gdbtypes.c (get_unsigned_type_max): New function.
9005 (get_signed_type_minmax): New function.
9006 * gdbtypes.h (get_unsigned_type_max): Declare.
9007 (get_signed_type_minmax): Declare.
9008 * guile/README: New file.
9009 * guile/guile-internal.h: New file.
9010 * guile/guile.c: New file.
9011 * guile/guile.h: New file.
9012 * guile/scm-arch.c: New file.
9013 * guile/scm-auto-load.c: New file.
9014 * guile/scm-block.c: New file.
9015 * guile/scm-breakpoint.c: New file.
9016 * guile/scm-disasm.c: New file.
9017 * guile/scm-exception.c: New file.
9018 * guile/scm-frame.c: New file.
9019 * guile/scm-gsmob.c: New file.
9020 * guile/scm-iterator.c: New file.
9021 * guile/scm-lazy-string.c: New file.
9022 * guile/scm-math.c: New file.
9023 * guile/scm-objfile.c: New file.
9024 * guile/scm-ports.c: New file.
9025 * guile/scm-pretty-print.c: New file.
9026 * guile/scm-safe-call.c: New file.
9027 * guile/scm-string.c: New file.
9028 * guile/scm-symbol.c: New file.
9029 * guile/scm-symtab.c: New file.
9030 * guile/scm-type.c: New file.
9031 * guile/scm-utils.c: New file.
9032 * guile/scm-value.c: New file.
9033 * guile/lib/gdb.scm: New file.
9034 * guile/lib/gdb/boot.scm: New file.
9035 * guile/lib/gdb/experimental.scm: New file.
9036 * guile/lib/gdb/init.scm: New file.
9037 * guile/lib/gdb/iterator.scm: New file.
9038 * guile/lib/gdb/printing.scm: New file.
9039 * guile/lib/gdb/types.scm: New file.
9040 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9041 (VPATH): Add $(GUILE_SRCDIR).
9042 (GUILE_DIR): New variable.
9043 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9044 (all): Add stamp-guile dependency.
9045 (stamp-guile): New rule.
9046 (clean-guile, install-guile, uninstall-guile): New rules.
9047 (install-only): Add install-guile dependency.
9048 (uninstall): Add uninstall-guile dependency.
9049 (clean): Add clean-guile dependency.
9050
ac020ec5
DE
90512014-02-09 Doug Evans <xdje42@gmail.com>
9052
9053 Revert this patch (which I approved, mea culpa).
9054
9055 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9056
9057 * Makefile.in (all-lib): Remove.
9058 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9059
2a081c59
JK
90602014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9061
9062 Fix Python stack corruption.
9063 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9064 gdb_py_longest.
9065
0a6bd22d
MK
90662014-02-08 Mark Kettenis <kettenis@gnu.org>
9067
9068 * Makefile.in (all-lib): Remove.
9069 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9070
1a860409
DE
90712014-02-07 Doug Evans <dje@google.com>
9072
9073 * extension-priv.h (extension_language_script_ops): Add comment.
9074 (extension_language_ops): Add comment.
caf5a491 9075 (active_ext_lang_state): Fix typo in comment.
1a860409 9076
d137e6dc
PA
90772014-02-07 Pedro Alves <palves@redhat.com>
9078
0dcb32c3 9079 PR breakpoints/16292
d137e6dc
PA
9080 * infrun.c (handle_signal_stop) <signal arrives while stepping
9081 over a breakpoint>: Switch back to the stepping thread.
9082
ce6d0892
YQ
90832014-02-07 Yao Qi <yao@codesourcery.com>
9084
9085 * target.c (target_xfer_partial): Return zero if LEN is zero.
9086
2ed4b548
YQ
90872014-02-07 Yao Qi <yao@codesourcery.com>
9088
9089 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9090 (ld_so_xfer_auxv): Likewise.
9091 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9092 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9093 * corelow.c (core_xfer_partial): Likewise.
9094 * ctf.c (ctf_xfer_partial): Likewise.
9095 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9096 (darwin_xfer_partial): Likewise.
9097 * exec.c (exec_xfer_partial): Likewise.
9098 * gnu-nat.c (gnu_xfer_partial): Likewise.
9099 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9100 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9101 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9102 * linux-nat.c (linux_xfer_siginfo): Likewise.
9103 (linux_proc_xfer_spu): Likewise.
9104 * procfs.c (procfs_xfer_partial): Likewise.
9105 * record-full.c (record_full_xfer_partial): Likewise.
9106 (record_full_core_xfer_partial): Likewise.
9107 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9108 * remote.c (remote_write_qxfer): Likewise.
9109 (remote_write_qxfer, remote_read_qxfer): Likewise.
9110 (remote_xfer_partial): Likewise.
9111 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9112 (rs6000_xfer_shared_libraries): Likewise.
9113 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9114 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9115 (spu_xfer_partial): Likewise.
9116 * target.c (memory_xfer_partial_1): Likewise.
9117 * tracepoint.c (tfile_xfer_partial): Likewise.
9118 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9119 (windows_xfer_partial): Likewise.
9120
c09f20e4
YQ
91212014-02-07 Yao Qi <yao@codesourcery.com>
9122
9123 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9124 comments.
9125 (core_xfer_shared_libraries_aix): Likewise.
9126 * gdbarch.c, gdbarch.h: Regenerated.
9127 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9128 ULONGEST. Change 'len_avail' type to ULONGEST.
9129 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9130 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9131 declaration.
9132 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9133
8635b3bf
YQ
91342014-02-07 Yao Qi <yao@codesourcery.com>
9135
9136 * corefile.c (memory_error): Get 'exception' from ERR and pass
9137 'exception' to throw_error.
9138
6dddc817
DE
91392014-02-06 Doug Evans <xdje42@gmail.com>
9140
9141 * configure.ac (libpython checking): Remove all but python.o from
9142 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9143 * configure: Regenerate.
9144
9145 * Makefile.in (SFILES): Add extension.c.
9146 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9147 (COMMON_OBS): Add extension.o.
9148 * extension.h: New file.
9149 * extension-priv.h: New file.
9150 * extension.c: New file.
9151
9152 * python/python-internal.h: #include "extension.h".
9153 (gdbpy_auto_load_enabled): Declare.
9154 (gdbpy_apply_val_pretty_printer): Declare.
9155 (gdbpy_apply_frame_filter): Declare.
9156 (gdbpy_preserve_values): Declare.
9157 (gdbpy_breakpoint_cond_says_stop): Declare.
9158 (gdbpy_breakpoint_has_cond): Declare.
9159 (void source_python_script_for_objfile): Delete.
9160 * python/python.c: #include "extension-priv.h".
9161 Delete inclusion of "observer.h".
9162 (extension_language_python): Moved here and renamed from
9163 script_language_python in py-auto-load.c.
9164 Redefined to be of type extension_language_defn.
9165 (python_extension_script_ops): New global.
9166 (python_extension_ops): New global.
9167 (struct python_env): New member previous_active.
9168 (restore_python_env): Call restore_active_ext_lang.
9169 (ensure_python_env): Call set_active_ext_lang.
9170 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9171 New arg extlang.
9172 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9173 New arg extlang.
9174 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9175 New arg extlang.
9176 (gdbpy_eval_from_control_command): Renamed from
9177 eval_python_from_control_command, made static. New arg extlang.
9178 (gdbpy_source_script) Renamed from source_python_script, made static.
9179 New arg extlang.
9180 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9181 result to int. New arg extlang.
9182 (gdbpy_source_objfile_script): Renamed from
9183 source_python_script_for_objfile, made static. New arg extlang.
9184 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9185 static. New args extlang, extlang_printers. Change result type to
9186 "void".
9187 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9188 static. New arg extlang. Rename arg printers to extlang_printers
9189 and change type to ext_lang_type_printers *.
9190 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9191 static. Replace argument arg with extlang, extlang_printers.
9192 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9193 (!HAVE_PYTHON, source_python_script): Delete.
9194 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9195 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9196 (!HAVE_PYTHON, start_type_printers): Delete.
9197 (!HAVE_PYTHON, apply_type_printers): Delete.
9198 (!HAVE_PYTHON, free_type_printers): Delete.
9199 (_initialize_python): Delete call to observer_attach_before_prompt.
9200 (finalize_python): Set/restore active extension language.
9201 (gdbpy_finish_initialization) Renamed from
9202 finish_python_initialization, made static. New arg extlang.
9203 (gdbpy_initialized): New function.
9204 * python/python.h: #include "extension.h". Delete #include
9205 "value.h", "mi/mi-cmds.h".
9206 (extension_language_python): Declare.
9207 (GDBPY_AUTO_FILE_NAME): Delete.
9208 (enum py_bt_status): Moved to extension.h and renamed to
9209 ext_lang_bt_status.
9210 (enum frame_filter_flags): Moved to extension.h.
9211 (enum py_frame_args): Moved to extension.h and renamed to
9212 ext_lang_frame_args.
9213 (finish_python_initialization): Delete.
9214 (eval_python_from_control_command): Delete.
9215 (source_python_script): Delete.
9216 (apply_val_pretty_printer): Delete.
9217 (apply_frame_filter): Delete.
9218 (preserve_python_values): Delete.
9219 (gdbpy_script_language_defn): Delete.
9220 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9221 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9222
9223 * auto-load.c: #include "extension.h".
9224 (GDB_AUTO_FILE_NAME): Delete.
9225 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9226 (script_language_gdb): Delete, moved to extension.c and renamed to
9227 extension_language_gdb.
9228 (source_gdb_script_for_objfile): Delete.
9229 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9230 (loaded_script): Change type of language member to
9231 struct extension_language_defn *.
9232 (init_loaded_scripts_info): Initialize
9233 unsupported_script_warning_printed.
9234 (maybe_add_script): Make static. Change type of language arg to
9235 struct extension_language_defn *.
9236 (clear_section_scripts): Reset unsupported_script_warning_printed.
9237 (auto_load_objfile_script_1): Rewrite to use extension language API.
9238 (auto_load_objfile_script): Make public. Remove support-compiled-in
9239 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9240 (source_section_scripts): Rewrite to use extension language API.
9241 (load_auto_scripts_for_objfile): Rewrite to use
9242 auto_load_scripts_for_objfile.
9243 (collect_matching_scripts_data): Change type of language member to
9244 struct extension_language_defn *.
9245 (auto_load_info_scripts): Change type of language arg to
9246 struct extension_language_defn *.
9247 (unsupported_script_warning_print): New function.
9248 (script_not_found_warning_print): Make static.
9249 (_initialize_auto_load): Rewrite construction of scripts-directory
9250 help.
9251 * auto-load.h (struct objfile): Add forward decl.
9252 (struct script_language): Delete.
9253 (struct auto_load_pspace_info): Add forward decl.
9254 (struct extension_language_defn): Add forward decl.
9255 (maybe_add_script): Delete.
9256 (auto_load_objfile_script): Declare.
9257 (script_not_found_warning_print): Delete.
9258 (auto_load_info_scripts): Update prototype.
9259 (auto_load_gdb_scripts_enabled): Declare.
9260 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9261 auto_load_python_scripts_enabled and made public.
9262 (script_language_python): Delete, moved to python.c.
9263 (gdbpy_script_language_defn): Delete.
9264 (info_auto_load_python_scripts): Update to use
9265 extension_language_python.
9266
9267 * breakpoint.c (condition_command): Replace call to
9268 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9269 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9270 with call to breakpoint_ext_lang_cond_says_stop.
9271 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9272 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9273 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9274 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9275 New arg slang.
9276 (local_setattro): Print name of extension language with existing
9277 stop condition.
9278
9279 * valprint.c (val_print, value_print): Update to call
9280 apply_ext_lang_val_pretty_printer.
9281 * cp-valprint.c (cp_print_value): Update call to
9282 apply_ext_lang_val_pretty_printer.
9283 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9284 (gdbpy_apply_val_pretty_printer): Renamed from
9285 apply_val_pretty_printer. New arg extlang.
9286 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9287
9288 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9289 extension language API.
9290 * cli/cli-script.c (execute_control_command): Update to call
9291 eval_ext_lang_from_control_command.
9292
9293 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9294 enum ext_lang_bt_status values. Update call to
9295 apply_ext_lang_frame_filter.
9296 (mi_cmd_stack_list_locals): Ditto.
9297 (mi_cmd_stack_list_args): Ditto.
9298 (mi_cmd_stack_list_variables): Ditto.
9299 * mi/mi-main.c: Delete #include "python/python-internal.h".
9300 Add #include "extension.h".
9301 (mi_cmd_list_features): Replace reference to python internal variable
9302 gdb_python_initialized with call to ext_lang_initialized_p.
9303
9304 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9305 Update to use enum ext_lang_frame_args. Update to call
9306 apply_ext_lang_frame_filter.
9307 * python/py-framefilter.c (extract_sym): Update to use enum
9308 ext_lang_bt_status.
9309 (extract_value, py_print_type, py_print_value): Ditto.
9310 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9311 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9312 (py_print_frame): Ditto.
9313 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9314 New arg extlang. Update to use enum ext_lang_bt_status.
9315
9316 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9317 finish_python_initialization. Replace with call to
9318 finish_ext_lang_initialization.
9319
9320 * typeprint.c (do_free_global_table): Update to call
9321 free_ext_lang_type_printers.
9322 (create_global_typedef_table): Update to call
9323 start_ext_lang_type_printers.
9324 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9325 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9326 (type_print_options): Change type of global_printers from "void *"
9327 to "struct ext_lang_type_printers *".
9328
9329 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9330 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9331 (gdbpy_preserve_values): Renamed from preserve_python_values.
9332 New arg extlang.
9333 (!HAVE_PYTHON, preserve_python_values): Delete.
9334
9335 * utils.c (quit_flag): Delete, moved to extension.c.
9336 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9337 extension.c.
9338
9339 * eval.c: Delete #include "python/python.h".
9340 * main.c: Delete #include "python/python.h".
9341
9342 * defs.h: Update comment.
9343
6af79985
JB
93442014-02-06 Joel Brobecker <brobecker@adacore.com>
9345
9346 GDB 7.7 released.
9347
12c5175d
MK
93482014-02-05 Mark Kettenis <kettenis@gnu.org>
9349
9350 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9351 defined.
9352
8dc5b319
YQ
93532014-02-05 Yao Qi <yao@codesourcery.com>
9354
9355 * remote.c (remote_pass_signals): Remove local 'buf' and use
9356 rs->buf.
9357 (remote_program_signals): Likewise.
9358
de7b2893
YQ
93592014-02-05 Yao Qi <yao@codesourcery.com>
9360
9361 * ctf.c: Include "inferior.h" and "gdbthread.h".
9362 (CTF_PID): A new macro.
9363 (ctf_open): Call inferior_appeared and add_thread_silent.
9364 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9365 (ctf_thread_alive): New function.
9366 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9367
66d032ac
YQ
93682014-02-05 Yao Qi <yao@codesourcery.com>
9369
9370 Revert this patch:
9371
9372 2013-05-24 Yao Qi <yao@codesourcery.com>
9373
9374 * tracepoint.c (TFILE_PID): Remove.
9375 (tfile_open): Don't add thread and inferior.
9376 (tfile_close): Don't set 'inferior_ptid'. Don't call
9377 exit_inferior_silent.
9378 (tfile_thread_alive): Remove.
9379 (init_tfile_ops): Don't set field 'to_thread_alive' of
9380 tfile_ops.
9381
f4ccffad
CE
93822014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9383
9384 * remote.c (remote_start_remote): Call remote_check_symbols even
9385 if only symbol-file (not file) has been given.
9386
591a12a1
UW
93872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9388
9389 * gdbarch.sh (skip_entrypoint): New callback.
9390 * gdbarch.c, gdbarch.h: Regenerate.
9391 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9392 * infrun.c (fill_in_stop_func): Likewise.
9393 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9394 (ppc_elfv2_elf_make_msymbol_special): New function.
9395 (ppc_elfv2_skip_entrypoint): Likewise.
9396 (ppc_linux_init_abi): Install them for ELFv2.
9397
cc0e89c5
UW
93982014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9399
9400 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9401 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9402 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9403 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9404 structures returned in GPRs.
9405
52f548e4
UW
94062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9407
9408 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9409 offset to the stack parameter list for the ELFv2 ABI.
9410
d4094b6a
UW
94112014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9412
9413 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9414 set_gdbarch_convert_from_func_ptr_addr and
9415 set_gdbarch_elf_make_msymbol_special for ELFv1.
9416 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9417 function descriptors on ELFv1.
9418 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9419 set up r12 at function entry.
9420
cd453cd0
UW
94212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9422
9423 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9424 (struct gdbarch_tdep): New member elf_abi.
9425
9426 * rs6000-tdep.c: Include "elf/ppc64.h".
9427 (rs6000_gdbarch_init): Detect ELF ABI version.
9428
0ff3e01f
UW
94292014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9430
9431 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9432 within a register pair holding a DFP 128-bit value on little-endian.
9433 (ppc64_sysv_abi_return_value_base): Likewise.
9434 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9435 (dfp_pseudo_register_write): Likewise.
9436
5b757e5d
UW
94372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9438
9439 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9440 offset on little-endian when passing _Decimal32.
9441 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9442
084ee545
UW
94432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9444
9445 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9446 of the overlapped FP register within the VSX register on little-
9447 endian platforms.
9448 (efpr_pseudo_register_write): Likewise.
9449
d63167af
UW
94502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9451
9452 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9453 offset on little-endian when passing small structures.
9454
e765b44c
UW
94552014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9456
9457 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9458 (struct ppc64_sysv_argpos): New data structure.
9459 (ppc64_sysv_abi_push_float): Remove.
9460 (ppc64_sysv_abi_push_val): New function.
9461 (ppc64_sysv_abi_push_integer): Likewise.
9462 (ppc64_sysv_abi_push_freg): Likewise.
9463 (ppc64_sysv_abi_push_vreg): Likewise.
9464 (ppc64_sysv_abi_push_param): Likewise.
9465 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9466 (ppc64_sysv_abi_return_value_base): New function.
9467 (ppc64_sysv_abi_return_value): Refactor to use it.
9468
36c24d95
UW
94692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9470
9471 * NEWS: Document new target powerpc64le-*-linux*.
9472
26fd9228
MK
94732014-02-04 Mark Kettenis <kettenis@gnu.org>
9474
9475 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9476 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9477 core dumps.
9478 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9479 register set used in ELF core dumps. Add floating-point register set.
9480
c5bb7362
KB
94812014-02-03 Kevin Buettner <kevinb@redhat.com>
9482
74228e77 9483 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
9484 dwarf2_to_gdb[] table using symbolic constants. Adjust
9485 penultimate entry from number representing the PC register
9486 to symbolic constant representing the MDR register. Add
9487 constant for the PC register to the end of the table.
9488
af09351e
MK
94892014-02-03 Mark Kettenis <kettenis@gnu.org>
9490
9491 * bsd-kvm.c: Include <sys/param.h>
9492
8507e05d
MK
94932014-02-03 Mark Kettenis <kettenis@gnu.org>
9494
9495 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9496
ae56bfb8
JB
94972014-01-31 Joel Brobecker <brobecker@adacore.com>
9498
9499 * ada-lang.h (clear_ada_sym_cache): Delete.
9500
718ee4dc
UW
95012014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
9502
9503 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9504
401e27fd
JM
95052014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9506
9507 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9508 the sigreturn register save area only if the syscall is
9509 sigreturn.
9510
a7c88acd
JB
95112014-01-29 Joel Brobecker <brobecker@adacore.com>
9512
9513 * valops.c (value_slice): Minor reformatting.
9514
fa0079ea
UW
95152014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
9516
9517 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9518
c6044dd1
JB
95192014-01-28 Joel Brobecker <brobecker@adacore.com>
9520
9521 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9522 New static globals.
9523 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9524 (ada_ignore_descriptive_types_p): New static global.
9525 (find_parallel_type_by_descriptive_type): Return immediately
9526 if ada_ignore_descriptive_types_p is set.
9527 (_initialize_ada_language): Register new commands "maintenance
9528 set ada", "maintenance show ada", "maintenance set ada
9529 ignore-descriptive-types" and "maintenance show ada
9530 ignore-descriptive-types".
9531 * NEWS: Add entry for new "maint ada set/show
9532 ignore-descriptive-types" commands.
9533
568e808b
MM
95342014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9535
9536 * record-btrace.c (record_btrace_close): Call btrace_teardown
9537 for all threads.
9538
467d141b
JB
95392014-01-27 Joel Brobecker <brobecker@adacore.com>
9540
9541 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9542 "ui-out.h".
9543
fb151210
JB
95442014-01-27 Joel Brobecker <brobecker@adacore.com>
9545
9546 * ada-typeprint (type_is_full_subrange_of_target_type):
9547 New function.
9548 (print_range): Add parameter bounds_prefered_p. If not set,
9549 try printing range types using the name of their base type.
9550 (print_range_type): Add parameter bounds_prefered_p.
9551 Use it in call to print_range.
9552 (print_array_type, ada_print_type): Update calls to print_range
9553 and print_range_type.
9554
aba02109
JB
95552014-01-27 Joel Brobecker <brobecker@adacore.com>
9556
9557 * ada-typeprint.c (print_array_type, print_choices, print_range)
9558 (print_range_bound, print_dynamic_range_bound, print_range_type):
9559 Remove declaration.
9560
e62e21fd
JB
95612014-01-27 Joel Brobecker <brobecker@adacore.com>
9562
9563 * ada-typeprint.c (print_range): Add missing empty line
9564 after local declaration.
9565
859cf5d1
JB
95662014-01-27 Joel Brobecker <brobecker@adacore.com>
9567
9568 * ada-valprint.c (print_optional_low_bound): Get index_type's
9569 target type for as long as it is a TYPE_CODE_RANGE.
9570
25790f6f
JB
95712014-01-27 Joel Brobecker <brobecker@adacore.com>
9572
9573 * procfs.c (procfs_make_note_section): Remove assertion and
9574 associated comment.
9575
6b6aa828
YQ
95762014-01-24 Yao Qi <yao@codesourcery.com>
9577
9578 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9579 * corelow.c (get_core_siginfo): Likewise.
9580
5d6df423
YQ
95812014-01-24 Yao Qi <yao@codesourcery.com>
9582
9583 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9584 ULONGEST. Don't check 'len' is negative.
9585 (remote_write_bytes): Change type of 'len' to ULONGEST.
9586
83b645b8
TT
95872014-01-23 Tom Tromey <tromey@redhat.com>
9588
9589 PR python/16485:
9590 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9591 Handle exception from frame.block.
9592 (FrameVars.fetch_frame_locals): Likewise.
9593
0740f8d8
TT
95942014-01-23 Tom Tromey <tromey@redhat.com>
9595
9596 PR python/16487:
9597 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9598 on a NULL pointer. Move "goto error" to correct place.
9599
21909fa1
TT
96002014-01-23 Tom Tromey <tromey@redhat.com>
9601
9602 PR python/16491:
9603 * python/py-framefilter.c (apply_frame_filter): Call
9604 ensure_python_env after computing gdbarch.
9605
17fde6d0
YQ
96062014-01-23 Yao Qi <yao@codesourcery.com>
9607
9608 * target.c (raw_memory_xfer_partial): Change argument type
9609 from void * to gdb_byte *.
9610 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9611
87ce2a04
DE
96122014-01-22 Doug Evans <dje@google.com>
9613
9614 New gdbserver option --debug-format=timestamp.
9615 * NEWS: Mention it.
9616
237b092b
AA
96172014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9618
9619 * syscalls/s390x-linux.xml: New file.
9620 * syscalls/s390-linux.xml: New file.
9621 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9622 (XML_SYSCALL_FILENAME_S390X): Likewise.
9623 (op_svc): New enum value for SVC opcode.
9624 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9625 (s390_linux_get_syscall_number): New function.
9626 (s390_gdbarch_init): Register '*get_syscall_number' and the
9627 syscall xml file name.
9628 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9629 "s390-linux.xml" and "s390x-linux.xml".
9630 * NEWS: Announce new feature.
9631
54bff650
BS
96322014-01-22 Baruch Siach <baruch@tkos.co.il>
9633
9634 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9635
14e361d7
PA
96362014-01-22 Pedro Alves <palves@redhat.com>
9637
9638 * xtensa-config.c: Include defs.h.
9639
46bbb3ed
JB
96402014-01-22 Joel Brobecker <brobecker@adacore.com>
9641
9642 * common/common-utils.h: Add "ARI:" comment beside __func__
9643 reference.
9644
3a80edfc
JB
96452014-01-22 Joel Brobecker <brobecker@adacore.com>
9646
9647 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9648 documentation a bit.
9649
4869db5e
RM
96502014-01-21 Roland McGrath <mcgrathr@google.com>
9651
9652 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9653 * configure: Regenerate.
9654 * aclocal.m4: Regenerate.
9655 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9656 New substituted variables.
9657 (install-strip): New target.
9658 (INSTALL_SCRIPT): New substituted variable.
9659 (FLAGS_TO_PASS): Add it.
9660 (install-only): Use $(INSTALL_SCRIPT) rather than
9661 $(INSTALL_PROGRAM) for gcore.
9662
9ea4267d
TT
96632014-01-20 Tom Tromey <tromey@redhat.com>
9664
9665 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9666 together.
9667
1f2bdf09
TT
96682014-01-20 Tom Tromey <tromey@redhat.com>
9669
9670 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9671 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9672 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9673 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9674 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9675 (struct cmd_list_element) <flags>: Remove.
9676 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9677 doc_allocated>: New fields.
9678 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9679 bitfields.
9680 * maint.c (maintenance_do_deprecate): Update.
9681 * top.c (execute_command): Update.
9682
e671835b
BS
96832014-01-20 Baruch Siach <baruch@tkos.co.il>
9684
9685 * xtensa-linux-nat.c: Include asm/ptrace.h.
9686
50367cd2
IB
96872014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9688
9689 * Makefile.in (SFILES): Add d-support.c.
9690 (COMMON_OBS): Add d-support.o.
9691 * d-lang.h (d_parse_symbol): Add comment, now defined in
9692 d-support.c.
9693 * d-lang.c (parse_call_convention)
9694 (parse_attributes, parse_function_types)
9695 (parse_function_args, parse_type, parse_identifier)
9696 (call_convention_p, d_parse_symbol): Move functions to ...
9697 * d-support.c: ... New file.
9698
ec9f644a
IB
96992014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9700
9701 * d-lang.h (d_parse_symbol): Add declaration.
9702 * d-lang.c (extract_identifiers)
9703 (extract_type_info): Remove functions.
9704 (parse_call_convention, parse_attributes)
9705 (parse_function_types, parse_function_args)
9706 (parse_type, parse_identifier, call_convention_p)
9707 (d_parse_symbol): New functions.
9708 (d_demangle): Use d_parse_symbol to demangle D symbols.
9709
94b1b47e
IB
97102014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9711
9712 * d-lang.h (struct builtin_d_type): New data type.
9713 (builtin_d_type): Add declaration.
9714 * d-lang.c (d_language_arch_info, build_d_types)
9715 (builtin_d_type): New functions.
9716 (enum d_primitive_types): New data type.
9717 (d_language_defn): Change c_language_arch_info to
9718 d_language_arch_info.
9719 (d_type_data): New static variable.
9720 (_initialize_d_language): Initialize d_type_data.
9721
63778547
IB
97222014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9723
9724 * d-lang.h (d_main_name): Add declaration.
9725 * d-lang.c (d_main_name): New function.
9726 * symtab.c (find_main_name): Add call to d_main_name.
9727
3271ba66
IB
97282014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9729
9730 * d-lang.c (d_language_defn): Change macro_expansion_c to
9731 macro_expansion_no.
9732
d36b3012
IB
97332014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9734
9735 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9736
c90a6fb7
SDJ
97372014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9738
9739 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9740 gdb_exception" declaration.
9741 * remote.c (getpkt_or_notif_sane): Likewise.
9742
749234e5
DE
97432014-01-17 Doug Evans <dje@google.com>
9744
9745 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9746 function, contents of dirnames_to_char_ptr_vec_append moved here.
9747 (delim_string_to_char_ptr_vec): New function.
9748 (dirnames_to_char_ptr_vec_append): Rewrite.
9749 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9750
df049a58
DE
97512014-01-17 Doug Evans <dje@google.com>
9752
9753 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9754 and moved here ...
9755 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9756 #include "common-utils.h".
9757 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9758 * common/vec.h (VEC_ASSERT_PASS): Update.
9759 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9760 (MACH_CHECK_ERROR): Update.
9761
69f97648
SM
97622014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9763
9764 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9765 comments.
9766 * gdbarch.h: Regenerate.
9767
98b1cfdc
TT
97682014-01-16 Tom Tromey <tromey@redhat.com>
9769
9770 * value.c (struct value) <regnum>: Move earlier.
9771
77a19445
TT
97722014-01-16 Tom Tromey <tromey@redhat.com>
9773
9774 * remote.c (extended_remote_create_inferior): Rename from
9775 extended_remote_create_inferior_1. Add "ops" argument. Remove
9776 old implementation.
9777
62261490
PA
97782014-01-16 Pedro Alves <palves@redhat.com>
9779
9780 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9781 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9782 the backchain.
9783
4d65956b
DE
97842014-01-16 Doug Evans <dje@google.com>
9785
9786 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9787
52834460
MM
97882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9789
9790 * btrace.h (btrace_thread_flag): New.
9791 (struct btrace_thread_info) <flags>: New.
9792 * record-btrace.c (record_btrace_resume_thread)
9793 (record_btrace_find_thread_to_move, btrace_step_no_history)
9794 (btrace_step_stopped, record_btrace_start_replaying)
9795 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9796 (record_btrace_find_resume_thread): New.
9797 (record_btrace_resume, record_btrace_wait): Extend.
9798 (record_btrace_can_execute_reverse): New.
9799 (record_btrace_open): Fail in non-stop mode.
9800 (record_btrace_set_replay): Split into this, ...
9801 (record_btrace_stop_replaying): ... this, ...
9802 (record_btrace_clear_histories): ... and this.
9803 (init_record_btrace_ops): Init to_can_execute_reverse.
9804 * NEWS: Announce it.
9805
118e6252
MM
98062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9807
9808 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9809 (forward_target_decr_pc_after_break)
9810 (target_decr_pc_after_break): New.
9811 * target.c (forward_target_decr_pc_after_break)
9812 (target_decr_pc_after_break): New.
9813 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9814 instead of gdbarch_decr_pc_after_break.
9815 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9816 instead of gdbarch_decr_pc_after_break.
9817 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9818 instead of gdbarch_decr_pc_after_break.
9819 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9820 instead of gdbarch_decr_pc_after_break.
9821 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9822 instead of gdbarch_decr_pc_after_break.
9823 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9824 instead of gdbarch_decr_pc_after_break.
9825
6e07b1d2
MM
98262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9827
9828 * btrace.c: Include regcache.h.
9829 (btrace_add_pc): New.
9830 (btrace_enable): Call btrace_add_pc.
9831 (btrace_is_empty): New.
9832 * btrace.h (btrace_is_empty): New.
9833 * record-btrace.c (require_btrace, record_btrace_info): Call
9834 btrace_is_empty.
9835
969c39fb
MM
98362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9837
9838 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9839 Support delta reads.
9840 (linux_disable_btrace): Change return type.
9841 * common/linux-btrace.h (linux_read_btrace): Change parameters
9842 and return type to allow error reporting. Update users.
9843 (linux_disable_btrace): Change return type. Update users.
9844 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9845 New.
9846 (btrace_error): New.
9847 (btrace_block) <begin>: Comment on BEGIN == 0.
9848 * btrace.c (btrace_compute_ftrace): Start from the end of
9849 the current trace.
9850 (btrace_stitch_trace, btrace_clear_history): New.
9851 (btrace_fetch): Read delta trace, return if replaying.
9852 (btrace_clear): Move clear history code to btrace_clear_history.
9853 (parse_xml_btrace): Throw an error if parsing failed.
9854 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9855 and return type to allow error reporting.
9856 (target_read_btrace): Change parameters and return type to allow
9857 error reporting.
9858 * target.c (target_read_btrace): Update.
9859 * remote.c (remote_read_btrace): Support delta reads. Pass
9860 errors on.
9861 * NEWS: Announce it.
9862
0b722aec
MM
98632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9864
9865 * record.h (record_btrace_frame_unwind)
9866 (record_btrace_tailcall_frame_unwind): New declarations.
9867 * dwarf2-frame: Include record.h
9868 (dwarf2_frame_cfa): Throw an error for btrace frames.
9869 * record-btrace.c: Include hashtab.h.
9870 (btrace_get_bfun_name): New.
9871 (btrace_call_history): Call btrace_get_bfun_name.
9872 (struct btrace_frame_cache): New.
9873 (bfcache): New.
9874 (bfcache_hash, bfcache_eq, bfcache_new): New.
9875 (btrace_get_frame_function): New.
9876 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9877 (record_btrace_frame_this_id): Compute own id.
9878 (record_btrace_frame_prev_register): Provide PC, throw_error
9879 for all other registers.
9880 (record_btrace_frame_sniffer): Detect btrace frames.
9881 (record_btrace_tailcall_frame_sniffer): New.
9882 (record_btrace_frame_dealloc_cache): New.
9883 (record_btrace_frame_unwind): Add new functions.
9884 (record_btrace_tailcall_frame_unwind): New.
9885 (_initialize_record_btrace): Allocate cache.
9886 * btrace.c (btrace_clear): Call reinit_frame_cache.
9887 * NEWS: Announce it.
9888
066ce621
MM
98892014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9890
9891 * record-btrace.c (record_btrace_set_replay)
9892 (record_btrace_goto_begin, record_btrace_goto_end)
9893 (record_btrace_goto): New.
9894 (init_record_btrace_ops): Initialize them.
9895 * NEWS: Announce it.
9896
e2887aa3
MM
98972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9898
9899 * record-btrace.c (record_btrace_find_new_threads)
9900 (record_btrace_thread_alive): New.
9901 (init_record_btrace_ops): Initialize to_find_new_threads and
9902 to_thread_alive.
9903
b2f4cfde
MM
99042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9905
9906 * record-btrace.c (record_btrace_resume): New.
9907 (record_btrace_wait): New.
9908 (init_record_btrace_ops): Initialize to_wait and to_resume.
9909
633785ff
MM
99102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9911
9912 * record-btrace.c (record_btrace_xfer_partial)
9913 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9914 (record_btrace_allow_memory_access): New.
9915 (init_record_btrace_ops): Initialize new methods.
9916 * target.c (raw_memory_xfer_partial): Bail out if target reports
9917 that this memory is not available.
9918
3db08215
MM
99192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9920
9921 * target.h (target_ops) <to_insert_breakpoint>
9922 <to_remove_breakpoint>: Add target_ops parameter.
9923 (forward_target_insert_breakpoint): New.
9924 (forward_target_remove_breakpoint): New.
9925 (memory_remove_breakpoint, memory_insert_breakpoint):
9926 Add target_ops parameter.
9927 * target.c (target_insert_breakpoint): Split into this and ...
9928 (forward_target_insert_breakpoint): ... this.
9929 (target_remove_breakpoint): Split into this and ...
9930 (forward_target_remove_breakpoint): ... this.
9931 (debug_to_insert_breakpoint): Add target_ops parameter.
9932 Call forward_target_insert_breakpoint.
9933 (debug_to_remove_breakpoint): Add target_ops parameter.
9934 Call forward_target_remove_breakpoint.
9935 (update_current_target): Do not inherit or default to_insert_breakpoint
9936 and to_remove_breakpoint.
9937 * corelow.c (ignore): Add target_ops parameter.
9938 * exec.c (ignore): Add target_ops parameter.
9939 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9940 Add target_ops parameter.
9941 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9942 Add target_ops parameter.
9943 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9944 Add target_ops parameter.
9945 * record-full.c (record_full_beneath_to_insert_breakpoint)
9946 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9947 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9948 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9949 (record_full_core_remove_breakpoint): Add target_ops parameter.
9950 Update users.
9951 (record_full_beneath_to_insert_breakpoint_ops)
9952 (record_full_beneath_to_remove_breakpoint_ops)
9953 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9954 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9955 tmp_to_remove_breakpoint_ops,
9956 record_full_beneath_to_insert_breakpoint_ops, and
9957 record_full_beneath_to_remove_breakpoint_ops.
9958 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9959 (m32r_remove_breakpoint): Add target_ops parameter.
9960 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9961 Add target_ops parameter.
9962 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9963 Add target_ops parameter.
9964
cecac1ab
MM
99652014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9966 Markus Metzger <markus.t.metzger@intel.com>
9967
9968 * record-btrace.c: Include frame-unwind.h.
9969 (record_btrace_frame_unwind_stop_reason)
9970 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9971 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9972 New.
9973 (init_record_btrace_ops): Install it.
9974
824344ca
MM
99752014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9976
9977 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9978 get_prev_frame_1.
9979
32261e52
MM
99802014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9981
9982 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9983 earlier.
9984
ea001bdc
MM
99852014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9986
9987 * frame-unwind.c: Include target.h.
9988 (frame_unwind_try_unwinder): New function with code from ...
9989 (frame_unwind_find_by_frame): ... here. New variable
9990 unwinder_from_target, call also target_get_unwinder)
9991 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9992 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9993 * target.h (struct target_ops): New fields to_get_unwinder and
9994 to_get_tailcall_unwinder.
9995 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9996
1f3ef581
MM
99972014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9998
9999 * record-btrace.c (record_btrace_fetch_registers)
10000 (record_btrace_store_registers)
10001 (record_btrace_to_prepare_to_store): New.
10002 (init_record_btrace_ops): Add the above.
10003
f32dbf8c
MM
100042014-01-16 Tom Tromey <tromey@redhat.com>
10005
10006 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10007 * target.h (struct target_ops) <to_prepare_to_store>: Add
10008 argument.
10009 (target_prepare_to_store): Add argument.
10010 * target.c (debug_to_prepare_to_store): Add argument.
10011 (update_current_target): Update.
10012 * remote.c (remote_prepare_to_store): Add 'self' argument.
10013 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10014 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10015 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10016 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10017 argument.
10018 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10019 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10020 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10021 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10022 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10023
07bbe694
MM
100242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10025
10026 * btrace.h (replay) <replay>: New.
10027 (btrace_is_replaying): New.
10028 * btrace.c (btrace_clear): Free replay iterator.
10029 (btrace_is_replaying): New.
10030 * record-btrace.c (record_btrace_is_replaying): New.
10031 (record_btrace_info): Print insn number if replaying.
10032 (record_btrace_insn_history): Start at replay position.
10033 (record_btrace_call_history): Start at replay position.
10034 (init_record_btrace_ops): Init to_record_is_replaying.
10035
0688d04e
MM
100362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10037
10038 * record-btrace.c (record_btrace_insn_history_range): Include
10039 end.
10040 (record_btrace_insn_history_from): Adjust range.
10041 (record_btrace_call_history_range): Include
10042 end.
10043 (record_btrace_call_history_from): Adjust range.
10044 * NEWS: Announce changes.
10045
8710b709
MM
100462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10047
10048 * record.h (enum record_print_flag)
10049 <record_print_indent_calls>: New.
10050 * record.c (get_call_history_modifiers): Recognize /c modifier.
10051 (_initialize_record): Document /c modifier.
10052 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10053 Reorder fields. Optionally indent the function name. Update
10054 all users.
10055 * NEWS: Announce changes.
10056
d0fa7535
MM
100572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10058
10059 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10060
5de9129b
MM
100612014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10062
10063 * btrace.c (ftrace_new_function): Start counting at one.
10064 * record-btrace.c (record_btrace_info): Adjust number of calls
10065 and insns.
10066 * NEWS: Announce it.
10067
7acbe133
MM
100682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10069
10070 * record-btrace.c (btrace_call_history_insn_range): Print
10071 insn range as [begin, end].
10072
23a7fe75
MM
100732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10074
10075 * btrace.h (struct btrace_func_link): New.
10076 (enum btrace_function_flag): New.
10077 (struct btrace_inst): Rename to ...
10078 (struct btrace_insn): ...this. Update all users.
10079 (struct btrace_func) <ibegin, iend>: Remove.
10080 (struct btrace_func_link): New.
10081 (struct btrace_func): Rename to ...
10082 (struct btrace_function): ...this. Update all users.
10083 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10084 (number, level, flags>: New.
10085 (struct btrace_insn_iterator): Rename to ...
10086 (struct btrace_insn_history): ...this.
10087 Update all users.
10088 (struct btrace_insn_iterator, btrace_call_iterator): New.
10089 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10090 (struct btrace_target_info) <begin, end, level>
10091 <insn_history, call_history>: New.
10092 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10093 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10094 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10095 (btrace_call_number, btrace_call_begin, btrace_call_end)
10096 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10097 (btrace_find_function_by_number, btrace_set_insn_history)
10098 (btrace_set_call_history): New.
10099 * btrace.c (btrace_init_insn_iterator)
10100 (btrace_init_func_iterator, compute_itrace): Remove.
10101 (ftrace_print_function_name, ftrace_print_filename)
10102 (ftrace_skip_file): Change
10103 parameter to const.
10104 (ftrace_init_func): Remove.
10105 (ftrace_debug): Use new btrace_function fields.
10106 (ftrace_function_switched): Also consider gaining and
10107 losing symbol information).
10108 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10109 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10110 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10111 New.
10112 (ftrace_new_function): Move. Remove debug print.
10113 (ftrace_update_lines, ftrace_update_insns): New.
10114 (ftrace_update_function): Check for call, ret, and jump.
10115 (compute_ftrace): Renamed to ...
10116 (btrace_compute_ftrace): ...this. Rewritten to compute call
10117 stack.
10118 (btrace_fetch, btrace_clear): Updated.
10119 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10120 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10121 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10122 (btrace_call_number, btrace_call_begin, btrace_call_end)
10123 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10124 (btrace_find_function_by_number, btrace_set_insn_history)
10125 (btrace_set_call_history): New.
10126 * record-btrace.c (require_btrace): Use new btrace thread
10127 info fields.
10128 (record_btrace_info, btrace_insn_history)
10129 (record_btrace_insn_history, record_btrace_insn_history_range):
10130 Use new btrace thread info fields and new iterator.
10131 (btrace_func_history_src_line): Rename to ...
10132 (btrace_call_history_src_line): ...this. Use new btrace
10133 thread info fields.
10134 (btrace_func_history): Rename to ...
10135 (btrace_call_history): ...this. Use new btrace thread info
10136 fields and new iterator.
10137 (record_btrace_call_history, record_btrace_call_history_range):
10138 Use new btrace thread info fields and new iterator.
10139
8372a7cb
MM
101402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10141
10142 * frame.h (frame_id_build_unavailable_stack_special): New.
10143 * frame.c (frame_id_build_unavailable_stack_special): New.
10144
c2170eef
MM
101452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10146
10147 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10148 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10149 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10150 to gdbarch.
10151 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10152 (i386_insn_is_jump, i386_jmp_p): New.
10153 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10154 insn_is_jump to gdbarch.
10155 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10156 * gdbarch.h: Regenerated.
10157 * gdbarch.c: Regenerated.
10158 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10159 (default_insn_is_jump): New.
10160 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10161 (default_insn_is_jump): New.
10162
864089d2
MM
101632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10164
10165 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10166 Change to ...
10167 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10168 (btrace_read_type) <btrace_read_new>: Change to ...
10169 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10170
ed9edfb5
MM
101712014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10172
10173 * common/linux-btrace.c (linux_read_btrace): Free trace from
10174 previous iteration.
10175
fbcbc3fd
DE
101762014-01-15 Doug Evans <dje@google.com>
10177
10178 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10179 uint32_t.
10180
3d548a53
TT
101812014-01-15 Tom Tromey <tromey@redhat.com>
10182
10183 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10184 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10185 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10186 (set_objfile_main_name): New function.
10187 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10188 language_of_main>: New fields.
10189 (set_objfile_main_name): Declare.
10190 * symtab.c (find_main_name): Loop over objfiles to find the main
10191 name and language.
10192 (set_main_name): Now static.
10193 (get_main_info): Add comment.
10194 * symtab.h (set_main_name): Don't declare.
10195
32ac0d11
TT
101962014-01-15 Tom Tromey <tromey@redhat.com>
10197
10198 * symtab.c (main_progspace_key): New global.
10199 (struct main_info): New.
10200 (name_of_main, language_of_main): Remove.
10201 (get_main_info, main_info_cleanup): New function.
10202 (set_main_name, main_name, main_language): Use get_main_info.
10203 (_initialize_symtab): Initialize main_progspace_key.
10204
9e6c82ad
TT
102052014-01-15 Tom Tromey <tromey@redhat.com>
10206
10207 * dbxread.c (process_one_symbol): Update.
10208 * dwarf2read.c (read_partial_die): Update.
10209 * symfile.c (set_initial_language): Call main_language.
10210 * symtab.c (language_of_main): Now static.
10211 (set_main_name): Add 'lang' parameter.
10212 (find_main_name): Update.
10213 (main_language): New function.
10214 (symtab_observer_executable_changed): Update.
10215 * symtab.h (set_main_name): Update.
10216 (language_of_main): Remove.
10217 (main_language): Declare.
10218
6ef55de7
TT
102192014-01-15 Tom Tromey <tromey@redhat.com>
10220
10221 * symfile.c (init_entry_point_info): Use new "initialized" field.
10222 Update.
10223 * objfiles.h (struct entry_point) <initialized>: New field.
10224 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10225 (struct objfile) <ei>: ...here. Remove.
10226 * objfiles.c (entry_point_address_query): Update.
10227
53eddfa6
TT
102282014-01-15 Tom Tromey <tromey@redhat.com>
10229
10230 * objfiles.c (entry_point_address_query): Relocate entry point
10231 address.
10232 (objfile_relocate1): Do not relocate entry point address.
10233 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10234 <the_bfd_section_index>: New field.
10235 * symfile.c (init_entry_point_info): Find the entry point's
10236 section.
10237
d56e56aa
TT
102382014-01-15 Tom Tromey <tromey@redhat.com>
10239
10240 * solib-frv.c (enable_break): Use entry_point_address_query.
10241
33a97bbe
OJ
102422014-01-15 Omair Javaid <omair.javaid@linaro.org>
10243
10244 * NEWS: Add note on improved process record-replay on
10245 arm*-linux* targets.
10246
c6ec2b30
OJ
102472014-01-15 Omair Javaid <omair.javaid@linaro.org>
10248
10249 * arm-tdep.c (enum arm_record_result): New enum.
10250 (arm_record_unsupported_insn): New function.
10251 (arm_record_coproc_data_proc): Removed.
10252 (thumb2_record_ld_st_multiple): New function.
10253 (thumb2_record_ld_st_dual_ex_tbb): New function.
10254 (thumb2_record_data_proc_sreg_mimm): New function.
10255 (thumb2_record_ps_dest_generic): New function.
10256 (thumb2_record_branch_misc_cntrl): New function.
10257 (thumb2_record_str_single_data): New function.
10258 (thumb2_record_ld_mem_hints): New function.
10259 (thumb2_record_ld_word): New function.
10260 (thumb2_record_lmul_lmla_div): New function.
10261 (thumb2_record_decode_insn_handler): New function.
10262 (decode_insn): Add thumb32 instruction handlers.
10263
97dfe206
OJ
102642014-01-15 Omair Javaid <omair.javaid@linaro.org>
10265
10266 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10267 (struct arm_linux_record_tdep): Declare.
10268 (arm_canonicalize_syscall): New function.
10269 (arm_all_but_pc_registers_record): New function.
10270 (arm_linux_syscall_record): New function.
10271 (arm_linux_init_abi): Add syscall recording constructs.
10272 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10273 decoding. (arm_record_coproc_data_proc): Update arm syscall
10274 decoding.
10275 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10276 <arm_syscall_record>: New field.
10277 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10278 gdb_target_obs.
10279
9904a494
OJ
102802014-01-15 Omair Javaid <omair.javaid@linaro.org>
10281
10282 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10283 register for push instruction recording.
10284
f969241e
OJ
102852014-01-15 Omair Javaid <omair.javaid@linaro.org>
10286
10287 * arm-tdep.c (thumb_record_misc): Update to correct logical
10288 error while recording ldm, ldmia and pop instructions.
10289
bfbbec00
OJ
102902014-01-15 Omair Javaid <omair.javaid@linaro.org>
10291
10292 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10293
e40adcc9
PA
102942014-01-15 Pedro Alves <palves@redhat.com>
10295
10296 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10297 (go32_resume, go32_fetch_registers, store_register)
10298 (go32_store_registers, go32_prepare_to_store)
10299 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10300 (go32_create_inferior, go32_can_run, go32_terminal_init)
10301 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10302 declarations.
10303
b0a16e66
TT
103042014-01-15 Tom Tromey <tromey@redhat.com>
10305
10306 * target.h (async_callback_ftype): New typedef.
10307 (struct target_ops) <to_async>: Use it.
10308
bf7105a4
JB
103092014-01-15 Joel Brobecker <brobecker@adacore.com>
10310
10311 * python/py-value.c (get_field_type): Remove unnecessary curly
10312 braces for single-statement if block.
10313
a8f35c2e
JB
103142014-01-15 Joel Brobecker <brobecker@adacore.com>
10315
10316 * python/py-type.c (convert_field): Add missing empty line
10317 after declarations.
10318
bb4142cf
DE
103192014-01-14 Doug Evans <dje@google.com>
10320
10321 * symfile.h (expand_symtabs_matching): Renamed from
10322 expand_partial_symbol_names. Update prototype.
10323 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10324 * symfile.c (expand_symtabs_matching): Renamed from
10325 expand_partial_symbol_names. New args file_matcher, kind.
10326 Rename arg fun to symbol_matcher.
10327 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10328 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10329 ada_expand_partial_symbol_name.
10330 (ada_make_symbol_completion_list): Update to call
10331 expand_symtabs_matching.
10332 (ada_add_global_exceptions): Call expand_symtabs_matching.
10333 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10334 call map_symbol_filenames.
10335 * symtab.c (sources_info): Update to call map_symbol_filenames.
10336 (search_symbols): Call expand_symtabs_matching.
10337 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10338 (default_make_symbol_completion_list_break_on): Update to call
10339 expand_symtabs_matching.
10340 (make_source_files_completion_list): Update to call
10341 map_symbol_filenames.
10342
206f2a57
DE
103432014-01-14 Doug Evans <dje@google.com>
10344
10345 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10346 (expand_symtabs_symbol_matcher_ftype): New typedef.
10347 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10348 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10349 * symfile.c (expand_partial_symbol_names): Update to use
10350 expand_symtabs_symbol_matcher_ftype.
10351 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10352 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10353 Arg name_matcher renamed to symbol_matcher.
10354 * psymtab.c (recursively_search_psymtabs): Update to use
10355 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10356 sym_matcher.
10357 (expand_symtabs_matching_via_partial): Update to use
10358 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10359 Arg name_matcher renamed to symbol_matcher.
10360
540c2971
DE
103612014-01-14 Doug Evans <dje@google.com>
10362
10363 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10364 (map_partial_symbol_filenames): Ditto.
10365 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10366 (map_partial_symbol_filenames): Ditto.
10367 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10368 (map_partial_symbol_filenames): Ditto.
10369 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10370 (map_partial_symbol_filenames): Ditto.
10371 * symtab.c: Delete #include "psymtab.h".
10372
8213266a
PA
103732014-01-14 Pedro Alves <palves@redhat.com>
10374 Tom Tromey <tromey@redhat.com>
10375
10376 * infrun.c (use_displaced_stepping): Use find_record_target
10377 instead of RECORD_IS_USED.
10378 (adjust_pc_after_break): Use record_full_is_used instead of
10379 RECORD_IS_USED.
10380 * record-btrace.c (record_btrace_open): Call record_preopen
10381 instead of checking RECORD_IS_USED.
10382 * record-full.c (record_full_shortname)
10383 (record_full_core_shortname): New globals.
10384 (record_full_is_used): New function.
10385 (find_full_open): Call record_preopen instead of checking
10386 RECORD_IS_USED.
10387 (init_record_full_ops): Set the target's shortname to
10388 record_full_shortname.
10389 (init_record_full_core_ops): Set the target's shortname to
10390 record_full_core_shortname.
10391 * record-full.h (record_full_is_used): Declare.
10392 * record.c (find_record_target): Make extern.
10393 (record_preopen): New function.
10394 * record.h (RECORD_IS_USED): Delete macro.
10395 (find_record_target, record_preopen): Declare functions.
10396
7ec1862d
YQ
103972014-01-14 Yao Qi <yao@codesourcery.com>
10398
10399 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10400 'len''s type to ULONGEST.
10401 (core_xfer_shared_libraries_aix): Likewise.
10402 * gdbarch.c, gdbarch.h: Regenerated.
10403 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10404 Change type of 'len' to ULONGEST.
10405 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10406 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10407
dea80a27
YQ
104082014-01-14 Yao Qi <yao@codesourcery.com>
10409
10410 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10411 type of 'len' to ULONGEST.
10412 (linux_xfer_osdata_processgroups): Likewise.
10413 (linux_xfer_osdata_threads): Likewise.
10414 (linux_xfer_osdata_fds): Likewise.
10415 (linux_xfer_osdata_isockets): Likewise.
10416 (linux_xfer_osdata_shm): Likewise.
10417 (linux_xfer_osdata_sem): Likewise.
10418 (linux_xfer_osdata_msg): Likewise.
10419 (linux_common_xfer_osdata): Likewise.
10420 (struct osdata_type) <getter>: Likewise.
10421 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10422 the declaration.
10423
b55e14c7
YQ
104242014-01-14 Yao Qi <yao@codesourcery.com>
10425
10426 * target.h (target_xfer_partial_ftype): Update.
10427 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10428 ULONGEST.
10429 * aix-thread.c (aix_thread_xfer_partial): Change type of
10430 argument 'len' to ULONGEST.
10431 * auxv.c (procfs_xfer_auxv): Likewise.
10432 (ld_so_xfer_auxv): Likewise.
10433 (memory_xfer_auxv): Likewise.
10434 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10435 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10436 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10437 * corelow.c (core_xfer_partial): Likewise.
10438 * ctf.c (ctf_xfer_partial): Likewise.
10439 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10440 '%u'.
10441 (darwin_read_dyld_info): Likewise.
10442 (darwin_xfer_partial): Likewise.
10443 * exec.c (section_table_xfer_memory_partial): Likewise.
10444 (exec_xfer_partial): Likewise.
10445 * exec.h (section_table_xfer_memory_partial): Update
10446 declaration.
10447 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10448 instead of plongest.
10449 (gnu_xfer_partial): Likewise.
10450 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10451 (ia64_hpux_xfer_solib_got): Likewise.
10452 (ia64_hpux_xfer_partial): Likewise.
10453 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10454 * inf-ptrace.c (inf_ptrace_xfer_partial):
10455 * inf-ttrace.c (inf_ttrace_xfer_partial):
10456 * linux-nat.c (linux_xfer_siginfo): Likewise.
10457 (linux_nat_xfer_partial): Likewise.
10458 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10459 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10460 * monitor.c (monitor_xfer_memory): Likewise.
10461 (monitor_xfer_partial): Likewise.
10462 * procfs.c (procfs_xfer_partial): Likewise.
10463 * record-full.c (record_full_xfer_partial): Likewise.
10464 (record_full_core_xfer_partial): Likewise.
10465 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10466 instead of plongest.
10467 (gdbsim_xfer_partial): Likewise.
10468 * remote.c (remote_xfer_partial): Likewise.
10469 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10470 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10471 declaration.
10472 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10473 (rs6000_xfer_shared_libraries): Likewise.
10474 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10475 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10476 (sparc_xfer_partial): Likewise.
10477 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10478 (spu_xfer_partial): Likewise.
10479 * spu-multiarch.c (spu_xfer_partial): Likewise.
10480 * target.c (target_read_live_memory): Likewise.
10481 (memory_xfer_live_readonly_partial): Likewise.
10482 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10483 (target_xfer_partial, default_xfer_partial): Likewise.
10484 (current_xfer_partial): Likewise.
10485 * tracepoint.c (tfile_xfer_partial): Likewise.
10486 * windows-nat.c (windows_xfer_memory): Likewise. Call
10487 pulongest instead of plongest.
10488 (windows_xfer_partial): Likewise.
10489 (windows_xfer_shared_libraries): Likewise.
10490
05804640
YQ
104912014-01-14 Yao Qi <yao@codesourcery.com>
10492
10493 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10494 target_xfer_partial_ftype.
10495
b5b08fb4
SC
104962014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10497
10498 PR python/15464
10499 PR python/16113
10500 * valops.c (value_struct_elt_bitpos): New function
10501 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10502 object to 'None' if the field name is an empty string ("").
10503 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10504 attribute to look for a field when 'name' is 'None'.
10505 (get_field_type): New function
10506
13aaf454
DE
105072014-01-13 Doug Evans <dje@google.com>
10508
10509 PR symtab/16426
10510 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10511 (try_open_dwop_file): Ditto.
10512 * gdb_bfd.c: #include "vec.h".
10513 (bfdp): New typedef.
10514 (struct gdb_bfd_data): New member included_bfds.
10515 (gdb_bfd_unref): Unref all included bfds.
10516 (gdb_bfd_record_inclusion): New function.
10517 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10518
c2cec97c
TT
105192014-01-13 Tom Tromey <tromey@redhat.com>
10520
10521 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10522
78e5999d
TT
105232014-01-13 Tom Tromey <tromey@redhat.com>
10524
10525 * defs.h (use_windows): Remove.
10526 * gdb.c (main): Update.
10527 * main.c (captured_main, gdb_main): Update.
10528 * main.h (struct captured_main_args) <use_windows>: Remove.
10529 * top.c (use_windows): Remove.
10530
f2052bbe
TT
105312014-01-13 Tom Tromey <tromey@redhat.com>
10532
10533 * defs.h (deprecated_flush_hook): Remove.
10534
fde4f8ed
JK
105352014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10536
10537 PR threads/16216
10538 * linux-thread-db.c (try_thread_db_load): Add parameter
10539 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10540 (try_thread_db_load_from_pdir_1): Move it there from here.
10541 (try_thread_db_load_from_sdir): Update caller.
10542 (try_thread_db_load_from_dir): Move it there from here.
10543
bdf61915
PP
105442014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10545
10546 * regformats/regdat.sh: Always rewrite the register file.
10547
f71e1a8d
PA
105482014-01-13 Pedro Alves <palves@redhat.com>
10549
10550 * Makefile.in (CHECK_HEADERS): New variable.
10551 (check-headers:): New rule.
10552
42c85435
TT
105532014-01-13 Tom Tromey <tromey@redhat.com>
10554
10555 * cli/cli-setshow.c (do_set_command): Update.
10556 * defs.h (deprecated_set_hook): Remove.
10557 * top.c (deprecated_set_hook): Remove.
10558
f8de5129
PA
105592014-01-13 Pedro Alves <palves@redhat.com>
10560
10561 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10562 the tracepoint if the PC is a pseudo-register.
10563
fc270c35
TT
105642014-01-13 Tom Tromey <tromey@redhat.com>
10565
10566 * defs.h (XCALLOC): Remove.
10567 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10568 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10569 * dwarf2loc.c (allocate_piece_closure): Likewise.
10570 * elfread.c (elf_symfile_segments): Likewise.
10571 (elf_symfile_segments): Likewise.
10572 * gdbtypes.c (copy_type_recursive): Likewise.
10573 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10574 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10575 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10576 XCALLOC.
10577 * mt-tdep.c (mt_gdbarch_init): Likewise.
10578 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10579 XCALLOC.
10580 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10581 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10582 * registry.c (registry_alloc_data): Likewise.
10583 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10584 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10585 * serial.c (serial_fdopen_ops): Likewise.
10586 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10587 XCALLOC.
10588 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10589 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10590 not XCALLOC.
10591
70ba0933
TT
105922014-01-13 Tom Tromey <tromey@redhat.com>
10593
10594 * defs.h (XMALLOC): Remove.
10595 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10596 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10597 * cli-out.c (struct ui_out *): Likewise.
10598 * cli/cli-dump.c (add_dump_command): Likewise.
10599 (add_dump_command): Likewise.
10600 * complaints.c (get_complaints): Likewise.
10601 (find_complaint): Likewise.
10602 * dwarf2-frame.c (execute_cfa_program): Likewise.
10603 * dwarf2read.c (abbrev_table_read_table): Likewise.
10604 * gdbarch.sh: Likewise.
10605 * gdbarch.c: Rebuild.
10606 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10607 * interps.c (interp_new): Likewise.
10608 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10609 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10610 * mi/mi-console.c (mi_console_file_new): Likewise.
10611 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10612 * mi/mi-out.c (mi_out_new): Likewise.
10613 * mi/mi-parse.c (mi_parse): Likewise.
10614 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10615 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10616 * observer.c (xalloc_observer_list_node): Likewise.
10617 * regcache.c (regcache_xmalloc_1): Likewise.
10618 * reggroups.c (reggroup_new): Likewise.
10619 (_initialize_reggroup): Likewise.
10620 * registry.c (register_data_with_cleanup): Likewise.
10621 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10622 * ser-base.c (serial_ttystate): Likewise.
10623 * ser-mingw.c (make_pipe_state): Likewise.
10624 * ser-pipe.c (pipe_open): Likewise.
10625 * serial.c (serial_open): Likewise.
10626 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10627 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10628 (tui_alloc_win_info): Likewise.
10629 (tui_add_content_elements): Likewise.
10630 * tui/tui-file.c (tui_file_new): Likewise.
10631 * tui/tui-out.c (tui_out_new): Likewise.
10632 * ui-file.c (mem_file_new): Likewise.
10633 * ui-out.c (push_level): Likewise.
10634 (make_cleanup_ui_out_end): Likewise.
10635 (append_header_to_list): Likewise.
10636 (ui_out_new): Likewise.
10637 * user-regs.c (user_reg_add_builtin): Likewise.
10638
41bf6aca
TT
106392014-01-13 Tom Tromey <tromey@redhat.com>
10640
10641 * defs.h (XZALLOC): Remove.
10642 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10643 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10644 (get_ada_tasks_inferior_data): Likewise.
10645 * auto-load.c (get_auto_load_pspace_data): Likewise.
10646 * auxv.c (get_auxv_inferior_data): Likewise.
10647 * bfd-target.c (target_bfd_reopen): Likewise.
10648 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10649 (deprecated_insert_raw_breakpoint): Likewise.
10650 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10651 * corelow.c (core_open): Likewise.
10652 * darwin-nat.c (darwin_check_new_threads): Likewise.
10653 (darwin_attach_pid): Likewise.
10654 * dummy-frame.c (dummy_frame_push): Likewise.
10655 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10656 * dwarf2loc.c (allocate_piece_closure): Likewise.
10657 * elfread.c (elf_symfile_segments): Likewise.
10658 * eval.c (ptrmath_type_p): Likewise.
10659 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10660 * gdbtypes.c (alloc_type_arch): Likewise.
10661 (alloc_type_instance): Likewise.
10662 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10663 * inf-child.c (inf_child_can_use_agent): Likewise.
10664 * inflow.c (get_inflow_inferior_data): Likewise.
10665 * infrun.c (save_infcall_suspend_state): Likewise.
10666 * jit.c (jit_reader_load): Likewise.
10667 (get_jit_objfile_data): Likewise.
10668 (get_jit_program_space_data): Likewise.
10669 (jit_object_open_impl): Likewise.
10670 (jit_symtab_open_impl): Likewise.
10671 (jit_block_open_impl): Likewise.
10672 (jit_frame_sniffer): Likewise.
10673 * linux-fork.c (add_fork): Likewise.
10674 * maint.c (make_command_stats_cleanup): Likewise.
10675 * objfiles.c (get_objfile_pspace_data): Likewise.
10676 * opencl-lang.c (struct lval_closure): Likewise.
10677 * osdata.c (osdata_start_osdata): Likewise.
10678 * progspace.c (new_address_space): Likewise.
10679 (add_program_space): Likewise.
10680 * remote-sim.c (get_sim_inferior_data): Likewise.
10681 * sh-tdep.c (sh_gdbarch_init): Likewise.
10682 * skip.c (Ignore): Likewise.
10683 (skip_delete_command): Likewise.
10684 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10685 (library_list_start_library): Likewise.
10686 (solib_aix_current_sos): Likewise.
10687 * solib-darwin.c (get_darwin_info): Likewise.
10688 (darwin_current_sos): Likewise.
10689 * solib-dsbt.c (get_dsbt_info): Likewise.
10690 * solib-ia64-hpux.c (new_so_list): Likewise.
10691 (ia64_hpux_get_solib_linkage_addr): Likewise.
10692 * solib-spu.c (append_ocl_sos): Likewise.
10693 (spu_current_sos): Likewise.
10694 * solib-svr4.c (get_svr4_info): Likewise.
10695 (svr4_keep_data_in_core): Likewise.
10696 (library_list_start_library): Likewise.
10697 (svr4_default_sos): Likewise.
10698 (svr4_read_so_list): Likewise.
10699 * solib-target.c (library_list_start_library): Likewise.
10700 (solib_target_current_sos): Likewise.
10701 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10702 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10703 * symfile.c (default_symfile_segments): Likewise.
10704 * target-descriptions.c (tdesc_data_init): Likewise.
10705 (tdesc_create_reg): Likewise.
10706 (struct tdesc_type *): Likewise.
10707 (tdesc_create_vector): Likewise.
10708 (tdesc_set_struct_size): Likewise.
10709 (struct tdesc_type *): Likewise.
10710 (tdesc_free_feature): Likewise.
10711 (tdesc_create_feature): Likewise.
10712 * windows-nat.c (windows_add_thread): Likewise.
10713 (windows_make_so): Likewise.
10714 * xml-support.c (gdb_xml_body_text): Likewise.
10715 (gdb_xml_create_parser_and_cleanup): Likewise.
10716 (xml_process_xincludes): Likewise.
10717 * xml-syscall.c (allocate_syscalls_info): Likewise.
10718 (syscall_create_syscall_desc): Likewise.
10719
5acfdbae
SDJ
107202014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10721
10722 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10723 function, with code from i386_stap_parse_special_token.
10724 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10725 (i386_stap_parse_special_token): Move code to the two functions
10726 above; simplify it.
10727
0000e5cc
PA
107282014-01-09 Pedro Alves <palves@redhat.com>
10729 Hui Zhu <hui@codesourcery.com>
10730
10731 PR gdb/16101
10732 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10733 bp_err_string. Don't mark the location shlib_disabled if the
10734 error thrown wasn't a generic or memory error. Catch errors
10735 thrown while inserting breakpoints in overlayed code. Output
10736 error message of software breakpoints.
10737 * remote.c (remote_insert_breakpoint): If this breakpoint has
10738 target-side commands but this stub doesn't support Z0 packets,
10739 throw NOT_SUPPORTED_ERROR error.
10740 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10741 * target.h (target_insert_breakpoint): Extend comment.
10742 (target_insert_hw_breakpoint): Add comment.
10743
b7ea362b
PA
107442014-01-08 Pedro Alves <palves@redhat.com>
10745
10746 * remote.c (remote_add_thread): Add threads silently if starting
10747 up.
10748 (remote_notice_new_inferior): If in all-stop, and starting up,
10749 don't call notice_new_inferior.
10750 (get_current_thread): New function, factored out from ...
10751 (add_current_inferior_and_thread): ... this. Adjust.
10752 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10753 found any thread, then select the remote's current thread as GDB's
10754 current thread too.
10755
b7bba001
JB
107562014-01-08 Joel Brobecker <brobecker@adacore.com>
10757
10758 * NEWS: Create a new section for the next release branch.
10759 Rename the section of the current branch, now that it has
10760 been cut.
10761
16dfbded
JB
107622014-01-08 Joel Brobecker <brobecker@adacore.com>
10763
10764 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10765 * version.in: Bump version to 7.7.50.DATE-cvs.
10766
22c90ac1
YQ
107672014-01-08 Yao Qi <yao@codesourcery.com>
10768
10769 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10770 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10771 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10772
d64ad97c
YQ
107732014-01-08 Yao Qi <yao@codesourcery.com>
10774
10775 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10776 return value of bfd_get_filename to symbol_file_add_from_bfd.
10777
f93ba80c
PM
107782014-01-08 Pierre Muller <muller@sourceware.org>
10779
10780 Fix PR16201.
10781 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10782 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10783 to prim_record_mininal_symbol_and_info.
10784 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10785 in call to prim_record_minimal_symbol_and_info.
10786 (read_pe_exported_syms): Set index field of section_data.
10787
a4d9ba85
AP
107882014-01-07 Andrew Pinski <apinski@cavium.com>
10789
10790 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10791 * features/aarch64.c: Regenerate.
10792
1b67eb02
AS
107932014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10794
10795 * target.c (return_null): Define.
10796 (update_current_target): Use it instead of return_zero for
10797 functions that return a pointer.
10798
5e3f4fab
EBM
107992014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10800
10801 * source.c (add_path): Fix check for duplicated paths in the previously
10802 included paths.
10803
e2616788
HK
108042014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10805
10806 * ada-lang.c: Remove duplicated include statements.
10807 * alphabsd-nat.c: Ditto.
10808 * amd64-darwin-tdep.c: Ditto.
10809 * amd64fbsd-nat.c: Ditto.
10810 * auto-load.c: Ditto.
10811 * ax-gdb.c: Ditto.
10812 * breakpoint.c: Ditto.
10813 * dbxread.c: Ditto.
10814 * fork-child.c: Ditto.
10815 * gdb_usleep.c: Ditto.
10816 * i386-darwin-tdep.c: Ditto.
10817 * i386fbsd-nat.c: Ditto.
10818 * infcmd.c: Ditto.
10819 * inferior.c: Ditto.
10820 * jv-lang.c: Ditto.
10821 * linux-nat.c: Ditto.
10822 * linux-tdep.c: Ditto.
10823 * m68kbsd-nat.c: Ditto.
10824 * m68klinux-nat.c: Ditto.
10825 * microblaze-tdep.c: Ditto.
10826 * mips-linux-tdep.c: Ditto.
10827 * mn10300-tdep.c: Ditto.
10828 * nto-tdep.c: Ditto.
10829 * opencl-lang.c: Ditto.
10830 * osdata.c: Ditto.
10831 * printcmd.c: Ditto.
10832 * regcache.c: Ditto.
10833 * remote-m32r-sdi.c: Ditto.
10834 * remote.c: Ditto.
10835 * symfile.c: Ditto.
10836 * symtab.c: Ditto.
10837 * tilegx-linux-nat.c: Ditto.
10838 * tilegx-tdep.c: Ditto.
10839 * tracepoint.c: Ditto.
10840 * valops.c: Ditto.
10841 * vaxbsd-nat.c: Ditto.
10842 * windows-nat.c: Ditto.
10843 * xtensa-tdep.c: Ditto.
10844
bd1f7788
YQ
108452014-01-07 Yao Qi <yao@codesourcery.com>
10846
10847 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10848
79301218
JB
108492014-01-07 Yao Qi <yao@codesourcery.com>
10850 Joel Brobecker <brobecker@adacore.com>
10851
10852 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10853 (pdc_write_regs): Likewise.
10854 (fetch_regs_kernel_thread): Likewise.
10855 (store_regs_kernel_thread): Likewise.
10856
108572014-01-07 Joel Brobecker <brobecker@adacore.com>
10858
10859 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10860 tagged type objects to their actual type.
10861
8e355c5d
JB
108622014-01-07 Joel Brobecker <brobecker@adacore.com>
10863
10864 * ada-valprint.c (print_field_values): Add "language" parameter.
10865 Update calls to print_field_values and print_variant_part.
10866 Pass new parameter "language" in call to val_print instead
10867 of "current_language". Replace call to ada_val_print by call
10868 to val_print.
10869 (print_variant_part): Add "language" parameter.
10870 (ada_val_print_struct_union): Update call to print_field_values.
10871
4fbf5aa5
JB
108722014-01-07 Joel Brobecker <brobecker@adacore.com>
10873
10874 * ada-valprint.c (ui_memcpy): Delete.
10875 (ada_print_floating): Update documentation. Add empty line
10876 between between function documentation and implementation.
10877 Delete variable "buffer". Use ui_file_xstrdup in place of
10878 ui_file_put. Minor adjustments following this change.
10879
71855601
JB
108802014-01-07 Joel Brobecker <brobecker@adacore.com>
10881
10882 * ada-valprint.c (ada_val_print_string): New function,
10883 extracted from ada_val_print_array.
10884 (ada_val_print_array): Replace extracted code by call
10885 to ada_val_print_string followed by a return. Move
10886 "else" branch to the function's top block.
10887
4eb27a30
JB
108882014-01-07 Joel Brobecker <brobecker@adacore.com>
10889
10890 * ada-valprint.c (ada_val_print_array): Move implementation
10891 down. Rename parameter "offset" and "val" into "offset_aligned"
10892 and "original_value" respectively. Add parameter "offset".
10893
34b27950
JB
108942014-01-07 Joel Brobecker <brobecker@adacore.com>
10895
10896 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10897 re-organizing the code. Change the "???" message printed
10898 when target type is a TYPE_CODE_UNDEF into
10899 "<ref to undefined type>".
10900
079e4591
JB
109012014-01-07 Joel Brobecker <brobecker@adacore.com>
10902
10903 * ada-valprint.c (print_record): Delete, implementation inlined...
10904 (ada_val_print_struct_union): ... here. Remove call to
10905 ada_check_typedef in inlined implementation.
10906
8004dfd1
JB
109072014-01-07 Joel Brobecker <brobecker@adacore.com>
10908
10909 * ada-valprint.c (ada_val_print_gnat_array): New function,
10910 extracted from ada_val_print_1;
10911 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10912 (ada_val_print_flt, ada_val_print_struct_union)
10913 (ada_val_print_ref): Likewise.
10914 (ada_val_print_1): Delete variables i and elttype.
10915 Replace extracted-out code by call to corresponding
10916 new functions.
10917
760a2db0
JB
109182014-01-07 Joel Brobecker <brobecker@adacore.com>
10919
10920 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10921
3a92c861
JB
109222014-01-07 Joel Brobecker <brobecker@adacore.com>
10923
10924 * ada-valprint.c (ada_val_print_1): Replace calls to
10925 ada_val_print_1 by calls to val_print.
10926
cd1630f9
JB
109272014-01-07 Joel Brobecker <brobecker@adacore.com>
10928
10929 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10930 Update calls to self accordingly. Replace calls to c_val_print
10931 by calls to val_print.
10932
bdf779a0
JB
109332014-01-07 Joel Brobecker <brobecker@adacore.com>
10934
10935 * ada-valprint.c (print_record): Delete declaration.
10936 (adjust_type_signedness, ada_val_print_1): Likewise.
10937 (ada_val_print): Move function implementation down.
10938 (print_variant_part, print_field_values, print_record):
10939 Move function implementation up.
10940
c0d48811
JB
109412014-01-07 Joel Brobecker <brobecker@adacore.com>
10942
10943 * python/py-type.c (typy_get_name): New function.
10944 (type_object_getset): Add entry for attribute "name".
10945 * NEWS: Add entry mentioning this new attribute.
10946
c26e9cbb
YQ
109472014-01-07 Yao Qi <yao@codesourcery.com>
10948
10949 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10950 statement.
10951
0cc6f43d
YQ
109522014-01-07 Yao Qi <yao@codesourcery.com>
10953
10954 * gnu-nat.c (info_port_rights): Add qualifier const to
10955 argument args.
10956
eec03155
YQ
109572014-01-07 Yao Qi <yao@codesourcery.com>
10958
10959 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10960
f04a82ef
YQ
109612014-01-07 Yao Qi <yao@codesourcery.com>
10962
10963 * gnu-nat.c (make_inf) Update declaration.
10964 (make_inf): Make it static.
10965 (inf_set_traced): Likewise.
10966 (inf_port_to_thread, inf_task_died_status): Likewise.
10967
d57dda0a
YQ
109682014-01-07 Yao Qi <yao@codesourcery.com>
10969
10970 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10971
3aa8c969
YQ
109722014-01-07 Yao Qi <yao@codesourcery.com>
10973
10974 * gnu-nat.c (_initialize_gnu_nat): Declare.
10975
94123b4f
YQ
109762014-01-07 Yao Qi <yao@codesourcery.com>
10977
10978 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10979 'enum bfd_endian'.
10980 (struct gdbarch_info) <byte_order>: Change type to
10981 'enum bfd_endian'.
10982 <byte_order_for_code>: Likewise.
10983 * gdbarch.c, gdbarch.h: Regenerated.
10984
dc81d70a
TT
109852014-01-06 Sasha Smundak <asmundak@google.com>
10986
10987 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10988
cc2f3c35
TT
109892014-01-06 Tom Tromey <tromey@redhat.com>
10990
10991 * doublest.c (convert_doublest_to_floatformat): Use const, not
10992 CONST.
10993 * somread.c (som_symtab_read): Likewise.
10994
adcf2eed
HZ
109952014-01-07 Hui Zhu <hui@codesourcery.com>
10996
10997 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10998 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10999 (gdb_bfd_fopen): Ditto.
11000 (gdb_bfd_openr): Ditto.
11001 (gdb_bfd_openw): Ditto.
11002 (gdb_bfd_openr_iovec): Ditto.
11003 (gdb_bfd_fdopenr): Ditto.
11004 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11005 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11006 with xstrdup.
11007 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11008 with xstrdup.
11009 * symfile-mem.c (symbol_file_add_from_memory): Removed
11010 gdb_bfd_stash_filename.
11011
50722198
DE
110122014-01-03 Doug Evans <dje@google.com>
11013
11014 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11015 output.
11016
2fa4b862
JB
110172014-01-01 Joel Brobecker <brobecker@adacore.com>
11018
11019 Update year range in copyright notice of all files.
11020
28498c42
JB
110212014-01-01 Joel Brobecker <brobecker@adacore.com>
11022
11023 * top.c (print_gdb_version): Set copyright year to 2014.
11024
7b6e1046
JB
110252014-01-01 Joel Brobecker <brobecker@adacore.com>
11026
11027 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11028
df96af55 11029For older changes see ChangeLog-2013.
c906108c
SS
11030\f
11031Local Variables:
11032mode: change-log
11033left-margin: 8
11034fill-column: 74
11035version-control: never
57da7796 11036coding: utf-8
c906108c 11037End:
This page took 2.100038 seconds and 4 git commands to generate.