Move ansidecl.h to common-defs.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
0e443c87
GB
12014-08-07 Gary Benson <gbenson@redhat.com>
2
3 * common/common-defs.h: Include ansidecl.h.
4 * defs.h: Do not include ansidecl.h.
5 * common/buffer.h: Likewise.
6 * common/common-utils.h: Likewise.
7
8ebb3f56
GB
82014-08-07 Gary Benson <gbenson@redhat.com>
9
10 * common/common-defs.h: Include stddef.h.
11 * defs.h: Do not include stddef.h.
12 * common/common-utils.h: Likewise.
13 * amd64fbsd-nat.c: Likewise.
14 * bcache.c: Likewise.
15 * charset.c: Likewise.
16 * common/buffer.h: Likewise.
17 * common/vec.h: Likewise.
18 * i386bsd-nat.c: Likewise.
19 * nat/linux-btrace.h: Likewise.
20 * ppcfbsd-nat.c: Likewise.
21 * ppcnbsd-tdep.h: Likewise.
22 * ppcobsd-nat.c: Likewise.
23 * ppcobsd-tdep.h: Likewise.
24 * python/py-gdb-readline.c: Likewise.
25
8980bdf6
GB
262014-08-07 Gary Benson <gbenson@redhat.com>
27
28 * common/common-defs.h: Include stdarg.h.
29 * defs.h: Do not include stdarg.h.
30 * ada-lang.c: Likewise.
31 * common/common-utils.h: Likewise.
32 * guile/scm-string.c: Likewise.
33 * guile/scm-utils.c: Likewise.
34 * m32c-tdep.c: Likewise.
35
d7096f71
GB
362014-08-07 Gary Benson <gbenson@redhat.com>
37
38 * common/common-defs.h: Include stdlib.h.
39 * defs.h: Do not include stdlib.h.
40 * addrmap.c: Likewise.
41 * bcache.c: Likewise.
42 * common/buffer.c: Likewise.
43 * common/common-utils.c: Likewise.
44 * cp-name-parser.y: Likewise.
45 * go32-nat.c: Likewise.
46 * mn10300-linux-tdep.c: Likewise.
47 * nat/linux-osdata.c: Likewise.
48 * tui/tui.c: Likewise.
49 * windows-nat.c: Likewise.
50
d02f550d
GB
512014-08-07 Gary Benson <gbenson@redhat.com>
52
53 * common/common-defs.h: Include stdio.h.
54 * defs.h: Do not include stdio.h.
55 * ada-lang.c: Likewise.
56 * common/buffer.c: Likewise.
57 * common/common-utils.c: Likewise.
58 * cp-name-parser.y: Likewise.
59 * gnu-nat.c: Likewise.
60 * go32-nat.c: Likewise.
61 * i386gnu-nat.c: Likewise.
62 * proc-api.c: Likewise.
63 * proc-events.c: Likewise.
64 * proc-flags.c: Likewise.
65 * proc-why.c: Likewise.
66 * python/python-internal.h: Likewise.
67 * target-memory.c: Likewise.
68 * tui/tui-io.c: Likewise.
69 * tui/tui.c: Likewise.
70
b6d7a4bf
SM
712014-08-06 Simon Marchi <simon.marchi@ericsson.com>
72
73 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
74 (scan_dyntag_auxv): Same.
75
af19829b
YQ
762014-08-06 Yao Qi <yao@codesourcery.com>
77
78 * amd64-linux-nat.c: Remove duplicated include
79 "x86-linux-nat.h".
80 * i386-linux-nat.c: Likewise.
81
8e07a239
YQ
822014-08-06 Yao Qi <yao@codesourcery.com>
83
84 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
85 operand" with "Special opcode" in comments.
86
7bfe8241
GB
872014-08-05 Gary Benson <gbenson@redhat.com>
88
89 * interps.c (initialize_interps): Remove prototype.
90 (interpreter_initialized): Remove static global.
91 (interp_add): Do not call initialize_interps.
92 (initialize_interps): Remove function.
93
d6c95504
GB
942014-08-05 Gary Benson <gbenson@redhat.com>
95
96 * utils.c (vwarning): Remove spurious va_end.
97
241fd515
AM
982014-08-05 Alan Modra <amodra@gmail.com>
99
100 * charset.c (convert_between_encodings): Cast result of obstack_base.
101 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
102 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
103 (read_unwind_info): Use size_t for some locals.
104 * jit.c (finalize_symtab): Likewise.
105 * utils.c (hashtab_obstack_allocate): Likewise.
106 * symmisc.c (print_objfile_statistics): Update format strings.
107
dc304a94
JK
1082014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
109
110 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
111 (Changes in GDB 7.8): ... here.
112
3cecbbbe
TT
1132014-08-04 Tom Tromey <tromey@redhat.com>
114
115 * target.c (set_targetdebug): New function.
116 (initialize_targets): Pass set_targetdebug when creating "set
117 debug target".
118
6908c509
JB
1192014-08-01 Joel Brobecker <brobecker@adacore.com>
120
121 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
122 if detecting a variable-sized field that is not the last field.
123 Fix struct type length computation.
124
53e8f97d
JB
1252014-08-01 Joel Brobecker <brobecker@adacore.com>
126
127 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
128 Add debug trace.
129
e068c55d
JB
1302014-08-01 Joel Brobecker <brobecker@adacore.com>
131
132 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
133 Remove "+ 8" offset in computation of CHAIN_VMA.
134
4d4ca2a1
DE
1352014-07-31 Doug Evans <dje@google.com>
136
137 * inflow.c (child_terminal_inferior): Add comment.
138 (child_terminal_ours_for_output): Add comment.
139 (child_terminal_ours): Add comment.
140 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
141 (linux_nat_terminal_ours): Add comment.
142
462f517e
GB
1432014-07-31 Gary Benson <gbenson@redhat.com>
144
145 * common/btrace-common.h: Do not include defs.h or server.h.
146 * nat/mips-linux-watch.h: Likewise.
147 * gdb-dlfcn.h: Do not include defs.h.
148 * tracefile.h: Likewise.
149
74228e77
RM
1502014-07-30 Roland McGrath <mcgrathr@google.com>
151
152 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
153
014f9477
TT
1542014-07-30 Tom Tromey <tromey@redhat.com>
155
156 * bsd-kvm.c (bsd_kvm_open): Constify.
157 * corelow.c (core_open): Constify.
158 * ctf.c (ctf_open): Constify.
159 * dbug-rom.c (dbug_open): Constify.
160 * exec.c (exec_open): Constify.
161 * m32r-rom.c (m32r_open, mon2000_open): Constify.
162 * microblaze-rom.c (picobug_open): Constify.
163 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
164 Constify.
165 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
166 * record-btrace.c (record_btrace_open): Constify.
167 * record-full.c (record_full_core_open_1, record_full_open_1)
168 (record_full_open): Constify.
169 * remote-m32r-sdi.c (m32r_open): Constify.
170 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
171 (rockhopper_open, lsi_open): Constify.
172 * remote-sim.c (gdbsim_open): Constify.
173 * remote.c (remote_open, extended_remote_open, remote_open_1):
174 Constify.
175 * target.h (struct target_ops) <to_open>: Make "arg" const.
176 * tracefile-tfile.c (tfile_open): Constify.
177
e799154c
TT
1782014-07-30 Tom Tromey <tromey@redhat.com>
179
180 * breakpoint.c (map_breakpoint_numbers): Update.
181 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
182 (get_number_const): New function.
183 (get_number): Rewrite using get_number_const.
184 (init_number_or_range): Make "string" const.
185 (number_is_in_list): Make "list" const.
186 * cli/cli-utils.h (get_number_const): Declare.
187 (struct get_number_or_range_state) <string, end_ptr>: Now const.
188 (init_number_or_range, number_is_in_list): Update.
189 * printcmd.c (map_display_numbers): Update.
190 * value.c (value_from_history_ref): Constify.
191 * value.h (value_from_history_ref): Update.
192
5f08566b
TT
1932014-07-30 Tom Tromey <tromey@redhat.com>
194
195 * corefile.c (hook_type, call_extra_exec_file_hooks)
196 (specify_exec_file_hook): Constify.
197 * exec.c (exec_file_attach): Make "filename" const.
198 * gdbcore.h (deprecated_exec_file_display_hook)
199 (specify_exec_file_hook, exec_file_attach): Constify.
200 * main.c (captured_main): Use catch_command_errors_const.
201
8981c758
TT
2022014-07-30 Tom Tromey <tromey@redhat.com>
203
204 * target.c (open_target): New function.
205 (add_target_with_completer, add_deprecated_target_alias): Use
206 set_cmd_sfunc, set_cmd_context.
207 (debug_to_open): Remove.
208 (setup_target_debug): Update.
209
a1c7835a
YQ
2102014-07-30 Yao Qi <yao@codesourcery.com>
211
212 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
213 comments.
214 * parse.c (exp_iterate): Update comments.
215
976411d6
GB
2162014-07-30 Gary Benson <gbenson@redhat.com>
217
218 * common/common-defs.h: New file.
219 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
220 * defs.h: Include common-defs.h.
221 Do not include config.h or build-gnulib/config.h.
222
5d4848a4
GB
2232014-07-30 Gary Benson <gbenson@redhat.com>
224
225 * common/common-utils.h: Do not include config.h.
226 * nat/linux-btrace.h: Likewise.
227
d41f6d8e
GB
2282014-07-30 Gary Benson <gbenson@redhat.com>
229
230 * btrace.c: Include defs.h.
231 * common/ptid.c: Include defs.h or server.h as appropriate.
232 * nat/mips-linux-watch.c: Likewise.
233
84202f9c
TT
2342014-07-29 Tom Tromey <tromey@redhat.com>
235
236 * target.c (target_is_pushed): Simplify.
237
2530441c
JB
2382014-07-29 Joel Brobecker <brobecker@adacore.com>
239
240 GDB 7.8 released.
241
7e09a223
YQ
2422014-07-29 Yao Qi <yao@codesourcery.com>
243
244 PR gdb/17206
245 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
246
7ebdbe92
DE
2472014-07-28 Doug Evans <xdje42@gmail.com>
248
249 PR guile/17203
250 * guile/scm-param.c (pascm_parameter_defined_p): New function.
251 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
252 parameters.
253
f347ffc9
WN
2542014-07-28 Will Newton <will.newton@linaro.org>
255
256 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
257 (THUMB2_SET_R7_SIGRETURN2): Likewise.
258 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
259 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
260 (THUMB2_EABI_SYSCALL): Likewise.
261 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
262 struct tramp_frame.
263 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
264 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
265
37c5f1f7
DE
2662014-07-27 Doug Evans <xdje42@gmail.com>
267
268 * guile/scm-param.c (pascm_print_param_smob): Fix output.
269
0c3abbc7
DE
2702014-07-27 Doug Evans <xdje42@gmail.com>
271
272 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
273
e76c5d17
DE
2742014-07-26 Ludovic Courtès <ludo@gnu.org>
275 Doug Evans <xdje42@gmail.com>
276
277 PR guile/17146
278 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
279 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
280 * configure.ac: Try to use guild to compile an scm file, if it fails
281 then disable guile support.
282 * configure: Regenerate.
283 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
284 GUILE_FILE_LIST.
285 (GUILE_COMPILED_FILES): New variable.
286 (GUILE_FILES) Update.
287 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
288 (stamp-guile): Compile scm files.
289 * guile/guile.c (boot_guile_support): New function.
290 (standard_throw_args_p): New function.
291 (print_standard_throw_error, print_throw_error): New functions.
292 (handle_boot_error): New function.
293 (initialize_scheme_side): Rewrite to call boot_guile_support.
294 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
295 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
296
186fcde0
DE
2972014-07-26 Ludovic Courtès <ludo@gnu.org>
298 Doug Evans <xdje42@gmail.com>
299
300 PR guile/17146
301 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
302 * guile/lib/gdb/support.scm: New file.
303 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
304 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
305 All uses updated.
306 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
307 All uses updated.
308 (%assert-type): Ditto, and renamed to assert-type.
309 (%exception-print-style): Delete.
310
4df42755
DE
3112014-07-26 Doug Evans <xdje42@gmail.com>
312
313 PR build/17105
314 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
315 * configure: Regenerate.
316 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
317 PYTHON_FILES.
318 (PYTHON_FILES): New variable.
319 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
320 (GUILE_FILES): New variable.
321 (stamp-python, install-python, uninstall-python): Handle empty
322 file list.
323 (stamp-guile, install-guile, uninstall-guile): Ditto.
324
ee7333ae
DE
3252014-07-26 Doug Evans <xdje42@gmail.com>
326
327 PR guile/17177
328 * guile/lib/gdb.scm (pretty-printers): Export.
329 (set-pretty-printers!): Export.
330 * guile/lib/gdb/printing.scm (gdb module): Update.
331 (prepend-pretty-printer!, append-pretty-printer!): Update.
332 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
333 (pretty_printer_list_var): Delete.
334 (pretty_printer_list): New static global.
335 (gdbscm_pretty_printers): New function.
336 (gdbscm_set_pretty_printers_x): New function.
337 (ppscm_find_pretty_printer_from_gdb): Update.
338 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
339 (gdbscm_initialize_pretty_printers): Update.
340
74edf516
DE
3412014-07-26 Doug Evans <xdje42@gmail.com>
342
343 PR 17185
344 * configure.ac: Add check for header gc/gc.h.
345 Add check for function setenv.
346 * configure: Regenerate.
347 * config.in: Regenerate.
348 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
349
d54398a7
MR
3502014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
351
352 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
353 variation in gdbarch matching.
354
ab16fce8
TT
3552014-07-25 Tom Tromey <tromey@redhat.com>
356
357 * exec.c (using_exec_ops): Remove.
358 (exec_close_1): Update. Remove extraneous block, reindent.
359 (add_target_sections): Use target_is_pushed.
360
88056fbb
PA
3612014-07-25 Pedro Alves <palves@redhat.com>
362
363 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
364 * monitor.c (monitor_create_inferior): Likewise.
365 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
366 * remote-sim.c (gdbsim_create_inferior): Likewise.
367 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
368 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
369 * windows-nat.c (do_initial_windows_stuff): Likewise.
370
70509625
PA
3712014-07-25 Pedro Alves <palves@redhat.com>
372
373 * NEWS: Mention signal passing and "signal" command changes.
374 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
375 comment.
376 * breakpoint.c (until_break_command): Adjust clear_proceed_status
377 call.
378 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
379 * infcmd.c (proceed_thread_callback, continue_1, step_once)
380 (jump_command): Adjust clear_proceed_status call.
381 (signal_command): Warn if other thread that are resumed have
382 signals that will be delivered. Adjust clear_proceed_status call.
383 (until_next_command, finish_command)
384 (proceed_after_attach_callback, attach_command_post_wait)
385 (attach_command): Adjust clear_proceed_status call.
386 * infrun.c (proceed_after_vfork_done): Likewise.
387 (proceed_after_attach_callback): Adjust comment.
388 (clear_proceed_status_thread): Clear stop_signal if not in pass
389 state.
390 (clear_proceed_status_callback): Delete.
391 (clear_proceed_status): New 'step' parameter. Only clear the
392 proceed status of threads the command being prepared is about to
393 resume.
394 (proceed): If passed in an explicit signal, override stop_signal
395 with it. Don't pass the last stop signal to the thread we're
396 resuming.
397 (init_wait_for_inferior): Adjust clear_proceed_status call.
398 (switch_back_to_stepped_thread): Clear the signal if it should not
399 be passed.
400 * infrun.h (clear_proceed_status): New 'step' parameter.
401 (user_visible_resume_ptid): Add comment.
402 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
403 signal is in pass state.
404 * remote.c (append_pending_thread_resumptions): Likewise.
405 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
406
d8be2939
TT
4072014-07-25 Tom Tromey <tromey@redhat.com>
408
409 * target.h (target_stopped_data_address)
410 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
411 parentheses.
412
7d0d9d2b
PL
4132014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
414
415 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
416 comments.
417 (avr_pointer_to_address): Likewise.
418
e9e7f724
TT
4192014-07-24 Tom Tromey <tromey@redhat.com>
420
421 * monitor.c (compile_pattern): Update.
422 * target.h (struct target_ops) <to_shortname, to_longname,
423 to_doc>: Now const.
424
1947513d
TT
4252014-07-24 Tom Tromey <tromey@redhat.com>
426
427 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
428 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
429 (add_info_alias, add_com): Make "doc" const.
430 (print_doc_line): Make "str" const.
431 (delete_cmd): Update.
432 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
433 (print_doc_line): Update.
434 * cli/cli-script.c (document_command): Update.
435 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
436 (add_com, add_info, add_info_alias): Update.
437 * guile/scm-cmd.c (cmdscm_destroyer): Update.
438 * python/py-cmd.c (cmdpy_destroyer): Update.
439
64e61d29
TT
4402014-07-24 Tom Tromey <tromey@redhat.com>
441
442 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
443 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
444 (help_cmd_list): Constify.
445 (lookup_cmd): Update.
446 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
447 const.
448 (help_cmd_list, apropos_cmd): Update.
449 * cli/cli-script.c (show_user): Update.
450 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
451 * cli/cli-setshow.h (cmd_show_list): Update.
452 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
453 (cmd_show_list): Update.
454 * guile/scm-cmd.c (cmdscm_destroyer): Update.
455 * python/py-cmd.c (cmdpy_destroyer): Update.
456
429e55ea
TT
4572014-07-24 Tom Tromey <tromey@redhat.com>
458
459 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
460 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
461 const.
462 * command.h (deprecate_cmd): Update.
463 * maint.c (maintenance_do_deprecate): Add casts.
464
64669f3b
TT
4652014-07-24 Tom Tromey <tromey@redhat.com>
466
467 * cli/cli-decode.c (help_cmd): Make parameter "const".
468 * cli/cli-decode.h (help_cmd): Update.
469
d3d3328b
TT
4702014-07-24 Tom Tromey <tromey@redhat.com>
471
472 * stack.c (up_silently_base, down_silently_base): Make argument
473 const.
474
414842dc
TT
4752014-07-24 Tom Tromey <tromey@redhat.com>
476
477 * solib.c (solib_add): Make "pattern" const.
478 * solib.h (solib_add): Update.
479
baa336ce
TT
4802014-07-24 Tom Tromey <tromey@redhat.com>
481
482 * remote.c (remote_serial_open, print_packet, putpkt)
483 (putpkt_binary): Constify.
484 * remote.h (putpkt): Update.
485
5a19e2d0
TT
4862014-07-24 Tom Tromey <tromey@redhat.com>
487
488 * monitor.c (monitor_open): Make "args" const.
489 * monitor.h (monitor_open): Update.
490
fc4baa5e
TT
4912014-07-24 Tom Tromey <tromey@redhat.com>
492
493 * maint.c (match_bfd_flags): Make "string" const.
494 (print_bfd_section_info): Remove casts.
495 (print_objfile_section_info): Make "string" const.
496
0d5f0dbe
TT
4972014-07-24 Tom Tromey <tromey@redhat.com>
498
499 * inf-child.c (inf_child_open_target): Make "arg" const.
500 * inf-child.h (inf_child_open_target): Update.
501
41c77899
TT
5022014-07-24 Tom Tromey <tromey@redhat.com>
503
504 * environ.c (unset_in_environ): Make "var" const.
505 * environ.h (unset_in_environ): Update.
506
93db0d79
TT
5072014-07-24 Tom Tromey <tromey@redhat.com>
508
509 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
510 Make "cmd" const.
511 (scan_filename_with_cleanup): Likewise.
512 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
513 Make arguments const.
514 (restore_command): Update.
515
36d6eb95
PA
5162014-07-24 Pedro Alves <palves@redhat.com>
517
518 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
519
8009206a
TT
5202014-07-24 Tom Tromey <tromey@redhat.com>
521 Gary Benson <gbenson@redhat.com>
522
523 * nat/linux-ptrace.c (additional_flags): New global.
524 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
525 additional_flags; don't check GDBSERVER.
526 (linux_ptrace_set_additional_flags): New function.
527 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
528 Declare.
529 * linux-nat.c (_initialize_linux_nat): Call
530 linux_ptrace_set_additional_flags.
531
a7068b60
TT
5322014-07-24 Tom Tromey <tromey@redhat.com>
533
534 * make-target-delegates (munge_type, write_debugmethod): New
535 functions.
536 (debug_names): New global.
537 ($TARGET_DEBUG_PRINTER): New global.
538 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
539 name.
540 Write debug methods. Generate init_debug_target.
541 * target-debug.h: New file.
542 * target-delegates.c: Rebuild.
543 * target.c: Include target-debug.h.
544 (debug_target): Hoist definition.
545 (target_kill, target_get_section_table, target_memory_map)
546 (target_flash_erase, target_flash_done, target_detach)
547 (target_disconnect, target_wait, target_resume)
548 (target_pass_signals, target_program_signals, target_follow_fork)
549 (target_mourn_inferior, target_search_memory)
550 (target_thread_address_space, target_close)
551 (target_find_new_threads, target_core_of_thread)
552 (target_verify_memory, target_insert_mask_watchpoint)
553 (target_remove_mask_watchpoint): Remove targetdebug code.
554 (debug_to_post_attach, debug_to_prepare_to_store)
555 (debug_to_files_info, debug_to_insert_breakpoint)
556 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
557 (debug_to_region_ok_for_hw_watchpoint)
558 (debug_to_can_accel_watchpoint_condition)
559 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
560 (debug_to_watchpoint_addr_within_range)
561 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
562 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
563 (debug_to_terminal_init, debug_to_terminal_inferior)
564 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
565 (debug_to_terminal_save_ours, debug_to_terminal_info)
566 (debug_to_load, debug_to_post_startup_inferior)
567 (debug_to_insert_fork_catchpoint)
568 (debug_to_remove_fork_catchpoint)
569 (debug_to_insert_vfork_catchpoint)
570 (debug_to_remove_vfork_catchpoint)
571 (debug_to_insert_exec_catchpoint)
572 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
573 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
574 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
575 (setup_target_debug): Call init_debug_target.
576 * target.h (TARGET_DEBUG_PRINTER): New macro.
577 (struct target_ops) <to_resume, to_wait, to_pass_signals,
578 to_program_signals>: Use TARGET_DEBUG_PRINTER.
579
2c51604d
GB
5802014-07-24 Gary Benson <gbenson@redhat.com>
581
582 * exceptions.h (throw_vfatal): Renamed to...
583 (throw_vquit): New declaration.
584 (throw_quit): Likewise.
585 * exceptions.c (throw_vfatal): Renamed to...
586 (throw_vquit): New function.
587 (throw_quit): Likewise.
588 (throw_error): Call throw_verror rather than throw_it.
589 * utils.h (vfatal): Removed.
590 (fatal): Likewise.
591 * utils.c (vfatal): Removed.
592 (fatal): Likewise.
593 (internal_verror): Replaced call to fatal with call to throw_quit.
594 (quit): Replaced calls to fatal with calls to throw_quit.
595
34211963
ME
5962014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
597
598 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
599 target_read_code.
600
a52b4d3e
ME
6012014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
602
603 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
604 less than zero in conditional expression.
605
a8bdc56b
TT
6062014-07-23 Tom Tromey <tromey@redhat.com>
607
608 * make-target-delegates ($ARGS_PART): Match trailing close paren.
609 ($INTRO_PART): Don't match whitespace.
610 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
611 argument matching.
612 ($METHOD): Add $METHOD_TRAILER.
613 (trim): Rewrite.
614 (scan_target_h): New sub.
615 Change main loop not to collect state.
616 * target-delegates.c: Rebuild.
617
91b52240
GB
6182014-07-23 Gary Benson <gbenson@redhat.com>
619
620 * cp-support.c (gdb_demangle): Fix build on systems without
621 sigaltstack.
622
45326f6f
JK
6232014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
624
625 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
626 for reference entry value target data value.
627
e214cf6c
JK
6282014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
629
630 * stack.c (read_frame_arg): Verify value_optimized_out before calling
631 value_available_contents_eq.
632
bddbbedd
PA
6332014-07-22 Pedro Alves <palves@redhat.com>
634
635 * value.c (allocate_optimized_out_value): Don't mark value as
636 non-lazy.
637
45c71484
JW
6382014-07-22 Jiong Wang <jiong.wang@arm.com>
639
640 * MAINTAINERS (Write After Approval): Update my email address.
641
9597b22a
DE
6422014-07-20 Doug Evans <dje@google.com>
643
644 PR server/17147
645 * remote.c (putpkt_binary): Add text to error message.
646
91101fe5
YQ
6472014-07-20 Yao Qi <yao@codesourcery.com>
648
649 * eval.c: Remove "Chill" from comments.
650 * gdbtypes.h: Likewise.
651 * symtab.h: Likewise.
652
c9402c95
YQ
6532014-07-20 Yao Qi <yao@codesourcery.com>
654
655 * std-operator.def: Update comments to TERNOP_SLICE.
656
ae8fddda
YQ
6572014-07-20 Yao Qi <yao@codesourcery.com>
658
659 * std-operator.def: Remove BINOP_RANGE.
660 * breakpoint.c (watchpoint_exp_is_const): Update.
661 * expprint.c (dump_subexp_body_standard): Likewise.
662 * eval.c (init_array_element): Remove dead code.
663 (evaluate_subexp_standard): Likewise.
664
9c816640
YQ
6652014-07-20 Yao Qi <yao@codesourcery.com>
666
667 * std-operator.def: Remove BINOP_IN.
668 * breakpoint.c (watchpoint_exp_is_const): Update.
669 * eval.c (evaluate_subexp_standard): Likewise.
670 * expprint.c (dump_subexp_body_standard): Likewise.
671
164224e9
ME
6722014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
673
674 * microblaze-tdep.c (microblaze_register_names): Add
675 the rshr and rslr register names.
676 (microblaze_gdbarch_init): Use of tdesc_has_registers.
677 Use of tdesc_find_feature. Use of tdesc_data_alloc.
678 Use of tdesc_numbered_register. Use of
679 microblaze_register_g_packet_guesses. Use of
680 tdesc_use_registers. Use of set_gdbarch_register_type.
681 (microblaze_register_g_packet_guesses): New.
682 * microblaze-tdep.h (microblaze_reg_num): Add
683 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
684 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
685 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
686 * features/microblaze-core.xml: New file.
687 * features/microblaze-stack-protect.xml: New file.
688 * features/microblaze-with-stack-protect.c: New file.
689 * features/microblaze-with-stack-protect.xml: New file.
690 * features/microblaze.xml: New file.
691 * features/microblaze.c: New file.
692 * features/Makefile (microblaze-with-stack-protect): Add
693 microblaze-with-stack-protect microblaze and microblaze-expedite.
694 * regformats/microblaze-with-stack-protect.dat: New file.
695 * regformats/microblaze.dat: New file.
696 * doc/gdb.texinfo (MicroBlaze Features): Added.
697
e8b2341c
TT
6982014-07-18 Tom Tromey <tromey@redhat.com>
699
700 * exec.c (exec_ops): Now static.
701 * exec.h (exec_ops): Don't declare.
702
44e89118
TT
7032014-07-18 Tom Tromey <tromey@redhat.com>
704
705 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
706 to find_target_beneath.
707 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
708 find_target_beneath.
709 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
710
b0ed115f
TT
7112014-07-18 Tom Tromey <tromey@redhat.com>
712
713 PR gdb/17130:
714 * utils.c (quit): Use target_supports_terminal_ours.
715 * target.h (target_supports_terminal_ours): Declare.
716 * target.c (target_supports_delete_record): Don't check
717 to_delete_record against NULL.
718 (target_supports_terminal_ours): New function.
719
e75fdfca
TT
7202014-07-18 Tom Tromey <tromey@redhat.com>
721
722 PR gdb/17130:
723 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
724 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
725 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
726 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
727 * windows-nat.c (windows_xfer_partial): Always delegate.
728 * record-btrace.c (record_btrace_xfer_partial): Simplify
729 delegation.
730 (record_btrace_fetch_registers, record_btrace_store_registers)
731 (record_btrace_prepare_to_store, record_btrace_resume)
732 (record_btrace_wait, record_btrace_find_new_threads)
733 (record_btrace_thread_alive): Likewise.
734 * procfs.c (procfs_xfer_partial): Always delegate.
735 * corelow.c (core_xfer_partial): Always delegate.
736 * sol-thread.c (sol_find_new_threads): Simplify delegation.
737
83814951
TT
7382014-07-18 Tom Tromey <tromey@redhat.com>
739
740 * exec.c (exec_make_note_section): Move earlier.
741
b8b8facf
DE
7422014-07-17 Doug Evans <dje@google.com>
743
74b49205 744 PR gdb/17170
b8b8facf
DE
745 * maint.c (count_symtabs_and_blocks): Handle NULL
746 current_program_space.
747 (report_command_stats): Check global enabled flag in addition to
748 recorded enabled flag.
749 (make_command_stats_cleanup): Handle msg_type == 0, startup.
750
69ff6be5
PA
7512014-07-16 Pedro Alves <palves@redhat.com>
752
753 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
754
252db1b5
TT
7552014-07-16 Tom Tromey <tromey@redhat.com>
756
757 * target.h (struct target_ops) <to_delete_record>: Reformat
758 comment.
759
a432721e
TT
7602014-07-16 Tom Tromey <tromey@redhat.com>
761
762 * target-delegates.c: Rebuild.
763
487d9753
PL
7642014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
765
766 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
767 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
768 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
769 (avr_pointer_to_address): Likewise.
770 (avr_address_class_type_flags): New function.
771 (avr_address_class_type_flags_to_name): Likewise.
772 (avr_address_class_name_to_type_flags): Likewise.
773 (avr_gdbarch_init): Set address_class_type_flags,
774 address_class_type_flags_to_name and
775 address_class_name_to_type_flags.
776
57745c90
PA
7772014-07-15 Pedro Alves <palves@redhat.com>
778
779 * linux-nat.c (kill_callback): Save errno and work with saved
780 copy.
781
2d40be18
SM
7822014-07-15 Simon Marchi <simon.marchi@ericsson.com>
783
784 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
785
572f6555
EBM
7862014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
787
788 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
789 breakpoint support correctly.
790
cc1c52ad
PA
7912014-07-14 Pedro Alves <palves@redhat.com>
792
793 * utils.c (prompt_for_continue): Call target_terminal_ours.
794
1e973570
PA
7952014-07-14 Pedro Alves <palves@redhat.com>
796
797 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
798 catch_errors. Don't re-enable stdin or notify observers where,
799 and rethrow error.
800 (fetch_inferior_event_wrapper): Delete.
801
93d6eb10
PA
8022014-07-14 Pedro Alves <palves@redhat.com>
803
804 PR gdb/17072
805 * top.c: Include "inf-loop.h".
806 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
807 field.
808 (gdb_readline_wrapper_cleanup): Make the target async again, if it
809 was async before.
810 (gdb_readline_wrapper): Store whether the target is async, and
811 make it sync.
812
0017922d
PA
8132014-07-14 Pedro Alves <palves@redhat.com>
814
815 PR gdb/17072
816 * top.c (gdb_readline_wrapper_line): Tweak comment.
817 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
818 the input handler callback.
819
94696ad3
PA
8202014-07-14 Pedro Alves <palves@redhat.com>
821
822 PR gdb/17072
823 * main.c: Include event-top.h.
824 (handle_command_errors): New function.
825 (catch_command_errors, catch_command_errors_const): Use it.
826
9d1e69a2
PA
8272014-07-14 Pedro Alves <palves@redhat.com>
828
829 * exceptions.c (catch_command_errors, catch_command_errors_const):
830 Moved to main.c.
831 * exceptions.h (catch_command_errors_ftype)
832 (catch_command_errors_const_ftype): Moved to main.c.
833 (catch_command_errors, catch_command_errors_const): Delete
834 declarations.
835 * main.c (catch_command_errors_ftype)
836 (catch_command_errors_const_ftype): Moved here from exceptions.h.
837 (catch_command_errors, catch_command_errors_const)): Moved here
838 from exceptions.c and make static.
839
feefc97b
PA
8402014-07-14 Pedro Alves <palves@redhat.com>
841
842 * exceptions.c (print_any_exception): Delete.
843 (catch_exceptions_with_msg): Use exception_print instead of
844 print_any_exception.
845 (catch_errors): Use exception_fprintf instead of
846 print_any_exception.
847 (catch_command_errors, catch_command_errors_const): Use
848 exception_print instead of print_any_exception.
849
c933f875
PA
8502014-07-14 Pedro Alves <palves@redhat.com>
851
852 * infcall.c (run_inferior_call): Set 'sync_execution' while
853 running the inferior call.
854
feb6f816
PA
8552014-07-14 Pedro Alves <palves@redhat.com>
856
857 * value.c (value_contents_equal): Delete function.
858 * value.h (value_contents_equal): Delete declaration.
859
d98b7a16
TT
8602014-07-14 Tom Tromey <tromey@redhat.com>
861
862 PR exp/17106:
863 * gdbtypes.c (is_dynamic_type_internal): New function, from
864 is_dynamic_type.
865 (is_dynamic_type): Rewrite.
866 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
867 (resolve_dynamic_struct): Likewise.
868 (resolve_dynamic_type_internal): New function, from
869 resolve_dynamic_type.
870 (resolve_dynamic_type): Rewrite.
871
548740d6
TT
8722014-07-14 Tom Tromey <tromey@redhat.com>
873
874 * target.c (target_require_runnable): Also check record_stratum.
875 Update comment.
876
808f7ab1
YQ
8772014-07-11 Yao Qi <yao@codesourcery.com>
878
879 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
880 thumb_instruction_restores_sp return true.
881
540314bd
YQ
8822014-07-11 Yao Qi <yao@codesourcery.com>
883
884 * arm-tdep.c (thumb_instruction_restores_sp): New function.
885 (thumb_in_function_epilogue_p): Call
886 thumb_instruction_restores_sp.
887
1db01f22
YQ
8882014-07-11 Yao Qi <yao@codesourcery.com>
889
890 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
891 'add sp, #imm'.
892 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
893
3116063b
GB
8942014-07-11 Gary Benson <gbenson@redhat.com>
895
896 * amd64-linux-nat.c (gdbcore.h): Remove include.
897 (regset.h): Likewise.
898 (nat/linux-btrace.h): Likewise.
899 (btrace.h): Likewise.
900 (gdb_assert.h): Likewise.
901 (string.h): Likewise.
902 (sys/uio.h): Likewise.
903 (sys/debugreg.h): Likewise.
904 (sys/syscall.h): Likewise.
905 (sys/procfs.h): Likewise.
906 (sys/user.h): Likewise.
907 (asm/ptrace.h): Likewise.
908 (i386-nat.h): Likewise.
909 * i386-linux-nat.c (i386-nat.h): Likewise.
910 (regset.h): Likewise.
911 (target.h): Likewise.
912 (linux-nat.h): Likewise.
913 (nat/linux-btrace.h): Likewise.
914 (btrace.h): Likewise.
915 (gdb_assert.h): Likewise.
916 (string.h): Likewise.
917 (sys/uio.h): Likewise.
918 (sys/user.h): Likewise.
919 (sys/procfs.h): Likewise.
920 (sys/reg.h): Likewise.
921 (sys/debugreg.h): Likewise.
922 (ORIG_EAX): Remove definition.
923
040baaf6
GB
9242014-07-11 Gary Benson <gbenson@redhat.com>
925
926 * i386-linux-nat.h: New file.
927 * x86-linux-nat.h: Likewise.
928 * x86-linux-nat.c: Likewise.
929 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
930 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
931 * config/i386/linux64.mh (NATDEPFILES): Likewise.
932 * amd64-linux-nat.c (x86-linux-nat.h): New include.
933 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
934 (PTRACE_SETREGSET): Likewise.
935 (arch_lwp_info): Now in x86-linux-nat.c.
936 (have_ptrace_getregset): Now in x86-linux-nat.h.
937 (x86_linux_dr_get): Now in x86-linux-nat.c.
938 (x86_linux_dr_set): Likewise.
939 (x86_linux_dr_get_addr): Likewise.
940 (x86_linux_dr_get_control): Likewise.
941 (x86_linux_dr_get_status): Likewise.
942 (update_debug_registers_callback): Likewise.
943 (x86_linux_dr_set_control): Likewise.
944 (x86_linux_dr_set_addr): Likewise.
945 (x86_linux_prepare_to_resume): Likewise.
946 (x86_linux_new_thread): Likewise.
947 (x86_linux_new_fork): Likewise.
948 (x86_linux_get_thread_area): Likewise.
949 (super_post_startup_inferior): Likewise.
950 (x86_linux_child_post_startup_inferior): Likewise.
951 (AMD64_LINUX_USER64_CS): Likewise.
952 (AMD64_LINUX_X32_DS): Likewise.
953 (x86_linux_read_description): Likewise.
954 (x86_linux_enable_btrace): Likewise.
955 (x86_linux_disable_btrace): Likewise.
956 (x86_linux_teardown_btrace): Likewise.
957 (x86_linux_read_btrace): Likewise.
958 (x86_linux_create_target): Likewise.
959 (x86_linux_add_target): Likewise.
960 * i386-linux-nat.c (x86-linux-nat.h): New include.
961 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
962 (PTRACE_SETREGSET): Likewise.
963 (arch_lwp_info): Now in x86-linux-nat.c.
964 (have_ptrace_getregset): Now in x86-linux-nat.h.
965 (x86_linux_dr_get): Now in x86-linux-nat.c.
966 (x86_linux_dr_set): Likewise.
967 (x86_linux_dr_get_addr): Likewise.
968 (x86_linux_dr_get_control): Likewise.
969 (x86_linux_dr_get_status): Likewise.
970 (update_debug_registers_callback): Likewise.
971 (x86_linux_dr_set_control): Likewise.
972 (x86_linux_dr_set_addr): Likewise.
973 (x86_linux_prepare_to_resume): Likewise.
974 (x86_linux_new_thread): Likewise.
975 (x86_linux_new_fork): Likewise.
976 (x86_linux_get_thread_area): Likewise.
977 (super_post_startup_inferior): Likewise.
978 (x86_linux_child_post_startup_inferior): Likewise.
979 (AMD64_LINUX_USER64_CS): Likewise.
980 (AMD64_LINUX_X32_DS): Likewise.
981 (x86_linux_read_description): Likewise.
982 (x86_linux_enable_btrace): Likewise.
983 (x86_linux_disable_btrace): Likewise.
984 (x86_linux_teardown_btrace): Likewise.
985 (x86_linux_read_btrace): Likewise.
986 (x86_linux_create_target): Likewise.
987 (x86_linux_add_target): Likewise.
988
1aa7e42c
GB
9892014-07-11 Gary Benson <gbenson@redhat.com>
990
991 * amd64-linux-nat.c: Comment and whitespace changes.
992 * i386-linux-nat.c: Comment and whitespace changes.
993
c1e246a0
GB
9942014-07-11 Gary Benson <gbenson@redhat.com>
995
996 * amd64-linux-nat.c (x86_linux_create_target): New function.
997 (x86_linux_add_target): Likewise.
998 (_initialize_amd64_linux_nat): Delegate to the above new functions.
999 * i386-linux-nat.c (x86_linux_create_target): New function.
1000 (x86_linux_add_target): Likewise.
1001 (_initialize_i386_linux_nat): Delegate to the above new functions.
1002
8c420b8d
GB
10032014-07-11 Gary Benson <gbenson@redhat.com>
1004
1005 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1006 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1007 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1008 (ps_get_thread_area): Delegate to the above.
1009
cb1da100
GB
10102014-07-11 Gary Benson <gbenson@redhat.com>
1011
1012 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1013 x86_linux_read_description. All uses updated. amd64-specific
1014 code conditionalized. Conditionalized i386-specific code added.
1015 Redundant cast removed.
1016 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1017 x86_linux_read_description. All uses updated. i386-specific
1018 code conditionalized. Conditionalized amd64-specific code added.
1019 One sizeof replaced with the actual type it is describing.
1020
2acf3cd0
GB
10212014-07-11 Gary Benson <gbenson@redhat.com>
1022
1023 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1024 x86_linux_dr_get. All uses updated.
1025 (amd64_linux_dr_set): Renamed to
1026 x86_linux_dr_set. All uses updated.
1027 (amd64_linux_dr_get_addr): Renamed to
1028 x86_linux_dr_get_addr. All uses updated.
1029 (amd64_linux_dr_get_control): Renamed to
1030 x86_linux_dr_get_control. All uses updated.
1031 (amd64_linux_dr_get_status): Renamed to
1032 x86_linux_dr_get_status. All uses updated.
1033 (amd64_linux_dr_set_control): Renamed to
1034 x86_linux_dr_set_control. All uses updated.
1035 (amd64_linux_dr_set_addr): Renamed to
1036 x86_linux_dr_set_addr. All uses updated.
1037 (amd64_linux_prepare_to_resume): Renamed to
1038 x86_linux_prepare_to_resume. All uses updated.
1039 (amd64_linux_new_thread): Renamed to
1040 x86_linux_new_thread. All uses updated.
1041 (amd64_linux_new_fork): Renamed to
1042 x86_linux_new_fork. All uses updated.
1043 (amd64_linux_child_post_startup_inferior): Renamed to
1044 x86_linux_child_post_startup_inferior. All uses updated.
1045 (amd64_linux_enable_btrace): Renamed to
1046 x86_linux_enable_btrace. All uses updated.
1047 (amd64_linux_disable_btrace): Renamed to
1048 x86_linux_disable_btrace. All uses updated.
1049 (amd64_linux_teardown_btrace): Renamed to
1050 x86_linux_teardown_btrace. All uses updated.
1051 (amd64_linux_read_btrace): Renamed to
1052 x86_linux_read_btrace. All uses updated.
1053 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1054 x86_linux_dr_get. All uses updated.
1055 (i386_linux_dr_set): Renamed to
1056 x86_linux_dr_set. All uses updated.
1057 (i386_linux_dr_get_addr): Renamed to
1058 x86_linux_dr_get_addr. All uses updated.
1059 (i386_linux_dr_get_control): Renamed to
1060 x86_linux_dr_get_control. All uses updated.
1061 (i386_linux_dr_get_status): Renamed to
1062 x86_linux_dr_get_status. All uses updated.
1063 (i386_linux_dr_set_control): Renamed to
1064 x86_linux_dr_set_control. All uses updated.
1065 (i386_linux_dr_set_addr): Renamed to
1066 x86_linux_dr_set_addr. All uses updated.
1067 (i386_linux_prepare_to_resume): Renamed to
1068 x86_linux_prepare_to_resume. All uses updated.
1069 (i386_linux_new_thread): Renamed to
1070 x86_linux_new_thread. All uses updated.
1071 (i386_linux_new_fork): Renamed to
1072 x86_linux_new_fork. All uses updated.
1073 (i386_linux_child_post_startup_inferior): Renamed to
1074 x86_linux_child_post_startup_inferior. All uses updated.
1075 (i386_linux_enable_btrace): Renamed to
1076 x86_linux_enable_btrace. All uses updated.
1077 (i386_linux_disable_btrace): Renamed to
1078 x86_linux_disable_btrace. All uses updated.
1079 (i386_linux_teardown_btrace): Renamed to
1080 x86_linux_teardown_btrace. All uses updated.
1081 (i386_linux_read_btrace): Renamed to
1082 x86_linux_read_btrace. All uses updated.
1083
b9c1d481
AS
10842014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1085
1086 * remote.c (extended_remote_post_attach): New function.
1087 (init_extended_remote_ops): Install it as to_post_attach method.
1088
7180e04a
PA
10892014-07-09 Pedro Alves <palves@redhat.com>
1090
1091 * infcmd.c (attach_command_post_wait): Don't call
1092 target_terminal_inferior here.
1093 (attach_command): Call it here instead.
1094
9a9a7608
AB
10952014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1096
1097 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1098 field.
1099 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1100 from varobj.c, with additional checks.
1101 (c_varobj_ops): Fill in is_path_expr_parent field.
1102 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1103 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1104 field.
1105 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1106 ops method.
1107 (varobj_default_is_path_expr_parent): New function.
1108 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1109 (varobj_default_is_path_expr_parent): Declare new function.
1110
1f267ae3
MM
11112014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1112
1113 * infcmd.c (finish_backward): Turn internal error into normal error.
1114
b2ee242b
PA
11152014-07-07 Pedro Alves <palves@redhat.com>
1116
8a869bca 1117 PR gdb/17096
b2ee242b
PA
1118 * remote.c (async_handle_remote_sigint)
1119 (async_handle_remote_sigint_twice): Call
1120 gdb_call_async_signal_handler instead of
1121 mark_async_signal_handler.
1122
38e229b2
TT
11232014-07-07 Tom Tromey <tromey@redhat.com>
1124
1125 * target-delegates.c: Rebuild.
1126 * target.c (target_info_record): Remove.
1127 * record.c (info_record_command): Unconditionally call
1128 to_info_record.
1129 * target.h (struct target_ops) <to_info_record>: Use
1130 TARGET_DEFAULT_IGNORE.
1131 (target_info_record): Remove.
1132
f0f9ff95
TT
11332014-07-07 Tom Tromey <tromey@redhat.com>
1134
1135 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1136 TARGET_DEFAULT_NORETURN.
1137 * target.c (generic_tls_error): New function.
1138 (target_translate_tls_address): Don't search target stack.
1139 * target-delegates.c: Rebuild.
1140 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1141 stack.
1142 * linux-thread-db.c (thread_db_get_thread_local_address):
1143 Unconditionally call beneath target.
1144
4a5be5ee
MK
11452014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1146
1147 * cli/cli-logging.c (pop_output_files): Assign targerr to
1148 gdb_stdtargerr.
1149
92c3b204
AB
11502014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * MAINTAINERS (Write After Approval): Update my email address.
1153
9b11e3a7
GB
11542014-07-02 Gary Benson <gbenson@redhat.com>
1155
1156 * proc-service.c (ps_xfer_memory): Update comment.
1157 (ps_pstop): Remove unused function.
1158 (ps_pcontinue): Likewise.
1159 (ps_lstop): Likewise.
1160 (ps_lcontinue): Likewise.
1161 (ps_lgetxregsize): Likewise.
1162 (ps_lgetxregs): Likewise.
1163 (ps_lsetxregs): Likewise.
1164 (ps_plog): Likewise.
1165 (ps_ptread): Likewise.
1166 (ps_ptwrite): Likewise.
1167
cf363f18
MW
11682014-07-01 Mark Wielaard <mjw@redhat.com>
1169
1170 * dwarf2read.c (add_array_cv_type): New function.
1171 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1172 (read_tag_volatile_type): Likewise.
1173
82ae6c8d
TT
11742014-07-01 Tom Tromey <tromey@redhat.com>
1175
1176 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1177 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1178 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1179 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1180 * command.h (cmd_cfunc_ftype): Move earlier.
1181 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1182 (add_com, add_info): Use cmd_cfunc_ftype.
1183
96142726
TT
11842014-06-30 Tom Tromey <tromey@redhat.com>
1185
1186 * symtab.c (operator_chars): Make parameters and return type
1187 const.
1188 (file_matches): Make "files" const.
1189 (struct search_symbols_data) <files>: Now const.
1190 (search_symbols): Make "regexp" and "files" parameters const.
1191 Update.
1192 (symtab_symbol_info): Remove cast.
1193 (rbreak_command): Update.
1194 * symtab.h (search_symbols): Update.
1195
b67a2c6f
YQ
11962014-06-27 Yao Qi <yao@codesourcery.com>
1197
1198 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1199 Change parameter type to 'struct thread_info *'. Caller
1200 updated.
1201 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1202 Update declaration.
1203 * dummy-frame.c (struct dummy_frame_id): New.
1204 (dummy_frame_id_eq): New function.
1205 (struct dummy_frame) <id>: Change its type to 'struct
1206 dummy_frame_id'.
1207 (dummy_frame_push): Add parameter ptid and save it in
1208 dummy_frame_id.
1209 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1210 inferior_ptid.
1211 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1212 to inferior_ptid.
1213 (lookup_dummy_frame): Change parameter type to 'struct
1214 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1215 instead of frame_id_eq.
1216 (dummy_frame_pop): Add parameter ptid. Callers updated.
1217 Update comments. Compose dummy_frame_id and pass it to
1218 lookup_dummy_frame.
1219 (dummy_frame_discard): Add parameter ptid.
1220 (dummy_frame_sniffer): Compose dummy_frame_id and call
1221 dummy_frame_id_eq instead of frame_id_eq.
1222 (fprint_dummy_frames): Print ptid.
1223 * dummy-frame.h: Remove comments.
1224 (dummy_frame_push): Add ptid in declaration.
1225 (dummy_frame_pop, dummy_frame_discard): Likewise.
1226
5b10184c
TT
12272014-06-26 Tom Tromey <tromey@redhat.com>
1228
1229 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1230 * command.h (error_no_arg): Update.
1231
06900326
TT
12322014-06-26 Tom Tromey <tromey@redhat.com>
1233
1234 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1235 (do_show_command): Make "arg" const.
1236 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1237
c2bcbb1d
TT
12382014-06-26 Tom Tromey <tromey@redhat.com>
1239
1240 * record-full.c (record_full_get_bookmark): Make "args" const.
1241 (record_full_goto_bookmark): Make "raw_bookmark" const.
1242 * record.c (record_goto): New function.
1243 (cmd_record_goto): Use it. Now static.
1244 * record.h (record_goto): Declare.
1245 (cmd_record_goto): Remove declaration.
1246 * target-delegates.c: Rebuild.
1247 * target.h (struct target_ops) <to_get_bookmark,
1248 to_goto_bookmark>: Make parameter const.
1249
9cbe5fff
TT
12502014-06-26 Tom Tromey <tromey@redhat.com>
1251
1252 * defs.h (generic_load): Update.
1253 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1254 * monitor.c (monitor_load): Make "args" const.
1255 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1256 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1257 const.
1258 (mips_load): Make "file" const.
1259 * remote-sim.c (gdbsim_load): Make "args" const.
1260 * remote.c (remote_load): Make "name" const.
1261 * symfile.c (generic_load): Make "args" const.
1262 * target-delegates.c: Rebuild.
1263 * target.c (target_load): Make "arg" const.
1264 (debug_to_load): Make "args" const.
1265 * target.h (struct target_ops) <to_load>: Make parameter const.
1266 (target_load): Update.
1267
34a68019
TT
12682014-06-26 Tom Tromey <tromey@redhat.com>
1269
1270 PR symtab/16902:
1271 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1272 (dwarf2_physname, read_partial_die)
1273 (guess_partial_die_structure_name, fixup_partial_die)
1274 (guess_full_die_structure_name, anonymous_struct_prefix)
1275 (dwarf2_name): Use per-BFD obstack.
1276
efc889c1
YQ
12772014-06-26 Yao Qi <yao@codesourcery.com>
1278
1279 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1280 dummyframe and this_id into inner block below.
1281
4395285e
YQ
12822014-06-26 Yao Qi <yao@codesourcery.com>
1283
1284 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1285 with "signal_pass[0]" in the initialization of signal_pass.
1286
aef92902
MM
12872014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1288
1289 * record-btrace.c (record_btrace_generating_corefile)
1290 (record_btrace_prepare_to_generate_core)
1291 (record_btrace_done_generating_core): New.
1292 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1293 (record_btrace_store_registers, record_btrace_prepare_to_store):
1294 Forward request when generating a core file.
1295 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1296 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1297 to_done_generating_core.
1298
5fff78c4
MM
12992014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1300
1301 * target.h (target_ops) <to_prepare_to_generate_core>
1302 <to_done_generating_core>: New.
1303 (target_prepare_to_generate_core, target_done_generating_core): New.
1304 * target.c (target_prepare_to_generate_core)
1305 (target_done_generating_core): New.
1306 * target-delegates.c: Regenerate.
1307 * gcore.c: (write_gcore_file): Rename to ...
1308 (write_gcore_file_1): ...this.
1309 (write_gcore_file): Call target_prepare_to_generate_core
1310 and target_done_generating_core.
1311
1d1f1ccb
MM
13122014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1313
1314 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1315 * gcore.c (write_gcore_file): Free memory returned from
1316 make_corefile_notes.
1317 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1318 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1319
3343ef86
YQ
13202014-06-24 Yao Qi <yao@codesourcery.com>
1321
1322 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1323 (arm_linux_init_abi): Set skip_trampoline_code with
1324 gdbarch_skip_trampoline_code instead of
1325 find_solib_trampoline_target.
1326
18d18ac8
YQ
13272014-06-24 Yao Qi <yao@codesourcery.com>
1328
1329 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1330 arm_skip_bx_reg returns non-zero.
1331
80d8d390
YQ
13322014-06-24 Yao Qi <yao@codesourcery.com>
1333
1334 * arm-tdep.c (arm_skip_bx_reg): New function.
1335 (arm_skip_stub): Call arm_skip_bx_reg.
1336
6a18a01c
DB
13372014-06-23 Don Breazeal <donb@codesourcery.com>
1338
1339 * MAINTAINERS: Add myself as write-after-approval maintainer.
1340
8e9db26e
PA
13412014-06-23 Pedro Alves <palves@redhat.com>
1342
1343 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1344 DR_CONTROL before setting DR0..DR3.
1345 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1346 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1347 bits of DR_CONTROL related to the debug register slot being
1348 disabled. If all slots are vacant, clear local slowdown as well,
1349 and assert DR_CONTROL is 0.
1350
70afc5b7
SC
13512014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1352
1353 * python/lib/gdb/command/xmethods.py
1354 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1355 current progspace only if the string "progspace" matches LOCUS_RE.
1356
840ed64d
JK
13572014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1358
1359 Fix --with-system-readline with readline-6.3 patch 5.
1360 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1361 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1362 types.
1363
26f2dc30
TT
13642014-06-20 Tom Tromey <tromey@redhat.com>
1365
1366 * dwarf2read.c (dw2_get_real_path): Use correct type in
1367 OBSTACK_CALLOC.
1368 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1369
125f8a3d
GB
13702014-06-20 Gary Benson <gbenson@redhat.com>
1371
1372 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1373 * common/glibc_thread_db.h: Likewise.
1374 * common/i386-cpuid.h: Likewise.
1375 * common/i386-gcc-cpuid.h: Likewise.
1376 * common/linux-btrace.h: Likewise.
1377 * common/linux-osdata.h: Likewise.
1378 * common/linux-procfs.h: Likewise.
1379 * common/linux-ptrace.h: Likewise.
1380 * common/mips-linux-watch.h: Likewise.
1381 * common/linux-btrace.c: Moved to nat.
1382 * common/linux-osdata.c: Likewise.
1383 * common/linux-procfs.c: Likewise.
1384 * common/linux-ptrace.c: Likewise.
1385 * common/mips-linux-watch.c: Likewise.
1386 * nat/gdb_thread_db.h: Moved from common.
1387 * nat/glibc_thread_db.h: Likewise.
1388 * nat/i386-cpuid.h: Likewise.
1389 * nat/i386-gcc-cpuid.h: Likewise.
1390 * nat/linux-btrace.c: Likewise.
1391 * nat/linux-btrace.h: Likewise.
1392 * nat/linux-osdata.c: Likewise.
1393 * nat/linux-osdata.h: Likewise.
1394 * nat/linux-procfs.c: Likewise.
1395 * nat/linux-procfs.h: Likewise.
1396 * nat/linux-ptrace.c: Likewise.
1397 * nat/linux-ptrace.h: Likewise.
1398 * nat/mips-linux-watch.c: Likewise.
1399 * nat/mips-linux-watch.h: Likewise.
1400 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1401 (object file files): Reordered.
1402 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1403 of glibc_thread_db.h.
1404
42995dbd
GB
14052014-06-20 Gary Benson <gbenson@redhat.com>
1406
1407 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1408 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1409 (i386_dr_low): Likewise.
1410 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1411 (i386_dr_low_set_addr): Likewise.
1412 (i386_dr_low_get_addr): Likewise.
1413 (i386_dr_low_can_set_control): Likewise.
1414 (i386_dr_low_set_control): Likewise.
1415 (i386_dr_low_get_control): Likewise.
1416 (i386_dr_low_get_status): Likewise.
1417 (i386_get_debug_register_length): Likewise.
1418 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1419 (i386_dr_low): Likewise.
1420 * nat/i386-dregs.c (i386-low.h): Remove include.
1421 (i386-nat.h): Likewise.
1422 (nat/i386-dregs.h): New include.
1423 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1424 (i386_dr_low_set_addr): Likewise.
1425 (i386_dr_low_get_addr): Likewise.
1426 (i386_dr_low_can_set_control): Likewise.
1427 (i386_dr_low_set_control): Likewise.
1428 (i386_dr_low_get_control): Likewise.
1429 (i386_dr_low_get_status): Likewise.
1430 (i386_get_debug_register_length): Likewise.
1431 (debug_hw_points): Likewise.
1432
3ed9baed
IB
14332014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1434
1435 * Makefile.in (SFILES): Add d-exp.y.
1436 (YYFILES): Add d-exp.c.
1437 (YYOBJ): Add d-exp.o.
1438 (local-maintainer-clean): Delete d-exp.c.
1439 * d-exp.y: New file.
1440 * d-lang.h (d_parse): New declaration.
1441 (d_error): New declaration.
1442 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1443 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1444 PREC_ORDER operators.
1445 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1446
78c164b0
YQ
14472014-06-19 Yao Qi <yao@codesourcery.com>
1448
1449 * gdbthread.h (any_running): Remove the declaration.
1450 * thread.c (any_running): Remove.
1451
f6e29b6e
YQ
14522014-06-19 Yao Qi <yao@codesourcery.com>
1453
1454 * gdbthread.h (struct thread_info) <state>: Change its type to
1455 'enum thread_state'. Update comments.
1456
034f788c
PA
14572014-06-19 Pedro Alves <palves@redhat.com>
1458
1459 * gdbthread.h (ALL_THREADS): Delete.
1460 (ALL_NON_EXITED_THREADS): New macro.
1461 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1462 instead of ALL_THREADS.
1463 * infrun.c (find_thread_needs_step_over)
1464 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1465 instead of ALL_THREADS.
1466 * record-btrace.c (record_btrace_open)
1467 (record_btrace_stop_recording, record_btrace_close)
1468 (record_btrace_is_replaying, record_btrace_resume)
1469 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1470 * remote.c (append_pending_thread_resumptions): Likewise.
1471 * thread.c (thread_apply_all_command): Likewise.
1472
46e33252
GB
14732014-06-19 Gary Benson <gbenson@redhat.com>
1474
1475 * i386-nat.c (i386_stopped_by_watchpoint):
1476 Use i386_dr_stopped_by_watchpoint.
1477 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1478 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1479
3a8ee006
GB
14802014-06-19 Gary Benson <gbenson@redhat.com>
1481
1482 * nat/i386-dregs.c: New file.
1483 * Makefile.in (i386-dregs.o): New rule.
1484 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1485 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1486 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1487 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1488 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1489 * config/i386/go32.mh (NATDEPFILES): Likewise.
1490 * config/i386/linux.mh (NATDEPFILES): Likewise.
1491 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1492 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1493 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1494 * i386-nat.h (debug_hw_points): New declaration.
1495 * i386-nat.c (breakpoint.h): Remove include.
1496 (command.h): Likewise.
1497 (target.h): Likewise.
1498 (gdb_assert.h): Likewise.
1499 (debug_hw_points): Made nonstatic.
1500 (debug_printf): Now in i386-dregs.c.
1501 (TARGET_HAS_DR_LEN_8): Likewise.
1502 (DR_CONTROL_SHIFT): Likewise.
1503 (DR_CONTROL_SIZE): Likewise.
1504 (DR_RW_EXECUTE): Likewise.
1505 (DR_RW_WRITE): Likewise.
1506 (DR_RW_READ): Likewise.
1507 (DR_RW_IORW): Likewise.
1508 (DR_LEN_1): Likewise.
1509 (DR_LEN_2): Likewise.
1510 (DR_LEN_4): Likewise.
1511 (DR_LEN_8): Likewise.
1512 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1513 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1514 (DR_ENABLE_SIZE): Likewise.
1515 (DR_LOCAL_SLOWDOWN): Likewise.
1516 (DR_GLOBAL_SLOWDOWN): Likewise.
1517 (DR_CONTROL_RESERVED): Likewise.
1518 (I386_DR_CONTROL_MASK): Likewise.
1519 (I386_DR_VACANT): Likewise.
1520 (I386_DR_LOCAL_ENABLE): Likewise.
1521 (I386_DR_GLOBAL_ENABLE): Likewise.
1522 (I386_DR_DISABLE): Likewise.
1523 (I386_DR_SET_RW_LEN): Likewise.
1524 (I386_DR_GET_RW_LEN): Likewise.
1525 (I386_DR_WATCH_HIT): Likewise.
1526 (i386_wp_op_t): Likewise.
1527 (i386_show_dr): Likewise.
1528 (i386_length_and_rw_bits): Likewise.
1529 (i386_insert_aligned_watchpoint): Likewise.
1530 (i386_remove_aligned_watchpoint): Likewise.
1531 (i386_handle_nonaligned_watchpoint): Likewise.
1532 (i386_update_inferior_debug_regs): Likewise.
1533 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1534 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1535 (i386_region_ok_for_watchpoint):
1536 Use i386_dr_region_ok_for_watchpoint.
1537 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1538
322a8e06
GB
15392014-06-19 Gary Benson <gbenson@redhat.com>
1540
1541 * i386-nat.c (i386_insert_hw_breakpoint): Use
1542 i386_insert_watchpoint.
1543 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1544
8f26655c
GB
15452014-06-19 Gary Benson <gbenson@redhat.com>
1546
1547 * i386-nat.c (i386_dr_show): Renamed to
1548 i386_show_dr and made static. All uses updated.
1549 (i386_dr_length_and_rw_bits): Renamed to
1550 i386_length_and_rw_bits and made static.
1551 All uses updated.
1552 (i386_dr_insert_aligned_watchpoint): Renamed to
1553 i386_insert_aligned_watchpoint and made static.
1554 All uses updated.
1555 (i386_dr_remove_aligned_watchpoint): Renamed to
1556 i386_remove_aligned_watchpoint and made static.
1557 All uses updated.
1558 (i386_dr_update_inferior_debug_regs): Renamed to
1559 i386_update_inferior_debug_regs and made static.
1560 All uses updated.
1561 * nat/i386-dregs.h (i386_dr_show): Removed.
1562 (i386_dr_length_and_rw_bits): Likewise.
1563 (i386_dr_insert_aligned_watchpoint): Likewise.
1564 (i386_dr_remove_aligned_watchpoint): Likewise.
1565 (i386_dr_update_inferior_debug_regs): Likewise.
1566
992c7d70
GB
15672014-06-19 Gary Benson <gbenson@redhat.com>
1568
1569 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1570 * configure: Regenerate.
1571 * config.in: Likewise.
1572 * main.c (signal.h): New include.
1573 (setup_alternate_signal_stack): New function.
1574 (captured_main): Call the above.
1575 * cp-support.c (signal.h): New include.
1576 (catch_demangler_crashes): New flag.
1577 (SIGJMP_BUF): New define.
1578 (SIGSETJMP): Likewise.
1579 (SIGLONGJMP): Likewise.
1580 (gdb_demangle_jmp_buf): New static global.
1581 (gdb_demangle_attempt_core_dump): Likewise.
1582 (gdb_demangle_signal_handler): New function.
1583 (gdb_demangle): If catch_demangler_crashes is set, install the
1584 above signal handler before calling bfd_demangle, and restore
1585 the original signal handler afterwards. Display the offending
1586 symbol and call demangler_warning the first time a segmentation
1587 fault is caught.
1588 (_initialize_cp_support): New maint set/show command.
1589
eae7090b
GB
15902014-06-19 Gary Benson <gbenson@redhat.com>
1591
1592 * utils.h (resource_limit_kind): New enum.
1593 (can_dump_core): New declaration.
1594 (warn_cant_dump_core): Likewise.
1595 (dump_core): Likewise.
1596 * utils.c (dump_core): Made nonstatic. Added new
1597 parameter "limit_kind".
1598 (can_dump_core): Made nonstatic. Moved printing code to...
1599 (warn_cant_dump_core): New function.
1600 (can_dump_core_warn): Likewise.
1601 (internal_vproblem): Replace calls to can_dump_core with
1602 calls to can_dump_core_warn. Supply new argument to each.
1603
57fcfb1b
GB
16042014-06-19 Gary Benson <gbenson@redhat.com>
1605
1606 * utils.h (demangler_vwarning): New declaration.
1607 (demangler_warning): Likewise.
1608 * utils.c (struct internal_problem)
1609 <user_settable_should_quit>: New field.
1610 <user_settable_should_dump_core>: Likewise
1611 (internal_error_problem): Add values for above new fields.
1612 (internal_warning_problem): Likewise.
1613 (demangler_warning_problem): New static global.
1614 (demangler_vwarning): New function.
1615 (demangler_warning): Likewise.
1616 (add_internal_problem_command): Selectively add commands.
1617 (_initialize_utils): New internal problem command.
1618 * maint.c (maintenance_demangler_warning): New function.
1619 (_initialize_maint_cmds): New command.
1620
17a40b44
TT
16212014-06-18 Tom Tromey <tromey@redhat.com>
1622
1623 * f-valprint.c (info_common_command_for_block): Update.
1624 * symtab.h (struct general_symbol_info) <common_block>: Now
1625 const.
1626
346d1dfe
TT
16272014-06-18 Tom Tromey <tromey@redhat.com>
1628
1629 * symtab.h (struct symtab) <blockvector>: Now const.
1630 * ada-lang.c (ada_add_global_exceptions): Update.
1631 * buildsym.c (augment_type_symtab): Update.
1632 * dwarf2read.c (dw2_lookup_symbol): Update.
1633 * jit.c (finalize_symtab): Update.
1634 * jv-lang.c (add_class_symtab_symbol): Update.
1635 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1636 Update.
1637 * objfiles.c (objfile_relocate1): Update.
1638 * psymtab.c (lookup_symbol_aux_psymtabs)
1639 (maintenance_check_psymtabs): Update.
1640 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1641 Update.
1642 * spu-tdep.c (spu_catch_start): Update.
1643 * symmisc.c (dump_symtab_1): Update.
1644 * symtab.c (lookup_global_symbol_from_objfile)
1645 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1646 (basic_lookup_transparent_type_quick)
1647 (basic_lookup_transparent_type, find_pc_sect_symtab)
1648 (find_pc_sect_line, search_symbols): Update.
1649 * block.c (find_block_in_blockvector): Make "bl" const.
1650 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1651 const.
1652 (blockvector_contains_pc): Make "bv" const.
1653 (block_for_pc_sect): Update.
1654 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1655 (blockvector_contains_pc): Update.
1656 * breakpoint.c (resolve_sal_pc): Update.
1657 * inline-frame.c (block_starting_point_at): Update.
1658
1834676b
TT
16592014-06-18 Tom Tromey <tromey@redhat.com>
1660
1661 * completer.c (complete_line): Make "line_buffer" const.
1662 * completer.h (complete_line): Update.
1663
ac1a991b
TT
16642014-06-18 Tom Tromey <tromey@redhat.com>
1665
1666 * symtab.c (add_macro_name): Remove unneeded cast.
1667
5bc98e52
TT
16682014-06-18 Tom Tromey <tromey@redhat.com>
1669
1670 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1671 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1672
8236def8
TT
16732014-06-18 Tom Tromey <tromey@redhat.com>
1674
1675 * probe.c (info_probes_for_ops): Make "arg" const.
1676 * probe.h (info_probes_for_ops): Update.
1677
3977b71f
TT
16782014-06-18 Tom Tromey <tromey@redhat.com>
1679
1680 * varobj.c (varobj_create): Update.
1681 * valops.c (value_of_this): Update.
1682 * tracepoint.c (add_local_symbols, scope_info): Update.
1683 * symtab.h (struct general_symbol_info) <block>: Now const.
1684 * symtab.c (skip_prologue_sal)
1685 (default_make_symbol_completion_list_break_on)
1686 (skip_prologue_using_sal): Update.
1687 * stack.h (iterate_over_block_locals)
1688 (iterate_over_block_local_vars): Update.
1689 * stack.c (print_frame_args): Update.
1690 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1691 parameter const.
1692 (get_selected_block): Make return type const.
1693 * python/py-frame.c (frapy_block): Update.
1694 * python/py-block.c (gdbpy_block_for_pc): Update.
1695 * p-exp.y (%union) <bval>: Now const.
1696 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1697 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1698 * m2-exp.y (%union) <bval>: Now const.
1699 * linespec.c (get_current_search_block): Make return type const.
1700 (create_sals_line_offset, find_label_symbols): Update.
1701 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1702 Update.
1703 (block_starting_point_at): Make "block" const.
1704 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1705 (check_exception_resume): Update.
1706 * guile/scm-frame.c (gdbscm_frame_block): Update.
1707 * guile/scm-block.c (gdbscm_lookup_block): Update.
1708 * frame.h (get_frame_block): Update.
1709 (get_selected_block): Make return type const.
1710 * frame.c (frame_id_inner): Update.
1711 * f-valprint.c (info_common_command_for_block)
1712 (info_common_command): Update.
1713 * dwarf2loc.c (dwarf2_find_location_expression)
1714 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1715 (locexpr_describe_location_piece): Update.
1716 * c-exp.y (%union) <bval>: Now const.
1717 * breakpoint.c (resolve_sal_pc): Update.
1718 * blockframe.c (get_frame_block):Make return type const.
1719 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1720 (block_innermost_frame): Update.
1721 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1722 (block_for_pc, block_for_pc_sect): Update.
1723 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1724 'pblock' const.
1725 (block_for_pc_sect, block_for_pc): Make return type const.
1726 * ax-gdb.c (gen_expr): Update.
1727 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1728 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1729 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1730 (ada_read_var_value): Update.
1731 * ada-exp.y (struct name_info) <block>: Now const.
1732 (%union): Likewise.
1733 (block_lookup): Constify.
1734
b9228891
GB
17352014-06-18 Gary Benson <gbenson@redhat.com>
1736
1737 * nat/i386-dregs.h: New file.
1738 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1739 * i386-nat.h (i386-dregs.h): New include.
1740 (DR_FIRSTADDR): Now in i386-dregs.h.
1741 (DR_LASTADDR): Likewise.
1742 (DR_NADDR): Likewise.
1743 (DR_STATUS): Likewise.
1744 (DR_CONTROL): Likewise.
1745 (i386_debug_reg_state): Likewise.
1746 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1747
a1aa2221
LM
17482014-06-18 Don Breazeal <donb@codesourcery.com>
1749
1750 * breakpoint.c (set_longjmp_breakpoint): Call
1751 momentary_breakpoint_from_master with additional argument.
1752 (set_longjmp_breakpoint_for_call_dummy): Call
1753 momentary_breakpoint_from_master with additional argument.
1754 (set_std_terminate_breakpoint): Call
1755 momentary_breakpoint_from_master with additional argument.
1756 (momentary_breakpoint_from_master): Add argument to function
1757 definition and use it to initialize structure member flag.
74228e77 1758 (clone_momentary_breakpoint): Call
a1aa2221
LM
1759 momentary_breakpoint_from_master with additional argument.
1760 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1761 member flags set in momentary_breakpoint_from_master.
1762
4be83cc2
GB
17632014-06-18 Gary Benson <gbenson@redhat.com>
1764
1765 * i386-nat.c (i386_show_dr): Renamed to
1766 i386_dr_show and made nonstatic. All uses updated.
1767 (i386_length_and_rw_bits): Renamed to
1768 i386_dr_length_and_rw_bits and made nonstatic.
1769 All uses updated.
1770 (i386_insert_aligned_watchpoint): Renamed to
1771 i386_dr_insert_aligned_watchpoint and made nonstatic.
1772 All uses updated.
1773 (i386_remove_aligned_watchpoint): Renamed to
1774 i386_dr_remove_aligned_watchpoint and made nonstatic.
1775 All uses updated.
1776 (i386_update_inferior_debug_regs): Renamed to
1777 i386_dr_update_inferior_debug_regs and made nonstatic.
1778 All uses updated.
1779
131aa0d4
GB
17802014-06-18 Gary Benson <gbenson@redhat.com>
1781
1782 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1783 (i386_dr_low_can_set_control): Likewise.
1784 (i386_dr_low_set_addr): Likewise.
1785 (i386_dr_low_set_control): Likewise.
1786 (i386_dr_low_get_addr): Likewise.
1787 (i386_dr_low_get_status): Likewise.
1788 (i386_dr_low_get_control): Likewise.
1789 (i386_insert_aligned_watchpoint): Use new macros.
1790 (i386_update_inferior_debug_regs): Likewise.
1791 (i386_stopped_data_address): Likewise.
1792
d9305f7f
GB
17932014-06-18 Gary Benson <gbenson@redhat.com>
1794
1795 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1796 New parameter. All uses updated.
1797
ea008da4
GB
17982014-06-18 Gary Benson <gbenson@redhat.com>
1799
1800 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1801 All uses updated.
1802
1b6d4134
GB
18032014-06-18 Gary Benson <gbenson@redhat.com>
1804
1805 * i386-nat.c (debug_printf): New macro.
1806 (i386_get_debug_register_length): Likewise.
1807 (TARGET_HAS_DR_LEN_8): Use above macro.
1808 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1809 and printf_unfiltered. Use phex to format values.
1810
9b4550ef
GB
18112014-06-18 Gary Benson <gbenson@redhat.com>
1812
1813 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1814 Make const.
1815
6e62758f
GB
18162014-06-18 Gary Benson <gbenson@redhat.com>
1817
1818 * i386-nat.c: Comment changes.
1819
51c79e94
GB
18202014-06-18 Gary Benson <gbenson@redhat.com>
1821
1822 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1823
3e11889a
GB
18242014-06-18 Gary Benson <gbenson@redhat.com>
1825
1826 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1827 (i386_insert_aligned_watchpoint): Likewise.
1828 (i386_remove_aligned_watchpoint): Likewise.
1829 (i386_handle_nonaligned_watchpoint): Likewise.
1830
fc6e2f03
GB
18312014-06-18 Gary Benson <gbenson@redhat.com>
1832
1833 * i386-nat.c: Whitespace changes.
1834
2afe7d50
SB
18352014-06-17 Samuel Bronson <naesten@gmail.com>
1836
1837 * MAINTAINERS: Update Roland McGrath's email address.
1838 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 1839 Red Hat a while ago, and giving me a current address.
2afe7d50 1840
3bca49ee
TT
18412014-06-17 Tom Tromey <tromey@redhat.com>
1842
1843 * utils.h (savestring): Remove declaration.
1844
6e366df1
TT
18452014-06-17 Tom Tromey <tromey@redhat.com>
1846
1847 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1848
6be47f0c
KS
18492014-06-16 Keith Seitz <keiths@redhat.com>
1850
1851 PR mi/15863
1852 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1853 to update the varobj if inferior_ptid is null_ptid.
1854
7bc112c1
TT
18552014-06-16 Tom Tromey <tromey@redhat.com>
1856
1857 * target.h (struct target_ops) <to_info_proc>: Make parameter
1858 const.
1859 (target_info_proc): Update.
1860 * target.c (target_info_proc): Make "args" const.
1861 * procfs.c (procfs_info_proc): Update.
1862 * linux-tdep.c (linux_info_proc): Update.
1863 (linux_core_info_proc_mappings): Make "args" const.
1864 (linux_core_info_proc): Update.
1865 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1866 * gdbarch.c: Rebuild.
1867 * gdbarch.h: Rebuild.
1868 * corelow.c (core_info_proc): Update.
1869
fee354ee
TT
18702014-06-16 Tom Tromey <tromey@redhat.com>
1871
1872 * target.h (struct target_ops) <to_disconnect>: Make parameter
1873 const.
1874 (target_disconnect): Update.
1875 * target.c (target_disconnect): Make "args" const.
1876 * target-delegates.c: Rebuild.
1877 * remote.c (remote_disconnect): Update.
1878 * record.h (record_disconnect): Update.
1879 * record.c (record_disconnect): Update.
1880 * inf-child.c (inf_child_disconnect): Update.
1881
a30bf1f1
TT
18822014-06-16 Tom Tromey <tromey@redhat.com>
1883
1884 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1885 * target.c (debug_to_rcmd, default_rcmd): Update.
1886 * target-delegates.c: Rebuild.
1887 * remote.c (remote_rcmd): Update.
1888 * monitor.c (monitor_rcmd): Update.
1889
d03de421
PA
18902014-06-16 Pedro Alves <palves@redhat.com>
1891
1892 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1893 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1894 have OBJF_SHARED set.
1895 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1896 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1897 instead of OBJF_USERLOADED.
1898 * objfiles.h (OBJF_SHARED): Update comment.
1899 (userloaded_objfile_contains_address_p): Rename to ...
1900 (shared_objfile_contains_address_p): ... this, and update
1901 comments.
1902 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1903 new objfile.
1904 (remove_symbol_file_command): Skip objfiles that don't have
1905 OBJF_SHARED set.
1906
99f4262f
TT
19072014-06-16 Tom Tromey <tromey@redhat.com>
1908
1909 * minsyms.h (prim_record_minimal_symbol)
1910 (prim_record_minimal_symbol_and_info): Update comments.
1911
97d66cc6
EZ
19122014-06-14 Eli Zaretskii <eliz@gnu.org>
1913
1914 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1915 or --without-guile, according to how GDB was built.
1916
635c7e8a
TT
19172014-06-13 Tom Tromey <tromey@redhat.com>
1918
1919 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1920 to help_list.
1921 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1922 to help_list.
1923 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1924 help_list.
1925 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1926 help_list.Pass all_commands, not -1, to help_list.
1927 * cli/cli-dump.c (dump_command, append_command)
1928 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1929 (binary_dump_command, binary_append_command): Pass all_commands,
1930 not -1, to help_list.
1931 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1932 -1, to help_list.
1933 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1934 -1, to help_list.
1935 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1936 help_list.
1937 * top.c (set_history): Pass all_commands, not -1, to help_list.
1938 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1939 all_commands, not -1, to help_list.
1940 * symfile.c (overlay_command): Pass all_commands, not -1, to
1941 help_list.
1942 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1943 help_list.
1944 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1945 help_list.
1946 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1947 -1, to help_list.
1948 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1949 not -1, to help_list.
1950 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1951 not -1, to help_list.
1952 * maint.c (maintenance_command, maintenance_info_command)
1953 (maintenance_print_command, maintenance_set_cmd): Pass
1954 all_commands, not -1, to help_list.
1955 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1956 help_list.
1957 * language.c (set_check): Pass all_commands, not -1, to help_list.
1958 * infcmd.c (unset_command): Pass all_commands, not -1, to
1959 help_list.
1960 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1961 help_list.
1962 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1963 help_list.
1964 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1965 help_list.
1966 * breakpoint.c (save_command): Pass all_commands, not -1, to
1967 help_list.
1968 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1969 all_commands, not -1, to help_list.
1970
b94ade42
PL
19712014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1972
1973 * regcache.c (struct register_to_invalidate): New structure.
1974 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1975 functions.
1976 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1977
31f628ae
YQ
19782014-06-12 Yao Qi <yao@codesourcery.com>
1979
1980 * varobj.c (varobj_get_num_children): Call
1981 varobj_is_dynamic_p.
1982 (varobj_list_children): Likewise.
1983 (varobj_update): Likewise. Update comments.
1984
cde5ef40
YQ
19852014-06-12 Yao Qi <yao@codesourcery.com>
1986
1987 * varobj.c (varobj_pretty_printed_p): Rename to ...
1988 (varobj_is_dynamic_p): ... this. New function.
1989 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1990 (varobj_is_dynamic_p): Declare.
1991 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1992 (mi_print_value_p, varobj_update_one): Likewise.
1993
576ea091
YQ
19942014-06-12 Pedro Alves <pedro@codesourcery.com>
1995 Yao Qi <yao@codesourcery.com>
1996
1997 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1998 (varobj_get_iterator): Wrap up code for pretty-printer by
1999 "#if HAVE_PYTHON" and "#endif".
2000 (update_dynamic_varobj_children): Likewise.
2001
827f100c
YQ
20022014-06-12 Pedro Alves <pedro@codesourcery.com>
2003 Yao Qi <yao@codesourcery.com>
2004
2005 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2006 gdb_python_initialized is false. Move some code from varobj.c.
2007 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2008 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2009 (struct varobj_item): Moved to varobj-iter.h".
2010 (varobj_clear_saved_item): New function.
2011 (update_dynamic_varobj_children): Move python-related code to
2012 py-varobj.c.
2013 (free_variable): Call varobj_clear_saved_item and
2014 varobj_iter_delete.
2015
e5250216
YQ
20162014-06-12 Pedro Alves <pedro@codesourcery.com>
2017 Yao Qi <yao@codesourcery.com>
2018
2019 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2020 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2021 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2022 (py-varobj.o): New rule.
2023 * python/py-varobj.c: New file.
2024 * python/python-internal.h (py_varobj_get_iterator): Declare.
2025 * varobj-iter.h: New file.
2026 * varobj.c: Include "varobj-iter.h"
2027 (struct varobj) <child_iter>: Change its type from "PyObject *"
2028 to "struct varobj_iter *".
2029 <saved_item>: Likewise.
2030 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2031 [HAVE_PYTHON] (varobj_get_iterator): New function.
2032 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2033 python-specific code to python/py-varobj.c.
2034 (install_visualizer): Call varobj_iter_delete instead of
2035 Py_XDECREF.
2036 * varobj.h (varobj_ensure_python_env): Declare.
2037
5a2e0d6e
YQ
20382014-06-12 Yao Qi <yao@codesourcery.com>
2039
2040 * varobj.c (struct varobj_item): New structure.
2041 (create_child_with_value): Update declaration.
2042 (varobj_add_child): Replace arguments 'name' and 'value' with
2043 'item'. All callers updated.
2044 (install_dynamic_child): Likewise.
2045 (update_dynamic_varobj_children): Likewise.
2046 (varobj_add_child): Likewise.
2047 (create_child_with_value): Likewise.
2048
919b9a93
JB
20492014-06-11 Joel Brobecker <brobecker@adacore.com>
2050
2051 * NEWS: Create a new section for the next release branch.
2052 Rename the section of the current branch, now that it has
2053 been cut.
2054
71a55bdf
JB
20552014-06-11 Joel Brobecker <brobecker@adacore.com>
2056
2057 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2058 * version.in: Bump version to 7.8.50.DATE-cvs.
2059
364fe1f7
PA
20602014-06-11 Pedro Alves <palves@redhat.com>
2061
2062 PR remote/17028
2063 * ser-mingw.c (net_windows_socket_check_pending): New function.
2064 (net_windows_select_thread): Ignore spurious wakeups. Use
2065 net_windows_socket_check_pending.
2066 (net_windows_wait_handle): Check for pending events with
2067 ioctlsocket, through net_windows_socket_check_pending, instead of
2068 checking the socket's event.
2069
5a6c7709
SC
20702014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2071
2072 * python/python-internal.h (gdb_PyObject_GetAttrString)
2073 (gdb_PyObject_HasAttrString): New inline function definitions.
2074 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2075 char * of the second argument to PyObject_GetAttrString.
74228e77 2076
0e58ee40
JB
20772014-06-10 Joel Brobecker <brobecker@adacore.com>
2078
2079 * serial.c (serial_write): Fix index of character to be printed
2080 in call to serial_logchar when serial debug traces are enabled.
2081
d190df30
JB
20822014-06-10 Joel Brobecker <brobecker@adacore.com>
2083
2084 * gdbtypes (resolve_dynamic_range): Add function description.
2085
b4b01d36
PA
20862014-06-09 Pedro Alves <palves@redhat.com>
2087
2088 * linux-nat.c (linux_child_follow_fork): Initialize status with
2089 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2090 inner block. Only pass the signal to PTRACE_DETACH if in pass
2091 state.
2092
3657956b
GB
20932014-06-09 Gary Benson <gbenson@redhat.com>
2094
2095 * common/signals.c (gdb_signal_from_host): Reorder to separate
2096 the always-available ANSI-standard signals from the signals that
2097 require checking.
2098 (do_gdb_signal_to_host): Likewise.
2099 * proc-events.c (signal_table): Likewise.
2100
c077881a
HZ
21012014-06-08 Hui Zhu <hui@codesourcery.com>
2102
2103 * common/linux-ptrace.c (linux_disable_event_reporting): New
2104 function.
2105 * common/linux-ptrace.h (linux_disable_event_reporting): New
2106 declaration.
2107 * linux-nat.c (linux_child_follow_fork): Do a single step before
2108 detach.
2109
4186eb54
KS
21102014-06-07 Keith Seitz <keiths@redhat.com>
2111
2112 Revert:
2113 PR c++/16253
2114 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2115 from symbol_matches_domain in symtab.c. All local callers
2116 of symbol_matches_domain updated.
2117 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2118 search STRUCT_DOMAIN.
2119 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2120 independently. standard_lookup will do that automatically.
2121 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2122 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2123 (cp_lookup_symbol_in_namespace): Likewise.
2124 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2125 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2126 may return a STRUCT_DOMAIN match.
2127 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2128 * cp-support.c: Include language.h.
2129 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2130 VAR_DOMAIN.
2131 * psymtab.c (match_partial_symbol): Compare the requested
2132 domain with the symbol's domain directly.
2133 (lookup_partial_symbol): Likewise.
2134 * symtab.c (lookup_symbol_in_language): Explain when/why
2135 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2136 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2137 appropriate languages.
2138 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2139 and moved to ada-lang.c
2140 (lookup_block_symbol): Explain that this function only returns
2141 symbol matching the requested DOMAIN.
2142 Compare the requested domain with the symbol's domain directly.
2143 (iterate_over_symbols): Compare the requested domain with the
2144 symbol's domain directly.
2145 * symtab.h (symbol_matches_domain): Remove.
2146
25326a28 21472014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2148
2149 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2150 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2151 (gdbscm_guile_version_is_at_least): Declare.
2152 (gdbscm_scm_string_to_int): Declare.
2153 * guile/guile.c (gdbscm_guile_major_version): New global.
2154 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2155 (guile_datadir): New static global.
2156 (gdbscm_guile_data_directory): New function.
2157 (initialize_scheme_side): Update.
2158 (misc_guile_functions): Add guile-data-directory.
2159 (initialize_gdb_module): Fetch guile version number.
2160 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2161 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2162 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2163 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2164 comments.
2165 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2166 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2167 * guile/scm-value.c (gdbscm_value_to_string): Only call
2168 scm_port_conversion_strategy if Guile version >= 2.0.6.
2169
0a770bb2 21702014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2171
2172 * main.c (print_gdb_help): Add -q and --silent.
2173
73ba372c
GB
21742014-06-06 Gary Benson <gbenson@redhat.com>
2175
2176 * common/signals.c: Remove preprocessor conditionals for
2177 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2178 SIGSEGV and SIGTERM.
2179 * proc-events.c: Likewise.
2180
c33b2f12
MM
21812014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2182
2183 * symfile.c (symfile_free_objfile): Remove restriction to
2184 OBJF_USERLOADED.
2185 * symfile-mem.c (symbol_file_add_from_memory): Call
2186 add_target_sections_of_objfile.
2187
fb934770
LC
21882014-06-05 Ludovic Courtès <ludo@gnu.org>
2189
2190 * guile/scm-value.c (gdbscm_history_append_x): Use
2191 'vlscm_get_value_smob_arg_unsafe' instead of
2192 'vlscm_scm_to_value'.
2193
6ef284bd
SM
21942014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2195
2196 PR mi/15806
2197 * utils.c (printchar): Don't escape at all if quoter is NUL.
2198 Update function documentation to clarify effect of parameter
2199 QUOTER.
2200 * remote.c (escape_buffer): Pass '\\' as the quoter to
2201 fputstrn_unfiltered.
2202 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2203 generate the output.
2204 (mi_solib_unloaded): Same.
2205
270c9937
JB
22062014-06-05 Joel Brobecker <brobecker@adacore.com>
2207
2208 * development.sh: Delete.
2209 * Makefile.in (config.status): Adjust dependency on development.sh.
2210 * configure.ac: Adjust development.sh source call.
2211 * configure: Regenerate.
2212
16f691fb
DE
22132014-06-04 Doug Evans <xdje42@gmail.com>
2214
2215 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2216 is_scheme_bkpt, spec.
2217 (bpscm_make_breakpoint_smob): Initialize new members.
2218 (gdbscm_create_breakpoint_x): Split into two ...
2219 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2220 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2221 (scheme_function breakpoint_functions): Update.
2222 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2223 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2224 register-breakpoint!.
2225
ef7cab6b
JB
22262014-06-04 Joel Brobecker <brobecker@adacorer.com>
2227
2228 PR server/17023
2229 * mem-break.c (z_type_supported): Return zero if
2230 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2231
012370f6
TT
22322014-06-04 Tom Tromey <tromey@redhat.com>
2233
2234 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2235 value_from_contents_and_address_unresolved.
2236 (ada_template_to_fixed_record_type_1): Likewise.
2237 (ada_which_variant_applies): Likewise.
2238 * value.h (value_from_contents_and_address_unresolved): Declare.
2239 * value.c (value_from_contents_and_address_unresolved): New
2240 function.
2241 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2242 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2243 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2244
92e2a17f
TT
22452014-06-04 Tom Tromey <tromey@redhat.com>
2246
2247 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2248
c0939df1
TT
22492014-06-04 Tom Tromey <tromey@redhat.com>
2250
2251 * procfs.c (procfs_attach): Make "args" const.
2252 * windows-nat.c (windows_attach): Make "args" const.
2253 * nto-procfs.c (procfs_attach): Make "args" const.
2254 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2255 * go32-nat.c (go32_attach): Make "args" const.
2256 * gnu-nat.c (gnu_attach): Make "args" const.
2257 * darwin-nat.c (darwin_attach): Make "args" const.
2258 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2259 * linux-nat.c (linux_nat_attach): Make "args" const.
2260 * remote.c (extended_remote_attach_1, extended_remote_attach):
2261 Make "args" const.
2262 * target.h (struct target_ops) <to_attach>: Make "args" const.
2263 (find_default_attach): Likewise.
2264 * utils.c (parse_pid_to_attach): Make "args" const.
2265 * utils.h (parse_pid_to_attach): Update.
2266
8eaff7cd
TT
22672014-06-04 Tom Tromey <tromey@redhat.com>
2268
2269 * target-delegates.c: Rebuild.
2270 * target.c (default_thread_address_space): New function.
2271 (target_thread_address_space): Simplify.
2272 * target.h (struct target_ops) <to_thread_address_space>: Add
2273 TARGET_DEFAULT_FUNC.
2274
1913f160
DE
22752014-06-04 Doug Evans <xdje42@gmail.com>
2276
2277 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2278
70ad5bff
MM
22792014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2280
2281 * record-btrace.c: Include event-loop.h and inf-loop.h.
2282 (record_btrace_resume_exec_dir)
2283 (record_btrace_async_inferior_event_handler)
2284 (record_btrace_handle_async_inferior_event): New.
2285 (record_btrace_open): Create async event handler.
2286 (record_btrace_close): Delete async event handler.
2287 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2288 Mark async event handler.
2289 (record_btrace_execution_direction): New.
2290 (init_record_btrace_ops): Initialize to_execution_direction.
2291
b6210538
DE
22922014-06-03 Doug Evans <xdje42@gmail.com>
2293
2294 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2295 (gdbscm_make_parameter): Ditto.
2296
a5b1fd27
DE
22972014-06-03 Doug Evans <dje@google.com>
2298
2299 * exec.c (exec_close_1): Call clear_section_table instead of
2300 resize_section_table.
2301 (clear_section_table): New function.
2302 (resize_section_table): Make static. Rename arg num_added to
2303 adjustment.
2304 * exec.h (clear_section_table): Declare.
2305 (resize_section_table): Delete.
2306 * progspace.c (release_program_space): Call clear_section_table
2307 instead of resize_section_table.
2308
0c6e92a5
SC
23092014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2310
2311 * NEWS (Python Scripting): Add entry about the new xmethods
2312 feature.
2313
883964a7
SC
23142014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2315
2316 * python/py-xmethods.c: New file.
2317 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2318 (objfpy_dealloc): XDECREF on the new xmethods field.
2319 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2320 field.
2321 (objfpy_get_xmethods): New function.
2322 (objfile_getset): New entry 'xmethods'.
2323 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2324 (pspy_dealloc): XDECREF on the new xmethods field.
2325 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2326 field.
2327 (pspy_get_xmethods): New function.
2328 (pspace_getset): New entry 'xmethods'.
2329 * python/python-internal.h: Add declarations for new functions.
2330 * python/python.c (_initialize_python): Invoke
2331 gdbpy_initialize_xmethods.
2332 * python/lib/gdb/__init__.py (xmethods): New
2333 attribute.
2334 * python/lib/gdb/xmethod.py: New file.
2335 * python/lib/gdb/command/xmethods.py: New file.
2336
58992dc5
SC
23372014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2338
2339 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2340 best match method returned by find_overload_match is an xmethod.
2341 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2342 the best matching operator returned by find_overload_match is an
2343 xmethod.
2344 * valops.c: #include "extension.h".
2345 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2346 Return void. The list of matching source methods is returned in
2347 "fn_list" and a vector of matching debug method workers is
2348 returned in "xm_worker_vec". Update all callers.
2349 (value_find_oload_method_list): Likewise.
2350 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2351 non-NULL, then the index of the best matching method in this
2352 vector is returned. Update all callers.
2353 (find_overload_match): Include xmethods while performing overload
2354 resolution.
2355
e81e7f5e
SC
23562014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2357
2358 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2359 * extension-priv.h (struct extension_language_ops): Add the
2360 xmethod interface.
2361 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2362 get_matching_xmethod_workers, get_xmethod_argtypes,
2363 invoke_xmethod, free_xmethod_worker,
2364 free_xmethod_worker_vec): New functions.
2365 * extension.h: #include "common/vec.h".
2366 New function declarations.
2367 (struct xmethod_worker): New struct.
2368 (VEC (xmethod_worker_ptr)): New vector type.
2369 (xmethod_worker_ptr): New typedef.
2370 (xmethod_worker_vec): Likewise.
2371 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2372 builtin_type.
2373 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2374 (struct builtin_type): New field "xmethod".
2375 * valarith.c (value_ptradd): Assert that the value argument is not
2376 lval_xcallable.
2377 * valops.c (value_must_coerce_to_target): Return 0 for
2378 lval_xcallable values.
2379 * value.c (struct value): New field XM_WORKER in the field
2380 LOCATION.
2381 (value_address, value_raw_address): Return 0 for lval_xcallable
2382 values.
2383 (set_value_address): Assert that the value is not an
2384 lval_xcallable.
2385 (value_free): Free the associated xmethod worker when freeing
2386 lval_xcallable values.
2387 (set_value_component_location): Assert that the WHOLE value is not
2388 lval_xcallable.
2389 (value_of_xmethod, call_xmethod): New functions.
2390 * value.h: Declare "struct xmethod_worker".
2391 Declare new functions value_of_xmethod, call_xmethod.
2392
ef370185
JB
23932014-06-03 Joel Brobecker <brobecker@adacore.com>
2394 Pedro Alves <palves@redhat.com>
2395
2396 PR breakpoints/17000
2397 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2398 New function, extracted from software_breakpoint_inserted_here_p.
2399 (software_breakpoint_inserted_here_p): Replace factored out code
2400 by call to find_non_raw_software_breakpoint_inserted_here.
2401 (bp_target_info_copy_insertion_state): New function.
2402 (bkpt_insert_location): Handle the case of a single-step
2403 breakpoint already inserted at the same address.
2404 (bkpt_remove_location): Handle the case of a single-step
2405 breakpoint still inserted at the same address.
2406 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2407 breakpoint already inserted at the same address.
2408 (deprecated_remove_raw_breakpoint): Handle the case of a
2409 non-raw breakpoint still inserted at the same address.
2410 (find_single_step_breakpoint): New function, extracted from
2411 single_step_breakpoint_inserted_here_p.
2412 (find_single_step_breakpoint): New function,
2413 factored out from single_step_breakpoint_inserted_here_p.
2414 (single_step_breakpoint_inserted_here_p): Reimplement.
2415
1e2ccb61
BM
24162014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2417
2418 Pushed by Joel Brobecker <brobecker@adacore.com>
2419 * source.c (show_substitute_path_command): Fix display of matching
2420 substitution rules.
2421
d3448d85
GB
24222014-06-03 Gary Benson <gbenson@redhat.com>
2423
2424 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2425
06eb1586
DE
24262014-06-02 Doug Evans <xdje42@gmail.com>
2427
2428 Add parameter support for Guile.
2429 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2430 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2431 (scm-param.o): New rule.
2432 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2433 (gdbscm_misc_error): Declare.
2434 (gdbscm_canonicalize_command_name): Declare.
2435 (gdbscm_scm_to_host_string): Declare.
2436 (gdbscm_scm_from_host_string): Declare.
2437 (gdbscm_initialize_parameters): Declare.
2438 * guile/guile.c (initialize_gdb_module): Call
2439 gdbscm_initialize_parameters.
2440 * guile/lib/gdb.scm: Export parameter symbols.
2441 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2442 cmdscm_canonicalize_name and made public. All callers updated.
2443 * guile/scm-exception.c (gdbscm_misc_error): New function.
2444 * guile/scm-param.c: New file.
2445 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2446 (gdbscm_scm_to_host_string): New function.
2447 (gdbscm_scm_from_host_string): New function.
2448 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2449
e698b8c4
DE
24502014-06-02 Doug Evans <xdje42@gmail.com>
2451
2452 Add command support for Guile.
2453 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2454 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2455 (scm-cmd.o): New rule.
2456 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2457 (gdbscm_user_error_p): Declare.
2458 (gdbscm_parse_command_name): Declare.
2459 (gdbscm_valid_command_class_p): Declare.
2460 (gdbscm_initialize_commands): Declare.
2461 * guile/guile.c (initialize_gdb_module): Call
2462 gdbscm_initialize_commands.
2463 * guile/lib/gdb.scm: Export command symbols.
2464 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2465 (throw-user-error): New function.
2466 * guile/scm-cmd.c: New file.
2467 * guile/scm-exception.c (user_error_symbol): New static global.
2468 (gdbscm_user_error_p): New function.
2469 (gdbscm_initialize_exceptions): Set user_error_symbol.
2470 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2471
fb1f94b0
PM
24722014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2473
2474 * top.c (command_loop): Handle comments here...
2475 (command_line_input): ... not here.
2476
ded03782
DE
24772014-06-02 Doug Evans <xdje42@gmail.com>
2478
2479 Add progspace support for Guile.
2480 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2481 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2482 (scm-progspace.o): New rule.
2483 * guile/guile-internal.h (pspace_smob): New typedef.
2484 (psscm_pspace_smob_pretty_printers): Declare.
2485 (psscm_pspace_smob_from_pspace): Declare.
2486 (psscm_scm_from_pspace): Declare.
2487 * guile/guile.c (initialize_gdb_module): Call
2488 gdbscm_initialize_pspaces.
2489 * guile/lib/gdb.scm: Export progspace symbols.
2490 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2491 support.
2492 (append-pretty-printer!): Ditto.
2493 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2494 Implement.
2495 * guile/scm-progspace.c: New file.
2496
397998fc
AM
24972014-06-03 Alan Modra <amodra@gmail.com>
2498
2499 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2500 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2501
6aa5f3a6
DE
25022014-06-02 Doug Evans <dje@google.com>
2503
2504 Add support for skeletonless type units.
2505 * dwarf2read.c (struct dwarf2_per_objfile): New member
2506 n_allocated_type_units.
2507 (struct dwarf2_per_objfile) <tu_stats>: New member
2508 nr_all_type_units_reallocs.
2509 (create_signatured_type_table_from_index): Initialize
2510 n_allocated_type_units
2511 (create_all_type_units): Ditto.
2512 (add_type_unit): Move up in file. New arg slot.
2513 All callers updated. Increase space for all_type_units more
2514 efficiently.
2515 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2516 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2517 (lookup_dwp_signatured_type): Ditto.
2518 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2519 All callers updated.
2520 (build_type_psymtabs_1): Leave type_unit_groups as
2521 NULL if no TUs present.
2522 (print_tu_stats): New function.
2523 (process_skeletonless_type_unit): New function.
2524 (process_dwo_file_for_skeletonless_type_units): New
2525 function.
2526 (process_skeletonless_type_units): New function.
2527 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2528 Call print tu_stats if debugging enabled.
2529
41fac0cf
PA
25302014-06-02 Pedro Alves <palves@redhat.com>
2531
2532 * breakpoint.c (build_target_command_list): Don't build a command
2533 list if we have any duplicate location that isn't a dprintf.
2534
cd1608cc
PA
25352014-06-02 Pedro Alves <palves@redhat.com>
2536
2537 * breakpoint.c (dprintf_breakpoint_hit): New function.
2538 (initialize_breakpoint_ops): Install it as dprintf's
2539 breakpoint_hit method.
2540
486ef3b9
JB
25412014-06-02 Joel Brobecker <brobecker@adacore.com>
2542
2543 * source.c (substitute_path_rule_matches): Simplify using
2544 filename_ncmp instead of FILENAME_CMP.
2545
230cd560
JB
25462014-06-02 Joel Brobecker <brobecker@adacore.com>
2547
2548 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2549
16954d5d
LC
25502014-06-01 Ludovic Courtès <ludo@gnu.org>
2551
2552 * configure.ac: When Guile is available, check for the
2553 availability of 'scm_new_smob'.
2554 * configure, config.h.in: Regenerate.
2555 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2556 function.
2557
53e8a631
AB
25582014-05-30 Andrew Burgess <aburgess@broadcom.com>
2559
2560 * frame.c (struct frame_info): Add stop_string field.
2561 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2562 (get_prev_frame_always): Old content moved into
2563 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2564 TRY_CATCH, handle MEMORY_ERROR exceptions.
2565 (frame_stop_reason_string): New function definition.
2566 * frame.h (unwind_stop_reason_to_string): Extend comment to
2567 mention frame_stop_reason_string.
2568 (frame_stop_reason_string): New function declaration.
2569 * stack.c (frame_info): Switch to frame_stop_reason_string.
2570 (backtrace_command_1): Switch to frame_stop_reason_string.
2571 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2572 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2573 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2574
70e38b8e
AB
25752014-05-30 Andrew Burgess <aburgess@broadcom.com>
2576
2577 * frame.c (frame_stop_reason_string): Rename to ...
2578 (unwind_stop_reason_to_string): this.
2579 * frame.h (frame_stop_reason_string): Rename to ...
2580 (unwind_stop_reason_to_string): this.
2581 * stack.c (frame_info): Update call to frame_stop_reason_string.
2582 (backtrace_command_1): Likewise.
2583 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2584 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2585
938f0e2f
AB
25862014-05-30 Andrew Burgess <aburgess@broadcom.com>
2587
2588 * frame.c (remove_prev_frame): New function.
2589 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2590 remove_prev_frame.
2591
a09dd441
PA
25922014-05-29 Pedro Alves <palves@redhat.com>
2593
2594 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2595 and make it const. When a single-step decays to a continue,
2596 clear 'step', not 'hw_step'. Pass whether the caller wanted
2597 to step to user_visible_resume_ptid, not what we ask the
2598 target to do.
2599
bdc36728
PA
26002014-05-29 Pedro Alves <palves@redhat.com>
2601
2602 * infrun.c (process_event_stop_test, handle_step_into_function)
2603 (handle_step_into_function_backward): Adjust.
2604 Don't set the even thread's stop_step and call stop_waiting before
2605 calling end_stepping_range. Instead do that ...
2606 (end_stepping_range): ... here. Take an ecs pointer parameter.
2607
22bcd14b
PA
26082014-05-29 Pedro Alves <palves@redhat.com>
2609
2610 * infrun.c (stop_stepping): Rename to ...
2611 (stop_waiting): ... this.
2612 (proceed): Update comment.
2613 (process_event_stop_test, handle_inferior_event)
2614 (handle_signal_stop, handle_step_into_function)
2615 (handle_step_into_function_backward): Update.
2616
4ae57c05
PA
26172014-05-29 Pedro Alves <palves@redhat.com>
2618
2619 * infcall.c (run_inferior_call): Don't check whether the current
2620 thread is running after the proceed call.
2621
329ea579
PA
26222014-05-29 Pedro Alves <palves@redhat.com>
2623 Tom Tromey <tromey@redhat.com>
2624
2625 * NEWS: Mention "maint set target-async", "set mi-async", and that
2626 background execution commands are now always available.
2627 * target.h (target_async_permitted): Update comment.
2628 * target.c (target_async_permitted, target_async_permitted_1):
2629 Default to 1.
2630 (set_target_async_command): Rename to ...
2631 (maint_set_target_async_command): ... this.
2632 (show_target_async_command): Rename to ...
2633 (maint_show_target_async_command): ... this.
2634 (_initialize_target): Adjust.
2635 * infcmd.c (prepare_execution_command): Make extern.
2636 * inferior.h (prepare_execution_command): Declare.
2637 * infrun.c (set_observer_mode): Leave target async alone.
2638 * mi/mi-interp.c (mi_interpreter_init): Install
2639 mi_on_sync_execution_done as sync_execution_done observer.
2640 (mi_on_sync_execution_done): New function.
2641 (mi_execute_command_input_handler): Don't print the prompt if we
2642 just started a synchronous command with an async target.
2643 (mi_on_resume): Check sync_execution before printing prompt.
2644 * mi/mi-main.h (mi_async_p): Declare.
2645 * mi/mi-main.c: Include gdbcmd.h.
2646 (mi_async_p): New function.
2647 (mi_async, mi_async_1): New globals.
2648 (set_mi_async_command, show_mi_async_command, mi_async): New
2649 functions.
2650 (exec_continue): Call prepare_execution_command.
2651 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2652 (mi_execute_async_cli_command): Use mi_async_p.
2653 (_initialize_mi_main): Install "set mi-async". Make
2654 "target-async" a deprecated alias.
2655
92bcb5f9
PA
26562014-05-29 Pedro Alves <palves@redhat.com>
2657
2658 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2659 (_initialize_cli_interp): Adjust.
2660 * event-loop.c: Include "observer.h".
2661 (start_event_loop): Notify 'command_error' observers instead of
2662 calling display_gdb_prompt. Remove FIXME comment.
2663 * event-top.c (display_gdb_prompt): Remove call into the
2664 interpreters.
2665 * inf-loop.c: Include "observer.h".
2666 (inferior_event_handler): Notify 'command_error' observers instead
2667 of calling display_gdb_prompt.
2668 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2669 observers instead of calling display_gdb_prompt.
2670 * interps.c (interp_set): Don't call display_gdb_prompt.
2671 (current_interp_display_prompt_p): Delete.
2672 * interps.h (interp_prompt_p): Delete declaration.
2673 (interp_prompt_p_ftype): Delete.
2674 (struct interp_procs) <prompt_proc_p>: Delete field.
2675 (current_interp_display_prompt_p): Delete declaration.
2676 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2677 (_initialize_mi_interp): Adjust.
2678 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2679 'command_error' observers.
2680 (tui_on_sync_execution_done, tui_on_command_error): New
2681 functions.
2682 (tui_display_prompt_p): Delete.
2683 (_initialize_tui_interp): Adjust.
2684
fd664c91
PA
26852014-05-29 Pedro Alves <palves@redhat.com>
2686
2687 PR gdb/13860
2688 * cli/cli-interp.c: Include infrun.h and observer.h.
2689 (cli_uiout, cli_interp): New globals.
2690 (cli_on_signal_received, cli_on_end_stepping_range)
2691 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2692 functions.
2693 (cli_interpreter_init): Install them as 'end_stepping_range',
2694 'signal_received' 'signal_exited', 'exited' and 'no_history'
2695 observers.
2696 (_initialize_cli_interp): Remove cli_interp local.
2697 * infrun.c (handle_inferior_event): Call the several stop reason
2698 observers instead of printing the stop reason directly.
2699 (end_stepping_range): New function.
2700 (print_end_stepping_range_reason, print_signal_exited_reason)
2701 (print_exited_reason, print_signal_received_reason)
2702 (print_no_history_reason): Make static, and add an uiout
2703 parameter. Print to that instead of to CURRENT_UIOUT.
2704 * infrun.h (print_end_stepping_range_reason)
2705 (print_signal_exited_reason, print_exited_reason)
2706 (print_signal_received_reason print_no_history_reason): New
2707 declarations.
2708 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2709 'mi_uiout'.
2710 <cli_uiout>: New field.
2711 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2712 uiout for CLI output. Install 'signal_received',
2713 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2714 observers.
2715 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2716 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2717 (mi_on_no_history): New functions.
2718 (ui_out_free_cleanup): Delete function.
2719 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2720 instead use the one already stored in the MI interpreter data.
2721 (mi_ui_out): Adjust.
2722 * tui/tui-interp.c: Include infrun.h and observer.h.
2723 (tui_interp): New global.
2724 (tui_on_signal_received, tui_on_end_stepping_range)
2725 (tui_on_signal_exited, tui_on_exited)
2726 (tui_on_no_history): New functions.
2727 (tui_init): Install them as 'end_stepping_range',
2728 'signal_received' 'signal_exited', 'exited' and 'no_history'
2729 observers.
2730 (_initialize_tui_interp): Delete tui_interp local.
2731
8817a6f2
PA
27322014-05-29 Pedro Alves <palves@redhat.com>
2733
2734 PR gdb/15713
2735 * linux-nat.c (linux_nat_resume_callback): Rename the second
2736 parameter to 'except'. Skip LP if it points to EXCEPT.
2737 (linux_nat_resume): Don't mark the event lwp as not stopped
2738 before resuming sibling lwps. Instead ask
2739 linux_nat_resume_callback to skip the event lwp. Mark it as not
2740 stopped after actually resuming it.
2741 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2742 resuming it.
2743 (wait_lwp): Mark the lwp as stopped here.
2744 (stop_wait_callback): Mark the lwp as not stopped right after
2745 resuming it. Don't mark lwps as stopped here.
2746 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2747 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2748
251bde03
PA
27492014-05-29 Pedro Alves <palves@redhat.com>
2750
2751 PR PR15693
2752 * infrun.c (resume): Determine how much to resume depending on
2753 whether the caller wanted a step, not whether we can hardware step
2754 the target. Mark all threads that we intend to run as running,
2755 unless we're calling an inferior function.
2756 (normal_stop): If the thread is running an infcall, don't finish
2757 thread state.
2758 * target.c (target_resume): Don't mark threads as running here.
2759
7f3c0343
JB
27602014-05-28 Joel Brobecker <brobecker@adacore.com>
2761
2762 * serial.c (_initialize_serial): Remove support for
2763 the "set remotebaud" and "show remotebaud" commands.
2764 * NEWS: Add entry documenting the removal of that command.
2765
ee34b3f9
YQ
27662014-05-28 Yao Qi <yao@codesourcery.com>
2767
2768 * charset.c: Fix typo in comments.
2769
add6c04d
GB
27702014-05-27 Gary Benson <gbenson@redhat.com>
2771
2772 * utils.c (internal_vproblem): Prompt for a bug report.
2773
92c48fc5
AW
27742014-05-26 Andy Wingo <wingo@igalia.com>
2775
2776 * guile/scm-arch.c (arscm_mark_arch_smob):
2777 * guile/scm-block.c (bkscm_mark_block_smob)
2778 (bkscm_mark_block_syms_progress_smob):
2779 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2780 * guile/scm-exception.c (exscm_mark_exception_smob):
2781 * guile/scm-frame.c (frscm_mark_frame_smob):
2782 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2783 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2784 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2785 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2786 (ppscm_mark_pretty_printer_worker_smob):
2787 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2788 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2789 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2790 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2791 mark functions.
2792 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2793 function.
2794
b2715b27
AW
27952014-05-26 Andy Wingo <wingo@igalia.com>
2796 Doug Evans <xdje42@gmail.com>
2797
2798 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2799 empty_base_class. All uses updated.
2800 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2801 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2802 Adapt all callers.
2803 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2804 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2805 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2806 (gdbscm_gsmob_has_property_p, add_property_name)
2807 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2808 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2809 (gdb-object-has-property?, gdb-object-properties): Remove.
2810 (gdb-object-kind): Renamed from gsmob-kind.
2811
214ab2da
AW
28122014-05-26 Andy Wingo <wingo@igalia.com>
2813
2814 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2815 * configure: Regenerate.
2816
589fdceb
MM
28172014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2818
2819 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2820
67b5c0c1
MM
28212014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2822
2823 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2824 (replay_memory_access_read_only, replay_memory_access_read_write)
2825 (replay_memory_access_types, replay_memory_access)
2826 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2827 (cmd_set_record_btrace, cmd_show_record_btrace)
2828 (cmd_show_replay_memory_access): New.
2829 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2830 (record_btrace_remove_breakpoint): Replace
2831 record_btrace_allow_memory_access with replay_memory_access.
2832 (_initialize_record_btrace): Add commands.
2833 * NEWS: Announce it.
2834
036cd381
RR
28352014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2836
2837 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2838
c77c1e42
RR
28392014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2840
2841 * MAINTAINERS (Write After Approval): Move self back from
2842 paper trail.
2843
45741a9c
PA
28442014-05-22 Pedro Alves <palves@redhat.com>
2845
2846 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2847 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2848 (disable_randomization, enum exec_direction_kind)
2849 (execution_direction, stop_registers, start_remote)
2850 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2851 (wait_for_inferior, normal_stop, get_last_target_status)
2852 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2853 (insert_step_resume_breakpoint_at_sal)
2854 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2855 (set_step_info, print_stop_event, signal_stop_state)
2856 (signal_print_state, signal_pass_state, signal_stop_update)
2857 (signal_print_update, signal_pass_update)
2858 (update_signals_program_target, clear_exit_convenience_vars)
2859 (displaced_step_dump_bytes, update_observer_mode)
2860 (signal_catch_update, gdb_signal_from_command): Move
2861 declarations ...
2862 * infrun.h: ... to this new file.
2863 * amd64-tdep.c: Include infrun.h.
2864 * annotate.c: Include infrun.h.
2865 * arch-utils.c: Include infrun.h.
2866 * arm-linux-tdep.c: Include infrun.h.
2867 * arm-tdep.c: Include infrun.h.
2868 * break-catch-sig.c: Include infrun.h.
2869 * breakpoint.c: Include infrun.h.
2870 * common/agent.c: Include infrun.h instead of inferior.h.
2871 * corelow.c: Include infrun.h.
2872 * event-top.c: Include infrun.h.
2873 * go32-nat.c: Include infrun.h.
2874 * i386-tdep.c: Include infrun.h.
2875 * inf-loop.c: Include infrun.h.
2876 * infcall.c: Include infrun.h.
2877 * infcmd.c: Include infrun.h.
2878 * infrun.c: Include infrun.h.
2879 * linux-fork.c: Include infrun.h.
2880 * linux-nat.c: Include infrun.h.
2881 * linux-thread-db.c: Include infrun.h.
2882 * monitor.c: Include infrun.h.
2883 * nto-tdep.c: Include infrun.h.
2884 * procfs.c: Include infrun.h.
2885 * record-btrace.c: Include infrun.h.
2886 * record-full.c: Include infrun.h.
2887 * remote-m32r-sdi.c: Include infrun.h.
2888 * remote-mips.c: Include infrun.h.
2889 * remote-notif.c: Include infrun.h.
2890 * remote-sim.c: Include infrun.h.
2891 * remote.c: Include infrun.h.
2892 * reverse.c: Include infrun.h.
2893 * rs6000-tdep.c: Include infrun.h.
2894 * s390-linux-tdep.c: Include infrun.h.
2895 * solib-irix.c: Include infrun.h.
2896 * solib-osf.c: Include infrun.h.
2897 * solib-svr4.c: Include infrun.h.
2898 * target.c: Include infrun.h.
2899 * top.c: Include infrun.h.
2900 * windows-nat.c: Include infrun.h.
2901 * mi/mi-interp.c: Include infrun.h.
2902 * mi/mi-main.c: Include infrun.h.
2903 * python/py-threadevent.c: Include infrun.h.
2904
98eb56a4
PA
29052014-05-22 Pedro Alves <palves@redhat.com>
2906
2907 * infrun.c (handle_inferior_event): Store the exit code for
2908 --return-child-result here, instead of ...
2909 (print_exited_reason): ... here.
2910
17b2616c
PA
29112014-05-21 Pedro Alves <palves@redhat.com>
2912
2913 PR gdb/13860
2914 * gdbthread.h (struct thread_control_state): New field
2915 `command_interp'.
2916 * infrun.c (follow_fork): Copy the new thread control field to the
2917 child fork thread.
2918 (clear_proceed_status_thread): Clear the new thread control field.
2919 (proceed): Set the new thread control field.
2920 * interps.h (command_interp): Declare.
2921 * interps.c (command_interpreter): New global.
2922 (command_interp): New function.
2923 (interp_exec): Set `command_interpreter' while here.
2924 * cli-out.c (cli_uiout_dtor): New function.
2925 (cli_ui_out_impl): Install it.
2926 * mi/mi-interp.c: Include cli-out.h.
2927 (mi_cmd_interpreter_exec): Add comment.
2928 (restore_current_uiout_cleanup): New function.
2929 (ui_out_free_cleanup): New function.
2930 (mi_on_normal_stop): If finishing an execution command started by
2931 a CLI command, or any kind of breakpoint-like event triggered,
2932 print the stop event to the output (CLI) stream.
2933 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2934
5166082f
PA
29352014-05-21 Pedro Alves <palves@redhat.com>
2936
2937 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2938 current source line having changed.
2939 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2940 * infrun.c (normal_stop): Adjust call to
2941 set_current_sal_from_frame.
2942 * source.c (clear_lines_listed_range): New function.
2943 (set_current_source_symtab_and_line, identify_source_line): Clear
2944 the lines listed range.
2945 (line_info): Handle the first "info line" after the current source
2946 line having changed.
2947 * stack.c (print_stack_frame): Remove center handling.
2948 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2949 center sal.line.
2950
c1ee2fb3
PA
29512014-05-21 Pedro Alves <palves@redhat.com>
2952
2953 * inf-child.c (inf_child_mourn_inferior): New function.
2954 * inf-child.h (inf_child_mourn_inferior): New declaration.
2955 * darwin-nat.c (darwin_mourn_inferior): Use
2956 inf_child_mourn_inferior.
2957 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2958 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2959 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2960 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2961 * windows-nat.c (windows_mourn_inferior): Likewise.
2962
5c6d4fb2
DE
29632014-05-21 Doug Evans <xdje42@gmail.com>
2964
250748cb 2965 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 2966
4a2722c5
DE
29672014-05-21 Doug Evans <xdje42@gmail.com>
2968
17292b30 2969 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
2970 (gdbscm_out_of_range_error): Ditto.
2971 (gdbscm_memory_error): Ditto.
250748cb
DE
2972 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2973 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
2974 (gdbscm_out_of_range_error): Update.
2975 (gdbscm_memory_error): Update.
2976 (gdbscm_scm_to_target_string_unsafe): Delete.
2977
6a3cb8e8
PA
29782014-05-21 Pedro Alves <palves@redhat.com>
2979
2980 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2981 globals.
2982 (inf_child_open_target): New function.
2983 (inf_child_open): Use inf_child_open_target to push the target
2984 instead of erroring out.
2985 (inf_child_disconnect, inf_child_close)
2986 (inf_child_maybe_unpush_target): New functions.
2987 (inf_child_target): Install inf_child_disconnect and
2988 inf_child_close. Store a pointer to the returned object.
2989 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2990 declarations.
2991 * target.c (auto_connect_native_target): New global.
2992 (show_default_run_target): New function.
2993 (find_default_run_target): Return NULL if automatically connecting
2994 to the native target is disabled.
2995 (_initialize_target): Install set/show auto-connect-native-target.
2996 * NEWS: Mention "set auto-connect-native-target", and "target
2997 native".
2998 * linux-nat.c (super_close): New global.
2999 (linux_nat_close): Call super_close.
3000 (linux_nat_add_target): Store a pointer to the base class's
3001 to_close method.
3002 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3003 inf_child_maybe_unpush.
3004 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3005 already pushed.
3006 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3007 the inferior. Use inf_child_maybe_unpush_target.
3008 (inf_ttrace_attach): Don't push the target if it is already
3009 pushed.
3010 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3011 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3012 after mourning the inferior. Use inf_child_maybe_unpush_target.
3013 (darwin_attach_pid): Don't push the target if it is already
3014 pushed.
3015 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3016 mourning the inferior. Use inf_child_maybe_unpush_target.
3017 (gnu_detach): Use inf_child_maybe_unpush_target.
3018 * go32-nat.c (go32_create_inferior): Don't push the target if it
3019 is already pushed.
3020 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3021 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3022 (procfs_open): Rename to ...
3023 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3024 comments. Can target_preopen before changing node. Call
3025 inf_child_open_target to push the target explicitly.
3026 (procfs_attach): Don't push the target if it is already pushed.
3027 (procfs_detach): Use inf_child_maybe_unpush_target.
3028 (procfs_create_inferior): Don't push the target if it is already
3029 pushed.
3030 (nto_native_ops): New global.
3031 (procfs_open): Reimplement.
3032 (procfs_native_open): New function.
3033 (init_procfs_targets): Install procfs_native_open as to_open of
3034 "target native". Store a pointer to the "native" target in
3035 nto_native_ops.
3036 * procfs.c (procfs_attach): Don't push the target if it is already
3037 pushed.
3038 (procfs_detach): Use inf_child_maybe_unpush_target.
3039 (procfs_mourn_inferior): Only unpush the target after mourning the
3040 inferior. Use inf_child_maybe_unpush_target.
3041 (procfs_init_inferior): Don't push the target if it is already
3042 pushed.
3043 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3044 if it is already pushed.
3045
930ee1b1
PA
30462014-05-21 Pedro Alves <palves@redhat.com>
3047
3048 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3049 and "procfs" targets are now called "native" instead.
3050
1f5d1b13
PA
30512014-05-21 Pedro Alves <palves@redhat.com>
3052
3053 * go32-nat.c (go32_open): Delete.
3054 (go32_target): Don't override the to_open method.
3055
132f8e03
PA
30562014-05-21 Pedro Alves <palves@redhat.com>
3057
3058 * nto-procfs.c (procfs_can_run): New function.
3059 (nto_procfs_ops): New global.
3060 (init_procfs_targets): New, based on procfs_target. Install
3061 "target native" in addition to "target procfs".
3062 (_initialize_procfs): Call init_procfs_targets instead of adding
3063 the target here.
3064
03c136c3
PA
30652014-05-21 Pedro Alves <palves@redhat.com>
3066
3067 * windows-nat.c (windows_target): Don't override to_shortname,
3068 to_longname or to_doc.
3069
a635d0f3
PA
30702014-05-21 Pedro Alves <palves@redhat.com>
3071
3072 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3073 to_doc.
3074
4f9b5133
PA
30752014-05-21 Pedro Alves <palves@redhat.com>
3076
3077 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3078 to_shortname, to_longname or to_doc.
3079
bc85afde
PA
30802014-05-21 Pedro Alves <palves@redhat.com>
3081
3082 * go32-nat.c (go32_target): Don't override to_shortname,
3083 to_longname or to_doc.
3084
4ebfc96e
PA
30852014-05-21 Pedro Alves <palves@redhat.com>
3086
3087 * inf-child.c (inf_child_open): Remove mention of "child".
3088 (inf_child_target): Rename target to "native" instead of "child".
3089
2648dfed
AA
30902014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3091
3092 * Makefile.in (SFILES): Delete "regset.c".
3093 (COMMON_OBS): Delete "regset.o".
3094 * regset.c: Remove.
3095 * regset.h (regset_alloc): Delete prototype.
3096
b13feb94
AA
30972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3098
3099 * sparc-linux-tdep.c (sparc32_linux_gregset)
3100 (sparc32_linux_fpregset): New static regset structures.
3101 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3102 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3103 'fpregset' fields.
3104 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3105 (sparc64_linux_fpregset): New static regset structures.
3106 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3107 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3108 New static regset structures.
3109 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3110 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3111 New static regset structures.
3112 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3113 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3114 New static regset structures.
3115 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3116 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3117 New static regset structures.
3118 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3119
b4fd25c9
AA
31202014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3121
3122 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3123 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3124 register maps ("regmaps") from "*regset" to "*regmap". Do this
3125 for all regmap types and variables.
3126 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3127 (sparc32_linux_supply_core_gregset)
3128 (sparc32_linux_collect_core_gregset)
3129 (sparc32_linux_supply_core_fpregset)
3130 (sparc32_linux_collect_core_fpregset): Likewise.
3131 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3132 (sparc_gregmap, sparc_fpregmap): ... these.
3133 (sparc_supply_gregset, sparc_collect_gregset)
3134 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3135 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3136 (_initialize_sparc_nat): Rename regmaps.
3137 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3138 (sparc_gregmap, sparc_fpregmap): ... these.
3139 (sparc_supply_gregset, sparc_collect_gregset)
3140 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3141 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3142 Rename macros to...
3143 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3144 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3145 Likewise.
3146 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3147 Rename to...
3148 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3149 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3150 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3151 regmaps.
3152 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3153 (sparc32_bsd_fpregset): Rename to...
3154 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3155 (sparc32_bsd_fpregmap): ... these.
3156 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3157 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3158 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3159 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3160 (struct sparc_gregmap, struct sparc_fpregmap)
3161 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3162 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3163 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3164 (sparc32_supply_regset, sparc32_collect_gregset)
3165 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3166 prototypes.
3167 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3168 (sparc64_linux_ptrace_gregmap): ... this.
3169 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3170 (_initialize_sparc64_linux_nat): Rename regmaps.
3171 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3172 (sparc64_linux_core_gregmap): ... this.
3173 (sparc64_linux_supply_core_gregset)
3174 (sparc64_linux_collect_core_gregset)
3175 (sparc64_linux_supply_core_fpregset)
3176 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3177 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3178 (sparc64_sol2_fpregset): Rename to...
3179 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3180 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3181 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3182 regmaps.
3183 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3184 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3185 (sparc64_bsd_fpregset): Rename to...
3186 (struct sparc_gregmap, sparc64_sol2_gregmap)
3187 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3188 (sparc64_bsd_fpregmap): ... these.
3189 (sparc64_supply_gregset, sparc64_collect_gregset)
3190 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3191 prototypes.
3192 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3193 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3194 (sparc64fbsd_gregmap): ... this.
3195 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3196 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3197 Rename regmaps.
3198 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3199 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3200 (sparc64nbsd_collect_fpregset): Likewise.
3201 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3202 (sparc64nbsd_gregmap): ... this.
3203 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3204 regmaps.
3205 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3206 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3207 (sparc64obsd_gregmap): ... this.
3208 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3209 regmaps.
3210 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3211 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3212 (sparc32nbsd_gregmap): ... this.
3213 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3214 regmaps.
3215
8fea3224
AA
32162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3217
3218 * score-tdep.c (score7_linux_gregset): New static regset
3219 structure.
3220 (score7_linux_regset_from_core_section): Remove dynamic regset
3221 allocation.
3222 (score_gdbarch_init): Drop allocation of tdep structure.
3223 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3224
24534243
AA
32252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3226
3227 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3228 regset structures.
3229 (am33_regset_from_core_section): Remove dynamic regset
3230 allocations.
3231
b7195f27
AA
32322014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3233
3234 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3235 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3236 structures.
3237 (mips_linux_regset_from_core_section): Remove dynamic regset
3238 allocations.
3239 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3240 'gregset64', 'fpregset', and 'fpregset64'.
3241 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3242 deleted tdep fields.
3243
ecc37a5a
AA
32442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3245
3246 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3247 regset structures.
3248 (amd64_regset_from_core_section): Remove dynamic regset
3249 allocations.
3250 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3251 structure.
3252 (amd64obsd_regset_from_core_section): Remove dynamic regset
3253 allocation.
3254 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3255 Likewise.
3256 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3257 x86-common regset supply function.
3258 * i386-tdep.c (i386_collect_gregset): Make static.
3259 (i386_gregset): New global regset structure.
3260 (i386_fpregset, i386_xstateregset): New static regset structures.
3261 (i386_regset_from_core_section): Remove dynamic regset
3262 allocations.
3263 (i386_gdbarch_init): Remove initialization of tdep fields
3264 'gregset', 'fpregset', and 'xstateregset'.
3265 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3266 'fpregset', and 'xstateregset'.
3267 (i386_collect_gregset): Remove prototype.
3268 (i386_gregset): New declaration.
3269 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3270 structure.
3271 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3272 allocation.
3273
b7611c43
AA
32742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3275
3276 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3277 (arm_linux_vfpregset): New static regset structures.
3278 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3279 regset structures.
3280 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3281 and 'vfpregset' fields.
3282
a069a2bd
AA
32832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3284
3285 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3286 (aarch64_linux_fpregset): New static regset structures.
3287 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3288 of regset structures.
3289 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3290 'fpregset' fields.
3291
09424cff
AA
32922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3293
3294 * regset.h (struct regset): Remove gdbarch field.
3295 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3296 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3297 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3298 Likewise.
3299 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3300 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3301 (ppc32_linux_vsxregset): Likewise.
3302 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3303 via the regcache instead of the regset.
3304 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3305 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3306 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3307 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3308 Likewise.
3309
3ca7dae4
AA
33102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3311
3312 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3313 Constify structures.
3314 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3315 (alphanbsd_aout_gregset): Likewise.
3316 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3317 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3318 Likewise.
3319 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3320 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3321 Likewise.
3322 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3323 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3324 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3325 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3326 * m88k-tdep.c (m88k_gregset): Likewise.
3327 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3328 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3329 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3330 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3331 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3332 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3333 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3334 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3335 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3336 Likewise.
3337 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3338 * sh-tdep.h (sh_corefile_gregset): Likewise.
3339 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3340 * vax-tdep.c (vax_gregset): Likewise.
3341
5876f503
JK
33422014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3343
3344 Fix TLS access for -static -pthread.
3345 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3346 (try_thread_db_load_1): Initialize it.
3347 (thread_db_get_thread_local_address): Call it if LM is zero.
3348 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3349 * target.h (struct target_ops) (to_get_thread_local_address): Add
3350 load_module_addr comment.
3351
0256a6ac
PA
33522014-05-21 Pedro Alves <palves@redhat.com>
3353
3354 * dcache.c (dcache_read_memory_partial): If reading the cache line
3355 fails, fallback to reading just the memory the caller wanted.
3356
227533ac
DE
33572014-05-20 Doug Evans <dje@google.com>
3358
3359 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3360 instead of get_current_arch.
3361
936d2992
PA
33622014-05-20 Pedro Alves <palves@redhat.com>
3363
3364 * NEWS: Mention that compare-sections now works with all targets.
3365
3366 * remote.c (PACKET_qCRC): New enum value.
3367 (remote_verify_memory): Don't send qCRC if the target has no
3368 execution. Use packet_support/packet_ok. If the target doesn't
3369 support the qCRC packet, fallback to a deep memory copy.
3370 (compare_sections_command): Say "target image" instead of "remote
3371 executable".
3372 (_initialize_remote): Add PACKET_qCRC to the list of config
3373 packets that have no associated command. Extend comment.
3374 * target.c (simple_verify_memory, default_verify_memory): New
3375 function.
3376 * target.h (struct target_ops) <to_verify_memory>: Default to
3377 default_verify_memory.
3378 (simple_verify_memory): New declaration.
3379 * target-delegates.c: Regenerate.
3380
e59fa00f
MM
33812014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3382
3383 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3384
f2205de0
HZ
33852014-05-20 Hui Zhu <hui@codesourcery.com>
3386 Yao Qi <yao@codesourcery.com>
3387
3388 PR backtrace/16558
3389 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3390 and change address of sp and pc.
3391
c4e54771
TT
33922014-05-19 Tom Tromey <tromey@redhat.com>
3393
3394 * gdbtypes.c (rank_function): Use XNEWVEC.
3395 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3396
73051182
DE
33972014-05-19 Doug Evans <dje@google.com>
3398
3399 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3400 build_type_unit_groups and moved closer to only caller. Remove
3401 arguments. All references updated. Remove outdated .gdb_index
3402 comment.
3403 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3404 build_type_psymtabs_1.
3405
8832e7e3
DE
34062014-05-19 Doug Evans <dje@google.com>
3407
3408 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3409 n_type_unit_groups, all_type_unit_groups. All uses removed.
3410 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3411 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3412 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3413 (add_type_unit_group_to_table): Delete.
3414
cd8ae15e
DE
34152014-05-19 Doug Evans <dje@google.com>
3416
3417 * eval.c (evaluate_subexp_standard): Add some comments.
3418
08f4850b
DE
34192014-05-17 Doug Evans <xdje42@gmail.com>
3420
3421 * progspace.c (remove_program_space): Delete, unused.
3422 * progspace.h (remove_program_space): Ditto.
3423
bed8455c
DE
34242014-05-17 Doug Evans <xdje42@gmail.com>
3425
3426 * inferior.c (prune_inferiors): Fix comment.
3427 (remove_inferior_command): Call prune_program_spaces.
3428
8d551b02
DE
34292014-05-16 Doug Evans <dje@google.com>
3430
3431 New command line option -D.
3432 * NEWS: Mention it.
3433 * main.c (set_gdb_data_directory): New function.
3434 (captured_main): Recognize -D. Flag error for --data-directory "".
3435 Call set_gdb_data_directory.
3436 (print_gdb_help): Print --data-directory, -D.
3437 * main.h (set_gdb_data_directory): Declare.
3438 * top.c (staged_gdb_datadir): New static global.
3439 (set_gdb_datadir): Call set_gdb_data_directory
3440 (show_gdb_datadir): New function.
3441 (init_main): Update init of data-directory parameter.
3442
18848e28
GF
34432014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3444
3445 Import the "dirfd" gnulib module.
3446 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3447 * gnulib/aclocal.m4: Update.
3448 * gnulib/config.in: Update.
3449 * gnulib/configure: Update.
3450 * gnulib/import/Makefile.am: Update.
3451 * gnulib/import/Makefile.in: Update.
3452 * gnulib/import/dirfd.c: New.
3453 * gnulib/import/m4/dirfd.m4: New.
3454 * gnulib/import/m4/gnulib-cache.m4: Update.
3455 * gnulib/import/m4/gnulib-comp.m4: Update.
3456
95c64f92
YQ
34572014-05-16 Pierre Muller <muller@sourceware.org>
3458 Yao Qi <yao@codesourcery.com>
3459
3460 * valprint.c (print_wchar): Move the code on checking whether
3461 W is a printable wide char to the default branch of switch
3462 statement below. Call wchar_printable instead of gdb_iswprint.
3463
cac395ea
TM
34642014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3465
19679eca 3466 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
3467 ldr.w and ldrd instructions.
3468
83655187
DE
34692014-05-15 Doug Evans <dje@google.com>
3470
3471 * dwarf2read.c (read_structure_type): Delete outdated comments.
3472
dd756689
TT
34732014-05-14 Tom Tromey <tromey@redhat.com>
3474
3475 * macrocmd.c (print_macro_definition): Reindent.
3476
75ddda77
DE
34772014-05-13 Doug Evans <xdje42@gmail.com>
3478
3479 * python/py-cmd.c (cmdpy_completer): Add comment.
3480 (completers): Make const.
3481
b0f16a3e
SM
34822014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3483
3484 * infrun.c (resume): Remove should_resume (unused). Move up
3485 declaration of resume_ptid.
3486
033c3379
TT
34872014-05-13 Tom Tromey <tromey@redhat.com>
3488
3489 * language.h (unop_type_check): Remove.
3490 (binop_type_check): Don't declare.
3491
9b44a3a5
AA
34922014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3493
3494 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3495 call to regcache_raw_collect.
3496
303a33fa
SM
34972014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3498
3499 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3500 mi_console->quote as the quoting character.
3501
196100a0
SM
35022014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3503
3504 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3505
f989a1c8
TT
35062014-04-29 Tom Tromey <tromey@redhat.com>
3507
3508 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3509 "show debug varobj".
3510
9404b58f
KM
35112014-05-07 Kyle McMartin <kyle@redhat.com>
3512
3513 Pushed by Joel Brobecker <brobecker@adacore.com>.
3514 * aarch64-tdep.c (aarch64_software_single_step): New function.
3515 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3516 with aarch64_software_single_step.
3517
5e49ba57
JB
35182014-05-05 Joel Brobecker <brobecker@adacore.com>
3519
3520 GDB 7.7.1 released.
3521
c888a17d
KS
35222014-05-05 Keith Seitz <keiths@redhat.com>
3523
3524 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3525 variable or history value is successfully parsed.
3526
290a839c
YQ
35272014-05-05 Yao Qi <yao@codesourcery.com>
3528 Pedro Alves <palves@redhat.com>
3529
3530 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3531 address of blocks that intersects the requested range. Trim
3532 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3533 sections.
3534 * ctf.c (ctf_xfer_partial): Likewise.
3535
91256dc2
YQ
35362014-05-05 Yao Qi <yao@codesourcery.com>
3537
3538 * printcmd.c (display_command): Remove the check to
3539 target_has_execution.
3540
07284463
MK
35412014-05-03 Mark Kettenis <kettenis@gnu.org>
3542
3543 * ppcobsd-nat.c: Include "obsd-nat.h".
3544 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3545 add_target.
3546 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3547
30a1e6cc
SDJ
35482014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3549
3550 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3551 and 16-bit signed and unsigned arguments. Update comment.
3552 (stap_parse_probe_arguments): Extend code to handle such
3553 arguments. Use warning instead of complaint to notify about
3554 unrecognized bitness.
3555
f33da99a
SDJ
35562014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3557
3558 PR breakpoints/16889
3559 * stap-probe.c (stap_parse_probe_arguments): Simplify
3560 check for non-prefixed probes (i.e., probes whose
3561 arguments do not start with "N@"). Always set the
3562 argument type to a sane value.
3563
95cf3b38
DT
35642014-05-01 David Taylor <dtaylor@emc.com>
3565
3566 * remote.c (compare_sections_command): Add -r option to compare
3567 all loadable read-only sections.
3568
1cfdf534
SC
35692014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3570
3571 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3572 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3573 Update all callers.
3574 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3575 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3576 Remove unused CORE_ADDR argument. Update all callers.
3577
ca4f7f8b
PA
35782014-04-29 Pedro Alves <palves@redhat.com>
3579
3580 * remote.c (struct packet_config) <detect>: Extend comment.
3581 (add_packet_config_cmd): Don't set the config's detect or support
3582 fields here.
3583 (init_all_packet_configs): Also initialize the config's 'detect'
3584 field.
3585 (reset_all_packet_configs_support): New function.
3586 (remote_open_1): Call reset_all_packet_configs_support instead of
3587 init_all_packet_configs.
3588 (_initialize_remote): Initialize all packet configs. Assert that
3589 all packets have an associated command, except a few known
3590 outliers.
3591
11c1ba78
JB
35922014-04-28 Joel Brobecker <brobecker@adacore.com>
3593
3594 * dwarf2read.c (read_subrange_type): Handle dynamic
3595 DW_AT_lower_bound attributes.
3596
8739bc53
JB
35972014-04-28 Joel Brobecker <brobecker@adacore.com>
3598
3599 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3600 dynamic bounds before computing its upper bound.
3601 (ada_discrete_type_low_bound): Same as above with the lower bound.
3602
6f8a3220
JB
36032014-04-28 Joel Brobecker <brobecker@adacore.com>
3604
3605 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3606 range types. Adjust the array handling implementation to
3607 take advantage of this change.
3608 (resolve_dynamic_range): New function, mostly extracted from
3609 resolve_dynamic_bounds.
3610 (resolve_dynamic_array): New function, mostly extracted from
3611 resolve_dynamic_bounds.
3612 (resolve_dynamic_bounds): Delete.
3613 (resolve_dynamic_type): Reimplement. Add handling of
3614 TYPE_CODE_RANGE types.
3615
4d072ce4
JB
36162014-04-28 Joel Brobecker <brobecker@adacore.com>
3617
3618 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3619 handling of parallel ___XA types.
3620
52865325
JB
36212014-04-28 Joel Brobecker <brobecker@adacore.com>
3622
3623 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3624 unnecessary second call to static_unwrap_type.
3625
433e77fa
HZ
36262014-04-27 Hui Zhu <hui@codesourcery.com>
3627
3628 * stack.c (print_frame_info): Call do_gdb_disassembly with
3629 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3630
b51a69ee
DE
36312014-04-26 Doug Evans <xdje42@gmail.com>
3632
3633 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3634
7ae1a6a6
PA
36352014-04-25 Pedro Alves <palves@redhat.com>
3636
3637 PR server/16255
3638 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3639 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3640 and newline from built string.
3641 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3642 (linux_ptrace_attach_fail_reason): ... this.
3643 * linux-nat.c (linux_nat_attach): Adjust to use
3644 linux_ptrace_attach_fail_reason.
3645
4082afcc
PA
36462014-04-25 Pedro Alves <palves@redhat.com>
3647
3648 * remote.c (struct remote_state): Remove multi_process_aware,
3649 non_stop_aware, cond_tracepoints, cond_breakpoints,
3650 breakpoint_commands, fast_tracepoints, static_tracepoints,
3651 install_in_trace, disconnected_tracing,
3652 enable_disable_tracepoints, string_tracing, and
3653 augmented_libraries_svr4_read fields.
3654 (remote_multi_process_p): Move further below in the file.
3655 (struct packet_config): Add comments.
3656 (update_packet_config): Delete function.
3657 (show_packet_config_cmd): Use packet_config_support.
3658 (add_packet_config_cmd): Use NULL as set callback.
3659 (packet_ok): "set remote foo-packet"-style commands no longer
3660 change config->supported -- adjust.
3661 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3662 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3663 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3664 (PACKET_QNonStop, PACKET_multiprocess_feature)
3665 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3666 (PACKET_DisconnectedTracing_feature)
3667 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3668 (set_remote_protocol_packet_cmd): Delete function.
3669 (packet_config_support, packet_support): New functions.
3670 (set_remote_protocol_Z_packet_cmd): Don't call
3671 update_packet_config.
3672 (remote_query_attached, remote_pass_signals)
3673 (remote_program_signals, remote_threads_info)
3674 (remote_threads_extra_info, remote_start_remote): Use
3675 packet_support.
3676 (remote_start_remote): Use packet_config_support and
3677 packet_support.
3678 (init_all_packet_configs): Set all packets to unknown support,
3679 instead of calling update_packet_config.
3680 (remote_check_symbols): Use packet_support.
3681 (remote_supported_packet): Unconditionally set the packet config's
3682 support status.
3683 (remote_multi_process_feature, remote_non_stop_feature)
3684 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3685 (remote_breakpoint_commands_feature)
3686 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3687 (remote_install_in_trace_feature)
3688 (remote_disconnected_tracing_feature)
3689 (remote_enable_disable_tracepoint_feature)
3690 (remote_string_tracing_feature)
3691 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3692 (remote_protocol_features): Adjust to use remote_supported_packet
3693 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3694 "ConditionalTracepoints", "ConditionalBreakpoints",
3695 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3696 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3697 "EnableDisableTracepoints", and "tracenz".
3698 (remote_query_supported): Use packet_support.
3699 (remote_open_1): Adjust.
3700 (extended_remote_attach_1): Use packet_support. Switch on the
3701 result of packet_ok instead of checking whether the packet ended
3702 up disabled.
3703 (remote_vcont_resume): Use packet_support.
3704 (remote_resume, remote_stop_ns, fetch_register_using_p)
3705 (remote_prepare_to_store, store_register_using_P)
3706 (check_binary_download, remote_write_bytes): Use packet_support.
3707 (remote_vkill): Use packet_support. Switch on the result of
3708 packet_ok instead of checking whether the packet ended up
3709 disabled.
3710 (extended_remote_supports_disable_randomization): Use
3711 packet_support.
3712 (extended_remote_run): Switch on the result of packet_ok instead
3713 of checking whether the packet ended up disabled.
3714 (remote_insert_breakpoint, remote_remove_breakpoint)
3715 (remote_insert_watchpoint, remote_remove_watchpoint)
3716 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3717 packet_support.
3718 (remote_search_memory): Use packet_config_support.
3719 (remote_get_thread_local_address, remote_get_tib_address)
3720 (remote_hostio_send_command, remote_can_execute_reverse): Use
3721 packet_support.
3722 (remote_supports_cond_tracepoints)
3723 (remote_supports_cond_breakpoints)
3724 (remote_supports_fast_tracepoints)
3725 (remote_supports_static_tracepoints)
3726 (remote_supports_install_in_trace)
3727 (remote_supports_enable_disable_tracepoint)
3728 (remote_supports_string_tracing)
3729 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3730 the packet config says the feature is enabled or disabled.
3731 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3732 (remote_get_trace_status): Use packet_support.
3733 (remote_set_disconnected_tracing): Adjust to check whether the
3734 feature is enabled with packet_support.
3735 (remote_set_trace_buffer_size, remote_use_agent)
3736 (remote_can_use_agent, remote_supports_btrace): Use
3737 packet_support.
3738 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3739 Use packet_config_support.
3740 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3741 the packet config says the feature is enabled or disabled.
3742 (set_range_stepping): Use packet_support.
3743
bdb52a22
TT
37442014-04-25 Tom Tromey <tromey@redhat.com>
3745
3746 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3747 argument.
3748
e9475ead
SA
37492014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3750
3751 * NEWS: Mention support for C99 variable length arrays.
3752
82eacd52
JB
37532014-04-24 Joel Brobecker <brobecker@adacore.com>
3754
3755 * ada-lang.c (standard_exc): Expand introductory comment.
3756
01f9f808
MS
37572014-04-24 Michael Sturm <michael.sturm@mintel.com>
3758 Walfred Tedeschi <walfred.tedeschi@intel.com>
3759
3760 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3761 AVX512 registers.
3762 (amd64_linux_read_description): Add code to handle AVX512 xstate
3763 mask and return respective tdesc.
3764 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3765 and features/i386/x32-avx512-linux.c.
3766 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3767 (amd64_linux_core_read_description): Add code to handle AVX512
3768 xstate mask and return respective tdesc.
3769 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3770 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3771 calculation.
3772 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3773 (tdesc_amd64_avx512_linux): New prototype.
3774 (tdesc_x32_avx512_linux): Likewise.
3775 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3776 features/i386/x32-avx512.c.
3777 (amd64_ymm_avx512_names): New register names for pseudo
3778 registers YMM16-31.
3779 (amd64_ymmh_avx512_names): New register names for raw registers
3780 YMMH16-31.
3781 (amd64_k_names): New register names for K registers.
3782 (amd64_zmmh_names): New register names for ZMM raw registers.
3783 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3784 (amd64_xmm_avx512_names): New register names for XMM16-31
3785 registers.
3786 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3787 registers.
3788 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3789 if feature is present.
3790 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3791 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3792 (AMD64_NUM_REGS): Adjust to new number of registers.
3793 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3794 registers supplied via XSTATE by AVX512 registers.
3795 (i386_linux_read_description): Add case for AVX512.
3796 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3797 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3798 (i386_linux_core_read_description): Add case for AVX512.
3799 (i386_linux_init_abi): Install supported register note section
3800 for AVX512.
3801 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3802 AVX512.
3803 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3804 registers to be number of zmm7h + 1.
3805 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3806 * i386-tdep.c: Include features/i386/i386-avx512.c.
3807 (i386_zmm_names): Add ZMM pseudo register names array.
3808 (i386_zmmh_names): Add ZMM raw register names array.
3809 (i386_k_names): Add K raw register names array.
3810 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3811 registers. AVX512 has 16 more ZMM registers than there are YMM
3812 registers.
3813 (i386_zmmh_regnum_p): Add function to look up register number of
3814 ZMM raw registers.
3815 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3816 (i386_k_regnum_p): Likewise for K raw registers.
3817 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3818 registers added by AVX512.
3819 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3820 registers added by AVX512.
3821 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3822 added by AVX512.
3823 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3824 (i386_pseudo_register_name): Add ZMM pseudo registers.
3825 (i386_zmm_type): Construct and return vector registers type for ZMM
3826 registers.
3827 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3828 ZMM0-31 pseudo registers and K registers.
3829 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3830 and YMM16-31 registers from register cache.
3831 (i386_pseudo_register_write): Add code to write K, ZMM and
3832 YMM16-31 registers.
3833 (i386_register_reggroup_p): Add code to include/exclude AVX512
3834 registers in/from respective register groups.
3835 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3836 registers if feature is present in xcr0.
3837 (i386_gdbarch_init): Add code to initialize AVX512 feature
3838 variables in tdep structure, wire in pseudo registers and call
3839 initialize_tdesc_i386_avx512.
3840 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3841 variables.
3842 (i386_regnum): Add AVX512 registers.
3843 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3844 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3845 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3846 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3847 512 bits wide.
3848 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3849 (i386_ymm_avx512_regnum_p): Likewise.
3850 (i386_k_regnum_p): Likewise.
3851 (i386_zmm_regnum_p): Likewise.
3852 (i386_zmmh_regnum_p): Likewise.
3853 * i387-tdep.c : Update year in copyright notice.
3854 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3855 XSAVE buffer.
3856 (XSAVE_YMM_AVX512_ADDR): New macro.
3857 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3858 XSAVE buffer.
3859 (XSAVE_XMM_AVX512_ADDR): New macro.
3860 (xsave_avx512_k_offset): New table for K register offsets in
3861 XSAVE buffer.
3862 (XSAVE_AVX512_K_ADDR): New macro.
3863 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3864 in XSAVE buffer.
3865 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3866 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3867 buffer.
3868 (i387_collect_xsave): Add code to collect AVX512 registers from
3869 XSAVE buffer.
3870 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3871 of XMM16-31 registers.
3872 (I387_NUM_K_REGS): New define for number of K registers.
3873 (I387_K0_REGNUM): New define for K0 register number.
3874 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3875 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3876 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3877 registers.
3878 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3879 (I387_XMM16_REGNUM): New define for XMM16 register number.
3880 (I387_YMM0_REGNUM): New define for YMM0 register number.
3881 (I387_KEND_REGNUM): New define for last K register number.
3882 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3883 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3884 number.
3885 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3886 number.
3887 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3888 size.
3889 * features/Makefile: Add AVX512 related files.
3890 * features/i386/32bit-avx512.xml: New file.
3891 * features/i386/64bit-avx512.xml: Likewise.
3892 * features/i386/amd64-avx512-linux.c: Likewise.
3893 * features/i386/amd64-avx512-linux.xml: Likewise.
3894 * features/i386/amd64-avx512.c: Likewise.
3895 * features/i386/amd64-avx512.xml: Likewise.
3896 * features/i386/i386-avx512-linux.c: Likewise.
3897 * features/i386/i386-avx512-linux.xml: Likewise.
3898 * features/i386/i386-avx512.c: Likewise.
3899 * features/i386/i386-avx512.xml: Likewise.
3900 * features/i386/x32-avx512-linux.c: Likewise.
3901 * features/i386/x32-avx512-linux.xml: Likewise.
3902 * features/i386/x32-avx512.c: Likewise.
3903 * features/i386/x32-avx512.xml: Likewise.
3904 * regformats/i386/amd64-avx512-linux.dat: New file.
3905 * regformats/i386/amd64-avx512.dat: Likewise.
3906 * regformats/i386/i386-avx512-linux.dat: Likewise.
3907 * regformats/i386/i386-avx512.dat: Likewise.
3908 * regformats/i386/x32-avx512-linux.dat: Likewise.
3909 * regformats/i386/x32-avx512.dat: Likewise.
3910 * NEWS: Add note about new support for AVX512.
3911
3912
08351840
PA
39132014-04-23 Pedro Alves <palves@redhat.com>
3914
3915 * breakpoint.c (insert_bp_location): Tolerate errors if the
3916 breakpoint is set in a user-loaded objfile.
3917 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3918 location is marked shlib_disabled. If the breakpoint is set in a
3919 user-loaded objfile is a GDB-side memory breakpoint, validate it
3920 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3921 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3922 flag.
3923 * mem-break.c (memory_validate_breakpoint): New function.
3924 * objfiles.c (userloaded_objfile_contains_address_p): New
3925 function.
3926 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3927 * target.h (memory_validate_breakpoint): New declaration.
3928
076855f9
PA
39292014-04-23 Pedro Alves <palves@redhat.com>
3930
3931 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3932 the breakpoint is set in a shared library, only suppress
3933 errors for software breakpoints, not hardware breakpoints.
3934
483805cf
PA
39352014-04-22 Pedro Alves <palves@redhat.com>
3936
3937 * infrun.c (schedlock_applies): New function, factored out from
3938 find_thread_needs_step_over.
3939 (find_thread_needs_step_over): Use it.
3940 (switch_back_to_stepped_thread): Always clear trap_expected if the
3941 step over is finished. Return early if scheduler locking applies.
3942 Look for the stepping thread and a potential step-over thread with
3943 a single loop.
3944 (currently_stepping_or_nexting_callback): Delete.
3945
a75fef0e
NC
39462014-04-22 Nick Clifton <nickc@redhat.com>
3947
3948 * NEWS: Mention that ARM sim now supports tracing.
3949
48b6e87e
YQ
39502014-04-22 Yao Qi <yao@codesourcery.com>
3951
3952 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3953 to ...
3954 * tracefile.c (tracefile_fetch_registers): ... it. New
3955 function.
3956 * tracefile.h (tracefile_fetch_registers): Declare.
3957 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3958 tracefile_fetch_registers.
3959
17617f2d
EZ
39602014-04-19 Eli Zaretskii <eliz@gnu.org>
3961
3962 PR gdb/14018
3963 * windows-nat.c (thread_rec): Don't display a warning when
3964 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3965 fails for any reason, set th->suspended to -1, so that we don't
3966 try to resume such a thread. Also, don't return NULL in these
3967 cases, to avoid completely ruin the session due to "PC register is
3968 not available" error.
3969 (do_windows_fetch_inferior_registers): Check errors in
3970 GetThreadContext call.
3971 (windows_continue): Accept an additional argument KILLED; if not
3972 zero, ignore errors in the SetThreadContext call, since the
3973 inferior was killed and is shutting down.
3974 (windows_resume, get_windows_debug_event)
3975 (windows_create_inferior, windows_mourn_inferior)
3976 (windows_kill_inferior): All callers of windows_continue changed
3977 to adjust to its new calling sequence.
3978
5723a6fd
YQ
39792014-04-19 Yao Qi <yao@codesourcery.com>
3980
3981 * ctf.c (ctf_open): Call post_create_inferior.
3982
614d5099
YQ
39832014-04-19 Yao Qi <yao@codesourcery.com>
3984
3985 * ctf.c (handle_id): New static variable.
3986 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3987 value. Get the declaration of event "register" and get length
3988 of field "contents".
3989
dac3e710
YQ
39902014-04-19 Yao Qi <yao@codesourcery.com>
3991
3992 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3993
2bca57ba
SC
39942014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3995
3996 * valops.c (oload_method_static): Remove unnecessary argument
3997 METHOD. Update all callers.
3998
51d48146
PA
39992014-04-18 Pedro alves <palves@redhat.com>
4000 Tom Tromey <tromey@redhat.com>
4001
4002 PR backtrace/15558
4003 * frame.c (get_prev_frame_1): Rename to ...
4004 (get_prev_frame_always): ... this, and make extern. Adjust.
4005 (skip_artificial_frames): Use get_prev_frame_always.
4006 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4007 (get_frame_unwind_stop_reason): Adjust to rename.
4008 * frame.h (get_prev_frame_always): Declare.
4009 * inline-frame.c: Include frame.h.
4010 (inline_frame_this_id): Use get_prev_frame_always.
4011
1bdad2e0
TG
40122014-04-18 Tristan Gingold <gingold@adacore.com>
4013
4014 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4015 code by using bfd_mach_o_get_base_address.
4016
7ce16bd4
UW
40172014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4018
4019 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4020 (spu_ax_pseudo_register_collect): New function.
4021 (spu_ax_pseudo_register_push_stack): Likewise.
4022 (spu_dwarf_reg_to_regnum): Likewise.
4023 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4024
2ed3c037
UW
40252014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4026
4027 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4028 Replace FRAME argument with FRAME_ID.
4029 * gdbarch.c, gdbarch.h: Regenerate.
4030 * findvar.c (default_value_from_register): Add GDBARCH argument;
4031 replace FRAME by FRAME_ID. No longer call get_frame_id.
4032 (value_from_register): Update call to gdbarch_value_from_register.
4033 * value.h (default_value_from_register): Update prototype.
4034 * s390-linux-tdep.c (s390_value_from_register): Update interface
4035 and call to default_value_from_register.
4036 * spu-tdep.c (spu_value_from_register): Likewise.
4037
4038 * findvar.c (address_from_register): Remove TYPE argument.
4039 Do not call value_from_register; use gdbarch_value_from_register
4040 with null_frame_id instead.
4041 * value.h (address_from_register): Update prototype.
4042 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4043 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4044 address_from_register interface change.
4045
71e50e83
YQ
40462014-04-17 Yao Qi <yao@codesourcery.com>
4047
4048 * gdbtypes.h: Update comments to link to types and macros'
4049 definitions.
4050
7a23c549
SC
40512014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4052
4053 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4054
22869d73
KS
40552014-04-16 Keith Seitz <keiths@redhat.com>
4056
4057 PR gdb/15827
4058 * dwarf2read.c (skip_one_die): Check that all relative-offset
4059 sibling DIEs fall within range of the current reader's buffer.
4060 (read_partial_die): Likewise.
4061
c4f87ca6
KS
40622014-04-16 Keith Seitz <keiths@redhat.com>
4063
4064 PR c++/16597
4065 * cp-namespace.c (lookup_symbol_file): If the type name of
4066 `this' is NULL, return immediately.
4067
b50c8614
KS
40682014-04-14 Keith Seitz <keiths@redhat.com>
4069
4070 PR c++/16253
4071 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4072 from symbol_matches_domain in symtab.c. All local callers
4073 of symbol_matches_domain updated.
4074 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4075 search STRUCT_DOMAIN.
4076 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4077 independently. standard_lookup will do that automatically.
4078 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4079 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4080 (cp_lookup_symbol_in_namespace): Likewise.
4081 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4082 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4083 may return a STRUCT_DOMAIN match.
4084 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4085 * cp-support.c: Include language.h.
4086 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4087 VAR_DOMAIN.
4088 * psymtab.c (match_partial_symbol): Compare the requested
4089 domain with the symbol's domain directly.
4090 (lookup_partial_symbol): Likewise.
4091 * symtab.c (lookup_symbol_in_language): Explain when/why
4092 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4093 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4094 appropriate languages.
4095 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4096 and moved to ada-lang.c
4097 (lookup_block_symbol): Explain that this function only returns
4098 symbol matching the requested DOMAIN.
4099 Compare the requested domain with the symbol's domain directly.
4100 (iterate_over_symbols): Compare the requested domain with the
4101 symbol's domain directly.
4102 * symtab.h (symbol_matches_domain): Remove.
4103
3d567982
TT
41042014-04-14 Tom Tromey <tromey@redhat.com>
4105
4106 PR c++/15246:
4107 * c-exp.y (type_aggregate_p): New function.
4108 (qualified_name, classify_inner_name): Use it.
4109 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4110 and TYPE_TARGET_TYPE of an enum type.
4111 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4112 an enum type.
4113 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4114 handle TYPE_DECLARED_CLASS.
4115 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4116 types.
4117 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4118 * valops.c (enum_constant_from_type): New function.
4119 (value_aggregate_elt): Use it.
4120 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4121 TYPE_CODE_ENUM.
4122
c848d642
TT
41232014-04-14 Tom Tromey <tromey@redhat.com>
4124
4125 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4126 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4127 const.
4128 * value.h (value_aggregate_elt): Update.
4129
0626fc76
TT
41302014-04-14 Tom Tromey <tromey@redhat.com>
4131
4132 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4133
5ecaaa66
SA
41342014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4135
4136 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4137 (evaluate_subexp_standard): Pass noside argument.
4138 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4139 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4140 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4141 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4142 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4143
1612e0c0
SA
41442014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4145
4146 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4147 points to a constant blob.
4148
c451ebe5
SA
41492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4150
4151 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4152 property and store it as the high bound and flag the range accordingly.
4153 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4154 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4155 * gdbtypes.h (enum range_flags): New enum.
4156 (struct range_bounds): Add flags member.
4157
1d42e4c4
SA
41582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4159
4160 * c-typeprint.c (c_type_print_varspec_suffix): Added
4161 check for not yet resolved high bound. If unresolved, print
4162 "variable length" string to the console instead of random
4163 length.
4164
9f1f738a
SA
41652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4166
4167 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4168 value.
4169 (ada_template_to_fixed_record_type_1): Likewise.
4170 (ada_to_fixed_type_1): Likewise.
4171 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4172 (cp_print_value): Likewise.
4173 * d-valprint.c (dynamic_array_type): Likewise.
4174 * findvar.c (address_of_variable): Likewise.
4175 * jv-valprint.c (java_value_print): Likewise.
4176 * valops.c (value_ind): Likewise.
4177 * value.c (coerce_ref): Likewise.
4178
3c8452d4
SA
41792014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4180
4181 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4182 value and retrieve the dynamic type size.
4183
4ad88275
SA
41842014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4185
4186 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4187 passed to sizeof is dynamic evaluate the argument to compute the length.
4188
80180f79
SA
41892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4190 Joel Brobecker <brobecker@adacore.com>
4191
4192 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4193 (dwarf2_evaluate_property): New function.
4194 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4195 * dwarf2read.c (attr_to_dynamic_prop): New function.
4196 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4197 attribute.
4198 * gdbtypes.c: Include dwarf2loc.h.
4199 (is_dynamic_type): New function.
4200 (resolve_dynamic_type): New function.
4201 (resolve_dynamic_bounds): New function.
4202 (get_type_length): New function.
4203 (check_typedef): Use get_type_length to compute type length.
4204 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4205 (TYPE_LOW_BOUND_KIND): New macro.
4206 (is_dynamic_type): New function prototype.
4207 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4208 to resolve dynamic properties of the type. Update comment.
4209 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4210
a1556843
RH
42112014-04-14 Richard Henderson <rth@redhat.com>
4212
4213 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4214
0be03e84
DE
42152014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4216 Doug Evans <xdje42@gmail.com>
4217
4218 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4219 dereference TYPE_CODE_REF values.
4220
6b662e19
JB
42212014-04-11 Joel Brobecker <brobecker@adacore.com>
4222
4223 Revert the following changes due to regressions:
4224
4225 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4226 (dwarf2_evaluate_property): New function.
4227 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4228 * dwarf2read.c (attr_to_dynamic_prop): New function.
4229 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4230 attribute.
4231 * gdbtypes.c: Include dwarf2loc.h.
4232 (is_dynamic_type): New function.
4233 (resolve_dynamic_type): New function.
4234 (resolve_dynamic_bounds): New function.
4235 (get_type_length): New function.
4236 (check_typedef): Use get_type_length to compute type length.
4237 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4238 (TYPE_LOW_BOUND_KIND): New macro.
4239 (is_dynamic_type): New function prototype.
4240 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4241 to resolve dynamic properties of the type. Update comment.
4242 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4243
4244 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4245 passed to sizeof is dynamic evaluate the argument to compute the length.
4246
4247 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4248 value and retrieve the dynamic type size.
4249
4250 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4251 (ada_template_to_fixed_record_type_1): Likewise.
4252 (ada_to_fixed_type_1): Likewise.
4253 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4254 (cp_print_value): Likewise.
4255 * d-valprint.c (dynamic_array_type): Likewise.
4256 * eval.c (evaluate_subexp_with_coercion): Likewise.
4257 * findvar.c (address_of_variable): Likewise.
4258 * jv-valprint.c (java_value_print): Likewise.
4259 * valops.c (value_ind): Likewise.
4260 * value.c (coerce_ref): Likewise.
4261
4262 * c-typeprint.c (c_type_print_varspec_suffix): Added
4263 check for not yet resolved high bound. If unresolved, print
4264 "variable length" string to the console instead of random
4265 length.
4266
4267 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4268 property and store it as the high bound and flag the range accordingly.
4269 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4270 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4271 * gdbtypes.h (enum range_flags): New enum.
4272 (struct range_bounds): Add flags member.
4273
4274 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4275 points to a constant blob.
4276
4277 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4278 (evaluate_subexp_standard): Pass noside argument.
4279 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4280 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4281 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4282 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4283 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4284
245a5f0b
KS
42852014-04-11 Keith Seitz <keiths@redhat.com>
4286
4287 PR c++/16675
4288 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4289 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4290 reference types.
4291
3bce8237
SA
42922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4293
4294 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4295 (evaluate_subexp_standard): Pass noside argument.
4296 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4297 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4298 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4299 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4300 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4301
92b09522
SA
43022014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4303
4304 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4305 points to a constant blob.
4306
e1969afb
SA
43072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4308
4309 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4310 property and store it as the high bound and flag the range accordingly.
4311 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4312 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4313 * gdbtypes.h (enum range_flags): New enum.
4314 (struct range_bounds): Add flags member.
4315
b86138fb
SA
43162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4317
4318 * c-typeprint.c (c_type_print_varspec_suffix): Added
4319 check for not yet resolved high bound. If unresolved, print
4320 "variable length" string to the console instead of random
4321 length.
4322
bcd629a4
SA
43232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4324
4325 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4326 (ada_template_to_fixed_record_type_1): Likewise.
4327 (ada_to_fixed_type_1): Likewise.
4328 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4329 (cp_print_value): Likewise.
4330 * d-valprint.c (dynamic_array_type): Likewise.
4331 * eval.c (evaluate_subexp_with_coercion): Likewise.
4332 * findvar.c (address_of_variable): Likewise.
4333 * jv-valprint.c (java_value_print): Likewise.
4334 * valops.c (value_ind): Likewise.
4335 * value.c (coerce_ref): Likewise.
4336
04b19544
SA
43372014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4338
4339 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4340 value and retrieve the dynamic type size.
4341
26cb189f
SA
43422014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4343
4344 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4345 passed to sizeof is dynamic evaluate the argument to compute the length.
4346
37c1ab67
SA
43472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4348
4349 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4350 (dwarf2_evaluate_property): New function.
4351 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4352 * dwarf2read.c (attr_to_dynamic_prop): New function.
4353 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4354 attribute.
4355 * gdbtypes.c: Include dwarf2loc.h.
4356 (is_dynamic_type): New function.
4357 (resolve_dynamic_type): New function.
4358 (resolve_dynamic_bounds): New function.
4359 (get_type_length): New function.
4360 (check_typedef): Use get_type_length to compute type length.
4361 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4362 (TYPE_LOW_BOUND_KIND): New macro.
4363 (is_dynamic_type): New function prototype.
4364 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4365 to resolve dynamic properties of the type. Update comment.
4366 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4367
729efb13
SA
43682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4369
4370 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4371 declaring high/low bounds and change uses accordingly. Call
4372 create_range_type instead of create_static_range_type.
4373 * gdbtypes.c (create_range_type): New function.
4374 (create_range_type): Convert bounds into struct bound_prop and pass
4375 them to create_range_type.
4376 * gdbtypes.h (struct bound_prop): New struct.
4377 (create_range_type): New function prototype.
4378 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4379 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4380 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4381 part of the bound.
4382 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4383
0c9c3474
SA
43842014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4385
4386 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4387 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4388 * ada-lang.c: All uses of create_range_type updated.
4389 * coffread.c: All uses of create_range_type updated.
4390 * dwarf2read.c: All uses of create_range_type updated.
4391 * f-exp.y: All uses of create_range_type updated.
4392 * m2-valprint.c: All uses of create_range_type updated.
4393 * mdebugread.c: All uses of create_range_type updated.
4394 * stabsread.c: All uses of create_range_type updated.
4395 * valops.c: All uses of create_range_type updated.
4396 * valprint.c: All uses of create_range_type updated.
4397
9d497a19
PA
43982014-04-10 Pedro Alves <palves@redhat.com>
4399
4400 * breakpoint.c (single_step_breakpoints)
4401 (single_step_gdbarch): Move up in the file.
4402 (one_breakpoint_xfer_memory): New function, factored out from ...
4403 (breakpoint_xfer_memory): ... here. Also process single-step
4404 breakpoints.
4405
15a9128a
TG
44062014-04-09 Tristan Gingold <gingold@adacore.com>
4407
4408 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4409 comments.
4410 (darwin_decode_exception_message): Free port only after use.
4411
9c97a070
PL
44122014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4413
4414 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4415 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4416 when setting the size of call_length.
4417
7af389b8
SC
44182014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4419
4420 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4421 dereference TYPE_CODE_REF values.
4422
86ad98c3
JB
44232014-04-07 Joel Brobecker <brobecker@adacore.com>
4424
4425 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4426 end of warning message.
4427
b0aeadb3
DE
44282014-04-03 Doug Evans <dje@google.com>
4429
4430 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4431 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4432
5979d6b6
AM
44332014-04-02 Alan Modra <amodra@gmail.com>
4434
4435 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4436 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4437 (struct symbol_file_add_from_memory_args): Add size field.
4438 (find_vdso_size): New function.
4439 (add_vsyscall_page): Attempt to find vdso size.
4440
0d60c288
DE
44412014-04-01 Doug Evans <dje@google.com>
4442
4443 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4444
a41f2563
TG
44452014-04-01 Tristan Gingold <gingold@adacore.com>
4446
4447 * darwin-nat.c (darwin_encode_reply): Add prototype.
4448 (darwin_decode_exception_message): Reply to unknown inferiors.
4449 (darwin_decode_message): Handle message by id. Ignore message
4450 to unknown inferior.
4451 (darwin_wait): Discard unknown messages, add debug trace.
4452
11a865c8
DE
44532014-03-31 Doug Evans <dje@google.com>
4454
4455 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4456 comp_dir_string.
4457
770e7fc7
DE
44582014-03-31 Doug Evans <dje@google.com>
4459
4460 New option "set print symbol-loading".
4461 * NEWS: Mention it.
4462 * solib.c (solib_read_symbols): Only print symbol loading messages
4463 if requested.
4464 (solib_add): If symbol loading is in "brief" mode, notify user
4465 symbols are being loaded.
4466 (reload_shared_libraries_1): Ditto.
4467 * symfile.c (print_symbol_loading_off): New static global.
4468 (print_symbol_loading_brief): New static global.
4469 (print_symbol_loading_full): New static global.
4470 (print_symbol_loading_enums): New static global.
4471 (print_symbol_loading): New static global.
4472 (print_symbol_loading_p): New function.
4473 (symbol_file_add_with_addrs): Only print symbol loading messages
4474 if requested.
4475 (_initialize_symfile): Register "print symbol-loading" set/show
4476 command.
4477 * symfile.h (print_symbol_loading_p): Declare.
4478
c32c64b7
DE
44792014-03-30 Doug Evans <xdje42@gmail.com>
4480
4481 * infrun.c (set_last_target_status): New function.
4482 (handle_inferior_event): Call it.
4483
7c0bc051
DE
44842014-03-30 Doug Evans <xdje42@gmail.com>
4485
4486 * inferior.h (enum stop_kind): Improve comment.
4487
8776cfe9
JB
44882014-03-28 Joel Brobecker <brobecker@adacore.com>
4489
4490 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4491 a reference, strip the reference layer before calling
4492 the lang_ops value_has_mutated callback.
4493
410a0ff2
SDJ
44942014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4495
4496 Remove some globals from our parser.
4497 * language.c (unk_lang_parser): Add "struct parser_state"
4498 argument.
4499 * language.h (struct language_defn) <la_parser>: Likewise.
4500 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4501 (initialize_expout): Add "struct parser_state" argument.
4502 Rewrite function to use the parser state.
4503 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4504 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4505 write_exp_elt_longcst, write_exp_elt_dblcst,
4506 write_exp_elt_decfloatcst, write_exp_elt_type,
4507 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4508 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4509 write_dollar_variable): Likewise.
4510 (parse_exp_in_context_1): Use parser state.
4511 (insert_type_address_space): Add "struct parser_state" argument.
4512 Use parser state.
4513 (increase_expout_size): New function.
4514 * parser-defs.h: Forward declare "struct language_defn" and
4515 "struct parser_state".
4516 (expout, expout_size, expout_ptr): Remove extern declarations.
4517 (parse_gdbarch, parse_language): Rewrite macro declarations to
4518 accept the parser state.
4519 (struct parser_state): New struct.
4520 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4521 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4522 write_exp_elt_decfloatcst, write_exp_elt_type,
4523 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4524 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4525 write_exp_msymbol, write_dollar_variable,
4526 mark_struct_expression, insert_type_address_space): Add "struct
4527 parser_state" argument.
4528 (increase_expout_size): New function.
4529 * utils.c (do_clear_parser_state): New function.
4530 (make_cleanup_clear_parser_state): Likewise.
4531 * utils.h (make_cleanup_clear_parser_state): New function
4532 prototype.
4533 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4534 Update calls to write_exp* in order to pass the parser state.
4535 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4536 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4537 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4538 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4539 * stap-probe.c (stap_parse_register_operand): Likewise.
4540 (stap_parse_single_operand): Likewise.
4541 (stap_parse_argument_1): Likewise.
4542 (stap_parse_argument): Use parser state.
4543 * stap-probe.h: Include "parser-defs.h".
4544 (struct stap_parse_info) <pstate>: New field.
4545 * c-exp.y (parse_type): Rewrite to use parser state.
4546 (yyparse): Redefine to c_parse_internal.
4547 (pstate): New global variable.
4548 (parse_number): Add "struct parser_state" argument.
4549 (write_destructor_name): Likewise.
4550 (type_exp): Update calls to write_exp* and similars in order to
4551 use parser state.
4552 (exp1, exp, variable, qualified_name, space_identifier,
4553 typename, typebase): Likewise.
4554 (write_destructor_name, parse_number, lex_one_token,
4555 classify_name, classify_inner_name, c_parse): Add "struct
4556 parser_state" argument. Update function to use parser state.
4557 * c-lang.h: Forward declare "struct parser_state".
4558 (c_parse): Add "struct parser_state" argument.
4559 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4560 (yyparse): Redefine macro to ada_parse_internal.
4561 (pstate): New variable.
4562 (write_int, write_object_renaming, write_var_or_type,
4563 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4564 type_int, type_long, type_long_long, type_float, type_double,
4565 type_long_double, type_char, type_boolean, type_system_address):
4566 Add "struct parser_state" argument.
4567 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4568 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4569 var_or_type, aggregate, aggregate_component_list,
4570 positional_list, others, component_group,
4571 component_associations): Update calls to write_exp* and similar
4572 functions in order to use parser state.
4573 (ada_parse, write_var_from_sym, write_int,
4574 write_exp_op_with_string, write_object_renaming,
4575 find_primitive_type, write_selectors, write_ambiguous_var,
4576 write_var_or_type, write_name_assoc, type_int, type_long,
4577 type_long_long, type_float, type_double, type_long_double,
4578 type_char, type_boolean, type_system_address): Add "struct
4579 parser_state" argument. Adjust function to use parser state.
4580 * ada-lang.c (parse): Likewise.
4581 * ada-lang.h: Forward declare "struct parser_state".
4582 (ada_parse): Add "struct parser_state" argument.
4583 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4584 calls to both functions.
4585 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4586 parser state.
4587 (yyparse): Redefine macro to f_parse_internal.
4588 (pstate): New variable.
4589 (parse_number): Add "struct parser_state" argument.
4590 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4591 and similars in order to use parser state.
4592 (parse_number): Adjust code to use parser state.
4593 (yylex): Likewise.
4594 (f_parse): New function.
4595 * f-lang.h: Forward declare "struct parser_state".
4596 (f_parse): Add "struct parser_state" argument.
4597 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4598 parser state.
4599 (yyparse): Redefine macro for java_parse_internal.
4600 (pstate): New variable.
4601 (push_expression_name, push_expression_name, insert_exp): Add
4602 "struct parser_state" argument.
4603 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4604 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4605 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4606 PostIncrementExpression, PostDecrementExpression,
4607 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4608 UnaryExpressionNotPlusMinus, CastExpression,
4609 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4610 RelationalExpression, EqualityExpression, AndExpression,
4611 ExclusiveOrExpression, InclusiveOrExpression,
4612 ConditionalAndExpression, ConditionalOrExpression,
4613 ConditionalExpression, Assignment, LeftHandSide): Update
4614 calls to write_exp* and similars in order to use parser state.
4615 (parse_number): Ajust code to use parser state.
4616 (yylex): Likewise.
4617 (java_parse): New function.
4618 (push_variable): Add "struct parser_state" argument. Adjust
4619 code to user parser state.
4620 (push_fieldnames, push_qualified_expression_name,
4621 push_expression_name, insert_exp): Likewise.
4622 * jv-lang.h: Forward declare "struct parser_state".
4623 (java_parse): Add "struct parser_state" argument.
4624 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4625 parser state.
4626 (yyparse): Redefine macro to m2_parse_internal.
4627 (pstate): New variable.
4628 (type_exp, exp, fblock, variable, type): Update calls to
4629 write_exp* and similars to use parser state.
4630 (yylex): Likewise.
4631 (m2_parse): New function.
4632 * m2-lang.h: Forward declare "struct parser_state".
4633 (m2_parse): Add "struct parser_state" argument.
4634 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4635 * objc-lang.h: Forward declare "struct parser_state".
4636 (end_msglist): Add "struct parser_state" argument.
4637 * p-exp.y (parse_type): Rewrite macro to use parser state.
4638 (yyparse): Redefine macro to pascal_parse_internal.
4639 (pstate): New variable.
4640 (parse_number): Add "struct parser_state" argument.
4641 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4642 write_exp* and similars in order to use parser state.
4643 (parse_number, yylex): Adjust code to use parser state.
4644 (pascal_parse): New function.
4645 * p-lang.h: Forward declare "struct parser_state".
4646 (pascal_parse): Add "struct parser_state" argument.
4647 * go-exp.y (parse_type): Rewrite macro to use parser state.
4648 (yyparse): Redefine macro to go_parse_internal.
4649 (pstate): New variable.
4650 (parse_number): Add "struct parser_state" argument.
4651 (type_exp, exp1, exp, variable, type): Update calls to
4652 write_exp* and similars in order to use parser state.
4653 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4654 to use parser state.
4655 (go_parse): Likewise.
4656 * go-lang.h: Forward declare "struct parser_state".
4657 (go_parse): Add "struct parser_state" argument.
4658
342587c4
DE
46592014-03-27 Doug Evans <dje@google.com>
4660
4661 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4662
33e80786
DE
46632014-03-27 Doug Evans <dje@google.com>
4664
4665 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4666 Remove argument abbrev_section. All callers updated.
4667
1dbab08b
DE
46682014-03-27 Doug Evans <dje@google.com>
4669
4670 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4671 addr_base, ranges_base.
4672
318d3177
KS
46732014-03-26 Keith Seitz <keiths@redhat.com>
4674
4675 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4676 types, not VAR_DOMAIN.
4677
1e54db15
SL
46782014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4679
4680 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4681 "ra" registers.
4682 * features/nios2-linux.c: Regenerated.
4683 * features/nios2.c: Regenerated.
4684
d3839ede
PA
46852014-03-25 Pedro Alves <palves@redhat.com>
4686
4687 * cli/cli-script.c (script_from_file): Force the interpreter to
4688 sync mode.
4689
7588d2ec
PL
46902014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4691
4692 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4693 small stack allocation.
4694
a6290449
TG
46952014-03-24 Tristan Gingold <gingold@adacore.com>
4696
4697 * darwin-nat.c (exc_server): Remove unused prototype.
4698 (darwin_dump_message): Correctly display data on x86_64.
4699 (darwin_encode_reply): Fix style.
4700 Add comments and fix indentation.
4701
31ae9d24 47022014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
4703
4704 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4705
6339bfc4
DE
47062014-03-22 Doug Evans <xdje42@gmail.com>
4707
4708 * infcmd.c: Whitespace fixes.
4709 (interrupt_command): Merge two function comments into one.
4710
0a07590b
DE
47112014-03-22 Doug Evans <xdje42@gmail.com>
4712
4713 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4714 All uses updated.
4715
b55fbac4
YQ
47162014-03-22 Yao Qi <yao@codesourcery.com>
4717
4718 * remote.c (target_read_live_memory): Remove.
4719 (memory_xfer_live_readonly_partial): Rename it to
4720 remote_xfer_live_readonly_partial. Remove argument 'object'.
4721 All callers updated. Call remote_read_bytes_1
4722 instead of target_read_live_memory.
4723 * tracepoint.c (set_traceframe_number): Remove.
4724 (make_cleanup_restore_traceframe_number): Likewise .
4725 * tracepoint.h (set_traceframe_number): Remove declaration.
4726 (make_cleanup_restore_traceframe_number): Likewise.
4727
9217e74e
YQ
47282014-03-22 Yao Qi <yao@codesourcery.com>
4729
4730 * remote.c (remote_read_bytes): Move code on reading from the
4731 remote stub to ...
4732 (remote_read_bytes_1): ... here. New function.
4733
8acf9577
YQ
47342014-03-22 Yao Qi <yao@codesourcery.com>
4735
4736 * ctf.c (ctf_xfer_partial): Check the return value of
4737 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4738 return TARGET_XFER_UNAVAILABLE.
4739 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4740 * target.c (target_read_live_memory): Move it to remote.c.
4741 (memory_xfer_live_readonly_partial): Likewise.
4742 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4743 * remote.c (target_read_live_memory): Moved from target.c.
4744 (memory_xfer_live_readonly_partial): Likewise.
4745 (remote_read_bytes): Factored out from
4746 memory_xfer_partial_1.
4747
feef67ab
DE
47482014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4749
4750 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4751 NULL pointer.
4752
b65dc60b
PA
47532014-03-21 Pedro Alves <palves@redhat.com>
4754
4755 * infrun.c (normal_stop): Extend comment.
4756
b4ab256d
HZ
47572014-03-21 Hui Zhu <hui@codesourcery.com>
4758 Pedro Alves <palves@redhat.com>
4759
4760 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4761 static buffer.
4762 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4763 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4764 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4765
deba7593
MR
47662014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4767
4768 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4769 `z' formatted output modifier.
4770
1bff71c3
SDJ
47712014-03-20 Tom Tromey <tromey@redhat.com>
4772 Sergio Durigan Junior <sergiodj@redhat.com>
4773
4774 * probe.c (parse_probes): Turn assert into an ordinary error.
4775 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4776 exceptions when parsing probes. Rearrange the code for clarity.
4777
90e28950
TT
47782014-03-20 Tom Tromey <tromey@redhat.com>
4779
4780 PR gdb/14135
4781 * top.c (execute_command): Only dispatch events if the command
4782 started the target.
4783
beb460e8
PA
47842014-03-20 Tom Tromey <tromey@redhat.com>
4785
4786 PR cli/15718
4787 * infcall.c: Include event-top.h.
4788 (run_inferior_call): Call async_disable_stdin if needed.
4789
99619bea
PA
47902014-03-20 Pedro Alves <palves@redhat.com>
4791
4792 * infrun.c (prepare_to_proceed): Delete.
4793 (thread_still_needs_step_over): New function.
4794 (find_thread_needs_step_over): New function.
4795 (proceed): If the current thread needs a step-over, set its
4796 steping_over_breakpoint flag. Adjust to use
4797 find_thread_needs_step_over instead of prepare_to_proceed.
4798 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4799 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4800 breakpoint.
4801 (switch_back_to_stepped_thread): Step over breakpoints of all
4802 threads not the stepping thread, before switching back to the
4803 stepping thread.
4804
2adfaa28
PA
48052014-03-20 Pedro Alves <palves@redhat.com>
4806
4807 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4808 extern.
4809 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4810 * infrun.c (saved_singlestep_ptid)
4811 (stepping_past_singlestep_breakpoint): Delete.
4812 (resume): Remove stepping_past_singlestep_breakpoint handling.
4813 (proceed): Store the prev_pc of the stepping thread too.
4814 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4815 singlestep_pc.
4816 (enum infwait_states): Delete infwait_thread_hop_state.
4817 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4818 field.
4819 (handle_inferior_event): Adjust.
4820 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4821 handling and the thread-hop code. Before removing single-step
4822 breakpoints, check whether the thread hit a single-step breakpoint
4823 of another thread. If it did, the trap is not a random signal.
4824 (switch_back_to_stepped_thread): If the event thread hit a
4825 single-step breakpoint, unblock it before switching to the
4826 stepping thread. Handle the case of the stepped thread having
4827 advanced already.
4828 (keep_going): Handle the case of the current thread moving past a
4829 single-step breakpoint.
4830
31e77af2
PA
48312014-03-20 Pedro Alves <palves@redhat.com>
4832
4833 PR breakpoints/7143
4834 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4835 are being stepped over.
4836 (breakpoint_address_match): Make extern.
4837 * breakpoint.h (breakpoint_address_match): New declaration.
4838 * inferior.h (stepping_past_instruction_at): New declaration.
4839 * infrun.c (struct step_over_info): New type.
4840 (step_over_info): New global.
4841 (set_step_over_info, clear_step_over_info)
4842 (stepping_past_instruction_at): New functions.
4843 (handle_inferior_event): Clear the step-over info when
4844 trap_expected is cleared.
4845 (resume): Remove now stale comment.
4846 (clear_proceed_status): Clear step-over info.
4847 (proceed): Adjust step-over handling to set or clear the step-over
4848 info instead of removing all breakpoints.
4849 (handle_signal_stop): When setting up a thread-hop, don't remove
4850 breakpoints here.
4851 (stop_stepping): Clear step-over info.
4852 (keep_going): Adjust step-over handling to set or clear step-over
4853 info and then always inserting breakpoints, instead of removing
4854 all breakpoints when stepping over one.
4855
b9f437de
PA
48562014-03-20 Pedro Alves <palves@redhat.com>
4857
4858 * infrun.c (previous_inferior_ptid): Adjust comment.
4859 (deferred_step_ptid): Delete.
4860 (infrun_thread_ptid_changed, prepare_to_proceed)
4861 (init_wait_for_inferior): Adjust.
4862 (handle_signal_stop): Delete deferred_step_ptid handling.
4863
06c868a8
JK
48642014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4865
4866 PR gdb/15358
4867 * defs.h (sync_quit_force_run): New declaration.
4868 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4869 * event-top.c (async_sigterm_handler): New declaration.
4870 (async_sigterm_token): New variable.
4871 (async_init_signals): Create also async_sigterm_token.
4872 (async_sigterm_handler): New function.
4873 (sync_quit_force_run): New variable.
4874 (handle_sigterm): Replace quit_force call by other calls.
4875 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4876
dea80df0
MR
48772014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4878
4879 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4880 offset into SPE pseudo registers.
4881
0c7e1a46
PA
48822014-03-18 Pedro Alves <palves@redhat.com>
4883
4884 PR gdb/13860
4885 * inferior.h (print_stop_event): Declare.
4886 * infrun.c (print_stop_event): New, factored out from ...
4887 (normal_stop): ... this.
4888 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4889 of bpstat_print/print_stack_frame.
4890
9c1fcd01
TT
48912014-03-17 Tom Tromey <tromey@redhat.com>
4892
4893 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4894
11aa919a
PMR
48952014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4896
4897 * ada-lang.c (decode_constrained_packed_array): Perform a
4898 minimal coercion for reference with coerce_ref instead of
4899 ada_coerce_ref.
4900
d4ccb5e0
TG
49012014-03-17 Tristan Gingold <gingold@adacore.com>
4902
4903 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4904 (darwin_solib_create_inferior_hook): Emit a warning if version
4905 is unhandled.
4906
49840f2a
UW
49072014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
4908
4909 * python/py-value.c (get_field_flag): Cast flag_name argument to
4910 PyObject_GetAttrString to support Python 2.4.
4911
ed4123e5
JK
49122014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4913
4914 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4915 (Global Maintainers): Remove Jan Kratochvil.
4916
d6b64346
PA
49172014-03-14 Pedro Alves <palves@redhat.com>
4918
4919 * inferior.h (terminal_ours_for_output): Rename to ...
4920 (child_terminal_ours_for_output): ... this.
4921 (terminal_save_ours): Rename to ...
4922 (child_terminal_save_ours): ... this.
4923 (terminal_ours): Rename to ...
4924 (child_terminal_ours): ... this.
4925 (terminal_inferior): Rename to ...
4926 (child_terminal_inferior): ... this.
4927 (terminal_init_inferior): Rename to ...
4928 (child_terminal_init_inferior): ... this.
4929 (terminal_init_inferior_with_pgrp): Rename to ...
4930 (child_terminal_init_inferior_with_pgrp): ... this.
4931 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4932 (child_terminal_init_with_pgrp): ... this.
4933 (terminal_save_ours): Rename to ...
4934 (child_terminal_save_ours): ... this.
4935 (terminal_init_inferior): Rename to ...
4936 (child_terminal_init): ... this. Adjust.
4937 (terminal_inferior): Rename to ...
4938 (child_terminal_inferior): ... this.
4939 (terminal_ours_for_output): Rename to ...
4940 (child_terminal_ours_for_output): ... this. Adjust.
4941 (terminal_ours): Rename to ...
4942 (child_terminal_ours): ... this.
4943 (terminal_ours_1): Rename to ...
4944 (child_terminal_ours_1): ... this. Adjust.
4945 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4946 * windows-nat.c (do_initial_windows_stuff): Adjust.
4947 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4948 (gnu_terminal_init): ... this. Adjust.
4949 (gnu_target): Adjust.
4950 * inf-child.c (inf_child_target): Adjust.
4951
5a1e8c7a
DE
49522014-03-13 Doug Evans <xdje42@gmail.com>
4953
4954 PR guile/16612
4955 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4956 new eq?-hashtab.
4957
350e1a76
DE
49582014-03-13 Doug Evans <xdje42@gmail.com>
4959
4960 * value.c (record_latest_value): Call release_value_or_incref
4961 instead of release_value.
4962
a69900ae
PA
49632014-03-13 Pedro Alves <palves@redhat.com>
4964
4965 * procfs.c (procfs_target): Don't override to_shortname,
4966 to_longname or to_doc.
4967
5db9f0bd
PA
49682014-03-13 Pedro Alves <palves@redhat.com>
4969
4970 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4971 Unix in user visible strings.
4972
5e3a2c38
SS
49732014-03-12 Stan Shebs <stan@codesourcery.com>
4974
4975 * gdbtypes.h: Annotate comments for Doxygen, add a page
4976 block comment with some general info.
4977
8bc2fe48
PA
49782014-03-12 Pedro Alves <palves@redhat.com>
4979
4980 * infcmd.c (prepare_execution_command): New function, factored out
4981 from several execution commands.
4982 (run_command_1, continue_command, step_1, jump_command)
4983 (signal_command, until_command, advance_command, finish_command)
4984 (attach_command): Use prepare_execution_command.
4985
638c5f49
OJ
49862014-03-12 Omair Javaid <omair.javaid@linaro.org>
4987
4988 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4989 (MAX_BPTS): Define.
4990 (MAX_WPTS): Define.
4991 (struct arm_linux_thread_points): Removed.
4992 (struct arm_linux_process_info): New.
4993 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4994 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4995 (arm_linux_find_breakpoints_by_tid): Removed.
4996 (struct arch_lwp_info): New.
4997 (arm_linux_find_process_pid): New functions.
4998 (arm_linux_add_process): New functions.
4999 (arm_linux_process_info_get): New functions.
5000 (arm_linux_forget_process): New function.
5001 (arm_linux_get_debug_reg_state): New function.
5002 (struct update_registers_data): New.
5003 (update_registers_callback): New function.
5004 (arm_linux_insert_hw_breakpoint1): Updated.
5005 (arm_linux_remove_hw_breakpoint1): Updated.
5006 (arm_linux_insert_hw_breakpoint): Updated.
5007 (arm_linux_remove_hw_breakpoint): Updated.
5008 (arm_linux_insert_watchpoint): Updated.
5009 (arm_linux_remove_watchpoint): Updated.
5010 (arm_linux_new_thread): Updated.
5011 (arm_linux_prepare_to_resume): New function.
5012 (arm_linux_new_fork): New function.
5013 (_initialize_arm_linux_nat): Updated.
5014
6d03af93
PA
50152014-03-12 Pedro Alves <palves@redhat.com>
5016
5017 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5018
b3ccfe11
TT
50192014-03-12 Tom Tromey <tromey@redhat.com>
5020
5021 * inf-child.c (return_zero): New function.
5022 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5023 * aix-thread.c (aix_thread_inferior_created): New function.
5024 (aix_thread_attach): Remove.
5025 (init_aix_thread_ops): Don't set to_attach.
5026 (_initialize_aix_thread): Register inferior_created observer.
5027 * corelow.c (init_core_ops): Don't set to_attach or
5028 to_create_inferior.
5029 * exec.c (init_exec_ops): Don't set to_attach or
5030 to_create_inferior.
5031 * infcmd.c (run_command_1): Use find_run_target. Make direct
5032 target calls.
5033 (attach_command): Use find_attach_target. Make direct target
5034 calls.
5035 * record-btrace.c (init_record_btrace_ops): Don't set
5036 to_create_inferior.
5037 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5038 Remove.
5039 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5040 set to_create_inferior.
5041 * target.c (complete_target_initialization): Add assertion.
5042 (target_create_inferior): Remove.
5043 (find_default_attach, find_default_create_inferior): Remove.
5044 (find_attach_target, find_run_target): New functions.
5045 (find_default_is_async_p, find_default_can_async_p)
5046 (target_supports_non_stop, target_attach): Remove.
5047 (init_dummy_target): Don't set to_create_inferior or
5048 to_supports_non_stop.
5049 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5050 TARGET_DEFAULT_FUNC.
5051 <to_create_inferior>: Add comment.
5052 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5053 TARGET_DEFAULT_RETURN.
5054 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5055 (find_attach_target, find_run_target): Declare.
5056 (target_create_inferior): Remove.
5057 (target_has_execution_1): Update comment.
5058 (target_supports_non_stop): Remove.
5059 * target-delegates.c: Rebuild.
5060
91f83b02
PA
50612014-03-12 Pedro Alves <palves@redhat.com>
5062
5063 * inf-child.h: Update comment to not mention Unix.
5064
f1aea813
PA
50652014-03-12 Pedro Alves <palves@redhat.com>
5066
5067 * inf-child.c: Update top comment to not mention Unix. Add
5068 generic comment describing how this target is meant to be used.
5069 (inf_child_post_attach, inf_child_post_startup_inferior)
5070 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5071 Unix in comment.
5072
ee8e9165
PA
50732014-03-12 Pedro Alves <palves@redhat.com>
5074
5075 * nto-procfs.c: Include inf-child.h.
5076 (procfs_ops): Delete global.
5077 (procfs_can_run): Delete method.
5078 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5079 target pointer instead of referencing procfs_ops.
5080 (procfs_prepare_to_store): Delete.
5081 (init_procfs_ops): Delete function.
5082 (procfs_target): New function, based on init_procfs_ops, but
5083 inherit inf_child_target.
5084 (_initialize_procfs): Use procfs_target.
5085
51a9c8c5
PA
50862014-03-12 Pedro Alves <palves@redhat.com>
5087
5088 * windows-nat.c: Include inf-child.h.
5089 (windows_ops): Delete global.
5090 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5091 methods.
5092 (init_windows_ops): Delete function.
5093 (windows_target): New function, based on init_windows_ops, but
5094 inherit inf_child_target.
5095 (_initialize_windows_nat): Use windows_target. Install x86
5096 specific target methods here.
5097
c1966e26
DE
50982014-03-10 Doug Evans <xdje42@gmail.com>
5099
5100 * guile/guile.c (call_initialize_gdb_module): New function.
5101 (initialize_guile): Replace call to scm_init_guile with call to
5102 scm_with_guile.
5103
023db19c
JB
51042014-03-10 Joel Brobecker <brobecker@adacore.com>
5105
5106 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5107 in call to TYPE_CODE macro.
5108
5ec18f2b
JG
51092014-03-10 Jerome Guitton <guitton@adacore.com>
5110
8668be63
JB
5111 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5112 Resolve tagged types to full view.
5ec18f2b 5113
7d03f2eb
HZ
51142014-03-10 Hui Zhu <hui@codesourcery.com>
5115
5116 * target.h (target_insert_breakpoint): Remove "hardware" from its
5117 comments.
5118
c5164cbc
DE
51192014-03-07 Doug Evans <dje@google.com>
5120
5121 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5122
c4a3fee2
DE
51232014-03-07 Doug Evans <dje@google.com>
5124
5125 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5126 Remove unused local comp_dir_attr. Assert exactly one of
5127 stub_comp_unit_die, stub_comp_dir is non-NULL.
5128
3156469c
JB
51292014-03-07 Joel Brobecker <brobecker@adacore.com>
5130
5131 * target.h (complete_target_initialization, add_target):
5132 Add comment.
5133
c1a7b7c6
PA
51342014-03-07 Pedro Alves <palves@redhat.com>
5135
5136 * go32-nat.c: Include inf-child.h.
5137 (go32_ops): Delete global.
5138 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5139 Delete methods.
5140 (go32_create_inferior): Push the passed in target pointer instead
5141 of referencing go32_ops.
5142 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5143 (go32_target): New function, based on init_go32_ops, but inherit
5144 inf_child_target.
5145 (_initialize_go32_nat): Use go32_target. Move parts of
5146 init_go32_ops here.
5147
d3c1a85f
JB
51482014-03-06 Joel Brobecker <brobecker@adacore.com>
5149
5150 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5151 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5152 SYMBOL_VALUE_ADDRESS.
5153 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5154
5fa1d40e
YQ
51552014-03-06 Yao Qi <yao@codesourcery.com>
5156
5157 * breakpoint.c (get_tracepoint_by_number): Remove argument
5158 optional_p. All callers updated. Adjust comments. Update
5159 output message.
5160 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5161
0c13193f
YQ
51622014-03-06 Yao Qi <yao@codesourcery.com>
5163
5164 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5165 early if get_number returns zero. Use 'p' instead of 'args'.
5166
2217da06
YQ
51672014-03-06 Yao Qi <yao@codesourcery.com>
5168
5169 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5170 message.
5171
cc3da688
YQ
51722014-03-06 Yao Qi <yao@codesourcery.com>
5173
5174 PR breakpoints/16508
5175 * tracepoint.c (check_trace_running): New function.
5176 (trace_find_command): Move code to check_trace_running and
5177 call check_trace_running.
5178 (trace_find_pc_command): Likewise.
5179 (trace_find_tracepoint_command): Likewise.
5180 (trace_find_line_command): Likewise.
5181 (trace_find_range_command): Likewise.
5182 * tracepoint.h (check_trace_running): Likewise.
5183 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5184
6a5f844b
YQ
51852014-03-06 Yao Qi <yao@codesourcery.com>
5186
5187 * target.h (struct target_ops) <to_traceframe_info>: Use
5188 TARGET_DEFAULT_NORETURN (tcomplain ()).
5189 * target-delegates.c: Regenerated.
5190
0f26cec1
PA
51912014-03-05 Pedro Alves <palves@redhat.com>
5192
5193 PR gdb/16575
5194 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5195 void. Update comment.
5196 (dcache_xfer_memory): Delete.
5197 (dcache_read_memory_partial): New, based on the read bits of
5198 dcache_xfer_memory.
5199 (dcache_update): Add status parameter. Use ULONGEST for len, and
5200 adjust. Discard cache lines if the reason for the update was
5201 error.
5202 * dcache.h (dcache_xfer_memory): Delete declaration.
5203 (dcache_read_memory_partial): New declaration.
5204 (dcache_update): Update prototype.
5205 * target.c (raw_memory_xfer_partial): Update the dcache here.
5206 (memory_xfer_partial_1): Don't handle dcache writes here.
5207
b2b255bd
MF
52082014-03-05 Mike Frysinger <vapier@gentoo.org>
5209
5210 * remote-sim.c (gdbsim_load): Add const to prog.
5211
5d9cf8a4
TT
52122014-03-03 Tom Tromey <tromey@redhat.com>
5213
5214 * elfread.c (probe_key): Change to bfd_data.
5215 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5216 now per-BFD, not per-objfile.
5217 * stap-probe.c (stap_probe_destroy): Update comment.
5218 (handle_stap_probe): Allocate on the per-BFD obstack.
5219
729662a5
TT
52202014-03-03 Tom Tromey <tromey@redhat.com>
5221
5222 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5223 * breakpoint.c (create_longjmp_master_breakpoint): Use
5224 get_probe_address.
5225 (add_location_to_breakpoint, bkpt_probe_insert_location)
5226 (bkpt_probe_remove_location): Update.
5227 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5228 * elfread.c (elf_symfile_relocate_probe): Remove.
5229 (elf_probe_fns): Update.
5230 (insert_exception_resume_breakpoint): Change type of "probe"
5231 parameter to bound_probe.
5232 (check_exception_resume): Update.
5233 * objfiles.c (objfile_relocate1): Don't relocate probes.
5234 * probe.c (bound_probe_s): New typedef.
5235 (parse_probes): Use get_probe_address. Set sal's objfile.
5236 (find_probe_by_pc): Return a bound_probe.
5237 (collect_probes): Return a VEC(bound_probe_s).
5238 (compare_probes): Update.
5239 (gen_ui_out_table_header_info): Change type of "probes"
5240 parameter. Update.
5241 (info_probes_for_ops): Update.
5242 (get_probe_address): New function.
5243 (probe_safe_evaluate_at_pc): Update.
5244 * probe.h (struct probe_ops) <get_probe_address>: New field.
5245 <set_semaphore, clear_semaphore>: Add objfile parameter.
5246 (struct probe) <objfile>: Remove field.
5247 <arch>: New field.
5248 <address>: Update comment.
5249 (struct bound_probe): New.
5250 (find_probe_by_pc): Return a bound_probe.
5251 (get_probe_address): Declare.
5252 * solib-svr4.c (struct probe_and_action) <address>: New field.
5253 (hash_probe_and_action, equal_probe_and_action): Update.
5254 (register_solib_event_probe): Add address parameter.
5255 (solib_event_probe_at): Update.
5256 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5257 get_probe_address.
5258 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5259 (stap_get_probe_address): New function.
5260 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5261 (compile_probe_arg): Update.
5262 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5263 address.
5264 (handle_stap_probe): Don't relocate the probe.
5265 (stap_relocate): Remove.
5266 (stap_gen_info_probes_table_values): Update.
5267 (stap_probe_ops): Remove stap_relocate.
5268 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5269 (debug_sym_probe_fns): Update.
5270 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5271 * symtab.c (init_sal): Use memset.
5272 * symtab.h (struct symtab_and_line) <objfile>: New field.
5273 * tracepoint.c (start_tracing, stop_tracing): Update.
5274
ff887920
TT
52752014-03-03 Tom Tromey <tromey@redhat.com>
5276
5277 * probe.h (parse_probes, find_probe_by_pc)
5278 (find_probes_in_objfile): Fix comments.
5279
f0407826
DE
52802014-03-02 Doug Evans <xdje42@gmail.com>
5281
5282 * infrun.c (handle_signal_stop): Replace test for
5283 TARGET_WAITKIND_STOPPED with an assert.
5284
35e6a711
DE
52852014-03-02 Doug Evans <xdje42@gmail.com>
5286
5287 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5288
667f9d0b
DE
52892014-03-02 Doug Evans <xdje42@gmail.com>
5290
5291 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5292
dc92ace0
MK
52932014-03-01 Mark Kettenis <kettenis@gnu.org>
5294
5295 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5296
a900370f
MK
52972014-03-01 Mark Kettenis <kettenis@gnu.org>
5298
5299 * i386obsd-nat.c: Include "obsd-nat.h".
5300 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5301 add_target.
5302 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5303
b72a7981
MK
53042014-03-01 Mark Kettenis <kettenis@gnu.org>
5305
5306 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5307
96c70aba
MK
53082014-03-01 Mark Kettenis <kettenis@gnu.org>
5309
5310 * mips64obsd-nat.c: Include "obsd-nath".
5311 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5312 add_target
5313 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5314
874a80af
MK
53152014-03-01 Mark Kettenis <kettenis@gnu.org>
5316
8fd408f1
MK
5317 * amd64obsd-nat.c: Include "obsd-nat,h.
5318 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5319 add_target.
874a80af
MK
5320 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5321
9cf95373
SC
53222014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5323
5324 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5325 (find_overload_match): Update call to find_oload_champ.
5326 (find_oload_champ_namespace_loop): Likewise
5327
863e4da4
MK
53282014-02-28 Mark Kettenis <kettenis@gnu.org>
5329
025cac40
MK
5330 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5331
1ed586ce
MK
5332 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5333 * config/sparc/obsd64.mh: New file.
5334 * sparc64obsd-nat.c: New file.
5335
863e4da4
MK
5336 * obsd-nat.h: New file.
5337 * obsd-nat.c: New file.
5338 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5339 (ALLDEPFILES): Add obsd-nat.c.
5340
89de4da4
TT
53412014-02-28 Tom Tromey <tromey@redhat.com>
5342
5343 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5344 * cli-out.h (cli_ui_out_impl): Now const.
5345 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5346 * ui-out.c (struct ui_out) <impl>: Now const.
5347 (default_ui_out_impl): Now const.
5348 (ui_out_new): Make 'impl' parameter const.
5349 * ui-out.h (ui_out_new): Update.
5350
c725e7b6
MK
53512014-02-27 Mark Kettenis <kettenis@gnu.org>
5352
5353 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5354
670b46b3
MK
53552014-02-27 Mark Kettenis <kettenis@gnu.org>
5356
5357 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5358
c91550fc
JK
53592014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5360
5361 Additional PR 8882 fix.
5362 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5363
2fa0369e
PA
53642014-02-27 Pedro Alves <palves@redhat.com>
5365
5366 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5367 isn't set.
5368
d632a097
PA
53692014-02-27 Pedro Alves <palves@redhat.com>
5370
5371 PR 12702
5372 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5373 * nat/linux-waitpid.c: Include string.h.
5374 (status_to_str): Moved here and made extern.
5375 * nat/linux-waitpid.h (status_to_str): New declaration.
5376
2ebd5a35
HZ
53772014-02-27 Hui Zhu <hui@codesourcery.com>
5378
5379 PR 12702
5380 * infrun.c (ptid_match): Move ...
5381 * common/ptid.c (ptid_match): ... here.
5382 * inferior.h (ptid_match): Move ...
5383 * common/ptid.h (ptid_match): ... here.
5384
3cdd631f
MK
53852014-02-27 Mark Kettenis <kettenis@gnu.org>
5386
5387 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5388 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5389 gdb_target_obs.
5390
bee30a64
MK
53912014-02-27 Mark Kettenis <kettenis@gnu.org>
5392
5393 * obsd-tdep.c (obsd_auxv_parse): New function.
5394 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
5395
5396 * gdbarch.sh (auxv_parse): New.
5397 * gdbarch.h: Regenerated.
5398 * gdbarch.c: Regenerated.
5399 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5400
7a5a839f
LC
54012014-02-26 Ludovic Courtès <ludo@gnu.org>
5402
5403 * guile/scm-value.c (gdbscm_history_append_x): New function.
5404 (value_functions): Add it.
5405
31aa7e4e
JB
54062014-02-27 Joel Brobecker <brobecker@adacore.com>
5407
5408 * dwarf2read.c (attr_value_as_address): New function.
5409 (dwarf2_find_base_address, read_call_site_scope): Use
5410 attr_value_as_address in place of DW_ADDR.
5411 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5412 the low and high addresses. Slight rework of the handling
5413 of the high pc being a constant form, and limit it to
5414 DWARF verson 4 or higher.
5415 (dwarf2_record_block_ranges): Likewise.
5416 (read_partial_die): Likewise.
5417 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5418
9b333ba3
TT
54192014-02-26 Tom Tromey <tromey@redhat.com>
5420
5421 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5422
5f6cac40
TT
54232014-02-26 Tom Tromey <tromey@redhat.com>
5424
5425 * elfread.c (elf_read_minimal_symbols): Return early if
5426 minimal symbols have already been read. Add "ei" parameter.
5427 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5428 * minsyms.c (prim_record_minimal_symbol_full): Update.
5429 * objfiles.h (struct objstats) <n_minsyms>: Move...
5430 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5431 * symmisc.c (print_objfile_statistics): Update.
5432
2750ef27
TT
54332014-02-26 Tom Tromey <tromey@redhat.com>
5434
5435 * elfread.c (elf_read_minimal_symbols): New function, from
5436 elf_symfile_read.
5437 (elf_symfile_read): Call it.
5438
34643a32
TT
54392014-02-26 Tom Tromey <tromey@redhat.com>
5440
5441 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5442 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5443 (lookup_minimal_symbol_solib_trampoline)
5444 (lookup_minimal_symbol_by_pc_section_1)
5445 (lookup_minimal_symbol_and_objfile): Update.
5446 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5447 Don't allocate a minimal symbol if minsyms have already been read.
5448 (build_minimal_symbol_hash_tables): Update.
5449 (install_minimal_symbols): Do nothing if minsyms already read.
5450 Use the per-BFD obstack.
5451 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5452 * objfiles.c (allocate_objfile): Call
5453 terminate_minimal_symbol_table later.
5454 (have_minimal_symbols): Update.
5455 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5456 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5457 Move from struct objfile.
5458 <minsyms_read>: New field.
5459 (struct objfile) <msymbols, minimal_symbol_count,
5460 msymbol_hash, msymbol_demangled_hash>: Move.
5461 (ALL_OBJFILE_MSYMBOLS): Update.
5462 * symfile.c (read_symbols): Set minsyms_read.
5463 (reread_symbols): Update.
5464 * symmisc.c (dump_objfile, dump_msymbols): Update.
5465
2273f0ac
TT
54662014-02-26 Tom Tromey <tromey@redhat.com>
5467
5468 * minsyms.c (msymbols_sort): Remove.
5469 * minsyms.h (msymbols_sort): Remove.
5470 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5471 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5472 * elfread.c (elf_symtab_read): Don't add section offsets.
5473 * xcoffread.c (record_minimal_symbol): Don't add section offset
5474 to minimal symbol address.
5475 * somread.c (text_offset, data_offset): Remove.
5476 (som_symtab_read): Don't add section offsets to minimal symbol
5477 addresses.
5478 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5479 Don't add section offsets to minimal symbols.
5480 * coffread.c (coff_symtab_read): Don't add section offsets
5481 to minimal symbol addresses.
5482 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5483 to minimal symbol addresses.
5484 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5485 section offset to minimal symbol addresses.
5486 * mdebugread.c (parse_partial_symbols): Don't add section
5487 offset to minimal symbol addresses.
5488 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5489 offset to minimal symbol addresses.
5490
77e371c0
TT
54912014-02-26 Tom Tromey <tromey@redhat.com>
5492
5493 * ada-lang.c (ada_main_name): Update.
5494 (ada_add_standard_exceptions): Update.
5495 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5496 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5497 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5498 * auxv.c (ld_so_xfer_auxv): Update.
5499 * avr-tdep.c (avr_scan_prologue): Update.
5500 * ax-gdb.c (gen_var_ref): Update.
5501 * blockframe.c (get_pc_function_start)
5502 (find_pc_partial_function_gnu_ifunc): Update.
5503 * breakpoint.c (create_overlay_event_breakpoint)
5504 (create_longjmp_master_breakpoint)
5505 (create_std_terminate_master_breakpoint)
5506 (create_exception_master_breakpoint): Update.
5507 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5508 * c-valprint.c (c_val_print): Update.
5509 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5510 * common/agent.c (agent_look_up_symbols): Update.
5511 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5512 * dwarf2loc.c (call_site_to_target_addr): Update.
5513 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5514 * elfread.c (elf_gnu_ifunc_record_cache)
5515 (elf_gnu_ifunc_resolve_by_got): Update.
5516 * findvar.c (default_read_var_value): Update.
5517 * frame.c (inside_main_func): Update.
5518 * frv-tdep.c (frv_frame_this_id): Update.
5519 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5520 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5521 Update.
5522 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5523 (hppa_hpux_find_dummy_bpaddr): Update.
5524 * hppa-tdep.c (hppa_symbol_address): Update.
5525 * infcmd.c (until_next_command): Update.
5526 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5527 Update.
5528 * linespec.c (minsym_found, add_minsym): Update.
5529 * linux-nat.c (get_signo): Update.
5530 * linux-thread-db.c (inferior_has_bug): Update.
5531 * m32c-tdep.c (m32c_return_value)
5532 (m32c_m16c_address_to_pointer): Update.
5533 * m32r-tdep.c (m32r_frame_this_id): Update.
5534 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5535 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5536 * maint.c (maintenance_translate_address): Update.
5537 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5538 (frob_address): New function.
5539 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5540 frob_address. Rename parameter to "pc_in".
5541 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5542 addresses.
5543 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5544 Update.
5545 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5546 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5547 * objc-lang.c (find_objc_msgsend): Update.
5548 * objfiles.c (objfile_relocate1): Update.
5549 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5550 * p-valprint.c (pascal_val_print): Update.
5551 * parse.c (write_exp_msymbol): Update.
5552 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5553 (ppc_elfv2_skip_entrypoint): Update.
5554 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5555 * printcmd.c (build_address_symbolic, msym_info)
5556 (address_info): Update.
5557 * proc-service.c (ps_pglobal_lookup): Update.
5558 * psymtab.c (find_pc_sect_psymtab_closer)
5559 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5560 Change msymbol parameter to bound_minimal_symbol.
5561 * ravenscar-thread.c (get_running_thread_id): Update.
5562 * remote.c (remote_check_symbols): Update.
5563 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5564 address.
5565 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5566 * solib-dsbt.c (lm_base): Update.
5567 * solib-frv.c (lm_base, main_got): Update.
5568 * solib-irix.c (locate_base): Update.
5569 * solib-som.c (som_solib_create_inferior_hook)
5570 (link_map_start): Update.
5571 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5572 * solib-svr4.c (elf_locate_base, enable_break): Update.
5573 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5574 (flush_ea_cache): Update.
5575 * stabsread.c (define_symbol, scan_file_globals): Update.
5576 * stack.c (find_frame_funname): Update.
5577 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5578 (debug_qf_find_pc_sect_symtab): Update.
5579 * symfile.c (simple_read_overlay_table)
5580 (simple_overlay_update): Update.
5581 * symfile.h (struct quick_symbol_functions)
5582 <find_pc_sect_symtab>: Change type of msymbol to
5583 bound_minimal_symbol.
5584 * symmisc.c (dump_msymbols): Update.
5585 * symtab.c (find_pc_sect_symtab_via_partial)
5586 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5587 (search_symbols, print_msymbol_info): Update.
5588 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5589 (MSYMBOL_VALUE_ADDRESS): Redefine.
5590 (BMSYMBOL_VALUE_ADDRESS): New macro.
5591 * tracepoint.c (scope_info): Update.
5592 * tui/tui-disasm.c (tui_find_disassembly_address)
5593 (tui_get_begin_asm_address): Update.
5594 * valops.c (find_function_in_inferior): Update.
5595 * value.c (value_static_field, value_fn_field): Update.
5596
3b7344d5
TT
55972014-02-26 Tom Tromey <tromey@redhat.com>
5598
5599 * ada-lang.c (ada_update_initial_language): Update.
5600 (ada_main_name, ada_has_this_exception_support): Update.
5601 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5602 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5603 * arm-tdep.c (arm_skip_stub): Update.
5604 * auxv.c (ld_so_xfer_auxv): Update.
5605 * avr-tdep.c (avr_scan_prologue): Update.
5606 * ax-gdb.c (gen_var_ref): Update.
5607 * breakpoint.c (struct breakpoint_objfile_data)
5608 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5609 type to bound_minimal_symbol.
5610 (create_overlay_event_breakpoint)
5611 (create_longjmp_master_breakpoint)
5612 (create_std_terminate_master_breakpoint)
5613 (create_exception_master_breakpoint): Update.
5614 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5615 * c-exp.y (classify_name): Update.
5616 * coffread.c (coff_symfile_read): Update.
5617 * common/agent.c (agent_look_up_symbols): Update.
5618 * d-lang.c (d_main_name): Update.
5619 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5620 * dec-thread.c (enable_dec_thread): Update.
5621 * dwarf2loc.c (call_site_to_target_addr): Update.
5622 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5623 * eval.c (evaluate_subexp_standard): Update.
5624 * findvar.c (struct minsym_lookup_data) <result>: Change type
5625 to bound_minimal_symbol.
5626 <objfile>: Remove.
5627 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5628 * frame.c (inside_main_func): Update.
5629 * frv-tdep.c (frv_frame_this_id): Update.
5630 * gcore.c (call_target_sbrk): Update.
5631 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5632 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5633 Update.
5634 * go-lang.c (go_main_name): Update.
5635 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5636 (hppa_hpux_find_import_stub_for_addr): Update.
5637 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5638 Update. Change return type.
5639 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5640 type.
5641 * jit.c (jit_breakpoint_re_set_internal): Update.
5642 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5643 Update.
5644 * linux-nat.c (get_signo): Update.
5645 * linux-thread-db.c (inferior_has_bug): Update
5646 * m32c-tdep.c (m32c_return_value)
5647 (m32c_m16c_address_to_pointer): Update.
5648 * m32r-tdep.c (m32r_frame_this_id): Update.
5649 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5650 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5651 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5652 lookup_minimal_symbol. Change return type.
5653 (lookup_minimal_symbol): Remove.
5654 (lookup_bound_minimal_symbol): Update.
5655 (lookup_minimal_symbol_text): Change return type.
5656 (lookup_minimal_symbol_solib_trampoline): Change return type.
5657 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5658 (lookup_minimal_symbol_solib_trampoline): Change return type.
5659 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5660 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5661 (value_nsstring, find_imps): Update.
5662 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5663 * p-lang.c (pascal_main_name): Update.
5664 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5665 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5666 * proc-service.c (ps_pglobal_lookup): Update.
5667 * ravenscar-thread.c (get_running_thread_msymbol): Change
5668 return type.
5669 (has_ravenscar_runtime, get_running_thread_id): Update.
5670 * remote.c (remote_check_symbols): Update.
5671 * sol-thread.c (ps_pglobal_lookup): Update.
5672 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5673 * solib-dsbt.c (lm_base): Update.
5674 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5675 Update.
5676 * solib-irix.c (locate_base): Update.
5677 * solib-som.c (som_solib_create_inferior_hook)
5678 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5679 Update.
5680 * solib-spu.c (spu_enable_break): Update.
5681 * solib-svr4.c (elf_locate_base, enable_break): Update.
5682 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5683 (flush_ea_cache): Update.
5684 * stabsread.c (define_symbol): Update.
5685 * symfile.c (simple_read_overlay_table): Update.
5686 * symtab.c (find_pc_sect_line): Update.
5687 * tracepoint.c (scope_info): Update.
5688 * tui-disasm.c (tui_get_begin_asm_address): Update.
5689 * value.c (value_static_field): Update.
5690
40c1a007
TT
56912014-02-26 Tom Tromey <tromey@redhat.com>
5692
5693 * minsyms.c (prim_record_minimal_symbol_full): Use
5694 SET_MSYMBOL_VALUE_ADDRESS.
5695 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5696 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5697 SET_MSYMBOL_VALUE_ADDRESS.
5698 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5699 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5700
efd66ac6
TT
57012014-02-26 Tom Tromey <tromey@redhat.com>
5702
5703 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5704 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5705 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5706 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5707 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5708 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5709 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5710 * ada-lang.c (ada_main_name): Update.
5711 (ada_lookup_simple_minsym): Update.
5712 (ada_make_symbol_completion_list): Update.
5713 (ada_add_standard_exceptions): Update.
5714 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5715 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5716 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5717 * arm-tdep.c (skip_prologue_function): Update.
5718 (arm_skip_stack_protector, arm_skip_stub): Update.
5719 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5720 (arm_wince_skip_main_prologue): Update.
5721 * auxv.c (ld_so_xfer_auxv): Update.
5722 * avr-tdep.c (avr_scan_prologue): Update.
5723 * ax-gdb.c (gen_var_ref): Update.
5724 * block.c (call_site_for_pc): Update.
5725 * blockframe.c (get_pc_function_start): Update.
5726 (find_pc_partial_function_gnu_ifunc): Update.
5727 * breakpoint.c (create_overlay_event_breakpoint): Update.
5728 (create_longjmp_master_breakpoint): Update.
5729 (create_std_terminate_master_breakpoint): Update.
5730 (create_exception_master_breakpoint): Update.
5731 (resolve_sal_pc): Update.
5732 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5733 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5734 Update.
5735 * c-valprint.c (c_val_print): Update.
5736 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5737 * coffread.c (coff_symfile_read): Update.
5738 * common/agent.c (agent_look_up_symbols): Update.
5739 * dbxread.c (find_stab_function_addr): Update.
5740 (end_psymtab): Update.
5741 * dwarf2loc.c (call_site_to_target_addr): Update.
5742 (func_verify_no_selftailcall): Update.
5743 (tailcall_dump): Update.
5744 (call_site_find_chain_1): Update.
5745 (dwarf_expr_reg_to_entry_parameter): Update.
5746 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5747 (elf_gnu_ifunc_resolve_by_got): Update.
5748 * f-valprint.c (info_common_command): Update.
5749 * findvar.c (read_var_value): Update.
5750 * frame.c (get_prev_frame_1): Update.
5751 (inside_main_func): Update.
5752 * frv-tdep.c (frv_skip_main_prologue): Update.
5753 (frv_frame_this_id): Update.
5754 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5755 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5756 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5757 (gnuv3_skip_trampoline): Update.
5758 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5759 (hppa64_hpux_in_solib_call_trampoline): Update.
5760 (hppa_hpux_skip_trampoline_code): Update.
5761 (hppa64_hpux_search_dummy_call_sequence): Update.
5762 (hppa_hpux_find_import_stub_for_addr): Update.
5763 (hppa_hpux_find_dummy_bpaddr): Update.
5764 * hppa-tdep.c (hppa_symbol_address)
5765 (hppa_lookup_stub_minimal_symbol): Update.
5766 * i386-tdep.c (i386_skip_main_prologue): Update.
5767 (i386_pe_skip_trampoline_code): Update.
5768 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5769 * infcall.c (get_function_name): Update.
5770 * infcmd.c (until_next_command): Update.
5771 * jit.c (jit_breakpoint_re_set_internal): Update.
5772 (jit_inferior_init): Update.
5773 * linespec.c (minsym_found): Update.
5774 (add_minsym): Update.
5775 * linux-fork.c (info_checkpoints_command): Update.
5776 * linux-nat.c (get_signo): Update.
5777 * linux-thread-db.c (inferior_has_bug): Update.
5778 * m32c-tdep.c (m32c_return_value): Update.
5779 (m32c_m16c_address_to_pointer): Update.
5780 (m32c_m16c_pointer_to_address): Update.
5781 * m32r-tdep.c (m32r_frame_this_id): Update.
5782 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5783 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5784 * maint.c (maintenance_translate_address): Update.
5785 * minsyms.c (add_minsym_to_hash_table): Update.
5786 (add_minsym_to_demangled_hash_table): Update.
5787 (msymbol_objfile): Update.
5788 (lookup_minimal_symbol): Update.
5789 (iterate_over_minimal_symbols): Update.
5790 (lookup_minimal_symbol_text): Update.
5791 (lookup_minimal_symbol_by_pc_name): Update.
5792 (lookup_minimal_symbol_solib_trampoline): Update.
5793 (lookup_minimal_symbol_by_pc_section_1): Update.
5794 (lookup_minimal_symbol_and_objfile): Update.
5795 (prim_record_minimal_symbol_full): Update.
5796 (compare_minimal_symbols): Update.
5797 (compact_minimal_symbols): Update.
5798 (build_minimal_symbol_hash_tables): Update.
5799 (install_minimal_symbols): Update.
5800 (terminate_minimal_symbol_table): Update.
5801 (find_solib_trampoline_target): Update.
5802 (minimal_symbol_upper_bound): Update.
5803 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5804 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5805 (mips_skip_pic_trampoline_code): Update.
5806 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5807 * objc-lang.c (selectors_info): Update.
5808 (classes_info): Update.
5809 (find_methods): Update.
5810 (find_imps): Update.
5811 (find_objc_msgsend): Update.
5812 * objfiles.c (objfile_relocate1): Update.
5813 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5814 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5815 * p-valprint.c (pascal_val_print): Update.
5816 * parse.c (write_exp_msymbol): Update.
5817 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5818 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5819 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5820 * printcmd.c (build_address_symbolic): Update.
5821 (sym_info): Update.
5822 (address_info): Update.
5823 * proc-service.c (ps_pglobal_lookup): Update.
5824 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5825 (find_pc_sect_psymtab): Update.
5826 * python/py-framefilter.c (py_print_frame): Update.
5827 * ravenscar-thread.c (get_running_thread_id): Update.
5828 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5829 Update.
5830 * remote.c (remote_check_symbols): Update.
5831 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5832 (rs6000_skip_trampoline_code): Update.
5833 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5834 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5835 * solib-dsbt.c (lm_base): Update.
5836 * solib-frv.c (lm_base): Update.
5837 (main_got): Update.
5838 * solib-irix.c (locate_base): Update.
5839 * solib-som.c (som_solib_create_inferior_hook): Update.
5840 (som_solib_desire_dynamic_linker_symbols): Update.
5841 (link_map_start): Update.
5842 * solib-spu.c (spu_enable_break): Update.
5843 (ocl_enable_break): Update.
5844 * solib-svr4.c (elf_locate_base): Update.
5845 (enable_break): Update.
5846 * spu-tdep.c (spu_get_overlay_table): Update.
5847 (spu_catch_start): Update.
5848 (flush_ea_cache): Update.
5849 * stabsread.c (define_symbol): Update.
5850 (scan_file_globals): Update.
5851 * stack.c (find_frame_funname): Update.
5852 (frame_info): Update.
5853 * symfile.c (simple_read_overlay_table): Update.
5854 (simple_overlay_update): Update.
5855 * symmisc.c (dump_msymbols): Update.
5856 * symtab.c (fixup_section): Update.
5857 (find_pc_sect_line): Update.
5858 (skip_prologue_sal): Update.
5859 (search_symbols): Update.
5860 (print_msymbol_info): Update.
5861 (rbreak_command): Update.
5862 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5863 (completion_list_objc_symbol): Update.
5864 (default_make_symbol_completion_list_break_on): Update.
5865 * tracepoint.c (scope_info): Update.
5866 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5867 (tui_get_begin_asm_address): Update.
5868 * valops.c (find_function_in_inferior): Update.
5869 * value.c (value_static_field): Update.
5870 (value_fn_field): Update.
5871
50e65b17
TT
58722014-02-26 Tom Tromey <tromey@redhat.com>
5873
5874 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5875 bound minimal symbols. Move code that knows about minsym
5876 table layout...
5877 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5878 function.
5879 * minsyms.h (minimal_symbol_upper_bound): Declare.
5880 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5881 minimal_symbol_upper_bound.
5882
1b588015
JB
58832014-02-27 Joel Brobecker <brobecker@adacore.com>
5884
5885 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5886 Use the type's name if its basic type does not have a tag.
5887
dbb9c2b1
JB
58882014-02-27 Joel Brobecker <brobecker@adacore.com>
5889
5890 * dwarf2read.c (read_subrange_type): Add comment.
5891
55426c9d
JB
58922014-02-27 Joel Brobecker <brobecker@adacore.com>
5893
5894 * dwarf2read.c (update_enumeration_type_from_children): New
5895 function, mostly extracted from process_structure_scope.
5896 (read_enumeration_type): Call update_enumeration_type_from_children.
5897 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5898 and flag_flag_enum fields.
5899
f2fce0ca
PA
59002014-02-26 Pedro Alves <palves@redhat.com>
5901
5902 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5903 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5904 to_xfer_partial method.
5905
7a44e40e
PA
59062014-02-26 Pedro Alves <palves@redhat.com>
5907
5908 * target.c (complete_target_initialization): Don't install
5909 default_xfer_partial as to_xfer_partial hook.
5910 (nomemory): Delete.
5911 (update_current_target): Don't INHERIT nor de_fault
5912 deprecated_xfer_memory. Delete de_fault macro.
5913 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5914 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5915 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5916 field.
5917
bd265cd0
PA
59182014-02-26 Pedro Alves <palves@redhat.com>
5919
5920 * go32-nat.c (my_write_child): New function.
5921 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5922 (go32_xfer_partial): New function.
5923 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5924 Instead install a to_xfer_partial hook.
5925
9d46c4e5
PA
59262014-02-26 Pedro Alves <palves@redhat.com>
5927
5928 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5929 to_xfer_partial helper. Rewrite.
5930 (procfs_xfer_partial): New function.
5931 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5932 Install a to_xfer_partial hook.
5933
a1583b1f
PA
59342014-02-26 Pedro Alves <palves@redhat.com>
5935
5936 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5937 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5938 (m32r_xfer_partial): New function.
5939 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5940 Install a to_xfer_partial hook.
5941
6df1b29f
PA
59422014-02-26 Pedro Alves <palves@redhat.com>
5943
5944 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5945 helper.
5946 (mips_xfer_partial): New function.
5947 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5948 hook. Install a to_xfer_partial hook.
5949
dc53a7ad
JB
59502014-02-26 Joel Brobecker <brobecker@adacore.com>
5951
5952 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5953 * gdbtypes.c (create_array_type_with_stride): New function,
5954 renaming create_array_type, but with an added parameter
5955 called "bit_stride".
5956 (create_array_type): Re-implement using
5957 create_array_type_with_stride.
5958 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5959 and DW_AT_bit_stride attributes.
5960
12ab52e9
PA
59612014-02-26 Pedro Alves <palves@redhat.com>
5962
5963 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5964 task-specific breakpoints.
5965
d16461ae
PA
59662014-02-25 Pedro Alves <palves@redhat.com>
5967
5968 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5969 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5970
a8b16220
SS
59712014-02-25 Stan Shebs <stan@codesourcery.com>
5972
5973 * defs.h: Annotate comments for Doxygen.
5974
b9e795ee
TT
59752014-02-25 Tom Tromey <tromey@redhat.com>
5976
5977 * target.h (target_ignore): Don't declare.
5978 * target.c (target_ignore): Remove.
5979
849c862e
JK
59802014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5981
5982 PR gdb/16626
5983 * auto-load.c (auto_load_objfile_script_1): Change filename to
5984 debugfile.
5985
475109d8
JB
59862014-02-25 Joel Brobecker <brobecker@adacore.com>
5987
5988 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5989 documentation. Adjust prototype to match the target_ops
5990 to_xfer_partial method. Adjust implementation accordingly.
5991
e186c3bd
HZ
59922014-02-25 Hui Zhu <hui@codesourcery.com>
5993
5994 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5995 to_traceframe_info.
5996
6d451942
KB
59972014-02-25 Kevin Buettner <kevinb@redhat.com>
5998
041ab8b4 5999 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6000 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6001 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6002 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6003 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6004 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6005 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6006 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6007 New constants.
6008 (rl78_register_type): Use a data pointer type for SP and
6009 new pseudo registers mentioned above. Use a 16 bit integer
6010 type for all other register pairs.
6011 (rl78_register_name, rl78_g10_register_name): Update for
6012 new pseudo registers.
6013 (rl78_pseudo_register_read): Likewise.
6014 (rl78_pseudo_register_write): Likewise.
6015 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6016 to the newly added pseudo registers.
6017
eddf0bae
DE
60182014-02-24 Doug Evans <dje@google.com>
6019
6020 * value.c (record_latest_value): Fix comment.
6021 * printcmd.c (print_command_1): Remove code to handle -1 return from
6022 record_latest_value.
6023
e96027e0
PA
60242014-02-24 Pedro Alves <palves@redhat.com>
6025
6026 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6027 deprecated_xfer_memory hook.
6028 (procfs_xfer_partial): Call procfs_xfer_memory instead
6029 of the deprecated_xfer_memory target hook.
6030 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6031 helper.
6032
0837c976
YZ
60332014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6034
6035 * windows-nat.c (windows_xfer_shared_libraries): Return
6036 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6037 requested object is TARGET_OBJECT_LIBRARIES.
6038
bc113b4e
YQ
60392014-02-24 Yao Qi <yao@codesourcery.com>
6040
6041 * target.h (enum target_xfer_status)
6042 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6043 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6044 explicitly. New.
6045 * corefile.c (memory_error_message): User updated.
6046 * exec.c (section_table_read_available_memory): Likewise.
6047 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6048 * target.c (target_xfer_status_to_string): Likewise.
6049 (raw_memory_xfer_partial): Likewise.
6050 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6051 * valops.c (read_value_memory): Likewise.
6052 * exec.h: Update comments.
6053
01cb8804
YQ
60542014-02-24 Yao Qi <yao@codesourcery.com>
6055
6056 * target.c (target_xfer_status_to_string): Rename argument err
6057 to status.
6058 * target.h (target_xfer_status_to_string): Update declaration.
6059 Replace target_xfer_error_to_string with
6060 target_xfer_status_to_string in comment.
6061
93063aa6
YQ
60622014-02-24 Yao Qi <yao@codesourcery.com>
6063
6064 * mips-linux-nat.c (super_close): Update its type.
6065 (mips_linux_close): Pass 'self' to super_close.
6066
5c328c05
YQ
60672014-02-24 Yao Qi <yao@codesourcery.com>
6068
6069 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6070 * corefile.c (read_memory): Adjusted.
6071 * target.c (target_write_with_progress): Adjusted.
6072
f73023dd
YQ
60732014-02-23 Yao Qi <yao@codesourcery.com>
6074
6075 Revert two patches:
6076
6077 2013-10-25 Yao Qi <yao@codesourcery.com>
6078
6079 * remote.c (remote_traceframe_info): Return early if
6080 traceframe is not selected.
6081
6082 2013-07-19 Yao Qi <yao@codesourcery.com>
6083
6084 * target.c (update_current_target): Change the default action
6085 of 'to_traceframe_info' from tcomplain to return_zero.
6086 * target.h (struct target_ops) <to_traceframe_info>: Add more
6087 comments.
6088
5a2eb0ef
YQ
60892014-02-23 Yao Qi <yao@codesourcery.com>
6090
6091 * valops.c (read_value_memory): Rewrite it. Call
6092 target_xfer_partial in a loop.
6093 * exec.h (section_table_available_memory): Remove declaration.
6094 Move comments to ...
6095 * exec.c (section_table_available_memory): ... here. Make it
6096 static.
6097
1ee79381
YQ
60982014-02-23 Yao Qi <yao@codesourcery.com>
6099
6100 * exec.c (section_table_read_available_memory): New function.
6101 * exec.h (section_table_read_available_memory): Declare.
6102 * ctf.c (ctf_xfer_partial): Call
6103 section_table_read_available_memory.
6104 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6105
1ca49d37
YQ
61062014-02-23 Yao Qi <yao@codesourcery.com>
6107
6108 * ctf.c (ctf_xfer_partial): Move code to ...
6109 * exec.c (exec_read_partial_read_only): ... it. New function.
6110 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6111 * tracefile.c: Include "exec.h".
6112 * exec.h (exec_read_partial_read_only): Declare.
6113
a283690e
YQ
61142014-02-23 Yao Qi <yao@codesourcery.com>
6115
6116 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6117 (tfile_has_memory): Remove.
6118 (init_tfile_ops): Don't set fields to_has_all_memory and
6119 to_has_memory of tfile_ops.
6120 * tracefile.c (tracefile_has_all_memory): New function.
6121 (tracefile_has_memory): New function.
6122 (init_tracefile_ops): Initialize fields to_has_all_memory and
6123 to_has_memory of 'ops'.
6124
12e03cd0
YQ
61252014-02-23 Yao Qi <yao@codesourcery.com>
6126
6127 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6128 (ctf_thread_alive, ctf_get_trace_status): Remove.
6129 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6130 init_tracefile_ops.
6131 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6132 (tfile_has_stack, tfile_has_registers): Remove.
6133 (tfile_thread_alive): Remove.
6134 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6135 init_tracefile_ops.
6136 * tracefile.c (tracefile_has_stack): New function.
6137 (tracefile_has_registers): New function.
6138 (tracefile_thread_alive): New function.
6139 (tracefile_get_trace_status): New function.
6140 (init_tracefile_ops): New function.
6141 * tracefile.h (init_tracefile_ops): Declare.
6142
11395323
YQ
61432014-02-23 Yao Qi <yao@codesourcery.com>
6144
6145 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6146 (O_LARGEFILE): Likewise.
6147 (tfile_ops): Likewise.
6148 (TRACE_HEADER_SIZE): Likewise.
6149 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6150 (cur_data_size): Likewise.
6151 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6152 (tfile_close, tfile_files_info): Likewise.
6153 (tfile_get_trace_status): Likewise.
6154 (tfile_get_tracepoint_status): Likewise.
6155 (tfile_get_traceframe_address): Likewise.
6156 (tfile_trace_find, match_blocktype): Likewise.
6157 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6158 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6159 (tfile_get_trace_state_variable_value): Likewise.
6160 (tfile_has_all_memory, tfile_has_memory): Likewise.
6161 (tfile_has_stack, tfile_has_registers): Likewise.
6162 (tfile_thread_alive, build_traceframe_info): Likewise.
6163 (tfile_traceframe_info, init_tfile_ops): Likewise.
6164 (_initialize_tracepoint): Don't call init_tfile_ops
6165 and add_target_with_completer.
6166 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6167 exec.h, completer.h and filenames.h.
6168 (_initialize_tracefile_tfile): New function.
6169
7951c4eb
YQ
61702014-02-23 Yao Qi <yao@codesourcery.com>
6171
6172 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6173 tracefile-tfile.o.
6174 (HFILES_NO_SRCDIR): Add tracefile.h.
6175 * ctf.c: Include "tracefile.h".
6176 * tracefile.h: New file.
6177 * tracefile.c: New file
6178 * tracefile-tfile.c: New file.
6179 * tracepoint.c: Include "tracefile.h".
6180 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6181 (stop_reason_names): Add const.
6182 (trace_file_writer_xfree): Move it to tracefile.c.
6183 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6184 (trace_save_ctf): Likewise.
6185 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6186 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6187 (tfile_write_header, tfile_write_regblock_type): Likewise.
6188 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6189 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6190 (tfile_write_raw_data, tfile_end): Likewise.
6191 (tfile_trace_file_writer_new): Likewise.
6192 (free_uploaded_tp): Make it extern.
6193 (free_uploaded_tsv): Make it extern.
6194 (_initialize_tracepoint): Move code to register command 'tsave'
6195 to tracefile.c.
6196 * tracepoint.h (stop_reason_names): Declare.
6197 (struct trace_frame_write_ops): Move it to tracefile.h.
6198 (struct trace_file_write_ops): Likewise.
6199 (struct trace_file_writer): Likewise.
6200 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6201
184cd072
JK
62022014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6203
6204 PR gdb/16594
6205 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6206 process name.
6207 (get_cores_used_by_process): New parameter num_cores, use it.
6208 (linux_xfer_osdata_processes): Pass num_cores to it.
6209 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6210 process name.
6211
c63528fc
AK
62122014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6213
6214 * target.c (memory_xfer_partial): Fix length arg in call to
6215 breakpoint_xfer_memory.
6216
d7b30f67
SDJ
62172014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6218
6219 PR tdep/16397
6220 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6221 number comes after the + or - signs. Adjust length of register
6222 name to be extracted.
6223
8838afaf
TT
62242014-02-20 Tom Tromey <tromey@redhat.com>
6225
6226 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6227 (ada_varobj_ops): Mark "extern".
6228
05227d14
TT
62292014-02-20 Tom Tromey <tromey@redhat.com>
6230
6231 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6232
1254eefc
DE
62332014-02-20 Doug Evans <xdje42@gmail.com>
6234
6235 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6236 All callers updated.
6237 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6238 All callers updated.
6239 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6240 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6241
adde2bff
DE
62422014-02-20 lin zuojian <manjian2006@gmail.com>
6243 Joel Brobecker <brobecker@adacore.com>
6244 Doug Evans <xdje42@gmail.com>
6245
6246 PR symtab/16581
6247 * dwarf2read.c (struct die_info): New member in_process.
6248 (reset_die_in_process): New function.
6249 (process_die): Set it at the start, reset when returning.
6250 (inherit_abstract_dies): Only call process_die if origin_child_die
6251 not already being processed.
6252
3be75f87
JB
62532014-02-20 Joel Brobecker <brobecker@adacore.com>
6254
6255 * windows-nat.c (handle_unload_dll): Add function documentation.
6256 (do_initial_windows_stuff): Add comment explaining why we wait
6257 until after inferior initialization has finished before
6258 processing all DLLs.
6259
47f7ffdb
JB
62602014-02-20 Joel Brobecker <brobecker@adacore.com>
6261
6262 * windows-nat.c (get_module_name): Delete.
6263 (windows_get_exec_module_filename): New function, mostly
6264 inspired from get_module_name.
6265 (windows_pid_to_exec_file): Replace call to get_module_name
6266 by call to windows_get_exec_module_filename.
6267
1cd9feab
JB
62682014-02-20 Joel Brobecker <brobecker@adacore.com>
6269
6270 * windows-nat.c (handle_load_dll): Rewrite this function's
6271 introductory comment. Remove code using get_module_name
6272 to get the DLL's name.
6273
ea39ad35
JB
62742014-02-20 Joel Brobecker <brobecker@adacore.com>
6275
6276 * windows-nat.c (get_windows_debug_event): Ignore
6277 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6278 if windows_initialization_done == 0.
6279 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6280 Adjust implementation to always load all DLLs.
6281 (do_initial_windows_stuff): Replace call to
6282 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6283
95060284
JB
62842014-02-20 Joel Brobecker <brobecker@adacore.com>
6285
6286 * windows-nat.c (_initialize_windows_nat): Deprecate the
6287 "dll-symbols" command. Turn the "add-shared-symbol-files"
6288 and "assf" aliases into commands, and deprecate them as well.
6289 * NEWS: Add entry explaining that "dll-symbols" and its two
6290 aliases are now deprecated.
6291
8d4fdb12
JB
62922014-02-20 Joel Brobecker <brobecker@adacore.com>
6293
6294 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6295 new-line in debug string. Remove trailing spaces.
6296
1b281443
SS
62972014-02-19 Stan Shebs <stan@codesourcery.com>
6298
6299 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6300
f7bd0f78
SC
63012014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6302
6303 * NEWS: Add entry for the new feature
6304 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6305 and class values.
6306
399ebc3d
SS
63072014-02-19 Stan Shebs <stan@codesourcery.com>
6308
6309 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6310
c658158d
PA
63112014-02-19 Pedro Alves <palves@redhat.com>
6312
6313 * common/ptid.h (struct ptid): Mention that process_stratum
6314 targets should prefer ptid.lwp.
6315
ba348170
PA
63162014-02-19 Pedro Alves <palves@redhat.com>
6317
6318 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6319 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6320 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6321 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6322 store remote thread ids rather than ptid.tid.
6323 (_initialize_remote): Adjust.
6324
ac01945b
TT
63252014-02-19 Tom Tromey <tromey@redhat.com>
6326
6327 * target.c (target_get_unwinder): Rewrite.
6328 (target_get_tailcall_unwinder): Rewrite.
6329 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6330 (record_btrace_to_get_tailcall_unwinder): New function.
6331 (init_record_btrace_ops): Update.
6332 * target.h (struct target_ops) <to_get_unwinder,
6333 to_get_tailcall_unwinder>: Now function pointers. Use
6334 TARGET_DEFAULT_RETURN.
6335
8476dc92
TT
63362014-02-19 Tom Tromey <tromey@redhat.com>
6337
6338 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6339 argument.
6340 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6341
c0eca49f
TT
63422014-02-19 Tom Tromey <tromey@redhat.com>
6343
6344 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6345 directly.
6346 * target-delegates.c: Rebuild.
6347 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6348 TARGET_DEFAULT_FUNC.
6349 * target.c (default_target_decr_pc_after_break): Rename from
6350 forward_target_decr_pc_after_break. Simplify.
6351 (target_decr_pc_after_break): Rely on delegation.
6352
596b6b39
TT
63532014-02-19 Tom Tromey <tromey@redhat.com>
6354
6355 * target.c (update_current_target): Do not INHERIT to_doc or
6356 to_magic. Do not de_fault to_open or to_close.
6357
b427c1bc
TT
63582014-02-19 Tom Tromey <tromey@redhat.com>
6359
6360 * gcore.h (objfile_find_memory_regions): Declare.
6361 * gcore.c (objfile_find_memory_regions): No longer static. Add
6362 "self" argument.
6363 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6364 * exec.c: Include gcore.h.
6365 (exec_set_find_memory_regions): Remove.
6366 (exec_find_memory_regions): Remove.
6367 (exec_do_find_memory_regions): Remove.
6368 (init_exec_ops): Update.
6369 * defs.h (exec_set_find_memory_regions): Remove.
6370
9b144037
TT
63712014-02-19 Tom Tromey <tromey@redhat.com>
6372
6373 * target-delegates.c: Rebuild.
6374 * target.h (struct target_ops) <to_extra_thread_info,
6375 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6376 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6377 not 0, in TARGET_DEFAULT_RETURN.
6378
555bbdeb
TT
63792014-02-19 Tom Tromey <tromey@redhat.com>
6380
6381 * target.c (complete_target_initialization): Remove casts. Use
6382 return_zero_has_execution.
6383 (return_zero): Add "ignore" argument.
6384 (return_zero_has_execution): New function.
6385 (init_dummy_target): Remove casts. Use
6386 return_zero_has_execution.
6387
be4ddd36
TT
63882014-02-19 Tom Tromey <tromey@redhat.com>
6389
6390 * target.c (update_current_target): Update comments. Do not
6391 INHERIT to_stratum.
6392
2117c711
TT
63932014-02-19 Tom Tromey <tromey@redhat.com>
6394
6395 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6396 needed.
6397 * corelow.c (core_read_description): Delegate when needed.
6398 * remote.c (remote_read_description): Delegate when needed.
6399 * target-delegates.c: Rebuild.
6400 * target.c (target_read_description): Rewrite.
6401 * target.h (struct target_ops) <to_read_description>: Update
6402 comment. Use TARGET_DEFAULT_RETURN.
6403
e88ef65c
TT
64042014-02-19 Tom Tromey <tromey@redhat.com>
6405
6406 * target-delegates.c: Rebuild.
6407 * target.c (update_current_target): Don't inherit or default
6408 to_can_run.
6409 (find_default_run_target): Check against delegate_can_run.
6410 * target.h (struct target_ops) <to_can_run>: Use
6411 TARGET_DEFAULT_RETURN.
6412
86a0854a
TT
64132014-02-19 Tom Tromey <tromey@redhat.com>
6414
6415 * target-delegates.c: Rebuild.
6416 * target.c (target_disconnect): Unconditionally delegate.
6417 * target.h (struct target_ops) <to_disconnect>: Use
6418 TARGET_DEFAULT_NORETURN.
6419
ee97f592
TT
64202014-02-19 Tom Tromey <tromey@redhat.com>
6421
6422 * record.c (record_stop): Unconditionally delegate.
6423 * target-delegates.c: Rebuild.
6424 * target.c (target_stop_recording): Unconditionally delegate.
6425 * target.h (struct target_ops) <to_stop_recording>: Use
6426 TARGET_DEFAULT_IGNORE.
6427
6dc7fcf4
TT
64282014-02-19 Tom Tromey <tromey@redhat.com>
6429
6430 * target-delegates.c: Rebuild.
6431 * target.c (target_enable_btrace): Unconditionally delegate.
6432 * target.h (struct target_ops) <to_enable_btrace>: Use
6433 TARGET_DEFAULT_NORETURN.
6434
eb5b20d4
TT
64352014-02-19 Tom Tromey <tromey@redhat.com>
6436
6437 * target-delegates.c: Rebuild.
6438 * target.c (target_read_btrace): Unconditionally delegate.
6439 * target.h (struct target_ops) <to_read_btrace>: Use
6440 TARGET_DEFAULT_NORETURN.
6441
9ace480d
TT
64422014-02-19 Tom Tromey <tromey@redhat.com>
6443
6444 * target-delegates.c: Rebuild.
6445 * target.c (target_teardown_btrace): Unconditionally delegate.
6446 * target.h (struct target_ops) <to_teardown_btrace>: Use
6447 TARGET_DEFAULT_NORETURN.
6448
8dc292d3
TT
64492014-02-19 Tom Tromey <tromey@redhat.com>
6450
6451 * target-delegates.c: Rebuild.
6452 * target.c (target_disable_btrace): Unconditionally delegate.
6453 * target.h (struct target_ops) <to_disable_btrace>: Use
6454 TARGET_DEFAULT_NORETURN.
6455
58a5184e
TT
64562014-02-19 Tom Tromey <tromey@redhat.com>
6457
6458 * target-delegates.c: Rebuild.
6459 * target.c (default_search_memory): New function.
6460 (simple_search_memory): Update comment.
6461 (target_search_memory): Unconditionally delegate.
6462 * target.h (struct target_ops) <to_search_memory>: Use
6463 TARGET_DEFAULT_FUNC.
6464
8de71aab
TT
64652014-02-19 Tom Tromey <tromey@redhat.com>
6466
6467 * auxv.c (default_auxv_parse): No longer static.
6468 (target_auxv_parse): Unconditionally delegate.
6469 * auxv.h (default_auxv_parse): Declare.
6470 * target-delegates.c: Rebuild.
6471 * target.c: Include auxv.h.
6472 * target.h (struct target_ops) <to_auxv_parse>: Use
6473 TARGET_DEFAULT_FUNC.
6474
6b2c5a57
TT
64752014-02-19 Tom Tromey <tromey@redhat.com>
6476
6477 * target-delegates.c: Rebuild.
6478 * target.c (target_memory_map): Unconditionally delegate.
6479 * target.h (struct target_ops) <to_memory_map>: Use
6480 TARGET_DEFAULT_RETURN.
6481
cbffc065
TT
64822014-02-19 Tom Tromey <tromey@redhat.com>
6483
6484 * target-delegates.c: Rebuild.
6485 * target.c (target_thread_alive): Unconditionally delegate.
6486 * target.h (struct target_ops) <to_thread_alive>: Use
6487 TARGET_DEFAULT_RETURN.
6488
f09e2107
TT
64892014-02-19 Tom Tromey <tromey@redhat.com>
6490
6491 * target-delegates.c: Rebuild.
6492 * target.c (target_save_record): Unconditionally delegate.
6493 * target.h (struct target_ops) <to_save_record>: Use
6494 TARGET_DEFAULT_NORETURN.
6495
07366925
TT
64962014-02-19 Tom Tromey <tromey@redhat.com>
6497
6498 * target-delegates.c: Rebuild.
6499 * target.c (target_delete_record): Unconditionally delegate.
6500 * target.h (struct target_ops) <to_delete_record>: Use
6501 TARGET_DEFAULT_NORETURN.
6502
dd2e9d25
TT
65032014-02-19 Tom Tromey <tromey@redhat.com>
6504
6505 * target-delegates.c: Rebuild.
6506 * target.c (target_record_is_replaying): Unconditionally
6507 delegate.
6508 * target.h (struct target_ops) <to_record_is_replaying>: Use
6509 TARGET_DEFAULT_RETURN.
6510
671e76cc
TT
65112014-02-19 Tom Tromey <tromey@redhat.com>
6512
6513 * target-delegates.c: Rebuild.
6514 * target.c (target_goto_record_begin): Unconditionally delegate.
6515 * target.h (struct target_ops) <to_goto_record_begin>: Use
6516 TARGET_DEFAULT_NORETURN.
6517
e9179bb3
TT
65182014-02-19 Tom Tromey <tromey@redhat.com>
6519
6520 * target-delegates.c: Rebuild.
6521 * target.c (target_goto_record_end): Unconditionally delegate.
6522 * target.h (struct target_ops) <to_goto_record_end>: Use
6523 TARGET_DEFAULT_NORETURN.
6524
05969c84
TT
65252014-02-19 Tom Tromey <tromey@redhat.com>
6526
6527 * target-delegates.c: Rebuild.
6528 * target.c (target_goto_record): Unconditionally delegate.
6529 * target.h (struct target_ops) <to_goto_record>: Use
6530 TARGET_DEFAULT_NORETURN.
6531
3679abfa
TT
65322014-02-19 Tom Tromey <tromey@redhat.com>
6533
6534 * target-delegates.c: Rebuild.
6535 * target.c (target_insn_history): Unconditionally delegate.
6536 * target.h (struct target_ops) <to_insn_history>: Use
6537 TARGET_DEFAULT_NORETURN.
6538
8444ab58
TT
65392014-02-19 Tom Tromey <tromey@redhat.com>
6540
6541 * target-delegates.c: Rebuild.
6542 * target.c (target_insn_history_from): Unconditionally delegate.
6543 * target.h (struct target_ops) <to_insn_history_from>: Use
6544 TARGET_DEFAULT_NORETURN.
6545
c29302cc
TT
65462014-02-19 Tom Tromey <tromey@redhat.com>
6547
6548 * target-delegates.c: Rebuild.
6549 * target.c (target_insn_history_range): Unconditionally delegate.
6550 * target.h (struct target_ops) <to_insn_history_range>: Use
6551 TARGET_DEFAULT_NORETURN.
6552
170049d4
TT
65532014-02-19 Tom Tromey <tromey@redhat.com>
6554
6555 * target-delegates.c: Rebuild.
6556 * target.c (target_call_history): Unconditionally delegate.
6557 * target.h (struct target_ops) <to_call_history>: Use
6558 TARGET_DEFAULT_NORETURN.
6559
16fc27d6
TT
65602014-02-19 Tom Tromey <tromey@redhat.com>
6561
6562 * target-delegates.c: Rebuild.
6563 * target.c (target_call_history_from): Unconditionally delegate.
6564 * target.h (struct target_ops) <to_call_history_from>: Use
6565 TARGET_DEFAULT_NORETURN.
6566
115d9817
TT
65672014-02-19 Tom Tromey <tromey@redhat.com>
6568
6569 * target-delegates.c: Rebuild.
6570 * target.c (target_call_history_range): Unconditionally delegate.
6571 * target.h (struct target_ops) <to_call_history_range>: Use
6572 TARGET_DEFAULT_NORETURN.
6573
eb276a6b
TT
65742014-02-19 Tom Tromey <tromey@redhat.com>
6575
6576 * target-delegates.c: Rebuild.
6577 * target.c (target_verify_memory): Unconditionally delegate.
6578 * target.h (struct target_ops) <to_verify_memory>: Use
6579 TARGET_DEFAULT_NORETURN.
6580
9e538d0d
TT
65812014-02-19 Tom Tromey <tromey@redhat.com>
6582
6583 * target-delegates.c: Rebuild.
6584 * target.c (target_core_of_thread): Unconditionally delegate.
6585 * target.h (struct target_ops) <to_core_of_thread>: Use
6586 TARGET_DEFAULT_RETURN.
6587
f6fb2925
TT
65882014-02-19 Tom Tromey <tromey@redhat.com>
6589
6590 * target-delegates.c: Rebuild.
6591 * target.c (target_flash_done): Unconditionally delegate.
6592 * target.h (struct target_ops) <to_flash_done>: Use
6593 TARGET_DEFAULT_NORETURN.
6594
e8a6c6ac
TT
65952014-02-19 Tom Tromey <tromey@redhat.com>
6596
6597 * target-delegates.c: Rebuild.
6598 * target.c (target_flash_erase): Unconditionally delegate.
6599 * target.h (struct target_ops) <to_flash_erase>: Use
6600 TARGET_DEFAULT_NORETURN.
6601
7e35c012
TT
66022014-02-19 Tom Tromey <tromey@redhat.com>
6603
6604 * target-delegates.c: Rebuild.
6605 * target.c (target_get_section_table): Unconditionally delegate.
6606 * target.h (struct target_ops) <to_get_section_table>: Use
6607 TARGET_DEFAULT_RETURN.
6608
770234d3
TT
66092014-02-19 Tom Tromey <tromey@redhat.com>
6610
6611 * target-delegates.c: Rebuild.
6612 * target.c (target_pid_to_str): Unconditionally delegate.
6613 (init_dummy_target): Don't initialize to_pid_to_str.
6614 (default_pid_to_str): Rename from dummy_pid_to_str.
6615 * target.h (struct target_ops) <to_pid_to_str>: Use
6616 TARGET_DEFAULT_FUNC.
6617
09b0dc2b
TT
66182014-02-19 Tom Tromey <tromey@redhat.com>
6619
6620 * target-delegates.c: Rebuild.
6621 * target.c (target_find_new_threads): Unconditionally delegate.
6622 * target.h (struct target_ops) <to_find_new_threads>: Use
6623 TARGET_DEFAULT_RETURN.
6624
7d4f8efa
TT
66252014-02-19 Tom Tromey <tromey@redhat.com>
6626
6627 * target-delegates.c: Rebuild.
6628 * target.c (target_program_signals): Unconditionally delegate.
6629 * target.h (struct target_ops) <to_program_signals>: Use
6630 TARGET_DEFAULT_IGNORE.
6631
035cad7f
TT
66322014-02-19 Tom Tromey <tromey@redhat.com>
6633
6634 * target-delegates.c: Rebuild.
6635 * target.c (target_pass_signals): Unconditionally delegate.
6636 * target.h (struct target_ops) <to_pass_signals>: Use
6637 TARGET_DEFAULT_IGNORE.
6638
8d657035
TT
66392014-02-19 Tom Tromey <tromey@redhat.com>
6640
6641 * target-delegates.c: Rebuild.
6642 * target.c (default_mourn_inferior): New function.
6643 (target_mourn_inferior): Unconditionally delegate.
6644 * target.h (struct target_ops) <to_mourn_inferior>: Use
6645 TARGET_DEFAULT_FUNC.
6646
098dba18
TT
66472014-02-19 Tom Tromey <tromey@redhat.com>
6648
6649 * target-delegates.c: Rebuild.
6650 * target.c (default_follow_fork): New function.
6651 (target_follow_fork): Unconditionally delegate.
6652 * target.h (struct target_ops) <to_follow_fork>: Use
6653 TARGET_DEFAULT_FUNC.
6654
423a4807
TT
66552014-02-19 Tom Tromey <tromey@redhat.com>
6656
6657 * target-delegates.c: Rebuild.
6658 * target.c (target_kill): Unconditionally delegate.
6659 * target.h (struct target_ops) <to_kill>: Use
6660 TARGET_DEFAULT_NORETURN.
6661
6c7e5e5c
TT
66622014-02-19 Tom Tromey <tromey@redhat.com>
6663
6664 * target-delegates.c: Rebuild.
6665 * target.c (target_masked_watch_num_registers): Unconditionally
6666 delegate.
6667 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6668 Use TARGET_DEFAULT_RETURN.
6669
8b1c364c
TT
66702014-02-19 Tom Tromey <tromey@redhat.com>
6671
6672 * target-delegates.c: Rebuild.
6673 * target.c (target_remove_mask_watchpoint): Unconditionally
6674 delegate.
6675 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6676 TARGET_DEFAULT_RETURN.
6677
cd4ae029
TT
66782014-02-19 Tom Tromey <tromey@redhat.com>
6679
6680 * target-delegates.c: Rebuild.
6681 * target.c (target_insert_mask_watchpoint): Unconditionally
6682 delegate.
6683 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6684 TARGET_DEFAULT_RETURN.
6685
a134316b
TT
66862014-02-19 Tom Tromey <tromey@redhat.com>
6687
6688 * target-delegates.c: Rebuild.
6689 * target.c (target_ranged_break_num_registers): Unconditionally
6690 delegate.
6691 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6692 Use TARGET_DEFAULT_RETURN.
6693
ad5989bd
TT
66942014-02-19 Tom Tromey <tromey@redhat.com>
6695
6696 * target-delegates.c: Rebuild.
6697 * target.c (target_fetch_registers): Unconditionally delegate.
6698 * target.h (struct target_ops) <to_fetch_registers>: Use
6699 TARGET_DEFAULT_NORETURN.
6700
46ee7e8d
TT
67012014-02-19 Tom Tromey <tromey@redhat.com>
6702
6703 * target-delegates.c: Rebuild.
6704 * target.c (update_current_target): Don't inherit or default
6705 to_stop.
6706 * target.h (struct target_ops) <to_stop>: Use
6707 TARGET_DEFAULT_IGNORE.
6708
843f59ed
TT
67092014-02-19 Tom Tromey <tromey@redhat.com>
6710
6711 * target-delegates.c: Rebuild.
6712 * target.c (update_current_target): Don't inherit or default
6713 to_can_run_breakpoint_commands.
6714 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6715 Use TARGET_DEFAULT_RETURN.
6716
ccfde2a0
TT
67172014-02-19 Tom Tromey <tromey@redhat.com>
6718
6719 * target-delegates.c: Rebuild.
6720 * target.c (update_current_target): Don't inherit or default
6721 to_supports_evaluation_of_breakpoint_conditions.
6722 * target.h (struct target_ops)
6723 <to_supports_evaluation_of_breakpoint_conditions>: Use
6724 TARGET_DEFAULT_RETURN.
6725
0de91722
TT
67262014-02-19 Tom Tromey <tromey@redhat.com>
6727
6728 * target-delegates.c: Rebuild.
6729 * target.c (update_current_target): Don't inherit or default
6730 to_augmented_libraries_svr4_read.
6731 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6732 Use TARGET_DEFAULT_RETURN.
6733
9a7d8b48
TT
67342014-02-19 Tom Tromey <tromey@redhat.com>
6735
6736 * target-delegates.c: Rebuild.
6737 * target.c (update_current_target): Don't inherit or default
6738 to_can_use_agent.
6739 * target.h (struct target_ops) <to_can_use_agent>: Use
6740 TARGET_DEFAULT_RETURN.
6741
d9db5b21
TT
67422014-02-19 Tom Tromey <tromey@redhat.com>
6743
6744 * target-delegates.c: Rebuild.
6745 * target.c (update_current_target): Don't inherit or default
6746 to_use_agent.
6747 * target.h (struct target_ops) <to_use_agent>: Use
6748 TARGET_DEFAULT_NORETURN.
6749
92155eeb
TT
67502014-02-19 Tom Tromey <tromey@redhat.com>
6751
6752 * target-delegates.c: Rebuild.
6753 * target.c (update_current_target): Don't inherit or default
6754 to_traceframe_info.
6755 (return_null): Remove.
6756 * target.h (struct target_ops) <to_traceframe_info>: Use
6757 TARGET_DEFAULT_RETURN.
6758
d6522a22
TT
67592014-02-19 Tom Tromey <tromey@redhat.com>
6760
6761 * target-delegates.c: Rebuild.
6762 * target.c (update_current_target): Don't inherit or default
6763 to_static_tracepoint_markers_by_strid.
6764 * target.h (struct target_ops)
6765 <to_static_tracepoint_markers_by_strid>: Use
6766 TARGET_DEFAULT_NORETURN.
6767
4c3e4425
TT
67682014-02-19 Tom Tromey <tromey@redhat.com>
6769
6770 * target-delegates.c: Rebuild.
6771 * target.c (update_current_target): Don't inherit or default
6772 to_static_tracepoint_marker_at.
6773 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6774 Use TARGET_DEFAULT_RETURN.
6775
dcd6917f
TT
67762014-02-19 Tom Tromey <tromey@redhat.com>
6777
6778 * target-delegates.c: Rebuild.
6779 * target.c (update_current_target): Don't inherit or default
6780 to_set_permissions.
6781 * target.h (struct target_ops) <to_set_permissions>: Use
6782 TARGET_DEFAULT_IGNORE.
6783
22bcceee
TT
67842014-02-19 Tom Tromey <tromey@redhat.com>
6785
6786 * target-delegates.c: Rebuild.
6787 * target.c (update_current_target): Don't inherit or default
6788 to_get_tib_address.
6789 * target.h (struct target_ops) <to_get_tib_address>: Use
6790 TARGET_DEFAULT_NORETURN.
6791
8586ccaa
TT
67922014-02-19 Tom Tromey <tromey@redhat.com>
6793
6794 * target-delegates.c: Rebuild.
6795 * target.c (update_current_target): Don't inherit or default
6796 to_set_trace_notes.
6797 * target.h (struct target_ops) <to_set_trace_notes>: Use
6798 TARGET_DEFAULT_RETURN.
6799
91df8d1d
TT
68002014-02-19 Tom Tromey <tromey@redhat.com>
6801
6802 * target-delegates.c: Rebuild.
6803 * target.c (update_current_target): Don't initialize
6804 to_set_trace_buffer_size.
6805 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6806 TARGET_DEFAULT_IGNORE.
6807
8d526939
TT
68082014-02-19 Tom Tromey <tromey@redhat.com>
6809
6810 * target-delegates.c: Rebuild.
6811 * target.c (update_current_target): Don't inherit or default
6812 to_set_circular_trace_buffer.
6813 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6814 TARGET_DEFAULT_IGNORE.
6815
0bcfeddf
TT
68162014-02-19 Tom Tromey <tromey@redhat.com>
6817
6818 * target-delegates.c: Rebuild.
6819 * target.c (update_current_target): Don't inherit or default
6820 to_set_disconnected_tracing.
6821 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6822 TARGET_DEFAULT_IGNORE.
6823
9249843f
TT
68242014-02-19 Tom Tromey <tromey@redhat.com>
6825
6826 * target-delegates.c: Rebuild.
6827 * target.c (update_current_target): Don't inherit or default
6828 to_get_min_fast_tracepoint_insn_len.
6829 (return_minus_one): Remove.
6830 * target.h (struct target_ops)
6831 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6832
ace92e7d
TT
68332014-02-19 Tom Tromey <tromey@redhat.com>
6834
6835 * target-delegates.c: Rebuild.
6836 * target.c (update_current_target): Don't inherit or default
6837 to_get_raw_trace_data.
6838 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6839 TARGET_DEFAULT_NORETURN.
6840
08120467
TT
68412014-02-19 Tom Tromey <tromey@redhat.com>
6842
6843 * target-delegates.c: Rebuild.
6844 * target.c (update_current_target): Don't inherit or default
6845 to_upload_trace_state_variables.
6846 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6847 Use TARGET_DEFAULT_RETURN.
6848
1e949b00
TT
68492014-02-19 Tom Tromey <tromey@redhat.com>
6850
6851 * target-delegates.c: Rebuild.
6852 * target.c (update_current_target): Don't inherit or default
6853 to_upload_tracepoints.
6854 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6855 TARGET_DEFAULT_RETURN.
6856
a2e6c147
TT
68572014-02-19 Tom Tromey <tromey@redhat.com>
6858
6859 * target-delegates.c: Rebuild.
6860 * target.c (update_current_target): Don't inherit or default
6861 to_save_trace_data.
6862 * target.h (struct target_ops) <to_save_trace_data>: Use
6863 TARGET_DEFAULT_NORETURN.
6864
959bcd0b
TT
68652014-02-19 Tom Tromey <tromey@redhat.com>
6866
6867 * target-delegates.c: Rebuild.
6868 * target.c (update_current_target): Don't inherit or default
6869 to_get_trace_state_variable_value.
6870 * target.h (struct target_ops)
6871 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6872
afc94e66
TT
68732014-02-19 Tom Tromey <tromey@redhat.com>
6874
6875 * target-delegates.c: Rebuild.
6876 * target.c (update_current_target): Don't inherit or default
6877 to_trace_find.
6878 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6879
e51c07ea
TT
68802014-02-19 Tom Tromey <tromey@redhat.com>
6881
6882 * target-delegates.c: Rebuild.
6883 * target.c (update_current_target): Don't inherit or default
6884 to_trace_stop.
6885 * target.h (struct target_ops) <to_trace_stop>: Use
6886 TARGET_DEFAULT_NORETURN.
6887
6fea14cd
TT
68882014-02-19 Tom Tromey <tromey@redhat.com>
6889
6890 * target-delegates.c: Rebuild.
6891 * target.c (update_current_target): Don't inherit or default
6892 to_get_tracepoint_status.
6893 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6894 TARGET_DEFAULT_NORETURN.
6895
4072d4ff
TT
68962014-02-19 Tom Tromey <tromey@redhat.com>
6897
6898 * target-delegates.c: Rebuild.
6899 * target.c (update_current_target): Don't inherit or default
6900 to_get_trace_status.
6901 * target.h (struct target_ops) <to_get_trace_status>: Use
6902 TARGET_DEFAULT_RETURN.
6903
25da2e80
TT
69042014-02-19 Tom Tromey <tromey@redhat.com>
6905
6906 * target-delegates.c: Rebuild.
6907 * target.c (update_current_target): Don't inherit or default
6908 to_trace_start.
6909 * target.h (struct target_ops) <to_trace_start>: Use
6910 TARGET_DEFAULT_NORETURN.
6911
86dd181d
TT
69122014-02-19 Tom Tromey <tromey@redhat.com>
6913
6914 * target-delegates.c: Rebuild.
6915 * target.c (update_current_target): Don't inherit or default
6916 to_trace_set_readonly_regions.
6917 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6918 Use TARGET_DEFAULT_NORETURN.
6919
05c41993
TT
69202014-02-19 Tom Tromey <tromey@redhat.com>
6921
6922 * target-delegates.c: Rebuild.
6923 * target.c (update_current_target): Don't inherit or default
6924 to_disable_tracepoint.
6925 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6926 TARGET_DEFAULT_NORETURN.
6927
151f70f1
TT
69282014-02-19 Tom Tromey <tromey@redhat.com>
6929
6930 * target-delegates.c: Rebuild.
6931 * target.c (update_current_target): Don't inherit or default
6932 to_enable_tracepoint.
6933 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6934 TARGET_DEFAULT_NORETURN.
6935
94eb98b9
TT
69362014-02-19 Tom Tromey <tromey@redhat.com>
6937
6938 * target-delegates.c: Rebuild.
6939 * target.c (update_current_target): Don't inherit or default
6940 to_download_trace_state_variable.
6941 * target.h (struct target_ops) <to_download_trace_state_variable>:
6942 Use TARGET_DEFAULT_NORETURN.
6943
719acc4a
TT
69442014-02-19 Tom Tromey <tromey@redhat.com>
6945
6946 * target-delegates.c: Rebuild.
6947 * target.c (update_current_target): Don't inherit or default
6948 to_can_download_tracepoint.
6949 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6950 TARGET_DEFAULT_RETURN.
6951
9a980a22
TT
69522014-02-19 Tom Tromey <tromey@redhat.com>
6953
6954 * target-delegates.c: Rebuild.
6955 * target.c (update_current_target): Don't inherit or default
6956 to_download_tracepoint.
6957 * target.h (struct target_ops) <to_download_tracepoint>: Use
6958 TARGET_DEFAULT_NORETURN.
6959
5536135b
TT
69602014-02-19 Tom Tromey <tromey@redhat.com>
6961
6962 * target-delegates.c: Rebuild.
6963 * target.c (update_current_target): Don't inherit or default
6964 to_trace_init.
6965 * target.h (struct target_ops) <to_trace_init>: Use
6966 TARGET_DEFAULT_RETURN.
6967
9409d39e
TT
69682014-02-19 Tom Tromey <tromey@redhat.com>
6969
6970 * target-delegates.c: Rebuild.
6971 * target.c (update_current_target): Don't inherit or default
6972 to_supports_string_tracing.
6973 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6974 TARGET_DEFAULT_RETURN.
6975
aab1b22d
TT
69762014-02-19 Tom Tromey <tromey@redhat.com>
6977
6978 * target-delegates.c: Rebuild.
6979 * target.c (update_current_target): Don't inherit or default
6980 to_supports_enable_disable_tracepoint.
6981 * target.h (struct target_ops)
6982 <to_supports_enable_disable_tracepoint>: Use
6983 TARGET_DEFAULT_RETURN.
6984
a7304748
TT
69852014-02-19 Tom Tromey <tromey@redhat.com>
6986
6987 * target-delegates.c: Rebuild.
6988 * target.c (update_current_target): Don't inherit or default
6989 to_supports_multi_process.
6990 * target.h (struct target_ops) <to_supports_multi_process>: Use
6991 TARGET_DEFAULT_RETURN.
6992
4229b31d
TT
69932014-02-19 Tom Tromey <tromey@redhat.com>
6994
6995 * target-delegates.c: Rebuild.
6996 * target.c (update_current_target): Don't inherit or default
6997 to_get_ada_task_ptid.
6998 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6999 TARGET_DEFAULT_FUNC.
7000
43eba180
TT
70012014-02-19 Tom Tromey <tromey@redhat.com>
7002
7003 * target-delegates.c: Rebuild.
7004 * target.c (update_current_target): Don't inherit or default
7005 to_thread_architecture.
7006 * target.h (struct target_ops) <to_thread_architecture>: Use
7007 TARGET_DEFAULT_FUNC.
7008
fe31bf5b
TT
70092014-02-19 Tom Tromey <tromey@redhat.com>
7010
7011 * target-delegates.c: Rebuild.
7012 * target.c (update_current_target): Don't inherit or default
7013 to_execution_direction.
7014 * target.h (struct target_ops) <to_execution_direction>: Use
7015 TARGET_DEFAULT_FUNC.
7016
53e1cfc7
TT
70172014-02-19 Tom Tromey <tromey@redhat.com>
7018
7019 * target-delegates.c: Rebuild.
7020 * target.c (update_current_target): Don't inherit or default
7021 to_can_execute_reverse.
7022 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7023 TARGET_DEFAULT_RETURN.
7024 (target_can_execute_reverse): Unconditionally delegate.
7025
9bb9d61d
TT
70262014-02-19 Tom Tromey <tromey@redhat.com>
7027
7028 * target-delegates.c: Rebuild.
7029 * target.c (update_current_target): Don't inherit or default
7030 to_goto_bookmark.
7031 (dummy_goto_bookmark): Remove.
7032 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7033 * target.h (struct target_ops) <to_goto_bookmark>: Use
7034 TARGET_DEFAULT_NORETURN.
7035
3dbafbbb
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_get_bookmark.
7041 (dummy_get_bookmark): Remove.
7042 (init_dummy_target): Don't inherit or default to_get_bookmark.
7043 * target.h (struct target_ops) <to_get_bookmark>: Use
7044 TARGET_DEFAULT_NORETURN
7045
16f796b1
TT
70462014-02-19 Tom Tromey <tromey@redhat.com>
7047
7048 * target-delegates.c: Rebuild.
7049 * target.c (update_current_target): Don't inherit or default
7050 to_make_corefile_notes.
7051 (init_dummy_target): Don't initialize to_make_corefile_notes.
7052 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7053 TARGET_DEFAULT_FUNC.
7054
0b5a2719
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_find_memory_regions.
7060 (init_dummy_target): Don't initialize to_find_memory_regions.
7061 * target.h (struct target_ops) <to_find_memory_regions>: Use
7062 TARGET_DEFAULT_FUNC.
7063
d9cb0195
TT
70642014-02-19 Tom Tromey <tromey@redhat.com>
7065
7066 * target-delegates.c: Rebuild.
7067 * target.c (update_current_target): Don't inherit or default
7068 to_log_command.
7069 * target.h (struct target_ops) <to_log_command>: Use
7070 TARGET_DEFAULT_IGNORE.
7071 (target_log_command): Unconditionally delegate.
7072
830ca330
TT
70732014-02-19 Tom Tromey <tromey@redhat.com>
7074
7075 * target-delegates.c: Rebuild.
7076 * target.c (update_current_target): Don't inherit or default
7077 to_pid_to_exec_file.
7078 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7079 TARGET_DEFAULT_RETURN.
7080
825828fc
TT
70812014-02-19 Tom Tromey <tromey@redhat.com>
7082
7083 * target-delegates.c: Rebuild.
7084 * target.c (update_current_target): Don't inherit or default
7085 to_thread_name.
7086 (target_thread_name): Unconditionally delegate.
7087 * target.h (struct target_ops) <to_thread_name>: Use
7088 TARGET_DEFAULT_RETURN.
7089
4a7e6dda
TT
70902014-02-19 Tom Tromey <tromey@redhat.com>
7091
7092 * target-delegates.c: Rebuild.
7093 * target.c (update_current_target): Don't inherit or default
7094 to_extra_thread_info.
7095 * target.h (struct target_ops) <to_extra_thread_info>: Use
7096 TARGET_DEFAULT_RETURN.
7097
0db88c1d
TT
70982014-02-19 Tom Tromey <tromey@redhat.com>
7099
7100 * target-delegates.c: Rebuild.
7101 * target.c (update_current_target): Don't inherit or default
7102 to_has_exited.
7103 * target.h (struct target_ops) <to_has_exited>: Use
7104 TARGET_DEFAULT_RETURN..
7105
6a9fa051
TT
71062014-02-19 Tom Tromey <tromey@redhat.com>
7107
7108 * target-delegates.c: Rebuild.
7109 * target.c (update_current_target): Don't inherit or default
7110 to_set_syscall_catchpoint.
7111 (return_one): Remove.
7112 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7113 TARGET_DEFAULT_RETURN.
7114
62f64d7a
TT
71152014-02-19 Tom Tromey <tromey@redhat.com>
7116
7117 * target-delegates.c: Rebuild.
7118 * target.c (update_current_target): Don't inherit or default
7119 to_insert_exec_catchpoint.
7120 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7121 TARGET_DEFAULT_RETURN.
7122
cda0f38c
TT
71232014-01-08 Tom Tromey <tromey@redhat.com>
7124
7125 * target-delegates.c: Rebuild.
7126 * target.c (update_current_target): Don't inherit or default
7127 to_insert_exec_catchpoint.
7128 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7129 TARGET_DEFAULT_RETURN.
7130
95c3375e
TT
71312014-02-19 Tom Tromey <tromey@redhat.com>
7132
7133 * target-delegates.c: Rebuild.
7134 * target.c (update_current_target): Don't inherit or default
7135 to_remove_vfork_catchpoint.
7136 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7137 TARGET_DEFAULT_RETURN.
7138
7e18a8dc
TT
71392014-02-19 Tom Tromey <tromey@redhat.com>
7140
7141 * target-delegates.c: Rebuild.
7142 * target.c (update_current_target): Don't inherit or default
7143 to_insert_vfork_catchpoint.
7144 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7145 TARGET_DEFAULT_RETURN.
7146
e1a21fb7
TT
71472014-02-19 Tom Tromey <tromey@redhat.com>
7148
7149 * target-delegates.c: Rebuild.
7150 * target.c (update_current_target): Don't inherit or default
7151 to_remove_fork_catchpoint.
7152 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7153 TARGET_DEFAULT_RETURN.
7154
5958ebeb
TT
71552014-02-19 Tom Tromey <tromey@redhat.com>
7156
7157 * target-delegates.c: Rebuild.
7158 * target.c (update_current_target): Don't inherit or default
7159 to_insert_fork_catchpoint.
7160 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7161 TARGET_DEFAULT_RETURN.
7162
340ba4bf
TT
71632014-02-19 Tom Tromey <tromey@redhat.com>
7164
7165 * target-delegates.c: Rebuild.
7166 * target.c (update_current_target): Don't inherit or default
7167 to_post_startup_inferior.
7168 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7169 TARGET_DEFAULT_IGNORE.
7170
7634da87
TT
71712014-02-19 Tom Tromey <tromey@redhat.com>
7172
7173 * target-delegates.c: Rebuild.
7174 * target.c (update_current_target): Don't inherit or default
7175 to_load.
7176 * target.h (struct target_ops) <to_load>: Use
7177 TARGET_DEFAULT_NORETURN.
7178
e19e919f
TT
71792014-02-19 Tom Tromey <tromey@redhat.com>
7180
7181 * target-delegates.c: Rebuild.
7182 * target.c (update_current_target): Don't inherit or default
7183 to_terminal_info.
7184 * target.h (struct target_ops) <to_terminal_info>: Use
7185 TARGET_DEFAULT_FUNC.
7186
c6ea8f79
TT
71872014-02-19 Tom Tromey <tromey@redhat.com>
7188
7189 * target-delegates.c: Rebuild.
7190 * target.c (update_current_target): Don't inherit or default
7191 to_terminal_save_ours.
7192 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7193 TARGET_DEFAULT_IGNORE.
7194
e4a733f1
TT
71952014-02-19 Tom Tromey <tromey@redhat.com>
7196
7197 * target-delegates.c: Rebuild.
7198 * target.c (update_current_target): Don't inherit or default
7199 to_terminal_ours.
7200 * target.h (struct target_ops) <to_terminal_ours>: Use
7201 TARGET_DEFAULT_IGNORE.
7202
74fcbef9
TT
72032014-02-19 Tom Tromey <tromey@redhat.com>
7204
7205 * target-delegates.c: Rebuild.
7206 * target.c (update_current_target): Don't inherit or default
7207 to_terminal_ours_for_output.
7208 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7209 TARGET_DEFAULT_IGNORE.
7210
ddeaacc9
TT
72112014-02-19 Tom Tromey <tromey@redhat.com>
7212
7213 * target-delegates.c: Rebuild.
7214 * target.c (update_current_target): Don't inherit or default
7215 to_terminal_inferior.
7216 * target.h (struct target_ops) <to_terminal_inferior>: Use
7217 TARGET_DEFAULT_IGNORE.
7218
0343661d
TT
72192014-02-19 Tom Tromey <tromey@redhat.com>
7220
7221 * target-delegates.c: Rebuild.
7222 * target.c (update_current_target): Don't inherit or default
7223 to_terminal_init.
7224 * target.h (struct target_ops) <to_terminal_init>: Use
7225 TARGET_DEFAULT_IGNORE.
7226
77cdffe9
TT
72272014-02-19 Tom Tromey <tromey@redhat.com>
7228
7229 * target-delegates.c: Rebuild.
7230 * target.c (update_current_target): Don't inherit or default
7231 to_can_accel_watchpoint_condition.
7232 * target.h (struct target_ops)
7233 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7234
d03655e4
TT
72352014-02-19 Tom Tromey <tromey@redhat.com>
7236
7237 * target-delegates.c: Rebuild.
7238 * target.c (update_current_target): Don't inherit or default
7239 to_region_ok_for_hw_watchpoint.
7240 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7241 Use TARGET_DEFAULT_FUNC.
7242
65f160a9
TT
72432014-02-19 Tom Tromey <tromey@redhat.com>
7244
7245 * target-delegates.c: Rebuild.
7246 * target.c (update_current_target): Don't inherit or default
7247 to_watchpoint_addr_within_range.
7248 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7249 Use TARGET_DEFAULT_FUNC.
7250
61dd109f
TT
72512014-02-19 Tom Tromey <tromey@redhat.com>
7252
7253 * target-delegates.c: Rebuild.
7254 * target.c (update_current_target): Don't inherit or default
7255 to_remove_watchpoint.
7256 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7257 TARGET_DEFAULT_NORETURN.
7258
016facd4
TT
72592014-02-19 Tom Tromey <tromey@redhat.com>
7260
7261 * target-delegates.c: Rebuild.
7262 * target.c (update_current_target): Don't inherit or default
7263 to_insert_watchpoint.
7264 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7265 TARGET_DEFAULT_RETURN.
7266
418dabac
TT
72672014-02-19 Tom Tromey <tromey@redhat.com>
7268
7269 * target-delegates.c: Rebuild.
7270 * target.c (update_current_target): Don't inherit or default
7271 to_remove_hw_breakpoint.
7272 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7273 TARGET_DEFAULT_RETURN.
7274
61b371f9
TT
72752014-02-19 Tom Tromey <tromey@redhat.com>
7276
7277 * target-delegates.c: Rebuild.
7278 * target.c (update_current_target): Don't inherit or default
7279 to_insert_hw_breakpoint.
7280 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7281 TARGET_DEFAULT_RETURN.
7282
52b51d06
TT
72832014-02-19 Tom Tromey <tromey@redhat.com>
7284
7285 * target-delegates.c: Rebuild.
7286 * target.c (update_current_target): Don't inherit or default
7287 to_can_use_hw_breakpoint.
7288 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7289 TARGET_DEFAULT_RETURN.
7290
f86e59b2
TT
72912014-02-19 Tom Tromey <tromey@redhat.com>
7292
7293 * target-delegates.c: Rebuild.
7294 * target.c (update_current_target): Don't inherit or default
7295 to_files_info.
7296 * target.h (struct target_ops) <to_files_info>: Use
7297 TARGET_DEFAULT_IGNORE.
7298
6c628163
TT
72992014-02-19 Tom Tromey <tromey@redhat.com>
7300
7301 * target-delegates.c: Rebuild.
7302 * target.c (update_current_target): Don't inherit or default
7303 to_store.
7304 * target.h (struct target_ops) <to_store>: Use
7305 TARGET_DEFAULT_NORETURN.
7306
bebd3233
TT
73072014-02-19 Tom Tromey <tromey@redhat.com>
7308
7309 * target-delegates.c: Rebuild.
7310 * target.c (update_current_target): Don't inherit or default
7311 to_post_attach.
7312 * target.h (struct target_ops) <to_post_attach>: Use
7313 TARGET_DEFAULT_IGNORE.
7314
a53f3625
TT
73152014-02-19 Tom Tromey <tromey@redhat.com>
7316
7317 * target-delegates.c: Rebuild.
7318 * target.c (update_current_target): Don't inherit or default
7319 to_rcmd.
7320 (default_rcmd): New function.
7321 (do_monitor_command): Unconditionally delegate.
7322 * target.h (struct target_ops) <to_rmcd>: Use
7323 TARGET_DEFAULT_FUNC.
7324
e9a29200
TT
73252014-02-19 Tom Tromey <tromey@redhat.com>
7326
7327 * target-delegates.c: Rebuild.
7328 * target.c (init_dummy_target): Don't initialize to_attach.
7329 (target_attach): Unconditionally delegate.
7330 * target.h (struct target_ops) <to_attach>: Use
7331 TARGET_DEFAULT_FUNC.
7332
09da0d0a
TT
73332014-02-19 Tom Tromey <tromey@redhat.com>
7334
7335 * target-delegates.c: Rebuild.
7336 * target.c (target_detach): Unconditionally delegate.
7337 (init_dummy_target): Don't initialize to_detach.
7338 * target.h (struct target_ops) <to_detach>: Use
7339 TARGET_DEFAULT_IGNORE.
7340
5436ff03
TT
73412014-02-19 Tom Tromey <tromey@redhat.com>
7342
7343 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7344 Add argument.
7345 (target_augmented_libraries_svr4_read): Add argument.
7346 * target.c (update_current_target): Update.
7347 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7348 argument.
7349
f0d960ea
TT
73502014-02-19 Tom Tromey <tromey@redhat.com>
7351
7352 * target.h (struct target_ops) <to_call_history_range>: Add
7353 argument.
7354 * target.c (target_call_history_range): Add argument.
7355 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7356 argument.
7357 (record_btrace_call_history_from): Update.
7358
ec0aea04
TT
73592014-02-19 Tom Tromey <tromey@redhat.com>
7360
7361 * target.h (struct target_ops) <to_call_history_from>: Add
7362 argument.
7363 * target.c (target_call_history_from): Add argument.
7364 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7365 argument.
7366
5df2fcba
TT
73672014-02-19 Tom Tromey <tromey@redhat.com>
7368
7369 * target.h (struct target_ops) <to_call_history>: Add argument.
7370 * target.c (target_call_history): Add argument.
7371 * record-btrace.c (record_btrace_call_history): Add 'self'
7372 argument.
7373
4e99c6b7
TT
73742014-02-19 Tom Tromey <tromey@redhat.com>
7375
7376 * target.h (struct target_ops) <to_insn_history_range>: Add
7377 argument.
7378 * target.c (target_insn_history_range): Add argument.
7379 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7380 argument.
7381 (record_btrace_insn_history_from): Update.
7382
9abc3ff3
TT
73832014-02-19 Tom Tromey <tromey@redhat.com>
7384
7385 * target.h (struct target_ops) <to_insn_history_from>: Add
7386 argument.
7387 * target.c (target_insn_history_from): Add argument.
7388 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7389 argument.
7390
7a6c5609
TT
73912014-02-19 Tom Tromey <tromey@redhat.com>
7392
7393 * target.h (struct target_ops) <to_insn_history>: Add argument.
7394 * target.c (target_insn_history): Add argument.
7395 * record-btrace.c (record_btrace_insn_history): Add 'self'
7396 argument.
7397
606183ac
TT
73982014-02-19 Tom Tromey <tromey@redhat.com>
7399
7400 * target.h (struct target_ops) <to_goto_record>: Add argument.
7401 * target.c (target_goto_record): Add argument.
7402 * record-full.c (record_full_goto): Add 'self' argument.
7403 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7404
307a1b91
TT
74052014-02-19 Tom Tromey <tromey@redhat.com>
7406
7407 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7408 * target.c (target_goto_record_end): Add argument.
7409 * record-full.c (record_full_goto_end): Add 'self' argument.
7410 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7411
08475817
TT
74122014-02-19 Tom Tromey <tromey@redhat.com>
7413
7414 * target.h (struct target_ops) <to_goto_record_begin>: Add
7415 argument.
7416 * target.c (target_goto_record_begin): Add argument.
7417 * record-full.c (record_full_goto_begin): Add 'self' argument.
7418 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7419 argument.
7420
1c63c994
TT
74212014-02-19 Tom Tromey <tromey@redhat.com>
7422
7423 * target.h (struct target_ops) <to_record_is_replaying>: Add
7424 argument.
7425 * target.c (target_record_is_replaying): Add argument.
7426 * record-full.c (record_full_is_replaying): Add 'self' argument.
7427 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7428 argument.
7429 (record_btrace_xfer_partial, record_btrace_store_registers)
7430 (record_btrace_prepare_to_store, record_btrace_resume)
7431 (record_btrace_wait, record_btrace_decr_pc_after_break)
7432 (record_btrace_find_new_threads, record_btrace_thread_alive):
7433 Update.
7434
d1b55219
TT
74352014-02-19 Tom Tromey <tromey@redhat.com>
7436
7437 * target.h (struct target_ops) <to_delete_record>: Add argument.
7438 * target.c (target_delete_record): Add argument.
7439 * record-full.c (record_full_delete): Add 'self' argument.
7440
1390f529
TT
74412014-02-19 Tom Tromey <tromey@redhat.com>
7442
7443 * target.h (struct target_ops) <to_save_record>: Add argument.
7444 * target.c (target_save_record): Add argument.
7445 * record-full.c (record_full_save): Add 'self' argument.
7446 (record_full_save): Add 'self' argument.
7447
630d6a4a
TT
74482014-02-19 Tom Tromey <tromey@redhat.com>
7449
7450 * target.h (struct target_ops) <to_info_record>: Add argument.
7451 * target.c (target_info_record): Add argument.
7452 * record.c (info_record_command): Add argument.
7453 * record-full.c (record_full_info): Add 'self' argument.
7454 * record-btrace.c (record_btrace_info): Add 'self' argument.
7455
c6cd7c02
TT
74562014-02-19 Tom Tromey <tromey@redhat.com>
7457
7458 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7459 * target.c (target_stop_recording): Add argument.
7460 * record.c (record_stop): Add argument.
7461 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7462 argument.
7463
39c49f83
TT
74642014-02-19 Tom Tromey <tromey@redhat.com>
7465
7466 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7467 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7468 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7469 argument.
7470 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7471 (_initialize_amd64_linux_nat): Use it.
7472 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7473 (_initialize_i386_linux_nat): Use it.
7474
1777056d
TT
74752014-02-19 Tom Tromey <tromey@redhat.com>
7476
7477 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7478 * target.c (target_teardown_btrace): Add argument.
7479 * remote.c (remote_teardown_btrace): Add 'self' argument.
7480 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7481 argument.
7482 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7483 argument.
7484
25e95349
TT
74852014-02-19 Tom Tromey <tromey@redhat.com>
7486
7487 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7488 * target.c (target_disable_btrace): Add argument.
7489 * remote.c (remote_disable_btrace): Add 'self' argument.
7490 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7491 argument.
7492 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7493 argument.
7494
e3c49f88
TT
74952014-02-19 Tom Tromey <tromey@redhat.com>
7496
7497 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7498 * target.c (target_enable_btrace): Add argument.
7499 * remote.c (remote_enable_btrace): Add 'self' argument.
7500 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7501 argument.
7502 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7503 argument.
7504
fe38f897
TT
75052014-02-19 Tom Tromey <tromey@redhat.com>
7506
7507 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7508 (target_can_use_agent): Add argument.
7509 * target.c (update_current_target): Update.
7510 * remote.c (remote_can_use_agent): Add 'self' argument.
7511 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7512
2c152180
TT
75132014-02-19 Tom Tromey <tromey@redhat.com>
7514
7515 * target.h (struct target_ops) <to_use_agent>: Add argument.
7516 (target_use_agent): Add argument.
7517 * target.c (update_current_target): Update.
7518 * remote.c (remote_use_agent): Add 'self' argument.
7519 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7520
a893e81f
TT
75212014-02-19 Tom Tromey <tromey@redhat.com>
7522
7523 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7524 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7525 (target_traceframe_info): Add argument.
7526 * target.c (update_current_target): Update.
7527 * remote.c (remote_traceframe_info): Add 'self' argument.
7528 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7529
c686c57f
TT
75302014-02-19 Tom Tromey <tromey@redhat.com>
7531
7532 * target.h (target_static_tracepoint_markers_by_strid): Add
7533 argument.
7534 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7535 'self' argument.
7536 * target.c (update_current_target): Update.
7537 * remote.c (struct target_ops)
7538 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7539 * linux-nat.c (struct target_ops)
7540 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7541
61fc905d
TT
75422014-02-19 Tom Tromey <tromey@redhat.com>
7543
7544 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7545 Add argument.
7546 (target_static_tracepoint_marker_at): Add argument.
7547 * target.c (update_current_target): Update.
7548 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7549 argument.
7550
c378d69d
TT
75512014-02-19 Tom Tromey <tromey@redhat.com>
7552
7553 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7554 (target_set_permissions): Add argument.
7555 * target.c (update_current_target): Update.
7556 * remote.c (remote_set_permissions): Add 'self' argument.
7557 (remote_start_remote): Update.
7558
bd7ae0f5
TT
75592014-02-19 Tom Tromey <tromey@redhat.com>
7560
7561 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7562 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7563 (target_get_tib_address): Add argument.
7564 * target.c (update_current_target): Update.
7565 * remote.c (remote_get_tib_address): Add 'self' argument.
7566
d9e68a2c
TT
75672014-02-19 Tom Tromey <tromey@redhat.com>
7568
7569 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7570 (target_set_trace_notes): Add argument.
7571 * target.c (update_current_target): Update.
7572 * remote.c (remote_set_trace_notes): Add 'self' argument.
7573
4da384be
TT
75742014-02-19 Tom Tromey <tromey@redhat.com>
7575
7576 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7577 argument.
7578 (target_set_trace_buffer_size): Add argument.
7579 * target.c (update_current_target): Update.
7580 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7581
736d5b1f
TT
75822014-02-19 Tom Tromey <tromey@redhat.com>
7583
7584 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7585 argument.
7586 (target_set_circular_trace_buffer): Add argument.
7587 * target.c (update_current_target): Update.
7588 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7589 argument.
7590
37b25738
TT
75912014-02-19 Tom Tromey <tromey@redhat.com>
7592
7593 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7594 argument.
7595 (target_set_disconnected_tracing): Add argument.
7596 * target.c (update_current_target): Update.
7597 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7598
0e67620a
TT
75992014-02-19 Tom Tromey <tromey@redhat.com>
7600
7601 * target.h (struct target_ops)
7602 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7603 (target_get_min_fast_tracepoint_insn_len): Add argument.
7604 * target.c (update_current_target): Update.
7605 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7606 argument.
7607
88ee6f45
TT
76082014-02-19 Tom Tromey <tromey@redhat.com>
7609
7610 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7611 argument.
7612 (target_get_raw_trace_data): Add argument.
7613 * target.c (update_current_target): Update.
7614 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7615
181e3713
TT
76162014-02-19 Tom Tromey <tromey@redhat.com>
7617
7618 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7619 Add argument.
7620 (target_upload_trace_state_variables): Add argument.
7621 * target.c (update_current_target): Update.
7622 * remote.c (remote_upload_trace_state_variables): Add 'self'
7623 argument.
7624 (remote_start_remote): Update.
7625
ab6617cc
TT
76262014-02-19 Tom Tromey <tromey@redhat.com>
7627
7628 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7629 argument.
7630 (target_upload_tracepoints): Add argument.
7631 * target.c (update_current_target): Update.
7632 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7633 (remote_start_remote): Update.
7634
dc3decaf
TT
76352014-02-19 Tom Tromey <tromey@redhat.com>
7636
7637 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7638 (target_save_trace_data): Add argument.
7639 * target.c (update_current_target): Update.
7640 * remote.c (remote_save_trace_data): Add 'self' argument.
7641
4011015b
TT
76422014-02-19 Tom Tromey <tromey@redhat.com>
7643
7644 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7645 argument.
7646 * target.h (struct target_ops)
7647 <to_get_trace_state_variable_value>: Add argument.
7648 (target_get_trace_state_variable_value): Add argument.
7649 * target.c (update_current_target): Update.
7650 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7651 argument.
7652 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7653
bd4c6793
TT
76542014-02-19 Tom Tromey <tromey@redhat.com>
7655
7656 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7657 * target.h (struct target_ops) <to_trace_find>: Add argument.
7658 (target_trace_find): Add argument.
7659 * target.c (update_current_target): Update.
7660 * remote.c (remote_trace_find): Add 'self' argument.
7661 * ctf.c (ctf_trace_find): Add 'self' argument.
7662
74499f1b
TT
76632014-02-19 Tom Tromey <tromey@redhat.com>
7664
7665 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7666 (target_trace_stop): Add argument.
7667 * target.c (update_current_target): Update.
7668 * remote.c (remote_trace_stop): Add 'self' argument.
7669
db90e85c
TT
76702014-02-19 Tom Tromey <tromey@redhat.com>
7671
7672 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7673 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7674 argument.
7675 (target_get_tracepoint_status): Add argument.
7676 * target.c (update_current_target): Update.
7677 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7678
8bd200f1
TT
76792014-02-19 Tom Tromey <tromey@redhat.com>
7680
7681 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7682 * target.h (struct target_ops) <to_get_trace_status>: Add
7683 argument.
7684 (target_get_trace_status): Add argument.
7685 * target.c (update_current_target): Update.
7686 * remote.c (remote_get_trace_status): Add 'self' argument.
7687 (remote_start_remote, remote_can_download_tracepoint): Update.
7688 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7689
e2d1aae3
TT
76902014-02-19 Tom Tromey <tromey@redhat.com>
7691
7692 * target.h (struct target_ops) <to_trace_start>: Add argument.
7693 (target_trace_start): Add argument.
7694 * target.c (update_current_target): Update.
7695 * remote.c (remote_trace_start): Add 'self' argument.
7696
583f9a86
TT
76972014-02-19 Tom Tromey <tromey@redhat.com>
7698
7699 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7700 Add argument.
7701 (target_trace_set_readonly_regions): Add argument.
7702 * target.c (update_current_target): Update.
7703 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7704 argument.
7705
780b049c
TT
77062014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7709 argument.
7710 (target_disable_tracepoint): Add argument.
7711 * target.c (update_current_target): Update.
7712 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7713
46670d57
TT
77142014-02-19 Tom Tromey <tromey@redhat.com>
7715
7716 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7717 argument.
7718 (target_enable_tracepoint): Add argument.
7719 * target.c (update_current_target): Update.
7720 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7721
559d2b81
TT
77222014-02-19 Tom Tromey <tromey@redhat.com>
7723
7724 * target.h (struct target_ops) <to_download_trace_state_variable>:
7725 Add argument.
7726 (target_download_trace_state_variable): Add argument.
7727 * target.c (update_current_target): Update.
7728 * remote.c (remote_download_trace_state_variable): Add 'self'
7729 argument.
7730
a52a8357
TT
77312014-02-19 Tom Tromey <tromey@redhat.com>
7732
7733 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7734 argument.
7735 (target_can_download_tracepoint): Add argument.
7736 * target.c (update_current_target): Update.
7737 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7738
548f7808
TT
77392014-02-19 Tom Tromey <tromey@redhat.com>
7740
7741 * target.h (struct target_ops) <to_download_tracepoint>: Add
7742 argument.
7743 (target_download_tracepoint): Add argument.
7744 * target.c (update_current_target): Update.
7745 * remote.c (remote_download_tracepoint): Add 'self' argument.
7746
ecae04e1
TT
77472014-02-19 Tom Tromey <tromey@redhat.com>
7748
7749 * target.h (struct target_ops) <to_trace_init>: Add argument.
7750 (target_trace_init): Add argument.
7751 * target.c (update_current_target): Update.
7752 * remote.c (remote_trace_init): Add 'self' argument.
7753
fab5aa7c
TT
77542014-02-19 Tom Tromey <tromey@redhat.com>
7755
7756 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7757 * target.c (target_fileio_readlink): Add argument.
7758 * remote.c (remote_hostio_readlink): Add 'self' argument.
7759 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7760
dbbca37d
TT
77612014-02-19 Tom Tromey <tromey@redhat.com>
7762
7763 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7764 * target.c (target_fileio_unlink): Add argument.
7765 * remote.c (remote_hostio_unlink): Add 'self' argument.
7766 (remote_file_delete): Update.
7767 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7768
df39ea25
TT
77692014-02-19 Tom Tromey <tromey@redhat.com>
7770
7771 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7772 * target.c (target_fileio_close): Add argument.
7773 * remote.c (remote_hostio_close): Add 'self' argument.
7774 (remote_hostio_close_cleanup): Update.
7775 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7776 Update.
7777 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7778
a3be983c
TT
77792014-02-19 Tom Tromey <tromey@redhat.com>
7780
7781 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7782 * target.c (target_fileio_pread): Add argument.
7783 * remote.c (remote_hostio_pread): Add 'self' argument.
7784 (remote_bfd_iovec_pread, remote_file_get): Update.
7785 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7786
0d866f62
TT
77872014-02-19 Tom Tromey <tromey@redhat.com>
7788
7789 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7790 * target.c (target_fileio_pwrite): Add argument.
7791 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7792 (remote_file_put): Update.
7793 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7794
cd897586
TT
77952014-02-19 Tom Tromey <tromey@redhat.com>
7796
7797 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7798 * target.c (target_fileio_open): Add argument.
7799 * remote.c (remote_hostio_open): Add 'self' argument.
7800 (remote_bfd_iovec_open): Add 'self' argument.
7801 (remote_file_put): Add 'self' argument.
7802 (remote_file_get): Add 'self' argument.
7803 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7804
78eff0ec
TT
78052014-02-19 Tom Tromey <tromey@redhat.com>
7806
7807 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7808 Add argument.
7809 (target_can_run_breakpoint_commands): Add argument.
7810 * target.c (update_current_target): Update.
7811 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7812 argument.
7813 (remote_insert_breakpoint): Add 'self' argument.
7814 (remote_insert_hw_breakpoint): Add 'self' argument.
7815 (remote_can_run_breakpoint_commands): Add 'self' argument.
7816
efcc2da7
TT
78172014-02-19 Tom Tromey <tromey@redhat.com>
7818
7819 * target.h (struct target_ops)
7820 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7821 (target_supports_evaluation_of_breakpoint_conditions): Add
7822 argument.
7823 * target.c (update_current_target): Update.
7824 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7825 argument.
7826 (remote_insert_breakpoint): Add 'self' argument.
7827 (remote_insert_hw_breakpoint): Add 'self' argument.
7828 (remote_supports_cond_breakpoints): Add 'self' argument.
7829
6de37a3a
TT
78302014-02-19 Tom Tromey <tromey@redhat.com>
7831
7832 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7833 argument.
7834 (target_supports_string_tracing): Add argument.
7835 * target.c (update_current_target): Update.
7836 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7837
2bfc0540
TT
78382014-02-19 Tom Tromey <tromey@redhat.com>
7839
7840 * target.h (struct target_ops)
7841 <to_supports_disable_randomization>: Add argument.
7842 * target.c (find_default_supports_disable_randomization): Add
7843 argument.
7844 (target_supports_disable_randomization): Add argument.
7845 (find_default_supports_disable_randomization): Add 'self'
7846 argument.
7847 * remote.c (extended_remote_supports_disable_randomization): Add
7848 'self' argument.
7849 (remote_supports_disable_randomization): Add 'self' argument.
7850 (extended_remote_create_inferior): Update.
7851 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7852 'self' argument.
7853
7d178d6a
TT
78542014-02-19 Tom Tromey <tromey@redhat.com>
7855
7856 * target.h (struct target_ops)
7857 <to_supports_enable_disable_tracepoint>: Add argument.
7858 (target_supports_enable_disable_tracepoint): Add argument.
7859 * target.c (update_current_target): Update.
7860 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7861 argument.
7862
86ce2668
TT
78632014-02-19 Tom Tromey <tromey@redhat.com>
7864
7865 * target.h (struct target_ops) <to_supports_multi_process>: Add
7866 argument.
7867 (target_supports_multi_process): Add argument.
7868 * target.c (update_current_target): Update.
7869 * remote.c (remote_supports_multi_process): Add 'self' argument.
7870 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7871 argument.
7872 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7873 argument.
7874
4c612759
TT
78752014-02-19 Tom Tromey <tromey@redhat.com>
7876
7877 * target.h (struct target_ops) <to_execution_direction>: Add
7878 argument.
7879 (target_execution_direction): Add argument.
7880 * target.c (default_execution_direction): Add 'self' argument.
7881 * record-full.c (record_full_execution_direction): Add 'self'
7882 argument.
7883
19db3e69
TT
78842014-02-19 Tom Tromey <tromey@redhat.com>
7885
7886 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7887 argument.
7888 (target_can_execute_reverse): Add argument.
7889 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7890 * record-full.c (record_full_can_execute_reverse): Add 'self'
7891 argument.
7892 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7893 argument.
7894
1e6b91a4
TT
78952014-02-19 Tom Tromey <tromey@redhat.com>
7896
7897 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7898 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7899 argument.
7900 (target_get_ada_task_ptid): Add argument.
7901 * target.c (update_current_target): Update.
7902 (default_get_ada_task_ptid): Add 'self' argument.
7903 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7904 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7905 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7906 argument.
7907 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7908 argument.
7909 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7910 argument.
7911 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7912 argument.
7913 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7914 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7915 argument.
7916
3c80fb48
TT
79172014-02-19 Tom Tromey <tromey@redhat.com>
7918
7919 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7920 (target_goto_bookmark): Add argument.
7921 * target.c (dummy_goto_bookmark): Add 'self' argument.
7922 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7923
dd0e2830
TT
79242014-02-19 Tom Tromey <tromey@redhat.com>
7925
7926 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7927 (target_get_bookmark): Add argument.
7928 * target.c (dummy_get_bookmark): Add 'self' argument.
7929 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7930
fc6691b2
TT
79312014-02-19 Tom Tromey <tromey@redhat.com>
7932
7933 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7934 argument.
7935 (target_make_corefile_notes): Add argument.
7936 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7937 * procfs.c (procfs_make_note_section): Add 'self' argument.
7938 (procfs_make_note_section): Add 'self' argument.
7939 (procfs_make_note_section): Add 'self' argument.
7940 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7941 argument.
7942 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7943 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7944 * exec.c (exec_make_note_section): Add 'self' argument.
7945 (exec_make_note_section): Add 'self' argument.
7946
2e73927c
TT
79472014-02-19 Tom Tromey <tromey@redhat.com>
7948
7949 * target.h (struct target_ops) <to_find_memory_regions>: Add
7950 argument.
7951 (target_find_memory_regions): Add argument.
7952 * target.c (dummy_find_memory_regions): Add 'self' argument.
7953 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7954 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7955 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7956 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7957 * exec. (exec_do_find_memory_regions): New global.
7958 (exec_set_find_memory_regions): Rewrite.
7959 (exec_find_memory_regions): New function.
7960 (init_exec_ops): Use exec_find_memory_regions.
7961
2a9a2795
TT
79622014-02-19 Tom Tromey <tromey@redhat.com>
7963
7964 * target.h (struct target_ops) <to_supports_non_stop>: Add
7965 argument.
7966 * target.c (find_default_supports_non_stop): Add argument.
7967 (target_supports_non_stop): Add argument.
7968 (find_default_supports_non_stop): Add 'self' argument.
7969 * remote.c (remote_supports_non_stop): Add 'self' argument.
7970 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7971
4ab76ea3
TT
79722014-02-19 Tom Tromey <tromey@redhat.com>
7973
7974 * target.h (struct target_ops) <to_log_command>: Add argument.
7975 (target_log_command): Add argument.
7976 * serial.h (serial_log_command): Add 'self' argument.
7977 * serial.c (serial_log_command): Add 'self' argument.
7978
8dd27370
TT
79792014-02-19 Tom Tromey <tromey@redhat.com>
7980
7981 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7982 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7983 argument.
7984 (target_pid_to_exec_file): Add argument.
7985 * target.c (debug_to_pid_to_exec_file): Add argument.
7986 (update_current_target): Update.
7987 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7988 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7989 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7990 (linux_handle_extended_wait): Update.
7991 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7992 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7993 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7994 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7995
1aac633b
TT
79962014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * target.h (struct target_ops) <to_rcmd>: Add argument.
7999 (target_rcmd): Add argument.
8000 * target.c (debug_to_rcmd): Add argument.
8001 (update_current_target, do_monitor_command): Update.
8002 * remote.c (remote_rcmd): Add 'self' argument.
8003 * monitor.c (monitor_rcmd): Add 'self' argument.
8004
1eab8a48
TT
80052014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * windows-nat.c (windows_stop): Add 'self' argument.
8008 * target.h (struct target_ops) <to_stop>: Add argument.
8009 * target.c (target_stop): Add argument.
8010 (debug_to_stop): Add argument.
8011 (update_current_target): Update.
8012 * remote.c (remote_stop): Add 'self' argument.
8013 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8014 (gdbsim_cntrl_c): Update.
8015 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8016 * procfs.c (procfs_stop): Add 'self' argument.
8017 * nto-procfs.c (procfs_stop): Add 'self' argument.
8018 * monitor.c (monitor_stop): Add 'self' argument.
8019 (monitor_open): Update.
8020 * linux-nat.c (linux_nat_stop): Add argument.
8021 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8022 * gnu-nat.c (gnu_stop): Add 'self' argument.
8023 * darwin-nat.c (darwin_stop): Add 'self' argument.
8024
503a628d
TT
80252014-02-19 Tom Tromey <tromey@redhat.com>
8026
8027 * target.h (struct target_ops) <to_thread_name>: Add argument.
8028 * target.c (target_thread_name): Add argument.
8029 (update_current_target): Update.
8030 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8031
c15906d8
TT
80322014-02-19 Tom Tromey <tromey@redhat.com>
8033
8034 * target.h (struct target_ops) <to_extra_thread_info>: Add
8035 argument.
8036 (target_extra_thread_info): Add argument.
8037 * target.c (update_current_target): Update.
8038 * remote.c (remote_threads_extra_info): Add 'self' argument.
8039 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8040 argument.
8041 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8042 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8043 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8044 argument.
8045 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8046 argument.
8047 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8048 argument.
8049 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8050 argument.
8051
daf5e9b6
TT
80522014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target.h (struct target_ops) <to_program_signals>: Add argument.
8055 * target.c (target_program_signals): Add argument.
8056 * remote.c (remote_program_signals): Add 'self' argument.
8057
94bedb42
TT
80582014-02-19 Tom Tromey <tromey@redhat.com>
8059
8060 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8061 * target.c (target_pass_signals): Add argument.
8062 * remote.c (remote_pass_signals): Add 'self' argument.
8063 (remote_start_remote): Update.
8064 * procfs.c (procfs_pass_signals): Add 'self' argument.
8065 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8066 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8067 (linux_nat_create_inferior, linux_nat_attach): Update.
8068
da82bd6b
TT
80692014-02-19 Tom Tromey <tromey@redhat.com>
8070
8071 * windows-nat.c (windows_can_run): Add 'self' argument.
8072 * target.h (struct target_ops) <to_can_run>: Add argument.
8073 (target_can_run): Add argument.
8074 * target.c (debug_to_can_run): Add argument.
8075 (update_current_target): Update.
8076 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8077 * inf-child.c (inf_child_can_run): Add 'self' argument.
8078 * go32-nat.c (go32_can_run): Add 'self' argument.
8079
d796e1d6
TT
80802014-02-19 Tom Tromey <tromey@redhat.com>
8081
8082 * target.h (struct target_ops) <to_has_exited>: Add argument.
8083 (target_has_exited): Add argument.
8084 * target.c (debug_to_has_exited): Add argument.
8085 (update_current_target): Update.
8086
ff214e67
TT
80872014-02-19 Tom Tromey <tromey@redhat.com>
8088
8089 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8090 argument.
8091 (target_set_syscall_catchpoint): Add argument.
8092 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8093 argument.
8094 * target.c (update_current_target): Update.
8095
758e29d2
TT
80962014-02-19 Tom Tromey <tromey@redhat.com>
8097
8098 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8099 argument.
8100 (target_remove_exec_catchpoint): Add argument.
8101 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8102 (update_current_target): Update.
8103 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8104 argument.
8105
ba025e51
TT
81062014-02-19 Tom Tromey <tromey@redhat.com>
8107
8108 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8109 argument.
8110 (target_insert_exec_catchpoint): Add argument.
8111 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8112 (update_current_target): Update.
8113 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8114 argument.
8115
e98cf0cd
TT
81162014-02-19 Tom Tromey <tromey@redhat.com>
8117
8118 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8119 argument.
8120 (target_remove_vfork_catchpoint): Add argument.
8121 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8122 (update_current_target): Update.
8123 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8124 argument.
8125
3ecc7da0
TT
81262014-02-19 Tom Tromey <tromey@redhat.com>
8127
8128 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8129 argument.
8130 (target_insert_vfork_catchpoint): Add argument.
8131 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8132 (update_current_target): Update.
8133 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8134 argument.
8135
973fc227
TT
81362014-02-19 Tom Tromey <tromey@redhat.com>
8137
8138 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8139 argument.
8140 (target_remove_fork_catchpoint): Add argument.
8141 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8142 (update_current_target): Update.
8143 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8144 argument.
8145
a863b201
TT
81462014-02-19 Tom Tromey <tromey@redhat.com>
8147
8148 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8149 argument.
8150 (target_insert_fork_catchpoint): Add argument.
8151 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8152 (update_current_target): Update.
8153 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8154 argument.
8155
2e97a79e
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8159 argument.
8160 (target_post_startup_inferior): Add argument.
8161 * target.c (debug_to_post_startup_inferior): Add argument.
8162 (update_current_target): Update.
8163 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8164 argument.
8165 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8166 argument.
8167 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8168 argument.
8169 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8170 argument.
8171 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8172 'self' argument.
8173 (super_post_startup_inferior): Likewise.
8174 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8175 'self' argument.
8176 (super_post_startup_inferior): Likewise.
8177 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8178 Add 'self' argument.
8179 (super_post_startup_inferior): Likewise.
8180
71a9f134
TT
81812014-02-19 Tom Tromey <tromey@redhat.com>
8182
8183 * target.h (struct target_ops) <to_load>: Add argument.
8184 * target.c (target_load): Add argument.
8185 (debug_to_load): Add argument.
8186 (update_current_target): Update.
8187 * remote.c (remote_load): Add 'self' argument.
8188 * remote-sim.c (gdbsim_load): Add 'self' argument.
8189 * remote-mips.c (mips_load): Add 'self' argument.
8190 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8191 * monitor.c (monitor_load): Add 'self' argument.
8192 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8193
0a4f40a2
TT
81942014-02-19 Tom Tromey <tromey@redhat.com>
8195
8196 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8197 (target_terminal_info): Add argument.
8198 * target.c (debug_to_terminal_info): Add argument.
8199 (default_terminal_info): Likewise.
8200 * inflow.c (child_terminal_info): Add 'self' argument.
8201 * inferior.h (child_terminal_info): Add 'self' argument.
8202 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8203
ae3bd431
TT
82042014-02-19 Tom Tromey <tromey@redhat.com>
8205
8206 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8207 argument.
8208 (target_terminal_save_ours): Add argument.
8209 * target.c (debug_to_terminal_save_ours): Add argument.
8210 (update_current_target): Update.
8211 * inflow.c (terminal_save_ours): Add 'self' argument.
8212 * inferior.h (terminal_save_ours): Add 'self' argument.
8213
e3594fd1
TT
82142014-02-19 Tom Tromey <tromey@redhat.com>
8215
8216 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8217 (target_terminal_ours): Add argument.
8218 * target.c (debug_to_terminal_ours): Add argument.
8219 (update_current_target): Update.
8220 * remote.c (remote_terminal_ours): Add 'self' argument.
8221 (remote_close): Update.
8222 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8223 * inflow.c (terminal_ours): Add 'self' argument.
8224 * inferior.h (terminal_ours): Add 'self' argument.
8225 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8226
2e1e1a19
TT
82272014-02-19 Pedro Alves <palves@redhat.com>
8228 Tom Tromey <tromey@redhat.com>
8229
8230 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8231 argument.
8232 (target_terminal_ours_for_output): Add argument.
8233 * target.c (debug_to_terminal_ours_for_output): Add argument.
8234 (update_current_target): Update.
8235 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8236 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8237 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8238
d2f640d4
TT
82392014-02-19 Tom Tromey <tromey@redhat.com>
8240
8241 * target.h (struct target_ops) <to_terminal_inferior>: Add
8242 argument.
8243 * target.c (target_terminal_inferior): Add argument.
8244 (update_current_target): Update.
8245 * remote.c (remote_terminal_inferior): Add 'self' argument.
8246 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8247 * inflow.c (terminal_inferior): Add 'self' argument.
8248 * inferior.h (terminal_inferior): Add 'self' argument.
8249 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8250 (go32_terminal_inferior): Add 'self' argument.
8251
c42bf286
TT
82522014-02-19 Tom Tromey <tromey@redhat.com>
8253
8254 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8255 (target_terminal_init): Add argument.
8256 * target.c (debug_to_terminal_init): Add argument.
8257 (update_current_target): Update.
8258 * inflow.c (terminal_init_inferior): Add 'self' argument.
8259 * inferior.h (terminal_init_inferior): Add 'self' argument.
8260 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8261 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8262
c3a5ff89
TT
82632014-02-19 Tom Tromey <tromey@redhat.com>
8264
8265 * target.h (struct target_ops)
8266 <to_can_accel_watchpoint_condition>: Add argument.
8267 (target_can_accel_watchpoint_condition): Add argument.
8268 * target.c (debug_to_can_accel_watchpoint_condition): Add
8269 argument.
8270 (update_current_target): Update.
8271 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8272 'self' argument.
8273
31568a15
TT
82742014-02-19 Tom Tromey <tromey@redhat.com>
8275
8276 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8277 Add argument.
8278 (target_region_ok_for_hw_watchpoint): Add argument.
8279 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8280 (default_region_ok_for_hw_watchpoint): Add argument.
8281 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8282 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8283 argument.
8284 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8285 argument.
8286 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8287 argument.
8288 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8289 'self' argument.
8290 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8291 'self' argument.
8292 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8293 'self' argument.
8294 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8295 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8296 'self' argument.
8297 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8298 Add 'self' argument.
8299
7bb99c53
TT
83002014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8303 argument.
8304 (target_insert_watchpoint): Add argument.
8305 * target.c (debug_to_insert_watchpoint): Add argument.
8306 (update_current_target): Update.
8307 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8308 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8309 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8310 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8311 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8312 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8313 argument.
8314 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8315 (procfs_insert_hw_watchpoint): Add 'self' argument.
8316 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8317 argument.
8318 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8319 argument.
8320 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8321 argument.
8322 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8323 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8324 argument.
8325 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8326 'self' argument.
8327
11b5219a
TT
83282014-02-19 Tom Tromey <tromey@redhat.com>
8329
8330 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8331 argument.
8332 (target_remove_watchpoint): Add argument.
8333 * target.c (debug_to_remove_watchpoint): Add argument.
8334 (update_current_target): Update.
8335 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8336 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8337 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8338 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8339 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8340 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8341 argument.
8342 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8343 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8344 argument.
8345 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8346 argument.
8347 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8348 argument.
8349 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8350 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8351 argument.
8352 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8353 'self' argument.
8354
a64dc96c
TT
83552014-02-19 Tom Tromey <tromey@redhat.com>
8356
8357 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8358 argument.
8359 (target_remove_hw_breakpoint): Add argument.
8360 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8361 (update_current_target): Update.
8362 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8363 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8364 argument.
8365 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8366 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8367 argument.
8368 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8369 'self' argument.
8370
23a26771
TT
83712014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8374 argument.
8375 (target_insert_hw_breakpoint): Add argument.
8376 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8377 (update_current_target): Update.
8378 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8379 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8380 argument.
8381 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8382 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8383 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8384 argument.
8385 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8386 'self' argument.
8387
5461485a
TT
83882014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8391 argument.
8392 (target_can_use_hardware_watchpoint): Add argument.
8393 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8394 (update_current_target): Update.
8395 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8396 argument.
8397 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8398 argument.
8399 * remote.c (remote_check_watch_resources): Add 'self' argument.
8400 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8401 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8402 argument.
8403 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8404 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8405 argument.
8406 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8407 argument.
8408 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8409 argument.
8410 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8411 argument.
8412 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8413 argument.
8414 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8415 argument.
8416 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8417 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8418 argument.
8419 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8420 'self' argument.
8421
f045800c
TT
84222014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target.h (struct target_ops) <to_post_attach>: Add argument.
8425 (target_post_attach): Add argument.
8426 * target.c (debug_to_post_attach): Add argument.
8427 (update_current_target): Update.
8428 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8429 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8430 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8431 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8432 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8433
de90e03d
TT
84342014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * windows-nat.c (windows_close): Add 'self' argument.
8437 * tracepoint.c (tfile_close): Add 'self' argument.
8438 * target.h (struct target_ops) <to_close>: Add argument.
8439 * target.c (target_close): Add argument.
8440 (update_current_target): Update.
8441 * remote.c (remote_close): Add 'self' argument.
8442 * remote-sim.c (gdbsim_close): Add 'self' argument.
8443 * remote-mips.c (mips_close): Add 'self' argument.
8444 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8445 * record-full.c (record_full_close): Add 'self' argument.
8446 * record-btrace.c (record_btrace_close): Add 'self' argument.
8447 * monitor.h (monitor_close): Add 'self' argument.
8448 * monitor.c (monitor_close): Add 'self' argument.
8449 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8450 * linux-nat.c (linux_nat_close): Add argument.
8451 * go32-nat.c (go32_close): Add 'self' argument.
8452 * exec.c (exec_close_1): Add 'self' argument.
8453 * ctf.c (ctf_close): Add 'self' argument.
8454 * corelow.c (core_close): Add 'self' argument.
8455 (core_close_cleanup): Update.
8456 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8457 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8458
9dd130a0
TT
84592014-02-19 Tom Tromey <tromey@redhat.com>
8460
8461 * remote.c (remote_load): New function.
8462 (init_remote_ops): Use it.
8463
46917d26
TT
84642014-02-19 Tom Tromey <tromey@redhat.com>
8465
8466 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8467 argument.
8468 * common/linux-btrace.h (linux_supports_btrace): Update.
8469 * remote.c (remote_supports_btrace): Add "self" argument.
8470 * target-delegates.c: Rebuild.
8471 * target.c (target_supports_btrace): Remove.
8472 * target.h (struct target_ops) <to_supports_btrace>: Add
8473 target_ops argument.
8474 (target_supports_btrace): New define.
8475
6b84065d
TT
84762014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * record-full.c (record_full_beneath_to_resume_ops)
8479 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8480 (record_full_beneath_to_wait)
8481 (record_full_beneath_to_store_registers_ops)
8482 (record_full_beneath_to_store_registers)
8483 (record_full_beneath_to_xfer_partial_ops)
8484 (record_full_beneath_to_xfer_partial)
8485 (record_full_beneath_to_insert_breakpoint_ops)
8486 (record_full_beneath_to_insert_breakpoint)
8487 (record_full_beneath_to_remove_breakpoint_ops)
8488 (record_full_beneath_to_remove_breakpoint)
8489 (record_full_beneath_to_stopped_by_watchpoint)
8490 (record_full_beneath_to_stopped_data_address)
8491 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8492 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8493 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8494 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8495 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8496 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8497 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8498 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8499 (record_full_resume, record_full_wait_1)
8500 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8501 (record_full_store_registers, record_full_xfer_partial)
8502 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8503 (record_full_async, record_full_core_xfer_partial): Use target
8504 delegation.
8505 * target-delegates.c: Rebuild.
8506 * target.c (current_xfer_partial): Remove.
8507 (update_current_target): Do not INHERIT or de_fault
8508 to_insert_breakpoint, to_remove_breakpoint,
8509 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8510 to_is_async_p, to_async. Do not set to_xfer_partial field.
8511 (default_xfer_partial): Simplify.
8512 (current_xfer_partial): Remove.
8513 (target_wait, target_resume): Simplify.
8514 (find_default_can_async_p, find_default_is_async_p): Update.
8515 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8516 to_xfer_partial, to_stopped_by_watchpoint,
8517 to_stopped_data_address.
8518 (target_store_registers): Simplify.
8519 (forward_target_remove_breakpoint)
8520 (forward_target_insert_breakpoint): Remove.
8521 (target_remove_breakpoint, target_insert_breakpoint)
8522 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8523 * target.h (struct target_ops) <to_resume, to_wait,
8524 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8525 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8526 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8527 markup.
8528 (forward_target_remove_breakpoint)
8529 (forward_target_insert_breakpoint): Remove.
8530 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8531 directly.
8532 (record_btrace_insert_breakpoint): Delegate directly.
8533
1101cb7b
TT
85342014-02-19 Tom Tromey <tromey@redhat.com>
8535
8536 PR build/7701:
8537 * target-delegates.c: New file.
8538 * target.c: Include target-delegates.c.
8539 (init_dummy_target): Call install_dummy_methods.
8540 (complete_target_initialization): Call install_delegators.
8541 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8542 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8543 * make-target-delegates: New file.
8544
8b06beed
TT
85452014-02-19 Tom Tromey <tromey@redhat.com>
8546
8547 * record.c (find_record_target): Use find_target_at.
8548 * target.c (find_target_at): New function.
8549 * target.h (find_target_at): Declare.
8550
6a109b6b
TT
85512014-02-19 Tom Tromey <tromey@redhat.com>
8552
8553 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8554 Add 'ops' argument.
8555 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8556 'ops' argument.
8557 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8558 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8559 'ops' argument.
8560 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8561 argument.
8562 * linux-nat.c (save_sigtrap): Update.
8563 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8564 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8565 (linux_nat_close): Update.
8566 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8567 argument.
8568 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8569 argument.
8570 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8571 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8572 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8573 (tmp_to_async): Add 'ops' argument.
8574 (record_full_stopped_by_watchpoint, record_full_async)
8575 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8576 argument.
8577 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8578 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8579 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8580 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8581 (remote_is_async_p, remote_async): Add 'ops' argument.
8582 (remote_stopped_data_address): Update.
8583 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8584 * target.c (update_current_target)
8585 (find_default_can_async_p, find_default_is_async_p): Update.
8586 (init_dummy_target): Update.
8587 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8588 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8589 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8590 (target_can_async_p, target_is_async_p, target_async)
8591 (target_stopped_by_watchpoint): Update.
8592
e095146b
YQ
85932014-02-19 Yao Qi <yao@codesourcery.com>
8594
8595 PR gdb/16220
8596 * gdbarch.sh: Remove startup_gdbarch.
8597 * gdbarch.c: Regenerated.
8598 * gdbarch.h: Likewise.
8599
bc3c6b36
KB
86002014-02-17 Kevin Buettner <kevinb@redhat.com>
8601
8602 * rl78-tdep.c (rl78_g10_register_name): New function.
8603 (rl78_return_value): Add g10 support.
8604 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8605 g10.
8606
98dc0167 86072014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
8608
8609 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8610 (SUBDIR_GUILE_SRCS): Ditto.
8611 (scm-gsmob.o): Ditto.
8612
842c05cd
YQ
86132014-02-17 Yao Qi <yao@codesourcery.com>
8614
8615 * gnu-nat.c (ILL_RPC): Declare defined function.
8616
25c0bd04
YQ
86172014-02-17 Yao Qi <yao@codesourcery.com>
8618
8619 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8620 mach_msg_type_number_t.
8621 (gnu_write_inferior): Likewise.
8622
a9a758e3
YQ
86232014-02-17 Yao Qi <yao@codesourcery.com>
8624
8625 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8626 in format string.
8627 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8628 (inf_validate_procs, inf_signal): Likewise.
8629 (S_exception_raise_request): Likewise.
8630 (do_mach_notify_dead_name): Likewise.
8631 (steal_exc_port): Likewise.
8632 (gnu_read_inferior): Change 'copy_count''s type to
8633 mach_msg_type_number_t.
8634 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8635 format string.
8636
bae8023e
TS
86372014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8638
c82f56d9
TS
8639 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8640 flag. Adjust all users; in particular...
8641 (gnu_wait): ..., don't decrement its value in here...
8642 (gnu_create_inferior): ..., and instead set the flag in here,
8643 around the startup_inferior call, and call that one with
8644 START_INFERIOR_TRAPS_EXPECTED.
8645
3398af6a
TS
8646 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8647 (ILL_RPC): ... new macro.
8648 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8649 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8650 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8651 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8652 functions with ILL_RPC macro.
8653 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8654 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8655 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8656 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8657 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8658 (S_proc_getlogin_reply, S_proc_getsid_reply)
8659 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8660 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8661 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8662 (S_proc_getnports_reply, S_proc_is_important_reply)
8663 (S_proc_get_code_reply): New stub functions, generated with
8664 ILL_RPC macro.
8665
d47642c9
TS
8666 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8667 collected the type check structures.
8668
bae8023e
TS
8669 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8670
8a55ffb0
DE
86712014-02-14 Doug Evans <dje@google.com>
8672
8673 * target.c (target_write_partial): Fix result type.
8674
c2853f3d
JM
86752014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8676
8677 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8678 the proper offsets to access fpregset_t.
8679
ac61d2db
SA
86802014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8681
8682 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8683 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8684 * h8300-tdep.c (setmachinelist): Remove global.
8685 * hppa-tdep.c (hppa_sigtramp): Remove global.
8686 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8687 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8688 * ravenscar-thread.c (update_target_observer): Remove global.
8689 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8690
9d2d0b8b
TT
86912014-02-12 Tom Tromey <tromey@redhat.com>
8692
8693 * common/rsp-low.c: Update comments.
8694 * common/rsp-low.h: Update comments.
8695
a7191e8b
TT
86962014-02-12 Tom Tromey <tromey@redhat.com>
8697
8698 * common/rsp-low.c (convert_ascii_to_int): Remove.
8699 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8700
ff0e980e
TT
87012014-02-12 Tom Tromey <tromey@redhat.com>
8702
8703 * common/rsp-low.h (unhexify): Don't declare.
8704 * common/rsp-low.c (unhexify): Remove.
8705
e9371aff
TT
87062014-02-12 Tom Tromey <tromey@redhat.com>
8707
8708 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8709 * common/rsp-low.c (convert_int_to_ascii): Remove.
8710
971dc0b8
TT
87112014-02-12 Tom Tromey <tromey@redhat.com>
8712
8713 * common/rsp-low.h (hexify): Don't declare.
8714 * common/rsp-low.c (hexify): Remove.
8715
0a822afb
TT
87162014-02-12 Tom Tromey <tromey@redhat.com>
8717
8718 * common/rsp-low.c (hexify): Never take strlen of argument.
8719
9f1b45b0
TT
87202014-02-12 Tom Tromey <tromey@redhat.com>
8721
8722 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8723 * remote.c (extended_remote_run, remote_rcmd)
8724 (remote_download_trace_state_variable, remote_save_trace_data)
8725 (remote_set_trace_notes): Update.
8726 * tracepoint.c (encode_source_string, tfile_write_status)
8727 (tfile_write_uploaded_tsv): Update.
8728
9c3d6531
TT
87292014-02-12 Tom Tromey <tromey@redhat.com>
8730
8731 * tracepoint.c: Include rsp-low.h.
8732 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8733 * remote.c: Include rsp-low.h.
8734 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8735 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8736 (remote_unescape_input): Move to common/rsp-low.c.
8737 * common/rsp-low.h: New file.
8738 * common/rsp-low.c: New file.
8739 * Makefile.in (SFILES): Add common/rsp-low.c.
8740 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8741 (COMMON_OBS): Add rsp-low.o.
8742 (rsp-low.o): New target.
8743
01fd3ea5
TT
87442014-02-12 Tom Tromey <tromey@redhat.com>
8745
8746 * utils.h: Include print-utils.h.
8747 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8748 (int_string, core_addr_to_string, core_addr_to_string_nz)
8749 (hex_string, hex_string_custom): Don't declare.
8750 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8751 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8752 (hex_string_custom, int_string, core_addr_to_string)
8753 (core_addr_to_string_nz, host_address_to_string): Move to
8754 common/print-utils.c.
8755 * common/print-utils.h: New file.
8756 * common/print-utils.c: New file
8757 * Makefile.in (SFILES): Add common/print-utils.c.
8758 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8759 (COMMON_OBS): Add print-utils.o.
8760 (print-utils.o): New target.
8761
9fb50108
TT
87622014-02-12 Tom Tromey <tromey@redhat.com>
8763
8764 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8765
0548b5db
MK
87662014-02-12 Mark Kettenis <kettenis@gnu.org>
8767
8768 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8769
493443a4
MK
87702014-02-12 Mark Kettenis <kettenis@gnu.org>
8771
8772 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8773 if a PT_IO ptrace request returns sucessfully but indicates that 0
8774 bytes were transferred.
8775
706d0883
PA
87762014-02-12 Pedro Alves <palves@redhat.com>
8777 Kevin Buettner <kevinb@redhat.com>
8778
8779 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8780 TYPE_INSTANCE_FLAG_CODE_SPACE.
8781
5caa2f0b
PA
87822014-02-12 Pedro Alves <palves@redhat.com>
8783
8784 * h8300-tdep.c (pseudo_from_raw_register)
8785 (raw_from_pseudo_register): New functions.
8786 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8787 them.
8788
76fd5f74
PA
87892014-02-12 Pedro Alves <palves@redhat.com>
8790
8791 * h8300-tdep.c (h8300_register_sim_regno): New function.
8792 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8793 gdbarch_register_sim_regno hook.
8794
8f008406
SA
87952014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8796
8797 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8798
195abc10
SA
87992014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8800
8801 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8802
93ffa5b9
MK
88032014-02-12 Mark Kettenis <kettenis@gnu.org>
8804
8805 * obsd-tdep.h (obsd_init_abi): New prototype.
8806 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8807 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8808 (obsd_init_abi): New functions.
8809 * i386obsd-tdep.c: Include "obsd-tdep.h".
8810 (i386obsd_init_abi): Call obsd_init_abi.
8811 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8812 (amd64obsd_init_abi): Call obsd_init_abi.
8813 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8814 obsd-tdep.c to gdb_target_obs.
8815
49caec94
JM
88162014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8817
8818 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8819 double float arguments to 16-byte in the argument slots.
8820
e1402065
DE
88212014-02-11 Doug Evans <xdje42@gmail.com>
8822
8823 * configure.ac: Don't crash if pkg-config is not found and guile
8824 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8825 in guile checks.
8826 * configure: Regenerate.
8827
edcc890f
YQ
88282014-02-11 Yao Qi <yao@codesourcery.com>
8829
8830 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8831 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8832 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8833 * gnu-nat.c (gnu_xfer_memory): Likewise.
8834 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8835 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8836 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8837 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8838
9b409511
YQ
88392014-02-11 Yao Qi <yao@codesourcery.com>
8840
8841 * target.h (enum target_xfer_error): Rename to ...
8842 (enum target_xfer_status): ... it. New. All users updated.
8843 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8844 New.
8845 (TARGET_XFER_STATUS_ERROR_P): New macro.
8846 (target_xfer_error_to_string): Remove declaration.
8847 (target_xfer_status_to_string): Declare.
8848 (target_xfer_partial_ftype): Adjust it.
8849 (struct target_ops) <to_xfer_partial>: Return
8850 target_xfer_status. Add argument xfered_len. Update
8851 comments.
8852 * target.c (target_xfer_error_to_string): Rename to ...
8853 (target_xfer_status_to_string): ... it. New. All callers
8854 updated.
8855 (target_read_live_memory): Likewise. Call target_xfer_partial
8856 instead of target_read.
8857 (memory_xfer_live_readonly_partial): Return
8858 target_xfer_status. Add argument xfered_len.
8859 (raw_memory_xfer_partial): Likewise.
8860 (memory_xfer_partial_1): Likewise.
8861 (memory_xfer_partial): Likewise.
8862 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8863 properly. Update debug message.
8864 (default_xfer_partial, current_xfer_partial): Likewise.
8865 (target_write_partial): Likewise.
8866 (target_read_partial): Likewise. All callers updated.
8867 (read_whatever_is_readable): Likewise.
8868 (target_write_with_progress): Likewise.
8869 (target_read_alloc_1): Likewise.
8870
8871 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8872 * auxv.c (procfs_xfer_auxv): Likewise.
8873 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8874 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8875 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8876 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8877 * corefile.c (read_memory): Adjust.
8878 * corelow.c (core_xfer_partial): Likewise.
8879 * ctf.c (ctf_xfer_partial): Likewise.
8880 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8881 updated.
8882 (darwin_xfer_partial): Likewise.
8883 * exec.c (section_table_xfer_memory_partial): Likewise. All
8884 callers updated.
8885 (exec_xfer_partial): Likewise.
8886 * exec.h (section_table_xfer_memory_partial): Update
8887 declaration.
8888 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8889 negative.
8890 (gnu_xfer_partial): Likewise.
8891 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8892 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8893 (ia64_hpux_xfer_solib_got): Likewise.
8894 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8895 type of 'partial_len' to ULONGEST.
8896 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8897 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8898 (linux_nat_xfer_partial): Likewise.
8899 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8900 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8901 * monitor.c (monitor_xfer_memory): Likewise.
8902 (monitor_xfer_partial): Likewise.
8903 * procfs.c (procfs_xfer_partial): Likewise.
8904 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8905 * record-full.c (record_full_xfer_partial): Likewise.
8906 (record_full_core_xfer_partial): Likewise.
8907 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8908 (gdbsim_xfer_partial): Likewise.
8909 * remote.c (remote_write_bytes_aux): Likewise. All callers
8910 updated.
8911 (remote_write_bytes, remote_read_bytes): Likewise. All
8912 callers updated.
8913 (remote_flash_erase): Likewise. All callers updated.
8914 (remote_write_qxfer): Likewise. All callers updated.
8915 (remote_read_qxfer): Likewise. All callers updated.
8916 (remote_xfer_partial): Likewise.
8917 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8918 (rs6000_xfer_shared_libraries): Likewise.
8919 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8920 (sol_thread_xfer_partial): Likewise.
8921 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8922 (sparc_xfer_partial): Likewise.
8923 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8924 updated.
8925 (spu_xfer_partial): Likewise.
8926 * spu-multiarch.c (spu_xfer_partial): Likewise.
8927 * tracepoint.c (tfile_xfer_partial): Likewise.
8928 * windows-nat.c (windows_xfer_memory): Likewise.
8929 (windows_xfer_shared_libraries): Likewise.
8930 (windows_xfer_partial): Likewise.
8931 * valprint.c: Replace 'target_xfer_error' with
8932 'target_xfer_status' in comments.
8933
a8e63083
JB
89342014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8935
8936 Checked in by Joel Brobecker <brobecker@adacore.com>.
8937 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8938
e86b67d3
JB
89392014-02-11 Joel Brobecker <brobecker@adacore.com>
8940
8941 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8942 function parameters.
8943
4b7d1f7f
WN
89442014-02-10 Will Newton <will.newton@linaro.org>
8945
8946 * elfread.c (elf_rel_plt_read): Look for a .got section if
8947 looking up .got.plt fails.
8948 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8949 on address passed to elf_gnu_ifunc_record_cache.
8950 (elf_gnu_ifunc_resolve_addr): Likewise.
8951 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8952
961842b2
JM
89532014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8954
8955 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8956 (X_RETTURN): New macro.
8957 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8958
8959 * sparc64-tdep.c (sparc64_init_abi): Hook
8960 sparc_in_function_epilogue_p.
8961
3f03e7b1
GB
89622014-02-10 Gary Benson <gbenson@redhat.com>
8963
8964 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8965 Rename name_matcher to symbol_matcher.
8966
96f861ef
GB
89672014-02-10 Gary Benson <gbenson@redhat.com>
8968
8969 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8970 Use expand_symtabs_file_matcher_ftype and
8971 expand_symtabs_symbol_matcher_ftype.
8972
ee01b665
JB
89732014-02-10 Joel Brobecker <brobecker@adacore.com>
8974
8975 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8976 (struct ada_symbol_cache): New.
8977 (ada_free_symbol_cache): Forward declare.
8978 (struct ada_pspace_data): New.
8979 (ada_pspace_data_handle): New static global.
8980 (get_ada_pspace_data, ada_pspace_data_cleanup)
8981 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8982 (cache_space, cache): Delete, now folded inside struct
8983 ada_pspace_data.
8984 (ada_get_symbol_cache): New function.
8985 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8986 implementation.
8987 (_initialize_ada_language): Remove initialization of cache_space.
8988 Move call to observer_attach_inferior_exit up, grouping it
8989 with the other observer registrations inside this function.
8990 Rename command to be more general. Add call to
8991 register_program_space_data_with_cleanup.
8992
143adbbf
JB
89932014-02-10 Joel Brobecker <brobecker@adacore.com>
8994
8995 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8996 ada_new_objfile_observer.
8997 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8998 (_initialize_tasks): Update uses of ada_new_objfile_observer
8999 and ada_tasks_normal_stop_observer.
9000
aa4fb036
JB
90012014-02-10 Joel Brobecker <brobecker@adacore.com>
9002
9003 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9004 returned by the 'Length attribute to integer.
9005
9dee8cc6
JB
90062014-02-10 Joel Brobecker <brobecker@adacore.com>
9007
9008 * ada-lang.c (_initialize_ada_language): Initialize
9009 cache_space obstack.
9010
3d9434b5
JB
90112014-02-10 Joel Brobecker <brobecker@adacore.com>
9012
9013 * ada-lang.c (HASH_SIZE): New macro.
9014 (struct cache_entry): New type.
9015 (cache_space, cache): New static globals.
9016 (ada_clear_symbol_cache, find_entry): New functions.
9017 (lookup_cached_symbol, cache_symbol): Implement.
9018 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9019 (_initialize_ada_language): Attach ada_new_objfile_observer
9020 and ada_free_objfile_observer.
9021
f0c5f9b2
JB
90222014-02-10 Joel Brobecker <brobecker@adacore.com>
9023
9024 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9025 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9026 struct block * parameter.
9027 (ada_lookup_symbol_list_worker): Constify local variable "block".
9028 Remove cast which is no longer necessary.
9029
ed3ef339
DE
90302014-02-10 Doug Evans <xdje42@gmail.com>
9031
9032 Add Guile as an extension language.
9033 * NEWS: Mention Guile scripting.
9034 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9035 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9036 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9037 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9038 (CLIBS): Add GUILE_LIBS.
9039 (install-guile): New rule.
9040 (guile.o): New rule.
9041 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9042 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9043 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9044 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9045 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9046 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9047 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9048 * configure.ac: New option --with-guile.
9049 * configure: Regenerate.
9050 * config.in: Regenerate.
9051 * auto-load.c: Remove #include "python/python.h". Add #include
9052 "gdb/section-scripts.h".
9053 (source_section_scripts): Handle Guile scripts.
9054 (_initialize_auto_load): Add name of Guile objfile script to
9055 scripts-directory help text.
9056 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9057 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9058 (struct breakpoint): New member scm_bp_object.
9059 * defs.h (enum command_control_type): New value guile_control.
9060 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9061 "extension.h".
9062 (show_user): Update comment.
9063 (_initialize_cli_cmds): Update help text for "show user". Update help
9064 text for max-user-call-depth.
9065 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9066 "extension.h".
9067 (multi_line_command_p): Add guile_control.
9068 (print_command_lines): Handle guile_control.
9069 (execute_control_command, recurse_read_control_structure): Ditto.
9070 (process_next_line): Recognize "guile" commands.
9071 * disasm.c (gdb_disassemble_info): Make non-static.
9072 * disasm.h: #include "dis-asm.h".
9073 (struct gdbarch): Add forward decl.
9074 (gdb_disassemble_info): Declare.
9075 * extension.c: #include "guile/guile.h".
9076 (extension_languages): Add guile.
9077 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9078 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9079 * gdbtypes.c (get_unsigned_type_max): New function.
9080 (get_signed_type_minmax): New function.
9081 * gdbtypes.h (get_unsigned_type_max): Declare.
9082 (get_signed_type_minmax): Declare.
9083 * guile/README: New file.
9084 * guile/guile-internal.h: New file.
9085 * guile/guile.c: New file.
9086 * guile/guile.h: New file.
9087 * guile/scm-arch.c: New file.
9088 * guile/scm-auto-load.c: New file.
9089 * guile/scm-block.c: New file.
9090 * guile/scm-breakpoint.c: New file.
9091 * guile/scm-disasm.c: New file.
9092 * guile/scm-exception.c: New file.
9093 * guile/scm-frame.c: New file.
9094 * guile/scm-gsmob.c: New file.
9095 * guile/scm-iterator.c: New file.
9096 * guile/scm-lazy-string.c: New file.
9097 * guile/scm-math.c: New file.
9098 * guile/scm-objfile.c: New file.
9099 * guile/scm-ports.c: New file.
9100 * guile/scm-pretty-print.c: New file.
9101 * guile/scm-safe-call.c: New file.
9102 * guile/scm-string.c: New file.
9103 * guile/scm-symbol.c: New file.
9104 * guile/scm-symtab.c: New file.
9105 * guile/scm-type.c: New file.
9106 * guile/scm-utils.c: New file.
9107 * guile/scm-value.c: New file.
9108 * guile/lib/gdb.scm: New file.
9109 * guile/lib/gdb/boot.scm: New file.
9110 * guile/lib/gdb/experimental.scm: New file.
9111 * guile/lib/gdb/init.scm: New file.
9112 * guile/lib/gdb/iterator.scm: New file.
9113 * guile/lib/gdb/printing.scm: New file.
9114 * guile/lib/gdb/types.scm: New file.
9115 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9116 (VPATH): Add $(GUILE_SRCDIR).
9117 (GUILE_DIR): New variable.
9118 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9119 (all): Add stamp-guile dependency.
9120 (stamp-guile): New rule.
9121 (clean-guile, install-guile, uninstall-guile): New rules.
9122 (install-only): Add install-guile dependency.
9123 (uninstall): Add uninstall-guile dependency.
9124 (clean): Add clean-guile dependency.
9125
ac020ec5
DE
91262014-02-09 Doug Evans <xdje42@gmail.com>
9127
9128 Revert this patch (which I approved, mea culpa).
9129
9130 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9131
9132 * Makefile.in (all-lib): Remove.
9133 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9134
2a081c59
JK
91352014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9136
9137 Fix Python stack corruption.
9138 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9139 gdb_py_longest.
9140
0a6bd22d
MK
91412014-02-08 Mark Kettenis <kettenis@gnu.org>
9142
9143 * Makefile.in (all-lib): Remove.
9144 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9145
1a860409
DE
91462014-02-07 Doug Evans <dje@google.com>
9147
9148 * extension-priv.h (extension_language_script_ops): Add comment.
9149 (extension_language_ops): Add comment.
caf5a491 9150 (active_ext_lang_state): Fix typo in comment.
1a860409 9151
d137e6dc
PA
91522014-02-07 Pedro Alves <palves@redhat.com>
9153
0dcb32c3 9154 PR breakpoints/16292
d137e6dc
PA
9155 * infrun.c (handle_signal_stop) <signal arrives while stepping
9156 over a breakpoint>: Switch back to the stepping thread.
9157
ce6d0892
YQ
91582014-02-07 Yao Qi <yao@codesourcery.com>
9159
9160 * target.c (target_xfer_partial): Return zero if LEN is zero.
9161
2ed4b548
YQ
91622014-02-07 Yao Qi <yao@codesourcery.com>
9163
9164 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9165 (ld_so_xfer_auxv): Likewise.
9166 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9167 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9168 * corelow.c (core_xfer_partial): Likewise.
9169 * ctf.c (ctf_xfer_partial): Likewise.
9170 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9171 (darwin_xfer_partial): Likewise.
9172 * exec.c (exec_xfer_partial): Likewise.
9173 * gnu-nat.c (gnu_xfer_partial): Likewise.
9174 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9175 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9176 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9177 * linux-nat.c (linux_xfer_siginfo): Likewise.
9178 (linux_proc_xfer_spu): Likewise.
9179 * procfs.c (procfs_xfer_partial): Likewise.
9180 * record-full.c (record_full_xfer_partial): Likewise.
9181 (record_full_core_xfer_partial): Likewise.
9182 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9183 * remote.c (remote_write_qxfer): Likewise.
9184 (remote_write_qxfer, remote_read_qxfer): Likewise.
9185 (remote_xfer_partial): Likewise.
9186 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9187 (rs6000_xfer_shared_libraries): Likewise.
9188 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9189 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9190 (spu_xfer_partial): Likewise.
9191 * target.c (memory_xfer_partial_1): Likewise.
9192 * tracepoint.c (tfile_xfer_partial): Likewise.
9193 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9194 (windows_xfer_partial): Likewise.
9195
c09f20e4
YQ
91962014-02-07 Yao Qi <yao@codesourcery.com>
9197
9198 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9199 comments.
9200 (core_xfer_shared_libraries_aix): Likewise.
9201 * gdbarch.c, gdbarch.h: Regenerated.
9202 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9203 ULONGEST. Change 'len_avail' type to ULONGEST.
9204 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9205 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9206 declaration.
9207 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9208
8635b3bf
YQ
92092014-02-07 Yao Qi <yao@codesourcery.com>
9210
9211 * corefile.c (memory_error): Get 'exception' from ERR and pass
9212 'exception' to throw_error.
9213
6dddc817
DE
92142014-02-06 Doug Evans <xdje42@gmail.com>
9215
9216 * configure.ac (libpython checking): Remove all but python.o from
9217 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9218 * configure: Regenerate.
9219
9220 * Makefile.in (SFILES): Add extension.c.
9221 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9222 (COMMON_OBS): Add extension.o.
9223 * extension.h: New file.
9224 * extension-priv.h: New file.
9225 * extension.c: New file.
9226
9227 * python/python-internal.h: #include "extension.h".
9228 (gdbpy_auto_load_enabled): Declare.
9229 (gdbpy_apply_val_pretty_printer): Declare.
9230 (gdbpy_apply_frame_filter): Declare.
9231 (gdbpy_preserve_values): Declare.
9232 (gdbpy_breakpoint_cond_says_stop): Declare.
9233 (gdbpy_breakpoint_has_cond): Declare.
9234 (void source_python_script_for_objfile): Delete.
9235 * python/python.c: #include "extension-priv.h".
9236 Delete inclusion of "observer.h".
9237 (extension_language_python): Moved here and renamed from
9238 script_language_python in py-auto-load.c.
9239 Redefined to be of type extension_language_defn.
9240 (python_extension_script_ops): New global.
9241 (python_extension_ops): New global.
9242 (struct python_env): New member previous_active.
9243 (restore_python_env): Call restore_active_ext_lang.
9244 (ensure_python_env): Call set_active_ext_lang.
9245 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9246 New arg extlang.
9247 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9248 New arg extlang.
9249 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9250 New arg extlang.
9251 (gdbpy_eval_from_control_command): Renamed from
9252 eval_python_from_control_command, made static. New arg extlang.
9253 (gdbpy_source_script) Renamed from source_python_script, made static.
9254 New arg extlang.
9255 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9256 result to int. New arg extlang.
9257 (gdbpy_source_objfile_script): Renamed from
9258 source_python_script_for_objfile, made static. New arg extlang.
9259 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9260 static. New args extlang, extlang_printers. Change result type to
9261 "void".
9262 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9263 static. New arg extlang. Rename arg printers to extlang_printers
9264 and change type to ext_lang_type_printers *.
9265 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9266 static. Replace argument arg with extlang, extlang_printers.
9267 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9268 (!HAVE_PYTHON, source_python_script): Delete.
9269 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9270 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9271 (!HAVE_PYTHON, start_type_printers): Delete.
9272 (!HAVE_PYTHON, apply_type_printers): Delete.
9273 (!HAVE_PYTHON, free_type_printers): Delete.
9274 (_initialize_python): Delete call to observer_attach_before_prompt.
9275 (finalize_python): Set/restore active extension language.
9276 (gdbpy_finish_initialization) Renamed from
9277 finish_python_initialization, made static. New arg extlang.
9278 (gdbpy_initialized): New function.
9279 * python/python.h: #include "extension.h". Delete #include
9280 "value.h", "mi/mi-cmds.h".
9281 (extension_language_python): Declare.
9282 (GDBPY_AUTO_FILE_NAME): Delete.
9283 (enum py_bt_status): Moved to extension.h and renamed to
9284 ext_lang_bt_status.
9285 (enum frame_filter_flags): Moved to extension.h.
9286 (enum py_frame_args): Moved to extension.h and renamed to
9287 ext_lang_frame_args.
9288 (finish_python_initialization): Delete.
9289 (eval_python_from_control_command): Delete.
9290 (source_python_script): Delete.
9291 (apply_val_pretty_printer): Delete.
9292 (apply_frame_filter): Delete.
9293 (preserve_python_values): Delete.
9294 (gdbpy_script_language_defn): Delete.
9295 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9296 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9297
9298 * auto-load.c: #include "extension.h".
9299 (GDB_AUTO_FILE_NAME): Delete.
9300 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9301 (script_language_gdb): Delete, moved to extension.c and renamed to
9302 extension_language_gdb.
9303 (source_gdb_script_for_objfile): Delete.
9304 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9305 (loaded_script): Change type of language member to
9306 struct extension_language_defn *.
9307 (init_loaded_scripts_info): Initialize
9308 unsupported_script_warning_printed.
9309 (maybe_add_script): Make static. Change type of language arg to
9310 struct extension_language_defn *.
9311 (clear_section_scripts): Reset unsupported_script_warning_printed.
9312 (auto_load_objfile_script_1): Rewrite to use extension language API.
9313 (auto_load_objfile_script): Make public. Remove support-compiled-in
9314 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9315 (source_section_scripts): Rewrite to use extension language API.
9316 (load_auto_scripts_for_objfile): Rewrite to use
9317 auto_load_scripts_for_objfile.
9318 (collect_matching_scripts_data): Change type of language member to
9319 struct extension_language_defn *.
9320 (auto_load_info_scripts): Change type of language arg to
9321 struct extension_language_defn *.
9322 (unsupported_script_warning_print): New function.
9323 (script_not_found_warning_print): Make static.
9324 (_initialize_auto_load): Rewrite construction of scripts-directory
9325 help.
9326 * auto-load.h (struct objfile): Add forward decl.
9327 (struct script_language): Delete.
9328 (struct auto_load_pspace_info): Add forward decl.
9329 (struct extension_language_defn): Add forward decl.
9330 (maybe_add_script): Delete.
9331 (auto_load_objfile_script): Declare.
9332 (script_not_found_warning_print): Delete.
9333 (auto_load_info_scripts): Update prototype.
9334 (auto_load_gdb_scripts_enabled): Declare.
9335 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9336 auto_load_python_scripts_enabled and made public.
9337 (script_language_python): Delete, moved to python.c.
9338 (gdbpy_script_language_defn): Delete.
9339 (info_auto_load_python_scripts): Update to use
9340 extension_language_python.
9341
9342 * breakpoint.c (condition_command): Replace call to
9343 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9344 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9345 with call to breakpoint_ext_lang_cond_says_stop.
9346 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9347 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9348 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9349 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9350 New arg slang.
9351 (local_setattro): Print name of extension language with existing
9352 stop condition.
9353
9354 * valprint.c (val_print, value_print): Update to call
9355 apply_ext_lang_val_pretty_printer.
9356 * cp-valprint.c (cp_print_value): Update call to
9357 apply_ext_lang_val_pretty_printer.
9358 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9359 (gdbpy_apply_val_pretty_printer): Renamed from
9360 apply_val_pretty_printer. New arg extlang.
9361 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9362
9363 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9364 extension language API.
9365 * cli/cli-script.c (execute_control_command): Update to call
9366 eval_ext_lang_from_control_command.
9367
9368 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9369 enum ext_lang_bt_status values. Update call to
9370 apply_ext_lang_frame_filter.
9371 (mi_cmd_stack_list_locals): Ditto.
9372 (mi_cmd_stack_list_args): Ditto.
9373 (mi_cmd_stack_list_variables): Ditto.
9374 * mi/mi-main.c: Delete #include "python/python-internal.h".
9375 Add #include "extension.h".
9376 (mi_cmd_list_features): Replace reference to python internal variable
9377 gdb_python_initialized with call to ext_lang_initialized_p.
9378
9379 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9380 Update to use enum ext_lang_frame_args. Update to call
9381 apply_ext_lang_frame_filter.
9382 * python/py-framefilter.c (extract_sym): Update to use enum
9383 ext_lang_bt_status.
9384 (extract_value, py_print_type, py_print_value): Ditto.
9385 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9386 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9387 (py_print_frame): Ditto.
9388 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9389 New arg extlang. Update to use enum ext_lang_bt_status.
9390
9391 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9392 finish_python_initialization. Replace with call to
9393 finish_ext_lang_initialization.
9394
9395 * typeprint.c (do_free_global_table): Update to call
9396 free_ext_lang_type_printers.
9397 (create_global_typedef_table): Update to call
9398 start_ext_lang_type_printers.
9399 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9400 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9401 (type_print_options): Change type of global_printers from "void *"
9402 to "struct ext_lang_type_printers *".
9403
9404 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9405 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9406 (gdbpy_preserve_values): Renamed from preserve_python_values.
9407 New arg extlang.
9408 (!HAVE_PYTHON, preserve_python_values): Delete.
9409
9410 * utils.c (quit_flag): Delete, moved to extension.c.
9411 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9412 extension.c.
9413
9414 * eval.c: Delete #include "python/python.h".
9415 * main.c: Delete #include "python/python.h".
9416
9417 * defs.h: Update comment.
9418
6af79985
JB
94192014-02-06 Joel Brobecker <brobecker@adacore.com>
9420
9421 GDB 7.7 released.
9422
12c5175d
MK
94232014-02-05 Mark Kettenis <kettenis@gnu.org>
9424
9425 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9426 defined.
9427
8dc5b319
YQ
94282014-02-05 Yao Qi <yao@codesourcery.com>
9429
9430 * remote.c (remote_pass_signals): Remove local 'buf' and use
9431 rs->buf.
9432 (remote_program_signals): Likewise.
9433
de7b2893
YQ
94342014-02-05 Yao Qi <yao@codesourcery.com>
9435
9436 * ctf.c: Include "inferior.h" and "gdbthread.h".
9437 (CTF_PID): A new macro.
9438 (ctf_open): Call inferior_appeared and add_thread_silent.
9439 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9440 (ctf_thread_alive): New function.
9441 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9442
66d032ac
YQ
94432014-02-05 Yao Qi <yao@codesourcery.com>
9444
9445 Revert this patch:
9446
9447 2013-05-24 Yao Qi <yao@codesourcery.com>
9448
9449 * tracepoint.c (TFILE_PID): Remove.
9450 (tfile_open): Don't add thread and inferior.
9451 (tfile_close): Don't set 'inferior_ptid'. Don't call
9452 exit_inferior_silent.
9453 (tfile_thread_alive): Remove.
9454 (init_tfile_ops): Don't set field 'to_thread_alive' of
9455 tfile_ops.
9456
f4ccffad
CE
94572014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9458
9459 * remote.c (remote_start_remote): Call remote_check_symbols even
9460 if only symbol-file (not file) has been given.
9461
591a12a1
UW
94622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9463
9464 * gdbarch.sh (skip_entrypoint): New callback.
9465 * gdbarch.c, gdbarch.h: Regenerate.
9466 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9467 * infrun.c (fill_in_stop_func): Likewise.
9468 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9469 (ppc_elfv2_elf_make_msymbol_special): New function.
9470 (ppc_elfv2_skip_entrypoint): Likewise.
9471 (ppc_linux_init_abi): Install them for ELFv2.
9472
cc0e89c5
UW
94732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9474
9475 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9476 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9477 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9478 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9479 structures returned in GPRs.
9480
52f548e4
UW
94812014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9482
9483 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9484 offset to the stack parameter list for the ELFv2 ABI.
9485
d4094b6a
UW
94862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9487
9488 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9489 set_gdbarch_convert_from_func_ptr_addr and
9490 set_gdbarch_elf_make_msymbol_special for ELFv1.
9491 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9492 function descriptors on ELFv1.
9493 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9494 set up r12 at function entry.
9495
cd453cd0
UW
94962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9497
9498 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9499 (struct gdbarch_tdep): New member elf_abi.
9500
9501 * rs6000-tdep.c: Include "elf/ppc64.h".
9502 (rs6000_gdbarch_init): Detect ELF ABI version.
9503
0ff3e01f
UW
95042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9505
9506 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9507 within a register pair holding a DFP 128-bit value on little-endian.
9508 (ppc64_sysv_abi_return_value_base): Likewise.
9509 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9510 (dfp_pseudo_register_write): Likewise.
9511
5b757e5d
UW
95122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9513
9514 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9515 offset on little-endian when passing _Decimal32.
9516 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9517
084ee545
UW
95182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9519
9520 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9521 of the overlapped FP register within the VSX register on little-
9522 endian platforms.
9523 (efpr_pseudo_register_write): Likewise.
9524
d63167af
UW
95252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9526
9527 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9528 offset on little-endian when passing small structures.
9529
e765b44c
UW
95302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9531
9532 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9533 (struct ppc64_sysv_argpos): New data structure.
9534 (ppc64_sysv_abi_push_float): Remove.
9535 (ppc64_sysv_abi_push_val): New function.
9536 (ppc64_sysv_abi_push_integer): Likewise.
9537 (ppc64_sysv_abi_push_freg): Likewise.
9538 (ppc64_sysv_abi_push_vreg): Likewise.
9539 (ppc64_sysv_abi_push_param): Likewise.
9540 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9541 (ppc64_sysv_abi_return_value_base): New function.
9542 (ppc64_sysv_abi_return_value): Refactor to use it.
9543
36c24d95
UW
95442014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9545
9546 * NEWS: Document new target powerpc64le-*-linux*.
9547
26fd9228
MK
95482014-02-04 Mark Kettenis <kettenis@gnu.org>
9549
9550 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9551 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9552 core dumps.
9553 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9554 register set used in ELF core dumps. Add floating-point register set.
9555
c5bb7362
KB
95562014-02-03 Kevin Buettner <kevinb@redhat.com>
9557
74228e77 9558 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
9559 dwarf2_to_gdb[] table using symbolic constants. Adjust
9560 penultimate entry from number representing the PC register
9561 to symbolic constant representing the MDR register. Add
9562 constant for the PC register to the end of the table.
9563
af09351e
MK
95642014-02-03 Mark Kettenis <kettenis@gnu.org>
9565
9566 * bsd-kvm.c: Include <sys/param.h>
9567
8507e05d
MK
95682014-02-03 Mark Kettenis <kettenis@gnu.org>
9569
9570 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9571
ae56bfb8
JB
95722014-01-31 Joel Brobecker <brobecker@adacore.com>
9573
9574 * ada-lang.h (clear_ada_sym_cache): Delete.
9575
718ee4dc
UW
95762014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
9577
9578 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9579
401e27fd
JM
95802014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9581
9582 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9583 the sigreturn register save area only if the syscall is
9584 sigreturn.
9585
a7c88acd
JB
95862014-01-29 Joel Brobecker <brobecker@adacore.com>
9587
9588 * valops.c (value_slice): Minor reformatting.
9589
fa0079ea
UW
95902014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
9591
9592 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9593
c6044dd1
JB
95942014-01-28 Joel Brobecker <brobecker@adacore.com>
9595
9596 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9597 New static globals.
9598 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9599 (ada_ignore_descriptive_types_p): New static global.
9600 (find_parallel_type_by_descriptive_type): Return immediately
9601 if ada_ignore_descriptive_types_p is set.
9602 (_initialize_ada_language): Register new commands "maintenance
9603 set ada", "maintenance show ada", "maintenance set ada
9604 ignore-descriptive-types" and "maintenance show ada
9605 ignore-descriptive-types".
9606 * NEWS: Add entry for new "maint ada set/show
9607 ignore-descriptive-types" commands.
9608
568e808b
MM
96092014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9610
9611 * record-btrace.c (record_btrace_close): Call btrace_teardown
9612 for all threads.
9613
467d141b
JB
96142014-01-27 Joel Brobecker <brobecker@adacore.com>
9615
9616 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9617 "ui-out.h".
9618
fb151210
JB
96192014-01-27 Joel Brobecker <brobecker@adacore.com>
9620
9621 * ada-typeprint (type_is_full_subrange_of_target_type):
9622 New function.
9623 (print_range): Add parameter bounds_prefered_p. If not set,
9624 try printing range types using the name of their base type.
9625 (print_range_type): Add parameter bounds_prefered_p.
9626 Use it in call to print_range.
9627 (print_array_type, ada_print_type): Update calls to print_range
9628 and print_range_type.
9629
aba02109
JB
96302014-01-27 Joel Brobecker <brobecker@adacore.com>
9631
9632 * ada-typeprint.c (print_array_type, print_choices, print_range)
9633 (print_range_bound, print_dynamic_range_bound, print_range_type):
9634 Remove declaration.
9635
e62e21fd
JB
96362014-01-27 Joel Brobecker <brobecker@adacore.com>
9637
9638 * ada-typeprint.c (print_range): Add missing empty line
9639 after local declaration.
9640
859cf5d1
JB
96412014-01-27 Joel Brobecker <brobecker@adacore.com>
9642
9643 * ada-valprint.c (print_optional_low_bound): Get index_type's
9644 target type for as long as it is a TYPE_CODE_RANGE.
9645
25790f6f
JB
96462014-01-27 Joel Brobecker <brobecker@adacore.com>
9647
9648 * procfs.c (procfs_make_note_section): Remove assertion and
9649 associated comment.
9650
6b6aa828
YQ
96512014-01-24 Yao Qi <yao@codesourcery.com>
9652
9653 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9654 * corelow.c (get_core_siginfo): Likewise.
9655
5d6df423
YQ
96562014-01-24 Yao Qi <yao@codesourcery.com>
9657
9658 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9659 ULONGEST. Don't check 'len' is negative.
9660 (remote_write_bytes): Change type of 'len' to ULONGEST.
9661
83b645b8
TT
96622014-01-23 Tom Tromey <tromey@redhat.com>
9663
9664 PR python/16485:
9665 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9666 Handle exception from frame.block.
9667 (FrameVars.fetch_frame_locals): Likewise.
9668
0740f8d8
TT
96692014-01-23 Tom Tromey <tromey@redhat.com>
9670
9671 PR python/16487:
9672 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9673 on a NULL pointer. Move "goto error" to correct place.
9674
21909fa1
TT
96752014-01-23 Tom Tromey <tromey@redhat.com>
9676
9677 PR python/16491:
9678 * python/py-framefilter.c (apply_frame_filter): Call
9679 ensure_python_env after computing gdbarch.
9680
17fde6d0
YQ
96812014-01-23 Yao Qi <yao@codesourcery.com>
9682
9683 * target.c (raw_memory_xfer_partial): Change argument type
9684 from void * to gdb_byte *.
9685 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9686
87ce2a04
DE
96872014-01-22 Doug Evans <dje@google.com>
9688
9689 New gdbserver option --debug-format=timestamp.
9690 * NEWS: Mention it.
9691
237b092b
AA
96922014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9693
9694 * syscalls/s390x-linux.xml: New file.
9695 * syscalls/s390-linux.xml: New file.
9696 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9697 (XML_SYSCALL_FILENAME_S390X): Likewise.
9698 (op_svc): New enum value for SVC opcode.
9699 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9700 (s390_linux_get_syscall_number): New function.
9701 (s390_gdbarch_init): Register '*get_syscall_number' and the
9702 syscall xml file name.
9703 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9704 "s390-linux.xml" and "s390x-linux.xml".
9705 * NEWS: Announce new feature.
9706
54bff650
BS
97072014-01-22 Baruch Siach <baruch@tkos.co.il>
9708
9709 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9710
14e361d7
PA
97112014-01-22 Pedro Alves <palves@redhat.com>
9712
9713 * xtensa-config.c: Include defs.h.
9714
46bbb3ed
JB
97152014-01-22 Joel Brobecker <brobecker@adacore.com>
9716
9717 * common/common-utils.h: Add "ARI:" comment beside __func__
9718 reference.
9719
3a80edfc
JB
97202014-01-22 Joel Brobecker <brobecker@adacore.com>
9721
9722 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9723 documentation a bit.
9724
4869db5e
RM
97252014-01-21 Roland McGrath <mcgrathr@google.com>
9726
9727 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9728 * configure: Regenerate.
9729 * aclocal.m4: Regenerate.
9730 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9731 New substituted variables.
9732 (install-strip): New target.
9733 (INSTALL_SCRIPT): New substituted variable.
9734 (FLAGS_TO_PASS): Add it.
9735 (install-only): Use $(INSTALL_SCRIPT) rather than
9736 $(INSTALL_PROGRAM) for gcore.
9737
9ea4267d
TT
97382014-01-20 Tom Tromey <tromey@redhat.com>
9739
9740 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9741 together.
9742
1f2bdf09
TT
97432014-01-20 Tom Tromey <tromey@redhat.com>
9744
9745 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9746 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9747 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9748 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9749 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9750 (struct cmd_list_element) <flags>: Remove.
9751 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9752 doc_allocated>: New fields.
9753 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9754 bitfields.
9755 * maint.c (maintenance_do_deprecate): Update.
9756 * top.c (execute_command): Update.
9757
e671835b
BS
97582014-01-20 Baruch Siach <baruch@tkos.co.il>
9759
9760 * xtensa-linux-nat.c: Include asm/ptrace.h.
9761
50367cd2
IB
97622014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9763
9764 * Makefile.in (SFILES): Add d-support.c.
9765 (COMMON_OBS): Add d-support.o.
9766 * d-lang.h (d_parse_symbol): Add comment, now defined in
9767 d-support.c.
9768 * d-lang.c (parse_call_convention)
9769 (parse_attributes, parse_function_types)
9770 (parse_function_args, parse_type, parse_identifier)
9771 (call_convention_p, d_parse_symbol): Move functions to ...
9772 * d-support.c: ... New file.
9773
ec9f644a
IB
97742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9775
9776 * d-lang.h (d_parse_symbol): Add declaration.
9777 * d-lang.c (extract_identifiers)
9778 (extract_type_info): Remove functions.
9779 (parse_call_convention, parse_attributes)
9780 (parse_function_types, parse_function_args)
9781 (parse_type, parse_identifier, call_convention_p)
9782 (d_parse_symbol): New functions.
9783 (d_demangle): Use d_parse_symbol to demangle D symbols.
9784
94b1b47e
IB
97852014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9786
9787 * d-lang.h (struct builtin_d_type): New data type.
9788 (builtin_d_type): Add declaration.
9789 * d-lang.c (d_language_arch_info, build_d_types)
9790 (builtin_d_type): New functions.
9791 (enum d_primitive_types): New data type.
9792 (d_language_defn): Change c_language_arch_info to
9793 d_language_arch_info.
9794 (d_type_data): New static variable.
9795 (_initialize_d_language): Initialize d_type_data.
9796
63778547
IB
97972014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9798
9799 * d-lang.h (d_main_name): Add declaration.
9800 * d-lang.c (d_main_name): New function.
9801 * symtab.c (find_main_name): Add call to d_main_name.
9802
3271ba66
IB
98032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9804
9805 * d-lang.c (d_language_defn): Change macro_expansion_c to
9806 macro_expansion_no.
9807
d36b3012
IB
98082014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9809
9810 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9811
c90a6fb7
SDJ
98122014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9813
9814 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9815 gdb_exception" declaration.
9816 * remote.c (getpkt_or_notif_sane): Likewise.
9817
749234e5
DE
98182014-01-17 Doug Evans <dje@google.com>
9819
9820 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9821 function, contents of dirnames_to_char_ptr_vec_append moved here.
9822 (delim_string_to_char_ptr_vec): New function.
9823 (dirnames_to_char_ptr_vec_append): Rewrite.
9824 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9825
df049a58
DE
98262014-01-17 Doug Evans <dje@google.com>
9827
9828 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9829 and moved here ...
9830 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9831 #include "common-utils.h".
9832 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9833 * common/vec.h (VEC_ASSERT_PASS): Update.
9834 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9835 (MACH_CHECK_ERROR): Update.
9836
69f97648
SM
98372014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9838
9839 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9840 comments.
9841 * gdbarch.h: Regenerate.
9842
98b1cfdc
TT
98432014-01-16 Tom Tromey <tromey@redhat.com>
9844
9845 * value.c (struct value) <regnum>: Move earlier.
9846
77a19445
TT
98472014-01-16 Tom Tromey <tromey@redhat.com>
9848
9849 * remote.c (extended_remote_create_inferior): Rename from
9850 extended_remote_create_inferior_1. Add "ops" argument. Remove
9851 old implementation.
9852
62261490
PA
98532014-01-16 Pedro Alves <palves@redhat.com>
9854
9855 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9856 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9857 the backchain.
9858
4d65956b
DE
98592014-01-16 Doug Evans <dje@google.com>
9860
9861 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9862
52834460
MM
98632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9864
9865 * btrace.h (btrace_thread_flag): New.
9866 (struct btrace_thread_info) <flags>: New.
9867 * record-btrace.c (record_btrace_resume_thread)
9868 (record_btrace_find_thread_to_move, btrace_step_no_history)
9869 (btrace_step_stopped, record_btrace_start_replaying)
9870 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9871 (record_btrace_find_resume_thread): New.
9872 (record_btrace_resume, record_btrace_wait): Extend.
9873 (record_btrace_can_execute_reverse): New.
9874 (record_btrace_open): Fail in non-stop mode.
9875 (record_btrace_set_replay): Split into this, ...
9876 (record_btrace_stop_replaying): ... this, ...
9877 (record_btrace_clear_histories): ... and this.
9878 (init_record_btrace_ops): Init to_can_execute_reverse.
9879 * NEWS: Announce it.
9880
118e6252
MM
98812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9882
9883 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9884 (forward_target_decr_pc_after_break)
9885 (target_decr_pc_after_break): New.
9886 * target.c (forward_target_decr_pc_after_break)
9887 (target_decr_pc_after_break): New.
9888 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9889 instead of gdbarch_decr_pc_after_break.
9890 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9891 instead of gdbarch_decr_pc_after_break.
9892 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9893 instead of gdbarch_decr_pc_after_break.
9894 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9895 instead of gdbarch_decr_pc_after_break.
9896 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9897 instead of gdbarch_decr_pc_after_break.
9898 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9899 instead of gdbarch_decr_pc_after_break.
9900
6e07b1d2
MM
99012014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9902
9903 * btrace.c: Include regcache.h.
9904 (btrace_add_pc): New.
9905 (btrace_enable): Call btrace_add_pc.
9906 (btrace_is_empty): New.
9907 * btrace.h (btrace_is_empty): New.
9908 * record-btrace.c (require_btrace, record_btrace_info): Call
9909 btrace_is_empty.
9910
969c39fb
MM
99112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9912
9913 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9914 Support delta reads.
9915 (linux_disable_btrace): Change return type.
9916 * common/linux-btrace.h (linux_read_btrace): Change parameters
9917 and return type to allow error reporting. Update users.
9918 (linux_disable_btrace): Change return type. Update users.
9919 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9920 New.
9921 (btrace_error): New.
9922 (btrace_block) <begin>: Comment on BEGIN == 0.
9923 * btrace.c (btrace_compute_ftrace): Start from the end of
9924 the current trace.
9925 (btrace_stitch_trace, btrace_clear_history): New.
9926 (btrace_fetch): Read delta trace, return if replaying.
9927 (btrace_clear): Move clear history code to btrace_clear_history.
9928 (parse_xml_btrace): Throw an error if parsing failed.
9929 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9930 and return type to allow error reporting.
9931 (target_read_btrace): Change parameters and return type to allow
9932 error reporting.
9933 * target.c (target_read_btrace): Update.
9934 * remote.c (remote_read_btrace): Support delta reads. Pass
9935 errors on.
9936 * NEWS: Announce it.
9937
0b722aec
MM
99382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9939
9940 * record.h (record_btrace_frame_unwind)
9941 (record_btrace_tailcall_frame_unwind): New declarations.
9942 * dwarf2-frame: Include record.h
9943 (dwarf2_frame_cfa): Throw an error for btrace frames.
9944 * record-btrace.c: Include hashtab.h.
9945 (btrace_get_bfun_name): New.
9946 (btrace_call_history): Call btrace_get_bfun_name.
9947 (struct btrace_frame_cache): New.
9948 (bfcache): New.
9949 (bfcache_hash, bfcache_eq, bfcache_new): New.
9950 (btrace_get_frame_function): New.
9951 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9952 (record_btrace_frame_this_id): Compute own id.
9953 (record_btrace_frame_prev_register): Provide PC, throw_error
9954 for all other registers.
9955 (record_btrace_frame_sniffer): Detect btrace frames.
9956 (record_btrace_tailcall_frame_sniffer): New.
9957 (record_btrace_frame_dealloc_cache): New.
9958 (record_btrace_frame_unwind): Add new functions.
9959 (record_btrace_tailcall_frame_unwind): New.
9960 (_initialize_record_btrace): Allocate cache.
9961 * btrace.c (btrace_clear): Call reinit_frame_cache.
9962 * NEWS: Announce it.
9963
066ce621
MM
99642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9965
9966 * record-btrace.c (record_btrace_set_replay)
9967 (record_btrace_goto_begin, record_btrace_goto_end)
9968 (record_btrace_goto): New.
9969 (init_record_btrace_ops): Initialize them.
9970 * NEWS: Announce it.
9971
e2887aa3
MM
99722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9973
9974 * record-btrace.c (record_btrace_find_new_threads)
9975 (record_btrace_thread_alive): New.
9976 (init_record_btrace_ops): Initialize to_find_new_threads and
9977 to_thread_alive.
9978
b2f4cfde
MM
99792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9980
9981 * record-btrace.c (record_btrace_resume): New.
9982 (record_btrace_wait): New.
9983 (init_record_btrace_ops): Initialize to_wait and to_resume.
9984
633785ff
MM
99852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9986
9987 * record-btrace.c (record_btrace_xfer_partial)
9988 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9989 (record_btrace_allow_memory_access): New.
9990 (init_record_btrace_ops): Initialize new methods.
9991 * target.c (raw_memory_xfer_partial): Bail out if target reports
9992 that this memory is not available.
9993
3db08215
MM
99942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9995
9996 * target.h (target_ops) <to_insert_breakpoint>
9997 <to_remove_breakpoint>: Add target_ops parameter.
9998 (forward_target_insert_breakpoint): New.
9999 (forward_target_remove_breakpoint): New.
10000 (memory_remove_breakpoint, memory_insert_breakpoint):
10001 Add target_ops parameter.
10002 * target.c (target_insert_breakpoint): Split into this and ...
10003 (forward_target_insert_breakpoint): ... this.
10004 (target_remove_breakpoint): Split into this and ...
10005 (forward_target_remove_breakpoint): ... this.
10006 (debug_to_insert_breakpoint): Add target_ops parameter.
10007 Call forward_target_insert_breakpoint.
10008 (debug_to_remove_breakpoint): Add target_ops parameter.
10009 Call forward_target_remove_breakpoint.
10010 (update_current_target): Do not inherit or default to_insert_breakpoint
10011 and to_remove_breakpoint.
10012 * corelow.c (ignore): Add target_ops parameter.
10013 * exec.c (ignore): Add target_ops parameter.
10014 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10015 Add target_ops parameter.
10016 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10017 Add target_ops parameter.
10018 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10019 Add target_ops parameter.
10020 * record-full.c (record_full_beneath_to_insert_breakpoint)
10021 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10022 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10023 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10024 (record_full_core_remove_breakpoint): Add target_ops parameter.
10025 Update users.
10026 (record_full_beneath_to_insert_breakpoint_ops)
10027 (record_full_beneath_to_remove_breakpoint_ops)
10028 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10029 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10030 tmp_to_remove_breakpoint_ops,
10031 record_full_beneath_to_insert_breakpoint_ops, and
10032 record_full_beneath_to_remove_breakpoint_ops.
10033 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10034 (m32r_remove_breakpoint): Add target_ops parameter.
10035 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10036 Add target_ops parameter.
10037 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10038 Add target_ops parameter.
10039
cecac1ab
MM
100402014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10041 Markus Metzger <markus.t.metzger@intel.com>
10042
10043 * record-btrace.c: Include frame-unwind.h.
10044 (record_btrace_frame_unwind_stop_reason)
10045 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10046 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10047 New.
10048 (init_record_btrace_ops): Install it.
10049
824344ca
MM
100502014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10051
10052 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10053 get_prev_frame_1.
10054
32261e52
MM
100552014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10056
10057 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10058 earlier.
10059
ea001bdc
MM
100602014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10061
10062 * frame-unwind.c: Include target.h.
10063 (frame_unwind_try_unwinder): New function with code from ...
10064 (frame_unwind_find_by_frame): ... here. New variable
10065 unwinder_from_target, call also target_get_unwinder)
10066 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10067 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10068 * target.h (struct target_ops): New fields to_get_unwinder and
10069 to_get_tailcall_unwinder.
10070 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10071
1f3ef581
MM
100722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10073
10074 * record-btrace.c (record_btrace_fetch_registers)
10075 (record_btrace_store_registers)
10076 (record_btrace_to_prepare_to_store): New.
10077 (init_record_btrace_ops): Add the above.
10078
f32dbf8c
MM
100792014-01-16 Tom Tromey <tromey@redhat.com>
10080
10081 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10082 * target.h (struct target_ops) <to_prepare_to_store>: Add
10083 argument.
10084 (target_prepare_to_store): Add argument.
10085 * target.c (debug_to_prepare_to_store): Add argument.
10086 (update_current_target): Update.
10087 * remote.c (remote_prepare_to_store): Add 'self' argument.
10088 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10089 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10090 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10091 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10092 argument.
10093 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10094 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10095 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10096 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10097 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10098
07bbe694
MM
100992014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10100
10101 * btrace.h (replay) <replay>: New.
10102 (btrace_is_replaying): New.
10103 * btrace.c (btrace_clear): Free replay iterator.
10104 (btrace_is_replaying): New.
10105 * record-btrace.c (record_btrace_is_replaying): New.
10106 (record_btrace_info): Print insn number if replaying.
10107 (record_btrace_insn_history): Start at replay position.
10108 (record_btrace_call_history): Start at replay position.
10109 (init_record_btrace_ops): Init to_record_is_replaying.
10110
0688d04e
MM
101112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10112
10113 * record-btrace.c (record_btrace_insn_history_range): Include
10114 end.
10115 (record_btrace_insn_history_from): Adjust range.
10116 (record_btrace_call_history_range): Include
10117 end.
10118 (record_btrace_call_history_from): Adjust range.
10119 * NEWS: Announce changes.
10120
8710b709
MM
101212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10122
10123 * record.h (enum record_print_flag)
10124 <record_print_indent_calls>: New.
10125 * record.c (get_call_history_modifiers): Recognize /c modifier.
10126 (_initialize_record): Document /c modifier.
10127 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10128 Reorder fields. Optionally indent the function name. Update
10129 all users.
10130 * NEWS: Announce changes.
10131
d0fa7535
MM
101322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10133
10134 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10135
5de9129b
MM
101362014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10137
10138 * btrace.c (ftrace_new_function): Start counting at one.
10139 * record-btrace.c (record_btrace_info): Adjust number of calls
10140 and insns.
10141 * NEWS: Announce it.
10142
7acbe133
MM
101432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10144
10145 * record-btrace.c (btrace_call_history_insn_range): Print
10146 insn range as [begin, end].
10147
23a7fe75
MM
101482014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10149
10150 * btrace.h (struct btrace_func_link): New.
10151 (enum btrace_function_flag): New.
10152 (struct btrace_inst): Rename to ...
10153 (struct btrace_insn): ...this. Update all users.
10154 (struct btrace_func) <ibegin, iend>: Remove.
10155 (struct btrace_func_link): New.
10156 (struct btrace_func): Rename to ...
10157 (struct btrace_function): ...this. Update all users.
10158 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10159 (number, level, flags>: New.
10160 (struct btrace_insn_iterator): Rename to ...
10161 (struct btrace_insn_history): ...this.
10162 Update all users.
10163 (struct btrace_insn_iterator, btrace_call_iterator): New.
10164 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10165 (struct btrace_target_info) <begin, end, level>
10166 <insn_history, call_history>: New.
10167 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10168 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10169 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10170 (btrace_call_number, btrace_call_begin, btrace_call_end)
10171 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10172 (btrace_find_function_by_number, btrace_set_insn_history)
10173 (btrace_set_call_history): New.
10174 * btrace.c (btrace_init_insn_iterator)
10175 (btrace_init_func_iterator, compute_itrace): Remove.
10176 (ftrace_print_function_name, ftrace_print_filename)
10177 (ftrace_skip_file): Change
10178 parameter to const.
10179 (ftrace_init_func): Remove.
10180 (ftrace_debug): Use new btrace_function fields.
10181 (ftrace_function_switched): Also consider gaining and
10182 losing symbol information).
10183 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10184 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10185 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10186 New.
10187 (ftrace_new_function): Move. Remove debug print.
10188 (ftrace_update_lines, ftrace_update_insns): New.
10189 (ftrace_update_function): Check for call, ret, and jump.
10190 (compute_ftrace): Renamed to ...
10191 (btrace_compute_ftrace): ...this. Rewritten to compute call
10192 stack.
10193 (btrace_fetch, btrace_clear): Updated.
10194 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10195 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10196 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10197 (btrace_call_number, btrace_call_begin, btrace_call_end)
10198 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10199 (btrace_find_function_by_number, btrace_set_insn_history)
10200 (btrace_set_call_history): New.
10201 * record-btrace.c (require_btrace): Use new btrace thread
10202 info fields.
10203 (record_btrace_info, btrace_insn_history)
10204 (record_btrace_insn_history, record_btrace_insn_history_range):
10205 Use new btrace thread info fields and new iterator.
10206 (btrace_func_history_src_line): Rename to ...
10207 (btrace_call_history_src_line): ...this. Use new btrace
10208 thread info fields.
10209 (btrace_func_history): Rename to ...
10210 (btrace_call_history): ...this. Use new btrace thread info
10211 fields and new iterator.
10212 (record_btrace_call_history, record_btrace_call_history_range):
10213 Use new btrace thread info fields and new iterator.
10214
8372a7cb
MM
102152014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10216
10217 * frame.h (frame_id_build_unavailable_stack_special): New.
10218 * frame.c (frame_id_build_unavailable_stack_special): New.
10219
c2170eef
MM
102202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10221
10222 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10223 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10224 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10225 to gdbarch.
10226 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10227 (i386_insn_is_jump, i386_jmp_p): New.
10228 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10229 insn_is_jump to gdbarch.
10230 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10231 * gdbarch.h: Regenerated.
10232 * gdbarch.c: Regenerated.
10233 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10234 (default_insn_is_jump): New.
10235 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10236 (default_insn_is_jump): New.
10237
864089d2
MM
102382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10239
10240 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10241 Change to ...
10242 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10243 (btrace_read_type) <btrace_read_new>: Change to ...
10244 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10245
ed9edfb5
MM
102462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10247
10248 * common/linux-btrace.c (linux_read_btrace): Free trace from
10249 previous iteration.
10250
fbcbc3fd
DE
102512014-01-15 Doug Evans <dje@google.com>
10252
10253 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10254 uint32_t.
10255
3d548a53
TT
102562014-01-15 Tom Tromey <tromey@redhat.com>
10257
10258 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10259 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10260 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10261 (set_objfile_main_name): New function.
10262 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10263 language_of_main>: New fields.
10264 (set_objfile_main_name): Declare.
10265 * symtab.c (find_main_name): Loop over objfiles to find the main
10266 name and language.
10267 (set_main_name): Now static.
10268 (get_main_info): Add comment.
10269 * symtab.h (set_main_name): Don't declare.
10270
32ac0d11
TT
102712014-01-15 Tom Tromey <tromey@redhat.com>
10272
10273 * symtab.c (main_progspace_key): New global.
10274 (struct main_info): New.
10275 (name_of_main, language_of_main): Remove.
10276 (get_main_info, main_info_cleanup): New function.
10277 (set_main_name, main_name, main_language): Use get_main_info.
10278 (_initialize_symtab): Initialize main_progspace_key.
10279
9e6c82ad
TT
102802014-01-15 Tom Tromey <tromey@redhat.com>
10281
10282 * dbxread.c (process_one_symbol): Update.
10283 * dwarf2read.c (read_partial_die): Update.
10284 * symfile.c (set_initial_language): Call main_language.
10285 * symtab.c (language_of_main): Now static.
10286 (set_main_name): Add 'lang' parameter.
10287 (find_main_name): Update.
10288 (main_language): New function.
10289 (symtab_observer_executable_changed): Update.
10290 * symtab.h (set_main_name): Update.
10291 (language_of_main): Remove.
10292 (main_language): Declare.
10293
6ef55de7
TT
102942014-01-15 Tom Tromey <tromey@redhat.com>
10295
10296 * symfile.c (init_entry_point_info): Use new "initialized" field.
10297 Update.
10298 * objfiles.h (struct entry_point) <initialized>: New field.
10299 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10300 (struct objfile) <ei>: ...here. Remove.
10301 * objfiles.c (entry_point_address_query): Update.
10302
53eddfa6
TT
103032014-01-15 Tom Tromey <tromey@redhat.com>
10304
10305 * objfiles.c (entry_point_address_query): Relocate entry point
10306 address.
10307 (objfile_relocate1): Do not relocate entry point address.
10308 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10309 <the_bfd_section_index>: New field.
10310 * symfile.c (init_entry_point_info): Find the entry point's
10311 section.
10312
d56e56aa
TT
103132014-01-15 Tom Tromey <tromey@redhat.com>
10314
10315 * solib-frv.c (enable_break): Use entry_point_address_query.
10316
33a97bbe
OJ
103172014-01-15 Omair Javaid <omair.javaid@linaro.org>
10318
10319 * NEWS: Add note on improved process record-replay on
10320 arm*-linux* targets.
10321
c6ec2b30
OJ
103222014-01-15 Omair Javaid <omair.javaid@linaro.org>
10323
10324 * arm-tdep.c (enum arm_record_result): New enum.
10325 (arm_record_unsupported_insn): New function.
10326 (arm_record_coproc_data_proc): Removed.
10327 (thumb2_record_ld_st_multiple): New function.
10328 (thumb2_record_ld_st_dual_ex_tbb): New function.
10329 (thumb2_record_data_proc_sreg_mimm): New function.
10330 (thumb2_record_ps_dest_generic): New function.
10331 (thumb2_record_branch_misc_cntrl): New function.
10332 (thumb2_record_str_single_data): New function.
10333 (thumb2_record_ld_mem_hints): New function.
10334 (thumb2_record_ld_word): New function.
10335 (thumb2_record_lmul_lmla_div): New function.
10336 (thumb2_record_decode_insn_handler): New function.
10337 (decode_insn): Add thumb32 instruction handlers.
10338
97dfe206
OJ
103392014-01-15 Omair Javaid <omair.javaid@linaro.org>
10340
10341 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10342 (struct arm_linux_record_tdep): Declare.
10343 (arm_canonicalize_syscall): New function.
10344 (arm_all_but_pc_registers_record): New function.
10345 (arm_linux_syscall_record): New function.
10346 (arm_linux_init_abi): Add syscall recording constructs.
10347 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10348 decoding. (arm_record_coproc_data_proc): Update arm syscall
10349 decoding.
10350 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10351 <arm_syscall_record>: New field.
10352 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10353 gdb_target_obs.
10354
9904a494
OJ
103552014-01-15 Omair Javaid <omair.javaid@linaro.org>
10356
10357 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10358 register for push instruction recording.
10359
f969241e
OJ
103602014-01-15 Omair Javaid <omair.javaid@linaro.org>
10361
10362 * arm-tdep.c (thumb_record_misc): Update to correct logical
10363 error while recording ldm, ldmia and pop instructions.
10364
bfbbec00
OJ
103652014-01-15 Omair Javaid <omair.javaid@linaro.org>
10366
10367 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10368
e40adcc9
PA
103692014-01-15 Pedro Alves <palves@redhat.com>
10370
10371 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10372 (go32_resume, go32_fetch_registers, store_register)
10373 (go32_store_registers, go32_prepare_to_store)
10374 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10375 (go32_create_inferior, go32_can_run, go32_terminal_init)
10376 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10377 declarations.
10378
b0a16e66
TT
103792014-01-15 Tom Tromey <tromey@redhat.com>
10380
10381 * target.h (async_callback_ftype): New typedef.
10382 (struct target_ops) <to_async>: Use it.
10383
bf7105a4
JB
103842014-01-15 Joel Brobecker <brobecker@adacore.com>
10385
10386 * python/py-value.c (get_field_type): Remove unnecessary curly
10387 braces for single-statement if block.
10388
a8f35c2e
JB
103892014-01-15 Joel Brobecker <brobecker@adacore.com>
10390
10391 * python/py-type.c (convert_field): Add missing empty line
10392 after declarations.
10393
bb4142cf
DE
103942014-01-14 Doug Evans <dje@google.com>
10395
10396 * symfile.h (expand_symtabs_matching): Renamed from
10397 expand_partial_symbol_names. Update prototype.
10398 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10399 * symfile.c (expand_symtabs_matching): Renamed from
10400 expand_partial_symbol_names. New args file_matcher, kind.
10401 Rename arg fun to symbol_matcher.
10402 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10403 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10404 ada_expand_partial_symbol_name.
10405 (ada_make_symbol_completion_list): Update to call
10406 expand_symtabs_matching.
10407 (ada_add_global_exceptions): Call expand_symtabs_matching.
10408 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10409 call map_symbol_filenames.
10410 * symtab.c (sources_info): Update to call map_symbol_filenames.
10411 (search_symbols): Call expand_symtabs_matching.
10412 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10413 (default_make_symbol_completion_list_break_on): Update to call
10414 expand_symtabs_matching.
10415 (make_source_files_completion_list): Update to call
10416 map_symbol_filenames.
10417
206f2a57
DE
104182014-01-14 Doug Evans <dje@google.com>
10419
10420 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10421 (expand_symtabs_symbol_matcher_ftype): New typedef.
10422 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10423 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10424 * symfile.c (expand_partial_symbol_names): Update to use
10425 expand_symtabs_symbol_matcher_ftype.
10426 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10427 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10428 Arg name_matcher renamed to symbol_matcher.
10429 * psymtab.c (recursively_search_psymtabs): Update to use
10430 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10431 sym_matcher.
10432 (expand_symtabs_matching_via_partial): Update to use
10433 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10434 Arg name_matcher renamed to symbol_matcher.
10435
540c2971
DE
104362014-01-14 Doug Evans <dje@google.com>
10437
10438 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10439 (map_partial_symbol_filenames): Ditto.
10440 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10441 (map_partial_symbol_filenames): Ditto.
10442 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10443 (map_partial_symbol_filenames): Ditto.
10444 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10445 (map_partial_symbol_filenames): Ditto.
10446 * symtab.c: Delete #include "psymtab.h".
10447
8213266a
PA
104482014-01-14 Pedro Alves <palves@redhat.com>
10449 Tom Tromey <tromey@redhat.com>
10450
10451 * infrun.c (use_displaced_stepping): Use find_record_target
10452 instead of RECORD_IS_USED.
10453 (adjust_pc_after_break): Use record_full_is_used instead of
10454 RECORD_IS_USED.
10455 * record-btrace.c (record_btrace_open): Call record_preopen
10456 instead of checking RECORD_IS_USED.
10457 * record-full.c (record_full_shortname)
10458 (record_full_core_shortname): New globals.
10459 (record_full_is_used): New function.
10460 (find_full_open): Call record_preopen instead of checking
10461 RECORD_IS_USED.
10462 (init_record_full_ops): Set the target's shortname to
10463 record_full_shortname.
10464 (init_record_full_core_ops): Set the target's shortname to
10465 record_full_core_shortname.
10466 * record-full.h (record_full_is_used): Declare.
10467 * record.c (find_record_target): Make extern.
10468 (record_preopen): New function.
10469 * record.h (RECORD_IS_USED): Delete macro.
10470 (find_record_target, record_preopen): Declare functions.
10471
7ec1862d
YQ
104722014-01-14 Yao Qi <yao@codesourcery.com>
10473
10474 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10475 'len''s type to ULONGEST.
10476 (core_xfer_shared_libraries_aix): Likewise.
10477 * gdbarch.c, gdbarch.h: Regenerated.
10478 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10479 Change type of 'len' to ULONGEST.
10480 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10481 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10482
dea80a27
YQ
104832014-01-14 Yao Qi <yao@codesourcery.com>
10484
10485 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10486 type of 'len' to ULONGEST.
10487 (linux_xfer_osdata_processgroups): Likewise.
10488 (linux_xfer_osdata_threads): Likewise.
10489 (linux_xfer_osdata_fds): Likewise.
10490 (linux_xfer_osdata_isockets): Likewise.
10491 (linux_xfer_osdata_shm): Likewise.
10492 (linux_xfer_osdata_sem): Likewise.
10493 (linux_xfer_osdata_msg): Likewise.
10494 (linux_common_xfer_osdata): Likewise.
10495 (struct osdata_type) <getter>: Likewise.
10496 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10497 the declaration.
10498
b55e14c7
YQ
104992014-01-14 Yao Qi <yao@codesourcery.com>
10500
10501 * target.h (target_xfer_partial_ftype): Update.
10502 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10503 ULONGEST.
10504 * aix-thread.c (aix_thread_xfer_partial): Change type of
10505 argument 'len' to ULONGEST.
10506 * auxv.c (procfs_xfer_auxv): Likewise.
10507 (ld_so_xfer_auxv): Likewise.
10508 (memory_xfer_auxv): Likewise.
10509 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10510 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10511 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10512 * corelow.c (core_xfer_partial): Likewise.
10513 * ctf.c (ctf_xfer_partial): Likewise.
10514 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10515 '%u'.
10516 (darwin_read_dyld_info): Likewise.
10517 (darwin_xfer_partial): Likewise.
10518 * exec.c (section_table_xfer_memory_partial): Likewise.
10519 (exec_xfer_partial): Likewise.
10520 * exec.h (section_table_xfer_memory_partial): Update
10521 declaration.
10522 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10523 instead of plongest.
10524 (gnu_xfer_partial): Likewise.
10525 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10526 (ia64_hpux_xfer_solib_got): Likewise.
10527 (ia64_hpux_xfer_partial): Likewise.
10528 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10529 * inf-ptrace.c (inf_ptrace_xfer_partial):
10530 * inf-ttrace.c (inf_ttrace_xfer_partial):
10531 * linux-nat.c (linux_xfer_siginfo): Likewise.
10532 (linux_nat_xfer_partial): Likewise.
10533 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10534 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10535 * monitor.c (monitor_xfer_memory): Likewise.
10536 (monitor_xfer_partial): Likewise.
10537 * procfs.c (procfs_xfer_partial): Likewise.
10538 * record-full.c (record_full_xfer_partial): Likewise.
10539 (record_full_core_xfer_partial): Likewise.
10540 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10541 instead of plongest.
10542 (gdbsim_xfer_partial): Likewise.
10543 * remote.c (remote_xfer_partial): Likewise.
10544 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10545 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10546 declaration.
10547 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10548 (rs6000_xfer_shared_libraries): Likewise.
10549 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10550 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10551 (sparc_xfer_partial): Likewise.
10552 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10553 (spu_xfer_partial): Likewise.
10554 * spu-multiarch.c (spu_xfer_partial): Likewise.
10555 * target.c (target_read_live_memory): Likewise.
10556 (memory_xfer_live_readonly_partial): Likewise.
10557 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10558 (target_xfer_partial, default_xfer_partial): Likewise.
10559 (current_xfer_partial): Likewise.
10560 * tracepoint.c (tfile_xfer_partial): Likewise.
10561 * windows-nat.c (windows_xfer_memory): Likewise. Call
10562 pulongest instead of plongest.
10563 (windows_xfer_partial): Likewise.
10564 (windows_xfer_shared_libraries): Likewise.
10565
05804640
YQ
105662014-01-14 Yao Qi <yao@codesourcery.com>
10567
10568 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10569 target_xfer_partial_ftype.
10570
b5b08fb4
SC
105712014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10572
10573 PR python/15464
10574 PR python/16113
10575 * valops.c (value_struct_elt_bitpos): New function
10576 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10577 object to 'None' if the field name is an empty string ("").
10578 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10579 attribute to look for a field when 'name' is 'None'.
10580 (get_field_type): New function
10581
13aaf454
DE
105822014-01-13 Doug Evans <dje@google.com>
10583
10584 PR symtab/16426
10585 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10586 (try_open_dwop_file): Ditto.
10587 * gdb_bfd.c: #include "vec.h".
10588 (bfdp): New typedef.
10589 (struct gdb_bfd_data): New member included_bfds.
10590 (gdb_bfd_unref): Unref all included bfds.
10591 (gdb_bfd_record_inclusion): New function.
10592 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10593
c2cec97c
TT
105942014-01-13 Tom Tromey <tromey@redhat.com>
10595
10596 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10597
78e5999d
TT
105982014-01-13 Tom Tromey <tromey@redhat.com>
10599
10600 * defs.h (use_windows): Remove.
10601 * gdb.c (main): Update.
10602 * main.c (captured_main, gdb_main): Update.
10603 * main.h (struct captured_main_args) <use_windows>: Remove.
10604 * top.c (use_windows): Remove.
10605
f2052bbe
TT
106062014-01-13 Tom Tromey <tromey@redhat.com>
10607
10608 * defs.h (deprecated_flush_hook): Remove.
10609
fde4f8ed
JK
106102014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10611
10612 PR threads/16216
10613 * linux-thread-db.c (try_thread_db_load): Add parameter
10614 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10615 (try_thread_db_load_from_pdir_1): Move it there from here.
10616 (try_thread_db_load_from_sdir): Update caller.
10617 (try_thread_db_load_from_dir): Move it there from here.
10618
bdf61915
PP
106192014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10620
10621 * regformats/regdat.sh: Always rewrite the register file.
10622
f71e1a8d
PA
106232014-01-13 Pedro Alves <palves@redhat.com>
10624
10625 * Makefile.in (CHECK_HEADERS): New variable.
10626 (check-headers:): New rule.
10627
42c85435
TT
106282014-01-13 Tom Tromey <tromey@redhat.com>
10629
10630 * cli/cli-setshow.c (do_set_command): Update.
10631 * defs.h (deprecated_set_hook): Remove.
10632 * top.c (deprecated_set_hook): Remove.
10633
f8de5129
PA
106342014-01-13 Pedro Alves <palves@redhat.com>
10635
10636 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10637 the tracepoint if the PC is a pseudo-register.
10638
fc270c35
TT
106392014-01-13 Tom Tromey <tromey@redhat.com>
10640
10641 * defs.h (XCALLOC): Remove.
10642 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10643 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10644 * dwarf2loc.c (allocate_piece_closure): Likewise.
10645 * elfread.c (elf_symfile_segments): Likewise.
10646 (elf_symfile_segments): Likewise.
10647 * gdbtypes.c (copy_type_recursive): Likewise.
10648 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10649 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10650 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10651 XCALLOC.
10652 * mt-tdep.c (mt_gdbarch_init): Likewise.
10653 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10654 XCALLOC.
10655 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10656 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10657 * registry.c (registry_alloc_data): Likewise.
10658 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10659 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10660 * serial.c (serial_fdopen_ops): Likewise.
10661 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10662 XCALLOC.
10663 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10664 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10665 not XCALLOC.
10666
70ba0933
TT
106672014-01-13 Tom Tromey <tromey@redhat.com>
10668
10669 * defs.h (XMALLOC): Remove.
10670 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10671 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10672 * cli-out.c (struct ui_out *): Likewise.
10673 * cli/cli-dump.c (add_dump_command): Likewise.
10674 (add_dump_command): Likewise.
10675 * complaints.c (get_complaints): Likewise.
10676 (find_complaint): Likewise.
10677 * dwarf2-frame.c (execute_cfa_program): Likewise.
10678 * dwarf2read.c (abbrev_table_read_table): Likewise.
10679 * gdbarch.sh: Likewise.
10680 * gdbarch.c: Rebuild.
10681 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10682 * interps.c (interp_new): Likewise.
10683 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10684 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10685 * mi/mi-console.c (mi_console_file_new): Likewise.
10686 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10687 * mi/mi-out.c (mi_out_new): Likewise.
10688 * mi/mi-parse.c (mi_parse): Likewise.
10689 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10690 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10691 * observer.c (xalloc_observer_list_node): Likewise.
10692 * regcache.c (regcache_xmalloc_1): Likewise.
10693 * reggroups.c (reggroup_new): Likewise.
10694 (_initialize_reggroup): Likewise.
10695 * registry.c (register_data_with_cleanup): Likewise.
10696 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10697 * ser-base.c (serial_ttystate): Likewise.
10698 * ser-mingw.c (make_pipe_state): Likewise.
10699 * ser-pipe.c (pipe_open): Likewise.
10700 * serial.c (serial_open): Likewise.
10701 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10702 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10703 (tui_alloc_win_info): Likewise.
10704 (tui_add_content_elements): Likewise.
10705 * tui/tui-file.c (tui_file_new): Likewise.
10706 * tui/tui-out.c (tui_out_new): Likewise.
10707 * ui-file.c (mem_file_new): Likewise.
10708 * ui-out.c (push_level): Likewise.
10709 (make_cleanup_ui_out_end): Likewise.
10710 (append_header_to_list): Likewise.
10711 (ui_out_new): Likewise.
10712 * user-regs.c (user_reg_add_builtin): Likewise.
10713
41bf6aca
TT
107142014-01-13 Tom Tromey <tromey@redhat.com>
10715
10716 * defs.h (XZALLOC): Remove.
10717 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10718 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10719 (get_ada_tasks_inferior_data): Likewise.
10720 * auto-load.c (get_auto_load_pspace_data): Likewise.
10721 * auxv.c (get_auxv_inferior_data): Likewise.
10722 * bfd-target.c (target_bfd_reopen): Likewise.
10723 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10724 (deprecated_insert_raw_breakpoint): Likewise.
10725 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10726 * corelow.c (core_open): Likewise.
10727 * darwin-nat.c (darwin_check_new_threads): Likewise.
10728 (darwin_attach_pid): Likewise.
10729 * dummy-frame.c (dummy_frame_push): Likewise.
10730 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10731 * dwarf2loc.c (allocate_piece_closure): Likewise.
10732 * elfread.c (elf_symfile_segments): Likewise.
10733 * eval.c (ptrmath_type_p): Likewise.
10734 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10735 * gdbtypes.c (alloc_type_arch): Likewise.
10736 (alloc_type_instance): Likewise.
10737 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10738 * inf-child.c (inf_child_can_use_agent): Likewise.
10739 * inflow.c (get_inflow_inferior_data): Likewise.
10740 * infrun.c (save_infcall_suspend_state): Likewise.
10741 * jit.c (jit_reader_load): Likewise.
10742 (get_jit_objfile_data): Likewise.
10743 (get_jit_program_space_data): Likewise.
10744 (jit_object_open_impl): Likewise.
10745 (jit_symtab_open_impl): Likewise.
10746 (jit_block_open_impl): Likewise.
10747 (jit_frame_sniffer): Likewise.
10748 * linux-fork.c (add_fork): Likewise.
10749 * maint.c (make_command_stats_cleanup): Likewise.
10750 * objfiles.c (get_objfile_pspace_data): Likewise.
10751 * opencl-lang.c (struct lval_closure): Likewise.
10752 * osdata.c (osdata_start_osdata): Likewise.
10753 * progspace.c (new_address_space): Likewise.
10754 (add_program_space): Likewise.
10755 * remote-sim.c (get_sim_inferior_data): Likewise.
10756 * sh-tdep.c (sh_gdbarch_init): Likewise.
10757 * skip.c (Ignore): Likewise.
10758 (skip_delete_command): Likewise.
10759 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10760 (library_list_start_library): Likewise.
10761 (solib_aix_current_sos): Likewise.
10762 * solib-darwin.c (get_darwin_info): Likewise.
10763 (darwin_current_sos): Likewise.
10764 * solib-dsbt.c (get_dsbt_info): Likewise.
10765 * solib-ia64-hpux.c (new_so_list): Likewise.
10766 (ia64_hpux_get_solib_linkage_addr): Likewise.
10767 * solib-spu.c (append_ocl_sos): Likewise.
10768 (spu_current_sos): Likewise.
10769 * solib-svr4.c (get_svr4_info): Likewise.
10770 (svr4_keep_data_in_core): Likewise.
10771 (library_list_start_library): Likewise.
10772 (svr4_default_sos): Likewise.
10773 (svr4_read_so_list): Likewise.
10774 * solib-target.c (library_list_start_library): Likewise.
10775 (solib_target_current_sos): Likewise.
10776 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10777 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10778 * symfile.c (default_symfile_segments): Likewise.
10779 * target-descriptions.c (tdesc_data_init): Likewise.
10780 (tdesc_create_reg): Likewise.
10781 (struct tdesc_type *): Likewise.
10782 (tdesc_create_vector): Likewise.
10783 (tdesc_set_struct_size): Likewise.
10784 (struct tdesc_type *): Likewise.
10785 (tdesc_free_feature): Likewise.
10786 (tdesc_create_feature): Likewise.
10787 * windows-nat.c (windows_add_thread): Likewise.
10788 (windows_make_so): Likewise.
10789 * xml-support.c (gdb_xml_body_text): Likewise.
10790 (gdb_xml_create_parser_and_cleanup): Likewise.
10791 (xml_process_xincludes): Likewise.
10792 * xml-syscall.c (allocate_syscalls_info): Likewise.
10793 (syscall_create_syscall_desc): Likewise.
10794
5acfdbae
SDJ
107952014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10796
10797 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10798 function, with code from i386_stap_parse_special_token.
10799 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10800 (i386_stap_parse_special_token): Move code to the two functions
10801 above; simplify it.
10802
0000e5cc
PA
108032014-01-09 Pedro Alves <palves@redhat.com>
10804 Hui Zhu <hui@codesourcery.com>
10805
10806 PR gdb/16101
10807 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10808 bp_err_string. Don't mark the location shlib_disabled if the
10809 error thrown wasn't a generic or memory error. Catch errors
10810 thrown while inserting breakpoints in overlayed code. Output
10811 error message of software breakpoints.
10812 * remote.c (remote_insert_breakpoint): If this breakpoint has
10813 target-side commands but this stub doesn't support Z0 packets,
10814 throw NOT_SUPPORTED_ERROR error.
10815 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10816 * target.h (target_insert_breakpoint): Extend comment.
10817 (target_insert_hw_breakpoint): Add comment.
10818
b7ea362b
PA
108192014-01-08 Pedro Alves <palves@redhat.com>
10820
10821 * remote.c (remote_add_thread): Add threads silently if starting
10822 up.
10823 (remote_notice_new_inferior): If in all-stop, and starting up,
10824 don't call notice_new_inferior.
10825 (get_current_thread): New function, factored out from ...
10826 (add_current_inferior_and_thread): ... this. Adjust.
10827 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10828 found any thread, then select the remote's current thread as GDB's
10829 current thread too.
10830
b7bba001
JB
108312014-01-08 Joel Brobecker <brobecker@adacore.com>
10832
10833 * NEWS: Create a new section for the next release branch.
10834 Rename the section of the current branch, now that it has
10835 been cut.
10836
16dfbded
JB
108372014-01-08 Joel Brobecker <brobecker@adacore.com>
10838
10839 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10840 * version.in: Bump version to 7.7.50.DATE-cvs.
10841
22c90ac1
YQ
108422014-01-08 Yao Qi <yao@codesourcery.com>
10843
10844 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10845 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10846 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10847
d64ad97c
YQ
108482014-01-08 Yao Qi <yao@codesourcery.com>
10849
10850 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10851 return value of bfd_get_filename to symbol_file_add_from_bfd.
10852
f93ba80c
PM
108532014-01-08 Pierre Muller <muller@sourceware.org>
10854
10855 Fix PR16201.
10856 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10857 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10858 to prim_record_mininal_symbol_and_info.
10859 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10860 in call to prim_record_minimal_symbol_and_info.
10861 (read_pe_exported_syms): Set index field of section_data.
10862
a4d9ba85
AP
108632014-01-07 Andrew Pinski <apinski@cavium.com>
10864
10865 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10866 * features/aarch64.c: Regenerate.
10867
1b67eb02
AS
108682014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10869
10870 * target.c (return_null): Define.
10871 (update_current_target): Use it instead of return_zero for
10872 functions that return a pointer.
10873
5e3f4fab
EBM
108742014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10875
10876 * source.c (add_path): Fix check for duplicated paths in the previously
10877 included paths.
10878
e2616788
HK
108792014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10880
10881 * ada-lang.c: Remove duplicated include statements.
10882 * alphabsd-nat.c: Ditto.
10883 * amd64-darwin-tdep.c: Ditto.
10884 * amd64fbsd-nat.c: Ditto.
10885 * auto-load.c: Ditto.
10886 * ax-gdb.c: Ditto.
10887 * breakpoint.c: Ditto.
10888 * dbxread.c: Ditto.
10889 * fork-child.c: Ditto.
10890 * gdb_usleep.c: Ditto.
10891 * i386-darwin-tdep.c: Ditto.
10892 * i386fbsd-nat.c: Ditto.
10893 * infcmd.c: Ditto.
10894 * inferior.c: Ditto.
10895 * jv-lang.c: Ditto.
10896 * linux-nat.c: Ditto.
10897 * linux-tdep.c: Ditto.
10898 * m68kbsd-nat.c: Ditto.
10899 * m68klinux-nat.c: Ditto.
10900 * microblaze-tdep.c: Ditto.
10901 * mips-linux-tdep.c: Ditto.
10902 * mn10300-tdep.c: Ditto.
10903 * nto-tdep.c: Ditto.
10904 * opencl-lang.c: Ditto.
10905 * osdata.c: Ditto.
10906 * printcmd.c: Ditto.
10907 * regcache.c: Ditto.
10908 * remote-m32r-sdi.c: Ditto.
10909 * remote.c: Ditto.
10910 * symfile.c: Ditto.
10911 * symtab.c: Ditto.
10912 * tilegx-linux-nat.c: Ditto.
10913 * tilegx-tdep.c: Ditto.
10914 * tracepoint.c: Ditto.
10915 * valops.c: Ditto.
10916 * vaxbsd-nat.c: Ditto.
10917 * windows-nat.c: Ditto.
10918 * xtensa-tdep.c: Ditto.
10919
bd1f7788
YQ
109202014-01-07 Yao Qi <yao@codesourcery.com>
10921
10922 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10923
79301218
JB
109242014-01-07 Yao Qi <yao@codesourcery.com>
10925 Joel Brobecker <brobecker@adacore.com>
10926
10927 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10928 (pdc_write_regs): Likewise.
10929 (fetch_regs_kernel_thread): Likewise.
10930 (store_regs_kernel_thread): Likewise.
10931
109322014-01-07 Joel Brobecker <brobecker@adacore.com>
10933
10934 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10935 tagged type objects to their actual type.
10936
8e355c5d
JB
109372014-01-07 Joel Brobecker <brobecker@adacore.com>
10938
10939 * ada-valprint.c (print_field_values): Add "language" parameter.
10940 Update calls to print_field_values and print_variant_part.
10941 Pass new parameter "language" in call to val_print instead
10942 of "current_language". Replace call to ada_val_print by call
10943 to val_print.
10944 (print_variant_part): Add "language" parameter.
10945 (ada_val_print_struct_union): Update call to print_field_values.
10946
4fbf5aa5
JB
109472014-01-07 Joel Brobecker <brobecker@adacore.com>
10948
10949 * ada-valprint.c (ui_memcpy): Delete.
10950 (ada_print_floating): Update documentation. Add empty line
10951 between between function documentation and implementation.
10952 Delete variable "buffer". Use ui_file_xstrdup in place of
10953 ui_file_put. Minor adjustments following this change.
10954
71855601
JB
109552014-01-07 Joel Brobecker <brobecker@adacore.com>
10956
10957 * ada-valprint.c (ada_val_print_string): New function,
10958 extracted from ada_val_print_array.
10959 (ada_val_print_array): Replace extracted code by call
10960 to ada_val_print_string followed by a return. Move
10961 "else" branch to the function's top block.
10962
4eb27a30
JB
109632014-01-07 Joel Brobecker <brobecker@adacore.com>
10964
10965 * ada-valprint.c (ada_val_print_array): Move implementation
10966 down. Rename parameter "offset" and "val" into "offset_aligned"
10967 and "original_value" respectively. Add parameter "offset".
10968
34b27950
JB
109692014-01-07 Joel Brobecker <brobecker@adacore.com>
10970
10971 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10972 re-organizing the code. Change the "???" message printed
10973 when target type is a TYPE_CODE_UNDEF into
10974 "<ref to undefined type>".
10975
079e4591
JB
109762014-01-07 Joel Brobecker <brobecker@adacore.com>
10977
10978 * ada-valprint.c (print_record): Delete, implementation inlined...
10979 (ada_val_print_struct_union): ... here. Remove call to
10980 ada_check_typedef in inlined implementation.
10981
8004dfd1
JB
109822014-01-07 Joel Brobecker <brobecker@adacore.com>
10983
10984 * ada-valprint.c (ada_val_print_gnat_array): New function,
10985 extracted from ada_val_print_1;
10986 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10987 (ada_val_print_flt, ada_val_print_struct_union)
10988 (ada_val_print_ref): Likewise.
10989 (ada_val_print_1): Delete variables i and elttype.
10990 Replace extracted-out code by call to corresponding
10991 new functions.
10992
760a2db0
JB
109932014-01-07 Joel Brobecker <brobecker@adacore.com>
10994
10995 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10996
3a92c861
JB
109972014-01-07 Joel Brobecker <brobecker@adacore.com>
10998
10999 * ada-valprint.c (ada_val_print_1): Replace calls to
11000 ada_val_print_1 by calls to val_print.
11001
cd1630f9
JB
110022014-01-07 Joel Brobecker <brobecker@adacore.com>
11003
11004 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11005 Update calls to self accordingly. Replace calls to c_val_print
11006 by calls to val_print.
11007
bdf779a0
JB
110082014-01-07 Joel Brobecker <brobecker@adacore.com>
11009
11010 * ada-valprint.c (print_record): Delete declaration.
11011 (adjust_type_signedness, ada_val_print_1): Likewise.
11012 (ada_val_print): Move function implementation down.
11013 (print_variant_part, print_field_values, print_record):
11014 Move function implementation up.
11015
c0d48811
JB
110162014-01-07 Joel Brobecker <brobecker@adacore.com>
11017
11018 * python/py-type.c (typy_get_name): New function.
11019 (type_object_getset): Add entry for attribute "name".
11020 * NEWS: Add entry mentioning this new attribute.
11021
c26e9cbb
YQ
110222014-01-07 Yao Qi <yao@codesourcery.com>
11023
11024 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11025 statement.
11026
0cc6f43d
YQ
110272014-01-07 Yao Qi <yao@codesourcery.com>
11028
11029 * gnu-nat.c (info_port_rights): Add qualifier const to
11030 argument args.
11031
eec03155
YQ
110322014-01-07 Yao Qi <yao@codesourcery.com>
11033
11034 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11035
f04a82ef
YQ
110362014-01-07 Yao Qi <yao@codesourcery.com>
11037
11038 * gnu-nat.c (make_inf) Update declaration.
11039 (make_inf): Make it static.
11040 (inf_set_traced): Likewise.
11041 (inf_port_to_thread, inf_task_died_status): Likewise.
11042
d57dda0a
YQ
110432014-01-07 Yao Qi <yao@codesourcery.com>
11044
11045 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11046
3aa8c969
YQ
110472014-01-07 Yao Qi <yao@codesourcery.com>
11048
11049 * gnu-nat.c (_initialize_gnu_nat): Declare.
11050
94123b4f
YQ
110512014-01-07 Yao Qi <yao@codesourcery.com>
11052
11053 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11054 'enum bfd_endian'.
11055 (struct gdbarch_info) <byte_order>: Change type to
11056 'enum bfd_endian'.
11057 <byte_order_for_code>: Likewise.
11058 * gdbarch.c, gdbarch.h: Regenerated.
11059
dc81d70a
TT
110602014-01-06 Sasha Smundak <asmundak@google.com>
11061
11062 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11063
cc2f3c35
TT
110642014-01-06 Tom Tromey <tromey@redhat.com>
11065
11066 * doublest.c (convert_doublest_to_floatformat): Use const, not
11067 CONST.
11068 * somread.c (som_symtab_read): Likewise.
11069
adcf2eed
HZ
110702014-01-07 Hui Zhu <hui@codesourcery.com>
11071
11072 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11073 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11074 (gdb_bfd_fopen): Ditto.
11075 (gdb_bfd_openr): Ditto.
11076 (gdb_bfd_openw): Ditto.
11077 (gdb_bfd_openr_iovec): Ditto.
11078 (gdb_bfd_fdopenr): Ditto.
11079 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11080 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11081 with xstrdup.
11082 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11083 with xstrdup.
11084 * symfile-mem.c (symbol_file_add_from_memory): Removed
11085 gdb_bfd_stash_filename.
11086
50722198
DE
110872014-01-03 Doug Evans <dje@google.com>
11088
11089 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11090 output.
11091
2fa4b862
JB
110922014-01-01 Joel Brobecker <brobecker@adacore.com>
11093
11094 Update year range in copyright notice of all files.
11095
28498c42
JB
110962014-01-01 Joel Brobecker <brobecker@adacore.com>
11097
11098 * top.c (print_gdb_version): Set copyright year to 2014.
11099
7b6e1046
JB
111002014-01-01 Joel Brobecker <brobecker@adacore.com>
11101
11102 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11103
df96af55 11104For older changes see ChangeLog-2013.
c906108c
SS
11105\f
11106Local Variables:
11107mode: change-log
11108left-margin: 8
11109fill-column: 74
11110version-control: never
57da7796 11111coding: utf-8
c906108c 11112End:
This page took 2.155261 seconds and 4 git commands to generate.