Move libiberty.h to common-defs.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b9391142
GB
12014-08-07 Gary Benson <gbenson@redhat.com>
2
3 * common/common-defs.h: Include libiberty.h.
4 * defs.h: Do not include libiberty.h.
5 * common/queue.h: Likewise.
6 * cp-name-parser.y: Likewise.
7 * mi/mi-cmd-catch.c: Likewise.
8 * python/python.c: Likewise.
9
0e443c87
GB
102014-08-07 Gary Benson <gbenson@redhat.com>
11
12 * common/common-defs.h: Include ansidecl.h.
13 * defs.h: Do not include ansidecl.h.
14 * common/buffer.h: Likewise.
15 * common/common-utils.h: Likewise.
16
8ebb3f56
GB
172014-08-07 Gary Benson <gbenson@redhat.com>
18
19 * common/common-defs.h: Include stddef.h.
20 * defs.h: Do not include stddef.h.
21 * common/common-utils.h: Likewise.
22 * amd64fbsd-nat.c: Likewise.
23 * bcache.c: Likewise.
24 * charset.c: Likewise.
25 * common/buffer.h: Likewise.
26 * common/vec.h: Likewise.
27 * i386bsd-nat.c: Likewise.
28 * nat/linux-btrace.h: Likewise.
29 * ppcfbsd-nat.c: Likewise.
30 * ppcnbsd-tdep.h: Likewise.
31 * ppcobsd-nat.c: Likewise.
32 * ppcobsd-tdep.h: Likewise.
33 * python/py-gdb-readline.c: Likewise.
34
8980bdf6
GB
352014-08-07 Gary Benson <gbenson@redhat.com>
36
37 * common/common-defs.h: Include stdarg.h.
38 * defs.h: Do not include stdarg.h.
39 * ada-lang.c: Likewise.
40 * common/common-utils.h: Likewise.
41 * guile/scm-string.c: Likewise.
42 * guile/scm-utils.c: Likewise.
43 * m32c-tdep.c: Likewise.
44
d7096f71
GB
452014-08-07 Gary Benson <gbenson@redhat.com>
46
47 * common/common-defs.h: Include stdlib.h.
48 * defs.h: Do not include stdlib.h.
49 * addrmap.c: Likewise.
50 * bcache.c: Likewise.
51 * common/buffer.c: Likewise.
52 * common/common-utils.c: Likewise.
53 * cp-name-parser.y: Likewise.
54 * go32-nat.c: Likewise.
55 * mn10300-linux-tdep.c: Likewise.
56 * nat/linux-osdata.c: Likewise.
57 * tui/tui.c: Likewise.
58 * windows-nat.c: Likewise.
59
d02f550d
GB
602014-08-07 Gary Benson <gbenson@redhat.com>
61
62 * common/common-defs.h: Include stdio.h.
63 * defs.h: Do not include stdio.h.
64 * ada-lang.c: Likewise.
65 * common/buffer.c: Likewise.
66 * common/common-utils.c: Likewise.
67 * cp-name-parser.y: Likewise.
68 * gnu-nat.c: Likewise.
69 * go32-nat.c: Likewise.
70 * i386gnu-nat.c: Likewise.
71 * proc-api.c: Likewise.
72 * proc-events.c: Likewise.
73 * proc-flags.c: Likewise.
74 * proc-why.c: Likewise.
75 * python/python-internal.h: Likewise.
76 * target-memory.c: Likewise.
77 * tui/tui-io.c: Likewise.
78 * tui/tui.c: Likewise.
79
b6d7a4bf
SM
802014-08-06 Simon Marchi <simon.marchi@ericsson.com>
81
82 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
83 (scan_dyntag_auxv): Same.
84
af19829b
YQ
852014-08-06 Yao Qi <yao@codesourcery.com>
86
87 * amd64-linux-nat.c: Remove duplicated include
88 "x86-linux-nat.h".
89 * i386-linux-nat.c: Likewise.
90
8e07a239
YQ
912014-08-06 Yao Qi <yao@codesourcery.com>
92
93 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
94 operand" with "Special opcode" in comments.
95
7bfe8241
GB
962014-08-05 Gary Benson <gbenson@redhat.com>
97
98 * interps.c (initialize_interps): Remove prototype.
99 (interpreter_initialized): Remove static global.
100 (interp_add): Do not call initialize_interps.
101 (initialize_interps): Remove function.
102
d6c95504
GB
1032014-08-05 Gary Benson <gbenson@redhat.com>
104
105 * utils.c (vwarning): Remove spurious va_end.
106
241fd515
AM
1072014-08-05 Alan Modra <amodra@gmail.com>
108
109 * charset.c (convert_between_encodings): Cast result of obstack_base.
110 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
111 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
112 (read_unwind_info): Use size_t for some locals.
113 * jit.c (finalize_symtab): Likewise.
114 * utils.c (hashtab_obstack_allocate): Likewise.
115 * symmisc.c (print_objfile_statistics): Update format strings.
116
dc304a94
JK
1172014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
118
119 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
120 (Changes in GDB 7.8): ... here.
121
3cecbbbe
TT
1222014-08-04 Tom Tromey <tromey@redhat.com>
123
124 * target.c (set_targetdebug): New function.
125 (initialize_targets): Pass set_targetdebug when creating "set
126 debug target".
127
6908c509
JB
1282014-08-01 Joel Brobecker <brobecker@adacore.com>
129
130 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
131 if detecting a variable-sized field that is not the last field.
132 Fix struct type length computation.
133
53e8f97d
JB
1342014-08-01 Joel Brobecker <brobecker@adacore.com>
135
136 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
137 Add debug trace.
138
e068c55d
JB
1392014-08-01 Joel Brobecker <brobecker@adacore.com>
140
141 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
142 Remove "+ 8" offset in computation of CHAIN_VMA.
143
4d4ca2a1
DE
1442014-07-31 Doug Evans <dje@google.com>
145
146 * inflow.c (child_terminal_inferior): Add comment.
147 (child_terminal_ours_for_output): Add comment.
148 (child_terminal_ours): Add comment.
149 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
150 (linux_nat_terminal_ours): Add comment.
151
462f517e
GB
1522014-07-31 Gary Benson <gbenson@redhat.com>
153
154 * common/btrace-common.h: Do not include defs.h or server.h.
155 * nat/mips-linux-watch.h: Likewise.
156 * gdb-dlfcn.h: Do not include defs.h.
157 * tracefile.h: Likewise.
158
74228e77
RM
1592014-07-30 Roland McGrath <mcgrathr@google.com>
160
161 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
162
014f9477
TT
1632014-07-30 Tom Tromey <tromey@redhat.com>
164
165 * bsd-kvm.c (bsd_kvm_open): Constify.
166 * corelow.c (core_open): Constify.
167 * ctf.c (ctf_open): Constify.
168 * dbug-rom.c (dbug_open): Constify.
169 * exec.c (exec_open): Constify.
170 * m32r-rom.c (m32r_open, mon2000_open): Constify.
171 * microblaze-rom.c (picobug_open): Constify.
172 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
173 Constify.
174 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
175 * record-btrace.c (record_btrace_open): Constify.
176 * record-full.c (record_full_core_open_1, record_full_open_1)
177 (record_full_open): Constify.
178 * remote-m32r-sdi.c (m32r_open): Constify.
179 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
180 (rockhopper_open, lsi_open): Constify.
181 * remote-sim.c (gdbsim_open): Constify.
182 * remote.c (remote_open, extended_remote_open, remote_open_1):
183 Constify.
184 * target.h (struct target_ops) <to_open>: Make "arg" const.
185 * tracefile-tfile.c (tfile_open): Constify.
186
e799154c
TT
1872014-07-30 Tom Tromey <tromey@redhat.com>
188
189 * breakpoint.c (map_breakpoint_numbers): Update.
190 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
191 (get_number_const): New function.
192 (get_number): Rewrite using get_number_const.
193 (init_number_or_range): Make "string" const.
194 (number_is_in_list): Make "list" const.
195 * cli/cli-utils.h (get_number_const): Declare.
196 (struct get_number_or_range_state) <string, end_ptr>: Now const.
197 (init_number_or_range, number_is_in_list): Update.
198 * printcmd.c (map_display_numbers): Update.
199 * value.c (value_from_history_ref): Constify.
200 * value.h (value_from_history_ref): Update.
201
5f08566b
TT
2022014-07-30 Tom Tromey <tromey@redhat.com>
203
204 * corefile.c (hook_type, call_extra_exec_file_hooks)
205 (specify_exec_file_hook): Constify.
206 * exec.c (exec_file_attach): Make "filename" const.
207 * gdbcore.h (deprecated_exec_file_display_hook)
208 (specify_exec_file_hook, exec_file_attach): Constify.
209 * main.c (captured_main): Use catch_command_errors_const.
210
8981c758
TT
2112014-07-30 Tom Tromey <tromey@redhat.com>
212
213 * target.c (open_target): New function.
214 (add_target_with_completer, add_deprecated_target_alias): Use
215 set_cmd_sfunc, set_cmd_context.
216 (debug_to_open): Remove.
217 (setup_target_debug): Update.
218
a1c7835a
YQ
2192014-07-30 Yao Qi <yao@codesourcery.com>
220
221 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
222 comments.
223 * parse.c (exp_iterate): Update comments.
224
976411d6
GB
2252014-07-30 Gary Benson <gbenson@redhat.com>
226
227 * common/common-defs.h: New file.
228 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
229 * defs.h: Include common-defs.h.
230 Do not include config.h or build-gnulib/config.h.
231
5d4848a4
GB
2322014-07-30 Gary Benson <gbenson@redhat.com>
233
234 * common/common-utils.h: Do not include config.h.
235 * nat/linux-btrace.h: Likewise.
236
d41f6d8e
GB
2372014-07-30 Gary Benson <gbenson@redhat.com>
238
239 * btrace.c: Include defs.h.
240 * common/ptid.c: Include defs.h or server.h as appropriate.
241 * nat/mips-linux-watch.c: Likewise.
242
84202f9c
TT
2432014-07-29 Tom Tromey <tromey@redhat.com>
244
245 * target.c (target_is_pushed): Simplify.
246
2530441c
JB
2472014-07-29 Joel Brobecker <brobecker@adacore.com>
248
249 GDB 7.8 released.
250
7e09a223
YQ
2512014-07-29 Yao Qi <yao@codesourcery.com>
252
253 PR gdb/17206
254 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
255
7ebdbe92
DE
2562014-07-28 Doug Evans <xdje42@gmail.com>
257
258 PR guile/17203
259 * guile/scm-param.c (pascm_parameter_defined_p): New function.
260 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
261 parameters.
262
f347ffc9
WN
2632014-07-28 Will Newton <will.newton@linaro.org>
264
265 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
266 (THUMB2_SET_R7_SIGRETURN2): Likewise.
267 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
268 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
269 (THUMB2_EABI_SYSCALL): Likewise.
270 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
271 struct tramp_frame.
272 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
273 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
274
37c5f1f7
DE
2752014-07-27 Doug Evans <xdje42@gmail.com>
276
277 * guile/scm-param.c (pascm_print_param_smob): Fix output.
278
0c3abbc7
DE
2792014-07-27 Doug Evans <xdje42@gmail.com>
280
281 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
282
e76c5d17
DE
2832014-07-26 Ludovic Courtès <ludo@gnu.org>
284 Doug Evans <xdje42@gmail.com>
285
286 PR guile/17146
287 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
288 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
289 * configure.ac: Try to use guild to compile an scm file, if it fails
290 then disable guile support.
291 * configure: Regenerate.
292 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
293 GUILE_FILE_LIST.
294 (GUILE_COMPILED_FILES): New variable.
295 (GUILE_FILES) Update.
296 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
297 (stamp-guile): Compile scm files.
298 * guile/guile.c (boot_guile_support): New function.
299 (standard_throw_args_p): New function.
300 (print_standard_throw_error, print_throw_error): New functions.
301 (handle_boot_error): New function.
302 (initialize_scheme_side): Rewrite to call boot_guile_support.
303 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
304 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
305
186fcde0
DE
3062014-07-26 Ludovic Courtès <ludo@gnu.org>
307 Doug Evans <xdje42@gmail.com>
308
309 PR guile/17146
310 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
311 * guile/lib/gdb/support.scm: New file.
312 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
313 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
314 All uses updated.
315 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
316 All uses updated.
317 (%assert-type): Ditto, and renamed to assert-type.
318 (%exception-print-style): Delete.
319
4df42755
DE
3202014-07-26 Doug Evans <xdje42@gmail.com>
321
322 PR build/17105
323 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
324 * configure: Regenerate.
325 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
326 PYTHON_FILES.
327 (PYTHON_FILES): New variable.
328 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
329 (GUILE_FILES): New variable.
330 (stamp-python, install-python, uninstall-python): Handle empty
331 file list.
332 (stamp-guile, install-guile, uninstall-guile): Ditto.
333
ee7333ae
DE
3342014-07-26 Doug Evans <xdje42@gmail.com>
335
336 PR guile/17177
337 * guile/lib/gdb.scm (pretty-printers): Export.
338 (set-pretty-printers!): Export.
339 * guile/lib/gdb/printing.scm (gdb module): Update.
340 (prepend-pretty-printer!, append-pretty-printer!): Update.
341 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
342 (pretty_printer_list_var): Delete.
343 (pretty_printer_list): New static global.
344 (gdbscm_pretty_printers): New function.
345 (gdbscm_set_pretty_printers_x): New function.
346 (ppscm_find_pretty_printer_from_gdb): Update.
347 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
348 (gdbscm_initialize_pretty_printers): Update.
349
74edf516
DE
3502014-07-26 Doug Evans <xdje42@gmail.com>
351
352 PR 17185
353 * configure.ac: Add check for header gc/gc.h.
354 Add check for function setenv.
355 * configure: Regenerate.
356 * config.in: Regenerate.
357 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
358
d54398a7
MR
3592014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
360
361 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
362 variation in gdbarch matching.
363
ab16fce8
TT
3642014-07-25 Tom Tromey <tromey@redhat.com>
365
366 * exec.c (using_exec_ops): Remove.
367 (exec_close_1): Update. Remove extraneous block, reindent.
368 (add_target_sections): Use target_is_pushed.
369
88056fbb
PA
3702014-07-25 Pedro Alves <palves@redhat.com>
371
372 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
373 * monitor.c (monitor_create_inferior): Likewise.
374 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
375 * remote-sim.c (gdbsim_create_inferior): Likewise.
376 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
377 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
378 * windows-nat.c (do_initial_windows_stuff): Likewise.
379
70509625
PA
3802014-07-25 Pedro Alves <palves@redhat.com>
381
382 * NEWS: Mention signal passing and "signal" command changes.
383 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
384 comment.
385 * breakpoint.c (until_break_command): Adjust clear_proceed_status
386 call.
387 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
388 * infcmd.c (proceed_thread_callback, continue_1, step_once)
389 (jump_command): Adjust clear_proceed_status call.
390 (signal_command): Warn if other thread that are resumed have
391 signals that will be delivered. Adjust clear_proceed_status call.
392 (until_next_command, finish_command)
393 (proceed_after_attach_callback, attach_command_post_wait)
394 (attach_command): Adjust clear_proceed_status call.
395 * infrun.c (proceed_after_vfork_done): Likewise.
396 (proceed_after_attach_callback): Adjust comment.
397 (clear_proceed_status_thread): Clear stop_signal if not in pass
398 state.
399 (clear_proceed_status_callback): Delete.
400 (clear_proceed_status): New 'step' parameter. Only clear the
401 proceed status of threads the command being prepared is about to
402 resume.
403 (proceed): If passed in an explicit signal, override stop_signal
404 with it. Don't pass the last stop signal to the thread we're
405 resuming.
406 (init_wait_for_inferior): Adjust clear_proceed_status call.
407 (switch_back_to_stepped_thread): Clear the signal if it should not
408 be passed.
409 * infrun.h (clear_proceed_status): New 'step' parameter.
410 (user_visible_resume_ptid): Add comment.
411 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
412 signal is in pass state.
413 * remote.c (append_pending_thread_resumptions): Likewise.
414 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
415
d8be2939
TT
4162014-07-25 Tom Tromey <tromey@redhat.com>
417
418 * target.h (target_stopped_data_address)
419 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
420 parentheses.
421
7d0d9d2b
PL
4222014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
423
424 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
425 comments.
426 (avr_pointer_to_address): Likewise.
427
e9e7f724
TT
4282014-07-24 Tom Tromey <tromey@redhat.com>
429
430 * monitor.c (compile_pattern): Update.
431 * target.h (struct target_ops) <to_shortname, to_longname,
432 to_doc>: Now const.
433
1947513d
TT
4342014-07-24 Tom Tromey <tromey@redhat.com>
435
436 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
437 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
438 (add_info_alias, add_com): Make "doc" const.
439 (print_doc_line): Make "str" const.
440 (delete_cmd): Update.
441 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
442 (print_doc_line): Update.
443 * cli/cli-script.c (document_command): Update.
444 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
445 (add_com, add_info, add_info_alias): Update.
446 * guile/scm-cmd.c (cmdscm_destroyer): Update.
447 * python/py-cmd.c (cmdpy_destroyer): Update.
448
64e61d29
TT
4492014-07-24 Tom Tromey <tromey@redhat.com>
450
451 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
452 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
453 (help_cmd_list): Constify.
454 (lookup_cmd): Update.
455 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
456 const.
457 (help_cmd_list, apropos_cmd): Update.
458 * cli/cli-script.c (show_user): Update.
459 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
460 * cli/cli-setshow.h (cmd_show_list): Update.
461 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
462 (cmd_show_list): Update.
463 * guile/scm-cmd.c (cmdscm_destroyer): Update.
464 * python/py-cmd.c (cmdpy_destroyer): Update.
465
429e55ea
TT
4662014-07-24 Tom Tromey <tromey@redhat.com>
467
468 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
469 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
470 const.
471 * command.h (deprecate_cmd): Update.
472 * maint.c (maintenance_do_deprecate): Add casts.
473
64669f3b
TT
4742014-07-24 Tom Tromey <tromey@redhat.com>
475
476 * cli/cli-decode.c (help_cmd): Make parameter "const".
477 * cli/cli-decode.h (help_cmd): Update.
478
d3d3328b
TT
4792014-07-24 Tom Tromey <tromey@redhat.com>
480
481 * stack.c (up_silently_base, down_silently_base): Make argument
482 const.
483
414842dc
TT
4842014-07-24 Tom Tromey <tromey@redhat.com>
485
486 * solib.c (solib_add): Make "pattern" const.
487 * solib.h (solib_add): Update.
488
baa336ce
TT
4892014-07-24 Tom Tromey <tromey@redhat.com>
490
491 * remote.c (remote_serial_open, print_packet, putpkt)
492 (putpkt_binary): Constify.
493 * remote.h (putpkt): Update.
494
5a19e2d0
TT
4952014-07-24 Tom Tromey <tromey@redhat.com>
496
497 * monitor.c (monitor_open): Make "args" const.
498 * monitor.h (monitor_open): Update.
499
fc4baa5e
TT
5002014-07-24 Tom Tromey <tromey@redhat.com>
501
502 * maint.c (match_bfd_flags): Make "string" const.
503 (print_bfd_section_info): Remove casts.
504 (print_objfile_section_info): Make "string" const.
505
0d5f0dbe
TT
5062014-07-24 Tom Tromey <tromey@redhat.com>
507
508 * inf-child.c (inf_child_open_target): Make "arg" const.
509 * inf-child.h (inf_child_open_target): Update.
510
41c77899
TT
5112014-07-24 Tom Tromey <tromey@redhat.com>
512
513 * environ.c (unset_in_environ): Make "var" const.
514 * environ.h (unset_in_environ): Update.
515
93db0d79
TT
5162014-07-24 Tom Tromey <tromey@redhat.com>
517
518 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
519 Make "cmd" const.
520 (scan_filename_with_cleanup): Likewise.
521 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
522 Make arguments const.
523 (restore_command): Update.
524
36d6eb95
PA
5252014-07-24 Pedro Alves <palves@redhat.com>
526
527 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
528
8009206a
TT
5292014-07-24 Tom Tromey <tromey@redhat.com>
530 Gary Benson <gbenson@redhat.com>
531
532 * nat/linux-ptrace.c (additional_flags): New global.
533 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
534 additional_flags; don't check GDBSERVER.
535 (linux_ptrace_set_additional_flags): New function.
536 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
537 Declare.
538 * linux-nat.c (_initialize_linux_nat): Call
539 linux_ptrace_set_additional_flags.
540
a7068b60
TT
5412014-07-24 Tom Tromey <tromey@redhat.com>
542
543 * make-target-delegates (munge_type, write_debugmethod): New
544 functions.
545 (debug_names): New global.
546 ($TARGET_DEBUG_PRINTER): New global.
547 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
548 name.
549 Write debug methods. Generate init_debug_target.
550 * target-debug.h: New file.
551 * target-delegates.c: Rebuild.
552 * target.c: Include target-debug.h.
553 (debug_target): Hoist definition.
554 (target_kill, target_get_section_table, target_memory_map)
555 (target_flash_erase, target_flash_done, target_detach)
556 (target_disconnect, target_wait, target_resume)
557 (target_pass_signals, target_program_signals, target_follow_fork)
558 (target_mourn_inferior, target_search_memory)
559 (target_thread_address_space, target_close)
560 (target_find_new_threads, target_core_of_thread)
561 (target_verify_memory, target_insert_mask_watchpoint)
562 (target_remove_mask_watchpoint): Remove targetdebug code.
563 (debug_to_post_attach, debug_to_prepare_to_store)
564 (debug_to_files_info, debug_to_insert_breakpoint)
565 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
566 (debug_to_region_ok_for_hw_watchpoint)
567 (debug_to_can_accel_watchpoint_condition)
568 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
569 (debug_to_watchpoint_addr_within_range)
570 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
571 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
572 (debug_to_terminal_init, debug_to_terminal_inferior)
573 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
574 (debug_to_terminal_save_ours, debug_to_terminal_info)
575 (debug_to_load, debug_to_post_startup_inferior)
576 (debug_to_insert_fork_catchpoint)
577 (debug_to_remove_fork_catchpoint)
578 (debug_to_insert_vfork_catchpoint)
579 (debug_to_remove_vfork_catchpoint)
580 (debug_to_insert_exec_catchpoint)
581 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
582 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
583 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
584 (setup_target_debug): Call init_debug_target.
585 * target.h (TARGET_DEBUG_PRINTER): New macro.
586 (struct target_ops) <to_resume, to_wait, to_pass_signals,
587 to_program_signals>: Use TARGET_DEBUG_PRINTER.
588
2c51604d
GB
5892014-07-24 Gary Benson <gbenson@redhat.com>
590
591 * exceptions.h (throw_vfatal): Renamed to...
592 (throw_vquit): New declaration.
593 (throw_quit): Likewise.
594 * exceptions.c (throw_vfatal): Renamed to...
595 (throw_vquit): New function.
596 (throw_quit): Likewise.
597 (throw_error): Call throw_verror rather than throw_it.
598 * utils.h (vfatal): Removed.
599 (fatal): Likewise.
600 * utils.c (vfatal): Removed.
601 (fatal): Likewise.
602 (internal_verror): Replaced call to fatal with call to throw_quit.
603 (quit): Replaced calls to fatal with calls to throw_quit.
604
34211963
ME
6052014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
606
607 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
608 target_read_code.
609
a52b4d3e
ME
6102014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
611
612 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
613 less than zero in conditional expression.
614
a8bdc56b
TT
6152014-07-23 Tom Tromey <tromey@redhat.com>
616
617 * make-target-delegates ($ARGS_PART): Match trailing close paren.
618 ($INTRO_PART): Don't match whitespace.
619 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
620 argument matching.
621 ($METHOD): Add $METHOD_TRAILER.
622 (trim): Rewrite.
623 (scan_target_h): New sub.
624 Change main loop not to collect state.
625 * target-delegates.c: Rebuild.
626
91b52240
GB
6272014-07-23 Gary Benson <gbenson@redhat.com>
628
629 * cp-support.c (gdb_demangle): Fix build on systems without
630 sigaltstack.
631
45326f6f
JK
6322014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
633
634 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
635 for reference entry value target data value.
636
e214cf6c
JK
6372014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
638
639 * stack.c (read_frame_arg): Verify value_optimized_out before calling
640 value_available_contents_eq.
641
bddbbedd
PA
6422014-07-22 Pedro Alves <palves@redhat.com>
643
644 * value.c (allocate_optimized_out_value): Don't mark value as
645 non-lazy.
646
45c71484
JW
6472014-07-22 Jiong Wang <jiong.wang@arm.com>
648
649 * MAINTAINERS (Write After Approval): Update my email address.
650
9597b22a
DE
6512014-07-20 Doug Evans <dje@google.com>
652
653 PR server/17147
654 * remote.c (putpkt_binary): Add text to error message.
655
91101fe5
YQ
6562014-07-20 Yao Qi <yao@codesourcery.com>
657
658 * eval.c: Remove "Chill" from comments.
659 * gdbtypes.h: Likewise.
660 * symtab.h: Likewise.
661
c9402c95
YQ
6622014-07-20 Yao Qi <yao@codesourcery.com>
663
664 * std-operator.def: Update comments to TERNOP_SLICE.
665
ae8fddda
YQ
6662014-07-20 Yao Qi <yao@codesourcery.com>
667
668 * std-operator.def: Remove BINOP_RANGE.
669 * breakpoint.c (watchpoint_exp_is_const): Update.
670 * expprint.c (dump_subexp_body_standard): Likewise.
671 * eval.c (init_array_element): Remove dead code.
672 (evaluate_subexp_standard): Likewise.
673
9c816640
YQ
6742014-07-20 Yao Qi <yao@codesourcery.com>
675
676 * std-operator.def: Remove BINOP_IN.
677 * breakpoint.c (watchpoint_exp_is_const): Update.
678 * eval.c (evaluate_subexp_standard): Likewise.
679 * expprint.c (dump_subexp_body_standard): Likewise.
680
164224e9
ME
6812014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
682
683 * microblaze-tdep.c (microblaze_register_names): Add
684 the rshr and rslr register names.
685 (microblaze_gdbarch_init): Use of tdesc_has_registers.
686 Use of tdesc_find_feature. Use of tdesc_data_alloc.
687 Use of tdesc_numbered_register. Use of
688 microblaze_register_g_packet_guesses. Use of
689 tdesc_use_registers. Use of set_gdbarch_register_type.
690 (microblaze_register_g_packet_guesses): New.
691 * microblaze-tdep.h (microblaze_reg_num): Add
692 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
693 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
694 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
695 * features/microblaze-core.xml: New file.
696 * features/microblaze-stack-protect.xml: New file.
697 * features/microblaze-with-stack-protect.c: New file.
698 * features/microblaze-with-stack-protect.xml: New file.
699 * features/microblaze.xml: New file.
700 * features/microblaze.c: New file.
701 * features/Makefile (microblaze-with-stack-protect): Add
702 microblaze-with-stack-protect microblaze and microblaze-expedite.
703 * regformats/microblaze-with-stack-protect.dat: New file.
704 * regformats/microblaze.dat: New file.
705 * doc/gdb.texinfo (MicroBlaze Features): Added.
706
e8b2341c
TT
7072014-07-18 Tom Tromey <tromey@redhat.com>
708
709 * exec.c (exec_ops): Now static.
710 * exec.h (exec_ops): Don't declare.
711
44e89118
TT
7122014-07-18 Tom Tromey <tromey@redhat.com>
713
714 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
715 to find_target_beneath.
716 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
717 find_target_beneath.
718 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
719
b0ed115f
TT
7202014-07-18 Tom Tromey <tromey@redhat.com>
721
722 PR gdb/17130:
723 * utils.c (quit): Use target_supports_terminal_ours.
724 * target.h (target_supports_terminal_ours): Declare.
725 * target.c (target_supports_delete_record): Don't check
726 to_delete_record against NULL.
727 (target_supports_terminal_ours): New function.
728
e75fdfca
TT
7292014-07-18 Tom Tromey <tromey@redhat.com>
730
731 PR gdb/17130:
732 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
733 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
734 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
735 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
736 * windows-nat.c (windows_xfer_partial): Always delegate.
737 * record-btrace.c (record_btrace_xfer_partial): Simplify
738 delegation.
739 (record_btrace_fetch_registers, record_btrace_store_registers)
740 (record_btrace_prepare_to_store, record_btrace_resume)
741 (record_btrace_wait, record_btrace_find_new_threads)
742 (record_btrace_thread_alive): Likewise.
743 * procfs.c (procfs_xfer_partial): Always delegate.
744 * corelow.c (core_xfer_partial): Always delegate.
745 * sol-thread.c (sol_find_new_threads): Simplify delegation.
746
83814951
TT
7472014-07-18 Tom Tromey <tromey@redhat.com>
748
749 * exec.c (exec_make_note_section): Move earlier.
750
b8b8facf
DE
7512014-07-17 Doug Evans <dje@google.com>
752
74b49205 753 PR gdb/17170
b8b8facf
DE
754 * maint.c (count_symtabs_and_blocks): Handle NULL
755 current_program_space.
756 (report_command_stats): Check global enabled flag in addition to
757 recorded enabled flag.
758 (make_command_stats_cleanup): Handle msg_type == 0, startup.
759
69ff6be5
PA
7602014-07-16 Pedro Alves <palves@redhat.com>
761
762 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
763
252db1b5
TT
7642014-07-16 Tom Tromey <tromey@redhat.com>
765
766 * target.h (struct target_ops) <to_delete_record>: Reformat
767 comment.
768
a432721e
TT
7692014-07-16 Tom Tromey <tromey@redhat.com>
770
771 * target-delegates.c: Rebuild.
772
487d9753
PL
7732014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
774
775 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
776 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
777 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
778 (avr_pointer_to_address): Likewise.
779 (avr_address_class_type_flags): New function.
780 (avr_address_class_type_flags_to_name): Likewise.
781 (avr_address_class_name_to_type_flags): Likewise.
782 (avr_gdbarch_init): Set address_class_type_flags,
783 address_class_type_flags_to_name and
784 address_class_name_to_type_flags.
785
57745c90
PA
7862014-07-15 Pedro Alves <palves@redhat.com>
787
788 * linux-nat.c (kill_callback): Save errno and work with saved
789 copy.
790
2d40be18
SM
7912014-07-15 Simon Marchi <simon.marchi@ericsson.com>
792
793 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
794
572f6555
EBM
7952014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
796
797 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
798 breakpoint support correctly.
799
cc1c52ad
PA
8002014-07-14 Pedro Alves <palves@redhat.com>
801
802 * utils.c (prompt_for_continue): Call target_terminal_ours.
803
1e973570
PA
8042014-07-14 Pedro Alves <palves@redhat.com>
805
806 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
807 catch_errors. Don't re-enable stdin or notify observers where,
808 and rethrow error.
809 (fetch_inferior_event_wrapper): Delete.
810
93d6eb10
PA
8112014-07-14 Pedro Alves <palves@redhat.com>
812
813 PR gdb/17072
814 * top.c: Include "inf-loop.h".
815 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
816 field.
817 (gdb_readline_wrapper_cleanup): Make the target async again, if it
818 was async before.
819 (gdb_readline_wrapper): Store whether the target is async, and
820 make it sync.
821
0017922d
PA
8222014-07-14 Pedro Alves <palves@redhat.com>
823
824 PR gdb/17072
825 * top.c (gdb_readline_wrapper_line): Tweak comment.
826 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
827 the input handler callback.
828
94696ad3
PA
8292014-07-14 Pedro Alves <palves@redhat.com>
830
831 PR gdb/17072
832 * main.c: Include event-top.h.
833 (handle_command_errors): New function.
834 (catch_command_errors, catch_command_errors_const): Use it.
835
9d1e69a2
PA
8362014-07-14 Pedro Alves <palves@redhat.com>
837
838 * exceptions.c (catch_command_errors, catch_command_errors_const):
839 Moved to main.c.
840 * exceptions.h (catch_command_errors_ftype)
841 (catch_command_errors_const_ftype): Moved to main.c.
842 (catch_command_errors, catch_command_errors_const): Delete
843 declarations.
844 * main.c (catch_command_errors_ftype)
845 (catch_command_errors_const_ftype): Moved here from exceptions.h.
846 (catch_command_errors, catch_command_errors_const)): Moved here
847 from exceptions.c and make static.
848
feefc97b
PA
8492014-07-14 Pedro Alves <palves@redhat.com>
850
851 * exceptions.c (print_any_exception): Delete.
852 (catch_exceptions_with_msg): Use exception_print instead of
853 print_any_exception.
854 (catch_errors): Use exception_fprintf instead of
855 print_any_exception.
856 (catch_command_errors, catch_command_errors_const): Use
857 exception_print instead of print_any_exception.
858
c933f875
PA
8592014-07-14 Pedro Alves <palves@redhat.com>
860
861 * infcall.c (run_inferior_call): Set 'sync_execution' while
862 running the inferior call.
863
feb6f816
PA
8642014-07-14 Pedro Alves <palves@redhat.com>
865
866 * value.c (value_contents_equal): Delete function.
867 * value.h (value_contents_equal): Delete declaration.
868
d98b7a16
TT
8692014-07-14 Tom Tromey <tromey@redhat.com>
870
871 PR exp/17106:
872 * gdbtypes.c (is_dynamic_type_internal): New function, from
873 is_dynamic_type.
874 (is_dynamic_type): Rewrite.
875 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
876 (resolve_dynamic_struct): Likewise.
877 (resolve_dynamic_type_internal): New function, from
878 resolve_dynamic_type.
879 (resolve_dynamic_type): Rewrite.
880
548740d6
TT
8812014-07-14 Tom Tromey <tromey@redhat.com>
882
883 * target.c (target_require_runnable): Also check record_stratum.
884 Update comment.
885
808f7ab1
YQ
8862014-07-11 Yao Qi <yao@codesourcery.com>
887
888 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
889 thumb_instruction_restores_sp return true.
890
540314bd
YQ
8912014-07-11 Yao Qi <yao@codesourcery.com>
892
893 * arm-tdep.c (thumb_instruction_restores_sp): New function.
894 (thumb_in_function_epilogue_p): Call
895 thumb_instruction_restores_sp.
896
1db01f22
YQ
8972014-07-11 Yao Qi <yao@codesourcery.com>
898
899 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
900 'add sp, #imm'.
901 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
902
3116063b
GB
9032014-07-11 Gary Benson <gbenson@redhat.com>
904
905 * amd64-linux-nat.c (gdbcore.h): Remove include.
906 (regset.h): Likewise.
907 (nat/linux-btrace.h): Likewise.
908 (btrace.h): Likewise.
909 (gdb_assert.h): Likewise.
910 (string.h): Likewise.
911 (sys/uio.h): Likewise.
912 (sys/debugreg.h): Likewise.
913 (sys/syscall.h): Likewise.
914 (sys/procfs.h): Likewise.
915 (sys/user.h): Likewise.
916 (asm/ptrace.h): Likewise.
917 (i386-nat.h): Likewise.
918 * i386-linux-nat.c (i386-nat.h): Likewise.
919 (regset.h): Likewise.
920 (target.h): Likewise.
921 (linux-nat.h): Likewise.
922 (nat/linux-btrace.h): Likewise.
923 (btrace.h): Likewise.
924 (gdb_assert.h): Likewise.
925 (string.h): Likewise.
926 (sys/uio.h): Likewise.
927 (sys/user.h): Likewise.
928 (sys/procfs.h): Likewise.
929 (sys/reg.h): Likewise.
930 (sys/debugreg.h): Likewise.
931 (ORIG_EAX): Remove definition.
932
040baaf6
GB
9332014-07-11 Gary Benson <gbenson@redhat.com>
934
935 * i386-linux-nat.h: New file.
936 * x86-linux-nat.h: Likewise.
937 * x86-linux-nat.c: Likewise.
938 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
939 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
940 * config/i386/linux64.mh (NATDEPFILES): Likewise.
941 * amd64-linux-nat.c (x86-linux-nat.h): New include.
942 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
943 (PTRACE_SETREGSET): Likewise.
944 (arch_lwp_info): Now in x86-linux-nat.c.
945 (have_ptrace_getregset): Now in x86-linux-nat.h.
946 (x86_linux_dr_get): Now in x86-linux-nat.c.
947 (x86_linux_dr_set): Likewise.
948 (x86_linux_dr_get_addr): Likewise.
949 (x86_linux_dr_get_control): Likewise.
950 (x86_linux_dr_get_status): Likewise.
951 (update_debug_registers_callback): Likewise.
952 (x86_linux_dr_set_control): Likewise.
953 (x86_linux_dr_set_addr): Likewise.
954 (x86_linux_prepare_to_resume): Likewise.
955 (x86_linux_new_thread): Likewise.
956 (x86_linux_new_fork): Likewise.
957 (x86_linux_get_thread_area): Likewise.
958 (super_post_startup_inferior): Likewise.
959 (x86_linux_child_post_startup_inferior): Likewise.
960 (AMD64_LINUX_USER64_CS): Likewise.
961 (AMD64_LINUX_X32_DS): Likewise.
962 (x86_linux_read_description): Likewise.
963 (x86_linux_enable_btrace): Likewise.
964 (x86_linux_disable_btrace): Likewise.
965 (x86_linux_teardown_btrace): Likewise.
966 (x86_linux_read_btrace): Likewise.
967 (x86_linux_create_target): Likewise.
968 (x86_linux_add_target): Likewise.
969 * i386-linux-nat.c (x86-linux-nat.h): New include.
970 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
971 (PTRACE_SETREGSET): Likewise.
972 (arch_lwp_info): Now in x86-linux-nat.c.
973 (have_ptrace_getregset): Now in x86-linux-nat.h.
974 (x86_linux_dr_get): Now in x86-linux-nat.c.
975 (x86_linux_dr_set): Likewise.
976 (x86_linux_dr_get_addr): Likewise.
977 (x86_linux_dr_get_control): Likewise.
978 (x86_linux_dr_get_status): Likewise.
979 (update_debug_registers_callback): Likewise.
980 (x86_linux_dr_set_control): Likewise.
981 (x86_linux_dr_set_addr): Likewise.
982 (x86_linux_prepare_to_resume): Likewise.
983 (x86_linux_new_thread): Likewise.
984 (x86_linux_new_fork): Likewise.
985 (x86_linux_get_thread_area): Likewise.
986 (super_post_startup_inferior): Likewise.
987 (x86_linux_child_post_startup_inferior): Likewise.
988 (AMD64_LINUX_USER64_CS): Likewise.
989 (AMD64_LINUX_X32_DS): Likewise.
990 (x86_linux_read_description): Likewise.
991 (x86_linux_enable_btrace): Likewise.
992 (x86_linux_disable_btrace): Likewise.
993 (x86_linux_teardown_btrace): Likewise.
994 (x86_linux_read_btrace): Likewise.
995 (x86_linux_create_target): Likewise.
996 (x86_linux_add_target): Likewise.
997
1aa7e42c
GB
9982014-07-11 Gary Benson <gbenson@redhat.com>
999
1000 * amd64-linux-nat.c: Comment and whitespace changes.
1001 * i386-linux-nat.c: Comment and whitespace changes.
1002
c1e246a0
GB
10032014-07-11 Gary Benson <gbenson@redhat.com>
1004
1005 * amd64-linux-nat.c (x86_linux_create_target): New function.
1006 (x86_linux_add_target): Likewise.
1007 (_initialize_amd64_linux_nat): Delegate to the above new functions.
1008 * i386-linux-nat.c (x86_linux_create_target): New function.
1009 (x86_linux_add_target): Likewise.
1010 (_initialize_i386_linux_nat): Delegate to the above new functions.
1011
8c420b8d
GB
10122014-07-11 Gary Benson <gbenson@redhat.com>
1013
1014 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
1015 (ps_get_thread_area): Delegate to the above in 32-bit mode.
1016 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
1017 (ps_get_thread_area): Delegate to the above.
1018
cb1da100
GB
10192014-07-11 Gary Benson <gbenson@redhat.com>
1020
1021 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
1022 x86_linux_read_description. All uses updated. amd64-specific
1023 code conditionalized. Conditionalized i386-specific code added.
1024 Redundant cast removed.
1025 * i386-linux-nat.c (i386_linux_read_description): Renamed to
1026 x86_linux_read_description. All uses updated. i386-specific
1027 code conditionalized. Conditionalized amd64-specific code added.
1028 One sizeof replaced with the actual type it is describing.
1029
2acf3cd0
GB
10302014-07-11 Gary Benson <gbenson@redhat.com>
1031
1032 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
1033 x86_linux_dr_get. All uses updated.
1034 (amd64_linux_dr_set): Renamed to
1035 x86_linux_dr_set. All uses updated.
1036 (amd64_linux_dr_get_addr): Renamed to
1037 x86_linux_dr_get_addr. All uses updated.
1038 (amd64_linux_dr_get_control): Renamed to
1039 x86_linux_dr_get_control. All uses updated.
1040 (amd64_linux_dr_get_status): Renamed to
1041 x86_linux_dr_get_status. All uses updated.
1042 (amd64_linux_dr_set_control): Renamed to
1043 x86_linux_dr_set_control. All uses updated.
1044 (amd64_linux_dr_set_addr): Renamed to
1045 x86_linux_dr_set_addr. All uses updated.
1046 (amd64_linux_prepare_to_resume): Renamed to
1047 x86_linux_prepare_to_resume. All uses updated.
1048 (amd64_linux_new_thread): Renamed to
1049 x86_linux_new_thread. All uses updated.
1050 (amd64_linux_new_fork): Renamed to
1051 x86_linux_new_fork. All uses updated.
1052 (amd64_linux_child_post_startup_inferior): Renamed to
1053 x86_linux_child_post_startup_inferior. All uses updated.
1054 (amd64_linux_enable_btrace): Renamed to
1055 x86_linux_enable_btrace. All uses updated.
1056 (amd64_linux_disable_btrace): Renamed to
1057 x86_linux_disable_btrace. All uses updated.
1058 (amd64_linux_teardown_btrace): Renamed to
1059 x86_linux_teardown_btrace. All uses updated.
1060 (amd64_linux_read_btrace): Renamed to
1061 x86_linux_read_btrace. All uses updated.
1062 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
1063 x86_linux_dr_get. All uses updated.
1064 (i386_linux_dr_set): Renamed to
1065 x86_linux_dr_set. All uses updated.
1066 (i386_linux_dr_get_addr): Renamed to
1067 x86_linux_dr_get_addr. All uses updated.
1068 (i386_linux_dr_get_control): Renamed to
1069 x86_linux_dr_get_control. All uses updated.
1070 (i386_linux_dr_get_status): Renamed to
1071 x86_linux_dr_get_status. All uses updated.
1072 (i386_linux_dr_set_control): Renamed to
1073 x86_linux_dr_set_control. All uses updated.
1074 (i386_linux_dr_set_addr): Renamed to
1075 x86_linux_dr_set_addr. All uses updated.
1076 (i386_linux_prepare_to_resume): Renamed to
1077 x86_linux_prepare_to_resume. All uses updated.
1078 (i386_linux_new_thread): Renamed to
1079 x86_linux_new_thread. All uses updated.
1080 (i386_linux_new_fork): Renamed to
1081 x86_linux_new_fork. All uses updated.
1082 (i386_linux_child_post_startup_inferior): Renamed to
1083 x86_linux_child_post_startup_inferior. All uses updated.
1084 (i386_linux_enable_btrace): Renamed to
1085 x86_linux_enable_btrace. All uses updated.
1086 (i386_linux_disable_btrace): Renamed to
1087 x86_linux_disable_btrace. All uses updated.
1088 (i386_linux_teardown_btrace): Renamed to
1089 x86_linux_teardown_btrace. All uses updated.
1090 (i386_linux_read_btrace): Renamed to
1091 x86_linux_read_btrace. All uses updated.
1092
b9c1d481
AS
10932014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1094
1095 * remote.c (extended_remote_post_attach): New function.
1096 (init_extended_remote_ops): Install it as to_post_attach method.
1097
7180e04a
PA
10982014-07-09 Pedro Alves <palves@redhat.com>
1099
1100 * infcmd.c (attach_command_post_wait): Don't call
1101 target_terminal_inferior here.
1102 (attach_command): Call it here instead.
1103
9a9a7608
AB
11042014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1107 field.
1108 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1109 from varobj.c, with additional checks.
1110 (c_varobj_ops): Fill in is_path_expr_parent field.
1111 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1112 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1113 field.
1114 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1115 ops method.
1116 (varobj_default_is_path_expr_parent): New function.
1117 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1118 (varobj_default_is_path_expr_parent): Declare new function.
1119
1f267ae3
MM
11202014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1121
1122 * infcmd.c (finish_backward): Turn internal error into normal error.
1123
b2ee242b
PA
11242014-07-07 Pedro Alves <palves@redhat.com>
1125
8a869bca 1126 PR gdb/17096
b2ee242b
PA
1127 * remote.c (async_handle_remote_sigint)
1128 (async_handle_remote_sigint_twice): Call
1129 gdb_call_async_signal_handler instead of
1130 mark_async_signal_handler.
1131
38e229b2
TT
11322014-07-07 Tom Tromey <tromey@redhat.com>
1133
1134 * target-delegates.c: Rebuild.
1135 * target.c (target_info_record): Remove.
1136 * record.c (info_record_command): Unconditionally call
1137 to_info_record.
1138 * target.h (struct target_ops) <to_info_record>: Use
1139 TARGET_DEFAULT_IGNORE.
1140 (target_info_record): Remove.
1141
f0f9ff95
TT
11422014-07-07 Tom Tromey <tromey@redhat.com>
1143
1144 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1145 TARGET_DEFAULT_NORETURN.
1146 * target.c (generic_tls_error): New function.
1147 (target_translate_tls_address): Don't search target stack.
1148 * target-delegates.c: Rebuild.
1149 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1150 stack.
1151 * linux-thread-db.c (thread_db_get_thread_local_address):
1152 Unconditionally call beneath target.
1153
4a5be5ee
MK
11542014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1155
1156 * cli/cli-logging.c (pop_output_files): Assign targerr to
1157 gdb_stdtargerr.
1158
92c3b204
AB
11592014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1160
1161 * MAINTAINERS (Write After Approval): Update my email address.
1162
9b11e3a7
GB
11632014-07-02 Gary Benson <gbenson@redhat.com>
1164
1165 * proc-service.c (ps_xfer_memory): Update comment.
1166 (ps_pstop): Remove unused function.
1167 (ps_pcontinue): Likewise.
1168 (ps_lstop): Likewise.
1169 (ps_lcontinue): Likewise.
1170 (ps_lgetxregsize): Likewise.
1171 (ps_lgetxregs): Likewise.
1172 (ps_lsetxregs): Likewise.
1173 (ps_plog): Likewise.
1174 (ps_ptread): Likewise.
1175 (ps_ptwrite): Likewise.
1176
cf363f18
MW
11772014-07-01 Mark Wielaard <mjw@redhat.com>
1178
1179 * dwarf2read.c (add_array_cv_type): New function.
1180 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1181 (read_tag_volatile_type): Likewise.
1182
82ae6c8d
TT
11832014-07-01 Tom Tromey <tromey@redhat.com>
1184
1185 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1186 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1187 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1188 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1189 * command.h (cmd_cfunc_ftype): Move earlier.
1190 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1191 (add_com, add_info): Use cmd_cfunc_ftype.
1192
96142726
TT
11932014-06-30 Tom Tromey <tromey@redhat.com>
1194
1195 * symtab.c (operator_chars): Make parameters and return type
1196 const.
1197 (file_matches): Make "files" const.
1198 (struct search_symbols_data) <files>: Now const.
1199 (search_symbols): Make "regexp" and "files" parameters const.
1200 Update.
1201 (symtab_symbol_info): Remove cast.
1202 (rbreak_command): Update.
1203 * symtab.h (search_symbols): Update.
1204
b67a2c6f
YQ
12052014-06-27 Yao Qi <yao@codesourcery.com>
1206
1207 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1208 Change parameter type to 'struct thread_info *'. Caller
1209 updated.
1210 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1211 Update declaration.
1212 * dummy-frame.c (struct dummy_frame_id): New.
1213 (dummy_frame_id_eq): New function.
1214 (struct dummy_frame) <id>: Change its type to 'struct
1215 dummy_frame_id'.
1216 (dummy_frame_push): Add parameter ptid and save it in
1217 dummy_frame_id.
1218 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1219 inferior_ptid.
1220 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1221 to inferior_ptid.
1222 (lookup_dummy_frame): Change parameter type to 'struct
1223 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1224 instead of frame_id_eq.
1225 (dummy_frame_pop): Add parameter ptid. Callers updated.
1226 Update comments. Compose dummy_frame_id and pass it to
1227 lookup_dummy_frame.
1228 (dummy_frame_discard): Add parameter ptid.
1229 (dummy_frame_sniffer): Compose dummy_frame_id and call
1230 dummy_frame_id_eq instead of frame_id_eq.
1231 (fprint_dummy_frames): Print ptid.
1232 * dummy-frame.h: Remove comments.
1233 (dummy_frame_push): Add ptid in declaration.
1234 (dummy_frame_pop, dummy_frame_discard): Likewise.
1235
5b10184c
TT
12362014-06-26 Tom Tromey <tromey@redhat.com>
1237
1238 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1239 * command.h (error_no_arg): Update.
1240
06900326
TT
12412014-06-26 Tom Tromey <tromey@redhat.com>
1242
1243 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1244 (do_show_command): Make "arg" const.
1245 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1246
c2bcbb1d
TT
12472014-06-26 Tom Tromey <tromey@redhat.com>
1248
1249 * record-full.c (record_full_get_bookmark): Make "args" const.
1250 (record_full_goto_bookmark): Make "raw_bookmark" const.
1251 * record.c (record_goto): New function.
1252 (cmd_record_goto): Use it. Now static.
1253 * record.h (record_goto): Declare.
1254 (cmd_record_goto): Remove declaration.
1255 * target-delegates.c: Rebuild.
1256 * target.h (struct target_ops) <to_get_bookmark,
1257 to_goto_bookmark>: Make parameter const.
1258
9cbe5fff
TT
12592014-06-26 Tom Tromey <tromey@redhat.com>
1260
1261 * defs.h (generic_load): Update.
1262 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1263 * monitor.c (monitor_load): Make "args" const.
1264 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1265 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1266 const.
1267 (mips_load): Make "file" const.
1268 * remote-sim.c (gdbsim_load): Make "args" const.
1269 * remote.c (remote_load): Make "name" const.
1270 * symfile.c (generic_load): Make "args" const.
1271 * target-delegates.c: Rebuild.
1272 * target.c (target_load): Make "arg" const.
1273 (debug_to_load): Make "args" const.
1274 * target.h (struct target_ops) <to_load>: Make parameter const.
1275 (target_load): Update.
1276
34a68019
TT
12772014-06-26 Tom Tromey <tromey@redhat.com>
1278
1279 PR symtab/16902:
1280 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1281 (dwarf2_physname, read_partial_die)
1282 (guess_partial_die_structure_name, fixup_partial_die)
1283 (guess_full_die_structure_name, anonymous_struct_prefix)
1284 (dwarf2_name): Use per-BFD obstack.
1285
efc889c1
YQ
12862014-06-26 Yao Qi <yao@codesourcery.com>
1287
1288 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1289 dummyframe and this_id into inner block below.
1290
4395285e
YQ
12912014-06-26 Yao Qi <yao@codesourcery.com>
1292
1293 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1294 with "signal_pass[0]" in the initialization of signal_pass.
1295
aef92902
MM
12962014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1297
1298 * record-btrace.c (record_btrace_generating_corefile)
1299 (record_btrace_prepare_to_generate_core)
1300 (record_btrace_done_generating_core): New.
1301 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1302 (record_btrace_store_registers, record_btrace_prepare_to_store):
1303 Forward request when generating a core file.
1304 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1305 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1306 to_done_generating_core.
1307
5fff78c4
MM
13082014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1309
1310 * target.h (target_ops) <to_prepare_to_generate_core>
1311 <to_done_generating_core>: New.
1312 (target_prepare_to_generate_core, target_done_generating_core): New.
1313 * target.c (target_prepare_to_generate_core)
1314 (target_done_generating_core): New.
1315 * target-delegates.c: Regenerate.
1316 * gcore.c: (write_gcore_file): Rename to ...
1317 (write_gcore_file_1): ...this.
1318 (write_gcore_file): Call target_prepare_to_generate_core
1319 and target_done_generating_core.
1320
1d1f1ccb
MM
13212014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1322
1323 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1324 * gcore.c (write_gcore_file): Free memory returned from
1325 make_corefile_notes.
1326 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1327 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1328
3343ef86
YQ
13292014-06-24 Yao Qi <yao@codesourcery.com>
1330
1331 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1332 (arm_linux_init_abi): Set skip_trampoline_code with
1333 gdbarch_skip_trampoline_code instead of
1334 find_solib_trampoline_target.
1335
18d18ac8
YQ
13362014-06-24 Yao Qi <yao@codesourcery.com>
1337
1338 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1339 arm_skip_bx_reg returns non-zero.
1340
80d8d390
YQ
13412014-06-24 Yao Qi <yao@codesourcery.com>
1342
1343 * arm-tdep.c (arm_skip_bx_reg): New function.
1344 (arm_skip_stub): Call arm_skip_bx_reg.
1345
6a18a01c
DB
13462014-06-23 Don Breazeal <donb@codesourcery.com>
1347
1348 * MAINTAINERS: Add myself as write-after-approval maintainer.
1349
8e9db26e
PA
13502014-06-23 Pedro Alves <palves@redhat.com>
1351
1352 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1353 DR_CONTROL before setting DR0..DR3.
1354 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1355 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1356 bits of DR_CONTROL related to the debug register slot being
1357 disabled. If all slots are vacant, clear local slowdown as well,
1358 and assert DR_CONTROL is 0.
1359
70afc5b7
SC
13602014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1361
1362 * python/lib/gdb/command/xmethods.py
1363 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1364 current progspace only if the string "progspace" matches LOCUS_RE.
1365
840ed64d
JK
13662014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1367
1368 Fix --with-system-readline with readline-6.3 patch 5.
1369 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1370 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1371 types.
1372
26f2dc30
TT
13732014-06-20 Tom Tromey <tromey@redhat.com>
1374
1375 * dwarf2read.c (dw2_get_real_path): Use correct type in
1376 OBSTACK_CALLOC.
1377 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1378
125f8a3d
GB
13792014-06-20 Gary Benson <gbenson@redhat.com>
1380
1381 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1382 * common/glibc_thread_db.h: Likewise.
1383 * common/i386-cpuid.h: Likewise.
1384 * common/i386-gcc-cpuid.h: Likewise.
1385 * common/linux-btrace.h: Likewise.
1386 * common/linux-osdata.h: Likewise.
1387 * common/linux-procfs.h: Likewise.
1388 * common/linux-ptrace.h: Likewise.
1389 * common/mips-linux-watch.h: Likewise.
1390 * common/linux-btrace.c: Moved to nat.
1391 * common/linux-osdata.c: Likewise.
1392 * common/linux-procfs.c: Likewise.
1393 * common/linux-ptrace.c: Likewise.
1394 * common/mips-linux-watch.c: Likewise.
1395 * nat/gdb_thread_db.h: Moved from common.
1396 * nat/glibc_thread_db.h: Likewise.
1397 * nat/i386-cpuid.h: Likewise.
1398 * nat/i386-gcc-cpuid.h: Likewise.
1399 * nat/linux-btrace.c: Likewise.
1400 * nat/linux-btrace.h: Likewise.
1401 * nat/linux-osdata.c: Likewise.
1402 * nat/linux-osdata.h: Likewise.
1403 * nat/linux-procfs.c: Likewise.
1404 * nat/linux-procfs.h: Likewise.
1405 * nat/linux-ptrace.c: Likewise.
1406 * nat/linux-ptrace.h: Likewise.
1407 * nat/mips-linux-watch.c: Likewise.
1408 * nat/mips-linux-watch.h: Likewise.
1409 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1410 (object file files): Reordered.
1411 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1412 of glibc_thread_db.h.
1413
42995dbd
GB
14142014-06-20 Gary Benson <gbenson@redhat.com>
1415
1416 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1417 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1418 (i386_dr_low): Likewise.
1419 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1420 (i386_dr_low_set_addr): Likewise.
1421 (i386_dr_low_get_addr): Likewise.
1422 (i386_dr_low_can_set_control): Likewise.
1423 (i386_dr_low_set_control): Likewise.
1424 (i386_dr_low_get_control): Likewise.
1425 (i386_dr_low_get_status): Likewise.
1426 (i386_get_debug_register_length): Likewise.
1427 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1428 (i386_dr_low): Likewise.
1429 * nat/i386-dregs.c (i386-low.h): Remove include.
1430 (i386-nat.h): Likewise.
1431 (nat/i386-dregs.h): New include.
1432 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1433 (i386_dr_low_set_addr): Likewise.
1434 (i386_dr_low_get_addr): Likewise.
1435 (i386_dr_low_can_set_control): Likewise.
1436 (i386_dr_low_set_control): Likewise.
1437 (i386_dr_low_get_control): Likewise.
1438 (i386_dr_low_get_status): Likewise.
1439 (i386_get_debug_register_length): Likewise.
1440 (debug_hw_points): Likewise.
1441
3ed9baed
IB
14422014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1443
1444 * Makefile.in (SFILES): Add d-exp.y.
1445 (YYFILES): Add d-exp.c.
1446 (YYOBJ): Add d-exp.o.
1447 (local-maintainer-clean): Delete d-exp.c.
1448 * d-exp.y: New file.
1449 * d-lang.h (d_parse): New declaration.
1450 (d_error): New declaration.
1451 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1452 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1453 PREC_ORDER operators.
1454 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1455
78c164b0
YQ
14562014-06-19 Yao Qi <yao@codesourcery.com>
1457
1458 * gdbthread.h (any_running): Remove the declaration.
1459 * thread.c (any_running): Remove.
1460
f6e29b6e
YQ
14612014-06-19 Yao Qi <yao@codesourcery.com>
1462
1463 * gdbthread.h (struct thread_info) <state>: Change its type to
1464 'enum thread_state'. Update comments.
1465
034f788c
PA
14662014-06-19 Pedro Alves <palves@redhat.com>
1467
1468 * gdbthread.h (ALL_THREADS): Delete.
1469 (ALL_NON_EXITED_THREADS): New macro.
1470 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1471 instead of ALL_THREADS.
1472 * infrun.c (find_thread_needs_step_over)
1473 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1474 instead of ALL_THREADS.
1475 * record-btrace.c (record_btrace_open)
1476 (record_btrace_stop_recording, record_btrace_close)
1477 (record_btrace_is_replaying, record_btrace_resume)
1478 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1479 * remote.c (append_pending_thread_resumptions): Likewise.
1480 * thread.c (thread_apply_all_command): Likewise.
1481
46e33252
GB
14822014-06-19 Gary Benson <gbenson@redhat.com>
1483
1484 * i386-nat.c (i386_stopped_by_watchpoint):
1485 Use i386_dr_stopped_by_watchpoint.
1486 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1487 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1488
3a8ee006
GB
14892014-06-19 Gary Benson <gbenson@redhat.com>
1490
1491 * nat/i386-dregs.c: New file.
1492 * Makefile.in (i386-dregs.o): New rule.
1493 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1494 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1495 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1496 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1497 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1498 * config/i386/go32.mh (NATDEPFILES): Likewise.
1499 * config/i386/linux.mh (NATDEPFILES): Likewise.
1500 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1501 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1502 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1503 * i386-nat.h (debug_hw_points): New declaration.
1504 * i386-nat.c (breakpoint.h): Remove include.
1505 (command.h): Likewise.
1506 (target.h): Likewise.
1507 (gdb_assert.h): Likewise.
1508 (debug_hw_points): Made nonstatic.
1509 (debug_printf): Now in i386-dregs.c.
1510 (TARGET_HAS_DR_LEN_8): Likewise.
1511 (DR_CONTROL_SHIFT): Likewise.
1512 (DR_CONTROL_SIZE): Likewise.
1513 (DR_RW_EXECUTE): Likewise.
1514 (DR_RW_WRITE): Likewise.
1515 (DR_RW_READ): Likewise.
1516 (DR_RW_IORW): Likewise.
1517 (DR_LEN_1): Likewise.
1518 (DR_LEN_2): Likewise.
1519 (DR_LEN_4): Likewise.
1520 (DR_LEN_8): Likewise.
1521 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1522 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1523 (DR_ENABLE_SIZE): Likewise.
1524 (DR_LOCAL_SLOWDOWN): Likewise.
1525 (DR_GLOBAL_SLOWDOWN): Likewise.
1526 (DR_CONTROL_RESERVED): Likewise.
1527 (I386_DR_CONTROL_MASK): Likewise.
1528 (I386_DR_VACANT): Likewise.
1529 (I386_DR_LOCAL_ENABLE): Likewise.
1530 (I386_DR_GLOBAL_ENABLE): Likewise.
1531 (I386_DR_DISABLE): Likewise.
1532 (I386_DR_SET_RW_LEN): Likewise.
1533 (I386_DR_GET_RW_LEN): Likewise.
1534 (I386_DR_WATCH_HIT): Likewise.
1535 (i386_wp_op_t): Likewise.
1536 (i386_show_dr): Likewise.
1537 (i386_length_and_rw_bits): Likewise.
1538 (i386_insert_aligned_watchpoint): Likewise.
1539 (i386_remove_aligned_watchpoint): Likewise.
1540 (i386_handle_nonaligned_watchpoint): Likewise.
1541 (i386_update_inferior_debug_regs): Likewise.
1542 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1543 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1544 (i386_region_ok_for_watchpoint):
1545 Use i386_dr_region_ok_for_watchpoint.
1546 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1547
322a8e06
GB
15482014-06-19 Gary Benson <gbenson@redhat.com>
1549
1550 * i386-nat.c (i386_insert_hw_breakpoint): Use
1551 i386_insert_watchpoint.
1552 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1553
8f26655c
GB
15542014-06-19 Gary Benson <gbenson@redhat.com>
1555
1556 * i386-nat.c (i386_dr_show): Renamed to
1557 i386_show_dr and made static. All uses updated.
1558 (i386_dr_length_and_rw_bits): Renamed to
1559 i386_length_and_rw_bits and made static.
1560 All uses updated.
1561 (i386_dr_insert_aligned_watchpoint): Renamed to
1562 i386_insert_aligned_watchpoint and made static.
1563 All uses updated.
1564 (i386_dr_remove_aligned_watchpoint): Renamed to
1565 i386_remove_aligned_watchpoint and made static.
1566 All uses updated.
1567 (i386_dr_update_inferior_debug_regs): Renamed to
1568 i386_update_inferior_debug_regs and made static.
1569 All uses updated.
1570 * nat/i386-dregs.h (i386_dr_show): Removed.
1571 (i386_dr_length_and_rw_bits): Likewise.
1572 (i386_dr_insert_aligned_watchpoint): Likewise.
1573 (i386_dr_remove_aligned_watchpoint): Likewise.
1574 (i386_dr_update_inferior_debug_regs): Likewise.
1575
992c7d70
GB
15762014-06-19 Gary Benson <gbenson@redhat.com>
1577
1578 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1579 * configure: Regenerate.
1580 * config.in: Likewise.
1581 * main.c (signal.h): New include.
1582 (setup_alternate_signal_stack): New function.
1583 (captured_main): Call the above.
1584 * cp-support.c (signal.h): New include.
1585 (catch_demangler_crashes): New flag.
1586 (SIGJMP_BUF): New define.
1587 (SIGSETJMP): Likewise.
1588 (SIGLONGJMP): Likewise.
1589 (gdb_demangle_jmp_buf): New static global.
1590 (gdb_demangle_attempt_core_dump): Likewise.
1591 (gdb_demangle_signal_handler): New function.
1592 (gdb_demangle): If catch_demangler_crashes is set, install the
1593 above signal handler before calling bfd_demangle, and restore
1594 the original signal handler afterwards. Display the offending
1595 symbol and call demangler_warning the first time a segmentation
1596 fault is caught.
1597 (_initialize_cp_support): New maint set/show command.
1598
eae7090b
GB
15992014-06-19 Gary Benson <gbenson@redhat.com>
1600
1601 * utils.h (resource_limit_kind): New enum.
1602 (can_dump_core): New declaration.
1603 (warn_cant_dump_core): Likewise.
1604 (dump_core): Likewise.
1605 * utils.c (dump_core): Made nonstatic. Added new
1606 parameter "limit_kind".
1607 (can_dump_core): Made nonstatic. Moved printing code to...
1608 (warn_cant_dump_core): New function.
1609 (can_dump_core_warn): Likewise.
1610 (internal_vproblem): Replace calls to can_dump_core with
1611 calls to can_dump_core_warn. Supply new argument to each.
1612
57fcfb1b
GB
16132014-06-19 Gary Benson <gbenson@redhat.com>
1614
1615 * utils.h (demangler_vwarning): New declaration.
1616 (demangler_warning): Likewise.
1617 * utils.c (struct internal_problem)
1618 <user_settable_should_quit>: New field.
1619 <user_settable_should_dump_core>: Likewise
1620 (internal_error_problem): Add values for above new fields.
1621 (internal_warning_problem): Likewise.
1622 (demangler_warning_problem): New static global.
1623 (demangler_vwarning): New function.
1624 (demangler_warning): Likewise.
1625 (add_internal_problem_command): Selectively add commands.
1626 (_initialize_utils): New internal problem command.
1627 * maint.c (maintenance_demangler_warning): New function.
1628 (_initialize_maint_cmds): New command.
1629
17a40b44
TT
16302014-06-18 Tom Tromey <tromey@redhat.com>
1631
1632 * f-valprint.c (info_common_command_for_block): Update.
1633 * symtab.h (struct general_symbol_info) <common_block>: Now
1634 const.
1635
346d1dfe
TT
16362014-06-18 Tom Tromey <tromey@redhat.com>
1637
1638 * symtab.h (struct symtab) <blockvector>: Now const.
1639 * ada-lang.c (ada_add_global_exceptions): Update.
1640 * buildsym.c (augment_type_symtab): Update.
1641 * dwarf2read.c (dw2_lookup_symbol): Update.
1642 * jit.c (finalize_symtab): Update.
1643 * jv-lang.c (add_class_symtab_symbol): Update.
1644 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1645 Update.
1646 * objfiles.c (objfile_relocate1): Update.
1647 * psymtab.c (lookup_symbol_aux_psymtabs)
1648 (maintenance_check_psymtabs): Update.
1649 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1650 Update.
1651 * spu-tdep.c (spu_catch_start): Update.
1652 * symmisc.c (dump_symtab_1): Update.
1653 * symtab.c (lookup_global_symbol_from_objfile)
1654 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1655 (basic_lookup_transparent_type_quick)
1656 (basic_lookup_transparent_type, find_pc_sect_symtab)
1657 (find_pc_sect_line, search_symbols): Update.
1658 * block.c (find_block_in_blockvector): Make "bl" const.
1659 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1660 const.
1661 (blockvector_contains_pc): Make "bv" const.
1662 (block_for_pc_sect): Update.
1663 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1664 (blockvector_contains_pc): Update.
1665 * breakpoint.c (resolve_sal_pc): Update.
1666 * inline-frame.c (block_starting_point_at): Update.
1667
1834676b
TT
16682014-06-18 Tom Tromey <tromey@redhat.com>
1669
1670 * completer.c (complete_line): Make "line_buffer" const.
1671 * completer.h (complete_line): Update.
1672
ac1a991b
TT
16732014-06-18 Tom Tromey <tromey@redhat.com>
1674
1675 * symtab.c (add_macro_name): Remove unneeded cast.
1676
5bc98e52
TT
16772014-06-18 Tom Tromey <tromey@redhat.com>
1678
1679 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1680 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1681
8236def8
TT
16822014-06-18 Tom Tromey <tromey@redhat.com>
1683
1684 * probe.c (info_probes_for_ops): Make "arg" const.
1685 * probe.h (info_probes_for_ops): Update.
1686
3977b71f
TT
16872014-06-18 Tom Tromey <tromey@redhat.com>
1688
1689 * varobj.c (varobj_create): Update.
1690 * valops.c (value_of_this): Update.
1691 * tracepoint.c (add_local_symbols, scope_info): Update.
1692 * symtab.h (struct general_symbol_info) <block>: Now const.
1693 * symtab.c (skip_prologue_sal)
1694 (default_make_symbol_completion_list_break_on)
1695 (skip_prologue_using_sal): Update.
1696 * stack.h (iterate_over_block_locals)
1697 (iterate_over_block_local_vars): Update.
1698 * stack.c (print_frame_args): Update.
1699 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1700 parameter const.
1701 (get_selected_block): Make return type const.
1702 * python/py-frame.c (frapy_block): Update.
1703 * python/py-block.c (gdbpy_block_for_pc): Update.
1704 * p-exp.y (%union) <bval>: Now const.
1705 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1706 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1707 * m2-exp.y (%union) <bval>: Now const.
1708 * linespec.c (get_current_search_block): Make return type const.
1709 (create_sals_line_offset, find_label_symbols): Update.
1710 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1711 Update.
1712 (block_starting_point_at): Make "block" const.
1713 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1714 (check_exception_resume): Update.
1715 * guile/scm-frame.c (gdbscm_frame_block): Update.
1716 * guile/scm-block.c (gdbscm_lookup_block): Update.
1717 * frame.h (get_frame_block): Update.
1718 (get_selected_block): Make return type const.
1719 * frame.c (frame_id_inner): Update.
1720 * f-valprint.c (info_common_command_for_block)
1721 (info_common_command): Update.
1722 * dwarf2loc.c (dwarf2_find_location_expression)
1723 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1724 (locexpr_describe_location_piece): Update.
1725 * c-exp.y (%union) <bval>: Now const.
1726 * breakpoint.c (resolve_sal_pc): Update.
1727 * blockframe.c (get_frame_block):Make return type const.
1728 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1729 (block_innermost_frame): Update.
1730 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1731 (block_for_pc, block_for_pc_sect): Update.
1732 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1733 'pblock' const.
1734 (block_for_pc_sect, block_for_pc): Make return type const.
1735 * ax-gdb.c (gen_expr): Update.
1736 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1737 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1738 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1739 (ada_read_var_value): Update.
1740 * ada-exp.y (struct name_info) <block>: Now const.
1741 (%union): Likewise.
1742 (block_lookup): Constify.
1743
b9228891
GB
17442014-06-18 Gary Benson <gbenson@redhat.com>
1745
1746 * nat/i386-dregs.h: New file.
1747 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1748 * i386-nat.h (i386-dregs.h): New include.
1749 (DR_FIRSTADDR): Now in i386-dregs.h.
1750 (DR_LASTADDR): Likewise.
1751 (DR_NADDR): Likewise.
1752 (DR_STATUS): Likewise.
1753 (DR_CONTROL): Likewise.
1754 (i386_debug_reg_state): Likewise.
1755 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1756
a1aa2221
LM
17572014-06-18 Don Breazeal <donb@codesourcery.com>
1758
1759 * breakpoint.c (set_longjmp_breakpoint): Call
1760 momentary_breakpoint_from_master with additional argument.
1761 (set_longjmp_breakpoint_for_call_dummy): Call
1762 momentary_breakpoint_from_master with additional argument.
1763 (set_std_terminate_breakpoint): Call
1764 momentary_breakpoint_from_master with additional argument.
1765 (momentary_breakpoint_from_master): Add argument to function
1766 definition and use it to initialize structure member flag.
74228e77 1767 (clone_momentary_breakpoint): Call
a1aa2221
LM
1768 momentary_breakpoint_from_master with additional argument.
1769 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1770 member flags set in momentary_breakpoint_from_master.
1771
4be83cc2
GB
17722014-06-18 Gary Benson <gbenson@redhat.com>
1773
1774 * i386-nat.c (i386_show_dr): Renamed to
1775 i386_dr_show and made nonstatic. All uses updated.
1776 (i386_length_and_rw_bits): Renamed to
1777 i386_dr_length_and_rw_bits and made nonstatic.
1778 All uses updated.
1779 (i386_insert_aligned_watchpoint): Renamed to
1780 i386_dr_insert_aligned_watchpoint and made nonstatic.
1781 All uses updated.
1782 (i386_remove_aligned_watchpoint): Renamed to
1783 i386_dr_remove_aligned_watchpoint and made nonstatic.
1784 All uses updated.
1785 (i386_update_inferior_debug_regs): Renamed to
1786 i386_dr_update_inferior_debug_regs and made nonstatic.
1787 All uses updated.
1788
131aa0d4
GB
17892014-06-18 Gary Benson <gbenson@redhat.com>
1790
1791 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1792 (i386_dr_low_can_set_control): Likewise.
1793 (i386_dr_low_set_addr): Likewise.
1794 (i386_dr_low_set_control): Likewise.
1795 (i386_dr_low_get_addr): Likewise.
1796 (i386_dr_low_get_status): Likewise.
1797 (i386_dr_low_get_control): Likewise.
1798 (i386_insert_aligned_watchpoint): Use new macros.
1799 (i386_update_inferior_debug_regs): Likewise.
1800 (i386_stopped_data_address): Likewise.
1801
d9305f7f
GB
18022014-06-18 Gary Benson <gbenson@redhat.com>
1803
1804 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1805 New parameter. All uses updated.
1806
ea008da4
GB
18072014-06-18 Gary Benson <gbenson@redhat.com>
1808
1809 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1810 All uses updated.
1811
1b6d4134
GB
18122014-06-18 Gary Benson <gbenson@redhat.com>
1813
1814 * i386-nat.c (debug_printf): New macro.
1815 (i386_get_debug_register_length): Likewise.
1816 (TARGET_HAS_DR_LEN_8): Use above macro.
1817 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1818 and printf_unfiltered. Use phex to format values.
1819
9b4550ef
GB
18202014-06-18 Gary Benson <gbenson@redhat.com>
1821
1822 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1823 Make const.
1824
6e62758f
GB
18252014-06-18 Gary Benson <gbenson@redhat.com>
1826
1827 * i386-nat.c: Comment changes.
1828
51c79e94
GB
18292014-06-18 Gary Benson <gbenson@redhat.com>
1830
1831 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1832
3e11889a
GB
18332014-06-18 Gary Benson <gbenson@redhat.com>
1834
1835 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1836 (i386_insert_aligned_watchpoint): Likewise.
1837 (i386_remove_aligned_watchpoint): Likewise.
1838 (i386_handle_nonaligned_watchpoint): Likewise.
1839
fc6e2f03
GB
18402014-06-18 Gary Benson <gbenson@redhat.com>
1841
1842 * i386-nat.c: Whitespace changes.
1843
2afe7d50
SB
18442014-06-17 Samuel Bronson <naesten@gmail.com>
1845
1846 * MAINTAINERS: Update Roland McGrath's email address.
1847 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 1848 Red Hat a while ago, and giving me a current address.
2afe7d50 1849
3bca49ee
TT
18502014-06-17 Tom Tromey <tromey@redhat.com>
1851
1852 * utils.h (savestring): Remove declaration.
1853
6e366df1
TT
18542014-06-17 Tom Tromey <tromey@redhat.com>
1855
1856 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1857
6be47f0c
KS
18582014-06-16 Keith Seitz <keiths@redhat.com>
1859
1860 PR mi/15863
1861 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1862 to update the varobj if inferior_ptid is null_ptid.
1863
7bc112c1
TT
18642014-06-16 Tom Tromey <tromey@redhat.com>
1865
1866 * target.h (struct target_ops) <to_info_proc>: Make parameter
1867 const.
1868 (target_info_proc): Update.
1869 * target.c (target_info_proc): Make "args" const.
1870 * procfs.c (procfs_info_proc): Update.
1871 * linux-tdep.c (linux_info_proc): Update.
1872 (linux_core_info_proc_mappings): Make "args" const.
1873 (linux_core_info_proc): Update.
1874 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1875 * gdbarch.c: Rebuild.
1876 * gdbarch.h: Rebuild.
1877 * corelow.c (core_info_proc): Update.
1878
fee354ee
TT
18792014-06-16 Tom Tromey <tromey@redhat.com>
1880
1881 * target.h (struct target_ops) <to_disconnect>: Make parameter
1882 const.
1883 (target_disconnect): Update.
1884 * target.c (target_disconnect): Make "args" const.
1885 * target-delegates.c: Rebuild.
1886 * remote.c (remote_disconnect): Update.
1887 * record.h (record_disconnect): Update.
1888 * record.c (record_disconnect): Update.
1889 * inf-child.c (inf_child_disconnect): Update.
1890
a30bf1f1
TT
18912014-06-16 Tom Tromey <tromey@redhat.com>
1892
1893 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1894 * target.c (debug_to_rcmd, default_rcmd): Update.
1895 * target-delegates.c: Rebuild.
1896 * remote.c (remote_rcmd): Update.
1897 * monitor.c (monitor_rcmd): Update.
1898
d03de421
PA
18992014-06-16 Pedro Alves <palves@redhat.com>
1900
1901 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1902 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1903 have OBJF_SHARED set.
1904 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1905 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1906 instead of OBJF_USERLOADED.
1907 * objfiles.h (OBJF_SHARED): Update comment.
1908 (userloaded_objfile_contains_address_p): Rename to ...
1909 (shared_objfile_contains_address_p): ... this, and update
1910 comments.
1911 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1912 new objfile.
1913 (remove_symbol_file_command): Skip objfiles that don't have
1914 OBJF_SHARED set.
1915
99f4262f
TT
19162014-06-16 Tom Tromey <tromey@redhat.com>
1917
1918 * minsyms.h (prim_record_minimal_symbol)
1919 (prim_record_minimal_symbol_and_info): Update comments.
1920
97d66cc6
EZ
19212014-06-14 Eli Zaretskii <eliz@gnu.org>
1922
1923 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1924 or --without-guile, according to how GDB was built.
1925
635c7e8a
TT
19262014-06-13 Tom Tromey <tromey@redhat.com>
1927
1928 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1929 to help_list.
1930 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1931 to help_list.
1932 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1933 help_list.
1934 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1935 help_list.Pass all_commands, not -1, to help_list.
1936 * cli/cli-dump.c (dump_command, append_command)
1937 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1938 (binary_dump_command, binary_append_command): Pass all_commands,
1939 not -1, to help_list.
1940 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1941 -1, to help_list.
1942 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1943 -1, to help_list.
1944 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1945 help_list.
1946 * top.c (set_history): Pass all_commands, not -1, to help_list.
1947 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1948 all_commands, not -1, to help_list.
1949 * symfile.c (overlay_command): Pass all_commands, not -1, to
1950 help_list.
1951 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1952 help_list.
1953 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1954 help_list.
1955 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1956 -1, to help_list.
1957 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1958 not -1, to help_list.
1959 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1960 not -1, to help_list.
1961 * maint.c (maintenance_command, maintenance_info_command)
1962 (maintenance_print_command, maintenance_set_cmd): Pass
1963 all_commands, not -1, to help_list.
1964 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1965 help_list.
1966 * language.c (set_check): Pass all_commands, not -1, to help_list.
1967 * infcmd.c (unset_command): Pass all_commands, not -1, to
1968 help_list.
1969 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1970 help_list.
1971 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1972 help_list.
1973 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1974 help_list.
1975 * breakpoint.c (save_command): Pass all_commands, not -1, to
1976 help_list.
1977 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1978 all_commands, not -1, to help_list.
1979
b94ade42
PL
19802014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1981
1982 * regcache.c (struct register_to_invalidate): New structure.
1983 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1984 functions.
1985 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1986
31f628ae
YQ
19872014-06-12 Yao Qi <yao@codesourcery.com>
1988
1989 * varobj.c (varobj_get_num_children): Call
1990 varobj_is_dynamic_p.
1991 (varobj_list_children): Likewise.
1992 (varobj_update): Likewise. Update comments.
1993
cde5ef40
YQ
19942014-06-12 Yao Qi <yao@codesourcery.com>
1995
1996 * varobj.c (varobj_pretty_printed_p): Rename to ...
1997 (varobj_is_dynamic_p): ... this. New function.
1998 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1999 (varobj_is_dynamic_p): Declare.
2000 * mi/mi-cmd-var.c (print_varobj): All callers updated.
2001 (mi_print_value_p, varobj_update_one): Likewise.
2002
576ea091
YQ
20032014-06-12 Pedro Alves <pedro@codesourcery.com>
2004 Yao Qi <yao@codesourcery.com>
2005
2006 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
2007 (varobj_get_iterator): Wrap up code for pretty-printer by
2008 "#if HAVE_PYTHON" and "#endif".
2009 (update_dynamic_varobj_children): Likewise.
2010
827f100c
YQ
20112014-06-12 Pedro Alves <pedro@codesourcery.com>
2012 Yao Qi <yao@codesourcery.com>
2013
2014 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
2015 gdb_python_initialized is false. Move some code from varobj.c.
2016 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
2017 * varobj.c: Move "varobj-iter.h" inclusion earlier.
2018 (struct varobj_item): Moved to varobj-iter.h".
2019 (varobj_clear_saved_item): New function.
2020 (update_dynamic_varobj_children): Move python-related code to
2021 py-varobj.c.
2022 (free_variable): Call varobj_clear_saved_item and
2023 varobj_iter_delete.
2024
e5250216
YQ
20252014-06-12 Pedro Alves <pedro@codesourcery.com>
2026 Yao Qi <yao@codesourcery.com>
2027
2028 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
2029 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
2030 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
2031 (py-varobj.o): New rule.
2032 * python/py-varobj.c: New file.
2033 * python/python-internal.h (py_varobj_get_iterator): Declare.
2034 * varobj-iter.h: New file.
2035 * varobj.c: Include "varobj-iter.h"
2036 (struct varobj) <child_iter>: Change its type from "PyObject *"
2037 to "struct varobj_iter *".
2038 <saved_item>: Likewise.
2039 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
2040 [HAVE_PYTHON] (varobj_get_iterator): New function.
2041 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
2042 python-specific code to python/py-varobj.c.
2043 (install_visualizer): Call varobj_iter_delete instead of
2044 Py_XDECREF.
2045 * varobj.h (varobj_ensure_python_env): Declare.
2046
5a2e0d6e
YQ
20472014-06-12 Yao Qi <yao@codesourcery.com>
2048
2049 * varobj.c (struct varobj_item): New structure.
2050 (create_child_with_value): Update declaration.
2051 (varobj_add_child): Replace arguments 'name' and 'value' with
2052 'item'. All callers updated.
2053 (install_dynamic_child): Likewise.
2054 (update_dynamic_varobj_children): Likewise.
2055 (varobj_add_child): Likewise.
2056 (create_child_with_value): Likewise.
2057
919b9a93
JB
20582014-06-11 Joel Brobecker <brobecker@adacore.com>
2059
2060 * NEWS: Create a new section for the next release branch.
2061 Rename the section of the current branch, now that it has
2062 been cut.
2063
71a55bdf
JB
20642014-06-11 Joel Brobecker <brobecker@adacore.com>
2065
2066 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
2067 * version.in: Bump version to 7.8.50.DATE-cvs.
2068
364fe1f7
PA
20692014-06-11 Pedro Alves <palves@redhat.com>
2070
2071 PR remote/17028
2072 * ser-mingw.c (net_windows_socket_check_pending): New function.
2073 (net_windows_select_thread): Ignore spurious wakeups. Use
2074 net_windows_socket_check_pending.
2075 (net_windows_wait_handle): Check for pending events with
2076 ioctlsocket, through net_windows_socket_check_pending, instead of
2077 checking the socket's event.
2078
5a6c7709
SC
20792014-06-10 Siva Chandra Reddy <sivachandra@google.com>
2080
2081 * python/python-internal.h (gdb_PyObject_GetAttrString)
2082 (gdb_PyObject_HasAttrString): New inline function definitions.
2083 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2084 char * of the second argument to PyObject_GetAttrString.
74228e77 2085
0e58ee40
JB
20862014-06-10 Joel Brobecker <brobecker@adacore.com>
2087
2088 * serial.c (serial_write): Fix index of character to be printed
2089 in call to serial_logchar when serial debug traces are enabled.
2090
d190df30
JB
20912014-06-10 Joel Brobecker <brobecker@adacore.com>
2092
2093 * gdbtypes (resolve_dynamic_range): Add function description.
2094
b4b01d36
PA
20952014-06-09 Pedro Alves <palves@redhat.com>
2096
2097 * linux-nat.c (linux_child_follow_fork): Initialize status with
2098 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2099 inner block. Only pass the signal to PTRACE_DETACH if in pass
2100 state.
2101
3657956b
GB
21022014-06-09 Gary Benson <gbenson@redhat.com>
2103
2104 * common/signals.c (gdb_signal_from_host): Reorder to separate
2105 the always-available ANSI-standard signals from the signals that
2106 require checking.
2107 (do_gdb_signal_to_host): Likewise.
2108 * proc-events.c (signal_table): Likewise.
2109
c077881a
HZ
21102014-06-08 Hui Zhu <hui@codesourcery.com>
2111
2112 * common/linux-ptrace.c (linux_disable_event_reporting): New
2113 function.
2114 * common/linux-ptrace.h (linux_disable_event_reporting): New
2115 declaration.
2116 * linux-nat.c (linux_child_follow_fork): Do a single step before
2117 detach.
2118
4186eb54
KS
21192014-06-07 Keith Seitz <keiths@redhat.com>
2120
2121 Revert:
2122 PR c++/16253
2123 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2124 from symbol_matches_domain in symtab.c. All local callers
2125 of symbol_matches_domain updated.
2126 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2127 search STRUCT_DOMAIN.
2128 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2129 independently. standard_lookup will do that automatically.
2130 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2131 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2132 (cp_lookup_symbol_in_namespace): Likewise.
2133 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2134 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2135 may return a STRUCT_DOMAIN match.
2136 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2137 * cp-support.c: Include language.h.
2138 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2139 VAR_DOMAIN.
2140 * psymtab.c (match_partial_symbol): Compare the requested
2141 domain with the symbol's domain directly.
2142 (lookup_partial_symbol): Likewise.
2143 * symtab.c (lookup_symbol_in_language): Explain when/why
2144 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2145 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2146 appropriate languages.
2147 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2148 and moved to ada-lang.c
2149 (lookup_block_symbol): Explain that this function only returns
2150 symbol matching the requested DOMAIN.
2151 Compare the requested domain with the symbol's domain directly.
2152 (iterate_over_symbols): Compare the requested domain with the
2153 symbol's domain directly.
2154 * symtab.h (symbol_matches_domain): Remove.
2155
25326a28 21562014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
2157
2158 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2159 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2160 (gdbscm_guile_version_is_at_least): Declare.
2161 (gdbscm_scm_string_to_int): Declare.
2162 * guile/guile.c (gdbscm_guile_major_version): New global.
2163 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2164 (guile_datadir): New static global.
2165 (gdbscm_guile_data_directory): New function.
2166 (initialize_scheme_side): Update.
2167 (misc_guile_functions): Add guile-data-directory.
2168 (initialize_gdb_module): Fetch guile version number.
2169 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2170 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2171 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2172 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2173 comments.
2174 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2175 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2176 * guile/scm-value.c (gdbscm_value_to_string): Only call
2177 scm_port_conversion_strategy if Guile version >= 2.0.6.
2178
0a770bb2 21792014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2180
2181 * main.c (print_gdb_help): Add -q and --silent.
2182
73ba372c
GB
21832014-06-06 Gary Benson <gbenson@redhat.com>
2184
2185 * common/signals.c: Remove preprocessor conditionals for
2186 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2187 SIGSEGV and SIGTERM.
2188 * proc-events.c: Likewise.
2189
c33b2f12
MM
21902014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2191
2192 * symfile.c (symfile_free_objfile): Remove restriction to
2193 OBJF_USERLOADED.
2194 * symfile-mem.c (symbol_file_add_from_memory): Call
2195 add_target_sections_of_objfile.
2196
fb934770
LC
21972014-06-05 Ludovic Courtès <ludo@gnu.org>
2198
2199 * guile/scm-value.c (gdbscm_history_append_x): Use
2200 'vlscm_get_value_smob_arg_unsafe' instead of
2201 'vlscm_scm_to_value'.
2202
6ef284bd
SM
22032014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2204
2205 PR mi/15806
2206 * utils.c (printchar): Don't escape at all if quoter is NUL.
2207 Update function documentation to clarify effect of parameter
2208 QUOTER.
2209 * remote.c (escape_buffer): Pass '\\' as the quoter to
2210 fputstrn_unfiltered.
2211 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2212 generate the output.
2213 (mi_solib_unloaded): Same.
2214
270c9937
JB
22152014-06-05 Joel Brobecker <brobecker@adacore.com>
2216
2217 * development.sh: Delete.
2218 * Makefile.in (config.status): Adjust dependency on development.sh.
2219 * configure.ac: Adjust development.sh source call.
2220 * configure: Regenerate.
2221
16f691fb
DE
22222014-06-04 Doug Evans <xdje42@gmail.com>
2223
2224 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2225 is_scheme_bkpt, spec.
2226 (bpscm_make_breakpoint_smob): Initialize new members.
2227 (gdbscm_create_breakpoint_x): Split into two ...
2228 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2229 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2230 (scheme_function breakpoint_functions): Update.
2231 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2232 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2233 register-breakpoint!.
2234
ef7cab6b
JB
22352014-06-04 Joel Brobecker <brobecker@adacorer.com>
2236
2237 PR server/17023
2238 * mem-break.c (z_type_supported): Return zero if
2239 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2240
012370f6
TT
22412014-06-04 Tom Tromey <tromey@redhat.com>
2242
2243 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2244 value_from_contents_and_address_unresolved.
2245 (ada_template_to_fixed_record_type_1): Likewise.
2246 (ada_which_variant_applies): Likewise.
2247 * value.h (value_from_contents_and_address_unresolved): Declare.
2248 * value.c (value_from_contents_and_address_unresolved): New
2249 function.
2250 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2251 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2252 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2253
92e2a17f
TT
22542014-06-04 Tom Tromey <tromey@redhat.com>
2255
2256 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2257
c0939df1
TT
22582014-06-04 Tom Tromey <tromey@redhat.com>
2259
2260 * procfs.c (procfs_attach): Make "args" const.
2261 * windows-nat.c (windows_attach): Make "args" const.
2262 * nto-procfs.c (procfs_attach): Make "args" const.
2263 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2264 * go32-nat.c (go32_attach): Make "args" const.
2265 * gnu-nat.c (gnu_attach): Make "args" const.
2266 * darwin-nat.c (darwin_attach): Make "args" const.
2267 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2268 * linux-nat.c (linux_nat_attach): Make "args" const.
2269 * remote.c (extended_remote_attach_1, extended_remote_attach):
2270 Make "args" const.
2271 * target.h (struct target_ops) <to_attach>: Make "args" const.
2272 (find_default_attach): Likewise.
2273 * utils.c (parse_pid_to_attach): Make "args" const.
2274 * utils.h (parse_pid_to_attach): Update.
2275
8eaff7cd
TT
22762014-06-04 Tom Tromey <tromey@redhat.com>
2277
2278 * target-delegates.c: Rebuild.
2279 * target.c (default_thread_address_space): New function.
2280 (target_thread_address_space): Simplify.
2281 * target.h (struct target_ops) <to_thread_address_space>: Add
2282 TARGET_DEFAULT_FUNC.
2283
1913f160
DE
22842014-06-04 Doug Evans <xdje42@gmail.com>
2285
2286 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2287
70ad5bff
MM
22882014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2289
2290 * record-btrace.c: Include event-loop.h and inf-loop.h.
2291 (record_btrace_resume_exec_dir)
2292 (record_btrace_async_inferior_event_handler)
2293 (record_btrace_handle_async_inferior_event): New.
2294 (record_btrace_open): Create async event handler.
2295 (record_btrace_close): Delete async event handler.
2296 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2297 Mark async event handler.
2298 (record_btrace_execution_direction): New.
2299 (init_record_btrace_ops): Initialize to_execution_direction.
2300
b6210538
DE
23012014-06-03 Doug Evans <xdje42@gmail.com>
2302
2303 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2304 (gdbscm_make_parameter): Ditto.
2305
a5b1fd27
DE
23062014-06-03 Doug Evans <dje@google.com>
2307
2308 * exec.c (exec_close_1): Call clear_section_table instead of
2309 resize_section_table.
2310 (clear_section_table): New function.
2311 (resize_section_table): Make static. Rename arg num_added to
2312 adjustment.
2313 * exec.h (clear_section_table): Declare.
2314 (resize_section_table): Delete.
2315 * progspace.c (release_program_space): Call clear_section_table
2316 instead of resize_section_table.
2317
0c6e92a5
SC
23182014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2319
2320 * NEWS (Python Scripting): Add entry about the new xmethods
2321 feature.
2322
883964a7
SC
23232014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2324
2325 * python/py-xmethods.c: New file.
2326 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2327 (objfpy_dealloc): XDECREF on the new xmethods field.
2328 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2329 field.
2330 (objfpy_get_xmethods): New function.
2331 (objfile_getset): New entry 'xmethods'.
2332 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2333 (pspy_dealloc): XDECREF on the new xmethods field.
2334 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2335 field.
2336 (pspy_get_xmethods): New function.
2337 (pspace_getset): New entry 'xmethods'.
2338 * python/python-internal.h: Add declarations for new functions.
2339 * python/python.c (_initialize_python): Invoke
2340 gdbpy_initialize_xmethods.
2341 * python/lib/gdb/__init__.py (xmethods): New
2342 attribute.
2343 * python/lib/gdb/xmethod.py: New file.
2344 * python/lib/gdb/command/xmethods.py: New file.
2345
58992dc5
SC
23462014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2347
2348 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2349 best match method returned by find_overload_match is an xmethod.
2350 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2351 the best matching operator returned by find_overload_match is an
2352 xmethod.
2353 * valops.c: #include "extension.h".
2354 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2355 Return void. The list of matching source methods is returned in
2356 "fn_list" and a vector of matching debug method workers is
2357 returned in "xm_worker_vec". Update all callers.
2358 (value_find_oload_method_list): Likewise.
2359 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2360 non-NULL, then the index of the best matching method in this
2361 vector is returned. Update all callers.
2362 (find_overload_match): Include xmethods while performing overload
2363 resolution.
2364
e81e7f5e
SC
23652014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2366
2367 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2368 * extension-priv.h (struct extension_language_ops): Add the
2369 xmethod interface.
2370 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2371 get_matching_xmethod_workers, get_xmethod_argtypes,
2372 invoke_xmethod, free_xmethod_worker,
2373 free_xmethod_worker_vec): New functions.
2374 * extension.h: #include "common/vec.h".
2375 New function declarations.
2376 (struct xmethod_worker): New struct.
2377 (VEC (xmethod_worker_ptr)): New vector type.
2378 (xmethod_worker_ptr): New typedef.
2379 (xmethod_worker_vec): Likewise.
2380 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2381 builtin_type.
2382 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2383 (struct builtin_type): New field "xmethod".
2384 * valarith.c (value_ptradd): Assert that the value argument is not
2385 lval_xcallable.
2386 * valops.c (value_must_coerce_to_target): Return 0 for
2387 lval_xcallable values.
2388 * value.c (struct value): New field XM_WORKER in the field
2389 LOCATION.
2390 (value_address, value_raw_address): Return 0 for lval_xcallable
2391 values.
2392 (set_value_address): Assert that the value is not an
2393 lval_xcallable.
2394 (value_free): Free the associated xmethod worker when freeing
2395 lval_xcallable values.
2396 (set_value_component_location): Assert that the WHOLE value is not
2397 lval_xcallable.
2398 (value_of_xmethod, call_xmethod): New functions.
2399 * value.h: Declare "struct xmethod_worker".
2400 Declare new functions value_of_xmethod, call_xmethod.
2401
ef370185
JB
24022014-06-03 Joel Brobecker <brobecker@adacore.com>
2403 Pedro Alves <palves@redhat.com>
2404
2405 PR breakpoints/17000
2406 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2407 New function, extracted from software_breakpoint_inserted_here_p.
2408 (software_breakpoint_inserted_here_p): Replace factored out code
2409 by call to find_non_raw_software_breakpoint_inserted_here.
2410 (bp_target_info_copy_insertion_state): New function.
2411 (bkpt_insert_location): Handle the case of a single-step
2412 breakpoint already inserted at the same address.
2413 (bkpt_remove_location): Handle the case of a single-step
2414 breakpoint still inserted at the same address.
2415 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2416 breakpoint already inserted at the same address.
2417 (deprecated_remove_raw_breakpoint): Handle the case of a
2418 non-raw breakpoint still inserted at the same address.
2419 (find_single_step_breakpoint): New function, extracted from
2420 single_step_breakpoint_inserted_here_p.
2421 (find_single_step_breakpoint): New function,
2422 factored out from single_step_breakpoint_inserted_here_p.
2423 (single_step_breakpoint_inserted_here_p): Reimplement.
2424
1e2ccb61
BM
24252014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2426
2427 Pushed by Joel Brobecker <brobecker@adacore.com>
2428 * source.c (show_substitute_path_command): Fix display of matching
2429 substitution rules.
2430
d3448d85
GB
24312014-06-03 Gary Benson <gbenson@redhat.com>
2432
2433 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2434
06eb1586
DE
24352014-06-02 Doug Evans <xdje42@gmail.com>
2436
2437 Add parameter support for Guile.
2438 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2439 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2440 (scm-param.o): New rule.
2441 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2442 (gdbscm_misc_error): Declare.
2443 (gdbscm_canonicalize_command_name): Declare.
2444 (gdbscm_scm_to_host_string): Declare.
2445 (gdbscm_scm_from_host_string): Declare.
2446 (gdbscm_initialize_parameters): Declare.
2447 * guile/guile.c (initialize_gdb_module): Call
2448 gdbscm_initialize_parameters.
2449 * guile/lib/gdb.scm: Export parameter symbols.
2450 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2451 cmdscm_canonicalize_name and made public. All callers updated.
2452 * guile/scm-exception.c (gdbscm_misc_error): New function.
2453 * guile/scm-param.c: New file.
2454 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2455 (gdbscm_scm_to_host_string): New function.
2456 (gdbscm_scm_from_host_string): New function.
2457 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2458
e698b8c4
DE
24592014-06-02 Doug Evans <xdje42@gmail.com>
2460
2461 Add command support for Guile.
2462 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2463 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2464 (scm-cmd.o): New rule.
2465 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2466 (gdbscm_user_error_p): Declare.
2467 (gdbscm_parse_command_name): Declare.
2468 (gdbscm_valid_command_class_p): Declare.
2469 (gdbscm_initialize_commands): Declare.
2470 * guile/guile.c (initialize_gdb_module): Call
2471 gdbscm_initialize_commands.
2472 * guile/lib/gdb.scm: Export command symbols.
2473 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2474 (throw-user-error): New function.
2475 * guile/scm-cmd.c: New file.
2476 * guile/scm-exception.c (user_error_symbol): New static global.
2477 (gdbscm_user_error_p): New function.
2478 (gdbscm_initialize_exceptions): Set user_error_symbol.
2479 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2480
fb1f94b0
PM
24812014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2482
2483 * top.c (command_loop): Handle comments here...
2484 (command_line_input): ... not here.
2485
ded03782
DE
24862014-06-02 Doug Evans <xdje42@gmail.com>
2487
2488 Add progspace support for Guile.
2489 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2490 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2491 (scm-progspace.o): New rule.
2492 * guile/guile-internal.h (pspace_smob): New typedef.
2493 (psscm_pspace_smob_pretty_printers): Declare.
2494 (psscm_pspace_smob_from_pspace): Declare.
2495 (psscm_scm_from_pspace): Declare.
2496 * guile/guile.c (initialize_gdb_module): Call
2497 gdbscm_initialize_pspaces.
2498 * guile/lib/gdb.scm: Export progspace symbols.
2499 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2500 support.
2501 (append-pretty-printer!): Ditto.
2502 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2503 Implement.
2504 * guile/scm-progspace.c: New file.
2505
397998fc
AM
25062014-06-03 Alan Modra <amodra@gmail.com>
2507
2508 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2509 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2510
6aa5f3a6
DE
25112014-06-02 Doug Evans <dje@google.com>
2512
2513 Add support for skeletonless type units.
2514 * dwarf2read.c (struct dwarf2_per_objfile): New member
2515 n_allocated_type_units.
2516 (struct dwarf2_per_objfile) <tu_stats>: New member
2517 nr_all_type_units_reallocs.
2518 (create_signatured_type_table_from_index): Initialize
2519 n_allocated_type_units
2520 (create_all_type_units): Ditto.
2521 (add_type_unit): Move up in file. New arg slot.
2522 All callers updated. Increase space for all_type_units more
2523 efficiently.
2524 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2525 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2526 (lookup_dwp_signatured_type): Ditto.
2527 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2528 All callers updated.
2529 (build_type_psymtabs_1): Leave type_unit_groups as
2530 NULL if no TUs present.
2531 (print_tu_stats): New function.
2532 (process_skeletonless_type_unit): New function.
2533 (process_dwo_file_for_skeletonless_type_units): New
2534 function.
2535 (process_skeletonless_type_units): New function.
2536 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2537 Call print tu_stats if debugging enabled.
2538
41fac0cf
PA
25392014-06-02 Pedro Alves <palves@redhat.com>
2540
2541 * breakpoint.c (build_target_command_list): Don't build a command
2542 list if we have any duplicate location that isn't a dprintf.
2543
cd1608cc
PA
25442014-06-02 Pedro Alves <palves@redhat.com>
2545
2546 * breakpoint.c (dprintf_breakpoint_hit): New function.
2547 (initialize_breakpoint_ops): Install it as dprintf's
2548 breakpoint_hit method.
2549
486ef3b9
JB
25502014-06-02 Joel Brobecker <brobecker@adacore.com>
2551
2552 * source.c (substitute_path_rule_matches): Simplify using
2553 filename_ncmp instead of FILENAME_CMP.
2554
230cd560
JB
25552014-06-02 Joel Brobecker <brobecker@adacore.com>
2556
2557 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2558
16954d5d
LC
25592014-06-01 Ludovic Courtès <ludo@gnu.org>
2560
2561 * configure.ac: When Guile is available, check for the
2562 availability of 'scm_new_smob'.
2563 * configure, config.h.in: Regenerate.
2564 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2565 function.
2566
53e8a631
AB
25672014-05-30 Andrew Burgess <aburgess@broadcom.com>
2568
2569 * frame.c (struct frame_info): Add stop_string field.
2570 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2571 (get_prev_frame_always): Old content moved into
2572 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2573 TRY_CATCH, handle MEMORY_ERROR exceptions.
2574 (frame_stop_reason_string): New function definition.
2575 * frame.h (unwind_stop_reason_to_string): Extend comment to
2576 mention frame_stop_reason_string.
2577 (frame_stop_reason_string): New function declaration.
2578 * stack.c (frame_info): Switch to frame_stop_reason_string.
2579 (backtrace_command_1): Switch to frame_stop_reason_string.
2580 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2581 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2582 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2583
70e38b8e
AB
25842014-05-30 Andrew Burgess <aburgess@broadcom.com>
2585
2586 * frame.c (frame_stop_reason_string): Rename to ...
2587 (unwind_stop_reason_to_string): this.
2588 * frame.h (frame_stop_reason_string): Rename to ...
2589 (unwind_stop_reason_to_string): this.
2590 * stack.c (frame_info): Update call to frame_stop_reason_string.
2591 (backtrace_command_1): Likewise.
2592 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2593 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2594
938f0e2f
AB
25952014-05-30 Andrew Burgess <aburgess@broadcom.com>
2596
2597 * frame.c (remove_prev_frame): New function.
2598 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2599 remove_prev_frame.
2600
a09dd441
PA
26012014-05-29 Pedro Alves <palves@redhat.com>
2602
2603 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2604 and make it const. When a single-step decays to a continue,
2605 clear 'step', not 'hw_step'. Pass whether the caller wanted
2606 to step to user_visible_resume_ptid, not what we ask the
2607 target to do.
2608
bdc36728
PA
26092014-05-29 Pedro Alves <palves@redhat.com>
2610
2611 * infrun.c (process_event_stop_test, handle_step_into_function)
2612 (handle_step_into_function_backward): Adjust.
2613 Don't set the even thread's stop_step and call stop_waiting before
2614 calling end_stepping_range. Instead do that ...
2615 (end_stepping_range): ... here. Take an ecs pointer parameter.
2616
22bcd14b
PA
26172014-05-29 Pedro Alves <palves@redhat.com>
2618
2619 * infrun.c (stop_stepping): Rename to ...
2620 (stop_waiting): ... this.
2621 (proceed): Update comment.
2622 (process_event_stop_test, handle_inferior_event)
2623 (handle_signal_stop, handle_step_into_function)
2624 (handle_step_into_function_backward): Update.
2625
4ae57c05
PA
26262014-05-29 Pedro Alves <palves@redhat.com>
2627
2628 * infcall.c (run_inferior_call): Don't check whether the current
2629 thread is running after the proceed call.
2630
329ea579
PA
26312014-05-29 Pedro Alves <palves@redhat.com>
2632 Tom Tromey <tromey@redhat.com>
2633
2634 * NEWS: Mention "maint set target-async", "set mi-async", and that
2635 background execution commands are now always available.
2636 * target.h (target_async_permitted): Update comment.
2637 * target.c (target_async_permitted, target_async_permitted_1):
2638 Default to 1.
2639 (set_target_async_command): Rename to ...
2640 (maint_set_target_async_command): ... this.
2641 (show_target_async_command): Rename to ...
2642 (maint_show_target_async_command): ... this.
2643 (_initialize_target): Adjust.
2644 * infcmd.c (prepare_execution_command): Make extern.
2645 * inferior.h (prepare_execution_command): Declare.
2646 * infrun.c (set_observer_mode): Leave target async alone.
2647 * mi/mi-interp.c (mi_interpreter_init): Install
2648 mi_on_sync_execution_done as sync_execution_done observer.
2649 (mi_on_sync_execution_done): New function.
2650 (mi_execute_command_input_handler): Don't print the prompt if we
2651 just started a synchronous command with an async target.
2652 (mi_on_resume): Check sync_execution before printing prompt.
2653 * mi/mi-main.h (mi_async_p): Declare.
2654 * mi/mi-main.c: Include gdbcmd.h.
2655 (mi_async_p): New function.
2656 (mi_async, mi_async_1): New globals.
2657 (set_mi_async_command, show_mi_async_command, mi_async): New
2658 functions.
2659 (exec_continue): Call prepare_execution_command.
2660 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2661 (mi_execute_async_cli_command): Use mi_async_p.
2662 (_initialize_mi_main): Install "set mi-async". Make
2663 "target-async" a deprecated alias.
2664
92bcb5f9
PA
26652014-05-29 Pedro Alves <palves@redhat.com>
2666
2667 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2668 (_initialize_cli_interp): Adjust.
2669 * event-loop.c: Include "observer.h".
2670 (start_event_loop): Notify 'command_error' observers instead of
2671 calling display_gdb_prompt. Remove FIXME comment.
2672 * event-top.c (display_gdb_prompt): Remove call into the
2673 interpreters.
2674 * inf-loop.c: Include "observer.h".
2675 (inferior_event_handler): Notify 'command_error' observers instead
2676 of calling display_gdb_prompt.
2677 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2678 observers instead of calling display_gdb_prompt.
2679 * interps.c (interp_set): Don't call display_gdb_prompt.
2680 (current_interp_display_prompt_p): Delete.
2681 * interps.h (interp_prompt_p): Delete declaration.
2682 (interp_prompt_p_ftype): Delete.
2683 (struct interp_procs) <prompt_proc_p>: Delete field.
2684 (current_interp_display_prompt_p): Delete declaration.
2685 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2686 (_initialize_mi_interp): Adjust.
2687 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2688 'command_error' observers.
2689 (tui_on_sync_execution_done, tui_on_command_error): New
2690 functions.
2691 (tui_display_prompt_p): Delete.
2692 (_initialize_tui_interp): Adjust.
2693
fd664c91
PA
26942014-05-29 Pedro Alves <palves@redhat.com>
2695
2696 PR gdb/13860
2697 * cli/cli-interp.c: Include infrun.h and observer.h.
2698 (cli_uiout, cli_interp): New globals.
2699 (cli_on_signal_received, cli_on_end_stepping_range)
2700 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2701 functions.
2702 (cli_interpreter_init): Install them as 'end_stepping_range',
2703 'signal_received' 'signal_exited', 'exited' and 'no_history'
2704 observers.
2705 (_initialize_cli_interp): Remove cli_interp local.
2706 * infrun.c (handle_inferior_event): Call the several stop reason
2707 observers instead of printing the stop reason directly.
2708 (end_stepping_range): New function.
2709 (print_end_stepping_range_reason, print_signal_exited_reason)
2710 (print_exited_reason, print_signal_received_reason)
2711 (print_no_history_reason): Make static, and add an uiout
2712 parameter. Print to that instead of to CURRENT_UIOUT.
2713 * infrun.h (print_end_stepping_range_reason)
2714 (print_signal_exited_reason, print_exited_reason)
2715 (print_signal_received_reason print_no_history_reason): New
2716 declarations.
2717 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2718 'mi_uiout'.
2719 <cli_uiout>: New field.
2720 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2721 uiout for CLI output. Install 'signal_received',
2722 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2723 observers.
2724 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2725 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2726 (mi_on_no_history): New functions.
2727 (ui_out_free_cleanup): Delete function.
2728 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2729 instead use the one already stored in the MI interpreter data.
2730 (mi_ui_out): Adjust.
2731 * tui/tui-interp.c: Include infrun.h and observer.h.
2732 (tui_interp): New global.
2733 (tui_on_signal_received, tui_on_end_stepping_range)
2734 (tui_on_signal_exited, tui_on_exited)
2735 (tui_on_no_history): New functions.
2736 (tui_init): Install them as 'end_stepping_range',
2737 'signal_received' 'signal_exited', 'exited' and 'no_history'
2738 observers.
2739 (_initialize_tui_interp): Delete tui_interp local.
2740
8817a6f2
PA
27412014-05-29 Pedro Alves <palves@redhat.com>
2742
2743 PR gdb/15713
2744 * linux-nat.c (linux_nat_resume_callback): Rename the second
2745 parameter to 'except'. Skip LP if it points to EXCEPT.
2746 (linux_nat_resume): Don't mark the event lwp as not stopped
2747 before resuming sibling lwps. Instead ask
2748 linux_nat_resume_callback to skip the event lwp. Mark it as not
2749 stopped after actually resuming it.
2750 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2751 resuming it.
2752 (wait_lwp): Mark the lwp as stopped here.
2753 (stop_wait_callback): Mark the lwp as not stopped right after
2754 resuming it. Don't mark lwps as stopped here.
2755 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2756 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2757
251bde03
PA
27582014-05-29 Pedro Alves <palves@redhat.com>
2759
2760 PR PR15693
2761 * infrun.c (resume): Determine how much to resume depending on
2762 whether the caller wanted a step, not whether we can hardware step
2763 the target. Mark all threads that we intend to run as running,
2764 unless we're calling an inferior function.
2765 (normal_stop): If the thread is running an infcall, don't finish
2766 thread state.
2767 * target.c (target_resume): Don't mark threads as running here.
2768
7f3c0343
JB
27692014-05-28 Joel Brobecker <brobecker@adacore.com>
2770
2771 * serial.c (_initialize_serial): Remove support for
2772 the "set remotebaud" and "show remotebaud" commands.
2773 * NEWS: Add entry documenting the removal of that command.
2774
ee34b3f9
YQ
27752014-05-28 Yao Qi <yao@codesourcery.com>
2776
2777 * charset.c: Fix typo in comments.
2778
add6c04d
GB
27792014-05-27 Gary Benson <gbenson@redhat.com>
2780
2781 * utils.c (internal_vproblem): Prompt for a bug report.
2782
92c48fc5
AW
27832014-05-26 Andy Wingo <wingo@igalia.com>
2784
2785 * guile/scm-arch.c (arscm_mark_arch_smob):
2786 * guile/scm-block.c (bkscm_mark_block_smob)
2787 (bkscm_mark_block_syms_progress_smob):
2788 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2789 * guile/scm-exception.c (exscm_mark_exception_smob):
2790 * guile/scm-frame.c (frscm_mark_frame_smob):
2791 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2792 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2793 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2794 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2795 (ppscm_mark_pretty_printer_worker_smob):
2796 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2797 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2798 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2799 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2800 mark functions.
2801 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2802 function.
2803
b2715b27
AW
28042014-05-26 Andy Wingo <wingo@igalia.com>
2805 Doug Evans <xdje42@gmail.com>
2806
2807 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2808 empty_base_class. All uses updated.
2809 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2810 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2811 Adapt all callers.
2812 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2813 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2814 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2815 (gdbscm_gsmob_has_property_p, add_property_name)
2816 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2817 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2818 (gdb-object-has-property?, gdb-object-properties): Remove.
2819 (gdb-object-kind): Renamed from gsmob-kind.
2820
214ab2da
AW
28212014-05-26 Andy Wingo <wingo@igalia.com>
2822
2823 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2824 * configure: Regenerate.
2825
589fdceb
MM
28262014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2827
2828 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2829
67b5c0c1
MM
28302014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2831
2832 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2833 (replay_memory_access_read_only, replay_memory_access_read_write)
2834 (replay_memory_access_types, replay_memory_access)
2835 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2836 (cmd_set_record_btrace, cmd_show_record_btrace)
2837 (cmd_show_replay_memory_access): New.
2838 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2839 (record_btrace_remove_breakpoint): Replace
2840 record_btrace_allow_memory_access with replay_memory_access.
2841 (_initialize_record_btrace): Add commands.
2842 * NEWS: Announce it.
2843
036cd381
RR
28442014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2845
2846 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2847
c77c1e42
RR
28482014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2849
2850 * MAINTAINERS (Write After Approval): Move self back from
2851 paper trail.
2852
45741a9c
PA
28532014-05-22 Pedro Alves <palves@redhat.com>
2854
2855 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2856 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2857 (disable_randomization, enum exec_direction_kind)
2858 (execution_direction, stop_registers, start_remote)
2859 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2860 (wait_for_inferior, normal_stop, get_last_target_status)
2861 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2862 (insert_step_resume_breakpoint_at_sal)
2863 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2864 (set_step_info, print_stop_event, signal_stop_state)
2865 (signal_print_state, signal_pass_state, signal_stop_update)
2866 (signal_print_update, signal_pass_update)
2867 (update_signals_program_target, clear_exit_convenience_vars)
2868 (displaced_step_dump_bytes, update_observer_mode)
2869 (signal_catch_update, gdb_signal_from_command): Move
2870 declarations ...
2871 * infrun.h: ... to this new file.
2872 * amd64-tdep.c: Include infrun.h.
2873 * annotate.c: Include infrun.h.
2874 * arch-utils.c: Include infrun.h.
2875 * arm-linux-tdep.c: Include infrun.h.
2876 * arm-tdep.c: Include infrun.h.
2877 * break-catch-sig.c: Include infrun.h.
2878 * breakpoint.c: Include infrun.h.
2879 * common/agent.c: Include infrun.h instead of inferior.h.
2880 * corelow.c: Include infrun.h.
2881 * event-top.c: Include infrun.h.
2882 * go32-nat.c: Include infrun.h.
2883 * i386-tdep.c: Include infrun.h.
2884 * inf-loop.c: Include infrun.h.
2885 * infcall.c: Include infrun.h.
2886 * infcmd.c: Include infrun.h.
2887 * infrun.c: Include infrun.h.
2888 * linux-fork.c: Include infrun.h.
2889 * linux-nat.c: Include infrun.h.
2890 * linux-thread-db.c: Include infrun.h.
2891 * monitor.c: Include infrun.h.
2892 * nto-tdep.c: Include infrun.h.
2893 * procfs.c: Include infrun.h.
2894 * record-btrace.c: Include infrun.h.
2895 * record-full.c: Include infrun.h.
2896 * remote-m32r-sdi.c: Include infrun.h.
2897 * remote-mips.c: Include infrun.h.
2898 * remote-notif.c: Include infrun.h.
2899 * remote-sim.c: Include infrun.h.
2900 * remote.c: Include infrun.h.
2901 * reverse.c: Include infrun.h.
2902 * rs6000-tdep.c: Include infrun.h.
2903 * s390-linux-tdep.c: Include infrun.h.
2904 * solib-irix.c: Include infrun.h.
2905 * solib-osf.c: Include infrun.h.
2906 * solib-svr4.c: Include infrun.h.
2907 * target.c: Include infrun.h.
2908 * top.c: Include infrun.h.
2909 * windows-nat.c: Include infrun.h.
2910 * mi/mi-interp.c: Include infrun.h.
2911 * mi/mi-main.c: Include infrun.h.
2912 * python/py-threadevent.c: Include infrun.h.
2913
98eb56a4
PA
29142014-05-22 Pedro Alves <palves@redhat.com>
2915
2916 * infrun.c (handle_inferior_event): Store the exit code for
2917 --return-child-result here, instead of ...
2918 (print_exited_reason): ... here.
2919
17b2616c
PA
29202014-05-21 Pedro Alves <palves@redhat.com>
2921
2922 PR gdb/13860
2923 * gdbthread.h (struct thread_control_state): New field
2924 `command_interp'.
2925 * infrun.c (follow_fork): Copy the new thread control field to the
2926 child fork thread.
2927 (clear_proceed_status_thread): Clear the new thread control field.
2928 (proceed): Set the new thread control field.
2929 * interps.h (command_interp): Declare.
2930 * interps.c (command_interpreter): New global.
2931 (command_interp): New function.
2932 (interp_exec): Set `command_interpreter' while here.
2933 * cli-out.c (cli_uiout_dtor): New function.
2934 (cli_ui_out_impl): Install it.
2935 * mi/mi-interp.c: Include cli-out.h.
2936 (mi_cmd_interpreter_exec): Add comment.
2937 (restore_current_uiout_cleanup): New function.
2938 (ui_out_free_cleanup): New function.
2939 (mi_on_normal_stop): If finishing an execution command started by
2940 a CLI command, or any kind of breakpoint-like event triggered,
2941 print the stop event to the output (CLI) stream.
2942 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2943
5166082f
PA
29442014-05-21 Pedro Alves <palves@redhat.com>
2945
2946 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2947 current source line having changed.
2948 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2949 * infrun.c (normal_stop): Adjust call to
2950 set_current_sal_from_frame.
2951 * source.c (clear_lines_listed_range): New function.
2952 (set_current_source_symtab_and_line, identify_source_line): Clear
2953 the lines listed range.
2954 (line_info): Handle the first "info line" after the current source
2955 line having changed.
2956 * stack.c (print_stack_frame): Remove center handling.
2957 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2958 center sal.line.
2959
c1ee2fb3
PA
29602014-05-21 Pedro Alves <palves@redhat.com>
2961
2962 * inf-child.c (inf_child_mourn_inferior): New function.
2963 * inf-child.h (inf_child_mourn_inferior): New declaration.
2964 * darwin-nat.c (darwin_mourn_inferior): Use
2965 inf_child_mourn_inferior.
2966 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2967 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2968 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2969 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2970 * windows-nat.c (windows_mourn_inferior): Likewise.
2971
5c6d4fb2
DE
29722014-05-21 Doug Evans <xdje42@gmail.com>
2973
250748cb 2974 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 2975
4a2722c5
DE
29762014-05-21 Doug Evans <xdje42@gmail.com>
2977
17292b30 2978 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
2979 (gdbscm_out_of_range_error): Ditto.
2980 (gdbscm_memory_error): Ditto.
250748cb
DE
2981 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2982 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
2983 (gdbscm_out_of_range_error): Update.
2984 (gdbscm_memory_error): Update.
2985 (gdbscm_scm_to_target_string_unsafe): Delete.
2986
6a3cb8e8
PA
29872014-05-21 Pedro Alves <palves@redhat.com>
2988
2989 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2990 globals.
2991 (inf_child_open_target): New function.
2992 (inf_child_open): Use inf_child_open_target to push the target
2993 instead of erroring out.
2994 (inf_child_disconnect, inf_child_close)
2995 (inf_child_maybe_unpush_target): New functions.
2996 (inf_child_target): Install inf_child_disconnect and
2997 inf_child_close. Store a pointer to the returned object.
2998 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2999 declarations.
3000 * target.c (auto_connect_native_target): New global.
3001 (show_default_run_target): New function.
3002 (find_default_run_target): Return NULL if automatically connecting
3003 to the native target is disabled.
3004 (_initialize_target): Install set/show auto-connect-native-target.
3005 * NEWS: Mention "set auto-connect-native-target", and "target
3006 native".
3007 * linux-nat.c (super_close): New global.
3008 (linux_nat_close): Call super_close.
3009 (linux_nat_add_target): Store a pointer to the base class's
3010 to_close method.
3011 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
3012 inf_child_maybe_unpush.
3013 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
3014 already pushed.
3015 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
3016 the inferior. Use inf_child_maybe_unpush_target.
3017 (inf_ttrace_attach): Don't push the target if it is already
3018 pushed.
3019 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
3020 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
3021 after mourning the inferior. Use inf_child_maybe_unpush_target.
3022 (darwin_attach_pid): Don't push the target if it is already
3023 pushed.
3024 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
3025 mourning the inferior. Use inf_child_maybe_unpush_target.
3026 (gnu_detach): Use inf_child_maybe_unpush_target.
3027 * go32-nat.c (go32_create_inferior): Don't push the target if it
3028 is already pushed.
3029 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
3030 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
3031 (procfs_open): Rename to ...
3032 (procfs_open_1): ... this. Add target_ops parameter. Adjust
3033 comments. Can target_preopen before changing node. Call
3034 inf_child_open_target to push the target explicitly.
3035 (procfs_attach): Don't push the target if it is already pushed.
3036 (procfs_detach): Use inf_child_maybe_unpush_target.
3037 (procfs_create_inferior): Don't push the target if it is already
3038 pushed.
3039 (nto_native_ops): New global.
3040 (procfs_open): Reimplement.
3041 (procfs_native_open): New function.
3042 (init_procfs_targets): Install procfs_native_open as to_open of
3043 "target native". Store a pointer to the "native" target in
3044 nto_native_ops.
3045 * procfs.c (procfs_attach): Don't push the target if it is already
3046 pushed.
3047 (procfs_detach): Use inf_child_maybe_unpush_target.
3048 (procfs_mourn_inferior): Only unpush the target after mourning the
3049 inferior. Use inf_child_maybe_unpush_target.
3050 (procfs_init_inferior): Don't push the target if it is already
3051 pushed.
3052 * windows-nat.c (do_initial_windows_stuff): Don't push the target
3053 if it is already pushed.
3054
930ee1b1
PA
30552014-05-21 Pedro Alves <palves@redhat.com>
3056
3057 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
3058 and "procfs" targets are now called "native" instead.
3059
1f5d1b13
PA
30602014-05-21 Pedro Alves <palves@redhat.com>
3061
3062 * go32-nat.c (go32_open): Delete.
3063 (go32_target): Don't override the to_open method.
3064
132f8e03
PA
30652014-05-21 Pedro Alves <palves@redhat.com>
3066
3067 * nto-procfs.c (procfs_can_run): New function.
3068 (nto_procfs_ops): New global.
3069 (init_procfs_targets): New, based on procfs_target. Install
3070 "target native" in addition to "target procfs".
3071 (_initialize_procfs): Call init_procfs_targets instead of adding
3072 the target here.
3073
03c136c3
PA
30742014-05-21 Pedro Alves <palves@redhat.com>
3075
3076 * windows-nat.c (windows_target): Don't override to_shortname,
3077 to_longname or to_doc.
3078
a635d0f3
PA
30792014-05-21 Pedro Alves <palves@redhat.com>
3080
3081 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3082 to_doc.
3083
4f9b5133
PA
30842014-05-21 Pedro Alves <palves@redhat.com>
3085
3086 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3087 to_shortname, to_longname or to_doc.
3088
bc85afde
PA
30892014-05-21 Pedro Alves <palves@redhat.com>
3090
3091 * go32-nat.c (go32_target): Don't override to_shortname,
3092 to_longname or to_doc.
3093
4ebfc96e
PA
30942014-05-21 Pedro Alves <palves@redhat.com>
3095
3096 * inf-child.c (inf_child_open): Remove mention of "child".
3097 (inf_child_target): Rename target to "native" instead of "child".
3098
2648dfed
AA
30992014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3100
3101 * Makefile.in (SFILES): Delete "regset.c".
3102 (COMMON_OBS): Delete "regset.o".
3103 * regset.c: Remove.
3104 * regset.h (regset_alloc): Delete prototype.
3105
b13feb94
AA
31062014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3107
3108 * sparc-linux-tdep.c (sparc32_linux_gregset)
3109 (sparc32_linux_fpregset): New static regset structures.
3110 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3111 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3112 'fpregset' fields.
3113 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3114 (sparc64_linux_fpregset): New static regset structures.
3115 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3116 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3117 New static regset structures.
3118 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3119 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3120 New static regset structures.
3121 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3122 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3123 New static regset structures.
3124 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3125 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3126 New static regset structures.
3127 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3128
b4fd25c9
AA
31292014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3130
3131 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3132 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3133 register maps ("regmaps") from "*regset" to "*regmap". Do this
3134 for all regmap types and variables.
3135 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3136 (sparc32_linux_supply_core_gregset)
3137 (sparc32_linux_collect_core_gregset)
3138 (sparc32_linux_supply_core_fpregset)
3139 (sparc32_linux_collect_core_fpregset): Likewise.
3140 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3141 (sparc_gregmap, sparc_fpregmap): ... these.
3142 (sparc_supply_gregset, sparc_collect_gregset)
3143 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3144 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3145 (_initialize_sparc_nat): Rename regmaps.
3146 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3147 (sparc_gregmap, sparc_fpregmap): ... these.
3148 (sparc_supply_gregset, sparc_collect_gregset)
3149 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3150 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3151 Rename macros to...
3152 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3153 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3154 Likewise.
3155 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3156 Rename to...
3157 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3158 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3159 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3160 regmaps.
3161 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3162 (sparc32_bsd_fpregset): Rename to...
3163 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3164 (sparc32_bsd_fpregmap): ... these.
3165 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3166 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3167 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3168 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3169 (struct sparc_gregmap, struct sparc_fpregmap)
3170 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3171 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3172 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3173 (sparc32_supply_regset, sparc32_collect_gregset)
3174 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3175 prototypes.
3176 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3177 (sparc64_linux_ptrace_gregmap): ... this.
3178 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3179 (_initialize_sparc64_linux_nat): Rename regmaps.
3180 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3181 (sparc64_linux_core_gregmap): ... this.
3182 (sparc64_linux_supply_core_gregset)
3183 (sparc64_linux_collect_core_gregset)
3184 (sparc64_linux_supply_core_fpregset)
3185 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3186 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3187 (sparc64_sol2_fpregset): Rename to...
3188 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3189 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3190 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3191 regmaps.
3192 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3193 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3194 (sparc64_bsd_fpregset): Rename to...
3195 (struct sparc_gregmap, sparc64_sol2_gregmap)
3196 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3197 (sparc64_bsd_fpregmap): ... these.
3198 (sparc64_supply_gregset, sparc64_collect_gregset)
3199 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3200 prototypes.
3201 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3202 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3203 (sparc64fbsd_gregmap): ... this.
3204 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3205 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3206 Rename regmaps.
3207 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3208 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3209 (sparc64nbsd_collect_fpregset): Likewise.
3210 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3211 (sparc64nbsd_gregmap): ... this.
3212 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3213 regmaps.
3214 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3215 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3216 (sparc64obsd_gregmap): ... this.
3217 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3218 regmaps.
3219 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3220 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3221 (sparc32nbsd_gregmap): ... this.
3222 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3223 regmaps.
3224
8fea3224
AA
32252014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3226
3227 * score-tdep.c (score7_linux_gregset): New static regset
3228 structure.
3229 (score7_linux_regset_from_core_section): Remove dynamic regset
3230 allocation.
3231 (score_gdbarch_init): Drop allocation of tdep structure.
3232 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3233
24534243
AA
32342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3235
3236 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3237 regset structures.
3238 (am33_regset_from_core_section): Remove dynamic regset
3239 allocations.
3240
b7195f27
AA
32412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3242
3243 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3244 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3245 structures.
3246 (mips_linux_regset_from_core_section): Remove dynamic regset
3247 allocations.
3248 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3249 'gregset64', 'fpregset', and 'fpregset64'.
3250 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3251 deleted tdep fields.
3252
ecc37a5a
AA
32532014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3254
3255 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3256 regset structures.
3257 (amd64_regset_from_core_section): Remove dynamic regset
3258 allocations.
3259 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3260 structure.
3261 (amd64obsd_regset_from_core_section): Remove dynamic regset
3262 allocation.
3263 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3264 Likewise.
3265 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3266 x86-common regset supply function.
3267 * i386-tdep.c (i386_collect_gregset): Make static.
3268 (i386_gregset): New global regset structure.
3269 (i386_fpregset, i386_xstateregset): New static regset structures.
3270 (i386_regset_from_core_section): Remove dynamic regset
3271 allocations.
3272 (i386_gdbarch_init): Remove initialization of tdep fields
3273 'gregset', 'fpregset', and 'xstateregset'.
3274 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3275 'fpregset', and 'xstateregset'.
3276 (i386_collect_gregset): Remove prototype.
3277 (i386_gregset): New declaration.
3278 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3279 structure.
3280 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3281 allocation.
3282
b7611c43
AA
32832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3284
3285 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3286 (arm_linux_vfpregset): New static regset structures.
3287 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3288 regset structures.
3289 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3290 and 'vfpregset' fields.
3291
a069a2bd
AA
32922014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3293
3294 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3295 (aarch64_linux_fpregset): New static regset structures.
3296 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3297 of regset structures.
3298 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3299 'fpregset' fields.
3300
09424cff
AA
33012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3302
3303 * regset.h (struct regset): Remove gdbarch field.
3304 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3305 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3306 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3307 Likewise.
3308 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3309 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3310 (ppc32_linux_vsxregset): Likewise.
3311 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3312 via the regcache instead of the regset.
3313 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3314 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3315 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3316 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3317 Likewise.
3318
3ca7dae4
AA
33192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3320
3321 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3322 Constify structures.
3323 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3324 (alphanbsd_aout_gregset): Likewise.
3325 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3326 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3327 Likewise.
3328 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3329 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3330 Likewise.
3331 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3332 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3333 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3334 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3335 * m88k-tdep.c (m88k_gregset): Likewise.
3336 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3337 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3338 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3339 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3340 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3341 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3342 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3343 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3344 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3345 Likewise.
3346 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3347 * sh-tdep.h (sh_corefile_gregset): Likewise.
3348 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3349 * vax-tdep.c (vax_gregset): Likewise.
3350
5876f503
JK
33512014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3352
3353 Fix TLS access for -static -pthread.
3354 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3355 (try_thread_db_load_1): Initialize it.
3356 (thread_db_get_thread_local_address): Call it if LM is zero.
3357 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3358 * target.h (struct target_ops) (to_get_thread_local_address): Add
3359 load_module_addr comment.
3360
0256a6ac
PA
33612014-05-21 Pedro Alves <palves@redhat.com>
3362
3363 * dcache.c (dcache_read_memory_partial): If reading the cache line
3364 fails, fallback to reading just the memory the caller wanted.
3365
227533ac
DE
33662014-05-20 Doug Evans <dje@google.com>
3367
3368 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3369 instead of get_current_arch.
3370
936d2992
PA
33712014-05-20 Pedro Alves <palves@redhat.com>
3372
3373 * NEWS: Mention that compare-sections now works with all targets.
3374
3375 * remote.c (PACKET_qCRC): New enum value.
3376 (remote_verify_memory): Don't send qCRC if the target has no
3377 execution. Use packet_support/packet_ok. If the target doesn't
3378 support the qCRC packet, fallback to a deep memory copy.
3379 (compare_sections_command): Say "target image" instead of "remote
3380 executable".
3381 (_initialize_remote): Add PACKET_qCRC to the list of config
3382 packets that have no associated command. Extend comment.
3383 * target.c (simple_verify_memory, default_verify_memory): New
3384 function.
3385 * target.h (struct target_ops) <to_verify_memory>: Default to
3386 default_verify_memory.
3387 (simple_verify_memory): New declaration.
3388 * target-delegates.c: Regenerate.
3389
e59fa00f
MM
33902014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3391
3392 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3393
f2205de0
HZ
33942014-05-20 Hui Zhu <hui@codesourcery.com>
3395 Yao Qi <yao@codesourcery.com>
3396
3397 PR backtrace/16558
3398 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3399 and change address of sp and pc.
3400
c4e54771
TT
34012014-05-19 Tom Tromey <tromey@redhat.com>
3402
3403 * gdbtypes.c (rank_function): Use XNEWVEC.
3404 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3405
73051182
DE
34062014-05-19 Doug Evans <dje@google.com>
3407
3408 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3409 build_type_unit_groups and moved closer to only caller. Remove
3410 arguments. All references updated. Remove outdated .gdb_index
3411 comment.
3412 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3413 build_type_psymtabs_1.
3414
8832e7e3
DE
34152014-05-19 Doug Evans <dje@google.com>
3416
3417 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3418 n_type_unit_groups, all_type_unit_groups. All uses removed.
3419 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3420 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3421 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3422 (add_type_unit_group_to_table): Delete.
3423
cd8ae15e
DE
34242014-05-19 Doug Evans <dje@google.com>
3425
3426 * eval.c (evaluate_subexp_standard): Add some comments.
3427
08f4850b
DE
34282014-05-17 Doug Evans <xdje42@gmail.com>
3429
3430 * progspace.c (remove_program_space): Delete, unused.
3431 * progspace.h (remove_program_space): Ditto.
3432
bed8455c
DE
34332014-05-17 Doug Evans <xdje42@gmail.com>
3434
3435 * inferior.c (prune_inferiors): Fix comment.
3436 (remove_inferior_command): Call prune_program_spaces.
3437
8d551b02
DE
34382014-05-16 Doug Evans <dje@google.com>
3439
3440 New command line option -D.
3441 * NEWS: Mention it.
3442 * main.c (set_gdb_data_directory): New function.
3443 (captured_main): Recognize -D. Flag error for --data-directory "".
3444 Call set_gdb_data_directory.
3445 (print_gdb_help): Print --data-directory, -D.
3446 * main.h (set_gdb_data_directory): Declare.
3447 * top.c (staged_gdb_datadir): New static global.
3448 (set_gdb_datadir): Call set_gdb_data_directory
3449 (show_gdb_datadir): New function.
3450 (init_main): Update init of data-directory parameter.
3451
18848e28
GF
34522014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3453
3454 Import the "dirfd" gnulib module.
3455 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3456 * gnulib/aclocal.m4: Update.
3457 * gnulib/config.in: Update.
3458 * gnulib/configure: Update.
3459 * gnulib/import/Makefile.am: Update.
3460 * gnulib/import/Makefile.in: Update.
3461 * gnulib/import/dirfd.c: New.
3462 * gnulib/import/m4/dirfd.m4: New.
3463 * gnulib/import/m4/gnulib-cache.m4: Update.
3464 * gnulib/import/m4/gnulib-comp.m4: Update.
3465
95c64f92
YQ
34662014-05-16 Pierre Muller <muller@sourceware.org>
3467 Yao Qi <yao@codesourcery.com>
3468
3469 * valprint.c (print_wchar): Move the code on checking whether
3470 W is a printable wide char to the default branch of switch
3471 statement below. Call wchar_printable instead of gdb_iswprint.
3472
cac395ea
TM
34732014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3474
19679eca 3475 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
3476 ldr.w and ldrd instructions.
3477
83655187
DE
34782014-05-15 Doug Evans <dje@google.com>
3479
3480 * dwarf2read.c (read_structure_type): Delete outdated comments.
3481
dd756689
TT
34822014-05-14 Tom Tromey <tromey@redhat.com>
3483
3484 * macrocmd.c (print_macro_definition): Reindent.
3485
75ddda77
DE
34862014-05-13 Doug Evans <xdje42@gmail.com>
3487
3488 * python/py-cmd.c (cmdpy_completer): Add comment.
3489 (completers): Make const.
3490
b0f16a3e
SM
34912014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3492
3493 * infrun.c (resume): Remove should_resume (unused). Move up
3494 declaration of resume_ptid.
3495
033c3379
TT
34962014-05-13 Tom Tromey <tromey@redhat.com>
3497
3498 * language.h (unop_type_check): Remove.
3499 (binop_type_check): Don't declare.
3500
9b44a3a5
AA
35012014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3502
3503 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3504 call to regcache_raw_collect.
3505
303a33fa
SM
35062014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3507
3508 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3509 mi_console->quote as the quoting character.
3510
196100a0
SM
35112014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3512
3513 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3514
f989a1c8
TT
35152014-04-29 Tom Tromey <tromey@redhat.com>
3516
3517 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3518 "show debug varobj".
3519
9404b58f
KM
35202014-05-07 Kyle McMartin <kyle@redhat.com>
3521
3522 Pushed by Joel Brobecker <brobecker@adacore.com>.
3523 * aarch64-tdep.c (aarch64_software_single_step): New function.
3524 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3525 with aarch64_software_single_step.
3526
5e49ba57
JB
35272014-05-05 Joel Brobecker <brobecker@adacore.com>
3528
3529 GDB 7.7.1 released.
3530
c888a17d
KS
35312014-05-05 Keith Seitz <keiths@redhat.com>
3532
3533 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3534 variable or history value is successfully parsed.
3535
290a839c
YQ
35362014-05-05 Yao Qi <yao@codesourcery.com>
3537 Pedro Alves <palves@redhat.com>
3538
3539 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3540 address of blocks that intersects the requested range. Trim
3541 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3542 sections.
3543 * ctf.c (ctf_xfer_partial): Likewise.
3544
91256dc2
YQ
35452014-05-05 Yao Qi <yao@codesourcery.com>
3546
3547 * printcmd.c (display_command): Remove the check to
3548 target_has_execution.
3549
07284463
MK
35502014-05-03 Mark Kettenis <kettenis@gnu.org>
3551
3552 * ppcobsd-nat.c: Include "obsd-nat.h".
3553 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3554 add_target.
3555 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3556
30a1e6cc
SDJ
35572014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3558
3559 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3560 and 16-bit signed and unsigned arguments. Update comment.
3561 (stap_parse_probe_arguments): Extend code to handle such
3562 arguments. Use warning instead of complaint to notify about
3563 unrecognized bitness.
3564
f33da99a
SDJ
35652014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3566
3567 PR breakpoints/16889
3568 * stap-probe.c (stap_parse_probe_arguments): Simplify
3569 check for non-prefixed probes (i.e., probes whose
3570 arguments do not start with "N@"). Always set the
3571 argument type to a sane value.
3572
95cf3b38
DT
35732014-05-01 David Taylor <dtaylor@emc.com>
3574
3575 * remote.c (compare_sections_command): Add -r option to compare
3576 all loadable read-only sections.
3577
1cfdf534
SC
35782014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3579
3580 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3581 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3582 Update all callers.
3583 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3584 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3585 Remove unused CORE_ADDR argument. Update all callers.
3586
ca4f7f8b
PA
35872014-04-29 Pedro Alves <palves@redhat.com>
3588
3589 * remote.c (struct packet_config) <detect>: Extend comment.
3590 (add_packet_config_cmd): Don't set the config's detect or support
3591 fields here.
3592 (init_all_packet_configs): Also initialize the config's 'detect'
3593 field.
3594 (reset_all_packet_configs_support): New function.
3595 (remote_open_1): Call reset_all_packet_configs_support instead of
3596 init_all_packet_configs.
3597 (_initialize_remote): Initialize all packet configs. Assert that
3598 all packets have an associated command, except a few known
3599 outliers.
3600
11c1ba78
JB
36012014-04-28 Joel Brobecker <brobecker@adacore.com>
3602
3603 * dwarf2read.c (read_subrange_type): Handle dynamic
3604 DW_AT_lower_bound attributes.
3605
8739bc53
JB
36062014-04-28 Joel Brobecker <brobecker@adacore.com>
3607
3608 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3609 dynamic bounds before computing its upper bound.
3610 (ada_discrete_type_low_bound): Same as above with the lower bound.
3611
6f8a3220
JB
36122014-04-28 Joel Brobecker <brobecker@adacore.com>
3613
3614 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3615 range types. Adjust the array handling implementation to
3616 take advantage of this change.
3617 (resolve_dynamic_range): New function, mostly extracted from
3618 resolve_dynamic_bounds.
3619 (resolve_dynamic_array): New function, mostly extracted from
3620 resolve_dynamic_bounds.
3621 (resolve_dynamic_bounds): Delete.
3622 (resolve_dynamic_type): Reimplement. Add handling of
3623 TYPE_CODE_RANGE types.
3624
4d072ce4
JB
36252014-04-28 Joel Brobecker <brobecker@adacore.com>
3626
3627 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3628 handling of parallel ___XA types.
3629
52865325
JB
36302014-04-28 Joel Brobecker <brobecker@adacore.com>
3631
3632 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3633 unnecessary second call to static_unwrap_type.
3634
433e77fa
HZ
36352014-04-27 Hui Zhu <hui@codesourcery.com>
3636
3637 * stack.c (print_frame_info): Call do_gdb_disassembly with
3638 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3639
b51a69ee
DE
36402014-04-26 Doug Evans <xdje42@gmail.com>
3641
3642 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3643
7ae1a6a6
PA
36442014-04-25 Pedro Alves <palves@redhat.com>
3645
3646 PR server/16255
3647 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3648 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3649 and newline from built string.
3650 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3651 (linux_ptrace_attach_fail_reason): ... this.
3652 * linux-nat.c (linux_nat_attach): Adjust to use
3653 linux_ptrace_attach_fail_reason.
3654
4082afcc
PA
36552014-04-25 Pedro Alves <palves@redhat.com>
3656
3657 * remote.c (struct remote_state): Remove multi_process_aware,
3658 non_stop_aware, cond_tracepoints, cond_breakpoints,
3659 breakpoint_commands, fast_tracepoints, static_tracepoints,
3660 install_in_trace, disconnected_tracing,
3661 enable_disable_tracepoints, string_tracing, and
3662 augmented_libraries_svr4_read fields.
3663 (remote_multi_process_p): Move further below in the file.
3664 (struct packet_config): Add comments.
3665 (update_packet_config): Delete function.
3666 (show_packet_config_cmd): Use packet_config_support.
3667 (add_packet_config_cmd): Use NULL as set callback.
3668 (packet_ok): "set remote foo-packet"-style commands no longer
3669 change config->supported -- adjust.
3670 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3671 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3672 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3673 (PACKET_QNonStop, PACKET_multiprocess_feature)
3674 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3675 (PACKET_DisconnectedTracing_feature)
3676 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3677 (set_remote_protocol_packet_cmd): Delete function.
3678 (packet_config_support, packet_support): New functions.
3679 (set_remote_protocol_Z_packet_cmd): Don't call
3680 update_packet_config.
3681 (remote_query_attached, remote_pass_signals)
3682 (remote_program_signals, remote_threads_info)
3683 (remote_threads_extra_info, remote_start_remote): Use
3684 packet_support.
3685 (remote_start_remote): Use packet_config_support and
3686 packet_support.
3687 (init_all_packet_configs): Set all packets to unknown support,
3688 instead of calling update_packet_config.
3689 (remote_check_symbols): Use packet_support.
3690 (remote_supported_packet): Unconditionally set the packet config's
3691 support status.
3692 (remote_multi_process_feature, remote_non_stop_feature)
3693 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3694 (remote_breakpoint_commands_feature)
3695 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3696 (remote_install_in_trace_feature)
3697 (remote_disconnected_tracing_feature)
3698 (remote_enable_disable_tracepoint_feature)
3699 (remote_string_tracing_feature)
3700 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3701 (remote_protocol_features): Adjust to use remote_supported_packet
3702 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3703 "ConditionalTracepoints", "ConditionalBreakpoints",
3704 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3705 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3706 "EnableDisableTracepoints", and "tracenz".
3707 (remote_query_supported): Use packet_support.
3708 (remote_open_1): Adjust.
3709 (extended_remote_attach_1): Use packet_support. Switch on the
3710 result of packet_ok instead of checking whether the packet ended
3711 up disabled.
3712 (remote_vcont_resume): Use packet_support.
3713 (remote_resume, remote_stop_ns, fetch_register_using_p)
3714 (remote_prepare_to_store, store_register_using_P)
3715 (check_binary_download, remote_write_bytes): Use packet_support.
3716 (remote_vkill): Use packet_support. Switch on the result of
3717 packet_ok instead of checking whether the packet ended up
3718 disabled.
3719 (extended_remote_supports_disable_randomization): Use
3720 packet_support.
3721 (extended_remote_run): Switch on the result of packet_ok instead
3722 of checking whether the packet ended up disabled.
3723 (remote_insert_breakpoint, remote_remove_breakpoint)
3724 (remote_insert_watchpoint, remote_remove_watchpoint)
3725 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3726 packet_support.
3727 (remote_search_memory): Use packet_config_support.
3728 (remote_get_thread_local_address, remote_get_tib_address)
3729 (remote_hostio_send_command, remote_can_execute_reverse): Use
3730 packet_support.
3731 (remote_supports_cond_tracepoints)
3732 (remote_supports_cond_breakpoints)
3733 (remote_supports_fast_tracepoints)
3734 (remote_supports_static_tracepoints)
3735 (remote_supports_install_in_trace)
3736 (remote_supports_enable_disable_tracepoint)
3737 (remote_supports_string_tracing)
3738 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3739 the packet config says the feature is enabled or disabled.
3740 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3741 (remote_get_trace_status): Use packet_support.
3742 (remote_set_disconnected_tracing): Adjust to check whether the
3743 feature is enabled with packet_support.
3744 (remote_set_trace_buffer_size, remote_use_agent)
3745 (remote_can_use_agent, remote_supports_btrace): Use
3746 packet_support.
3747 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3748 Use packet_config_support.
3749 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3750 the packet config says the feature is enabled or disabled.
3751 (set_range_stepping): Use packet_support.
3752
bdb52a22
TT
37532014-04-25 Tom Tromey <tromey@redhat.com>
3754
3755 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3756 argument.
3757
e9475ead
SA
37582014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3759
3760 * NEWS: Mention support for C99 variable length arrays.
3761
82eacd52
JB
37622014-04-24 Joel Brobecker <brobecker@adacore.com>
3763
3764 * ada-lang.c (standard_exc): Expand introductory comment.
3765
01f9f808
MS
37662014-04-24 Michael Sturm <michael.sturm@mintel.com>
3767 Walfred Tedeschi <walfred.tedeschi@intel.com>
3768
3769 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3770 AVX512 registers.
3771 (amd64_linux_read_description): Add code to handle AVX512 xstate
3772 mask and return respective tdesc.
3773 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3774 and features/i386/x32-avx512-linux.c.
3775 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3776 (amd64_linux_core_read_description): Add code to handle AVX512
3777 xstate mask and return respective tdesc.
3778 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3779 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3780 calculation.
3781 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3782 (tdesc_amd64_avx512_linux): New prototype.
3783 (tdesc_x32_avx512_linux): Likewise.
3784 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3785 features/i386/x32-avx512.c.
3786 (amd64_ymm_avx512_names): New register names for pseudo
3787 registers YMM16-31.
3788 (amd64_ymmh_avx512_names): New register names for raw registers
3789 YMMH16-31.
3790 (amd64_k_names): New register names for K registers.
3791 (amd64_zmmh_names): New register names for ZMM raw registers.
3792 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3793 (amd64_xmm_avx512_names): New register names for XMM16-31
3794 registers.
3795 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3796 registers.
3797 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3798 if feature is present.
3799 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3800 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3801 (AMD64_NUM_REGS): Adjust to new number of registers.
3802 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3803 registers supplied via XSTATE by AVX512 registers.
3804 (i386_linux_read_description): Add case for AVX512.
3805 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3806 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3807 (i386_linux_core_read_description): Add case for AVX512.
3808 (i386_linux_init_abi): Install supported register note section
3809 for AVX512.
3810 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3811 AVX512.
3812 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3813 registers to be number of zmm7h + 1.
3814 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3815 * i386-tdep.c: Include features/i386/i386-avx512.c.
3816 (i386_zmm_names): Add ZMM pseudo register names array.
3817 (i386_zmmh_names): Add ZMM raw register names array.
3818 (i386_k_names): Add K raw register names array.
3819 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3820 registers. AVX512 has 16 more ZMM registers than there are YMM
3821 registers.
3822 (i386_zmmh_regnum_p): Add function to look up register number of
3823 ZMM raw registers.
3824 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3825 (i386_k_regnum_p): Likewise for K raw registers.
3826 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3827 registers added by AVX512.
3828 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3829 registers added by AVX512.
3830 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3831 added by AVX512.
3832 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3833 (i386_pseudo_register_name): Add ZMM pseudo registers.
3834 (i386_zmm_type): Construct and return vector registers type for ZMM
3835 registers.
3836 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3837 ZMM0-31 pseudo registers and K registers.
3838 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3839 and YMM16-31 registers from register cache.
3840 (i386_pseudo_register_write): Add code to write K, ZMM and
3841 YMM16-31 registers.
3842 (i386_register_reggroup_p): Add code to include/exclude AVX512
3843 registers in/from respective register groups.
3844 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3845 registers if feature is present in xcr0.
3846 (i386_gdbarch_init): Add code to initialize AVX512 feature
3847 variables in tdep structure, wire in pseudo registers and call
3848 initialize_tdesc_i386_avx512.
3849 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3850 variables.
3851 (i386_regnum): Add AVX512 registers.
3852 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3853 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3854 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3855 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3856 512 bits wide.
3857 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3858 (i386_ymm_avx512_regnum_p): Likewise.
3859 (i386_k_regnum_p): Likewise.
3860 (i386_zmm_regnum_p): Likewise.
3861 (i386_zmmh_regnum_p): Likewise.
3862 * i387-tdep.c : Update year in copyright notice.
3863 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3864 XSAVE buffer.
3865 (XSAVE_YMM_AVX512_ADDR): New macro.
3866 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3867 XSAVE buffer.
3868 (XSAVE_XMM_AVX512_ADDR): New macro.
3869 (xsave_avx512_k_offset): New table for K register offsets in
3870 XSAVE buffer.
3871 (XSAVE_AVX512_K_ADDR): New macro.
3872 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3873 in XSAVE buffer.
3874 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3875 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3876 buffer.
3877 (i387_collect_xsave): Add code to collect AVX512 registers from
3878 XSAVE buffer.
3879 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3880 of XMM16-31 registers.
3881 (I387_NUM_K_REGS): New define for number of K registers.
3882 (I387_K0_REGNUM): New define for K0 register number.
3883 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3884 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3885 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3886 registers.
3887 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3888 (I387_XMM16_REGNUM): New define for XMM16 register number.
3889 (I387_YMM0_REGNUM): New define for YMM0 register number.
3890 (I387_KEND_REGNUM): New define for last K register number.
3891 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3892 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3893 number.
3894 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3895 number.
3896 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3897 size.
3898 * features/Makefile: Add AVX512 related files.
3899 * features/i386/32bit-avx512.xml: New file.
3900 * features/i386/64bit-avx512.xml: Likewise.
3901 * features/i386/amd64-avx512-linux.c: Likewise.
3902 * features/i386/amd64-avx512-linux.xml: Likewise.
3903 * features/i386/amd64-avx512.c: Likewise.
3904 * features/i386/amd64-avx512.xml: Likewise.
3905 * features/i386/i386-avx512-linux.c: Likewise.
3906 * features/i386/i386-avx512-linux.xml: Likewise.
3907 * features/i386/i386-avx512.c: Likewise.
3908 * features/i386/i386-avx512.xml: Likewise.
3909 * features/i386/x32-avx512-linux.c: Likewise.
3910 * features/i386/x32-avx512-linux.xml: Likewise.
3911 * features/i386/x32-avx512.c: Likewise.
3912 * features/i386/x32-avx512.xml: Likewise.
3913 * regformats/i386/amd64-avx512-linux.dat: New file.
3914 * regformats/i386/amd64-avx512.dat: Likewise.
3915 * regformats/i386/i386-avx512-linux.dat: Likewise.
3916 * regformats/i386/i386-avx512.dat: Likewise.
3917 * regformats/i386/x32-avx512-linux.dat: Likewise.
3918 * regformats/i386/x32-avx512.dat: Likewise.
3919 * NEWS: Add note about new support for AVX512.
3920
3921
08351840
PA
39222014-04-23 Pedro Alves <palves@redhat.com>
3923
3924 * breakpoint.c (insert_bp_location): Tolerate errors if the
3925 breakpoint is set in a user-loaded objfile.
3926 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3927 location is marked shlib_disabled. If the breakpoint is set in a
3928 user-loaded objfile is a GDB-side memory breakpoint, validate it
3929 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3930 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3931 flag.
3932 * mem-break.c (memory_validate_breakpoint): New function.
3933 * objfiles.c (userloaded_objfile_contains_address_p): New
3934 function.
3935 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3936 * target.h (memory_validate_breakpoint): New declaration.
3937
076855f9
PA
39382014-04-23 Pedro Alves <palves@redhat.com>
3939
3940 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3941 the breakpoint is set in a shared library, only suppress
3942 errors for software breakpoints, not hardware breakpoints.
3943
483805cf
PA
39442014-04-22 Pedro Alves <palves@redhat.com>
3945
3946 * infrun.c (schedlock_applies): New function, factored out from
3947 find_thread_needs_step_over.
3948 (find_thread_needs_step_over): Use it.
3949 (switch_back_to_stepped_thread): Always clear trap_expected if the
3950 step over is finished. Return early if scheduler locking applies.
3951 Look for the stepping thread and a potential step-over thread with
3952 a single loop.
3953 (currently_stepping_or_nexting_callback): Delete.
3954
a75fef0e
NC
39552014-04-22 Nick Clifton <nickc@redhat.com>
3956
3957 * NEWS: Mention that ARM sim now supports tracing.
3958
48b6e87e
YQ
39592014-04-22 Yao Qi <yao@codesourcery.com>
3960
3961 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3962 to ...
3963 * tracefile.c (tracefile_fetch_registers): ... it. New
3964 function.
3965 * tracefile.h (tracefile_fetch_registers): Declare.
3966 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3967 tracefile_fetch_registers.
3968
17617f2d
EZ
39692014-04-19 Eli Zaretskii <eliz@gnu.org>
3970
3971 PR gdb/14018
3972 * windows-nat.c (thread_rec): Don't display a warning when
3973 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3974 fails for any reason, set th->suspended to -1, so that we don't
3975 try to resume such a thread. Also, don't return NULL in these
3976 cases, to avoid completely ruin the session due to "PC register is
3977 not available" error.
3978 (do_windows_fetch_inferior_registers): Check errors in
3979 GetThreadContext call.
3980 (windows_continue): Accept an additional argument KILLED; if not
3981 zero, ignore errors in the SetThreadContext call, since the
3982 inferior was killed and is shutting down.
3983 (windows_resume, get_windows_debug_event)
3984 (windows_create_inferior, windows_mourn_inferior)
3985 (windows_kill_inferior): All callers of windows_continue changed
3986 to adjust to its new calling sequence.
3987
5723a6fd
YQ
39882014-04-19 Yao Qi <yao@codesourcery.com>
3989
3990 * ctf.c (ctf_open): Call post_create_inferior.
3991
614d5099
YQ
39922014-04-19 Yao Qi <yao@codesourcery.com>
3993
3994 * ctf.c (handle_id): New static variable.
3995 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3996 value. Get the declaration of event "register" and get length
3997 of field "contents".
3998
dac3e710
YQ
39992014-04-19 Yao Qi <yao@codesourcery.com>
4000
4001 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
4002
2bca57ba
SC
40032014-04-18 Siva Chandra Reddy <sivachandra@google.com>
4004
4005 * valops.c (oload_method_static): Remove unnecessary argument
4006 METHOD. Update all callers.
4007
51d48146
PA
40082014-04-18 Pedro alves <palves@redhat.com>
4009 Tom Tromey <tromey@redhat.com>
4010
4011 PR backtrace/15558
4012 * frame.c (get_prev_frame_1): Rename to ...
4013 (get_prev_frame_always): ... this, and make extern. Adjust.
4014 (skip_artificial_frames): Use get_prev_frame_always.
4015 (frame_unwind_caller_id, frame_pop, get_prev_frame)
4016 (get_frame_unwind_stop_reason): Adjust to rename.
4017 * frame.h (get_prev_frame_always): Declare.
4018 * inline-frame.c: Include frame.h.
4019 (inline_frame_this_id): Use get_prev_frame_always.
4020
1bdad2e0
TG
40212014-04-18 Tristan Gingold <gingold@adacore.com>
4022
4023 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
4024 code by using bfd_mach_o_get_base_address.
4025
7ce16bd4
UW
40262014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4027
4028 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
4029 (spu_ax_pseudo_register_collect): New function.
4030 (spu_ax_pseudo_register_push_stack): Likewise.
4031 (spu_dwarf_reg_to_regnum): Likewise.
4032 (spu_gdbarch_init): Install them. Append DWARF unwinders.
4033
2ed3c037
UW
40342014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
4035
4036 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
4037 Replace FRAME argument with FRAME_ID.
4038 * gdbarch.c, gdbarch.h: Regenerate.
4039 * findvar.c (default_value_from_register): Add GDBARCH argument;
4040 replace FRAME by FRAME_ID. No longer call get_frame_id.
4041 (value_from_register): Update call to gdbarch_value_from_register.
4042 * value.h (default_value_from_register): Update prototype.
4043 * s390-linux-tdep.c (s390_value_from_register): Update interface
4044 and call to default_value_from_register.
4045 * spu-tdep.c (spu_value_from_register): Likewise.
4046
4047 * findvar.c (address_from_register): Remove TYPE argument.
4048 Do not call value_from_register; use gdbarch_value_from_register
4049 with null_frame_id instead.
4050 * value.h (address_from_register): Update prototype.
4051 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
4052 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
4053 address_from_register interface change.
4054
71e50e83
YQ
40552014-04-17 Yao Qi <yao@codesourcery.com>
4056
4057 * gdbtypes.h: Update comments to link to types and macros'
4058 definitions.
4059
7a23c549
SC
40602014-04-16 Siva Chandra Reddy <sivachandra@google.com>
4061
4062 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
4063
22869d73
KS
40642014-04-16 Keith Seitz <keiths@redhat.com>
4065
4066 PR gdb/15827
4067 * dwarf2read.c (skip_one_die): Check that all relative-offset
4068 sibling DIEs fall within range of the current reader's buffer.
4069 (read_partial_die): Likewise.
4070
c4f87ca6
KS
40712014-04-16 Keith Seitz <keiths@redhat.com>
4072
4073 PR c++/16597
4074 * cp-namespace.c (lookup_symbol_file): If the type name of
4075 `this' is NULL, return immediately.
4076
b50c8614
KS
40772014-04-14 Keith Seitz <keiths@redhat.com>
4078
4079 PR c++/16253
4080 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4081 from symbol_matches_domain in symtab.c. All local callers
4082 of symbol_matches_domain updated.
4083 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4084 search STRUCT_DOMAIN.
4085 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4086 independently. standard_lookup will do that automatically.
4087 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4088 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4089 (cp_lookup_symbol_in_namespace): Likewise.
4090 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4091 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4092 may return a STRUCT_DOMAIN match.
4093 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4094 * cp-support.c: Include language.h.
4095 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4096 VAR_DOMAIN.
4097 * psymtab.c (match_partial_symbol): Compare the requested
4098 domain with the symbol's domain directly.
4099 (lookup_partial_symbol): Likewise.
4100 * symtab.c (lookup_symbol_in_language): Explain when/why
4101 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4102 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4103 appropriate languages.
4104 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4105 and moved to ada-lang.c
4106 (lookup_block_symbol): Explain that this function only returns
4107 symbol matching the requested DOMAIN.
4108 Compare the requested domain with the symbol's domain directly.
4109 (iterate_over_symbols): Compare the requested domain with the
4110 symbol's domain directly.
4111 * symtab.h (symbol_matches_domain): Remove.
4112
3d567982
TT
41132014-04-14 Tom Tromey <tromey@redhat.com>
4114
4115 PR c++/15246:
4116 * c-exp.y (type_aggregate_p): New function.
4117 (qualified_name, classify_inner_name): Use it.
4118 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4119 and TYPE_TARGET_TYPE of an enum type.
4120 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4121 an enum type.
4122 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4123 handle TYPE_DECLARED_CLASS.
4124 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4125 types.
4126 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4127 * valops.c (enum_constant_from_type): New function.
4128 (value_aggregate_elt): Use it.
4129 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4130 TYPE_CODE_ENUM.
4131
c848d642
TT
41322014-04-14 Tom Tromey <tromey@redhat.com>
4133
4134 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4135 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4136 const.
4137 * value.h (value_aggregate_elt): Update.
4138
0626fc76
TT
41392014-04-14 Tom Tromey <tromey@redhat.com>
4140
4141 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4142
5ecaaa66
SA
41432014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4144
4145 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4146 (evaluate_subexp_standard): Pass noside argument.
4147 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4148 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4149 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4150 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4151 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4152
1612e0c0
SA
41532014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4154
4155 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4156 points to a constant blob.
4157
c451ebe5
SA
41582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4159
4160 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4161 property and store it as the high bound and flag the range accordingly.
4162 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4163 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4164 * gdbtypes.h (enum range_flags): New enum.
4165 (struct range_bounds): Add flags member.
4166
1d42e4c4
SA
41672014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4168
4169 * c-typeprint.c (c_type_print_varspec_suffix): Added
4170 check for not yet resolved high bound. If unresolved, print
4171 "variable length" string to the console instead of random
4172 length.
4173
9f1f738a
SA
41742014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4175
4176 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4177 value.
4178 (ada_template_to_fixed_record_type_1): Likewise.
4179 (ada_to_fixed_type_1): Likewise.
4180 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4181 (cp_print_value): Likewise.
4182 * d-valprint.c (dynamic_array_type): Likewise.
4183 * findvar.c (address_of_variable): Likewise.
4184 * jv-valprint.c (java_value_print): Likewise.
4185 * valops.c (value_ind): Likewise.
4186 * value.c (coerce_ref): Likewise.
4187
3c8452d4
SA
41882014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4189
4190 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4191 value and retrieve the dynamic type size.
4192
4ad88275
SA
41932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4194
4195 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4196 passed to sizeof is dynamic evaluate the argument to compute the length.
4197
80180f79
SA
41982014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4199 Joel Brobecker <brobecker@adacore.com>
4200
4201 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4202 (dwarf2_evaluate_property): New function.
4203 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4204 * dwarf2read.c (attr_to_dynamic_prop): New function.
4205 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4206 attribute.
4207 * gdbtypes.c: Include dwarf2loc.h.
4208 (is_dynamic_type): New function.
4209 (resolve_dynamic_type): New function.
4210 (resolve_dynamic_bounds): New function.
4211 (get_type_length): New function.
4212 (check_typedef): Use get_type_length to compute type length.
4213 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4214 (TYPE_LOW_BOUND_KIND): New macro.
4215 (is_dynamic_type): New function prototype.
4216 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4217 to resolve dynamic properties of the type. Update comment.
4218 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4219
a1556843
RH
42202014-04-14 Richard Henderson <rth@redhat.com>
4221
4222 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4223
0be03e84
DE
42242014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4225 Doug Evans <xdje42@gmail.com>
4226
4227 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4228 dereference TYPE_CODE_REF values.
4229
6b662e19
JB
42302014-04-11 Joel Brobecker <brobecker@adacore.com>
4231
4232 Revert the following changes due to regressions:
4233
4234 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4235 (dwarf2_evaluate_property): New function.
4236 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4237 * dwarf2read.c (attr_to_dynamic_prop): New function.
4238 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4239 attribute.
4240 * gdbtypes.c: Include dwarf2loc.h.
4241 (is_dynamic_type): New function.
4242 (resolve_dynamic_type): New function.
4243 (resolve_dynamic_bounds): New function.
4244 (get_type_length): New function.
4245 (check_typedef): Use get_type_length to compute type length.
4246 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4247 (TYPE_LOW_BOUND_KIND): New macro.
4248 (is_dynamic_type): New function prototype.
4249 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4250 to resolve dynamic properties of the type. Update comment.
4251 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4252
4253 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4254 passed to sizeof is dynamic evaluate the argument to compute the length.
4255
4256 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4257 value and retrieve the dynamic type size.
4258
4259 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4260 (ada_template_to_fixed_record_type_1): Likewise.
4261 (ada_to_fixed_type_1): Likewise.
4262 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4263 (cp_print_value): Likewise.
4264 * d-valprint.c (dynamic_array_type): Likewise.
4265 * eval.c (evaluate_subexp_with_coercion): Likewise.
4266 * findvar.c (address_of_variable): Likewise.
4267 * jv-valprint.c (java_value_print): Likewise.
4268 * valops.c (value_ind): Likewise.
4269 * value.c (coerce_ref): Likewise.
4270
4271 * c-typeprint.c (c_type_print_varspec_suffix): Added
4272 check for not yet resolved high bound. If unresolved, print
4273 "variable length" string to the console instead of random
4274 length.
4275
4276 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4277 property and store it as the high bound and flag the range accordingly.
4278 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4279 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4280 * gdbtypes.h (enum range_flags): New enum.
4281 (struct range_bounds): Add flags member.
4282
4283 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4284 points to a constant blob.
4285
4286 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4287 (evaluate_subexp_standard): Pass noside argument.
4288 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4289 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4290 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4291 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4292 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4293
245a5f0b
KS
42942014-04-11 Keith Seitz <keiths@redhat.com>
4295
4296 PR c++/16675
4297 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4298 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4299 reference types.
4300
3bce8237
SA
43012014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4302
4303 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4304 (evaluate_subexp_standard): Pass noside argument.
4305 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4306 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4307 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4308 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4309 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4310
92b09522
SA
43112014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4312
4313 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4314 points to a constant blob.
4315
e1969afb
SA
43162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4317
4318 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4319 property and store it as the high bound and flag the range accordingly.
4320 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4321 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4322 * gdbtypes.h (enum range_flags): New enum.
4323 (struct range_bounds): Add flags member.
4324
b86138fb
SA
43252014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4326
4327 * c-typeprint.c (c_type_print_varspec_suffix): Added
4328 check for not yet resolved high bound. If unresolved, print
4329 "variable length" string to the console instead of random
4330 length.
4331
bcd629a4
SA
43322014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4333
4334 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4335 (ada_template_to_fixed_record_type_1): Likewise.
4336 (ada_to_fixed_type_1): Likewise.
4337 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4338 (cp_print_value): Likewise.
4339 * d-valprint.c (dynamic_array_type): Likewise.
4340 * eval.c (evaluate_subexp_with_coercion): Likewise.
4341 * findvar.c (address_of_variable): Likewise.
4342 * jv-valprint.c (java_value_print): Likewise.
4343 * valops.c (value_ind): Likewise.
4344 * value.c (coerce_ref): Likewise.
4345
04b19544
SA
43462014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4347
4348 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4349 value and retrieve the dynamic type size.
4350
26cb189f
SA
43512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4352
4353 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4354 passed to sizeof is dynamic evaluate the argument to compute the length.
4355
37c1ab67
SA
43562014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4357
4358 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4359 (dwarf2_evaluate_property): New function.
4360 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4361 * dwarf2read.c (attr_to_dynamic_prop): New function.
4362 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4363 attribute.
4364 * gdbtypes.c: Include dwarf2loc.h.
4365 (is_dynamic_type): New function.
4366 (resolve_dynamic_type): New function.
4367 (resolve_dynamic_bounds): New function.
4368 (get_type_length): New function.
4369 (check_typedef): Use get_type_length to compute type length.
4370 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4371 (TYPE_LOW_BOUND_KIND): New macro.
4372 (is_dynamic_type): New function prototype.
4373 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4374 to resolve dynamic properties of the type. Update comment.
4375 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4376
729efb13
SA
43772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4378
4379 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4380 declaring high/low bounds and change uses accordingly. Call
4381 create_range_type instead of create_static_range_type.
4382 * gdbtypes.c (create_range_type): New function.
4383 (create_range_type): Convert bounds into struct bound_prop and pass
4384 them to create_range_type.
4385 * gdbtypes.h (struct bound_prop): New struct.
4386 (create_range_type): New function prototype.
4387 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4388 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4389 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4390 part of the bound.
4391 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4392
0c9c3474
SA
43932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4394
4395 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4396 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4397 * ada-lang.c: All uses of create_range_type updated.
4398 * coffread.c: All uses of create_range_type updated.
4399 * dwarf2read.c: All uses of create_range_type updated.
4400 * f-exp.y: All uses of create_range_type updated.
4401 * m2-valprint.c: All uses of create_range_type updated.
4402 * mdebugread.c: All uses of create_range_type updated.
4403 * stabsread.c: All uses of create_range_type updated.
4404 * valops.c: All uses of create_range_type updated.
4405 * valprint.c: All uses of create_range_type updated.
4406
9d497a19
PA
44072014-04-10 Pedro Alves <palves@redhat.com>
4408
4409 * breakpoint.c (single_step_breakpoints)
4410 (single_step_gdbarch): Move up in the file.
4411 (one_breakpoint_xfer_memory): New function, factored out from ...
4412 (breakpoint_xfer_memory): ... here. Also process single-step
4413 breakpoints.
4414
15a9128a
TG
44152014-04-09 Tristan Gingold <gingold@adacore.com>
4416
4417 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4418 comments.
4419 (darwin_decode_exception_message): Free port only after use.
4420
9c97a070
PL
44212014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4422
4423 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4424 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4425 when setting the size of call_length.
4426
7af389b8
SC
44272014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4428
4429 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4430 dereference TYPE_CODE_REF values.
4431
86ad98c3
JB
44322014-04-07 Joel Brobecker <brobecker@adacore.com>
4433
4434 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4435 end of warning message.
4436
b0aeadb3
DE
44372014-04-03 Doug Evans <dje@google.com>
4438
4439 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4440 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4441
5979d6b6
AM
44422014-04-02 Alan Modra <amodra@gmail.com>
4443
4444 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4445 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4446 (struct symbol_file_add_from_memory_args): Add size field.
4447 (find_vdso_size): New function.
4448 (add_vsyscall_page): Attempt to find vdso size.
4449
0d60c288
DE
44502014-04-01 Doug Evans <dje@google.com>
4451
4452 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4453
a41f2563
TG
44542014-04-01 Tristan Gingold <gingold@adacore.com>
4455
4456 * darwin-nat.c (darwin_encode_reply): Add prototype.
4457 (darwin_decode_exception_message): Reply to unknown inferiors.
4458 (darwin_decode_message): Handle message by id. Ignore message
4459 to unknown inferior.
4460 (darwin_wait): Discard unknown messages, add debug trace.
4461
11a865c8
DE
44622014-03-31 Doug Evans <dje@google.com>
4463
4464 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4465 comp_dir_string.
4466
770e7fc7
DE
44672014-03-31 Doug Evans <dje@google.com>
4468
4469 New option "set print symbol-loading".
4470 * NEWS: Mention it.
4471 * solib.c (solib_read_symbols): Only print symbol loading messages
4472 if requested.
4473 (solib_add): If symbol loading is in "brief" mode, notify user
4474 symbols are being loaded.
4475 (reload_shared_libraries_1): Ditto.
4476 * symfile.c (print_symbol_loading_off): New static global.
4477 (print_symbol_loading_brief): New static global.
4478 (print_symbol_loading_full): New static global.
4479 (print_symbol_loading_enums): New static global.
4480 (print_symbol_loading): New static global.
4481 (print_symbol_loading_p): New function.
4482 (symbol_file_add_with_addrs): Only print symbol loading messages
4483 if requested.
4484 (_initialize_symfile): Register "print symbol-loading" set/show
4485 command.
4486 * symfile.h (print_symbol_loading_p): Declare.
4487
c32c64b7
DE
44882014-03-30 Doug Evans <xdje42@gmail.com>
4489
4490 * infrun.c (set_last_target_status): New function.
4491 (handle_inferior_event): Call it.
4492
7c0bc051
DE
44932014-03-30 Doug Evans <xdje42@gmail.com>
4494
4495 * inferior.h (enum stop_kind): Improve comment.
4496
8776cfe9
JB
44972014-03-28 Joel Brobecker <brobecker@adacore.com>
4498
4499 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4500 a reference, strip the reference layer before calling
4501 the lang_ops value_has_mutated callback.
4502
410a0ff2
SDJ
45032014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4504
4505 Remove some globals from our parser.
4506 * language.c (unk_lang_parser): Add "struct parser_state"
4507 argument.
4508 * language.h (struct language_defn) <la_parser>: Likewise.
4509 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4510 (initialize_expout): Add "struct parser_state" argument.
4511 Rewrite function to use the parser state.
4512 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4513 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4514 write_exp_elt_longcst, write_exp_elt_dblcst,
4515 write_exp_elt_decfloatcst, write_exp_elt_type,
4516 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4517 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4518 write_dollar_variable): Likewise.
4519 (parse_exp_in_context_1): Use parser state.
4520 (insert_type_address_space): Add "struct parser_state" argument.
4521 Use parser state.
4522 (increase_expout_size): New function.
4523 * parser-defs.h: Forward declare "struct language_defn" and
4524 "struct parser_state".
4525 (expout, expout_size, expout_ptr): Remove extern declarations.
4526 (parse_gdbarch, parse_language): Rewrite macro declarations to
4527 accept the parser state.
4528 (struct parser_state): New struct.
4529 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4530 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4531 write_exp_elt_decfloatcst, write_exp_elt_type,
4532 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4533 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4534 write_exp_msymbol, write_dollar_variable,
4535 mark_struct_expression, insert_type_address_space): Add "struct
4536 parser_state" argument.
4537 (increase_expout_size): New function.
4538 * utils.c (do_clear_parser_state): New function.
4539 (make_cleanup_clear_parser_state): Likewise.
4540 * utils.h (make_cleanup_clear_parser_state): New function
4541 prototype.
4542 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4543 Update calls to write_exp* in order to pass the parser state.
4544 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4545 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4546 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4547 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4548 * stap-probe.c (stap_parse_register_operand): Likewise.
4549 (stap_parse_single_operand): Likewise.
4550 (stap_parse_argument_1): Likewise.
4551 (stap_parse_argument): Use parser state.
4552 * stap-probe.h: Include "parser-defs.h".
4553 (struct stap_parse_info) <pstate>: New field.
4554 * c-exp.y (parse_type): Rewrite to use parser state.
4555 (yyparse): Redefine to c_parse_internal.
4556 (pstate): New global variable.
4557 (parse_number): Add "struct parser_state" argument.
4558 (write_destructor_name): Likewise.
4559 (type_exp): Update calls to write_exp* and similars in order to
4560 use parser state.
4561 (exp1, exp, variable, qualified_name, space_identifier,
4562 typename, typebase): Likewise.
4563 (write_destructor_name, parse_number, lex_one_token,
4564 classify_name, classify_inner_name, c_parse): Add "struct
4565 parser_state" argument. Update function to use parser state.
4566 * c-lang.h: Forward declare "struct parser_state".
4567 (c_parse): Add "struct parser_state" argument.
4568 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4569 (yyparse): Redefine macro to ada_parse_internal.
4570 (pstate): New variable.
4571 (write_int, write_object_renaming, write_var_or_type,
4572 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4573 type_int, type_long, type_long_long, type_float, type_double,
4574 type_long_double, type_char, type_boolean, type_system_address):
4575 Add "struct parser_state" argument.
4576 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4577 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4578 var_or_type, aggregate, aggregate_component_list,
4579 positional_list, others, component_group,
4580 component_associations): Update calls to write_exp* and similar
4581 functions in order to use parser state.
4582 (ada_parse, write_var_from_sym, write_int,
4583 write_exp_op_with_string, write_object_renaming,
4584 find_primitive_type, write_selectors, write_ambiguous_var,
4585 write_var_or_type, write_name_assoc, type_int, type_long,
4586 type_long_long, type_float, type_double, type_long_double,
4587 type_char, type_boolean, type_system_address): Add "struct
4588 parser_state" argument. Adjust function to use parser state.
4589 * ada-lang.c (parse): Likewise.
4590 * ada-lang.h: Forward declare "struct parser_state".
4591 (ada_parse): Add "struct parser_state" argument.
4592 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4593 calls to both functions.
4594 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4595 parser state.
4596 (yyparse): Redefine macro to f_parse_internal.
4597 (pstate): New variable.
4598 (parse_number): Add "struct parser_state" argument.
4599 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4600 and similars in order to use parser state.
4601 (parse_number): Adjust code to use parser state.
4602 (yylex): Likewise.
4603 (f_parse): New function.
4604 * f-lang.h: Forward declare "struct parser_state".
4605 (f_parse): Add "struct parser_state" argument.
4606 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4607 parser state.
4608 (yyparse): Redefine macro for java_parse_internal.
4609 (pstate): New variable.
4610 (push_expression_name, push_expression_name, insert_exp): Add
4611 "struct parser_state" argument.
4612 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4613 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4614 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4615 PostIncrementExpression, PostDecrementExpression,
4616 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4617 UnaryExpressionNotPlusMinus, CastExpression,
4618 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4619 RelationalExpression, EqualityExpression, AndExpression,
4620 ExclusiveOrExpression, InclusiveOrExpression,
4621 ConditionalAndExpression, ConditionalOrExpression,
4622 ConditionalExpression, Assignment, LeftHandSide): Update
4623 calls to write_exp* and similars in order to use parser state.
4624 (parse_number): Ajust code to use parser state.
4625 (yylex): Likewise.
4626 (java_parse): New function.
4627 (push_variable): Add "struct parser_state" argument. Adjust
4628 code to user parser state.
4629 (push_fieldnames, push_qualified_expression_name,
4630 push_expression_name, insert_exp): Likewise.
4631 * jv-lang.h: Forward declare "struct parser_state".
4632 (java_parse): Add "struct parser_state" argument.
4633 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4634 parser state.
4635 (yyparse): Redefine macro to m2_parse_internal.
4636 (pstate): New variable.
4637 (type_exp, exp, fblock, variable, type): Update calls to
4638 write_exp* and similars to use parser state.
4639 (yylex): Likewise.
4640 (m2_parse): New function.
4641 * m2-lang.h: Forward declare "struct parser_state".
4642 (m2_parse): Add "struct parser_state" argument.
4643 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4644 * objc-lang.h: Forward declare "struct parser_state".
4645 (end_msglist): Add "struct parser_state" argument.
4646 * p-exp.y (parse_type): Rewrite macro to use parser state.
4647 (yyparse): Redefine macro to pascal_parse_internal.
4648 (pstate): New variable.
4649 (parse_number): Add "struct parser_state" argument.
4650 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4651 write_exp* and similars in order to use parser state.
4652 (parse_number, yylex): Adjust code to use parser state.
4653 (pascal_parse): New function.
4654 * p-lang.h: Forward declare "struct parser_state".
4655 (pascal_parse): Add "struct parser_state" argument.
4656 * go-exp.y (parse_type): Rewrite macro to use parser state.
4657 (yyparse): Redefine macro to go_parse_internal.
4658 (pstate): New variable.
4659 (parse_number): Add "struct parser_state" argument.
4660 (type_exp, exp1, exp, variable, type): Update calls to
4661 write_exp* and similars in order to use parser state.
4662 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4663 to use parser state.
4664 (go_parse): Likewise.
4665 * go-lang.h: Forward declare "struct parser_state".
4666 (go_parse): Add "struct parser_state" argument.
4667
342587c4
DE
46682014-03-27 Doug Evans <dje@google.com>
4669
4670 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4671
33e80786
DE
46722014-03-27 Doug Evans <dje@google.com>
4673
4674 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4675 Remove argument abbrev_section. All callers updated.
4676
1dbab08b
DE
46772014-03-27 Doug Evans <dje@google.com>
4678
4679 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4680 addr_base, ranges_base.
4681
318d3177
KS
46822014-03-26 Keith Seitz <keiths@redhat.com>
4683
4684 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4685 types, not VAR_DOMAIN.
4686
1e54db15
SL
46872014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4688
4689 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4690 "ra" registers.
4691 * features/nios2-linux.c: Regenerated.
4692 * features/nios2.c: Regenerated.
4693
d3839ede
PA
46942014-03-25 Pedro Alves <palves@redhat.com>
4695
4696 * cli/cli-script.c (script_from_file): Force the interpreter to
4697 sync mode.
4698
7588d2ec
PL
46992014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4700
4701 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4702 small stack allocation.
4703
a6290449
TG
47042014-03-24 Tristan Gingold <gingold@adacore.com>
4705
4706 * darwin-nat.c (exc_server): Remove unused prototype.
4707 (darwin_dump_message): Correctly display data on x86_64.
4708 (darwin_encode_reply): Fix style.
4709 Add comments and fix indentation.
4710
31ae9d24 47112014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
4712
4713 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4714
6339bfc4
DE
47152014-03-22 Doug Evans <xdje42@gmail.com>
4716
4717 * infcmd.c: Whitespace fixes.
4718 (interrupt_command): Merge two function comments into one.
4719
0a07590b
DE
47202014-03-22 Doug Evans <xdje42@gmail.com>
4721
4722 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4723 All uses updated.
4724
b55fbac4
YQ
47252014-03-22 Yao Qi <yao@codesourcery.com>
4726
4727 * remote.c (target_read_live_memory): Remove.
4728 (memory_xfer_live_readonly_partial): Rename it to
4729 remote_xfer_live_readonly_partial. Remove argument 'object'.
4730 All callers updated. Call remote_read_bytes_1
4731 instead of target_read_live_memory.
4732 * tracepoint.c (set_traceframe_number): Remove.
4733 (make_cleanup_restore_traceframe_number): Likewise .
4734 * tracepoint.h (set_traceframe_number): Remove declaration.
4735 (make_cleanup_restore_traceframe_number): Likewise.
4736
9217e74e
YQ
47372014-03-22 Yao Qi <yao@codesourcery.com>
4738
4739 * remote.c (remote_read_bytes): Move code on reading from the
4740 remote stub to ...
4741 (remote_read_bytes_1): ... here. New function.
4742
8acf9577
YQ
47432014-03-22 Yao Qi <yao@codesourcery.com>
4744
4745 * ctf.c (ctf_xfer_partial): Check the return value of
4746 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4747 return TARGET_XFER_UNAVAILABLE.
4748 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4749 * target.c (target_read_live_memory): Move it to remote.c.
4750 (memory_xfer_live_readonly_partial): Likewise.
4751 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4752 * remote.c (target_read_live_memory): Moved from target.c.
4753 (memory_xfer_live_readonly_partial): Likewise.
4754 (remote_read_bytes): Factored out from
4755 memory_xfer_partial_1.
4756
feef67ab
DE
47572014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4758
4759 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4760 NULL pointer.
4761
b65dc60b
PA
47622014-03-21 Pedro Alves <palves@redhat.com>
4763
4764 * infrun.c (normal_stop): Extend comment.
4765
b4ab256d
HZ
47662014-03-21 Hui Zhu <hui@codesourcery.com>
4767 Pedro Alves <palves@redhat.com>
4768
4769 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4770 static buffer.
4771 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4772 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4773 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4774
deba7593
MR
47752014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4776
4777 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4778 `z' formatted output modifier.
4779
1bff71c3
SDJ
47802014-03-20 Tom Tromey <tromey@redhat.com>
4781 Sergio Durigan Junior <sergiodj@redhat.com>
4782
4783 * probe.c (parse_probes): Turn assert into an ordinary error.
4784 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4785 exceptions when parsing probes. Rearrange the code for clarity.
4786
90e28950
TT
47872014-03-20 Tom Tromey <tromey@redhat.com>
4788
4789 PR gdb/14135
4790 * top.c (execute_command): Only dispatch events if the command
4791 started the target.
4792
beb460e8
PA
47932014-03-20 Tom Tromey <tromey@redhat.com>
4794
4795 PR cli/15718
4796 * infcall.c: Include event-top.h.
4797 (run_inferior_call): Call async_disable_stdin if needed.
4798
99619bea
PA
47992014-03-20 Pedro Alves <palves@redhat.com>
4800
4801 * infrun.c (prepare_to_proceed): Delete.
4802 (thread_still_needs_step_over): New function.
4803 (find_thread_needs_step_over): New function.
4804 (proceed): If the current thread needs a step-over, set its
4805 steping_over_breakpoint flag. Adjust to use
4806 find_thread_needs_step_over instead of prepare_to_proceed.
4807 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4808 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4809 breakpoint.
4810 (switch_back_to_stepped_thread): Step over breakpoints of all
4811 threads not the stepping thread, before switching back to the
4812 stepping thread.
4813
2adfaa28
PA
48142014-03-20 Pedro Alves <palves@redhat.com>
4815
4816 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4817 extern.
4818 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4819 * infrun.c (saved_singlestep_ptid)
4820 (stepping_past_singlestep_breakpoint): Delete.
4821 (resume): Remove stepping_past_singlestep_breakpoint handling.
4822 (proceed): Store the prev_pc of the stepping thread too.
4823 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4824 singlestep_pc.
4825 (enum infwait_states): Delete infwait_thread_hop_state.
4826 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4827 field.
4828 (handle_inferior_event): Adjust.
4829 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4830 handling and the thread-hop code. Before removing single-step
4831 breakpoints, check whether the thread hit a single-step breakpoint
4832 of another thread. If it did, the trap is not a random signal.
4833 (switch_back_to_stepped_thread): If the event thread hit a
4834 single-step breakpoint, unblock it before switching to the
4835 stepping thread. Handle the case of the stepped thread having
4836 advanced already.
4837 (keep_going): Handle the case of the current thread moving past a
4838 single-step breakpoint.
4839
31e77af2
PA
48402014-03-20 Pedro Alves <palves@redhat.com>
4841
4842 PR breakpoints/7143
4843 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4844 are being stepped over.
4845 (breakpoint_address_match): Make extern.
4846 * breakpoint.h (breakpoint_address_match): New declaration.
4847 * inferior.h (stepping_past_instruction_at): New declaration.
4848 * infrun.c (struct step_over_info): New type.
4849 (step_over_info): New global.
4850 (set_step_over_info, clear_step_over_info)
4851 (stepping_past_instruction_at): New functions.
4852 (handle_inferior_event): Clear the step-over info when
4853 trap_expected is cleared.
4854 (resume): Remove now stale comment.
4855 (clear_proceed_status): Clear step-over info.
4856 (proceed): Adjust step-over handling to set or clear the step-over
4857 info instead of removing all breakpoints.
4858 (handle_signal_stop): When setting up a thread-hop, don't remove
4859 breakpoints here.
4860 (stop_stepping): Clear step-over info.
4861 (keep_going): Adjust step-over handling to set or clear step-over
4862 info and then always inserting breakpoints, instead of removing
4863 all breakpoints when stepping over one.
4864
b9f437de
PA
48652014-03-20 Pedro Alves <palves@redhat.com>
4866
4867 * infrun.c (previous_inferior_ptid): Adjust comment.
4868 (deferred_step_ptid): Delete.
4869 (infrun_thread_ptid_changed, prepare_to_proceed)
4870 (init_wait_for_inferior): Adjust.
4871 (handle_signal_stop): Delete deferred_step_ptid handling.
4872
06c868a8
JK
48732014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4874
4875 PR gdb/15358
4876 * defs.h (sync_quit_force_run): New declaration.
4877 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4878 * event-top.c (async_sigterm_handler): New declaration.
4879 (async_sigterm_token): New variable.
4880 (async_init_signals): Create also async_sigterm_token.
4881 (async_sigterm_handler): New function.
4882 (sync_quit_force_run): New variable.
4883 (handle_sigterm): Replace quit_force call by other calls.
4884 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4885
dea80df0
MR
48862014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4887
4888 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4889 offset into SPE pseudo registers.
4890
0c7e1a46
PA
48912014-03-18 Pedro Alves <palves@redhat.com>
4892
4893 PR gdb/13860
4894 * inferior.h (print_stop_event): Declare.
4895 * infrun.c (print_stop_event): New, factored out from ...
4896 (normal_stop): ... this.
4897 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4898 of bpstat_print/print_stack_frame.
4899
9c1fcd01
TT
49002014-03-17 Tom Tromey <tromey@redhat.com>
4901
4902 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4903
11aa919a
PMR
49042014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4905
4906 * ada-lang.c (decode_constrained_packed_array): Perform a
4907 minimal coercion for reference with coerce_ref instead of
4908 ada_coerce_ref.
4909
d4ccb5e0
TG
49102014-03-17 Tristan Gingold <gingold@adacore.com>
4911
4912 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4913 (darwin_solib_create_inferior_hook): Emit a warning if version
4914 is unhandled.
4915
49840f2a
UW
49162014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
4917
4918 * python/py-value.c (get_field_flag): Cast flag_name argument to
4919 PyObject_GetAttrString to support Python 2.4.
4920
ed4123e5
JK
49212014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4922
4923 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4924 (Global Maintainers): Remove Jan Kratochvil.
4925
d6b64346
PA
49262014-03-14 Pedro Alves <palves@redhat.com>
4927
4928 * inferior.h (terminal_ours_for_output): Rename to ...
4929 (child_terminal_ours_for_output): ... this.
4930 (terminal_save_ours): Rename to ...
4931 (child_terminal_save_ours): ... this.
4932 (terminal_ours): Rename to ...
4933 (child_terminal_ours): ... this.
4934 (terminal_inferior): Rename to ...
4935 (child_terminal_inferior): ... this.
4936 (terminal_init_inferior): Rename to ...
4937 (child_terminal_init_inferior): ... this.
4938 (terminal_init_inferior_with_pgrp): Rename to ...
4939 (child_terminal_init_inferior_with_pgrp): ... this.
4940 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4941 (child_terminal_init_with_pgrp): ... this.
4942 (terminal_save_ours): Rename to ...
4943 (child_terminal_save_ours): ... this.
4944 (terminal_init_inferior): Rename to ...
4945 (child_terminal_init): ... this. Adjust.
4946 (terminal_inferior): Rename to ...
4947 (child_terminal_inferior): ... this.
4948 (terminal_ours_for_output): Rename to ...
4949 (child_terminal_ours_for_output): ... this. Adjust.
4950 (terminal_ours): Rename to ...
4951 (child_terminal_ours): ... this.
4952 (terminal_ours_1): Rename to ...
4953 (child_terminal_ours_1): ... this. Adjust.
4954 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4955 * windows-nat.c (do_initial_windows_stuff): Adjust.
4956 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4957 (gnu_terminal_init): ... this. Adjust.
4958 (gnu_target): Adjust.
4959 * inf-child.c (inf_child_target): Adjust.
4960
5a1e8c7a
DE
49612014-03-13 Doug Evans <xdje42@gmail.com>
4962
4963 PR guile/16612
4964 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4965 new eq?-hashtab.
4966
350e1a76
DE
49672014-03-13 Doug Evans <xdje42@gmail.com>
4968
4969 * value.c (record_latest_value): Call release_value_or_incref
4970 instead of release_value.
4971
a69900ae
PA
49722014-03-13 Pedro Alves <palves@redhat.com>
4973
4974 * procfs.c (procfs_target): Don't override to_shortname,
4975 to_longname or to_doc.
4976
5db9f0bd
PA
49772014-03-13 Pedro Alves <palves@redhat.com>
4978
4979 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4980 Unix in user visible strings.
4981
5e3a2c38
SS
49822014-03-12 Stan Shebs <stan@codesourcery.com>
4983
4984 * gdbtypes.h: Annotate comments for Doxygen, add a page
4985 block comment with some general info.
4986
8bc2fe48
PA
49872014-03-12 Pedro Alves <palves@redhat.com>
4988
4989 * infcmd.c (prepare_execution_command): New function, factored out
4990 from several execution commands.
4991 (run_command_1, continue_command, step_1, jump_command)
4992 (signal_command, until_command, advance_command, finish_command)
4993 (attach_command): Use prepare_execution_command.
4994
638c5f49
OJ
49952014-03-12 Omair Javaid <omair.javaid@linaro.org>
4996
4997 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4998 (MAX_BPTS): Define.
4999 (MAX_WPTS): Define.
5000 (struct arm_linux_thread_points): Removed.
5001 (struct arm_linux_process_info): New.
5002 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
5003 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
5004 (arm_linux_find_breakpoints_by_tid): Removed.
5005 (struct arch_lwp_info): New.
5006 (arm_linux_find_process_pid): New functions.
5007 (arm_linux_add_process): New functions.
5008 (arm_linux_process_info_get): New functions.
5009 (arm_linux_forget_process): New function.
5010 (arm_linux_get_debug_reg_state): New function.
5011 (struct update_registers_data): New.
5012 (update_registers_callback): New function.
5013 (arm_linux_insert_hw_breakpoint1): Updated.
5014 (arm_linux_remove_hw_breakpoint1): Updated.
5015 (arm_linux_insert_hw_breakpoint): Updated.
5016 (arm_linux_remove_hw_breakpoint): Updated.
5017 (arm_linux_insert_watchpoint): Updated.
5018 (arm_linux_remove_watchpoint): Updated.
5019 (arm_linux_new_thread): Updated.
5020 (arm_linux_prepare_to_resume): New function.
5021 (arm_linux_new_fork): New function.
5022 (_initialize_arm_linux_nat): Updated.
5023
6d03af93
PA
50242014-03-12 Pedro Alves <palves@redhat.com>
5025
5026 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
5027
b3ccfe11
TT
50282014-03-12 Tom Tromey <tromey@redhat.com>
5029
5030 * inf-child.c (return_zero): New function.
5031 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
5032 * aix-thread.c (aix_thread_inferior_created): New function.
5033 (aix_thread_attach): Remove.
5034 (init_aix_thread_ops): Don't set to_attach.
5035 (_initialize_aix_thread): Register inferior_created observer.
5036 * corelow.c (init_core_ops): Don't set to_attach or
5037 to_create_inferior.
5038 * exec.c (init_exec_ops): Don't set to_attach or
5039 to_create_inferior.
5040 * infcmd.c (run_command_1): Use find_run_target. Make direct
5041 target calls.
5042 (attach_command): Use find_attach_target. Make direct target
5043 calls.
5044 * record-btrace.c (init_record_btrace_ops): Don't set
5045 to_create_inferior.
5046 * record-full.c (record_full_can_async_p, record_full_is_async_p):
5047 Remove.
5048 (init_record_full_ops, init_record_full_core_ops): Update. Don't
5049 set to_create_inferior.
5050 * target.c (complete_target_initialization): Add assertion.
5051 (target_create_inferior): Remove.
5052 (find_default_attach, find_default_create_inferior): Remove.
5053 (find_attach_target, find_run_target): New functions.
5054 (find_default_is_async_p, find_default_can_async_p)
5055 (target_supports_non_stop, target_attach): Remove.
5056 (init_dummy_target): Don't set to_create_inferior or
5057 to_supports_non_stop.
5058 * target.h (struct target_ops) <to_attach>: Add comment. Remove
5059 TARGET_DEFAULT_FUNC.
5060 <to_create_inferior>: Add comment.
5061 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
5062 TARGET_DEFAULT_RETURN.
5063 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
5064 (find_attach_target, find_run_target): Declare.
5065 (target_create_inferior): Remove.
5066 (target_has_execution_1): Update comment.
5067 (target_supports_non_stop): Remove.
5068 * target-delegates.c: Rebuild.
5069
91f83b02
PA
50702014-03-12 Pedro Alves <palves@redhat.com>
5071
5072 * inf-child.h: Update comment to not mention Unix.
5073
f1aea813
PA
50742014-03-12 Pedro Alves <palves@redhat.com>
5075
5076 * inf-child.c: Update top comment to not mention Unix. Add
5077 generic comment describing how this target is meant to be used.
5078 (inf_child_post_attach, inf_child_post_startup_inferior)
5079 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
5080 Unix in comment.
5081
ee8e9165
PA
50822014-03-12 Pedro Alves <palves@redhat.com>
5083
5084 * nto-procfs.c: Include inf-child.h.
5085 (procfs_ops): Delete global.
5086 (procfs_can_run): Delete method.
5087 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5088 target pointer instead of referencing procfs_ops.
5089 (procfs_prepare_to_store): Delete.
5090 (init_procfs_ops): Delete function.
5091 (procfs_target): New function, based on init_procfs_ops, but
5092 inherit inf_child_target.
5093 (_initialize_procfs): Use procfs_target.
5094
51a9c8c5
PA
50952014-03-12 Pedro Alves <palves@redhat.com>
5096
5097 * windows-nat.c: Include inf-child.h.
5098 (windows_ops): Delete global.
5099 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5100 methods.
5101 (init_windows_ops): Delete function.
5102 (windows_target): New function, based on init_windows_ops, but
5103 inherit inf_child_target.
5104 (_initialize_windows_nat): Use windows_target. Install x86
5105 specific target methods here.
5106
c1966e26
DE
51072014-03-10 Doug Evans <xdje42@gmail.com>
5108
5109 * guile/guile.c (call_initialize_gdb_module): New function.
5110 (initialize_guile): Replace call to scm_init_guile with call to
5111 scm_with_guile.
5112
023db19c
JB
51132014-03-10 Joel Brobecker <brobecker@adacore.com>
5114
5115 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5116 in call to TYPE_CODE macro.
5117
5ec18f2b
JG
51182014-03-10 Jerome Guitton <guitton@adacore.com>
5119
8668be63
JB
5120 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5121 Resolve tagged types to full view.
5ec18f2b 5122
7d03f2eb
HZ
51232014-03-10 Hui Zhu <hui@codesourcery.com>
5124
5125 * target.h (target_insert_breakpoint): Remove "hardware" from its
5126 comments.
5127
c5164cbc
DE
51282014-03-07 Doug Evans <dje@google.com>
5129
5130 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5131
c4a3fee2
DE
51322014-03-07 Doug Evans <dje@google.com>
5133
5134 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5135 Remove unused local comp_dir_attr. Assert exactly one of
5136 stub_comp_unit_die, stub_comp_dir is non-NULL.
5137
3156469c
JB
51382014-03-07 Joel Brobecker <brobecker@adacore.com>
5139
5140 * target.h (complete_target_initialization, add_target):
5141 Add comment.
5142
c1a7b7c6
PA
51432014-03-07 Pedro Alves <palves@redhat.com>
5144
5145 * go32-nat.c: Include inf-child.h.
5146 (go32_ops): Delete global.
5147 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5148 Delete methods.
5149 (go32_create_inferior): Push the passed in target pointer instead
5150 of referencing go32_ops.
5151 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5152 (go32_target): New function, based on init_go32_ops, but inherit
5153 inf_child_target.
5154 (_initialize_go32_nat): Use go32_target. Move parts of
5155 init_go32_ops here.
5156
d3c1a85f
JB
51572014-03-06 Joel Brobecker <brobecker@adacore.com>
5158
5159 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5160 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5161 SYMBOL_VALUE_ADDRESS.
5162 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5163
5fa1d40e
YQ
51642014-03-06 Yao Qi <yao@codesourcery.com>
5165
5166 * breakpoint.c (get_tracepoint_by_number): Remove argument
5167 optional_p. All callers updated. Adjust comments. Update
5168 output message.
5169 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5170
0c13193f
YQ
51712014-03-06 Yao Qi <yao@codesourcery.com>
5172
5173 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5174 early if get_number returns zero. Use 'p' instead of 'args'.
5175
2217da06
YQ
51762014-03-06 Yao Qi <yao@codesourcery.com>
5177
5178 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5179 message.
5180
cc3da688
YQ
51812014-03-06 Yao Qi <yao@codesourcery.com>
5182
5183 PR breakpoints/16508
5184 * tracepoint.c (check_trace_running): New function.
5185 (trace_find_command): Move code to check_trace_running and
5186 call check_trace_running.
5187 (trace_find_pc_command): Likewise.
5188 (trace_find_tracepoint_command): Likewise.
5189 (trace_find_line_command): Likewise.
5190 (trace_find_range_command): Likewise.
5191 * tracepoint.h (check_trace_running): Likewise.
5192 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5193
6a5f844b
YQ
51942014-03-06 Yao Qi <yao@codesourcery.com>
5195
5196 * target.h (struct target_ops) <to_traceframe_info>: Use
5197 TARGET_DEFAULT_NORETURN (tcomplain ()).
5198 * target-delegates.c: Regenerated.
5199
0f26cec1
PA
52002014-03-05 Pedro Alves <palves@redhat.com>
5201
5202 PR gdb/16575
5203 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5204 void. Update comment.
5205 (dcache_xfer_memory): Delete.
5206 (dcache_read_memory_partial): New, based on the read bits of
5207 dcache_xfer_memory.
5208 (dcache_update): Add status parameter. Use ULONGEST for len, and
5209 adjust. Discard cache lines if the reason for the update was
5210 error.
5211 * dcache.h (dcache_xfer_memory): Delete declaration.
5212 (dcache_read_memory_partial): New declaration.
5213 (dcache_update): Update prototype.
5214 * target.c (raw_memory_xfer_partial): Update the dcache here.
5215 (memory_xfer_partial_1): Don't handle dcache writes here.
5216
b2b255bd
MF
52172014-03-05 Mike Frysinger <vapier@gentoo.org>
5218
5219 * remote-sim.c (gdbsim_load): Add const to prog.
5220
5d9cf8a4
TT
52212014-03-03 Tom Tromey <tromey@redhat.com>
5222
5223 * elfread.c (probe_key): Change to bfd_data.
5224 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5225 now per-BFD, not per-objfile.
5226 * stap-probe.c (stap_probe_destroy): Update comment.
5227 (handle_stap_probe): Allocate on the per-BFD obstack.
5228
729662a5
TT
52292014-03-03 Tom Tromey <tromey@redhat.com>
5230
5231 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5232 * breakpoint.c (create_longjmp_master_breakpoint): Use
5233 get_probe_address.
5234 (add_location_to_breakpoint, bkpt_probe_insert_location)
5235 (bkpt_probe_remove_location): Update.
5236 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5237 * elfread.c (elf_symfile_relocate_probe): Remove.
5238 (elf_probe_fns): Update.
5239 (insert_exception_resume_breakpoint): Change type of "probe"
5240 parameter to bound_probe.
5241 (check_exception_resume): Update.
5242 * objfiles.c (objfile_relocate1): Don't relocate probes.
5243 * probe.c (bound_probe_s): New typedef.
5244 (parse_probes): Use get_probe_address. Set sal's objfile.
5245 (find_probe_by_pc): Return a bound_probe.
5246 (collect_probes): Return a VEC(bound_probe_s).
5247 (compare_probes): Update.
5248 (gen_ui_out_table_header_info): Change type of "probes"
5249 parameter. Update.
5250 (info_probes_for_ops): Update.
5251 (get_probe_address): New function.
5252 (probe_safe_evaluate_at_pc): Update.
5253 * probe.h (struct probe_ops) <get_probe_address>: New field.
5254 <set_semaphore, clear_semaphore>: Add objfile parameter.
5255 (struct probe) <objfile>: Remove field.
5256 <arch>: New field.
5257 <address>: Update comment.
5258 (struct bound_probe): New.
5259 (find_probe_by_pc): Return a bound_probe.
5260 (get_probe_address): Declare.
5261 * solib-svr4.c (struct probe_and_action) <address>: New field.
5262 (hash_probe_and_action, equal_probe_and_action): Update.
5263 (register_solib_event_probe): Add address parameter.
5264 (solib_event_probe_at): Update.
5265 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5266 get_probe_address.
5267 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5268 (stap_get_probe_address): New function.
5269 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5270 (compile_probe_arg): Update.
5271 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5272 address.
5273 (handle_stap_probe): Don't relocate the probe.
5274 (stap_relocate): Remove.
5275 (stap_gen_info_probes_table_values): Update.
5276 (stap_probe_ops): Remove stap_relocate.
5277 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5278 (debug_sym_probe_fns): Update.
5279 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5280 * symtab.c (init_sal): Use memset.
5281 * symtab.h (struct symtab_and_line) <objfile>: New field.
5282 * tracepoint.c (start_tracing, stop_tracing): Update.
5283
ff887920
TT
52842014-03-03 Tom Tromey <tromey@redhat.com>
5285
5286 * probe.h (parse_probes, find_probe_by_pc)
5287 (find_probes_in_objfile): Fix comments.
5288
f0407826
DE
52892014-03-02 Doug Evans <xdje42@gmail.com>
5290
5291 * infrun.c (handle_signal_stop): Replace test for
5292 TARGET_WAITKIND_STOPPED with an assert.
5293
35e6a711
DE
52942014-03-02 Doug Evans <xdje42@gmail.com>
5295
5296 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5297
667f9d0b
DE
52982014-03-02 Doug Evans <xdje42@gmail.com>
5299
5300 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5301
dc92ace0
MK
53022014-03-01 Mark Kettenis <kettenis@gnu.org>
5303
5304 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5305
a900370f
MK
53062014-03-01 Mark Kettenis <kettenis@gnu.org>
5307
5308 * i386obsd-nat.c: Include "obsd-nat.h".
5309 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5310 add_target.
5311 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5312
b72a7981
MK
53132014-03-01 Mark Kettenis <kettenis@gnu.org>
5314
5315 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5316
96c70aba
MK
53172014-03-01 Mark Kettenis <kettenis@gnu.org>
5318
5319 * mips64obsd-nat.c: Include "obsd-nath".
5320 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5321 add_target
5322 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5323
874a80af
MK
53242014-03-01 Mark Kettenis <kettenis@gnu.org>
5325
8fd408f1
MK
5326 * amd64obsd-nat.c: Include "obsd-nat,h.
5327 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5328 add_target.
874a80af
MK
5329 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5330
9cf95373
SC
53312014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5332
5333 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5334 (find_overload_match): Update call to find_oload_champ.
5335 (find_oload_champ_namespace_loop): Likewise
5336
863e4da4
MK
53372014-02-28 Mark Kettenis <kettenis@gnu.org>
5338
025cac40
MK
5339 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5340
1ed586ce
MK
5341 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5342 * config/sparc/obsd64.mh: New file.
5343 * sparc64obsd-nat.c: New file.
5344
863e4da4
MK
5345 * obsd-nat.h: New file.
5346 * obsd-nat.c: New file.
5347 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5348 (ALLDEPFILES): Add obsd-nat.c.
5349
89de4da4
TT
53502014-02-28 Tom Tromey <tromey@redhat.com>
5351
5352 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5353 * cli-out.h (cli_ui_out_impl): Now const.
5354 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5355 * ui-out.c (struct ui_out) <impl>: Now const.
5356 (default_ui_out_impl): Now const.
5357 (ui_out_new): Make 'impl' parameter const.
5358 * ui-out.h (ui_out_new): Update.
5359
c725e7b6
MK
53602014-02-27 Mark Kettenis <kettenis@gnu.org>
5361
5362 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5363
670b46b3
MK
53642014-02-27 Mark Kettenis <kettenis@gnu.org>
5365
5366 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5367
c91550fc
JK
53682014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5369
5370 Additional PR 8882 fix.
5371 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5372
2fa0369e
PA
53732014-02-27 Pedro Alves <palves@redhat.com>
5374
5375 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5376 isn't set.
5377
d632a097
PA
53782014-02-27 Pedro Alves <palves@redhat.com>
5379
5380 PR 12702
5381 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5382 * nat/linux-waitpid.c: Include string.h.
5383 (status_to_str): Moved here and made extern.
5384 * nat/linux-waitpid.h (status_to_str): New declaration.
5385
2ebd5a35
HZ
53862014-02-27 Hui Zhu <hui@codesourcery.com>
5387
5388 PR 12702
5389 * infrun.c (ptid_match): Move ...
5390 * common/ptid.c (ptid_match): ... here.
5391 * inferior.h (ptid_match): Move ...
5392 * common/ptid.h (ptid_match): ... here.
5393
3cdd631f
MK
53942014-02-27 Mark Kettenis <kettenis@gnu.org>
5395
5396 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5397 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5398 gdb_target_obs.
5399
bee30a64
MK
54002014-02-27 Mark Kettenis <kettenis@gnu.org>
5401
5402 * obsd-tdep.c (obsd_auxv_parse): New function.
5403 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
5404
5405 * gdbarch.sh (auxv_parse): New.
5406 * gdbarch.h: Regenerated.
5407 * gdbarch.c: Regenerated.
5408 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5409
7a5a839f
LC
54102014-02-26 Ludovic Courtès <ludo@gnu.org>
5411
5412 * guile/scm-value.c (gdbscm_history_append_x): New function.
5413 (value_functions): Add it.
5414
31aa7e4e
JB
54152014-02-27 Joel Brobecker <brobecker@adacore.com>
5416
5417 * dwarf2read.c (attr_value_as_address): New function.
5418 (dwarf2_find_base_address, read_call_site_scope): Use
5419 attr_value_as_address in place of DW_ADDR.
5420 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5421 the low and high addresses. Slight rework of the handling
5422 of the high pc being a constant form, and limit it to
5423 DWARF verson 4 or higher.
5424 (dwarf2_record_block_ranges): Likewise.
5425 (read_partial_die): Likewise.
5426 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5427
9b333ba3
TT
54282014-02-26 Tom Tromey <tromey@redhat.com>
5429
5430 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5431
5f6cac40
TT
54322014-02-26 Tom Tromey <tromey@redhat.com>
5433
5434 * elfread.c (elf_read_minimal_symbols): Return early if
5435 minimal symbols have already been read. Add "ei" parameter.
5436 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5437 * minsyms.c (prim_record_minimal_symbol_full): Update.
5438 * objfiles.h (struct objstats) <n_minsyms>: Move...
5439 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5440 * symmisc.c (print_objfile_statistics): Update.
5441
2750ef27
TT
54422014-02-26 Tom Tromey <tromey@redhat.com>
5443
5444 * elfread.c (elf_read_minimal_symbols): New function, from
5445 elf_symfile_read.
5446 (elf_symfile_read): Call it.
5447
34643a32
TT
54482014-02-26 Tom Tromey <tromey@redhat.com>
5449
5450 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5451 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5452 (lookup_minimal_symbol_solib_trampoline)
5453 (lookup_minimal_symbol_by_pc_section_1)
5454 (lookup_minimal_symbol_and_objfile): Update.
5455 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5456 Don't allocate a minimal symbol if minsyms have already been read.
5457 (build_minimal_symbol_hash_tables): Update.
5458 (install_minimal_symbols): Do nothing if minsyms already read.
5459 Use the per-BFD obstack.
5460 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5461 * objfiles.c (allocate_objfile): Call
5462 terminate_minimal_symbol_table later.
5463 (have_minimal_symbols): Update.
5464 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5465 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5466 Move from struct objfile.
5467 <minsyms_read>: New field.
5468 (struct objfile) <msymbols, minimal_symbol_count,
5469 msymbol_hash, msymbol_demangled_hash>: Move.
5470 (ALL_OBJFILE_MSYMBOLS): Update.
5471 * symfile.c (read_symbols): Set minsyms_read.
5472 (reread_symbols): Update.
5473 * symmisc.c (dump_objfile, dump_msymbols): Update.
5474
2273f0ac
TT
54752014-02-26 Tom Tromey <tromey@redhat.com>
5476
5477 * minsyms.c (msymbols_sort): Remove.
5478 * minsyms.h (msymbols_sort): Remove.
5479 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5480 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5481 * elfread.c (elf_symtab_read): Don't add section offsets.
5482 * xcoffread.c (record_minimal_symbol): Don't add section offset
5483 to minimal symbol address.
5484 * somread.c (text_offset, data_offset): Remove.
5485 (som_symtab_read): Don't add section offsets to minimal symbol
5486 addresses.
5487 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5488 Don't add section offsets to minimal symbols.
5489 * coffread.c (coff_symtab_read): Don't add section offsets
5490 to minimal symbol addresses.
5491 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5492 to minimal symbol addresses.
5493 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5494 section offset to minimal symbol addresses.
5495 * mdebugread.c (parse_partial_symbols): Don't add section
5496 offset to minimal symbol addresses.
5497 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5498 offset to minimal symbol addresses.
5499
77e371c0
TT
55002014-02-26 Tom Tromey <tromey@redhat.com>
5501
5502 * ada-lang.c (ada_main_name): Update.
5503 (ada_add_standard_exceptions): Update.
5504 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5505 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5506 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5507 * auxv.c (ld_so_xfer_auxv): Update.
5508 * avr-tdep.c (avr_scan_prologue): Update.
5509 * ax-gdb.c (gen_var_ref): Update.
5510 * blockframe.c (get_pc_function_start)
5511 (find_pc_partial_function_gnu_ifunc): Update.
5512 * breakpoint.c (create_overlay_event_breakpoint)
5513 (create_longjmp_master_breakpoint)
5514 (create_std_terminate_master_breakpoint)
5515 (create_exception_master_breakpoint): Update.
5516 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5517 * c-valprint.c (c_val_print): Update.
5518 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5519 * common/agent.c (agent_look_up_symbols): Update.
5520 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5521 * dwarf2loc.c (call_site_to_target_addr): Update.
5522 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5523 * elfread.c (elf_gnu_ifunc_record_cache)
5524 (elf_gnu_ifunc_resolve_by_got): Update.
5525 * findvar.c (default_read_var_value): Update.
5526 * frame.c (inside_main_func): Update.
5527 * frv-tdep.c (frv_frame_this_id): Update.
5528 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5529 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5530 Update.
5531 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5532 (hppa_hpux_find_dummy_bpaddr): Update.
5533 * hppa-tdep.c (hppa_symbol_address): Update.
5534 * infcmd.c (until_next_command): Update.
5535 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5536 Update.
5537 * linespec.c (minsym_found, add_minsym): Update.
5538 * linux-nat.c (get_signo): Update.
5539 * linux-thread-db.c (inferior_has_bug): Update.
5540 * m32c-tdep.c (m32c_return_value)
5541 (m32c_m16c_address_to_pointer): Update.
5542 * m32r-tdep.c (m32r_frame_this_id): Update.
5543 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5544 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5545 * maint.c (maintenance_translate_address): Update.
5546 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5547 (frob_address): New function.
5548 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5549 frob_address. Rename parameter to "pc_in".
5550 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5551 addresses.
5552 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5553 Update.
5554 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5555 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5556 * objc-lang.c (find_objc_msgsend): Update.
5557 * objfiles.c (objfile_relocate1): Update.
5558 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5559 * p-valprint.c (pascal_val_print): Update.
5560 * parse.c (write_exp_msymbol): Update.
5561 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5562 (ppc_elfv2_skip_entrypoint): Update.
5563 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5564 * printcmd.c (build_address_symbolic, msym_info)
5565 (address_info): Update.
5566 * proc-service.c (ps_pglobal_lookup): Update.
5567 * psymtab.c (find_pc_sect_psymtab_closer)
5568 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5569 Change msymbol parameter to bound_minimal_symbol.
5570 * ravenscar-thread.c (get_running_thread_id): Update.
5571 * remote.c (remote_check_symbols): Update.
5572 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5573 address.
5574 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5575 * solib-dsbt.c (lm_base): Update.
5576 * solib-frv.c (lm_base, main_got): Update.
5577 * solib-irix.c (locate_base): Update.
5578 * solib-som.c (som_solib_create_inferior_hook)
5579 (link_map_start): Update.
5580 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5581 * solib-svr4.c (elf_locate_base, enable_break): Update.
5582 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5583 (flush_ea_cache): Update.
5584 * stabsread.c (define_symbol, scan_file_globals): Update.
5585 * stack.c (find_frame_funname): Update.
5586 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5587 (debug_qf_find_pc_sect_symtab): Update.
5588 * symfile.c (simple_read_overlay_table)
5589 (simple_overlay_update): Update.
5590 * symfile.h (struct quick_symbol_functions)
5591 <find_pc_sect_symtab>: Change type of msymbol to
5592 bound_minimal_symbol.
5593 * symmisc.c (dump_msymbols): Update.
5594 * symtab.c (find_pc_sect_symtab_via_partial)
5595 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5596 (search_symbols, print_msymbol_info): Update.
5597 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5598 (MSYMBOL_VALUE_ADDRESS): Redefine.
5599 (BMSYMBOL_VALUE_ADDRESS): New macro.
5600 * tracepoint.c (scope_info): Update.
5601 * tui/tui-disasm.c (tui_find_disassembly_address)
5602 (tui_get_begin_asm_address): Update.
5603 * valops.c (find_function_in_inferior): Update.
5604 * value.c (value_static_field, value_fn_field): Update.
5605
3b7344d5
TT
56062014-02-26 Tom Tromey <tromey@redhat.com>
5607
5608 * ada-lang.c (ada_update_initial_language): Update.
5609 (ada_main_name, ada_has_this_exception_support): Update.
5610 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5611 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5612 * arm-tdep.c (arm_skip_stub): Update.
5613 * auxv.c (ld_so_xfer_auxv): Update.
5614 * avr-tdep.c (avr_scan_prologue): Update.
5615 * ax-gdb.c (gen_var_ref): Update.
5616 * breakpoint.c (struct breakpoint_objfile_data)
5617 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5618 type to bound_minimal_symbol.
5619 (create_overlay_event_breakpoint)
5620 (create_longjmp_master_breakpoint)
5621 (create_std_terminate_master_breakpoint)
5622 (create_exception_master_breakpoint): Update.
5623 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5624 * c-exp.y (classify_name): Update.
5625 * coffread.c (coff_symfile_read): Update.
5626 * common/agent.c (agent_look_up_symbols): Update.
5627 * d-lang.c (d_main_name): Update.
5628 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5629 * dec-thread.c (enable_dec_thread): Update.
5630 * dwarf2loc.c (call_site_to_target_addr): Update.
5631 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5632 * eval.c (evaluate_subexp_standard): Update.
5633 * findvar.c (struct minsym_lookup_data) <result>: Change type
5634 to bound_minimal_symbol.
5635 <objfile>: Remove.
5636 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5637 * frame.c (inside_main_func): Update.
5638 * frv-tdep.c (frv_frame_this_id): Update.
5639 * gcore.c (call_target_sbrk): Update.
5640 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5641 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5642 Update.
5643 * go-lang.c (go_main_name): Update.
5644 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5645 (hppa_hpux_find_import_stub_for_addr): Update.
5646 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5647 Update. Change return type.
5648 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5649 type.
5650 * jit.c (jit_breakpoint_re_set_internal): Update.
5651 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5652 Update.
5653 * linux-nat.c (get_signo): Update.
5654 * linux-thread-db.c (inferior_has_bug): Update
5655 * m32c-tdep.c (m32c_return_value)
5656 (m32c_m16c_address_to_pointer): Update.
5657 * m32r-tdep.c (m32r_frame_this_id): Update.
5658 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5659 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5660 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5661 lookup_minimal_symbol. Change return type.
5662 (lookup_minimal_symbol): Remove.
5663 (lookup_bound_minimal_symbol): Update.
5664 (lookup_minimal_symbol_text): Change return type.
5665 (lookup_minimal_symbol_solib_trampoline): Change return type.
5666 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5667 (lookup_minimal_symbol_solib_trampoline): Change return type.
5668 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5669 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5670 (value_nsstring, find_imps): Update.
5671 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5672 * p-lang.c (pascal_main_name): Update.
5673 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5674 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5675 * proc-service.c (ps_pglobal_lookup): Update.
5676 * ravenscar-thread.c (get_running_thread_msymbol): Change
5677 return type.
5678 (has_ravenscar_runtime, get_running_thread_id): Update.
5679 * remote.c (remote_check_symbols): Update.
5680 * sol-thread.c (ps_pglobal_lookup): Update.
5681 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5682 * solib-dsbt.c (lm_base): Update.
5683 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5684 Update.
5685 * solib-irix.c (locate_base): Update.
5686 * solib-som.c (som_solib_create_inferior_hook)
5687 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5688 Update.
5689 * solib-spu.c (spu_enable_break): Update.
5690 * solib-svr4.c (elf_locate_base, enable_break): Update.
5691 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5692 (flush_ea_cache): Update.
5693 * stabsread.c (define_symbol): Update.
5694 * symfile.c (simple_read_overlay_table): Update.
5695 * symtab.c (find_pc_sect_line): Update.
5696 * tracepoint.c (scope_info): Update.
5697 * tui-disasm.c (tui_get_begin_asm_address): Update.
5698 * value.c (value_static_field): Update.
5699
40c1a007
TT
57002014-02-26 Tom Tromey <tromey@redhat.com>
5701
5702 * minsyms.c (prim_record_minimal_symbol_full): Use
5703 SET_MSYMBOL_VALUE_ADDRESS.
5704 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5705 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5706 SET_MSYMBOL_VALUE_ADDRESS.
5707 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5708 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5709
efd66ac6
TT
57102014-02-26 Tom Tromey <tromey@redhat.com>
5711
5712 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5713 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5714 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5715 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5716 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5717 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5718 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5719 * ada-lang.c (ada_main_name): Update.
5720 (ada_lookup_simple_minsym): Update.
5721 (ada_make_symbol_completion_list): Update.
5722 (ada_add_standard_exceptions): Update.
5723 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5724 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5725 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5726 * arm-tdep.c (skip_prologue_function): Update.
5727 (arm_skip_stack_protector, arm_skip_stub): Update.
5728 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5729 (arm_wince_skip_main_prologue): Update.
5730 * auxv.c (ld_so_xfer_auxv): Update.
5731 * avr-tdep.c (avr_scan_prologue): Update.
5732 * ax-gdb.c (gen_var_ref): Update.
5733 * block.c (call_site_for_pc): Update.
5734 * blockframe.c (get_pc_function_start): Update.
5735 (find_pc_partial_function_gnu_ifunc): Update.
5736 * breakpoint.c (create_overlay_event_breakpoint): Update.
5737 (create_longjmp_master_breakpoint): Update.
5738 (create_std_terminate_master_breakpoint): Update.
5739 (create_exception_master_breakpoint): Update.
5740 (resolve_sal_pc): Update.
5741 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5742 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5743 Update.
5744 * c-valprint.c (c_val_print): Update.
5745 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5746 * coffread.c (coff_symfile_read): Update.
5747 * common/agent.c (agent_look_up_symbols): Update.
5748 * dbxread.c (find_stab_function_addr): Update.
5749 (end_psymtab): Update.
5750 * dwarf2loc.c (call_site_to_target_addr): Update.
5751 (func_verify_no_selftailcall): Update.
5752 (tailcall_dump): Update.
5753 (call_site_find_chain_1): Update.
5754 (dwarf_expr_reg_to_entry_parameter): Update.
5755 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5756 (elf_gnu_ifunc_resolve_by_got): Update.
5757 * f-valprint.c (info_common_command): Update.
5758 * findvar.c (read_var_value): Update.
5759 * frame.c (get_prev_frame_1): Update.
5760 (inside_main_func): Update.
5761 * frv-tdep.c (frv_skip_main_prologue): Update.
5762 (frv_frame_this_id): Update.
5763 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5764 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5765 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5766 (gnuv3_skip_trampoline): Update.
5767 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5768 (hppa64_hpux_in_solib_call_trampoline): Update.
5769 (hppa_hpux_skip_trampoline_code): Update.
5770 (hppa64_hpux_search_dummy_call_sequence): Update.
5771 (hppa_hpux_find_import_stub_for_addr): Update.
5772 (hppa_hpux_find_dummy_bpaddr): Update.
5773 * hppa-tdep.c (hppa_symbol_address)
5774 (hppa_lookup_stub_minimal_symbol): Update.
5775 * i386-tdep.c (i386_skip_main_prologue): Update.
5776 (i386_pe_skip_trampoline_code): Update.
5777 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5778 * infcall.c (get_function_name): Update.
5779 * infcmd.c (until_next_command): Update.
5780 * jit.c (jit_breakpoint_re_set_internal): Update.
5781 (jit_inferior_init): Update.
5782 * linespec.c (minsym_found): Update.
5783 (add_minsym): Update.
5784 * linux-fork.c (info_checkpoints_command): Update.
5785 * linux-nat.c (get_signo): Update.
5786 * linux-thread-db.c (inferior_has_bug): Update.
5787 * m32c-tdep.c (m32c_return_value): Update.
5788 (m32c_m16c_address_to_pointer): Update.
5789 (m32c_m16c_pointer_to_address): Update.
5790 * m32r-tdep.c (m32r_frame_this_id): Update.
5791 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5792 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5793 * maint.c (maintenance_translate_address): Update.
5794 * minsyms.c (add_minsym_to_hash_table): Update.
5795 (add_minsym_to_demangled_hash_table): Update.
5796 (msymbol_objfile): Update.
5797 (lookup_minimal_symbol): Update.
5798 (iterate_over_minimal_symbols): Update.
5799 (lookup_minimal_symbol_text): Update.
5800 (lookup_minimal_symbol_by_pc_name): Update.
5801 (lookup_minimal_symbol_solib_trampoline): Update.
5802 (lookup_minimal_symbol_by_pc_section_1): Update.
5803 (lookup_minimal_symbol_and_objfile): Update.
5804 (prim_record_minimal_symbol_full): Update.
5805 (compare_minimal_symbols): Update.
5806 (compact_minimal_symbols): Update.
5807 (build_minimal_symbol_hash_tables): Update.
5808 (install_minimal_symbols): Update.
5809 (terminate_minimal_symbol_table): Update.
5810 (find_solib_trampoline_target): Update.
5811 (minimal_symbol_upper_bound): Update.
5812 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5813 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5814 (mips_skip_pic_trampoline_code): Update.
5815 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5816 * objc-lang.c (selectors_info): Update.
5817 (classes_info): Update.
5818 (find_methods): Update.
5819 (find_imps): Update.
5820 (find_objc_msgsend): Update.
5821 * objfiles.c (objfile_relocate1): Update.
5822 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5823 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5824 * p-valprint.c (pascal_val_print): Update.
5825 * parse.c (write_exp_msymbol): Update.
5826 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5827 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5828 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5829 * printcmd.c (build_address_symbolic): Update.
5830 (sym_info): Update.
5831 (address_info): Update.
5832 * proc-service.c (ps_pglobal_lookup): Update.
5833 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5834 (find_pc_sect_psymtab): Update.
5835 * python/py-framefilter.c (py_print_frame): Update.
5836 * ravenscar-thread.c (get_running_thread_id): Update.
5837 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5838 Update.
5839 * remote.c (remote_check_symbols): Update.
5840 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5841 (rs6000_skip_trampoline_code): Update.
5842 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5843 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5844 * solib-dsbt.c (lm_base): Update.
5845 * solib-frv.c (lm_base): Update.
5846 (main_got): Update.
5847 * solib-irix.c (locate_base): Update.
5848 * solib-som.c (som_solib_create_inferior_hook): Update.
5849 (som_solib_desire_dynamic_linker_symbols): Update.
5850 (link_map_start): Update.
5851 * solib-spu.c (spu_enable_break): Update.
5852 (ocl_enable_break): Update.
5853 * solib-svr4.c (elf_locate_base): Update.
5854 (enable_break): Update.
5855 * spu-tdep.c (spu_get_overlay_table): Update.
5856 (spu_catch_start): Update.
5857 (flush_ea_cache): Update.
5858 * stabsread.c (define_symbol): Update.
5859 (scan_file_globals): Update.
5860 * stack.c (find_frame_funname): Update.
5861 (frame_info): Update.
5862 * symfile.c (simple_read_overlay_table): Update.
5863 (simple_overlay_update): Update.
5864 * symmisc.c (dump_msymbols): Update.
5865 * symtab.c (fixup_section): Update.
5866 (find_pc_sect_line): Update.
5867 (skip_prologue_sal): Update.
5868 (search_symbols): Update.
5869 (print_msymbol_info): Update.
5870 (rbreak_command): Update.
5871 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5872 (completion_list_objc_symbol): Update.
5873 (default_make_symbol_completion_list_break_on): Update.
5874 * tracepoint.c (scope_info): Update.
5875 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5876 (tui_get_begin_asm_address): Update.
5877 * valops.c (find_function_in_inferior): Update.
5878 * value.c (value_static_field): Update.
5879 (value_fn_field): Update.
5880
50e65b17
TT
58812014-02-26 Tom Tromey <tromey@redhat.com>
5882
5883 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5884 bound minimal symbols. Move code that knows about minsym
5885 table layout...
5886 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5887 function.
5888 * minsyms.h (minimal_symbol_upper_bound): Declare.
5889 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5890 minimal_symbol_upper_bound.
5891
1b588015
JB
58922014-02-27 Joel Brobecker <brobecker@adacore.com>
5893
5894 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5895 Use the type's name if its basic type does not have a tag.
5896
dbb9c2b1
JB
58972014-02-27 Joel Brobecker <brobecker@adacore.com>
5898
5899 * dwarf2read.c (read_subrange_type): Add comment.
5900
55426c9d
JB
59012014-02-27 Joel Brobecker <brobecker@adacore.com>
5902
5903 * dwarf2read.c (update_enumeration_type_from_children): New
5904 function, mostly extracted from process_structure_scope.
5905 (read_enumeration_type): Call update_enumeration_type_from_children.
5906 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5907 and flag_flag_enum fields.
5908
f2fce0ca
PA
59092014-02-26 Pedro Alves <palves@redhat.com>
5910
5911 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5912 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5913 to_xfer_partial method.
5914
7a44e40e
PA
59152014-02-26 Pedro Alves <palves@redhat.com>
5916
5917 * target.c (complete_target_initialization): Don't install
5918 default_xfer_partial as to_xfer_partial hook.
5919 (nomemory): Delete.
5920 (update_current_target): Don't INHERIT nor de_fault
5921 deprecated_xfer_memory. Delete de_fault macro.
5922 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5923 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5924 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5925 field.
5926
bd265cd0
PA
59272014-02-26 Pedro Alves <palves@redhat.com>
5928
5929 * go32-nat.c (my_write_child): New function.
5930 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5931 (go32_xfer_partial): New function.
5932 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5933 Instead install a to_xfer_partial hook.
5934
9d46c4e5
PA
59352014-02-26 Pedro Alves <palves@redhat.com>
5936
5937 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5938 to_xfer_partial helper. Rewrite.
5939 (procfs_xfer_partial): New function.
5940 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5941 Install a to_xfer_partial hook.
5942
a1583b1f
PA
59432014-02-26 Pedro Alves <palves@redhat.com>
5944
5945 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5946 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5947 (m32r_xfer_partial): New function.
5948 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5949 Install a to_xfer_partial hook.
5950
6df1b29f
PA
59512014-02-26 Pedro Alves <palves@redhat.com>
5952
5953 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5954 helper.
5955 (mips_xfer_partial): New function.
5956 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5957 hook. Install a to_xfer_partial hook.
5958
dc53a7ad
JB
59592014-02-26 Joel Brobecker <brobecker@adacore.com>
5960
5961 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5962 * gdbtypes.c (create_array_type_with_stride): New function,
5963 renaming create_array_type, but with an added parameter
5964 called "bit_stride".
5965 (create_array_type): Re-implement using
5966 create_array_type_with_stride.
5967 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5968 and DW_AT_bit_stride attributes.
5969
12ab52e9
PA
59702014-02-26 Pedro Alves <palves@redhat.com>
5971
5972 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5973 task-specific breakpoints.
5974
d16461ae
PA
59752014-02-25 Pedro Alves <palves@redhat.com>
5976
5977 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5978 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5979
a8b16220
SS
59802014-02-25 Stan Shebs <stan@codesourcery.com>
5981
5982 * defs.h: Annotate comments for Doxygen.
5983
b9e795ee
TT
59842014-02-25 Tom Tromey <tromey@redhat.com>
5985
5986 * target.h (target_ignore): Don't declare.
5987 * target.c (target_ignore): Remove.
5988
849c862e
JK
59892014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5990
5991 PR gdb/16626
5992 * auto-load.c (auto_load_objfile_script_1): Change filename to
5993 debugfile.
5994
475109d8
JB
59952014-02-25 Joel Brobecker <brobecker@adacore.com>
5996
5997 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5998 documentation. Adjust prototype to match the target_ops
5999 to_xfer_partial method. Adjust implementation accordingly.
6000
e186c3bd
HZ
60012014-02-25 Hui Zhu <hui@codesourcery.com>
6002
6003 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
6004 to_traceframe_info.
6005
6d451942
KB
60062014-02-25 Kevin Buettner <kevinb@redhat.com>
6007
041ab8b4 6008 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
6009 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
6010 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
6011 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
6012 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
6013 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
6014 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
6015 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
6016 New constants.
6017 (rl78_register_type): Use a data pointer type for SP and
6018 new pseudo registers mentioned above. Use a 16 bit integer
6019 type for all other register pairs.
6020 (rl78_register_name, rl78_g10_register_name): Update for
6021 new pseudo registers.
6022 (rl78_pseudo_register_read): Likewise.
6023 (rl78_pseudo_register_write): Likewise.
6024 (rl78_dwarf_reg_to_regnum): Return register numbers representing
6025 to the newly added pseudo registers.
6026
eddf0bae
DE
60272014-02-24 Doug Evans <dje@google.com>
6028
6029 * value.c (record_latest_value): Fix comment.
6030 * printcmd.c (print_command_1): Remove code to handle -1 return from
6031 record_latest_value.
6032
e96027e0
PA
60332014-02-24 Pedro Alves <palves@redhat.com>
6034
6035 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
6036 deprecated_xfer_memory hook.
6037 (procfs_xfer_partial): Call procfs_xfer_memory instead
6038 of the deprecated_xfer_memory target hook.
6039 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
6040 helper.
6041
0837c976
YZ
60422014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
6043
6044 * windows-nat.c (windows_xfer_shared_libraries): Return
6045 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
6046 requested object is TARGET_OBJECT_LIBRARIES.
6047
bc113b4e
YQ
60482014-02-24 Yao Qi <yao@codesourcery.com>
6049
6050 * target.h (enum target_xfer_status)
6051 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
6052 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
6053 explicitly. New.
6054 * corefile.c (memory_error_message): User updated.
6055 * exec.c (section_table_read_available_memory): Likewise.
6056 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6057 * target.c (target_xfer_status_to_string): Likewise.
6058 (raw_memory_xfer_partial): Likewise.
6059 (memory_xfer_partial_1, target_xfer_partial): Likewise.
6060 * valops.c (read_value_memory): Likewise.
6061 * exec.h: Update comments.
6062
01cb8804
YQ
60632014-02-24 Yao Qi <yao@codesourcery.com>
6064
6065 * target.c (target_xfer_status_to_string): Rename argument err
6066 to status.
6067 * target.h (target_xfer_status_to_string): Update declaration.
6068 Replace target_xfer_error_to_string with
6069 target_xfer_status_to_string in comment.
6070
93063aa6
YQ
60712014-02-24 Yao Qi <yao@codesourcery.com>
6072
6073 * mips-linux-nat.c (super_close): Update its type.
6074 (mips_linux_close): Pass 'self' to super_close.
6075
5c328c05
YQ
60762014-02-24 Yao Qi <yao@codesourcery.com>
6077
6078 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
6079 * corefile.c (read_memory): Adjusted.
6080 * target.c (target_write_with_progress): Adjusted.
6081
f73023dd
YQ
60822014-02-23 Yao Qi <yao@codesourcery.com>
6083
6084 Revert two patches:
6085
6086 2013-10-25 Yao Qi <yao@codesourcery.com>
6087
6088 * remote.c (remote_traceframe_info): Return early if
6089 traceframe is not selected.
6090
6091 2013-07-19 Yao Qi <yao@codesourcery.com>
6092
6093 * target.c (update_current_target): Change the default action
6094 of 'to_traceframe_info' from tcomplain to return_zero.
6095 * target.h (struct target_ops) <to_traceframe_info>: Add more
6096 comments.
6097
5a2eb0ef
YQ
60982014-02-23 Yao Qi <yao@codesourcery.com>
6099
6100 * valops.c (read_value_memory): Rewrite it. Call
6101 target_xfer_partial in a loop.
6102 * exec.h (section_table_available_memory): Remove declaration.
6103 Move comments to ...
6104 * exec.c (section_table_available_memory): ... here. Make it
6105 static.
6106
1ee79381
YQ
61072014-02-23 Yao Qi <yao@codesourcery.com>
6108
6109 * exec.c (section_table_read_available_memory): New function.
6110 * exec.h (section_table_read_available_memory): Declare.
6111 * ctf.c (ctf_xfer_partial): Call
6112 section_table_read_available_memory.
6113 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6114
1ca49d37
YQ
61152014-02-23 Yao Qi <yao@codesourcery.com>
6116
6117 * ctf.c (ctf_xfer_partial): Move code to ...
6118 * exec.c (exec_read_partial_read_only): ... it. New function.
6119 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6120 * tracefile.c: Include "exec.h".
6121 * exec.h (exec_read_partial_read_only): Declare.
6122
a283690e
YQ
61232014-02-23 Yao Qi <yao@codesourcery.com>
6124
6125 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6126 (tfile_has_memory): Remove.
6127 (init_tfile_ops): Don't set fields to_has_all_memory and
6128 to_has_memory of tfile_ops.
6129 * tracefile.c (tracefile_has_all_memory): New function.
6130 (tracefile_has_memory): New function.
6131 (init_tracefile_ops): Initialize fields to_has_all_memory and
6132 to_has_memory of 'ops'.
6133
12e03cd0
YQ
61342014-02-23 Yao Qi <yao@codesourcery.com>
6135
6136 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6137 (ctf_thread_alive, ctf_get_trace_status): Remove.
6138 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6139 init_tracefile_ops.
6140 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6141 (tfile_has_stack, tfile_has_registers): Remove.
6142 (tfile_thread_alive): Remove.
6143 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6144 init_tracefile_ops.
6145 * tracefile.c (tracefile_has_stack): New function.
6146 (tracefile_has_registers): New function.
6147 (tracefile_thread_alive): New function.
6148 (tracefile_get_trace_status): New function.
6149 (init_tracefile_ops): New function.
6150 * tracefile.h (init_tracefile_ops): Declare.
6151
11395323
YQ
61522014-02-23 Yao Qi <yao@codesourcery.com>
6153
6154 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6155 (O_LARGEFILE): Likewise.
6156 (tfile_ops): Likewise.
6157 (TRACE_HEADER_SIZE): Likewise.
6158 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6159 (cur_data_size): Likewise.
6160 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6161 (tfile_close, tfile_files_info): Likewise.
6162 (tfile_get_trace_status): Likewise.
6163 (tfile_get_tracepoint_status): Likewise.
6164 (tfile_get_traceframe_address): Likewise.
6165 (tfile_trace_find, match_blocktype): Likewise.
6166 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6167 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6168 (tfile_get_trace_state_variable_value): Likewise.
6169 (tfile_has_all_memory, tfile_has_memory): Likewise.
6170 (tfile_has_stack, tfile_has_registers): Likewise.
6171 (tfile_thread_alive, build_traceframe_info): Likewise.
6172 (tfile_traceframe_info, init_tfile_ops): Likewise.
6173 (_initialize_tracepoint): Don't call init_tfile_ops
6174 and add_target_with_completer.
6175 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6176 exec.h, completer.h and filenames.h.
6177 (_initialize_tracefile_tfile): New function.
6178
7951c4eb
YQ
61792014-02-23 Yao Qi <yao@codesourcery.com>
6180
6181 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6182 tracefile-tfile.o.
6183 (HFILES_NO_SRCDIR): Add tracefile.h.
6184 * ctf.c: Include "tracefile.h".
6185 * tracefile.h: New file.
6186 * tracefile.c: New file
6187 * tracefile-tfile.c: New file.
6188 * tracepoint.c: Include "tracefile.h".
6189 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6190 (stop_reason_names): Add const.
6191 (trace_file_writer_xfree): Move it to tracefile.c.
6192 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6193 (trace_save_ctf): Likewise.
6194 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6195 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6196 (tfile_write_header, tfile_write_regblock_type): Likewise.
6197 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6198 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6199 (tfile_write_raw_data, tfile_end): Likewise.
6200 (tfile_trace_file_writer_new): Likewise.
6201 (free_uploaded_tp): Make it extern.
6202 (free_uploaded_tsv): Make it extern.
6203 (_initialize_tracepoint): Move code to register command 'tsave'
6204 to tracefile.c.
6205 * tracepoint.h (stop_reason_names): Declare.
6206 (struct trace_frame_write_ops): Move it to tracefile.h.
6207 (struct trace_file_write_ops): Likewise.
6208 (struct trace_file_writer): Likewise.
6209 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6210
184cd072
JK
62112014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6212
6213 PR gdb/16594
6214 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6215 process name.
6216 (get_cores_used_by_process): New parameter num_cores, use it.
6217 (linux_xfer_osdata_processes): Pass num_cores to it.
6218 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6219 process name.
6220
c63528fc
AK
62212014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6222
6223 * target.c (memory_xfer_partial): Fix length arg in call to
6224 breakpoint_xfer_memory.
6225
d7b30f67
SDJ
62262014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6227
6228 PR tdep/16397
6229 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6230 number comes after the + or - signs. Adjust length of register
6231 name to be extracted.
6232
8838afaf
TT
62332014-02-20 Tom Tromey <tromey@redhat.com>
6234
6235 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6236 (ada_varobj_ops): Mark "extern".
6237
05227d14
TT
62382014-02-20 Tom Tromey <tromey@redhat.com>
6239
6240 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6241
1254eefc
DE
62422014-02-20 Doug Evans <xdje42@gmail.com>
6243
6244 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6245 All callers updated.
6246 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6247 All callers updated.
6248 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6249 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6250
adde2bff
DE
62512014-02-20 lin zuojian <manjian2006@gmail.com>
6252 Joel Brobecker <brobecker@adacore.com>
6253 Doug Evans <xdje42@gmail.com>
6254
6255 PR symtab/16581
6256 * dwarf2read.c (struct die_info): New member in_process.
6257 (reset_die_in_process): New function.
6258 (process_die): Set it at the start, reset when returning.
6259 (inherit_abstract_dies): Only call process_die if origin_child_die
6260 not already being processed.
6261
3be75f87
JB
62622014-02-20 Joel Brobecker <brobecker@adacore.com>
6263
6264 * windows-nat.c (handle_unload_dll): Add function documentation.
6265 (do_initial_windows_stuff): Add comment explaining why we wait
6266 until after inferior initialization has finished before
6267 processing all DLLs.
6268
47f7ffdb
JB
62692014-02-20 Joel Brobecker <brobecker@adacore.com>
6270
6271 * windows-nat.c (get_module_name): Delete.
6272 (windows_get_exec_module_filename): New function, mostly
6273 inspired from get_module_name.
6274 (windows_pid_to_exec_file): Replace call to get_module_name
6275 by call to windows_get_exec_module_filename.
6276
1cd9feab
JB
62772014-02-20 Joel Brobecker <brobecker@adacore.com>
6278
6279 * windows-nat.c (handle_load_dll): Rewrite this function's
6280 introductory comment. Remove code using get_module_name
6281 to get the DLL's name.
6282
ea39ad35
JB
62832014-02-20 Joel Brobecker <brobecker@adacore.com>
6284
6285 * windows-nat.c (get_windows_debug_event): Ignore
6286 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6287 if windows_initialization_done == 0.
6288 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6289 Adjust implementation to always load all DLLs.
6290 (do_initial_windows_stuff): Replace call to
6291 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6292
95060284
JB
62932014-02-20 Joel Brobecker <brobecker@adacore.com>
6294
6295 * windows-nat.c (_initialize_windows_nat): Deprecate the
6296 "dll-symbols" command. Turn the "add-shared-symbol-files"
6297 and "assf" aliases into commands, and deprecate them as well.
6298 * NEWS: Add entry explaining that "dll-symbols" and its two
6299 aliases are now deprecated.
6300
8d4fdb12
JB
63012014-02-20 Joel Brobecker <brobecker@adacore.com>
6302
6303 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6304 new-line in debug string. Remove trailing spaces.
6305
1b281443
SS
63062014-02-19 Stan Shebs <stan@codesourcery.com>
6307
6308 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6309
f7bd0f78
SC
63102014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6311
6312 * NEWS: Add entry for the new feature
6313 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6314 and class values.
6315
399ebc3d
SS
63162014-02-19 Stan Shebs <stan@codesourcery.com>
6317
6318 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6319
c658158d
PA
63202014-02-19 Pedro Alves <palves@redhat.com>
6321
6322 * common/ptid.h (struct ptid): Mention that process_stratum
6323 targets should prefer ptid.lwp.
6324
ba348170
PA
63252014-02-19 Pedro Alves <palves@redhat.com>
6326
6327 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6328 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6329 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6330 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6331 store remote thread ids rather than ptid.tid.
6332 (_initialize_remote): Adjust.
6333
ac01945b
TT
63342014-02-19 Tom Tromey <tromey@redhat.com>
6335
6336 * target.c (target_get_unwinder): Rewrite.
6337 (target_get_tailcall_unwinder): Rewrite.
6338 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6339 (record_btrace_to_get_tailcall_unwinder): New function.
6340 (init_record_btrace_ops): Update.
6341 * target.h (struct target_ops) <to_get_unwinder,
6342 to_get_tailcall_unwinder>: Now function pointers. Use
6343 TARGET_DEFAULT_RETURN.
6344
8476dc92
TT
63452014-02-19 Tom Tromey <tromey@redhat.com>
6346
6347 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6348 argument.
6349 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6350
c0eca49f
TT
63512014-02-19 Tom Tromey <tromey@redhat.com>
6352
6353 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6354 directly.
6355 * target-delegates.c: Rebuild.
6356 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6357 TARGET_DEFAULT_FUNC.
6358 * target.c (default_target_decr_pc_after_break): Rename from
6359 forward_target_decr_pc_after_break. Simplify.
6360 (target_decr_pc_after_break): Rely on delegation.
6361
596b6b39
TT
63622014-02-19 Tom Tromey <tromey@redhat.com>
6363
6364 * target.c (update_current_target): Do not INHERIT to_doc or
6365 to_magic. Do not de_fault to_open or to_close.
6366
b427c1bc
TT
63672014-02-19 Tom Tromey <tromey@redhat.com>
6368
6369 * gcore.h (objfile_find_memory_regions): Declare.
6370 * gcore.c (objfile_find_memory_regions): No longer static. Add
6371 "self" argument.
6372 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6373 * exec.c: Include gcore.h.
6374 (exec_set_find_memory_regions): Remove.
6375 (exec_find_memory_regions): Remove.
6376 (exec_do_find_memory_regions): Remove.
6377 (init_exec_ops): Update.
6378 * defs.h (exec_set_find_memory_regions): Remove.
6379
9b144037
TT
63802014-02-19 Tom Tromey <tromey@redhat.com>
6381
6382 * target-delegates.c: Rebuild.
6383 * target.h (struct target_ops) <to_extra_thread_info,
6384 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6385 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6386 not 0, in TARGET_DEFAULT_RETURN.
6387
555bbdeb
TT
63882014-02-19 Tom Tromey <tromey@redhat.com>
6389
6390 * target.c (complete_target_initialization): Remove casts. Use
6391 return_zero_has_execution.
6392 (return_zero): Add "ignore" argument.
6393 (return_zero_has_execution): New function.
6394 (init_dummy_target): Remove casts. Use
6395 return_zero_has_execution.
6396
be4ddd36
TT
63972014-02-19 Tom Tromey <tromey@redhat.com>
6398
6399 * target.c (update_current_target): Update comments. Do not
6400 INHERIT to_stratum.
6401
2117c711
TT
64022014-02-19 Tom Tromey <tromey@redhat.com>
6403
6404 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6405 needed.
6406 * corelow.c (core_read_description): Delegate when needed.
6407 * remote.c (remote_read_description): Delegate when needed.
6408 * target-delegates.c: Rebuild.
6409 * target.c (target_read_description): Rewrite.
6410 * target.h (struct target_ops) <to_read_description>: Update
6411 comment. Use TARGET_DEFAULT_RETURN.
6412
e88ef65c
TT
64132014-02-19 Tom Tromey <tromey@redhat.com>
6414
6415 * target-delegates.c: Rebuild.
6416 * target.c (update_current_target): Don't inherit or default
6417 to_can_run.
6418 (find_default_run_target): Check against delegate_can_run.
6419 * target.h (struct target_ops) <to_can_run>: Use
6420 TARGET_DEFAULT_RETURN.
6421
86a0854a
TT
64222014-02-19 Tom Tromey <tromey@redhat.com>
6423
6424 * target-delegates.c: Rebuild.
6425 * target.c (target_disconnect): Unconditionally delegate.
6426 * target.h (struct target_ops) <to_disconnect>: Use
6427 TARGET_DEFAULT_NORETURN.
6428
ee97f592
TT
64292014-02-19 Tom Tromey <tromey@redhat.com>
6430
6431 * record.c (record_stop): Unconditionally delegate.
6432 * target-delegates.c: Rebuild.
6433 * target.c (target_stop_recording): Unconditionally delegate.
6434 * target.h (struct target_ops) <to_stop_recording>: Use
6435 TARGET_DEFAULT_IGNORE.
6436
6dc7fcf4
TT
64372014-02-19 Tom Tromey <tromey@redhat.com>
6438
6439 * target-delegates.c: Rebuild.
6440 * target.c (target_enable_btrace): Unconditionally delegate.
6441 * target.h (struct target_ops) <to_enable_btrace>: Use
6442 TARGET_DEFAULT_NORETURN.
6443
eb5b20d4
TT
64442014-02-19 Tom Tromey <tromey@redhat.com>
6445
6446 * target-delegates.c: Rebuild.
6447 * target.c (target_read_btrace): Unconditionally delegate.
6448 * target.h (struct target_ops) <to_read_btrace>: Use
6449 TARGET_DEFAULT_NORETURN.
6450
9ace480d
TT
64512014-02-19 Tom Tromey <tromey@redhat.com>
6452
6453 * target-delegates.c: Rebuild.
6454 * target.c (target_teardown_btrace): Unconditionally delegate.
6455 * target.h (struct target_ops) <to_teardown_btrace>: Use
6456 TARGET_DEFAULT_NORETURN.
6457
8dc292d3
TT
64582014-02-19 Tom Tromey <tromey@redhat.com>
6459
6460 * target-delegates.c: Rebuild.
6461 * target.c (target_disable_btrace): Unconditionally delegate.
6462 * target.h (struct target_ops) <to_disable_btrace>: Use
6463 TARGET_DEFAULT_NORETURN.
6464
58a5184e
TT
64652014-02-19 Tom Tromey <tromey@redhat.com>
6466
6467 * target-delegates.c: Rebuild.
6468 * target.c (default_search_memory): New function.
6469 (simple_search_memory): Update comment.
6470 (target_search_memory): Unconditionally delegate.
6471 * target.h (struct target_ops) <to_search_memory>: Use
6472 TARGET_DEFAULT_FUNC.
6473
8de71aab
TT
64742014-02-19 Tom Tromey <tromey@redhat.com>
6475
6476 * auxv.c (default_auxv_parse): No longer static.
6477 (target_auxv_parse): Unconditionally delegate.
6478 * auxv.h (default_auxv_parse): Declare.
6479 * target-delegates.c: Rebuild.
6480 * target.c: Include auxv.h.
6481 * target.h (struct target_ops) <to_auxv_parse>: Use
6482 TARGET_DEFAULT_FUNC.
6483
6b2c5a57
TT
64842014-02-19 Tom Tromey <tromey@redhat.com>
6485
6486 * target-delegates.c: Rebuild.
6487 * target.c (target_memory_map): Unconditionally delegate.
6488 * target.h (struct target_ops) <to_memory_map>: Use
6489 TARGET_DEFAULT_RETURN.
6490
cbffc065
TT
64912014-02-19 Tom Tromey <tromey@redhat.com>
6492
6493 * target-delegates.c: Rebuild.
6494 * target.c (target_thread_alive): Unconditionally delegate.
6495 * target.h (struct target_ops) <to_thread_alive>: Use
6496 TARGET_DEFAULT_RETURN.
6497
f09e2107
TT
64982014-02-19 Tom Tromey <tromey@redhat.com>
6499
6500 * target-delegates.c: Rebuild.
6501 * target.c (target_save_record): Unconditionally delegate.
6502 * target.h (struct target_ops) <to_save_record>: Use
6503 TARGET_DEFAULT_NORETURN.
6504
07366925
TT
65052014-02-19 Tom Tromey <tromey@redhat.com>
6506
6507 * target-delegates.c: Rebuild.
6508 * target.c (target_delete_record): Unconditionally delegate.
6509 * target.h (struct target_ops) <to_delete_record>: Use
6510 TARGET_DEFAULT_NORETURN.
6511
dd2e9d25
TT
65122014-02-19 Tom Tromey <tromey@redhat.com>
6513
6514 * target-delegates.c: Rebuild.
6515 * target.c (target_record_is_replaying): Unconditionally
6516 delegate.
6517 * target.h (struct target_ops) <to_record_is_replaying>: Use
6518 TARGET_DEFAULT_RETURN.
6519
671e76cc
TT
65202014-02-19 Tom Tromey <tromey@redhat.com>
6521
6522 * target-delegates.c: Rebuild.
6523 * target.c (target_goto_record_begin): Unconditionally delegate.
6524 * target.h (struct target_ops) <to_goto_record_begin>: Use
6525 TARGET_DEFAULT_NORETURN.
6526
e9179bb3
TT
65272014-02-19 Tom Tromey <tromey@redhat.com>
6528
6529 * target-delegates.c: Rebuild.
6530 * target.c (target_goto_record_end): Unconditionally delegate.
6531 * target.h (struct target_ops) <to_goto_record_end>: Use
6532 TARGET_DEFAULT_NORETURN.
6533
05969c84
TT
65342014-02-19 Tom Tromey <tromey@redhat.com>
6535
6536 * target-delegates.c: Rebuild.
6537 * target.c (target_goto_record): Unconditionally delegate.
6538 * target.h (struct target_ops) <to_goto_record>: Use
6539 TARGET_DEFAULT_NORETURN.
6540
3679abfa
TT
65412014-02-19 Tom Tromey <tromey@redhat.com>
6542
6543 * target-delegates.c: Rebuild.
6544 * target.c (target_insn_history): Unconditionally delegate.
6545 * target.h (struct target_ops) <to_insn_history>: Use
6546 TARGET_DEFAULT_NORETURN.
6547
8444ab58
TT
65482014-02-19 Tom Tromey <tromey@redhat.com>
6549
6550 * target-delegates.c: Rebuild.
6551 * target.c (target_insn_history_from): Unconditionally delegate.
6552 * target.h (struct target_ops) <to_insn_history_from>: Use
6553 TARGET_DEFAULT_NORETURN.
6554
c29302cc
TT
65552014-02-19 Tom Tromey <tromey@redhat.com>
6556
6557 * target-delegates.c: Rebuild.
6558 * target.c (target_insn_history_range): Unconditionally delegate.
6559 * target.h (struct target_ops) <to_insn_history_range>: Use
6560 TARGET_DEFAULT_NORETURN.
6561
170049d4
TT
65622014-02-19 Tom Tromey <tromey@redhat.com>
6563
6564 * target-delegates.c: Rebuild.
6565 * target.c (target_call_history): Unconditionally delegate.
6566 * target.h (struct target_ops) <to_call_history>: Use
6567 TARGET_DEFAULT_NORETURN.
6568
16fc27d6
TT
65692014-02-19 Tom Tromey <tromey@redhat.com>
6570
6571 * target-delegates.c: Rebuild.
6572 * target.c (target_call_history_from): Unconditionally delegate.
6573 * target.h (struct target_ops) <to_call_history_from>: Use
6574 TARGET_DEFAULT_NORETURN.
6575
115d9817
TT
65762014-02-19 Tom Tromey <tromey@redhat.com>
6577
6578 * target-delegates.c: Rebuild.
6579 * target.c (target_call_history_range): Unconditionally delegate.
6580 * target.h (struct target_ops) <to_call_history_range>: Use
6581 TARGET_DEFAULT_NORETURN.
6582
eb276a6b
TT
65832014-02-19 Tom Tromey <tromey@redhat.com>
6584
6585 * target-delegates.c: Rebuild.
6586 * target.c (target_verify_memory): Unconditionally delegate.
6587 * target.h (struct target_ops) <to_verify_memory>: Use
6588 TARGET_DEFAULT_NORETURN.
6589
9e538d0d
TT
65902014-02-19 Tom Tromey <tromey@redhat.com>
6591
6592 * target-delegates.c: Rebuild.
6593 * target.c (target_core_of_thread): Unconditionally delegate.
6594 * target.h (struct target_ops) <to_core_of_thread>: Use
6595 TARGET_DEFAULT_RETURN.
6596
f6fb2925
TT
65972014-02-19 Tom Tromey <tromey@redhat.com>
6598
6599 * target-delegates.c: Rebuild.
6600 * target.c (target_flash_done): Unconditionally delegate.
6601 * target.h (struct target_ops) <to_flash_done>: Use
6602 TARGET_DEFAULT_NORETURN.
6603
e8a6c6ac
TT
66042014-02-19 Tom Tromey <tromey@redhat.com>
6605
6606 * target-delegates.c: Rebuild.
6607 * target.c (target_flash_erase): Unconditionally delegate.
6608 * target.h (struct target_ops) <to_flash_erase>: Use
6609 TARGET_DEFAULT_NORETURN.
6610
7e35c012
TT
66112014-02-19 Tom Tromey <tromey@redhat.com>
6612
6613 * target-delegates.c: Rebuild.
6614 * target.c (target_get_section_table): Unconditionally delegate.
6615 * target.h (struct target_ops) <to_get_section_table>: Use
6616 TARGET_DEFAULT_RETURN.
6617
770234d3
TT
66182014-02-19 Tom Tromey <tromey@redhat.com>
6619
6620 * target-delegates.c: Rebuild.
6621 * target.c (target_pid_to_str): Unconditionally delegate.
6622 (init_dummy_target): Don't initialize to_pid_to_str.
6623 (default_pid_to_str): Rename from dummy_pid_to_str.
6624 * target.h (struct target_ops) <to_pid_to_str>: Use
6625 TARGET_DEFAULT_FUNC.
6626
09b0dc2b
TT
66272014-02-19 Tom Tromey <tromey@redhat.com>
6628
6629 * target-delegates.c: Rebuild.
6630 * target.c (target_find_new_threads): Unconditionally delegate.
6631 * target.h (struct target_ops) <to_find_new_threads>: Use
6632 TARGET_DEFAULT_RETURN.
6633
7d4f8efa
TT
66342014-02-19 Tom Tromey <tromey@redhat.com>
6635
6636 * target-delegates.c: Rebuild.
6637 * target.c (target_program_signals): Unconditionally delegate.
6638 * target.h (struct target_ops) <to_program_signals>: Use
6639 TARGET_DEFAULT_IGNORE.
6640
035cad7f
TT
66412014-02-19 Tom Tromey <tromey@redhat.com>
6642
6643 * target-delegates.c: Rebuild.
6644 * target.c (target_pass_signals): Unconditionally delegate.
6645 * target.h (struct target_ops) <to_pass_signals>: Use
6646 TARGET_DEFAULT_IGNORE.
6647
8d657035
TT
66482014-02-19 Tom Tromey <tromey@redhat.com>
6649
6650 * target-delegates.c: Rebuild.
6651 * target.c (default_mourn_inferior): New function.
6652 (target_mourn_inferior): Unconditionally delegate.
6653 * target.h (struct target_ops) <to_mourn_inferior>: Use
6654 TARGET_DEFAULT_FUNC.
6655
098dba18
TT
66562014-02-19 Tom Tromey <tromey@redhat.com>
6657
6658 * target-delegates.c: Rebuild.
6659 * target.c (default_follow_fork): New function.
6660 (target_follow_fork): Unconditionally delegate.
6661 * target.h (struct target_ops) <to_follow_fork>: Use
6662 TARGET_DEFAULT_FUNC.
6663
423a4807
TT
66642014-02-19 Tom Tromey <tromey@redhat.com>
6665
6666 * target-delegates.c: Rebuild.
6667 * target.c (target_kill): Unconditionally delegate.
6668 * target.h (struct target_ops) <to_kill>: Use
6669 TARGET_DEFAULT_NORETURN.
6670
6c7e5e5c
TT
66712014-02-19 Tom Tromey <tromey@redhat.com>
6672
6673 * target-delegates.c: Rebuild.
6674 * target.c (target_masked_watch_num_registers): Unconditionally
6675 delegate.
6676 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6677 Use TARGET_DEFAULT_RETURN.
6678
8b1c364c
TT
66792014-02-19 Tom Tromey <tromey@redhat.com>
6680
6681 * target-delegates.c: Rebuild.
6682 * target.c (target_remove_mask_watchpoint): Unconditionally
6683 delegate.
6684 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6685 TARGET_DEFAULT_RETURN.
6686
cd4ae029
TT
66872014-02-19 Tom Tromey <tromey@redhat.com>
6688
6689 * target-delegates.c: Rebuild.
6690 * target.c (target_insert_mask_watchpoint): Unconditionally
6691 delegate.
6692 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6693 TARGET_DEFAULT_RETURN.
6694
a134316b
TT
66952014-02-19 Tom Tromey <tromey@redhat.com>
6696
6697 * target-delegates.c: Rebuild.
6698 * target.c (target_ranged_break_num_registers): Unconditionally
6699 delegate.
6700 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6701 Use TARGET_DEFAULT_RETURN.
6702
ad5989bd
TT
67032014-02-19 Tom Tromey <tromey@redhat.com>
6704
6705 * target-delegates.c: Rebuild.
6706 * target.c (target_fetch_registers): Unconditionally delegate.
6707 * target.h (struct target_ops) <to_fetch_registers>: Use
6708 TARGET_DEFAULT_NORETURN.
6709
46ee7e8d
TT
67102014-02-19 Tom Tromey <tromey@redhat.com>
6711
6712 * target-delegates.c: Rebuild.
6713 * target.c (update_current_target): Don't inherit or default
6714 to_stop.
6715 * target.h (struct target_ops) <to_stop>: Use
6716 TARGET_DEFAULT_IGNORE.
6717
843f59ed
TT
67182014-02-19 Tom Tromey <tromey@redhat.com>
6719
6720 * target-delegates.c: Rebuild.
6721 * target.c (update_current_target): Don't inherit or default
6722 to_can_run_breakpoint_commands.
6723 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6724 Use TARGET_DEFAULT_RETURN.
6725
ccfde2a0
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_supports_evaluation_of_breakpoint_conditions.
6731 * target.h (struct target_ops)
6732 <to_supports_evaluation_of_breakpoint_conditions>: Use
6733 TARGET_DEFAULT_RETURN.
6734
0de91722
TT
67352014-02-19 Tom Tromey <tromey@redhat.com>
6736
6737 * target-delegates.c: Rebuild.
6738 * target.c (update_current_target): Don't inherit or default
6739 to_augmented_libraries_svr4_read.
6740 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6741 Use TARGET_DEFAULT_RETURN.
6742
9a7d8b48
TT
67432014-02-19 Tom Tromey <tromey@redhat.com>
6744
6745 * target-delegates.c: Rebuild.
6746 * target.c (update_current_target): Don't inherit or default
6747 to_can_use_agent.
6748 * target.h (struct target_ops) <to_can_use_agent>: Use
6749 TARGET_DEFAULT_RETURN.
6750
d9db5b21
TT
67512014-02-19 Tom Tromey <tromey@redhat.com>
6752
6753 * target-delegates.c: Rebuild.
6754 * target.c (update_current_target): Don't inherit or default
6755 to_use_agent.
6756 * target.h (struct target_ops) <to_use_agent>: Use
6757 TARGET_DEFAULT_NORETURN.
6758
92155eeb
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_traceframe_info.
6764 (return_null): Remove.
6765 * target.h (struct target_ops) <to_traceframe_info>: Use
6766 TARGET_DEFAULT_RETURN.
6767
d6522a22
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_markers_by_strid.
6773 * target.h (struct target_ops)
6774 <to_static_tracepoint_markers_by_strid>: Use
6775 TARGET_DEFAULT_NORETURN.
6776
4c3e4425
TT
67772014-02-19 Tom Tromey <tromey@redhat.com>
6778
6779 * target-delegates.c: Rebuild.
6780 * target.c (update_current_target): Don't inherit or default
6781 to_static_tracepoint_marker_at.
6782 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6783 Use TARGET_DEFAULT_RETURN.
6784
dcd6917f
TT
67852014-02-19 Tom Tromey <tromey@redhat.com>
6786
6787 * target-delegates.c: Rebuild.
6788 * target.c (update_current_target): Don't inherit or default
6789 to_set_permissions.
6790 * target.h (struct target_ops) <to_set_permissions>: Use
6791 TARGET_DEFAULT_IGNORE.
6792
22bcceee
TT
67932014-02-19 Tom Tromey <tromey@redhat.com>
6794
6795 * target-delegates.c: Rebuild.
6796 * target.c (update_current_target): Don't inherit or default
6797 to_get_tib_address.
6798 * target.h (struct target_ops) <to_get_tib_address>: Use
6799 TARGET_DEFAULT_NORETURN.
6800
8586ccaa
TT
68012014-02-19 Tom Tromey <tromey@redhat.com>
6802
6803 * target-delegates.c: Rebuild.
6804 * target.c (update_current_target): Don't inherit or default
6805 to_set_trace_notes.
6806 * target.h (struct target_ops) <to_set_trace_notes>: Use
6807 TARGET_DEFAULT_RETURN.
6808
91df8d1d
TT
68092014-02-19 Tom Tromey <tromey@redhat.com>
6810
6811 * target-delegates.c: Rebuild.
6812 * target.c (update_current_target): Don't initialize
6813 to_set_trace_buffer_size.
6814 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6815 TARGET_DEFAULT_IGNORE.
6816
8d526939
TT
68172014-02-19 Tom Tromey <tromey@redhat.com>
6818
6819 * target-delegates.c: Rebuild.
6820 * target.c (update_current_target): Don't inherit or default
6821 to_set_circular_trace_buffer.
6822 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6823 TARGET_DEFAULT_IGNORE.
6824
0bcfeddf
TT
68252014-02-19 Tom Tromey <tromey@redhat.com>
6826
6827 * target-delegates.c: Rebuild.
6828 * target.c (update_current_target): Don't inherit or default
6829 to_set_disconnected_tracing.
6830 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6831 TARGET_DEFAULT_IGNORE.
6832
9249843f
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_min_fast_tracepoint_insn_len.
6838 (return_minus_one): Remove.
6839 * target.h (struct target_ops)
6840 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6841
ace92e7d
TT
68422014-02-19 Tom Tromey <tromey@redhat.com>
6843
6844 * target-delegates.c: Rebuild.
6845 * target.c (update_current_target): Don't inherit or default
6846 to_get_raw_trace_data.
6847 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6848 TARGET_DEFAULT_NORETURN.
6849
08120467
TT
68502014-02-19 Tom Tromey <tromey@redhat.com>
6851
6852 * target-delegates.c: Rebuild.
6853 * target.c (update_current_target): Don't inherit or default
6854 to_upload_trace_state_variables.
6855 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6856 Use TARGET_DEFAULT_RETURN.
6857
1e949b00
TT
68582014-02-19 Tom Tromey <tromey@redhat.com>
6859
6860 * target-delegates.c: Rebuild.
6861 * target.c (update_current_target): Don't inherit or default
6862 to_upload_tracepoints.
6863 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6864 TARGET_DEFAULT_RETURN.
6865
a2e6c147
TT
68662014-02-19 Tom Tromey <tromey@redhat.com>
6867
6868 * target-delegates.c: Rebuild.
6869 * target.c (update_current_target): Don't inherit or default
6870 to_save_trace_data.
6871 * target.h (struct target_ops) <to_save_trace_data>: Use
6872 TARGET_DEFAULT_NORETURN.
6873
959bcd0b
TT
68742014-02-19 Tom Tromey <tromey@redhat.com>
6875
6876 * target-delegates.c: Rebuild.
6877 * target.c (update_current_target): Don't inherit or default
6878 to_get_trace_state_variable_value.
6879 * target.h (struct target_ops)
6880 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6881
afc94e66
TT
68822014-02-19 Tom Tromey <tromey@redhat.com>
6883
6884 * target-delegates.c: Rebuild.
6885 * target.c (update_current_target): Don't inherit or default
6886 to_trace_find.
6887 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6888
e51c07ea
TT
68892014-02-19 Tom Tromey <tromey@redhat.com>
6890
6891 * target-delegates.c: Rebuild.
6892 * target.c (update_current_target): Don't inherit or default
6893 to_trace_stop.
6894 * target.h (struct target_ops) <to_trace_stop>: Use
6895 TARGET_DEFAULT_NORETURN.
6896
6fea14cd
TT
68972014-02-19 Tom Tromey <tromey@redhat.com>
6898
6899 * target-delegates.c: Rebuild.
6900 * target.c (update_current_target): Don't inherit or default
6901 to_get_tracepoint_status.
6902 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6903 TARGET_DEFAULT_NORETURN.
6904
4072d4ff
TT
69052014-02-19 Tom Tromey <tromey@redhat.com>
6906
6907 * target-delegates.c: Rebuild.
6908 * target.c (update_current_target): Don't inherit or default
6909 to_get_trace_status.
6910 * target.h (struct target_ops) <to_get_trace_status>: Use
6911 TARGET_DEFAULT_RETURN.
6912
25da2e80
TT
69132014-02-19 Tom Tromey <tromey@redhat.com>
6914
6915 * target-delegates.c: Rebuild.
6916 * target.c (update_current_target): Don't inherit or default
6917 to_trace_start.
6918 * target.h (struct target_ops) <to_trace_start>: Use
6919 TARGET_DEFAULT_NORETURN.
6920
86dd181d
TT
69212014-02-19 Tom Tromey <tromey@redhat.com>
6922
6923 * target-delegates.c: Rebuild.
6924 * target.c (update_current_target): Don't inherit or default
6925 to_trace_set_readonly_regions.
6926 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6927 Use TARGET_DEFAULT_NORETURN.
6928
05c41993
TT
69292014-02-19 Tom Tromey <tromey@redhat.com>
6930
6931 * target-delegates.c: Rebuild.
6932 * target.c (update_current_target): Don't inherit or default
6933 to_disable_tracepoint.
6934 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6935 TARGET_DEFAULT_NORETURN.
6936
151f70f1
TT
69372014-02-19 Tom Tromey <tromey@redhat.com>
6938
6939 * target-delegates.c: Rebuild.
6940 * target.c (update_current_target): Don't inherit or default
6941 to_enable_tracepoint.
6942 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6943 TARGET_DEFAULT_NORETURN.
6944
94eb98b9
TT
69452014-02-19 Tom Tromey <tromey@redhat.com>
6946
6947 * target-delegates.c: Rebuild.
6948 * target.c (update_current_target): Don't inherit or default
6949 to_download_trace_state_variable.
6950 * target.h (struct target_ops) <to_download_trace_state_variable>:
6951 Use TARGET_DEFAULT_NORETURN.
6952
719acc4a
TT
69532014-02-19 Tom Tromey <tromey@redhat.com>
6954
6955 * target-delegates.c: Rebuild.
6956 * target.c (update_current_target): Don't inherit or default
6957 to_can_download_tracepoint.
6958 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6959 TARGET_DEFAULT_RETURN.
6960
9a980a22
TT
69612014-02-19 Tom Tromey <tromey@redhat.com>
6962
6963 * target-delegates.c: Rebuild.
6964 * target.c (update_current_target): Don't inherit or default
6965 to_download_tracepoint.
6966 * target.h (struct target_ops) <to_download_tracepoint>: Use
6967 TARGET_DEFAULT_NORETURN.
6968
5536135b
TT
69692014-02-19 Tom Tromey <tromey@redhat.com>
6970
6971 * target-delegates.c: Rebuild.
6972 * target.c (update_current_target): Don't inherit or default
6973 to_trace_init.
6974 * target.h (struct target_ops) <to_trace_init>: Use
6975 TARGET_DEFAULT_RETURN.
6976
9409d39e
TT
69772014-02-19 Tom Tromey <tromey@redhat.com>
6978
6979 * target-delegates.c: Rebuild.
6980 * target.c (update_current_target): Don't inherit or default
6981 to_supports_string_tracing.
6982 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6983 TARGET_DEFAULT_RETURN.
6984
aab1b22d
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_enable_disable_tracepoint.
6990 * target.h (struct target_ops)
6991 <to_supports_enable_disable_tracepoint>: Use
6992 TARGET_DEFAULT_RETURN.
6993
a7304748
TT
69942014-02-19 Tom Tromey <tromey@redhat.com>
6995
6996 * target-delegates.c: Rebuild.
6997 * target.c (update_current_target): Don't inherit or default
6998 to_supports_multi_process.
6999 * target.h (struct target_ops) <to_supports_multi_process>: Use
7000 TARGET_DEFAULT_RETURN.
7001
4229b31d
TT
70022014-02-19 Tom Tromey <tromey@redhat.com>
7003
7004 * target-delegates.c: Rebuild.
7005 * target.c (update_current_target): Don't inherit or default
7006 to_get_ada_task_ptid.
7007 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
7008 TARGET_DEFAULT_FUNC.
7009
43eba180
TT
70102014-02-19 Tom Tromey <tromey@redhat.com>
7011
7012 * target-delegates.c: Rebuild.
7013 * target.c (update_current_target): Don't inherit or default
7014 to_thread_architecture.
7015 * target.h (struct target_ops) <to_thread_architecture>: Use
7016 TARGET_DEFAULT_FUNC.
7017
fe31bf5b
TT
70182014-02-19 Tom Tromey <tromey@redhat.com>
7019
7020 * target-delegates.c: Rebuild.
7021 * target.c (update_current_target): Don't inherit or default
7022 to_execution_direction.
7023 * target.h (struct target_ops) <to_execution_direction>: Use
7024 TARGET_DEFAULT_FUNC.
7025
53e1cfc7
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_can_execute_reverse.
7031 * target.h (struct target_ops) <to_can_execute_reverse>: Use
7032 TARGET_DEFAULT_RETURN.
7033 (target_can_execute_reverse): Unconditionally delegate.
7034
9bb9d61d
TT
70352014-02-19 Tom Tromey <tromey@redhat.com>
7036
7037 * target-delegates.c: Rebuild.
7038 * target.c (update_current_target): Don't inherit or default
7039 to_goto_bookmark.
7040 (dummy_goto_bookmark): Remove.
7041 (init_dummy_target): Don't inherit or default to_goto_bookmark.
7042 * target.h (struct target_ops) <to_goto_bookmark>: Use
7043 TARGET_DEFAULT_NORETURN.
7044
3dbafbbb
TT
70452014-02-19 Tom Tromey <tromey@redhat.com>
7046
7047 * target-delegates.c: Rebuild.
7048 * target.c (update_current_target): Don't inherit or default
7049 to_get_bookmark.
7050 (dummy_get_bookmark): Remove.
7051 (init_dummy_target): Don't inherit or default to_get_bookmark.
7052 * target.h (struct target_ops) <to_get_bookmark>: Use
7053 TARGET_DEFAULT_NORETURN
7054
16f796b1
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_make_corefile_notes.
7060 (init_dummy_target): Don't initialize to_make_corefile_notes.
7061 * target.h (struct target_ops) <to_make_corefile_notes>: Use
7062 TARGET_DEFAULT_FUNC.
7063
0b5a2719
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_find_memory_regions.
7069 (init_dummy_target): Don't initialize to_find_memory_regions.
7070 * target.h (struct target_ops) <to_find_memory_regions>: Use
7071 TARGET_DEFAULT_FUNC.
7072
d9cb0195
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_log_command.
7078 * target.h (struct target_ops) <to_log_command>: Use
7079 TARGET_DEFAULT_IGNORE.
7080 (target_log_command): Unconditionally delegate.
7081
830ca330
TT
70822014-02-19 Tom Tromey <tromey@redhat.com>
7083
7084 * target-delegates.c: Rebuild.
7085 * target.c (update_current_target): Don't inherit or default
7086 to_pid_to_exec_file.
7087 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7088 TARGET_DEFAULT_RETURN.
7089
825828fc
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_thread_name.
7095 (target_thread_name): Unconditionally delegate.
7096 * target.h (struct target_ops) <to_thread_name>: Use
7097 TARGET_DEFAULT_RETURN.
7098
4a7e6dda
TT
70992014-02-19 Tom Tromey <tromey@redhat.com>
7100
7101 * target-delegates.c: Rebuild.
7102 * target.c (update_current_target): Don't inherit or default
7103 to_extra_thread_info.
7104 * target.h (struct target_ops) <to_extra_thread_info>: Use
7105 TARGET_DEFAULT_RETURN.
7106
0db88c1d
TT
71072014-02-19 Tom Tromey <tromey@redhat.com>
7108
7109 * target-delegates.c: Rebuild.
7110 * target.c (update_current_target): Don't inherit or default
7111 to_has_exited.
7112 * target.h (struct target_ops) <to_has_exited>: Use
7113 TARGET_DEFAULT_RETURN..
7114
6a9fa051
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_set_syscall_catchpoint.
7120 (return_one): Remove.
7121 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7122 TARGET_DEFAULT_RETURN.
7123
62f64d7a
TT
71242014-02-19 Tom Tromey <tromey@redhat.com>
7125
7126 * target-delegates.c: Rebuild.
7127 * target.c (update_current_target): Don't inherit or default
7128 to_insert_exec_catchpoint.
7129 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7130 TARGET_DEFAULT_RETURN.
7131
cda0f38c
TT
71322014-01-08 Tom Tromey <tromey@redhat.com>
7133
7134 * target-delegates.c: Rebuild.
7135 * target.c (update_current_target): Don't inherit or default
7136 to_insert_exec_catchpoint.
7137 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7138 TARGET_DEFAULT_RETURN.
7139
95c3375e
TT
71402014-02-19 Tom Tromey <tromey@redhat.com>
7141
7142 * target-delegates.c: Rebuild.
7143 * target.c (update_current_target): Don't inherit or default
7144 to_remove_vfork_catchpoint.
7145 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7146 TARGET_DEFAULT_RETURN.
7147
7e18a8dc
TT
71482014-02-19 Tom Tromey <tromey@redhat.com>
7149
7150 * target-delegates.c: Rebuild.
7151 * target.c (update_current_target): Don't inherit or default
7152 to_insert_vfork_catchpoint.
7153 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7154 TARGET_DEFAULT_RETURN.
7155
e1a21fb7
TT
71562014-02-19 Tom Tromey <tromey@redhat.com>
7157
7158 * target-delegates.c: Rebuild.
7159 * target.c (update_current_target): Don't inherit or default
7160 to_remove_fork_catchpoint.
7161 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7162 TARGET_DEFAULT_RETURN.
7163
5958ebeb
TT
71642014-02-19 Tom Tromey <tromey@redhat.com>
7165
7166 * target-delegates.c: Rebuild.
7167 * target.c (update_current_target): Don't inherit or default
7168 to_insert_fork_catchpoint.
7169 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7170 TARGET_DEFAULT_RETURN.
7171
340ba4bf
TT
71722014-02-19 Tom Tromey <tromey@redhat.com>
7173
7174 * target-delegates.c: Rebuild.
7175 * target.c (update_current_target): Don't inherit or default
7176 to_post_startup_inferior.
7177 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7178 TARGET_DEFAULT_IGNORE.
7179
7634da87
TT
71802014-02-19 Tom Tromey <tromey@redhat.com>
7181
7182 * target-delegates.c: Rebuild.
7183 * target.c (update_current_target): Don't inherit or default
7184 to_load.
7185 * target.h (struct target_ops) <to_load>: Use
7186 TARGET_DEFAULT_NORETURN.
7187
e19e919f
TT
71882014-02-19 Tom Tromey <tromey@redhat.com>
7189
7190 * target-delegates.c: Rebuild.
7191 * target.c (update_current_target): Don't inherit or default
7192 to_terminal_info.
7193 * target.h (struct target_ops) <to_terminal_info>: Use
7194 TARGET_DEFAULT_FUNC.
7195
c6ea8f79
TT
71962014-02-19 Tom Tromey <tromey@redhat.com>
7197
7198 * target-delegates.c: Rebuild.
7199 * target.c (update_current_target): Don't inherit or default
7200 to_terminal_save_ours.
7201 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7202 TARGET_DEFAULT_IGNORE.
7203
e4a733f1
TT
72042014-02-19 Tom Tromey <tromey@redhat.com>
7205
7206 * target-delegates.c: Rebuild.
7207 * target.c (update_current_target): Don't inherit or default
7208 to_terminal_ours.
7209 * target.h (struct target_ops) <to_terminal_ours>: Use
7210 TARGET_DEFAULT_IGNORE.
7211
74fcbef9
TT
72122014-02-19 Tom Tromey <tromey@redhat.com>
7213
7214 * target-delegates.c: Rebuild.
7215 * target.c (update_current_target): Don't inherit or default
7216 to_terminal_ours_for_output.
7217 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7218 TARGET_DEFAULT_IGNORE.
7219
ddeaacc9
TT
72202014-02-19 Tom Tromey <tromey@redhat.com>
7221
7222 * target-delegates.c: Rebuild.
7223 * target.c (update_current_target): Don't inherit or default
7224 to_terminal_inferior.
7225 * target.h (struct target_ops) <to_terminal_inferior>: Use
7226 TARGET_DEFAULT_IGNORE.
7227
0343661d
TT
72282014-02-19 Tom Tromey <tromey@redhat.com>
7229
7230 * target-delegates.c: Rebuild.
7231 * target.c (update_current_target): Don't inherit or default
7232 to_terminal_init.
7233 * target.h (struct target_ops) <to_terminal_init>: Use
7234 TARGET_DEFAULT_IGNORE.
7235
77cdffe9
TT
72362014-02-19 Tom Tromey <tromey@redhat.com>
7237
7238 * target-delegates.c: Rebuild.
7239 * target.c (update_current_target): Don't inherit or default
7240 to_can_accel_watchpoint_condition.
7241 * target.h (struct target_ops)
7242 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7243
d03655e4
TT
72442014-02-19 Tom Tromey <tromey@redhat.com>
7245
7246 * target-delegates.c: Rebuild.
7247 * target.c (update_current_target): Don't inherit or default
7248 to_region_ok_for_hw_watchpoint.
7249 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7250 Use TARGET_DEFAULT_FUNC.
7251
65f160a9
TT
72522014-02-19 Tom Tromey <tromey@redhat.com>
7253
7254 * target-delegates.c: Rebuild.
7255 * target.c (update_current_target): Don't inherit or default
7256 to_watchpoint_addr_within_range.
7257 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7258 Use TARGET_DEFAULT_FUNC.
7259
61dd109f
TT
72602014-02-19 Tom Tromey <tromey@redhat.com>
7261
7262 * target-delegates.c: Rebuild.
7263 * target.c (update_current_target): Don't inherit or default
7264 to_remove_watchpoint.
7265 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7266 TARGET_DEFAULT_NORETURN.
7267
016facd4
TT
72682014-02-19 Tom Tromey <tromey@redhat.com>
7269
7270 * target-delegates.c: Rebuild.
7271 * target.c (update_current_target): Don't inherit or default
7272 to_insert_watchpoint.
7273 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7274 TARGET_DEFAULT_RETURN.
7275
418dabac
TT
72762014-02-19 Tom Tromey <tromey@redhat.com>
7277
7278 * target-delegates.c: Rebuild.
7279 * target.c (update_current_target): Don't inherit or default
7280 to_remove_hw_breakpoint.
7281 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7282 TARGET_DEFAULT_RETURN.
7283
61b371f9
TT
72842014-02-19 Tom Tromey <tromey@redhat.com>
7285
7286 * target-delegates.c: Rebuild.
7287 * target.c (update_current_target): Don't inherit or default
7288 to_insert_hw_breakpoint.
7289 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7290 TARGET_DEFAULT_RETURN.
7291
52b51d06
TT
72922014-02-19 Tom Tromey <tromey@redhat.com>
7293
7294 * target-delegates.c: Rebuild.
7295 * target.c (update_current_target): Don't inherit or default
7296 to_can_use_hw_breakpoint.
7297 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7298 TARGET_DEFAULT_RETURN.
7299
f86e59b2
TT
73002014-02-19 Tom Tromey <tromey@redhat.com>
7301
7302 * target-delegates.c: Rebuild.
7303 * target.c (update_current_target): Don't inherit or default
7304 to_files_info.
7305 * target.h (struct target_ops) <to_files_info>: Use
7306 TARGET_DEFAULT_IGNORE.
7307
6c628163
TT
73082014-02-19 Tom Tromey <tromey@redhat.com>
7309
7310 * target-delegates.c: Rebuild.
7311 * target.c (update_current_target): Don't inherit or default
7312 to_store.
7313 * target.h (struct target_ops) <to_store>: Use
7314 TARGET_DEFAULT_NORETURN.
7315
bebd3233
TT
73162014-02-19 Tom Tromey <tromey@redhat.com>
7317
7318 * target-delegates.c: Rebuild.
7319 * target.c (update_current_target): Don't inherit or default
7320 to_post_attach.
7321 * target.h (struct target_ops) <to_post_attach>: Use
7322 TARGET_DEFAULT_IGNORE.
7323
a53f3625
TT
73242014-02-19 Tom Tromey <tromey@redhat.com>
7325
7326 * target-delegates.c: Rebuild.
7327 * target.c (update_current_target): Don't inherit or default
7328 to_rcmd.
7329 (default_rcmd): New function.
7330 (do_monitor_command): Unconditionally delegate.
7331 * target.h (struct target_ops) <to_rmcd>: Use
7332 TARGET_DEFAULT_FUNC.
7333
e9a29200
TT
73342014-02-19 Tom Tromey <tromey@redhat.com>
7335
7336 * target-delegates.c: Rebuild.
7337 * target.c (init_dummy_target): Don't initialize to_attach.
7338 (target_attach): Unconditionally delegate.
7339 * target.h (struct target_ops) <to_attach>: Use
7340 TARGET_DEFAULT_FUNC.
7341
09da0d0a
TT
73422014-02-19 Tom Tromey <tromey@redhat.com>
7343
7344 * target-delegates.c: Rebuild.
7345 * target.c (target_detach): Unconditionally delegate.
7346 (init_dummy_target): Don't initialize to_detach.
7347 * target.h (struct target_ops) <to_detach>: Use
7348 TARGET_DEFAULT_IGNORE.
7349
5436ff03
TT
73502014-02-19 Tom Tromey <tromey@redhat.com>
7351
7352 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7353 Add argument.
7354 (target_augmented_libraries_svr4_read): Add argument.
7355 * target.c (update_current_target): Update.
7356 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7357 argument.
7358
f0d960ea
TT
73592014-02-19 Tom Tromey <tromey@redhat.com>
7360
7361 * target.h (struct target_ops) <to_call_history_range>: Add
7362 argument.
7363 * target.c (target_call_history_range): Add argument.
7364 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7365 argument.
7366 (record_btrace_call_history_from): Update.
7367
ec0aea04
TT
73682014-02-19 Tom Tromey <tromey@redhat.com>
7369
7370 * target.h (struct target_ops) <to_call_history_from>: Add
7371 argument.
7372 * target.c (target_call_history_from): Add argument.
7373 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7374 argument.
7375
5df2fcba
TT
73762014-02-19 Tom Tromey <tromey@redhat.com>
7377
7378 * target.h (struct target_ops) <to_call_history>: Add argument.
7379 * target.c (target_call_history): Add argument.
7380 * record-btrace.c (record_btrace_call_history): Add 'self'
7381 argument.
7382
4e99c6b7
TT
73832014-02-19 Tom Tromey <tromey@redhat.com>
7384
7385 * target.h (struct target_ops) <to_insn_history_range>: Add
7386 argument.
7387 * target.c (target_insn_history_range): Add argument.
7388 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7389 argument.
7390 (record_btrace_insn_history_from): Update.
7391
9abc3ff3
TT
73922014-02-19 Tom Tromey <tromey@redhat.com>
7393
7394 * target.h (struct target_ops) <to_insn_history_from>: Add
7395 argument.
7396 * target.c (target_insn_history_from): Add argument.
7397 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7398 argument.
7399
7a6c5609
TT
74002014-02-19 Tom Tromey <tromey@redhat.com>
7401
7402 * target.h (struct target_ops) <to_insn_history>: Add argument.
7403 * target.c (target_insn_history): Add argument.
7404 * record-btrace.c (record_btrace_insn_history): Add 'self'
7405 argument.
7406
606183ac
TT
74072014-02-19 Tom Tromey <tromey@redhat.com>
7408
7409 * target.h (struct target_ops) <to_goto_record>: Add argument.
7410 * target.c (target_goto_record): Add argument.
7411 * record-full.c (record_full_goto): Add 'self' argument.
7412 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7413
307a1b91
TT
74142014-02-19 Tom Tromey <tromey@redhat.com>
7415
7416 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7417 * target.c (target_goto_record_end): Add argument.
7418 * record-full.c (record_full_goto_end): Add 'self' argument.
7419 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7420
08475817
TT
74212014-02-19 Tom Tromey <tromey@redhat.com>
7422
7423 * target.h (struct target_ops) <to_goto_record_begin>: Add
7424 argument.
7425 * target.c (target_goto_record_begin): Add argument.
7426 * record-full.c (record_full_goto_begin): Add 'self' argument.
7427 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7428 argument.
7429
1c63c994
TT
74302014-02-19 Tom Tromey <tromey@redhat.com>
7431
7432 * target.h (struct target_ops) <to_record_is_replaying>: Add
7433 argument.
7434 * target.c (target_record_is_replaying): Add argument.
7435 * record-full.c (record_full_is_replaying): Add 'self' argument.
7436 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7437 argument.
7438 (record_btrace_xfer_partial, record_btrace_store_registers)
7439 (record_btrace_prepare_to_store, record_btrace_resume)
7440 (record_btrace_wait, record_btrace_decr_pc_after_break)
7441 (record_btrace_find_new_threads, record_btrace_thread_alive):
7442 Update.
7443
d1b55219
TT
74442014-02-19 Tom Tromey <tromey@redhat.com>
7445
7446 * target.h (struct target_ops) <to_delete_record>: Add argument.
7447 * target.c (target_delete_record): Add argument.
7448 * record-full.c (record_full_delete): Add 'self' argument.
7449
1390f529
TT
74502014-02-19 Tom Tromey <tromey@redhat.com>
7451
7452 * target.h (struct target_ops) <to_save_record>: Add argument.
7453 * target.c (target_save_record): Add argument.
7454 * record-full.c (record_full_save): Add 'self' argument.
7455 (record_full_save): Add 'self' argument.
7456
630d6a4a
TT
74572014-02-19 Tom Tromey <tromey@redhat.com>
7458
7459 * target.h (struct target_ops) <to_info_record>: Add argument.
7460 * target.c (target_info_record): Add argument.
7461 * record.c (info_record_command): Add argument.
7462 * record-full.c (record_full_info): Add 'self' argument.
7463 * record-btrace.c (record_btrace_info): Add 'self' argument.
7464
c6cd7c02
TT
74652014-02-19 Tom Tromey <tromey@redhat.com>
7466
7467 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7468 * target.c (target_stop_recording): Add argument.
7469 * record.c (record_stop): Add argument.
7470 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7471 argument.
7472
39c49f83
TT
74732014-02-19 Tom Tromey <tromey@redhat.com>
7474
7475 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7476 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7477 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7478 argument.
7479 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7480 (_initialize_amd64_linux_nat): Use it.
7481 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7482 (_initialize_i386_linux_nat): Use it.
7483
1777056d
TT
74842014-02-19 Tom Tromey <tromey@redhat.com>
7485
7486 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7487 * target.c (target_teardown_btrace): Add argument.
7488 * remote.c (remote_teardown_btrace): Add 'self' argument.
7489 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7490 argument.
7491 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7492 argument.
7493
25e95349
TT
74942014-02-19 Tom Tromey <tromey@redhat.com>
7495
7496 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7497 * target.c (target_disable_btrace): Add argument.
7498 * remote.c (remote_disable_btrace): Add 'self' argument.
7499 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7500 argument.
7501 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7502 argument.
7503
e3c49f88
TT
75042014-02-19 Tom Tromey <tromey@redhat.com>
7505
7506 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7507 * target.c (target_enable_btrace): Add argument.
7508 * remote.c (remote_enable_btrace): Add 'self' argument.
7509 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7510 argument.
7511 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7512 argument.
7513
fe38f897
TT
75142014-02-19 Tom Tromey <tromey@redhat.com>
7515
7516 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7517 (target_can_use_agent): Add argument.
7518 * target.c (update_current_target): Update.
7519 * remote.c (remote_can_use_agent): Add 'self' argument.
7520 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7521
2c152180
TT
75222014-02-19 Tom Tromey <tromey@redhat.com>
7523
7524 * target.h (struct target_ops) <to_use_agent>: Add argument.
7525 (target_use_agent): Add argument.
7526 * target.c (update_current_target): Update.
7527 * remote.c (remote_use_agent): Add 'self' argument.
7528 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7529
a893e81f
TT
75302014-02-19 Tom Tromey <tromey@redhat.com>
7531
7532 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7533 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7534 (target_traceframe_info): Add argument.
7535 * target.c (update_current_target): Update.
7536 * remote.c (remote_traceframe_info): Add 'self' argument.
7537 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7538
c686c57f
TT
75392014-02-19 Tom Tromey <tromey@redhat.com>
7540
7541 * target.h (target_static_tracepoint_markers_by_strid): Add
7542 argument.
7543 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7544 'self' argument.
7545 * target.c (update_current_target): Update.
7546 * remote.c (struct target_ops)
7547 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7548 * linux-nat.c (struct target_ops)
7549 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7550
61fc905d
TT
75512014-02-19 Tom Tromey <tromey@redhat.com>
7552
7553 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7554 Add argument.
7555 (target_static_tracepoint_marker_at): Add argument.
7556 * target.c (update_current_target): Update.
7557 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7558 argument.
7559
c378d69d
TT
75602014-02-19 Tom Tromey <tromey@redhat.com>
7561
7562 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7563 (target_set_permissions): Add argument.
7564 * target.c (update_current_target): Update.
7565 * remote.c (remote_set_permissions): Add 'self' argument.
7566 (remote_start_remote): Update.
7567
bd7ae0f5
TT
75682014-02-19 Tom Tromey <tromey@redhat.com>
7569
7570 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7571 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7572 (target_get_tib_address): Add argument.
7573 * target.c (update_current_target): Update.
7574 * remote.c (remote_get_tib_address): Add 'self' argument.
7575
d9e68a2c
TT
75762014-02-19 Tom Tromey <tromey@redhat.com>
7577
7578 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7579 (target_set_trace_notes): Add argument.
7580 * target.c (update_current_target): Update.
7581 * remote.c (remote_set_trace_notes): Add 'self' argument.
7582
4da384be
TT
75832014-02-19 Tom Tromey <tromey@redhat.com>
7584
7585 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7586 argument.
7587 (target_set_trace_buffer_size): Add argument.
7588 * target.c (update_current_target): Update.
7589 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7590
736d5b1f
TT
75912014-02-19 Tom Tromey <tromey@redhat.com>
7592
7593 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7594 argument.
7595 (target_set_circular_trace_buffer): Add argument.
7596 * target.c (update_current_target): Update.
7597 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7598 argument.
7599
37b25738
TT
76002014-02-19 Tom Tromey <tromey@redhat.com>
7601
7602 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7603 argument.
7604 (target_set_disconnected_tracing): Add argument.
7605 * target.c (update_current_target): Update.
7606 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7607
0e67620a
TT
76082014-02-19 Tom Tromey <tromey@redhat.com>
7609
7610 * target.h (struct target_ops)
7611 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7612 (target_get_min_fast_tracepoint_insn_len): Add argument.
7613 * target.c (update_current_target): Update.
7614 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7615 argument.
7616
88ee6f45
TT
76172014-02-19 Tom Tromey <tromey@redhat.com>
7618
7619 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7620 argument.
7621 (target_get_raw_trace_data): Add argument.
7622 * target.c (update_current_target): Update.
7623 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7624
181e3713
TT
76252014-02-19 Tom Tromey <tromey@redhat.com>
7626
7627 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7628 Add argument.
7629 (target_upload_trace_state_variables): Add argument.
7630 * target.c (update_current_target): Update.
7631 * remote.c (remote_upload_trace_state_variables): Add 'self'
7632 argument.
7633 (remote_start_remote): Update.
7634
ab6617cc
TT
76352014-02-19 Tom Tromey <tromey@redhat.com>
7636
7637 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7638 argument.
7639 (target_upload_tracepoints): Add argument.
7640 * target.c (update_current_target): Update.
7641 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7642 (remote_start_remote): Update.
7643
dc3decaf
TT
76442014-02-19 Tom Tromey <tromey@redhat.com>
7645
7646 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7647 (target_save_trace_data): Add argument.
7648 * target.c (update_current_target): Update.
7649 * remote.c (remote_save_trace_data): Add 'self' argument.
7650
4011015b
TT
76512014-02-19 Tom Tromey <tromey@redhat.com>
7652
7653 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7654 argument.
7655 * target.h (struct target_ops)
7656 <to_get_trace_state_variable_value>: Add argument.
7657 (target_get_trace_state_variable_value): Add argument.
7658 * target.c (update_current_target): Update.
7659 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7660 argument.
7661 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7662
bd4c6793
TT
76632014-02-19 Tom Tromey <tromey@redhat.com>
7664
7665 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7666 * target.h (struct target_ops) <to_trace_find>: Add argument.
7667 (target_trace_find): Add argument.
7668 * target.c (update_current_target): Update.
7669 * remote.c (remote_trace_find): Add 'self' argument.
7670 * ctf.c (ctf_trace_find): Add 'self' argument.
7671
74499f1b
TT
76722014-02-19 Tom Tromey <tromey@redhat.com>
7673
7674 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7675 (target_trace_stop): Add argument.
7676 * target.c (update_current_target): Update.
7677 * remote.c (remote_trace_stop): Add 'self' argument.
7678
db90e85c
TT
76792014-02-19 Tom Tromey <tromey@redhat.com>
7680
7681 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7682 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7683 argument.
7684 (target_get_tracepoint_status): Add argument.
7685 * target.c (update_current_target): Update.
7686 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7687
8bd200f1
TT
76882014-02-19 Tom Tromey <tromey@redhat.com>
7689
7690 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7691 * target.h (struct target_ops) <to_get_trace_status>: Add
7692 argument.
7693 (target_get_trace_status): Add argument.
7694 * target.c (update_current_target): Update.
7695 * remote.c (remote_get_trace_status): Add 'self' argument.
7696 (remote_start_remote, remote_can_download_tracepoint): Update.
7697 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7698
e2d1aae3
TT
76992014-02-19 Tom Tromey <tromey@redhat.com>
7700
7701 * target.h (struct target_ops) <to_trace_start>: Add argument.
7702 (target_trace_start): Add argument.
7703 * target.c (update_current_target): Update.
7704 * remote.c (remote_trace_start): Add 'self' argument.
7705
583f9a86
TT
77062014-02-19 Tom Tromey <tromey@redhat.com>
7707
7708 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7709 Add argument.
7710 (target_trace_set_readonly_regions): Add argument.
7711 * target.c (update_current_target): Update.
7712 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7713 argument.
7714
780b049c
TT
77152014-02-19 Tom Tromey <tromey@redhat.com>
7716
7717 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7718 argument.
7719 (target_disable_tracepoint): Add argument.
7720 * target.c (update_current_target): Update.
7721 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7722
46670d57
TT
77232014-02-19 Tom Tromey <tromey@redhat.com>
7724
7725 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7726 argument.
7727 (target_enable_tracepoint): Add argument.
7728 * target.c (update_current_target): Update.
7729 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7730
559d2b81
TT
77312014-02-19 Tom Tromey <tromey@redhat.com>
7732
7733 * target.h (struct target_ops) <to_download_trace_state_variable>:
7734 Add argument.
7735 (target_download_trace_state_variable): Add argument.
7736 * target.c (update_current_target): Update.
7737 * remote.c (remote_download_trace_state_variable): Add 'self'
7738 argument.
7739
a52a8357
TT
77402014-02-19 Tom Tromey <tromey@redhat.com>
7741
7742 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7743 argument.
7744 (target_can_download_tracepoint): Add argument.
7745 * target.c (update_current_target): Update.
7746 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7747
548f7808
TT
77482014-02-19 Tom Tromey <tromey@redhat.com>
7749
7750 * target.h (struct target_ops) <to_download_tracepoint>: Add
7751 argument.
7752 (target_download_tracepoint): Add argument.
7753 * target.c (update_current_target): Update.
7754 * remote.c (remote_download_tracepoint): Add 'self' argument.
7755
ecae04e1
TT
77562014-02-19 Tom Tromey <tromey@redhat.com>
7757
7758 * target.h (struct target_ops) <to_trace_init>: Add argument.
7759 (target_trace_init): Add argument.
7760 * target.c (update_current_target): Update.
7761 * remote.c (remote_trace_init): Add 'self' argument.
7762
fab5aa7c
TT
77632014-02-19 Tom Tromey <tromey@redhat.com>
7764
7765 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7766 * target.c (target_fileio_readlink): Add argument.
7767 * remote.c (remote_hostio_readlink): Add 'self' argument.
7768 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7769
dbbca37d
TT
77702014-02-19 Tom Tromey <tromey@redhat.com>
7771
7772 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7773 * target.c (target_fileio_unlink): Add argument.
7774 * remote.c (remote_hostio_unlink): Add 'self' argument.
7775 (remote_file_delete): Update.
7776 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7777
df39ea25
TT
77782014-02-19 Tom Tromey <tromey@redhat.com>
7779
7780 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7781 * target.c (target_fileio_close): Add argument.
7782 * remote.c (remote_hostio_close): Add 'self' argument.
7783 (remote_hostio_close_cleanup): Update.
7784 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7785 Update.
7786 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7787
a3be983c
TT
77882014-02-19 Tom Tromey <tromey@redhat.com>
7789
7790 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7791 * target.c (target_fileio_pread): Add argument.
7792 * remote.c (remote_hostio_pread): Add 'self' argument.
7793 (remote_bfd_iovec_pread, remote_file_get): Update.
7794 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7795
0d866f62
TT
77962014-02-19 Tom Tromey <tromey@redhat.com>
7797
7798 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7799 * target.c (target_fileio_pwrite): Add argument.
7800 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7801 (remote_file_put): Update.
7802 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7803
cd897586
TT
78042014-02-19 Tom Tromey <tromey@redhat.com>
7805
7806 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7807 * target.c (target_fileio_open): Add argument.
7808 * remote.c (remote_hostio_open): Add 'self' argument.
7809 (remote_bfd_iovec_open): Add 'self' argument.
7810 (remote_file_put): Add 'self' argument.
7811 (remote_file_get): Add 'self' argument.
7812 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7813
78eff0ec
TT
78142014-02-19 Tom Tromey <tromey@redhat.com>
7815
7816 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7817 Add argument.
7818 (target_can_run_breakpoint_commands): Add argument.
7819 * target.c (update_current_target): Update.
7820 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7821 argument.
7822 (remote_insert_breakpoint): Add 'self' argument.
7823 (remote_insert_hw_breakpoint): Add 'self' argument.
7824 (remote_can_run_breakpoint_commands): Add 'self' argument.
7825
efcc2da7
TT
78262014-02-19 Tom Tromey <tromey@redhat.com>
7827
7828 * target.h (struct target_ops)
7829 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7830 (target_supports_evaluation_of_breakpoint_conditions): Add
7831 argument.
7832 * target.c (update_current_target): Update.
7833 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7834 argument.
7835 (remote_insert_breakpoint): Add 'self' argument.
7836 (remote_insert_hw_breakpoint): Add 'self' argument.
7837 (remote_supports_cond_breakpoints): Add 'self' argument.
7838
6de37a3a
TT
78392014-02-19 Tom Tromey <tromey@redhat.com>
7840
7841 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7842 argument.
7843 (target_supports_string_tracing): Add argument.
7844 * target.c (update_current_target): Update.
7845 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7846
2bfc0540
TT
78472014-02-19 Tom Tromey <tromey@redhat.com>
7848
7849 * target.h (struct target_ops)
7850 <to_supports_disable_randomization>: Add argument.
7851 * target.c (find_default_supports_disable_randomization): Add
7852 argument.
7853 (target_supports_disable_randomization): Add argument.
7854 (find_default_supports_disable_randomization): Add 'self'
7855 argument.
7856 * remote.c (extended_remote_supports_disable_randomization): Add
7857 'self' argument.
7858 (remote_supports_disable_randomization): Add 'self' argument.
7859 (extended_remote_create_inferior): Update.
7860 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7861 'self' argument.
7862
7d178d6a
TT
78632014-02-19 Tom Tromey <tromey@redhat.com>
7864
7865 * target.h (struct target_ops)
7866 <to_supports_enable_disable_tracepoint>: Add argument.
7867 (target_supports_enable_disable_tracepoint): Add argument.
7868 * target.c (update_current_target): Update.
7869 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7870 argument.
7871
86ce2668
TT
78722014-02-19 Tom Tromey <tromey@redhat.com>
7873
7874 * target.h (struct target_ops) <to_supports_multi_process>: Add
7875 argument.
7876 (target_supports_multi_process): Add argument.
7877 * target.c (update_current_target): Update.
7878 * remote.c (remote_supports_multi_process): Add 'self' argument.
7879 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7880 argument.
7881 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7882 argument.
7883
4c612759
TT
78842014-02-19 Tom Tromey <tromey@redhat.com>
7885
7886 * target.h (struct target_ops) <to_execution_direction>: Add
7887 argument.
7888 (target_execution_direction): Add argument.
7889 * target.c (default_execution_direction): Add 'self' argument.
7890 * record-full.c (record_full_execution_direction): Add 'self'
7891 argument.
7892
19db3e69
TT
78932014-02-19 Tom Tromey <tromey@redhat.com>
7894
7895 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7896 argument.
7897 (target_can_execute_reverse): Add argument.
7898 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7899 * record-full.c (record_full_can_execute_reverse): Add 'self'
7900 argument.
7901 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7902 argument.
7903
1e6b91a4
TT
79042014-02-19 Tom Tromey <tromey@redhat.com>
7905
7906 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7907 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7908 argument.
7909 (target_get_ada_task_ptid): Add argument.
7910 * target.c (update_current_target): Update.
7911 (default_get_ada_task_ptid): Add 'self' argument.
7912 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7913 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7914 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7915 argument.
7916 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7917 argument.
7918 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7919 argument.
7920 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7921 argument.
7922 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7923 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7924 argument.
7925
3c80fb48
TT
79262014-02-19 Tom Tromey <tromey@redhat.com>
7927
7928 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7929 (target_goto_bookmark): Add argument.
7930 * target.c (dummy_goto_bookmark): Add 'self' argument.
7931 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7932
dd0e2830
TT
79332014-02-19 Tom Tromey <tromey@redhat.com>
7934
7935 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7936 (target_get_bookmark): Add argument.
7937 * target.c (dummy_get_bookmark): Add 'self' argument.
7938 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7939
fc6691b2
TT
79402014-02-19 Tom Tromey <tromey@redhat.com>
7941
7942 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7943 argument.
7944 (target_make_corefile_notes): Add argument.
7945 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7946 * procfs.c (procfs_make_note_section): Add 'self' argument.
7947 (procfs_make_note_section): Add 'self' argument.
7948 (procfs_make_note_section): Add 'self' argument.
7949 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7950 argument.
7951 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7952 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7953 * exec.c (exec_make_note_section): Add 'self' argument.
7954 (exec_make_note_section): Add 'self' argument.
7955
2e73927c
TT
79562014-02-19 Tom Tromey <tromey@redhat.com>
7957
7958 * target.h (struct target_ops) <to_find_memory_regions>: Add
7959 argument.
7960 (target_find_memory_regions): Add argument.
7961 * target.c (dummy_find_memory_regions): Add 'self' argument.
7962 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7963 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7964 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7965 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7966 * exec. (exec_do_find_memory_regions): New global.
7967 (exec_set_find_memory_regions): Rewrite.
7968 (exec_find_memory_regions): New function.
7969 (init_exec_ops): Use exec_find_memory_regions.
7970
2a9a2795
TT
79712014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * target.h (struct target_ops) <to_supports_non_stop>: Add
7974 argument.
7975 * target.c (find_default_supports_non_stop): Add argument.
7976 (target_supports_non_stop): Add argument.
7977 (find_default_supports_non_stop): Add 'self' argument.
7978 * remote.c (remote_supports_non_stop): Add 'self' argument.
7979 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7980
4ab76ea3
TT
79812014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target.h (struct target_ops) <to_log_command>: Add argument.
7984 (target_log_command): Add argument.
7985 * serial.h (serial_log_command): Add 'self' argument.
7986 * serial.c (serial_log_command): Add 'self' argument.
7987
8dd27370
TT
79882014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7991 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7992 argument.
7993 (target_pid_to_exec_file): Add argument.
7994 * target.c (debug_to_pid_to_exec_file): Add argument.
7995 (update_current_target): Update.
7996 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7997 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7998 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7999 (linux_handle_extended_wait): Update.
8000 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
8001 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
8002 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
8003 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
8004
1aac633b
TT
80052014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target.h (struct target_ops) <to_rcmd>: Add argument.
8008 (target_rcmd): Add argument.
8009 * target.c (debug_to_rcmd): Add argument.
8010 (update_current_target, do_monitor_command): Update.
8011 * remote.c (remote_rcmd): Add 'self' argument.
8012 * monitor.c (monitor_rcmd): Add 'self' argument.
8013
1eab8a48
TT
80142014-02-19 Tom Tromey <tromey@redhat.com>
8015
8016 * windows-nat.c (windows_stop): Add 'self' argument.
8017 * target.h (struct target_ops) <to_stop>: Add argument.
8018 * target.c (target_stop): Add argument.
8019 (debug_to_stop): Add argument.
8020 (update_current_target): Update.
8021 * remote.c (remote_stop): Add 'self' argument.
8022 * remote-sim.c (gdbsim_stop): Add 'self' argument.
8023 (gdbsim_cntrl_c): Update.
8024 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
8025 * procfs.c (procfs_stop): Add 'self' argument.
8026 * nto-procfs.c (procfs_stop): Add 'self' argument.
8027 * monitor.c (monitor_stop): Add 'self' argument.
8028 (monitor_open): Update.
8029 * linux-nat.c (linux_nat_stop): Add argument.
8030 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
8031 * gnu-nat.c (gnu_stop): Add 'self' argument.
8032 * darwin-nat.c (darwin_stop): Add 'self' argument.
8033
503a628d
TT
80342014-02-19 Tom Tromey <tromey@redhat.com>
8035
8036 * target.h (struct target_ops) <to_thread_name>: Add argument.
8037 * target.c (target_thread_name): Add argument.
8038 (update_current_target): Update.
8039 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
8040
c15906d8
TT
80412014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target.h (struct target_ops) <to_extra_thread_info>: Add
8044 argument.
8045 (target_extra_thread_info): Add argument.
8046 * target.c (update_current_target): Update.
8047 * remote.c (remote_threads_extra_info): Add 'self' argument.
8048 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
8049 argument.
8050 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
8051 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
8052 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
8053 argument.
8054 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
8055 argument.
8056 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
8057 argument.
8058 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
8059 argument.
8060
daf5e9b6
TT
80612014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * target.h (struct target_ops) <to_program_signals>: Add argument.
8064 * target.c (target_program_signals): Add argument.
8065 * remote.c (remote_program_signals): Add 'self' argument.
8066
94bedb42
TT
80672014-02-19 Tom Tromey <tromey@redhat.com>
8068
8069 * target.h (struct target_ops) <to_pass_signals>: Add argument.
8070 * target.c (target_pass_signals): Add argument.
8071 * remote.c (remote_pass_signals): Add 'self' argument.
8072 (remote_start_remote): Update.
8073 * procfs.c (procfs_pass_signals): Add 'self' argument.
8074 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
8075 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
8076 (linux_nat_create_inferior, linux_nat_attach): Update.
8077
da82bd6b
TT
80782014-02-19 Tom Tromey <tromey@redhat.com>
8079
8080 * windows-nat.c (windows_can_run): Add 'self' argument.
8081 * target.h (struct target_ops) <to_can_run>: Add argument.
8082 (target_can_run): Add argument.
8083 * target.c (debug_to_can_run): Add argument.
8084 (update_current_target): Update.
8085 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8086 * inf-child.c (inf_child_can_run): Add 'self' argument.
8087 * go32-nat.c (go32_can_run): Add 'self' argument.
8088
d796e1d6
TT
80892014-02-19 Tom Tromey <tromey@redhat.com>
8090
8091 * target.h (struct target_ops) <to_has_exited>: Add argument.
8092 (target_has_exited): Add argument.
8093 * target.c (debug_to_has_exited): Add argument.
8094 (update_current_target): Update.
8095
ff214e67
TT
80962014-02-19 Tom Tromey <tromey@redhat.com>
8097
8098 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8099 argument.
8100 (target_set_syscall_catchpoint): Add argument.
8101 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8102 argument.
8103 * target.c (update_current_target): Update.
8104
758e29d2
TT
81052014-02-19 Tom Tromey <tromey@redhat.com>
8106
8107 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8108 argument.
8109 (target_remove_exec_catchpoint): Add argument.
8110 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8111 (update_current_target): Update.
8112 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8113 argument.
8114
ba025e51
TT
81152014-02-19 Tom Tromey <tromey@redhat.com>
8116
8117 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8118 argument.
8119 (target_insert_exec_catchpoint): Add argument.
8120 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8121 (update_current_target): Update.
8122 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8123 argument.
8124
e98cf0cd
TT
81252014-02-19 Tom Tromey <tromey@redhat.com>
8126
8127 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8128 argument.
8129 (target_remove_vfork_catchpoint): Add argument.
8130 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8131 (update_current_target): Update.
8132 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8133 argument.
8134
3ecc7da0
TT
81352014-02-19 Tom Tromey <tromey@redhat.com>
8136
8137 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8138 argument.
8139 (target_insert_vfork_catchpoint): Add argument.
8140 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8141 (update_current_target): Update.
8142 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8143 argument.
8144
973fc227
TT
81452014-02-19 Tom Tromey <tromey@redhat.com>
8146
8147 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8148 argument.
8149 (target_remove_fork_catchpoint): Add argument.
8150 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8151 (update_current_target): Update.
8152 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8153 argument.
8154
a863b201
TT
81552014-02-19 Tom Tromey <tromey@redhat.com>
8156
8157 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8158 argument.
8159 (target_insert_fork_catchpoint): Add argument.
8160 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8161 (update_current_target): Update.
8162 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8163 argument.
8164
2e97a79e
TT
81652014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8168 argument.
8169 (target_post_startup_inferior): Add argument.
8170 * target.c (debug_to_post_startup_inferior): Add argument.
8171 (update_current_target): Update.
8172 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8173 argument.
8174 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8175 argument.
8176 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8177 argument.
8178 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8179 argument.
8180 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8181 'self' argument.
8182 (super_post_startup_inferior): Likewise.
8183 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8184 'self' argument.
8185 (super_post_startup_inferior): Likewise.
8186 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8187 Add 'self' argument.
8188 (super_post_startup_inferior): Likewise.
8189
71a9f134
TT
81902014-02-19 Tom Tromey <tromey@redhat.com>
8191
8192 * target.h (struct target_ops) <to_load>: Add argument.
8193 * target.c (target_load): Add argument.
8194 (debug_to_load): Add argument.
8195 (update_current_target): Update.
8196 * remote.c (remote_load): Add 'self' argument.
8197 * remote-sim.c (gdbsim_load): Add 'self' argument.
8198 * remote-mips.c (mips_load): Add 'self' argument.
8199 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8200 * monitor.c (monitor_load): Add 'self' argument.
8201 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8202
0a4f40a2
TT
82032014-02-19 Tom Tromey <tromey@redhat.com>
8204
8205 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8206 (target_terminal_info): Add argument.
8207 * target.c (debug_to_terminal_info): Add argument.
8208 (default_terminal_info): Likewise.
8209 * inflow.c (child_terminal_info): Add 'self' argument.
8210 * inferior.h (child_terminal_info): Add 'self' argument.
8211 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8212
ae3bd431
TT
82132014-02-19 Tom Tromey <tromey@redhat.com>
8214
8215 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8216 argument.
8217 (target_terminal_save_ours): Add argument.
8218 * target.c (debug_to_terminal_save_ours): Add argument.
8219 (update_current_target): Update.
8220 * inflow.c (terminal_save_ours): Add 'self' argument.
8221 * inferior.h (terminal_save_ours): Add 'self' argument.
8222
e3594fd1
TT
82232014-02-19 Tom Tromey <tromey@redhat.com>
8224
8225 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8226 (target_terminal_ours): Add argument.
8227 * target.c (debug_to_terminal_ours): Add argument.
8228 (update_current_target): Update.
8229 * remote.c (remote_terminal_ours): Add 'self' argument.
8230 (remote_close): Update.
8231 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8232 * inflow.c (terminal_ours): Add 'self' argument.
8233 * inferior.h (terminal_ours): Add 'self' argument.
8234 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8235
2e1e1a19
TT
82362014-02-19 Pedro Alves <palves@redhat.com>
8237 Tom Tromey <tromey@redhat.com>
8238
8239 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8240 argument.
8241 (target_terminal_ours_for_output): Add argument.
8242 * target.c (debug_to_terminal_ours_for_output): Add argument.
8243 (update_current_target): Update.
8244 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8245 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8246 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8247
d2f640d4
TT
82482014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target.h (struct target_ops) <to_terminal_inferior>: Add
8251 argument.
8252 * target.c (target_terminal_inferior): Add argument.
8253 (update_current_target): Update.
8254 * remote.c (remote_terminal_inferior): Add 'self' argument.
8255 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8256 * inflow.c (terminal_inferior): Add 'self' argument.
8257 * inferior.h (terminal_inferior): Add 'self' argument.
8258 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8259 (go32_terminal_inferior): Add 'self' argument.
8260
c42bf286
TT
82612014-02-19 Tom Tromey <tromey@redhat.com>
8262
8263 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8264 (target_terminal_init): Add argument.
8265 * target.c (debug_to_terminal_init): Add argument.
8266 (update_current_target): Update.
8267 * inflow.c (terminal_init_inferior): Add 'self' argument.
8268 * inferior.h (terminal_init_inferior): Add 'self' argument.
8269 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8270 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8271
c3a5ff89
TT
82722014-02-19 Tom Tromey <tromey@redhat.com>
8273
8274 * target.h (struct target_ops)
8275 <to_can_accel_watchpoint_condition>: Add argument.
8276 (target_can_accel_watchpoint_condition): Add argument.
8277 * target.c (debug_to_can_accel_watchpoint_condition): Add
8278 argument.
8279 (update_current_target): Update.
8280 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8281 'self' argument.
8282
31568a15
TT
82832014-02-19 Tom Tromey <tromey@redhat.com>
8284
8285 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8286 Add argument.
8287 (target_region_ok_for_hw_watchpoint): Add argument.
8288 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8289 (default_region_ok_for_hw_watchpoint): Add argument.
8290 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8291 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8292 argument.
8293 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8294 argument.
8295 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8296 argument.
8297 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8298 'self' argument.
8299 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8300 'self' argument.
8301 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8302 'self' argument.
8303 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8304 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8305 'self' argument.
8306 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8307 Add 'self' argument.
8308
7bb99c53
TT
83092014-02-19 Tom Tromey <tromey@redhat.com>
8310
8311 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8312 argument.
8313 (target_insert_watchpoint): Add argument.
8314 * target.c (debug_to_insert_watchpoint): Add argument.
8315 (update_current_target): Update.
8316 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8317 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8318 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8319 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8320 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8321 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8322 argument.
8323 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8324 (procfs_insert_hw_watchpoint): Add 'self' argument.
8325 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8326 argument.
8327 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8328 argument.
8329 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8330 argument.
8331 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8332 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8333 argument.
8334 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8335 'self' argument.
8336
11b5219a
TT
83372014-02-19 Tom Tromey <tromey@redhat.com>
8338
8339 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8340 argument.
8341 (target_remove_watchpoint): Add argument.
8342 * target.c (debug_to_remove_watchpoint): Add argument.
8343 (update_current_target): Update.
8344 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8345 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8346 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8347 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8348 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8349 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8350 argument.
8351 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8352 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8353 argument.
8354 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8355 argument.
8356 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8357 argument.
8358 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8359 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8360 argument.
8361 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8362 'self' argument.
8363
a64dc96c
TT
83642014-02-19 Tom Tromey <tromey@redhat.com>
8365
8366 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8367 argument.
8368 (target_remove_hw_breakpoint): Add argument.
8369 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8370 (update_current_target): Update.
8371 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8372 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8373 argument.
8374 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8375 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8376 argument.
8377 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8378 'self' argument.
8379
23a26771
TT
83802014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8383 argument.
8384 (target_insert_hw_breakpoint): Add argument.
8385 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8386 (update_current_target): Update.
8387 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8388 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8389 argument.
8390 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8391 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8392 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8393 argument.
8394 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8395 'self' argument.
8396
5461485a
TT
83972014-02-19 Tom Tromey <tromey@redhat.com>
8398
8399 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8400 argument.
8401 (target_can_use_hardware_watchpoint): Add argument.
8402 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8403 (update_current_target): Update.
8404 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8405 argument.
8406 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8407 argument.
8408 * remote.c (remote_check_watch_resources): Add 'self' argument.
8409 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8410 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8411 argument.
8412 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8413 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8414 argument.
8415 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8416 argument.
8417 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8418 argument.
8419 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8420 argument.
8421 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8422 argument.
8423 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8424 argument.
8425 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8426 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8427 argument.
8428 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8429 'self' argument.
8430
f045800c
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target.h (struct target_ops) <to_post_attach>: Add argument.
8434 (target_post_attach): Add argument.
8435 * target.c (debug_to_post_attach): Add argument.
8436 (update_current_target): Update.
8437 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8438 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8439 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8440 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8441 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8442
de90e03d
TT
84432014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * windows-nat.c (windows_close): Add 'self' argument.
8446 * tracepoint.c (tfile_close): Add 'self' argument.
8447 * target.h (struct target_ops) <to_close>: Add argument.
8448 * target.c (target_close): Add argument.
8449 (update_current_target): Update.
8450 * remote.c (remote_close): Add 'self' argument.
8451 * remote-sim.c (gdbsim_close): Add 'self' argument.
8452 * remote-mips.c (mips_close): Add 'self' argument.
8453 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8454 * record-full.c (record_full_close): Add 'self' argument.
8455 * record-btrace.c (record_btrace_close): Add 'self' argument.
8456 * monitor.h (monitor_close): Add 'self' argument.
8457 * monitor.c (monitor_close): Add 'self' argument.
8458 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8459 * linux-nat.c (linux_nat_close): Add argument.
8460 * go32-nat.c (go32_close): Add 'self' argument.
8461 * exec.c (exec_close_1): Add 'self' argument.
8462 * ctf.c (ctf_close): Add 'self' argument.
8463 * corelow.c (core_close): Add 'self' argument.
8464 (core_close_cleanup): Update.
8465 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8466 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8467
9dd130a0
TT
84682014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * remote.c (remote_load): New function.
8471 (init_remote_ops): Use it.
8472
46917d26
TT
84732014-02-19 Tom Tromey <tromey@redhat.com>
8474
8475 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8476 argument.
8477 * common/linux-btrace.h (linux_supports_btrace): Update.
8478 * remote.c (remote_supports_btrace): Add "self" argument.
8479 * target-delegates.c: Rebuild.
8480 * target.c (target_supports_btrace): Remove.
8481 * target.h (struct target_ops) <to_supports_btrace>: Add
8482 target_ops argument.
8483 (target_supports_btrace): New define.
8484
6b84065d
TT
84852014-02-19 Tom Tromey <tromey@redhat.com>
8486
8487 * record-full.c (record_full_beneath_to_resume_ops)
8488 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8489 (record_full_beneath_to_wait)
8490 (record_full_beneath_to_store_registers_ops)
8491 (record_full_beneath_to_store_registers)
8492 (record_full_beneath_to_xfer_partial_ops)
8493 (record_full_beneath_to_xfer_partial)
8494 (record_full_beneath_to_insert_breakpoint_ops)
8495 (record_full_beneath_to_insert_breakpoint)
8496 (record_full_beneath_to_remove_breakpoint_ops)
8497 (record_full_beneath_to_remove_breakpoint)
8498 (record_full_beneath_to_stopped_by_watchpoint)
8499 (record_full_beneath_to_stopped_data_address)
8500 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8501 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8502 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8503 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8504 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8505 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8506 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8507 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8508 (record_full_resume, record_full_wait_1)
8509 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8510 (record_full_store_registers, record_full_xfer_partial)
8511 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8512 (record_full_async, record_full_core_xfer_partial): Use target
8513 delegation.
8514 * target-delegates.c: Rebuild.
8515 * target.c (current_xfer_partial): Remove.
8516 (update_current_target): Do not INHERIT or de_fault
8517 to_insert_breakpoint, to_remove_breakpoint,
8518 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8519 to_is_async_p, to_async. Do not set to_xfer_partial field.
8520 (default_xfer_partial): Simplify.
8521 (current_xfer_partial): Remove.
8522 (target_wait, target_resume): Simplify.
8523 (find_default_can_async_p, find_default_is_async_p): Update.
8524 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8525 to_xfer_partial, to_stopped_by_watchpoint,
8526 to_stopped_data_address.
8527 (target_store_registers): Simplify.
8528 (forward_target_remove_breakpoint)
8529 (forward_target_insert_breakpoint): Remove.
8530 (target_remove_breakpoint, target_insert_breakpoint)
8531 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8532 * target.h (struct target_ops) <to_resume, to_wait,
8533 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8534 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8535 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8536 markup.
8537 (forward_target_remove_breakpoint)
8538 (forward_target_insert_breakpoint): Remove.
8539 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8540 directly.
8541 (record_btrace_insert_breakpoint): Delegate directly.
8542
1101cb7b
TT
85432014-02-19 Tom Tromey <tromey@redhat.com>
8544
8545 PR build/7701:
8546 * target-delegates.c: New file.
8547 * target.c: Include target-delegates.c.
8548 (init_dummy_target): Call install_dummy_methods.
8549 (complete_target_initialization): Call install_delegators.
8550 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8551 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8552 * make-target-delegates: New file.
8553
8b06beed
TT
85542014-02-19 Tom Tromey <tromey@redhat.com>
8555
8556 * record.c (find_record_target): Use find_target_at.
8557 * target.c (find_target_at): New function.
8558 * target.h (find_target_at): Declare.
8559
6a109b6b
TT
85602014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8563 Add 'ops' argument.
8564 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8565 'ops' argument.
8566 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8567 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8568 'ops' argument.
8569 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8570 argument.
8571 * linux-nat.c (save_sigtrap): Update.
8572 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8573 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8574 (linux_nat_close): Update.
8575 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8576 argument.
8577 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8578 argument.
8579 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8580 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8581 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8582 (tmp_to_async): Add 'ops' argument.
8583 (record_full_stopped_by_watchpoint, record_full_async)
8584 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8585 argument.
8586 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8587 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8588 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8589 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8590 (remote_is_async_p, remote_async): Add 'ops' argument.
8591 (remote_stopped_data_address): Update.
8592 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8593 * target.c (update_current_target)
8594 (find_default_can_async_p, find_default_is_async_p): Update.
8595 (init_dummy_target): Update.
8596 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8597 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8598 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8599 (target_can_async_p, target_is_async_p, target_async)
8600 (target_stopped_by_watchpoint): Update.
8601
e095146b
YQ
86022014-02-19 Yao Qi <yao@codesourcery.com>
8603
8604 PR gdb/16220
8605 * gdbarch.sh: Remove startup_gdbarch.
8606 * gdbarch.c: Regenerated.
8607 * gdbarch.h: Likewise.
8608
bc3c6b36
KB
86092014-02-17 Kevin Buettner <kevinb@redhat.com>
8610
8611 * rl78-tdep.c (rl78_g10_register_name): New function.
8612 (rl78_return_value): Add g10 support.
8613 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8614 g10.
8615
98dc0167 86162014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
8617
8618 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8619 (SUBDIR_GUILE_SRCS): Ditto.
8620 (scm-gsmob.o): Ditto.
8621
842c05cd
YQ
86222014-02-17 Yao Qi <yao@codesourcery.com>
8623
8624 * gnu-nat.c (ILL_RPC): Declare defined function.
8625
25c0bd04
YQ
86262014-02-17 Yao Qi <yao@codesourcery.com>
8627
8628 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8629 mach_msg_type_number_t.
8630 (gnu_write_inferior): Likewise.
8631
a9a758e3
YQ
86322014-02-17 Yao Qi <yao@codesourcery.com>
8633
8634 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8635 in format string.
8636 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8637 (inf_validate_procs, inf_signal): Likewise.
8638 (S_exception_raise_request): Likewise.
8639 (do_mach_notify_dead_name): Likewise.
8640 (steal_exc_port): Likewise.
8641 (gnu_read_inferior): Change 'copy_count''s type to
8642 mach_msg_type_number_t.
8643 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8644 format string.
8645
bae8023e
TS
86462014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8647
c82f56d9
TS
8648 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8649 flag. Adjust all users; in particular...
8650 (gnu_wait): ..., don't decrement its value in here...
8651 (gnu_create_inferior): ..., and instead set the flag in here,
8652 around the startup_inferior call, and call that one with
8653 START_INFERIOR_TRAPS_EXPECTED.
8654
3398af6a
TS
8655 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8656 (ILL_RPC): ... new macro.
8657 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8658 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8659 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8660 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8661 functions with ILL_RPC macro.
8662 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8663 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8664 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8665 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8666 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8667 (S_proc_getlogin_reply, S_proc_getsid_reply)
8668 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8669 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8670 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8671 (S_proc_getnports_reply, S_proc_is_important_reply)
8672 (S_proc_get_code_reply): New stub functions, generated with
8673 ILL_RPC macro.
8674
d47642c9
TS
8675 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8676 collected the type check structures.
8677
bae8023e
TS
8678 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8679
8a55ffb0
DE
86802014-02-14 Doug Evans <dje@google.com>
8681
8682 * target.c (target_write_partial): Fix result type.
8683
c2853f3d
JM
86842014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8685
8686 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8687 the proper offsets to access fpregset_t.
8688
ac61d2db
SA
86892014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8690
8691 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8692 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8693 * h8300-tdep.c (setmachinelist): Remove global.
8694 * hppa-tdep.c (hppa_sigtramp): Remove global.
8695 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8696 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8697 * ravenscar-thread.c (update_target_observer): Remove global.
8698 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8699
9d2d0b8b
TT
87002014-02-12 Tom Tromey <tromey@redhat.com>
8701
8702 * common/rsp-low.c: Update comments.
8703 * common/rsp-low.h: Update comments.
8704
a7191e8b
TT
87052014-02-12 Tom Tromey <tromey@redhat.com>
8706
8707 * common/rsp-low.c (convert_ascii_to_int): Remove.
8708 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8709
ff0e980e
TT
87102014-02-12 Tom Tromey <tromey@redhat.com>
8711
8712 * common/rsp-low.h (unhexify): Don't declare.
8713 * common/rsp-low.c (unhexify): Remove.
8714
e9371aff
TT
87152014-02-12 Tom Tromey <tromey@redhat.com>
8716
8717 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8718 * common/rsp-low.c (convert_int_to_ascii): Remove.
8719
971dc0b8
TT
87202014-02-12 Tom Tromey <tromey@redhat.com>
8721
8722 * common/rsp-low.h (hexify): Don't declare.
8723 * common/rsp-low.c (hexify): Remove.
8724
0a822afb
TT
87252014-02-12 Tom Tromey <tromey@redhat.com>
8726
8727 * common/rsp-low.c (hexify): Never take strlen of argument.
8728
9f1b45b0
TT
87292014-02-12 Tom Tromey <tromey@redhat.com>
8730
8731 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8732 * remote.c (extended_remote_run, remote_rcmd)
8733 (remote_download_trace_state_variable, remote_save_trace_data)
8734 (remote_set_trace_notes): Update.
8735 * tracepoint.c (encode_source_string, tfile_write_status)
8736 (tfile_write_uploaded_tsv): Update.
8737
9c3d6531
TT
87382014-02-12 Tom Tromey <tromey@redhat.com>
8739
8740 * tracepoint.c: Include rsp-low.h.
8741 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8742 * remote.c: Include rsp-low.h.
8743 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8744 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8745 (remote_unescape_input): Move to common/rsp-low.c.
8746 * common/rsp-low.h: New file.
8747 * common/rsp-low.c: New file.
8748 * Makefile.in (SFILES): Add common/rsp-low.c.
8749 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8750 (COMMON_OBS): Add rsp-low.o.
8751 (rsp-low.o): New target.
8752
01fd3ea5
TT
87532014-02-12 Tom Tromey <tromey@redhat.com>
8754
8755 * utils.h: Include print-utils.h.
8756 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8757 (int_string, core_addr_to_string, core_addr_to_string_nz)
8758 (hex_string, hex_string_custom): Don't declare.
8759 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8760 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8761 (hex_string_custom, int_string, core_addr_to_string)
8762 (core_addr_to_string_nz, host_address_to_string): Move to
8763 common/print-utils.c.
8764 * common/print-utils.h: New file.
8765 * common/print-utils.c: New file
8766 * Makefile.in (SFILES): Add common/print-utils.c.
8767 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8768 (COMMON_OBS): Add print-utils.o.
8769 (print-utils.o): New target.
8770
9fb50108
TT
87712014-02-12 Tom Tromey <tromey@redhat.com>
8772
8773 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8774
0548b5db
MK
87752014-02-12 Mark Kettenis <kettenis@gnu.org>
8776
8777 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8778
493443a4
MK
87792014-02-12 Mark Kettenis <kettenis@gnu.org>
8780
8781 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8782 if a PT_IO ptrace request returns sucessfully but indicates that 0
8783 bytes were transferred.
8784
706d0883
PA
87852014-02-12 Pedro Alves <palves@redhat.com>
8786 Kevin Buettner <kevinb@redhat.com>
8787
8788 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8789 TYPE_INSTANCE_FLAG_CODE_SPACE.
8790
5caa2f0b
PA
87912014-02-12 Pedro Alves <palves@redhat.com>
8792
8793 * h8300-tdep.c (pseudo_from_raw_register)
8794 (raw_from_pseudo_register): New functions.
8795 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8796 them.
8797
76fd5f74
PA
87982014-02-12 Pedro Alves <palves@redhat.com>
8799
8800 * h8300-tdep.c (h8300_register_sim_regno): New function.
8801 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8802 gdbarch_register_sim_regno hook.
8803
8f008406
SA
88042014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8805
8806 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8807
195abc10
SA
88082014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8809
8810 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8811
93ffa5b9
MK
88122014-02-12 Mark Kettenis <kettenis@gnu.org>
8813
8814 * obsd-tdep.h (obsd_init_abi): New prototype.
8815 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8816 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8817 (obsd_init_abi): New functions.
8818 * i386obsd-tdep.c: Include "obsd-tdep.h".
8819 (i386obsd_init_abi): Call obsd_init_abi.
8820 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8821 (amd64obsd_init_abi): Call obsd_init_abi.
8822 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8823 obsd-tdep.c to gdb_target_obs.
8824
49caec94
JM
88252014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8826
8827 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8828 double float arguments to 16-byte in the argument slots.
8829
e1402065
DE
88302014-02-11 Doug Evans <xdje42@gmail.com>
8831
8832 * configure.ac: Don't crash if pkg-config is not found and guile
8833 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8834 in guile checks.
8835 * configure: Regenerate.
8836
edcc890f
YQ
88372014-02-11 Yao Qi <yao@codesourcery.com>
8838
8839 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8840 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8841 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8842 * gnu-nat.c (gnu_xfer_memory): Likewise.
8843 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8844 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8845 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8846 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8847
9b409511
YQ
88482014-02-11 Yao Qi <yao@codesourcery.com>
8849
8850 * target.h (enum target_xfer_error): Rename to ...
8851 (enum target_xfer_status): ... it. New. All users updated.
8852 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8853 New.
8854 (TARGET_XFER_STATUS_ERROR_P): New macro.
8855 (target_xfer_error_to_string): Remove declaration.
8856 (target_xfer_status_to_string): Declare.
8857 (target_xfer_partial_ftype): Adjust it.
8858 (struct target_ops) <to_xfer_partial>: Return
8859 target_xfer_status. Add argument xfered_len. Update
8860 comments.
8861 * target.c (target_xfer_error_to_string): Rename to ...
8862 (target_xfer_status_to_string): ... it. New. All callers
8863 updated.
8864 (target_read_live_memory): Likewise. Call target_xfer_partial
8865 instead of target_read.
8866 (memory_xfer_live_readonly_partial): Return
8867 target_xfer_status. Add argument xfered_len.
8868 (raw_memory_xfer_partial): Likewise.
8869 (memory_xfer_partial_1): Likewise.
8870 (memory_xfer_partial): Likewise.
8871 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8872 properly. Update debug message.
8873 (default_xfer_partial, current_xfer_partial): Likewise.
8874 (target_write_partial): Likewise.
8875 (target_read_partial): Likewise. All callers updated.
8876 (read_whatever_is_readable): Likewise.
8877 (target_write_with_progress): Likewise.
8878 (target_read_alloc_1): Likewise.
8879
8880 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8881 * auxv.c (procfs_xfer_auxv): Likewise.
8882 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8883 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8884 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8885 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8886 * corefile.c (read_memory): Adjust.
8887 * corelow.c (core_xfer_partial): Likewise.
8888 * ctf.c (ctf_xfer_partial): Likewise.
8889 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8890 updated.
8891 (darwin_xfer_partial): Likewise.
8892 * exec.c (section_table_xfer_memory_partial): Likewise. All
8893 callers updated.
8894 (exec_xfer_partial): Likewise.
8895 * exec.h (section_table_xfer_memory_partial): Update
8896 declaration.
8897 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8898 negative.
8899 (gnu_xfer_partial): Likewise.
8900 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8901 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8902 (ia64_hpux_xfer_solib_got): Likewise.
8903 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8904 type of 'partial_len' to ULONGEST.
8905 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8906 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8907 (linux_nat_xfer_partial): Likewise.
8908 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8909 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8910 * monitor.c (monitor_xfer_memory): Likewise.
8911 (monitor_xfer_partial): Likewise.
8912 * procfs.c (procfs_xfer_partial): Likewise.
8913 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8914 * record-full.c (record_full_xfer_partial): Likewise.
8915 (record_full_core_xfer_partial): Likewise.
8916 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8917 (gdbsim_xfer_partial): Likewise.
8918 * remote.c (remote_write_bytes_aux): Likewise. All callers
8919 updated.
8920 (remote_write_bytes, remote_read_bytes): Likewise. All
8921 callers updated.
8922 (remote_flash_erase): Likewise. All callers updated.
8923 (remote_write_qxfer): Likewise. All callers updated.
8924 (remote_read_qxfer): Likewise. All callers updated.
8925 (remote_xfer_partial): Likewise.
8926 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8927 (rs6000_xfer_shared_libraries): Likewise.
8928 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8929 (sol_thread_xfer_partial): Likewise.
8930 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8931 (sparc_xfer_partial): Likewise.
8932 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8933 updated.
8934 (spu_xfer_partial): Likewise.
8935 * spu-multiarch.c (spu_xfer_partial): Likewise.
8936 * tracepoint.c (tfile_xfer_partial): Likewise.
8937 * windows-nat.c (windows_xfer_memory): Likewise.
8938 (windows_xfer_shared_libraries): Likewise.
8939 (windows_xfer_partial): Likewise.
8940 * valprint.c: Replace 'target_xfer_error' with
8941 'target_xfer_status' in comments.
8942
a8e63083
JB
89432014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8944
8945 Checked in by Joel Brobecker <brobecker@adacore.com>.
8946 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8947
e86b67d3
JB
89482014-02-11 Joel Brobecker <brobecker@adacore.com>
8949
8950 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8951 function parameters.
8952
4b7d1f7f
WN
89532014-02-10 Will Newton <will.newton@linaro.org>
8954
8955 * elfread.c (elf_rel_plt_read): Look for a .got section if
8956 looking up .got.plt fails.
8957 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8958 on address passed to elf_gnu_ifunc_record_cache.
8959 (elf_gnu_ifunc_resolve_addr): Likewise.
8960 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8961
961842b2
JM
89622014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8963
8964 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8965 (X_RETTURN): New macro.
8966 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8967
8968 * sparc64-tdep.c (sparc64_init_abi): Hook
8969 sparc_in_function_epilogue_p.
8970
3f03e7b1
GB
89712014-02-10 Gary Benson <gbenson@redhat.com>
8972
8973 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8974 Rename name_matcher to symbol_matcher.
8975
96f861ef
GB
89762014-02-10 Gary Benson <gbenson@redhat.com>
8977
8978 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8979 Use expand_symtabs_file_matcher_ftype and
8980 expand_symtabs_symbol_matcher_ftype.
8981
ee01b665
JB
89822014-02-10 Joel Brobecker <brobecker@adacore.com>
8983
8984 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8985 (struct ada_symbol_cache): New.
8986 (ada_free_symbol_cache): Forward declare.
8987 (struct ada_pspace_data): New.
8988 (ada_pspace_data_handle): New static global.
8989 (get_ada_pspace_data, ada_pspace_data_cleanup)
8990 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8991 (cache_space, cache): Delete, now folded inside struct
8992 ada_pspace_data.
8993 (ada_get_symbol_cache): New function.
8994 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8995 implementation.
8996 (_initialize_ada_language): Remove initialization of cache_space.
8997 Move call to observer_attach_inferior_exit up, grouping it
8998 with the other observer registrations inside this function.
8999 Rename command to be more general. Add call to
9000 register_program_space_data_with_cleanup.
9001
143adbbf
JB
90022014-02-10 Joel Brobecker <brobecker@adacore.com>
9003
9004 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
9005 ada_new_objfile_observer.
9006 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
9007 (_initialize_tasks): Update uses of ada_new_objfile_observer
9008 and ada_tasks_normal_stop_observer.
9009
aa4fb036
JB
90102014-02-10 Joel Brobecker <brobecker@adacore.com>
9011
9012 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
9013 returned by the 'Length attribute to integer.
9014
9dee8cc6
JB
90152014-02-10 Joel Brobecker <brobecker@adacore.com>
9016
9017 * ada-lang.c (_initialize_ada_language): Initialize
9018 cache_space obstack.
9019
3d9434b5
JB
90202014-02-10 Joel Brobecker <brobecker@adacore.com>
9021
9022 * ada-lang.c (HASH_SIZE): New macro.
9023 (struct cache_entry): New type.
9024 (cache_space, cache): New static globals.
9025 (ada_clear_symbol_cache, find_entry): New functions.
9026 (lookup_cached_symbol, cache_symbol): Implement.
9027 (ada_new_objfile_observer, ada_free_objfile_observer): New.
9028 (_initialize_ada_language): Attach ada_new_objfile_observer
9029 and ada_free_objfile_observer.
9030
f0c5f9b2
JB
90312014-02-10 Joel Brobecker <brobecker@adacore.com>
9032
9033 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
9034 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
9035 struct block * parameter.
9036 (ada_lookup_symbol_list_worker): Constify local variable "block".
9037 Remove cast which is no longer necessary.
9038
ed3ef339
DE
90392014-02-10 Doug Evans <xdje42@gmail.com>
9040
9041 Add Guile as an extension language.
9042 * NEWS: Mention Guile scripting.
9043 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
9044 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
9045 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
9046 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
9047 (CLIBS): Add GUILE_LIBS.
9048 (install-guile): New rule.
9049 (guile.o): New rule.
9050 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
9051 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
9052 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
9053 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
9054 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
9055 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
9056 (scm-type.o, scm-utils.o, scm-value.o): New rules.
9057 * configure.ac: New option --with-guile.
9058 * configure: Regenerate.
9059 * config.in: Regenerate.
9060 * auto-load.c: Remove #include "python/python.h". Add #include
9061 "gdb/section-scripts.h".
9062 (source_section_scripts): Handle Guile scripts.
9063 (_initialize_auto_load): Add name of Guile objfile script to
9064 scripts-directory help text.
9065 * breakpoint.c (condition_command): Tweak comment to include Scheme.
9066 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
9067 (struct breakpoint): New member scm_bp_object.
9068 * defs.h (enum command_control_type): New value guile_control.
9069 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
9070 "extension.h".
9071 (show_user): Update comment.
9072 (_initialize_cli_cmds): Update help text for "show user". Update help
9073 text for max-user-call-depth.
9074 * cli/cli-script.c: Remove #include "python/python.h". Add #include
9075 "extension.h".
9076 (multi_line_command_p): Add guile_control.
9077 (print_command_lines): Handle guile_control.
9078 (execute_control_command, recurse_read_control_structure): Ditto.
9079 (process_next_line): Recognize "guile" commands.
9080 * disasm.c (gdb_disassemble_info): Make non-static.
9081 * disasm.h: #include "dis-asm.h".
9082 (struct gdbarch): Add forward decl.
9083 (gdb_disassemble_info): Declare.
9084 * extension.c: #include "guile/guile.h".
9085 (extension_languages): Add guile.
9086 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9087 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9088 * gdbtypes.c (get_unsigned_type_max): New function.
9089 (get_signed_type_minmax): New function.
9090 * gdbtypes.h (get_unsigned_type_max): Declare.
9091 (get_signed_type_minmax): Declare.
9092 * guile/README: New file.
9093 * guile/guile-internal.h: New file.
9094 * guile/guile.c: New file.
9095 * guile/guile.h: New file.
9096 * guile/scm-arch.c: New file.
9097 * guile/scm-auto-load.c: New file.
9098 * guile/scm-block.c: New file.
9099 * guile/scm-breakpoint.c: New file.
9100 * guile/scm-disasm.c: New file.
9101 * guile/scm-exception.c: New file.
9102 * guile/scm-frame.c: New file.
9103 * guile/scm-gsmob.c: New file.
9104 * guile/scm-iterator.c: New file.
9105 * guile/scm-lazy-string.c: New file.
9106 * guile/scm-math.c: New file.
9107 * guile/scm-objfile.c: New file.
9108 * guile/scm-ports.c: New file.
9109 * guile/scm-pretty-print.c: New file.
9110 * guile/scm-safe-call.c: New file.
9111 * guile/scm-string.c: New file.
9112 * guile/scm-symbol.c: New file.
9113 * guile/scm-symtab.c: New file.
9114 * guile/scm-type.c: New file.
9115 * guile/scm-utils.c: New file.
9116 * guile/scm-value.c: New file.
9117 * guile/lib/gdb.scm: New file.
9118 * guile/lib/gdb/boot.scm: New file.
9119 * guile/lib/gdb/experimental.scm: New file.
9120 * guile/lib/gdb/init.scm: New file.
9121 * guile/lib/gdb/iterator.scm: New file.
9122 * guile/lib/gdb/printing.scm: New file.
9123 * guile/lib/gdb/types.scm: New file.
9124 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9125 (VPATH): Add $(GUILE_SRCDIR).
9126 (GUILE_DIR): New variable.
9127 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9128 (all): Add stamp-guile dependency.
9129 (stamp-guile): New rule.
9130 (clean-guile, install-guile, uninstall-guile): New rules.
9131 (install-only): Add install-guile dependency.
9132 (uninstall): Add uninstall-guile dependency.
9133 (clean): Add clean-guile dependency.
9134
ac020ec5
DE
91352014-02-09 Doug Evans <xdje42@gmail.com>
9136
9137 Revert this patch (which I approved, mea culpa).
9138
9139 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9140
9141 * Makefile.in (all-lib): Remove.
9142 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9143
2a081c59
JK
91442014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9145
9146 Fix Python stack corruption.
9147 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9148 gdb_py_longest.
9149
0a6bd22d
MK
91502014-02-08 Mark Kettenis <kettenis@gnu.org>
9151
9152 * Makefile.in (all-lib): Remove.
9153 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9154
1a860409
DE
91552014-02-07 Doug Evans <dje@google.com>
9156
9157 * extension-priv.h (extension_language_script_ops): Add comment.
9158 (extension_language_ops): Add comment.
caf5a491 9159 (active_ext_lang_state): Fix typo in comment.
1a860409 9160
d137e6dc
PA
91612014-02-07 Pedro Alves <palves@redhat.com>
9162
0dcb32c3 9163 PR breakpoints/16292
d137e6dc
PA
9164 * infrun.c (handle_signal_stop) <signal arrives while stepping
9165 over a breakpoint>: Switch back to the stepping thread.
9166
ce6d0892
YQ
91672014-02-07 Yao Qi <yao@codesourcery.com>
9168
9169 * target.c (target_xfer_partial): Return zero if LEN is zero.
9170
2ed4b548
YQ
91712014-02-07 Yao Qi <yao@codesourcery.com>
9172
9173 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9174 (ld_so_xfer_auxv): Likewise.
9175 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9176 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9177 * corelow.c (core_xfer_partial): Likewise.
9178 * ctf.c (ctf_xfer_partial): Likewise.
9179 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9180 (darwin_xfer_partial): Likewise.
9181 * exec.c (exec_xfer_partial): Likewise.
9182 * gnu-nat.c (gnu_xfer_partial): Likewise.
9183 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9184 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9185 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9186 * linux-nat.c (linux_xfer_siginfo): Likewise.
9187 (linux_proc_xfer_spu): Likewise.
9188 * procfs.c (procfs_xfer_partial): Likewise.
9189 * record-full.c (record_full_xfer_partial): Likewise.
9190 (record_full_core_xfer_partial): Likewise.
9191 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9192 * remote.c (remote_write_qxfer): Likewise.
9193 (remote_write_qxfer, remote_read_qxfer): Likewise.
9194 (remote_xfer_partial): Likewise.
9195 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9196 (rs6000_xfer_shared_libraries): Likewise.
9197 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9198 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9199 (spu_xfer_partial): Likewise.
9200 * target.c (memory_xfer_partial_1): Likewise.
9201 * tracepoint.c (tfile_xfer_partial): Likewise.
9202 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9203 (windows_xfer_partial): Likewise.
9204
c09f20e4
YQ
92052014-02-07 Yao Qi <yao@codesourcery.com>
9206
9207 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9208 comments.
9209 (core_xfer_shared_libraries_aix): Likewise.
9210 * gdbarch.c, gdbarch.h: Regenerated.
9211 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9212 ULONGEST. Change 'len_avail' type to ULONGEST.
9213 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9214 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9215 declaration.
9216 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9217
8635b3bf
YQ
92182014-02-07 Yao Qi <yao@codesourcery.com>
9219
9220 * corefile.c (memory_error): Get 'exception' from ERR and pass
9221 'exception' to throw_error.
9222
6dddc817
DE
92232014-02-06 Doug Evans <xdje42@gmail.com>
9224
9225 * configure.ac (libpython checking): Remove all but python.o from
9226 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9227 * configure: Regenerate.
9228
9229 * Makefile.in (SFILES): Add extension.c.
9230 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9231 (COMMON_OBS): Add extension.o.
9232 * extension.h: New file.
9233 * extension-priv.h: New file.
9234 * extension.c: New file.
9235
9236 * python/python-internal.h: #include "extension.h".
9237 (gdbpy_auto_load_enabled): Declare.
9238 (gdbpy_apply_val_pretty_printer): Declare.
9239 (gdbpy_apply_frame_filter): Declare.
9240 (gdbpy_preserve_values): Declare.
9241 (gdbpy_breakpoint_cond_says_stop): Declare.
9242 (gdbpy_breakpoint_has_cond): Declare.
9243 (void source_python_script_for_objfile): Delete.
9244 * python/python.c: #include "extension-priv.h".
9245 Delete inclusion of "observer.h".
9246 (extension_language_python): Moved here and renamed from
9247 script_language_python in py-auto-load.c.
9248 Redefined to be of type extension_language_defn.
9249 (python_extension_script_ops): New global.
9250 (python_extension_ops): New global.
9251 (struct python_env): New member previous_active.
9252 (restore_python_env): Call restore_active_ext_lang.
9253 (ensure_python_env): Call set_active_ext_lang.
9254 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9255 New arg extlang.
9256 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9257 New arg extlang.
9258 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9259 New arg extlang.
9260 (gdbpy_eval_from_control_command): Renamed from
9261 eval_python_from_control_command, made static. New arg extlang.
9262 (gdbpy_source_script) Renamed from source_python_script, made static.
9263 New arg extlang.
9264 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9265 result to int. New arg extlang.
9266 (gdbpy_source_objfile_script): Renamed from
9267 source_python_script_for_objfile, made static. New arg extlang.
9268 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9269 static. New args extlang, extlang_printers. Change result type to
9270 "void".
9271 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9272 static. New arg extlang. Rename arg printers to extlang_printers
9273 and change type to ext_lang_type_printers *.
9274 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9275 static. Replace argument arg with extlang, extlang_printers.
9276 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9277 (!HAVE_PYTHON, source_python_script): Delete.
9278 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9279 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9280 (!HAVE_PYTHON, start_type_printers): Delete.
9281 (!HAVE_PYTHON, apply_type_printers): Delete.
9282 (!HAVE_PYTHON, free_type_printers): Delete.
9283 (_initialize_python): Delete call to observer_attach_before_prompt.
9284 (finalize_python): Set/restore active extension language.
9285 (gdbpy_finish_initialization) Renamed from
9286 finish_python_initialization, made static. New arg extlang.
9287 (gdbpy_initialized): New function.
9288 * python/python.h: #include "extension.h". Delete #include
9289 "value.h", "mi/mi-cmds.h".
9290 (extension_language_python): Declare.
9291 (GDBPY_AUTO_FILE_NAME): Delete.
9292 (enum py_bt_status): Moved to extension.h and renamed to
9293 ext_lang_bt_status.
9294 (enum frame_filter_flags): Moved to extension.h.
9295 (enum py_frame_args): Moved to extension.h and renamed to
9296 ext_lang_frame_args.
9297 (finish_python_initialization): Delete.
9298 (eval_python_from_control_command): Delete.
9299 (source_python_script): Delete.
9300 (apply_val_pretty_printer): Delete.
9301 (apply_frame_filter): Delete.
9302 (preserve_python_values): Delete.
9303 (gdbpy_script_language_defn): Delete.
9304 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9305 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9306
9307 * auto-load.c: #include "extension.h".
9308 (GDB_AUTO_FILE_NAME): Delete.
9309 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9310 (script_language_gdb): Delete, moved to extension.c and renamed to
9311 extension_language_gdb.
9312 (source_gdb_script_for_objfile): Delete.
9313 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9314 (loaded_script): Change type of language member to
9315 struct extension_language_defn *.
9316 (init_loaded_scripts_info): Initialize
9317 unsupported_script_warning_printed.
9318 (maybe_add_script): Make static. Change type of language arg to
9319 struct extension_language_defn *.
9320 (clear_section_scripts): Reset unsupported_script_warning_printed.
9321 (auto_load_objfile_script_1): Rewrite to use extension language API.
9322 (auto_load_objfile_script): Make public. Remove support-compiled-in
9323 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9324 (source_section_scripts): Rewrite to use extension language API.
9325 (load_auto_scripts_for_objfile): Rewrite to use
9326 auto_load_scripts_for_objfile.
9327 (collect_matching_scripts_data): Change type of language member to
9328 struct extension_language_defn *.
9329 (auto_load_info_scripts): Change type of language arg to
9330 struct extension_language_defn *.
9331 (unsupported_script_warning_print): New function.
9332 (script_not_found_warning_print): Make static.
9333 (_initialize_auto_load): Rewrite construction of scripts-directory
9334 help.
9335 * auto-load.h (struct objfile): Add forward decl.
9336 (struct script_language): Delete.
9337 (struct auto_load_pspace_info): Add forward decl.
9338 (struct extension_language_defn): Add forward decl.
9339 (maybe_add_script): Delete.
9340 (auto_load_objfile_script): Declare.
9341 (script_not_found_warning_print): Delete.
9342 (auto_load_info_scripts): Update prototype.
9343 (auto_load_gdb_scripts_enabled): Declare.
9344 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9345 auto_load_python_scripts_enabled and made public.
9346 (script_language_python): Delete, moved to python.c.
9347 (gdbpy_script_language_defn): Delete.
9348 (info_auto_load_python_scripts): Update to use
9349 extension_language_python.
9350
9351 * breakpoint.c (condition_command): Replace call to
9352 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9353 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9354 with call to breakpoint_ext_lang_cond_says_stop.
9355 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9356 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9357 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9358 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9359 New arg slang.
9360 (local_setattro): Print name of extension language with existing
9361 stop condition.
9362
9363 * valprint.c (val_print, value_print): Update to call
9364 apply_ext_lang_val_pretty_printer.
9365 * cp-valprint.c (cp_print_value): Update call to
9366 apply_ext_lang_val_pretty_printer.
9367 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9368 (gdbpy_apply_val_pretty_printer): Renamed from
9369 apply_val_pretty_printer. New arg extlang.
9370 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9371
9372 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9373 extension language API.
9374 * cli/cli-script.c (execute_control_command): Update to call
9375 eval_ext_lang_from_control_command.
9376
9377 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9378 enum ext_lang_bt_status values. Update call to
9379 apply_ext_lang_frame_filter.
9380 (mi_cmd_stack_list_locals): Ditto.
9381 (mi_cmd_stack_list_args): Ditto.
9382 (mi_cmd_stack_list_variables): Ditto.
9383 * mi/mi-main.c: Delete #include "python/python-internal.h".
9384 Add #include "extension.h".
9385 (mi_cmd_list_features): Replace reference to python internal variable
9386 gdb_python_initialized with call to ext_lang_initialized_p.
9387
9388 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9389 Update to use enum ext_lang_frame_args. Update to call
9390 apply_ext_lang_frame_filter.
9391 * python/py-framefilter.c (extract_sym): Update to use enum
9392 ext_lang_bt_status.
9393 (extract_value, py_print_type, py_print_value): Ditto.
9394 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9395 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9396 (py_print_frame): Ditto.
9397 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9398 New arg extlang. Update to use enum ext_lang_bt_status.
9399
9400 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9401 finish_python_initialization. Replace with call to
9402 finish_ext_lang_initialization.
9403
9404 * typeprint.c (do_free_global_table): Update to call
9405 free_ext_lang_type_printers.
9406 (create_global_typedef_table): Update to call
9407 start_ext_lang_type_printers.
9408 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9409 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9410 (type_print_options): Change type of global_printers from "void *"
9411 to "struct ext_lang_type_printers *".
9412
9413 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9414 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9415 (gdbpy_preserve_values): Renamed from preserve_python_values.
9416 New arg extlang.
9417 (!HAVE_PYTHON, preserve_python_values): Delete.
9418
9419 * utils.c (quit_flag): Delete, moved to extension.c.
9420 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9421 extension.c.
9422
9423 * eval.c: Delete #include "python/python.h".
9424 * main.c: Delete #include "python/python.h".
9425
9426 * defs.h: Update comment.
9427
6af79985
JB
94282014-02-06 Joel Brobecker <brobecker@adacore.com>
9429
9430 GDB 7.7 released.
9431
12c5175d
MK
94322014-02-05 Mark Kettenis <kettenis@gnu.org>
9433
9434 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9435 defined.
9436
8dc5b319
YQ
94372014-02-05 Yao Qi <yao@codesourcery.com>
9438
9439 * remote.c (remote_pass_signals): Remove local 'buf' and use
9440 rs->buf.
9441 (remote_program_signals): Likewise.
9442
de7b2893
YQ
94432014-02-05 Yao Qi <yao@codesourcery.com>
9444
9445 * ctf.c: Include "inferior.h" and "gdbthread.h".
9446 (CTF_PID): A new macro.
9447 (ctf_open): Call inferior_appeared and add_thread_silent.
9448 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9449 (ctf_thread_alive): New function.
9450 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9451
66d032ac
YQ
94522014-02-05 Yao Qi <yao@codesourcery.com>
9453
9454 Revert this patch:
9455
9456 2013-05-24 Yao Qi <yao@codesourcery.com>
9457
9458 * tracepoint.c (TFILE_PID): Remove.
9459 (tfile_open): Don't add thread and inferior.
9460 (tfile_close): Don't set 'inferior_ptid'. Don't call
9461 exit_inferior_silent.
9462 (tfile_thread_alive): Remove.
9463 (init_tfile_ops): Don't set field 'to_thread_alive' of
9464 tfile_ops.
9465
f4ccffad
CE
94662014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9467
9468 * remote.c (remote_start_remote): Call remote_check_symbols even
9469 if only symbol-file (not file) has been given.
9470
591a12a1
UW
94712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9472
9473 * gdbarch.sh (skip_entrypoint): New callback.
9474 * gdbarch.c, gdbarch.h: Regenerate.
9475 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9476 * infrun.c (fill_in_stop_func): Likewise.
9477 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9478 (ppc_elfv2_elf_make_msymbol_special): New function.
9479 (ppc_elfv2_skip_entrypoint): Likewise.
9480 (ppc_linux_init_abi): Install them for ELFv2.
9481
cc0e89c5
UW
94822014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9483
9484 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9485 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9486 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9487 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9488 structures returned in GPRs.
9489
52f548e4
UW
94902014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9491
9492 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9493 offset to the stack parameter list for the ELFv2 ABI.
9494
d4094b6a
UW
94952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9496
9497 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9498 set_gdbarch_convert_from_func_ptr_addr and
9499 set_gdbarch_elf_make_msymbol_special for ELFv1.
9500 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9501 function descriptors on ELFv1.
9502 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9503 set up r12 at function entry.
9504
cd453cd0
UW
95052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9506
9507 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9508 (struct gdbarch_tdep): New member elf_abi.
9509
9510 * rs6000-tdep.c: Include "elf/ppc64.h".
9511 (rs6000_gdbarch_init): Detect ELF ABI version.
9512
0ff3e01f
UW
95132014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9514
9515 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9516 within a register pair holding a DFP 128-bit value on little-endian.
9517 (ppc64_sysv_abi_return_value_base): Likewise.
9518 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9519 (dfp_pseudo_register_write): Likewise.
9520
5b757e5d
UW
95212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9522
9523 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9524 offset on little-endian when passing _Decimal32.
9525 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9526
084ee545
UW
95272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9528
9529 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9530 of the overlapped FP register within the VSX register on little-
9531 endian platforms.
9532 (efpr_pseudo_register_write): Likewise.
9533
d63167af
UW
95342014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9535
9536 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9537 offset on little-endian when passing small structures.
9538
e765b44c
UW
95392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9540
9541 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9542 (struct ppc64_sysv_argpos): New data structure.
9543 (ppc64_sysv_abi_push_float): Remove.
9544 (ppc64_sysv_abi_push_val): New function.
9545 (ppc64_sysv_abi_push_integer): Likewise.
9546 (ppc64_sysv_abi_push_freg): Likewise.
9547 (ppc64_sysv_abi_push_vreg): Likewise.
9548 (ppc64_sysv_abi_push_param): Likewise.
9549 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9550 (ppc64_sysv_abi_return_value_base): New function.
9551 (ppc64_sysv_abi_return_value): Refactor to use it.
9552
36c24d95
UW
95532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
9554
9555 * NEWS: Document new target powerpc64le-*-linux*.
9556
26fd9228
MK
95572014-02-04 Mark Kettenis <kettenis@gnu.org>
9558
9559 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9560 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9561 core dumps.
9562 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9563 register set used in ELF core dumps. Add floating-point register set.
9564
c5bb7362
KB
95652014-02-03 Kevin Buettner <kevinb@redhat.com>
9566
74228e77 9567 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
9568 dwarf2_to_gdb[] table using symbolic constants. Adjust
9569 penultimate entry from number representing the PC register
9570 to symbolic constant representing the MDR register. Add
9571 constant for the PC register to the end of the table.
9572
af09351e
MK
95732014-02-03 Mark Kettenis <kettenis@gnu.org>
9574
9575 * bsd-kvm.c: Include <sys/param.h>
9576
8507e05d
MK
95772014-02-03 Mark Kettenis <kettenis@gnu.org>
9578
9579 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9580
ae56bfb8
JB
95812014-01-31 Joel Brobecker <brobecker@adacore.com>
9582
9583 * ada-lang.h (clear_ada_sym_cache): Delete.
9584
718ee4dc
UW
95852014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
9586
9587 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9588
401e27fd
JM
95892014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9590
9591 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9592 the sigreturn register save area only if the syscall is
9593 sigreturn.
9594
a7c88acd
JB
95952014-01-29 Joel Brobecker <brobecker@adacore.com>
9596
9597 * valops.c (value_slice): Minor reformatting.
9598
fa0079ea
UW
95992014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
9600
9601 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9602
c6044dd1
JB
96032014-01-28 Joel Brobecker <brobecker@adacore.com>
9604
9605 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9606 New static globals.
9607 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9608 (ada_ignore_descriptive_types_p): New static global.
9609 (find_parallel_type_by_descriptive_type): Return immediately
9610 if ada_ignore_descriptive_types_p is set.
9611 (_initialize_ada_language): Register new commands "maintenance
9612 set ada", "maintenance show ada", "maintenance set ada
9613 ignore-descriptive-types" and "maintenance show ada
9614 ignore-descriptive-types".
9615 * NEWS: Add entry for new "maint ada set/show
9616 ignore-descriptive-types" commands.
9617
568e808b
MM
96182014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9619
9620 * record-btrace.c (record_btrace_close): Call btrace_teardown
9621 for all threads.
9622
467d141b
JB
96232014-01-27 Joel Brobecker <brobecker@adacore.com>
9624
9625 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9626 "ui-out.h".
9627
fb151210
JB
96282014-01-27 Joel Brobecker <brobecker@adacore.com>
9629
9630 * ada-typeprint (type_is_full_subrange_of_target_type):
9631 New function.
9632 (print_range): Add parameter bounds_prefered_p. If not set,
9633 try printing range types using the name of their base type.
9634 (print_range_type): Add parameter bounds_prefered_p.
9635 Use it in call to print_range.
9636 (print_array_type, ada_print_type): Update calls to print_range
9637 and print_range_type.
9638
aba02109
JB
96392014-01-27 Joel Brobecker <brobecker@adacore.com>
9640
9641 * ada-typeprint.c (print_array_type, print_choices, print_range)
9642 (print_range_bound, print_dynamic_range_bound, print_range_type):
9643 Remove declaration.
9644
e62e21fd
JB
96452014-01-27 Joel Brobecker <brobecker@adacore.com>
9646
9647 * ada-typeprint.c (print_range): Add missing empty line
9648 after local declaration.
9649
859cf5d1
JB
96502014-01-27 Joel Brobecker <brobecker@adacore.com>
9651
9652 * ada-valprint.c (print_optional_low_bound): Get index_type's
9653 target type for as long as it is a TYPE_CODE_RANGE.
9654
25790f6f
JB
96552014-01-27 Joel Brobecker <brobecker@adacore.com>
9656
9657 * procfs.c (procfs_make_note_section): Remove assertion and
9658 associated comment.
9659
6b6aa828
YQ
96602014-01-24 Yao Qi <yao@codesourcery.com>
9661
9662 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9663 * corelow.c (get_core_siginfo): Likewise.
9664
5d6df423
YQ
96652014-01-24 Yao Qi <yao@codesourcery.com>
9666
9667 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9668 ULONGEST. Don't check 'len' is negative.
9669 (remote_write_bytes): Change type of 'len' to ULONGEST.
9670
83b645b8
TT
96712014-01-23 Tom Tromey <tromey@redhat.com>
9672
9673 PR python/16485:
9674 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9675 Handle exception from frame.block.
9676 (FrameVars.fetch_frame_locals): Likewise.
9677
0740f8d8
TT
96782014-01-23 Tom Tromey <tromey@redhat.com>
9679
9680 PR python/16487:
9681 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9682 on a NULL pointer. Move "goto error" to correct place.
9683
21909fa1
TT
96842014-01-23 Tom Tromey <tromey@redhat.com>
9685
9686 PR python/16491:
9687 * python/py-framefilter.c (apply_frame_filter): Call
9688 ensure_python_env after computing gdbarch.
9689
17fde6d0
YQ
96902014-01-23 Yao Qi <yao@codesourcery.com>
9691
9692 * target.c (raw_memory_xfer_partial): Change argument type
9693 from void * to gdb_byte *.
9694 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9695
87ce2a04
DE
96962014-01-22 Doug Evans <dje@google.com>
9697
9698 New gdbserver option --debug-format=timestamp.
9699 * NEWS: Mention it.
9700
237b092b
AA
97012014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9702
9703 * syscalls/s390x-linux.xml: New file.
9704 * syscalls/s390-linux.xml: New file.
9705 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9706 (XML_SYSCALL_FILENAME_S390X): Likewise.
9707 (op_svc): New enum value for SVC opcode.
9708 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9709 (s390_linux_get_syscall_number): New function.
9710 (s390_gdbarch_init): Register '*get_syscall_number' and the
9711 syscall xml file name.
9712 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9713 "s390-linux.xml" and "s390x-linux.xml".
9714 * NEWS: Announce new feature.
9715
54bff650
BS
97162014-01-22 Baruch Siach <baruch@tkos.co.il>
9717
9718 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9719
14e361d7
PA
97202014-01-22 Pedro Alves <palves@redhat.com>
9721
9722 * xtensa-config.c: Include defs.h.
9723
46bbb3ed
JB
97242014-01-22 Joel Brobecker <brobecker@adacore.com>
9725
9726 * common/common-utils.h: Add "ARI:" comment beside __func__
9727 reference.
9728
3a80edfc
JB
97292014-01-22 Joel Brobecker <brobecker@adacore.com>
9730
9731 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9732 documentation a bit.
9733
4869db5e
RM
97342014-01-21 Roland McGrath <mcgrathr@google.com>
9735
9736 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9737 * configure: Regenerate.
9738 * aclocal.m4: Regenerate.
9739 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9740 New substituted variables.
9741 (install-strip): New target.
9742 (INSTALL_SCRIPT): New substituted variable.
9743 (FLAGS_TO_PASS): Add it.
9744 (install-only): Use $(INSTALL_SCRIPT) rather than
9745 $(INSTALL_PROGRAM) for gcore.
9746
9ea4267d
TT
97472014-01-20 Tom Tromey <tromey@redhat.com>
9748
9749 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9750 together.
9751
1f2bdf09
TT
97522014-01-20 Tom Tromey <tromey@redhat.com>
9753
9754 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9755 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9756 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9757 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9758 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9759 (struct cmd_list_element) <flags>: Remove.
9760 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9761 doc_allocated>: New fields.
9762 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9763 bitfields.
9764 * maint.c (maintenance_do_deprecate): Update.
9765 * top.c (execute_command): Update.
9766
e671835b
BS
97672014-01-20 Baruch Siach <baruch@tkos.co.il>
9768
9769 * xtensa-linux-nat.c: Include asm/ptrace.h.
9770
50367cd2
IB
97712014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9772
9773 * Makefile.in (SFILES): Add d-support.c.
9774 (COMMON_OBS): Add d-support.o.
9775 * d-lang.h (d_parse_symbol): Add comment, now defined in
9776 d-support.c.
9777 * d-lang.c (parse_call_convention)
9778 (parse_attributes, parse_function_types)
9779 (parse_function_args, parse_type, parse_identifier)
9780 (call_convention_p, d_parse_symbol): Move functions to ...
9781 * d-support.c: ... New file.
9782
ec9f644a
IB
97832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9784
9785 * d-lang.h (d_parse_symbol): Add declaration.
9786 * d-lang.c (extract_identifiers)
9787 (extract_type_info): Remove functions.
9788 (parse_call_convention, parse_attributes)
9789 (parse_function_types, parse_function_args)
9790 (parse_type, parse_identifier, call_convention_p)
9791 (d_parse_symbol): New functions.
9792 (d_demangle): Use d_parse_symbol to demangle D symbols.
9793
94b1b47e
IB
97942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9795
9796 * d-lang.h (struct builtin_d_type): New data type.
9797 (builtin_d_type): Add declaration.
9798 * d-lang.c (d_language_arch_info, build_d_types)
9799 (builtin_d_type): New functions.
9800 (enum d_primitive_types): New data type.
9801 (d_language_defn): Change c_language_arch_info to
9802 d_language_arch_info.
9803 (d_type_data): New static variable.
9804 (_initialize_d_language): Initialize d_type_data.
9805
63778547
IB
98062014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9807
9808 * d-lang.h (d_main_name): Add declaration.
9809 * d-lang.c (d_main_name): New function.
9810 * symtab.c (find_main_name): Add call to d_main_name.
9811
3271ba66
IB
98122014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9813
9814 * d-lang.c (d_language_defn): Change macro_expansion_c to
9815 macro_expansion_no.
9816
d36b3012
IB
98172014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9818
9819 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9820
c90a6fb7
SDJ
98212014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9822
9823 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9824 gdb_exception" declaration.
9825 * remote.c (getpkt_or_notif_sane): Likewise.
9826
749234e5
DE
98272014-01-17 Doug Evans <dje@google.com>
9828
9829 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9830 function, contents of dirnames_to_char_ptr_vec_append moved here.
9831 (delim_string_to_char_ptr_vec): New function.
9832 (dirnames_to_char_ptr_vec_append): Rewrite.
9833 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9834
df049a58
DE
98352014-01-17 Doug Evans <dje@google.com>
9836
9837 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9838 and moved here ...
9839 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9840 #include "common-utils.h".
9841 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9842 * common/vec.h (VEC_ASSERT_PASS): Update.
9843 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9844 (MACH_CHECK_ERROR): Update.
9845
69f97648
SM
98462014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9847
9848 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9849 comments.
9850 * gdbarch.h: Regenerate.
9851
98b1cfdc
TT
98522014-01-16 Tom Tromey <tromey@redhat.com>
9853
9854 * value.c (struct value) <regnum>: Move earlier.
9855
77a19445
TT
98562014-01-16 Tom Tromey <tromey@redhat.com>
9857
9858 * remote.c (extended_remote_create_inferior): Rename from
9859 extended_remote_create_inferior_1. Add "ops" argument. Remove
9860 old implementation.
9861
62261490
PA
98622014-01-16 Pedro Alves <palves@redhat.com>
9863
9864 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9865 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9866 the backchain.
9867
4d65956b
DE
98682014-01-16 Doug Evans <dje@google.com>
9869
9870 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9871
52834460
MM
98722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9873
9874 * btrace.h (btrace_thread_flag): New.
9875 (struct btrace_thread_info) <flags>: New.
9876 * record-btrace.c (record_btrace_resume_thread)
9877 (record_btrace_find_thread_to_move, btrace_step_no_history)
9878 (btrace_step_stopped, record_btrace_start_replaying)
9879 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9880 (record_btrace_find_resume_thread): New.
9881 (record_btrace_resume, record_btrace_wait): Extend.
9882 (record_btrace_can_execute_reverse): New.
9883 (record_btrace_open): Fail in non-stop mode.
9884 (record_btrace_set_replay): Split into this, ...
9885 (record_btrace_stop_replaying): ... this, ...
9886 (record_btrace_clear_histories): ... and this.
9887 (init_record_btrace_ops): Init to_can_execute_reverse.
9888 * NEWS: Announce it.
9889
118e6252
MM
98902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9891
9892 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9893 (forward_target_decr_pc_after_break)
9894 (target_decr_pc_after_break): New.
9895 * target.c (forward_target_decr_pc_after_break)
9896 (target_decr_pc_after_break): New.
9897 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9898 instead of gdbarch_decr_pc_after_break.
9899 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9900 instead of gdbarch_decr_pc_after_break.
9901 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9902 instead of gdbarch_decr_pc_after_break.
9903 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9904 instead of gdbarch_decr_pc_after_break.
9905 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9906 instead of gdbarch_decr_pc_after_break.
9907 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9908 instead of gdbarch_decr_pc_after_break.
9909
6e07b1d2
MM
99102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9911
9912 * btrace.c: Include regcache.h.
9913 (btrace_add_pc): New.
9914 (btrace_enable): Call btrace_add_pc.
9915 (btrace_is_empty): New.
9916 * btrace.h (btrace_is_empty): New.
9917 * record-btrace.c (require_btrace, record_btrace_info): Call
9918 btrace_is_empty.
9919
969c39fb
MM
99202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9921
9922 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9923 Support delta reads.
9924 (linux_disable_btrace): Change return type.
9925 * common/linux-btrace.h (linux_read_btrace): Change parameters
9926 and return type to allow error reporting. Update users.
9927 (linux_disable_btrace): Change return type. Update users.
9928 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9929 New.
9930 (btrace_error): New.
9931 (btrace_block) <begin>: Comment on BEGIN == 0.
9932 * btrace.c (btrace_compute_ftrace): Start from the end of
9933 the current trace.
9934 (btrace_stitch_trace, btrace_clear_history): New.
9935 (btrace_fetch): Read delta trace, return if replaying.
9936 (btrace_clear): Move clear history code to btrace_clear_history.
9937 (parse_xml_btrace): Throw an error if parsing failed.
9938 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9939 and return type to allow error reporting.
9940 (target_read_btrace): Change parameters and return type to allow
9941 error reporting.
9942 * target.c (target_read_btrace): Update.
9943 * remote.c (remote_read_btrace): Support delta reads. Pass
9944 errors on.
9945 * NEWS: Announce it.
9946
0b722aec
MM
99472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9948
9949 * record.h (record_btrace_frame_unwind)
9950 (record_btrace_tailcall_frame_unwind): New declarations.
9951 * dwarf2-frame: Include record.h
9952 (dwarf2_frame_cfa): Throw an error for btrace frames.
9953 * record-btrace.c: Include hashtab.h.
9954 (btrace_get_bfun_name): New.
9955 (btrace_call_history): Call btrace_get_bfun_name.
9956 (struct btrace_frame_cache): New.
9957 (bfcache): New.
9958 (bfcache_hash, bfcache_eq, bfcache_new): New.
9959 (btrace_get_frame_function): New.
9960 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9961 (record_btrace_frame_this_id): Compute own id.
9962 (record_btrace_frame_prev_register): Provide PC, throw_error
9963 for all other registers.
9964 (record_btrace_frame_sniffer): Detect btrace frames.
9965 (record_btrace_tailcall_frame_sniffer): New.
9966 (record_btrace_frame_dealloc_cache): New.
9967 (record_btrace_frame_unwind): Add new functions.
9968 (record_btrace_tailcall_frame_unwind): New.
9969 (_initialize_record_btrace): Allocate cache.
9970 * btrace.c (btrace_clear): Call reinit_frame_cache.
9971 * NEWS: Announce it.
9972
066ce621
MM
99732014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9974
9975 * record-btrace.c (record_btrace_set_replay)
9976 (record_btrace_goto_begin, record_btrace_goto_end)
9977 (record_btrace_goto): New.
9978 (init_record_btrace_ops): Initialize them.
9979 * NEWS: Announce it.
9980
e2887aa3
MM
99812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9982
9983 * record-btrace.c (record_btrace_find_new_threads)
9984 (record_btrace_thread_alive): New.
9985 (init_record_btrace_ops): Initialize to_find_new_threads and
9986 to_thread_alive.
9987
b2f4cfde
MM
99882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9989
9990 * record-btrace.c (record_btrace_resume): New.
9991 (record_btrace_wait): New.
9992 (init_record_btrace_ops): Initialize to_wait and to_resume.
9993
633785ff
MM
99942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9995
9996 * record-btrace.c (record_btrace_xfer_partial)
9997 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9998 (record_btrace_allow_memory_access): New.
9999 (init_record_btrace_ops): Initialize new methods.
10000 * target.c (raw_memory_xfer_partial): Bail out if target reports
10001 that this memory is not available.
10002
3db08215
MM
100032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10004
10005 * target.h (target_ops) <to_insert_breakpoint>
10006 <to_remove_breakpoint>: Add target_ops parameter.
10007 (forward_target_insert_breakpoint): New.
10008 (forward_target_remove_breakpoint): New.
10009 (memory_remove_breakpoint, memory_insert_breakpoint):
10010 Add target_ops parameter.
10011 * target.c (target_insert_breakpoint): Split into this and ...
10012 (forward_target_insert_breakpoint): ... this.
10013 (target_remove_breakpoint): Split into this and ...
10014 (forward_target_remove_breakpoint): ... this.
10015 (debug_to_insert_breakpoint): Add target_ops parameter.
10016 Call forward_target_insert_breakpoint.
10017 (debug_to_remove_breakpoint): Add target_ops parameter.
10018 Call forward_target_remove_breakpoint.
10019 (update_current_target): Do not inherit or default to_insert_breakpoint
10020 and to_remove_breakpoint.
10021 * corelow.c (ignore): Add target_ops parameter.
10022 * exec.c (ignore): Add target_ops parameter.
10023 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
10024 Add target_ops parameter.
10025 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
10026 Add target_ops parameter.
10027 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
10028 Add target_ops parameter.
10029 * record-full.c (record_full_beneath_to_insert_breakpoint)
10030 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
10031 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
10032 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
10033 (record_full_core_remove_breakpoint): Add target_ops parameter.
10034 Update users.
10035 (record_full_beneath_to_insert_breakpoint_ops)
10036 (record_full_beneath_to_remove_breakpoint_ops)
10037 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
10038 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
10039 tmp_to_remove_breakpoint_ops,
10040 record_full_beneath_to_insert_breakpoint_ops, and
10041 record_full_beneath_to_remove_breakpoint_ops.
10042 * remote-m32r-sdi.c (m32r_insert_breakpoint)
10043 (m32r_remove_breakpoint): Add target_ops parameter.
10044 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
10045 Add target_ops parameter.
10046 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
10047 Add target_ops parameter.
10048
cecac1ab
MM
100492014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10050 Markus Metzger <markus.t.metzger@intel.com>
10051
10052 * record-btrace.c: Include frame-unwind.h.
10053 (record_btrace_frame_unwind_stop_reason)
10054 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
10055 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
10056 New.
10057 (init_record_btrace_ops): Install it.
10058
824344ca
MM
100592014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10060
10061 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
10062 get_prev_frame_1.
10063
32261e52
MM
100642014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10065
10066 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
10067 earlier.
10068
ea001bdc
MM
100692014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 * frame-unwind.c: Include target.h.
10072 (frame_unwind_try_unwinder): New function with code from ...
10073 (frame_unwind_find_by_frame): ... here. New variable
10074 unwinder_from_target, call also target_get_unwinder)
10075 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
10076 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
10077 * target.h (struct target_ops): New fields to_get_unwinder and
10078 to_get_tailcall_unwinder.
10079 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
10080
1f3ef581
MM
100812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10082
10083 * record-btrace.c (record_btrace_fetch_registers)
10084 (record_btrace_store_registers)
10085 (record_btrace_to_prepare_to_store): New.
10086 (init_record_btrace_ops): Add the above.
10087
f32dbf8c
MM
100882014-01-16 Tom Tromey <tromey@redhat.com>
10089
10090 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10091 * target.h (struct target_ops) <to_prepare_to_store>: Add
10092 argument.
10093 (target_prepare_to_store): Add argument.
10094 * target.c (debug_to_prepare_to_store): Add argument.
10095 (update_current_target): Update.
10096 * remote.c (remote_prepare_to_store): Add 'self' argument.
10097 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10098 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10099 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10100 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10101 argument.
10102 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10103 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10104 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10105 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10106 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10107
07bbe694
MM
101082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10109
10110 * btrace.h (replay) <replay>: New.
10111 (btrace_is_replaying): New.
10112 * btrace.c (btrace_clear): Free replay iterator.
10113 (btrace_is_replaying): New.
10114 * record-btrace.c (record_btrace_is_replaying): New.
10115 (record_btrace_info): Print insn number if replaying.
10116 (record_btrace_insn_history): Start at replay position.
10117 (record_btrace_call_history): Start at replay position.
10118 (init_record_btrace_ops): Init to_record_is_replaying.
10119
0688d04e
MM
101202014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10121
10122 * record-btrace.c (record_btrace_insn_history_range): Include
10123 end.
10124 (record_btrace_insn_history_from): Adjust range.
10125 (record_btrace_call_history_range): Include
10126 end.
10127 (record_btrace_call_history_from): Adjust range.
10128 * NEWS: Announce changes.
10129
8710b709
MM
101302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10131
10132 * record.h (enum record_print_flag)
10133 <record_print_indent_calls>: New.
10134 * record.c (get_call_history_modifiers): Recognize /c modifier.
10135 (_initialize_record): Document /c modifier.
10136 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10137 Reorder fields. Optionally indent the function name. Update
10138 all users.
10139 * NEWS: Announce changes.
10140
d0fa7535
MM
101412014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10142
10143 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10144
5de9129b
MM
101452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10146
10147 * btrace.c (ftrace_new_function): Start counting at one.
10148 * record-btrace.c (record_btrace_info): Adjust number of calls
10149 and insns.
10150 * NEWS: Announce it.
10151
7acbe133
MM
101522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10153
10154 * record-btrace.c (btrace_call_history_insn_range): Print
10155 insn range as [begin, end].
10156
23a7fe75
MM
101572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10158
10159 * btrace.h (struct btrace_func_link): New.
10160 (enum btrace_function_flag): New.
10161 (struct btrace_inst): Rename to ...
10162 (struct btrace_insn): ...this. Update all users.
10163 (struct btrace_func) <ibegin, iend>: Remove.
10164 (struct btrace_func_link): New.
10165 (struct btrace_func): Rename to ...
10166 (struct btrace_function): ...this. Update all users.
10167 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10168 (number, level, flags>: New.
10169 (struct btrace_insn_iterator): Rename to ...
10170 (struct btrace_insn_history): ...this.
10171 Update all users.
10172 (struct btrace_insn_iterator, btrace_call_iterator): New.
10173 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10174 (struct btrace_target_info) <begin, end, level>
10175 <insn_history, call_history>: New.
10176 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10177 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10178 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10179 (btrace_call_number, btrace_call_begin, btrace_call_end)
10180 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10181 (btrace_find_function_by_number, btrace_set_insn_history)
10182 (btrace_set_call_history): New.
10183 * btrace.c (btrace_init_insn_iterator)
10184 (btrace_init_func_iterator, compute_itrace): Remove.
10185 (ftrace_print_function_name, ftrace_print_filename)
10186 (ftrace_skip_file): Change
10187 parameter to const.
10188 (ftrace_init_func): Remove.
10189 (ftrace_debug): Use new btrace_function fields.
10190 (ftrace_function_switched): Also consider gaining and
10191 losing symbol information).
10192 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10193 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10194 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10195 New.
10196 (ftrace_new_function): Move. Remove debug print.
10197 (ftrace_update_lines, ftrace_update_insns): New.
10198 (ftrace_update_function): Check for call, ret, and jump.
10199 (compute_ftrace): Renamed to ...
10200 (btrace_compute_ftrace): ...this. Rewritten to compute call
10201 stack.
10202 (btrace_fetch, btrace_clear): Updated.
10203 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10204 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10205 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10206 (btrace_call_number, btrace_call_begin, btrace_call_end)
10207 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10208 (btrace_find_function_by_number, btrace_set_insn_history)
10209 (btrace_set_call_history): New.
10210 * record-btrace.c (require_btrace): Use new btrace thread
10211 info fields.
10212 (record_btrace_info, btrace_insn_history)
10213 (record_btrace_insn_history, record_btrace_insn_history_range):
10214 Use new btrace thread info fields and new iterator.
10215 (btrace_func_history_src_line): Rename to ...
10216 (btrace_call_history_src_line): ...this. Use new btrace
10217 thread info fields.
10218 (btrace_func_history): Rename to ...
10219 (btrace_call_history): ...this. Use new btrace thread info
10220 fields and new iterator.
10221 (record_btrace_call_history, record_btrace_call_history_range):
10222 Use new btrace thread info fields and new iterator.
10223
8372a7cb
MM
102242014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10225
10226 * frame.h (frame_id_build_unavailable_stack_special): New.
10227 * frame.c (frame_id_build_unavailable_stack_special): New.
10228
c2170eef
MM
102292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10230
10231 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10232 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10233 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10234 to gdbarch.
10235 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10236 (i386_insn_is_jump, i386_jmp_p): New.
10237 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10238 insn_is_jump to gdbarch.
10239 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10240 * gdbarch.h: Regenerated.
10241 * gdbarch.c: Regenerated.
10242 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10243 (default_insn_is_jump): New.
10244 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10245 (default_insn_is_jump): New.
10246
864089d2
MM
102472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10248
10249 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10250 Change to ...
10251 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10252 (btrace_read_type) <btrace_read_new>: Change to ...
10253 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10254
ed9edfb5
MM
102552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10256
10257 * common/linux-btrace.c (linux_read_btrace): Free trace from
10258 previous iteration.
10259
fbcbc3fd
DE
102602014-01-15 Doug Evans <dje@google.com>
10261
10262 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10263 uint32_t.
10264
3d548a53
TT
102652014-01-15 Tom Tromey <tromey@redhat.com>
10266
10267 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10268 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10269 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10270 (set_objfile_main_name): New function.
10271 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10272 language_of_main>: New fields.
10273 (set_objfile_main_name): Declare.
10274 * symtab.c (find_main_name): Loop over objfiles to find the main
10275 name and language.
10276 (set_main_name): Now static.
10277 (get_main_info): Add comment.
10278 * symtab.h (set_main_name): Don't declare.
10279
32ac0d11
TT
102802014-01-15 Tom Tromey <tromey@redhat.com>
10281
10282 * symtab.c (main_progspace_key): New global.
10283 (struct main_info): New.
10284 (name_of_main, language_of_main): Remove.
10285 (get_main_info, main_info_cleanup): New function.
10286 (set_main_name, main_name, main_language): Use get_main_info.
10287 (_initialize_symtab): Initialize main_progspace_key.
10288
9e6c82ad
TT
102892014-01-15 Tom Tromey <tromey@redhat.com>
10290
10291 * dbxread.c (process_one_symbol): Update.
10292 * dwarf2read.c (read_partial_die): Update.
10293 * symfile.c (set_initial_language): Call main_language.
10294 * symtab.c (language_of_main): Now static.
10295 (set_main_name): Add 'lang' parameter.
10296 (find_main_name): Update.
10297 (main_language): New function.
10298 (symtab_observer_executable_changed): Update.
10299 * symtab.h (set_main_name): Update.
10300 (language_of_main): Remove.
10301 (main_language): Declare.
10302
6ef55de7
TT
103032014-01-15 Tom Tromey <tromey@redhat.com>
10304
10305 * symfile.c (init_entry_point_info): Use new "initialized" field.
10306 Update.
10307 * objfiles.h (struct entry_point) <initialized>: New field.
10308 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10309 (struct objfile) <ei>: ...here. Remove.
10310 * objfiles.c (entry_point_address_query): Update.
10311
53eddfa6
TT
103122014-01-15 Tom Tromey <tromey@redhat.com>
10313
10314 * objfiles.c (entry_point_address_query): Relocate entry point
10315 address.
10316 (objfile_relocate1): Do not relocate entry point address.
10317 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10318 <the_bfd_section_index>: New field.
10319 * symfile.c (init_entry_point_info): Find the entry point's
10320 section.
10321
d56e56aa
TT
103222014-01-15 Tom Tromey <tromey@redhat.com>
10323
10324 * solib-frv.c (enable_break): Use entry_point_address_query.
10325
33a97bbe
OJ
103262014-01-15 Omair Javaid <omair.javaid@linaro.org>
10327
10328 * NEWS: Add note on improved process record-replay on
10329 arm*-linux* targets.
10330
c6ec2b30
OJ
103312014-01-15 Omair Javaid <omair.javaid@linaro.org>
10332
10333 * arm-tdep.c (enum arm_record_result): New enum.
10334 (arm_record_unsupported_insn): New function.
10335 (arm_record_coproc_data_proc): Removed.
10336 (thumb2_record_ld_st_multiple): New function.
10337 (thumb2_record_ld_st_dual_ex_tbb): New function.
10338 (thumb2_record_data_proc_sreg_mimm): New function.
10339 (thumb2_record_ps_dest_generic): New function.
10340 (thumb2_record_branch_misc_cntrl): New function.
10341 (thumb2_record_str_single_data): New function.
10342 (thumb2_record_ld_mem_hints): New function.
10343 (thumb2_record_ld_word): New function.
10344 (thumb2_record_lmul_lmla_div): New function.
10345 (thumb2_record_decode_insn_handler): New function.
10346 (decode_insn): Add thumb32 instruction handlers.
10347
97dfe206
OJ
103482014-01-15 Omair Javaid <omair.javaid@linaro.org>
10349
10350 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10351 (struct arm_linux_record_tdep): Declare.
10352 (arm_canonicalize_syscall): New function.
10353 (arm_all_but_pc_registers_record): New function.
10354 (arm_linux_syscall_record): New function.
10355 (arm_linux_init_abi): Add syscall recording constructs.
10356 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10357 decoding. (arm_record_coproc_data_proc): Update arm syscall
10358 decoding.
10359 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10360 <arm_syscall_record>: New field.
10361 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10362 gdb_target_obs.
10363
9904a494
OJ
103642014-01-15 Omair Javaid <omair.javaid@linaro.org>
10365
10366 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10367 register for push instruction recording.
10368
f969241e
OJ
103692014-01-15 Omair Javaid <omair.javaid@linaro.org>
10370
10371 * arm-tdep.c (thumb_record_misc): Update to correct logical
10372 error while recording ldm, ldmia and pop instructions.
10373
bfbbec00
OJ
103742014-01-15 Omair Javaid <omair.javaid@linaro.org>
10375
10376 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10377
e40adcc9
PA
103782014-01-15 Pedro Alves <palves@redhat.com>
10379
10380 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10381 (go32_resume, go32_fetch_registers, store_register)
10382 (go32_store_registers, go32_prepare_to_store)
10383 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10384 (go32_create_inferior, go32_can_run, go32_terminal_init)
10385 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10386 declarations.
10387
b0a16e66
TT
103882014-01-15 Tom Tromey <tromey@redhat.com>
10389
10390 * target.h (async_callback_ftype): New typedef.
10391 (struct target_ops) <to_async>: Use it.
10392
bf7105a4
JB
103932014-01-15 Joel Brobecker <brobecker@adacore.com>
10394
10395 * python/py-value.c (get_field_type): Remove unnecessary curly
10396 braces for single-statement if block.
10397
a8f35c2e
JB
103982014-01-15 Joel Brobecker <brobecker@adacore.com>
10399
10400 * python/py-type.c (convert_field): Add missing empty line
10401 after declarations.
10402
bb4142cf
DE
104032014-01-14 Doug Evans <dje@google.com>
10404
10405 * symfile.h (expand_symtabs_matching): Renamed from
10406 expand_partial_symbol_names. Update prototype.
10407 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10408 * symfile.c (expand_symtabs_matching): Renamed from
10409 expand_partial_symbol_names. New args file_matcher, kind.
10410 Rename arg fun to symbol_matcher.
10411 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10412 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10413 ada_expand_partial_symbol_name.
10414 (ada_make_symbol_completion_list): Update to call
10415 expand_symtabs_matching.
10416 (ada_add_global_exceptions): Call expand_symtabs_matching.
10417 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10418 call map_symbol_filenames.
10419 * symtab.c (sources_info): Update to call map_symbol_filenames.
10420 (search_symbols): Call expand_symtabs_matching.
10421 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10422 (default_make_symbol_completion_list_break_on): Update to call
10423 expand_symtabs_matching.
10424 (make_source_files_completion_list): Update to call
10425 map_symbol_filenames.
10426
206f2a57
DE
104272014-01-14 Doug Evans <dje@google.com>
10428
10429 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10430 (expand_symtabs_symbol_matcher_ftype): New typedef.
10431 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10432 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10433 * symfile.c (expand_partial_symbol_names): Update to use
10434 expand_symtabs_symbol_matcher_ftype.
10435 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10436 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10437 Arg name_matcher renamed to symbol_matcher.
10438 * psymtab.c (recursively_search_psymtabs): Update to use
10439 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10440 sym_matcher.
10441 (expand_symtabs_matching_via_partial): Update to use
10442 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10443 Arg name_matcher renamed to symbol_matcher.
10444
540c2971
DE
104452014-01-14 Doug Evans <dje@google.com>
10446
10447 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10448 (map_partial_symbol_filenames): Ditto.
10449 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10450 (map_partial_symbol_filenames): Ditto.
10451 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10452 (map_partial_symbol_filenames): Ditto.
10453 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10454 (map_partial_symbol_filenames): Ditto.
10455 * symtab.c: Delete #include "psymtab.h".
10456
8213266a
PA
104572014-01-14 Pedro Alves <palves@redhat.com>
10458 Tom Tromey <tromey@redhat.com>
10459
10460 * infrun.c (use_displaced_stepping): Use find_record_target
10461 instead of RECORD_IS_USED.
10462 (adjust_pc_after_break): Use record_full_is_used instead of
10463 RECORD_IS_USED.
10464 * record-btrace.c (record_btrace_open): Call record_preopen
10465 instead of checking RECORD_IS_USED.
10466 * record-full.c (record_full_shortname)
10467 (record_full_core_shortname): New globals.
10468 (record_full_is_used): New function.
10469 (find_full_open): Call record_preopen instead of checking
10470 RECORD_IS_USED.
10471 (init_record_full_ops): Set the target's shortname to
10472 record_full_shortname.
10473 (init_record_full_core_ops): Set the target's shortname to
10474 record_full_core_shortname.
10475 * record-full.h (record_full_is_used): Declare.
10476 * record.c (find_record_target): Make extern.
10477 (record_preopen): New function.
10478 * record.h (RECORD_IS_USED): Delete macro.
10479 (find_record_target, record_preopen): Declare functions.
10480
7ec1862d
YQ
104812014-01-14 Yao Qi <yao@codesourcery.com>
10482
10483 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10484 'len''s type to ULONGEST.
10485 (core_xfer_shared_libraries_aix): Likewise.
10486 * gdbarch.c, gdbarch.h: Regenerated.
10487 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10488 Change type of 'len' to ULONGEST.
10489 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10490 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10491
dea80a27
YQ
104922014-01-14 Yao Qi <yao@codesourcery.com>
10493
10494 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10495 type of 'len' to ULONGEST.
10496 (linux_xfer_osdata_processgroups): Likewise.
10497 (linux_xfer_osdata_threads): Likewise.
10498 (linux_xfer_osdata_fds): Likewise.
10499 (linux_xfer_osdata_isockets): Likewise.
10500 (linux_xfer_osdata_shm): Likewise.
10501 (linux_xfer_osdata_sem): Likewise.
10502 (linux_xfer_osdata_msg): Likewise.
10503 (linux_common_xfer_osdata): Likewise.
10504 (struct osdata_type) <getter>: Likewise.
10505 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10506 the declaration.
10507
b55e14c7
YQ
105082014-01-14 Yao Qi <yao@codesourcery.com>
10509
10510 * target.h (target_xfer_partial_ftype): Update.
10511 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10512 ULONGEST.
10513 * aix-thread.c (aix_thread_xfer_partial): Change type of
10514 argument 'len' to ULONGEST.
10515 * auxv.c (procfs_xfer_auxv): Likewise.
10516 (ld_so_xfer_auxv): Likewise.
10517 (memory_xfer_auxv): Likewise.
10518 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10519 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10520 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10521 * corelow.c (core_xfer_partial): Likewise.
10522 * ctf.c (ctf_xfer_partial): Likewise.
10523 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10524 '%u'.
10525 (darwin_read_dyld_info): Likewise.
10526 (darwin_xfer_partial): Likewise.
10527 * exec.c (section_table_xfer_memory_partial): Likewise.
10528 (exec_xfer_partial): Likewise.
10529 * exec.h (section_table_xfer_memory_partial): Update
10530 declaration.
10531 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10532 instead of plongest.
10533 (gnu_xfer_partial): Likewise.
10534 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10535 (ia64_hpux_xfer_solib_got): Likewise.
10536 (ia64_hpux_xfer_partial): Likewise.
10537 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10538 * inf-ptrace.c (inf_ptrace_xfer_partial):
10539 * inf-ttrace.c (inf_ttrace_xfer_partial):
10540 * linux-nat.c (linux_xfer_siginfo): Likewise.
10541 (linux_nat_xfer_partial): Likewise.
10542 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10543 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10544 * monitor.c (monitor_xfer_memory): Likewise.
10545 (monitor_xfer_partial): Likewise.
10546 * procfs.c (procfs_xfer_partial): Likewise.
10547 * record-full.c (record_full_xfer_partial): Likewise.
10548 (record_full_core_xfer_partial): Likewise.
10549 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10550 instead of plongest.
10551 (gdbsim_xfer_partial): Likewise.
10552 * remote.c (remote_xfer_partial): Likewise.
10553 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10554 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10555 declaration.
10556 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10557 (rs6000_xfer_shared_libraries): Likewise.
10558 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10559 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10560 (sparc_xfer_partial): Likewise.
10561 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10562 (spu_xfer_partial): Likewise.
10563 * spu-multiarch.c (spu_xfer_partial): Likewise.
10564 * target.c (target_read_live_memory): Likewise.
10565 (memory_xfer_live_readonly_partial): Likewise.
10566 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10567 (target_xfer_partial, default_xfer_partial): Likewise.
10568 (current_xfer_partial): Likewise.
10569 * tracepoint.c (tfile_xfer_partial): Likewise.
10570 * windows-nat.c (windows_xfer_memory): Likewise. Call
10571 pulongest instead of plongest.
10572 (windows_xfer_partial): Likewise.
10573 (windows_xfer_shared_libraries): Likewise.
10574
05804640
YQ
105752014-01-14 Yao Qi <yao@codesourcery.com>
10576
10577 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10578 target_xfer_partial_ftype.
10579
b5b08fb4
SC
105802014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10581
10582 PR python/15464
10583 PR python/16113
10584 * valops.c (value_struct_elt_bitpos): New function
10585 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10586 object to 'None' if the field name is an empty string ("").
10587 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10588 attribute to look for a field when 'name' is 'None'.
10589 (get_field_type): New function
10590
13aaf454
DE
105912014-01-13 Doug Evans <dje@google.com>
10592
10593 PR symtab/16426
10594 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10595 (try_open_dwop_file): Ditto.
10596 * gdb_bfd.c: #include "vec.h".
10597 (bfdp): New typedef.
10598 (struct gdb_bfd_data): New member included_bfds.
10599 (gdb_bfd_unref): Unref all included bfds.
10600 (gdb_bfd_record_inclusion): New function.
10601 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10602
c2cec97c
TT
106032014-01-13 Tom Tromey <tromey@redhat.com>
10604
10605 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10606
78e5999d
TT
106072014-01-13 Tom Tromey <tromey@redhat.com>
10608
10609 * defs.h (use_windows): Remove.
10610 * gdb.c (main): Update.
10611 * main.c (captured_main, gdb_main): Update.
10612 * main.h (struct captured_main_args) <use_windows>: Remove.
10613 * top.c (use_windows): Remove.
10614
f2052bbe
TT
106152014-01-13 Tom Tromey <tromey@redhat.com>
10616
10617 * defs.h (deprecated_flush_hook): Remove.
10618
fde4f8ed
JK
106192014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10620
10621 PR threads/16216
10622 * linux-thread-db.c (try_thread_db_load): Add parameter
10623 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10624 (try_thread_db_load_from_pdir_1): Move it there from here.
10625 (try_thread_db_load_from_sdir): Update caller.
10626 (try_thread_db_load_from_dir): Move it there from here.
10627
bdf61915
PP
106282014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10629
10630 * regformats/regdat.sh: Always rewrite the register file.
10631
f71e1a8d
PA
106322014-01-13 Pedro Alves <palves@redhat.com>
10633
10634 * Makefile.in (CHECK_HEADERS): New variable.
10635 (check-headers:): New rule.
10636
42c85435
TT
106372014-01-13 Tom Tromey <tromey@redhat.com>
10638
10639 * cli/cli-setshow.c (do_set_command): Update.
10640 * defs.h (deprecated_set_hook): Remove.
10641 * top.c (deprecated_set_hook): Remove.
10642
f8de5129
PA
106432014-01-13 Pedro Alves <palves@redhat.com>
10644
10645 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10646 the tracepoint if the PC is a pseudo-register.
10647
fc270c35
TT
106482014-01-13 Tom Tromey <tromey@redhat.com>
10649
10650 * defs.h (XCALLOC): Remove.
10651 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10652 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10653 * dwarf2loc.c (allocate_piece_closure): Likewise.
10654 * elfread.c (elf_symfile_segments): Likewise.
10655 (elf_symfile_segments): Likewise.
10656 * gdbtypes.c (copy_type_recursive): Likewise.
10657 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10658 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10659 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10660 XCALLOC.
10661 * mt-tdep.c (mt_gdbarch_init): Likewise.
10662 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10663 XCALLOC.
10664 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10665 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10666 * registry.c (registry_alloc_data): Likewise.
10667 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10668 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10669 * serial.c (serial_fdopen_ops): Likewise.
10670 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10671 XCALLOC.
10672 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10673 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10674 not XCALLOC.
10675
70ba0933
TT
106762014-01-13 Tom Tromey <tromey@redhat.com>
10677
10678 * defs.h (XMALLOC): Remove.
10679 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10680 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10681 * cli-out.c (struct ui_out *): Likewise.
10682 * cli/cli-dump.c (add_dump_command): Likewise.
10683 (add_dump_command): Likewise.
10684 * complaints.c (get_complaints): Likewise.
10685 (find_complaint): Likewise.
10686 * dwarf2-frame.c (execute_cfa_program): Likewise.
10687 * dwarf2read.c (abbrev_table_read_table): Likewise.
10688 * gdbarch.sh: Likewise.
10689 * gdbarch.c: Rebuild.
10690 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10691 * interps.c (interp_new): Likewise.
10692 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10693 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10694 * mi/mi-console.c (mi_console_file_new): Likewise.
10695 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10696 * mi/mi-out.c (mi_out_new): Likewise.
10697 * mi/mi-parse.c (mi_parse): Likewise.
10698 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10699 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10700 * observer.c (xalloc_observer_list_node): Likewise.
10701 * regcache.c (regcache_xmalloc_1): Likewise.
10702 * reggroups.c (reggroup_new): Likewise.
10703 (_initialize_reggroup): Likewise.
10704 * registry.c (register_data_with_cleanup): Likewise.
10705 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10706 * ser-base.c (serial_ttystate): Likewise.
10707 * ser-mingw.c (make_pipe_state): Likewise.
10708 * ser-pipe.c (pipe_open): Likewise.
10709 * serial.c (serial_open): Likewise.
10710 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10711 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10712 (tui_alloc_win_info): Likewise.
10713 (tui_add_content_elements): Likewise.
10714 * tui/tui-file.c (tui_file_new): Likewise.
10715 * tui/tui-out.c (tui_out_new): Likewise.
10716 * ui-file.c (mem_file_new): Likewise.
10717 * ui-out.c (push_level): Likewise.
10718 (make_cleanup_ui_out_end): Likewise.
10719 (append_header_to_list): Likewise.
10720 (ui_out_new): Likewise.
10721 * user-regs.c (user_reg_add_builtin): Likewise.
10722
41bf6aca
TT
107232014-01-13 Tom Tromey <tromey@redhat.com>
10724
10725 * defs.h (XZALLOC): Remove.
10726 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10727 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10728 (get_ada_tasks_inferior_data): Likewise.
10729 * auto-load.c (get_auto_load_pspace_data): Likewise.
10730 * auxv.c (get_auxv_inferior_data): Likewise.
10731 * bfd-target.c (target_bfd_reopen): Likewise.
10732 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10733 (deprecated_insert_raw_breakpoint): Likewise.
10734 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10735 * corelow.c (core_open): Likewise.
10736 * darwin-nat.c (darwin_check_new_threads): Likewise.
10737 (darwin_attach_pid): Likewise.
10738 * dummy-frame.c (dummy_frame_push): Likewise.
10739 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10740 * dwarf2loc.c (allocate_piece_closure): Likewise.
10741 * elfread.c (elf_symfile_segments): Likewise.
10742 * eval.c (ptrmath_type_p): Likewise.
10743 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10744 * gdbtypes.c (alloc_type_arch): Likewise.
10745 (alloc_type_instance): Likewise.
10746 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10747 * inf-child.c (inf_child_can_use_agent): Likewise.
10748 * inflow.c (get_inflow_inferior_data): Likewise.
10749 * infrun.c (save_infcall_suspend_state): Likewise.
10750 * jit.c (jit_reader_load): Likewise.
10751 (get_jit_objfile_data): Likewise.
10752 (get_jit_program_space_data): Likewise.
10753 (jit_object_open_impl): Likewise.
10754 (jit_symtab_open_impl): Likewise.
10755 (jit_block_open_impl): Likewise.
10756 (jit_frame_sniffer): Likewise.
10757 * linux-fork.c (add_fork): Likewise.
10758 * maint.c (make_command_stats_cleanup): Likewise.
10759 * objfiles.c (get_objfile_pspace_data): Likewise.
10760 * opencl-lang.c (struct lval_closure): Likewise.
10761 * osdata.c (osdata_start_osdata): Likewise.
10762 * progspace.c (new_address_space): Likewise.
10763 (add_program_space): Likewise.
10764 * remote-sim.c (get_sim_inferior_data): Likewise.
10765 * sh-tdep.c (sh_gdbarch_init): Likewise.
10766 * skip.c (Ignore): Likewise.
10767 (skip_delete_command): Likewise.
10768 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10769 (library_list_start_library): Likewise.
10770 (solib_aix_current_sos): Likewise.
10771 * solib-darwin.c (get_darwin_info): Likewise.
10772 (darwin_current_sos): Likewise.
10773 * solib-dsbt.c (get_dsbt_info): Likewise.
10774 * solib-ia64-hpux.c (new_so_list): Likewise.
10775 (ia64_hpux_get_solib_linkage_addr): Likewise.
10776 * solib-spu.c (append_ocl_sos): Likewise.
10777 (spu_current_sos): Likewise.
10778 * solib-svr4.c (get_svr4_info): Likewise.
10779 (svr4_keep_data_in_core): Likewise.
10780 (library_list_start_library): Likewise.
10781 (svr4_default_sos): Likewise.
10782 (svr4_read_so_list): Likewise.
10783 * solib-target.c (library_list_start_library): Likewise.
10784 (solib_target_current_sos): Likewise.
10785 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10786 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10787 * symfile.c (default_symfile_segments): Likewise.
10788 * target-descriptions.c (tdesc_data_init): Likewise.
10789 (tdesc_create_reg): Likewise.
10790 (struct tdesc_type *): Likewise.
10791 (tdesc_create_vector): Likewise.
10792 (tdesc_set_struct_size): Likewise.
10793 (struct tdesc_type *): Likewise.
10794 (tdesc_free_feature): Likewise.
10795 (tdesc_create_feature): Likewise.
10796 * windows-nat.c (windows_add_thread): Likewise.
10797 (windows_make_so): Likewise.
10798 * xml-support.c (gdb_xml_body_text): Likewise.
10799 (gdb_xml_create_parser_and_cleanup): Likewise.
10800 (xml_process_xincludes): Likewise.
10801 * xml-syscall.c (allocate_syscalls_info): Likewise.
10802 (syscall_create_syscall_desc): Likewise.
10803
5acfdbae
SDJ
108042014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10805
10806 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10807 function, with code from i386_stap_parse_special_token.
10808 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10809 (i386_stap_parse_special_token): Move code to the two functions
10810 above; simplify it.
10811
0000e5cc
PA
108122014-01-09 Pedro Alves <palves@redhat.com>
10813 Hui Zhu <hui@codesourcery.com>
10814
10815 PR gdb/16101
10816 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10817 bp_err_string. Don't mark the location shlib_disabled if the
10818 error thrown wasn't a generic or memory error. Catch errors
10819 thrown while inserting breakpoints in overlayed code. Output
10820 error message of software breakpoints.
10821 * remote.c (remote_insert_breakpoint): If this breakpoint has
10822 target-side commands but this stub doesn't support Z0 packets,
10823 throw NOT_SUPPORTED_ERROR error.
10824 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10825 * target.h (target_insert_breakpoint): Extend comment.
10826 (target_insert_hw_breakpoint): Add comment.
10827
b7ea362b
PA
108282014-01-08 Pedro Alves <palves@redhat.com>
10829
10830 * remote.c (remote_add_thread): Add threads silently if starting
10831 up.
10832 (remote_notice_new_inferior): If in all-stop, and starting up,
10833 don't call notice_new_inferior.
10834 (get_current_thread): New function, factored out from ...
10835 (add_current_inferior_and_thread): ... this. Adjust.
10836 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10837 found any thread, then select the remote's current thread as GDB's
10838 current thread too.
10839
b7bba001
JB
108402014-01-08 Joel Brobecker <brobecker@adacore.com>
10841
10842 * NEWS: Create a new section for the next release branch.
10843 Rename the section of the current branch, now that it has
10844 been cut.
10845
16dfbded
JB
108462014-01-08 Joel Brobecker <brobecker@adacore.com>
10847
10848 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10849 * version.in: Bump version to 7.7.50.DATE-cvs.
10850
22c90ac1
YQ
108512014-01-08 Yao Qi <yao@codesourcery.com>
10852
10853 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10854 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10855 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10856
d64ad97c
YQ
108572014-01-08 Yao Qi <yao@codesourcery.com>
10858
10859 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10860 return value of bfd_get_filename to symbol_file_add_from_bfd.
10861
f93ba80c
PM
108622014-01-08 Pierre Muller <muller@sourceware.org>
10863
10864 Fix PR16201.
10865 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10866 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10867 to prim_record_mininal_symbol_and_info.
10868 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10869 in call to prim_record_minimal_symbol_and_info.
10870 (read_pe_exported_syms): Set index field of section_data.
10871
a4d9ba85
AP
108722014-01-07 Andrew Pinski <apinski@cavium.com>
10873
10874 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10875 * features/aarch64.c: Regenerate.
10876
1b67eb02
AS
108772014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10878
10879 * target.c (return_null): Define.
10880 (update_current_target): Use it instead of return_zero for
10881 functions that return a pointer.
10882
5e3f4fab
EBM
108832014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10884
10885 * source.c (add_path): Fix check for duplicated paths in the previously
10886 included paths.
10887
e2616788
HK
108882014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10889
10890 * ada-lang.c: Remove duplicated include statements.
10891 * alphabsd-nat.c: Ditto.
10892 * amd64-darwin-tdep.c: Ditto.
10893 * amd64fbsd-nat.c: Ditto.
10894 * auto-load.c: Ditto.
10895 * ax-gdb.c: Ditto.
10896 * breakpoint.c: Ditto.
10897 * dbxread.c: Ditto.
10898 * fork-child.c: Ditto.
10899 * gdb_usleep.c: Ditto.
10900 * i386-darwin-tdep.c: Ditto.
10901 * i386fbsd-nat.c: Ditto.
10902 * infcmd.c: Ditto.
10903 * inferior.c: Ditto.
10904 * jv-lang.c: Ditto.
10905 * linux-nat.c: Ditto.
10906 * linux-tdep.c: Ditto.
10907 * m68kbsd-nat.c: Ditto.
10908 * m68klinux-nat.c: Ditto.
10909 * microblaze-tdep.c: Ditto.
10910 * mips-linux-tdep.c: Ditto.
10911 * mn10300-tdep.c: Ditto.
10912 * nto-tdep.c: Ditto.
10913 * opencl-lang.c: Ditto.
10914 * osdata.c: Ditto.
10915 * printcmd.c: Ditto.
10916 * regcache.c: Ditto.
10917 * remote-m32r-sdi.c: Ditto.
10918 * remote.c: Ditto.
10919 * symfile.c: Ditto.
10920 * symtab.c: Ditto.
10921 * tilegx-linux-nat.c: Ditto.
10922 * tilegx-tdep.c: Ditto.
10923 * tracepoint.c: Ditto.
10924 * valops.c: Ditto.
10925 * vaxbsd-nat.c: Ditto.
10926 * windows-nat.c: Ditto.
10927 * xtensa-tdep.c: Ditto.
10928
bd1f7788
YQ
109292014-01-07 Yao Qi <yao@codesourcery.com>
10930
10931 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10932
79301218
JB
109332014-01-07 Yao Qi <yao@codesourcery.com>
10934 Joel Brobecker <brobecker@adacore.com>
10935
10936 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10937 (pdc_write_regs): Likewise.
10938 (fetch_regs_kernel_thread): Likewise.
10939 (store_regs_kernel_thread): Likewise.
10940
109412014-01-07 Joel Brobecker <brobecker@adacore.com>
10942
10943 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10944 tagged type objects to their actual type.
10945
8e355c5d
JB
109462014-01-07 Joel Brobecker <brobecker@adacore.com>
10947
10948 * ada-valprint.c (print_field_values): Add "language" parameter.
10949 Update calls to print_field_values and print_variant_part.
10950 Pass new parameter "language" in call to val_print instead
10951 of "current_language". Replace call to ada_val_print by call
10952 to val_print.
10953 (print_variant_part): Add "language" parameter.
10954 (ada_val_print_struct_union): Update call to print_field_values.
10955
4fbf5aa5
JB
109562014-01-07 Joel Brobecker <brobecker@adacore.com>
10957
10958 * ada-valprint.c (ui_memcpy): Delete.
10959 (ada_print_floating): Update documentation. Add empty line
10960 between between function documentation and implementation.
10961 Delete variable "buffer". Use ui_file_xstrdup in place of
10962 ui_file_put. Minor adjustments following this change.
10963
71855601
JB
109642014-01-07 Joel Brobecker <brobecker@adacore.com>
10965
10966 * ada-valprint.c (ada_val_print_string): New function,
10967 extracted from ada_val_print_array.
10968 (ada_val_print_array): Replace extracted code by call
10969 to ada_val_print_string followed by a return. Move
10970 "else" branch to the function's top block.
10971
4eb27a30
JB
109722014-01-07 Joel Brobecker <brobecker@adacore.com>
10973
10974 * ada-valprint.c (ada_val_print_array): Move implementation
10975 down. Rename parameter "offset" and "val" into "offset_aligned"
10976 and "original_value" respectively. Add parameter "offset".
10977
34b27950
JB
109782014-01-07 Joel Brobecker <brobecker@adacore.com>
10979
10980 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10981 re-organizing the code. Change the "???" message printed
10982 when target type is a TYPE_CODE_UNDEF into
10983 "<ref to undefined type>".
10984
079e4591
JB
109852014-01-07 Joel Brobecker <brobecker@adacore.com>
10986
10987 * ada-valprint.c (print_record): Delete, implementation inlined...
10988 (ada_val_print_struct_union): ... here. Remove call to
10989 ada_check_typedef in inlined implementation.
10990
8004dfd1
JB
109912014-01-07 Joel Brobecker <brobecker@adacore.com>
10992
10993 * ada-valprint.c (ada_val_print_gnat_array): New function,
10994 extracted from ada_val_print_1;
10995 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10996 (ada_val_print_flt, ada_val_print_struct_union)
10997 (ada_val_print_ref): Likewise.
10998 (ada_val_print_1): Delete variables i and elttype.
10999 Replace extracted-out code by call to corresponding
11000 new functions.
11001
760a2db0
JB
110022014-01-07 Joel Brobecker <brobecker@adacore.com>
11003
11004 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
11005
3a92c861
JB
110062014-01-07 Joel Brobecker <brobecker@adacore.com>
11007
11008 * ada-valprint.c (ada_val_print_1): Replace calls to
11009 ada_val_print_1 by calls to val_print.
11010
cd1630f9
JB
110112014-01-07 Joel Brobecker <brobecker@adacore.com>
11012
11013 * ada-valprint.c (ada_val_print_1): Add parameter "language".
11014 Update calls to self accordingly. Replace calls to c_val_print
11015 by calls to val_print.
11016
bdf779a0
JB
110172014-01-07 Joel Brobecker <brobecker@adacore.com>
11018
11019 * ada-valprint.c (print_record): Delete declaration.
11020 (adjust_type_signedness, ada_val_print_1): Likewise.
11021 (ada_val_print): Move function implementation down.
11022 (print_variant_part, print_field_values, print_record):
11023 Move function implementation up.
11024
c0d48811
JB
110252014-01-07 Joel Brobecker <brobecker@adacore.com>
11026
11027 * python/py-type.c (typy_get_name): New function.
11028 (type_object_getset): Add entry for attribute "name".
11029 * NEWS: Add entry mentioning this new attribute.
11030
c26e9cbb
YQ
110312014-01-07 Yao Qi <yao@codesourcery.com>
11032
11033 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
11034 statement.
11035
0cc6f43d
YQ
110362014-01-07 Yao Qi <yao@codesourcery.com>
11037
11038 * gnu-nat.c (info_port_rights): Add qualifier const to
11039 argument args.
11040
eec03155
YQ
110412014-01-07 Yao Qi <yao@codesourcery.com>
11042
11043 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
11044
f04a82ef
YQ
110452014-01-07 Yao Qi <yao@codesourcery.com>
11046
11047 * gnu-nat.c (make_inf) Update declaration.
11048 (make_inf): Make it static.
11049 (inf_set_traced): Likewise.
11050 (inf_port_to_thread, inf_task_died_status): Likewise.
11051
d57dda0a
YQ
110522014-01-07 Yao Qi <yao@codesourcery.com>
11053
11054 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
11055
3aa8c969
YQ
110562014-01-07 Yao Qi <yao@codesourcery.com>
11057
11058 * gnu-nat.c (_initialize_gnu_nat): Declare.
11059
94123b4f
YQ
110602014-01-07 Yao Qi <yao@codesourcery.com>
11061
11062 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
11063 'enum bfd_endian'.
11064 (struct gdbarch_info) <byte_order>: Change type to
11065 'enum bfd_endian'.
11066 <byte_order_for_code>: Likewise.
11067 * gdbarch.c, gdbarch.h: Regenerated.
11068
dc81d70a
TT
110692014-01-06 Sasha Smundak <asmundak@google.com>
11070
11071 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
11072
cc2f3c35
TT
110732014-01-06 Tom Tromey <tromey@redhat.com>
11074
11075 * doublest.c (convert_doublest_to_floatformat): Use const, not
11076 CONST.
11077 * somread.c (som_symtab_read): Likewise.
11078
adcf2eed
HZ
110792014-01-07 Hui Zhu <hui@codesourcery.com>
11080
11081 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
11082 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
11083 (gdb_bfd_fopen): Ditto.
11084 (gdb_bfd_openr): Ditto.
11085 (gdb_bfd_openw): Ditto.
11086 (gdb_bfd_openr_iovec): Ditto.
11087 (gdb_bfd_fdopenr): Ditto.
11088 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11089 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11090 with xstrdup.
11091 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11092 with xstrdup.
11093 * symfile-mem.c (symbol_file_add_from_memory): Removed
11094 gdb_bfd_stash_filename.
11095
50722198
DE
110962014-01-03 Doug Evans <dje@google.com>
11097
11098 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11099 output.
11100
2fa4b862
JB
111012014-01-01 Joel Brobecker <brobecker@adacore.com>
11102
11103 Update year range in copyright notice of all files.
11104
28498c42
JB
111052014-01-01 Joel Brobecker <brobecker@adacore.com>
11106
11107 * top.c (print_gdb_version): Set copyright year to 2014.
11108
7b6e1046
JB
111092014-01-01 Joel Brobecker <brobecker@adacore.com>
11110
11111 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11112
df96af55 11113For older changes see ChangeLog-2013.
c906108c
SS
11114\f
11115Local Variables:
11116mode: change-log
11117left-margin: 8
11118fill-column: 74
11119version-control: never
57da7796 11120coding: utf-8
c906108c 11121End:
This page took 2.195231 seconds and 4 git commands to generate.