Move gdb/signals.h to common-defs.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
cb9f1a9b
GB
12014-08-07 Gary Benson <gbenson@redhat.com>
2
3 * common/common-defs.h: Include gdb/signals.h.
4 * defs.h: Do not include gdb/signals.h.
5
a5fceff8
GB
62014-08-07 Gary Benson <gbenson@redhat.com>
7
8 * common/common-defs.h: Include pathmax.h.
9 * defs.h: Do not include pathmax.h.
10
b9391142
GB
112014-08-07 Gary Benson <gbenson@redhat.com>
12
13 * common/common-defs.h: Include libiberty.h.
14 * defs.h: Do not include libiberty.h.
15 * common/queue.h: Likewise.
16 * cp-name-parser.y: Likewise.
17 * mi/mi-cmd-catch.c: Likewise.
18 * python/python.c: Likewise.
19
0e443c87
GB
202014-08-07 Gary Benson <gbenson@redhat.com>
21
22 * common/common-defs.h: Include ansidecl.h.
23 * defs.h: Do not include ansidecl.h.
24 * common/buffer.h: Likewise.
25 * common/common-utils.h: Likewise.
26
8ebb3f56
GB
272014-08-07 Gary Benson <gbenson@redhat.com>
28
29 * common/common-defs.h: Include stddef.h.
30 * defs.h: Do not include stddef.h.
31 * common/common-utils.h: Likewise.
32 * amd64fbsd-nat.c: Likewise.
33 * bcache.c: Likewise.
34 * charset.c: Likewise.
35 * common/buffer.h: Likewise.
36 * common/vec.h: Likewise.
37 * i386bsd-nat.c: Likewise.
38 * nat/linux-btrace.h: Likewise.
39 * ppcfbsd-nat.c: Likewise.
40 * ppcnbsd-tdep.h: Likewise.
41 * ppcobsd-nat.c: Likewise.
42 * ppcobsd-tdep.h: Likewise.
43 * python/py-gdb-readline.c: Likewise.
44
8980bdf6
GB
452014-08-07 Gary Benson <gbenson@redhat.com>
46
47 * common/common-defs.h: Include stdarg.h.
48 * defs.h: Do not include stdarg.h.
49 * ada-lang.c: Likewise.
50 * common/common-utils.h: Likewise.
51 * guile/scm-string.c: Likewise.
52 * guile/scm-utils.c: Likewise.
53 * m32c-tdep.c: Likewise.
54
d7096f71
GB
552014-08-07 Gary Benson <gbenson@redhat.com>
56
57 * common/common-defs.h: Include stdlib.h.
58 * defs.h: Do not include stdlib.h.
59 * addrmap.c: Likewise.
60 * bcache.c: Likewise.
61 * common/buffer.c: Likewise.
62 * common/common-utils.c: Likewise.
63 * cp-name-parser.y: Likewise.
64 * go32-nat.c: Likewise.
65 * mn10300-linux-tdep.c: Likewise.
66 * nat/linux-osdata.c: Likewise.
67 * tui/tui.c: Likewise.
68 * windows-nat.c: Likewise.
69
d02f550d
GB
702014-08-07 Gary Benson <gbenson@redhat.com>
71
72 * common/common-defs.h: Include stdio.h.
73 * defs.h: Do not include stdio.h.
74 * ada-lang.c: Likewise.
75 * common/buffer.c: Likewise.
76 * common/common-utils.c: Likewise.
77 * cp-name-parser.y: Likewise.
78 * gnu-nat.c: Likewise.
79 * go32-nat.c: Likewise.
80 * i386gnu-nat.c: Likewise.
81 * proc-api.c: Likewise.
82 * proc-events.c: Likewise.
83 * proc-flags.c: Likewise.
84 * proc-why.c: Likewise.
85 * python/python-internal.h: Likewise.
86 * target-memory.c: Likewise.
87 * tui/tui-io.c: Likewise.
88 * tui/tui.c: Likewise.
89
b6d7a4bf
SM
902014-08-06 Simon Marchi <simon.marchi@ericsson.com>
91
92 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
93 (scan_dyntag_auxv): Same.
94
af19829b
YQ
952014-08-06 Yao Qi <yao@codesourcery.com>
96
97 * amd64-linux-nat.c: Remove duplicated include
98 "x86-linux-nat.h".
99 * i386-linux-nat.c: Likewise.
100
8e07a239
YQ
1012014-08-06 Yao Qi <yao@codesourcery.com>
102
103 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
104 operand" with "Special opcode" in comments.
105
7bfe8241
GB
1062014-08-05 Gary Benson <gbenson@redhat.com>
107
108 * interps.c (initialize_interps): Remove prototype.
109 (interpreter_initialized): Remove static global.
110 (interp_add): Do not call initialize_interps.
111 (initialize_interps): Remove function.
112
d6c95504
GB
1132014-08-05 Gary Benson <gbenson@redhat.com>
114
115 * utils.c (vwarning): Remove spurious va_end.
116
241fd515
AM
1172014-08-05 Alan Modra <amodra@gmail.com>
118
119 * charset.c (convert_between_encodings): Cast result of obstack_base.
120 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
121 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
122 (read_unwind_info): Use size_t for some locals.
123 * jit.c (finalize_symtab): Likewise.
124 * utils.c (hashtab_obstack_allocate): Likewise.
125 * symmisc.c (print_objfile_statistics): Update format strings.
126
dc304a94
JK
1272014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
128
129 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
130 (Changes in GDB 7.8): ... here.
131
3cecbbbe
TT
1322014-08-04 Tom Tromey <tromey@redhat.com>
133
134 * target.c (set_targetdebug): New function.
135 (initialize_targets): Pass set_targetdebug when creating "set
136 debug target".
137
6908c509
JB
1382014-08-01 Joel Brobecker <brobecker@adacore.com>
139
140 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
141 if detecting a variable-sized field that is not the last field.
142 Fix struct type length computation.
143
53e8f97d
JB
1442014-08-01 Joel Brobecker <brobecker@adacore.com>
145
146 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
147 Add debug trace.
148
e068c55d
JB
1492014-08-01 Joel Brobecker <brobecker@adacore.com>
150
151 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
152 Remove "+ 8" offset in computation of CHAIN_VMA.
153
4d4ca2a1
DE
1542014-07-31 Doug Evans <dje@google.com>
155
156 * inflow.c (child_terminal_inferior): Add comment.
157 (child_terminal_ours_for_output): Add comment.
158 (child_terminal_ours): Add comment.
159 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
160 (linux_nat_terminal_ours): Add comment.
161
462f517e
GB
1622014-07-31 Gary Benson <gbenson@redhat.com>
163
164 * common/btrace-common.h: Do not include defs.h or server.h.
165 * nat/mips-linux-watch.h: Likewise.
166 * gdb-dlfcn.h: Do not include defs.h.
167 * tracefile.h: Likewise.
168
74228e77
RM
1692014-07-30 Roland McGrath <mcgrathr@google.com>
170
171 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
172
014f9477
TT
1732014-07-30 Tom Tromey <tromey@redhat.com>
174
175 * bsd-kvm.c (bsd_kvm_open): Constify.
176 * corelow.c (core_open): Constify.
177 * ctf.c (ctf_open): Constify.
178 * dbug-rom.c (dbug_open): Constify.
179 * exec.c (exec_open): Constify.
180 * m32r-rom.c (m32r_open, mon2000_open): Constify.
181 * microblaze-rom.c (picobug_open): Constify.
182 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
183 Constify.
184 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
185 * record-btrace.c (record_btrace_open): Constify.
186 * record-full.c (record_full_core_open_1, record_full_open_1)
187 (record_full_open): Constify.
188 * remote-m32r-sdi.c (m32r_open): Constify.
189 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
190 (rockhopper_open, lsi_open): Constify.
191 * remote-sim.c (gdbsim_open): Constify.
192 * remote.c (remote_open, extended_remote_open, remote_open_1):
193 Constify.
194 * target.h (struct target_ops) <to_open>: Make "arg" const.
195 * tracefile-tfile.c (tfile_open): Constify.
196
e799154c
TT
1972014-07-30 Tom Tromey <tromey@redhat.com>
198
199 * breakpoint.c (map_breakpoint_numbers): Update.
200 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
201 (get_number_const): New function.
202 (get_number): Rewrite using get_number_const.
203 (init_number_or_range): Make "string" const.
204 (number_is_in_list): Make "list" const.
205 * cli/cli-utils.h (get_number_const): Declare.
206 (struct get_number_or_range_state) <string, end_ptr>: Now const.
207 (init_number_or_range, number_is_in_list): Update.
208 * printcmd.c (map_display_numbers): Update.
209 * value.c (value_from_history_ref): Constify.
210 * value.h (value_from_history_ref): Update.
211
5f08566b
TT
2122014-07-30 Tom Tromey <tromey@redhat.com>
213
214 * corefile.c (hook_type, call_extra_exec_file_hooks)
215 (specify_exec_file_hook): Constify.
216 * exec.c (exec_file_attach): Make "filename" const.
217 * gdbcore.h (deprecated_exec_file_display_hook)
218 (specify_exec_file_hook, exec_file_attach): Constify.
219 * main.c (captured_main): Use catch_command_errors_const.
220
8981c758
TT
2212014-07-30 Tom Tromey <tromey@redhat.com>
222
223 * target.c (open_target): New function.
224 (add_target_with_completer, add_deprecated_target_alias): Use
225 set_cmd_sfunc, set_cmd_context.
226 (debug_to_open): Remove.
227 (setup_target_debug): Update.
228
a1c7835a
YQ
2292014-07-30 Yao Qi <yao@codesourcery.com>
230
231 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
232 comments.
233 * parse.c (exp_iterate): Update comments.
234
976411d6
GB
2352014-07-30 Gary Benson <gbenson@redhat.com>
236
237 * common/common-defs.h: New file.
238 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
239 * defs.h: Include common-defs.h.
240 Do not include config.h or build-gnulib/config.h.
241
5d4848a4
GB
2422014-07-30 Gary Benson <gbenson@redhat.com>
243
244 * common/common-utils.h: Do not include config.h.
245 * nat/linux-btrace.h: Likewise.
246
d41f6d8e
GB
2472014-07-30 Gary Benson <gbenson@redhat.com>
248
249 * btrace.c: Include defs.h.
250 * common/ptid.c: Include defs.h or server.h as appropriate.
251 * nat/mips-linux-watch.c: Likewise.
252
84202f9c
TT
2532014-07-29 Tom Tromey <tromey@redhat.com>
254
255 * target.c (target_is_pushed): Simplify.
256
2530441c
JB
2572014-07-29 Joel Brobecker <brobecker@adacore.com>
258
259 GDB 7.8 released.
260
7e09a223
YQ
2612014-07-29 Yao Qi <yao@codesourcery.com>
262
263 PR gdb/17206
264 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
265
7ebdbe92
DE
2662014-07-28 Doug Evans <xdje42@gmail.com>
267
268 PR guile/17203
269 * guile/scm-param.c (pascm_parameter_defined_p): New function.
270 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
271 parameters.
272
f347ffc9
WN
2732014-07-28 Will Newton <will.newton@linaro.org>
274
275 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
276 (THUMB2_SET_R7_SIGRETURN2): Likewise.
277 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
278 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
279 (THUMB2_EABI_SYSCALL): Likewise.
280 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
281 struct tramp_frame.
282 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
283 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
284
37c5f1f7
DE
2852014-07-27 Doug Evans <xdje42@gmail.com>
286
287 * guile/scm-param.c (pascm_print_param_smob): Fix output.
288
0c3abbc7
DE
2892014-07-27 Doug Evans <xdje42@gmail.com>
290
291 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
292
e76c5d17
DE
2932014-07-26 Ludovic Courtès <ludo@gnu.org>
294 Doug Evans <xdje42@gmail.com>
295
296 PR guile/17146
297 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
298 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
299 * configure.ac: Try to use guild to compile an scm file, if it fails
300 then disable guile support.
301 * configure: Regenerate.
302 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
303 GUILE_FILE_LIST.
304 (GUILE_COMPILED_FILES): New variable.
305 (GUILE_FILES) Update.
306 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
307 (stamp-guile): Compile scm files.
308 * guile/guile.c (boot_guile_support): New function.
309 (standard_throw_args_p): New function.
310 (print_standard_throw_error, print_throw_error): New functions.
311 (handle_boot_error): New function.
312 (initialize_scheme_side): Rewrite to call boot_guile_support.
313 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
314 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
315
186fcde0
DE
3162014-07-26 Ludovic Courtès <ludo@gnu.org>
317 Doug Evans <xdje42@gmail.com>
318
319 PR guile/17146
320 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
321 * guile/lib/gdb/support.scm: New file.
322 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
323 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
324 All uses updated.
325 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
326 All uses updated.
327 (%assert-type): Ditto, and renamed to assert-type.
328 (%exception-print-style): Delete.
329
4df42755
DE
3302014-07-26 Doug Evans <xdje42@gmail.com>
331
332 PR build/17105
333 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
334 * configure: Regenerate.
335 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
336 PYTHON_FILES.
337 (PYTHON_FILES): New variable.
338 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
339 (GUILE_FILES): New variable.
340 (stamp-python, install-python, uninstall-python): Handle empty
341 file list.
342 (stamp-guile, install-guile, uninstall-guile): Ditto.
343
ee7333ae
DE
3442014-07-26 Doug Evans <xdje42@gmail.com>
345
346 PR guile/17177
347 * guile/lib/gdb.scm (pretty-printers): Export.
348 (set-pretty-printers!): Export.
349 * guile/lib/gdb/printing.scm (gdb module): Update.
350 (prepend-pretty-printer!, append-pretty-printer!): Update.
351 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
352 (pretty_printer_list_var): Delete.
353 (pretty_printer_list): New static global.
354 (gdbscm_pretty_printers): New function.
355 (gdbscm_set_pretty_printers_x): New function.
356 (ppscm_find_pretty_printer_from_gdb): Update.
357 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
358 (gdbscm_initialize_pretty_printers): Update.
359
74edf516
DE
3602014-07-26 Doug Evans <xdje42@gmail.com>
361
362 PR 17185
363 * configure.ac: Add check for header gc/gc.h.
364 Add check for function setenv.
365 * configure: Regenerate.
366 * config.in: Regenerate.
367 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
368
d54398a7
MR
3692014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
370
371 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
372 variation in gdbarch matching.
373
ab16fce8
TT
3742014-07-25 Tom Tromey <tromey@redhat.com>
375
376 * exec.c (using_exec_ops): Remove.
377 (exec_close_1): Update. Remove extraneous block, reindent.
378 (add_target_sections): Use target_is_pushed.
379
88056fbb
PA
3802014-07-25 Pedro Alves <palves@redhat.com>
381
382 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
383 * monitor.c (monitor_create_inferior): Likewise.
384 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
385 * remote-sim.c (gdbsim_create_inferior): Likewise.
386 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
387 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
388 * windows-nat.c (do_initial_windows_stuff): Likewise.
389
70509625
PA
3902014-07-25 Pedro Alves <palves@redhat.com>
391
392 * NEWS: Mention signal passing and "signal" command changes.
393 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
394 comment.
395 * breakpoint.c (until_break_command): Adjust clear_proceed_status
396 call.
397 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
398 * infcmd.c (proceed_thread_callback, continue_1, step_once)
399 (jump_command): Adjust clear_proceed_status call.
400 (signal_command): Warn if other thread that are resumed have
401 signals that will be delivered. Adjust clear_proceed_status call.
402 (until_next_command, finish_command)
403 (proceed_after_attach_callback, attach_command_post_wait)
404 (attach_command): Adjust clear_proceed_status call.
405 * infrun.c (proceed_after_vfork_done): Likewise.
406 (proceed_after_attach_callback): Adjust comment.
407 (clear_proceed_status_thread): Clear stop_signal if not in pass
408 state.
409 (clear_proceed_status_callback): Delete.
410 (clear_proceed_status): New 'step' parameter. Only clear the
411 proceed status of threads the command being prepared is about to
412 resume.
413 (proceed): If passed in an explicit signal, override stop_signal
414 with it. Don't pass the last stop signal to the thread we're
415 resuming.
416 (init_wait_for_inferior): Adjust clear_proceed_status call.
417 (switch_back_to_stepped_thread): Clear the signal if it should not
418 be passed.
419 * infrun.h (clear_proceed_status): New 'step' parameter.
420 (user_visible_resume_ptid): Add comment.
421 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
422 signal is in pass state.
423 * remote.c (append_pending_thread_resumptions): Likewise.
424 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
425
d8be2939
TT
4262014-07-25 Tom Tromey <tromey@redhat.com>
427
428 * target.h (target_stopped_data_address)
429 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
430 parentheses.
431
7d0d9d2b
PL
4322014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
433
434 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
435 comments.
436 (avr_pointer_to_address): Likewise.
437
e9e7f724
TT
4382014-07-24 Tom Tromey <tromey@redhat.com>
439
440 * monitor.c (compile_pattern): Update.
441 * target.h (struct target_ops) <to_shortname, to_longname,
442 to_doc>: Now const.
443
1947513d
TT
4442014-07-24 Tom Tromey <tromey@redhat.com>
445
446 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
447 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
448 (add_info_alias, add_com): Make "doc" const.
449 (print_doc_line): Make "str" const.
450 (delete_cmd): Update.
451 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
452 (print_doc_line): Update.
453 * cli/cli-script.c (document_command): Update.
454 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
455 (add_com, add_info, add_info_alias): Update.
456 * guile/scm-cmd.c (cmdscm_destroyer): Update.
457 * python/py-cmd.c (cmdpy_destroyer): Update.
458
64e61d29
TT
4592014-07-24 Tom Tromey <tromey@redhat.com>
460
461 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
462 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
463 (help_cmd_list): Constify.
464 (lookup_cmd): Update.
465 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
466 const.
467 (help_cmd_list, apropos_cmd): Update.
468 * cli/cli-script.c (show_user): Update.
469 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
470 * cli/cli-setshow.h (cmd_show_list): Update.
471 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
472 (cmd_show_list): Update.
473 * guile/scm-cmd.c (cmdscm_destroyer): Update.
474 * python/py-cmd.c (cmdpy_destroyer): Update.
475
429e55ea
TT
4762014-07-24 Tom Tromey <tromey@redhat.com>
477
478 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
479 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
480 const.
481 * command.h (deprecate_cmd): Update.
482 * maint.c (maintenance_do_deprecate): Add casts.
483
64669f3b
TT
4842014-07-24 Tom Tromey <tromey@redhat.com>
485
486 * cli/cli-decode.c (help_cmd): Make parameter "const".
487 * cli/cli-decode.h (help_cmd): Update.
488
d3d3328b
TT
4892014-07-24 Tom Tromey <tromey@redhat.com>
490
491 * stack.c (up_silently_base, down_silently_base): Make argument
492 const.
493
414842dc
TT
4942014-07-24 Tom Tromey <tromey@redhat.com>
495
496 * solib.c (solib_add): Make "pattern" const.
497 * solib.h (solib_add): Update.
498
baa336ce
TT
4992014-07-24 Tom Tromey <tromey@redhat.com>
500
501 * remote.c (remote_serial_open, print_packet, putpkt)
502 (putpkt_binary): Constify.
503 * remote.h (putpkt): Update.
504
5a19e2d0
TT
5052014-07-24 Tom Tromey <tromey@redhat.com>
506
507 * monitor.c (monitor_open): Make "args" const.
508 * monitor.h (monitor_open): Update.
509
fc4baa5e
TT
5102014-07-24 Tom Tromey <tromey@redhat.com>
511
512 * maint.c (match_bfd_flags): Make "string" const.
513 (print_bfd_section_info): Remove casts.
514 (print_objfile_section_info): Make "string" const.
515
0d5f0dbe
TT
5162014-07-24 Tom Tromey <tromey@redhat.com>
517
518 * inf-child.c (inf_child_open_target): Make "arg" const.
519 * inf-child.h (inf_child_open_target): Update.
520
41c77899
TT
5212014-07-24 Tom Tromey <tromey@redhat.com>
522
523 * environ.c (unset_in_environ): Make "var" const.
524 * environ.h (unset_in_environ): Update.
525
93db0d79
TT
5262014-07-24 Tom Tromey <tromey@redhat.com>
527
528 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
529 Make "cmd" const.
530 (scan_filename_with_cleanup): Likewise.
531 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
532 Make arguments const.
533 (restore_command): Update.
534
36d6eb95
PA
5352014-07-24 Pedro Alves <palves@redhat.com>
536
537 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
538
8009206a
TT
5392014-07-24 Tom Tromey <tromey@redhat.com>
540 Gary Benson <gbenson@redhat.com>
541
542 * nat/linux-ptrace.c (additional_flags): New global.
543 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
544 additional_flags; don't check GDBSERVER.
545 (linux_ptrace_set_additional_flags): New function.
546 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
547 Declare.
548 * linux-nat.c (_initialize_linux_nat): Call
549 linux_ptrace_set_additional_flags.
550
a7068b60
TT
5512014-07-24 Tom Tromey <tromey@redhat.com>
552
553 * make-target-delegates (munge_type, write_debugmethod): New
554 functions.
555 (debug_names): New global.
556 ($TARGET_DEBUG_PRINTER): New global.
557 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
558 name.
559 Write debug methods. Generate init_debug_target.
560 * target-debug.h: New file.
561 * target-delegates.c: Rebuild.
562 * target.c: Include target-debug.h.
563 (debug_target): Hoist definition.
564 (target_kill, target_get_section_table, target_memory_map)
565 (target_flash_erase, target_flash_done, target_detach)
566 (target_disconnect, target_wait, target_resume)
567 (target_pass_signals, target_program_signals, target_follow_fork)
568 (target_mourn_inferior, target_search_memory)
569 (target_thread_address_space, target_close)
570 (target_find_new_threads, target_core_of_thread)
571 (target_verify_memory, target_insert_mask_watchpoint)
572 (target_remove_mask_watchpoint): Remove targetdebug code.
573 (debug_to_post_attach, debug_to_prepare_to_store)
574 (debug_to_files_info, debug_to_insert_breakpoint)
575 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
576 (debug_to_region_ok_for_hw_watchpoint)
577 (debug_to_can_accel_watchpoint_condition)
578 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
579 (debug_to_watchpoint_addr_within_range)
580 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
581 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
582 (debug_to_terminal_init, debug_to_terminal_inferior)
583 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
584 (debug_to_terminal_save_ours, debug_to_terminal_info)
585 (debug_to_load, debug_to_post_startup_inferior)
586 (debug_to_insert_fork_catchpoint)
587 (debug_to_remove_fork_catchpoint)
588 (debug_to_insert_vfork_catchpoint)
589 (debug_to_remove_vfork_catchpoint)
590 (debug_to_insert_exec_catchpoint)
591 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
592 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
593 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
594 (setup_target_debug): Call init_debug_target.
595 * target.h (TARGET_DEBUG_PRINTER): New macro.
596 (struct target_ops) <to_resume, to_wait, to_pass_signals,
597 to_program_signals>: Use TARGET_DEBUG_PRINTER.
598
2c51604d
GB
5992014-07-24 Gary Benson <gbenson@redhat.com>
600
601 * exceptions.h (throw_vfatal): Renamed to...
602 (throw_vquit): New declaration.
603 (throw_quit): Likewise.
604 * exceptions.c (throw_vfatal): Renamed to...
605 (throw_vquit): New function.
606 (throw_quit): Likewise.
607 (throw_error): Call throw_verror rather than throw_it.
608 * utils.h (vfatal): Removed.
609 (fatal): Likewise.
610 * utils.c (vfatal): Removed.
611 (fatal): Likewise.
612 (internal_verror): Replaced call to fatal with call to throw_quit.
613 (quit): Replaced calls to fatal with calls to throw_quit.
614
34211963
ME
6152014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
616
617 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
618 target_read_code.
619
a52b4d3e
ME
6202014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
621
622 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
623 less than zero in conditional expression.
624
a8bdc56b
TT
6252014-07-23 Tom Tromey <tromey@redhat.com>
626
627 * make-target-delegates ($ARGS_PART): Match trailing close paren.
628 ($INTRO_PART): Don't match whitespace.
629 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
630 argument matching.
631 ($METHOD): Add $METHOD_TRAILER.
632 (trim): Rewrite.
633 (scan_target_h): New sub.
634 Change main loop not to collect state.
635 * target-delegates.c: Rebuild.
636
91b52240
GB
6372014-07-23 Gary Benson <gbenson@redhat.com>
638
639 * cp-support.c (gdb_demangle): Fix build on systems without
640 sigaltstack.
641
45326f6f
JK
6422014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
643
644 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
645 for reference entry value target data value.
646
e214cf6c
JK
6472014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
648
649 * stack.c (read_frame_arg): Verify value_optimized_out before calling
650 value_available_contents_eq.
651
bddbbedd
PA
6522014-07-22 Pedro Alves <palves@redhat.com>
653
654 * value.c (allocate_optimized_out_value): Don't mark value as
655 non-lazy.
656
45c71484
JW
6572014-07-22 Jiong Wang <jiong.wang@arm.com>
658
659 * MAINTAINERS (Write After Approval): Update my email address.
660
9597b22a
DE
6612014-07-20 Doug Evans <dje@google.com>
662
663 PR server/17147
664 * remote.c (putpkt_binary): Add text to error message.
665
91101fe5
YQ
6662014-07-20 Yao Qi <yao@codesourcery.com>
667
668 * eval.c: Remove "Chill" from comments.
669 * gdbtypes.h: Likewise.
670 * symtab.h: Likewise.
671
c9402c95
YQ
6722014-07-20 Yao Qi <yao@codesourcery.com>
673
674 * std-operator.def: Update comments to TERNOP_SLICE.
675
ae8fddda
YQ
6762014-07-20 Yao Qi <yao@codesourcery.com>
677
678 * std-operator.def: Remove BINOP_RANGE.
679 * breakpoint.c (watchpoint_exp_is_const): Update.
680 * expprint.c (dump_subexp_body_standard): Likewise.
681 * eval.c (init_array_element): Remove dead code.
682 (evaluate_subexp_standard): Likewise.
683
9c816640
YQ
6842014-07-20 Yao Qi <yao@codesourcery.com>
685
686 * std-operator.def: Remove BINOP_IN.
687 * breakpoint.c (watchpoint_exp_is_const): Update.
688 * eval.c (evaluate_subexp_standard): Likewise.
689 * expprint.c (dump_subexp_body_standard): Likewise.
690
164224e9
ME
6912014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
692
693 * microblaze-tdep.c (microblaze_register_names): Add
694 the rshr and rslr register names.
695 (microblaze_gdbarch_init): Use of tdesc_has_registers.
696 Use of tdesc_find_feature. Use of tdesc_data_alloc.
697 Use of tdesc_numbered_register. Use of
698 microblaze_register_g_packet_guesses. Use of
699 tdesc_use_registers. Use of set_gdbarch_register_type.
700 (microblaze_register_g_packet_guesses): New.
701 * microblaze-tdep.h (microblaze_reg_num): Add
702 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
703 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
704 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
705 * features/microblaze-core.xml: New file.
706 * features/microblaze-stack-protect.xml: New file.
707 * features/microblaze-with-stack-protect.c: New file.
708 * features/microblaze-with-stack-protect.xml: New file.
709 * features/microblaze.xml: New file.
710 * features/microblaze.c: New file.
711 * features/Makefile (microblaze-with-stack-protect): Add
712 microblaze-with-stack-protect microblaze and microblaze-expedite.
713 * regformats/microblaze-with-stack-protect.dat: New file.
714 * regformats/microblaze.dat: New file.
715 * doc/gdb.texinfo (MicroBlaze Features): Added.
716
e8b2341c
TT
7172014-07-18 Tom Tromey <tromey@redhat.com>
718
719 * exec.c (exec_ops): Now static.
720 * exec.h (exec_ops): Don't declare.
721
44e89118
TT
7222014-07-18 Tom Tromey <tromey@redhat.com>
723
724 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
725 to find_target_beneath.
726 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
727 find_target_beneath.
728 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
729
b0ed115f
TT
7302014-07-18 Tom Tromey <tromey@redhat.com>
731
732 PR gdb/17130:
733 * utils.c (quit): Use target_supports_terminal_ours.
734 * target.h (target_supports_terminal_ours): Declare.
735 * target.c (target_supports_delete_record): Don't check
736 to_delete_record against NULL.
737 (target_supports_terminal_ours): New function.
738
e75fdfca
TT
7392014-07-18 Tom Tromey <tromey@redhat.com>
740
741 PR gdb/17130:
742 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
743 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
744 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
745 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
746 * windows-nat.c (windows_xfer_partial): Always delegate.
747 * record-btrace.c (record_btrace_xfer_partial): Simplify
748 delegation.
749 (record_btrace_fetch_registers, record_btrace_store_registers)
750 (record_btrace_prepare_to_store, record_btrace_resume)
751 (record_btrace_wait, record_btrace_find_new_threads)
752 (record_btrace_thread_alive): Likewise.
753 * procfs.c (procfs_xfer_partial): Always delegate.
754 * corelow.c (core_xfer_partial): Always delegate.
755 * sol-thread.c (sol_find_new_threads): Simplify delegation.
756
83814951
TT
7572014-07-18 Tom Tromey <tromey@redhat.com>
758
759 * exec.c (exec_make_note_section): Move earlier.
760
b8b8facf
DE
7612014-07-17 Doug Evans <dje@google.com>
762
74b49205 763 PR gdb/17170
b8b8facf
DE
764 * maint.c (count_symtabs_and_blocks): Handle NULL
765 current_program_space.
766 (report_command_stats): Check global enabled flag in addition to
767 recorded enabled flag.
768 (make_command_stats_cleanup): Handle msg_type == 0, startup.
769
69ff6be5
PA
7702014-07-16 Pedro Alves <palves@redhat.com>
771
772 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
773
252db1b5
TT
7742014-07-16 Tom Tromey <tromey@redhat.com>
775
776 * target.h (struct target_ops) <to_delete_record>: Reformat
777 comment.
778
a432721e
TT
7792014-07-16 Tom Tromey <tromey@redhat.com>
780
781 * target-delegates.c: Rebuild.
782
487d9753
PL
7832014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
784
785 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
786 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
787 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
788 (avr_pointer_to_address): Likewise.
789 (avr_address_class_type_flags): New function.
790 (avr_address_class_type_flags_to_name): Likewise.
791 (avr_address_class_name_to_type_flags): Likewise.
792 (avr_gdbarch_init): Set address_class_type_flags,
793 address_class_type_flags_to_name and
794 address_class_name_to_type_flags.
795
57745c90
PA
7962014-07-15 Pedro Alves <palves@redhat.com>
797
798 * linux-nat.c (kill_callback): Save errno and work with saved
799 copy.
800
2d40be18
SM
8012014-07-15 Simon Marchi <simon.marchi@ericsson.com>
802
803 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
804
572f6555
EBM
8052014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
806
807 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
808 breakpoint support correctly.
809
cc1c52ad
PA
8102014-07-14 Pedro Alves <palves@redhat.com>
811
812 * utils.c (prompt_for_continue): Call target_terminal_ours.
813
1e973570
PA
8142014-07-14 Pedro Alves <palves@redhat.com>
815
816 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
817 catch_errors. Don't re-enable stdin or notify observers where,
818 and rethrow error.
819 (fetch_inferior_event_wrapper): Delete.
820
93d6eb10
PA
8212014-07-14 Pedro Alves <palves@redhat.com>
822
823 PR gdb/17072
824 * top.c: Include "inf-loop.h".
825 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
826 field.
827 (gdb_readline_wrapper_cleanup): Make the target async again, if it
828 was async before.
829 (gdb_readline_wrapper): Store whether the target is async, and
830 make it sync.
831
0017922d
PA
8322014-07-14 Pedro Alves <palves@redhat.com>
833
834 PR gdb/17072
835 * top.c (gdb_readline_wrapper_line): Tweak comment.
836 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
837 the input handler callback.
838
94696ad3
PA
8392014-07-14 Pedro Alves <palves@redhat.com>
840
841 PR gdb/17072
842 * main.c: Include event-top.h.
843 (handle_command_errors): New function.
844 (catch_command_errors, catch_command_errors_const): Use it.
845
9d1e69a2
PA
8462014-07-14 Pedro Alves <palves@redhat.com>
847
848 * exceptions.c (catch_command_errors, catch_command_errors_const):
849 Moved to main.c.
850 * exceptions.h (catch_command_errors_ftype)
851 (catch_command_errors_const_ftype): Moved to main.c.
852 (catch_command_errors, catch_command_errors_const): Delete
853 declarations.
854 * main.c (catch_command_errors_ftype)
855 (catch_command_errors_const_ftype): Moved here from exceptions.h.
856 (catch_command_errors, catch_command_errors_const)): Moved here
857 from exceptions.c and make static.
858
feefc97b
PA
8592014-07-14 Pedro Alves <palves@redhat.com>
860
861 * exceptions.c (print_any_exception): Delete.
862 (catch_exceptions_with_msg): Use exception_print instead of
863 print_any_exception.
864 (catch_errors): Use exception_fprintf instead of
865 print_any_exception.
866 (catch_command_errors, catch_command_errors_const): Use
867 exception_print instead of print_any_exception.
868
c933f875
PA
8692014-07-14 Pedro Alves <palves@redhat.com>
870
871 * infcall.c (run_inferior_call): Set 'sync_execution' while
872 running the inferior call.
873
feb6f816
PA
8742014-07-14 Pedro Alves <palves@redhat.com>
875
876 * value.c (value_contents_equal): Delete function.
877 * value.h (value_contents_equal): Delete declaration.
878
d98b7a16
TT
8792014-07-14 Tom Tromey <tromey@redhat.com>
880
881 PR exp/17106:
882 * gdbtypes.c (is_dynamic_type_internal): New function, from
883 is_dynamic_type.
884 (is_dynamic_type): Rewrite.
885 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
886 (resolve_dynamic_struct): Likewise.
887 (resolve_dynamic_type_internal): New function, from
888 resolve_dynamic_type.
889 (resolve_dynamic_type): Rewrite.
890
548740d6
TT
8912014-07-14 Tom Tromey <tromey@redhat.com>
892
893 * target.c (target_require_runnable): Also check record_stratum.
894 Update comment.
895
808f7ab1
YQ
8962014-07-11 Yao Qi <yao@codesourcery.com>
897
898 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
899 thumb_instruction_restores_sp return true.
900
540314bd
YQ
9012014-07-11 Yao Qi <yao@codesourcery.com>
902
903 * arm-tdep.c (thumb_instruction_restores_sp): New function.
904 (thumb_in_function_epilogue_p): Call
905 thumb_instruction_restores_sp.
906
1db01f22
YQ
9072014-07-11 Yao Qi <yao@codesourcery.com>
908
909 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
910 'add sp, #imm'.
911 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
912
3116063b
GB
9132014-07-11 Gary Benson <gbenson@redhat.com>
914
915 * amd64-linux-nat.c (gdbcore.h): Remove include.
916 (regset.h): Likewise.
917 (nat/linux-btrace.h): Likewise.
918 (btrace.h): Likewise.
919 (gdb_assert.h): Likewise.
920 (string.h): Likewise.
921 (sys/uio.h): Likewise.
922 (sys/debugreg.h): Likewise.
923 (sys/syscall.h): Likewise.
924 (sys/procfs.h): Likewise.
925 (sys/user.h): Likewise.
926 (asm/ptrace.h): Likewise.
927 (i386-nat.h): Likewise.
928 * i386-linux-nat.c (i386-nat.h): Likewise.
929 (regset.h): Likewise.
930 (target.h): Likewise.
931 (linux-nat.h): Likewise.
932 (nat/linux-btrace.h): Likewise.
933 (btrace.h): Likewise.
934 (gdb_assert.h): Likewise.
935 (string.h): Likewise.
936 (sys/uio.h): Likewise.
937 (sys/user.h): Likewise.
938 (sys/procfs.h): Likewise.
939 (sys/reg.h): Likewise.
940 (sys/debugreg.h): Likewise.
941 (ORIG_EAX): Remove definition.
942
040baaf6
GB
9432014-07-11 Gary Benson <gbenson@redhat.com>
944
945 * i386-linux-nat.h: New file.
946 * x86-linux-nat.h: Likewise.
947 * x86-linux-nat.c: Likewise.
948 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
949 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
950 * config/i386/linux64.mh (NATDEPFILES): Likewise.
951 * amd64-linux-nat.c (x86-linux-nat.h): New include.
952 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
953 (PTRACE_SETREGSET): Likewise.
954 (arch_lwp_info): Now in x86-linux-nat.c.
955 (have_ptrace_getregset): Now in x86-linux-nat.h.
956 (x86_linux_dr_get): Now in x86-linux-nat.c.
957 (x86_linux_dr_set): Likewise.
958 (x86_linux_dr_get_addr): Likewise.
959 (x86_linux_dr_get_control): Likewise.
960 (x86_linux_dr_get_status): Likewise.
961 (update_debug_registers_callback): Likewise.
962 (x86_linux_dr_set_control): Likewise.
963 (x86_linux_dr_set_addr): Likewise.
964 (x86_linux_prepare_to_resume): Likewise.
965 (x86_linux_new_thread): Likewise.
966 (x86_linux_new_fork): Likewise.
967 (x86_linux_get_thread_area): Likewise.
968 (super_post_startup_inferior): Likewise.
969 (x86_linux_child_post_startup_inferior): Likewise.
970 (AMD64_LINUX_USER64_CS): Likewise.
971 (AMD64_LINUX_X32_DS): Likewise.
972 (x86_linux_read_description): Likewise.
973 (x86_linux_enable_btrace): Likewise.
974 (x86_linux_disable_btrace): Likewise.
975 (x86_linux_teardown_btrace): Likewise.
976 (x86_linux_read_btrace): Likewise.
977 (x86_linux_create_target): Likewise.
978 (x86_linux_add_target): Likewise.
979 * i386-linux-nat.c (x86-linux-nat.h): New include.
980 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
981 (PTRACE_SETREGSET): Likewise.
982 (arch_lwp_info): Now in x86-linux-nat.c.
983 (have_ptrace_getregset): Now in x86-linux-nat.h.
984 (x86_linux_dr_get): Now in x86-linux-nat.c.
985 (x86_linux_dr_set): Likewise.
986 (x86_linux_dr_get_addr): Likewise.
987 (x86_linux_dr_get_control): Likewise.
988 (x86_linux_dr_get_status): Likewise.
989 (update_debug_registers_callback): Likewise.
990 (x86_linux_dr_set_control): Likewise.
991 (x86_linux_dr_set_addr): Likewise.
992 (x86_linux_prepare_to_resume): Likewise.
993 (x86_linux_new_thread): Likewise.
994 (x86_linux_new_fork): Likewise.
995 (x86_linux_get_thread_area): Likewise.
996 (super_post_startup_inferior): Likewise.
997 (x86_linux_child_post_startup_inferior): Likewise.
998 (AMD64_LINUX_USER64_CS): Likewise.
999 (AMD64_LINUX_X32_DS): Likewise.
1000 (x86_linux_read_description): Likewise.
1001 (x86_linux_enable_btrace): Likewise.
1002 (x86_linux_disable_btrace): Likewise.
1003 (x86_linux_teardown_btrace): Likewise.
1004 (x86_linux_read_btrace): Likewise.
1005 (x86_linux_create_target): Likewise.
1006 (x86_linux_add_target): Likewise.
1007
1aa7e42c
GB
10082014-07-11 Gary Benson <gbenson@redhat.com>
1009
1010 * amd64-linux-nat.c: Comment and whitespace changes.
1011 * i386-linux-nat.c: Comment and whitespace changes.
1012
c1e246a0
GB
10132014-07-11 Gary Benson <gbenson@redhat.com>
1014
1015 * amd64-linux-nat.c (x86_linux_create_target): New function.
1016 (x86_linux_add_target): Likewise.
1017 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1018 * i386-linux-nat.c (x86_linux_create_target): New function.
1019 (x86_linux_add_target): Likewise.
1020 (_initialize_i386_linux_nat): Delegate to the above new functions.
1021
8c420b8d
GB
10222014-07-11 Gary Benson <gbenson@redhat.com>
1023
1024 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1025 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1026 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1027 (ps_get_thread_area): Delegate to the above.
1028
cb1da100
GB
10292014-07-11 Gary Benson <gbenson@redhat.com>
1030
1031 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1032 x86_linux_read_description. All uses updated. amd64-specific
1033 code conditionalized. Conditionalized i386-specific code added.
1034 Redundant cast removed.
1035 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1036 x86_linux_read_description. All uses updated. i386-specific
1037 code conditionalized. Conditionalized amd64-specific code added.
1038 One sizeof replaced with the actual type it is describing.
1039
2acf3cd0
GB
10402014-07-11 Gary Benson <gbenson@redhat.com>
1041
1042 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1043 x86_linux_dr_get. All uses updated.
1044 (amd64_linux_dr_set): Renamed to
1045 x86_linux_dr_set. All uses updated.
1046 (amd64_linux_dr_get_addr): Renamed to
1047 x86_linux_dr_get_addr. All uses updated.
1048 (amd64_linux_dr_get_control): Renamed to
1049 x86_linux_dr_get_control. All uses updated.
1050 (amd64_linux_dr_get_status): Renamed to
1051 x86_linux_dr_get_status. All uses updated.
1052 (amd64_linux_dr_set_control): Renamed to
1053 x86_linux_dr_set_control. All uses updated.
1054 (amd64_linux_dr_set_addr): Renamed to
1055 x86_linux_dr_set_addr. All uses updated.
1056 (amd64_linux_prepare_to_resume): Renamed to
1057 x86_linux_prepare_to_resume. All uses updated.
1058 (amd64_linux_new_thread): Renamed to
1059 x86_linux_new_thread. All uses updated.
1060 (amd64_linux_new_fork): Renamed to
1061 x86_linux_new_fork. All uses updated.
1062 (amd64_linux_child_post_startup_inferior): Renamed to
1063 x86_linux_child_post_startup_inferior. All uses updated.
1064 (amd64_linux_enable_btrace): Renamed to
1065 x86_linux_enable_btrace. All uses updated.
1066 (amd64_linux_disable_btrace): Renamed to
1067 x86_linux_disable_btrace. All uses updated.
1068 (amd64_linux_teardown_btrace): Renamed to
1069 x86_linux_teardown_btrace. All uses updated.
1070 (amd64_linux_read_btrace): Renamed to
1071 x86_linux_read_btrace. All uses updated.
1072 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1073 x86_linux_dr_get. All uses updated.
1074 (i386_linux_dr_set): Renamed to
1075 x86_linux_dr_set. All uses updated.
1076 (i386_linux_dr_get_addr): Renamed to
1077 x86_linux_dr_get_addr. All uses updated.
1078 (i386_linux_dr_get_control): Renamed to
1079 x86_linux_dr_get_control. All uses updated.
1080 (i386_linux_dr_get_status): Renamed to
1081 x86_linux_dr_get_status. All uses updated.
1082 (i386_linux_dr_set_control): Renamed to
1083 x86_linux_dr_set_control. All uses updated.
1084 (i386_linux_dr_set_addr): Renamed to
1085 x86_linux_dr_set_addr. All uses updated.
1086 (i386_linux_prepare_to_resume): Renamed to
1087 x86_linux_prepare_to_resume. All uses updated.
1088 (i386_linux_new_thread): Renamed to
1089 x86_linux_new_thread. All uses updated.
1090 (i386_linux_new_fork): Renamed to
1091 x86_linux_new_fork. All uses updated.
1092 (i386_linux_child_post_startup_inferior): Renamed to
1093 x86_linux_child_post_startup_inferior. All uses updated.
1094 (i386_linux_enable_btrace): Renamed to
1095 x86_linux_enable_btrace. All uses updated.
1096 (i386_linux_disable_btrace): Renamed to
1097 x86_linux_disable_btrace. All uses updated.
1098 (i386_linux_teardown_btrace): Renamed to
1099 x86_linux_teardown_btrace. All uses updated.
1100 (i386_linux_read_btrace): Renamed to
1101 x86_linux_read_btrace. All uses updated.
1102
b9c1d481
AS
11032014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1104
1105 * remote.c (extended_remote_post_attach): New function.
1106 (init_extended_remote_ops): Install it as to_post_attach method.
1107
7180e04a
PA
11082014-07-09 Pedro Alves <palves@redhat.com>
1109
1110 * infcmd.c (attach_command_post_wait): Don't call
1111 target_terminal_inferior here.
1112 (attach_command): Call it here instead.
1113
9a9a7608
AB
11142014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1117 field.
1118 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1119 from varobj.c, with additional checks.
1120 (c_varobj_ops): Fill in is_path_expr_parent field.
1121 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1122 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1123 field.
1124 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1125 ops method.
1126 (varobj_default_is_path_expr_parent): New function.
1127 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1128 (varobj_default_is_path_expr_parent): Declare new function.
1129
1f267ae3
MM
11302014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1131
1132 * infcmd.c (finish_backward): Turn internal error into normal error.
1133
b2ee242b
PA
11342014-07-07 Pedro Alves <palves@redhat.com>
1135
8a869bca 1136 PR gdb/17096
b2ee242b
PA
1137 * remote.c (async_handle_remote_sigint)
1138 (async_handle_remote_sigint_twice): Call
1139 gdb_call_async_signal_handler instead of
1140 mark_async_signal_handler.
1141
38e229b2
TT
11422014-07-07 Tom Tromey <tromey@redhat.com>
1143
1144 * target-delegates.c: Rebuild.
1145 * target.c (target_info_record): Remove.
1146 * record.c (info_record_command): Unconditionally call
1147 to_info_record.
1148 * target.h (struct target_ops) <to_info_record>: Use
1149 TARGET_DEFAULT_IGNORE.
1150 (target_info_record): Remove.
1151
f0f9ff95
TT
11522014-07-07 Tom Tromey <tromey@redhat.com>
1153
1154 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1155 TARGET_DEFAULT_NORETURN.
1156 * target.c (generic_tls_error): New function.
1157 (target_translate_tls_address): Don't search target stack.
1158 * target-delegates.c: Rebuild.
1159 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1160 stack.
1161 * linux-thread-db.c (thread_db_get_thread_local_address):
1162 Unconditionally call beneath target.
1163
4a5be5ee
MK
11642014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1165
1166 * cli/cli-logging.c (pop_output_files): Assign targerr to
1167 gdb_stdtargerr.
1168
92c3b204
AB
11692014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1170
1171 * MAINTAINERS (Write After Approval): Update my email address.
1172
9b11e3a7
GB
11732014-07-02 Gary Benson <gbenson@redhat.com>
1174
1175 * proc-service.c (ps_xfer_memory): Update comment.
1176 (ps_pstop): Remove unused function.
1177 (ps_pcontinue): Likewise.
1178 (ps_lstop): Likewise.
1179 (ps_lcontinue): Likewise.
1180 (ps_lgetxregsize): Likewise.
1181 (ps_lgetxregs): Likewise.
1182 (ps_lsetxregs): Likewise.
1183 (ps_plog): Likewise.
1184 (ps_ptread): Likewise.
1185 (ps_ptwrite): Likewise.
1186
cf363f18
MW
11872014-07-01 Mark Wielaard <mjw@redhat.com>
1188
1189 * dwarf2read.c (add_array_cv_type): New function.
1190 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1191 (read_tag_volatile_type): Likewise.
1192
82ae6c8d
TT
11932014-07-01 Tom Tromey <tromey@redhat.com>
1194
1195 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1196 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1197 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1198 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1199 * command.h (cmd_cfunc_ftype): Move earlier.
1200 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1201 (add_com, add_info): Use cmd_cfunc_ftype.
1202
96142726
TT
12032014-06-30 Tom Tromey <tromey@redhat.com>
1204
1205 * symtab.c (operator_chars): Make parameters and return type
1206 const.
1207 (file_matches): Make "files" const.
1208 (struct search_symbols_data) <files>: Now const.
1209 (search_symbols): Make "regexp" and "files" parameters const.
1210 Update.
1211 (symtab_symbol_info): Remove cast.
1212 (rbreak_command): Update.
1213 * symtab.h (search_symbols): Update.
1214
b67a2c6f
YQ
12152014-06-27 Yao Qi <yao@codesourcery.com>
1216
1217 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1218 Change parameter type to 'struct thread_info *'. Caller
1219 updated.
1220 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1221 Update declaration.
1222 * dummy-frame.c (struct dummy_frame_id): New.
1223 (dummy_frame_id_eq): New function.
1224 (struct dummy_frame) <id>: Change its type to 'struct
1225 dummy_frame_id'.
1226 (dummy_frame_push): Add parameter ptid and save it in
1227 dummy_frame_id.
1228 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1229 inferior_ptid.
1230 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1231 to inferior_ptid.
1232 (lookup_dummy_frame): Change parameter type to 'struct
1233 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1234 instead of frame_id_eq.
1235 (dummy_frame_pop): Add parameter ptid. Callers updated.
1236 Update comments. Compose dummy_frame_id and pass it to
1237 lookup_dummy_frame.
1238 (dummy_frame_discard): Add parameter ptid.
1239 (dummy_frame_sniffer): Compose dummy_frame_id and call
1240 dummy_frame_id_eq instead of frame_id_eq.
1241 (fprint_dummy_frames): Print ptid.
1242 * dummy-frame.h: Remove comments.
1243 (dummy_frame_push): Add ptid in declaration.
1244 (dummy_frame_pop, dummy_frame_discard): Likewise.
1245
5b10184c
TT
12462014-06-26 Tom Tromey <tromey@redhat.com>
1247
1248 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1249 * command.h (error_no_arg): Update.
1250
06900326
TT
12512014-06-26 Tom Tromey <tromey@redhat.com>
1252
1253 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1254 (do_show_command): Make "arg" const.
1255 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1256
c2bcbb1d
TT
12572014-06-26 Tom Tromey <tromey@redhat.com>
1258
1259 * record-full.c (record_full_get_bookmark): Make "args" const.
1260 (record_full_goto_bookmark): Make "raw_bookmark" const.
1261 * record.c (record_goto): New function.
1262 (cmd_record_goto): Use it. Now static.
1263 * record.h (record_goto): Declare.
1264 (cmd_record_goto): Remove declaration.
1265 * target-delegates.c: Rebuild.
1266 * target.h (struct target_ops) <to_get_bookmark,
1267 to_goto_bookmark>: Make parameter const.
1268
9cbe5fff
TT
12692014-06-26 Tom Tromey <tromey@redhat.com>
1270
1271 * defs.h (generic_load): Update.
1272 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1273 * monitor.c (monitor_load): Make "args" const.
1274 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1275 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1276 const.
1277 (mips_load): Make "file" const.
1278 * remote-sim.c (gdbsim_load): Make "args" const.
1279 * remote.c (remote_load): Make "name" const.
1280 * symfile.c (generic_load): Make "args" const.
1281 * target-delegates.c: Rebuild.
1282 * target.c (target_load): Make "arg" const.
1283 (debug_to_load): Make "args" const.
1284 * target.h (struct target_ops) <to_load>: Make parameter const.
1285 (target_load): Update.
1286
34a68019
TT
12872014-06-26 Tom Tromey <tromey@redhat.com>
1288
1289 PR symtab/16902:
1290 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1291 (dwarf2_physname, read_partial_die)
1292 (guess_partial_die_structure_name, fixup_partial_die)
1293 (guess_full_die_structure_name, anonymous_struct_prefix)
1294 (dwarf2_name): Use per-BFD obstack.
1295
efc889c1
YQ
12962014-06-26 Yao Qi <yao@codesourcery.com>
1297
1298 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1299 dummyframe and this_id into inner block below.
1300
4395285e
YQ
13012014-06-26 Yao Qi <yao@codesourcery.com>
1302
1303 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1304 with "signal_pass[0]" in the initialization of signal_pass.
1305
aef92902
MM
13062014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1307
1308 * record-btrace.c (record_btrace_generating_corefile)
1309 (record_btrace_prepare_to_generate_core)
1310 (record_btrace_done_generating_core): New.
1311 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1312 (record_btrace_store_registers, record_btrace_prepare_to_store):
1313 Forward request when generating a core file.
1314 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1315 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1316 to_done_generating_core.
1317
5fff78c4
MM
13182014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1319
1320 * target.h (target_ops) <to_prepare_to_generate_core>
1321 <to_done_generating_core>: New.
1322 (target_prepare_to_generate_core, target_done_generating_core): New.
1323 * target.c (target_prepare_to_generate_core)
1324 (target_done_generating_core): New.
1325 * target-delegates.c: Regenerate.
1326 * gcore.c: (write_gcore_file): Rename to ...
1327 (write_gcore_file_1): ...this.
1328 (write_gcore_file): Call target_prepare_to_generate_core
1329 and target_done_generating_core.
1330
1d1f1ccb
MM
13312014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1332
1333 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1334 * gcore.c (write_gcore_file): Free memory returned from
1335 make_corefile_notes.
1336 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1337 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1338
3343ef86
YQ
13392014-06-24 Yao Qi <yao@codesourcery.com>
1340
1341 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1342 (arm_linux_init_abi): Set skip_trampoline_code with
1343 gdbarch_skip_trampoline_code instead of
1344 find_solib_trampoline_target.
1345
18d18ac8
YQ
13462014-06-24 Yao Qi <yao@codesourcery.com>
1347
1348 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1349 arm_skip_bx_reg returns non-zero.
1350
80d8d390
YQ
13512014-06-24 Yao Qi <yao@codesourcery.com>
1352
1353 * arm-tdep.c (arm_skip_bx_reg): New function.
1354 (arm_skip_stub): Call arm_skip_bx_reg.
1355
6a18a01c
DB
13562014-06-23 Don Breazeal <donb@codesourcery.com>
1357
1358 * MAINTAINERS: Add myself as write-after-approval maintainer.
1359
8e9db26e
PA
13602014-06-23 Pedro Alves <palves@redhat.com>
1361
1362 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1363 DR_CONTROL before setting DR0..DR3.
1364 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1365 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1366 bits of DR_CONTROL related to the debug register slot being
1367 disabled. If all slots are vacant, clear local slowdown as well,
1368 and assert DR_CONTROL is 0.
1369
70afc5b7
SC
13702014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1371
1372 * python/lib/gdb/command/xmethods.py
1373 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1374 current progspace only if the string "progspace" matches LOCUS_RE.
1375
840ed64d
JK
13762014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1377
1378 Fix --with-system-readline with readline-6.3 patch 5.
1379 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1380 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1381 types.
1382
26f2dc30
TT
13832014-06-20 Tom Tromey <tromey@redhat.com>
1384
1385 * dwarf2read.c (dw2_get_real_path): Use correct type in
1386 OBSTACK_CALLOC.
1387 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1388
125f8a3d
GB
13892014-06-20 Gary Benson <gbenson@redhat.com>
1390
1391 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1392 * common/glibc_thread_db.h: Likewise.
1393 * common/i386-cpuid.h: Likewise.
1394 * common/i386-gcc-cpuid.h: Likewise.
1395 * common/linux-btrace.h: Likewise.
1396 * common/linux-osdata.h: Likewise.
1397 * common/linux-procfs.h: Likewise.
1398 * common/linux-ptrace.h: Likewise.
1399 * common/mips-linux-watch.h: Likewise.
1400 * common/linux-btrace.c: Moved to nat.
1401 * common/linux-osdata.c: Likewise.
1402 * common/linux-procfs.c: Likewise.
1403 * common/linux-ptrace.c: Likewise.
1404 * common/mips-linux-watch.c: Likewise.
1405 * nat/gdb_thread_db.h: Moved from common.
1406 * nat/glibc_thread_db.h: Likewise.
1407 * nat/i386-cpuid.h: Likewise.
1408 * nat/i386-gcc-cpuid.h: Likewise.
1409 * nat/linux-btrace.c: Likewise.
1410 * nat/linux-btrace.h: Likewise.
1411 * nat/linux-osdata.c: Likewise.
1412 * nat/linux-osdata.h: Likewise.
1413 * nat/linux-procfs.c: Likewise.
1414 * nat/linux-procfs.h: Likewise.
1415 * nat/linux-ptrace.c: Likewise.
1416 * nat/linux-ptrace.h: Likewise.
1417 * nat/mips-linux-watch.c: Likewise.
1418 * nat/mips-linux-watch.h: Likewise.
1419 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1420 (object file files): Reordered.
1421 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1422 of glibc_thread_db.h.
1423
42995dbd
GB
14242014-06-20 Gary Benson <gbenson@redhat.com>
1425
1426 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1427 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1428 (i386_dr_low): Likewise.
1429 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1430 (i386_dr_low_set_addr): Likewise.
1431 (i386_dr_low_get_addr): Likewise.
1432 (i386_dr_low_can_set_control): Likewise.
1433 (i386_dr_low_set_control): Likewise.
1434 (i386_dr_low_get_control): Likewise.
1435 (i386_dr_low_get_status): Likewise.
1436 (i386_get_debug_register_length): Likewise.
1437 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1438 (i386_dr_low): Likewise.
1439 * nat/i386-dregs.c (i386-low.h): Remove include.
1440 (i386-nat.h): Likewise.
1441 (nat/i386-dregs.h): New include.
1442 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1443 (i386_dr_low_set_addr): Likewise.
1444 (i386_dr_low_get_addr): Likewise.
1445 (i386_dr_low_can_set_control): Likewise.
1446 (i386_dr_low_set_control): Likewise.
1447 (i386_dr_low_get_control): Likewise.
1448 (i386_dr_low_get_status): Likewise.
1449 (i386_get_debug_register_length): Likewise.
1450 (debug_hw_points): Likewise.
1451
3ed9baed
IB
14522014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1453
1454 * Makefile.in (SFILES): Add d-exp.y.
1455 (YYFILES): Add d-exp.c.
1456 (YYOBJ): Add d-exp.o.
1457 (local-maintainer-clean): Delete d-exp.c.
1458 * d-exp.y: New file.
1459 * d-lang.h (d_parse): New declaration.
1460 (d_error): New declaration.
1461 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1462 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1463 PREC_ORDER operators.
1464 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1465
78c164b0
YQ
14662014-06-19 Yao Qi <yao@codesourcery.com>
1467
1468 * gdbthread.h (any_running): Remove the declaration.
1469 * thread.c (any_running): Remove.
1470
f6e29b6e
YQ
14712014-06-19 Yao Qi <yao@codesourcery.com>
1472
1473 * gdbthread.h (struct thread_info) <state>: Change its type to
1474 'enum thread_state'. Update comments.
1475
034f788c
PA
14762014-06-19 Pedro Alves <palves@redhat.com>
1477
1478 * gdbthread.h (ALL_THREADS): Delete.
1479 (ALL_NON_EXITED_THREADS): New macro.
1480 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1481 instead of ALL_THREADS.
1482 * infrun.c (find_thread_needs_step_over)
1483 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1484 instead of ALL_THREADS.
1485 * record-btrace.c (record_btrace_open)
1486 (record_btrace_stop_recording, record_btrace_close)
1487 (record_btrace_is_replaying, record_btrace_resume)
1488 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1489 * remote.c (append_pending_thread_resumptions): Likewise.
1490 * thread.c (thread_apply_all_command): Likewise.
1491
46e33252
GB
14922014-06-19 Gary Benson <gbenson@redhat.com>
1493
1494 * i386-nat.c (i386_stopped_by_watchpoint):
1495 Use i386_dr_stopped_by_watchpoint.
1496 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1497 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1498
3a8ee006
GB
14992014-06-19 Gary Benson <gbenson@redhat.com>
1500
1501 * nat/i386-dregs.c: New file.
1502 * Makefile.in (i386-dregs.o): New rule.
1503 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1504 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1505 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1506 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1507 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1508 * config/i386/go32.mh (NATDEPFILES): Likewise.
1509 * config/i386/linux.mh (NATDEPFILES): Likewise.
1510 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1511 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1512 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1513 * i386-nat.h (debug_hw_points): New declaration.
1514 * i386-nat.c (breakpoint.h): Remove include.
1515 (command.h): Likewise.
1516 (target.h): Likewise.
1517 (gdb_assert.h): Likewise.
1518 (debug_hw_points): Made nonstatic.
1519 (debug_printf): Now in i386-dregs.c.
1520 (TARGET_HAS_DR_LEN_8): Likewise.
1521 (DR_CONTROL_SHIFT): Likewise.
1522 (DR_CONTROL_SIZE): Likewise.
1523 (DR_RW_EXECUTE): Likewise.
1524 (DR_RW_WRITE): Likewise.
1525 (DR_RW_READ): Likewise.
1526 (DR_RW_IORW): Likewise.
1527 (DR_LEN_1): Likewise.
1528 (DR_LEN_2): Likewise.
1529 (DR_LEN_4): Likewise.
1530 (DR_LEN_8): Likewise.
1531 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1532 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1533 (DR_ENABLE_SIZE): Likewise.
1534 (DR_LOCAL_SLOWDOWN): Likewise.
1535 (DR_GLOBAL_SLOWDOWN): Likewise.
1536 (DR_CONTROL_RESERVED): Likewise.
1537 (I386_DR_CONTROL_MASK): Likewise.
1538 (I386_DR_VACANT): Likewise.
1539 (I386_DR_LOCAL_ENABLE): Likewise.
1540 (I386_DR_GLOBAL_ENABLE): Likewise.
1541 (I386_DR_DISABLE): Likewise.
1542 (I386_DR_SET_RW_LEN): Likewise.
1543 (I386_DR_GET_RW_LEN): Likewise.
1544 (I386_DR_WATCH_HIT): Likewise.
1545 (i386_wp_op_t): Likewise.
1546 (i386_show_dr): Likewise.
1547 (i386_length_and_rw_bits): Likewise.
1548 (i386_insert_aligned_watchpoint): Likewise.
1549 (i386_remove_aligned_watchpoint): Likewise.
1550 (i386_handle_nonaligned_watchpoint): Likewise.
1551 (i386_update_inferior_debug_regs): Likewise.
1552 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1553 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1554 (i386_region_ok_for_watchpoint):
1555 Use i386_dr_region_ok_for_watchpoint.
1556 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1557
322a8e06
GB
15582014-06-19 Gary Benson <gbenson@redhat.com>
1559
1560 * i386-nat.c (i386_insert_hw_breakpoint): Use
1561 i386_insert_watchpoint.
1562 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1563
8f26655c
GB
15642014-06-19 Gary Benson <gbenson@redhat.com>
1565
1566 * i386-nat.c (i386_dr_show): Renamed to
1567 i386_show_dr and made static. All uses updated.
1568 (i386_dr_length_and_rw_bits): Renamed to
1569 i386_length_and_rw_bits and made static.
1570 All uses updated.
1571 (i386_dr_insert_aligned_watchpoint): Renamed to
1572 i386_insert_aligned_watchpoint and made static.
1573 All uses updated.
1574 (i386_dr_remove_aligned_watchpoint): Renamed to
1575 i386_remove_aligned_watchpoint and made static.
1576 All uses updated.
1577 (i386_dr_update_inferior_debug_regs): Renamed to
1578 i386_update_inferior_debug_regs and made static.
1579 All uses updated.
1580 * nat/i386-dregs.h (i386_dr_show): Removed.
1581 (i386_dr_length_and_rw_bits): Likewise.
1582 (i386_dr_insert_aligned_watchpoint): Likewise.
1583 (i386_dr_remove_aligned_watchpoint): Likewise.
1584 (i386_dr_update_inferior_debug_regs): Likewise.
1585
992c7d70
GB
15862014-06-19 Gary Benson <gbenson@redhat.com>
1587
1588 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1589 * configure: Regenerate.
1590 * config.in: Likewise.
1591 * main.c (signal.h): New include.
1592 (setup_alternate_signal_stack): New function.
1593 (captured_main): Call the above.
1594 * cp-support.c (signal.h): New include.
1595 (catch_demangler_crashes): New flag.
1596 (SIGJMP_BUF): New define.
1597 (SIGSETJMP): Likewise.
1598 (SIGLONGJMP): Likewise.
1599 (gdb_demangle_jmp_buf): New static global.
1600 (gdb_demangle_attempt_core_dump): Likewise.
1601 (gdb_demangle_signal_handler): New function.
1602 (gdb_demangle): If catch_demangler_crashes is set, install the
1603 above signal handler before calling bfd_demangle, and restore
1604 the original signal handler afterwards. Display the offending
1605 symbol and call demangler_warning the first time a segmentation
1606 fault is caught.
1607 (_initialize_cp_support): New maint set/show command.
1608
eae7090b
GB
16092014-06-19 Gary Benson <gbenson@redhat.com>
1610
1611 * utils.h (resource_limit_kind): New enum.
1612 (can_dump_core): New declaration.
1613 (warn_cant_dump_core): Likewise.
1614 (dump_core): Likewise.
1615 * utils.c (dump_core): Made nonstatic. Added new
1616 parameter "limit_kind".
1617 (can_dump_core): Made nonstatic. Moved printing code to...
1618 (warn_cant_dump_core): New function.
1619 (can_dump_core_warn): Likewise.
1620 (internal_vproblem): Replace calls to can_dump_core with
1621 calls to can_dump_core_warn. Supply new argument to each.
1622
57fcfb1b
GB
16232014-06-19 Gary Benson <gbenson@redhat.com>
1624
1625 * utils.h (demangler_vwarning): New declaration.
1626 (demangler_warning): Likewise.
1627 * utils.c (struct internal_problem)
1628 <user_settable_should_quit>: New field.
1629 <user_settable_should_dump_core>: Likewise
1630 (internal_error_problem): Add values for above new fields.
1631 (internal_warning_problem): Likewise.
1632 (demangler_warning_problem): New static global.
1633 (demangler_vwarning): New function.
1634 (demangler_warning): Likewise.
1635 (add_internal_problem_command): Selectively add commands.
1636 (_initialize_utils): New internal problem command.
1637 * maint.c (maintenance_demangler_warning): New function.
1638 (_initialize_maint_cmds): New command.
1639
17a40b44
TT
16402014-06-18 Tom Tromey <tromey@redhat.com>
1641
1642 * f-valprint.c (info_common_command_for_block): Update.
1643 * symtab.h (struct general_symbol_info) <common_block>: Now
1644 const.
1645
346d1dfe
TT
16462014-06-18 Tom Tromey <tromey@redhat.com>
1647
1648 * symtab.h (struct symtab) <blockvector>: Now const.
1649 * ada-lang.c (ada_add_global_exceptions): Update.
1650 * buildsym.c (augment_type_symtab): Update.
1651 * dwarf2read.c (dw2_lookup_symbol): Update.
1652 * jit.c (finalize_symtab): Update.
1653 * jv-lang.c (add_class_symtab_symbol): Update.
1654 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1655 Update.
1656 * objfiles.c (objfile_relocate1): Update.
1657 * psymtab.c (lookup_symbol_aux_psymtabs)
1658 (maintenance_check_psymtabs): Update.
1659 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1660 Update.
1661 * spu-tdep.c (spu_catch_start): Update.
1662 * symmisc.c (dump_symtab_1): Update.
1663 * symtab.c (lookup_global_symbol_from_objfile)
1664 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1665 (basic_lookup_transparent_type_quick)
1666 (basic_lookup_transparent_type, find_pc_sect_symtab)
1667 (find_pc_sect_line, search_symbols): Update.
1668 * block.c (find_block_in_blockvector): Make "bl" const.
1669 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1670 const.
1671 (blockvector_contains_pc): Make "bv" const.
1672 (block_for_pc_sect): Update.
1673 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1674 (blockvector_contains_pc): Update.
1675 * breakpoint.c (resolve_sal_pc): Update.
1676 * inline-frame.c (block_starting_point_at): Update.
1677
1834676b
TT
16782014-06-18 Tom Tromey <tromey@redhat.com>
1679
1680 * completer.c (complete_line): Make "line_buffer" const.
1681 * completer.h (complete_line): Update.
1682
ac1a991b
TT
16832014-06-18 Tom Tromey <tromey@redhat.com>
1684
1685 * symtab.c (add_macro_name): Remove unneeded cast.
1686
5bc98e52
TT
16872014-06-18 Tom Tromey <tromey@redhat.com>
1688
1689 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1690 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1691
8236def8
TT
16922014-06-18 Tom Tromey <tromey@redhat.com>
1693
1694 * probe.c (info_probes_for_ops): Make "arg" const.
1695 * probe.h (info_probes_for_ops): Update.
1696
3977b71f
TT
16972014-06-18 Tom Tromey <tromey@redhat.com>
1698
1699 * varobj.c (varobj_create): Update.
1700 * valops.c (value_of_this): Update.
1701 * tracepoint.c (add_local_symbols, scope_info): Update.
1702 * symtab.h (struct general_symbol_info) <block>: Now const.
1703 * symtab.c (skip_prologue_sal)
1704 (default_make_symbol_completion_list_break_on)
1705 (skip_prologue_using_sal): Update.
1706 * stack.h (iterate_over_block_locals)
1707 (iterate_over_block_local_vars): Update.
1708 * stack.c (print_frame_args): Update.
1709 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1710 parameter const.
1711 (get_selected_block): Make return type const.
1712 * python/py-frame.c (frapy_block): Update.
1713 * python/py-block.c (gdbpy_block_for_pc): Update.
1714 * p-exp.y (%union) <bval>: Now const.
1715 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1716 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1717 * m2-exp.y (%union) <bval>: Now const.
1718 * linespec.c (get_current_search_block): Make return type const.
1719 (create_sals_line_offset, find_label_symbols): Update.
1720 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1721 Update.
1722 (block_starting_point_at): Make "block" const.
1723 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1724 (check_exception_resume): Update.
1725 * guile/scm-frame.c (gdbscm_frame_block): Update.
1726 * guile/scm-block.c (gdbscm_lookup_block): Update.
1727 * frame.h (get_frame_block): Update.
1728 (get_selected_block): Make return type const.
1729 * frame.c (frame_id_inner): Update.
1730 * f-valprint.c (info_common_command_for_block)
1731 (info_common_command): Update.
1732 * dwarf2loc.c (dwarf2_find_location_expression)
1733 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1734 (locexpr_describe_location_piece): Update.
1735 * c-exp.y (%union) <bval>: Now const.
1736 * breakpoint.c (resolve_sal_pc): Update.
1737 * blockframe.c (get_frame_block):Make return type const.
1738 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1739 (block_innermost_frame): Update.
1740 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1741 (block_for_pc, block_for_pc_sect): Update.
1742 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1743 'pblock' const.
1744 (block_for_pc_sect, block_for_pc): Make return type const.
1745 * ax-gdb.c (gen_expr): Update.
1746 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1747 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1748 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1749 (ada_read_var_value): Update.
1750 * ada-exp.y (struct name_info) <block>: Now const.
1751 (%union): Likewise.
1752 (block_lookup): Constify.
1753
b9228891
GB
17542014-06-18 Gary Benson <gbenson@redhat.com>
1755
1756 * nat/i386-dregs.h: New file.
1757 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1758 * i386-nat.h (i386-dregs.h): New include.
1759 (DR_FIRSTADDR): Now in i386-dregs.h.
1760 (DR_LASTADDR): Likewise.
1761 (DR_NADDR): Likewise.
1762 (DR_STATUS): Likewise.
1763 (DR_CONTROL): Likewise.
1764 (i386_debug_reg_state): Likewise.
1765 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1766
a1aa2221
LM
17672014-06-18 Don Breazeal <donb@codesourcery.com>
1768
1769 * breakpoint.c (set_longjmp_breakpoint): Call
1770 momentary_breakpoint_from_master with additional argument.
1771 (set_longjmp_breakpoint_for_call_dummy): Call
1772 momentary_breakpoint_from_master with additional argument.
1773 (set_std_terminate_breakpoint): Call
1774 momentary_breakpoint_from_master with additional argument.
1775 (momentary_breakpoint_from_master): Add argument to function
1776 definition and use it to initialize structure member flag.
74228e77 1777 (clone_momentary_breakpoint): Call
a1aa2221
LM
1778 momentary_breakpoint_from_master with additional argument.
1779 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1780 member flags set in momentary_breakpoint_from_master.
1781
4be83cc2
GB
17822014-06-18 Gary Benson <gbenson@redhat.com>
1783
1784 * i386-nat.c (i386_show_dr): Renamed to
1785 i386_dr_show and made nonstatic. All uses updated.
1786 (i386_length_and_rw_bits): Renamed to
1787 i386_dr_length_and_rw_bits and made nonstatic.
1788 All uses updated.
1789 (i386_insert_aligned_watchpoint): Renamed to
1790 i386_dr_insert_aligned_watchpoint and made nonstatic.
1791 All uses updated.
1792 (i386_remove_aligned_watchpoint): Renamed to
1793 i386_dr_remove_aligned_watchpoint and made nonstatic.
1794 All uses updated.
1795 (i386_update_inferior_debug_regs): Renamed to
1796 i386_dr_update_inferior_debug_regs and made nonstatic.
1797 All uses updated.
1798
131aa0d4
GB
17992014-06-18 Gary Benson <gbenson@redhat.com>
1800
1801 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1802 (i386_dr_low_can_set_control): Likewise.
1803 (i386_dr_low_set_addr): Likewise.
1804 (i386_dr_low_set_control): Likewise.
1805 (i386_dr_low_get_addr): Likewise.
1806 (i386_dr_low_get_status): Likewise.
1807 (i386_dr_low_get_control): Likewise.
1808 (i386_insert_aligned_watchpoint): Use new macros.
1809 (i386_update_inferior_debug_regs): Likewise.
1810 (i386_stopped_data_address): Likewise.
1811
d9305f7f
GB
18122014-06-18 Gary Benson <gbenson@redhat.com>
1813
1814 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1815 New parameter. All uses updated.
1816
ea008da4
GB
18172014-06-18 Gary Benson <gbenson@redhat.com>
1818
1819 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1820 All uses updated.
1821
1b6d4134
GB
18222014-06-18 Gary Benson <gbenson@redhat.com>
1823
1824 * i386-nat.c (debug_printf): New macro.
1825 (i386_get_debug_register_length): Likewise.
1826 (TARGET_HAS_DR_LEN_8): Use above macro.
1827 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1828 and printf_unfiltered. Use phex to format values.
1829
9b4550ef
GB
18302014-06-18 Gary Benson <gbenson@redhat.com>
1831
1832 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1833 Make const.
1834
6e62758f
GB
18352014-06-18 Gary Benson <gbenson@redhat.com>
1836
1837 * i386-nat.c: Comment changes.
1838
51c79e94
GB
18392014-06-18 Gary Benson <gbenson@redhat.com>
1840
1841 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1842
3e11889a
GB
18432014-06-18 Gary Benson <gbenson@redhat.com>
1844
1845 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1846 (i386_insert_aligned_watchpoint): Likewise.
1847 (i386_remove_aligned_watchpoint): Likewise.
1848 (i386_handle_nonaligned_watchpoint): Likewise.
1849
fc6e2f03
GB
18502014-06-18 Gary Benson <gbenson@redhat.com>
1851
1852 * i386-nat.c: Whitespace changes.
1853
2afe7d50
SB
18542014-06-17 Samuel Bronson <naesten@gmail.com>
1855
1856 * MAINTAINERS: Update Roland McGrath's email address.
1857 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 1858 Red Hat a while ago, and giving me a current address.
2afe7d50 1859
3bca49ee
TT
18602014-06-17 Tom Tromey <tromey@redhat.com>
1861
1862 * utils.h (savestring): Remove declaration.
1863
6e366df1
TT
18642014-06-17 Tom Tromey <tromey@redhat.com>
1865
1866 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1867
6be47f0c
KS
18682014-06-16 Keith Seitz <keiths@redhat.com>
1869
1870 PR mi/15863
1871 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1872 to update the varobj if inferior_ptid is null_ptid.
1873
7bc112c1
TT
18742014-06-16 Tom Tromey <tromey@redhat.com>
1875
1876 * target.h (struct target_ops) <to_info_proc>: Make parameter
1877 const.
1878 (target_info_proc): Update.
1879 * target.c (target_info_proc): Make "args" const.
1880 * procfs.c (procfs_info_proc): Update.
1881 * linux-tdep.c (linux_info_proc): Update.
1882 (linux_core_info_proc_mappings): Make "args" const.
1883 (linux_core_info_proc): Update.
1884 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1885 * gdbarch.c: Rebuild.
1886 * gdbarch.h: Rebuild.
1887 * corelow.c (core_info_proc): Update.
1888
fee354ee
TT
18892014-06-16 Tom Tromey <tromey@redhat.com>
1890
1891 * target.h (struct target_ops) <to_disconnect>: Make parameter
1892 const.
1893 (target_disconnect): Update.
1894 * target.c (target_disconnect): Make "args" const.
1895 * target-delegates.c: Rebuild.
1896 * remote.c (remote_disconnect): Update.
1897 * record.h (record_disconnect): Update.
1898 * record.c (record_disconnect): Update.
1899 * inf-child.c (inf_child_disconnect): Update.
1900
a30bf1f1
TT
19012014-06-16 Tom Tromey <tromey@redhat.com>
1902
1903 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1904 * target.c (debug_to_rcmd, default_rcmd): Update.
1905 * target-delegates.c: Rebuild.
1906 * remote.c (remote_rcmd): Update.
1907 * monitor.c (monitor_rcmd): Update.
1908
d03de421
PA
19092014-06-16 Pedro Alves <palves@redhat.com>
1910
1911 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1912 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1913 have OBJF_SHARED set.
1914 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1915 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1916 instead of OBJF_USERLOADED.
1917 * objfiles.h (OBJF_SHARED): Update comment.
1918 (userloaded_objfile_contains_address_p): Rename to ...
1919 (shared_objfile_contains_address_p): ... this, and update
1920 comments.
1921 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1922 new objfile.
1923 (remove_symbol_file_command): Skip objfiles that don't have
1924 OBJF_SHARED set.
1925
99f4262f
TT
19262014-06-16 Tom Tromey <tromey@redhat.com>
1927
1928 * minsyms.h (prim_record_minimal_symbol)
1929 (prim_record_minimal_symbol_and_info): Update comments.
1930
97d66cc6
EZ
19312014-06-14 Eli Zaretskii <eliz@gnu.org>
1932
1933 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1934 or --without-guile, according to how GDB was built.
1935
635c7e8a
TT
19362014-06-13 Tom Tromey <tromey@redhat.com>
1937
1938 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1939 to help_list.
1940 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1941 to help_list.
1942 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1943 help_list.
1944 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1945 help_list.Pass all_commands, not -1, to help_list.
1946 * cli/cli-dump.c (dump_command, append_command)
1947 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1948 (binary_dump_command, binary_append_command): Pass all_commands,
1949 not -1, to help_list.
1950 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1951 -1, to help_list.
1952 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1953 -1, to help_list.
1954 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1955 help_list.
1956 * top.c (set_history): Pass all_commands, not -1, to help_list.
1957 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1958 all_commands, not -1, to help_list.
1959 * symfile.c (overlay_command): Pass all_commands, not -1, to
1960 help_list.
1961 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1962 help_list.
1963 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1964 help_list.
1965 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1966 -1, to help_list.
1967 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1968 not -1, to help_list.
1969 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1970 not -1, to help_list.
1971 * maint.c (maintenance_command, maintenance_info_command)
1972 (maintenance_print_command, maintenance_set_cmd): Pass
1973 all_commands, not -1, to help_list.
1974 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1975 help_list.
1976 * language.c (set_check): Pass all_commands, not -1, to help_list.
1977 * infcmd.c (unset_command): Pass all_commands, not -1, to
1978 help_list.
1979 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1980 help_list.
1981 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1982 help_list.
1983 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1984 help_list.
1985 * breakpoint.c (save_command): Pass all_commands, not -1, to
1986 help_list.
1987 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1988 all_commands, not -1, to help_list.
1989
b94ade42
PL
19902014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1991
1992 * regcache.c (struct register_to_invalidate): New structure.
1993 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1994 functions.
1995 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1996
31f628ae
YQ
19972014-06-12 Yao Qi <yao@codesourcery.com>
1998
1999 * varobj.c (varobj_get_num_children): Call
2000 varobj_is_dynamic_p.
2001 (varobj_list_children): Likewise.
2002 (varobj_update): Likewise. Update comments.
2003
cde5ef40
YQ
20042014-06-12 Yao Qi <yao@codesourcery.com>
2005
2006 * varobj.c (varobj_pretty_printed_p): Rename to ...
2007 (varobj_is_dynamic_p): ... this. New function.
2008 * varobj.h (varobj_pretty_printed_p): Remove declaration.
2009 (varobj_is_dynamic_p): Declare.
2010 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2011 (mi_print_value_p, varobj_update_one): Likewise.
2012
576ea091
YQ
20132014-06-12 Pedro Alves <pedro@codesourcery.com>
2014 Yao Qi <yao@codesourcery.com>
2015
2016 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2017 (varobj_get_iterator): Wrap up code for pretty-printer by
2018 "#if HAVE_PYTHON" and "#endif".
2019 (update_dynamic_varobj_children): Likewise.
2020
827f100c
YQ
20212014-06-12 Pedro Alves <pedro@codesourcery.com>
2022 Yao Qi <yao@codesourcery.com>
2023
2024 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2025 gdb_python_initialized is false. Move some code from varobj.c.
2026 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2027 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2028 (struct varobj_item): Moved to varobj-iter.h".
2029 (varobj_clear_saved_item): New function.
2030 (update_dynamic_varobj_children): Move python-related code to
2031 py-varobj.c.
2032 (free_variable): Call varobj_clear_saved_item and
2033 varobj_iter_delete.
2034
e5250216
YQ
20352014-06-12 Pedro Alves <pedro@codesourcery.com>
2036 Yao Qi <yao@codesourcery.com>
2037
2038 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2039 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2040 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2041 (py-varobj.o): New rule.
2042 * python/py-varobj.c: New file.
2043 * python/python-internal.h (py_varobj_get_iterator): Declare.
2044 * varobj-iter.h: New file.
2045 * varobj.c: Include "varobj-iter.h"
2046 (struct varobj) <child_iter>: Change its type from "PyObject *"
2047 to "struct varobj_iter *".
2048 <saved_item>: Likewise.
2049 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2050 [HAVE_PYTHON] (varobj_get_iterator): New function.
2051 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2052 python-specific code to python/py-varobj.c.
2053 (install_visualizer): Call varobj_iter_delete instead of
2054 Py_XDECREF.
2055 * varobj.h (varobj_ensure_python_env): Declare.
2056
5a2e0d6e
YQ
20572014-06-12 Yao Qi <yao@codesourcery.com>
2058
2059 * varobj.c (struct varobj_item): New structure.
2060 (create_child_with_value): Update declaration.
2061 (varobj_add_child): Replace arguments 'name' and 'value' with
2062 'item'. All callers updated.
2063 (install_dynamic_child): Likewise.
2064 (update_dynamic_varobj_children): Likewise.
2065 (varobj_add_child): Likewise.
2066 (create_child_with_value): Likewise.
2067
919b9a93
JB
20682014-06-11 Joel Brobecker <brobecker@adacore.com>
2069
2070 * NEWS: Create a new section for the next release branch.
2071 Rename the section of the current branch, now that it has
2072 been cut.
2073
71a55bdf
JB
20742014-06-11 Joel Brobecker <brobecker@adacore.com>
2075
2076 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2077 * version.in: Bump version to 7.8.50.DATE-cvs.
2078
364fe1f7
PA
20792014-06-11 Pedro Alves <palves@redhat.com>
2080
2081 PR remote/17028
2082 * ser-mingw.c (net_windows_socket_check_pending): New function.
2083 (net_windows_select_thread): Ignore spurious wakeups. Use
2084 net_windows_socket_check_pending.
2085 (net_windows_wait_handle): Check for pending events with
2086 ioctlsocket, through net_windows_socket_check_pending, instead of
2087 checking the socket's event.
2088
5a6c7709
SC
20892014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2090
2091 * python/python-internal.h (gdb_PyObject_GetAttrString)
2092 (gdb_PyObject_HasAttrString): New inline function definitions.
2093 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2094 char * of the second argument to PyObject_GetAttrString.
74228e77 2095
0e58ee40
JB
20962014-06-10 Joel Brobecker <brobecker@adacore.com>
2097
2098 * serial.c (serial_write): Fix index of character to be printed
2099 in call to serial_logchar when serial debug traces are enabled.
2100
d190df30
JB
21012014-06-10 Joel Brobecker <brobecker@adacore.com>
2102
2103 * gdbtypes (resolve_dynamic_range): Add function description.
2104
b4b01d36
PA
21052014-06-09 Pedro Alves <palves@redhat.com>
2106
2107 * linux-nat.c (linux_child_follow_fork): Initialize status with
2108 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2109 inner block. Only pass the signal to PTRACE_DETACH if in pass
2110 state.
2111
3657956b
GB
21122014-06-09 Gary Benson <gbenson@redhat.com>
2113
2114 * common/signals.c (gdb_signal_from_host): Reorder to separate
2115 the always-available ANSI-standard signals from the signals that
2116 require checking.
2117 (do_gdb_signal_to_host): Likewise.
2118 * proc-events.c (signal_table): Likewise.
2119
c077881a
HZ
21202014-06-08 Hui Zhu <hui@codesourcery.com>
2121
2122 * common/linux-ptrace.c (linux_disable_event_reporting): New
2123 function.
2124 * common/linux-ptrace.h (linux_disable_event_reporting): New
2125 declaration.
2126 * linux-nat.c (linux_child_follow_fork): Do a single step before
2127 detach.
2128
4186eb54
KS
21292014-06-07 Keith Seitz <keiths@redhat.com>
2130
2131 Revert:
2132 PR c++/16253
2133 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2134 from symbol_matches_domain in symtab.c. All local callers
2135 of symbol_matches_domain updated.
2136 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2137 search STRUCT_DOMAIN.
2138 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2139 independently. standard_lookup will do that automatically.
2140 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2141 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2142 (cp_lookup_symbol_in_namespace): Likewise.
2143 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2144 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2145 may return a STRUCT_DOMAIN match.
2146 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2147 * cp-support.c: Include language.h.
2148 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2149 VAR_DOMAIN.
2150 * psymtab.c (match_partial_symbol): Compare the requested
2151 domain with the symbol's domain directly.
2152 (lookup_partial_symbol): Likewise.
2153 * symtab.c (lookup_symbol_in_language): Explain when/why
2154 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2155 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2156 appropriate languages.
2157 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2158 and moved to ada-lang.c
2159 (lookup_block_symbol): Explain that this function only returns
2160 symbol matching the requested DOMAIN.
2161 Compare the requested domain with the symbol's domain directly.
2162 (iterate_over_symbols): Compare the requested domain with the
2163 symbol's domain directly.
2164 * symtab.h (symbol_matches_domain): Remove.
2165
25326a28 21662014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2167
2168 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2169 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2170 (gdbscm_guile_version_is_at_least): Declare.
2171 (gdbscm_scm_string_to_int): Declare.
2172 * guile/guile.c (gdbscm_guile_major_version): New global.
2173 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2174 (guile_datadir): New static global.
2175 (gdbscm_guile_data_directory): New function.
2176 (initialize_scheme_side): Update.
2177 (misc_guile_functions): Add guile-data-directory.
2178 (initialize_gdb_module): Fetch guile version number.
2179 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2180 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2181 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2182 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2183 comments.
2184 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2185 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2186 * guile/scm-value.c (gdbscm_value_to_string): Only call
2187 scm_port_conversion_strategy if Guile version >= 2.0.6.
2188
0a770bb2 21892014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2190
2191 * main.c (print_gdb_help): Add -q and --silent.
2192
73ba372c
GB
21932014-06-06 Gary Benson <gbenson@redhat.com>
2194
2195 * common/signals.c: Remove preprocessor conditionals for
2196 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2197 SIGSEGV and SIGTERM.
2198 * proc-events.c: Likewise.
2199
c33b2f12
MM
22002014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2201
2202 * symfile.c (symfile_free_objfile): Remove restriction to
2203 OBJF_USERLOADED.
2204 * symfile-mem.c (symbol_file_add_from_memory): Call
2205 add_target_sections_of_objfile.
2206
fb934770
LC
22072014-06-05 Ludovic Courtès <ludo@gnu.org>
2208
2209 * guile/scm-value.c (gdbscm_history_append_x): Use
2210 'vlscm_get_value_smob_arg_unsafe' instead of
2211 'vlscm_scm_to_value'.
2212
6ef284bd
SM
22132014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2214
2215 PR mi/15806
2216 * utils.c (printchar): Don't escape at all if quoter is NUL.
2217 Update function documentation to clarify effect of parameter
2218 QUOTER.
2219 * remote.c (escape_buffer): Pass '\\' as the quoter to
2220 fputstrn_unfiltered.
2221 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2222 generate the output.
2223 (mi_solib_unloaded): Same.
2224
270c9937
JB
22252014-06-05 Joel Brobecker <brobecker@adacore.com>
2226
2227 * development.sh: Delete.
2228 * Makefile.in (config.status): Adjust dependency on development.sh.
2229 * configure.ac: Adjust development.sh source call.
2230 * configure: Regenerate.
2231
16f691fb
DE
22322014-06-04 Doug Evans <xdje42@gmail.com>
2233
2234 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2235 is_scheme_bkpt, spec.
2236 (bpscm_make_breakpoint_smob): Initialize new members.
2237 (gdbscm_create_breakpoint_x): Split into two ...
2238 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2239 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2240 (scheme_function breakpoint_functions): Update.
2241 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2242 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2243 register-breakpoint!.
2244
ef7cab6b
JB
22452014-06-04 Joel Brobecker <brobecker@adacorer.com>
2246
2247 PR server/17023
2248 * mem-break.c (z_type_supported): Return zero if
2249 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2250
012370f6
TT
22512014-06-04 Tom Tromey <tromey@redhat.com>
2252
2253 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2254 value_from_contents_and_address_unresolved.
2255 (ada_template_to_fixed_record_type_1): Likewise.
2256 (ada_which_variant_applies): Likewise.
2257 * value.h (value_from_contents_and_address_unresolved): Declare.
2258 * value.c (value_from_contents_and_address_unresolved): New
2259 function.
2260 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2261 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2262 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2263
92e2a17f
TT
22642014-06-04 Tom Tromey <tromey@redhat.com>
2265
2266 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2267
c0939df1
TT
22682014-06-04 Tom Tromey <tromey@redhat.com>
2269
2270 * procfs.c (procfs_attach): Make "args" const.
2271 * windows-nat.c (windows_attach): Make "args" const.
2272 * nto-procfs.c (procfs_attach): Make "args" const.
2273 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2274 * go32-nat.c (go32_attach): Make "args" const.
2275 * gnu-nat.c (gnu_attach): Make "args" const.
2276 * darwin-nat.c (darwin_attach): Make "args" const.
2277 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2278 * linux-nat.c (linux_nat_attach): Make "args" const.
2279 * remote.c (extended_remote_attach_1, extended_remote_attach):
2280 Make "args" const.
2281 * target.h (struct target_ops) <to_attach>: Make "args" const.
2282 (find_default_attach): Likewise.
2283 * utils.c (parse_pid_to_attach): Make "args" const.
2284 * utils.h (parse_pid_to_attach): Update.
2285
8eaff7cd
TT
22862014-06-04 Tom Tromey <tromey@redhat.com>
2287
2288 * target-delegates.c: Rebuild.
2289 * target.c (default_thread_address_space): New function.
2290 (target_thread_address_space): Simplify.
2291 * target.h (struct target_ops) <to_thread_address_space>: Add
2292 TARGET_DEFAULT_FUNC.
2293
1913f160
DE
22942014-06-04 Doug Evans <xdje42@gmail.com>
2295
2296 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2297
70ad5bff
MM
22982014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2299
2300 * record-btrace.c: Include event-loop.h and inf-loop.h.
2301 (record_btrace_resume_exec_dir)
2302 (record_btrace_async_inferior_event_handler)
2303 (record_btrace_handle_async_inferior_event): New.
2304 (record_btrace_open): Create async event handler.
2305 (record_btrace_close): Delete async event handler.
2306 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2307 Mark async event handler.
2308 (record_btrace_execution_direction): New.
2309 (init_record_btrace_ops): Initialize to_execution_direction.
2310
b6210538
DE
23112014-06-03 Doug Evans <xdje42@gmail.com>
2312
2313 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2314 (gdbscm_make_parameter): Ditto.
2315
a5b1fd27
DE
23162014-06-03 Doug Evans <dje@google.com>
2317
2318 * exec.c (exec_close_1): Call clear_section_table instead of
2319 resize_section_table.
2320 (clear_section_table): New function.
2321 (resize_section_table): Make static. Rename arg num_added to
2322 adjustment.
2323 * exec.h (clear_section_table): Declare.
2324 (resize_section_table): Delete.
2325 * progspace.c (release_program_space): Call clear_section_table
2326 instead of resize_section_table.
2327
0c6e92a5
SC
23282014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2329
2330 * NEWS (Python Scripting): Add entry about the new xmethods
2331 feature.
2332
883964a7
SC
23332014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2334
2335 * python/py-xmethods.c: New file.
2336 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2337 (objfpy_dealloc): XDECREF on the new xmethods field.
2338 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2339 field.
2340 (objfpy_get_xmethods): New function.
2341 (objfile_getset): New entry 'xmethods'.
2342 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2343 (pspy_dealloc): XDECREF on the new xmethods field.
2344 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2345 field.
2346 (pspy_get_xmethods): New function.
2347 (pspace_getset): New entry 'xmethods'.
2348 * python/python-internal.h: Add declarations for new functions.
2349 * python/python.c (_initialize_python): Invoke
2350 gdbpy_initialize_xmethods.
2351 * python/lib/gdb/__init__.py (xmethods): New
2352 attribute.
2353 * python/lib/gdb/xmethod.py: New file.
2354 * python/lib/gdb/command/xmethods.py: New file.
2355
58992dc5
SC
23562014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2357
2358 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2359 best match method returned by find_overload_match is an xmethod.
2360 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2361 the best matching operator returned by find_overload_match is an
2362 xmethod.
2363 * valops.c: #include "extension.h".
2364 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2365 Return void. The list of matching source methods is returned in
2366 "fn_list" and a vector of matching debug method workers is
2367 returned in "xm_worker_vec". Update all callers.
2368 (value_find_oload_method_list): Likewise.
2369 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2370 non-NULL, then the index of the best matching method in this
2371 vector is returned. Update all callers.
2372 (find_overload_match): Include xmethods while performing overload
2373 resolution.
2374
e81e7f5e
SC
23752014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2376
2377 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2378 * extension-priv.h (struct extension_language_ops): Add the
2379 xmethod interface.
2380 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2381 get_matching_xmethod_workers, get_xmethod_argtypes,
2382 invoke_xmethod, free_xmethod_worker,
2383 free_xmethod_worker_vec): New functions.
2384 * extension.h: #include "common/vec.h".
2385 New function declarations.
2386 (struct xmethod_worker): New struct.
2387 (VEC (xmethod_worker_ptr)): New vector type.
2388 (xmethod_worker_ptr): New typedef.
2389 (xmethod_worker_vec): Likewise.
2390 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2391 builtin_type.
2392 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2393 (struct builtin_type): New field "xmethod".
2394 * valarith.c (value_ptradd): Assert that the value argument is not
2395 lval_xcallable.
2396 * valops.c (value_must_coerce_to_target): Return 0 for
2397 lval_xcallable values.
2398 * value.c (struct value): New field XM_WORKER in the field
2399 LOCATION.
2400 (value_address, value_raw_address): Return 0 for lval_xcallable
2401 values.
2402 (set_value_address): Assert that the value is not an
2403 lval_xcallable.
2404 (value_free): Free the associated xmethod worker when freeing
2405 lval_xcallable values.
2406 (set_value_component_location): Assert that the WHOLE value is not
2407 lval_xcallable.
2408 (value_of_xmethod, call_xmethod): New functions.
2409 * value.h: Declare "struct xmethod_worker".
2410 Declare new functions value_of_xmethod, call_xmethod.
2411
ef370185
JB
24122014-06-03 Joel Brobecker <brobecker@adacore.com>
2413 Pedro Alves <palves@redhat.com>
2414
2415 PR breakpoints/17000
2416 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2417 New function, extracted from software_breakpoint_inserted_here_p.
2418 (software_breakpoint_inserted_here_p): Replace factored out code
2419 by call to find_non_raw_software_breakpoint_inserted_here.
2420 (bp_target_info_copy_insertion_state): New function.
2421 (bkpt_insert_location): Handle the case of a single-step
2422 breakpoint already inserted at the same address.
2423 (bkpt_remove_location): Handle the case of a single-step
2424 breakpoint still inserted at the same address.
2425 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2426 breakpoint already inserted at the same address.
2427 (deprecated_remove_raw_breakpoint): Handle the case of a
2428 non-raw breakpoint still inserted at the same address.
2429 (find_single_step_breakpoint): New function, extracted from
2430 single_step_breakpoint_inserted_here_p.
2431 (find_single_step_breakpoint): New function,
2432 factored out from single_step_breakpoint_inserted_here_p.
2433 (single_step_breakpoint_inserted_here_p): Reimplement.
2434
1e2ccb61
BM
24352014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2436
2437 Pushed by Joel Brobecker <brobecker@adacore.com>
2438 * source.c (show_substitute_path_command): Fix display of matching
2439 substitution rules.
2440
d3448d85
GB
24412014-06-03 Gary Benson <gbenson@redhat.com>
2442
2443 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2444
06eb1586
DE
24452014-06-02 Doug Evans <xdje42@gmail.com>
2446
2447 Add parameter support for Guile.
2448 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2449 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2450 (scm-param.o): New rule.
2451 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2452 (gdbscm_misc_error): Declare.
2453 (gdbscm_canonicalize_command_name): Declare.
2454 (gdbscm_scm_to_host_string): Declare.
2455 (gdbscm_scm_from_host_string): Declare.
2456 (gdbscm_initialize_parameters): Declare.
2457 * guile/guile.c (initialize_gdb_module): Call
2458 gdbscm_initialize_parameters.
2459 * guile/lib/gdb.scm: Export parameter symbols.
2460 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2461 cmdscm_canonicalize_name and made public. All callers updated.
2462 * guile/scm-exception.c (gdbscm_misc_error): New function.
2463 * guile/scm-param.c: New file.
2464 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2465 (gdbscm_scm_to_host_string): New function.
2466 (gdbscm_scm_from_host_string): New function.
2467 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2468
e698b8c4
DE
24692014-06-02 Doug Evans <xdje42@gmail.com>
2470
2471 Add command support for Guile.
2472 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2473 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2474 (scm-cmd.o): New rule.
2475 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2476 (gdbscm_user_error_p): Declare.
2477 (gdbscm_parse_command_name): Declare.
2478 (gdbscm_valid_command_class_p): Declare.
2479 (gdbscm_initialize_commands): Declare.
2480 * guile/guile.c (initialize_gdb_module): Call
2481 gdbscm_initialize_commands.
2482 * guile/lib/gdb.scm: Export command symbols.
2483 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2484 (throw-user-error): New function.
2485 * guile/scm-cmd.c: New file.
2486 * guile/scm-exception.c (user_error_symbol): New static global.
2487 (gdbscm_user_error_p): New function.
2488 (gdbscm_initialize_exceptions): Set user_error_symbol.
2489 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2490
fb1f94b0
PM
24912014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2492
2493 * top.c (command_loop): Handle comments here...
2494 (command_line_input): ... not here.
2495
ded03782
DE
24962014-06-02 Doug Evans <xdje42@gmail.com>
2497
2498 Add progspace support for Guile.
2499 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2500 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2501 (scm-progspace.o): New rule.
2502 * guile/guile-internal.h (pspace_smob): New typedef.
2503 (psscm_pspace_smob_pretty_printers): Declare.
2504 (psscm_pspace_smob_from_pspace): Declare.
2505 (psscm_scm_from_pspace): Declare.
2506 * guile/guile.c (initialize_gdb_module): Call
2507 gdbscm_initialize_pspaces.
2508 * guile/lib/gdb.scm: Export progspace symbols.
2509 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2510 support.
2511 (append-pretty-printer!): Ditto.
2512 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2513 Implement.
2514 * guile/scm-progspace.c: New file.
2515
397998fc
AM
25162014-06-03 Alan Modra <amodra@gmail.com>
2517
2518 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2519 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2520
6aa5f3a6
DE
25212014-06-02 Doug Evans <dje@google.com>
2522
2523 Add support for skeletonless type units.
2524 * dwarf2read.c (struct dwarf2_per_objfile): New member
2525 n_allocated_type_units.
2526 (struct dwarf2_per_objfile) <tu_stats>: New member
2527 nr_all_type_units_reallocs.
2528 (create_signatured_type_table_from_index): Initialize
2529 n_allocated_type_units
2530 (create_all_type_units): Ditto.
2531 (add_type_unit): Move up in file. New arg slot.
2532 All callers updated. Increase space for all_type_units more
2533 efficiently.
2534 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2535 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2536 (lookup_dwp_signatured_type): Ditto.
2537 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2538 All callers updated.
2539 (build_type_psymtabs_1): Leave type_unit_groups as
2540 NULL if no TUs present.
2541 (print_tu_stats): New function.
2542 (process_skeletonless_type_unit): New function.
2543 (process_dwo_file_for_skeletonless_type_units): New
2544 function.
2545 (process_skeletonless_type_units): New function.
2546 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2547 Call print tu_stats if debugging enabled.
2548
41fac0cf
PA
25492014-06-02 Pedro Alves <palves@redhat.com>
2550
2551 * breakpoint.c (build_target_command_list): Don't build a command
2552 list if we have any duplicate location that isn't a dprintf.
2553
cd1608cc
PA
25542014-06-02 Pedro Alves <palves@redhat.com>
2555
2556 * breakpoint.c (dprintf_breakpoint_hit): New function.
2557 (initialize_breakpoint_ops): Install it as dprintf's
2558 breakpoint_hit method.
2559
486ef3b9
JB
25602014-06-02 Joel Brobecker <brobecker@adacore.com>
2561
2562 * source.c (substitute_path_rule_matches): Simplify using
2563 filename_ncmp instead of FILENAME_CMP.
2564
230cd560
JB
25652014-06-02 Joel Brobecker <brobecker@adacore.com>
2566
2567 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2568
16954d5d
LC
25692014-06-01 Ludovic Courtès <ludo@gnu.org>
2570
2571 * configure.ac: When Guile is available, check for the
2572 availability of 'scm_new_smob'.
2573 * configure, config.h.in: Regenerate.
2574 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2575 function.
2576
53e8a631
AB
25772014-05-30 Andrew Burgess <aburgess@broadcom.com>
2578
2579 * frame.c (struct frame_info): Add stop_string field.
2580 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2581 (get_prev_frame_always): Old content moved into
2582 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2583 TRY_CATCH, handle MEMORY_ERROR exceptions.
2584 (frame_stop_reason_string): New function definition.
2585 * frame.h (unwind_stop_reason_to_string): Extend comment to
2586 mention frame_stop_reason_string.
2587 (frame_stop_reason_string): New function declaration.
2588 * stack.c (frame_info): Switch to frame_stop_reason_string.
2589 (backtrace_command_1): Switch to frame_stop_reason_string.
2590 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2591 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2592 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2593
70e38b8e
AB
25942014-05-30 Andrew Burgess <aburgess@broadcom.com>
2595
2596 * frame.c (frame_stop_reason_string): Rename to ...
2597 (unwind_stop_reason_to_string): this.
2598 * frame.h (frame_stop_reason_string): Rename to ...
2599 (unwind_stop_reason_to_string): this.
2600 * stack.c (frame_info): Update call to frame_stop_reason_string.
2601 (backtrace_command_1): Likewise.
2602 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2603 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2604
938f0e2f
AB
26052014-05-30 Andrew Burgess <aburgess@broadcom.com>
2606
2607 * frame.c (remove_prev_frame): New function.
2608 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2609 remove_prev_frame.
2610
a09dd441
PA
26112014-05-29 Pedro Alves <palves@redhat.com>
2612
2613 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2614 and make it const. When a single-step decays to a continue,
2615 clear 'step', not 'hw_step'. Pass whether the caller wanted
2616 to step to user_visible_resume_ptid, not what we ask the
2617 target to do.
2618
bdc36728
PA
26192014-05-29 Pedro Alves <palves@redhat.com>
2620
2621 * infrun.c (process_event_stop_test, handle_step_into_function)
2622 (handle_step_into_function_backward): Adjust.
2623 Don't set the even thread's stop_step and call stop_waiting before
2624 calling end_stepping_range. Instead do that ...
2625 (end_stepping_range): ... here. Take an ecs pointer parameter.
2626
22bcd14b
PA
26272014-05-29 Pedro Alves <palves@redhat.com>
2628
2629 * infrun.c (stop_stepping): Rename to ...
2630 (stop_waiting): ... this.
2631 (proceed): Update comment.
2632 (process_event_stop_test, handle_inferior_event)
2633 (handle_signal_stop, handle_step_into_function)
2634 (handle_step_into_function_backward): Update.
2635
4ae57c05
PA
26362014-05-29 Pedro Alves <palves@redhat.com>
2637
2638 * infcall.c (run_inferior_call): Don't check whether the current
2639 thread is running after the proceed call.
2640
329ea579
PA
26412014-05-29 Pedro Alves <palves@redhat.com>
2642 Tom Tromey <tromey@redhat.com>
2643
2644 * NEWS: Mention "maint set target-async", "set mi-async", and that
2645 background execution commands are now always available.
2646 * target.h (target_async_permitted): Update comment.
2647 * target.c (target_async_permitted, target_async_permitted_1):
2648 Default to 1.
2649 (set_target_async_command): Rename to ...
2650 (maint_set_target_async_command): ... this.
2651 (show_target_async_command): Rename to ...
2652 (maint_show_target_async_command): ... this.
2653 (_initialize_target): Adjust.
2654 * infcmd.c (prepare_execution_command): Make extern.
2655 * inferior.h (prepare_execution_command): Declare.
2656 * infrun.c (set_observer_mode): Leave target async alone.
2657 * mi/mi-interp.c (mi_interpreter_init): Install
2658 mi_on_sync_execution_done as sync_execution_done observer.
2659 (mi_on_sync_execution_done): New function.
2660 (mi_execute_command_input_handler): Don't print the prompt if we
2661 just started a synchronous command with an async target.
2662 (mi_on_resume): Check sync_execution before printing prompt.
2663 * mi/mi-main.h (mi_async_p): Declare.
2664 * mi/mi-main.c: Include gdbcmd.h.
2665 (mi_async_p): New function.
2666 (mi_async, mi_async_1): New globals.
2667 (set_mi_async_command, show_mi_async_command, mi_async): New
2668 functions.
2669 (exec_continue): Call prepare_execution_command.
2670 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2671 (mi_execute_async_cli_command): Use mi_async_p.
2672 (_initialize_mi_main): Install "set mi-async". Make
2673 "target-async" a deprecated alias.
2674
92bcb5f9
PA
26752014-05-29 Pedro Alves <palves@redhat.com>
2676
2677 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2678 (_initialize_cli_interp): Adjust.
2679 * event-loop.c: Include "observer.h".
2680 (start_event_loop): Notify 'command_error' observers instead of
2681 calling display_gdb_prompt. Remove FIXME comment.
2682 * event-top.c (display_gdb_prompt): Remove call into the
2683 interpreters.
2684 * inf-loop.c: Include "observer.h".
2685 (inferior_event_handler): Notify 'command_error' observers instead
2686 of calling display_gdb_prompt.
2687 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2688 observers instead of calling display_gdb_prompt.
2689 * interps.c (interp_set): Don't call display_gdb_prompt.
2690 (current_interp_display_prompt_p): Delete.
2691 * interps.h (interp_prompt_p): Delete declaration.
2692 (interp_prompt_p_ftype): Delete.
2693 (struct interp_procs) <prompt_proc_p>: Delete field.
2694 (current_interp_display_prompt_p): Delete declaration.
2695 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2696 (_initialize_mi_interp): Adjust.
2697 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2698 'command_error' observers.
2699 (tui_on_sync_execution_done, tui_on_command_error): New
2700 functions.
2701 (tui_display_prompt_p): Delete.
2702 (_initialize_tui_interp): Adjust.
2703
fd664c91
PA
27042014-05-29 Pedro Alves <palves@redhat.com>
2705
2706 PR gdb/13860
2707 * cli/cli-interp.c: Include infrun.h and observer.h.
2708 (cli_uiout, cli_interp): New globals.
2709 (cli_on_signal_received, cli_on_end_stepping_range)
2710 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2711 functions.
2712 (cli_interpreter_init): Install them as 'end_stepping_range',
2713 'signal_received' 'signal_exited', 'exited' and 'no_history'
2714 observers.
2715 (_initialize_cli_interp): Remove cli_interp local.
2716 * infrun.c (handle_inferior_event): Call the several stop reason
2717 observers instead of printing the stop reason directly.
2718 (end_stepping_range): New function.
2719 (print_end_stepping_range_reason, print_signal_exited_reason)
2720 (print_exited_reason, print_signal_received_reason)
2721 (print_no_history_reason): Make static, and add an uiout
2722 parameter. Print to that instead of to CURRENT_UIOUT.
2723 * infrun.h (print_end_stepping_range_reason)
2724 (print_signal_exited_reason, print_exited_reason)
2725 (print_signal_received_reason print_no_history_reason): New
2726 declarations.
2727 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2728 'mi_uiout'.
2729 <cli_uiout>: New field.
2730 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2731 uiout for CLI output. Install 'signal_received',
2732 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2733 observers.
2734 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2735 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2736 (mi_on_no_history): New functions.
2737 (ui_out_free_cleanup): Delete function.
2738 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2739 instead use the one already stored in the MI interpreter data.
2740 (mi_ui_out): Adjust.
2741 * tui/tui-interp.c: Include infrun.h and observer.h.
2742 (tui_interp): New global.
2743 (tui_on_signal_received, tui_on_end_stepping_range)
2744 (tui_on_signal_exited, tui_on_exited)
2745 (tui_on_no_history): New functions.
2746 (tui_init): Install them as 'end_stepping_range',
2747 'signal_received' 'signal_exited', 'exited' and 'no_history'
2748 observers.
2749 (_initialize_tui_interp): Delete tui_interp local.
2750
8817a6f2
PA
27512014-05-29 Pedro Alves <palves@redhat.com>
2752
2753 PR gdb/15713
2754 * linux-nat.c (linux_nat_resume_callback): Rename the second
2755 parameter to 'except'. Skip LP if it points to EXCEPT.
2756 (linux_nat_resume): Don't mark the event lwp as not stopped
2757 before resuming sibling lwps. Instead ask
2758 linux_nat_resume_callback to skip the event lwp. Mark it as not
2759 stopped after actually resuming it.
2760 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2761 resuming it.
2762 (wait_lwp): Mark the lwp as stopped here.
2763 (stop_wait_callback): Mark the lwp as not stopped right after
2764 resuming it. Don't mark lwps as stopped here.
2765 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2766 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2767
251bde03
PA
27682014-05-29 Pedro Alves <palves@redhat.com>
2769
2770 PR PR15693
2771 * infrun.c (resume): Determine how much to resume depending on
2772 whether the caller wanted a step, not whether we can hardware step
2773 the target. Mark all threads that we intend to run as running,
2774 unless we're calling an inferior function.
2775 (normal_stop): If the thread is running an infcall, don't finish
2776 thread state.
2777 * target.c (target_resume): Don't mark threads as running here.
2778
7f3c0343
JB
27792014-05-28 Joel Brobecker <brobecker@adacore.com>
2780
2781 * serial.c (_initialize_serial): Remove support for
2782 the "set remotebaud" and "show remotebaud" commands.
2783 * NEWS: Add entry documenting the removal of that command.
2784
ee34b3f9
YQ
27852014-05-28 Yao Qi <yao@codesourcery.com>
2786
2787 * charset.c: Fix typo in comments.
2788
add6c04d
GB
27892014-05-27 Gary Benson <gbenson@redhat.com>
2790
2791 * utils.c (internal_vproblem): Prompt for a bug report.
2792
92c48fc5
AW
27932014-05-26 Andy Wingo <wingo@igalia.com>
2794
2795 * guile/scm-arch.c (arscm_mark_arch_smob):
2796 * guile/scm-block.c (bkscm_mark_block_smob)
2797 (bkscm_mark_block_syms_progress_smob):
2798 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2799 * guile/scm-exception.c (exscm_mark_exception_smob):
2800 * guile/scm-frame.c (frscm_mark_frame_smob):
2801 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2802 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2803 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2804 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2805 (ppscm_mark_pretty_printer_worker_smob):
2806 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2807 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2808 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2809 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2810 mark functions.
2811 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2812 function.
2813
b2715b27
AW
28142014-05-26 Andy Wingo <wingo@igalia.com>
2815 Doug Evans <xdje42@gmail.com>
2816
2817 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2818 empty_base_class. All uses updated.
2819 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2820 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2821 Adapt all callers.
2822 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2823 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2824 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2825 (gdbscm_gsmob_has_property_p, add_property_name)
2826 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2827 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2828 (gdb-object-has-property?, gdb-object-properties): Remove.
2829 (gdb-object-kind): Renamed from gsmob-kind.
2830
214ab2da
AW
28312014-05-26 Andy Wingo <wingo@igalia.com>
2832
2833 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2834 * configure: Regenerate.
2835
589fdceb
MM
28362014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2837
2838 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2839
67b5c0c1
MM
28402014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2841
2842 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2843 (replay_memory_access_read_only, replay_memory_access_read_write)
2844 (replay_memory_access_types, replay_memory_access)
2845 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2846 (cmd_set_record_btrace, cmd_show_record_btrace)
2847 (cmd_show_replay_memory_access): New.
2848 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2849 (record_btrace_remove_breakpoint): Replace
2850 record_btrace_allow_memory_access with replay_memory_access.
2851 (_initialize_record_btrace): Add commands.
2852 * NEWS: Announce it.
2853
036cd381
RR
28542014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2855
2856 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2857
c77c1e42
RR
28582014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2859
2860 * MAINTAINERS (Write After Approval): Move self back from
2861 paper trail.
2862
45741a9c
PA
28632014-05-22 Pedro Alves <palves@redhat.com>
2864
2865 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2866 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2867 (disable_randomization, enum exec_direction_kind)
2868 (execution_direction, stop_registers, start_remote)
2869 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2870 (wait_for_inferior, normal_stop, get_last_target_status)
2871 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2872 (insert_step_resume_breakpoint_at_sal)
2873 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2874 (set_step_info, print_stop_event, signal_stop_state)
2875 (signal_print_state, signal_pass_state, signal_stop_update)
2876 (signal_print_update, signal_pass_update)
2877 (update_signals_program_target, clear_exit_convenience_vars)
2878 (displaced_step_dump_bytes, update_observer_mode)
2879 (signal_catch_update, gdb_signal_from_command): Move
2880 declarations ...
2881 * infrun.h: ... to this new file.
2882 * amd64-tdep.c: Include infrun.h.
2883 * annotate.c: Include infrun.h.
2884 * arch-utils.c: Include infrun.h.
2885 * arm-linux-tdep.c: Include infrun.h.
2886 * arm-tdep.c: Include infrun.h.
2887 * break-catch-sig.c: Include infrun.h.
2888 * breakpoint.c: Include infrun.h.
2889 * common/agent.c: Include infrun.h instead of inferior.h.
2890 * corelow.c: Include infrun.h.
2891 * event-top.c: Include infrun.h.
2892 * go32-nat.c: Include infrun.h.
2893 * i386-tdep.c: Include infrun.h.
2894 * inf-loop.c: Include infrun.h.
2895 * infcall.c: Include infrun.h.
2896 * infcmd.c: Include infrun.h.
2897 * infrun.c: Include infrun.h.
2898 * linux-fork.c: Include infrun.h.
2899 * linux-nat.c: Include infrun.h.
2900 * linux-thread-db.c: Include infrun.h.
2901 * monitor.c: Include infrun.h.
2902 * nto-tdep.c: Include infrun.h.
2903 * procfs.c: Include infrun.h.
2904 * record-btrace.c: Include infrun.h.
2905 * record-full.c: Include infrun.h.
2906 * remote-m32r-sdi.c: Include infrun.h.
2907 * remote-mips.c: Include infrun.h.
2908 * remote-notif.c: Include infrun.h.
2909 * remote-sim.c: Include infrun.h.
2910 * remote.c: Include infrun.h.
2911 * reverse.c: Include infrun.h.
2912 * rs6000-tdep.c: Include infrun.h.
2913 * s390-linux-tdep.c: Include infrun.h.
2914 * solib-irix.c: Include infrun.h.
2915 * solib-osf.c: Include infrun.h.
2916 * solib-svr4.c: Include infrun.h.
2917 * target.c: Include infrun.h.
2918 * top.c: Include infrun.h.
2919 * windows-nat.c: Include infrun.h.
2920 * mi/mi-interp.c: Include infrun.h.
2921 * mi/mi-main.c: Include infrun.h.
2922 * python/py-threadevent.c: Include infrun.h.
2923
98eb56a4
PA
29242014-05-22 Pedro Alves <palves@redhat.com>
2925
2926 * infrun.c (handle_inferior_event): Store the exit code for
2927 --return-child-result here, instead of ...
2928 (print_exited_reason): ... here.
2929
17b2616c
PA
29302014-05-21 Pedro Alves <palves@redhat.com>
2931
2932 PR gdb/13860
2933 * gdbthread.h (struct thread_control_state): New field
2934 `command_interp'.
2935 * infrun.c (follow_fork): Copy the new thread control field to the
2936 child fork thread.
2937 (clear_proceed_status_thread): Clear the new thread control field.
2938 (proceed): Set the new thread control field.
2939 * interps.h (command_interp): Declare.
2940 * interps.c (command_interpreter): New global.
2941 (command_interp): New function.
2942 (interp_exec): Set `command_interpreter' while here.
2943 * cli-out.c (cli_uiout_dtor): New function.
2944 (cli_ui_out_impl): Install it.
2945 * mi/mi-interp.c: Include cli-out.h.
2946 (mi_cmd_interpreter_exec): Add comment.
2947 (restore_current_uiout_cleanup): New function.
2948 (ui_out_free_cleanup): New function.
2949 (mi_on_normal_stop): If finishing an execution command started by
2950 a CLI command, or any kind of breakpoint-like event triggered,
2951 print the stop event to the output (CLI) stream.
2952 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2953
5166082f
PA
29542014-05-21 Pedro Alves <palves@redhat.com>
2955
2956 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2957 current source line having changed.
2958 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2959 * infrun.c (normal_stop): Adjust call to
2960 set_current_sal_from_frame.
2961 * source.c (clear_lines_listed_range): New function.
2962 (set_current_source_symtab_and_line, identify_source_line): Clear
2963 the lines listed range.
2964 (line_info): Handle the first "info line" after the current source
2965 line having changed.
2966 * stack.c (print_stack_frame): Remove center handling.
2967 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2968 center sal.line.
2969
c1ee2fb3
PA
29702014-05-21 Pedro Alves <palves@redhat.com>
2971
2972 * inf-child.c (inf_child_mourn_inferior): New function.
2973 * inf-child.h (inf_child_mourn_inferior): New declaration.
2974 * darwin-nat.c (darwin_mourn_inferior): Use
2975 inf_child_mourn_inferior.
2976 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2977 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2978 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2979 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2980 * windows-nat.c (windows_mourn_inferior): Likewise.
2981
5c6d4fb2
DE
29822014-05-21 Doug Evans <xdje42@gmail.com>
2983
250748cb 2984 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 2985
4a2722c5
DE
29862014-05-21 Doug Evans <xdje42@gmail.com>
2987
17292b30 2988 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
2989 (gdbscm_out_of_range_error): Ditto.
2990 (gdbscm_memory_error): Ditto.
250748cb
DE
2991 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2992 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
2993 (gdbscm_out_of_range_error): Update.
2994 (gdbscm_memory_error): Update.
2995 (gdbscm_scm_to_target_string_unsafe): Delete.
2996
6a3cb8e8
PA
29972014-05-21 Pedro Alves <palves@redhat.com>
2998
2999 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
3000 globals.
3001 (inf_child_open_target): New function.
3002 (inf_child_open): Use inf_child_open_target to push the target
3003 instead of erroring out.
3004 (inf_child_disconnect, inf_child_close)
3005 (inf_child_maybe_unpush_target): New functions.
3006 (inf_child_target): Install inf_child_disconnect and
3007 inf_child_close. Store a pointer to the returned object.
3008 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
3009 declarations.
3010 * target.c (auto_connect_native_target): New global.
3011 (show_default_run_target): New function.
3012 (find_default_run_target): Return NULL if automatically connecting
3013 to the native target is disabled.
3014 (_initialize_target): Install set/show auto-connect-native-target.
3015 * NEWS: Mention "set auto-connect-native-target", and "target
3016 native".
3017 * linux-nat.c (super_close): New global.
3018 (linux_nat_close): Call super_close.
3019 (linux_nat_add_target): Store a pointer to the base class's
3020 to_close method.
3021 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3022 inf_child_maybe_unpush.
3023 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3024 already pushed.
3025 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3026 the inferior. Use inf_child_maybe_unpush_target.
3027 (inf_ttrace_attach): Don't push the target if it is already
3028 pushed.
3029 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3030 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3031 after mourning the inferior. Use inf_child_maybe_unpush_target.
3032 (darwin_attach_pid): Don't push the target if it is already
3033 pushed.
3034 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3035 mourning the inferior. Use inf_child_maybe_unpush_target.
3036 (gnu_detach): Use inf_child_maybe_unpush_target.
3037 * go32-nat.c (go32_create_inferior): Don't push the target if it
3038 is already pushed.
3039 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3040 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3041 (procfs_open): Rename to ...
3042 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3043 comments. Can target_preopen before changing node. Call
3044 inf_child_open_target to push the target explicitly.
3045 (procfs_attach): Don't push the target if it is already pushed.
3046 (procfs_detach): Use inf_child_maybe_unpush_target.
3047 (procfs_create_inferior): Don't push the target if it is already
3048 pushed.
3049 (nto_native_ops): New global.
3050 (procfs_open): Reimplement.
3051 (procfs_native_open): New function.
3052 (init_procfs_targets): Install procfs_native_open as to_open of
3053 "target native". Store a pointer to the "native" target in
3054 nto_native_ops.
3055 * procfs.c (procfs_attach): Don't push the target if it is already
3056 pushed.
3057 (procfs_detach): Use inf_child_maybe_unpush_target.
3058 (procfs_mourn_inferior): Only unpush the target after mourning the
3059 inferior. Use inf_child_maybe_unpush_target.
3060 (procfs_init_inferior): Don't push the target if it is already
3061 pushed.
3062 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3063 if it is already pushed.
3064
930ee1b1
PA
30652014-05-21 Pedro Alves <palves@redhat.com>
3066
3067 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3068 and "procfs" targets are now called "native" instead.
3069
1f5d1b13
PA
30702014-05-21 Pedro Alves <palves@redhat.com>
3071
3072 * go32-nat.c (go32_open): Delete.
3073 (go32_target): Don't override the to_open method.
3074
132f8e03
PA
30752014-05-21 Pedro Alves <palves@redhat.com>
3076
3077 * nto-procfs.c (procfs_can_run): New function.
3078 (nto_procfs_ops): New global.
3079 (init_procfs_targets): New, based on procfs_target. Install
3080 "target native" in addition to "target procfs".
3081 (_initialize_procfs): Call init_procfs_targets instead of adding
3082 the target here.
3083
03c136c3
PA
30842014-05-21 Pedro Alves <palves@redhat.com>
3085
3086 * windows-nat.c (windows_target): Don't override to_shortname,
3087 to_longname or to_doc.
3088
a635d0f3
PA
30892014-05-21 Pedro Alves <palves@redhat.com>
3090
3091 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3092 to_doc.
3093
4f9b5133
PA
30942014-05-21 Pedro Alves <palves@redhat.com>
3095
3096 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3097 to_shortname, to_longname or to_doc.
3098
bc85afde
PA
30992014-05-21 Pedro Alves <palves@redhat.com>
3100
3101 * go32-nat.c (go32_target): Don't override to_shortname,
3102 to_longname or to_doc.
3103
4ebfc96e
PA
31042014-05-21 Pedro Alves <palves@redhat.com>
3105
3106 * inf-child.c (inf_child_open): Remove mention of "child".
3107 (inf_child_target): Rename target to "native" instead of "child".
3108
2648dfed
AA
31092014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3110
3111 * Makefile.in (SFILES): Delete "regset.c".
3112 (COMMON_OBS): Delete "regset.o".
3113 * regset.c: Remove.
3114 * regset.h (regset_alloc): Delete prototype.
3115
b13feb94
AA
31162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3117
3118 * sparc-linux-tdep.c (sparc32_linux_gregset)
3119 (sparc32_linux_fpregset): New static regset structures.
3120 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3121 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3122 'fpregset' fields.
3123 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3124 (sparc64_linux_fpregset): New static regset structures.
3125 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3126 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3127 New static regset structures.
3128 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3129 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3130 New static regset structures.
3131 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3132 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3133 New static regset structures.
3134 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3135 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3136 New static regset structures.
3137 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3138
b4fd25c9
AA
31392014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3140
3141 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3142 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3143 register maps ("regmaps") from "*regset" to "*regmap". Do this
3144 for all regmap types and variables.
3145 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3146 (sparc32_linux_supply_core_gregset)
3147 (sparc32_linux_collect_core_gregset)
3148 (sparc32_linux_supply_core_fpregset)
3149 (sparc32_linux_collect_core_fpregset): Likewise.
3150 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3151 (sparc_gregmap, sparc_fpregmap): ... these.
3152 (sparc_supply_gregset, sparc_collect_gregset)
3153 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3154 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3155 (_initialize_sparc_nat): Rename regmaps.
3156 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3157 (sparc_gregmap, sparc_fpregmap): ... these.
3158 (sparc_supply_gregset, sparc_collect_gregset)
3159 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3160 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3161 Rename macros to...
3162 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3163 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3164 Likewise.
3165 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3166 Rename to...
3167 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3168 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3169 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3170 regmaps.
3171 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3172 (sparc32_bsd_fpregset): Rename to...
3173 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3174 (sparc32_bsd_fpregmap): ... these.
3175 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3176 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3177 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3178 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3179 (struct sparc_gregmap, struct sparc_fpregmap)
3180 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3181 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3182 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3183 (sparc32_supply_regset, sparc32_collect_gregset)
3184 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3185 prototypes.
3186 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3187 (sparc64_linux_ptrace_gregmap): ... this.
3188 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3189 (_initialize_sparc64_linux_nat): Rename regmaps.
3190 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3191 (sparc64_linux_core_gregmap): ... this.
3192 (sparc64_linux_supply_core_gregset)
3193 (sparc64_linux_collect_core_gregset)
3194 (sparc64_linux_supply_core_fpregset)
3195 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3196 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3197 (sparc64_sol2_fpregset): Rename to...
3198 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3199 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3200 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3201 regmaps.
3202 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3203 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3204 (sparc64_bsd_fpregset): Rename to...
3205 (struct sparc_gregmap, sparc64_sol2_gregmap)
3206 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3207 (sparc64_bsd_fpregmap): ... these.
3208 (sparc64_supply_gregset, sparc64_collect_gregset)
3209 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3210 prototypes.
3211 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3212 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3213 (sparc64fbsd_gregmap): ... this.
3214 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3215 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3216 Rename regmaps.
3217 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3218 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3219 (sparc64nbsd_collect_fpregset): Likewise.
3220 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3221 (sparc64nbsd_gregmap): ... this.
3222 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3223 regmaps.
3224 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3225 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3226 (sparc64obsd_gregmap): ... this.
3227 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3228 regmaps.
3229 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3230 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3231 (sparc32nbsd_gregmap): ... this.
3232 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3233 regmaps.
3234
8fea3224
AA
32352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3236
3237 * score-tdep.c (score7_linux_gregset): New static regset
3238 structure.
3239 (score7_linux_regset_from_core_section): Remove dynamic regset
3240 allocation.
3241 (score_gdbarch_init): Drop allocation of tdep structure.
3242 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3243
24534243
AA
32442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3245
3246 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3247 regset structures.
3248 (am33_regset_from_core_section): Remove dynamic regset
3249 allocations.
3250
b7195f27
AA
32512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3252
3253 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3254 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3255 structures.
3256 (mips_linux_regset_from_core_section): Remove dynamic regset
3257 allocations.
3258 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3259 'gregset64', 'fpregset', and 'fpregset64'.
3260 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3261 deleted tdep fields.
3262
ecc37a5a
AA
32632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3264
3265 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3266 regset structures.
3267 (amd64_regset_from_core_section): Remove dynamic regset
3268 allocations.
3269 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3270 structure.
3271 (amd64obsd_regset_from_core_section): Remove dynamic regset
3272 allocation.
3273 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3274 Likewise.
3275 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3276 x86-common regset supply function.
3277 * i386-tdep.c (i386_collect_gregset): Make static.
3278 (i386_gregset): New global regset structure.
3279 (i386_fpregset, i386_xstateregset): New static regset structures.
3280 (i386_regset_from_core_section): Remove dynamic regset
3281 allocations.
3282 (i386_gdbarch_init): Remove initialization of tdep fields
3283 'gregset', 'fpregset', and 'xstateregset'.
3284 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3285 'fpregset', and 'xstateregset'.
3286 (i386_collect_gregset): Remove prototype.
3287 (i386_gregset): New declaration.
3288 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3289 structure.
3290 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3291 allocation.
3292
b7611c43
AA
32932014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3294
3295 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3296 (arm_linux_vfpregset): New static regset structures.
3297 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3298 regset structures.
3299 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3300 and 'vfpregset' fields.
3301
a069a2bd
AA
33022014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3303
3304 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3305 (aarch64_linux_fpregset): New static regset structures.
3306 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3307 of regset structures.
3308 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3309 'fpregset' fields.
3310
09424cff
AA
33112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3312
3313 * regset.h (struct regset): Remove gdbarch field.
3314 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3315 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3316 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3317 Likewise.
3318 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3319 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3320 (ppc32_linux_vsxregset): Likewise.
3321 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3322 via the regcache instead of the regset.
3323 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3324 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3325 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3326 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3327 Likewise.
3328
3ca7dae4
AA
33292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3330
3331 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3332 Constify structures.
3333 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3334 (alphanbsd_aout_gregset): Likewise.
3335 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3336 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3337 Likewise.
3338 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3339 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3340 Likewise.
3341 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3342 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3343 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3344 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3345 * m88k-tdep.c (m88k_gregset): Likewise.
3346 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3347 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3348 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3349 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3350 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3351 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3352 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3353 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3354 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3355 Likewise.
3356 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3357 * sh-tdep.h (sh_corefile_gregset): Likewise.
3358 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3359 * vax-tdep.c (vax_gregset): Likewise.
3360
5876f503
JK
33612014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3362
3363 Fix TLS access for -static -pthread.
3364 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3365 (try_thread_db_load_1): Initialize it.
3366 (thread_db_get_thread_local_address): Call it if LM is zero.
3367 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3368 * target.h (struct target_ops) (to_get_thread_local_address): Add
3369 load_module_addr comment.
3370
0256a6ac
PA
33712014-05-21 Pedro Alves <palves@redhat.com>
3372
3373 * dcache.c (dcache_read_memory_partial): If reading the cache line
3374 fails, fallback to reading just the memory the caller wanted.
3375
227533ac
DE
33762014-05-20 Doug Evans <dje@google.com>
3377
3378 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3379 instead of get_current_arch.
3380
936d2992
PA
33812014-05-20 Pedro Alves <palves@redhat.com>
3382
3383 * NEWS: Mention that compare-sections now works with all targets.
3384
3385 * remote.c (PACKET_qCRC): New enum value.
3386 (remote_verify_memory): Don't send qCRC if the target has no
3387 execution. Use packet_support/packet_ok. If the target doesn't
3388 support the qCRC packet, fallback to a deep memory copy.
3389 (compare_sections_command): Say "target image" instead of "remote
3390 executable".
3391 (_initialize_remote): Add PACKET_qCRC to the list of config
3392 packets that have no associated command. Extend comment.
3393 * target.c (simple_verify_memory, default_verify_memory): New
3394 function.
3395 * target.h (struct target_ops) <to_verify_memory>: Default to
3396 default_verify_memory.
3397 (simple_verify_memory): New declaration.
3398 * target-delegates.c: Regenerate.
3399
e59fa00f
MM
34002014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3401
3402 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3403
f2205de0
HZ
34042014-05-20 Hui Zhu <hui@codesourcery.com>
3405 Yao Qi <yao@codesourcery.com>
3406
3407 PR backtrace/16558
3408 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3409 and change address of sp and pc.
3410
c4e54771
TT
34112014-05-19 Tom Tromey <tromey@redhat.com>
3412
3413 * gdbtypes.c (rank_function): Use XNEWVEC.
3414 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3415
73051182
DE
34162014-05-19 Doug Evans <dje@google.com>
3417
3418 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3419 build_type_unit_groups and moved closer to only caller. Remove
3420 arguments. All references updated. Remove outdated .gdb_index
3421 comment.
3422 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3423 build_type_psymtabs_1.
3424
8832e7e3
DE
34252014-05-19 Doug Evans <dje@google.com>
3426
3427 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3428 n_type_unit_groups, all_type_unit_groups. All uses removed.
3429 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3430 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3431 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3432 (add_type_unit_group_to_table): Delete.
3433
cd8ae15e
DE
34342014-05-19 Doug Evans <dje@google.com>
3435
3436 * eval.c (evaluate_subexp_standard): Add some comments.
3437
08f4850b
DE
34382014-05-17 Doug Evans <xdje42@gmail.com>
3439
3440 * progspace.c (remove_program_space): Delete, unused.
3441 * progspace.h (remove_program_space): Ditto.
3442
bed8455c
DE
34432014-05-17 Doug Evans <xdje42@gmail.com>
3444
3445 * inferior.c (prune_inferiors): Fix comment.
3446 (remove_inferior_command): Call prune_program_spaces.
3447
8d551b02
DE
34482014-05-16 Doug Evans <dje@google.com>
3449
3450 New command line option -D.
3451 * NEWS: Mention it.
3452 * main.c (set_gdb_data_directory): New function.
3453 (captured_main): Recognize -D. Flag error for --data-directory "".
3454 Call set_gdb_data_directory.
3455 (print_gdb_help): Print --data-directory, -D.
3456 * main.h (set_gdb_data_directory): Declare.
3457 * top.c (staged_gdb_datadir): New static global.
3458 (set_gdb_datadir): Call set_gdb_data_directory
3459 (show_gdb_datadir): New function.
3460 (init_main): Update init of data-directory parameter.
3461
18848e28
GF
34622014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3463
3464 Import the "dirfd" gnulib module.
3465 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3466 * gnulib/aclocal.m4: Update.
3467 * gnulib/config.in: Update.
3468 * gnulib/configure: Update.
3469 * gnulib/import/Makefile.am: Update.
3470 * gnulib/import/Makefile.in: Update.
3471 * gnulib/import/dirfd.c: New.
3472 * gnulib/import/m4/dirfd.m4: New.
3473 * gnulib/import/m4/gnulib-cache.m4: Update.
3474 * gnulib/import/m4/gnulib-comp.m4: Update.
3475
95c64f92
YQ
34762014-05-16 Pierre Muller <muller@sourceware.org>
3477 Yao Qi <yao@codesourcery.com>
3478
3479 * valprint.c (print_wchar): Move the code on checking whether
3480 W is a printable wide char to the default branch of switch
3481 statement below. Call wchar_printable instead of gdb_iswprint.
3482
cac395ea
TM
34832014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3484
19679eca 3485 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
3486 ldr.w and ldrd instructions.
3487
83655187
DE
34882014-05-15 Doug Evans <dje@google.com>
3489
3490 * dwarf2read.c (read_structure_type): Delete outdated comments.
3491
dd756689
TT
34922014-05-14 Tom Tromey <tromey@redhat.com>
3493
3494 * macrocmd.c (print_macro_definition): Reindent.
3495
75ddda77
DE
34962014-05-13 Doug Evans <xdje42@gmail.com>
3497
3498 * python/py-cmd.c (cmdpy_completer): Add comment.
3499 (completers): Make const.
3500
b0f16a3e
SM
35012014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3502
3503 * infrun.c (resume): Remove should_resume (unused). Move up
3504 declaration of resume_ptid.
3505
033c3379
TT
35062014-05-13 Tom Tromey <tromey@redhat.com>
3507
3508 * language.h (unop_type_check): Remove.
3509 (binop_type_check): Don't declare.
3510
9b44a3a5
AA
35112014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3512
3513 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3514 call to regcache_raw_collect.
3515
303a33fa
SM
35162014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3517
3518 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3519 mi_console->quote as the quoting character.
3520
196100a0
SM
35212014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3522
3523 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3524
f989a1c8
TT
35252014-04-29 Tom Tromey <tromey@redhat.com>
3526
3527 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3528 "show debug varobj".
3529
9404b58f
KM
35302014-05-07 Kyle McMartin <kyle@redhat.com>
3531
3532 Pushed by Joel Brobecker <brobecker@adacore.com>.
3533 * aarch64-tdep.c (aarch64_software_single_step): New function.
3534 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3535 with aarch64_software_single_step.
3536
5e49ba57
JB
35372014-05-05 Joel Brobecker <brobecker@adacore.com>
3538
3539 GDB 7.7.1 released.
3540
c888a17d
KS
35412014-05-05 Keith Seitz <keiths@redhat.com>
3542
3543 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3544 variable or history value is successfully parsed.
3545
290a839c
YQ
35462014-05-05 Yao Qi <yao@codesourcery.com>
3547 Pedro Alves <palves@redhat.com>
3548
3549 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3550 address of blocks that intersects the requested range. Trim
3551 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3552 sections.
3553 * ctf.c (ctf_xfer_partial): Likewise.
3554
91256dc2
YQ
35552014-05-05 Yao Qi <yao@codesourcery.com>
3556
3557 * printcmd.c (display_command): Remove the check to
3558 target_has_execution.
3559
07284463
MK
35602014-05-03 Mark Kettenis <kettenis@gnu.org>
3561
3562 * ppcobsd-nat.c: Include "obsd-nat.h".
3563 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3564 add_target.
3565 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3566
30a1e6cc
SDJ
35672014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3568
3569 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3570 and 16-bit signed and unsigned arguments. Update comment.
3571 (stap_parse_probe_arguments): Extend code to handle such
3572 arguments. Use warning instead of complaint to notify about
3573 unrecognized bitness.
3574
f33da99a
SDJ
35752014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3576
3577 PR breakpoints/16889
3578 * stap-probe.c (stap_parse_probe_arguments): Simplify
3579 check for non-prefixed probes (i.e., probes whose
3580 arguments do not start with "N@"). Always set the
3581 argument type to a sane value.
3582
95cf3b38
DT
35832014-05-01 David Taylor <dtaylor@emc.com>
3584
3585 * remote.c (compare_sections_command): Add -r option to compare
3586 all loadable read-only sections.
3587
1cfdf534
SC
35882014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3589
3590 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3591 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3592 Update all callers.
3593 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3594 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3595 Remove unused CORE_ADDR argument. Update all callers.
3596
ca4f7f8b
PA
35972014-04-29 Pedro Alves <palves@redhat.com>
3598
3599 * remote.c (struct packet_config) <detect>: Extend comment.
3600 (add_packet_config_cmd): Don't set the config's detect or support
3601 fields here.
3602 (init_all_packet_configs): Also initialize the config's 'detect'
3603 field.
3604 (reset_all_packet_configs_support): New function.
3605 (remote_open_1): Call reset_all_packet_configs_support instead of
3606 init_all_packet_configs.
3607 (_initialize_remote): Initialize all packet configs. Assert that
3608 all packets have an associated command, except a few known
3609 outliers.
3610
11c1ba78
JB
36112014-04-28 Joel Brobecker <brobecker@adacore.com>
3612
3613 * dwarf2read.c (read_subrange_type): Handle dynamic
3614 DW_AT_lower_bound attributes.
3615
8739bc53
JB
36162014-04-28 Joel Brobecker <brobecker@adacore.com>
3617
3618 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3619 dynamic bounds before computing its upper bound.
3620 (ada_discrete_type_low_bound): Same as above with the lower bound.
3621
6f8a3220
JB
36222014-04-28 Joel Brobecker <brobecker@adacore.com>
3623
3624 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3625 range types. Adjust the array handling implementation to
3626 take advantage of this change.
3627 (resolve_dynamic_range): New function, mostly extracted from
3628 resolve_dynamic_bounds.
3629 (resolve_dynamic_array): New function, mostly extracted from
3630 resolve_dynamic_bounds.
3631 (resolve_dynamic_bounds): Delete.
3632 (resolve_dynamic_type): Reimplement. Add handling of
3633 TYPE_CODE_RANGE types.
3634
4d072ce4
JB
36352014-04-28 Joel Brobecker <brobecker@adacore.com>
3636
3637 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3638 handling of parallel ___XA types.
3639
52865325
JB
36402014-04-28 Joel Brobecker <brobecker@adacore.com>
3641
3642 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3643 unnecessary second call to static_unwrap_type.
3644
433e77fa
HZ
36452014-04-27 Hui Zhu <hui@codesourcery.com>
3646
3647 * stack.c (print_frame_info): Call do_gdb_disassembly with
3648 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3649
b51a69ee
DE
36502014-04-26 Doug Evans <xdje42@gmail.com>
3651
3652 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3653
7ae1a6a6
PA
36542014-04-25 Pedro Alves <palves@redhat.com>
3655
3656 PR server/16255
3657 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3658 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3659 and newline from built string.
3660 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3661 (linux_ptrace_attach_fail_reason): ... this.
3662 * linux-nat.c (linux_nat_attach): Adjust to use
3663 linux_ptrace_attach_fail_reason.
3664
4082afcc
PA
36652014-04-25 Pedro Alves <palves@redhat.com>
3666
3667 * remote.c (struct remote_state): Remove multi_process_aware,
3668 non_stop_aware, cond_tracepoints, cond_breakpoints,
3669 breakpoint_commands, fast_tracepoints, static_tracepoints,
3670 install_in_trace, disconnected_tracing,
3671 enable_disable_tracepoints, string_tracing, and
3672 augmented_libraries_svr4_read fields.
3673 (remote_multi_process_p): Move further below in the file.
3674 (struct packet_config): Add comments.
3675 (update_packet_config): Delete function.
3676 (show_packet_config_cmd): Use packet_config_support.
3677 (add_packet_config_cmd): Use NULL as set callback.
3678 (packet_ok): "set remote foo-packet"-style commands no longer
3679 change config->supported -- adjust.
3680 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3681 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3682 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3683 (PACKET_QNonStop, PACKET_multiprocess_feature)
3684 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3685 (PACKET_DisconnectedTracing_feature)
3686 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3687 (set_remote_protocol_packet_cmd): Delete function.
3688 (packet_config_support, packet_support): New functions.
3689 (set_remote_protocol_Z_packet_cmd): Don't call
3690 update_packet_config.
3691 (remote_query_attached, remote_pass_signals)
3692 (remote_program_signals, remote_threads_info)
3693 (remote_threads_extra_info, remote_start_remote): Use
3694 packet_support.
3695 (remote_start_remote): Use packet_config_support and
3696 packet_support.
3697 (init_all_packet_configs): Set all packets to unknown support,
3698 instead of calling update_packet_config.
3699 (remote_check_symbols): Use packet_support.
3700 (remote_supported_packet): Unconditionally set the packet config's
3701 support status.
3702 (remote_multi_process_feature, remote_non_stop_feature)
3703 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3704 (remote_breakpoint_commands_feature)
3705 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3706 (remote_install_in_trace_feature)
3707 (remote_disconnected_tracing_feature)
3708 (remote_enable_disable_tracepoint_feature)
3709 (remote_string_tracing_feature)
3710 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3711 (remote_protocol_features): Adjust to use remote_supported_packet
3712 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3713 "ConditionalTracepoints", "ConditionalBreakpoints",
3714 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3715 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3716 "EnableDisableTracepoints", and "tracenz".
3717 (remote_query_supported): Use packet_support.
3718 (remote_open_1): Adjust.
3719 (extended_remote_attach_1): Use packet_support. Switch on the
3720 result of packet_ok instead of checking whether the packet ended
3721 up disabled.
3722 (remote_vcont_resume): Use packet_support.
3723 (remote_resume, remote_stop_ns, fetch_register_using_p)
3724 (remote_prepare_to_store, store_register_using_P)
3725 (check_binary_download, remote_write_bytes): Use packet_support.
3726 (remote_vkill): Use packet_support. Switch on the result of
3727 packet_ok instead of checking whether the packet ended up
3728 disabled.
3729 (extended_remote_supports_disable_randomization): Use
3730 packet_support.
3731 (extended_remote_run): Switch on the result of packet_ok instead
3732 of checking whether the packet ended up disabled.
3733 (remote_insert_breakpoint, remote_remove_breakpoint)
3734 (remote_insert_watchpoint, remote_remove_watchpoint)
3735 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3736 packet_support.
3737 (remote_search_memory): Use packet_config_support.
3738 (remote_get_thread_local_address, remote_get_tib_address)
3739 (remote_hostio_send_command, remote_can_execute_reverse): Use
3740 packet_support.
3741 (remote_supports_cond_tracepoints)
3742 (remote_supports_cond_breakpoints)
3743 (remote_supports_fast_tracepoints)
3744 (remote_supports_static_tracepoints)
3745 (remote_supports_install_in_trace)
3746 (remote_supports_enable_disable_tracepoint)
3747 (remote_supports_string_tracing)
3748 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3749 the packet config says the feature is enabled or disabled.
3750 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3751 (remote_get_trace_status): Use packet_support.
3752 (remote_set_disconnected_tracing): Adjust to check whether the
3753 feature is enabled with packet_support.
3754 (remote_set_trace_buffer_size, remote_use_agent)
3755 (remote_can_use_agent, remote_supports_btrace): Use
3756 packet_support.
3757 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3758 Use packet_config_support.
3759 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3760 the packet config says the feature is enabled or disabled.
3761 (set_range_stepping): Use packet_support.
3762
bdb52a22
TT
37632014-04-25 Tom Tromey <tromey@redhat.com>
3764
3765 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3766 argument.
3767
e9475ead
SA
37682014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3769
3770 * NEWS: Mention support for C99 variable length arrays.
3771
82eacd52
JB
37722014-04-24 Joel Brobecker <brobecker@adacore.com>
3773
3774 * ada-lang.c (standard_exc): Expand introductory comment.
3775
01f9f808
MS
37762014-04-24 Michael Sturm <michael.sturm@mintel.com>
3777 Walfred Tedeschi <walfred.tedeschi@intel.com>
3778
3779 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3780 AVX512 registers.
3781 (amd64_linux_read_description): Add code to handle AVX512 xstate
3782 mask and return respective tdesc.
3783 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3784 and features/i386/x32-avx512-linux.c.
3785 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3786 (amd64_linux_core_read_description): Add code to handle AVX512
3787 xstate mask and return respective tdesc.
3788 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3789 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3790 calculation.
3791 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3792 (tdesc_amd64_avx512_linux): New prototype.
3793 (tdesc_x32_avx512_linux): Likewise.
3794 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3795 features/i386/x32-avx512.c.
3796 (amd64_ymm_avx512_names): New register names for pseudo
3797 registers YMM16-31.
3798 (amd64_ymmh_avx512_names): New register names for raw registers
3799 YMMH16-31.
3800 (amd64_k_names): New register names for K registers.
3801 (amd64_zmmh_names): New register names for ZMM raw registers.
3802 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3803 (amd64_xmm_avx512_names): New register names for XMM16-31
3804 registers.
3805 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3806 registers.
3807 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3808 if feature is present.
3809 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3810 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3811 (AMD64_NUM_REGS): Adjust to new number of registers.
3812 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3813 registers supplied via XSTATE by AVX512 registers.
3814 (i386_linux_read_description): Add case for AVX512.
3815 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3816 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3817 (i386_linux_core_read_description): Add case for AVX512.
3818 (i386_linux_init_abi): Install supported register note section
3819 for AVX512.
3820 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3821 AVX512.
3822 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3823 registers to be number of zmm7h + 1.
3824 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3825 * i386-tdep.c: Include features/i386/i386-avx512.c.
3826 (i386_zmm_names): Add ZMM pseudo register names array.
3827 (i386_zmmh_names): Add ZMM raw register names array.
3828 (i386_k_names): Add K raw register names array.
3829 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3830 registers. AVX512 has 16 more ZMM registers than there are YMM
3831 registers.
3832 (i386_zmmh_regnum_p): Add function to look up register number of
3833 ZMM raw registers.
3834 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3835 (i386_k_regnum_p): Likewise for K raw registers.
3836 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3837 registers added by AVX512.
3838 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3839 registers added by AVX512.
3840 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3841 added by AVX512.
3842 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3843 (i386_pseudo_register_name): Add ZMM pseudo registers.
3844 (i386_zmm_type): Construct and return vector registers type for ZMM
3845 registers.
3846 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3847 ZMM0-31 pseudo registers and K registers.
3848 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3849 and YMM16-31 registers from register cache.
3850 (i386_pseudo_register_write): Add code to write K, ZMM and
3851 YMM16-31 registers.
3852 (i386_register_reggroup_p): Add code to include/exclude AVX512
3853 registers in/from respective register groups.
3854 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3855 registers if feature is present in xcr0.
3856 (i386_gdbarch_init): Add code to initialize AVX512 feature
3857 variables in tdep structure, wire in pseudo registers and call
3858 initialize_tdesc_i386_avx512.
3859 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3860 variables.
3861 (i386_regnum): Add AVX512 registers.
3862 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3863 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3864 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3865 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3866 512 bits wide.
3867 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3868 (i386_ymm_avx512_regnum_p): Likewise.
3869 (i386_k_regnum_p): Likewise.
3870 (i386_zmm_regnum_p): Likewise.
3871 (i386_zmmh_regnum_p): Likewise.
3872 * i387-tdep.c : Update year in copyright notice.
3873 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3874 XSAVE buffer.
3875 (XSAVE_YMM_AVX512_ADDR): New macro.
3876 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3877 XSAVE buffer.
3878 (XSAVE_XMM_AVX512_ADDR): New macro.
3879 (xsave_avx512_k_offset): New table for K register offsets in
3880 XSAVE buffer.
3881 (XSAVE_AVX512_K_ADDR): New macro.
3882 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3883 in XSAVE buffer.
3884 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3885 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3886 buffer.
3887 (i387_collect_xsave): Add code to collect AVX512 registers from
3888 XSAVE buffer.
3889 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3890 of XMM16-31 registers.
3891 (I387_NUM_K_REGS): New define for number of K registers.
3892 (I387_K0_REGNUM): New define for K0 register number.
3893 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3894 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3895 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3896 registers.
3897 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3898 (I387_XMM16_REGNUM): New define for XMM16 register number.
3899 (I387_YMM0_REGNUM): New define for YMM0 register number.
3900 (I387_KEND_REGNUM): New define for last K register number.
3901 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3902 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3903 number.
3904 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3905 number.
3906 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3907 size.
3908 * features/Makefile: Add AVX512 related files.
3909 * features/i386/32bit-avx512.xml: New file.
3910 * features/i386/64bit-avx512.xml: Likewise.
3911 * features/i386/amd64-avx512-linux.c: Likewise.
3912 * features/i386/amd64-avx512-linux.xml: Likewise.
3913 * features/i386/amd64-avx512.c: Likewise.
3914 * features/i386/amd64-avx512.xml: Likewise.
3915 * features/i386/i386-avx512-linux.c: Likewise.
3916 * features/i386/i386-avx512-linux.xml: Likewise.
3917 * features/i386/i386-avx512.c: Likewise.
3918 * features/i386/i386-avx512.xml: Likewise.
3919 * features/i386/x32-avx512-linux.c: Likewise.
3920 * features/i386/x32-avx512-linux.xml: Likewise.
3921 * features/i386/x32-avx512.c: Likewise.
3922 * features/i386/x32-avx512.xml: Likewise.
3923 * regformats/i386/amd64-avx512-linux.dat: New file.
3924 * regformats/i386/amd64-avx512.dat: Likewise.
3925 * regformats/i386/i386-avx512-linux.dat: Likewise.
3926 * regformats/i386/i386-avx512.dat: Likewise.
3927 * regformats/i386/x32-avx512-linux.dat: Likewise.
3928 * regformats/i386/x32-avx512.dat: Likewise.
3929 * NEWS: Add note about new support for AVX512.
3930
3931
08351840
PA
39322014-04-23 Pedro Alves <palves@redhat.com>
3933
3934 * breakpoint.c (insert_bp_location): Tolerate errors if the
3935 breakpoint is set in a user-loaded objfile.
3936 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3937 location is marked shlib_disabled. If the breakpoint is set in a
3938 user-loaded objfile is a GDB-side memory breakpoint, validate it
3939 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3940 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3941 flag.
3942 * mem-break.c (memory_validate_breakpoint): New function.
3943 * objfiles.c (userloaded_objfile_contains_address_p): New
3944 function.
3945 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3946 * target.h (memory_validate_breakpoint): New declaration.
3947
076855f9
PA
39482014-04-23 Pedro Alves <palves@redhat.com>
3949
3950 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3951 the breakpoint is set in a shared library, only suppress
3952 errors for software breakpoints, not hardware breakpoints.
3953
483805cf
PA
39542014-04-22 Pedro Alves <palves@redhat.com>
3955
3956 * infrun.c (schedlock_applies): New function, factored out from
3957 find_thread_needs_step_over.
3958 (find_thread_needs_step_over): Use it.
3959 (switch_back_to_stepped_thread): Always clear trap_expected if the
3960 step over is finished. Return early if scheduler locking applies.
3961 Look for the stepping thread and a potential step-over thread with
3962 a single loop.
3963 (currently_stepping_or_nexting_callback): Delete.
3964
a75fef0e
NC
39652014-04-22 Nick Clifton <nickc@redhat.com>
3966
3967 * NEWS: Mention that ARM sim now supports tracing.
3968
48b6e87e
YQ
39692014-04-22 Yao Qi <yao@codesourcery.com>
3970
3971 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3972 to ...
3973 * tracefile.c (tracefile_fetch_registers): ... it. New
3974 function.
3975 * tracefile.h (tracefile_fetch_registers): Declare.
3976 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3977 tracefile_fetch_registers.
3978
17617f2d
EZ
39792014-04-19 Eli Zaretskii <eliz@gnu.org>
3980
3981 PR gdb/14018
3982 * windows-nat.c (thread_rec): Don't display a warning when
3983 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3984 fails for any reason, set th->suspended to -1, so that we don't
3985 try to resume such a thread. Also, don't return NULL in these
3986 cases, to avoid completely ruin the session due to "PC register is
3987 not available" error.
3988 (do_windows_fetch_inferior_registers): Check errors in
3989 GetThreadContext call.
3990 (windows_continue): Accept an additional argument KILLED; if not
3991 zero, ignore errors in the SetThreadContext call, since the
3992 inferior was killed and is shutting down.
3993 (windows_resume, get_windows_debug_event)
3994 (windows_create_inferior, windows_mourn_inferior)
3995 (windows_kill_inferior): All callers of windows_continue changed
3996 to adjust to its new calling sequence.
3997
5723a6fd
YQ
39982014-04-19 Yao Qi <yao@codesourcery.com>
3999
4000 * ctf.c (ctf_open): Call post_create_inferior.
4001
614d5099
YQ
40022014-04-19 Yao Qi <yao@codesourcery.com>
4003
4004 * ctf.c (handle_id): New static variable.
4005 (ctf_open_dir): Get handle_id from bt_context_add_trace return
4006 value. Get the declaration of event "register" and get length
4007 of field "contents".
4008
dac3e710
YQ
40092014-04-19 Yao Qi <yao@codesourcery.com>
4010
4011 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4012
2bca57ba
SC
40132014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4014
4015 * valops.c (oload_method_static): Remove unnecessary argument
4016 METHOD. Update all callers.
4017
51d48146
PA
40182014-04-18 Pedro alves <palves@redhat.com>
4019 Tom Tromey <tromey@redhat.com>
4020
4021 PR backtrace/15558
4022 * frame.c (get_prev_frame_1): Rename to ...
4023 (get_prev_frame_always): ... this, and make extern. Adjust.
4024 (skip_artificial_frames): Use get_prev_frame_always.
4025 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4026 (get_frame_unwind_stop_reason): Adjust to rename.
4027 * frame.h (get_prev_frame_always): Declare.
4028 * inline-frame.c: Include frame.h.
4029 (inline_frame_this_id): Use get_prev_frame_always.
4030
1bdad2e0
TG
40312014-04-18 Tristan Gingold <gingold@adacore.com>
4032
4033 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4034 code by using bfd_mach_o_get_base_address.
4035
7ce16bd4
UW
40362014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4037
4038 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4039 (spu_ax_pseudo_register_collect): New function.
4040 (spu_ax_pseudo_register_push_stack): Likewise.
4041 (spu_dwarf_reg_to_regnum): Likewise.
4042 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4043
2ed3c037
UW
40442014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4045
4046 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4047 Replace FRAME argument with FRAME_ID.
4048 * gdbarch.c, gdbarch.h: Regenerate.
4049 * findvar.c (default_value_from_register): Add GDBARCH argument;
4050 replace FRAME by FRAME_ID. No longer call get_frame_id.
4051 (value_from_register): Update call to gdbarch_value_from_register.
4052 * value.h (default_value_from_register): Update prototype.
4053 * s390-linux-tdep.c (s390_value_from_register): Update interface
4054 and call to default_value_from_register.
4055 * spu-tdep.c (spu_value_from_register): Likewise.
4056
4057 * findvar.c (address_from_register): Remove TYPE argument.
4058 Do not call value_from_register; use gdbarch_value_from_register
4059 with null_frame_id instead.
4060 * value.h (address_from_register): Update prototype.
4061 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4062 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4063 address_from_register interface change.
4064
71e50e83
YQ
40652014-04-17 Yao Qi <yao@codesourcery.com>
4066
4067 * gdbtypes.h: Update comments to link to types and macros'
4068 definitions.
4069
7a23c549
SC
40702014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4071
4072 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4073
22869d73
KS
40742014-04-16 Keith Seitz <keiths@redhat.com>
4075
4076 PR gdb/15827
4077 * dwarf2read.c (skip_one_die): Check that all relative-offset
4078 sibling DIEs fall within range of the current reader's buffer.
4079 (read_partial_die): Likewise.
4080
c4f87ca6
KS
40812014-04-16 Keith Seitz <keiths@redhat.com>
4082
4083 PR c++/16597
4084 * cp-namespace.c (lookup_symbol_file): If the type name of
4085 `this' is NULL, return immediately.
4086
b50c8614
KS
40872014-04-14 Keith Seitz <keiths@redhat.com>
4088
4089 PR c++/16253
4090 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4091 from symbol_matches_domain in symtab.c. All local callers
4092 of symbol_matches_domain updated.
4093 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4094 search STRUCT_DOMAIN.
4095 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4096 independently. standard_lookup will do that automatically.
4097 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4098 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4099 (cp_lookup_symbol_in_namespace): Likewise.
4100 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4101 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4102 may return a STRUCT_DOMAIN match.
4103 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4104 * cp-support.c: Include language.h.
4105 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4106 VAR_DOMAIN.
4107 * psymtab.c (match_partial_symbol): Compare the requested
4108 domain with the symbol's domain directly.
4109 (lookup_partial_symbol): Likewise.
4110 * symtab.c (lookup_symbol_in_language): Explain when/why
4111 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4112 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4113 appropriate languages.
4114 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4115 and moved to ada-lang.c
4116 (lookup_block_symbol): Explain that this function only returns
4117 symbol matching the requested DOMAIN.
4118 Compare the requested domain with the symbol's domain directly.
4119 (iterate_over_symbols): Compare the requested domain with the
4120 symbol's domain directly.
4121 * symtab.h (symbol_matches_domain): Remove.
4122
3d567982
TT
41232014-04-14 Tom Tromey <tromey@redhat.com>
4124
4125 PR c++/15246:
4126 * c-exp.y (type_aggregate_p): New function.
4127 (qualified_name, classify_inner_name): Use it.
4128 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4129 and TYPE_TARGET_TYPE of an enum type.
4130 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4131 an enum type.
4132 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4133 handle TYPE_DECLARED_CLASS.
4134 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4135 types.
4136 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4137 * valops.c (enum_constant_from_type): New function.
4138 (value_aggregate_elt): Use it.
4139 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4140 TYPE_CODE_ENUM.
4141
c848d642
TT
41422014-04-14 Tom Tromey <tromey@redhat.com>
4143
4144 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4145 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4146 const.
4147 * value.h (value_aggregate_elt): Update.
4148
0626fc76
TT
41492014-04-14 Tom Tromey <tromey@redhat.com>
4150
4151 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4152
5ecaaa66
SA
41532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4154
4155 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4156 (evaluate_subexp_standard): Pass noside argument.
4157 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4158 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4159 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4160 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4161 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4162
1612e0c0
SA
41632014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4164
4165 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4166 points to a constant blob.
4167
c451ebe5
SA
41682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4169
4170 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4171 property and store it as the high bound and flag the range accordingly.
4172 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4173 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4174 * gdbtypes.h (enum range_flags): New enum.
4175 (struct range_bounds): Add flags member.
4176
1d42e4c4
SA
41772014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4178
4179 * c-typeprint.c (c_type_print_varspec_suffix): Added
4180 check for not yet resolved high bound. If unresolved, print
4181 "variable length" string to the console instead of random
4182 length.
4183
9f1f738a
SA
41842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4185
4186 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4187 value.
4188 (ada_template_to_fixed_record_type_1): Likewise.
4189 (ada_to_fixed_type_1): Likewise.
4190 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4191 (cp_print_value): Likewise.
4192 * d-valprint.c (dynamic_array_type): Likewise.
4193 * findvar.c (address_of_variable): Likewise.
4194 * jv-valprint.c (java_value_print): Likewise.
4195 * valops.c (value_ind): Likewise.
4196 * value.c (coerce_ref): Likewise.
4197
3c8452d4
SA
41982014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4199
4200 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4201 value and retrieve the dynamic type size.
4202
4ad88275
SA
42032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4204
4205 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4206 passed to sizeof is dynamic evaluate the argument to compute the length.
4207
80180f79
SA
42082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4209 Joel Brobecker <brobecker@adacore.com>
4210
4211 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4212 (dwarf2_evaluate_property): New function.
4213 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4214 * dwarf2read.c (attr_to_dynamic_prop): New function.
4215 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4216 attribute.
4217 * gdbtypes.c: Include dwarf2loc.h.
4218 (is_dynamic_type): New function.
4219 (resolve_dynamic_type): New function.
4220 (resolve_dynamic_bounds): New function.
4221 (get_type_length): New function.
4222 (check_typedef): Use get_type_length to compute type length.
4223 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4224 (TYPE_LOW_BOUND_KIND): New macro.
4225 (is_dynamic_type): New function prototype.
4226 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4227 to resolve dynamic properties of the type. Update comment.
4228 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4229
a1556843
RH
42302014-04-14 Richard Henderson <rth@redhat.com>
4231
4232 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4233
0be03e84
DE
42342014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4235 Doug Evans <xdje42@gmail.com>
4236
4237 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4238 dereference TYPE_CODE_REF values.
4239
6b662e19
JB
42402014-04-11 Joel Brobecker <brobecker@adacore.com>
4241
4242 Revert the following changes due to regressions:
4243
4244 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4245 (dwarf2_evaluate_property): New function.
4246 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4247 * dwarf2read.c (attr_to_dynamic_prop): New function.
4248 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4249 attribute.
4250 * gdbtypes.c: Include dwarf2loc.h.
4251 (is_dynamic_type): New function.
4252 (resolve_dynamic_type): New function.
4253 (resolve_dynamic_bounds): New function.
4254 (get_type_length): New function.
4255 (check_typedef): Use get_type_length to compute type length.
4256 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4257 (TYPE_LOW_BOUND_KIND): New macro.
4258 (is_dynamic_type): New function prototype.
4259 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4260 to resolve dynamic properties of the type. Update comment.
4261 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4262
4263 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4264 passed to sizeof is dynamic evaluate the argument to compute the length.
4265
4266 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4267 value and retrieve the dynamic type size.
4268
4269 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4270 (ada_template_to_fixed_record_type_1): Likewise.
4271 (ada_to_fixed_type_1): Likewise.
4272 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4273 (cp_print_value): Likewise.
4274 * d-valprint.c (dynamic_array_type): Likewise.
4275 * eval.c (evaluate_subexp_with_coercion): Likewise.
4276 * findvar.c (address_of_variable): Likewise.
4277 * jv-valprint.c (java_value_print): Likewise.
4278 * valops.c (value_ind): Likewise.
4279 * value.c (coerce_ref): Likewise.
4280
4281 * c-typeprint.c (c_type_print_varspec_suffix): Added
4282 check for not yet resolved high bound. If unresolved, print
4283 "variable length" string to the console instead of random
4284 length.
4285
4286 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4287 property and store it as the high bound and flag the range accordingly.
4288 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4289 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4290 * gdbtypes.h (enum range_flags): New enum.
4291 (struct range_bounds): Add flags member.
4292
4293 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4294 points to a constant blob.
4295
4296 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4297 (evaluate_subexp_standard): Pass noside argument.
4298 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4299 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4300 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4301 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4302 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4303
245a5f0b
KS
43042014-04-11 Keith Seitz <keiths@redhat.com>
4305
4306 PR c++/16675
4307 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4308 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4309 reference types.
4310
3bce8237
SA
43112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4312
4313 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4314 (evaluate_subexp_standard): Pass noside argument.
4315 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4316 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4317 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4318 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4319 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4320
92b09522
SA
43212014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4322
4323 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4324 points to a constant blob.
4325
e1969afb
SA
43262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4327
4328 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4329 property and store it as the high bound and flag the range accordingly.
4330 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4331 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4332 * gdbtypes.h (enum range_flags): New enum.
4333 (struct range_bounds): Add flags member.
4334
b86138fb
SA
43352014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4336
4337 * c-typeprint.c (c_type_print_varspec_suffix): Added
4338 check for not yet resolved high bound. If unresolved, print
4339 "variable length" string to the console instead of random
4340 length.
4341
bcd629a4
SA
43422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4343
4344 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4345 (ada_template_to_fixed_record_type_1): Likewise.
4346 (ada_to_fixed_type_1): Likewise.
4347 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4348 (cp_print_value): Likewise.
4349 * d-valprint.c (dynamic_array_type): Likewise.
4350 * eval.c (evaluate_subexp_with_coercion): Likewise.
4351 * findvar.c (address_of_variable): Likewise.
4352 * jv-valprint.c (java_value_print): Likewise.
4353 * valops.c (value_ind): Likewise.
4354 * value.c (coerce_ref): Likewise.
4355
04b19544
SA
43562014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4357
4358 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4359 value and retrieve the dynamic type size.
4360
26cb189f
SA
43612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4362
4363 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4364 passed to sizeof is dynamic evaluate the argument to compute the length.
4365
37c1ab67
SA
43662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4367
4368 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4369 (dwarf2_evaluate_property): New function.
4370 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4371 * dwarf2read.c (attr_to_dynamic_prop): New function.
4372 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4373 attribute.
4374 * gdbtypes.c: Include dwarf2loc.h.
4375 (is_dynamic_type): New function.
4376 (resolve_dynamic_type): New function.
4377 (resolve_dynamic_bounds): New function.
4378 (get_type_length): New function.
4379 (check_typedef): Use get_type_length to compute type length.
4380 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4381 (TYPE_LOW_BOUND_KIND): New macro.
4382 (is_dynamic_type): New function prototype.
4383 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4384 to resolve dynamic properties of the type. Update comment.
4385 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4386
729efb13
SA
43872014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4388
4389 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4390 declaring high/low bounds and change uses accordingly. Call
4391 create_range_type instead of create_static_range_type.
4392 * gdbtypes.c (create_range_type): New function.
4393 (create_range_type): Convert bounds into struct bound_prop and pass
4394 them to create_range_type.
4395 * gdbtypes.h (struct bound_prop): New struct.
4396 (create_range_type): New function prototype.
4397 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4398 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4399 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4400 part of the bound.
4401 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4402
0c9c3474
SA
44032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4404
4405 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4406 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4407 * ada-lang.c: All uses of create_range_type updated.
4408 * coffread.c: All uses of create_range_type updated.
4409 * dwarf2read.c: All uses of create_range_type updated.
4410 * f-exp.y: All uses of create_range_type updated.
4411 * m2-valprint.c: All uses of create_range_type updated.
4412 * mdebugread.c: All uses of create_range_type updated.
4413 * stabsread.c: All uses of create_range_type updated.
4414 * valops.c: All uses of create_range_type updated.
4415 * valprint.c: All uses of create_range_type updated.
4416
9d497a19
PA
44172014-04-10 Pedro Alves <palves@redhat.com>
4418
4419 * breakpoint.c (single_step_breakpoints)
4420 (single_step_gdbarch): Move up in the file.
4421 (one_breakpoint_xfer_memory): New function, factored out from ...
4422 (breakpoint_xfer_memory): ... here. Also process single-step
4423 breakpoints.
4424
15a9128a
TG
44252014-04-09 Tristan Gingold <gingold@adacore.com>
4426
4427 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4428 comments.
4429 (darwin_decode_exception_message): Free port only after use.
4430
9c97a070
PL
44312014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4432
4433 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4434 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4435 when setting the size of call_length.
4436
7af389b8
SC
44372014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4438
4439 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4440 dereference TYPE_CODE_REF values.
4441
86ad98c3
JB
44422014-04-07 Joel Brobecker <brobecker@adacore.com>
4443
4444 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4445 end of warning message.
4446
b0aeadb3
DE
44472014-04-03 Doug Evans <dje@google.com>
4448
4449 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4450 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4451
5979d6b6
AM
44522014-04-02 Alan Modra <amodra@gmail.com>
4453
4454 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4455 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4456 (struct symbol_file_add_from_memory_args): Add size field.
4457 (find_vdso_size): New function.
4458 (add_vsyscall_page): Attempt to find vdso size.
4459
0d60c288
DE
44602014-04-01 Doug Evans <dje@google.com>
4461
4462 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4463
a41f2563
TG
44642014-04-01 Tristan Gingold <gingold@adacore.com>
4465
4466 * darwin-nat.c (darwin_encode_reply): Add prototype.
4467 (darwin_decode_exception_message): Reply to unknown inferiors.
4468 (darwin_decode_message): Handle message by id. Ignore message
4469 to unknown inferior.
4470 (darwin_wait): Discard unknown messages, add debug trace.
4471
11a865c8
DE
44722014-03-31 Doug Evans <dje@google.com>
4473
4474 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4475 comp_dir_string.
4476
770e7fc7
DE
44772014-03-31 Doug Evans <dje@google.com>
4478
4479 New option "set print symbol-loading".
4480 * NEWS: Mention it.
4481 * solib.c (solib_read_symbols): Only print symbol loading messages
4482 if requested.
4483 (solib_add): If symbol loading is in "brief" mode, notify user
4484 symbols are being loaded.
4485 (reload_shared_libraries_1): Ditto.
4486 * symfile.c (print_symbol_loading_off): New static global.
4487 (print_symbol_loading_brief): New static global.
4488 (print_symbol_loading_full): New static global.
4489 (print_symbol_loading_enums): New static global.
4490 (print_symbol_loading): New static global.
4491 (print_symbol_loading_p): New function.
4492 (symbol_file_add_with_addrs): Only print symbol loading messages
4493 if requested.
4494 (_initialize_symfile): Register "print symbol-loading" set/show
4495 command.
4496 * symfile.h (print_symbol_loading_p): Declare.
4497
c32c64b7
DE
44982014-03-30 Doug Evans <xdje42@gmail.com>
4499
4500 * infrun.c (set_last_target_status): New function.
4501 (handle_inferior_event): Call it.
4502
7c0bc051
DE
45032014-03-30 Doug Evans <xdje42@gmail.com>
4504
4505 * inferior.h (enum stop_kind): Improve comment.
4506
8776cfe9
JB
45072014-03-28 Joel Brobecker <brobecker@adacore.com>
4508
4509 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4510 a reference, strip the reference layer before calling
4511 the lang_ops value_has_mutated callback.
4512
410a0ff2
SDJ
45132014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4514
4515 Remove some globals from our parser.
4516 * language.c (unk_lang_parser): Add "struct parser_state"
4517 argument.
4518 * language.h (struct language_defn) <la_parser>: Likewise.
4519 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4520 (initialize_expout): Add "struct parser_state" argument.
4521 Rewrite function to use the parser state.
4522 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4523 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4524 write_exp_elt_longcst, write_exp_elt_dblcst,
4525 write_exp_elt_decfloatcst, write_exp_elt_type,
4526 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4527 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4528 write_dollar_variable): Likewise.
4529 (parse_exp_in_context_1): Use parser state.
4530 (insert_type_address_space): Add "struct parser_state" argument.
4531 Use parser state.
4532 (increase_expout_size): New function.
4533 * parser-defs.h: Forward declare "struct language_defn" and
4534 "struct parser_state".
4535 (expout, expout_size, expout_ptr): Remove extern declarations.
4536 (parse_gdbarch, parse_language): Rewrite macro declarations to
4537 accept the parser state.
4538 (struct parser_state): New struct.
4539 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4540 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4541 write_exp_elt_decfloatcst, write_exp_elt_type,
4542 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4543 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4544 write_exp_msymbol, write_dollar_variable,
4545 mark_struct_expression, insert_type_address_space): Add "struct
4546 parser_state" argument.
4547 (increase_expout_size): New function.
4548 * utils.c (do_clear_parser_state): New function.
4549 (make_cleanup_clear_parser_state): Likewise.
4550 * utils.h (make_cleanup_clear_parser_state): New function
4551 prototype.
4552 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4553 Update calls to write_exp* in order to pass the parser state.
4554 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4555 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4556 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4557 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4558 * stap-probe.c (stap_parse_register_operand): Likewise.
4559 (stap_parse_single_operand): Likewise.
4560 (stap_parse_argument_1): Likewise.
4561 (stap_parse_argument): Use parser state.
4562 * stap-probe.h: Include "parser-defs.h".
4563 (struct stap_parse_info) <pstate>: New field.
4564 * c-exp.y (parse_type): Rewrite to use parser state.
4565 (yyparse): Redefine to c_parse_internal.
4566 (pstate): New global variable.
4567 (parse_number): Add "struct parser_state" argument.
4568 (write_destructor_name): Likewise.
4569 (type_exp): Update calls to write_exp* and similars in order to
4570 use parser state.
4571 (exp1, exp, variable, qualified_name, space_identifier,
4572 typename, typebase): Likewise.
4573 (write_destructor_name, parse_number, lex_one_token,
4574 classify_name, classify_inner_name, c_parse): Add "struct
4575 parser_state" argument. Update function to use parser state.
4576 * c-lang.h: Forward declare "struct parser_state".
4577 (c_parse): Add "struct parser_state" argument.
4578 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4579 (yyparse): Redefine macro to ada_parse_internal.
4580 (pstate): New variable.
4581 (write_int, write_object_renaming, write_var_or_type,
4582 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4583 type_int, type_long, type_long_long, type_float, type_double,
4584 type_long_double, type_char, type_boolean, type_system_address):
4585 Add "struct parser_state" argument.
4586 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4587 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4588 var_or_type, aggregate, aggregate_component_list,
4589 positional_list, others, component_group,
4590 component_associations): Update calls to write_exp* and similar
4591 functions in order to use parser state.
4592 (ada_parse, write_var_from_sym, write_int,
4593 write_exp_op_with_string, write_object_renaming,
4594 find_primitive_type, write_selectors, write_ambiguous_var,
4595 write_var_or_type, write_name_assoc, type_int, type_long,
4596 type_long_long, type_float, type_double, type_long_double,
4597 type_char, type_boolean, type_system_address): Add "struct
4598 parser_state" argument. Adjust function to use parser state.
4599 * ada-lang.c (parse): Likewise.
4600 * ada-lang.h: Forward declare "struct parser_state".
4601 (ada_parse): Add "struct parser_state" argument.
4602 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4603 calls to both functions.
4604 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4605 parser state.
4606 (yyparse): Redefine macro to f_parse_internal.
4607 (pstate): New variable.
4608 (parse_number): Add "struct parser_state" argument.
4609 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4610 and similars in order to use parser state.
4611 (parse_number): Adjust code to use parser state.
4612 (yylex): Likewise.
4613 (f_parse): New function.
4614 * f-lang.h: Forward declare "struct parser_state".
4615 (f_parse): Add "struct parser_state" argument.
4616 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4617 parser state.
4618 (yyparse): Redefine macro for java_parse_internal.
4619 (pstate): New variable.
4620 (push_expression_name, push_expression_name, insert_exp): Add
4621 "struct parser_state" argument.
4622 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4623 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4624 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4625 PostIncrementExpression, PostDecrementExpression,
4626 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4627 UnaryExpressionNotPlusMinus, CastExpression,
4628 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4629 RelationalExpression, EqualityExpression, AndExpression,
4630 ExclusiveOrExpression, InclusiveOrExpression,
4631 ConditionalAndExpression, ConditionalOrExpression,
4632 ConditionalExpression, Assignment, LeftHandSide): Update
4633 calls to write_exp* and similars in order to use parser state.
4634 (parse_number): Ajust code to use parser state.
4635 (yylex): Likewise.
4636 (java_parse): New function.
4637 (push_variable): Add "struct parser_state" argument. Adjust
4638 code to user parser state.
4639 (push_fieldnames, push_qualified_expression_name,
4640 push_expression_name, insert_exp): Likewise.
4641 * jv-lang.h: Forward declare "struct parser_state".
4642 (java_parse): Add "struct parser_state" argument.
4643 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4644 parser state.
4645 (yyparse): Redefine macro to m2_parse_internal.
4646 (pstate): New variable.
4647 (type_exp, exp, fblock, variable, type): Update calls to
4648 write_exp* and similars to use parser state.
4649 (yylex): Likewise.
4650 (m2_parse): New function.
4651 * m2-lang.h: Forward declare "struct parser_state".
4652 (m2_parse): Add "struct parser_state" argument.
4653 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4654 * objc-lang.h: Forward declare "struct parser_state".
4655 (end_msglist): Add "struct parser_state" argument.
4656 * p-exp.y (parse_type): Rewrite macro to use parser state.
4657 (yyparse): Redefine macro to pascal_parse_internal.
4658 (pstate): New variable.
4659 (parse_number): Add "struct parser_state" argument.
4660 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4661 write_exp* and similars in order to use parser state.
4662 (parse_number, yylex): Adjust code to use parser state.
4663 (pascal_parse): New function.
4664 * p-lang.h: Forward declare "struct parser_state".
4665 (pascal_parse): Add "struct parser_state" argument.
4666 * go-exp.y (parse_type): Rewrite macro to use parser state.
4667 (yyparse): Redefine macro to go_parse_internal.
4668 (pstate): New variable.
4669 (parse_number): Add "struct parser_state" argument.
4670 (type_exp, exp1, exp, variable, type): Update calls to
4671 write_exp* and similars in order to use parser state.
4672 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4673 to use parser state.
4674 (go_parse): Likewise.
4675 * go-lang.h: Forward declare "struct parser_state".
4676 (go_parse): Add "struct parser_state" argument.
4677
342587c4
DE
46782014-03-27 Doug Evans <dje@google.com>
4679
4680 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4681
33e80786
DE
46822014-03-27 Doug Evans <dje@google.com>
4683
4684 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4685 Remove argument abbrev_section. All callers updated.
4686
1dbab08b
DE
46872014-03-27 Doug Evans <dje@google.com>
4688
4689 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4690 addr_base, ranges_base.
4691
318d3177
KS
46922014-03-26 Keith Seitz <keiths@redhat.com>
4693
4694 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4695 types, not VAR_DOMAIN.
4696
1e54db15
SL
46972014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4698
4699 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4700 "ra" registers.
4701 * features/nios2-linux.c: Regenerated.
4702 * features/nios2.c: Regenerated.
4703
d3839ede
PA
47042014-03-25 Pedro Alves <palves@redhat.com>
4705
4706 * cli/cli-script.c (script_from_file): Force the interpreter to
4707 sync mode.
4708
7588d2ec
PL
47092014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4710
4711 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4712 small stack allocation.
4713
a6290449
TG
47142014-03-24 Tristan Gingold <gingold@adacore.com>
4715
4716 * darwin-nat.c (exc_server): Remove unused prototype.
4717 (darwin_dump_message): Correctly display data on x86_64.
4718 (darwin_encode_reply): Fix style.
4719 Add comments and fix indentation.
4720
31ae9d24 47212014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
4722
4723 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4724
6339bfc4
DE
47252014-03-22 Doug Evans <xdje42@gmail.com>
4726
4727 * infcmd.c: Whitespace fixes.
4728 (interrupt_command): Merge two function comments into one.
4729
0a07590b
DE
47302014-03-22 Doug Evans <xdje42@gmail.com>
4731
4732 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4733 All uses updated.
4734
b55fbac4
YQ
47352014-03-22 Yao Qi <yao@codesourcery.com>
4736
4737 * remote.c (target_read_live_memory): Remove.
4738 (memory_xfer_live_readonly_partial): Rename it to
4739 remote_xfer_live_readonly_partial. Remove argument 'object'.
4740 All callers updated. Call remote_read_bytes_1
4741 instead of target_read_live_memory.
4742 * tracepoint.c (set_traceframe_number): Remove.
4743 (make_cleanup_restore_traceframe_number): Likewise .
4744 * tracepoint.h (set_traceframe_number): Remove declaration.
4745 (make_cleanup_restore_traceframe_number): Likewise.
4746
9217e74e
YQ
47472014-03-22 Yao Qi <yao@codesourcery.com>
4748
4749 * remote.c (remote_read_bytes): Move code on reading from the
4750 remote stub to ...
4751 (remote_read_bytes_1): ... here. New function.
4752
8acf9577
YQ
47532014-03-22 Yao Qi <yao@codesourcery.com>
4754
4755 * ctf.c (ctf_xfer_partial): Check the return value of
4756 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4757 return TARGET_XFER_UNAVAILABLE.
4758 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4759 * target.c (target_read_live_memory): Move it to remote.c.
4760 (memory_xfer_live_readonly_partial): Likewise.
4761 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4762 * remote.c (target_read_live_memory): Moved from target.c.
4763 (memory_xfer_live_readonly_partial): Likewise.
4764 (remote_read_bytes): Factored out from
4765 memory_xfer_partial_1.
4766
feef67ab
DE
47672014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4768
4769 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4770 NULL pointer.
4771
b65dc60b
PA
47722014-03-21 Pedro Alves <palves@redhat.com>
4773
4774 * infrun.c (normal_stop): Extend comment.
4775
b4ab256d
HZ
47762014-03-21 Hui Zhu <hui@codesourcery.com>
4777 Pedro Alves <palves@redhat.com>
4778
4779 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4780 static buffer.
4781 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4782 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4783 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4784
deba7593
MR
47852014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4786
4787 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4788 `z' formatted output modifier.
4789
1bff71c3
SDJ
47902014-03-20 Tom Tromey <tromey@redhat.com>
4791 Sergio Durigan Junior <sergiodj@redhat.com>
4792
4793 * probe.c (parse_probes): Turn assert into an ordinary error.
4794 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4795 exceptions when parsing probes. Rearrange the code for clarity.
4796
90e28950
TT
47972014-03-20 Tom Tromey <tromey@redhat.com>
4798
4799 PR gdb/14135
4800 * top.c (execute_command): Only dispatch events if the command
4801 started the target.
4802
beb460e8
PA
48032014-03-20 Tom Tromey <tromey@redhat.com>
4804
4805 PR cli/15718
4806 * infcall.c: Include event-top.h.
4807 (run_inferior_call): Call async_disable_stdin if needed.
4808
99619bea
PA
48092014-03-20 Pedro Alves <palves@redhat.com>
4810
4811 * infrun.c (prepare_to_proceed): Delete.
4812 (thread_still_needs_step_over): New function.
4813 (find_thread_needs_step_over): New function.
4814 (proceed): If the current thread needs a step-over, set its
4815 steping_over_breakpoint flag. Adjust to use
4816 find_thread_needs_step_over instead of prepare_to_proceed.
4817 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4818 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4819 breakpoint.
4820 (switch_back_to_stepped_thread): Step over breakpoints of all
4821 threads not the stepping thread, before switching back to the
4822 stepping thread.
4823
2adfaa28
PA
48242014-03-20 Pedro Alves <palves@redhat.com>
4825
4826 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4827 extern.
4828 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4829 * infrun.c (saved_singlestep_ptid)
4830 (stepping_past_singlestep_breakpoint): Delete.
4831 (resume): Remove stepping_past_singlestep_breakpoint handling.
4832 (proceed): Store the prev_pc of the stepping thread too.
4833 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4834 singlestep_pc.
4835 (enum infwait_states): Delete infwait_thread_hop_state.
4836 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4837 field.
4838 (handle_inferior_event): Adjust.
4839 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4840 handling and the thread-hop code. Before removing single-step
4841 breakpoints, check whether the thread hit a single-step breakpoint
4842 of another thread. If it did, the trap is not a random signal.
4843 (switch_back_to_stepped_thread): If the event thread hit a
4844 single-step breakpoint, unblock it before switching to the
4845 stepping thread. Handle the case of the stepped thread having
4846 advanced already.
4847 (keep_going): Handle the case of the current thread moving past a
4848 single-step breakpoint.
4849
31e77af2
PA
48502014-03-20 Pedro Alves <palves@redhat.com>
4851
4852 PR breakpoints/7143
4853 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4854 are being stepped over.
4855 (breakpoint_address_match): Make extern.
4856 * breakpoint.h (breakpoint_address_match): New declaration.
4857 * inferior.h (stepping_past_instruction_at): New declaration.
4858 * infrun.c (struct step_over_info): New type.
4859 (step_over_info): New global.
4860 (set_step_over_info, clear_step_over_info)
4861 (stepping_past_instruction_at): New functions.
4862 (handle_inferior_event): Clear the step-over info when
4863 trap_expected is cleared.
4864 (resume): Remove now stale comment.
4865 (clear_proceed_status): Clear step-over info.
4866 (proceed): Adjust step-over handling to set or clear the step-over
4867 info instead of removing all breakpoints.
4868 (handle_signal_stop): When setting up a thread-hop, don't remove
4869 breakpoints here.
4870 (stop_stepping): Clear step-over info.
4871 (keep_going): Adjust step-over handling to set or clear step-over
4872 info and then always inserting breakpoints, instead of removing
4873 all breakpoints when stepping over one.
4874
b9f437de
PA
48752014-03-20 Pedro Alves <palves@redhat.com>
4876
4877 * infrun.c (previous_inferior_ptid): Adjust comment.
4878 (deferred_step_ptid): Delete.
4879 (infrun_thread_ptid_changed, prepare_to_proceed)
4880 (init_wait_for_inferior): Adjust.
4881 (handle_signal_stop): Delete deferred_step_ptid handling.
4882
06c868a8
JK
48832014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4884
4885 PR gdb/15358
4886 * defs.h (sync_quit_force_run): New declaration.
4887 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4888 * event-top.c (async_sigterm_handler): New declaration.
4889 (async_sigterm_token): New variable.
4890 (async_init_signals): Create also async_sigterm_token.
4891 (async_sigterm_handler): New function.
4892 (sync_quit_force_run): New variable.
4893 (handle_sigterm): Replace quit_force call by other calls.
4894 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4895
dea80df0
MR
48962014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4897
4898 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4899 offset into SPE pseudo registers.
4900
0c7e1a46
PA
49012014-03-18 Pedro Alves <palves@redhat.com>
4902
4903 PR gdb/13860
4904 * inferior.h (print_stop_event): Declare.
4905 * infrun.c (print_stop_event): New, factored out from ...
4906 (normal_stop): ... this.
4907 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4908 of bpstat_print/print_stack_frame.
4909
9c1fcd01
TT
49102014-03-17 Tom Tromey <tromey@redhat.com>
4911
4912 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4913
11aa919a
PMR
49142014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4915
4916 * ada-lang.c (decode_constrained_packed_array): Perform a
4917 minimal coercion for reference with coerce_ref instead of
4918 ada_coerce_ref.
4919
d4ccb5e0
TG
49202014-03-17 Tristan Gingold <gingold@adacore.com>
4921
4922 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4923 (darwin_solib_create_inferior_hook): Emit a warning if version
4924 is unhandled.
4925
49840f2a
UW
49262014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
4927
4928 * python/py-value.c (get_field_flag): Cast flag_name argument to
4929 PyObject_GetAttrString to support Python 2.4.
4930
ed4123e5
JK
49312014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4932
4933 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4934 (Global Maintainers): Remove Jan Kratochvil.
4935
d6b64346
PA
49362014-03-14 Pedro Alves <palves@redhat.com>
4937
4938 * inferior.h (terminal_ours_for_output): Rename to ...
4939 (child_terminal_ours_for_output): ... this.
4940 (terminal_save_ours): Rename to ...
4941 (child_terminal_save_ours): ... this.
4942 (terminal_ours): Rename to ...
4943 (child_terminal_ours): ... this.
4944 (terminal_inferior): Rename to ...
4945 (child_terminal_inferior): ... this.
4946 (terminal_init_inferior): Rename to ...
4947 (child_terminal_init_inferior): ... this.
4948 (terminal_init_inferior_with_pgrp): Rename to ...
4949 (child_terminal_init_inferior_with_pgrp): ... this.
4950 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4951 (child_terminal_init_with_pgrp): ... this.
4952 (terminal_save_ours): Rename to ...
4953 (child_terminal_save_ours): ... this.
4954 (terminal_init_inferior): Rename to ...
4955 (child_terminal_init): ... this. Adjust.
4956 (terminal_inferior): Rename to ...
4957 (child_terminal_inferior): ... this.
4958 (terminal_ours_for_output): Rename to ...
4959 (child_terminal_ours_for_output): ... this. Adjust.
4960 (terminal_ours): Rename to ...
4961 (child_terminal_ours): ... this.
4962 (terminal_ours_1): Rename to ...
4963 (child_terminal_ours_1): ... this. Adjust.
4964 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4965 * windows-nat.c (do_initial_windows_stuff): Adjust.
4966 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4967 (gnu_terminal_init): ... this. Adjust.
4968 (gnu_target): Adjust.
4969 * inf-child.c (inf_child_target): Adjust.
4970
5a1e8c7a
DE
49712014-03-13 Doug Evans <xdje42@gmail.com>
4972
4973 PR guile/16612
4974 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4975 new eq?-hashtab.
4976
350e1a76
DE
49772014-03-13 Doug Evans <xdje42@gmail.com>
4978
4979 * value.c (record_latest_value): Call release_value_or_incref
4980 instead of release_value.
4981
a69900ae
PA
49822014-03-13 Pedro Alves <palves@redhat.com>
4983
4984 * procfs.c (procfs_target): Don't override to_shortname,
4985 to_longname or to_doc.
4986
5db9f0bd
PA
49872014-03-13 Pedro Alves <palves@redhat.com>
4988
4989 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4990 Unix in user visible strings.
4991
5e3a2c38
SS
49922014-03-12 Stan Shebs <stan@codesourcery.com>
4993
4994 * gdbtypes.h: Annotate comments for Doxygen, add a page
4995 block comment with some general info.
4996
8bc2fe48
PA
49972014-03-12 Pedro Alves <palves@redhat.com>
4998
4999 * infcmd.c (prepare_execution_command): New function, factored out
5000 from several execution commands.
5001 (run_command_1, continue_command, step_1, jump_command)
5002 (signal_command, until_command, advance_command, finish_command)
5003 (attach_command): Use prepare_execution_command.
5004
638c5f49
OJ
50052014-03-12 Omair Javaid <omair.javaid@linaro.org>
5006
5007 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
5008 (MAX_BPTS): Define.
5009 (MAX_WPTS): Define.
5010 (struct arm_linux_thread_points): Removed.
5011 (struct arm_linux_process_info): New.
5012 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5013 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5014 (arm_linux_find_breakpoints_by_tid): Removed.
5015 (struct arch_lwp_info): New.
5016 (arm_linux_find_process_pid): New functions.
5017 (arm_linux_add_process): New functions.
5018 (arm_linux_process_info_get): New functions.
5019 (arm_linux_forget_process): New function.
5020 (arm_linux_get_debug_reg_state): New function.
5021 (struct update_registers_data): New.
5022 (update_registers_callback): New function.
5023 (arm_linux_insert_hw_breakpoint1): Updated.
5024 (arm_linux_remove_hw_breakpoint1): Updated.
5025 (arm_linux_insert_hw_breakpoint): Updated.
5026 (arm_linux_remove_hw_breakpoint): Updated.
5027 (arm_linux_insert_watchpoint): Updated.
5028 (arm_linux_remove_watchpoint): Updated.
5029 (arm_linux_new_thread): Updated.
5030 (arm_linux_prepare_to_resume): New function.
5031 (arm_linux_new_fork): New function.
5032 (_initialize_arm_linux_nat): Updated.
5033
6d03af93
PA
50342014-03-12 Pedro Alves <palves@redhat.com>
5035
5036 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5037
b3ccfe11
TT
50382014-03-12 Tom Tromey <tromey@redhat.com>
5039
5040 * inf-child.c (return_zero): New function.
5041 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5042 * aix-thread.c (aix_thread_inferior_created): New function.
5043 (aix_thread_attach): Remove.
5044 (init_aix_thread_ops): Don't set to_attach.
5045 (_initialize_aix_thread): Register inferior_created observer.
5046 * corelow.c (init_core_ops): Don't set to_attach or
5047 to_create_inferior.
5048 * exec.c (init_exec_ops): Don't set to_attach or
5049 to_create_inferior.
5050 * infcmd.c (run_command_1): Use find_run_target. Make direct
5051 target calls.
5052 (attach_command): Use find_attach_target. Make direct target
5053 calls.
5054 * record-btrace.c (init_record_btrace_ops): Don't set
5055 to_create_inferior.
5056 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5057 Remove.
5058 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5059 set to_create_inferior.
5060 * target.c (complete_target_initialization): Add assertion.
5061 (target_create_inferior): Remove.
5062 (find_default_attach, find_default_create_inferior): Remove.
5063 (find_attach_target, find_run_target): New functions.
5064 (find_default_is_async_p, find_default_can_async_p)
5065 (target_supports_non_stop, target_attach): Remove.
5066 (init_dummy_target): Don't set to_create_inferior or
5067 to_supports_non_stop.
5068 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5069 TARGET_DEFAULT_FUNC.
5070 <to_create_inferior>: Add comment.
5071 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5072 TARGET_DEFAULT_RETURN.
5073 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5074 (find_attach_target, find_run_target): Declare.
5075 (target_create_inferior): Remove.
5076 (target_has_execution_1): Update comment.
5077 (target_supports_non_stop): Remove.
5078 * target-delegates.c: Rebuild.
5079
91f83b02
PA
50802014-03-12 Pedro Alves <palves@redhat.com>
5081
5082 * inf-child.h: Update comment to not mention Unix.
5083
f1aea813
PA
50842014-03-12 Pedro Alves <palves@redhat.com>
5085
5086 * inf-child.c: Update top comment to not mention Unix. Add
5087 generic comment describing how this target is meant to be used.
5088 (inf_child_post_attach, inf_child_post_startup_inferior)
5089 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5090 Unix in comment.
5091
ee8e9165
PA
50922014-03-12 Pedro Alves <palves@redhat.com>
5093
5094 * nto-procfs.c: Include inf-child.h.
5095 (procfs_ops): Delete global.
5096 (procfs_can_run): Delete method.
5097 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5098 target pointer instead of referencing procfs_ops.
5099 (procfs_prepare_to_store): Delete.
5100 (init_procfs_ops): Delete function.
5101 (procfs_target): New function, based on init_procfs_ops, but
5102 inherit inf_child_target.
5103 (_initialize_procfs): Use procfs_target.
5104
51a9c8c5
PA
51052014-03-12 Pedro Alves <palves@redhat.com>
5106
5107 * windows-nat.c: Include inf-child.h.
5108 (windows_ops): Delete global.
5109 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5110 methods.
5111 (init_windows_ops): Delete function.
5112 (windows_target): New function, based on init_windows_ops, but
5113 inherit inf_child_target.
5114 (_initialize_windows_nat): Use windows_target. Install x86
5115 specific target methods here.
5116
c1966e26
DE
51172014-03-10 Doug Evans <xdje42@gmail.com>
5118
5119 * guile/guile.c (call_initialize_gdb_module): New function.
5120 (initialize_guile): Replace call to scm_init_guile with call to
5121 scm_with_guile.
5122
023db19c
JB
51232014-03-10 Joel Brobecker <brobecker@adacore.com>
5124
5125 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5126 in call to TYPE_CODE macro.
5127
5ec18f2b
JG
51282014-03-10 Jerome Guitton <guitton@adacore.com>
5129
8668be63
JB
5130 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5131 Resolve tagged types to full view.
5ec18f2b 5132
7d03f2eb
HZ
51332014-03-10 Hui Zhu <hui@codesourcery.com>
5134
5135 * target.h (target_insert_breakpoint): Remove "hardware" from its
5136 comments.
5137
c5164cbc
DE
51382014-03-07 Doug Evans <dje@google.com>
5139
5140 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5141
c4a3fee2
DE
51422014-03-07 Doug Evans <dje@google.com>
5143
5144 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5145 Remove unused local comp_dir_attr. Assert exactly one of
5146 stub_comp_unit_die, stub_comp_dir is non-NULL.
5147
3156469c
JB
51482014-03-07 Joel Brobecker <brobecker@adacore.com>
5149
5150 * target.h (complete_target_initialization, add_target):
5151 Add comment.
5152
c1a7b7c6
PA
51532014-03-07 Pedro Alves <palves@redhat.com>
5154
5155 * go32-nat.c: Include inf-child.h.
5156 (go32_ops): Delete global.
5157 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5158 Delete methods.
5159 (go32_create_inferior): Push the passed in target pointer instead
5160 of referencing go32_ops.
5161 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5162 (go32_target): New function, based on init_go32_ops, but inherit
5163 inf_child_target.
5164 (_initialize_go32_nat): Use go32_target. Move parts of
5165 init_go32_ops here.
5166
d3c1a85f
JB
51672014-03-06 Joel Brobecker <brobecker@adacore.com>
5168
5169 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5170 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5171 SYMBOL_VALUE_ADDRESS.
5172 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5173
5fa1d40e
YQ
51742014-03-06 Yao Qi <yao@codesourcery.com>
5175
5176 * breakpoint.c (get_tracepoint_by_number): Remove argument
5177 optional_p. All callers updated. Adjust comments. Update
5178 output message.
5179 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5180
0c13193f
YQ
51812014-03-06 Yao Qi <yao@codesourcery.com>
5182
5183 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5184 early if get_number returns zero. Use 'p' instead of 'args'.
5185
2217da06
YQ
51862014-03-06 Yao Qi <yao@codesourcery.com>
5187
5188 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5189 message.
5190
cc3da688
YQ
51912014-03-06 Yao Qi <yao@codesourcery.com>
5192
5193 PR breakpoints/16508
5194 * tracepoint.c (check_trace_running): New function.
5195 (trace_find_command): Move code to check_trace_running and
5196 call check_trace_running.
5197 (trace_find_pc_command): Likewise.
5198 (trace_find_tracepoint_command): Likewise.
5199 (trace_find_line_command): Likewise.
5200 (trace_find_range_command): Likewise.
5201 * tracepoint.h (check_trace_running): Likewise.
5202 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5203
6a5f844b
YQ
52042014-03-06 Yao Qi <yao@codesourcery.com>
5205
5206 * target.h (struct target_ops) <to_traceframe_info>: Use
5207 TARGET_DEFAULT_NORETURN (tcomplain ()).
5208 * target-delegates.c: Regenerated.
5209
0f26cec1
PA
52102014-03-05 Pedro Alves <palves@redhat.com>
5211
5212 PR gdb/16575
5213 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5214 void. Update comment.
5215 (dcache_xfer_memory): Delete.
5216 (dcache_read_memory_partial): New, based on the read bits of
5217 dcache_xfer_memory.
5218 (dcache_update): Add status parameter. Use ULONGEST for len, and
5219 adjust. Discard cache lines if the reason for the update was
5220 error.
5221 * dcache.h (dcache_xfer_memory): Delete declaration.
5222 (dcache_read_memory_partial): New declaration.
5223 (dcache_update): Update prototype.
5224 * target.c (raw_memory_xfer_partial): Update the dcache here.
5225 (memory_xfer_partial_1): Don't handle dcache writes here.
5226
b2b255bd
MF
52272014-03-05 Mike Frysinger <vapier@gentoo.org>
5228
5229 * remote-sim.c (gdbsim_load): Add const to prog.
5230
5d9cf8a4
TT
52312014-03-03 Tom Tromey <tromey@redhat.com>
5232
5233 * elfread.c (probe_key): Change to bfd_data.
5234 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5235 now per-BFD, not per-objfile.
5236 * stap-probe.c (stap_probe_destroy): Update comment.
5237 (handle_stap_probe): Allocate on the per-BFD obstack.
5238
729662a5
TT
52392014-03-03 Tom Tromey <tromey@redhat.com>
5240
5241 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5242 * breakpoint.c (create_longjmp_master_breakpoint): Use
5243 get_probe_address.
5244 (add_location_to_breakpoint, bkpt_probe_insert_location)
5245 (bkpt_probe_remove_location): Update.
5246 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5247 * elfread.c (elf_symfile_relocate_probe): Remove.
5248 (elf_probe_fns): Update.
5249 (insert_exception_resume_breakpoint): Change type of "probe"
5250 parameter to bound_probe.
5251 (check_exception_resume): Update.
5252 * objfiles.c (objfile_relocate1): Don't relocate probes.
5253 * probe.c (bound_probe_s): New typedef.
5254 (parse_probes): Use get_probe_address. Set sal's objfile.
5255 (find_probe_by_pc): Return a bound_probe.
5256 (collect_probes): Return a VEC(bound_probe_s).
5257 (compare_probes): Update.
5258 (gen_ui_out_table_header_info): Change type of "probes"
5259 parameter. Update.
5260 (info_probes_for_ops): Update.
5261 (get_probe_address): New function.
5262 (probe_safe_evaluate_at_pc): Update.
5263 * probe.h (struct probe_ops) <get_probe_address>: New field.
5264 <set_semaphore, clear_semaphore>: Add objfile parameter.
5265 (struct probe) <objfile>: Remove field.
5266 <arch>: New field.
5267 <address>: Update comment.
5268 (struct bound_probe): New.
5269 (find_probe_by_pc): Return a bound_probe.
5270 (get_probe_address): Declare.
5271 * solib-svr4.c (struct probe_and_action) <address>: New field.
5272 (hash_probe_and_action, equal_probe_and_action): Update.
5273 (register_solib_event_probe): Add address parameter.
5274 (solib_event_probe_at): Update.
5275 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5276 get_probe_address.
5277 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5278 (stap_get_probe_address): New function.
5279 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5280 (compile_probe_arg): Update.
5281 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5282 address.
5283 (handle_stap_probe): Don't relocate the probe.
5284 (stap_relocate): Remove.
5285 (stap_gen_info_probes_table_values): Update.
5286 (stap_probe_ops): Remove stap_relocate.
5287 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5288 (debug_sym_probe_fns): Update.
5289 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5290 * symtab.c (init_sal): Use memset.
5291 * symtab.h (struct symtab_and_line) <objfile>: New field.
5292 * tracepoint.c (start_tracing, stop_tracing): Update.
5293
ff887920
TT
52942014-03-03 Tom Tromey <tromey@redhat.com>
5295
5296 * probe.h (parse_probes, find_probe_by_pc)
5297 (find_probes_in_objfile): Fix comments.
5298
f0407826
DE
52992014-03-02 Doug Evans <xdje42@gmail.com>
5300
5301 * infrun.c (handle_signal_stop): Replace test for
5302 TARGET_WAITKIND_STOPPED with an assert.
5303
35e6a711
DE
53042014-03-02 Doug Evans <xdje42@gmail.com>
5305
5306 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5307
667f9d0b
DE
53082014-03-02 Doug Evans <xdje42@gmail.com>
5309
5310 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5311
dc92ace0
MK
53122014-03-01 Mark Kettenis <kettenis@gnu.org>
5313
5314 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5315
a900370f
MK
53162014-03-01 Mark Kettenis <kettenis@gnu.org>
5317
5318 * i386obsd-nat.c: Include "obsd-nat.h".
5319 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5320 add_target.
5321 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5322
b72a7981
MK
53232014-03-01 Mark Kettenis <kettenis@gnu.org>
5324
5325 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5326
96c70aba
MK
53272014-03-01 Mark Kettenis <kettenis@gnu.org>
5328
5329 * mips64obsd-nat.c: Include "obsd-nath".
5330 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5331 add_target
5332 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5333
874a80af
MK
53342014-03-01 Mark Kettenis <kettenis@gnu.org>
5335
8fd408f1
MK
5336 * amd64obsd-nat.c: Include "obsd-nat,h.
5337 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5338 add_target.
874a80af
MK
5339 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5340
9cf95373
SC
53412014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5342
5343 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5344 (find_overload_match): Update call to find_oload_champ.
5345 (find_oload_champ_namespace_loop): Likewise
5346
863e4da4
MK
53472014-02-28 Mark Kettenis <kettenis@gnu.org>
5348
025cac40
MK
5349 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5350
1ed586ce
MK
5351 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5352 * config/sparc/obsd64.mh: New file.
5353 * sparc64obsd-nat.c: New file.
5354
863e4da4
MK
5355 * obsd-nat.h: New file.
5356 * obsd-nat.c: New file.
5357 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5358 (ALLDEPFILES): Add obsd-nat.c.
5359
89de4da4
TT
53602014-02-28 Tom Tromey <tromey@redhat.com>
5361
5362 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5363 * cli-out.h (cli_ui_out_impl): Now const.
5364 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5365 * ui-out.c (struct ui_out) <impl>: Now const.
5366 (default_ui_out_impl): Now const.
5367 (ui_out_new): Make 'impl' parameter const.
5368 * ui-out.h (ui_out_new): Update.
5369
c725e7b6
MK
53702014-02-27 Mark Kettenis <kettenis@gnu.org>
5371
5372 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5373
670b46b3
MK
53742014-02-27 Mark Kettenis <kettenis@gnu.org>
5375
5376 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5377
c91550fc
JK
53782014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5379
5380 Additional PR 8882 fix.
5381 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5382
2fa0369e
PA
53832014-02-27 Pedro Alves <palves@redhat.com>
5384
5385 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5386 isn't set.
5387
d632a097
PA
53882014-02-27 Pedro Alves <palves@redhat.com>
5389
5390 PR 12702
5391 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5392 * nat/linux-waitpid.c: Include string.h.
5393 (status_to_str): Moved here and made extern.
5394 * nat/linux-waitpid.h (status_to_str): New declaration.
5395
2ebd5a35
HZ
53962014-02-27 Hui Zhu <hui@codesourcery.com>
5397
5398 PR 12702
5399 * infrun.c (ptid_match): Move ...
5400 * common/ptid.c (ptid_match): ... here.
5401 * inferior.h (ptid_match): Move ...
5402 * common/ptid.h (ptid_match): ... here.
5403
3cdd631f
MK
54042014-02-27 Mark Kettenis <kettenis@gnu.org>
5405
5406 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5407 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5408 gdb_target_obs.
5409
bee30a64
MK
54102014-02-27 Mark Kettenis <kettenis@gnu.org>
5411
5412 * obsd-tdep.c (obsd_auxv_parse): New function.
5413 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
5414
5415 * gdbarch.sh (auxv_parse): New.
5416 * gdbarch.h: Regenerated.
5417 * gdbarch.c: Regenerated.
5418 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5419
7a5a839f
LC
54202014-02-26 Ludovic Courtès <ludo@gnu.org>
5421
5422 * guile/scm-value.c (gdbscm_history_append_x): New function.
5423 (value_functions): Add it.
5424
31aa7e4e
JB
54252014-02-27 Joel Brobecker <brobecker@adacore.com>
5426
5427 * dwarf2read.c (attr_value_as_address): New function.
5428 (dwarf2_find_base_address, read_call_site_scope): Use
5429 attr_value_as_address in place of DW_ADDR.
5430 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5431 the low and high addresses. Slight rework of the handling
5432 of the high pc being a constant form, and limit it to
5433 DWARF verson 4 or higher.
5434 (dwarf2_record_block_ranges): Likewise.
5435 (read_partial_die): Likewise.
5436 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5437
9b333ba3
TT
54382014-02-26 Tom Tromey <tromey@redhat.com>
5439
5440 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5441
5f6cac40
TT
54422014-02-26 Tom Tromey <tromey@redhat.com>
5443
5444 * elfread.c (elf_read_minimal_symbols): Return early if
5445 minimal symbols have already been read. Add "ei" parameter.
5446 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5447 * minsyms.c (prim_record_minimal_symbol_full): Update.
5448 * objfiles.h (struct objstats) <n_minsyms>: Move...
5449 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5450 * symmisc.c (print_objfile_statistics): Update.
5451
2750ef27
TT
54522014-02-26 Tom Tromey <tromey@redhat.com>
5453
5454 * elfread.c (elf_read_minimal_symbols): New function, from
5455 elf_symfile_read.
5456 (elf_symfile_read): Call it.
5457
34643a32
TT
54582014-02-26 Tom Tromey <tromey@redhat.com>
5459
5460 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5461 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5462 (lookup_minimal_symbol_solib_trampoline)
5463 (lookup_minimal_symbol_by_pc_section_1)
5464 (lookup_minimal_symbol_and_objfile): Update.
5465 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5466 Don't allocate a minimal symbol if minsyms have already been read.
5467 (build_minimal_symbol_hash_tables): Update.
5468 (install_minimal_symbols): Do nothing if minsyms already read.
5469 Use the per-BFD obstack.
5470 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5471 * objfiles.c (allocate_objfile): Call
5472 terminate_minimal_symbol_table later.
5473 (have_minimal_symbols): Update.
5474 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5475 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5476 Move from struct objfile.
5477 <minsyms_read>: New field.
5478 (struct objfile) <msymbols, minimal_symbol_count,
5479 msymbol_hash, msymbol_demangled_hash>: Move.
5480 (ALL_OBJFILE_MSYMBOLS): Update.
5481 * symfile.c (read_symbols): Set minsyms_read.
5482 (reread_symbols): Update.
5483 * symmisc.c (dump_objfile, dump_msymbols): Update.
5484
2273f0ac
TT
54852014-02-26 Tom Tromey <tromey@redhat.com>
5486
5487 * minsyms.c (msymbols_sort): Remove.
5488 * minsyms.h (msymbols_sort): Remove.
5489 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5490 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5491 * elfread.c (elf_symtab_read): Don't add section offsets.
5492 * xcoffread.c (record_minimal_symbol): Don't add section offset
5493 to minimal symbol address.
5494 * somread.c (text_offset, data_offset): Remove.
5495 (som_symtab_read): Don't add section offsets to minimal symbol
5496 addresses.
5497 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5498 Don't add section offsets to minimal symbols.
5499 * coffread.c (coff_symtab_read): Don't add section offsets
5500 to minimal symbol addresses.
5501 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5502 to minimal symbol addresses.
5503 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5504 section offset to minimal symbol addresses.
5505 * mdebugread.c (parse_partial_symbols): Don't add section
5506 offset to minimal symbol addresses.
5507 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5508 offset to minimal symbol addresses.
5509
77e371c0
TT
55102014-02-26 Tom Tromey <tromey@redhat.com>
5511
5512 * ada-lang.c (ada_main_name): Update.
5513 (ada_add_standard_exceptions): Update.
5514 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5515 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5516 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5517 * auxv.c (ld_so_xfer_auxv): Update.
5518 * avr-tdep.c (avr_scan_prologue): Update.
5519 * ax-gdb.c (gen_var_ref): Update.
5520 * blockframe.c (get_pc_function_start)
5521 (find_pc_partial_function_gnu_ifunc): Update.
5522 * breakpoint.c (create_overlay_event_breakpoint)
5523 (create_longjmp_master_breakpoint)
5524 (create_std_terminate_master_breakpoint)
5525 (create_exception_master_breakpoint): Update.
5526 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5527 * c-valprint.c (c_val_print): Update.
5528 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5529 * common/agent.c (agent_look_up_symbols): Update.
5530 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5531 * dwarf2loc.c (call_site_to_target_addr): Update.
5532 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5533 * elfread.c (elf_gnu_ifunc_record_cache)
5534 (elf_gnu_ifunc_resolve_by_got): Update.
5535 * findvar.c (default_read_var_value): Update.
5536 * frame.c (inside_main_func): Update.
5537 * frv-tdep.c (frv_frame_this_id): Update.
5538 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5539 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5540 Update.
5541 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5542 (hppa_hpux_find_dummy_bpaddr): Update.
5543 * hppa-tdep.c (hppa_symbol_address): Update.
5544 * infcmd.c (until_next_command): Update.
5545 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5546 Update.
5547 * linespec.c (minsym_found, add_minsym): Update.
5548 * linux-nat.c (get_signo): Update.
5549 * linux-thread-db.c (inferior_has_bug): Update.
5550 * m32c-tdep.c (m32c_return_value)
5551 (m32c_m16c_address_to_pointer): Update.
5552 * m32r-tdep.c (m32r_frame_this_id): Update.
5553 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5554 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5555 * maint.c (maintenance_translate_address): Update.
5556 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5557 (frob_address): New function.
5558 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5559 frob_address. Rename parameter to "pc_in".
5560 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5561 addresses.
5562 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5563 Update.
5564 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5565 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5566 * objc-lang.c (find_objc_msgsend): Update.
5567 * objfiles.c (objfile_relocate1): Update.
5568 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5569 * p-valprint.c (pascal_val_print): Update.
5570 * parse.c (write_exp_msymbol): Update.
5571 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5572 (ppc_elfv2_skip_entrypoint): Update.
5573 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5574 * printcmd.c (build_address_symbolic, msym_info)
5575 (address_info): Update.
5576 * proc-service.c (ps_pglobal_lookup): Update.
5577 * psymtab.c (find_pc_sect_psymtab_closer)
5578 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5579 Change msymbol parameter to bound_minimal_symbol.
5580 * ravenscar-thread.c (get_running_thread_id): Update.
5581 * remote.c (remote_check_symbols): Update.
5582 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5583 address.
5584 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5585 * solib-dsbt.c (lm_base): Update.
5586 * solib-frv.c (lm_base, main_got): Update.
5587 * solib-irix.c (locate_base): Update.
5588 * solib-som.c (som_solib_create_inferior_hook)
5589 (link_map_start): Update.
5590 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5591 * solib-svr4.c (elf_locate_base, enable_break): Update.
5592 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5593 (flush_ea_cache): Update.
5594 * stabsread.c (define_symbol, scan_file_globals): Update.
5595 * stack.c (find_frame_funname): Update.
5596 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5597 (debug_qf_find_pc_sect_symtab): Update.
5598 * symfile.c (simple_read_overlay_table)
5599 (simple_overlay_update): Update.
5600 * symfile.h (struct quick_symbol_functions)
5601 <find_pc_sect_symtab>: Change type of msymbol to
5602 bound_minimal_symbol.
5603 * symmisc.c (dump_msymbols): Update.
5604 * symtab.c (find_pc_sect_symtab_via_partial)
5605 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5606 (search_symbols, print_msymbol_info): Update.
5607 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5608 (MSYMBOL_VALUE_ADDRESS): Redefine.
5609 (BMSYMBOL_VALUE_ADDRESS): New macro.
5610 * tracepoint.c (scope_info): Update.
5611 * tui/tui-disasm.c (tui_find_disassembly_address)
5612 (tui_get_begin_asm_address): Update.
5613 * valops.c (find_function_in_inferior): Update.
5614 * value.c (value_static_field, value_fn_field): Update.
5615
3b7344d5
TT
56162014-02-26 Tom Tromey <tromey@redhat.com>
5617
5618 * ada-lang.c (ada_update_initial_language): Update.
5619 (ada_main_name, ada_has_this_exception_support): Update.
5620 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5621 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5622 * arm-tdep.c (arm_skip_stub): Update.
5623 * auxv.c (ld_so_xfer_auxv): Update.
5624 * avr-tdep.c (avr_scan_prologue): Update.
5625 * ax-gdb.c (gen_var_ref): Update.
5626 * breakpoint.c (struct breakpoint_objfile_data)
5627 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5628 type to bound_minimal_symbol.
5629 (create_overlay_event_breakpoint)
5630 (create_longjmp_master_breakpoint)
5631 (create_std_terminate_master_breakpoint)
5632 (create_exception_master_breakpoint): Update.
5633 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5634 * c-exp.y (classify_name): Update.
5635 * coffread.c (coff_symfile_read): Update.
5636 * common/agent.c (agent_look_up_symbols): Update.
5637 * d-lang.c (d_main_name): Update.
5638 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5639 * dec-thread.c (enable_dec_thread): Update.
5640 * dwarf2loc.c (call_site_to_target_addr): Update.
5641 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5642 * eval.c (evaluate_subexp_standard): Update.
5643 * findvar.c (struct minsym_lookup_data) <result>: Change type
5644 to bound_minimal_symbol.
5645 <objfile>: Remove.
5646 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5647 * frame.c (inside_main_func): Update.
5648 * frv-tdep.c (frv_frame_this_id): Update.
5649 * gcore.c (call_target_sbrk): Update.
5650 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5651 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5652 Update.
5653 * go-lang.c (go_main_name): Update.
5654 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5655 (hppa_hpux_find_import_stub_for_addr): Update.
5656 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5657 Update. Change return type.
5658 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5659 type.
5660 * jit.c (jit_breakpoint_re_set_internal): Update.
5661 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5662 Update.
5663 * linux-nat.c (get_signo): Update.
5664 * linux-thread-db.c (inferior_has_bug): Update
5665 * m32c-tdep.c (m32c_return_value)
5666 (m32c_m16c_address_to_pointer): Update.
5667 * m32r-tdep.c (m32r_frame_this_id): Update.
5668 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5669 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5670 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5671 lookup_minimal_symbol. Change return type.
5672 (lookup_minimal_symbol): Remove.
5673 (lookup_bound_minimal_symbol): Update.
5674 (lookup_minimal_symbol_text): Change return type.
5675 (lookup_minimal_symbol_solib_trampoline): Change return type.
5676 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5677 (lookup_minimal_symbol_solib_trampoline): Change return type.
5678 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5679 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5680 (value_nsstring, find_imps): Update.
5681 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5682 * p-lang.c (pascal_main_name): Update.
5683 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5684 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5685 * proc-service.c (ps_pglobal_lookup): Update.
5686 * ravenscar-thread.c (get_running_thread_msymbol): Change
5687 return type.
5688 (has_ravenscar_runtime, get_running_thread_id): Update.
5689 * remote.c (remote_check_symbols): Update.
5690 * sol-thread.c (ps_pglobal_lookup): Update.
5691 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5692 * solib-dsbt.c (lm_base): Update.
5693 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5694 Update.
5695 * solib-irix.c (locate_base): Update.
5696 * solib-som.c (som_solib_create_inferior_hook)
5697 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5698 Update.
5699 * solib-spu.c (spu_enable_break): Update.
5700 * solib-svr4.c (elf_locate_base, enable_break): Update.
5701 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5702 (flush_ea_cache): Update.
5703 * stabsread.c (define_symbol): Update.
5704 * symfile.c (simple_read_overlay_table): Update.
5705 * symtab.c (find_pc_sect_line): Update.
5706 * tracepoint.c (scope_info): Update.
5707 * tui-disasm.c (tui_get_begin_asm_address): Update.
5708 * value.c (value_static_field): Update.
5709
40c1a007
TT
57102014-02-26 Tom Tromey <tromey@redhat.com>
5711
5712 * minsyms.c (prim_record_minimal_symbol_full): Use
5713 SET_MSYMBOL_VALUE_ADDRESS.
5714 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5715 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5716 SET_MSYMBOL_VALUE_ADDRESS.
5717 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5718 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5719
efd66ac6
TT
57202014-02-26 Tom Tromey <tromey@redhat.com>
5721
5722 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5723 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5724 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5725 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5726 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5727 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5728 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5729 * ada-lang.c (ada_main_name): Update.
5730 (ada_lookup_simple_minsym): Update.
5731 (ada_make_symbol_completion_list): Update.
5732 (ada_add_standard_exceptions): Update.
5733 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5734 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5735 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5736 * arm-tdep.c (skip_prologue_function): Update.
5737 (arm_skip_stack_protector, arm_skip_stub): Update.
5738 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5739 (arm_wince_skip_main_prologue): Update.
5740 * auxv.c (ld_so_xfer_auxv): Update.
5741 * avr-tdep.c (avr_scan_prologue): Update.
5742 * ax-gdb.c (gen_var_ref): Update.
5743 * block.c (call_site_for_pc): Update.
5744 * blockframe.c (get_pc_function_start): Update.
5745 (find_pc_partial_function_gnu_ifunc): Update.
5746 * breakpoint.c (create_overlay_event_breakpoint): Update.
5747 (create_longjmp_master_breakpoint): Update.
5748 (create_std_terminate_master_breakpoint): Update.
5749 (create_exception_master_breakpoint): Update.
5750 (resolve_sal_pc): Update.
5751 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5752 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5753 Update.
5754 * c-valprint.c (c_val_print): Update.
5755 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5756 * coffread.c (coff_symfile_read): Update.
5757 * common/agent.c (agent_look_up_symbols): Update.
5758 * dbxread.c (find_stab_function_addr): Update.
5759 (end_psymtab): Update.
5760 * dwarf2loc.c (call_site_to_target_addr): Update.
5761 (func_verify_no_selftailcall): Update.
5762 (tailcall_dump): Update.
5763 (call_site_find_chain_1): Update.
5764 (dwarf_expr_reg_to_entry_parameter): Update.
5765 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5766 (elf_gnu_ifunc_resolve_by_got): Update.
5767 * f-valprint.c (info_common_command): Update.
5768 * findvar.c (read_var_value): Update.
5769 * frame.c (get_prev_frame_1): Update.
5770 (inside_main_func): Update.
5771 * frv-tdep.c (frv_skip_main_prologue): Update.
5772 (frv_frame_this_id): Update.
5773 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5774 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5775 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5776 (gnuv3_skip_trampoline): Update.
5777 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5778 (hppa64_hpux_in_solib_call_trampoline): Update.
5779 (hppa_hpux_skip_trampoline_code): Update.
5780 (hppa64_hpux_search_dummy_call_sequence): Update.
5781 (hppa_hpux_find_import_stub_for_addr): Update.
5782 (hppa_hpux_find_dummy_bpaddr): Update.
5783 * hppa-tdep.c (hppa_symbol_address)
5784 (hppa_lookup_stub_minimal_symbol): Update.
5785 * i386-tdep.c (i386_skip_main_prologue): Update.
5786 (i386_pe_skip_trampoline_code): Update.
5787 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5788 * infcall.c (get_function_name): Update.
5789 * infcmd.c (until_next_command): Update.
5790 * jit.c (jit_breakpoint_re_set_internal): Update.
5791 (jit_inferior_init): Update.
5792 * linespec.c (minsym_found): Update.
5793 (add_minsym): Update.
5794 * linux-fork.c (info_checkpoints_command): Update.
5795 * linux-nat.c (get_signo): Update.
5796 * linux-thread-db.c (inferior_has_bug): Update.
5797 * m32c-tdep.c (m32c_return_value): Update.
5798 (m32c_m16c_address_to_pointer): Update.
5799 (m32c_m16c_pointer_to_address): Update.
5800 * m32r-tdep.c (m32r_frame_this_id): Update.
5801 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5802 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5803 * maint.c (maintenance_translate_address): Update.
5804 * minsyms.c (add_minsym_to_hash_table): Update.
5805 (add_minsym_to_demangled_hash_table): Update.
5806 (msymbol_objfile): Update.
5807 (lookup_minimal_symbol): Update.
5808 (iterate_over_minimal_symbols): Update.
5809 (lookup_minimal_symbol_text): Update.
5810 (lookup_minimal_symbol_by_pc_name): Update.
5811 (lookup_minimal_symbol_solib_trampoline): Update.
5812 (lookup_minimal_symbol_by_pc_section_1): Update.
5813 (lookup_minimal_symbol_and_objfile): Update.
5814 (prim_record_minimal_symbol_full): Update.
5815 (compare_minimal_symbols): Update.
5816 (compact_minimal_symbols): Update.
5817 (build_minimal_symbol_hash_tables): Update.
5818 (install_minimal_symbols): Update.
5819 (terminate_minimal_symbol_table): Update.
5820 (find_solib_trampoline_target): Update.
5821 (minimal_symbol_upper_bound): Update.
5822 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5823 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5824 (mips_skip_pic_trampoline_code): Update.
5825 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5826 * objc-lang.c (selectors_info): Update.
5827 (classes_info): Update.
5828 (find_methods): Update.
5829 (find_imps): Update.
5830 (find_objc_msgsend): Update.
5831 * objfiles.c (objfile_relocate1): Update.
5832 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5833 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5834 * p-valprint.c (pascal_val_print): Update.
5835 * parse.c (write_exp_msymbol): Update.
5836 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5837 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5838 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5839 * printcmd.c (build_address_symbolic): Update.
5840 (sym_info): Update.
5841 (address_info): Update.
5842 * proc-service.c (ps_pglobal_lookup): Update.
5843 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5844 (find_pc_sect_psymtab): Update.
5845 * python/py-framefilter.c (py_print_frame): Update.
5846 * ravenscar-thread.c (get_running_thread_id): Update.
5847 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5848 Update.
5849 * remote.c (remote_check_symbols): Update.
5850 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5851 (rs6000_skip_trampoline_code): Update.
5852 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5853 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5854 * solib-dsbt.c (lm_base): Update.
5855 * solib-frv.c (lm_base): Update.
5856 (main_got): Update.
5857 * solib-irix.c (locate_base): Update.
5858 * solib-som.c (som_solib_create_inferior_hook): Update.
5859 (som_solib_desire_dynamic_linker_symbols): Update.
5860 (link_map_start): Update.
5861 * solib-spu.c (spu_enable_break): Update.
5862 (ocl_enable_break): Update.
5863 * solib-svr4.c (elf_locate_base): Update.
5864 (enable_break): Update.
5865 * spu-tdep.c (spu_get_overlay_table): Update.
5866 (spu_catch_start): Update.
5867 (flush_ea_cache): Update.
5868 * stabsread.c (define_symbol): Update.
5869 (scan_file_globals): Update.
5870 * stack.c (find_frame_funname): Update.
5871 (frame_info): Update.
5872 * symfile.c (simple_read_overlay_table): Update.
5873 (simple_overlay_update): Update.
5874 * symmisc.c (dump_msymbols): Update.
5875 * symtab.c (fixup_section): Update.
5876 (find_pc_sect_line): Update.
5877 (skip_prologue_sal): Update.
5878 (search_symbols): Update.
5879 (print_msymbol_info): Update.
5880 (rbreak_command): Update.
5881 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5882 (completion_list_objc_symbol): Update.
5883 (default_make_symbol_completion_list_break_on): Update.
5884 * tracepoint.c (scope_info): Update.
5885 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5886 (tui_get_begin_asm_address): Update.
5887 * valops.c (find_function_in_inferior): Update.
5888 * value.c (value_static_field): Update.
5889 (value_fn_field): Update.
5890
50e65b17
TT
58912014-02-26 Tom Tromey <tromey@redhat.com>
5892
5893 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5894 bound minimal symbols. Move code that knows about minsym
5895 table layout...
5896 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5897 function.
5898 * minsyms.h (minimal_symbol_upper_bound): Declare.
5899 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5900 minimal_symbol_upper_bound.
5901
1b588015
JB
59022014-02-27 Joel Brobecker <brobecker@adacore.com>
5903
5904 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5905 Use the type's name if its basic type does not have a tag.
5906
dbb9c2b1
JB
59072014-02-27 Joel Brobecker <brobecker@adacore.com>
5908
5909 * dwarf2read.c (read_subrange_type): Add comment.
5910
55426c9d
JB
59112014-02-27 Joel Brobecker <brobecker@adacore.com>
5912
5913 * dwarf2read.c (update_enumeration_type_from_children): New
5914 function, mostly extracted from process_structure_scope.
5915 (read_enumeration_type): Call update_enumeration_type_from_children.
5916 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5917 and flag_flag_enum fields.
5918
f2fce0ca
PA
59192014-02-26 Pedro Alves <palves@redhat.com>
5920
5921 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5922 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5923 to_xfer_partial method.
5924
7a44e40e
PA
59252014-02-26 Pedro Alves <palves@redhat.com>
5926
5927 * target.c (complete_target_initialization): Don't install
5928 default_xfer_partial as to_xfer_partial hook.
5929 (nomemory): Delete.
5930 (update_current_target): Don't INHERIT nor de_fault
5931 deprecated_xfer_memory. Delete de_fault macro.
5932 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5933 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5934 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5935 field.
5936
bd265cd0
PA
59372014-02-26 Pedro Alves <palves@redhat.com>
5938
5939 * go32-nat.c (my_write_child): New function.
5940 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5941 (go32_xfer_partial): New function.
5942 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5943 Instead install a to_xfer_partial hook.
5944
9d46c4e5
PA
59452014-02-26 Pedro Alves <palves@redhat.com>
5946
5947 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5948 to_xfer_partial helper. Rewrite.
5949 (procfs_xfer_partial): New function.
5950 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5951 Install a to_xfer_partial hook.
5952
a1583b1f
PA
59532014-02-26 Pedro Alves <palves@redhat.com>
5954
5955 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5956 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5957 (m32r_xfer_partial): New function.
5958 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5959 Install a to_xfer_partial hook.
5960
6df1b29f
PA
59612014-02-26 Pedro Alves <palves@redhat.com>
5962
5963 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5964 helper.
5965 (mips_xfer_partial): New function.
5966 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5967 hook. Install a to_xfer_partial hook.
5968
dc53a7ad
JB
59692014-02-26 Joel Brobecker <brobecker@adacore.com>
5970
5971 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5972 * gdbtypes.c (create_array_type_with_stride): New function,
5973 renaming create_array_type, but with an added parameter
5974 called "bit_stride".
5975 (create_array_type): Re-implement using
5976 create_array_type_with_stride.
5977 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5978 and DW_AT_bit_stride attributes.
5979
12ab52e9
PA
59802014-02-26 Pedro Alves <palves@redhat.com>
5981
5982 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5983 task-specific breakpoints.
5984
d16461ae
PA
59852014-02-25 Pedro Alves <palves@redhat.com>
5986
5987 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5988 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5989
a8b16220
SS
59902014-02-25 Stan Shebs <stan@codesourcery.com>
5991
5992 * defs.h: Annotate comments for Doxygen.
5993
b9e795ee
TT
59942014-02-25 Tom Tromey <tromey@redhat.com>
5995
5996 * target.h (target_ignore): Don't declare.
5997 * target.c (target_ignore): Remove.
5998
849c862e
JK
59992014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6000
6001 PR gdb/16626
6002 * auto-load.c (auto_load_objfile_script_1): Change filename to
6003 debugfile.
6004
475109d8
JB
60052014-02-25 Joel Brobecker <brobecker@adacore.com>
6006
6007 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
6008 documentation. Adjust prototype to match the target_ops
6009 to_xfer_partial method. Adjust implementation accordingly.
6010
e186c3bd
HZ
60112014-02-25 Hui Zhu <hui@codesourcery.com>
6012
6013 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6014 to_traceframe_info.
6015
6d451942
KB
60162014-02-25 Kevin Buettner <kevinb@redhat.com>
6017
041ab8b4 6018 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6019 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6020 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6021 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6022 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6023 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6024 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6025 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6026 New constants.
6027 (rl78_register_type): Use a data pointer type for SP and
6028 new pseudo registers mentioned above. Use a 16 bit integer
6029 type for all other register pairs.
6030 (rl78_register_name, rl78_g10_register_name): Update for
6031 new pseudo registers.
6032 (rl78_pseudo_register_read): Likewise.
6033 (rl78_pseudo_register_write): Likewise.
6034 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6035 to the newly added pseudo registers.
6036
eddf0bae
DE
60372014-02-24 Doug Evans <dje@google.com>
6038
6039 * value.c (record_latest_value): Fix comment.
6040 * printcmd.c (print_command_1): Remove code to handle -1 return from
6041 record_latest_value.
6042
e96027e0
PA
60432014-02-24 Pedro Alves <palves@redhat.com>
6044
6045 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6046 deprecated_xfer_memory hook.
6047 (procfs_xfer_partial): Call procfs_xfer_memory instead
6048 of the deprecated_xfer_memory target hook.
6049 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6050 helper.
6051
0837c976
YZ
60522014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6053
6054 * windows-nat.c (windows_xfer_shared_libraries): Return
6055 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6056 requested object is TARGET_OBJECT_LIBRARIES.
6057
bc113b4e
YQ
60582014-02-24 Yao Qi <yao@codesourcery.com>
6059
6060 * target.h (enum target_xfer_status)
6061 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6062 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6063 explicitly. New.
6064 * corefile.c (memory_error_message): User updated.
6065 * exec.c (section_table_read_available_memory): Likewise.
6066 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6067 * target.c (target_xfer_status_to_string): Likewise.
6068 (raw_memory_xfer_partial): Likewise.
6069 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6070 * valops.c (read_value_memory): Likewise.
6071 * exec.h: Update comments.
6072
01cb8804
YQ
60732014-02-24 Yao Qi <yao@codesourcery.com>
6074
6075 * target.c (target_xfer_status_to_string): Rename argument err
6076 to status.
6077 * target.h (target_xfer_status_to_string): Update declaration.
6078 Replace target_xfer_error_to_string with
6079 target_xfer_status_to_string in comment.
6080
93063aa6
YQ
60812014-02-24 Yao Qi <yao@codesourcery.com>
6082
6083 * mips-linux-nat.c (super_close): Update its type.
6084 (mips_linux_close): Pass 'self' to super_close.
6085
5c328c05
YQ
60862014-02-24 Yao Qi <yao@codesourcery.com>
6087
6088 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6089 * corefile.c (read_memory): Adjusted.
6090 * target.c (target_write_with_progress): Adjusted.
6091
f73023dd
YQ
60922014-02-23 Yao Qi <yao@codesourcery.com>
6093
6094 Revert two patches:
6095
6096 2013-10-25 Yao Qi <yao@codesourcery.com>
6097
6098 * remote.c (remote_traceframe_info): Return early if
6099 traceframe is not selected.
6100
6101 2013-07-19 Yao Qi <yao@codesourcery.com>
6102
6103 * target.c (update_current_target): Change the default action
6104 of 'to_traceframe_info' from tcomplain to return_zero.
6105 * target.h (struct target_ops) <to_traceframe_info>: Add more
6106 comments.
6107
5a2eb0ef
YQ
61082014-02-23 Yao Qi <yao@codesourcery.com>
6109
6110 * valops.c (read_value_memory): Rewrite it. Call
6111 target_xfer_partial in a loop.
6112 * exec.h (section_table_available_memory): Remove declaration.
6113 Move comments to ...
6114 * exec.c (section_table_available_memory): ... here. Make it
6115 static.
6116
1ee79381
YQ
61172014-02-23 Yao Qi <yao@codesourcery.com>
6118
6119 * exec.c (section_table_read_available_memory): New function.
6120 * exec.h (section_table_read_available_memory): Declare.
6121 * ctf.c (ctf_xfer_partial): Call
6122 section_table_read_available_memory.
6123 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6124
1ca49d37
YQ
61252014-02-23 Yao Qi <yao@codesourcery.com>
6126
6127 * ctf.c (ctf_xfer_partial): Move code to ...
6128 * exec.c (exec_read_partial_read_only): ... it. New function.
6129 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6130 * tracefile.c: Include "exec.h".
6131 * exec.h (exec_read_partial_read_only): Declare.
6132
a283690e
YQ
61332014-02-23 Yao Qi <yao@codesourcery.com>
6134
6135 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6136 (tfile_has_memory): Remove.
6137 (init_tfile_ops): Don't set fields to_has_all_memory and
6138 to_has_memory of tfile_ops.
6139 * tracefile.c (tracefile_has_all_memory): New function.
6140 (tracefile_has_memory): New function.
6141 (init_tracefile_ops): Initialize fields to_has_all_memory and
6142 to_has_memory of 'ops'.
6143
12e03cd0
YQ
61442014-02-23 Yao Qi <yao@codesourcery.com>
6145
6146 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6147 (ctf_thread_alive, ctf_get_trace_status): Remove.
6148 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6149 init_tracefile_ops.
6150 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6151 (tfile_has_stack, tfile_has_registers): Remove.
6152 (tfile_thread_alive): Remove.
6153 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6154 init_tracefile_ops.
6155 * tracefile.c (tracefile_has_stack): New function.
6156 (tracefile_has_registers): New function.
6157 (tracefile_thread_alive): New function.
6158 (tracefile_get_trace_status): New function.
6159 (init_tracefile_ops): New function.
6160 * tracefile.h (init_tracefile_ops): Declare.
6161
11395323
YQ
61622014-02-23 Yao Qi <yao@codesourcery.com>
6163
6164 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6165 (O_LARGEFILE): Likewise.
6166 (tfile_ops): Likewise.
6167 (TRACE_HEADER_SIZE): Likewise.
6168 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6169 (cur_data_size): Likewise.
6170 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6171 (tfile_close, tfile_files_info): Likewise.
6172 (tfile_get_trace_status): Likewise.
6173 (tfile_get_tracepoint_status): Likewise.
6174 (tfile_get_traceframe_address): Likewise.
6175 (tfile_trace_find, match_blocktype): Likewise.
6176 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6177 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6178 (tfile_get_trace_state_variable_value): Likewise.
6179 (tfile_has_all_memory, tfile_has_memory): Likewise.
6180 (tfile_has_stack, tfile_has_registers): Likewise.
6181 (tfile_thread_alive, build_traceframe_info): Likewise.
6182 (tfile_traceframe_info, init_tfile_ops): Likewise.
6183 (_initialize_tracepoint): Don't call init_tfile_ops
6184 and add_target_with_completer.
6185 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6186 exec.h, completer.h and filenames.h.
6187 (_initialize_tracefile_tfile): New function.
6188
7951c4eb
YQ
61892014-02-23 Yao Qi <yao@codesourcery.com>
6190
6191 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6192 tracefile-tfile.o.
6193 (HFILES_NO_SRCDIR): Add tracefile.h.
6194 * ctf.c: Include "tracefile.h".
6195 * tracefile.h: New file.
6196 * tracefile.c: New file
6197 * tracefile-tfile.c: New file.
6198 * tracepoint.c: Include "tracefile.h".
6199 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6200 (stop_reason_names): Add const.
6201 (trace_file_writer_xfree): Move it to tracefile.c.
6202 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6203 (trace_save_ctf): Likewise.
6204 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6205 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6206 (tfile_write_header, tfile_write_regblock_type): Likewise.
6207 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6208 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6209 (tfile_write_raw_data, tfile_end): Likewise.
6210 (tfile_trace_file_writer_new): Likewise.
6211 (free_uploaded_tp): Make it extern.
6212 (free_uploaded_tsv): Make it extern.
6213 (_initialize_tracepoint): Move code to register command 'tsave'
6214 to tracefile.c.
6215 * tracepoint.h (stop_reason_names): Declare.
6216 (struct trace_frame_write_ops): Move it to tracefile.h.
6217 (struct trace_file_write_ops): Likewise.
6218 (struct trace_file_writer): Likewise.
6219 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6220
184cd072
JK
62212014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6222
6223 PR gdb/16594
6224 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6225 process name.
6226 (get_cores_used_by_process): New parameter num_cores, use it.
6227 (linux_xfer_osdata_processes): Pass num_cores to it.
6228 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6229 process name.
6230
c63528fc
AK
62312014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6232
6233 * target.c (memory_xfer_partial): Fix length arg in call to
6234 breakpoint_xfer_memory.
6235
d7b30f67
SDJ
62362014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6237
6238 PR tdep/16397
6239 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6240 number comes after the + or - signs. Adjust length of register
6241 name to be extracted.
6242
8838afaf
TT
62432014-02-20 Tom Tromey <tromey@redhat.com>
6244
6245 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6246 (ada_varobj_ops): Mark "extern".
6247
05227d14
TT
62482014-02-20 Tom Tromey <tromey@redhat.com>
6249
6250 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6251
1254eefc
DE
62522014-02-20 Doug Evans <xdje42@gmail.com>
6253
6254 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6255 All callers updated.
6256 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6257 All callers updated.
6258 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6259 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6260
adde2bff
DE
62612014-02-20 lin zuojian <manjian2006@gmail.com>
6262 Joel Brobecker <brobecker@adacore.com>
6263 Doug Evans <xdje42@gmail.com>
6264
6265 PR symtab/16581
6266 * dwarf2read.c (struct die_info): New member in_process.
6267 (reset_die_in_process): New function.
6268 (process_die): Set it at the start, reset when returning.
6269 (inherit_abstract_dies): Only call process_die if origin_child_die
6270 not already being processed.
6271
3be75f87
JB
62722014-02-20 Joel Brobecker <brobecker@adacore.com>
6273
6274 * windows-nat.c (handle_unload_dll): Add function documentation.
6275 (do_initial_windows_stuff): Add comment explaining why we wait
6276 until after inferior initialization has finished before
6277 processing all DLLs.
6278
47f7ffdb
JB
62792014-02-20 Joel Brobecker <brobecker@adacore.com>
6280
6281 * windows-nat.c (get_module_name): Delete.
6282 (windows_get_exec_module_filename): New function, mostly
6283 inspired from get_module_name.
6284 (windows_pid_to_exec_file): Replace call to get_module_name
6285 by call to windows_get_exec_module_filename.
6286
1cd9feab
JB
62872014-02-20 Joel Brobecker <brobecker@adacore.com>
6288
6289 * windows-nat.c (handle_load_dll): Rewrite this function's
6290 introductory comment. Remove code using get_module_name
6291 to get the DLL's name.
6292
ea39ad35
JB
62932014-02-20 Joel Brobecker <brobecker@adacore.com>
6294
6295 * windows-nat.c (get_windows_debug_event): Ignore
6296 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6297 if windows_initialization_done == 0.
6298 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6299 Adjust implementation to always load all DLLs.
6300 (do_initial_windows_stuff): Replace call to
6301 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6302
95060284
JB
63032014-02-20 Joel Brobecker <brobecker@adacore.com>
6304
6305 * windows-nat.c (_initialize_windows_nat): Deprecate the
6306 "dll-symbols" command. Turn the "add-shared-symbol-files"
6307 and "assf" aliases into commands, and deprecate them as well.
6308 * NEWS: Add entry explaining that "dll-symbols" and its two
6309 aliases are now deprecated.
6310
8d4fdb12
JB
63112014-02-20 Joel Brobecker <brobecker@adacore.com>
6312
6313 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6314 new-line in debug string. Remove trailing spaces.
6315
1b281443
SS
63162014-02-19 Stan Shebs <stan@codesourcery.com>
6317
6318 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6319
f7bd0f78
SC
63202014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6321
6322 * NEWS: Add entry for the new feature
6323 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6324 and class values.
6325
399ebc3d
SS
63262014-02-19 Stan Shebs <stan@codesourcery.com>
6327
6328 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6329
c658158d
PA
63302014-02-19 Pedro Alves <palves@redhat.com>
6331
6332 * common/ptid.h (struct ptid): Mention that process_stratum
6333 targets should prefer ptid.lwp.
6334
ba348170
PA
63352014-02-19 Pedro Alves <palves@redhat.com>
6336
6337 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6338 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6339 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6340 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6341 store remote thread ids rather than ptid.tid.
6342 (_initialize_remote): Adjust.
6343
ac01945b
TT
63442014-02-19 Tom Tromey <tromey@redhat.com>
6345
6346 * target.c (target_get_unwinder): Rewrite.
6347 (target_get_tailcall_unwinder): Rewrite.
6348 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6349 (record_btrace_to_get_tailcall_unwinder): New function.
6350 (init_record_btrace_ops): Update.
6351 * target.h (struct target_ops) <to_get_unwinder,
6352 to_get_tailcall_unwinder>: Now function pointers. Use
6353 TARGET_DEFAULT_RETURN.
6354
8476dc92
TT
63552014-02-19 Tom Tromey <tromey@redhat.com>
6356
6357 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6358 argument.
6359 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6360
c0eca49f
TT
63612014-02-19 Tom Tromey <tromey@redhat.com>
6362
6363 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6364 directly.
6365 * target-delegates.c: Rebuild.
6366 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6367 TARGET_DEFAULT_FUNC.
6368 * target.c (default_target_decr_pc_after_break): Rename from
6369 forward_target_decr_pc_after_break. Simplify.
6370 (target_decr_pc_after_break): Rely on delegation.
6371
596b6b39
TT
63722014-02-19 Tom Tromey <tromey@redhat.com>
6373
6374 * target.c (update_current_target): Do not INHERIT to_doc or
6375 to_magic. Do not de_fault to_open or to_close.
6376
b427c1bc
TT
63772014-02-19 Tom Tromey <tromey@redhat.com>
6378
6379 * gcore.h (objfile_find_memory_regions): Declare.
6380 * gcore.c (objfile_find_memory_regions): No longer static. Add
6381 "self" argument.
6382 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6383 * exec.c: Include gcore.h.
6384 (exec_set_find_memory_regions): Remove.
6385 (exec_find_memory_regions): Remove.
6386 (exec_do_find_memory_regions): Remove.
6387 (init_exec_ops): Update.
6388 * defs.h (exec_set_find_memory_regions): Remove.
6389
9b144037
TT
63902014-02-19 Tom Tromey <tromey@redhat.com>
6391
6392 * target-delegates.c: Rebuild.
6393 * target.h (struct target_ops) <to_extra_thread_info,
6394 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6395 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6396 not 0, in TARGET_DEFAULT_RETURN.
6397
555bbdeb
TT
63982014-02-19 Tom Tromey <tromey@redhat.com>
6399
6400 * target.c (complete_target_initialization): Remove casts. Use
6401 return_zero_has_execution.
6402 (return_zero): Add "ignore" argument.
6403 (return_zero_has_execution): New function.
6404 (init_dummy_target): Remove casts. Use
6405 return_zero_has_execution.
6406
be4ddd36
TT
64072014-02-19 Tom Tromey <tromey@redhat.com>
6408
6409 * target.c (update_current_target): Update comments. Do not
6410 INHERIT to_stratum.
6411
2117c711
TT
64122014-02-19 Tom Tromey <tromey@redhat.com>
6413
6414 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6415 needed.
6416 * corelow.c (core_read_description): Delegate when needed.
6417 * remote.c (remote_read_description): Delegate when needed.
6418 * target-delegates.c: Rebuild.
6419 * target.c (target_read_description): Rewrite.
6420 * target.h (struct target_ops) <to_read_description>: Update
6421 comment. Use TARGET_DEFAULT_RETURN.
6422
e88ef65c
TT
64232014-02-19 Tom Tromey <tromey@redhat.com>
6424
6425 * target-delegates.c: Rebuild.
6426 * target.c (update_current_target): Don't inherit or default
6427 to_can_run.
6428 (find_default_run_target): Check against delegate_can_run.
6429 * target.h (struct target_ops) <to_can_run>: Use
6430 TARGET_DEFAULT_RETURN.
6431
86a0854a
TT
64322014-02-19 Tom Tromey <tromey@redhat.com>
6433
6434 * target-delegates.c: Rebuild.
6435 * target.c (target_disconnect): Unconditionally delegate.
6436 * target.h (struct target_ops) <to_disconnect>: Use
6437 TARGET_DEFAULT_NORETURN.
6438
ee97f592
TT
64392014-02-19 Tom Tromey <tromey@redhat.com>
6440
6441 * record.c (record_stop): Unconditionally delegate.
6442 * target-delegates.c: Rebuild.
6443 * target.c (target_stop_recording): Unconditionally delegate.
6444 * target.h (struct target_ops) <to_stop_recording>: Use
6445 TARGET_DEFAULT_IGNORE.
6446
6dc7fcf4
TT
64472014-02-19 Tom Tromey <tromey@redhat.com>
6448
6449 * target-delegates.c: Rebuild.
6450 * target.c (target_enable_btrace): Unconditionally delegate.
6451 * target.h (struct target_ops) <to_enable_btrace>: Use
6452 TARGET_DEFAULT_NORETURN.
6453
eb5b20d4
TT
64542014-02-19 Tom Tromey <tromey@redhat.com>
6455
6456 * target-delegates.c: Rebuild.
6457 * target.c (target_read_btrace): Unconditionally delegate.
6458 * target.h (struct target_ops) <to_read_btrace>: Use
6459 TARGET_DEFAULT_NORETURN.
6460
9ace480d
TT
64612014-02-19 Tom Tromey <tromey@redhat.com>
6462
6463 * target-delegates.c: Rebuild.
6464 * target.c (target_teardown_btrace): Unconditionally delegate.
6465 * target.h (struct target_ops) <to_teardown_btrace>: Use
6466 TARGET_DEFAULT_NORETURN.
6467
8dc292d3
TT
64682014-02-19 Tom Tromey <tromey@redhat.com>
6469
6470 * target-delegates.c: Rebuild.
6471 * target.c (target_disable_btrace): Unconditionally delegate.
6472 * target.h (struct target_ops) <to_disable_btrace>: Use
6473 TARGET_DEFAULT_NORETURN.
6474
58a5184e
TT
64752014-02-19 Tom Tromey <tromey@redhat.com>
6476
6477 * target-delegates.c: Rebuild.
6478 * target.c (default_search_memory): New function.
6479 (simple_search_memory): Update comment.
6480 (target_search_memory): Unconditionally delegate.
6481 * target.h (struct target_ops) <to_search_memory>: Use
6482 TARGET_DEFAULT_FUNC.
6483
8de71aab
TT
64842014-02-19 Tom Tromey <tromey@redhat.com>
6485
6486 * auxv.c (default_auxv_parse): No longer static.
6487 (target_auxv_parse): Unconditionally delegate.
6488 * auxv.h (default_auxv_parse): Declare.
6489 * target-delegates.c: Rebuild.
6490 * target.c: Include auxv.h.
6491 * target.h (struct target_ops) <to_auxv_parse>: Use
6492 TARGET_DEFAULT_FUNC.
6493
6b2c5a57
TT
64942014-02-19 Tom Tromey <tromey@redhat.com>
6495
6496 * target-delegates.c: Rebuild.
6497 * target.c (target_memory_map): Unconditionally delegate.
6498 * target.h (struct target_ops) <to_memory_map>: Use
6499 TARGET_DEFAULT_RETURN.
6500
cbffc065
TT
65012014-02-19 Tom Tromey <tromey@redhat.com>
6502
6503 * target-delegates.c: Rebuild.
6504 * target.c (target_thread_alive): Unconditionally delegate.
6505 * target.h (struct target_ops) <to_thread_alive>: Use
6506 TARGET_DEFAULT_RETURN.
6507
f09e2107
TT
65082014-02-19 Tom Tromey <tromey@redhat.com>
6509
6510 * target-delegates.c: Rebuild.
6511 * target.c (target_save_record): Unconditionally delegate.
6512 * target.h (struct target_ops) <to_save_record>: Use
6513 TARGET_DEFAULT_NORETURN.
6514
07366925
TT
65152014-02-19 Tom Tromey <tromey@redhat.com>
6516
6517 * target-delegates.c: Rebuild.
6518 * target.c (target_delete_record): Unconditionally delegate.
6519 * target.h (struct target_ops) <to_delete_record>: Use
6520 TARGET_DEFAULT_NORETURN.
6521
dd2e9d25
TT
65222014-02-19 Tom Tromey <tromey@redhat.com>
6523
6524 * target-delegates.c: Rebuild.
6525 * target.c (target_record_is_replaying): Unconditionally
6526 delegate.
6527 * target.h (struct target_ops) <to_record_is_replaying>: Use
6528 TARGET_DEFAULT_RETURN.
6529
671e76cc
TT
65302014-02-19 Tom Tromey <tromey@redhat.com>
6531
6532 * target-delegates.c: Rebuild.
6533 * target.c (target_goto_record_begin): Unconditionally delegate.
6534 * target.h (struct target_ops) <to_goto_record_begin>: Use
6535 TARGET_DEFAULT_NORETURN.
6536
e9179bb3
TT
65372014-02-19 Tom Tromey <tromey@redhat.com>
6538
6539 * target-delegates.c: Rebuild.
6540 * target.c (target_goto_record_end): Unconditionally delegate.
6541 * target.h (struct target_ops) <to_goto_record_end>: Use
6542 TARGET_DEFAULT_NORETURN.
6543
05969c84
TT
65442014-02-19 Tom Tromey <tromey@redhat.com>
6545
6546 * target-delegates.c: Rebuild.
6547 * target.c (target_goto_record): Unconditionally delegate.
6548 * target.h (struct target_ops) <to_goto_record>: Use
6549 TARGET_DEFAULT_NORETURN.
6550
3679abfa
TT
65512014-02-19 Tom Tromey <tromey@redhat.com>
6552
6553 * target-delegates.c: Rebuild.
6554 * target.c (target_insn_history): Unconditionally delegate.
6555 * target.h (struct target_ops) <to_insn_history>: Use
6556 TARGET_DEFAULT_NORETURN.
6557
8444ab58
TT
65582014-02-19 Tom Tromey <tromey@redhat.com>
6559
6560 * target-delegates.c: Rebuild.
6561 * target.c (target_insn_history_from): Unconditionally delegate.
6562 * target.h (struct target_ops) <to_insn_history_from>: Use
6563 TARGET_DEFAULT_NORETURN.
6564
c29302cc
TT
65652014-02-19 Tom Tromey <tromey@redhat.com>
6566
6567 * target-delegates.c: Rebuild.
6568 * target.c (target_insn_history_range): Unconditionally delegate.
6569 * target.h (struct target_ops) <to_insn_history_range>: Use
6570 TARGET_DEFAULT_NORETURN.
6571
170049d4
TT
65722014-02-19 Tom Tromey <tromey@redhat.com>
6573
6574 * target-delegates.c: Rebuild.
6575 * target.c (target_call_history): Unconditionally delegate.
6576 * target.h (struct target_ops) <to_call_history>: Use
6577 TARGET_DEFAULT_NORETURN.
6578
16fc27d6
TT
65792014-02-19 Tom Tromey <tromey@redhat.com>
6580
6581 * target-delegates.c: Rebuild.
6582 * target.c (target_call_history_from): Unconditionally delegate.
6583 * target.h (struct target_ops) <to_call_history_from>: Use
6584 TARGET_DEFAULT_NORETURN.
6585
115d9817
TT
65862014-02-19 Tom Tromey <tromey@redhat.com>
6587
6588 * target-delegates.c: Rebuild.
6589 * target.c (target_call_history_range): Unconditionally delegate.
6590 * target.h (struct target_ops) <to_call_history_range>: Use
6591 TARGET_DEFAULT_NORETURN.
6592
eb276a6b
TT
65932014-02-19 Tom Tromey <tromey@redhat.com>
6594
6595 * target-delegates.c: Rebuild.
6596 * target.c (target_verify_memory): Unconditionally delegate.
6597 * target.h (struct target_ops) <to_verify_memory>: Use
6598 TARGET_DEFAULT_NORETURN.
6599
9e538d0d
TT
66002014-02-19 Tom Tromey <tromey@redhat.com>
6601
6602 * target-delegates.c: Rebuild.
6603 * target.c (target_core_of_thread): Unconditionally delegate.
6604 * target.h (struct target_ops) <to_core_of_thread>: Use
6605 TARGET_DEFAULT_RETURN.
6606
f6fb2925
TT
66072014-02-19 Tom Tromey <tromey@redhat.com>
6608
6609 * target-delegates.c: Rebuild.
6610 * target.c (target_flash_done): Unconditionally delegate.
6611 * target.h (struct target_ops) <to_flash_done>: Use
6612 TARGET_DEFAULT_NORETURN.
6613
e8a6c6ac
TT
66142014-02-19 Tom Tromey <tromey@redhat.com>
6615
6616 * target-delegates.c: Rebuild.
6617 * target.c (target_flash_erase): Unconditionally delegate.
6618 * target.h (struct target_ops) <to_flash_erase>: Use
6619 TARGET_DEFAULT_NORETURN.
6620
7e35c012
TT
66212014-02-19 Tom Tromey <tromey@redhat.com>
6622
6623 * target-delegates.c: Rebuild.
6624 * target.c (target_get_section_table): Unconditionally delegate.
6625 * target.h (struct target_ops) <to_get_section_table>: Use
6626 TARGET_DEFAULT_RETURN.
6627
770234d3
TT
66282014-02-19 Tom Tromey <tromey@redhat.com>
6629
6630 * target-delegates.c: Rebuild.
6631 * target.c (target_pid_to_str): Unconditionally delegate.
6632 (init_dummy_target): Don't initialize to_pid_to_str.
6633 (default_pid_to_str): Rename from dummy_pid_to_str.
6634 * target.h (struct target_ops) <to_pid_to_str>: Use
6635 TARGET_DEFAULT_FUNC.
6636
09b0dc2b
TT
66372014-02-19 Tom Tromey <tromey@redhat.com>
6638
6639 * target-delegates.c: Rebuild.
6640 * target.c (target_find_new_threads): Unconditionally delegate.
6641 * target.h (struct target_ops) <to_find_new_threads>: Use
6642 TARGET_DEFAULT_RETURN.
6643
7d4f8efa
TT
66442014-02-19 Tom Tromey <tromey@redhat.com>
6645
6646 * target-delegates.c: Rebuild.
6647 * target.c (target_program_signals): Unconditionally delegate.
6648 * target.h (struct target_ops) <to_program_signals>: Use
6649 TARGET_DEFAULT_IGNORE.
6650
035cad7f
TT
66512014-02-19 Tom Tromey <tromey@redhat.com>
6652
6653 * target-delegates.c: Rebuild.
6654 * target.c (target_pass_signals): Unconditionally delegate.
6655 * target.h (struct target_ops) <to_pass_signals>: Use
6656 TARGET_DEFAULT_IGNORE.
6657
8d657035
TT
66582014-02-19 Tom Tromey <tromey@redhat.com>
6659
6660 * target-delegates.c: Rebuild.
6661 * target.c (default_mourn_inferior): New function.
6662 (target_mourn_inferior): Unconditionally delegate.
6663 * target.h (struct target_ops) <to_mourn_inferior>: Use
6664 TARGET_DEFAULT_FUNC.
6665
098dba18
TT
66662014-02-19 Tom Tromey <tromey@redhat.com>
6667
6668 * target-delegates.c: Rebuild.
6669 * target.c (default_follow_fork): New function.
6670 (target_follow_fork): Unconditionally delegate.
6671 * target.h (struct target_ops) <to_follow_fork>: Use
6672 TARGET_DEFAULT_FUNC.
6673
423a4807
TT
66742014-02-19 Tom Tromey <tromey@redhat.com>
6675
6676 * target-delegates.c: Rebuild.
6677 * target.c (target_kill): Unconditionally delegate.
6678 * target.h (struct target_ops) <to_kill>: Use
6679 TARGET_DEFAULT_NORETURN.
6680
6c7e5e5c
TT
66812014-02-19 Tom Tromey <tromey@redhat.com>
6682
6683 * target-delegates.c: Rebuild.
6684 * target.c (target_masked_watch_num_registers): Unconditionally
6685 delegate.
6686 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6687 Use TARGET_DEFAULT_RETURN.
6688
8b1c364c
TT
66892014-02-19 Tom Tromey <tromey@redhat.com>
6690
6691 * target-delegates.c: Rebuild.
6692 * target.c (target_remove_mask_watchpoint): Unconditionally
6693 delegate.
6694 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6695 TARGET_DEFAULT_RETURN.
6696
cd4ae029
TT
66972014-02-19 Tom Tromey <tromey@redhat.com>
6698
6699 * target-delegates.c: Rebuild.
6700 * target.c (target_insert_mask_watchpoint): Unconditionally
6701 delegate.
6702 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6703 TARGET_DEFAULT_RETURN.
6704
a134316b
TT
67052014-02-19 Tom Tromey <tromey@redhat.com>
6706
6707 * target-delegates.c: Rebuild.
6708 * target.c (target_ranged_break_num_registers): Unconditionally
6709 delegate.
6710 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6711 Use TARGET_DEFAULT_RETURN.
6712
ad5989bd
TT
67132014-02-19 Tom Tromey <tromey@redhat.com>
6714
6715 * target-delegates.c: Rebuild.
6716 * target.c (target_fetch_registers): Unconditionally delegate.
6717 * target.h (struct target_ops) <to_fetch_registers>: Use
6718 TARGET_DEFAULT_NORETURN.
6719
46ee7e8d
TT
67202014-02-19 Tom Tromey <tromey@redhat.com>
6721
6722 * target-delegates.c: Rebuild.
6723 * target.c (update_current_target): Don't inherit or default
6724 to_stop.
6725 * target.h (struct target_ops) <to_stop>: Use
6726 TARGET_DEFAULT_IGNORE.
6727
843f59ed
TT
67282014-02-19 Tom Tromey <tromey@redhat.com>
6729
6730 * target-delegates.c: Rebuild.
6731 * target.c (update_current_target): Don't inherit or default
6732 to_can_run_breakpoint_commands.
6733 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6734 Use TARGET_DEFAULT_RETURN.
6735
ccfde2a0
TT
67362014-02-19 Tom Tromey <tromey@redhat.com>
6737
6738 * target-delegates.c: Rebuild.
6739 * target.c (update_current_target): Don't inherit or default
6740 to_supports_evaluation_of_breakpoint_conditions.
6741 * target.h (struct target_ops)
6742 <to_supports_evaluation_of_breakpoint_conditions>: Use
6743 TARGET_DEFAULT_RETURN.
6744
0de91722
TT
67452014-02-19 Tom Tromey <tromey@redhat.com>
6746
6747 * target-delegates.c: Rebuild.
6748 * target.c (update_current_target): Don't inherit or default
6749 to_augmented_libraries_svr4_read.
6750 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6751 Use TARGET_DEFAULT_RETURN.
6752
9a7d8b48
TT
67532014-02-19 Tom Tromey <tromey@redhat.com>
6754
6755 * target-delegates.c: Rebuild.
6756 * target.c (update_current_target): Don't inherit or default
6757 to_can_use_agent.
6758 * target.h (struct target_ops) <to_can_use_agent>: Use
6759 TARGET_DEFAULT_RETURN.
6760
d9db5b21
TT
67612014-02-19 Tom Tromey <tromey@redhat.com>
6762
6763 * target-delegates.c: Rebuild.
6764 * target.c (update_current_target): Don't inherit or default
6765 to_use_agent.
6766 * target.h (struct target_ops) <to_use_agent>: Use
6767 TARGET_DEFAULT_NORETURN.
6768
92155eeb
TT
67692014-02-19 Tom Tromey <tromey@redhat.com>
6770
6771 * target-delegates.c: Rebuild.
6772 * target.c (update_current_target): Don't inherit or default
6773 to_traceframe_info.
6774 (return_null): Remove.
6775 * target.h (struct target_ops) <to_traceframe_info>: Use
6776 TARGET_DEFAULT_RETURN.
6777
d6522a22
TT
67782014-02-19 Tom Tromey <tromey@redhat.com>
6779
6780 * target-delegates.c: Rebuild.
6781 * target.c (update_current_target): Don't inherit or default
6782 to_static_tracepoint_markers_by_strid.
6783 * target.h (struct target_ops)
6784 <to_static_tracepoint_markers_by_strid>: Use
6785 TARGET_DEFAULT_NORETURN.
6786
4c3e4425
TT
67872014-02-19 Tom Tromey <tromey@redhat.com>
6788
6789 * target-delegates.c: Rebuild.
6790 * target.c (update_current_target): Don't inherit or default
6791 to_static_tracepoint_marker_at.
6792 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6793 Use TARGET_DEFAULT_RETURN.
6794
dcd6917f
TT
67952014-02-19 Tom Tromey <tromey@redhat.com>
6796
6797 * target-delegates.c: Rebuild.
6798 * target.c (update_current_target): Don't inherit or default
6799 to_set_permissions.
6800 * target.h (struct target_ops) <to_set_permissions>: Use
6801 TARGET_DEFAULT_IGNORE.
6802
22bcceee
TT
68032014-02-19 Tom Tromey <tromey@redhat.com>
6804
6805 * target-delegates.c: Rebuild.
6806 * target.c (update_current_target): Don't inherit or default
6807 to_get_tib_address.
6808 * target.h (struct target_ops) <to_get_tib_address>: Use
6809 TARGET_DEFAULT_NORETURN.
6810
8586ccaa
TT
68112014-02-19 Tom Tromey <tromey@redhat.com>
6812
6813 * target-delegates.c: Rebuild.
6814 * target.c (update_current_target): Don't inherit or default
6815 to_set_trace_notes.
6816 * target.h (struct target_ops) <to_set_trace_notes>: Use
6817 TARGET_DEFAULT_RETURN.
6818
91df8d1d
TT
68192014-02-19 Tom Tromey <tromey@redhat.com>
6820
6821 * target-delegates.c: Rebuild.
6822 * target.c (update_current_target): Don't initialize
6823 to_set_trace_buffer_size.
6824 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6825 TARGET_DEFAULT_IGNORE.
6826
8d526939
TT
68272014-02-19 Tom Tromey <tromey@redhat.com>
6828
6829 * target-delegates.c: Rebuild.
6830 * target.c (update_current_target): Don't inherit or default
6831 to_set_circular_trace_buffer.
6832 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6833 TARGET_DEFAULT_IGNORE.
6834
0bcfeddf
TT
68352014-02-19 Tom Tromey <tromey@redhat.com>
6836
6837 * target-delegates.c: Rebuild.
6838 * target.c (update_current_target): Don't inherit or default
6839 to_set_disconnected_tracing.
6840 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6841 TARGET_DEFAULT_IGNORE.
6842
9249843f
TT
68432014-02-19 Tom Tromey <tromey@redhat.com>
6844
6845 * target-delegates.c: Rebuild.
6846 * target.c (update_current_target): Don't inherit or default
6847 to_get_min_fast_tracepoint_insn_len.
6848 (return_minus_one): Remove.
6849 * target.h (struct target_ops)
6850 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6851
ace92e7d
TT
68522014-02-19 Tom Tromey <tromey@redhat.com>
6853
6854 * target-delegates.c: Rebuild.
6855 * target.c (update_current_target): Don't inherit or default
6856 to_get_raw_trace_data.
6857 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6858 TARGET_DEFAULT_NORETURN.
6859
08120467
TT
68602014-02-19 Tom Tromey <tromey@redhat.com>
6861
6862 * target-delegates.c: Rebuild.
6863 * target.c (update_current_target): Don't inherit or default
6864 to_upload_trace_state_variables.
6865 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6866 Use TARGET_DEFAULT_RETURN.
6867
1e949b00
TT
68682014-02-19 Tom Tromey <tromey@redhat.com>
6869
6870 * target-delegates.c: Rebuild.
6871 * target.c (update_current_target): Don't inherit or default
6872 to_upload_tracepoints.
6873 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6874 TARGET_DEFAULT_RETURN.
6875
a2e6c147
TT
68762014-02-19 Tom Tromey <tromey@redhat.com>
6877
6878 * target-delegates.c: Rebuild.
6879 * target.c (update_current_target): Don't inherit or default
6880 to_save_trace_data.
6881 * target.h (struct target_ops) <to_save_trace_data>: Use
6882 TARGET_DEFAULT_NORETURN.
6883
959bcd0b
TT
68842014-02-19 Tom Tromey <tromey@redhat.com>
6885
6886 * target-delegates.c: Rebuild.
6887 * target.c (update_current_target): Don't inherit or default
6888 to_get_trace_state_variable_value.
6889 * target.h (struct target_ops)
6890 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6891
afc94e66
TT
68922014-02-19 Tom Tromey <tromey@redhat.com>
6893
6894 * target-delegates.c: Rebuild.
6895 * target.c (update_current_target): Don't inherit or default
6896 to_trace_find.
6897 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6898
e51c07ea
TT
68992014-02-19 Tom Tromey <tromey@redhat.com>
6900
6901 * target-delegates.c: Rebuild.
6902 * target.c (update_current_target): Don't inherit or default
6903 to_trace_stop.
6904 * target.h (struct target_ops) <to_trace_stop>: Use
6905 TARGET_DEFAULT_NORETURN.
6906
6fea14cd
TT
69072014-02-19 Tom Tromey <tromey@redhat.com>
6908
6909 * target-delegates.c: Rebuild.
6910 * target.c (update_current_target): Don't inherit or default
6911 to_get_tracepoint_status.
6912 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6913 TARGET_DEFAULT_NORETURN.
6914
4072d4ff
TT
69152014-02-19 Tom Tromey <tromey@redhat.com>
6916
6917 * target-delegates.c: Rebuild.
6918 * target.c (update_current_target): Don't inherit or default
6919 to_get_trace_status.
6920 * target.h (struct target_ops) <to_get_trace_status>: Use
6921 TARGET_DEFAULT_RETURN.
6922
25da2e80
TT
69232014-02-19 Tom Tromey <tromey@redhat.com>
6924
6925 * target-delegates.c: Rebuild.
6926 * target.c (update_current_target): Don't inherit or default
6927 to_trace_start.
6928 * target.h (struct target_ops) <to_trace_start>: Use
6929 TARGET_DEFAULT_NORETURN.
6930
86dd181d
TT
69312014-02-19 Tom Tromey <tromey@redhat.com>
6932
6933 * target-delegates.c: Rebuild.
6934 * target.c (update_current_target): Don't inherit or default
6935 to_trace_set_readonly_regions.
6936 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6937 Use TARGET_DEFAULT_NORETURN.
6938
05c41993
TT
69392014-02-19 Tom Tromey <tromey@redhat.com>
6940
6941 * target-delegates.c: Rebuild.
6942 * target.c (update_current_target): Don't inherit or default
6943 to_disable_tracepoint.
6944 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6945 TARGET_DEFAULT_NORETURN.
6946
151f70f1
TT
69472014-02-19 Tom Tromey <tromey@redhat.com>
6948
6949 * target-delegates.c: Rebuild.
6950 * target.c (update_current_target): Don't inherit or default
6951 to_enable_tracepoint.
6952 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6953 TARGET_DEFAULT_NORETURN.
6954
94eb98b9
TT
69552014-02-19 Tom Tromey <tromey@redhat.com>
6956
6957 * target-delegates.c: Rebuild.
6958 * target.c (update_current_target): Don't inherit or default
6959 to_download_trace_state_variable.
6960 * target.h (struct target_ops) <to_download_trace_state_variable>:
6961 Use TARGET_DEFAULT_NORETURN.
6962
719acc4a
TT
69632014-02-19 Tom Tromey <tromey@redhat.com>
6964
6965 * target-delegates.c: Rebuild.
6966 * target.c (update_current_target): Don't inherit or default
6967 to_can_download_tracepoint.
6968 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6969 TARGET_DEFAULT_RETURN.
6970
9a980a22
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_download_tracepoint.
6976 * target.h (struct target_ops) <to_download_tracepoint>: Use
6977 TARGET_DEFAULT_NORETURN.
6978
5536135b
TT
69792014-02-19 Tom Tromey <tromey@redhat.com>
6980
6981 * target-delegates.c: Rebuild.
6982 * target.c (update_current_target): Don't inherit or default
6983 to_trace_init.
6984 * target.h (struct target_ops) <to_trace_init>: Use
6985 TARGET_DEFAULT_RETURN.
6986
9409d39e
TT
69872014-02-19 Tom Tromey <tromey@redhat.com>
6988
6989 * target-delegates.c: Rebuild.
6990 * target.c (update_current_target): Don't inherit or default
6991 to_supports_string_tracing.
6992 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6993 TARGET_DEFAULT_RETURN.
6994
aab1b22d
TT
69952014-02-19 Tom Tromey <tromey@redhat.com>
6996
6997 * target-delegates.c: Rebuild.
6998 * target.c (update_current_target): Don't inherit or default
6999 to_supports_enable_disable_tracepoint.
7000 * target.h (struct target_ops)
7001 <to_supports_enable_disable_tracepoint>: Use
7002 TARGET_DEFAULT_RETURN.
7003
a7304748
TT
70042014-02-19 Tom Tromey <tromey@redhat.com>
7005
7006 * target-delegates.c: Rebuild.
7007 * target.c (update_current_target): Don't inherit or default
7008 to_supports_multi_process.
7009 * target.h (struct target_ops) <to_supports_multi_process>: Use
7010 TARGET_DEFAULT_RETURN.
7011
4229b31d
TT
70122014-02-19 Tom Tromey <tromey@redhat.com>
7013
7014 * target-delegates.c: Rebuild.
7015 * target.c (update_current_target): Don't inherit or default
7016 to_get_ada_task_ptid.
7017 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7018 TARGET_DEFAULT_FUNC.
7019
43eba180
TT
70202014-02-19 Tom Tromey <tromey@redhat.com>
7021
7022 * target-delegates.c: Rebuild.
7023 * target.c (update_current_target): Don't inherit or default
7024 to_thread_architecture.
7025 * target.h (struct target_ops) <to_thread_architecture>: Use
7026 TARGET_DEFAULT_FUNC.
7027
fe31bf5b
TT
70282014-02-19 Tom Tromey <tromey@redhat.com>
7029
7030 * target-delegates.c: Rebuild.
7031 * target.c (update_current_target): Don't inherit or default
7032 to_execution_direction.
7033 * target.h (struct target_ops) <to_execution_direction>: Use
7034 TARGET_DEFAULT_FUNC.
7035
53e1cfc7
TT
70362014-02-19 Tom Tromey <tromey@redhat.com>
7037
7038 * target-delegates.c: Rebuild.
7039 * target.c (update_current_target): Don't inherit or default
7040 to_can_execute_reverse.
7041 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7042 TARGET_DEFAULT_RETURN.
7043 (target_can_execute_reverse): Unconditionally delegate.
7044
9bb9d61d
TT
70452014-02-19 Tom Tromey <tromey@redhat.com>
7046
7047 * target-delegates.c: Rebuild.
7048 * target.c (update_current_target): Don't inherit or default
7049 to_goto_bookmark.
7050 (dummy_goto_bookmark): Remove.
7051 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7052 * target.h (struct target_ops) <to_goto_bookmark>: Use
7053 TARGET_DEFAULT_NORETURN.
7054
3dbafbbb
TT
70552014-02-19 Tom Tromey <tromey@redhat.com>
7056
7057 * target-delegates.c: Rebuild.
7058 * target.c (update_current_target): Don't inherit or default
7059 to_get_bookmark.
7060 (dummy_get_bookmark): Remove.
7061 (init_dummy_target): Don't inherit or default to_get_bookmark.
7062 * target.h (struct target_ops) <to_get_bookmark>: Use
7063 TARGET_DEFAULT_NORETURN
7064
16f796b1
TT
70652014-02-19 Tom Tromey <tromey@redhat.com>
7066
7067 * target-delegates.c: Rebuild.
7068 * target.c (update_current_target): Don't inherit or default
7069 to_make_corefile_notes.
7070 (init_dummy_target): Don't initialize to_make_corefile_notes.
7071 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7072 TARGET_DEFAULT_FUNC.
7073
0b5a2719
TT
70742014-02-19 Tom Tromey <tromey@redhat.com>
7075
7076 * target-delegates.c: Rebuild.
7077 * target.c (update_current_target): Don't inherit or default
7078 to_find_memory_regions.
7079 (init_dummy_target): Don't initialize to_find_memory_regions.
7080 * target.h (struct target_ops) <to_find_memory_regions>: Use
7081 TARGET_DEFAULT_FUNC.
7082
d9cb0195
TT
70832014-02-19 Tom Tromey <tromey@redhat.com>
7084
7085 * target-delegates.c: Rebuild.
7086 * target.c (update_current_target): Don't inherit or default
7087 to_log_command.
7088 * target.h (struct target_ops) <to_log_command>: Use
7089 TARGET_DEFAULT_IGNORE.
7090 (target_log_command): Unconditionally delegate.
7091
830ca330
TT
70922014-02-19 Tom Tromey <tromey@redhat.com>
7093
7094 * target-delegates.c: Rebuild.
7095 * target.c (update_current_target): Don't inherit or default
7096 to_pid_to_exec_file.
7097 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7098 TARGET_DEFAULT_RETURN.
7099
825828fc
TT
71002014-02-19 Tom Tromey <tromey@redhat.com>
7101
7102 * target-delegates.c: Rebuild.
7103 * target.c (update_current_target): Don't inherit or default
7104 to_thread_name.
7105 (target_thread_name): Unconditionally delegate.
7106 * target.h (struct target_ops) <to_thread_name>: Use
7107 TARGET_DEFAULT_RETURN.
7108
4a7e6dda
TT
71092014-02-19 Tom Tromey <tromey@redhat.com>
7110
7111 * target-delegates.c: Rebuild.
7112 * target.c (update_current_target): Don't inherit or default
7113 to_extra_thread_info.
7114 * target.h (struct target_ops) <to_extra_thread_info>: Use
7115 TARGET_DEFAULT_RETURN.
7116
0db88c1d
TT
71172014-02-19 Tom Tromey <tromey@redhat.com>
7118
7119 * target-delegates.c: Rebuild.
7120 * target.c (update_current_target): Don't inherit or default
7121 to_has_exited.
7122 * target.h (struct target_ops) <to_has_exited>: Use
7123 TARGET_DEFAULT_RETURN..
7124
6a9fa051
TT
71252014-02-19 Tom Tromey <tromey@redhat.com>
7126
7127 * target-delegates.c: Rebuild.
7128 * target.c (update_current_target): Don't inherit or default
7129 to_set_syscall_catchpoint.
7130 (return_one): Remove.
7131 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7132 TARGET_DEFAULT_RETURN.
7133
62f64d7a
TT
71342014-02-19 Tom Tromey <tromey@redhat.com>
7135
7136 * target-delegates.c: Rebuild.
7137 * target.c (update_current_target): Don't inherit or default
7138 to_insert_exec_catchpoint.
7139 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7140 TARGET_DEFAULT_RETURN.
7141
cda0f38c
TT
71422014-01-08 Tom Tromey <tromey@redhat.com>
7143
7144 * target-delegates.c: Rebuild.
7145 * target.c (update_current_target): Don't inherit or default
7146 to_insert_exec_catchpoint.
7147 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7148 TARGET_DEFAULT_RETURN.
7149
95c3375e
TT
71502014-02-19 Tom Tromey <tromey@redhat.com>
7151
7152 * target-delegates.c: Rebuild.
7153 * target.c (update_current_target): Don't inherit or default
7154 to_remove_vfork_catchpoint.
7155 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7156 TARGET_DEFAULT_RETURN.
7157
7e18a8dc
TT
71582014-02-19 Tom Tromey <tromey@redhat.com>
7159
7160 * target-delegates.c: Rebuild.
7161 * target.c (update_current_target): Don't inherit or default
7162 to_insert_vfork_catchpoint.
7163 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7164 TARGET_DEFAULT_RETURN.
7165
e1a21fb7
TT
71662014-02-19 Tom Tromey <tromey@redhat.com>
7167
7168 * target-delegates.c: Rebuild.
7169 * target.c (update_current_target): Don't inherit or default
7170 to_remove_fork_catchpoint.
7171 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7172 TARGET_DEFAULT_RETURN.
7173
5958ebeb
TT
71742014-02-19 Tom Tromey <tromey@redhat.com>
7175
7176 * target-delegates.c: Rebuild.
7177 * target.c (update_current_target): Don't inherit or default
7178 to_insert_fork_catchpoint.
7179 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7180 TARGET_DEFAULT_RETURN.
7181
340ba4bf
TT
71822014-02-19 Tom Tromey <tromey@redhat.com>
7183
7184 * target-delegates.c: Rebuild.
7185 * target.c (update_current_target): Don't inherit or default
7186 to_post_startup_inferior.
7187 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7188 TARGET_DEFAULT_IGNORE.
7189
7634da87
TT
71902014-02-19 Tom Tromey <tromey@redhat.com>
7191
7192 * target-delegates.c: Rebuild.
7193 * target.c (update_current_target): Don't inherit or default
7194 to_load.
7195 * target.h (struct target_ops) <to_load>: Use
7196 TARGET_DEFAULT_NORETURN.
7197
e19e919f
TT
71982014-02-19 Tom Tromey <tromey@redhat.com>
7199
7200 * target-delegates.c: Rebuild.
7201 * target.c (update_current_target): Don't inherit or default
7202 to_terminal_info.
7203 * target.h (struct target_ops) <to_terminal_info>: Use
7204 TARGET_DEFAULT_FUNC.
7205
c6ea8f79
TT
72062014-02-19 Tom Tromey <tromey@redhat.com>
7207
7208 * target-delegates.c: Rebuild.
7209 * target.c (update_current_target): Don't inherit or default
7210 to_terminal_save_ours.
7211 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7212 TARGET_DEFAULT_IGNORE.
7213
e4a733f1
TT
72142014-02-19 Tom Tromey <tromey@redhat.com>
7215
7216 * target-delegates.c: Rebuild.
7217 * target.c (update_current_target): Don't inherit or default
7218 to_terminal_ours.
7219 * target.h (struct target_ops) <to_terminal_ours>: Use
7220 TARGET_DEFAULT_IGNORE.
7221
74fcbef9
TT
72222014-02-19 Tom Tromey <tromey@redhat.com>
7223
7224 * target-delegates.c: Rebuild.
7225 * target.c (update_current_target): Don't inherit or default
7226 to_terminal_ours_for_output.
7227 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7228 TARGET_DEFAULT_IGNORE.
7229
ddeaacc9
TT
72302014-02-19 Tom Tromey <tromey@redhat.com>
7231
7232 * target-delegates.c: Rebuild.
7233 * target.c (update_current_target): Don't inherit or default
7234 to_terminal_inferior.
7235 * target.h (struct target_ops) <to_terminal_inferior>: Use
7236 TARGET_DEFAULT_IGNORE.
7237
0343661d
TT
72382014-02-19 Tom Tromey <tromey@redhat.com>
7239
7240 * target-delegates.c: Rebuild.
7241 * target.c (update_current_target): Don't inherit or default
7242 to_terminal_init.
7243 * target.h (struct target_ops) <to_terminal_init>: Use
7244 TARGET_DEFAULT_IGNORE.
7245
77cdffe9
TT
72462014-02-19 Tom Tromey <tromey@redhat.com>
7247
7248 * target-delegates.c: Rebuild.
7249 * target.c (update_current_target): Don't inherit or default
7250 to_can_accel_watchpoint_condition.
7251 * target.h (struct target_ops)
7252 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7253
d03655e4
TT
72542014-02-19 Tom Tromey <tromey@redhat.com>
7255
7256 * target-delegates.c: Rebuild.
7257 * target.c (update_current_target): Don't inherit or default
7258 to_region_ok_for_hw_watchpoint.
7259 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7260 Use TARGET_DEFAULT_FUNC.
7261
65f160a9
TT
72622014-02-19 Tom Tromey <tromey@redhat.com>
7263
7264 * target-delegates.c: Rebuild.
7265 * target.c (update_current_target): Don't inherit or default
7266 to_watchpoint_addr_within_range.
7267 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7268 Use TARGET_DEFAULT_FUNC.
7269
61dd109f
TT
72702014-02-19 Tom Tromey <tromey@redhat.com>
7271
7272 * target-delegates.c: Rebuild.
7273 * target.c (update_current_target): Don't inherit or default
7274 to_remove_watchpoint.
7275 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7276 TARGET_DEFAULT_NORETURN.
7277
016facd4
TT
72782014-02-19 Tom Tromey <tromey@redhat.com>
7279
7280 * target-delegates.c: Rebuild.
7281 * target.c (update_current_target): Don't inherit or default
7282 to_insert_watchpoint.
7283 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7284 TARGET_DEFAULT_RETURN.
7285
418dabac
TT
72862014-02-19 Tom Tromey <tromey@redhat.com>
7287
7288 * target-delegates.c: Rebuild.
7289 * target.c (update_current_target): Don't inherit or default
7290 to_remove_hw_breakpoint.
7291 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7292 TARGET_DEFAULT_RETURN.
7293
61b371f9
TT
72942014-02-19 Tom Tromey <tromey@redhat.com>
7295
7296 * target-delegates.c: Rebuild.
7297 * target.c (update_current_target): Don't inherit or default
7298 to_insert_hw_breakpoint.
7299 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7300 TARGET_DEFAULT_RETURN.
7301
52b51d06
TT
73022014-02-19 Tom Tromey <tromey@redhat.com>
7303
7304 * target-delegates.c: Rebuild.
7305 * target.c (update_current_target): Don't inherit or default
7306 to_can_use_hw_breakpoint.
7307 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7308 TARGET_DEFAULT_RETURN.
7309
f86e59b2
TT
73102014-02-19 Tom Tromey <tromey@redhat.com>
7311
7312 * target-delegates.c: Rebuild.
7313 * target.c (update_current_target): Don't inherit or default
7314 to_files_info.
7315 * target.h (struct target_ops) <to_files_info>: Use
7316 TARGET_DEFAULT_IGNORE.
7317
6c628163
TT
73182014-02-19 Tom Tromey <tromey@redhat.com>
7319
7320 * target-delegates.c: Rebuild.
7321 * target.c (update_current_target): Don't inherit or default
7322 to_store.
7323 * target.h (struct target_ops) <to_store>: Use
7324 TARGET_DEFAULT_NORETURN.
7325
bebd3233
TT
73262014-02-19 Tom Tromey <tromey@redhat.com>
7327
7328 * target-delegates.c: Rebuild.
7329 * target.c (update_current_target): Don't inherit or default
7330 to_post_attach.
7331 * target.h (struct target_ops) <to_post_attach>: Use
7332 TARGET_DEFAULT_IGNORE.
7333
a53f3625
TT
73342014-02-19 Tom Tromey <tromey@redhat.com>
7335
7336 * target-delegates.c: Rebuild.
7337 * target.c (update_current_target): Don't inherit or default
7338 to_rcmd.
7339 (default_rcmd): New function.
7340 (do_monitor_command): Unconditionally delegate.
7341 * target.h (struct target_ops) <to_rmcd>: Use
7342 TARGET_DEFAULT_FUNC.
7343
e9a29200
TT
73442014-02-19 Tom Tromey <tromey@redhat.com>
7345
7346 * target-delegates.c: Rebuild.
7347 * target.c (init_dummy_target): Don't initialize to_attach.
7348 (target_attach): Unconditionally delegate.
7349 * target.h (struct target_ops) <to_attach>: Use
7350 TARGET_DEFAULT_FUNC.
7351
09da0d0a
TT
73522014-02-19 Tom Tromey <tromey@redhat.com>
7353
7354 * target-delegates.c: Rebuild.
7355 * target.c (target_detach): Unconditionally delegate.
7356 (init_dummy_target): Don't initialize to_detach.
7357 * target.h (struct target_ops) <to_detach>: Use
7358 TARGET_DEFAULT_IGNORE.
7359
5436ff03
TT
73602014-02-19 Tom Tromey <tromey@redhat.com>
7361
7362 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7363 Add argument.
7364 (target_augmented_libraries_svr4_read): Add argument.
7365 * target.c (update_current_target): Update.
7366 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7367 argument.
7368
f0d960ea
TT
73692014-02-19 Tom Tromey <tromey@redhat.com>
7370
7371 * target.h (struct target_ops) <to_call_history_range>: Add
7372 argument.
7373 * target.c (target_call_history_range): Add argument.
7374 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7375 argument.
7376 (record_btrace_call_history_from): Update.
7377
ec0aea04
TT
73782014-02-19 Tom Tromey <tromey@redhat.com>
7379
7380 * target.h (struct target_ops) <to_call_history_from>: Add
7381 argument.
7382 * target.c (target_call_history_from): Add argument.
7383 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7384 argument.
7385
5df2fcba
TT
73862014-02-19 Tom Tromey <tromey@redhat.com>
7387
7388 * target.h (struct target_ops) <to_call_history>: Add argument.
7389 * target.c (target_call_history): Add argument.
7390 * record-btrace.c (record_btrace_call_history): Add 'self'
7391 argument.
7392
4e99c6b7
TT
73932014-02-19 Tom Tromey <tromey@redhat.com>
7394
7395 * target.h (struct target_ops) <to_insn_history_range>: Add
7396 argument.
7397 * target.c (target_insn_history_range): Add argument.
7398 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7399 argument.
7400 (record_btrace_insn_history_from): Update.
7401
9abc3ff3
TT
74022014-02-19 Tom Tromey <tromey@redhat.com>
7403
7404 * target.h (struct target_ops) <to_insn_history_from>: Add
7405 argument.
7406 * target.c (target_insn_history_from): Add argument.
7407 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7408 argument.
7409
7a6c5609
TT
74102014-02-19 Tom Tromey <tromey@redhat.com>
7411
7412 * target.h (struct target_ops) <to_insn_history>: Add argument.
7413 * target.c (target_insn_history): Add argument.
7414 * record-btrace.c (record_btrace_insn_history): Add 'self'
7415 argument.
7416
606183ac
TT
74172014-02-19 Tom Tromey <tromey@redhat.com>
7418
7419 * target.h (struct target_ops) <to_goto_record>: Add argument.
7420 * target.c (target_goto_record): Add argument.
7421 * record-full.c (record_full_goto): Add 'self' argument.
7422 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7423
307a1b91
TT
74242014-02-19 Tom Tromey <tromey@redhat.com>
7425
7426 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7427 * target.c (target_goto_record_end): Add argument.
7428 * record-full.c (record_full_goto_end): Add 'self' argument.
7429 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7430
08475817
TT
74312014-02-19 Tom Tromey <tromey@redhat.com>
7432
7433 * target.h (struct target_ops) <to_goto_record_begin>: Add
7434 argument.
7435 * target.c (target_goto_record_begin): Add argument.
7436 * record-full.c (record_full_goto_begin): Add 'self' argument.
7437 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7438 argument.
7439
1c63c994
TT
74402014-02-19 Tom Tromey <tromey@redhat.com>
7441
7442 * target.h (struct target_ops) <to_record_is_replaying>: Add
7443 argument.
7444 * target.c (target_record_is_replaying): Add argument.
7445 * record-full.c (record_full_is_replaying): Add 'self' argument.
7446 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7447 argument.
7448 (record_btrace_xfer_partial, record_btrace_store_registers)
7449 (record_btrace_prepare_to_store, record_btrace_resume)
7450 (record_btrace_wait, record_btrace_decr_pc_after_break)
7451 (record_btrace_find_new_threads, record_btrace_thread_alive):
7452 Update.
7453
d1b55219
TT
74542014-02-19 Tom Tromey <tromey@redhat.com>
7455
7456 * target.h (struct target_ops) <to_delete_record>: Add argument.
7457 * target.c (target_delete_record): Add argument.
7458 * record-full.c (record_full_delete): Add 'self' argument.
7459
1390f529
TT
74602014-02-19 Tom Tromey <tromey@redhat.com>
7461
7462 * target.h (struct target_ops) <to_save_record>: Add argument.
7463 * target.c (target_save_record): Add argument.
7464 * record-full.c (record_full_save): Add 'self' argument.
7465 (record_full_save): Add 'self' argument.
7466
630d6a4a
TT
74672014-02-19 Tom Tromey <tromey@redhat.com>
7468
7469 * target.h (struct target_ops) <to_info_record>: Add argument.
7470 * target.c (target_info_record): Add argument.
7471 * record.c (info_record_command): Add argument.
7472 * record-full.c (record_full_info): Add 'self' argument.
7473 * record-btrace.c (record_btrace_info): Add 'self' argument.
7474
c6cd7c02
TT
74752014-02-19 Tom Tromey <tromey@redhat.com>
7476
7477 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7478 * target.c (target_stop_recording): Add argument.
7479 * record.c (record_stop): Add argument.
7480 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7481 argument.
7482
39c49f83
TT
74832014-02-19 Tom Tromey <tromey@redhat.com>
7484
7485 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7486 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7487 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7488 argument.
7489 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7490 (_initialize_amd64_linux_nat): Use it.
7491 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7492 (_initialize_i386_linux_nat): Use it.
7493
1777056d
TT
74942014-02-19 Tom Tromey <tromey@redhat.com>
7495
7496 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7497 * target.c (target_teardown_btrace): Add argument.
7498 * remote.c (remote_teardown_btrace): Add 'self' argument.
7499 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7500 argument.
7501 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7502 argument.
7503
25e95349
TT
75042014-02-19 Tom Tromey <tromey@redhat.com>
7505
7506 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7507 * target.c (target_disable_btrace): Add argument.
7508 * remote.c (remote_disable_btrace): Add 'self' argument.
7509 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7510 argument.
7511 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7512 argument.
7513
e3c49f88
TT
75142014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7517 * target.c (target_enable_btrace): Add argument.
7518 * remote.c (remote_enable_btrace): Add 'self' argument.
7519 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7520 argument.
7521 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7522 argument.
7523
fe38f897
TT
75242014-02-19 Tom Tromey <tromey@redhat.com>
7525
7526 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7527 (target_can_use_agent): Add argument.
7528 * target.c (update_current_target): Update.
7529 * remote.c (remote_can_use_agent): Add 'self' argument.
7530 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7531
2c152180
TT
75322014-02-19 Tom Tromey <tromey@redhat.com>
7533
7534 * target.h (struct target_ops) <to_use_agent>: Add argument.
7535 (target_use_agent): Add argument.
7536 * target.c (update_current_target): Update.
7537 * remote.c (remote_use_agent): Add 'self' argument.
7538 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7539
a893e81f
TT
75402014-02-19 Tom Tromey <tromey@redhat.com>
7541
7542 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7543 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7544 (target_traceframe_info): Add argument.
7545 * target.c (update_current_target): Update.
7546 * remote.c (remote_traceframe_info): Add 'self' argument.
7547 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7548
c686c57f
TT
75492014-02-19 Tom Tromey <tromey@redhat.com>
7550
7551 * target.h (target_static_tracepoint_markers_by_strid): Add
7552 argument.
7553 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7554 'self' argument.
7555 * target.c (update_current_target): Update.
7556 * remote.c (struct target_ops)
7557 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7558 * linux-nat.c (struct target_ops)
7559 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7560
61fc905d
TT
75612014-02-19 Tom Tromey <tromey@redhat.com>
7562
7563 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7564 Add argument.
7565 (target_static_tracepoint_marker_at): Add argument.
7566 * target.c (update_current_target): Update.
7567 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7568 argument.
7569
c378d69d
TT
75702014-02-19 Tom Tromey <tromey@redhat.com>
7571
7572 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7573 (target_set_permissions): Add argument.
7574 * target.c (update_current_target): Update.
7575 * remote.c (remote_set_permissions): Add 'self' argument.
7576 (remote_start_remote): Update.
7577
bd7ae0f5
TT
75782014-02-19 Tom Tromey <tromey@redhat.com>
7579
7580 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7581 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7582 (target_get_tib_address): Add argument.
7583 * target.c (update_current_target): Update.
7584 * remote.c (remote_get_tib_address): Add 'self' argument.
7585
d9e68a2c
TT
75862014-02-19 Tom Tromey <tromey@redhat.com>
7587
7588 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7589 (target_set_trace_notes): Add argument.
7590 * target.c (update_current_target): Update.
7591 * remote.c (remote_set_trace_notes): Add 'self' argument.
7592
4da384be
TT
75932014-02-19 Tom Tromey <tromey@redhat.com>
7594
7595 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7596 argument.
7597 (target_set_trace_buffer_size): Add argument.
7598 * target.c (update_current_target): Update.
7599 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7600
736d5b1f
TT
76012014-02-19 Tom Tromey <tromey@redhat.com>
7602
7603 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7604 argument.
7605 (target_set_circular_trace_buffer): Add argument.
7606 * target.c (update_current_target): Update.
7607 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7608 argument.
7609
37b25738
TT
76102014-02-19 Tom Tromey <tromey@redhat.com>
7611
7612 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7613 argument.
7614 (target_set_disconnected_tracing): Add argument.
7615 * target.c (update_current_target): Update.
7616 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7617
0e67620a
TT
76182014-02-19 Tom Tromey <tromey@redhat.com>
7619
7620 * target.h (struct target_ops)
7621 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7622 (target_get_min_fast_tracepoint_insn_len): Add argument.
7623 * target.c (update_current_target): Update.
7624 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7625 argument.
7626
88ee6f45
TT
76272014-02-19 Tom Tromey <tromey@redhat.com>
7628
7629 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7630 argument.
7631 (target_get_raw_trace_data): Add argument.
7632 * target.c (update_current_target): Update.
7633 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7634
181e3713
TT
76352014-02-19 Tom Tromey <tromey@redhat.com>
7636
7637 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7638 Add argument.
7639 (target_upload_trace_state_variables): Add argument.
7640 * target.c (update_current_target): Update.
7641 * remote.c (remote_upload_trace_state_variables): Add 'self'
7642 argument.
7643 (remote_start_remote): Update.
7644
ab6617cc
TT
76452014-02-19 Tom Tromey <tromey@redhat.com>
7646
7647 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7648 argument.
7649 (target_upload_tracepoints): Add argument.
7650 * target.c (update_current_target): Update.
7651 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7652 (remote_start_remote): Update.
7653
dc3decaf
TT
76542014-02-19 Tom Tromey <tromey@redhat.com>
7655
7656 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7657 (target_save_trace_data): Add argument.
7658 * target.c (update_current_target): Update.
7659 * remote.c (remote_save_trace_data): Add 'self' argument.
7660
4011015b
TT
76612014-02-19 Tom Tromey <tromey@redhat.com>
7662
7663 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7664 argument.
7665 * target.h (struct target_ops)
7666 <to_get_trace_state_variable_value>: Add argument.
7667 (target_get_trace_state_variable_value): Add argument.
7668 * target.c (update_current_target): Update.
7669 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7670 argument.
7671 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7672
bd4c6793
TT
76732014-02-19 Tom Tromey <tromey@redhat.com>
7674
7675 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7676 * target.h (struct target_ops) <to_trace_find>: Add argument.
7677 (target_trace_find): Add argument.
7678 * target.c (update_current_target): Update.
7679 * remote.c (remote_trace_find): Add 'self' argument.
7680 * ctf.c (ctf_trace_find): Add 'self' argument.
7681
74499f1b
TT
76822014-02-19 Tom Tromey <tromey@redhat.com>
7683
7684 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7685 (target_trace_stop): Add argument.
7686 * target.c (update_current_target): Update.
7687 * remote.c (remote_trace_stop): Add 'self' argument.
7688
db90e85c
TT
76892014-02-19 Tom Tromey <tromey@redhat.com>
7690
7691 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7692 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7693 argument.
7694 (target_get_tracepoint_status): Add argument.
7695 * target.c (update_current_target): Update.
7696 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7697
8bd200f1
TT
76982014-02-19 Tom Tromey <tromey@redhat.com>
7699
7700 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7701 * target.h (struct target_ops) <to_get_trace_status>: Add
7702 argument.
7703 (target_get_trace_status): Add argument.
7704 * target.c (update_current_target): Update.
7705 * remote.c (remote_get_trace_status): Add 'self' argument.
7706 (remote_start_remote, remote_can_download_tracepoint): Update.
7707 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7708
e2d1aae3
TT
77092014-02-19 Tom Tromey <tromey@redhat.com>
7710
7711 * target.h (struct target_ops) <to_trace_start>: Add argument.
7712 (target_trace_start): Add argument.
7713 * target.c (update_current_target): Update.
7714 * remote.c (remote_trace_start): Add 'self' argument.
7715
583f9a86
TT
77162014-02-19 Tom Tromey <tromey@redhat.com>
7717
7718 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7719 Add argument.
7720 (target_trace_set_readonly_regions): Add argument.
7721 * target.c (update_current_target): Update.
7722 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7723 argument.
7724
780b049c
TT
77252014-02-19 Tom Tromey <tromey@redhat.com>
7726
7727 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7728 argument.
7729 (target_disable_tracepoint): Add argument.
7730 * target.c (update_current_target): Update.
7731 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7732
46670d57
TT
77332014-02-19 Tom Tromey <tromey@redhat.com>
7734
7735 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7736 argument.
7737 (target_enable_tracepoint): Add argument.
7738 * target.c (update_current_target): Update.
7739 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7740
559d2b81
TT
77412014-02-19 Tom Tromey <tromey@redhat.com>
7742
7743 * target.h (struct target_ops) <to_download_trace_state_variable>:
7744 Add argument.
7745 (target_download_trace_state_variable): Add argument.
7746 * target.c (update_current_target): Update.
7747 * remote.c (remote_download_trace_state_variable): Add 'self'
7748 argument.
7749
a52a8357
TT
77502014-02-19 Tom Tromey <tromey@redhat.com>
7751
7752 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7753 argument.
7754 (target_can_download_tracepoint): Add argument.
7755 * target.c (update_current_target): Update.
7756 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7757
548f7808
TT
77582014-02-19 Tom Tromey <tromey@redhat.com>
7759
7760 * target.h (struct target_ops) <to_download_tracepoint>: Add
7761 argument.
7762 (target_download_tracepoint): Add argument.
7763 * target.c (update_current_target): Update.
7764 * remote.c (remote_download_tracepoint): Add 'self' argument.
7765
ecae04e1
TT
77662014-02-19 Tom Tromey <tromey@redhat.com>
7767
7768 * target.h (struct target_ops) <to_trace_init>: Add argument.
7769 (target_trace_init): Add argument.
7770 * target.c (update_current_target): Update.
7771 * remote.c (remote_trace_init): Add 'self' argument.
7772
fab5aa7c
TT
77732014-02-19 Tom Tromey <tromey@redhat.com>
7774
7775 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7776 * target.c (target_fileio_readlink): Add argument.
7777 * remote.c (remote_hostio_readlink): Add 'self' argument.
7778 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7779
dbbca37d
TT
77802014-02-19 Tom Tromey <tromey@redhat.com>
7781
7782 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7783 * target.c (target_fileio_unlink): Add argument.
7784 * remote.c (remote_hostio_unlink): Add 'self' argument.
7785 (remote_file_delete): Update.
7786 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7787
df39ea25
TT
77882014-02-19 Tom Tromey <tromey@redhat.com>
7789
7790 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7791 * target.c (target_fileio_close): Add argument.
7792 * remote.c (remote_hostio_close): Add 'self' argument.
7793 (remote_hostio_close_cleanup): Update.
7794 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7795 Update.
7796 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7797
a3be983c
TT
77982014-02-19 Tom Tromey <tromey@redhat.com>
7799
7800 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7801 * target.c (target_fileio_pread): Add argument.
7802 * remote.c (remote_hostio_pread): Add 'self' argument.
7803 (remote_bfd_iovec_pread, remote_file_get): Update.
7804 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7805
0d866f62
TT
78062014-02-19 Tom Tromey <tromey@redhat.com>
7807
7808 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7809 * target.c (target_fileio_pwrite): Add argument.
7810 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7811 (remote_file_put): Update.
7812 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7813
cd897586
TT
78142014-02-19 Tom Tromey <tromey@redhat.com>
7815
7816 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7817 * target.c (target_fileio_open): Add argument.
7818 * remote.c (remote_hostio_open): Add 'self' argument.
7819 (remote_bfd_iovec_open): Add 'self' argument.
7820 (remote_file_put): Add 'self' argument.
7821 (remote_file_get): Add 'self' argument.
7822 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7823
78eff0ec
TT
78242014-02-19 Tom Tromey <tromey@redhat.com>
7825
7826 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7827 Add argument.
7828 (target_can_run_breakpoint_commands): Add argument.
7829 * target.c (update_current_target): Update.
7830 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7831 argument.
7832 (remote_insert_breakpoint): Add 'self' argument.
7833 (remote_insert_hw_breakpoint): Add 'self' argument.
7834 (remote_can_run_breakpoint_commands): Add 'self' argument.
7835
efcc2da7
TT
78362014-02-19 Tom Tromey <tromey@redhat.com>
7837
7838 * target.h (struct target_ops)
7839 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7840 (target_supports_evaluation_of_breakpoint_conditions): Add
7841 argument.
7842 * target.c (update_current_target): Update.
7843 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7844 argument.
7845 (remote_insert_breakpoint): Add 'self' argument.
7846 (remote_insert_hw_breakpoint): Add 'self' argument.
7847 (remote_supports_cond_breakpoints): Add 'self' argument.
7848
6de37a3a
TT
78492014-02-19 Tom Tromey <tromey@redhat.com>
7850
7851 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7852 argument.
7853 (target_supports_string_tracing): Add argument.
7854 * target.c (update_current_target): Update.
7855 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7856
2bfc0540
TT
78572014-02-19 Tom Tromey <tromey@redhat.com>
7858
7859 * target.h (struct target_ops)
7860 <to_supports_disable_randomization>: Add argument.
7861 * target.c (find_default_supports_disable_randomization): Add
7862 argument.
7863 (target_supports_disable_randomization): Add argument.
7864 (find_default_supports_disable_randomization): Add 'self'
7865 argument.
7866 * remote.c (extended_remote_supports_disable_randomization): Add
7867 'self' argument.
7868 (remote_supports_disable_randomization): Add 'self' argument.
7869 (extended_remote_create_inferior): Update.
7870 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7871 'self' argument.
7872
7d178d6a
TT
78732014-02-19 Tom Tromey <tromey@redhat.com>
7874
7875 * target.h (struct target_ops)
7876 <to_supports_enable_disable_tracepoint>: Add argument.
7877 (target_supports_enable_disable_tracepoint): Add argument.
7878 * target.c (update_current_target): Update.
7879 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7880 argument.
7881
86ce2668
TT
78822014-02-19 Tom Tromey <tromey@redhat.com>
7883
7884 * target.h (struct target_ops) <to_supports_multi_process>: Add
7885 argument.
7886 (target_supports_multi_process): Add argument.
7887 * target.c (update_current_target): Update.
7888 * remote.c (remote_supports_multi_process): Add 'self' argument.
7889 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7890 argument.
7891 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7892 argument.
7893
4c612759
TT
78942014-02-19 Tom Tromey <tromey@redhat.com>
7895
7896 * target.h (struct target_ops) <to_execution_direction>: Add
7897 argument.
7898 (target_execution_direction): Add argument.
7899 * target.c (default_execution_direction): Add 'self' argument.
7900 * record-full.c (record_full_execution_direction): Add 'self'
7901 argument.
7902
19db3e69
TT
79032014-02-19 Tom Tromey <tromey@redhat.com>
7904
7905 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7906 argument.
7907 (target_can_execute_reverse): Add argument.
7908 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7909 * record-full.c (record_full_can_execute_reverse): Add 'self'
7910 argument.
7911 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7912 argument.
7913
1e6b91a4
TT
79142014-02-19 Tom Tromey <tromey@redhat.com>
7915
7916 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7917 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7918 argument.
7919 (target_get_ada_task_ptid): Add argument.
7920 * target.c (update_current_target): Update.
7921 (default_get_ada_task_ptid): Add 'self' argument.
7922 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7923 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7924 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7925 argument.
7926 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7927 argument.
7928 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7929 argument.
7930 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7931 argument.
7932 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7933 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7934 argument.
7935
3c80fb48
TT
79362014-02-19 Tom Tromey <tromey@redhat.com>
7937
7938 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7939 (target_goto_bookmark): Add argument.
7940 * target.c (dummy_goto_bookmark): Add 'self' argument.
7941 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7942
dd0e2830
TT
79432014-02-19 Tom Tromey <tromey@redhat.com>
7944
7945 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7946 (target_get_bookmark): Add argument.
7947 * target.c (dummy_get_bookmark): Add 'self' argument.
7948 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7949
fc6691b2
TT
79502014-02-19 Tom Tromey <tromey@redhat.com>
7951
7952 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7953 argument.
7954 (target_make_corefile_notes): Add argument.
7955 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7956 * procfs.c (procfs_make_note_section): Add 'self' argument.
7957 (procfs_make_note_section): Add 'self' argument.
7958 (procfs_make_note_section): Add 'self' argument.
7959 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7960 argument.
7961 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7962 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7963 * exec.c (exec_make_note_section): Add 'self' argument.
7964 (exec_make_note_section): Add 'self' argument.
7965
2e73927c
TT
79662014-02-19 Tom Tromey <tromey@redhat.com>
7967
7968 * target.h (struct target_ops) <to_find_memory_regions>: Add
7969 argument.
7970 (target_find_memory_regions): Add argument.
7971 * target.c (dummy_find_memory_regions): Add 'self' argument.
7972 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7973 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7974 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7975 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7976 * exec. (exec_do_find_memory_regions): New global.
7977 (exec_set_find_memory_regions): Rewrite.
7978 (exec_find_memory_regions): New function.
7979 (init_exec_ops): Use exec_find_memory_regions.
7980
2a9a2795
TT
79812014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target.h (struct target_ops) <to_supports_non_stop>: Add
7984 argument.
7985 * target.c (find_default_supports_non_stop): Add argument.
7986 (target_supports_non_stop): Add argument.
7987 (find_default_supports_non_stop): Add 'self' argument.
7988 * remote.c (remote_supports_non_stop): Add 'self' argument.
7989 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7990
4ab76ea3
TT
79912014-02-19 Tom Tromey <tromey@redhat.com>
7992
7993 * target.h (struct target_ops) <to_log_command>: Add argument.
7994 (target_log_command): Add argument.
7995 * serial.h (serial_log_command): Add 'self' argument.
7996 * serial.c (serial_log_command): Add 'self' argument.
7997
8dd27370
TT
79982014-02-19 Tom Tromey <tromey@redhat.com>
7999
8000 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
8001 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
8002 argument.
8003 (target_pid_to_exec_file): Add argument.
8004 * target.c (debug_to_pid_to_exec_file): Add argument.
8005 (update_current_target): Update.
8006 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
8007 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
8008 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
8009 (linux_handle_extended_wait): Update.
8010 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8011 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8012 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8013 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8014
1aac633b
TT
80152014-02-19 Tom Tromey <tromey@redhat.com>
8016
8017 * target.h (struct target_ops) <to_rcmd>: Add argument.
8018 (target_rcmd): Add argument.
8019 * target.c (debug_to_rcmd): Add argument.
8020 (update_current_target, do_monitor_command): Update.
8021 * remote.c (remote_rcmd): Add 'self' argument.
8022 * monitor.c (monitor_rcmd): Add 'self' argument.
8023
1eab8a48
TT
80242014-02-19 Tom Tromey <tromey@redhat.com>
8025
8026 * windows-nat.c (windows_stop): Add 'self' argument.
8027 * target.h (struct target_ops) <to_stop>: Add argument.
8028 * target.c (target_stop): Add argument.
8029 (debug_to_stop): Add argument.
8030 (update_current_target): Update.
8031 * remote.c (remote_stop): Add 'self' argument.
8032 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8033 (gdbsim_cntrl_c): Update.
8034 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8035 * procfs.c (procfs_stop): Add 'self' argument.
8036 * nto-procfs.c (procfs_stop): Add 'self' argument.
8037 * monitor.c (monitor_stop): Add 'self' argument.
8038 (monitor_open): Update.
8039 * linux-nat.c (linux_nat_stop): Add argument.
8040 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8041 * gnu-nat.c (gnu_stop): Add 'self' argument.
8042 * darwin-nat.c (darwin_stop): Add 'self' argument.
8043
503a628d
TT
80442014-02-19 Tom Tromey <tromey@redhat.com>
8045
8046 * target.h (struct target_ops) <to_thread_name>: Add argument.
8047 * target.c (target_thread_name): Add argument.
8048 (update_current_target): Update.
8049 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8050
c15906d8
TT
80512014-02-19 Tom Tromey <tromey@redhat.com>
8052
8053 * target.h (struct target_ops) <to_extra_thread_info>: Add
8054 argument.
8055 (target_extra_thread_info): Add argument.
8056 * target.c (update_current_target): Update.
8057 * remote.c (remote_threads_extra_info): Add 'self' argument.
8058 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8059 argument.
8060 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8061 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8062 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8063 argument.
8064 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8065 argument.
8066 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8067 argument.
8068 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8069 argument.
8070
daf5e9b6
TT
80712014-02-19 Tom Tromey <tromey@redhat.com>
8072
8073 * target.h (struct target_ops) <to_program_signals>: Add argument.
8074 * target.c (target_program_signals): Add argument.
8075 * remote.c (remote_program_signals): Add 'self' argument.
8076
94bedb42
TT
80772014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8080 * target.c (target_pass_signals): Add argument.
8081 * remote.c (remote_pass_signals): Add 'self' argument.
8082 (remote_start_remote): Update.
8083 * procfs.c (procfs_pass_signals): Add 'self' argument.
8084 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8085 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8086 (linux_nat_create_inferior, linux_nat_attach): Update.
8087
da82bd6b
TT
80882014-02-19 Tom Tromey <tromey@redhat.com>
8089
8090 * windows-nat.c (windows_can_run): Add 'self' argument.
8091 * target.h (struct target_ops) <to_can_run>: Add argument.
8092 (target_can_run): Add argument.
8093 * target.c (debug_to_can_run): Add argument.
8094 (update_current_target): Update.
8095 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8096 * inf-child.c (inf_child_can_run): Add 'self' argument.
8097 * go32-nat.c (go32_can_run): Add 'self' argument.
8098
d796e1d6
TT
80992014-02-19 Tom Tromey <tromey@redhat.com>
8100
8101 * target.h (struct target_ops) <to_has_exited>: Add argument.
8102 (target_has_exited): Add argument.
8103 * target.c (debug_to_has_exited): Add argument.
8104 (update_current_target): Update.
8105
ff214e67
TT
81062014-02-19 Tom Tromey <tromey@redhat.com>
8107
8108 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8109 argument.
8110 (target_set_syscall_catchpoint): Add argument.
8111 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8112 argument.
8113 * target.c (update_current_target): Update.
8114
758e29d2
TT
81152014-02-19 Tom Tromey <tromey@redhat.com>
8116
8117 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8118 argument.
8119 (target_remove_exec_catchpoint): Add argument.
8120 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8121 (update_current_target): Update.
8122 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8123 argument.
8124
ba025e51
TT
81252014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8128 argument.
8129 (target_insert_exec_catchpoint): Add argument.
8130 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8131 (update_current_target): Update.
8132 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8133 argument.
8134
e98cf0cd
TT
81352014-02-19 Tom Tromey <tromey@redhat.com>
8136
8137 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8138 argument.
8139 (target_remove_vfork_catchpoint): Add argument.
8140 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8141 (update_current_target): Update.
8142 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8143 argument.
8144
3ecc7da0
TT
81452014-02-19 Tom Tromey <tromey@redhat.com>
8146
8147 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8148 argument.
8149 (target_insert_vfork_catchpoint): Add argument.
8150 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8151 (update_current_target): Update.
8152 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8153 argument.
8154
973fc227
TT
81552014-02-19 Tom Tromey <tromey@redhat.com>
8156
8157 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8158 argument.
8159 (target_remove_fork_catchpoint): Add argument.
8160 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8161 (update_current_target): Update.
8162 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8163 argument.
8164
a863b201
TT
81652014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8168 argument.
8169 (target_insert_fork_catchpoint): Add argument.
8170 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8171 (update_current_target): Update.
8172 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8173 argument.
8174
2e97a79e
TT
81752014-02-19 Tom Tromey <tromey@redhat.com>
8176
8177 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8178 argument.
8179 (target_post_startup_inferior): Add argument.
8180 * target.c (debug_to_post_startup_inferior): Add argument.
8181 (update_current_target): Update.
8182 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8183 argument.
8184 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8185 argument.
8186 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8187 argument.
8188 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8189 argument.
8190 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8191 'self' argument.
8192 (super_post_startup_inferior): Likewise.
8193 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8194 'self' argument.
8195 (super_post_startup_inferior): Likewise.
8196 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8197 Add 'self' argument.
8198 (super_post_startup_inferior): Likewise.
8199
71a9f134
TT
82002014-02-19 Tom Tromey <tromey@redhat.com>
8201
8202 * target.h (struct target_ops) <to_load>: Add argument.
8203 * target.c (target_load): Add argument.
8204 (debug_to_load): Add argument.
8205 (update_current_target): Update.
8206 * remote.c (remote_load): Add 'self' argument.
8207 * remote-sim.c (gdbsim_load): Add 'self' argument.
8208 * remote-mips.c (mips_load): Add 'self' argument.
8209 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8210 * monitor.c (monitor_load): Add 'self' argument.
8211 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8212
0a4f40a2
TT
82132014-02-19 Tom Tromey <tromey@redhat.com>
8214
8215 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8216 (target_terminal_info): Add argument.
8217 * target.c (debug_to_terminal_info): Add argument.
8218 (default_terminal_info): Likewise.
8219 * inflow.c (child_terminal_info): Add 'self' argument.
8220 * inferior.h (child_terminal_info): Add 'self' argument.
8221 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8222
ae3bd431
TT
82232014-02-19 Tom Tromey <tromey@redhat.com>
8224
8225 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8226 argument.
8227 (target_terminal_save_ours): Add argument.
8228 * target.c (debug_to_terminal_save_ours): Add argument.
8229 (update_current_target): Update.
8230 * inflow.c (terminal_save_ours): Add 'self' argument.
8231 * inferior.h (terminal_save_ours): Add 'self' argument.
8232
e3594fd1
TT
82332014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8236 (target_terminal_ours): Add argument.
8237 * target.c (debug_to_terminal_ours): Add argument.
8238 (update_current_target): Update.
8239 * remote.c (remote_terminal_ours): Add 'self' argument.
8240 (remote_close): Update.
8241 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8242 * inflow.c (terminal_ours): Add 'self' argument.
8243 * inferior.h (terminal_ours): Add 'self' argument.
8244 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8245
2e1e1a19
TT
82462014-02-19 Pedro Alves <palves@redhat.com>
8247 Tom Tromey <tromey@redhat.com>
8248
8249 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8250 argument.
8251 (target_terminal_ours_for_output): Add argument.
8252 * target.c (debug_to_terminal_ours_for_output): Add argument.
8253 (update_current_target): Update.
8254 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8255 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8256 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8257
d2f640d4
TT
82582014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target.h (struct target_ops) <to_terminal_inferior>: Add
8261 argument.
8262 * target.c (target_terminal_inferior): Add argument.
8263 (update_current_target): Update.
8264 * remote.c (remote_terminal_inferior): Add 'self' argument.
8265 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8266 * inflow.c (terminal_inferior): Add 'self' argument.
8267 * inferior.h (terminal_inferior): Add 'self' argument.
8268 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8269 (go32_terminal_inferior): Add 'self' argument.
8270
c42bf286
TT
82712014-02-19 Tom Tromey <tromey@redhat.com>
8272
8273 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8274 (target_terminal_init): Add argument.
8275 * target.c (debug_to_terminal_init): Add argument.
8276 (update_current_target): Update.
8277 * inflow.c (terminal_init_inferior): Add 'self' argument.
8278 * inferior.h (terminal_init_inferior): Add 'self' argument.
8279 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8280 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8281
c3a5ff89
TT
82822014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target.h (struct target_ops)
8285 <to_can_accel_watchpoint_condition>: Add argument.
8286 (target_can_accel_watchpoint_condition): Add argument.
8287 * target.c (debug_to_can_accel_watchpoint_condition): Add
8288 argument.
8289 (update_current_target): Update.
8290 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8291 'self' argument.
8292
31568a15
TT
82932014-02-19 Tom Tromey <tromey@redhat.com>
8294
8295 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8296 Add argument.
8297 (target_region_ok_for_hw_watchpoint): Add argument.
8298 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8299 (default_region_ok_for_hw_watchpoint): Add argument.
8300 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8301 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8302 argument.
8303 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8304 argument.
8305 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8306 argument.
8307 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8308 'self' argument.
8309 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8310 'self' argument.
8311 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8312 'self' argument.
8313 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8314 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8315 'self' argument.
8316 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8317 Add 'self' argument.
8318
7bb99c53
TT
83192014-02-19 Tom Tromey <tromey@redhat.com>
8320
8321 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8322 argument.
8323 (target_insert_watchpoint): Add argument.
8324 * target.c (debug_to_insert_watchpoint): Add argument.
8325 (update_current_target): Update.
8326 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8327 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8328 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8329 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8330 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8331 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8332 argument.
8333 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8334 (procfs_insert_hw_watchpoint): Add 'self' argument.
8335 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8336 argument.
8337 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8338 argument.
8339 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8340 argument.
8341 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8342 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8343 argument.
8344 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8345 'self' argument.
8346
11b5219a
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8350 argument.
8351 (target_remove_watchpoint): Add argument.
8352 * target.c (debug_to_remove_watchpoint): Add argument.
8353 (update_current_target): Update.
8354 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8355 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8356 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8357 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8358 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8359 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8360 argument.
8361 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8362 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8363 argument.
8364 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8365 argument.
8366 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8367 argument.
8368 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8369 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8370 argument.
8371 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8372 'self' argument.
8373
a64dc96c
TT
83742014-02-19 Tom Tromey <tromey@redhat.com>
8375
8376 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8377 argument.
8378 (target_remove_hw_breakpoint): Add argument.
8379 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8380 (update_current_target): Update.
8381 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8382 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8383 argument.
8384 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8385 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8386 argument.
8387 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8388 'self' argument.
8389
23a26771
TT
83902014-02-19 Tom Tromey <tromey@redhat.com>
8391
8392 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8393 argument.
8394 (target_insert_hw_breakpoint): Add argument.
8395 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8396 (update_current_target): Update.
8397 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8398 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8399 argument.
8400 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8401 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8402 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8403 argument.
8404 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8405 'self' argument.
8406
5461485a
TT
84072014-02-19 Tom Tromey <tromey@redhat.com>
8408
8409 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8410 argument.
8411 (target_can_use_hardware_watchpoint): Add argument.
8412 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8413 (update_current_target): Update.
8414 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8415 argument.
8416 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8417 argument.
8418 * remote.c (remote_check_watch_resources): Add 'self' argument.
8419 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8420 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8421 argument.
8422 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8423 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8424 argument.
8425 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8426 argument.
8427 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8428 argument.
8429 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8430 argument.
8431 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8432 argument.
8433 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8434 argument.
8435 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8436 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8437 argument.
8438 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8439 'self' argument.
8440
f045800c
TT
84412014-02-19 Tom Tromey <tromey@redhat.com>
8442
8443 * target.h (struct target_ops) <to_post_attach>: Add argument.
8444 (target_post_attach): Add argument.
8445 * target.c (debug_to_post_attach): Add argument.
8446 (update_current_target): Update.
8447 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8448 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8449 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8450 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8451 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8452
de90e03d
TT
84532014-02-19 Tom Tromey <tromey@redhat.com>
8454
8455 * windows-nat.c (windows_close): Add 'self' argument.
8456 * tracepoint.c (tfile_close): Add 'self' argument.
8457 * target.h (struct target_ops) <to_close>: Add argument.
8458 * target.c (target_close): Add argument.
8459 (update_current_target): Update.
8460 * remote.c (remote_close): Add 'self' argument.
8461 * remote-sim.c (gdbsim_close): Add 'self' argument.
8462 * remote-mips.c (mips_close): Add 'self' argument.
8463 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8464 * record-full.c (record_full_close): Add 'self' argument.
8465 * record-btrace.c (record_btrace_close): Add 'self' argument.
8466 * monitor.h (monitor_close): Add 'self' argument.
8467 * monitor.c (monitor_close): Add 'self' argument.
8468 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8469 * linux-nat.c (linux_nat_close): Add argument.
8470 * go32-nat.c (go32_close): Add 'self' argument.
8471 * exec.c (exec_close_1): Add 'self' argument.
8472 * ctf.c (ctf_close): Add 'self' argument.
8473 * corelow.c (core_close): Add 'self' argument.
8474 (core_close_cleanup): Update.
8475 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8476 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8477
9dd130a0
TT
84782014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * remote.c (remote_load): New function.
8481 (init_remote_ops): Use it.
8482
46917d26
TT
84832014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8486 argument.
8487 * common/linux-btrace.h (linux_supports_btrace): Update.
8488 * remote.c (remote_supports_btrace): Add "self" argument.
8489 * target-delegates.c: Rebuild.
8490 * target.c (target_supports_btrace): Remove.
8491 * target.h (struct target_ops) <to_supports_btrace>: Add
8492 target_ops argument.
8493 (target_supports_btrace): New define.
8494
6b84065d
TT
84952014-02-19 Tom Tromey <tromey@redhat.com>
8496
8497 * record-full.c (record_full_beneath_to_resume_ops)
8498 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8499 (record_full_beneath_to_wait)
8500 (record_full_beneath_to_store_registers_ops)
8501 (record_full_beneath_to_store_registers)
8502 (record_full_beneath_to_xfer_partial_ops)
8503 (record_full_beneath_to_xfer_partial)
8504 (record_full_beneath_to_insert_breakpoint_ops)
8505 (record_full_beneath_to_insert_breakpoint)
8506 (record_full_beneath_to_remove_breakpoint_ops)
8507 (record_full_beneath_to_remove_breakpoint)
8508 (record_full_beneath_to_stopped_by_watchpoint)
8509 (record_full_beneath_to_stopped_data_address)
8510 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8511 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8512 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8513 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8514 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8515 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8516 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8517 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8518 (record_full_resume, record_full_wait_1)
8519 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8520 (record_full_store_registers, record_full_xfer_partial)
8521 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8522 (record_full_async, record_full_core_xfer_partial): Use target
8523 delegation.
8524 * target-delegates.c: Rebuild.
8525 * target.c (current_xfer_partial): Remove.
8526 (update_current_target): Do not INHERIT or de_fault
8527 to_insert_breakpoint, to_remove_breakpoint,
8528 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8529 to_is_async_p, to_async. Do not set to_xfer_partial field.
8530 (default_xfer_partial): Simplify.
8531 (current_xfer_partial): Remove.
8532 (target_wait, target_resume): Simplify.
8533 (find_default_can_async_p, find_default_is_async_p): Update.
8534 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8535 to_xfer_partial, to_stopped_by_watchpoint,
8536 to_stopped_data_address.
8537 (target_store_registers): Simplify.
8538 (forward_target_remove_breakpoint)
8539 (forward_target_insert_breakpoint): Remove.
8540 (target_remove_breakpoint, target_insert_breakpoint)
8541 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8542 * target.h (struct target_ops) <to_resume, to_wait,
8543 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8544 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8545 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8546 markup.
8547 (forward_target_remove_breakpoint)
8548 (forward_target_insert_breakpoint): Remove.
8549 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8550 directly.
8551 (record_btrace_insert_breakpoint): Delegate directly.
8552
1101cb7b
TT
85532014-02-19 Tom Tromey <tromey@redhat.com>
8554
8555 PR build/7701:
8556 * target-delegates.c: New file.
8557 * target.c: Include target-delegates.c.
8558 (init_dummy_target): Call install_dummy_methods.
8559 (complete_target_initialization): Call install_delegators.
8560 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8561 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8562 * make-target-delegates: New file.
8563
8b06beed
TT
85642014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * record.c (find_record_target): Use find_target_at.
8567 * target.c (find_target_at): New function.
8568 * target.h (find_target_at): Declare.
8569
6a109b6b
TT
85702014-02-19 Tom Tromey <tromey@redhat.com>
8571
8572 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8573 Add 'ops' argument.
8574 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8575 'ops' argument.
8576 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8577 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8578 'ops' argument.
8579 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8580 argument.
8581 * linux-nat.c (save_sigtrap): Update.
8582 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8583 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8584 (linux_nat_close): Update.
8585 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8586 argument.
8587 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8588 argument.
8589 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8590 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8591 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8592 (tmp_to_async): Add 'ops' argument.
8593 (record_full_stopped_by_watchpoint, record_full_async)
8594 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8595 argument.
8596 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8597 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8598 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8599 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8600 (remote_is_async_p, remote_async): Add 'ops' argument.
8601 (remote_stopped_data_address): Update.
8602 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8603 * target.c (update_current_target)
8604 (find_default_can_async_p, find_default_is_async_p): Update.
8605 (init_dummy_target): Update.
8606 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8607 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8608 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8609 (target_can_async_p, target_is_async_p, target_async)
8610 (target_stopped_by_watchpoint): Update.
8611
e095146b
YQ
86122014-02-19 Yao Qi <yao@codesourcery.com>
8613
8614 PR gdb/16220
8615 * gdbarch.sh: Remove startup_gdbarch.
8616 * gdbarch.c: Regenerated.
8617 * gdbarch.h: Likewise.
8618
bc3c6b36
KB
86192014-02-17 Kevin Buettner <kevinb@redhat.com>
8620
8621 * rl78-tdep.c (rl78_g10_register_name): New function.
8622 (rl78_return_value): Add g10 support.
8623 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8624 g10.
8625
98dc0167 86262014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
8627
8628 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8629 (SUBDIR_GUILE_SRCS): Ditto.
8630 (scm-gsmob.o): Ditto.
8631
842c05cd
YQ
86322014-02-17 Yao Qi <yao@codesourcery.com>
8633
8634 * gnu-nat.c (ILL_RPC): Declare defined function.
8635
25c0bd04
YQ
86362014-02-17 Yao Qi <yao@codesourcery.com>
8637
8638 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8639 mach_msg_type_number_t.
8640 (gnu_write_inferior): Likewise.
8641
a9a758e3
YQ
86422014-02-17 Yao Qi <yao@codesourcery.com>
8643
8644 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8645 in format string.
8646 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8647 (inf_validate_procs, inf_signal): Likewise.
8648 (S_exception_raise_request): Likewise.
8649 (do_mach_notify_dead_name): Likewise.
8650 (steal_exc_port): Likewise.
8651 (gnu_read_inferior): Change 'copy_count''s type to
8652 mach_msg_type_number_t.
8653 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8654 format string.
8655
bae8023e
TS
86562014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8657
c82f56d9
TS
8658 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8659 flag. Adjust all users; in particular...
8660 (gnu_wait): ..., don't decrement its value in here...
8661 (gnu_create_inferior): ..., and instead set the flag in here,
8662 around the startup_inferior call, and call that one with
8663 START_INFERIOR_TRAPS_EXPECTED.
8664
3398af6a
TS
8665 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8666 (ILL_RPC): ... new macro.
8667 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8668 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8669 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8670 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8671 functions with ILL_RPC macro.
8672 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8673 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8674 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8675 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8676 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8677 (S_proc_getlogin_reply, S_proc_getsid_reply)
8678 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8679 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8680 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8681 (S_proc_getnports_reply, S_proc_is_important_reply)
8682 (S_proc_get_code_reply): New stub functions, generated with
8683 ILL_RPC macro.
8684
d47642c9
TS
8685 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8686 collected the type check structures.
8687
bae8023e
TS
8688 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8689
8a55ffb0
DE
86902014-02-14 Doug Evans <dje@google.com>
8691
8692 * target.c (target_write_partial): Fix result type.
8693
c2853f3d
JM
86942014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8695
8696 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8697 the proper offsets to access fpregset_t.
8698
ac61d2db
SA
86992014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8700
8701 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8702 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8703 * h8300-tdep.c (setmachinelist): Remove global.
8704 * hppa-tdep.c (hppa_sigtramp): Remove global.
8705 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8706 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8707 * ravenscar-thread.c (update_target_observer): Remove global.
8708 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8709
9d2d0b8b
TT
87102014-02-12 Tom Tromey <tromey@redhat.com>
8711
8712 * common/rsp-low.c: Update comments.
8713 * common/rsp-low.h: Update comments.
8714
a7191e8b
TT
87152014-02-12 Tom Tromey <tromey@redhat.com>
8716
8717 * common/rsp-low.c (convert_ascii_to_int): Remove.
8718 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8719
ff0e980e
TT
87202014-02-12 Tom Tromey <tromey@redhat.com>
8721
8722 * common/rsp-low.h (unhexify): Don't declare.
8723 * common/rsp-low.c (unhexify): Remove.
8724
e9371aff
TT
87252014-02-12 Tom Tromey <tromey@redhat.com>
8726
8727 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8728 * common/rsp-low.c (convert_int_to_ascii): Remove.
8729
971dc0b8
TT
87302014-02-12 Tom Tromey <tromey@redhat.com>
8731
8732 * common/rsp-low.h (hexify): Don't declare.
8733 * common/rsp-low.c (hexify): Remove.
8734
0a822afb
TT
87352014-02-12 Tom Tromey <tromey@redhat.com>
8736
8737 * common/rsp-low.c (hexify): Never take strlen of argument.
8738
9f1b45b0
TT
87392014-02-12 Tom Tromey <tromey@redhat.com>
8740
8741 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8742 * remote.c (extended_remote_run, remote_rcmd)
8743 (remote_download_trace_state_variable, remote_save_trace_data)
8744 (remote_set_trace_notes): Update.
8745 * tracepoint.c (encode_source_string, tfile_write_status)
8746 (tfile_write_uploaded_tsv): Update.
8747
9c3d6531
TT
87482014-02-12 Tom Tromey <tromey@redhat.com>
8749
8750 * tracepoint.c: Include rsp-low.h.
8751 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8752 * remote.c: Include rsp-low.h.
8753 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8754 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8755 (remote_unescape_input): Move to common/rsp-low.c.
8756 * common/rsp-low.h: New file.
8757 * common/rsp-low.c: New file.
8758 * Makefile.in (SFILES): Add common/rsp-low.c.
8759 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8760 (COMMON_OBS): Add rsp-low.o.
8761 (rsp-low.o): New target.
8762
01fd3ea5
TT
87632014-02-12 Tom Tromey <tromey@redhat.com>
8764
8765 * utils.h: Include print-utils.h.
8766 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8767 (int_string, core_addr_to_string, core_addr_to_string_nz)
8768 (hex_string, hex_string_custom): Don't declare.
8769 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8770 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8771 (hex_string_custom, int_string, core_addr_to_string)
8772 (core_addr_to_string_nz, host_address_to_string): Move to
8773 common/print-utils.c.
8774 * common/print-utils.h: New file.
8775 * common/print-utils.c: New file
8776 * Makefile.in (SFILES): Add common/print-utils.c.
8777 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8778 (COMMON_OBS): Add print-utils.o.
8779 (print-utils.o): New target.
8780
9fb50108
TT
87812014-02-12 Tom Tromey <tromey@redhat.com>
8782
8783 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8784
0548b5db
MK
87852014-02-12 Mark Kettenis <kettenis@gnu.org>
8786
8787 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8788
493443a4
MK
87892014-02-12 Mark Kettenis <kettenis@gnu.org>
8790
8791 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8792 if a PT_IO ptrace request returns sucessfully but indicates that 0
8793 bytes were transferred.
8794
706d0883
PA
87952014-02-12 Pedro Alves <palves@redhat.com>
8796 Kevin Buettner <kevinb@redhat.com>
8797
8798 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8799 TYPE_INSTANCE_FLAG_CODE_SPACE.
8800
5caa2f0b
PA
88012014-02-12 Pedro Alves <palves@redhat.com>
8802
8803 * h8300-tdep.c (pseudo_from_raw_register)
8804 (raw_from_pseudo_register): New functions.
8805 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8806 them.
8807
76fd5f74
PA
88082014-02-12 Pedro Alves <palves@redhat.com>
8809
8810 * h8300-tdep.c (h8300_register_sim_regno): New function.
8811 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8812 gdbarch_register_sim_regno hook.
8813
8f008406
SA
88142014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8815
8816 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8817
195abc10
SA
88182014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8819
8820 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8821
93ffa5b9
MK
88222014-02-12 Mark Kettenis <kettenis@gnu.org>
8823
8824 * obsd-tdep.h (obsd_init_abi): New prototype.
8825 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8826 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8827 (obsd_init_abi): New functions.
8828 * i386obsd-tdep.c: Include "obsd-tdep.h".
8829 (i386obsd_init_abi): Call obsd_init_abi.
8830 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8831 (amd64obsd_init_abi): Call obsd_init_abi.
8832 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8833 obsd-tdep.c to gdb_target_obs.
8834
49caec94
JM
88352014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8836
8837 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8838 double float arguments to 16-byte in the argument slots.
8839
e1402065
DE
88402014-02-11 Doug Evans <xdje42@gmail.com>
8841
8842 * configure.ac: Don't crash if pkg-config is not found and guile
8843 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8844 in guile checks.
8845 * configure: Regenerate.
8846
edcc890f
YQ
88472014-02-11 Yao Qi <yao@codesourcery.com>
8848
8849 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8850 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8851 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8852 * gnu-nat.c (gnu_xfer_memory): Likewise.
8853 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8854 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8855 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8856 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8857
9b409511
YQ
88582014-02-11 Yao Qi <yao@codesourcery.com>
8859
8860 * target.h (enum target_xfer_error): Rename to ...
8861 (enum target_xfer_status): ... it. New. All users updated.
8862 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8863 New.
8864 (TARGET_XFER_STATUS_ERROR_P): New macro.
8865 (target_xfer_error_to_string): Remove declaration.
8866 (target_xfer_status_to_string): Declare.
8867 (target_xfer_partial_ftype): Adjust it.
8868 (struct target_ops) <to_xfer_partial>: Return
8869 target_xfer_status. Add argument xfered_len. Update
8870 comments.
8871 * target.c (target_xfer_error_to_string): Rename to ...
8872 (target_xfer_status_to_string): ... it. New. All callers
8873 updated.
8874 (target_read_live_memory): Likewise. Call target_xfer_partial
8875 instead of target_read.
8876 (memory_xfer_live_readonly_partial): Return
8877 target_xfer_status. Add argument xfered_len.
8878 (raw_memory_xfer_partial): Likewise.
8879 (memory_xfer_partial_1): Likewise.
8880 (memory_xfer_partial): Likewise.
8881 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8882 properly. Update debug message.
8883 (default_xfer_partial, current_xfer_partial): Likewise.
8884 (target_write_partial): Likewise.
8885 (target_read_partial): Likewise. All callers updated.
8886 (read_whatever_is_readable): Likewise.
8887 (target_write_with_progress): Likewise.
8888 (target_read_alloc_1): Likewise.
8889
8890 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8891 * auxv.c (procfs_xfer_auxv): Likewise.
8892 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8893 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8894 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8895 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8896 * corefile.c (read_memory): Adjust.
8897 * corelow.c (core_xfer_partial): Likewise.
8898 * ctf.c (ctf_xfer_partial): Likewise.
8899 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8900 updated.
8901 (darwin_xfer_partial): Likewise.
8902 * exec.c (section_table_xfer_memory_partial): Likewise. All
8903 callers updated.
8904 (exec_xfer_partial): Likewise.
8905 * exec.h (section_table_xfer_memory_partial): Update
8906 declaration.
8907 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8908 negative.
8909 (gnu_xfer_partial): Likewise.
8910 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8911 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8912 (ia64_hpux_xfer_solib_got): Likewise.
8913 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8914 type of 'partial_len' to ULONGEST.
8915 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8916 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8917 (linux_nat_xfer_partial): Likewise.
8918 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8919 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8920 * monitor.c (monitor_xfer_memory): Likewise.
8921 (monitor_xfer_partial): Likewise.
8922 * procfs.c (procfs_xfer_partial): Likewise.
8923 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8924 * record-full.c (record_full_xfer_partial): Likewise.
8925 (record_full_core_xfer_partial): Likewise.
8926 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8927 (gdbsim_xfer_partial): Likewise.
8928 * remote.c (remote_write_bytes_aux): Likewise. All callers
8929 updated.
8930 (remote_write_bytes, remote_read_bytes): Likewise. All
8931 callers updated.
8932 (remote_flash_erase): Likewise. All callers updated.
8933 (remote_write_qxfer): Likewise. All callers updated.
8934 (remote_read_qxfer): Likewise. All callers updated.
8935 (remote_xfer_partial): Likewise.
8936 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8937 (rs6000_xfer_shared_libraries): Likewise.
8938 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8939 (sol_thread_xfer_partial): Likewise.
8940 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8941 (sparc_xfer_partial): Likewise.
8942 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8943 updated.
8944 (spu_xfer_partial): Likewise.
8945 * spu-multiarch.c (spu_xfer_partial): Likewise.
8946 * tracepoint.c (tfile_xfer_partial): Likewise.
8947 * windows-nat.c (windows_xfer_memory): Likewise.
8948 (windows_xfer_shared_libraries): Likewise.
8949 (windows_xfer_partial): Likewise.
8950 * valprint.c: Replace 'target_xfer_error' with
8951 'target_xfer_status' in comments.
8952
a8e63083
JB
89532014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8954
8955 Checked in by Joel Brobecker <brobecker@adacore.com>.
8956 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8957
e86b67d3
JB
89582014-02-11 Joel Brobecker <brobecker@adacore.com>
8959
8960 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8961 function parameters.
8962
4b7d1f7f
WN
89632014-02-10 Will Newton <will.newton@linaro.org>
8964
8965 * elfread.c (elf_rel_plt_read): Look for a .got section if
8966 looking up .got.plt fails.
8967 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8968 on address passed to elf_gnu_ifunc_record_cache.
8969 (elf_gnu_ifunc_resolve_addr): Likewise.
8970 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8971
961842b2
JM
89722014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8973
8974 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8975 (X_RETTURN): New macro.
8976 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8977
8978 * sparc64-tdep.c (sparc64_init_abi): Hook
8979 sparc_in_function_epilogue_p.
8980
3f03e7b1
GB
89812014-02-10 Gary Benson <gbenson@redhat.com>
8982
8983 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8984 Rename name_matcher to symbol_matcher.
8985
96f861ef
GB
89862014-02-10 Gary Benson <gbenson@redhat.com>
8987
8988 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8989 Use expand_symtabs_file_matcher_ftype and
8990 expand_symtabs_symbol_matcher_ftype.
8991
ee01b665
JB
89922014-02-10 Joel Brobecker <brobecker@adacore.com>
8993
8994 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8995 (struct ada_symbol_cache): New.
8996 (ada_free_symbol_cache): Forward declare.
8997 (struct ada_pspace_data): New.
8998 (ada_pspace_data_handle): New static global.
8999 (get_ada_pspace_data, ada_pspace_data_cleanup)
9000 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
9001 (cache_space, cache): Delete, now folded inside struct
9002 ada_pspace_data.
9003 (ada_get_symbol_cache): New function.
9004 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
9005 implementation.
9006 (_initialize_ada_language): Remove initialization of cache_space.
9007 Move call to observer_attach_inferior_exit up, grouping it
9008 with the other observer registrations inside this function.
9009 Rename command to be more general. Add call to
9010 register_program_space_data_with_cleanup.
9011
143adbbf
JB
90122014-02-10 Joel Brobecker <brobecker@adacore.com>
9013
9014 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9015 ada_new_objfile_observer.
9016 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9017 (_initialize_tasks): Update uses of ada_new_objfile_observer
9018 and ada_tasks_normal_stop_observer.
9019
aa4fb036
JB
90202014-02-10 Joel Brobecker <brobecker@adacore.com>
9021
9022 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9023 returned by the 'Length attribute to integer.
9024
9dee8cc6
JB
90252014-02-10 Joel Brobecker <brobecker@adacore.com>
9026
9027 * ada-lang.c (_initialize_ada_language): Initialize
9028 cache_space obstack.
9029
3d9434b5
JB
90302014-02-10 Joel Brobecker <brobecker@adacore.com>
9031
9032 * ada-lang.c (HASH_SIZE): New macro.
9033 (struct cache_entry): New type.
9034 (cache_space, cache): New static globals.
9035 (ada_clear_symbol_cache, find_entry): New functions.
9036 (lookup_cached_symbol, cache_symbol): Implement.
9037 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9038 (_initialize_ada_language): Attach ada_new_objfile_observer
9039 and ada_free_objfile_observer.
9040
f0c5f9b2
JB
90412014-02-10 Joel Brobecker <brobecker@adacore.com>
9042
9043 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9044 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9045 struct block * parameter.
9046 (ada_lookup_symbol_list_worker): Constify local variable "block".
9047 Remove cast which is no longer necessary.
9048
ed3ef339
DE
90492014-02-10 Doug Evans <xdje42@gmail.com>
9050
9051 Add Guile as an extension language.
9052 * NEWS: Mention Guile scripting.
9053 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9054 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9055 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9056 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9057 (CLIBS): Add GUILE_LIBS.
9058 (install-guile): New rule.
9059 (guile.o): New rule.
9060 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9061 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9062 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9063 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9064 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9065 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9066 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9067 * configure.ac: New option --with-guile.
9068 * configure: Regenerate.
9069 * config.in: Regenerate.
9070 * auto-load.c: Remove #include "python/python.h". Add #include
9071 "gdb/section-scripts.h".
9072 (source_section_scripts): Handle Guile scripts.
9073 (_initialize_auto_load): Add name of Guile objfile script to
9074 scripts-directory help text.
9075 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9076 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9077 (struct breakpoint): New member scm_bp_object.
9078 * defs.h (enum command_control_type): New value guile_control.
9079 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9080 "extension.h".
9081 (show_user): Update comment.
9082 (_initialize_cli_cmds): Update help text for "show user". Update help
9083 text for max-user-call-depth.
9084 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9085 "extension.h".
9086 (multi_line_command_p): Add guile_control.
9087 (print_command_lines): Handle guile_control.
9088 (execute_control_command, recurse_read_control_structure): Ditto.
9089 (process_next_line): Recognize "guile" commands.
9090 * disasm.c (gdb_disassemble_info): Make non-static.
9091 * disasm.h: #include "dis-asm.h".
9092 (struct gdbarch): Add forward decl.
9093 (gdb_disassemble_info): Declare.
9094 * extension.c: #include "guile/guile.h".
9095 (extension_languages): Add guile.
9096 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9097 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9098 * gdbtypes.c (get_unsigned_type_max): New function.
9099 (get_signed_type_minmax): New function.
9100 * gdbtypes.h (get_unsigned_type_max): Declare.
9101 (get_signed_type_minmax): Declare.
9102 * guile/README: New file.
9103 * guile/guile-internal.h: New file.
9104 * guile/guile.c: New file.
9105 * guile/guile.h: New file.
9106 * guile/scm-arch.c: New file.
9107 * guile/scm-auto-load.c: New file.
9108 * guile/scm-block.c: New file.
9109 * guile/scm-breakpoint.c: New file.
9110 * guile/scm-disasm.c: New file.
9111 * guile/scm-exception.c: New file.
9112 * guile/scm-frame.c: New file.
9113 * guile/scm-gsmob.c: New file.
9114 * guile/scm-iterator.c: New file.
9115 * guile/scm-lazy-string.c: New file.
9116 * guile/scm-math.c: New file.
9117 * guile/scm-objfile.c: New file.
9118 * guile/scm-ports.c: New file.
9119 * guile/scm-pretty-print.c: New file.
9120 * guile/scm-safe-call.c: New file.
9121 * guile/scm-string.c: New file.
9122 * guile/scm-symbol.c: New file.
9123 * guile/scm-symtab.c: New file.
9124 * guile/scm-type.c: New file.
9125 * guile/scm-utils.c: New file.
9126 * guile/scm-value.c: New file.
9127 * guile/lib/gdb.scm: New file.
9128 * guile/lib/gdb/boot.scm: New file.
9129 * guile/lib/gdb/experimental.scm: New file.
9130 * guile/lib/gdb/init.scm: New file.
9131 * guile/lib/gdb/iterator.scm: New file.
9132 * guile/lib/gdb/printing.scm: New file.
9133 * guile/lib/gdb/types.scm: New file.
9134 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9135 (VPATH): Add $(GUILE_SRCDIR).
9136 (GUILE_DIR): New variable.
9137 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9138 (all): Add stamp-guile dependency.
9139 (stamp-guile): New rule.
9140 (clean-guile, install-guile, uninstall-guile): New rules.
9141 (install-only): Add install-guile dependency.
9142 (uninstall): Add uninstall-guile dependency.
9143 (clean): Add clean-guile dependency.
9144
ac020ec5
DE
91452014-02-09 Doug Evans <xdje42@gmail.com>
9146
9147 Revert this patch (which I approved, mea culpa).
9148
9149 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9150
9151 * Makefile.in (all-lib): Remove.
9152 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9153
2a081c59
JK
91542014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9155
9156 Fix Python stack corruption.
9157 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9158 gdb_py_longest.
9159
0a6bd22d
MK
91602014-02-08 Mark Kettenis <kettenis@gnu.org>
9161
9162 * Makefile.in (all-lib): Remove.
9163 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9164
1a860409
DE
91652014-02-07 Doug Evans <dje@google.com>
9166
9167 * extension-priv.h (extension_language_script_ops): Add comment.
9168 (extension_language_ops): Add comment.
caf5a491 9169 (active_ext_lang_state): Fix typo in comment.
1a860409 9170
d137e6dc
PA
91712014-02-07 Pedro Alves <palves@redhat.com>
9172
0dcb32c3 9173 PR breakpoints/16292
d137e6dc
PA
9174 * infrun.c (handle_signal_stop) <signal arrives while stepping
9175 over a breakpoint>: Switch back to the stepping thread.
9176
ce6d0892
YQ
91772014-02-07 Yao Qi <yao@codesourcery.com>
9178
9179 * target.c (target_xfer_partial): Return zero if LEN is zero.
9180
2ed4b548
YQ
91812014-02-07 Yao Qi <yao@codesourcery.com>
9182
9183 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9184 (ld_so_xfer_auxv): Likewise.
9185 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9186 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9187 * corelow.c (core_xfer_partial): Likewise.
9188 * ctf.c (ctf_xfer_partial): Likewise.
9189 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9190 (darwin_xfer_partial): Likewise.
9191 * exec.c (exec_xfer_partial): Likewise.
9192 * gnu-nat.c (gnu_xfer_partial): Likewise.
9193 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9194 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9195 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9196 * linux-nat.c (linux_xfer_siginfo): Likewise.
9197 (linux_proc_xfer_spu): Likewise.
9198 * procfs.c (procfs_xfer_partial): Likewise.
9199 * record-full.c (record_full_xfer_partial): Likewise.
9200 (record_full_core_xfer_partial): Likewise.
9201 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9202 * remote.c (remote_write_qxfer): Likewise.
9203 (remote_write_qxfer, remote_read_qxfer): Likewise.
9204 (remote_xfer_partial): Likewise.
9205 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9206 (rs6000_xfer_shared_libraries): Likewise.
9207 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9208 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9209 (spu_xfer_partial): Likewise.
9210 * target.c (memory_xfer_partial_1): Likewise.
9211 * tracepoint.c (tfile_xfer_partial): Likewise.
9212 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9213 (windows_xfer_partial): Likewise.
9214
c09f20e4
YQ
92152014-02-07 Yao Qi <yao@codesourcery.com>
9216
9217 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9218 comments.
9219 (core_xfer_shared_libraries_aix): Likewise.
9220 * gdbarch.c, gdbarch.h: Regenerated.
9221 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9222 ULONGEST. Change 'len_avail' type to ULONGEST.
9223 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9224 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9225 declaration.
9226 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9227
8635b3bf
YQ
92282014-02-07 Yao Qi <yao@codesourcery.com>
9229
9230 * corefile.c (memory_error): Get 'exception' from ERR and pass
9231 'exception' to throw_error.
9232
6dddc817
DE
92332014-02-06 Doug Evans <xdje42@gmail.com>
9234
9235 * configure.ac (libpython checking): Remove all but python.o from
9236 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9237 * configure: Regenerate.
9238
9239 * Makefile.in (SFILES): Add extension.c.
9240 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9241 (COMMON_OBS): Add extension.o.
9242 * extension.h: New file.
9243 * extension-priv.h: New file.
9244 * extension.c: New file.
9245
9246 * python/python-internal.h: #include "extension.h".
9247 (gdbpy_auto_load_enabled): Declare.
9248 (gdbpy_apply_val_pretty_printer): Declare.
9249 (gdbpy_apply_frame_filter): Declare.
9250 (gdbpy_preserve_values): Declare.
9251 (gdbpy_breakpoint_cond_says_stop): Declare.
9252 (gdbpy_breakpoint_has_cond): Declare.
9253 (void source_python_script_for_objfile): Delete.
9254 * python/python.c: #include "extension-priv.h".
9255 Delete inclusion of "observer.h".
9256 (extension_language_python): Moved here and renamed from
9257 script_language_python in py-auto-load.c.
9258 Redefined to be of type extension_language_defn.
9259 (python_extension_script_ops): New global.
9260 (python_extension_ops): New global.
9261 (struct python_env): New member previous_active.
9262 (restore_python_env): Call restore_active_ext_lang.
9263 (ensure_python_env): Call set_active_ext_lang.
9264 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9265 New arg extlang.
9266 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9267 New arg extlang.
9268 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9269 New arg extlang.
9270 (gdbpy_eval_from_control_command): Renamed from
9271 eval_python_from_control_command, made static. New arg extlang.
9272 (gdbpy_source_script) Renamed from source_python_script, made static.
9273 New arg extlang.
9274 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9275 result to int. New arg extlang.
9276 (gdbpy_source_objfile_script): Renamed from
9277 source_python_script_for_objfile, made static. New arg extlang.
9278 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9279 static. New args extlang, extlang_printers. Change result type to
9280 "void".
9281 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9282 static. New arg extlang. Rename arg printers to extlang_printers
9283 and change type to ext_lang_type_printers *.
9284 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9285 static. Replace argument arg with extlang, extlang_printers.
9286 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9287 (!HAVE_PYTHON, source_python_script): Delete.
9288 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9289 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9290 (!HAVE_PYTHON, start_type_printers): Delete.
9291 (!HAVE_PYTHON, apply_type_printers): Delete.
9292 (!HAVE_PYTHON, free_type_printers): Delete.
9293 (_initialize_python): Delete call to observer_attach_before_prompt.
9294 (finalize_python): Set/restore active extension language.
9295 (gdbpy_finish_initialization) Renamed from
9296 finish_python_initialization, made static. New arg extlang.
9297 (gdbpy_initialized): New function.
9298 * python/python.h: #include "extension.h". Delete #include
9299 "value.h", "mi/mi-cmds.h".
9300 (extension_language_python): Declare.
9301 (GDBPY_AUTO_FILE_NAME): Delete.
9302 (enum py_bt_status): Moved to extension.h and renamed to
9303 ext_lang_bt_status.
9304 (enum frame_filter_flags): Moved to extension.h.
9305 (enum py_frame_args): Moved to extension.h and renamed to
9306 ext_lang_frame_args.
9307 (finish_python_initialization): Delete.
9308 (eval_python_from_control_command): Delete.
9309 (source_python_script): Delete.
9310 (apply_val_pretty_printer): Delete.
9311 (apply_frame_filter): Delete.
9312 (preserve_python_values): Delete.
9313 (gdbpy_script_language_defn): Delete.
9314 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9315 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9316
9317 * auto-load.c: #include "extension.h".
9318 (GDB_AUTO_FILE_NAME): Delete.
9319 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9320 (script_language_gdb): Delete, moved to extension.c and renamed to
9321 extension_language_gdb.
9322 (source_gdb_script_for_objfile): Delete.
9323 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9324 (loaded_script): Change type of language member to
9325 struct extension_language_defn *.
9326 (init_loaded_scripts_info): Initialize
9327 unsupported_script_warning_printed.
9328 (maybe_add_script): Make static. Change type of language arg to
9329 struct extension_language_defn *.
9330 (clear_section_scripts): Reset unsupported_script_warning_printed.
9331 (auto_load_objfile_script_1): Rewrite to use extension language API.
9332 (auto_load_objfile_script): Make public. Remove support-compiled-in
9333 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9334 (source_section_scripts): Rewrite to use extension language API.
9335 (load_auto_scripts_for_objfile): Rewrite to use
9336 auto_load_scripts_for_objfile.
9337 (collect_matching_scripts_data): Change type of language member to
9338 struct extension_language_defn *.
9339 (auto_load_info_scripts): Change type of language arg to
9340 struct extension_language_defn *.
9341 (unsupported_script_warning_print): New function.
9342 (script_not_found_warning_print): Make static.
9343 (_initialize_auto_load): Rewrite construction of scripts-directory
9344 help.
9345 * auto-load.h (struct objfile): Add forward decl.
9346 (struct script_language): Delete.
9347 (struct auto_load_pspace_info): Add forward decl.
9348 (struct extension_language_defn): Add forward decl.
9349 (maybe_add_script): Delete.
9350 (auto_load_objfile_script): Declare.
9351 (script_not_found_warning_print): Delete.
9352 (auto_load_info_scripts): Update prototype.
9353 (auto_load_gdb_scripts_enabled): Declare.
9354 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9355 auto_load_python_scripts_enabled and made public.
9356 (script_language_python): Delete, moved to python.c.
9357 (gdbpy_script_language_defn): Delete.
9358 (info_auto_load_python_scripts): Update to use
9359 extension_language_python.
9360
9361 * breakpoint.c (condition_command): Replace call to
9362 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9363 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9364 with call to breakpoint_ext_lang_cond_says_stop.
9365 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9366 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9367 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9368 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9369 New arg slang.
9370 (local_setattro): Print name of extension language with existing
9371 stop condition.
9372
9373 * valprint.c (val_print, value_print): Update to call
9374 apply_ext_lang_val_pretty_printer.
9375 * cp-valprint.c (cp_print_value): Update call to
9376 apply_ext_lang_val_pretty_printer.
9377 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9378 (gdbpy_apply_val_pretty_printer): Renamed from
9379 apply_val_pretty_printer. New arg extlang.
9380 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9381
9382 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9383 extension language API.
9384 * cli/cli-script.c (execute_control_command): Update to call
9385 eval_ext_lang_from_control_command.
9386
9387 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9388 enum ext_lang_bt_status values. Update call to
9389 apply_ext_lang_frame_filter.
9390 (mi_cmd_stack_list_locals): Ditto.
9391 (mi_cmd_stack_list_args): Ditto.
9392 (mi_cmd_stack_list_variables): Ditto.
9393 * mi/mi-main.c: Delete #include "python/python-internal.h".
9394 Add #include "extension.h".
9395 (mi_cmd_list_features): Replace reference to python internal variable
9396 gdb_python_initialized with call to ext_lang_initialized_p.
9397
9398 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9399 Update to use enum ext_lang_frame_args. Update to call
9400 apply_ext_lang_frame_filter.
9401 * python/py-framefilter.c (extract_sym): Update to use enum
9402 ext_lang_bt_status.
9403 (extract_value, py_print_type, py_print_value): Ditto.
9404 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9405 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9406 (py_print_frame): Ditto.
9407 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9408 New arg extlang. Update to use enum ext_lang_bt_status.
9409
9410 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9411 finish_python_initialization. Replace with call to
9412 finish_ext_lang_initialization.
9413
9414 * typeprint.c (do_free_global_table): Update to call
9415 free_ext_lang_type_printers.
9416 (create_global_typedef_table): Update to call
9417 start_ext_lang_type_printers.
9418 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9419 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9420 (type_print_options): Change type of global_printers from "void *"
9421 to "struct ext_lang_type_printers *".
9422
9423 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9424 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9425 (gdbpy_preserve_values): Renamed from preserve_python_values.
9426 New arg extlang.
9427 (!HAVE_PYTHON, preserve_python_values): Delete.
9428
9429 * utils.c (quit_flag): Delete, moved to extension.c.
9430 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9431 extension.c.
9432
9433 * eval.c: Delete #include "python/python.h".
9434 * main.c: Delete #include "python/python.h".
9435
9436 * defs.h: Update comment.
9437
6af79985
JB
94382014-02-06 Joel Brobecker <brobecker@adacore.com>
9439
9440 GDB 7.7 released.
9441
12c5175d
MK
94422014-02-05 Mark Kettenis <kettenis@gnu.org>
9443
9444 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9445 defined.
9446
8dc5b319
YQ
94472014-02-05 Yao Qi <yao@codesourcery.com>
9448
9449 * remote.c (remote_pass_signals): Remove local 'buf' and use
9450 rs->buf.
9451 (remote_program_signals): Likewise.
9452
de7b2893
YQ
94532014-02-05 Yao Qi <yao@codesourcery.com>
9454
9455 * ctf.c: Include "inferior.h" and "gdbthread.h".
9456 (CTF_PID): A new macro.
9457 (ctf_open): Call inferior_appeared and add_thread_silent.
9458 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9459 (ctf_thread_alive): New function.
9460 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9461
66d032ac
YQ
94622014-02-05 Yao Qi <yao@codesourcery.com>
9463
9464 Revert this patch:
9465
9466 2013-05-24 Yao Qi <yao@codesourcery.com>
9467
9468 * tracepoint.c (TFILE_PID): Remove.
9469 (tfile_open): Don't add thread and inferior.
9470 (tfile_close): Don't set 'inferior_ptid'. Don't call
9471 exit_inferior_silent.
9472 (tfile_thread_alive): Remove.
9473 (init_tfile_ops): Don't set field 'to_thread_alive' of
9474 tfile_ops.
9475
f4ccffad
CE
94762014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9477
9478 * remote.c (remote_start_remote): Call remote_check_symbols even
9479 if only symbol-file (not file) has been given.
9480
591a12a1
UW
94812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9482
9483 * gdbarch.sh (skip_entrypoint): New callback.
9484 * gdbarch.c, gdbarch.h: Regenerate.
9485 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9486 * infrun.c (fill_in_stop_func): Likewise.
9487 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9488 (ppc_elfv2_elf_make_msymbol_special): New function.
9489 (ppc_elfv2_skip_entrypoint): Likewise.
9490 (ppc_linux_init_abi): Install them for ELFv2.
9491
cc0e89c5
UW
94922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9493
9494 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9495 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9496 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9497 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9498 structures returned in GPRs.
9499
52f548e4
UW
95002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9501
9502 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9503 offset to the stack parameter list for the ELFv2 ABI.
9504
d4094b6a
UW
95052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9506
9507 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9508 set_gdbarch_convert_from_func_ptr_addr and
9509 set_gdbarch_elf_make_msymbol_special for ELFv1.
9510 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9511 function descriptors on ELFv1.
9512 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9513 set up r12 at function entry.
9514
cd453cd0
UW
95152014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9516
9517 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9518 (struct gdbarch_tdep): New member elf_abi.
9519
9520 * rs6000-tdep.c: Include "elf/ppc64.h".
9521 (rs6000_gdbarch_init): Detect ELF ABI version.
9522
0ff3e01f
UW
95232014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9524
9525 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9526 within a register pair holding a DFP 128-bit value on little-endian.
9527 (ppc64_sysv_abi_return_value_base): Likewise.
9528 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9529 (dfp_pseudo_register_write): Likewise.
9530
5b757e5d
UW
95312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9532
9533 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9534 offset on little-endian when passing _Decimal32.
9535 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9536
084ee545
UW
95372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9538
9539 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9540 of the overlapped FP register within the VSX register on little-
9541 endian platforms.
9542 (efpr_pseudo_register_write): Likewise.
9543
d63167af
UW
95442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9545
9546 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9547 offset on little-endian when passing small structures.
9548
e765b44c
UW
95492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9550
9551 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9552 (struct ppc64_sysv_argpos): New data structure.
9553 (ppc64_sysv_abi_push_float): Remove.
9554 (ppc64_sysv_abi_push_val): New function.
9555 (ppc64_sysv_abi_push_integer): Likewise.
9556 (ppc64_sysv_abi_push_freg): Likewise.
9557 (ppc64_sysv_abi_push_vreg): Likewise.
9558 (ppc64_sysv_abi_push_param): Likewise.
9559 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9560 (ppc64_sysv_abi_return_value_base): New function.
9561 (ppc64_sysv_abi_return_value): Refactor to use it.
9562
36c24d95
UW
95632014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9564
9565 * NEWS: Document new target powerpc64le-*-linux*.
9566
26fd9228
MK
95672014-02-04 Mark Kettenis <kettenis@gnu.org>
9568
9569 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9570 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9571 core dumps.
9572 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9573 register set used in ELF core dumps. Add floating-point register set.
9574
c5bb7362
KB
95752014-02-03 Kevin Buettner <kevinb@redhat.com>
9576
74228e77 9577 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
9578 dwarf2_to_gdb[] table using symbolic constants. Adjust
9579 penultimate entry from number representing the PC register
9580 to symbolic constant representing the MDR register. Add
9581 constant for the PC register to the end of the table.
9582
af09351e
MK
95832014-02-03 Mark Kettenis <kettenis@gnu.org>
9584
9585 * bsd-kvm.c: Include <sys/param.h>
9586
8507e05d
MK
95872014-02-03 Mark Kettenis <kettenis@gnu.org>
9588
9589 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9590
ae56bfb8
JB
95912014-01-31 Joel Brobecker <brobecker@adacore.com>
9592
9593 * ada-lang.h (clear_ada_sym_cache): Delete.
9594
718ee4dc
UW
95952014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
9596
9597 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9598
401e27fd
JM
95992014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9600
9601 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9602 the sigreturn register save area only if the syscall is
9603 sigreturn.
9604
a7c88acd
JB
96052014-01-29 Joel Brobecker <brobecker@adacore.com>
9606
9607 * valops.c (value_slice): Minor reformatting.
9608
fa0079ea
UW
96092014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
9610
9611 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9612
c6044dd1
JB
96132014-01-28 Joel Brobecker <brobecker@adacore.com>
9614
9615 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9616 New static globals.
9617 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9618 (ada_ignore_descriptive_types_p): New static global.
9619 (find_parallel_type_by_descriptive_type): Return immediately
9620 if ada_ignore_descriptive_types_p is set.
9621 (_initialize_ada_language): Register new commands "maintenance
9622 set ada", "maintenance show ada", "maintenance set ada
9623 ignore-descriptive-types" and "maintenance show ada
9624 ignore-descriptive-types".
9625 * NEWS: Add entry for new "maint ada set/show
9626 ignore-descriptive-types" commands.
9627
568e808b
MM
96282014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9629
9630 * record-btrace.c (record_btrace_close): Call btrace_teardown
9631 for all threads.
9632
467d141b
JB
96332014-01-27 Joel Brobecker <brobecker@adacore.com>
9634
9635 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9636 "ui-out.h".
9637
fb151210
JB
96382014-01-27 Joel Brobecker <brobecker@adacore.com>
9639
9640 * ada-typeprint (type_is_full_subrange_of_target_type):
9641 New function.
9642 (print_range): Add parameter bounds_prefered_p. If not set,
9643 try printing range types using the name of their base type.
9644 (print_range_type): Add parameter bounds_prefered_p.
9645 Use it in call to print_range.
9646 (print_array_type, ada_print_type): Update calls to print_range
9647 and print_range_type.
9648
aba02109
JB
96492014-01-27 Joel Brobecker <brobecker@adacore.com>
9650
9651 * ada-typeprint.c (print_array_type, print_choices, print_range)
9652 (print_range_bound, print_dynamic_range_bound, print_range_type):
9653 Remove declaration.
9654
e62e21fd
JB
96552014-01-27 Joel Brobecker <brobecker@adacore.com>
9656
9657 * ada-typeprint.c (print_range): Add missing empty line
9658 after local declaration.
9659
859cf5d1
JB
96602014-01-27 Joel Brobecker <brobecker@adacore.com>
9661
9662 * ada-valprint.c (print_optional_low_bound): Get index_type's
9663 target type for as long as it is a TYPE_CODE_RANGE.
9664
25790f6f
JB
96652014-01-27 Joel Brobecker <brobecker@adacore.com>
9666
9667 * procfs.c (procfs_make_note_section): Remove assertion and
9668 associated comment.
9669
6b6aa828
YQ
96702014-01-24 Yao Qi <yao@codesourcery.com>
9671
9672 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9673 * corelow.c (get_core_siginfo): Likewise.
9674
5d6df423
YQ
96752014-01-24 Yao Qi <yao@codesourcery.com>
9676
9677 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9678 ULONGEST. Don't check 'len' is negative.
9679 (remote_write_bytes): Change type of 'len' to ULONGEST.
9680
83b645b8
TT
96812014-01-23 Tom Tromey <tromey@redhat.com>
9682
9683 PR python/16485:
9684 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9685 Handle exception from frame.block.
9686 (FrameVars.fetch_frame_locals): Likewise.
9687
0740f8d8
TT
96882014-01-23 Tom Tromey <tromey@redhat.com>
9689
9690 PR python/16487:
9691 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9692 on a NULL pointer. Move "goto error" to correct place.
9693
21909fa1
TT
96942014-01-23 Tom Tromey <tromey@redhat.com>
9695
9696 PR python/16491:
9697 * python/py-framefilter.c (apply_frame_filter): Call
9698 ensure_python_env after computing gdbarch.
9699
17fde6d0
YQ
97002014-01-23 Yao Qi <yao@codesourcery.com>
9701
9702 * target.c (raw_memory_xfer_partial): Change argument type
9703 from void * to gdb_byte *.
9704 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9705
87ce2a04
DE
97062014-01-22 Doug Evans <dje@google.com>
9707
9708 New gdbserver option --debug-format=timestamp.
9709 * NEWS: Mention it.
9710
237b092b
AA
97112014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9712
9713 * syscalls/s390x-linux.xml: New file.
9714 * syscalls/s390-linux.xml: New file.
9715 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9716 (XML_SYSCALL_FILENAME_S390X): Likewise.
9717 (op_svc): New enum value for SVC opcode.
9718 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9719 (s390_linux_get_syscall_number): New function.
9720 (s390_gdbarch_init): Register '*get_syscall_number' and the
9721 syscall xml file name.
9722 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9723 "s390-linux.xml" and "s390x-linux.xml".
9724 * NEWS: Announce new feature.
9725
54bff650
BS
97262014-01-22 Baruch Siach <baruch@tkos.co.il>
9727
9728 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9729
14e361d7
PA
97302014-01-22 Pedro Alves <palves@redhat.com>
9731
9732 * xtensa-config.c: Include defs.h.
9733
46bbb3ed
JB
97342014-01-22 Joel Brobecker <brobecker@adacore.com>
9735
9736 * common/common-utils.h: Add "ARI:" comment beside __func__
9737 reference.
9738
3a80edfc
JB
97392014-01-22 Joel Brobecker <brobecker@adacore.com>
9740
9741 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9742 documentation a bit.
9743
4869db5e
RM
97442014-01-21 Roland McGrath <mcgrathr@google.com>
9745
9746 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9747 * configure: Regenerate.
9748 * aclocal.m4: Regenerate.
9749 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9750 New substituted variables.
9751 (install-strip): New target.
9752 (INSTALL_SCRIPT): New substituted variable.
9753 (FLAGS_TO_PASS): Add it.
9754 (install-only): Use $(INSTALL_SCRIPT) rather than
9755 $(INSTALL_PROGRAM) for gcore.
9756
9ea4267d
TT
97572014-01-20 Tom Tromey <tromey@redhat.com>
9758
9759 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9760 together.
9761
1f2bdf09
TT
97622014-01-20 Tom Tromey <tromey@redhat.com>
9763
9764 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9765 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9766 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9767 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9768 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9769 (struct cmd_list_element) <flags>: Remove.
9770 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9771 doc_allocated>: New fields.
9772 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9773 bitfields.
9774 * maint.c (maintenance_do_deprecate): Update.
9775 * top.c (execute_command): Update.
9776
e671835b
BS
97772014-01-20 Baruch Siach <baruch@tkos.co.il>
9778
9779 * xtensa-linux-nat.c: Include asm/ptrace.h.
9780
50367cd2
IB
97812014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9782
9783 * Makefile.in (SFILES): Add d-support.c.
9784 (COMMON_OBS): Add d-support.o.
9785 * d-lang.h (d_parse_symbol): Add comment, now defined in
9786 d-support.c.
9787 * d-lang.c (parse_call_convention)
9788 (parse_attributes, parse_function_types)
9789 (parse_function_args, parse_type, parse_identifier)
9790 (call_convention_p, d_parse_symbol): Move functions to ...
9791 * d-support.c: ... New file.
9792
ec9f644a
IB
97932014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9794
9795 * d-lang.h (d_parse_symbol): Add declaration.
9796 * d-lang.c (extract_identifiers)
9797 (extract_type_info): Remove functions.
9798 (parse_call_convention, parse_attributes)
9799 (parse_function_types, parse_function_args)
9800 (parse_type, parse_identifier, call_convention_p)
9801 (d_parse_symbol): New functions.
9802 (d_demangle): Use d_parse_symbol to demangle D symbols.
9803
94b1b47e
IB
98042014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9805
9806 * d-lang.h (struct builtin_d_type): New data type.
9807 (builtin_d_type): Add declaration.
9808 * d-lang.c (d_language_arch_info, build_d_types)
9809 (builtin_d_type): New functions.
9810 (enum d_primitive_types): New data type.
9811 (d_language_defn): Change c_language_arch_info to
9812 d_language_arch_info.
9813 (d_type_data): New static variable.
9814 (_initialize_d_language): Initialize d_type_data.
9815
63778547
IB
98162014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9817
9818 * d-lang.h (d_main_name): Add declaration.
9819 * d-lang.c (d_main_name): New function.
9820 * symtab.c (find_main_name): Add call to d_main_name.
9821
3271ba66
IB
98222014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9823
9824 * d-lang.c (d_language_defn): Change macro_expansion_c to
9825 macro_expansion_no.
9826
d36b3012
IB
98272014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9828
9829 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9830
c90a6fb7
SDJ
98312014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9832
9833 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9834 gdb_exception" declaration.
9835 * remote.c (getpkt_or_notif_sane): Likewise.
9836
749234e5
DE
98372014-01-17 Doug Evans <dje@google.com>
9838
9839 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9840 function, contents of dirnames_to_char_ptr_vec_append moved here.
9841 (delim_string_to_char_ptr_vec): New function.
9842 (dirnames_to_char_ptr_vec_append): Rewrite.
9843 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9844
df049a58
DE
98452014-01-17 Doug Evans <dje@google.com>
9846
9847 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9848 and moved here ...
9849 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9850 #include "common-utils.h".
9851 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9852 * common/vec.h (VEC_ASSERT_PASS): Update.
9853 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9854 (MACH_CHECK_ERROR): Update.
9855
69f97648
SM
98562014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9857
9858 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9859 comments.
9860 * gdbarch.h: Regenerate.
9861
98b1cfdc
TT
98622014-01-16 Tom Tromey <tromey@redhat.com>
9863
9864 * value.c (struct value) <regnum>: Move earlier.
9865
77a19445
TT
98662014-01-16 Tom Tromey <tromey@redhat.com>
9867
9868 * remote.c (extended_remote_create_inferior): Rename from
9869 extended_remote_create_inferior_1. Add "ops" argument. Remove
9870 old implementation.
9871
62261490
PA
98722014-01-16 Pedro Alves <palves@redhat.com>
9873
9874 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9875 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9876 the backchain.
9877
4d65956b
DE
98782014-01-16 Doug Evans <dje@google.com>
9879
9880 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9881
52834460
MM
98822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9883
9884 * btrace.h (btrace_thread_flag): New.
9885 (struct btrace_thread_info) <flags>: New.
9886 * record-btrace.c (record_btrace_resume_thread)
9887 (record_btrace_find_thread_to_move, btrace_step_no_history)
9888 (btrace_step_stopped, record_btrace_start_replaying)
9889 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9890 (record_btrace_find_resume_thread): New.
9891 (record_btrace_resume, record_btrace_wait): Extend.
9892 (record_btrace_can_execute_reverse): New.
9893 (record_btrace_open): Fail in non-stop mode.
9894 (record_btrace_set_replay): Split into this, ...
9895 (record_btrace_stop_replaying): ... this, ...
9896 (record_btrace_clear_histories): ... and this.
9897 (init_record_btrace_ops): Init to_can_execute_reverse.
9898 * NEWS: Announce it.
9899
118e6252
MM
99002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9901
9902 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9903 (forward_target_decr_pc_after_break)
9904 (target_decr_pc_after_break): New.
9905 * target.c (forward_target_decr_pc_after_break)
9906 (target_decr_pc_after_break): New.
9907 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9908 instead of gdbarch_decr_pc_after_break.
9909 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9910 instead of gdbarch_decr_pc_after_break.
9911 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9912 instead of gdbarch_decr_pc_after_break.
9913 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9914 instead of gdbarch_decr_pc_after_break.
9915 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9916 instead of gdbarch_decr_pc_after_break.
9917 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9918 instead of gdbarch_decr_pc_after_break.
9919
6e07b1d2
MM
99202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9921
9922 * btrace.c: Include regcache.h.
9923 (btrace_add_pc): New.
9924 (btrace_enable): Call btrace_add_pc.
9925 (btrace_is_empty): New.
9926 * btrace.h (btrace_is_empty): New.
9927 * record-btrace.c (require_btrace, record_btrace_info): Call
9928 btrace_is_empty.
9929
969c39fb
MM
99302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9931
9932 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9933 Support delta reads.
9934 (linux_disable_btrace): Change return type.
9935 * common/linux-btrace.h (linux_read_btrace): Change parameters
9936 and return type to allow error reporting. Update users.
9937 (linux_disable_btrace): Change return type. Update users.
9938 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9939 New.
9940 (btrace_error): New.
9941 (btrace_block) <begin>: Comment on BEGIN == 0.
9942 * btrace.c (btrace_compute_ftrace): Start from the end of
9943 the current trace.
9944 (btrace_stitch_trace, btrace_clear_history): New.
9945 (btrace_fetch): Read delta trace, return if replaying.
9946 (btrace_clear): Move clear history code to btrace_clear_history.
9947 (parse_xml_btrace): Throw an error if parsing failed.
9948 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9949 and return type to allow error reporting.
9950 (target_read_btrace): Change parameters and return type to allow
9951 error reporting.
9952 * target.c (target_read_btrace): Update.
9953 * remote.c (remote_read_btrace): Support delta reads. Pass
9954 errors on.
9955 * NEWS: Announce it.
9956
0b722aec
MM
99572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9958
9959 * record.h (record_btrace_frame_unwind)
9960 (record_btrace_tailcall_frame_unwind): New declarations.
9961 * dwarf2-frame: Include record.h
9962 (dwarf2_frame_cfa): Throw an error for btrace frames.
9963 * record-btrace.c: Include hashtab.h.
9964 (btrace_get_bfun_name): New.
9965 (btrace_call_history): Call btrace_get_bfun_name.
9966 (struct btrace_frame_cache): New.
9967 (bfcache): New.
9968 (bfcache_hash, bfcache_eq, bfcache_new): New.
9969 (btrace_get_frame_function): New.
9970 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9971 (record_btrace_frame_this_id): Compute own id.
9972 (record_btrace_frame_prev_register): Provide PC, throw_error
9973 for all other registers.
9974 (record_btrace_frame_sniffer): Detect btrace frames.
9975 (record_btrace_tailcall_frame_sniffer): New.
9976 (record_btrace_frame_dealloc_cache): New.
9977 (record_btrace_frame_unwind): Add new functions.
9978 (record_btrace_tailcall_frame_unwind): New.
9979 (_initialize_record_btrace): Allocate cache.
9980 * btrace.c (btrace_clear): Call reinit_frame_cache.
9981 * NEWS: Announce it.
9982
066ce621
MM
99832014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9984
9985 * record-btrace.c (record_btrace_set_replay)
9986 (record_btrace_goto_begin, record_btrace_goto_end)
9987 (record_btrace_goto): New.
9988 (init_record_btrace_ops): Initialize them.
9989 * NEWS: Announce it.
9990
e2887aa3
MM
99912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9992
9993 * record-btrace.c (record_btrace_find_new_threads)
9994 (record_btrace_thread_alive): New.
9995 (init_record_btrace_ops): Initialize to_find_new_threads and
9996 to_thread_alive.
9997
b2f4cfde
MM
99982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9999
10000 * record-btrace.c (record_btrace_resume): New.
10001 (record_btrace_wait): New.
10002 (init_record_btrace_ops): Initialize to_wait and to_resume.
10003
633785ff
MM
100042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10005
10006 * record-btrace.c (record_btrace_xfer_partial)
10007 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
10008 (record_btrace_allow_memory_access): New.
10009 (init_record_btrace_ops): Initialize new methods.
10010 * target.c (raw_memory_xfer_partial): Bail out if target reports
10011 that this memory is not available.
10012
3db08215
MM
100132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10014
10015 * target.h (target_ops) <to_insert_breakpoint>
10016 <to_remove_breakpoint>: Add target_ops parameter.
10017 (forward_target_insert_breakpoint): New.
10018 (forward_target_remove_breakpoint): New.
10019 (memory_remove_breakpoint, memory_insert_breakpoint):
10020 Add target_ops parameter.
10021 * target.c (target_insert_breakpoint): Split into this and ...
10022 (forward_target_insert_breakpoint): ... this.
10023 (target_remove_breakpoint): Split into this and ...
10024 (forward_target_remove_breakpoint): ... this.
10025 (debug_to_insert_breakpoint): Add target_ops parameter.
10026 Call forward_target_insert_breakpoint.
10027 (debug_to_remove_breakpoint): Add target_ops parameter.
10028 Call forward_target_remove_breakpoint.
10029 (update_current_target): Do not inherit or default to_insert_breakpoint
10030 and to_remove_breakpoint.
10031 * corelow.c (ignore): Add target_ops parameter.
10032 * exec.c (ignore): Add target_ops parameter.
10033 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10034 Add target_ops parameter.
10035 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10036 Add target_ops parameter.
10037 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10038 Add target_ops parameter.
10039 * record-full.c (record_full_beneath_to_insert_breakpoint)
10040 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10041 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10042 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10043 (record_full_core_remove_breakpoint): Add target_ops parameter.
10044 Update users.
10045 (record_full_beneath_to_insert_breakpoint_ops)
10046 (record_full_beneath_to_remove_breakpoint_ops)
10047 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10048 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10049 tmp_to_remove_breakpoint_ops,
10050 record_full_beneath_to_insert_breakpoint_ops, and
10051 record_full_beneath_to_remove_breakpoint_ops.
10052 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10053 (m32r_remove_breakpoint): Add target_ops parameter.
10054 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10055 Add target_ops parameter.
10056 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10057 Add target_ops parameter.
10058
cecac1ab
MM
100592014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10060 Markus Metzger <markus.t.metzger@intel.com>
10061
10062 * record-btrace.c: Include frame-unwind.h.
10063 (record_btrace_frame_unwind_stop_reason)
10064 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10065 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10066 New.
10067 (init_record_btrace_ops): Install it.
10068
824344ca
MM
100692014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10072 get_prev_frame_1.
10073
32261e52
MM
100742014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10075
10076 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10077 earlier.
10078
ea001bdc
MM
100792014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10080
10081 * frame-unwind.c: Include target.h.
10082 (frame_unwind_try_unwinder): New function with code from ...
10083 (frame_unwind_find_by_frame): ... here. New variable
10084 unwinder_from_target, call also target_get_unwinder)
10085 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10086 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10087 * target.h (struct target_ops): New fields to_get_unwinder and
10088 to_get_tailcall_unwinder.
10089 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10090
1f3ef581
MM
100912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10092
10093 * record-btrace.c (record_btrace_fetch_registers)
10094 (record_btrace_store_registers)
10095 (record_btrace_to_prepare_to_store): New.
10096 (init_record_btrace_ops): Add the above.
10097
f32dbf8c
MM
100982014-01-16 Tom Tromey <tromey@redhat.com>
10099
10100 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10101 * target.h (struct target_ops) <to_prepare_to_store>: Add
10102 argument.
10103 (target_prepare_to_store): Add argument.
10104 * target.c (debug_to_prepare_to_store): Add argument.
10105 (update_current_target): Update.
10106 * remote.c (remote_prepare_to_store): Add 'self' argument.
10107 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10108 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10109 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10110 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10111 argument.
10112 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10113 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10114 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10115 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10116 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10117
07bbe694
MM
101182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10119
10120 * btrace.h (replay) <replay>: New.
10121 (btrace_is_replaying): New.
10122 * btrace.c (btrace_clear): Free replay iterator.
10123 (btrace_is_replaying): New.
10124 * record-btrace.c (record_btrace_is_replaying): New.
10125 (record_btrace_info): Print insn number if replaying.
10126 (record_btrace_insn_history): Start at replay position.
10127 (record_btrace_call_history): Start at replay position.
10128 (init_record_btrace_ops): Init to_record_is_replaying.
10129
0688d04e
MM
101302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10131
10132 * record-btrace.c (record_btrace_insn_history_range): Include
10133 end.
10134 (record_btrace_insn_history_from): Adjust range.
10135 (record_btrace_call_history_range): Include
10136 end.
10137 (record_btrace_call_history_from): Adjust range.
10138 * NEWS: Announce changes.
10139
8710b709
MM
101402014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10141
10142 * record.h (enum record_print_flag)
10143 <record_print_indent_calls>: New.
10144 * record.c (get_call_history_modifiers): Recognize /c modifier.
10145 (_initialize_record): Document /c modifier.
10146 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10147 Reorder fields. Optionally indent the function name. Update
10148 all users.
10149 * NEWS: Announce changes.
10150
d0fa7535
MM
101512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10152
10153 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10154
5de9129b
MM
101552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10156
10157 * btrace.c (ftrace_new_function): Start counting at one.
10158 * record-btrace.c (record_btrace_info): Adjust number of calls
10159 and insns.
10160 * NEWS: Announce it.
10161
7acbe133
MM
101622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10163
10164 * record-btrace.c (btrace_call_history_insn_range): Print
10165 insn range as [begin, end].
10166
23a7fe75
MM
101672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10168
10169 * btrace.h (struct btrace_func_link): New.
10170 (enum btrace_function_flag): New.
10171 (struct btrace_inst): Rename to ...
10172 (struct btrace_insn): ...this. Update all users.
10173 (struct btrace_func) <ibegin, iend>: Remove.
10174 (struct btrace_func_link): New.
10175 (struct btrace_func): Rename to ...
10176 (struct btrace_function): ...this. Update all users.
10177 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10178 (number, level, flags>: New.
10179 (struct btrace_insn_iterator): Rename to ...
10180 (struct btrace_insn_history): ...this.
10181 Update all users.
10182 (struct btrace_insn_iterator, btrace_call_iterator): New.
10183 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10184 (struct btrace_target_info) <begin, end, level>
10185 <insn_history, call_history>: New.
10186 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10187 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10188 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10189 (btrace_call_number, btrace_call_begin, btrace_call_end)
10190 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10191 (btrace_find_function_by_number, btrace_set_insn_history)
10192 (btrace_set_call_history): New.
10193 * btrace.c (btrace_init_insn_iterator)
10194 (btrace_init_func_iterator, compute_itrace): Remove.
10195 (ftrace_print_function_name, ftrace_print_filename)
10196 (ftrace_skip_file): Change
10197 parameter to const.
10198 (ftrace_init_func): Remove.
10199 (ftrace_debug): Use new btrace_function fields.
10200 (ftrace_function_switched): Also consider gaining and
10201 losing symbol information).
10202 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10203 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10204 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10205 New.
10206 (ftrace_new_function): Move. Remove debug print.
10207 (ftrace_update_lines, ftrace_update_insns): New.
10208 (ftrace_update_function): Check for call, ret, and jump.
10209 (compute_ftrace): Renamed to ...
10210 (btrace_compute_ftrace): ...this. Rewritten to compute call
10211 stack.
10212 (btrace_fetch, btrace_clear): Updated.
10213 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10214 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10215 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10216 (btrace_call_number, btrace_call_begin, btrace_call_end)
10217 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10218 (btrace_find_function_by_number, btrace_set_insn_history)
10219 (btrace_set_call_history): New.
10220 * record-btrace.c (require_btrace): Use new btrace thread
10221 info fields.
10222 (record_btrace_info, btrace_insn_history)
10223 (record_btrace_insn_history, record_btrace_insn_history_range):
10224 Use new btrace thread info fields and new iterator.
10225 (btrace_func_history_src_line): Rename to ...
10226 (btrace_call_history_src_line): ...this. Use new btrace
10227 thread info fields.
10228 (btrace_func_history): Rename to ...
10229 (btrace_call_history): ...this. Use new btrace thread info
10230 fields and new iterator.
10231 (record_btrace_call_history, record_btrace_call_history_range):
10232 Use new btrace thread info fields and new iterator.
10233
8372a7cb
MM
102342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10235
10236 * frame.h (frame_id_build_unavailable_stack_special): New.
10237 * frame.c (frame_id_build_unavailable_stack_special): New.
10238
c2170eef
MM
102392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10240
10241 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10242 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10243 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10244 to gdbarch.
10245 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10246 (i386_insn_is_jump, i386_jmp_p): New.
10247 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10248 insn_is_jump to gdbarch.
10249 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10250 * gdbarch.h: Regenerated.
10251 * gdbarch.c: Regenerated.
10252 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10253 (default_insn_is_jump): New.
10254 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10255 (default_insn_is_jump): New.
10256
864089d2
MM
102572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10258
10259 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10260 Change to ...
10261 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10262 (btrace_read_type) <btrace_read_new>: Change to ...
10263 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10264
ed9edfb5
MM
102652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10266
10267 * common/linux-btrace.c (linux_read_btrace): Free trace from
10268 previous iteration.
10269
fbcbc3fd
DE
102702014-01-15 Doug Evans <dje@google.com>
10271
10272 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10273 uint32_t.
10274
3d548a53
TT
102752014-01-15 Tom Tromey <tromey@redhat.com>
10276
10277 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10278 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10279 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10280 (set_objfile_main_name): New function.
10281 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10282 language_of_main>: New fields.
10283 (set_objfile_main_name): Declare.
10284 * symtab.c (find_main_name): Loop over objfiles to find the main
10285 name and language.
10286 (set_main_name): Now static.
10287 (get_main_info): Add comment.
10288 * symtab.h (set_main_name): Don't declare.
10289
32ac0d11
TT
102902014-01-15 Tom Tromey <tromey@redhat.com>
10291
10292 * symtab.c (main_progspace_key): New global.
10293 (struct main_info): New.
10294 (name_of_main, language_of_main): Remove.
10295 (get_main_info, main_info_cleanup): New function.
10296 (set_main_name, main_name, main_language): Use get_main_info.
10297 (_initialize_symtab): Initialize main_progspace_key.
10298
9e6c82ad
TT
102992014-01-15 Tom Tromey <tromey@redhat.com>
10300
10301 * dbxread.c (process_one_symbol): Update.
10302 * dwarf2read.c (read_partial_die): Update.
10303 * symfile.c (set_initial_language): Call main_language.
10304 * symtab.c (language_of_main): Now static.
10305 (set_main_name): Add 'lang' parameter.
10306 (find_main_name): Update.
10307 (main_language): New function.
10308 (symtab_observer_executable_changed): Update.
10309 * symtab.h (set_main_name): Update.
10310 (language_of_main): Remove.
10311 (main_language): Declare.
10312
6ef55de7
TT
103132014-01-15 Tom Tromey <tromey@redhat.com>
10314
10315 * symfile.c (init_entry_point_info): Use new "initialized" field.
10316 Update.
10317 * objfiles.h (struct entry_point) <initialized>: New field.
10318 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10319 (struct objfile) <ei>: ...here. Remove.
10320 * objfiles.c (entry_point_address_query): Update.
10321
53eddfa6
TT
103222014-01-15 Tom Tromey <tromey@redhat.com>
10323
10324 * objfiles.c (entry_point_address_query): Relocate entry point
10325 address.
10326 (objfile_relocate1): Do not relocate entry point address.
10327 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10328 <the_bfd_section_index>: New field.
10329 * symfile.c (init_entry_point_info): Find the entry point's
10330 section.
10331
d56e56aa
TT
103322014-01-15 Tom Tromey <tromey@redhat.com>
10333
10334 * solib-frv.c (enable_break): Use entry_point_address_query.
10335
33a97bbe
OJ
103362014-01-15 Omair Javaid <omair.javaid@linaro.org>
10337
10338 * NEWS: Add note on improved process record-replay on
10339 arm*-linux* targets.
10340
c6ec2b30
OJ
103412014-01-15 Omair Javaid <omair.javaid@linaro.org>
10342
10343 * arm-tdep.c (enum arm_record_result): New enum.
10344 (arm_record_unsupported_insn): New function.
10345 (arm_record_coproc_data_proc): Removed.
10346 (thumb2_record_ld_st_multiple): New function.
10347 (thumb2_record_ld_st_dual_ex_tbb): New function.
10348 (thumb2_record_data_proc_sreg_mimm): New function.
10349 (thumb2_record_ps_dest_generic): New function.
10350 (thumb2_record_branch_misc_cntrl): New function.
10351 (thumb2_record_str_single_data): New function.
10352 (thumb2_record_ld_mem_hints): New function.
10353 (thumb2_record_ld_word): New function.
10354 (thumb2_record_lmul_lmla_div): New function.
10355 (thumb2_record_decode_insn_handler): New function.
10356 (decode_insn): Add thumb32 instruction handlers.
10357
97dfe206
OJ
103582014-01-15 Omair Javaid <omair.javaid@linaro.org>
10359
10360 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10361 (struct arm_linux_record_tdep): Declare.
10362 (arm_canonicalize_syscall): New function.
10363 (arm_all_but_pc_registers_record): New function.
10364 (arm_linux_syscall_record): New function.
10365 (arm_linux_init_abi): Add syscall recording constructs.
10366 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10367 decoding. (arm_record_coproc_data_proc): Update arm syscall
10368 decoding.
10369 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10370 <arm_syscall_record>: New field.
10371 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10372 gdb_target_obs.
10373
9904a494
OJ
103742014-01-15 Omair Javaid <omair.javaid@linaro.org>
10375
10376 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10377 register for push instruction recording.
10378
f969241e
OJ
103792014-01-15 Omair Javaid <omair.javaid@linaro.org>
10380
10381 * arm-tdep.c (thumb_record_misc): Update to correct logical
10382 error while recording ldm, ldmia and pop instructions.
10383
bfbbec00
OJ
103842014-01-15 Omair Javaid <omair.javaid@linaro.org>
10385
10386 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10387
e40adcc9
PA
103882014-01-15 Pedro Alves <palves@redhat.com>
10389
10390 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10391 (go32_resume, go32_fetch_registers, store_register)
10392 (go32_store_registers, go32_prepare_to_store)
10393 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10394 (go32_create_inferior, go32_can_run, go32_terminal_init)
10395 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10396 declarations.
10397
b0a16e66
TT
103982014-01-15 Tom Tromey <tromey@redhat.com>
10399
10400 * target.h (async_callback_ftype): New typedef.
10401 (struct target_ops) <to_async>: Use it.
10402
bf7105a4
JB
104032014-01-15 Joel Brobecker <brobecker@adacore.com>
10404
10405 * python/py-value.c (get_field_type): Remove unnecessary curly
10406 braces for single-statement if block.
10407
a8f35c2e
JB
104082014-01-15 Joel Brobecker <brobecker@adacore.com>
10409
10410 * python/py-type.c (convert_field): Add missing empty line
10411 after declarations.
10412
bb4142cf
DE
104132014-01-14 Doug Evans <dje@google.com>
10414
10415 * symfile.h (expand_symtabs_matching): Renamed from
10416 expand_partial_symbol_names. Update prototype.
10417 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10418 * symfile.c (expand_symtabs_matching): Renamed from
10419 expand_partial_symbol_names. New args file_matcher, kind.
10420 Rename arg fun to symbol_matcher.
10421 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10422 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10423 ada_expand_partial_symbol_name.
10424 (ada_make_symbol_completion_list): Update to call
10425 expand_symtabs_matching.
10426 (ada_add_global_exceptions): Call expand_symtabs_matching.
10427 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10428 call map_symbol_filenames.
10429 * symtab.c (sources_info): Update to call map_symbol_filenames.
10430 (search_symbols): Call expand_symtabs_matching.
10431 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10432 (default_make_symbol_completion_list_break_on): Update to call
10433 expand_symtabs_matching.
10434 (make_source_files_completion_list): Update to call
10435 map_symbol_filenames.
10436
206f2a57
DE
104372014-01-14 Doug Evans <dje@google.com>
10438
10439 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10440 (expand_symtabs_symbol_matcher_ftype): New typedef.
10441 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10442 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10443 * symfile.c (expand_partial_symbol_names): Update to use
10444 expand_symtabs_symbol_matcher_ftype.
10445 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10446 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10447 Arg name_matcher renamed to symbol_matcher.
10448 * psymtab.c (recursively_search_psymtabs): Update to use
10449 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10450 sym_matcher.
10451 (expand_symtabs_matching_via_partial): Update to use
10452 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10453 Arg name_matcher renamed to symbol_matcher.
10454
540c2971
DE
104552014-01-14 Doug Evans <dje@google.com>
10456
10457 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10458 (map_partial_symbol_filenames): Ditto.
10459 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10460 (map_partial_symbol_filenames): Ditto.
10461 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10462 (map_partial_symbol_filenames): Ditto.
10463 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10464 (map_partial_symbol_filenames): Ditto.
10465 * symtab.c: Delete #include "psymtab.h".
10466
8213266a
PA
104672014-01-14 Pedro Alves <palves@redhat.com>
10468 Tom Tromey <tromey@redhat.com>
10469
10470 * infrun.c (use_displaced_stepping): Use find_record_target
10471 instead of RECORD_IS_USED.
10472 (adjust_pc_after_break): Use record_full_is_used instead of
10473 RECORD_IS_USED.
10474 * record-btrace.c (record_btrace_open): Call record_preopen
10475 instead of checking RECORD_IS_USED.
10476 * record-full.c (record_full_shortname)
10477 (record_full_core_shortname): New globals.
10478 (record_full_is_used): New function.
10479 (find_full_open): Call record_preopen instead of checking
10480 RECORD_IS_USED.
10481 (init_record_full_ops): Set the target's shortname to
10482 record_full_shortname.
10483 (init_record_full_core_ops): Set the target's shortname to
10484 record_full_core_shortname.
10485 * record-full.h (record_full_is_used): Declare.
10486 * record.c (find_record_target): Make extern.
10487 (record_preopen): New function.
10488 * record.h (RECORD_IS_USED): Delete macro.
10489 (find_record_target, record_preopen): Declare functions.
10490
7ec1862d
YQ
104912014-01-14 Yao Qi <yao@codesourcery.com>
10492
10493 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10494 'len''s type to ULONGEST.
10495 (core_xfer_shared_libraries_aix): Likewise.
10496 * gdbarch.c, gdbarch.h: Regenerated.
10497 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10498 Change type of 'len' to ULONGEST.
10499 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10500 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10501
dea80a27
YQ
105022014-01-14 Yao Qi <yao@codesourcery.com>
10503
10504 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10505 type of 'len' to ULONGEST.
10506 (linux_xfer_osdata_processgroups): Likewise.
10507 (linux_xfer_osdata_threads): Likewise.
10508 (linux_xfer_osdata_fds): Likewise.
10509 (linux_xfer_osdata_isockets): Likewise.
10510 (linux_xfer_osdata_shm): Likewise.
10511 (linux_xfer_osdata_sem): Likewise.
10512 (linux_xfer_osdata_msg): Likewise.
10513 (linux_common_xfer_osdata): Likewise.
10514 (struct osdata_type) <getter>: Likewise.
10515 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10516 the declaration.
10517
b55e14c7
YQ
105182014-01-14 Yao Qi <yao@codesourcery.com>
10519
10520 * target.h (target_xfer_partial_ftype): Update.
10521 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10522 ULONGEST.
10523 * aix-thread.c (aix_thread_xfer_partial): Change type of
10524 argument 'len' to ULONGEST.
10525 * auxv.c (procfs_xfer_auxv): Likewise.
10526 (ld_so_xfer_auxv): Likewise.
10527 (memory_xfer_auxv): Likewise.
10528 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10529 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10530 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10531 * corelow.c (core_xfer_partial): Likewise.
10532 * ctf.c (ctf_xfer_partial): Likewise.
10533 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10534 '%u'.
10535 (darwin_read_dyld_info): Likewise.
10536 (darwin_xfer_partial): Likewise.
10537 * exec.c (section_table_xfer_memory_partial): Likewise.
10538 (exec_xfer_partial): Likewise.
10539 * exec.h (section_table_xfer_memory_partial): Update
10540 declaration.
10541 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10542 instead of plongest.
10543 (gnu_xfer_partial): Likewise.
10544 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10545 (ia64_hpux_xfer_solib_got): Likewise.
10546 (ia64_hpux_xfer_partial): Likewise.
10547 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10548 * inf-ptrace.c (inf_ptrace_xfer_partial):
10549 * inf-ttrace.c (inf_ttrace_xfer_partial):
10550 * linux-nat.c (linux_xfer_siginfo): Likewise.
10551 (linux_nat_xfer_partial): Likewise.
10552 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10553 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10554 * monitor.c (monitor_xfer_memory): Likewise.
10555 (monitor_xfer_partial): Likewise.
10556 * procfs.c (procfs_xfer_partial): Likewise.
10557 * record-full.c (record_full_xfer_partial): Likewise.
10558 (record_full_core_xfer_partial): Likewise.
10559 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10560 instead of plongest.
10561 (gdbsim_xfer_partial): Likewise.
10562 * remote.c (remote_xfer_partial): Likewise.
10563 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10564 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10565 declaration.
10566 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10567 (rs6000_xfer_shared_libraries): Likewise.
10568 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10569 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10570 (sparc_xfer_partial): Likewise.
10571 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10572 (spu_xfer_partial): Likewise.
10573 * spu-multiarch.c (spu_xfer_partial): Likewise.
10574 * target.c (target_read_live_memory): Likewise.
10575 (memory_xfer_live_readonly_partial): Likewise.
10576 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10577 (target_xfer_partial, default_xfer_partial): Likewise.
10578 (current_xfer_partial): Likewise.
10579 * tracepoint.c (tfile_xfer_partial): Likewise.
10580 * windows-nat.c (windows_xfer_memory): Likewise. Call
10581 pulongest instead of plongest.
10582 (windows_xfer_partial): Likewise.
10583 (windows_xfer_shared_libraries): Likewise.
10584
05804640
YQ
105852014-01-14 Yao Qi <yao@codesourcery.com>
10586
10587 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10588 target_xfer_partial_ftype.
10589
b5b08fb4
SC
105902014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10591
10592 PR python/15464
10593 PR python/16113
10594 * valops.c (value_struct_elt_bitpos): New function
10595 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10596 object to 'None' if the field name is an empty string ("").
10597 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10598 attribute to look for a field when 'name' is 'None'.
10599 (get_field_type): New function
10600
13aaf454
DE
106012014-01-13 Doug Evans <dje@google.com>
10602
10603 PR symtab/16426
10604 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10605 (try_open_dwop_file): Ditto.
10606 * gdb_bfd.c: #include "vec.h".
10607 (bfdp): New typedef.
10608 (struct gdb_bfd_data): New member included_bfds.
10609 (gdb_bfd_unref): Unref all included bfds.
10610 (gdb_bfd_record_inclusion): New function.
10611 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10612
c2cec97c
TT
106132014-01-13 Tom Tromey <tromey@redhat.com>
10614
10615 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10616
78e5999d
TT
106172014-01-13 Tom Tromey <tromey@redhat.com>
10618
10619 * defs.h (use_windows): Remove.
10620 * gdb.c (main): Update.
10621 * main.c (captured_main, gdb_main): Update.
10622 * main.h (struct captured_main_args) <use_windows>: Remove.
10623 * top.c (use_windows): Remove.
10624
f2052bbe
TT
106252014-01-13 Tom Tromey <tromey@redhat.com>
10626
10627 * defs.h (deprecated_flush_hook): Remove.
10628
fde4f8ed
JK
106292014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 PR threads/16216
10632 * linux-thread-db.c (try_thread_db_load): Add parameter
10633 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10634 (try_thread_db_load_from_pdir_1): Move it there from here.
10635 (try_thread_db_load_from_sdir): Update caller.
10636 (try_thread_db_load_from_dir): Move it there from here.
10637
bdf61915
PP
106382014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10639
10640 * regformats/regdat.sh: Always rewrite the register file.
10641
f71e1a8d
PA
106422014-01-13 Pedro Alves <palves@redhat.com>
10643
10644 * Makefile.in (CHECK_HEADERS): New variable.
10645 (check-headers:): New rule.
10646
42c85435
TT
106472014-01-13 Tom Tromey <tromey@redhat.com>
10648
10649 * cli/cli-setshow.c (do_set_command): Update.
10650 * defs.h (deprecated_set_hook): Remove.
10651 * top.c (deprecated_set_hook): Remove.
10652
f8de5129
PA
106532014-01-13 Pedro Alves <palves@redhat.com>
10654
10655 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10656 the tracepoint if the PC is a pseudo-register.
10657
fc270c35
TT
106582014-01-13 Tom Tromey <tromey@redhat.com>
10659
10660 * defs.h (XCALLOC): Remove.
10661 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10662 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10663 * dwarf2loc.c (allocate_piece_closure): Likewise.
10664 * elfread.c (elf_symfile_segments): Likewise.
10665 (elf_symfile_segments): Likewise.
10666 * gdbtypes.c (copy_type_recursive): Likewise.
10667 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10668 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10669 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10670 XCALLOC.
10671 * mt-tdep.c (mt_gdbarch_init): Likewise.
10672 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10673 XCALLOC.
10674 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10675 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10676 * registry.c (registry_alloc_data): Likewise.
10677 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10678 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10679 * serial.c (serial_fdopen_ops): Likewise.
10680 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10681 XCALLOC.
10682 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10683 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10684 not XCALLOC.
10685
70ba0933
TT
106862014-01-13 Tom Tromey <tromey@redhat.com>
10687
10688 * defs.h (XMALLOC): Remove.
10689 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10690 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10691 * cli-out.c (struct ui_out *): Likewise.
10692 * cli/cli-dump.c (add_dump_command): Likewise.
10693 (add_dump_command): Likewise.
10694 * complaints.c (get_complaints): Likewise.
10695 (find_complaint): Likewise.
10696 * dwarf2-frame.c (execute_cfa_program): Likewise.
10697 * dwarf2read.c (abbrev_table_read_table): Likewise.
10698 * gdbarch.sh: Likewise.
10699 * gdbarch.c: Rebuild.
10700 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10701 * interps.c (interp_new): Likewise.
10702 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10703 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10704 * mi/mi-console.c (mi_console_file_new): Likewise.
10705 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10706 * mi/mi-out.c (mi_out_new): Likewise.
10707 * mi/mi-parse.c (mi_parse): Likewise.
10708 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10709 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10710 * observer.c (xalloc_observer_list_node): Likewise.
10711 * regcache.c (regcache_xmalloc_1): Likewise.
10712 * reggroups.c (reggroup_new): Likewise.
10713 (_initialize_reggroup): Likewise.
10714 * registry.c (register_data_with_cleanup): Likewise.
10715 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10716 * ser-base.c (serial_ttystate): Likewise.
10717 * ser-mingw.c (make_pipe_state): Likewise.
10718 * ser-pipe.c (pipe_open): Likewise.
10719 * serial.c (serial_open): Likewise.
10720 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10721 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10722 (tui_alloc_win_info): Likewise.
10723 (tui_add_content_elements): Likewise.
10724 * tui/tui-file.c (tui_file_new): Likewise.
10725 * tui/tui-out.c (tui_out_new): Likewise.
10726 * ui-file.c (mem_file_new): Likewise.
10727 * ui-out.c (push_level): Likewise.
10728 (make_cleanup_ui_out_end): Likewise.
10729 (append_header_to_list): Likewise.
10730 (ui_out_new): Likewise.
10731 * user-regs.c (user_reg_add_builtin): Likewise.
10732
41bf6aca
TT
107332014-01-13 Tom Tromey <tromey@redhat.com>
10734
10735 * defs.h (XZALLOC): Remove.
10736 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10737 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10738 (get_ada_tasks_inferior_data): Likewise.
10739 * auto-load.c (get_auto_load_pspace_data): Likewise.
10740 * auxv.c (get_auxv_inferior_data): Likewise.
10741 * bfd-target.c (target_bfd_reopen): Likewise.
10742 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10743 (deprecated_insert_raw_breakpoint): Likewise.
10744 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10745 * corelow.c (core_open): Likewise.
10746 * darwin-nat.c (darwin_check_new_threads): Likewise.
10747 (darwin_attach_pid): Likewise.
10748 * dummy-frame.c (dummy_frame_push): Likewise.
10749 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10750 * dwarf2loc.c (allocate_piece_closure): Likewise.
10751 * elfread.c (elf_symfile_segments): Likewise.
10752 * eval.c (ptrmath_type_p): Likewise.
10753 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10754 * gdbtypes.c (alloc_type_arch): Likewise.
10755 (alloc_type_instance): Likewise.
10756 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10757 * inf-child.c (inf_child_can_use_agent): Likewise.
10758 * inflow.c (get_inflow_inferior_data): Likewise.
10759 * infrun.c (save_infcall_suspend_state): Likewise.
10760 * jit.c (jit_reader_load): Likewise.
10761 (get_jit_objfile_data): Likewise.
10762 (get_jit_program_space_data): Likewise.
10763 (jit_object_open_impl): Likewise.
10764 (jit_symtab_open_impl): Likewise.
10765 (jit_block_open_impl): Likewise.
10766 (jit_frame_sniffer): Likewise.
10767 * linux-fork.c (add_fork): Likewise.
10768 * maint.c (make_command_stats_cleanup): Likewise.
10769 * objfiles.c (get_objfile_pspace_data): Likewise.
10770 * opencl-lang.c (struct lval_closure): Likewise.
10771 * osdata.c (osdata_start_osdata): Likewise.
10772 * progspace.c (new_address_space): Likewise.
10773 (add_program_space): Likewise.
10774 * remote-sim.c (get_sim_inferior_data): Likewise.
10775 * sh-tdep.c (sh_gdbarch_init): Likewise.
10776 * skip.c (Ignore): Likewise.
10777 (skip_delete_command): Likewise.
10778 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10779 (library_list_start_library): Likewise.
10780 (solib_aix_current_sos): Likewise.
10781 * solib-darwin.c (get_darwin_info): Likewise.
10782 (darwin_current_sos): Likewise.
10783 * solib-dsbt.c (get_dsbt_info): Likewise.
10784 * solib-ia64-hpux.c (new_so_list): Likewise.
10785 (ia64_hpux_get_solib_linkage_addr): Likewise.
10786 * solib-spu.c (append_ocl_sos): Likewise.
10787 (spu_current_sos): Likewise.
10788 * solib-svr4.c (get_svr4_info): Likewise.
10789 (svr4_keep_data_in_core): Likewise.
10790 (library_list_start_library): Likewise.
10791 (svr4_default_sos): Likewise.
10792 (svr4_read_so_list): Likewise.
10793 * solib-target.c (library_list_start_library): Likewise.
10794 (solib_target_current_sos): Likewise.
10795 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10796 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10797 * symfile.c (default_symfile_segments): Likewise.
10798 * target-descriptions.c (tdesc_data_init): Likewise.
10799 (tdesc_create_reg): Likewise.
10800 (struct tdesc_type *): Likewise.
10801 (tdesc_create_vector): Likewise.
10802 (tdesc_set_struct_size): Likewise.
10803 (struct tdesc_type *): Likewise.
10804 (tdesc_free_feature): Likewise.
10805 (tdesc_create_feature): Likewise.
10806 * windows-nat.c (windows_add_thread): Likewise.
10807 (windows_make_so): Likewise.
10808 * xml-support.c (gdb_xml_body_text): Likewise.
10809 (gdb_xml_create_parser_and_cleanup): Likewise.
10810 (xml_process_xincludes): Likewise.
10811 * xml-syscall.c (allocate_syscalls_info): Likewise.
10812 (syscall_create_syscall_desc): Likewise.
10813
5acfdbae
SDJ
108142014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10815
10816 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10817 function, with code from i386_stap_parse_special_token.
10818 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10819 (i386_stap_parse_special_token): Move code to the two functions
10820 above; simplify it.
10821
0000e5cc
PA
108222014-01-09 Pedro Alves <palves@redhat.com>
10823 Hui Zhu <hui@codesourcery.com>
10824
10825 PR gdb/16101
10826 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10827 bp_err_string. Don't mark the location shlib_disabled if the
10828 error thrown wasn't a generic or memory error. Catch errors
10829 thrown while inserting breakpoints in overlayed code. Output
10830 error message of software breakpoints.
10831 * remote.c (remote_insert_breakpoint): If this breakpoint has
10832 target-side commands but this stub doesn't support Z0 packets,
10833 throw NOT_SUPPORTED_ERROR error.
10834 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10835 * target.h (target_insert_breakpoint): Extend comment.
10836 (target_insert_hw_breakpoint): Add comment.
10837
b7ea362b
PA
108382014-01-08 Pedro Alves <palves@redhat.com>
10839
10840 * remote.c (remote_add_thread): Add threads silently if starting
10841 up.
10842 (remote_notice_new_inferior): If in all-stop, and starting up,
10843 don't call notice_new_inferior.
10844 (get_current_thread): New function, factored out from ...
10845 (add_current_inferior_and_thread): ... this. Adjust.
10846 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10847 found any thread, then select the remote's current thread as GDB's
10848 current thread too.
10849
b7bba001
JB
108502014-01-08 Joel Brobecker <brobecker@adacore.com>
10851
10852 * NEWS: Create a new section for the next release branch.
10853 Rename the section of the current branch, now that it has
10854 been cut.
10855
16dfbded
JB
108562014-01-08 Joel Brobecker <brobecker@adacore.com>
10857
10858 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10859 * version.in: Bump version to 7.7.50.DATE-cvs.
10860
22c90ac1
YQ
108612014-01-08 Yao Qi <yao@codesourcery.com>
10862
10863 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10864 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10865 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10866
d64ad97c
YQ
108672014-01-08 Yao Qi <yao@codesourcery.com>
10868
10869 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10870 return value of bfd_get_filename to symbol_file_add_from_bfd.
10871
f93ba80c
PM
108722014-01-08 Pierre Muller <muller@sourceware.org>
10873
10874 Fix PR16201.
10875 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10876 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10877 to prim_record_mininal_symbol_and_info.
10878 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10879 in call to prim_record_minimal_symbol_and_info.
10880 (read_pe_exported_syms): Set index field of section_data.
10881
a4d9ba85
AP
108822014-01-07 Andrew Pinski <apinski@cavium.com>
10883
10884 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10885 * features/aarch64.c: Regenerate.
10886
1b67eb02
AS
108872014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10888
10889 * target.c (return_null): Define.
10890 (update_current_target): Use it instead of return_zero for
10891 functions that return a pointer.
10892
5e3f4fab
EBM
108932014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10894
10895 * source.c (add_path): Fix check for duplicated paths in the previously
10896 included paths.
10897
e2616788
HK
108982014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10899
10900 * ada-lang.c: Remove duplicated include statements.
10901 * alphabsd-nat.c: Ditto.
10902 * amd64-darwin-tdep.c: Ditto.
10903 * amd64fbsd-nat.c: Ditto.
10904 * auto-load.c: Ditto.
10905 * ax-gdb.c: Ditto.
10906 * breakpoint.c: Ditto.
10907 * dbxread.c: Ditto.
10908 * fork-child.c: Ditto.
10909 * gdb_usleep.c: Ditto.
10910 * i386-darwin-tdep.c: Ditto.
10911 * i386fbsd-nat.c: Ditto.
10912 * infcmd.c: Ditto.
10913 * inferior.c: Ditto.
10914 * jv-lang.c: Ditto.
10915 * linux-nat.c: Ditto.
10916 * linux-tdep.c: Ditto.
10917 * m68kbsd-nat.c: Ditto.
10918 * m68klinux-nat.c: Ditto.
10919 * microblaze-tdep.c: Ditto.
10920 * mips-linux-tdep.c: Ditto.
10921 * mn10300-tdep.c: Ditto.
10922 * nto-tdep.c: Ditto.
10923 * opencl-lang.c: Ditto.
10924 * osdata.c: Ditto.
10925 * printcmd.c: Ditto.
10926 * regcache.c: Ditto.
10927 * remote-m32r-sdi.c: Ditto.
10928 * remote.c: Ditto.
10929 * symfile.c: Ditto.
10930 * symtab.c: Ditto.
10931 * tilegx-linux-nat.c: Ditto.
10932 * tilegx-tdep.c: Ditto.
10933 * tracepoint.c: Ditto.
10934 * valops.c: Ditto.
10935 * vaxbsd-nat.c: Ditto.
10936 * windows-nat.c: Ditto.
10937 * xtensa-tdep.c: Ditto.
10938
bd1f7788
YQ
109392014-01-07 Yao Qi <yao@codesourcery.com>
10940
10941 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10942
79301218
JB
109432014-01-07 Yao Qi <yao@codesourcery.com>
10944 Joel Brobecker <brobecker@adacore.com>
10945
10946 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10947 (pdc_write_regs): Likewise.
10948 (fetch_regs_kernel_thread): Likewise.
10949 (store_regs_kernel_thread): Likewise.
10950
109512014-01-07 Joel Brobecker <brobecker@adacore.com>
10952
10953 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10954 tagged type objects to their actual type.
10955
8e355c5d
JB
109562014-01-07 Joel Brobecker <brobecker@adacore.com>
10957
10958 * ada-valprint.c (print_field_values): Add "language" parameter.
10959 Update calls to print_field_values and print_variant_part.
10960 Pass new parameter "language" in call to val_print instead
10961 of "current_language". Replace call to ada_val_print by call
10962 to val_print.
10963 (print_variant_part): Add "language" parameter.
10964 (ada_val_print_struct_union): Update call to print_field_values.
10965
4fbf5aa5
JB
109662014-01-07 Joel Brobecker <brobecker@adacore.com>
10967
10968 * ada-valprint.c (ui_memcpy): Delete.
10969 (ada_print_floating): Update documentation. Add empty line
10970 between between function documentation and implementation.
10971 Delete variable "buffer". Use ui_file_xstrdup in place of
10972 ui_file_put. Minor adjustments following this change.
10973
71855601
JB
109742014-01-07 Joel Brobecker <brobecker@adacore.com>
10975
10976 * ada-valprint.c (ada_val_print_string): New function,
10977 extracted from ada_val_print_array.
10978 (ada_val_print_array): Replace extracted code by call
10979 to ada_val_print_string followed by a return. Move
10980 "else" branch to the function's top block.
10981
4eb27a30
JB
109822014-01-07 Joel Brobecker <brobecker@adacore.com>
10983
10984 * ada-valprint.c (ada_val_print_array): Move implementation
10985 down. Rename parameter "offset" and "val" into "offset_aligned"
10986 and "original_value" respectively. Add parameter "offset".
10987
34b27950
JB
109882014-01-07 Joel Brobecker <brobecker@adacore.com>
10989
10990 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10991 re-organizing the code. Change the "???" message printed
10992 when target type is a TYPE_CODE_UNDEF into
10993 "<ref to undefined type>".
10994
079e4591
JB
109952014-01-07 Joel Brobecker <brobecker@adacore.com>
10996
10997 * ada-valprint.c (print_record): Delete, implementation inlined...
10998 (ada_val_print_struct_union): ... here. Remove call to
10999 ada_check_typedef in inlined implementation.
11000
8004dfd1
JB
110012014-01-07 Joel Brobecker <brobecker@adacore.com>
11002
11003 * ada-valprint.c (ada_val_print_gnat_array): New function,
11004 extracted from ada_val_print_1;
11005 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
11006 (ada_val_print_flt, ada_val_print_struct_union)
11007 (ada_val_print_ref): Likewise.
11008 (ada_val_print_1): Delete variables i and elttype.
11009 Replace extracted-out code by call to corresponding
11010 new functions.
11011
760a2db0
JB
110122014-01-07 Joel Brobecker <brobecker@adacore.com>
11013
11014 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11015
3a92c861
JB
110162014-01-07 Joel Brobecker <brobecker@adacore.com>
11017
11018 * ada-valprint.c (ada_val_print_1): Replace calls to
11019 ada_val_print_1 by calls to val_print.
11020
cd1630f9
JB
110212014-01-07 Joel Brobecker <brobecker@adacore.com>
11022
11023 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11024 Update calls to self accordingly. Replace calls to c_val_print
11025 by calls to val_print.
11026
bdf779a0
JB
110272014-01-07 Joel Brobecker <brobecker@adacore.com>
11028
11029 * ada-valprint.c (print_record): Delete declaration.
11030 (adjust_type_signedness, ada_val_print_1): Likewise.
11031 (ada_val_print): Move function implementation down.
11032 (print_variant_part, print_field_values, print_record):
11033 Move function implementation up.
11034
c0d48811
JB
110352014-01-07 Joel Brobecker <brobecker@adacore.com>
11036
11037 * python/py-type.c (typy_get_name): New function.
11038 (type_object_getset): Add entry for attribute "name".
11039 * NEWS: Add entry mentioning this new attribute.
11040
c26e9cbb
YQ
110412014-01-07 Yao Qi <yao@codesourcery.com>
11042
11043 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11044 statement.
11045
0cc6f43d
YQ
110462014-01-07 Yao Qi <yao@codesourcery.com>
11047
11048 * gnu-nat.c (info_port_rights): Add qualifier const to
11049 argument args.
11050
eec03155
YQ
110512014-01-07 Yao Qi <yao@codesourcery.com>
11052
11053 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11054
f04a82ef
YQ
110552014-01-07 Yao Qi <yao@codesourcery.com>
11056
11057 * gnu-nat.c (make_inf) Update declaration.
11058 (make_inf): Make it static.
11059 (inf_set_traced): Likewise.
11060 (inf_port_to_thread, inf_task_died_status): Likewise.
11061
d57dda0a
YQ
110622014-01-07 Yao Qi <yao@codesourcery.com>
11063
11064 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11065
3aa8c969
YQ
110662014-01-07 Yao Qi <yao@codesourcery.com>
11067
11068 * gnu-nat.c (_initialize_gnu_nat): Declare.
11069
94123b4f
YQ
110702014-01-07 Yao Qi <yao@codesourcery.com>
11071
11072 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11073 'enum bfd_endian'.
11074 (struct gdbarch_info) <byte_order>: Change type to
11075 'enum bfd_endian'.
11076 <byte_order_for_code>: Likewise.
11077 * gdbarch.c, gdbarch.h: Regenerated.
11078
dc81d70a
TT
110792014-01-06 Sasha Smundak <asmundak@google.com>
11080
11081 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11082
cc2f3c35
TT
110832014-01-06 Tom Tromey <tromey@redhat.com>
11084
11085 * doublest.c (convert_doublest_to_floatformat): Use const, not
11086 CONST.
11087 * somread.c (som_symtab_read): Likewise.
11088
adcf2eed
HZ
110892014-01-07 Hui Zhu <hui@codesourcery.com>
11090
11091 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11092 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11093 (gdb_bfd_fopen): Ditto.
11094 (gdb_bfd_openr): Ditto.
11095 (gdb_bfd_openw): Ditto.
11096 (gdb_bfd_openr_iovec): Ditto.
11097 (gdb_bfd_fdopenr): Ditto.
11098 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11099 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11100 with xstrdup.
11101 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11102 with xstrdup.
11103 * symfile-mem.c (symbol_file_add_from_memory): Removed
11104 gdb_bfd_stash_filename.
11105
50722198
DE
111062014-01-03 Doug Evans <dje@google.com>
11107
11108 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11109 output.
11110
2fa4b862
JB
111112014-01-01 Joel Brobecker <brobecker@adacore.com>
11112
11113 Update year range in copyright notice of all files.
11114
28498c42
JB
111152014-01-01 Joel Brobecker <brobecker@adacore.com>
11116
11117 * top.c (print_gdb_version): Set copyright year to 2014.
11118
7b6e1046
JB
111192014-01-01 Joel Brobecker <brobecker@adacore.com>
11120
11121 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11122
df96af55 11123For older changes see ChangeLog-2013.
c906108c
SS
11124\f
11125Local Variables:
11126mode: change-log
11127left-margin: 8
11128fill-column: 74
11129version-control: never
57da7796 11130coding: utf-8
c906108c 11131End:
This page took 2.212944 seconds and 4 git commands to generate.