Rename target_{stop,continue}_ptid
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
03f4463b
GB
12014-09-22 Gary Benson <gbenson@redhat.com>
2
3 * target/target.h (target_stop_ptid): Renamed as...
4 (target_stop_and_wait): New function. Updated comment.
5 All uses updated.
6 (target_continue_ptid): Renamed as...
7 (target_continue_no_signal): New function. Updated comment.
8 All uses updated.
9
a25a5a45
PA
102014-09-22 Pedro Alves <palves@redhat.com>
11
12 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
13 and "auto" merged.
14 * breakpoint.c (enum ugll_insert_mode): New enum.
15 (always_inserted_mode): Now a plain boolean.
16 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
17 (breakpoints_always_inserted_mode): Delete.
18 (breakpoints_should_be_inserted_now): New function.
19 (insert_breakpoints): Pass UGLL_INSERT to
20 update_global_location_list instead of calling
21 insert_breakpoint_locations manually.
22 (create_solib_event_breakpoint_1): New, factored out from ...
23 (create_solib_event_breakpoint): ... this.
24 (create_and_insert_solib_event_breakpoint): Use
25 create_solib_event_breakpoint_1 instead of calling
26 insert_breakpoint_locations manually.
27 (update_global_location_list): Change parameter type from boolean
28 to enum ugll_insert_mode. All callers adjusted. Adjust to use
29 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
30 (update_global_location_list_nothrow): Change parameter type from
31 boolean to enum ugll_insert_mode.
32 (_initialize_breakpoint): "breakpoint always-inserted" option is
33 now a boolean command. Update help text.
34 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
35 (breakpoints_should_be_inserted_now): New declaration.
36 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
37 Remove breakpoints_always_inserted_mode check.
38 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
39 * remote.c (remote_start_remote): Likewise.
40
04086b45
PA
412014-09-22 Pedro Alves <palves@redhat.com>
42
43 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
44 (insert_breakpoints): Don't call insert_breakpoint_locations here.
45 Instead, pass UGLL_INSERT to update_global_location_list.
46 (update_global_location_list): Change parameter type from boolean
47 to enum ugll_insert_mode. All callers adjusted. Adjust to use
48 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
49 (create_solib_event_breakpoint_1): New, factored out from ...
50 (create_solib_event_breakpoint): ... this.
51 (create_and_insert_solib_event_breakpoint): Use
52 create_solib_event_breakpoint_1 instead of calling
53 insert_breakpoint_locations manually.
54 (update_global_location_list): Handle UGLL_INSERT.
55
44702360
PA
562014-09-22 Pedro Alves <palves@redhat.com>
57
58 * breakpoint.c (enum ugll_insert_mode): New enum.
59 (update_global_location_list)
60 (update_global_location_list_nothrow): Change parameter type from
61 boolean to enum ugll_insert_mode. All callers adjusted.
62
93c6145a
JB
632014-09-19 Joel Brobecker <brobecker@adacore.com>
64
65 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
66 SystemTap support in GDB.
67
89a5711c
DB
682014-09-19 Don Breazeal <donb@codesourcery.com>
69
70 * linux-nat.c (linux_handle_extended_wait): Call
71 linux_ptrace_get_extended_event.
72 (wait_lwp): Call linux_is_extended_waitstatus.
73 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
74 and linux_is_extended_waitstatus.
75 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
76 linux_ptrace_get_extended_event.
77 (linux_ptrace_get_extended_event): New function.
78 (linux_is_extended_waitstatus): New function.
79 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
80 (linux_is_extended_waitstatus): New declarations.
81
c3b7b696
YQ
822014-09-19 Yao Qi <yao@codesourcery.com>
83
84 * dwarf2read.c (dwarf_decode_lines): Update declaration.
85 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
86 comments. Callers update.
87 (dwarf_decode_lines): Likewise.
88 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
89 comments. Skip the line table if 'lowpc' is greater than
90 'address'. Don't check
91 dwarf2_per_objfile->has_section_at_zero.
92
2b4fd423
DE
932014-09-18 Doug Evans <dje@google.com>
94
95 * NEWS: Mention new "producer" attribute of gdb.Symtab.
96 * python/py-symtab.c (stpy_get_producer): New function.
97 (symtab_object_getset): Add "producer" attribute.
98
5e43d467
UW
992014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
100
101 PR gdb/17384
102 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
103 (do_captured_read_memory_integer): Remove.
104 (safe_read_memory_integer): Use target_read_memory directly instead
105 of catching errors in do_captured_read_memory_integer.
106
04e79979
MR
1072014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
108
109 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
110 not gdb/doc.
111
76aeec5b
SDJ
1122014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
113
114 * objc-lang.c (find_implementation_from_class): Remove dead code.
115
2f693f9d
SDJ
1162014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
117
118 PR cli/7233
119 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
120 "fprintf_unfiltered (gdb_stdlog...)".
121
bb9d5f81
PP
1222014-09-16 Patrick Palka <patrick@parcs.ath.cx>
123
124 PR breakpoints/12526
125 * breakpoint.h (struct watchpoint): New fields val_bitpos and
126 val_bitsize.
127 * breakpoint.c (watch_command_1): Use these fields to retain
128 bitfield information.
129 (extract_bitfield_from_watchpoint_value): New function.
130 (watchpoint_check): Use it.
131 (update_watchpoint): Use it. Optimize the address and length of a
132 HW watchpoint pointing to a bitfield.
133 * value.h (unpack_value_bitfield): New prototype.
134 * value.c (unpack_value_bitfield): Make extern.
135
05db5edd
ST
1362014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
137
138 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
139 x86-dregs.o.
140 * gnu-nat.c (inf_threads): New function.
141 * gnu-nat.h (inf_threads_ftype): New typedef.
142 (inf_threads): New declaration.
143 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
144 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
145 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
146 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
147 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
148 (i386_gnu_dr_get_control): New functions.
149 (reg_addr): New structure.
150 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
151 i386 debugging register hooks.
152 * NEWS: Mention this.
153
5a578da5
OJ
1542014-08-13 Omair Javaid <omair.javaid@linaro.org>
155
156 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
157 vector data transfer instructions.
158 (arm_record_coproc_data_proc): Updated.
159
f20f80dd
OJ
1602014-08-13 Omair Javaid <omair.javaid@linaro.org>
161
162 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
163 arm_record_exreg_ld_st_insn.
164 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
165 load/store insns.
166
851f26ae
OJ
1672014-08-13 Omair Javaid <omair.javaid@linaro.org>
168
169 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
170 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
171 processing instructions.
172
1e1b6563
OJ
1732014-08-13 Omair Javaid <omair.javaid@linaro.org>
174
175 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
176 for advance SIMD struct ld/st insn.
177 (thumb2_record_decode_insn_handler): Replace stub handler with
178 thumb2_record_asimd_struct_ld_st.
179
60cc5e93
OJ
1802014-08-13 Omair Javaid <omair.javaid@linaro.org>
181
182 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
183 for asimd, vfp and coprocessor insns.
184 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
185 and coprocessor insns.
186 (thumb2_record_coproc_insn): New function.
187 (thumb2_record_decode_insn_handler): Update coprocessor insns record
188 handlers.
189 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
190 opcode 110 insns.
191
81219e53
DE
1922014-09-13 Doug Evans <xdje42@gmail.com>
193
194 * NEWS: Mention new "queue-signal" command.
195 * infcmd.c (queue_signal_command): New function.
196 (_initialize_infcmd): Add new queue-signal command.
197
d36bf488
DE
1982014-09-13 Doug Evans <xdje42@gmail.com>
199
200 * linux-nat.c (wait_lwp): Add debugging printf.
201 (linux_nat_wait_1): Ditto.
202
f37f681c
PA
2032014-09-12 Pedro Alves <palves@redhat.com>
204
205 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
206 (create_and_insert_solib_event_breakpoint): New functions.
207 * breakpoint.h (create_and_insert_solib_event_breakpoint)
208 (remove_solib_event_breakpoints_at_next_stop): New declarations.
209 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
210 (remove_dbx_link_breakpoint): Delete function.
211 (insert_dbx_link_bpt_in_file): Use
212 create_and_insert_solib_event_breakpoint instead of
213 deprecated_insert_raw_breakpoint.
214 (procfs_wait): Don't check whether we hit __dbx_link here.
215 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
216 here.
217 * solib-irix.c (base_breakpoint): Delete global.
218 (disable_break): Delete function.
219 (enable_break): Use create_solib_event_breakpoint
220 instead of deprecated_insert_raw_breakpoint.
221 (irix_solib_handle_event): New function.
222 (irix_solib_create_inferior_hook): Don't run the target or disable
223 the mapping-complete breakpoint here.
224 (_initialize_irix_solib): Install irix_solib_handle_event as
225 so_ops->handle_event hook.
226
9d9bf2df
EBM
2272014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
228 Ulrich Weigand  <uweigand@de.ibm.com>
229
230 PR tdep/17379
231 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
232 instead of read_memory_unsigned_integer.
233
b006a80e
GB
2342014-09-12 Gary Benson <gbenson@redhat.com>
235
236 * nat/linux-waitpid.c: Include common-defs.h.
237 [GDBSERVER]: Add FIXME comment.
238 [!GDBSERVER]: Don't include defs.h or signal.h.
239 (linux_debug) [!GDBSERVER]: Remove empty block.
240
296b1496
GB
2412014-09-12 Gary Benson <gbenson@redhat.com>
242
243 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
244 Don't include defs.h or server.h.
245
53f81362
GB
2462014-09-12 Gary Benson <gbenson@redhat.com>
247
248 * nat/linux-btrace.c: Include common-defs.h.
249 Don't include defs.h, server.h or gdbthread.h.
250 * nat/linux-btrace.h (struct target_ops): New forward declaration.
251
727605ca
GB
2522014-09-12 Gary Benson <gbenson@redhat.com>
253
254 * common/agent.c: Include common-defs.h.
255 Don't include defs.h or server.h.
256 * common/buffer.c: Likewise.
257 * common/common-debug.c: Likewise.
258 * common/common-utils.c: Likewise.
259 * common/errors.c: Likewise.
260 * common/filestuff.c: Likewise.
261 * common/format.c: Likewise.
262 * common/gdb_vecs.c: Likewise.
263 * common/print-utils.c: Likewise.
264 * common/ptid.c: Likewise.
265 * common/rsp-low.c: Likewise.
266 * common/signals.c: Likewise.
267 * common/vec.c: Likewise.
268 * common/xml-utils.c: Likewise.
269 * nat/linux-osdata.c: Likewise.
270 * nat/linux-procfs.c: Likewise.
271 * nat/linux-ptrace.c: Likewise.
272 * nat/mips-linux-watch.c: Likewise.
273 * target/waitstatus.c: Likewise.
274
361c8ade
GB
2752014-09-12 Tom Tromey <tromey@redhat.com>
276 Gary Benson <gbenson@redhat.com>
277
278 * common/common-regcache.h: New file.
279 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
280 * regcache.h: Include common-regcache.h.
281 (regcache_read_pc): Don't declare.
282 * regcache.c (get_thread_regcache_for_ptid): New function.
283 * nat/linux-btrace.c: Don't include regcache.h.
284 Include common-regcache.h.
285 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
286
a01cbb49
TS
2872014-09-11 Thomas Schwinge <thomas@codesourcery.com>
288
289 * regcache.h (struct regset): Declare.
290
98880d46
PA
2912014-09-11 Pedro Alves <palves@redhat.com>
292
293 PR gdb/17347
294 * main.c: Include "infrun.h".
295 (catch_command_errors, catch_command_errors_const): Wait for the
296 foreground command to complete.
297 * top.c (maybe_wait_sync_command_done): New function, factored out
298 from ...
299 (maybe_wait_sync_command_done): ... here.
300 * top.h (maybe_wait_sync_command_done): New declaration.
301
bd9269f7
GB
3022014-09-11 Tom Tromey <tromey@redhat.com>
303 Gary Benson <gbenson@redhat.com>
304
305 * common/symbol.h: New file.
306 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
307 * minsyms.c (find_minimal_symbol_address): New function.
308 * common/agent.c: Include common/symbol.h.
309 [!GDBSERVER]: Don't include objfiles.h.
310 (agent_look_up_symbols): Use find_minimal_symbol_address.
311
f8c1d06b
GB
3122014-09-11 Gary Benson <gbenson@redhat.com>
313
314 * target/target.h (target_stop_ptid, target_continue_ptid):
315 Declare.
316 * target.c (target_stop_ptid, target_continue_ptid): New
317 functions.
318 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
319 (agent_run_command): Always use target_stop_ptid and
320 target_continue_ptid.
321
721ec300
GB
3222014-09-11 Tom Tromey <tromey@redhat.com>
323 Gary Benson <gbenson@redhat.com>
324
325 * target/target.h: New file.
326 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
327 * target.h: Include target/target.h.
328 (target_read_memory, target_write_memory): Don't declare.
329 * target.c (target_read_uint32): New function.
330 * common/agent.c: Include target/target.h.
331 [!GDBSERVER]: Don't include target.h.
332 (helper_thread_id): Type changed to uint32_t.
333 (agent_get_helper_thread_id): Use target_read_uint32.
334 (agent_run_command): Always use target_read_memory and
335 target_write_memory.
336 (agent_capability): Type changed to uint32_t.
337 (agent_capability_check): Use target_read_uint32.
338
c5e92cca
GB
3392014-09-11 Gary Benson <gbenson@redhat.com>
340
341 * common/common-debug.h (show_debug_regs): Declare.
342 * common/common-debug.c (show_debug_regs): Define.
343 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
344 all uses with show_debug_regs. Replace all uses that considered
345 debug_hw_points as a multi-value integer with straight boolean
346 uses.
347 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
348 with show_debug_regs.
349 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
350 all uses with show_debug_regs.
351 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
352 uses with show_debug_regs.
353
eeef931a
UW
3542014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
355
356 * findvar.c (address_from_register): Handle targets requiring
357 a special conversion routine even for plain pointer types.
358
8efa9855
UW
3592014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
360
361 * rs6000-nat.c (exec_one_dummy_insn): Remove.
362 (store_register): Do not call exec_one_dummy_insn.
363
eb479039
JB
3642014-09-10 Joel Brobecker <brobecker@adacore.com>
365
366 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
367 dereference it first. Use value_enclosing_type instead of
368 value_type.
369 (ada_array_length): Likewise.
370
deede10c
JB
3712014-09-10 Joel Brobecker <brobecker@adacore.com>
372
373 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
374 Adjust function implementation and documentation accordingly.
375 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
376 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
377 Update call to ada_value_ptr_subscript.
378
7828a5f5
JB
3792014-09-10 Joel Brobecker <brobecker@adacore.com>
380
381 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
382 instead of VAL's type.
383
35782f14
JB
3842014-09-10 Joel Brobecker <brobecker@adacore.com>
385
386 * amd64-linux-nat.c: Add <sys/uio.h> #include.
387
d342a0da
DE
3882014-09-09 Doug Evans <xdje42@gmail.com>
389
390 PR guile/17367
391 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
392 last parameter to pkg-config, not first.
393 * configure.ac: Pass --with-guile provided pkg-config path to
394 GDB_GUILE_PROGRAM_NAMES.
395 * configure: Regenerate.
396
b4a3d263
GKB
3972014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
398
399 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
400 Bertazi".
401
6e466374
MR
4022014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
403
404 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
405 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
406 the list of sections determining GDB_OSABI_IRIX.
407
a1ada89a
JH
4082014-09-09 James Hogan <james.hogan@imgtec.com>
409
410 * MAINTAINERS (Write After Approval): Add "James Hogan".
411
86db008d
JH
4122014-09-09 James Hogan <james.hogan@imgtec.com>
413
414 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
415
72fde3df
JB
4162014-09-09 Joel Brobecker <brobecker@adacore.com>
417
418 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
419
92d8d229
DE
4202014-09-08 Doug Evans <xdje42@gmail.com>
421
422 PR 17247
423 * guile.c: #include <signal.h>.
424 (_initialize_guile): Block SIGCHLD while initializing Guile.
425
426 Replaces the following, which is reverted.
427
428 2014-07-26 Doug Evans <xdje42@gmail.com>
429
430 PR 17185
431 * configure.ac: Add check for header gc/gc.h.
432 Add check for function setenv.
433 * configure: Regenerate.
434 * config.in: Regenerate.
435 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
436
d81412aa
DE
4372014-09-08 Doug Evans <xdje42@gmail.com>
438
439 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
440 with named constant. Fix style of pointer comparison.
441 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
442
a9f116cb
GKB
4432014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
444
445 PR gdb/17035
446 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
447 decide whether we display the command on "show user".
448 * cli/cli-script.c (show_user_1): Only verify cmdlines after
449 printing command name.
450 * cli/cli-decode.h (cli_user_command_p): Declare new function.
451 * cli/cli-decode.c (cli_user_command_p): Create helper function
452 to verify whether cmd_list_element is a user-defined command.
453
c75bd3a2
JK
4542014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 PR python/17355
457 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
458 Fix goto out of TRY_CATCH.
459
faa42425 4602014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 461 Tom Tromey <tromey@redhat.com>
faa42425
DE
462
463 PR 15276
464 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
465 $_any_caller_matches.
466 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
467 * python/lib/gdb/function/caller_is.py: New file.
468
0d41ba00
DE
4692014-09-06 Doug Evans <xdje42@gmail.com>
470
471 * infcmd.c (program_info): Fix typo.
472
474ca4f6
SDJ
4732014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
474
475 PR gdb/17235
476 * stap-probe.c (stap_parse_single_operand): Delete unused variable
477 'number'. New variable 'has_digit'. Rewrite code to deal with
478 subexpressions on SDT probes.
479
ebf13736
PA
4802014-09-04 Pedro Alves <palves@redhat.com>
481
482 * c-exp.y (parse_number): Skip handling base-switching prefixes if
483 the input is only one character long.
484
eb0b0463
SDJ
4852014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
486
487 PR fortran/17237
488 * f-valprint.c (f_val_print): Specify the correct print option to
489 use when printing integer values.
490
5ee44bfa
GB
4912014-09-04 Gary Benson <gbenson@redhat.com>
492
493 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
494 Remove code to cope with LWPs wrapped as PIDs.
495 Add assertions to ensure no wrapped LWPs are passed.
496
4875ffdb
PA
4972014-09-04 Pedro Alves <palves@redhat.com>
498
499 * value.c (value_ranges_copy_adjusted): New function, factored out
500 from ...
501 (value_contents_copy_raw): ... here.
502 (unpack_value_bits_as_long_1): Rename back to ...
503 (unpack_bits_as_long): ... this. Remove 'original_value' and
504 'result' parameters. Change return type to LONGEST.
505 (unpack_value_bits_as_long): Delete.
506 (unpack_value_field_as_long_1): Delete.
507 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
508 (unpack_value_bitfield): New function.
509 (value_field_bitfield): Reimplement using unpack_value_bitfield.
510 (value_fetch_lazy): Use unpack_value_bitfield.
511 * value.h (unpack_value_bits_as_long): Delete declaration.
512
5f3b99cf
SS
5132014-09-03 Sasha Smundak <asmundak@google.com>
514
515 * python/py-frame.c (frapy_read_register): New function.
516
ac740bc7
JH
5172014-09-03 James Hogan <james.hogan@imgtec.com>
518
519 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
520 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
521
7d793aa9
SDJ
5222014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
523
524 PR python/16699
525 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
526 function.
527 (add_cmd): Set "completer_handle_brkchars" to NULL.
528 * cli/cli-decode.h (struct cmd_list_element)
529 <completer_handle_brkchars>: New field.
530 * command.h (completer_ftype_void): New typedef.
531 (set_cmd_completer_handle_brkchars): New prototype.
532 * completer.c (set_gdb_completion_word_break_characters): New
533 function.
534 (complete_line_internal): Call "completer_handle_brkchars"
535 callback from command.
536 * completer.h: Include "command.h".
537 (set_gdb_completion_word_break_characters): New prototype.
538 * python/py-cmd.c (cmdpy_completer_helper): New function.
539 (cmdpy_completer_handle_brkchars): New function.
540 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
541 (cmdpy_init): Set completer_handle_brkchars to
542 cmdpy_completer_handle_brkchars.
543
97ea6506
GB
5442014-09-03 Gary Benson <gbenson@redhat.com>
545
546 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
547 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
548 Loop conditions changed to equivalent form.
549 (struct x86_debug_reg_state): Updated dr_ref_count comment.
550 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
551 ALL_DEBUG_ADDRESS_REGISTERS.
552
d1437815
JB
5532014-09-03 Joel Brobecker <brobecker@adacore.com>
554
555 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
556 description fix.
557
9b94fcf1
DE
5582014-09-02 Doug Evans <dje@google.com>
559
560 * typeprint.c (find_global_typedef): Fix comment.
561
df7e5265
GB
5622014-09-02 Gary Benson <gbenson@redhat.com>
563
564 * i386-nat.h: Renamed as...
565 * x86-nat.h: New file. All type, function and variable name
566 prefixes changed from "i386_" to "x86_". All references updated.
567 * i386-nat.c: Renamed as...
568 * x86-nat.c: New file. All type, function and variable name
569 prefixes changed from "i386_" to "x86_". All references updated.
570 * common/i386-xstate.h: Renamed as...
571 * common/x86-xstate.h: New file. All type, function and variable
572 name prefixes changed from "i386_" to "x86_". All references
573 updated.
574 * nat/i386-cpuid.h: Renamed as...
575 * nat/x86-cpuid.h: New file. All type, function and variable name
576 prefixes changed from "i386_" to "x86_". All references updated.
577 * nat/i386-gcc-cpuid.h: Renamed as...
578 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
579 name prefixes changed from "i386_" to "x86_". All references
580 updated.
581 * nat/i386-dregs.h: Renamed as...
582 * nat/x86-dregs.h: New file. All type, function and variable name
583 prefixes changed from "i386_" to "x86_". All references updated.
584 * nat/i386-dregs.c: Renamed as...
585 * nat/x86-dregs.c: New file. All type, function and variable name
586 prefixes changed from "i386_" to "x86_". All references updated.
587
1c3569d4
MR
5882014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
589
590 * varobj.c (_initialize_varobj): Move to the end of file.
591
ff55e1b5
GB
5922014-08-29 Gary Benson <gbenson@redhat.com>
593
594 * common/common-exceptions.h: New file.
595 * common/common-exceptions.c: Likewise.
596 * Makefile.in (SFILES): Add common/common-exceptions.c.
597 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
598 (COMMON_OBS): Add common-exceptions.o.
599 (common-exceptions.o): New rule.
600 * exceptions.h (common-exceptions.h): Include.
601 (gdb_setjmp.h): Do not include.
602 (return_reason): Moved to common-exceptions.h.
603 (enum return_reason): Likewise.
604 (RETURN_MASK): Likewise.
605 (typedef return_mask): Likewise.
606 (enum errors): Likewise.
607 (struct gdb_exception): Likewise.
608 (exceptions_state_mc_init): Likewise.
609 (exceptions_state_mc_action_iter): Likewise.
610 (exceptions_state_mc_action_iter_1): Likewise.
611 (TRY_CATCH): Likewise.
612 (throw_exception): Likewise.
613 (throw_verror): Likewise.
614 (throw_vquit): Likewise.
615 (throw_error): Likewise.
616 (throw_quit): Likewise.
617 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
618 (enum catcher_action): Likewise.
619 (struct catcher): Likewise.
620 (current_catcher): Likewise.
621 (catcher_list_size): Likewise.
622 (exceptions_state_mc_init): Likewise.
623 (catcher_pop): Likewise.
624 (exceptions_state_mc): Likewise.
625 (exceptions_state_mc_action_iter): Likewise.
626 (exceptions_state_mc_action_iter_1): Likewise.
627 (throw_exception): Likewise.
628 (exception_messages): Likewise.
629 (exception_messages_size): Likewise.
630 (throw_it): Likewise.
631 (throw_verror): Likewise.
632 (throw_vquit): Likewise.
633 (throw_error): Likewise.
634 (throw_quit): Likewise.
635 (prepare_to_throw_exception): New function.
636
e9bcb658
GB
6372014-08-29 Gary Benson <gbenson@redhat.com>
638
639 * common/gdb_setjmp.h: New file.
640 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
641 * configure.ac: Move sigsetjmp check...
642 * common/common.m4: ...here.
643 * configure: Regenerate.
644 * cp-support.c (SIGJMP_BUF): Delete.
645 (SIGSETJMP): Likewise.
646 (SIGLONGJMP): Likewise.
647 * exceptions.h (gdb_setjmp.h): Include.
648 (setjmp.h): Do not include.
649 (EXCEPTIONS_SIGJMP_BUF): Delete.
650 (EXCEPTIONS_SIGSETJMP): Likewise.
651 (EXCEPTIONS_SIGLONGJMP): Likewise.
652 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
653 from gdb_setjmp.h.
654 * exceptions.c: Likewise.
655
e3180625
GB
6562014-08-29 Gary Benson <gbenson@redhat.com>
657
658 * cleanups.h: Moved to...
659 * common/cleanups.h: New file.
660 * cleanups.c: Moved to...
661 * common/cleanups.c: New file. Include common-defs.h and
662 cleanups.h. Do not include defs.h.
663 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
664 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
665 (cleanups.o): New rule.
666
e3d6ba5d
GB
6672014-08-29 Gary Benson <gbenson@redhat.com>
668
669 * common/errors.h (internal_warning): New declaration.
670 (internal_vwarning): Likewise.
671 * common/errors.c (internal_warning): New function.
672 * utils.h (internal_warning): Don't declare.
673 (internal_vwarning): Likewise.
674 * utils.c (internal_warning): Removed.
675
075c7033
GB
6762014-08-29 Gary Benson <gbenson@redhat.com>
677
678 * main.c (captured_main): Use warning during startup.
679 Prefix startup warning messages with command name.
680
91b35fd0
GB
6812014-08-29 Gary Benson <gbenson@redhat.com>
682
683 * main.c (captured_main): Handle usage errors with error.
684
b1ec390e
GB
6852014-08-29 Gary Benson <gbenson@redhat.com>
686
687 * go32-nat.c (go32_create_inferior): Replace a fprintf/
688 exit pair with a call to error. Wrap the message with _().
689
fd0ef3dd
GB
6902014-08-29 Gary Benson <gbenson@redhat.com>
691
692 * main.c (captured_main): Replace a fprintf/exit
693 pair with a call to error. Wrap the message with _().
694
e0e6bcab
GB
6952014-08-29 Gary Benson <gbenson@redhat.com>
696
697 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
698 pairs with calls to error. Wrap the message with _().
699
0d2f5c07
GB
7002014-08-29 Gary Benson <gbenson@redhat.com>
701
702 * utils.c (vwarning): Protect calls to target_terminal_ours
703 and wrap_here.
704
5df43998
GB
7052014-08-29 Gary Benson <gbenson@redhat.com>
706
707 * exceptions.c (print_flush): Protect calls to
708 target_terminal_ours and wrap_here.
709
2437fd32
GB
7102014-08-29 Gary Benson <gbenson@redhat.com>
711
712 * utils.h (filtered_printing_initialized): New declaration.
713 * utils.c (abort_with_message): New function.
714 (internal_vproblem): Use abort_with_message for first level
715 recursive internal problems, and if gdb_stderr is not set up.
716 Protect calls to target_terminal_ours, begin_line and query.
717
f1f58506
DE
7182014-08-28 Doug Evans <dje@google.com>
719
720 * symtab.c (in_prologue): Move definition to better spot.
721 (skip_prologue_using_sal): Ditto.
722
aab2f208
DE
7232014-08-28 Doug Evans <dje@google.com>
724
725 * symtab.c (find_function_start_sal): Move definition to better spot.
726
6b65d1b6
YQ
7272014-08-28 Yao Qi <yao@codesourcery.com>
728
729 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
730 found_stack_adjust in forward scan. Remove condition check
731 on found_stack_adjust which is always true. Indent the code.
732
a1b34d15
YQ
7332014-08-28 Yao Qi <yao@codesourcery.com>
734
735 * dwarf2read.c (dwarf_decode_lines): Update declaration.
736 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
737 (dwarf_decode_lines): Remove argument
738 want_line_info. Remove condition check on want_line_info.
739 Callers update.
740
d5962de5
DE
7412014-08-27 Doug Evans <dje@google.com>
742
743 * dwarf2read.c (dwarf_record_line): Fix typo.
744
9b139002
SDJ
7452014-08-27 Patrick Palka <patrick@parcs.ath.cx>
746
747 * target.h (struct target_ops::to_terminal_save_ours): Remove
748 declaration.
749 (target_terminal_save_ours): Remove macro.
750 * target-delegates.c: Regenerate.
751 * inf-child.c (inf_child_target): Don't set the nonexistent
752 field to_terminal_save_ours.
753 * inferior.h (child_terminal_save_ours): Remove declaration.
754 * terminal.h (gdb_save_tty_state): New declaration.
755 * inflow.c (child_terminal_save_ours): Rename to ...
756 (gdb_save_tty_state): ... this.
757 * tui/tui.c: Include terminal.h.
758 (tui_enable): Use gdb_save_tty_state instead of
759 target_terminal_save_ours.
760 (tui_disable): Likewise.
761
9debeba0
DE
7622014-08-25 Doug Evans <dje@google.com>
763
764 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
765 Pass NULL instead of 0 for context pointer.
766
428fc5fc
YQ
7672014-08-25 Yao Qi <yao@codesourcery.com>
768
769 * dwarf2read.c: Fix grammatical error.
770
cdc07690
YQ
7712014-08-24 Yao Qi <yao@codesourcery.com>
772
773 * dwarf2read.c (scan_partial_symbols): Update comments.
774 Rename argument 'need_pc' with 'set_addrmap'.
775 (add_partial_namespace): Rename argument 'need_pc' with
776 'set_addrmap'.
777 (add_partial_module): Likewise.
778 (add_partial_subprogram): Likewise. Update comments.
779 (dwarf2_name): Fix typo.
780
a05a36a5
DE
7812014-08-22 Doug Evans <dje@google.com>
782
783 PR 17276
784 * dwarf2read.c (dwarf_record_line_p): New function.
785 (dwarf_decode_lines_1): Ignore subsequent line number entries
786 for the same line if any entry had a non-zero discriminator.
787
252a6764
DE
7882014-08-22 Doug Evans <dje@google.com>
789
790 * buildsym.h (record_line_ftype): New typedef.
791 (record_line): Use it.
792 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
793 (dwarf_decode_lines_1): Call them.
794
510db052
YQ
7952014-08-22 Yao Qi <yao@codesourcery.com>
796
797 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
798 (ctf_end): Remove code.
799
22fd09ae
JK
8002014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
801
802 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
803 (linux_make_corefile_notes): call update_thread_list, protected against
804 exceptions.
805
656e8868
PA
8062014-08-21 Pedro Alves <palves@redhat.com>
807
808 * infcmd.c (attach_command): Remove comment.
809
de589d04
WN
8102014-08-21 Bin Cheng <bin.cheng@arm.com>
811
812 * aarch64-linux-nat.c (dr_changed_t): Change the type from
813 unsigned LONGEST to ULONGEST.
814
2a31c623
PA
8152014-08-20 Pedro Alves <palves@redhat.com>
816
817 * Makefile.in (check-read1): New rule.
818
d36430db
JB
8192014-08-20 Joel Brobecker <brobecker@adacore.com>
820
821 * value.c (value_from_contents_and_address): Strip resolved_type's
822 typedef layers before checking its TYPE_DATA_LOCATION.
823
000339af
PA
8242014-08-20 Pedro Alves <palves@redhat.com>
825
826 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
827
5f52445b
YQ
8282014-08-20 Yao Qi <yao@codesourcery.com>
829
830 * amd64-tdep.c (amd64_classify): Add a blank line after the
831 example. Move "*/" to a new line.
832 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
833 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
834 * dwarf2read.c (psymtab_include_file_name): Likewise.
835
9a0dc9e3
PA
8362014-08-19 Andrew Burgess <aburgess@broadcom.com>
837 Pedro Alves <palves@redhat.com>
838
839 PR symtab/14604
840 PR symtab/14605
841 * ada-lang.c (coerce_unspec_val_to_type): Use
842 value_contents_copy_raw.
843 * ada-valprint.c (val_print_packed_array_elements): Adjust.
844 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
845 * cp-valprint.c (cp_print_value_fields): Let the common printing
846 code handle optimized out values.
847 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
848 * d-valprint.c (dynamic_array_type): Use
849 value_bits_any_optimized_out.
850 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
851 check_any_valid fields.
852 (check_pieced_value_bits): Delete and inline ...
853 (check_pieced_synthetic_pointer): ... here.
854 (check_pieced_value_validity): Delete.
855 (check_pieced_value_invalid): Delete.
856 (pieced_value_funcs): Remove check_validity and check_any_valid
857 fields.
858 (read_pieced_value): Use mark_value_bits_optimized_out.
859 (write_pieced_value): Switch to use
860 mark_value_bytes_optimized_out.
861 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
862 of assuming the whole value is optimized out.
863 * findvar.c (read_frame_register_value): Remove special handling
864 of optimized out registers.
865 (value_from_register): Use mark_value_bytes_optimized_out.
866 * frame-unwind.c (frame_unwind_got_optimized): Use
867 mark_value_bytes_optimized_out.
868 * jv-valprint.c (java_value_print): Adjust.
869 (java_print_value_fields): Let the common printing code handle
870 optimized out values.
871 * mips-tdep.c (mips_print_register): Remove special handling of
872 optimized out registers.
873 * opencl-lang.c (lval_func_check_validity): Delete.
874 (lval_func_check_any_valid): Delete.
875 (opencl_value_funcs): Remove check_validity and check_any_valid
876 fields.
877 * p-valprint.c (pascal_object_print_value_fields): Let the common
878 printing code handle optimized out values.
879 * stack.c (read_frame_arg): Remove special handling of optimized
880 out values. Fetch both VAL and ENTRYVAL before comparing
881 contents. Adjust to value_available_contents_eq rename.
882 * valprint.c (valprint_check_validity)
883 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
884 (val_print_array_elements): Adjust.
885 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
886 (value_bits_any_optimized_out): New function.
887 (value_entirely_covered_by_range_vector): New function, factored
888 out from value_entirely_unavailable.
889 (value_entirely_unavailable): Reimplement.
890 (value_entirely_optimized_out): New function.
891 (insert_into_bit_range_vector): New function, factored out from
892 mark_value_bits_unavailable.
893 (mark_value_bits_unavailable): Reimplement.
894 (struct ranges_and_idx): New struct.
895 (find_first_range_overlap_and_match): New function, factored out
896 from value_available_contents_bits_eq.
897 (value_available_contents_bits_eq): Rename to ...
898 (value_contents_bits_eq): ... this. Check both unavailable
899 contents and optimized out contents.
900 (value_available_contents_eq): Rename to ...
901 (value_contents_eq): ... this.
902 (allocate_value_lazy): Remove reference to the old optimized_out
903 boolean.
904 (allocate_optimized_out_value): Use
905 mark_value_bytes_optimized_out.
906 (require_not_optimized_out): Adjust to check whether the
907 optimized_out vec is empty.
908 (ranges_copy_adjusted): New function, factored out from
909 value_contents_copy_raw.
910 (value_contents_copy_raw): Also copy the optimized out ranges.
911 Assert the destination ranges aren't optimized out.
912 (value_contents_copy): Update comment, remove call to
913 require_not_optimized_out.
914 (value_contents_equal): Adjust to check whether the optimized_out
915 vec is empty.
916 (set_value_optimized_out, value_optimized_out_const): Delete.
917 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
918 New functions.
919 (value_entirely_optimized_out, value_bits_valid): Delete.
920 (value_copy): Take a VEC copy of the 'optimized_out' field.
921 (value_primitive_field): Remove special handling of optimized out.
922 (value_fetch_lazy): Assert that lazy values have no unavailable
923 regions. Use value_bits_any_optimized_out. Remove some special
924 handling for optimized out values.
925 * value.h: Add intro comment about <optimized out> and
926 <unavailable>.
927 (struct lval_funcs): Remove check_validity and check_any_valid
928 fields.
929 (set_value_optimized_out, value_optimized_out_const): Remove.
930 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
931 New declarations.
932 (value_bits_any_optimized_out): New declaration.
933 (value_bits_valid): Delete declaration.
934 (value_available_contents_eq): Rename to ...
935 (value_contents_eq): ... this, and extend comments.
936
6694c411
JK
9372014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
938
939 Fix -fsanitize=address on unreadable inferior strings.
940 * valprint.c (val_print_string): Fix access before BUFFER.
941
89a1c21a
SM
9422014-08-19 Simon Marchi <simon.marchi@ericsson.com>
943
944 * target.c (target_struct_size): Remove.
945 (target_struct_allocsize): Remove.
946 (DEFAULT_ALLOCSIZE): Remove.
947 (target_ops_p): New typedef.
948 (DEF_VEC_P (target_ops_p)): New vector type.
949 (target_structs): Change type to VEC (target_ops_p).
950 (add_target_with_completer): Replace "push" code by VEC_safe_push.
951 (find_default_run_target): Rewrite for loop following changes to
952 target_structs.
953
cb417230
JB
9542014-08-19 Joel Brobecker <brobecker@adacore.com>
955
956 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
957 Adjust code accordingly. Adjust function description comment.
958
817e0957
YQ
9592014-08-19 Yao Qi <yao@codesourcery.com>
960
961 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
962 types.
963
2974be62
AM
9642014-08-19 Alan Modra <amodra@gmail.com>
965
966 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
967 * config.in: Regenerate.
968 * configure: Regenerate.
969
34abf635
GB
9702014-08-19 Tom Tromey <tromey@redhat.com>
971 Gary Benson <gbenson@redhat.com>
972
973 * common/common-debug.h: New file.
974 * common/common-debug.c: Likewise.
975 * debug.c: Likewise.
976 * Makefile.in (SFILES): Add common/common-debug.c.
977 (HFILES_NO_SRCDIR): Add common/common-debug.h.
978 (COMMON_OBS): Add common-debug.o and debug.o.
979 (common-debug.o): New rule.
980 * common/common-defs.h: Include common-debug.h.
981 * common/agent.c (debug_agent_printf): New function.
982 (DEBUG_AGENT): Redefine.
983 * nat/i386-dregs.c (debug_printf): Undefine.
984
f6e94d78
GB
9852014-08-19 Gary Benson <gbenson@redhat.com>
986
987 * common/common-defs.h: Include print-utils.h.
988 * utils.h: Do not include print-utils.h.
989
9239eeab
GB
9902014-08-19 Tom Tromey <tromey@redhat.com>
991 Gary Benson <gbenson@redhat.com>
992
993 * common/common-types.h: New file.
994 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
995 * common/common-defs.h: Include common-types.h.
996 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
997 (ULONGEST): Remove.
998
ef87c8bb
GB
9992014-08-19 Tom Tromey <tromey@redhat.com>
1000 Gary Benson <gbenson@redhat.com>
1001
1002 * common/errors.h: New file.
1003 * common/errors.c: Likewise.
1004 * Makefile.in (SFILES): Add common/errors.c.
1005 (HFILES_NO_SRCDIR): Add common/errors.h.
1006 (COMMON_OBS): Add errors.o.
1007 (errors.o): New rule.
1008 * common/common-defs.h: Include errors.h.
1009 * utils.h (perror_with_name, error, verror, warning, vwarning):
1010 Don't declare.
1011 * common/common-utils.h: (malloc_failure, internal_error):
1012 Likewise.
1013
196a707b
GB
10142014-08-19 Gary Benson <gbenson@redhat.com>
1015
1016 * utils.c (internal_vproblem): Always print the message.
1017
ded4fc8f
DE
10182014-08-18 Doug Evans <dje@google.com>
1019
1020 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1021
950c97d8
JB
10222014-08-18 Joel Brobecker <brobecker@adacore.com>
1023
1024 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1025 Return 0 if TYPE is dynamic.
1026 (print_range): Add handling of dynamic ranges.
1027
3cdcd0ce
JB
10282014-08-18 Keven Boell <keven.boell@intel.com>
1029 Joel Brobecker <brobecker@adacore.com>
1030
1031 * gdbtypes.h (struct main_type): Add field "data_location".
1032 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1033 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1034 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1035 a dynamic data location.
1036 (resolve_dynamic_type): Add DW_AT_data_location handling.
1037 (copy_recursive, copy_type): Copy the data_location information
1038 when present.
1039 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1040 * value.c (value_from_contents_and_address): Add
1041 DW_AT_data_location handling.
1042
08412b07
JB
10432014-08-18 Keven Boell <keven.boell@intel.com>
1044 Joel Brobecker <brobecker@adacore.com>
1045
1046 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1047 field "get_object_address".
1048 * dwarf2expr.c (execute_stack_op): Add handling for
1049 DW_OP_push_object_address.
1050 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1051 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1052 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1053 (dwarf_expr_get_obj_addr): New function.
1054 (dwarf_expr_ctx_funcs): Add get_object_address field.
1055 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1056 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1057 (dwarf2_evaluate_property): Add parameter "address". Use it.
1058 (needs_get_obj_addr): New function.
1059 (needs_frame_ctx_funcs): Add get_object_address field.
1060 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1061 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1062 (resolve_dynamic_array): Likewise.
1063
84754697
JB
10642014-08-18 Joel Brobecker <brobecker@adacore.com>
1065
1066 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1067 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1068 fixed value for records and unions for which some GNAT encodings
1069 are present.
1070
da5c522f
JB
10712014-08-18 Joel Brobecker <brobecker@adacore.com>
1072
1073 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1074 rewrite to avoid "else if" and "else" constructs. Should be
1075 a no-op in practice.
1076
0d72a7c3
JB
10772014-08-18 Joel Brobecker <brobecker@adacore.com>
1078
1079 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1080 of lexical block.
1081
e66d4446
SC
10822014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1083
1084 PR c++/17132
1085 * eval.c: Update all calls to find_overload_match.
1086 * valarith.c: Likewise.
1087 (value_user_defined_cpp_op, value_user_defined_op): New
1088 argument NOSIDE. Update all callers.
1089 * valops.c (find_overload_match): New argument NOSIDE.
1090 * value.h (find_overload_match): Update signature.
1091
940df408
SC
10922014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1093
1094 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1095 'items' methods instead of 'iteritems' method on dictionaries.
1096
699ca60a
DE
10972014-08-15 Doug Evans <dje@google.com>
1098
1099 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1100 closer to use.
1101
37780ee5
DE
11022014-08-15 Doug Evans <dje@google.com>
1103
1104 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1105
0ad93d4f
DE
11062014-08-15 Doug Evans <dje@google.com>
1107
1108 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1109
20d8c372
DE
11102014-08-15 Doug Evans <dje@google.com>
1111
1112 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1113 unused.
1114
cb039ba4
EZ
11152014-08-15 Eli Zaretskii <eliz@gnu.org>
1116
1117 * dcache.h: Include target.h, to avoid compile time warnings.
1118
eb7a547a
JB
11192014-08-15 Joel Brobecker <brobecker@adacore.com>
1120
1121 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1122 frame_info" partial declaration.
1123 * gdbarch.h: Regenerate.
1124
783cecc8
YQ
11252014-08-15 Yao Qi <yao@codesourcery.com>
1126
1127 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1128 Add parameter 'decode_for_pst_p'. Callers update.
1129
65c749e7
YQ
11302014-08-13 Yao Qi <yao@codesourcery.com>
1131
1132 PR build/17104
1133 * configure.ac: Use local variable 'pos'.
1134 * configure: Regenerated.
1135
d769e349
DE
11362014-08-11 Doug Evans <dje@google.com>
1137
1138 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1139 message, it is redundant with "Reading symbols from ..." message.
1140
24f1235e
DE
11412014-08-10 Doug Evans <xdje42@gmail.com>
1142
1143 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1144
dcd2e6ef
YQ
11452014-08-09 Yao Qi <yao@codesourcery.com>
1146
1147 PR remote/9053
1148 * remote.c (remote_xfer_partial): Remove dead code.
1149
070bdf0b
AA
11502014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1151
1152 * ia64-linux-tdep.c: Include "regset.h".
1153 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1154 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1155 (ia64_linux_supply_fpregset): New function.
1156 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1157 (ia64_linux_regset_from_core_section): New function.
1158 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1159 method.
1160
08f9f542
AA
11612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1162
1163 * m68klinux-tdep.c: Include "regset.h".
1164 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1165 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1166 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1167 (m68k_linux_regset_from_core_section): New function.
1168 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1169 method.
1170
8f1cee41
AA
11712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1172
1173 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1174 function. Move logic to...
1175 (tilegx_linux_regmap): ... this new register map.
1176 (tilegx_linux_regset): Refer to register map, replace supply
1177 method by regcache_supply_regset, and add collect method.
1178 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1179 TILEGX_FIRST_EASY_REGNUM.
1180
c5741217
AA
11812014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1182
1183 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1184 that calls regcache_supply_regset and handles the EPC register
1185 separately. Move main logic to...
1186 (score7_linux_gregmap): ... this new register map.
1187 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1188 (score7_linux_gregset): Refer to register map. Add collect method.
1189 (score7_linux_regset_from_core_section): Replace
1190 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1191 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1192 (struct regset): Delete unused forward declaraction.
1193 (struct pt_regs): Delete structure definition.
1194 (elf_gregset_t): Delete typedef.
1195
81580573
AA
11962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1197
1198 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1199 (nios2_core_regset): Add collect method.
1200
ba199d7d
AA
12012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1202
1203 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1204 platform-independent and don't write to read-only input buffer.
1205 (m32r_linux_collect_gregset): New function.
1206 (m32r_linux_gregset): Add collect method.
1207
0006a9da
AA
12082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1209
1210 * hppa-linux-tdep.c (greg_map): Rename to...
1211 (hppa_linux_gregmap): ... this. Also convert to
1212 regcache_map_entry format.
1213 (hppa_linux_supply_regset): Delete function.
1214 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1215 (hppa_linux_fpregmap): ... this new register map.
1216 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1217 register map, replace supply method by regcache_supply_regset, and
1218 add collect method regcache_collect_regset.
1219
901e1b23
AA
12202014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1221
1222 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1223 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1224 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1225 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1226 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1227 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1228 (frv_linux_supply_gregset): Replace main logic by call to
1229 regcache_supply_regset, but keep clearing gr32-gr63.
1230 (frv_linux_supply_fpregset): Delete function.
1231 (frv_linux_gregset): Refer to appropriate register map and add
1232 regcache_collect_regset as the collect method.
1233 (frv_linux_fpregset): Likewise. Also exchange the supply method
1234 by regcache_supply_regset.
1235
1d6e7555
AA
12362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1237
1238 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1239 by call to alpha_supply_int_regs.
1240 (alpha_linux_collect_gregset): New function.
1241 (alpha_linux_supply_fpregset): Replace logic by call to
1242 alpha_supply_fp_regs.
1243 (alpha_linux_collect_fpregset): New function.
1244 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1245
d4d793bf
AA
12462014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1247
1248 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1249 by call to regcache_collect_regset.
1250 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1251 instead of aarch64_linux_supply_gregset/_fpregset.
1252 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1253 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1254 header file instead.
1255 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1256 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1257 functions. Move logic to ...
1258 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1259 register maps.
1260 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1261 refer to new register maps, replace *_regset_from_core by
1262 regcache_supply_regset, and also use regcache_collect_regset.
1263 * aarch64-linux-tdep.h: Include "regset.h".
1264 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1265 Delete prototypes.
1266 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1267 macros, moved from C source file.
1268 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1269 variable declarations.
1270
99b7da5d
AA
12712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1272
1273 * s390-linux-nat.c: Include "regset.h".
1274 (regmap_gregset): Delete macro.
1275 (s390_64_regmap_gregset): New register map for
1276 regcache_supply/_collect_regset.
1277 (s390_64_gregset): New regset.
1278 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1279 (regmap_fpregset): Delete macro.
1280 (s390_native_supply, s390_native_collect): Delete functions.
1281 (supply_gregset, fill_gregset): Replace s390-specific regmap
1282 handling by a call to regcache_supply/_collect_regset.
1283 (supply_fpregset, fill_fpregset): Call regcache_supply/
1284 _collect_regset instead of s390_native_supply/_collect.
1285 (fetch_regset, store_regset): Likewise. Also change the last
1286 parameter to a regset instead of a regmap.
1287 (s390_linux_fetch_inferior_registers)
1288 (390_linux_store_inferior_registers): Adjust last parameter in
1289 calls to fetch_regset and store_regset.
1290 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1291 (s390_gregmap): ... this. Also make static const and convert to
1292 regcache_map_entry format.
1293 (s390x_regmap_gregset): Delete.
1294 (s390_regmap_fpregset): Rename to...
1295 (s390_fpregmap): ... this. Make static const and convert to
1296 regcache_map_entry format.
1297 (s390_regmap_upper, s390_regmap_last_break)
1298 (s390x_regmap_last_break, s390_regmap_system_call)
1299 (s390_regmap_tdb): Likewise.
1300 (s390_supply_regset, s390_collect_regset): Remove functions.
1301 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1302 s390_supply_regset.
1303 (s390_gregset, s390_fpregset, s390_upper_regset)
1304 (s390_last_break_regset, s390x_last_break_regset)
1305 (s390_system_call_regset, s390_tdb_regset): Make global and
1306 replace s390_supply/_collect_regset by regcache_supply/
1307 _collect_regset.
1308 (s390x_gregset): Delete.
1309 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1310 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1311 (s390_regmap_fpregset, s390_regmap_last_break)
1312 (s390x_regmap_last_break, s390_regmap_system_call)
1313 (s390_regmap_tdb): Delete global variable declarations.
1314 (s390_gregset, s390_fpregset, s390_last_break_regset)
1315 (s390x_last_break_regset, s390_system_call_regset)
1316 (s390_tdb_regset): New global variable declarations.
1317
0b309272
AA
13182014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1319
1320 * regcache.c: Include "regset.h".
1321 (regcache_transfer_regset): New local function.
1322 (regcache_supply_regset, regcache_collect_regset): New functions.
1323 * regcache.h (struct regcache_map_entry): New structure.
1324 (REGCACHE_MAP_SKIP): New enum value.
1325 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1326
7fefa8d7
AA
13272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1328
1329 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1330 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1331 (ppc_linux_collect_gregset ): Likewise.
1332 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1333 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1334 (ppc_collect_vrregset): Likewise.
1335 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1336 Likewise.
1337
96c4f946
YQ
13382014-08-07 Yao Qi <yao@codesourcery.com>
1339
1340 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1341 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1342 * remote.c (remote_read_bytes): Likewise.
1343
fffbe6a8
YQ
13442014-08-07 Yao Qi <yao@codesourcery.com>
1345
1346 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1347
5ee8a82c
YQ
13482014-08-07 Yao Qi <yao@codesourcery.com>
1349
1350 PR remote/17230
1351 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1352 TARGET_XFER_OK instead of 0.
1353
bb974a24
GB
13542014-08-07 Gary Benson <gbenson@redhat.com>
1355
1356 * common/common-defs.h: Include errno.h.
1357 * defs.h: Do not include errno.h.
1358 * ada-typeprint.c: Likewise.
1359 * c-typeprint.c: Likewise.
1360 * core-regset.c: Likewise.
1361 * corefile.c: Likewise.
1362 * corelow.c: Likewise.
1363 * event-loop.c: Likewise.
1364 * f-typeprint.c: Likewise.
1365 * gnu-nat.c: Likewise.
1366 * go32-nat.c: Likewise.
1367 * i386gnu-nat.c: Likewise.
1368 * m2-typeprint.c: Likewise.
1369 * nat/linux-btrace.c: Likewise.
1370 * p-typeprint.c: Likewise.
1371 * procfs.c: Likewise.
1372 * remote-sim.c: Likewise.
1373 * rs6000-nat.c: Likewise.
1374 * target.c: Likewise.
1375 * typeprint.c: Likewise.
1376 * ui-file.c: Likewise.
1377 * valops.c: Likewise.
1378 * valprint.c: Likewise.
1379
6d3d12eb
GB
13802014-08-07 Gary Benson <gbenson@redhat.com>
1381
1382 * common/common-defs.h: Include string.h.
1383 * aarch64-tdep.c: Do not include string.h.
1384 * ada-exp.y: Likewise.
1385 * ada-lang.c: Likewise.
1386 * ada-lex.l: Likewise.
1387 * ada-typeprint.c: Likewise.
1388 * ada-valprint.c: Likewise.
1389 * aix-thread.c: Likewise.
1390 * alpha-linux-tdep.c: Likewise.
1391 * alpha-mdebug-tdep.c: Likewise.
1392 * alpha-nat.c: Likewise.
1393 * alpha-osf1-tdep.c: Likewise.
1394 * alpha-tdep.c: Likewise.
1395 * alphanbsd-tdep.c: Likewise.
1396 * amd64-dicos-tdep.c: Likewise.
1397 * amd64-linux-tdep.c: Likewise.
1398 * amd64-nat.c: Likewise.
1399 * amd64-sol2-tdep.c: Likewise.
1400 * amd64fbsd-tdep.c: Likewise.
1401 * amd64obsd-tdep.c: Likewise.
1402 * arch-utils.c: Likewise.
1403 * arm-linux-nat.c: Likewise.
1404 * arm-linux-tdep.c: Likewise.
1405 * arm-tdep.c: Likewise.
1406 * arm-wince-tdep.c: Likewise.
1407 * armbsd-tdep.c: Likewise.
1408 * armnbsd-nat.c: Likewise.
1409 * armnbsd-tdep.c: Likewise.
1410 * armobsd-tdep.c: Likewise.
1411 * avr-tdep.c: Likewise.
1412 * ax-gdb.c: Likewise.
1413 * ax-general.c: Likewise.
1414 * bcache.c: Likewise.
1415 * bfin-tdep.c: Likewise.
1416 * breakpoint.c: Likewise.
1417 * build-id.c: Likewise.
1418 * buildsym.c: Likewise.
1419 * c-exp.y: Likewise.
1420 * c-lang.c: Likewise.
1421 * c-typeprint.c: Likewise.
1422 * c-valprint.c: Likewise.
1423 * charset.c: Likewise.
1424 * cli-out.c: Likewise.
1425 * cli/cli-cmds.c: Likewise.
1426 * cli/cli-decode.c: Likewise.
1427 * cli/cli-dump.c: Likewise.
1428 * cli/cli-interp.c: Likewise.
1429 * cli/cli-logging.c: Likewise.
1430 * cli/cli-script.c: Likewise.
1431 * cli/cli-setshow.c: Likewise.
1432 * cli/cli-utils.c: Likewise.
1433 * coffread.c: Likewise.
1434 * common/agent.c: Likewise.
1435 * common/buffer.c: Likewise.
1436 * common/buffer.h: Likewise.
1437 * common/common-utils.c: Likewise.
1438 * common/filestuff.c: Likewise.
1439 * common/filestuff.c: Likewise.
1440 * common/format.c: Likewise.
1441 * common/print-utils.c: Likewise.
1442 * common/rsp-low.c: Likewise.
1443 * common/signals.c: Likewise.
1444 * common/vec.h: Likewise.
1445 * common/xml-utils.c: Likewise.
1446 * core-regset.c: Likewise.
1447 * corefile.c: Likewise.
1448 * corelow.c: Likewise.
1449 * cp-abi.c: Likewise.
1450 * cp-name-parser.y: Likewise.
1451 * cp-support.c: Likewise.
1452 * cp-valprint.c: Likewise.
1453 * cris-tdep.c: Likewise.
1454 * d-exp.y: Likewise.
1455 * darwin-nat.c: Likewise.
1456 * dbxread.c: Likewise.
1457 * dcache.c: Likewise.
1458 * demangle.c: Likewise.
1459 * dicos-tdep.c: Likewise.
1460 * disasm.c: Likewise.
1461 * doublest.c: Likewise.
1462 * dsrec.c: Likewise.
1463 * dummy-frame.c: Likewise.
1464 * dwarf2-frame.c: Likewise.
1465 * dwarf2loc.c: Likewise.
1466 * dwarf2read.c: Likewise.
1467 * elfread.c: Likewise.
1468 * environ.c: Likewise.
1469 * eval.c: Likewise.
1470 * event-loop.c: Likewise.
1471 * exceptions.c: Likewise.
1472 * exec.c: Likewise.
1473 * expprint.c: Likewise.
1474 * f-exp.y: Likewise.
1475 * f-lang.c: Likewise.
1476 * f-typeprint.c: Likewise.
1477 * f-valprint.c: Likewise.
1478 * fbsd-nat.c: Likewise.
1479 * findcmd.c: Likewise.
1480 * findvar.c: Likewise.
1481 * fork-child.c: Likewise.
1482 * frame.c: Likewise.
1483 * frv-linux-tdep.c: Likewise.
1484 * frv-tdep.c: Likewise.
1485 * gdb.c: Likewise.
1486 * gdb_bfd.c: Likewise.
1487 * gdbarch.c: Likewise.
1488 * gdbarch.sh: Likewise.
1489 * gdbtypes.c: Likewise.
1490 * gnu-nat.c: Likewise.
1491 * gnu-v2-abi.c: Likewise.
1492 * gnu-v3-abi.c: Likewise.
1493 * go-exp.y: Likewise.
1494 * go-lang.c: Likewise.
1495 * go32-nat.c: Likewise.
1496 * guile/guile.c: Likewise.
1497 * guile/scm-auto-load.c: Likewise.
1498 * hppa-hpux-tdep.c: Likewise.
1499 * hppa-linux-nat.c: Likewise.
1500 * hppanbsd-tdep.c: Likewise.
1501 * hppaobsd-tdep.c: Likewise.
1502 * i386-cygwin-tdep.c: Likewise.
1503 * i386-dicos-tdep.c: Likewise.
1504 * i386-linux-tdep.c: Likewise.
1505 * i386-nto-tdep.c: Likewise.
1506 * i386-sol2-tdep.c: Likewise.
1507 * i386-tdep.c: Likewise.
1508 * i386bsd-tdep.c: Likewise.
1509 * i386gnu-nat.c: Likewise.
1510 * i386nbsd-tdep.c: Likewise.
1511 * i386obsd-tdep.c: Likewise.
1512 * i387-tdep.c: Likewise.
1513 * ia64-libunwind-tdep.c: Likewise.
1514 * ia64-linux-nat.c: Likewise.
1515 * inf-child.c: Likewise.
1516 * inf-ptrace.c: Likewise.
1517 * inf-ttrace.c: Likewise.
1518 * infcall.c: Likewise.
1519 * infcmd.c: Likewise.
1520 * inflow.c: Likewise.
1521 * infrun.c: Likewise.
1522 * interps.c: Likewise.
1523 * iq2000-tdep.c: Likewise.
1524 * irix5-nat.c: Likewise.
1525 * jv-exp.y: Likewise.
1526 * jv-lang.c: Likewise.
1527 * jv-typeprint.c: Likewise.
1528 * jv-valprint.c: Likewise.
1529 * language.c: Likewise.
1530 * linux-fork.c: Likewise.
1531 * linux-nat.c: Likewise.
1532 * lm32-tdep.c: Likewise.
1533 * m2-exp.y: Likewise.
1534 * m2-typeprint.c: Likewise.
1535 * m32c-tdep.c: Likewise.
1536 * m32r-linux-nat.c: Likewise.
1537 * m32r-linux-tdep.c: Likewise.
1538 * m32r-rom.c: Likewise.
1539 * m32r-tdep.c: Likewise.
1540 * m68hc11-tdep.c: Likewise.
1541 * m68k-tdep.c: Likewise.
1542 * m68kbsd-tdep.c: Likewise.
1543 * m68klinux-nat.c: Likewise.
1544 * m68klinux-tdep.c: Likewise.
1545 * m88k-tdep.c: Likewise.
1546 * machoread.c: Likewise.
1547 * macrocmd.c: Likewise.
1548 * main.c: Likewise.
1549 * mdebugread.c: Likewise.
1550 * mem-break.c: Likewise.
1551 * memattr.c: Likewise.
1552 * memory-map.c: Likewise.
1553 * mep-tdep.c: Likewise.
1554 * mi/mi-cmd-break.c: Likewise.
1555 * mi/mi-cmd-disas.c: Likewise.
1556 * mi/mi-cmd-env.c: Likewise.
1557 * mi/mi-cmd-stack.c: Likewise.
1558 * mi/mi-cmd-var.c: Likewise.
1559 * mi/mi-cmds.c: Likewise.
1560 * mi/mi-console.c: Likewise.
1561 * mi/mi-getopt.c: Likewise.
1562 * mi/mi-interp.c: Likewise.
1563 * mi/mi-main.c: Likewise.
1564 * mi/mi-parse.c: Likewise.
1565 * microblaze-rom.c: Likewise.
1566 * microblaze-tdep.c: Likewise.
1567 * mingw-hdep.c: Likewise.
1568 * minidebug.c: Likewise.
1569 * minsyms.c: Likewise.
1570 * mips-irix-tdep.c: Likewise.
1571 * mips-linux-tdep.c: Likewise.
1572 * mips-tdep.c: Likewise.
1573 * mips64obsd-tdep.c: Likewise.
1574 * mipsnbsd-tdep.c: Likewise.
1575 * mipsread.c: Likewise.
1576 * mn10300-linux-tdep.c: Likewise.
1577 * mn10300-tdep.c: Likewise.
1578 * monitor.c: Likewise.
1579 * moxie-tdep.c: Likewise.
1580 * mt-tdep.c: Likewise.
1581 * nat/linux-btrace.c: Likewise.
1582 * nat/linux-osdata.c: Likewise.
1583 * nat/linux-procfs.c: Likewise.
1584 * nat/linux-ptrace.c: Likewise.
1585 * nat/linux-waitpid.c: Likewise.
1586 * nbsd-tdep.c: Likewise.
1587 * nios2-linux-tdep.c: Likewise.
1588 * nto-procfs.c: Likewise.
1589 * nto-tdep.c: Likewise.
1590 * objc-lang.c: Likewise.
1591 * objfiles.c: Likewise.
1592 * opencl-lang.c: Likewise.
1593 * osabi.c: Likewise.
1594 * osdata.c: Likewise.
1595 * p-exp.y: Likewise.
1596 * p-lang.c: Likewise.
1597 * p-typeprint.c: Likewise.
1598 * parse.c: Likewise.
1599 * posix-hdep.c: Likewise.
1600 * ppc-linux-nat.c: Likewise.
1601 * ppc-sysv-tdep.c: Likewise.
1602 * ppcfbsd-tdep.c: Likewise.
1603 * ppcnbsd-tdep.c: Likewise.
1604 * ppcobsd-tdep.c: Likewise.
1605 * printcmd.c: Likewise.
1606 * procfs.c: Likewise.
1607 * prologue-value.c: Likewise.
1608 * python/py-auto-load.c: Likewise.
1609 * python/py-gdb-readline.c: Likewise.
1610 * ravenscar-thread.c: Likewise.
1611 * regcache.c: Likewise.
1612 * registry.c: Likewise.
1613 * remote-fileio.c: Likewise.
1614 * remote-m32r-sdi.c: Likewise.
1615 * remote-mips.c: Likewise.
1616 * remote-notif.c: Likewise.
1617 * remote-sim.c: Likewise.
1618 * remote.c: Likewise.
1619 * reverse.c: Likewise.
1620 * rs6000-aix-tdep.c: Likewise.
1621 * ser-base.c: Likewise.
1622 * ser-go32.c: Likewise.
1623 * ser-mingw.c: Likewise.
1624 * ser-pipe.c: Likewise.
1625 * ser-tcp.c: Likewise.
1626 * ser-unix.c: Likewise.
1627 * serial.c: Likewise.
1628 * sh-tdep.c: Likewise.
1629 * sh64-tdep.c: Likewise.
1630 * shnbsd-tdep.c: Likewise.
1631 * skip.c: Likewise.
1632 * sol-thread.c: Likewise.
1633 * solib-dsbt.c: Likewise.
1634 * solib-frv.c: Likewise.
1635 * solib-osf.c: Likewise.
1636 * solib-som.c: Likewise.
1637 * solib-spu.c: Likewise.
1638 * solib-target.c: Likewise.
1639 * solib.c: Likewise.
1640 * somread.c: Likewise.
1641 * source.c: Likewise.
1642 * sparc-nat.c: Likewise.
1643 * sparc-sol2-tdep.c: Likewise.
1644 * sparc-tdep.c: Likewise.
1645 * sparc64-tdep.c: Likewise.
1646 * sparc64fbsd-tdep.c: Likewise.
1647 * sparc64nbsd-tdep.c: Likewise.
1648 * sparcnbsd-tdep.c: Likewise.
1649 * spu-linux-nat.c: Likewise.
1650 * spu-multiarch.c: Likewise.
1651 * spu-tdep.c: Likewise.
1652 * stabsread.c: Likewise.
1653 * stack.c: Likewise.
1654 * std-regs.c: Likewise.
1655 * symfile.c: Likewise.
1656 * symmisc.c: Likewise.
1657 * symtab.c: Likewise.
1658 * target.c: Likewise.
1659 * thread.c: Likewise.
1660 * tilegx-linux-nat.c: Likewise.
1661 * tilegx-tdep.c: Likewise.
1662 * top.c: Likewise.
1663 * tracepoint.c: Likewise.
1664 * tui/tui-command.c: Likewise.
1665 * tui/tui-data.c: Likewise.
1666 * tui/tui-disasm.c: Likewise.
1667 * tui/tui-file.c: Likewise.
1668 * tui/tui-layout.c: Likewise.
1669 * tui/tui-out.c: Likewise.
1670 * tui/tui-regs.c: Likewise.
1671 * tui/tui-source.c: Likewise.
1672 * tui/tui-stack.c: Likewise.
1673 * tui/tui-win.c: Likewise.
1674 * tui/tui-windata.c: Likewise.
1675 * tui/tui-winsource.c: Likewise.
1676 * typeprint.c: Likewise.
1677 * ui-file.c: Likewise.
1678 * ui-out.c: Likewise.
1679 * user-regs.c: Likewise.
1680 * utils.c: Likewise.
1681 * v850-tdep.c: Likewise.
1682 * valarith.c: Likewise.
1683 * valops.c: Likewise.
1684 * valprint.c: Likewise.
1685 * value.c: Likewise.
1686 * varobj.c: Likewise.
1687 * vax-tdep.c: Likewise.
1688 * vaxnbsd-tdep.c: Likewise.
1689 * vaxobsd-tdep.c: Likewise.
1690 * windows-nat.c: Likewise.
1691 * xcoffread.c: Likewise.
1692 * xml-support.c: Likewise.
1693 * xstormy16-tdep.c: Likewise.
1694 * xtensa-linux-nat.c: Likewise.
1695
dccbb609
GB
16962014-08-07 Gary Benson <gbenson@redhat.com>
1697
1698 * common/common-defs.h: Include gdb_assert.h.
1699 * aarch64-tdep.c: Do not include gdb_assert.h.
1700 * addrmap.c: Likewise.
1701 * aix-thread.c: Likewise.
1702 * alpha-linux-tdep.c: Likewise.
1703 * alpha-mdebug-tdep.c: Likewise.
1704 * alphanbsd-tdep.c: Likewise.
1705 * amd64-nat.c: Likewise.
1706 * amd64-tdep.c: Likewise.
1707 * amd64bsd-nat.c: Likewise.
1708 * amd64fbsd-nat.c: Likewise.
1709 * amd64fbsd-tdep.c: Likewise.
1710 * amd64nbsd-nat.c: Likewise.
1711 * amd64nbsd-tdep.c: Likewise.
1712 * amd64obsd-nat.c: Likewise.
1713 * amd64obsd-tdep.c: Likewise.
1714 * arch-utils.c: Likewise.
1715 * arm-tdep.c: Likewise.
1716 * armbsd-tdep.c: Likewise.
1717 * auxv.c: Likewise.
1718 * bcache.c: Likewise.
1719 * bfin-tdep.c: Likewise.
1720 * blockframe.c: Likewise.
1721 * breakpoint.c: Likewise.
1722 * bsd-kvm.c: Likewise.
1723 * bsd-uthread.c: Likewise.
1724 * buildsym.c: Likewise.
1725 * c-exp.y: Likewise.
1726 * c-lang.c: Likewise.
1727 * charset.c: Likewise.
1728 * cleanups.c: Likewise.
1729 * cli-out.c: Likewise.
1730 * cli/cli-decode.c: Likewise.
1731 * cli/cli-dump.c: Likewise.
1732 * cli/cli-logging.c: Likewise.
1733 * cli/cli-script.c: Likewise.
1734 * cli/cli-utils.c: Likewise.
1735 * coffread.c: Likewise.
1736 * common/common-utils.c: Likewise.
1737 * common/queue.h: Likewise.
1738 * common/signals.c: Likewise.
1739 * common/vec.h: Likewise.
1740 * complaints.c: Likewise.
1741 * completer.c: Likewise.
1742 * corelow.c: Likewise.
1743 * cp-abi.c: Likewise.
1744 * cp-name-parser.y: Likewise.
1745 * cp-namespace.c: Likewise.
1746 * cp-support.c: Likewise.
1747 * cris-tdep.c: Likewise.
1748 * dbxread.c: Likewise.
1749 * dictionary.c: Likewise.
1750 * doublest.c: Likewise.
1751 * dsrec.c: Likewise.
1752 * dummy-frame.c: Likewise.
1753 * dwarf2-frame-tailcall.c: Likewise.
1754 * dwarf2-frame.c: Likewise.
1755 * dwarf2expr.c: Likewise.
1756 * dwarf2loc.c: Likewise.
1757 * dwarf2read.c: Likewise.
1758 * eval.c: Likewise.
1759 * event-loop.c: Likewise.
1760 * exceptions.c: Likewise.
1761 * expprint.c: Likewise.
1762 * f-valprint.c: Likewise.
1763 * fbsd-nat.c: Likewise.
1764 * findvar.c: Likewise.
1765 * frame-unwind.c: Likewise.
1766 * frame.c: Likewise.
1767 * frv-tdep.c: Likewise.
1768 * gcore.c: Likewise.
1769 * gdb-dlfcn.c: Likewise.
1770 * gdb_bfd.c: Likewise.
1771 * gdbarch.c: Likewise.
1772 * gdbarch.sh: Likewise.
1773 * gdbtypes.c: Likewise.
1774 * gnu-nat.c: Likewise.
1775 * gnu-v3-abi.c: Likewise.
1776 * go-lang.c: Likewise.
1777 * guile/scm-exception.c: Likewise.
1778 * guile/scm-gsmob.c: Likewise.
1779 * guile/scm-lazy-string.c: Likewise.
1780 * guile/scm-math.c: Likewise.
1781 * guile/scm-pretty-print.c: Likewise.
1782 * guile/scm-safe-call.c: Likewise.
1783 * guile/scm-utils.c: Likewise.
1784 * guile/scm-value.c: Likewise.
1785 * h8300-tdep.c: Likewise.
1786 * hppa-hpux-nat.c: Likewise.
1787 * hppa-tdep.c: Likewise.
1788 * hppanbsd-tdep.c: Likewise.
1789 * hppaobsd-tdep.c: Likewise.
1790 * i386-darwin-nat.c: Likewise.
1791 * i386-darwin-tdep.c: Likewise.
1792 * i386-nto-tdep.c: Likewise.
1793 * i386-tdep.c: Likewise.
1794 * i386bsd-nat.c: Likewise.
1795 * i386fbsd-tdep.c: Likewise.
1796 * i386gnu-nat.c: Likewise.
1797 * i386nbsd-tdep.c: Likewise.
1798 * i386obsd-tdep.c: Likewise.
1799 * i387-tdep.c: Likewise.
1800 * ia64-libunwind-tdep.c: Likewise.
1801 * ia64-tdep.c: Likewise.
1802 * inf-ptrace.c: Likewise.
1803 * inf-ttrace.c: Likewise.
1804 * infcall.c: Likewise.
1805 * infcmd.c: Likewise.
1806 * infrun.c: Likewise.
1807 * inline-frame.c: Likewise.
1808 * interps.c: Likewise.
1809 * jv-lang.c: Likewise.
1810 * jv-typeprint.c: Likewise.
1811 * linux-fork.c: Likewise.
1812 * linux-nat.c: Likewise.
1813 * linux-thread-db.c: Likewise.
1814 * m32c-tdep.c: Likewise.
1815 * m32r-linux-nat.c: Likewise.
1816 * m32r-tdep.c: Likewise.
1817 * m68k-tdep.c: Likewise.
1818 * m68kbsd-nat.c: Likewise.
1819 * m68kbsd-tdep.c: Likewise.
1820 * m88k-tdep.c: Likewise.
1821 * machoread.c: Likewise.
1822 * macroexp.c: Likewise.
1823 * macrotab.c: Likewise.
1824 * maint.c: Likewise.
1825 * mdebugread.c: Likewise.
1826 * memory-map.c: Likewise.
1827 * mep-tdep.c: Likewise.
1828 * mi/mi-common.c: Likewise.
1829 * microblaze-tdep.c: Likewise.
1830 * mingw-hdep.c: Likewise.
1831 * mips-linux-nat.c: Likewise.
1832 * mips-linux-tdep.c: Likewise.
1833 * mips-tdep.c: Likewise.
1834 * mips64obsd-tdep.c: Likewise.
1835 * mipsnbsd-tdep.c: Likewise.
1836 * mn10300-linux-tdep.c: Likewise.
1837 * mn10300-tdep.c: Likewise.
1838 * moxie-tdep.c: Likewise.
1839 * mt-tdep.c: Likewise.
1840 * nat/linux-btrace.c: Likewise.
1841 * nat/linux-osdata.c: Likewise.
1842 * nat/linux-ptrace.c: Likewise.
1843 * nat/mips-linux-watch.c: Likewise.
1844 * nios2-linux-tdep.c: Likewise.
1845 * nios2-tdep.c: Likewise.
1846 * objc-lang.c: Likewise.
1847 * objfiles.c: Likewise.
1848 * obsd-nat.c: Likewise.
1849 * opencl-lang.c: Likewise.
1850 * osabi.c: Likewise.
1851 * parse.c: Likewise.
1852 * ppc-linux-nat.c: Likewise.
1853 * ppc-sysv-tdep.c: Likewise.
1854 * ppcfbsd-nat.c: Likewise.
1855 * ppcfbsd-tdep.c: Likewise.
1856 * ppcnbsd-nat.c: Likewise.
1857 * ppcnbsd-tdep.c: Likewise.
1858 * ppcobsd-nat.c: Likewise.
1859 * ppcobsd-tdep.c: Likewise.
1860 * printcmd.c: Likewise.
1861 * procfs.c: Likewise.
1862 * prologue-value.c: Likewise.
1863 * psymtab.c: Likewise.
1864 * python/py-lazy-string.c: Likewise.
1865 * python/py-value.c: Likewise.
1866 * regcache.c: Likewise.
1867 * reggroups.c: Likewise.
1868 * registry.c: Likewise.
1869 * remote-sim.c: Likewise.
1870 * remote.c: Likewise.
1871 * rs6000-aix-tdep.c: Likewise.
1872 * rs6000-tdep.c: Likewise.
1873 * s390-linux-tdep.c: Likewise.
1874 * score-tdep.c: Likewise.
1875 * ser-base.c: Likewise.
1876 * ser-mingw.c: Likewise.
1877 * sh-tdep.c: Likewise.
1878 * sh64-tdep.c: Likewise.
1879 * solib-darwin.c: Likewise.
1880 * solib-spu.c: Likewise.
1881 * solib-svr4.c: Likewise.
1882 * source.c: Likewise.
1883 * sparc-nat.c: Likewise.
1884 * sparc-sol2-tdep.c: Likewise.
1885 * sparc-tdep.c: Likewise.
1886 * sparc64-sol2-tdep.c: Likewise.
1887 * sparc64-tdep.c: Likewise.
1888 * sparc64fbsd-tdep.c: Likewise.
1889 * sparc64nbsd-tdep.c: Likewise.
1890 * sparc64obsd-tdep.c: Likewise.
1891 * sparcnbsd-tdep.c: Likewise.
1892 * sparcobsd-tdep.c: Likewise.
1893 * spu-multiarch.c: Likewise.
1894 * spu-tdep.c: Likewise.
1895 * stabsread.c: Likewise.
1896 * stack.c: Likewise.
1897 * symfile.c: Likewise.
1898 * symtab.c: Likewise.
1899 * target-descriptions.c: Likewise.
1900 * target-memory.c: Likewise.
1901 * target.c: Likewise.
1902 * tic6x-linux-tdep.c: Likewise.
1903 * tic6x-tdep.c: Likewise.
1904 * tilegx-linux-nat.c: Likewise.
1905 * tilegx-tdep.c: Likewise.
1906 * top.c: Likewise.
1907 * tramp-frame.c: Likewise.
1908 * tui/tui-out.c: Likewise.
1909 * tui/tui-winsource.c: Likewise.
1910 * ui-out.c: Likewise.
1911 * user-regs.c: Likewise.
1912 * utils.c: Likewise.
1913 * v850-tdep.c: Likewise.
1914 * valops.c: Likewise.
1915 * value.c: Likewise.
1916 * varobj.c: Likewise.
1917 * vax-nat.c: Likewise.
1918 * xml-syscall.c: Likewise.
1919 * xml-tdesc.c: Likewise.
1920 * xstormy16-tdep.c: Likewise.
1921 * xtensa-linux-nat.c: Likewise.
1922 * xtensa-tdep.c: Likewise.
1923
e76df0d0
GB
19242014-08-07 Gary Benson <gbenson@redhat.com>
1925
1926 * common/common-defs.h: Include common-utils.h.
1927 * defs.h: Do not include common-utils.h.
1928 * common/gdb_assert.h: Likewise.
1929 * darwin-nat.h: Likewise.
1930 * nat/linux-btrace.c: Likewise.
1931 * target/waitstatus.h: Likewise.
1932
4cb9c816
GB
19332014-08-07 Gary Benson <gbenson@redhat.com>
1934
1935 * common/common-defs.h: Include ptid.h.
1936 * defs.h: Do not include ptid.h.
1937 * inferior.h: Likewise.
1938 * infrun.h: Likewise.
1939 * nat/linux-btrace.h: Likewise.
1940 * nat/linux-osdata.h: Likewise.
1941 * target/waitstatus.h: Likewise.
1942
3995eeee
GB
19432014-08-07 Gary Benson <gbenson@redhat.com>
1944
1945 * common/common-defs.h: Include gdb_locale.h.
1946 * defs.h: Do not include gdb_locale.h.
1947
cb9f1a9b
GB
19482014-08-07 Gary Benson <gbenson@redhat.com>
1949
1950 * common/common-defs.h: Include gdb/signals.h.
1951 * defs.h: Do not include gdb/signals.h.
1952
a5fceff8
GB
19532014-08-07 Gary Benson <gbenson@redhat.com>
1954
1955 * common/common-defs.h: Include pathmax.h.
1956 * defs.h: Do not include pathmax.h.
1957
b9391142
GB
19582014-08-07 Gary Benson <gbenson@redhat.com>
1959
1960 * common/common-defs.h: Include libiberty.h.
1961 * defs.h: Do not include libiberty.h.
1962 * common/queue.h: Likewise.
1963 * cp-name-parser.y: Likewise.
1964 * mi/mi-cmd-catch.c: Likewise.
1965 * python/python.c: Likewise.
1966
0e443c87
GB
19672014-08-07 Gary Benson <gbenson@redhat.com>
1968
1969 * common/common-defs.h: Include ansidecl.h.
1970 * defs.h: Do not include ansidecl.h.
1971 * common/buffer.h: Likewise.
1972 * common/common-utils.h: Likewise.
1973
8ebb3f56
GB
19742014-08-07 Gary Benson <gbenson@redhat.com>
1975
1976 * common/common-defs.h: Include stddef.h.
1977 * defs.h: Do not include stddef.h.
1978 * common/common-utils.h: Likewise.
1979 * amd64fbsd-nat.c: Likewise.
1980 * bcache.c: Likewise.
1981 * charset.c: Likewise.
1982 * common/buffer.h: Likewise.
1983 * common/vec.h: Likewise.
1984 * i386bsd-nat.c: Likewise.
1985 * nat/linux-btrace.h: Likewise.
1986 * ppcfbsd-nat.c: Likewise.
1987 * ppcnbsd-tdep.h: Likewise.
1988 * ppcobsd-nat.c: Likewise.
1989 * ppcobsd-tdep.h: Likewise.
1990 * python/py-gdb-readline.c: Likewise.
1991
8980bdf6
GB
19922014-08-07 Gary Benson <gbenson@redhat.com>
1993
1994 * common/common-defs.h: Include stdarg.h.
1995 * defs.h: Do not include stdarg.h.
1996 * ada-lang.c: Likewise.
1997 * common/common-utils.h: Likewise.
1998 * guile/scm-string.c: Likewise.
1999 * guile/scm-utils.c: Likewise.
2000 * m32c-tdep.c: Likewise.
2001
d7096f71
GB
20022014-08-07 Gary Benson <gbenson@redhat.com>
2003
2004 * common/common-defs.h: Include stdlib.h.
2005 * defs.h: Do not include stdlib.h.
2006 * addrmap.c: Likewise.
2007 * bcache.c: Likewise.
2008 * common/buffer.c: Likewise.
2009 * common/common-utils.c: Likewise.
2010 * cp-name-parser.y: Likewise.
2011 * go32-nat.c: Likewise.
2012 * mn10300-linux-tdep.c: Likewise.
2013 * nat/linux-osdata.c: Likewise.
2014 * tui/tui.c: Likewise.
2015 * windows-nat.c: Likewise.
2016
d02f550d
GB
20172014-08-07 Gary Benson <gbenson@redhat.com>
2018
2019 * common/common-defs.h: Include stdio.h.
2020 * defs.h: Do not include stdio.h.
2021 * ada-lang.c: Likewise.
2022 * common/buffer.c: Likewise.
2023 * common/common-utils.c: Likewise.
2024 * cp-name-parser.y: Likewise.
2025 * gnu-nat.c: Likewise.
2026 * go32-nat.c: Likewise.
2027 * i386gnu-nat.c: Likewise.
2028 * proc-api.c: Likewise.
2029 * proc-events.c: Likewise.
2030 * proc-flags.c: Likewise.
2031 * proc-why.c: Likewise.
2032 * python/python-internal.h: Likewise.
2033 * target-memory.c: Likewise.
2034 * tui/tui-io.c: Likewise.
2035 * tui/tui.c: Likewise.
2036
b6d7a4bf
SM
20372014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2038
2039 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2040 (scan_dyntag_auxv): Same.
2041
af19829b
YQ
20422014-08-06 Yao Qi <yao@codesourcery.com>
2043
2044 * amd64-linux-nat.c: Remove duplicated include
2045 "x86-linux-nat.h".
2046 * i386-linux-nat.c: Likewise.
2047
8e07a239
YQ
20482014-08-06 Yao Qi <yao@codesourcery.com>
2049
2050 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2051 operand" with "Special opcode" in comments.
2052
7bfe8241
GB
20532014-08-05 Gary Benson <gbenson@redhat.com>
2054
2055 * interps.c (initialize_interps): Remove prototype.
2056 (interpreter_initialized): Remove static global.
2057 (interp_add): Do not call initialize_interps.
2058 (initialize_interps): Remove function.
2059
d6c95504
GB
20602014-08-05 Gary Benson <gbenson@redhat.com>
2061
2062 * utils.c (vwarning): Remove spurious va_end.
2063
241fd515
AM
20642014-08-05 Alan Modra <amodra@gmail.com>
2065
2066 * charset.c (convert_between_encodings): Cast result of obstack_base.
2067 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2068 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2069 (read_unwind_info): Use size_t for some locals.
2070 * jit.c (finalize_symtab): Likewise.
2071 * utils.c (hashtab_obstack_allocate): Likewise.
2072 * symmisc.c (print_objfile_statistics): Update format strings.
2073
dc304a94
JK
20742014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2075
2076 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2077 (Changes in GDB 7.8): ... here.
2078
3cecbbbe
TT
20792014-08-04 Tom Tromey <tromey@redhat.com>
2080
2081 * target.c (set_targetdebug): New function.
2082 (initialize_targets): Pass set_targetdebug when creating "set
2083 debug target".
2084
6908c509
JB
20852014-08-01 Joel Brobecker <brobecker@adacore.com>
2086
2087 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2088 if detecting a variable-sized field that is not the last field.
2089 Fix struct type length computation.
2090
53e8f97d
JB
20912014-08-01 Joel Brobecker <brobecker@adacore.com>
2092
2093 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2094 Add debug trace.
2095
e068c55d
JB
20962014-08-01 Joel Brobecker <brobecker@adacore.com>
2097
2098 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2099 Remove "+ 8" offset in computation of CHAIN_VMA.
2100
4d4ca2a1
DE
21012014-07-31 Doug Evans <dje@google.com>
2102
2103 * inflow.c (child_terminal_inferior): Add comment.
2104 (child_terminal_ours_for_output): Add comment.
2105 (child_terminal_ours): Add comment.
2106 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2107 (linux_nat_terminal_ours): Add comment.
2108
462f517e
GB
21092014-07-31 Gary Benson <gbenson@redhat.com>
2110
2111 * common/btrace-common.h: Do not include defs.h or server.h.
2112 * nat/mips-linux-watch.h: Likewise.
2113 * gdb-dlfcn.h: Do not include defs.h.
2114 * tracefile.h: Likewise.
2115
74228e77
RM
21162014-07-30 Roland McGrath <mcgrathr@google.com>
2117
2118 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2119
014f9477
TT
21202014-07-30 Tom Tromey <tromey@redhat.com>
2121
2122 * bsd-kvm.c (bsd_kvm_open): Constify.
2123 * corelow.c (core_open): Constify.
2124 * ctf.c (ctf_open): Constify.
2125 * dbug-rom.c (dbug_open): Constify.
2126 * exec.c (exec_open): Constify.
2127 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2128 * microblaze-rom.c (picobug_open): Constify.
2129 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2130 Constify.
2131 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2132 * record-btrace.c (record_btrace_open): Constify.
2133 * record-full.c (record_full_core_open_1, record_full_open_1)
2134 (record_full_open): Constify.
2135 * remote-m32r-sdi.c (m32r_open): Constify.
2136 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2137 (rockhopper_open, lsi_open): Constify.
2138 * remote-sim.c (gdbsim_open): Constify.
2139 * remote.c (remote_open, extended_remote_open, remote_open_1):
2140 Constify.
2141 * target.h (struct target_ops) <to_open>: Make "arg" const.
2142 * tracefile-tfile.c (tfile_open): Constify.
2143
e799154c
TT
21442014-07-30 Tom Tromey <tromey@redhat.com>
2145
2146 * breakpoint.c (map_breakpoint_numbers): Update.
2147 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2148 (get_number_const): New function.
2149 (get_number): Rewrite using get_number_const.
2150 (init_number_or_range): Make "string" const.
2151 (number_is_in_list): Make "list" const.
2152 * cli/cli-utils.h (get_number_const): Declare.
2153 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2154 (init_number_or_range, number_is_in_list): Update.
2155 * printcmd.c (map_display_numbers): Update.
2156 * value.c (value_from_history_ref): Constify.
2157 * value.h (value_from_history_ref): Update.
2158
5f08566b
TT
21592014-07-30 Tom Tromey <tromey@redhat.com>
2160
2161 * corefile.c (hook_type, call_extra_exec_file_hooks)
2162 (specify_exec_file_hook): Constify.
2163 * exec.c (exec_file_attach): Make "filename" const.
2164 * gdbcore.h (deprecated_exec_file_display_hook)
2165 (specify_exec_file_hook, exec_file_attach): Constify.
2166 * main.c (captured_main): Use catch_command_errors_const.
2167
8981c758
TT
21682014-07-30 Tom Tromey <tromey@redhat.com>
2169
2170 * target.c (open_target): New function.
2171 (add_target_with_completer, add_deprecated_target_alias): Use
2172 set_cmd_sfunc, set_cmd_context.
2173 (debug_to_open): Remove.
2174 (setup_target_debug): Update.
2175
a1c7835a
YQ
21762014-07-30 Yao Qi <yao@codesourcery.com>
2177
2178 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2179 comments.
2180 * parse.c (exp_iterate): Update comments.
2181
976411d6
GB
21822014-07-30 Gary Benson <gbenson@redhat.com>
2183
2184 * common/common-defs.h: New file.
2185 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2186 * defs.h: Include common-defs.h.
2187 Do not include config.h or build-gnulib/config.h.
2188
5d4848a4
GB
21892014-07-30 Gary Benson <gbenson@redhat.com>
2190
2191 * common/common-utils.h: Do not include config.h.
2192 * nat/linux-btrace.h: Likewise.
2193
d41f6d8e
GB
21942014-07-30 Gary Benson <gbenson@redhat.com>
2195
2196 * btrace.c: Include defs.h.
2197 * common/ptid.c: Include defs.h or server.h as appropriate.
2198 * nat/mips-linux-watch.c: Likewise.
2199
84202f9c
TT
22002014-07-29 Tom Tromey <tromey@redhat.com>
2201
2202 * target.c (target_is_pushed): Simplify.
2203
2530441c
JB
22042014-07-29 Joel Brobecker <brobecker@adacore.com>
2205
2206 GDB 7.8 released.
2207
7e09a223
YQ
22082014-07-29 Yao Qi <yao@codesourcery.com>
2209
2210 PR gdb/17206
2211 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2212
7ebdbe92
DE
22132014-07-28 Doug Evans <xdje42@gmail.com>
2214
2215 PR guile/17203
2216 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2217 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2218 parameters.
2219
f347ffc9
WN
22202014-07-28 Will Newton <will.newton@linaro.org>
2221
2222 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2223 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2224 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2225 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2226 (THUMB2_EABI_SYSCALL): Likewise.
2227 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2228 struct tramp_frame.
2229 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2230 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2231
37c5f1f7
DE
22322014-07-27 Doug Evans <xdje42@gmail.com>
2233
2234 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2235
0c3abbc7
DE
22362014-07-27 Doug Evans <xdje42@gmail.com>
2237
2238 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2239
e76c5d17
DE
22402014-07-26 Ludovic Courtès <ludo@gnu.org>
2241 Doug Evans <xdje42@gmail.com>
2242
2243 PR guile/17146
2244 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2245 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2246 * configure.ac: Try to use guild to compile an scm file, if it fails
2247 then disable guile support.
2248 * configure: Regenerate.
2249 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2250 GUILE_FILE_LIST.
2251 (GUILE_COMPILED_FILES): New variable.
2252 (GUILE_FILES) Update.
2253 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2254 (stamp-guile): Compile scm files.
2255 * guile/guile.c (boot_guile_support): New function.
2256 (standard_throw_args_p): New function.
2257 (print_standard_throw_error, print_throw_error): New functions.
2258 (handle_boot_error): New function.
2259 (initialize_scheme_side): Rewrite to call boot_guile_support.
2260 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2261 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2262
186fcde0
DE
22632014-07-26 Ludovic Courtès <ludo@gnu.org>
2264 Doug Evans <xdje42@gmail.com>
2265
2266 PR guile/17146
2267 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2268 * guile/lib/gdb/support.scm: New file.
2269 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2270 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2271 All uses updated.
2272 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2273 All uses updated.
2274 (%assert-type): Ditto, and renamed to assert-type.
2275 (%exception-print-style): Delete.
2276
4df42755
DE
22772014-07-26 Doug Evans <xdje42@gmail.com>
2278
2279 PR build/17105
2280 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2281 * configure: Regenerate.
2282 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2283 PYTHON_FILES.
2284 (PYTHON_FILES): New variable.
2285 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2286 (GUILE_FILES): New variable.
2287 (stamp-python, install-python, uninstall-python): Handle empty
2288 file list.
2289 (stamp-guile, install-guile, uninstall-guile): Ditto.
2290
ee7333ae
DE
22912014-07-26 Doug Evans <xdje42@gmail.com>
2292
2293 PR guile/17177
2294 * guile/lib/gdb.scm (pretty-printers): Export.
2295 (set-pretty-printers!): Export.
2296 * guile/lib/gdb/printing.scm (gdb module): Update.
2297 (prepend-pretty-printer!, append-pretty-printer!): Update.
2298 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2299 (pretty_printer_list_var): Delete.
2300 (pretty_printer_list): New static global.
2301 (gdbscm_pretty_printers): New function.
2302 (gdbscm_set_pretty_printers_x): New function.
2303 (ppscm_find_pretty_printer_from_gdb): Update.
2304 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2305 (gdbscm_initialize_pretty_printers): Update.
2306
74edf516
DE
23072014-07-26 Doug Evans <xdje42@gmail.com>
2308
2309 PR 17185
2310 * configure.ac: Add check for header gc/gc.h.
2311 Add check for function setenv.
2312 * configure: Regenerate.
2313 * config.in: Regenerate.
2314 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2315
d54398a7
MR
23162014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2317
2318 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2319 variation in gdbarch matching.
2320
ab16fce8
TT
23212014-07-25 Tom Tromey <tromey@redhat.com>
2322
2323 * exec.c (using_exec_ops): Remove.
2324 (exec_close_1): Update. Remove extraneous block, reindent.
2325 (add_target_sections): Use target_is_pushed.
2326
88056fbb
PA
23272014-07-25 Pedro Alves <palves@redhat.com>
2328
2329 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2330 * monitor.c (monitor_create_inferior): Likewise.
2331 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2332 * remote-sim.c (gdbsim_create_inferior): Likewise.
2333 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2334 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2335 * windows-nat.c (do_initial_windows_stuff): Likewise.
2336
70509625
PA
23372014-07-25 Pedro Alves <palves@redhat.com>
2338
2339 * NEWS: Mention signal passing and "signal" command changes.
2340 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2341 comment.
2342 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2343 call.
2344 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2345 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2346 (jump_command): Adjust clear_proceed_status call.
2347 (signal_command): Warn if other thread that are resumed have
2348 signals that will be delivered. Adjust clear_proceed_status call.
2349 (until_next_command, finish_command)
2350 (proceed_after_attach_callback, attach_command_post_wait)
2351 (attach_command): Adjust clear_proceed_status call.
2352 * infrun.c (proceed_after_vfork_done): Likewise.
2353 (proceed_after_attach_callback): Adjust comment.
2354 (clear_proceed_status_thread): Clear stop_signal if not in pass
2355 state.
2356 (clear_proceed_status_callback): Delete.
2357 (clear_proceed_status): New 'step' parameter. Only clear the
2358 proceed status of threads the command being prepared is about to
2359 resume.
2360 (proceed): If passed in an explicit signal, override stop_signal
2361 with it. Don't pass the last stop signal to the thread we're
2362 resuming.
2363 (init_wait_for_inferior): Adjust clear_proceed_status call.
2364 (switch_back_to_stepped_thread): Clear the signal if it should not
2365 be passed.
2366 * infrun.h (clear_proceed_status): New 'step' parameter.
2367 (user_visible_resume_ptid): Add comment.
2368 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2369 signal is in pass state.
2370 * remote.c (append_pending_thread_resumptions): Likewise.
2371 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2372
d8be2939
TT
23732014-07-25 Tom Tromey <tromey@redhat.com>
2374
2375 * target.h (target_stopped_data_address)
2376 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2377 parentheses.
2378
7d0d9d2b
PL
23792014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2380
2381 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2382 comments.
2383 (avr_pointer_to_address): Likewise.
2384
e9e7f724
TT
23852014-07-24 Tom Tromey <tromey@redhat.com>
2386
2387 * monitor.c (compile_pattern): Update.
2388 * target.h (struct target_ops) <to_shortname, to_longname,
2389 to_doc>: Now const.
2390
1947513d
TT
23912014-07-24 Tom Tromey <tromey@redhat.com>
2392
2393 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2394 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2395 (add_info_alias, add_com): Make "doc" const.
2396 (print_doc_line): Make "str" const.
2397 (delete_cmd): Update.
2398 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2399 (print_doc_line): Update.
2400 * cli/cli-script.c (document_command): Update.
2401 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2402 (add_com, add_info, add_info_alias): Update.
2403 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2404 * python/py-cmd.c (cmdpy_destroyer): Update.
2405
64e61d29
TT
24062014-07-24 Tom Tromey <tromey@redhat.com>
2407
2408 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2409 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2410 (help_cmd_list): Constify.
2411 (lookup_cmd): Update.
2412 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2413 const.
2414 (help_cmd_list, apropos_cmd): Update.
2415 * cli/cli-script.c (show_user): Update.
2416 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2417 * cli/cli-setshow.h (cmd_show_list): Update.
2418 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2419 (cmd_show_list): Update.
2420 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2421 * python/py-cmd.c (cmdpy_destroyer): Update.
2422
429e55ea
TT
24232014-07-24 Tom Tromey <tromey@redhat.com>
2424
2425 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2426 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2427 const.
2428 * command.h (deprecate_cmd): Update.
2429 * maint.c (maintenance_do_deprecate): Add casts.
2430
64669f3b
TT
24312014-07-24 Tom Tromey <tromey@redhat.com>
2432
2433 * cli/cli-decode.c (help_cmd): Make parameter "const".
2434 * cli/cli-decode.h (help_cmd): Update.
2435
d3d3328b
TT
24362014-07-24 Tom Tromey <tromey@redhat.com>
2437
2438 * stack.c (up_silently_base, down_silently_base): Make argument
2439 const.
2440
414842dc
TT
24412014-07-24 Tom Tromey <tromey@redhat.com>
2442
2443 * solib.c (solib_add): Make "pattern" const.
2444 * solib.h (solib_add): Update.
2445
baa336ce
TT
24462014-07-24 Tom Tromey <tromey@redhat.com>
2447
2448 * remote.c (remote_serial_open, print_packet, putpkt)
2449 (putpkt_binary): Constify.
2450 * remote.h (putpkt): Update.
2451
5a19e2d0
TT
24522014-07-24 Tom Tromey <tromey@redhat.com>
2453
2454 * monitor.c (monitor_open): Make "args" const.
2455 * monitor.h (monitor_open): Update.
2456
fc4baa5e
TT
24572014-07-24 Tom Tromey <tromey@redhat.com>
2458
2459 * maint.c (match_bfd_flags): Make "string" const.
2460 (print_bfd_section_info): Remove casts.
2461 (print_objfile_section_info): Make "string" const.
2462
0d5f0dbe
TT
24632014-07-24 Tom Tromey <tromey@redhat.com>
2464
2465 * inf-child.c (inf_child_open_target): Make "arg" const.
2466 * inf-child.h (inf_child_open_target): Update.
2467
41c77899
TT
24682014-07-24 Tom Tromey <tromey@redhat.com>
2469
2470 * environ.c (unset_in_environ): Make "var" const.
2471 * environ.h (unset_in_environ): Update.
2472
93db0d79
TT
24732014-07-24 Tom Tromey <tromey@redhat.com>
2474
2475 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2476 Make "cmd" const.
2477 (scan_filename_with_cleanup): Likewise.
2478 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2479 Make arguments const.
2480 (restore_command): Update.
2481
36d6eb95
PA
24822014-07-24 Pedro Alves <palves@redhat.com>
2483
2484 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2485
8009206a
TT
24862014-07-24 Tom Tromey <tromey@redhat.com>
2487 Gary Benson <gbenson@redhat.com>
2488
2489 * nat/linux-ptrace.c (additional_flags): New global.
2490 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2491 additional_flags; don't check GDBSERVER.
2492 (linux_ptrace_set_additional_flags): New function.
2493 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2494 Declare.
2495 * linux-nat.c (_initialize_linux_nat): Call
2496 linux_ptrace_set_additional_flags.
2497
a7068b60
TT
24982014-07-24 Tom Tromey <tromey@redhat.com>
2499
2500 * make-target-delegates (munge_type, write_debugmethod): New
2501 functions.
2502 (debug_names): New global.
2503 ($TARGET_DEBUG_PRINTER): New global.
2504 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2505 name.
2506 Write debug methods. Generate init_debug_target.
2507 * target-debug.h: New file.
2508 * target-delegates.c: Rebuild.
2509 * target.c: Include target-debug.h.
2510 (debug_target): Hoist definition.
2511 (target_kill, target_get_section_table, target_memory_map)
2512 (target_flash_erase, target_flash_done, target_detach)
2513 (target_disconnect, target_wait, target_resume)
2514 (target_pass_signals, target_program_signals, target_follow_fork)
2515 (target_mourn_inferior, target_search_memory)
2516 (target_thread_address_space, target_close)
2517 (target_find_new_threads, target_core_of_thread)
2518 (target_verify_memory, target_insert_mask_watchpoint)
2519 (target_remove_mask_watchpoint): Remove targetdebug code.
2520 (debug_to_post_attach, debug_to_prepare_to_store)
2521 (debug_to_files_info, debug_to_insert_breakpoint)
2522 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2523 (debug_to_region_ok_for_hw_watchpoint)
2524 (debug_to_can_accel_watchpoint_condition)
2525 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2526 (debug_to_watchpoint_addr_within_range)
2527 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2528 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2529 (debug_to_terminal_init, debug_to_terminal_inferior)
2530 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2531 (debug_to_terminal_save_ours, debug_to_terminal_info)
2532 (debug_to_load, debug_to_post_startup_inferior)
2533 (debug_to_insert_fork_catchpoint)
2534 (debug_to_remove_fork_catchpoint)
2535 (debug_to_insert_vfork_catchpoint)
2536 (debug_to_remove_vfork_catchpoint)
2537 (debug_to_insert_exec_catchpoint)
2538 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2539 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2540 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2541 (setup_target_debug): Call init_debug_target.
2542 * target.h (TARGET_DEBUG_PRINTER): New macro.
2543 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2544 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2545
2c51604d
GB
25462014-07-24 Gary Benson <gbenson@redhat.com>
2547
2548 * exceptions.h (throw_vfatal): Renamed to...
2549 (throw_vquit): New declaration.
2550 (throw_quit): Likewise.
2551 * exceptions.c (throw_vfatal): Renamed to...
2552 (throw_vquit): New function.
2553 (throw_quit): Likewise.
2554 (throw_error): Call throw_verror rather than throw_it.
2555 * utils.h (vfatal): Removed.
2556 (fatal): Likewise.
2557 * utils.c (vfatal): Removed.
2558 (fatal): Likewise.
2559 (internal_verror): Replaced call to fatal with call to throw_quit.
2560 (quit): Replaced calls to fatal with calls to throw_quit.
2561
34211963
ME
25622014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2563
2564 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2565 target_read_code.
2566
a52b4d3e
ME
25672014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2568
2569 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2570 less than zero in conditional expression.
2571
a8bdc56b
TT
25722014-07-23 Tom Tromey <tromey@redhat.com>
2573
2574 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2575 ($INTRO_PART): Don't match whitespace.
2576 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2577 argument matching.
2578 ($METHOD): Add $METHOD_TRAILER.
2579 (trim): Rewrite.
2580 (scan_target_h): New sub.
2581 Change main loop not to collect state.
2582 * target-delegates.c: Rebuild.
2583
91b52240
GB
25842014-07-23 Gary Benson <gbenson@redhat.com>
2585
2586 * cp-support.c (gdb_demangle): Fix build on systems without
2587 sigaltstack.
2588
45326f6f
JK
25892014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2590
2591 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2592 for reference entry value target data value.
2593
e214cf6c
JK
25942014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2595
2596 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2597 value_available_contents_eq.
2598
bddbbedd
PA
25992014-07-22 Pedro Alves <palves@redhat.com>
2600
2601 * value.c (allocate_optimized_out_value): Don't mark value as
2602 non-lazy.
2603
45c71484
JW
26042014-07-22 Jiong Wang <jiong.wang@arm.com>
2605
2606 * MAINTAINERS (Write After Approval): Update my email address.
2607
9597b22a
DE
26082014-07-20 Doug Evans <dje@google.com>
2609
2610 PR server/17147
2611 * remote.c (putpkt_binary): Add text to error message.
2612
91101fe5
YQ
26132014-07-20 Yao Qi <yao@codesourcery.com>
2614
2615 * eval.c: Remove "Chill" from comments.
2616 * gdbtypes.h: Likewise.
2617 * symtab.h: Likewise.
2618
c9402c95
YQ
26192014-07-20 Yao Qi <yao@codesourcery.com>
2620
2621 * std-operator.def: Update comments to TERNOP_SLICE.
2622
ae8fddda
YQ
26232014-07-20 Yao Qi <yao@codesourcery.com>
2624
2625 * std-operator.def: Remove BINOP_RANGE.
2626 * breakpoint.c (watchpoint_exp_is_const): Update.
2627 * expprint.c (dump_subexp_body_standard): Likewise.
2628 * eval.c (init_array_element): Remove dead code.
2629 (evaluate_subexp_standard): Likewise.
2630
9c816640
YQ
26312014-07-20 Yao Qi <yao@codesourcery.com>
2632
2633 * std-operator.def: Remove BINOP_IN.
2634 * breakpoint.c (watchpoint_exp_is_const): Update.
2635 * eval.c (evaluate_subexp_standard): Likewise.
2636 * expprint.c (dump_subexp_body_standard): Likewise.
2637
164224e9
ME
26382014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2639
2640 * microblaze-tdep.c (microblaze_register_names): Add
2641 the rshr and rslr register names.
2642 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2643 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2644 Use of tdesc_numbered_register. Use of
2645 microblaze_register_g_packet_guesses. Use of
2646 tdesc_use_registers. Use of set_gdbarch_register_type.
2647 (microblaze_register_g_packet_guesses): New.
2648 * microblaze-tdep.h (microblaze_reg_num): Add
2649 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2650 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2651 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2652 * features/microblaze-core.xml: New file.
2653 * features/microblaze-stack-protect.xml: New file.
2654 * features/microblaze-with-stack-protect.c: New file.
2655 * features/microblaze-with-stack-protect.xml: New file.
2656 * features/microblaze.xml: New file.
2657 * features/microblaze.c: New file.
2658 * features/Makefile (microblaze-with-stack-protect): Add
2659 microblaze-with-stack-protect microblaze and microblaze-expedite.
2660 * regformats/microblaze-with-stack-protect.dat: New file.
2661 * regformats/microblaze.dat: New file.
2662 * doc/gdb.texinfo (MicroBlaze Features): Added.
2663
e8b2341c
TT
26642014-07-18 Tom Tromey <tromey@redhat.com>
2665
2666 * exec.c (exec_ops): Now static.
2667 * exec.h (exec_ops): Don't declare.
2668
44e89118
TT
26692014-07-18 Tom Tromey <tromey@redhat.com>
2670
2671 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2672 to find_target_beneath.
2673 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2674 find_target_beneath.
2675 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2676
b0ed115f
TT
26772014-07-18 Tom Tromey <tromey@redhat.com>
2678
2679 PR gdb/17130:
2680 * utils.c (quit): Use target_supports_terminal_ours.
2681 * target.h (target_supports_terminal_ours): Declare.
2682 * target.c (target_supports_delete_record): Don't check
2683 to_delete_record against NULL.
2684 (target_supports_terminal_ours): New function.
2685
e75fdfca
TT
26862014-07-18 Tom Tromey <tromey@redhat.com>
2687
2688 PR gdb/17130:
2689 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2690 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2691 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2692 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2693 * windows-nat.c (windows_xfer_partial): Always delegate.
2694 * record-btrace.c (record_btrace_xfer_partial): Simplify
2695 delegation.
2696 (record_btrace_fetch_registers, record_btrace_store_registers)
2697 (record_btrace_prepare_to_store, record_btrace_resume)
2698 (record_btrace_wait, record_btrace_find_new_threads)
2699 (record_btrace_thread_alive): Likewise.
2700 * procfs.c (procfs_xfer_partial): Always delegate.
2701 * corelow.c (core_xfer_partial): Always delegate.
2702 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2703
83814951
TT
27042014-07-18 Tom Tromey <tromey@redhat.com>
2705
2706 * exec.c (exec_make_note_section): Move earlier.
2707
b8b8facf
DE
27082014-07-17 Doug Evans <dje@google.com>
2709
74b49205 2710 PR gdb/17170
b8b8facf
DE
2711 * maint.c (count_symtabs_and_blocks): Handle NULL
2712 current_program_space.
2713 (report_command_stats): Check global enabled flag in addition to
2714 recorded enabled flag.
2715 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2716
69ff6be5
PA
27172014-07-16 Pedro Alves <palves@redhat.com>
2718
2719 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2720
252db1b5
TT
27212014-07-16 Tom Tromey <tromey@redhat.com>
2722
2723 * target.h (struct target_ops) <to_delete_record>: Reformat
2724 comment.
2725
a432721e
TT
27262014-07-16 Tom Tromey <tromey@redhat.com>
2727
2728 * target-delegates.c: Rebuild.
2729
487d9753
PL
27302014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2731
2732 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2733 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2734 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2735 (avr_pointer_to_address): Likewise.
2736 (avr_address_class_type_flags): New function.
2737 (avr_address_class_type_flags_to_name): Likewise.
2738 (avr_address_class_name_to_type_flags): Likewise.
2739 (avr_gdbarch_init): Set address_class_type_flags,
2740 address_class_type_flags_to_name and
2741 address_class_name_to_type_flags.
2742
57745c90
PA
27432014-07-15 Pedro Alves <palves@redhat.com>
2744
2745 * linux-nat.c (kill_callback): Save errno and work with saved
2746 copy.
2747
2d40be18
SM
27482014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2749
2750 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2751
572f6555
EBM
27522014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2753
2754 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2755 breakpoint support correctly.
2756
cc1c52ad
PA
27572014-07-14 Pedro Alves <palves@redhat.com>
2758
2759 * utils.c (prompt_for_continue): Call target_terminal_ours.
2760
1e973570
PA
27612014-07-14 Pedro Alves <palves@redhat.com>
2762
2763 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2764 catch_errors. Don't re-enable stdin or notify observers where,
2765 and rethrow error.
2766 (fetch_inferior_event_wrapper): Delete.
2767
93d6eb10
PA
27682014-07-14 Pedro Alves <palves@redhat.com>
2769
2770 PR gdb/17072
2771 * top.c: Include "inf-loop.h".
2772 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2773 field.
2774 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2775 was async before.
2776 (gdb_readline_wrapper): Store whether the target is async, and
2777 make it sync.
2778
0017922d
PA
27792014-07-14 Pedro Alves <palves@redhat.com>
2780
2781 PR gdb/17072
2782 * top.c (gdb_readline_wrapper_line): Tweak comment.
2783 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2784 the input handler callback.
2785
94696ad3
PA
27862014-07-14 Pedro Alves <palves@redhat.com>
2787
2788 PR gdb/17072
2789 * main.c: Include event-top.h.
2790 (handle_command_errors): New function.
2791 (catch_command_errors, catch_command_errors_const): Use it.
2792
9d1e69a2
PA
27932014-07-14 Pedro Alves <palves@redhat.com>
2794
2795 * exceptions.c (catch_command_errors, catch_command_errors_const):
2796 Moved to main.c.
2797 * exceptions.h (catch_command_errors_ftype)
2798 (catch_command_errors_const_ftype): Moved to main.c.
2799 (catch_command_errors, catch_command_errors_const): Delete
2800 declarations.
2801 * main.c (catch_command_errors_ftype)
2802 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2803 (catch_command_errors, catch_command_errors_const)): Moved here
2804 from exceptions.c and make static.
2805
feefc97b
PA
28062014-07-14 Pedro Alves <palves@redhat.com>
2807
2808 * exceptions.c (print_any_exception): Delete.
2809 (catch_exceptions_with_msg): Use exception_print instead of
2810 print_any_exception.
2811 (catch_errors): Use exception_fprintf instead of
2812 print_any_exception.
2813 (catch_command_errors, catch_command_errors_const): Use
2814 exception_print instead of print_any_exception.
2815
c933f875
PA
28162014-07-14 Pedro Alves <palves@redhat.com>
2817
2818 * infcall.c (run_inferior_call): Set 'sync_execution' while
2819 running the inferior call.
2820
feb6f816
PA
28212014-07-14 Pedro Alves <palves@redhat.com>
2822
2823 * value.c (value_contents_equal): Delete function.
2824 * value.h (value_contents_equal): Delete declaration.
2825
d98b7a16
TT
28262014-07-14 Tom Tromey <tromey@redhat.com>
2827
2828 PR exp/17106:
2829 * gdbtypes.c (is_dynamic_type_internal): New function, from
2830 is_dynamic_type.
2831 (is_dynamic_type): Rewrite.
2832 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2833 (resolve_dynamic_struct): Likewise.
2834 (resolve_dynamic_type_internal): New function, from
2835 resolve_dynamic_type.
2836 (resolve_dynamic_type): Rewrite.
2837
548740d6
TT
28382014-07-14 Tom Tromey <tromey@redhat.com>
2839
2840 * target.c (target_require_runnable): Also check record_stratum.
2841 Update comment.
2842
808f7ab1
YQ
28432014-07-11 Yao Qi <yao@codesourcery.com>
2844
2845 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2846 thumb_instruction_restores_sp return true.
2847
540314bd
YQ
28482014-07-11 Yao Qi <yao@codesourcery.com>
2849
2850 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2851 (thumb_in_function_epilogue_p): Call
2852 thumb_instruction_restores_sp.
2853
1db01f22
YQ
28542014-07-11 Yao Qi <yao@codesourcery.com>
2855
2856 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2857 'add sp, #imm'.
2858 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2859
3116063b
GB
28602014-07-11 Gary Benson <gbenson@redhat.com>
2861
2862 * amd64-linux-nat.c (gdbcore.h): Remove include.
2863 (regset.h): Likewise.
2864 (nat/linux-btrace.h): Likewise.
2865 (btrace.h): Likewise.
2866 (gdb_assert.h): Likewise.
2867 (string.h): Likewise.
2868 (sys/uio.h): Likewise.
2869 (sys/debugreg.h): Likewise.
2870 (sys/syscall.h): Likewise.
2871 (sys/procfs.h): Likewise.
2872 (sys/user.h): Likewise.
2873 (asm/ptrace.h): Likewise.
2874 (i386-nat.h): Likewise.
2875 * i386-linux-nat.c (i386-nat.h): Likewise.
2876 (regset.h): Likewise.
2877 (target.h): Likewise.
2878 (linux-nat.h): Likewise.
2879 (nat/linux-btrace.h): Likewise.
2880 (btrace.h): Likewise.
2881 (gdb_assert.h): Likewise.
2882 (string.h): Likewise.
2883 (sys/uio.h): Likewise.
2884 (sys/user.h): Likewise.
2885 (sys/procfs.h): Likewise.
2886 (sys/reg.h): Likewise.
2887 (sys/debugreg.h): Likewise.
2888 (ORIG_EAX): Remove definition.
2889
040baaf6
GB
28902014-07-11 Gary Benson <gbenson@redhat.com>
2891
2892 * i386-linux-nat.h: New file.
2893 * x86-linux-nat.h: Likewise.
2894 * x86-linux-nat.c: Likewise.
2895 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2896 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2897 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2898 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2899 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2900 (PTRACE_SETREGSET): Likewise.
2901 (arch_lwp_info): Now in x86-linux-nat.c.
2902 (have_ptrace_getregset): Now in x86-linux-nat.h.
2903 (x86_linux_dr_get): Now in x86-linux-nat.c.
2904 (x86_linux_dr_set): Likewise.
2905 (x86_linux_dr_get_addr): Likewise.
2906 (x86_linux_dr_get_control): Likewise.
2907 (x86_linux_dr_get_status): Likewise.
2908 (update_debug_registers_callback): Likewise.
2909 (x86_linux_dr_set_control): Likewise.
2910 (x86_linux_dr_set_addr): Likewise.
2911 (x86_linux_prepare_to_resume): Likewise.
2912 (x86_linux_new_thread): Likewise.
2913 (x86_linux_new_fork): Likewise.
2914 (x86_linux_get_thread_area): Likewise.
2915 (super_post_startup_inferior): Likewise.
2916 (x86_linux_child_post_startup_inferior): Likewise.
2917 (AMD64_LINUX_USER64_CS): Likewise.
2918 (AMD64_LINUX_X32_DS): Likewise.
2919 (x86_linux_read_description): Likewise.
2920 (x86_linux_enable_btrace): Likewise.
2921 (x86_linux_disable_btrace): Likewise.
2922 (x86_linux_teardown_btrace): Likewise.
2923 (x86_linux_read_btrace): Likewise.
2924 (x86_linux_create_target): Likewise.
2925 (x86_linux_add_target): Likewise.
2926 * i386-linux-nat.c (x86-linux-nat.h): New include.
2927 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2928 (PTRACE_SETREGSET): Likewise.
2929 (arch_lwp_info): Now in x86-linux-nat.c.
2930 (have_ptrace_getregset): Now in x86-linux-nat.h.
2931 (x86_linux_dr_get): Now in x86-linux-nat.c.
2932 (x86_linux_dr_set): Likewise.
2933 (x86_linux_dr_get_addr): Likewise.
2934 (x86_linux_dr_get_control): Likewise.
2935 (x86_linux_dr_get_status): Likewise.
2936 (update_debug_registers_callback): Likewise.
2937 (x86_linux_dr_set_control): Likewise.
2938 (x86_linux_dr_set_addr): Likewise.
2939 (x86_linux_prepare_to_resume): Likewise.
2940 (x86_linux_new_thread): Likewise.
2941 (x86_linux_new_fork): Likewise.
2942 (x86_linux_get_thread_area): Likewise.
2943 (super_post_startup_inferior): Likewise.
2944 (x86_linux_child_post_startup_inferior): Likewise.
2945 (AMD64_LINUX_USER64_CS): Likewise.
2946 (AMD64_LINUX_X32_DS): Likewise.
2947 (x86_linux_read_description): Likewise.
2948 (x86_linux_enable_btrace): Likewise.
2949 (x86_linux_disable_btrace): Likewise.
2950 (x86_linux_teardown_btrace): Likewise.
2951 (x86_linux_read_btrace): Likewise.
2952 (x86_linux_create_target): Likewise.
2953 (x86_linux_add_target): Likewise.
2954
1aa7e42c
GB
29552014-07-11 Gary Benson <gbenson@redhat.com>
2956
2957 * amd64-linux-nat.c: Comment and whitespace changes.
2958 * i386-linux-nat.c: Comment and whitespace changes.
2959
c1e246a0
GB
29602014-07-11 Gary Benson <gbenson@redhat.com>
2961
2962 * amd64-linux-nat.c (x86_linux_create_target): New function.
2963 (x86_linux_add_target): Likewise.
2964 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2965 * i386-linux-nat.c (x86_linux_create_target): New function.
2966 (x86_linux_add_target): Likewise.
2967 (_initialize_i386_linux_nat): Delegate to the above new functions.
2968
8c420b8d
GB
29692014-07-11 Gary Benson <gbenson@redhat.com>
2970
2971 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2972 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2973 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2974 (ps_get_thread_area): Delegate to the above.
2975
cb1da100
GB
29762014-07-11 Gary Benson <gbenson@redhat.com>
2977
2978 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2979 x86_linux_read_description. All uses updated. amd64-specific
2980 code conditionalized. Conditionalized i386-specific code added.
2981 Redundant cast removed.
2982 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2983 x86_linux_read_description. All uses updated. i386-specific
2984 code conditionalized. Conditionalized amd64-specific code added.
2985 One sizeof replaced with the actual type it is describing.
2986
2acf3cd0
GB
29872014-07-11 Gary Benson <gbenson@redhat.com>
2988
2989 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2990 x86_linux_dr_get. All uses updated.
2991 (amd64_linux_dr_set): Renamed to
2992 x86_linux_dr_set. All uses updated.
2993 (amd64_linux_dr_get_addr): Renamed to
2994 x86_linux_dr_get_addr. All uses updated.
2995 (amd64_linux_dr_get_control): Renamed to
2996 x86_linux_dr_get_control. All uses updated.
2997 (amd64_linux_dr_get_status): Renamed to
2998 x86_linux_dr_get_status. All uses updated.
2999 (amd64_linux_dr_set_control): Renamed to
3000 x86_linux_dr_set_control. All uses updated.
3001 (amd64_linux_dr_set_addr): Renamed to
3002 x86_linux_dr_set_addr. All uses updated.
3003 (amd64_linux_prepare_to_resume): Renamed to
3004 x86_linux_prepare_to_resume. All uses updated.
3005 (amd64_linux_new_thread): Renamed to
3006 x86_linux_new_thread. All uses updated.
3007 (amd64_linux_new_fork): Renamed to
3008 x86_linux_new_fork. All uses updated.
3009 (amd64_linux_child_post_startup_inferior): Renamed to
3010 x86_linux_child_post_startup_inferior. All uses updated.
3011 (amd64_linux_enable_btrace): Renamed to
3012 x86_linux_enable_btrace. All uses updated.
3013 (amd64_linux_disable_btrace): Renamed to
3014 x86_linux_disable_btrace. All uses updated.
3015 (amd64_linux_teardown_btrace): Renamed to
3016 x86_linux_teardown_btrace. All uses updated.
3017 (amd64_linux_read_btrace): Renamed to
3018 x86_linux_read_btrace. All uses updated.
3019 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3020 x86_linux_dr_get. All uses updated.
3021 (i386_linux_dr_set): Renamed to
3022 x86_linux_dr_set. All uses updated.
3023 (i386_linux_dr_get_addr): Renamed to
3024 x86_linux_dr_get_addr. All uses updated.
3025 (i386_linux_dr_get_control): Renamed to
3026 x86_linux_dr_get_control. All uses updated.
3027 (i386_linux_dr_get_status): Renamed to
3028 x86_linux_dr_get_status. All uses updated.
3029 (i386_linux_dr_set_control): Renamed to
3030 x86_linux_dr_set_control. All uses updated.
3031 (i386_linux_dr_set_addr): Renamed to
3032 x86_linux_dr_set_addr. All uses updated.
3033 (i386_linux_prepare_to_resume): Renamed to
3034 x86_linux_prepare_to_resume. All uses updated.
3035 (i386_linux_new_thread): Renamed to
3036 x86_linux_new_thread. All uses updated.
3037 (i386_linux_new_fork): Renamed to
3038 x86_linux_new_fork. All uses updated.
3039 (i386_linux_child_post_startup_inferior): Renamed to
3040 x86_linux_child_post_startup_inferior. All uses updated.
3041 (i386_linux_enable_btrace): Renamed to
3042 x86_linux_enable_btrace. All uses updated.
3043 (i386_linux_disable_btrace): Renamed to
3044 x86_linux_disable_btrace. All uses updated.
3045 (i386_linux_teardown_btrace): Renamed to
3046 x86_linux_teardown_btrace. All uses updated.
3047 (i386_linux_read_btrace): Renamed to
3048 x86_linux_read_btrace. All uses updated.
3049
b9c1d481
AS
30502014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3051
3052 * remote.c (extended_remote_post_attach): New function.
3053 (init_extended_remote_ops): Install it as to_post_attach method.
3054
7180e04a
PA
30552014-07-09 Pedro Alves <palves@redhat.com>
3056
3057 * infcmd.c (attach_command_post_wait): Don't call
3058 target_terminal_inferior here.
3059 (attach_command): Call it here instead.
3060
9a9a7608
AB
30612014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3062
3063 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3064 field.
3065 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3066 from varobj.c, with additional checks.
3067 (c_varobj_ops): Fill in is_path_expr_parent field.
3068 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3069 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3070 field.
3071 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3072 ops method.
3073 (varobj_default_is_path_expr_parent): New function.
3074 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3075 (varobj_default_is_path_expr_parent): Declare new function.
3076
1f267ae3
MM
30772014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3078
3079 * infcmd.c (finish_backward): Turn internal error into normal error.
3080
b2ee242b
PA
30812014-07-07 Pedro Alves <palves@redhat.com>
3082
8a869bca 3083 PR gdb/17096
b2ee242b
PA
3084 * remote.c (async_handle_remote_sigint)
3085 (async_handle_remote_sigint_twice): Call
3086 gdb_call_async_signal_handler instead of
3087 mark_async_signal_handler.
3088
38e229b2
TT
30892014-07-07 Tom Tromey <tromey@redhat.com>
3090
3091 * target-delegates.c: Rebuild.
3092 * target.c (target_info_record): Remove.
3093 * record.c (info_record_command): Unconditionally call
3094 to_info_record.
3095 * target.h (struct target_ops) <to_info_record>: Use
3096 TARGET_DEFAULT_IGNORE.
3097 (target_info_record): Remove.
3098
f0f9ff95
TT
30992014-07-07 Tom Tromey <tromey@redhat.com>
3100
3101 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3102 TARGET_DEFAULT_NORETURN.
3103 * target.c (generic_tls_error): New function.
3104 (target_translate_tls_address): Don't search target stack.
3105 * target-delegates.c: Rebuild.
3106 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3107 stack.
3108 * linux-thread-db.c (thread_db_get_thread_local_address):
3109 Unconditionally call beneath target.
3110
4a5be5ee
MK
31112014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3112
3113 * cli/cli-logging.c (pop_output_files): Assign targerr to
3114 gdb_stdtargerr.
3115
92c3b204
AB
31162014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3117
3118 * MAINTAINERS (Write After Approval): Update my email address.
3119
9b11e3a7
GB
31202014-07-02 Gary Benson <gbenson@redhat.com>
3121
3122 * proc-service.c (ps_xfer_memory): Update comment.
3123 (ps_pstop): Remove unused function.
3124 (ps_pcontinue): Likewise.
3125 (ps_lstop): Likewise.
3126 (ps_lcontinue): Likewise.
3127 (ps_lgetxregsize): Likewise.
3128 (ps_lgetxregs): Likewise.
3129 (ps_lsetxregs): Likewise.
3130 (ps_plog): Likewise.
3131 (ps_ptread): Likewise.
3132 (ps_ptwrite): Likewise.
3133
cf363f18
MW
31342014-07-01 Mark Wielaard <mjw@redhat.com>
3135
3136 * dwarf2read.c (add_array_cv_type): New function.
3137 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3138 (read_tag_volatile_type): Likewise.
3139
82ae6c8d
TT
31402014-07-01 Tom Tromey <tromey@redhat.com>
3141
3142 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3143 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3144 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3145 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3146 * command.h (cmd_cfunc_ftype): Move earlier.
3147 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3148 (add_com, add_info): Use cmd_cfunc_ftype.
3149
96142726
TT
31502014-06-30 Tom Tromey <tromey@redhat.com>
3151
3152 * symtab.c (operator_chars): Make parameters and return type
3153 const.
3154 (file_matches): Make "files" const.
3155 (struct search_symbols_data) <files>: Now const.
3156 (search_symbols): Make "regexp" and "files" parameters const.
3157 Update.
3158 (symtab_symbol_info): Remove cast.
3159 (rbreak_command): Update.
3160 * symtab.h (search_symbols): Update.
3161
b67a2c6f
YQ
31622014-06-27 Yao Qi <yao@codesourcery.com>
3163
3164 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3165 Change parameter type to 'struct thread_info *'. Caller
3166 updated.
3167 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3168 Update declaration.
3169 * dummy-frame.c (struct dummy_frame_id): New.
3170 (dummy_frame_id_eq): New function.
3171 (struct dummy_frame) <id>: Change its type to 'struct
3172 dummy_frame_id'.
3173 (dummy_frame_push): Add parameter ptid and save it in
3174 dummy_frame_id.
3175 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3176 inferior_ptid.
3177 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3178 to inferior_ptid.
3179 (lookup_dummy_frame): Change parameter type to 'struct
3180 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3181 instead of frame_id_eq.
3182 (dummy_frame_pop): Add parameter ptid. Callers updated.
3183 Update comments. Compose dummy_frame_id and pass it to
3184 lookup_dummy_frame.
3185 (dummy_frame_discard): Add parameter ptid.
3186 (dummy_frame_sniffer): Compose dummy_frame_id and call
3187 dummy_frame_id_eq instead of frame_id_eq.
3188 (fprint_dummy_frames): Print ptid.
3189 * dummy-frame.h: Remove comments.
3190 (dummy_frame_push): Add ptid in declaration.
3191 (dummy_frame_pop, dummy_frame_discard): Likewise.
3192
5b10184c
TT
31932014-06-26 Tom Tromey <tromey@redhat.com>
3194
3195 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3196 * command.h (error_no_arg): Update.
3197
06900326
TT
31982014-06-26 Tom Tromey <tromey@redhat.com>
3199
3200 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3201 (do_show_command): Make "arg" const.
3202 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3203
c2bcbb1d
TT
32042014-06-26 Tom Tromey <tromey@redhat.com>
3205
3206 * record-full.c (record_full_get_bookmark): Make "args" const.
3207 (record_full_goto_bookmark): Make "raw_bookmark" const.
3208 * record.c (record_goto): New function.
3209 (cmd_record_goto): Use it. Now static.
3210 * record.h (record_goto): Declare.
3211 (cmd_record_goto): Remove declaration.
3212 * target-delegates.c: Rebuild.
3213 * target.h (struct target_ops) <to_get_bookmark,
3214 to_goto_bookmark>: Make parameter const.
3215
9cbe5fff
TT
32162014-06-26 Tom Tromey <tromey@redhat.com>
3217
3218 * defs.h (generic_load): Update.
3219 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3220 * monitor.c (monitor_load): Make "args" const.
3221 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3222 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3223 const.
3224 (mips_load): Make "file" const.
3225 * remote-sim.c (gdbsim_load): Make "args" const.
3226 * remote.c (remote_load): Make "name" const.
3227 * symfile.c (generic_load): Make "args" const.
3228 * target-delegates.c: Rebuild.
3229 * target.c (target_load): Make "arg" const.
3230 (debug_to_load): Make "args" const.
3231 * target.h (struct target_ops) <to_load>: Make parameter const.
3232 (target_load): Update.
3233
34a68019
TT
32342014-06-26 Tom Tromey <tromey@redhat.com>
3235
3236 PR symtab/16902:
3237 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3238 (dwarf2_physname, read_partial_die)
3239 (guess_partial_die_structure_name, fixup_partial_die)
3240 (guess_full_die_structure_name, anonymous_struct_prefix)
3241 (dwarf2_name): Use per-BFD obstack.
3242
efc889c1
YQ
32432014-06-26 Yao Qi <yao@codesourcery.com>
3244
3245 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3246 dummyframe and this_id into inner block below.
3247
4395285e
YQ
32482014-06-26 Yao Qi <yao@codesourcery.com>
3249
3250 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3251 with "signal_pass[0]" in the initialization of signal_pass.
3252
aef92902
MM
32532014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3254
3255 * record-btrace.c (record_btrace_generating_corefile)
3256 (record_btrace_prepare_to_generate_core)
3257 (record_btrace_done_generating_core): New.
3258 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3259 (record_btrace_store_registers, record_btrace_prepare_to_store):
3260 Forward request when generating a core file.
3261 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3262 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3263 to_done_generating_core.
3264
5fff78c4
MM
32652014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3266
3267 * target.h (target_ops) <to_prepare_to_generate_core>
3268 <to_done_generating_core>: New.
3269 (target_prepare_to_generate_core, target_done_generating_core): New.
3270 * target.c (target_prepare_to_generate_core)
3271 (target_done_generating_core): New.
3272 * target-delegates.c: Regenerate.
3273 * gcore.c: (write_gcore_file): Rename to ...
3274 (write_gcore_file_1): ...this.
3275 (write_gcore_file): Call target_prepare_to_generate_core
3276 and target_done_generating_core.
3277
1d1f1ccb
MM
32782014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3279
3280 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3281 * gcore.c (write_gcore_file): Free memory returned from
3282 make_corefile_notes.
3283 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3284 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3285
3343ef86
YQ
32862014-06-24 Yao Qi <yao@codesourcery.com>
3287
3288 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3289 (arm_linux_init_abi): Set skip_trampoline_code with
3290 gdbarch_skip_trampoline_code instead of
3291 find_solib_trampoline_target.
3292
18d18ac8
YQ
32932014-06-24 Yao Qi <yao@codesourcery.com>
3294
3295 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3296 arm_skip_bx_reg returns non-zero.
3297
80d8d390
YQ
32982014-06-24 Yao Qi <yao@codesourcery.com>
3299
3300 * arm-tdep.c (arm_skip_bx_reg): New function.
3301 (arm_skip_stub): Call arm_skip_bx_reg.
3302
6a18a01c
DB
33032014-06-23 Don Breazeal <donb@codesourcery.com>
3304
3305 * MAINTAINERS: Add myself as write-after-approval maintainer.
3306
8e9db26e
PA
33072014-06-23 Pedro Alves <palves@redhat.com>
3308
3309 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3310 DR_CONTROL before setting DR0..DR3.
3311 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3312 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3313 bits of DR_CONTROL related to the debug register slot being
3314 disabled. If all slots are vacant, clear local slowdown as well,
3315 and assert DR_CONTROL is 0.
3316
70afc5b7
SC
33172014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3318
3319 * python/lib/gdb/command/xmethods.py
3320 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3321 current progspace only if the string "progspace" matches LOCUS_RE.
3322
840ed64d
JK
33232014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3324
3325 Fix --with-system-readline with readline-6.3 patch 5.
3326 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3327 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3328 types.
3329
26f2dc30
TT
33302014-06-20 Tom Tromey <tromey@redhat.com>
3331
3332 * dwarf2read.c (dw2_get_real_path): Use correct type in
3333 OBSTACK_CALLOC.
3334 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3335
125f8a3d
GB
33362014-06-20 Gary Benson <gbenson@redhat.com>
3337
3338 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3339 * common/glibc_thread_db.h: Likewise.
3340 * common/i386-cpuid.h: Likewise.
3341 * common/i386-gcc-cpuid.h: Likewise.
3342 * common/linux-btrace.h: Likewise.
3343 * common/linux-osdata.h: Likewise.
3344 * common/linux-procfs.h: Likewise.
3345 * common/linux-ptrace.h: Likewise.
3346 * common/mips-linux-watch.h: Likewise.
3347 * common/linux-btrace.c: Moved to nat.
3348 * common/linux-osdata.c: Likewise.
3349 * common/linux-procfs.c: Likewise.
3350 * common/linux-ptrace.c: Likewise.
3351 * common/mips-linux-watch.c: Likewise.
3352 * nat/gdb_thread_db.h: Moved from common.
3353 * nat/glibc_thread_db.h: Likewise.
3354 * nat/i386-cpuid.h: Likewise.
3355 * nat/i386-gcc-cpuid.h: Likewise.
3356 * nat/linux-btrace.c: Likewise.
3357 * nat/linux-btrace.h: Likewise.
3358 * nat/linux-osdata.c: Likewise.
3359 * nat/linux-osdata.h: Likewise.
3360 * nat/linux-procfs.c: Likewise.
3361 * nat/linux-procfs.h: Likewise.
3362 * nat/linux-ptrace.c: Likewise.
3363 * nat/linux-ptrace.h: Likewise.
3364 * nat/mips-linux-watch.c: Likewise.
3365 * nat/mips-linux-watch.h: Likewise.
3366 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3367 (object file files): Reordered.
3368 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3369 of glibc_thread_db.h.
3370
42995dbd
GB
33712014-06-20 Gary Benson <gbenson@redhat.com>
3372
3373 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3374 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3375 (i386_dr_low): Likewise.
3376 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3377 (i386_dr_low_set_addr): Likewise.
3378 (i386_dr_low_get_addr): Likewise.
3379 (i386_dr_low_can_set_control): Likewise.
3380 (i386_dr_low_set_control): Likewise.
3381 (i386_dr_low_get_control): Likewise.
3382 (i386_dr_low_get_status): Likewise.
3383 (i386_get_debug_register_length): Likewise.
3384 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3385 (i386_dr_low): Likewise.
3386 * nat/i386-dregs.c (i386-low.h): Remove include.
3387 (i386-nat.h): Likewise.
3388 (nat/i386-dregs.h): New include.
3389 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3390 (i386_dr_low_set_addr): Likewise.
3391 (i386_dr_low_get_addr): Likewise.
3392 (i386_dr_low_can_set_control): Likewise.
3393 (i386_dr_low_set_control): Likewise.
3394 (i386_dr_low_get_control): Likewise.
3395 (i386_dr_low_get_status): Likewise.
3396 (i386_get_debug_register_length): Likewise.
3397 (debug_hw_points): Likewise.
3398
3ed9baed
IB
33992014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3400
3401 * Makefile.in (SFILES): Add d-exp.y.
3402 (YYFILES): Add d-exp.c.
3403 (YYOBJ): Add d-exp.o.
3404 (local-maintainer-clean): Delete d-exp.c.
3405 * d-exp.y: New file.
3406 * d-lang.h (d_parse): New declaration.
3407 (d_error): New declaration.
3408 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3409 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3410 PREC_ORDER operators.
3411 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3412
78c164b0
YQ
34132014-06-19 Yao Qi <yao@codesourcery.com>
3414
3415 * gdbthread.h (any_running): Remove the declaration.
3416 * thread.c (any_running): Remove.
3417
f6e29b6e
YQ
34182014-06-19 Yao Qi <yao@codesourcery.com>
3419
3420 * gdbthread.h (struct thread_info) <state>: Change its type to
3421 'enum thread_state'. Update comments.
3422
034f788c
PA
34232014-06-19 Pedro Alves <palves@redhat.com>
3424
3425 * gdbthread.h (ALL_THREADS): Delete.
3426 (ALL_NON_EXITED_THREADS): New macro.
3427 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3428 instead of ALL_THREADS.
3429 * infrun.c (find_thread_needs_step_over)
3430 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3431 instead of ALL_THREADS.
3432 * record-btrace.c (record_btrace_open)
3433 (record_btrace_stop_recording, record_btrace_close)
3434 (record_btrace_is_replaying, record_btrace_resume)
3435 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3436 * remote.c (append_pending_thread_resumptions): Likewise.
3437 * thread.c (thread_apply_all_command): Likewise.
3438
46e33252
GB
34392014-06-19 Gary Benson <gbenson@redhat.com>
3440
3441 * i386-nat.c (i386_stopped_by_watchpoint):
3442 Use i386_dr_stopped_by_watchpoint.
3443 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3444 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3445
3a8ee006
GB
34462014-06-19 Gary Benson <gbenson@redhat.com>
3447
3448 * nat/i386-dregs.c: New file.
3449 * Makefile.in (i386-dregs.o): New rule.
3450 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3451 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3452 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3453 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3454 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3455 * config/i386/go32.mh (NATDEPFILES): Likewise.
3456 * config/i386/linux.mh (NATDEPFILES): Likewise.
3457 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3458 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3459 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3460 * i386-nat.h (debug_hw_points): New declaration.
3461 * i386-nat.c (breakpoint.h): Remove include.
3462 (command.h): Likewise.
3463 (target.h): Likewise.
3464 (gdb_assert.h): Likewise.
3465 (debug_hw_points): Made nonstatic.
3466 (debug_printf): Now in i386-dregs.c.
3467 (TARGET_HAS_DR_LEN_8): Likewise.
3468 (DR_CONTROL_SHIFT): Likewise.
3469 (DR_CONTROL_SIZE): Likewise.
3470 (DR_RW_EXECUTE): Likewise.
3471 (DR_RW_WRITE): Likewise.
3472 (DR_RW_READ): Likewise.
3473 (DR_RW_IORW): Likewise.
3474 (DR_LEN_1): Likewise.
3475 (DR_LEN_2): Likewise.
3476 (DR_LEN_4): Likewise.
3477 (DR_LEN_8): Likewise.
3478 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3479 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3480 (DR_ENABLE_SIZE): Likewise.
3481 (DR_LOCAL_SLOWDOWN): Likewise.
3482 (DR_GLOBAL_SLOWDOWN): Likewise.
3483 (DR_CONTROL_RESERVED): Likewise.
3484 (I386_DR_CONTROL_MASK): Likewise.
3485 (I386_DR_VACANT): Likewise.
3486 (I386_DR_LOCAL_ENABLE): Likewise.
3487 (I386_DR_GLOBAL_ENABLE): Likewise.
3488 (I386_DR_DISABLE): Likewise.
3489 (I386_DR_SET_RW_LEN): Likewise.
3490 (I386_DR_GET_RW_LEN): Likewise.
3491 (I386_DR_WATCH_HIT): Likewise.
3492 (i386_wp_op_t): Likewise.
3493 (i386_show_dr): Likewise.
3494 (i386_length_and_rw_bits): Likewise.
3495 (i386_insert_aligned_watchpoint): Likewise.
3496 (i386_remove_aligned_watchpoint): Likewise.
3497 (i386_handle_nonaligned_watchpoint): Likewise.
3498 (i386_update_inferior_debug_regs): Likewise.
3499 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3500 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3501 (i386_region_ok_for_watchpoint):
3502 Use i386_dr_region_ok_for_watchpoint.
3503 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3504
322a8e06
GB
35052014-06-19 Gary Benson <gbenson@redhat.com>
3506
3507 * i386-nat.c (i386_insert_hw_breakpoint): Use
3508 i386_insert_watchpoint.
3509 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3510
8f26655c
GB
35112014-06-19 Gary Benson <gbenson@redhat.com>
3512
3513 * i386-nat.c (i386_dr_show): Renamed to
3514 i386_show_dr and made static. All uses updated.
3515 (i386_dr_length_and_rw_bits): Renamed to
3516 i386_length_and_rw_bits and made static.
3517 All uses updated.
3518 (i386_dr_insert_aligned_watchpoint): Renamed to
3519 i386_insert_aligned_watchpoint and made static.
3520 All uses updated.
3521 (i386_dr_remove_aligned_watchpoint): Renamed to
3522 i386_remove_aligned_watchpoint and made static.
3523 All uses updated.
3524 (i386_dr_update_inferior_debug_regs): Renamed to
3525 i386_update_inferior_debug_regs and made static.
3526 All uses updated.
3527 * nat/i386-dregs.h (i386_dr_show): Removed.
3528 (i386_dr_length_and_rw_bits): Likewise.
3529 (i386_dr_insert_aligned_watchpoint): Likewise.
3530 (i386_dr_remove_aligned_watchpoint): Likewise.
3531 (i386_dr_update_inferior_debug_regs): Likewise.
3532
992c7d70
GB
35332014-06-19 Gary Benson <gbenson@redhat.com>
3534
3535 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3536 * configure: Regenerate.
3537 * config.in: Likewise.
3538 * main.c (signal.h): New include.
3539 (setup_alternate_signal_stack): New function.
3540 (captured_main): Call the above.
3541 * cp-support.c (signal.h): New include.
3542 (catch_demangler_crashes): New flag.
3543 (SIGJMP_BUF): New define.
3544 (SIGSETJMP): Likewise.
3545 (SIGLONGJMP): Likewise.
3546 (gdb_demangle_jmp_buf): New static global.
3547 (gdb_demangle_attempt_core_dump): Likewise.
3548 (gdb_demangle_signal_handler): New function.
3549 (gdb_demangle): If catch_demangler_crashes is set, install the
3550 above signal handler before calling bfd_demangle, and restore
3551 the original signal handler afterwards. Display the offending
3552 symbol and call demangler_warning the first time a segmentation
3553 fault is caught.
3554 (_initialize_cp_support): New maint set/show command.
3555
eae7090b
GB
35562014-06-19 Gary Benson <gbenson@redhat.com>
3557
3558 * utils.h (resource_limit_kind): New enum.
3559 (can_dump_core): New declaration.
3560 (warn_cant_dump_core): Likewise.
3561 (dump_core): Likewise.
3562 * utils.c (dump_core): Made nonstatic. Added new
3563 parameter "limit_kind".
3564 (can_dump_core): Made nonstatic. Moved printing code to...
3565 (warn_cant_dump_core): New function.
3566 (can_dump_core_warn): Likewise.
3567 (internal_vproblem): Replace calls to can_dump_core with
3568 calls to can_dump_core_warn. Supply new argument to each.
3569
57fcfb1b
GB
35702014-06-19 Gary Benson <gbenson@redhat.com>
3571
3572 * utils.h (demangler_vwarning): New declaration.
3573 (demangler_warning): Likewise.
3574 * utils.c (struct internal_problem)
3575 <user_settable_should_quit>: New field.
3576 <user_settable_should_dump_core>: Likewise
3577 (internal_error_problem): Add values for above new fields.
3578 (internal_warning_problem): Likewise.
3579 (demangler_warning_problem): New static global.
3580 (demangler_vwarning): New function.
3581 (demangler_warning): Likewise.
3582 (add_internal_problem_command): Selectively add commands.
3583 (_initialize_utils): New internal problem command.
3584 * maint.c (maintenance_demangler_warning): New function.
3585 (_initialize_maint_cmds): New command.
3586
17a40b44
TT
35872014-06-18 Tom Tromey <tromey@redhat.com>
3588
3589 * f-valprint.c (info_common_command_for_block): Update.
3590 * symtab.h (struct general_symbol_info) <common_block>: Now
3591 const.
3592
346d1dfe
TT
35932014-06-18 Tom Tromey <tromey@redhat.com>
3594
3595 * symtab.h (struct symtab) <blockvector>: Now const.
3596 * ada-lang.c (ada_add_global_exceptions): Update.
3597 * buildsym.c (augment_type_symtab): Update.
3598 * dwarf2read.c (dw2_lookup_symbol): Update.
3599 * jit.c (finalize_symtab): Update.
3600 * jv-lang.c (add_class_symtab_symbol): Update.
3601 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3602 Update.
3603 * objfiles.c (objfile_relocate1): Update.
3604 * psymtab.c (lookup_symbol_aux_psymtabs)
3605 (maintenance_check_psymtabs): Update.
3606 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3607 Update.
3608 * spu-tdep.c (spu_catch_start): Update.
3609 * symmisc.c (dump_symtab_1): Update.
3610 * symtab.c (lookup_global_symbol_from_objfile)
3611 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3612 (basic_lookup_transparent_type_quick)
3613 (basic_lookup_transparent_type, find_pc_sect_symtab)
3614 (find_pc_sect_line, search_symbols): Update.
3615 * block.c (find_block_in_blockvector): Make "bl" const.
3616 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3617 const.
3618 (blockvector_contains_pc): Make "bv" const.
3619 (block_for_pc_sect): Update.
3620 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3621 (blockvector_contains_pc): Update.
3622 * breakpoint.c (resolve_sal_pc): Update.
3623 * inline-frame.c (block_starting_point_at): Update.
3624
1834676b
TT
36252014-06-18 Tom Tromey <tromey@redhat.com>
3626
3627 * completer.c (complete_line): Make "line_buffer" const.
3628 * completer.h (complete_line): Update.
3629
ac1a991b
TT
36302014-06-18 Tom Tromey <tromey@redhat.com>
3631
3632 * symtab.c (add_macro_name): Remove unneeded cast.
3633
5bc98e52
TT
36342014-06-18 Tom Tromey <tromey@redhat.com>
3635
3636 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3637 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3638
8236def8
TT
36392014-06-18 Tom Tromey <tromey@redhat.com>
3640
3641 * probe.c (info_probes_for_ops): Make "arg" const.
3642 * probe.h (info_probes_for_ops): Update.
3643
3977b71f
TT
36442014-06-18 Tom Tromey <tromey@redhat.com>
3645
3646 * varobj.c (varobj_create): Update.
3647 * valops.c (value_of_this): Update.
3648 * tracepoint.c (add_local_symbols, scope_info): Update.
3649 * symtab.h (struct general_symbol_info) <block>: Now const.
3650 * symtab.c (skip_prologue_sal)
3651 (default_make_symbol_completion_list_break_on)
3652 (skip_prologue_using_sal): Update.
3653 * stack.h (iterate_over_block_locals)
3654 (iterate_over_block_local_vars): Update.
3655 * stack.c (print_frame_args): Update.
3656 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3657 parameter const.
3658 (get_selected_block): Make return type const.
3659 * python/py-frame.c (frapy_block): Update.
3660 * python/py-block.c (gdbpy_block_for_pc): Update.
3661 * p-exp.y (%union) <bval>: Now const.
3662 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3663 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3664 * m2-exp.y (%union) <bval>: Now const.
3665 * linespec.c (get_current_search_block): Make return type const.
3666 (create_sals_line_offset, find_label_symbols): Update.
3667 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3668 Update.
3669 (block_starting_point_at): Make "block" const.
3670 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3671 (check_exception_resume): Update.
3672 * guile/scm-frame.c (gdbscm_frame_block): Update.
3673 * guile/scm-block.c (gdbscm_lookup_block): Update.
3674 * frame.h (get_frame_block): Update.
3675 (get_selected_block): Make return type const.
3676 * frame.c (frame_id_inner): Update.
3677 * f-valprint.c (info_common_command_for_block)
3678 (info_common_command): Update.
3679 * dwarf2loc.c (dwarf2_find_location_expression)
3680 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3681 (locexpr_describe_location_piece): Update.
3682 * c-exp.y (%union) <bval>: Now const.
3683 * breakpoint.c (resolve_sal_pc): Update.
3684 * blockframe.c (get_frame_block):Make return type const.
3685 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3686 (block_innermost_frame): Update.
3687 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3688 (block_for_pc, block_for_pc_sect): Update.
3689 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3690 'pblock' const.
3691 (block_for_pc_sect, block_for_pc): Make return type const.
3692 * ax-gdb.c (gen_expr): Update.
3693 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3694 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3695 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3696 (ada_read_var_value): Update.
3697 * ada-exp.y (struct name_info) <block>: Now const.
3698 (%union): Likewise.
3699 (block_lookup): Constify.
3700
b9228891
GB
37012014-06-18 Gary Benson <gbenson@redhat.com>
3702
3703 * nat/i386-dregs.h: New file.
3704 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3705 * i386-nat.h (i386-dregs.h): New include.
3706 (DR_FIRSTADDR): Now in i386-dregs.h.
3707 (DR_LASTADDR): Likewise.
3708 (DR_NADDR): Likewise.
3709 (DR_STATUS): Likewise.
3710 (DR_CONTROL): Likewise.
3711 (i386_debug_reg_state): Likewise.
3712 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3713
a1aa2221
LM
37142014-06-18 Don Breazeal <donb@codesourcery.com>
3715
3716 * breakpoint.c (set_longjmp_breakpoint): Call
3717 momentary_breakpoint_from_master with additional argument.
3718 (set_longjmp_breakpoint_for_call_dummy): Call
3719 momentary_breakpoint_from_master with additional argument.
3720 (set_std_terminate_breakpoint): Call
3721 momentary_breakpoint_from_master with additional argument.
3722 (momentary_breakpoint_from_master): Add argument to function
3723 definition and use it to initialize structure member flag.
74228e77 3724 (clone_momentary_breakpoint): Call
a1aa2221
LM
3725 momentary_breakpoint_from_master with additional argument.
3726 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3727 member flags set in momentary_breakpoint_from_master.
3728
4be83cc2
GB
37292014-06-18 Gary Benson <gbenson@redhat.com>
3730
3731 * i386-nat.c (i386_show_dr): Renamed to
3732 i386_dr_show and made nonstatic. All uses updated.
3733 (i386_length_and_rw_bits): Renamed to
3734 i386_dr_length_and_rw_bits and made nonstatic.
3735 All uses updated.
3736 (i386_insert_aligned_watchpoint): Renamed to
3737 i386_dr_insert_aligned_watchpoint and made nonstatic.
3738 All uses updated.
3739 (i386_remove_aligned_watchpoint): Renamed to
3740 i386_dr_remove_aligned_watchpoint and made nonstatic.
3741 All uses updated.
3742 (i386_update_inferior_debug_regs): Renamed to
3743 i386_dr_update_inferior_debug_regs and made nonstatic.
3744 All uses updated.
3745
131aa0d4
GB
37462014-06-18 Gary Benson <gbenson@redhat.com>
3747
3748 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3749 (i386_dr_low_can_set_control): Likewise.
3750 (i386_dr_low_set_addr): Likewise.
3751 (i386_dr_low_set_control): Likewise.
3752 (i386_dr_low_get_addr): Likewise.
3753 (i386_dr_low_get_status): Likewise.
3754 (i386_dr_low_get_control): Likewise.
3755 (i386_insert_aligned_watchpoint): Use new macros.
3756 (i386_update_inferior_debug_regs): Likewise.
3757 (i386_stopped_data_address): Likewise.
3758
d9305f7f
GB
37592014-06-18 Gary Benson <gbenson@redhat.com>
3760
3761 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3762 New parameter. All uses updated.
3763
ea008da4
GB
37642014-06-18 Gary Benson <gbenson@redhat.com>
3765
3766 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3767 All uses updated.
3768
1b6d4134
GB
37692014-06-18 Gary Benson <gbenson@redhat.com>
3770
3771 * i386-nat.c (debug_printf): New macro.
3772 (i386_get_debug_register_length): Likewise.
3773 (TARGET_HAS_DR_LEN_8): Use above macro.
3774 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3775 and printf_unfiltered. Use phex to format values.
3776
9b4550ef
GB
37772014-06-18 Gary Benson <gbenson@redhat.com>
3778
3779 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3780 Make const.
3781
6e62758f
GB
37822014-06-18 Gary Benson <gbenson@redhat.com>
3783
3784 * i386-nat.c: Comment changes.
3785
51c79e94
GB
37862014-06-18 Gary Benson <gbenson@redhat.com>
3787
3788 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3789
3e11889a
GB
37902014-06-18 Gary Benson <gbenson@redhat.com>
3791
3792 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3793 (i386_insert_aligned_watchpoint): Likewise.
3794 (i386_remove_aligned_watchpoint): Likewise.
3795 (i386_handle_nonaligned_watchpoint): Likewise.
3796
fc6e2f03
GB
37972014-06-18 Gary Benson <gbenson@redhat.com>
3798
3799 * i386-nat.c: Whitespace changes.
3800
2afe7d50
SB
38012014-06-17 Samuel Bronson <naesten@gmail.com>
3802
3803 * MAINTAINERS: Update Roland McGrath's email address.
3804 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3805 Red Hat a while ago, and giving me a current address.
2afe7d50 3806
3bca49ee
TT
38072014-06-17 Tom Tromey <tromey@redhat.com>
3808
3809 * utils.h (savestring): Remove declaration.
3810
6e366df1
TT
38112014-06-17 Tom Tromey <tromey@redhat.com>
3812
3813 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3814
6be47f0c
KS
38152014-06-16 Keith Seitz <keiths@redhat.com>
3816
3817 PR mi/15863
3818 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3819 to update the varobj if inferior_ptid is null_ptid.
3820
7bc112c1
TT
38212014-06-16 Tom Tromey <tromey@redhat.com>
3822
3823 * target.h (struct target_ops) <to_info_proc>: Make parameter
3824 const.
3825 (target_info_proc): Update.
3826 * target.c (target_info_proc): Make "args" const.
3827 * procfs.c (procfs_info_proc): Update.
3828 * linux-tdep.c (linux_info_proc): Update.
3829 (linux_core_info_proc_mappings): Make "args" const.
3830 (linux_core_info_proc): Update.
3831 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3832 * gdbarch.c: Rebuild.
3833 * gdbarch.h: Rebuild.
3834 * corelow.c (core_info_proc): Update.
3835
fee354ee
TT
38362014-06-16 Tom Tromey <tromey@redhat.com>
3837
3838 * target.h (struct target_ops) <to_disconnect>: Make parameter
3839 const.
3840 (target_disconnect): Update.
3841 * target.c (target_disconnect): Make "args" const.
3842 * target-delegates.c: Rebuild.
3843 * remote.c (remote_disconnect): Update.
3844 * record.h (record_disconnect): Update.
3845 * record.c (record_disconnect): Update.
3846 * inf-child.c (inf_child_disconnect): Update.
3847
a30bf1f1
TT
38482014-06-16 Tom Tromey <tromey@redhat.com>
3849
3850 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3851 * target.c (debug_to_rcmd, default_rcmd): Update.
3852 * target-delegates.c: Rebuild.
3853 * remote.c (remote_rcmd): Update.
3854 * monitor.c (monitor_rcmd): Update.
3855
d03de421
PA
38562014-06-16 Pedro Alves <palves@redhat.com>
3857
3858 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3859 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3860 have OBJF_SHARED set.
3861 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3862 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3863 instead of OBJF_USERLOADED.
3864 * objfiles.h (OBJF_SHARED): Update comment.
3865 (userloaded_objfile_contains_address_p): Rename to ...
3866 (shared_objfile_contains_address_p): ... this, and update
3867 comments.
3868 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3869 new objfile.
3870 (remove_symbol_file_command): Skip objfiles that don't have
3871 OBJF_SHARED set.
3872
99f4262f
TT
38732014-06-16 Tom Tromey <tromey@redhat.com>
3874
3875 * minsyms.h (prim_record_minimal_symbol)
3876 (prim_record_minimal_symbol_and_info): Update comments.
3877
97d66cc6
EZ
38782014-06-14 Eli Zaretskii <eliz@gnu.org>
3879
3880 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3881 or --without-guile, according to how GDB was built.
3882
635c7e8a
TT
38832014-06-13 Tom Tromey <tromey@redhat.com>
3884
3885 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3886 to help_list.
3887 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3888 to help_list.
3889 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3890 help_list.
3891 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3892 help_list.Pass all_commands, not -1, to help_list.
3893 * cli/cli-dump.c (dump_command, append_command)
3894 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3895 (binary_dump_command, binary_append_command): Pass all_commands,
3896 not -1, to help_list.
3897 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3898 -1, to help_list.
3899 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3900 -1, to help_list.
3901 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3902 help_list.
3903 * top.c (set_history): Pass all_commands, not -1, to help_list.
3904 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3905 all_commands, not -1, to help_list.
3906 * symfile.c (overlay_command): Pass all_commands, not -1, to
3907 help_list.
3908 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3909 help_list.
3910 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3911 help_list.
3912 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3913 -1, to help_list.
3914 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3915 not -1, to help_list.
3916 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3917 not -1, to help_list.
3918 * maint.c (maintenance_command, maintenance_info_command)
3919 (maintenance_print_command, maintenance_set_cmd): Pass
3920 all_commands, not -1, to help_list.
3921 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3922 help_list.
3923 * language.c (set_check): Pass all_commands, not -1, to help_list.
3924 * infcmd.c (unset_command): Pass all_commands, not -1, to
3925 help_list.
3926 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3927 help_list.
3928 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3929 help_list.
3930 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3931 help_list.
3932 * breakpoint.c (save_command): Pass all_commands, not -1, to
3933 help_list.
3934 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3935 all_commands, not -1, to help_list.
3936
b94ade42
PL
39372014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3938
3939 * regcache.c (struct register_to_invalidate): New structure.
3940 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3941 functions.
3942 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3943
31f628ae
YQ
39442014-06-12 Yao Qi <yao@codesourcery.com>
3945
3946 * varobj.c (varobj_get_num_children): Call
3947 varobj_is_dynamic_p.
3948 (varobj_list_children): Likewise.
3949 (varobj_update): Likewise. Update comments.
3950
cde5ef40
YQ
39512014-06-12 Yao Qi <yao@codesourcery.com>
3952
3953 * varobj.c (varobj_pretty_printed_p): Rename to ...
3954 (varobj_is_dynamic_p): ... this. New function.
3955 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3956 (varobj_is_dynamic_p): Declare.
3957 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3958 (mi_print_value_p, varobj_update_one): Likewise.
3959
576ea091
YQ
39602014-06-12 Pedro Alves <pedro@codesourcery.com>
3961 Yao Qi <yao@codesourcery.com>
3962
3963 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3964 (varobj_get_iterator): Wrap up code for pretty-printer by
3965 "#if HAVE_PYTHON" and "#endif".
3966 (update_dynamic_varobj_children): Likewise.
3967
827f100c
YQ
39682014-06-12 Pedro Alves <pedro@codesourcery.com>
3969 Yao Qi <yao@codesourcery.com>
3970
3971 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3972 gdb_python_initialized is false. Move some code from varobj.c.
3973 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3974 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3975 (struct varobj_item): Moved to varobj-iter.h".
3976 (varobj_clear_saved_item): New function.
3977 (update_dynamic_varobj_children): Move python-related code to
3978 py-varobj.c.
3979 (free_variable): Call varobj_clear_saved_item and
3980 varobj_iter_delete.
3981
e5250216
YQ
39822014-06-12 Pedro Alves <pedro@codesourcery.com>
3983 Yao Qi <yao@codesourcery.com>
3984
3985 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3986 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3987 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3988 (py-varobj.o): New rule.
3989 * python/py-varobj.c: New file.
3990 * python/python-internal.h (py_varobj_get_iterator): Declare.
3991 * varobj-iter.h: New file.
3992 * varobj.c: Include "varobj-iter.h"
3993 (struct varobj) <child_iter>: Change its type from "PyObject *"
3994 to "struct varobj_iter *".
3995 <saved_item>: Likewise.
3996 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3997 [HAVE_PYTHON] (varobj_get_iterator): New function.
3998 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3999 python-specific code to python/py-varobj.c.
4000 (install_visualizer): Call varobj_iter_delete instead of
4001 Py_XDECREF.
4002 * varobj.h (varobj_ensure_python_env): Declare.
4003
5a2e0d6e
YQ
40042014-06-12 Yao Qi <yao@codesourcery.com>
4005
4006 * varobj.c (struct varobj_item): New structure.
4007 (create_child_with_value): Update declaration.
4008 (varobj_add_child): Replace arguments 'name' and 'value' with
4009 'item'. All callers updated.
4010 (install_dynamic_child): Likewise.
4011 (update_dynamic_varobj_children): Likewise.
4012 (varobj_add_child): Likewise.
4013 (create_child_with_value): Likewise.
4014
919b9a93
JB
40152014-06-11 Joel Brobecker <brobecker@adacore.com>
4016
4017 * NEWS: Create a new section for the next release branch.
4018 Rename the section of the current branch, now that it has
4019 been cut.
4020
71a55bdf
JB
40212014-06-11 Joel Brobecker <brobecker@adacore.com>
4022
4023 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4024 * version.in: Bump version to 7.8.50.DATE-cvs.
4025
364fe1f7
PA
40262014-06-11 Pedro Alves <palves@redhat.com>
4027
4028 PR remote/17028
4029 * ser-mingw.c (net_windows_socket_check_pending): New function.
4030 (net_windows_select_thread): Ignore spurious wakeups. Use
4031 net_windows_socket_check_pending.
4032 (net_windows_wait_handle): Check for pending events with
4033 ioctlsocket, through net_windows_socket_check_pending, instead of
4034 checking the socket's event.
4035
5a6c7709
SC
40362014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4037
4038 * python/python-internal.h (gdb_PyObject_GetAttrString)
4039 (gdb_PyObject_HasAttrString): New inline function definitions.
4040 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4041 char * of the second argument to PyObject_GetAttrString.
74228e77 4042
0e58ee40
JB
40432014-06-10 Joel Brobecker <brobecker@adacore.com>
4044
4045 * serial.c (serial_write): Fix index of character to be printed
4046 in call to serial_logchar when serial debug traces are enabled.
4047
d190df30
JB
40482014-06-10 Joel Brobecker <brobecker@adacore.com>
4049
4050 * gdbtypes (resolve_dynamic_range): Add function description.
4051
b4b01d36
PA
40522014-06-09 Pedro Alves <palves@redhat.com>
4053
4054 * linux-nat.c (linux_child_follow_fork): Initialize status with
4055 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4056 inner block. Only pass the signal to PTRACE_DETACH if in pass
4057 state.
4058
3657956b
GB
40592014-06-09 Gary Benson <gbenson@redhat.com>
4060
4061 * common/signals.c (gdb_signal_from_host): Reorder to separate
4062 the always-available ANSI-standard signals from the signals that
4063 require checking.
4064 (do_gdb_signal_to_host): Likewise.
4065 * proc-events.c (signal_table): Likewise.
4066
c077881a
HZ
40672014-06-08 Hui Zhu <hui@codesourcery.com>
4068
4069 * common/linux-ptrace.c (linux_disable_event_reporting): New
4070 function.
4071 * common/linux-ptrace.h (linux_disable_event_reporting): New
4072 declaration.
4073 * linux-nat.c (linux_child_follow_fork): Do a single step before
4074 detach.
4075
4186eb54
KS
40762014-06-07 Keith Seitz <keiths@redhat.com>
4077
4078 Revert:
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
25326a28 41132014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4114
4115 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4116 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4117 (gdbscm_guile_version_is_at_least): Declare.
4118 (gdbscm_scm_string_to_int): Declare.
4119 * guile/guile.c (gdbscm_guile_major_version): New global.
4120 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4121 (guile_datadir): New static global.
4122 (gdbscm_guile_data_directory): New function.
4123 (initialize_scheme_side): Update.
4124 (misc_guile_functions): Add guile-data-directory.
4125 (initialize_gdb_module): Fetch guile version number.
4126 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4127 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4128 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4129 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4130 comments.
4131 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4132 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4133 * guile/scm-value.c (gdbscm_value_to_string): Only call
4134 scm_port_conversion_strategy if Guile version >= 2.0.6.
4135
0a770bb2 41362014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4137
4138 * main.c (print_gdb_help): Add -q and --silent.
4139
73ba372c
GB
41402014-06-06 Gary Benson <gbenson@redhat.com>
4141
4142 * common/signals.c: Remove preprocessor conditionals for
4143 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4144 SIGSEGV and SIGTERM.
4145 * proc-events.c: Likewise.
4146
c33b2f12
MM
41472014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4148
4149 * symfile.c (symfile_free_objfile): Remove restriction to
4150 OBJF_USERLOADED.
4151 * symfile-mem.c (symbol_file_add_from_memory): Call
4152 add_target_sections_of_objfile.
4153
fb934770
LC
41542014-06-05 Ludovic Courtès <ludo@gnu.org>
4155
4156 * guile/scm-value.c (gdbscm_history_append_x): Use
4157 'vlscm_get_value_smob_arg_unsafe' instead of
4158 'vlscm_scm_to_value'.
4159
6ef284bd
SM
41602014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4161
4162 PR mi/15806
4163 * utils.c (printchar): Don't escape at all if quoter is NUL.
4164 Update function documentation to clarify effect of parameter
4165 QUOTER.
4166 * remote.c (escape_buffer): Pass '\\' as the quoter to
4167 fputstrn_unfiltered.
4168 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4169 generate the output.
4170 (mi_solib_unloaded): Same.
4171
270c9937
JB
41722014-06-05 Joel Brobecker <brobecker@adacore.com>
4173
4174 * development.sh: Delete.
4175 * Makefile.in (config.status): Adjust dependency on development.sh.
4176 * configure.ac: Adjust development.sh source call.
4177 * configure: Regenerate.
4178
16f691fb
DE
41792014-06-04 Doug Evans <xdje42@gmail.com>
4180
4181 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4182 is_scheme_bkpt, spec.
4183 (bpscm_make_breakpoint_smob): Initialize new members.
4184 (gdbscm_create_breakpoint_x): Split into two ...
4185 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4186 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4187 (scheme_function breakpoint_functions): Update.
4188 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4189 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4190 register-breakpoint!.
4191
ef7cab6b
JB
41922014-06-04 Joel Brobecker <brobecker@adacorer.com>
4193
4194 PR server/17023
4195 * mem-break.c (z_type_supported): Return zero if
4196 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4197
012370f6
TT
41982014-06-04 Tom Tromey <tromey@redhat.com>
4199
4200 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4201 value_from_contents_and_address_unresolved.
4202 (ada_template_to_fixed_record_type_1): Likewise.
4203 (ada_which_variant_applies): Likewise.
4204 * value.h (value_from_contents_and_address_unresolved): Declare.
4205 * value.c (value_from_contents_and_address_unresolved): New
4206 function.
4207 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4208 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4209 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4210
92e2a17f
TT
42112014-06-04 Tom Tromey <tromey@redhat.com>
4212
4213 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4214
c0939df1
TT
42152014-06-04 Tom Tromey <tromey@redhat.com>
4216
4217 * procfs.c (procfs_attach): Make "args" const.
4218 * windows-nat.c (windows_attach): Make "args" const.
4219 * nto-procfs.c (procfs_attach): Make "args" const.
4220 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4221 * go32-nat.c (go32_attach): Make "args" const.
4222 * gnu-nat.c (gnu_attach): Make "args" const.
4223 * darwin-nat.c (darwin_attach): Make "args" const.
4224 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4225 * linux-nat.c (linux_nat_attach): Make "args" const.
4226 * remote.c (extended_remote_attach_1, extended_remote_attach):
4227 Make "args" const.
4228 * target.h (struct target_ops) <to_attach>: Make "args" const.
4229 (find_default_attach): Likewise.
4230 * utils.c (parse_pid_to_attach): Make "args" const.
4231 * utils.h (parse_pid_to_attach): Update.
4232
8eaff7cd
TT
42332014-06-04 Tom Tromey <tromey@redhat.com>
4234
4235 * target-delegates.c: Rebuild.
4236 * target.c (default_thread_address_space): New function.
4237 (target_thread_address_space): Simplify.
4238 * target.h (struct target_ops) <to_thread_address_space>: Add
4239 TARGET_DEFAULT_FUNC.
4240
1913f160
DE
42412014-06-04 Doug Evans <xdje42@gmail.com>
4242
4243 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4244
70ad5bff
MM
42452014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4246
4247 * record-btrace.c: Include event-loop.h and inf-loop.h.
4248 (record_btrace_resume_exec_dir)
4249 (record_btrace_async_inferior_event_handler)
4250 (record_btrace_handle_async_inferior_event): New.
4251 (record_btrace_open): Create async event handler.
4252 (record_btrace_close): Delete async event handler.
4253 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4254 Mark async event handler.
4255 (record_btrace_execution_direction): New.
4256 (init_record_btrace_ops): Initialize to_execution_direction.
4257
b6210538
DE
42582014-06-03 Doug Evans <xdje42@gmail.com>
4259
4260 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4261 (gdbscm_make_parameter): Ditto.
4262
a5b1fd27
DE
42632014-06-03 Doug Evans <dje@google.com>
4264
4265 * exec.c (exec_close_1): Call clear_section_table instead of
4266 resize_section_table.
4267 (clear_section_table): New function.
4268 (resize_section_table): Make static. Rename arg num_added to
4269 adjustment.
4270 * exec.h (clear_section_table): Declare.
4271 (resize_section_table): Delete.
4272 * progspace.c (release_program_space): Call clear_section_table
4273 instead of resize_section_table.
4274
0c6e92a5
SC
42752014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4276
4277 * NEWS (Python Scripting): Add entry about the new xmethods
4278 feature.
4279
883964a7
SC
42802014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4281
4282 * python/py-xmethods.c: New file.
4283 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4284 (objfpy_dealloc): XDECREF on the new xmethods field.
4285 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4286 field.
4287 (objfpy_get_xmethods): New function.
4288 (objfile_getset): New entry 'xmethods'.
4289 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4290 (pspy_dealloc): XDECREF on the new xmethods field.
4291 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4292 field.
4293 (pspy_get_xmethods): New function.
4294 (pspace_getset): New entry 'xmethods'.
4295 * python/python-internal.h: Add declarations for new functions.
4296 * python/python.c (_initialize_python): Invoke
4297 gdbpy_initialize_xmethods.
4298 * python/lib/gdb/__init__.py (xmethods): New
4299 attribute.
4300 * python/lib/gdb/xmethod.py: New file.
4301 * python/lib/gdb/command/xmethods.py: New file.
4302
58992dc5
SC
43032014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4304
4305 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4306 best match method returned by find_overload_match is an xmethod.
4307 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4308 the best matching operator returned by find_overload_match is an
4309 xmethod.
4310 * valops.c: #include "extension.h".
4311 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4312 Return void. The list of matching source methods is returned in
4313 "fn_list" and a vector of matching debug method workers is
4314 returned in "xm_worker_vec". Update all callers.
4315 (value_find_oload_method_list): Likewise.
4316 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4317 non-NULL, then the index of the best matching method in this
4318 vector is returned. Update all callers.
4319 (find_overload_match): Include xmethods while performing overload
4320 resolution.
4321
e81e7f5e
SC
43222014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4323
4324 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4325 * extension-priv.h (struct extension_language_ops): Add the
4326 xmethod interface.
4327 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4328 get_matching_xmethod_workers, get_xmethod_argtypes,
4329 invoke_xmethod, free_xmethod_worker,
4330 free_xmethod_worker_vec): New functions.
4331 * extension.h: #include "common/vec.h".
4332 New function declarations.
4333 (struct xmethod_worker): New struct.
4334 (VEC (xmethod_worker_ptr)): New vector type.
4335 (xmethod_worker_ptr): New typedef.
4336 (xmethod_worker_vec): Likewise.
4337 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4338 builtin_type.
4339 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4340 (struct builtin_type): New field "xmethod".
4341 * valarith.c (value_ptradd): Assert that the value argument is not
4342 lval_xcallable.
4343 * valops.c (value_must_coerce_to_target): Return 0 for
4344 lval_xcallable values.
4345 * value.c (struct value): New field XM_WORKER in the field
4346 LOCATION.
4347 (value_address, value_raw_address): Return 0 for lval_xcallable
4348 values.
4349 (set_value_address): Assert that the value is not an
4350 lval_xcallable.
4351 (value_free): Free the associated xmethod worker when freeing
4352 lval_xcallable values.
4353 (set_value_component_location): Assert that the WHOLE value is not
4354 lval_xcallable.
4355 (value_of_xmethod, call_xmethod): New functions.
4356 * value.h: Declare "struct xmethod_worker".
4357 Declare new functions value_of_xmethod, call_xmethod.
4358
ef370185
JB
43592014-06-03 Joel Brobecker <brobecker@adacore.com>
4360 Pedro Alves <palves@redhat.com>
4361
4362 PR breakpoints/17000
4363 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4364 New function, extracted from software_breakpoint_inserted_here_p.
4365 (software_breakpoint_inserted_here_p): Replace factored out code
4366 by call to find_non_raw_software_breakpoint_inserted_here.
4367 (bp_target_info_copy_insertion_state): New function.
4368 (bkpt_insert_location): Handle the case of a single-step
4369 breakpoint already inserted at the same address.
4370 (bkpt_remove_location): Handle the case of a single-step
4371 breakpoint still inserted at the same address.
4372 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4373 breakpoint already inserted at the same address.
4374 (deprecated_remove_raw_breakpoint): Handle the case of a
4375 non-raw breakpoint still inserted at the same address.
4376 (find_single_step_breakpoint): New function, extracted from
4377 single_step_breakpoint_inserted_here_p.
4378 (find_single_step_breakpoint): New function,
4379 factored out from single_step_breakpoint_inserted_here_p.
4380 (single_step_breakpoint_inserted_here_p): Reimplement.
4381
1e2ccb61
BM
43822014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4383
4384 Pushed by Joel Brobecker <brobecker@adacore.com>
4385 * source.c (show_substitute_path_command): Fix display of matching
4386 substitution rules.
4387
d3448d85
GB
43882014-06-03 Gary Benson <gbenson@redhat.com>
4389
4390 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4391
06eb1586
DE
43922014-06-02 Doug Evans <xdje42@gmail.com>
4393
4394 Add parameter support for Guile.
4395 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4396 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4397 (scm-param.o): New rule.
4398 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4399 (gdbscm_misc_error): Declare.
4400 (gdbscm_canonicalize_command_name): Declare.
4401 (gdbscm_scm_to_host_string): Declare.
4402 (gdbscm_scm_from_host_string): Declare.
4403 (gdbscm_initialize_parameters): Declare.
4404 * guile/guile.c (initialize_gdb_module): Call
4405 gdbscm_initialize_parameters.
4406 * guile/lib/gdb.scm: Export parameter symbols.
4407 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4408 cmdscm_canonicalize_name and made public. All callers updated.
4409 * guile/scm-exception.c (gdbscm_misc_error): New function.
4410 * guile/scm-param.c: New file.
4411 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4412 (gdbscm_scm_to_host_string): New function.
4413 (gdbscm_scm_from_host_string): New function.
4414 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4415
e698b8c4
DE
44162014-06-02 Doug Evans <xdje42@gmail.com>
4417
4418 Add command support for Guile.
4419 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4420 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4421 (scm-cmd.o): New rule.
4422 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4423 (gdbscm_user_error_p): Declare.
4424 (gdbscm_parse_command_name): Declare.
4425 (gdbscm_valid_command_class_p): Declare.
4426 (gdbscm_initialize_commands): Declare.
4427 * guile/guile.c (initialize_gdb_module): Call
4428 gdbscm_initialize_commands.
4429 * guile/lib/gdb.scm: Export command symbols.
4430 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4431 (throw-user-error): New function.
4432 * guile/scm-cmd.c: New file.
4433 * guile/scm-exception.c (user_error_symbol): New static global.
4434 (gdbscm_user_error_p): New function.
4435 (gdbscm_initialize_exceptions): Set user_error_symbol.
4436 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4437
fb1f94b0
PM
44382014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4439
4440 * top.c (command_loop): Handle comments here...
4441 (command_line_input): ... not here.
4442
ded03782
DE
44432014-06-02 Doug Evans <xdje42@gmail.com>
4444
4445 Add progspace support for Guile.
4446 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4447 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4448 (scm-progspace.o): New rule.
4449 * guile/guile-internal.h (pspace_smob): New typedef.
4450 (psscm_pspace_smob_pretty_printers): Declare.
4451 (psscm_pspace_smob_from_pspace): Declare.
4452 (psscm_scm_from_pspace): Declare.
4453 * guile/guile.c (initialize_gdb_module): Call
4454 gdbscm_initialize_pspaces.
4455 * guile/lib/gdb.scm: Export progspace symbols.
4456 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4457 support.
4458 (append-pretty-printer!): Ditto.
4459 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4460 Implement.
4461 * guile/scm-progspace.c: New file.
4462
397998fc
AM
44632014-06-03 Alan Modra <amodra@gmail.com>
4464
4465 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4466 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4467
6aa5f3a6
DE
44682014-06-02 Doug Evans <dje@google.com>
4469
4470 Add support for skeletonless type units.
4471 * dwarf2read.c (struct dwarf2_per_objfile): New member
4472 n_allocated_type_units.
4473 (struct dwarf2_per_objfile) <tu_stats>: New member
4474 nr_all_type_units_reallocs.
4475 (create_signatured_type_table_from_index): Initialize
4476 n_allocated_type_units
4477 (create_all_type_units): Ditto.
4478 (add_type_unit): Move up in file. New arg slot.
4479 All callers updated. Increase space for all_type_units more
4480 efficiently.
4481 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4482 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4483 (lookup_dwp_signatured_type): Ditto.
4484 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4485 All callers updated.
4486 (build_type_psymtabs_1): Leave type_unit_groups as
4487 NULL if no TUs present.
4488 (print_tu_stats): New function.
4489 (process_skeletonless_type_unit): New function.
4490 (process_dwo_file_for_skeletonless_type_units): New
4491 function.
4492 (process_skeletonless_type_units): New function.
4493 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4494 Call print tu_stats if debugging enabled.
4495
41fac0cf
PA
44962014-06-02 Pedro Alves <palves@redhat.com>
4497
4498 * breakpoint.c (build_target_command_list): Don't build a command
4499 list if we have any duplicate location that isn't a dprintf.
4500
cd1608cc
PA
45012014-06-02 Pedro Alves <palves@redhat.com>
4502
4503 * breakpoint.c (dprintf_breakpoint_hit): New function.
4504 (initialize_breakpoint_ops): Install it as dprintf's
4505 breakpoint_hit method.
4506
486ef3b9
JB
45072014-06-02 Joel Brobecker <brobecker@adacore.com>
4508
4509 * source.c (substitute_path_rule_matches): Simplify using
4510 filename_ncmp instead of FILENAME_CMP.
4511
230cd560
JB
45122014-06-02 Joel Brobecker <brobecker@adacore.com>
4513
4514 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4515
16954d5d
LC
45162014-06-01 Ludovic Courtès <ludo@gnu.org>
4517
4518 * configure.ac: When Guile is available, check for the
4519 availability of 'scm_new_smob'.
4520 * configure, config.h.in: Regenerate.
4521 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4522 function.
4523
53e8a631
AB
45242014-05-30 Andrew Burgess <aburgess@broadcom.com>
4525
4526 * frame.c (struct frame_info): Add stop_string field.
4527 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4528 (get_prev_frame_always): Old content moved into
4529 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4530 TRY_CATCH, handle MEMORY_ERROR exceptions.
4531 (frame_stop_reason_string): New function definition.
4532 * frame.h (unwind_stop_reason_to_string): Extend comment to
4533 mention frame_stop_reason_string.
4534 (frame_stop_reason_string): New function declaration.
4535 * stack.c (frame_info): Switch to frame_stop_reason_string.
4536 (backtrace_command_1): Switch to frame_stop_reason_string.
4537 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4538 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4539 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4540
70e38b8e
AB
45412014-05-30 Andrew Burgess <aburgess@broadcom.com>
4542
4543 * frame.c (frame_stop_reason_string): Rename to ...
4544 (unwind_stop_reason_to_string): this.
4545 * frame.h (frame_stop_reason_string): Rename to ...
4546 (unwind_stop_reason_to_string): this.
4547 * stack.c (frame_info): Update call to frame_stop_reason_string.
4548 (backtrace_command_1): Likewise.
4549 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4550 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4551
938f0e2f
AB
45522014-05-30 Andrew Burgess <aburgess@broadcom.com>
4553
4554 * frame.c (remove_prev_frame): New function.
4555 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4556 remove_prev_frame.
4557
a09dd441
PA
45582014-05-29 Pedro Alves <palves@redhat.com>
4559
4560 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4561 and make it const. When a single-step decays to a continue,
4562 clear 'step', not 'hw_step'. Pass whether the caller wanted
4563 to step to user_visible_resume_ptid, not what we ask the
4564 target to do.
4565
bdc36728
PA
45662014-05-29 Pedro Alves <palves@redhat.com>
4567
4568 * infrun.c (process_event_stop_test, handle_step_into_function)
4569 (handle_step_into_function_backward): Adjust.
4570 Don't set the even thread's stop_step and call stop_waiting before
4571 calling end_stepping_range. Instead do that ...
4572 (end_stepping_range): ... here. Take an ecs pointer parameter.
4573
22bcd14b
PA
45742014-05-29 Pedro Alves <palves@redhat.com>
4575
4576 * infrun.c (stop_stepping): Rename to ...
4577 (stop_waiting): ... this.
4578 (proceed): Update comment.
4579 (process_event_stop_test, handle_inferior_event)
4580 (handle_signal_stop, handle_step_into_function)
4581 (handle_step_into_function_backward): Update.
4582
4ae57c05
PA
45832014-05-29 Pedro Alves <palves@redhat.com>
4584
4585 * infcall.c (run_inferior_call): Don't check whether the current
4586 thread is running after the proceed call.
4587
329ea579
PA
45882014-05-29 Pedro Alves <palves@redhat.com>
4589 Tom Tromey <tromey@redhat.com>
4590
4591 * NEWS: Mention "maint set target-async", "set mi-async", and that
4592 background execution commands are now always available.
4593 * target.h (target_async_permitted): Update comment.
4594 * target.c (target_async_permitted, target_async_permitted_1):
4595 Default to 1.
4596 (set_target_async_command): Rename to ...
4597 (maint_set_target_async_command): ... this.
4598 (show_target_async_command): Rename to ...
4599 (maint_show_target_async_command): ... this.
4600 (_initialize_target): Adjust.
4601 * infcmd.c (prepare_execution_command): Make extern.
4602 * inferior.h (prepare_execution_command): Declare.
4603 * infrun.c (set_observer_mode): Leave target async alone.
4604 * mi/mi-interp.c (mi_interpreter_init): Install
4605 mi_on_sync_execution_done as sync_execution_done observer.
4606 (mi_on_sync_execution_done): New function.
4607 (mi_execute_command_input_handler): Don't print the prompt if we
4608 just started a synchronous command with an async target.
4609 (mi_on_resume): Check sync_execution before printing prompt.
4610 * mi/mi-main.h (mi_async_p): Declare.
4611 * mi/mi-main.c: Include gdbcmd.h.
4612 (mi_async_p): New function.
4613 (mi_async, mi_async_1): New globals.
4614 (set_mi_async_command, show_mi_async_command, mi_async): New
4615 functions.
4616 (exec_continue): Call prepare_execution_command.
4617 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4618 (mi_execute_async_cli_command): Use mi_async_p.
4619 (_initialize_mi_main): Install "set mi-async". Make
4620 "target-async" a deprecated alias.
4621
92bcb5f9
PA
46222014-05-29 Pedro Alves <palves@redhat.com>
4623
4624 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4625 (_initialize_cli_interp): Adjust.
4626 * event-loop.c: Include "observer.h".
4627 (start_event_loop): Notify 'command_error' observers instead of
4628 calling display_gdb_prompt. Remove FIXME comment.
4629 * event-top.c (display_gdb_prompt): Remove call into the
4630 interpreters.
4631 * inf-loop.c: Include "observer.h".
4632 (inferior_event_handler): Notify 'command_error' observers instead
4633 of calling display_gdb_prompt.
4634 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4635 observers instead of calling display_gdb_prompt.
4636 * interps.c (interp_set): Don't call display_gdb_prompt.
4637 (current_interp_display_prompt_p): Delete.
4638 * interps.h (interp_prompt_p): Delete declaration.
4639 (interp_prompt_p_ftype): Delete.
4640 (struct interp_procs) <prompt_proc_p>: Delete field.
4641 (current_interp_display_prompt_p): Delete declaration.
4642 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4643 (_initialize_mi_interp): Adjust.
4644 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4645 'command_error' observers.
4646 (tui_on_sync_execution_done, tui_on_command_error): New
4647 functions.
4648 (tui_display_prompt_p): Delete.
4649 (_initialize_tui_interp): Adjust.
4650
fd664c91
PA
46512014-05-29 Pedro Alves <palves@redhat.com>
4652
4653 PR gdb/13860
4654 * cli/cli-interp.c: Include infrun.h and observer.h.
4655 (cli_uiout, cli_interp): New globals.
4656 (cli_on_signal_received, cli_on_end_stepping_range)
4657 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4658 functions.
4659 (cli_interpreter_init): Install them as 'end_stepping_range',
4660 'signal_received' 'signal_exited', 'exited' and 'no_history'
4661 observers.
4662 (_initialize_cli_interp): Remove cli_interp local.
4663 * infrun.c (handle_inferior_event): Call the several stop reason
4664 observers instead of printing the stop reason directly.
4665 (end_stepping_range): New function.
4666 (print_end_stepping_range_reason, print_signal_exited_reason)
4667 (print_exited_reason, print_signal_received_reason)
4668 (print_no_history_reason): Make static, and add an uiout
4669 parameter. Print to that instead of to CURRENT_UIOUT.
4670 * infrun.h (print_end_stepping_range_reason)
4671 (print_signal_exited_reason, print_exited_reason)
4672 (print_signal_received_reason print_no_history_reason): New
4673 declarations.
4674 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4675 'mi_uiout'.
4676 <cli_uiout>: New field.
4677 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4678 uiout for CLI output. Install 'signal_received',
4679 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4680 observers.
4681 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4682 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4683 (mi_on_no_history): New functions.
4684 (ui_out_free_cleanup): Delete function.
4685 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4686 instead use the one already stored in the MI interpreter data.
4687 (mi_ui_out): Adjust.
4688 * tui/tui-interp.c: Include infrun.h and observer.h.
4689 (tui_interp): New global.
4690 (tui_on_signal_received, tui_on_end_stepping_range)
4691 (tui_on_signal_exited, tui_on_exited)
4692 (tui_on_no_history): New functions.
4693 (tui_init): Install them as 'end_stepping_range',
4694 'signal_received' 'signal_exited', 'exited' and 'no_history'
4695 observers.
4696 (_initialize_tui_interp): Delete tui_interp local.
4697
8817a6f2
PA
46982014-05-29 Pedro Alves <palves@redhat.com>
4699
4700 PR gdb/15713
4701 * linux-nat.c (linux_nat_resume_callback): Rename the second
4702 parameter to 'except'. Skip LP if it points to EXCEPT.
4703 (linux_nat_resume): Don't mark the event lwp as not stopped
4704 before resuming sibling lwps. Instead ask
4705 linux_nat_resume_callback to skip the event lwp. Mark it as not
4706 stopped after actually resuming it.
4707 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4708 resuming it.
4709 (wait_lwp): Mark the lwp as stopped here.
4710 (stop_wait_callback): Mark the lwp as not stopped right after
4711 resuming it. Don't mark lwps as stopped here.
4712 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4713 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4714
251bde03
PA
47152014-05-29 Pedro Alves <palves@redhat.com>
4716
4717 PR PR15693
4718 * infrun.c (resume): Determine how much to resume depending on
4719 whether the caller wanted a step, not whether we can hardware step
4720 the target. Mark all threads that we intend to run as running,
4721 unless we're calling an inferior function.
4722 (normal_stop): If the thread is running an infcall, don't finish
4723 thread state.
4724 * target.c (target_resume): Don't mark threads as running here.
4725
7f3c0343
JB
47262014-05-28 Joel Brobecker <brobecker@adacore.com>
4727
4728 * serial.c (_initialize_serial): Remove support for
4729 the "set remotebaud" and "show remotebaud" commands.
4730 * NEWS: Add entry documenting the removal of that command.
4731
ee34b3f9
YQ
47322014-05-28 Yao Qi <yao@codesourcery.com>
4733
4734 * charset.c: Fix typo in comments.
4735
add6c04d
GB
47362014-05-27 Gary Benson <gbenson@redhat.com>
4737
4738 * utils.c (internal_vproblem): Prompt for a bug report.
4739
92c48fc5
AW
47402014-05-26 Andy Wingo <wingo@igalia.com>
4741
4742 * guile/scm-arch.c (arscm_mark_arch_smob):
4743 * guile/scm-block.c (bkscm_mark_block_smob)
4744 (bkscm_mark_block_syms_progress_smob):
4745 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4746 * guile/scm-exception.c (exscm_mark_exception_smob):
4747 * guile/scm-frame.c (frscm_mark_frame_smob):
4748 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4749 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4750 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4751 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4752 (ppscm_mark_pretty_printer_worker_smob):
4753 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4754 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4755 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4756 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4757 mark functions.
4758 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4759 function.
4760
b2715b27
AW
47612014-05-26 Andy Wingo <wingo@igalia.com>
4762 Doug Evans <xdje42@gmail.com>
4763
4764 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4765 empty_base_class. All uses updated.
4766 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4767 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4768 Adapt all callers.
4769 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4770 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4771 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4772 (gdbscm_gsmob_has_property_p, add_property_name)
4773 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4774 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4775 (gdb-object-has-property?, gdb-object-properties): Remove.
4776 (gdb-object-kind): Renamed from gsmob-kind.
4777
214ab2da
AW
47782014-05-26 Andy Wingo <wingo@igalia.com>
4779
4780 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4781 * configure: Regenerate.
4782
589fdceb
MM
47832014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4784
4785 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4786
67b5c0c1
MM
47872014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4788
4789 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4790 (replay_memory_access_read_only, replay_memory_access_read_write)
4791 (replay_memory_access_types, replay_memory_access)
4792 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4793 (cmd_set_record_btrace, cmd_show_record_btrace)
4794 (cmd_show_replay_memory_access): New.
4795 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4796 (record_btrace_remove_breakpoint): Replace
4797 record_btrace_allow_memory_access with replay_memory_access.
4798 (_initialize_record_btrace): Add commands.
4799 * NEWS: Announce it.
4800
036cd381
RR
48012014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4802
4803 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4804
c77c1e42
RR
48052014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4806
4807 * MAINTAINERS (Write After Approval): Move self back from
4808 paper trail.
4809
45741a9c
PA
48102014-05-22 Pedro Alves <palves@redhat.com>
4811
4812 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4813 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4814 (disable_randomization, enum exec_direction_kind)
4815 (execution_direction, stop_registers, start_remote)
4816 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4817 (wait_for_inferior, normal_stop, get_last_target_status)
4818 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4819 (insert_step_resume_breakpoint_at_sal)
4820 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4821 (set_step_info, print_stop_event, signal_stop_state)
4822 (signal_print_state, signal_pass_state, signal_stop_update)
4823 (signal_print_update, signal_pass_update)
4824 (update_signals_program_target, clear_exit_convenience_vars)
4825 (displaced_step_dump_bytes, update_observer_mode)
4826 (signal_catch_update, gdb_signal_from_command): Move
4827 declarations ...
4828 * infrun.h: ... to this new file.
4829 * amd64-tdep.c: Include infrun.h.
4830 * annotate.c: Include infrun.h.
4831 * arch-utils.c: Include infrun.h.
4832 * arm-linux-tdep.c: Include infrun.h.
4833 * arm-tdep.c: Include infrun.h.
4834 * break-catch-sig.c: Include infrun.h.
4835 * breakpoint.c: Include infrun.h.
4836 * common/agent.c: Include infrun.h instead of inferior.h.
4837 * corelow.c: Include infrun.h.
4838 * event-top.c: Include infrun.h.
4839 * go32-nat.c: Include infrun.h.
4840 * i386-tdep.c: Include infrun.h.
4841 * inf-loop.c: Include infrun.h.
4842 * infcall.c: Include infrun.h.
4843 * infcmd.c: Include infrun.h.
4844 * infrun.c: Include infrun.h.
4845 * linux-fork.c: Include infrun.h.
4846 * linux-nat.c: Include infrun.h.
4847 * linux-thread-db.c: Include infrun.h.
4848 * monitor.c: Include infrun.h.
4849 * nto-tdep.c: Include infrun.h.
4850 * procfs.c: Include infrun.h.
4851 * record-btrace.c: Include infrun.h.
4852 * record-full.c: Include infrun.h.
4853 * remote-m32r-sdi.c: Include infrun.h.
4854 * remote-mips.c: Include infrun.h.
4855 * remote-notif.c: Include infrun.h.
4856 * remote-sim.c: Include infrun.h.
4857 * remote.c: Include infrun.h.
4858 * reverse.c: Include infrun.h.
4859 * rs6000-tdep.c: Include infrun.h.
4860 * s390-linux-tdep.c: Include infrun.h.
4861 * solib-irix.c: Include infrun.h.
4862 * solib-osf.c: Include infrun.h.
4863 * solib-svr4.c: Include infrun.h.
4864 * target.c: Include infrun.h.
4865 * top.c: Include infrun.h.
4866 * windows-nat.c: Include infrun.h.
4867 * mi/mi-interp.c: Include infrun.h.
4868 * mi/mi-main.c: Include infrun.h.
4869 * python/py-threadevent.c: Include infrun.h.
4870
98eb56a4
PA
48712014-05-22 Pedro Alves <palves@redhat.com>
4872
4873 * infrun.c (handle_inferior_event): Store the exit code for
4874 --return-child-result here, instead of ...
4875 (print_exited_reason): ... here.
4876
17b2616c
PA
48772014-05-21 Pedro Alves <palves@redhat.com>
4878
4879 PR gdb/13860
4880 * gdbthread.h (struct thread_control_state): New field
4881 `command_interp'.
4882 * infrun.c (follow_fork): Copy the new thread control field to the
4883 child fork thread.
4884 (clear_proceed_status_thread): Clear the new thread control field.
4885 (proceed): Set the new thread control field.
4886 * interps.h (command_interp): Declare.
4887 * interps.c (command_interpreter): New global.
4888 (command_interp): New function.
4889 (interp_exec): Set `command_interpreter' while here.
4890 * cli-out.c (cli_uiout_dtor): New function.
4891 (cli_ui_out_impl): Install it.
4892 * mi/mi-interp.c: Include cli-out.h.
4893 (mi_cmd_interpreter_exec): Add comment.
4894 (restore_current_uiout_cleanup): New function.
4895 (ui_out_free_cleanup): New function.
4896 (mi_on_normal_stop): If finishing an execution command started by
4897 a CLI command, or any kind of breakpoint-like event triggered,
4898 print the stop event to the output (CLI) stream.
4899 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4900
5166082f
PA
49012014-05-21 Pedro Alves <palves@redhat.com>
4902
4903 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4904 current source line having changed.
4905 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4906 * infrun.c (normal_stop): Adjust call to
4907 set_current_sal_from_frame.
4908 * source.c (clear_lines_listed_range): New function.
4909 (set_current_source_symtab_and_line, identify_source_line): Clear
4910 the lines listed range.
4911 (line_info): Handle the first "info line" after the current source
4912 line having changed.
4913 * stack.c (print_stack_frame): Remove center handling.
4914 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4915 center sal.line.
4916
c1ee2fb3
PA
49172014-05-21 Pedro Alves <palves@redhat.com>
4918
4919 * inf-child.c (inf_child_mourn_inferior): New function.
4920 * inf-child.h (inf_child_mourn_inferior): New declaration.
4921 * darwin-nat.c (darwin_mourn_inferior): Use
4922 inf_child_mourn_inferior.
4923 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4924 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4925 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4926 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4927 * windows-nat.c (windows_mourn_inferior): Likewise.
4928
5c6d4fb2
DE
49292014-05-21 Doug Evans <xdje42@gmail.com>
4930
250748cb 4931 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4932
4a2722c5
DE
49332014-05-21 Doug Evans <xdje42@gmail.com>
4934
17292b30 4935 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4936 (gdbscm_out_of_range_error): Ditto.
4937 (gdbscm_memory_error): Ditto.
250748cb
DE
4938 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4939 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4940 (gdbscm_out_of_range_error): Update.
4941 (gdbscm_memory_error): Update.
4942 (gdbscm_scm_to_target_string_unsafe): Delete.
4943
6a3cb8e8
PA
49442014-05-21 Pedro Alves <palves@redhat.com>
4945
4946 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4947 globals.
4948 (inf_child_open_target): New function.
4949 (inf_child_open): Use inf_child_open_target to push the target
4950 instead of erroring out.
4951 (inf_child_disconnect, inf_child_close)
4952 (inf_child_maybe_unpush_target): New functions.
4953 (inf_child_target): Install inf_child_disconnect and
4954 inf_child_close. Store a pointer to the returned object.
4955 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4956 declarations.
4957 * target.c (auto_connect_native_target): New global.
4958 (show_default_run_target): New function.
4959 (find_default_run_target): Return NULL if automatically connecting
4960 to the native target is disabled.
4961 (_initialize_target): Install set/show auto-connect-native-target.
4962 * NEWS: Mention "set auto-connect-native-target", and "target
4963 native".
4964 * linux-nat.c (super_close): New global.
4965 (linux_nat_close): Call super_close.
4966 (linux_nat_add_target): Store a pointer to the base class's
4967 to_close method.
4968 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4969 inf_child_maybe_unpush.
4970 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4971 already pushed.
4972 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4973 the inferior. Use inf_child_maybe_unpush_target.
4974 (inf_ttrace_attach): Don't push the target if it is already
4975 pushed.
4976 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4977 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4978 after mourning the inferior. Use inf_child_maybe_unpush_target.
4979 (darwin_attach_pid): Don't push the target if it is already
4980 pushed.
4981 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4982 mourning the inferior. Use inf_child_maybe_unpush_target.
4983 (gnu_detach): Use inf_child_maybe_unpush_target.
4984 * go32-nat.c (go32_create_inferior): Don't push the target if it
4985 is already pushed.
4986 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4987 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4988 (procfs_open): Rename to ...
4989 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4990 comments. Can target_preopen before changing node. Call
4991 inf_child_open_target to push the target explicitly.
4992 (procfs_attach): Don't push the target if it is already pushed.
4993 (procfs_detach): Use inf_child_maybe_unpush_target.
4994 (procfs_create_inferior): Don't push the target if it is already
4995 pushed.
4996 (nto_native_ops): New global.
4997 (procfs_open): Reimplement.
4998 (procfs_native_open): New function.
4999 (init_procfs_targets): Install procfs_native_open as to_open of
5000 "target native". Store a pointer to the "native" target in
5001 nto_native_ops.
5002 * procfs.c (procfs_attach): Don't push the target if it is already
5003 pushed.
5004 (procfs_detach): Use inf_child_maybe_unpush_target.
5005 (procfs_mourn_inferior): Only unpush the target after mourning the
5006 inferior. Use inf_child_maybe_unpush_target.
5007 (procfs_init_inferior): Don't push the target if it is already
5008 pushed.
5009 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5010 if it is already pushed.
5011
930ee1b1
PA
50122014-05-21 Pedro Alves <palves@redhat.com>
5013
5014 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5015 and "procfs" targets are now called "native" instead.
5016
1f5d1b13
PA
50172014-05-21 Pedro Alves <palves@redhat.com>
5018
5019 * go32-nat.c (go32_open): Delete.
5020 (go32_target): Don't override the to_open method.
5021
132f8e03
PA
50222014-05-21 Pedro Alves <palves@redhat.com>
5023
5024 * nto-procfs.c (procfs_can_run): New function.
5025 (nto_procfs_ops): New global.
5026 (init_procfs_targets): New, based on procfs_target. Install
5027 "target native" in addition to "target procfs".
5028 (_initialize_procfs): Call init_procfs_targets instead of adding
5029 the target here.
5030
03c136c3
PA
50312014-05-21 Pedro Alves <palves@redhat.com>
5032
5033 * windows-nat.c (windows_target): Don't override to_shortname,
5034 to_longname or to_doc.
5035
a635d0f3
PA
50362014-05-21 Pedro Alves <palves@redhat.com>
5037
5038 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5039 to_doc.
5040
4f9b5133
PA
50412014-05-21 Pedro Alves <palves@redhat.com>
5042
5043 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5044 to_shortname, to_longname or to_doc.
5045
bc85afde
PA
50462014-05-21 Pedro Alves <palves@redhat.com>
5047
5048 * go32-nat.c (go32_target): Don't override to_shortname,
5049 to_longname or to_doc.
5050
4ebfc96e
PA
50512014-05-21 Pedro Alves <palves@redhat.com>
5052
5053 * inf-child.c (inf_child_open): Remove mention of "child".
5054 (inf_child_target): Rename target to "native" instead of "child".
5055
2648dfed
AA
50562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5057
5058 * Makefile.in (SFILES): Delete "regset.c".
5059 (COMMON_OBS): Delete "regset.o".
5060 * regset.c: Remove.
5061 * regset.h (regset_alloc): Delete prototype.
5062
b13feb94
AA
50632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5064
5065 * sparc-linux-tdep.c (sparc32_linux_gregset)
5066 (sparc32_linux_fpregset): New static regset structures.
5067 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5068 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5069 'fpregset' fields.
5070 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5071 (sparc64_linux_fpregset): New static regset structures.
5072 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5073 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5074 New static regset structures.
5075 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5076 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5077 New static regset structures.
5078 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5079 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5080 New static regset structures.
5081 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5082 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5083 New static regset structures.
5084 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5085
b4fd25c9
AA
50862014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5087
5088 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5089 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5090 register maps ("regmaps") from "*regset" to "*regmap". Do this
5091 for all regmap types and variables.
5092 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5093 (sparc32_linux_supply_core_gregset)
5094 (sparc32_linux_collect_core_gregset)
5095 (sparc32_linux_supply_core_fpregset)
5096 (sparc32_linux_collect_core_fpregset): Likewise.
5097 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5098 (sparc_gregmap, sparc_fpregmap): ... these.
5099 (sparc_supply_gregset, sparc_collect_gregset)
5100 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5101 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5102 (_initialize_sparc_nat): Rename regmaps.
5103 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5104 (sparc_gregmap, sparc_fpregmap): ... these.
5105 (sparc_supply_gregset, sparc_collect_gregset)
5106 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5107 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5108 Rename macros to...
5109 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5110 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5111 Likewise.
5112 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5113 Rename to...
5114 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5115 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5116 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5117 regmaps.
5118 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5119 (sparc32_bsd_fpregset): Rename to...
5120 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5121 (sparc32_bsd_fpregmap): ... these.
5122 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5123 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5124 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5125 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5126 (struct sparc_gregmap, struct sparc_fpregmap)
5127 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5128 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5129 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5130 (sparc32_supply_regset, sparc32_collect_gregset)
5131 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5132 prototypes.
5133 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5134 (sparc64_linux_ptrace_gregmap): ... this.
5135 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5136 (_initialize_sparc64_linux_nat): Rename regmaps.
5137 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5138 (sparc64_linux_core_gregmap): ... this.
5139 (sparc64_linux_supply_core_gregset)
5140 (sparc64_linux_collect_core_gregset)
5141 (sparc64_linux_supply_core_fpregset)
5142 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5143 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5144 (sparc64_sol2_fpregset): Rename to...
5145 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5146 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5147 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5148 regmaps.
5149 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5150 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5151 (sparc64_bsd_fpregset): Rename to...
5152 (struct sparc_gregmap, sparc64_sol2_gregmap)
5153 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5154 (sparc64_bsd_fpregmap): ... these.
5155 (sparc64_supply_gregset, sparc64_collect_gregset)
5156 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5157 prototypes.
5158 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5159 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5160 (sparc64fbsd_gregmap): ... this.
5161 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5162 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5163 Rename regmaps.
5164 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5165 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5166 (sparc64nbsd_collect_fpregset): Likewise.
5167 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5168 (sparc64nbsd_gregmap): ... this.
5169 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5170 regmaps.
5171 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5172 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5173 (sparc64obsd_gregmap): ... this.
5174 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5175 regmaps.
5176 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5177 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5178 (sparc32nbsd_gregmap): ... this.
5179 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5180 regmaps.
5181
8fea3224
AA
51822014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5183
5184 * score-tdep.c (score7_linux_gregset): New static regset
5185 structure.
5186 (score7_linux_regset_from_core_section): Remove dynamic regset
5187 allocation.
5188 (score_gdbarch_init): Drop allocation of tdep structure.
5189 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5190
24534243
AA
51912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5192
5193 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5194 regset structures.
5195 (am33_regset_from_core_section): Remove dynamic regset
5196 allocations.
5197
b7195f27
AA
51982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5199
5200 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5201 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5202 structures.
5203 (mips_linux_regset_from_core_section): Remove dynamic regset
5204 allocations.
5205 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5206 'gregset64', 'fpregset', and 'fpregset64'.
5207 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5208 deleted tdep fields.
5209
ecc37a5a
AA
52102014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5211
5212 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5213 regset structures.
5214 (amd64_regset_from_core_section): Remove dynamic regset
5215 allocations.
5216 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5217 structure.
5218 (amd64obsd_regset_from_core_section): Remove dynamic regset
5219 allocation.
5220 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5221 Likewise.
5222 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5223 x86-common regset supply function.
5224 * i386-tdep.c (i386_collect_gregset): Make static.
5225 (i386_gregset): New global regset structure.
5226 (i386_fpregset, i386_xstateregset): New static regset structures.
5227 (i386_regset_from_core_section): Remove dynamic regset
5228 allocations.
5229 (i386_gdbarch_init): Remove initialization of tdep fields
5230 'gregset', 'fpregset', and 'xstateregset'.
5231 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5232 'fpregset', and 'xstateregset'.
5233 (i386_collect_gregset): Remove prototype.
5234 (i386_gregset): New declaration.
5235 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5236 structure.
5237 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5238 allocation.
5239
b7611c43
AA
52402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5241
5242 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5243 (arm_linux_vfpregset): New static regset structures.
5244 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5245 regset structures.
5246 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5247 and 'vfpregset' fields.
5248
a069a2bd
AA
52492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5250
5251 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5252 (aarch64_linux_fpregset): New static regset structures.
5253 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5254 of regset structures.
5255 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5256 'fpregset' fields.
5257
09424cff
AA
52582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5259
5260 * regset.h (struct regset): Remove gdbarch field.
5261 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5262 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5263 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5264 Likewise.
5265 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5266 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5267 (ppc32_linux_vsxregset): Likewise.
5268 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5269 via the regcache instead of the regset.
5270 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5271 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5272 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5273 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5274 Likewise.
5275
3ca7dae4
AA
52762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5277
5278 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5279 Constify structures.
5280 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5281 (alphanbsd_aout_gregset): Likewise.
5282 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5283 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5284 Likewise.
5285 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5286 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5287 Likewise.
5288 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5289 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5290 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5291 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5292 * m88k-tdep.c (m88k_gregset): Likewise.
5293 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5294 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5295 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5296 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5297 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5298 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5299 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5300 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5301 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5302 Likewise.
5303 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5304 * sh-tdep.h (sh_corefile_gregset): Likewise.
5305 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5306 * vax-tdep.c (vax_gregset): Likewise.
5307
5876f503
JK
53082014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5309
5310 Fix TLS access for -static -pthread.
5311 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5312 (try_thread_db_load_1): Initialize it.
5313 (thread_db_get_thread_local_address): Call it if LM is zero.
5314 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5315 * target.h (struct target_ops) (to_get_thread_local_address): Add
5316 load_module_addr comment.
5317
0256a6ac
PA
53182014-05-21 Pedro Alves <palves@redhat.com>
5319
5320 * dcache.c (dcache_read_memory_partial): If reading the cache line
5321 fails, fallback to reading just the memory the caller wanted.
5322
227533ac
DE
53232014-05-20 Doug Evans <dje@google.com>
5324
5325 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5326 instead of get_current_arch.
5327
936d2992
PA
53282014-05-20 Pedro Alves <palves@redhat.com>
5329
5330 * NEWS: Mention that compare-sections now works with all targets.
5331
5332 * remote.c (PACKET_qCRC): New enum value.
5333 (remote_verify_memory): Don't send qCRC if the target has no
5334 execution. Use packet_support/packet_ok. If the target doesn't
5335 support the qCRC packet, fallback to a deep memory copy.
5336 (compare_sections_command): Say "target image" instead of "remote
5337 executable".
5338 (_initialize_remote): Add PACKET_qCRC to the list of config
5339 packets that have no associated command. Extend comment.
5340 * target.c (simple_verify_memory, default_verify_memory): New
5341 function.
5342 * target.h (struct target_ops) <to_verify_memory>: Default to
5343 default_verify_memory.
5344 (simple_verify_memory): New declaration.
5345 * target-delegates.c: Regenerate.
5346
e59fa00f
MM
53472014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5348
5349 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5350
f2205de0
HZ
53512014-05-20 Hui Zhu <hui@codesourcery.com>
5352 Yao Qi <yao@codesourcery.com>
5353
5354 PR backtrace/16558
5355 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5356 and change address of sp and pc.
5357
c4e54771
TT
53582014-05-19 Tom Tromey <tromey@redhat.com>
5359
5360 * gdbtypes.c (rank_function): Use XNEWVEC.
5361 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5362
73051182
DE
53632014-05-19 Doug Evans <dje@google.com>
5364
5365 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5366 build_type_unit_groups and moved closer to only caller. Remove
5367 arguments. All references updated. Remove outdated .gdb_index
5368 comment.
5369 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5370 build_type_psymtabs_1.
5371
8832e7e3
DE
53722014-05-19 Doug Evans <dje@google.com>
5373
5374 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5375 n_type_unit_groups, all_type_unit_groups. All uses removed.
5376 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5377 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5378 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5379 (add_type_unit_group_to_table): Delete.
5380
cd8ae15e
DE
53812014-05-19 Doug Evans <dje@google.com>
5382
5383 * eval.c (evaluate_subexp_standard): Add some comments.
5384
08f4850b
DE
53852014-05-17 Doug Evans <xdje42@gmail.com>
5386
5387 * progspace.c (remove_program_space): Delete, unused.
5388 * progspace.h (remove_program_space): Ditto.
5389
bed8455c
DE
53902014-05-17 Doug Evans <xdje42@gmail.com>
5391
5392 * inferior.c (prune_inferiors): Fix comment.
5393 (remove_inferior_command): Call prune_program_spaces.
5394
8d551b02
DE
53952014-05-16 Doug Evans <dje@google.com>
5396
5397 New command line option -D.
5398 * NEWS: Mention it.
5399 * main.c (set_gdb_data_directory): New function.
5400 (captured_main): Recognize -D. Flag error for --data-directory "".
5401 Call set_gdb_data_directory.
5402 (print_gdb_help): Print --data-directory, -D.
5403 * main.h (set_gdb_data_directory): Declare.
5404 * top.c (staged_gdb_datadir): New static global.
5405 (set_gdb_datadir): Call set_gdb_data_directory
5406 (show_gdb_datadir): New function.
5407 (init_main): Update init of data-directory parameter.
5408
18848e28
GF
54092014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5410
5411 Import the "dirfd" gnulib module.
5412 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5413 * gnulib/aclocal.m4: Update.
5414 * gnulib/config.in: Update.
5415 * gnulib/configure: Update.
5416 * gnulib/import/Makefile.am: Update.
5417 * gnulib/import/Makefile.in: Update.
5418 * gnulib/import/dirfd.c: New.
5419 * gnulib/import/m4/dirfd.m4: New.
5420 * gnulib/import/m4/gnulib-cache.m4: Update.
5421 * gnulib/import/m4/gnulib-comp.m4: Update.
5422
95c64f92
YQ
54232014-05-16 Pierre Muller <muller@sourceware.org>
5424 Yao Qi <yao@codesourcery.com>
5425
5426 * valprint.c (print_wchar): Move the code on checking whether
5427 W is a printable wide char to the default branch of switch
5428 statement below. Call wchar_printable instead of gdb_iswprint.
5429
cac395ea
TM
54302014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5431
19679eca 5432 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5433 ldr.w and ldrd instructions.
5434
83655187
DE
54352014-05-15 Doug Evans <dje@google.com>
5436
5437 * dwarf2read.c (read_structure_type): Delete outdated comments.
5438
dd756689
TT
54392014-05-14 Tom Tromey <tromey@redhat.com>
5440
5441 * macrocmd.c (print_macro_definition): Reindent.
5442
75ddda77
DE
54432014-05-13 Doug Evans <xdje42@gmail.com>
5444
5445 * python/py-cmd.c (cmdpy_completer): Add comment.
5446 (completers): Make const.
5447
b0f16a3e
SM
54482014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5449
5450 * infrun.c (resume): Remove should_resume (unused). Move up
5451 declaration of resume_ptid.
5452
033c3379
TT
54532014-05-13 Tom Tromey <tromey@redhat.com>
5454
5455 * language.h (unop_type_check): Remove.
5456 (binop_type_check): Don't declare.
5457
9b44a3a5
AA
54582014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5459
5460 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5461 call to regcache_raw_collect.
5462
303a33fa
SM
54632014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5464
5465 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5466 mi_console->quote as the quoting character.
5467
196100a0
SM
54682014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5469
5470 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5471
f989a1c8
TT
54722014-04-29 Tom Tromey <tromey@redhat.com>
5473
5474 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5475 "show debug varobj".
5476
9404b58f
KM
54772014-05-07 Kyle McMartin <kyle@redhat.com>
5478
5479 Pushed by Joel Brobecker <brobecker@adacore.com>.
5480 * aarch64-tdep.c (aarch64_software_single_step): New function.
5481 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5482 with aarch64_software_single_step.
5483
5e49ba57
JB
54842014-05-05 Joel Brobecker <brobecker@adacore.com>
5485
5486 GDB 7.7.1 released.
5487
c888a17d
KS
54882014-05-05 Keith Seitz <keiths@redhat.com>
5489
5490 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5491 variable or history value is successfully parsed.
5492
290a839c
YQ
54932014-05-05 Yao Qi <yao@codesourcery.com>
5494 Pedro Alves <palves@redhat.com>
5495
5496 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5497 address of blocks that intersects the requested range. Trim
5498 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5499 sections.
5500 * ctf.c (ctf_xfer_partial): Likewise.
5501
91256dc2
YQ
55022014-05-05 Yao Qi <yao@codesourcery.com>
5503
5504 * printcmd.c (display_command): Remove the check to
5505 target_has_execution.
5506
07284463
MK
55072014-05-03 Mark Kettenis <kettenis@gnu.org>
5508
5509 * ppcobsd-nat.c: Include "obsd-nat.h".
5510 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5511 add_target.
5512 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5513
30a1e6cc
SDJ
55142014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5515
5516 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5517 and 16-bit signed and unsigned arguments. Update comment.
5518 (stap_parse_probe_arguments): Extend code to handle such
5519 arguments. Use warning instead of complaint to notify about
5520 unrecognized bitness.
5521
f33da99a
SDJ
55222014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5523
5524 PR breakpoints/16889
5525 * stap-probe.c (stap_parse_probe_arguments): Simplify
5526 check for non-prefixed probes (i.e., probes whose
5527 arguments do not start with "N@"). Always set the
5528 argument type to a sane value.
5529
95cf3b38
DT
55302014-05-01 David Taylor <dtaylor@emc.com>
5531
5532 * remote.c (compare_sections_command): Add -r option to compare
5533 all loadable read-only sections.
5534
1cfdf534
SC
55352014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5536
5537 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5538 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5539 Update all callers.
5540 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5541 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5542 Remove unused CORE_ADDR argument. Update all callers.
5543
ca4f7f8b
PA
55442014-04-29 Pedro Alves <palves@redhat.com>
5545
5546 * remote.c (struct packet_config) <detect>: Extend comment.
5547 (add_packet_config_cmd): Don't set the config's detect or support
5548 fields here.
5549 (init_all_packet_configs): Also initialize the config's 'detect'
5550 field.
5551 (reset_all_packet_configs_support): New function.
5552 (remote_open_1): Call reset_all_packet_configs_support instead of
5553 init_all_packet_configs.
5554 (_initialize_remote): Initialize all packet configs. Assert that
5555 all packets have an associated command, except a few known
5556 outliers.
5557
11c1ba78
JB
55582014-04-28 Joel Brobecker <brobecker@adacore.com>
5559
5560 * dwarf2read.c (read_subrange_type): Handle dynamic
5561 DW_AT_lower_bound attributes.
5562
8739bc53
JB
55632014-04-28 Joel Brobecker <brobecker@adacore.com>
5564
5565 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5566 dynamic bounds before computing its upper bound.
5567 (ada_discrete_type_low_bound): Same as above with the lower bound.
5568
6f8a3220
JB
55692014-04-28 Joel Brobecker <brobecker@adacore.com>
5570
5571 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5572 range types. Adjust the array handling implementation to
5573 take advantage of this change.
5574 (resolve_dynamic_range): New function, mostly extracted from
5575 resolve_dynamic_bounds.
5576 (resolve_dynamic_array): New function, mostly extracted from
5577 resolve_dynamic_bounds.
5578 (resolve_dynamic_bounds): Delete.
5579 (resolve_dynamic_type): Reimplement. Add handling of
5580 TYPE_CODE_RANGE types.
5581
4d072ce4
JB
55822014-04-28 Joel Brobecker <brobecker@adacore.com>
5583
5584 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5585 handling of parallel ___XA types.
5586
52865325
JB
55872014-04-28 Joel Brobecker <brobecker@adacore.com>
5588
5589 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5590 unnecessary second call to static_unwrap_type.
5591
433e77fa
HZ
55922014-04-27 Hui Zhu <hui@codesourcery.com>
5593
5594 * stack.c (print_frame_info): Call do_gdb_disassembly with
5595 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5596
b51a69ee
DE
55972014-04-26 Doug Evans <xdje42@gmail.com>
5598
5599 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5600
7ae1a6a6
PA
56012014-04-25 Pedro Alves <palves@redhat.com>
5602
5603 PR server/16255
5604 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5605 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5606 and newline from built string.
5607 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5608 (linux_ptrace_attach_fail_reason): ... this.
5609 * linux-nat.c (linux_nat_attach): Adjust to use
5610 linux_ptrace_attach_fail_reason.
5611
4082afcc
PA
56122014-04-25 Pedro Alves <palves@redhat.com>
5613
5614 * remote.c (struct remote_state): Remove multi_process_aware,
5615 non_stop_aware, cond_tracepoints, cond_breakpoints,
5616 breakpoint_commands, fast_tracepoints, static_tracepoints,
5617 install_in_trace, disconnected_tracing,
5618 enable_disable_tracepoints, string_tracing, and
5619 augmented_libraries_svr4_read fields.
5620 (remote_multi_process_p): Move further below in the file.
5621 (struct packet_config): Add comments.
5622 (update_packet_config): Delete function.
5623 (show_packet_config_cmd): Use packet_config_support.
5624 (add_packet_config_cmd): Use NULL as set callback.
5625 (packet_ok): "set remote foo-packet"-style commands no longer
5626 change config->supported -- adjust.
5627 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5628 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5629 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5630 (PACKET_QNonStop, PACKET_multiprocess_feature)
5631 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5632 (PACKET_DisconnectedTracing_feature)
5633 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5634 (set_remote_protocol_packet_cmd): Delete function.
5635 (packet_config_support, packet_support): New functions.
5636 (set_remote_protocol_Z_packet_cmd): Don't call
5637 update_packet_config.
5638 (remote_query_attached, remote_pass_signals)
5639 (remote_program_signals, remote_threads_info)
5640 (remote_threads_extra_info, remote_start_remote): Use
5641 packet_support.
5642 (remote_start_remote): Use packet_config_support and
5643 packet_support.
5644 (init_all_packet_configs): Set all packets to unknown support,
5645 instead of calling update_packet_config.
5646 (remote_check_symbols): Use packet_support.
5647 (remote_supported_packet): Unconditionally set the packet config's
5648 support status.
5649 (remote_multi_process_feature, remote_non_stop_feature)
5650 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5651 (remote_breakpoint_commands_feature)
5652 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5653 (remote_install_in_trace_feature)
5654 (remote_disconnected_tracing_feature)
5655 (remote_enable_disable_tracepoint_feature)
5656 (remote_string_tracing_feature)
5657 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5658 (remote_protocol_features): Adjust to use remote_supported_packet
5659 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5660 "ConditionalTracepoints", "ConditionalBreakpoints",
5661 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5662 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5663 "EnableDisableTracepoints", and "tracenz".
5664 (remote_query_supported): Use packet_support.
5665 (remote_open_1): Adjust.
5666 (extended_remote_attach_1): Use packet_support. Switch on the
5667 result of packet_ok instead of checking whether the packet ended
5668 up disabled.
5669 (remote_vcont_resume): Use packet_support.
5670 (remote_resume, remote_stop_ns, fetch_register_using_p)
5671 (remote_prepare_to_store, store_register_using_P)
5672 (check_binary_download, remote_write_bytes): Use packet_support.
5673 (remote_vkill): Use packet_support. Switch on the result of
5674 packet_ok instead of checking whether the packet ended up
5675 disabled.
5676 (extended_remote_supports_disable_randomization): Use
5677 packet_support.
5678 (extended_remote_run): Switch on the result of packet_ok instead
5679 of checking whether the packet ended up disabled.
5680 (remote_insert_breakpoint, remote_remove_breakpoint)
5681 (remote_insert_watchpoint, remote_remove_watchpoint)
5682 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5683 packet_support.
5684 (remote_search_memory): Use packet_config_support.
5685 (remote_get_thread_local_address, remote_get_tib_address)
5686 (remote_hostio_send_command, remote_can_execute_reverse): Use
5687 packet_support.
5688 (remote_supports_cond_tracepoints)
5689 (remote_supports_cond_breakpoints)
5690 (remote_supports_fast_tracepoints)
5691 (remote_supports_static_tracepoints)
5692 (remote_supports_install_in_trace)
5693 (remote_supports_enable_disable_tracepoint)
5694 (remote_supports_string_tracing)
5695 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5696 the packet config says the feature is enabled or disabled.
5697 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5698 (remote_get_trace_status): Use packet_support.
5699 (remote_set_disconnected_tracing): Adjust to check whether the
5700 feature is enabled with packet_support.
5701 (remote_set_trace_buffer_size, remote_use_agent)
5702 (remote_can_use_agent, remote_supports_btrace): Use
5703 packet_support.
5704 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5705 Use packet_config_support.
5706 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5707 the packet config says the feature is enabled or disabled.
5708 (set_range_stepping): Use packet_support.
5709
bdb52a22
TT
57102014-04-25 Tom Tromey <tromey@redhat.com>
5711
5712 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5713 argument.
5714
e9475ead
SA
57152014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5716
5717 * NEWS: Mention support for C99 variable length arrays.
5718
82eacd52
JB
57192014-04-24 Joel Brobecker <brobecker@adacore.com>
5720
5721 * ada-lang.c (standard_exc): Expand introductory comment.
5722
01f9f808
MS
57232014-04-24 Michael Sturm <michael.sturm@mintel.com>
5724 Walfred Tedeschi <walfred.tedeschi@intel.com>
5725
5726 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5727 AVX512 registers.
5728 (amd64_linux_read_description): Add code to handle AVX512 xstate
5729 mask and return respective tdesc.
5730 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5731 and features/i386/x32-avx512-linux.c.
5732 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5733 (amd64_linux_core_read_description): Add code to handle AVX512
5734 xstate mask and return respective tdesc.
5735 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5736 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5737 calculation.
5738 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5739 (tdesc_amd64_avx512_linux): New prototype.
5740 (tdesc_x32_avx512_linux): Likewise.
5741 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5742 features/i386/x32-avx512.c.
5743 (amd64_ymm_avx512_names): New register names for pseudo
5744 registers YMM16-31.
5745 (amd64_ymmh_avx512_names): New register names for raw registers
5746 YMMH16-31.
5747 (amd64_k_names): New register names for K registers.
5748 (amd64_zmmh_names): New register names for ZMM raw registers.
5749 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5750 (amd64_xmm_avx512_names): New register names for XMM16-31
5751 registers.
5752 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5753 registers.
5754 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5755 if feature is present.
5756 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5757 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5758 (AMD64_NUM_REGS): Adjust to new number of registers.
5759 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5760 registers supplied via XSTATE by AVX512 registers.
5761 (i386_linux_read_description): Add case for AVX512.
5762 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5763 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5764 (i386_linux_core_read_description): Add case for AVX512.
5765 (i386_linux_init_abi): Install supported register note section
5766 for AVX512.
5767 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5768 AVX512.
5769 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5770 registers to be number of zmm7h + 1.
5771 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5772 * i386-tdep.c: Include features/i386/i386-avx512.c.
5773 (i386_zmm_names): Add ZMM pseudo register names array.
5774 (i386_zmmh_names): Add ZMM raw register names array.
5775 (i386_k_names): Add K raw register names array.
5776 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5777 registers. AVX512 has 16 more ZMM registers than there are YMM
5778 registers.
5779 (i386_zmmh_regnum_p): Add function to look up register number of
5780 ZMM raw registers.
5781 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5782 (i386_k_regnum_p): Likewise for K raw registers.
5783 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5784 registers added by AVX512.
5785 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5786 registers added by AVX512.
5787 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5788 added by AVX512.
5789 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5790 (i386_pseudo_register_name): Add ZMM pseudo registers.
5791 (i386_zmm_type): Construct and return vector registers type for ZMM
5792 registers.
5793 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5794 ZMM0-31 pseudo registers and K registers.
5795 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5796 and YMM16-31 registers from register cache.
5797 (i386_pseudo_register_write): Add code to write K, ZMM and
5798 YMM16-31 registers.
5799 (i386_register_reggroup_p): Add code to include/exclude AVX512
5800 registers in/from respective register groups.
5801 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5802 registers if feature is present in xcr0.
5803 (i386_gdbarch_init): Add code to initialize AVX512 feature
5804 variables in tdep structure, wire in pseudo registers and call
5805 initialize_tdesc_i386_avx512.
5806 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5807 variables.
5808 (i386_regnum): Add AVX512 registers.
5809 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5810 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5811 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5812 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5813 512 bits wide.
5814 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5815 (i386_ymm_avx512_regnum_p): Likewise.
5816 (i386_k_regnum_p): Likewise.
5817 (i386_zmm_regnum_p): Likewise.
5818 (i386_zmmh_regnum_p): Likewise.
5819 * i387-tdep.c : Update year in copyright notice.
5820 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5821 XSAVE buffer.
5822 (XSAVE_YMM_AVX512_ADDR): New macro.
5823 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5824 XSAVE buffer.
5825 (XSAVE_XMM_AVX512_ADDR): New macro.
5826 (xsave_avx512_k_offset): New table for K register offsets in
5827 XSAVE buffer.
5828 (XSAVE_AVX512_K_ADDR): New macro.
5829 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5830 in XSAVE buffer.
5831 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5832 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5833 buffer.
5834 (i387_collect_xsave): Add code to collect AVX512 registers from
5835 XSAVE buffer.
5836 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5837 of XMM16-31 registers.
5838 (I387_NUM_K_REGS): New define for number of K registers.
5839 (I387_K0_REGNUM): New define for K0 register number.
5840 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5841 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5842 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5843 registers.
5844 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5845 (I387_XMM16_REGNUM): New define for XMM16 register number.
5846 (I387_YMM0_REGNUM): New define for YMM0 register number.
5847 (I387_KEND_REGNUM): New define for last K register number.
5848 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5849 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5850 number.
5851 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5852 number.
5853 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5854 size.
5855 * features/Makefile: Add AVX512 related files.
5856 * features/i386/32bit-avx512.xml: New file.
5857 * features/i386/64bit-avx512.xml: Likewise.
5858 * features/i386/amd64-avx512-linux.c: Likewise.
5859 * features/i386/amd64-avx512-linux.xml: Likewise.
5860 * features/i386/amd64-avx512.c: Likewise.
5861 * features/i386/amd64-avx512.xml: Likewise.
5862 * features/i386/i386-avx512-linux.c: Likewise.
5863 * features/i386/i386-avx512-linux.xml: Likewise.
5864 * features/i386/i386-avx512.c: Likewise.
5865 * features/i386/i386-avx512.xml: Likewise.
5866 * features/i386/x32-avx512-linux.c: Likewise.
5867 * features/i386/x32-avx512-linux.xml: Likewise.
5868 * features/i386/x32-avx512.c: Likewise.
5869 * features/i386/x32-avx512.xml: Likewise.
5870 * regformats/i386/amd64-avx512-linux.dat: New file.
5871 * regformats/i386/amd64-avx512.dat: Likewise.
5872 * regformats/i386/i386-avx512-linux.dat: Likewise.
5873 * regformats/i386/i386-avx512.dat: Likewise.
5874 * regformats/i386/x32-avx512-linux.dat: Likewise.
5875 * regformats/i386/x32-avx512.dat: Likewise.
5876 * NEWS: Add note about new support for AVX512.
5877
5878
08351840
PA
58792014-04-23 Pedro Alves <palves@redhat.com>
5880
5881 * breakpoint.c (insert_bp_location): Tolerate errors if the
5882 breakpoint is set in a user-loaded objfile.
5883 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5884 location is marked shlib_disabled. If the breakpoint is set in a
5885 user-loaded objfile is a GDB-side memory breakpoint, validate it
5886 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5887 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5888 flag.
5889 * mem-break.c (memory_validate_breakpoint): New function.
5890 * objfiles.c (userloaded_objfile_contains_address_p): New
5891 function.
5892 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5893 * target.h (memory_validate_breakpoint): New declaration.
5894
076855f9
PA
58952014-04-23 Pedro Alves <palves@redhat.com>
5896
5897 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5898 the breakpoint is set in a shared library, only suppress
5899 errors for software breakpoints, not hardware breakpoints.
5900
483805cf
PA
59012014-04-22 Pedro Alves <palves@redhat.com>
5902
5903 * infrun.c (schedlock_applies): New function, factored out from
5904 find_thread_needs_step_over.
5905 (find_thread_needs_step_over): Use it.
5906 (switch_back_to_stepped_thread): Always clear trap_expected if the
5907 step over is finished. Return early if scheduler locking applies.
5908 Look for the stepping thread and a potential step-over thread with
5909 a single loop.
5910 (currently_stepping_or_nexting_callback): Delete.
5911
a75fef0e
NC
59122014-04-22 Nick Clifton <nickc@redhat.com>
5913
5914 * NEWS: Mention that ARM sim now supports tracing.
5915
48b6e87e
YQ
59162014-04-22 Yao Qi <yao@codesourcery.com>
5917
5918 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5919 to ...
5920 * tracefile.c (tracefile_fetch_registers): ... it. New
5921 function.
5922 * tracefile.h (tracefile_fetch_registers): Declare.
5923 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5924 tracefile_fetch_registers.
5925
17617f2d
EZ
59262014-04-19 Eli Zaretskii <eliz@gnu.org>
5927
5928 PR gdb/14018
5929 * windows-nat.c (thread_rec): Don't display a warning when
5930 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5931 fails for any reason, set th->suspended to -1, so that we don't
5932 try to resume such a thread. Also, don't return NULL in these
5933 cases, to avoid completely ruin the session due to "PC register is
5934 not available" error.
5935 (do_windows_fetch_inferior_registers): Check errors in
5936 GetThreadContext call.
5937 (windows_continue): Accept an additional argument KILLED; if not
5938 zero, ignore errors in the SetThreadContext call, since the
5939 inferior was killed and is shutting down.
5940 (windows_resume, get_windows_debug_event)
5941 (windows_create_inferior, windows_mourn_inferior)
5942 (windows_kill_inferior): All callers of windows_continue changed
5943 to adjust to its new calling sequence.
5944
5723a6fd
YQ
59452014-04-19 Yao Qi <yao@codesourcery.com>
5946
5947 * ctf.c (ctf_open): Call post_create_inferior.
5948
614d5099
YQ
59492014-04-19 Yao Qi <yao@codesourcery.com>
5950
5951 * ctf.c (handle_id): New static variable.
5952 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5953 value. Get the declaration of event "register" and get length
5954 of field "contents".
5955
dac3e710
YQ
59562014-04-19 Yao Qi <yao@codesourcery.com>
5957
5958 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5959
2bca57ba
SC
59602014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5961
5962 * valops.c (oload_method_static): Remove unnecessary argument
5963 METHOD. Update all callers.
5964
51d48146
PA
59652014-04-18 Pedro alves <palves@redhat.com>
5966 Tom Tromey <tromey@redhat.com>
5967
5968 PR backtrace/15558
5969 * frame.c (get_prev_frame_1): Rename to ...
5970 (get_prev_frame_always): ... this, and make extern. Adjust.
5971 (skip_artificial_frames): Use get_prev_frame_always.
5972 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5973 (get_frame_unwind_stop_reason): Adjust to rename.
5974 * frame.h (get_prev_frame_always): Declare.
5975 * inline-frame.c: Include frame.h.
5976 (inline_frame_this_id): Use get_prev_frame_always.
5977
1bdad2e0
TG
59782014-04-18 Tristan Gingold <gingold@adacore.com>
5979
5980 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5981 code by using bfd_mach_o_get_base_address.
5982
7ce16bd4
UW
59832014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5984
5985 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5986 (spu_ax_pseudo_register_collect): New function.
5987 (spu_ax_pseudo_register_push_stack): Likewise.
5988 (spu_dwarf_reg_to_regnum): Likewise.
5989 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5990
2ed3c037
UW
59912014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5992
5993 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5994 Replace FRAME argument with FRAME_ID.
5995 * gdbarch.c, gdbarch.h: Regenerate.
5996 * findvar.c (default_value_from_register): Add GDBARCH argument;
5997 replace FRAME by FRAME_ID. No longer call get_frame_id.
5998 (value_from_register): Update call to gdbarch_value_from_register.
5999 * value.h (default_value_from_register): Update prototype.
6000 * s390-linux-tdep.c (s390_value_from_register): Update interface
6001 and call to default_value_from_register.
6002 * spu-tdep.c (spu_value_from_register): Likewise.
6003
6004 * findvar.c (address_from_register): Remove TYPE argument.
6005 Do not call value_from_register; use gdbarch_value_from_register
6006 with null_frame_id instead.
6007 * value.h (address_from_register): Update prototype.
6008 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6009 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6010 address_from_register interface change.
6011
71e50e83
YQ
60122014-04-17 Yao Qi <yao@codesourcery.com>
6013
6014 * gdbtypes.h: Update comments to link to types and macros'
6015 definitions.
6016
7a23c549
SC
60172014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6018
6019 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6020
22869d73
KS
60212014-04-16 Keith Seitz <keiths@redhat.com>
6022
6023 PR gdb/15827
6024 * dwarf2read.c (skip_one_die): Check that all relative-offset
6025 sibling DIEs fall within range of the current reader's buffer.
6026 (read_partial_die): Likewise.
6027
c4f87ca6
KS
60282014-04-16 Keith Seitz <keiths@redhat.com>
6029
6030 PR c++/16597
6031 * cp-namespace.c (lookup_symbol_file): If the type name of
6032 `this' is NULL, return immediately.
6033
b50c8614
KS
60342014-04-14 Keith Seitz <keiths@redhat.com>
6035
6036 PR c++/16253
6037 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6038 from symbol_matches_domain in symtab.c. All local callers
6039 of symbol_matches_domain updated.
6040 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6041 search STRUCT_DOMAIN.
6042 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6043 independently. standard_lookup will do that automatically.
6044 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6045 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6046 (cp_lookup_symbol_in_namespace): Likewise.
6047 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6048 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6049 may return a STRUCT_DOMAIN match.
6050 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6051 * cp-support.c: Include language.h.
6052 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6053 VAR_DOMAIN.
6054 * psymtab.c (match_partial_symbol): Compare the requested
6055 domain with the symbol's domain directly.
6056 (lookup_partial_symbol): Likewise.
6057 * symtab.c (lookup_symbol_in_language): Explain when/why
6058 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6059 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6060 appropriate languages.
6061 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6062 and moved to ada-lang.c
6063 (lookup_block_symbol): Explain that this function only returns
6064 symbol matching the requested DOMAIN.
6065 Compare the requested domain with the symbol's domain directly.
6066 (iterate_over_symbols): Compare the requested domain with the
6067 symbol's domain directly.
6068 * symtab.h (symbol_matches_domain): Remove.
6069
3d567982
TT
60702014-04-14 Tom Tromey <tromey@redhat.com>
6071
6072 PR c++/15246:
6073 * c-exp.y (type_aggregate_p): New function.
6074 (qualified_name, classify_inner_name): Use it.
6075 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6076 and TYPE_TARGET_TYPE of an enum type.
6077 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6078 an enum type.
6079 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6080 handle TYPE_DECLARED_CLASS.
6081 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6082 types.
6083 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6084 * valops.c (enum_constant_from_type): New function.
6085 (value_aggregate_elt): Use it.
6086 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6087 TYPE_CODE_ENUM.
6088
c848d642
TT
60892014-04-14 Tom Tromey <tromey@redhat.com>
6090
6091 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6092 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6093 const.
6094 * value.h (value_aggregate_elt): Update.
6095
0626fc76
TT
60962014-04-14 Tom Tromey <tromey@redhat.com>
6097
6098 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6099
5ecaaa66
SA
61002014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6101
6102 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6103 (evaluate_subexp_standard): Pass noside argument.
6104 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6105 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6106 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6107 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6108 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6109
1612e0c0
SA
61102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6111
6112 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6113 points to a constant blob.
6114
c451ebe5
SA
61152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6116
6117 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6118 property and store it as the high bound and flag the range accordingly.
6119 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6120 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6121 * gdbtypes.h (enum range_flags): New enum.
6122 (struct range_bounds): Add flags member.
6123
1d42e4c4
SA
61242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6125
6126 * c-typeprint.c (c_type_print_varspec_suffix): Added
6127 check for not yet resolved high bound. If unresolved, print
6128 "variable length" string to the console instead of random
6129 length.
6130
9f1f738a
SA
61312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6132
6133 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6134 value.
6135 (ada_template_to_fixed_record_type_1): Likewise.
6136 (ada_to_fixed_type_1): Likewise.
6137 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6138 (cp_print_value): Likewise.
6139 * d-valprint.c (dynamic_array_type): Likewise.
6140 * findvar.c (address_of_variable): Likewise.
6141 * jv-valprint.c (java_value_print): Likewise.
6142 * valops.c (value_ind): Likewise.
6143 * value.c (coerce_ref): Likewise.
6144
3c8452d4
SA
61452014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6146
6147 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6148 value and retrieve the dynamic type size.
6149
4ad88275
SA
61502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6151
6152 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6153 passed to sizeof is dynamic evaluate the argument to compute the length.
6154
80180f79
SA
61552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6156 Joel Brobecker <brobecker@adacore.com>
6157
6158 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6159 (dwarf2_evaluate_property): New function.
6160 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6161 * dwarf2read.c (attr_to_dynamic_prop): New function.
6162 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6163 attribute.
6164 * gdbtypes.c: Include dwarf2loc.h.
6165 (is_dynamic_type): New function.
6166 (resolve_dynamic_type): New function.
6167 (resolve_dynamic_bounds): New function.
6168 (get_type_length): New function.
6169 (check_typedef): Use get_type_length to compute type length.
6170 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6171 (TYPE_LOW_BOUND_KIND): New macro.
6172 (is_dynamic_type): New function prototype.
6173 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6174 to resolve dynamic properties of the type. Update comment.
6175 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6176
a1556843
RH
61772014-04-14 Richard Henderson <rth@redhat.com>
6178
6179 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6180
0be03e84
DE
61812014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6182 Doug Evans <xdje42@gmail.com>
6183
6184 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6185 dereference TYPE_CODE_REF values.
6186
6b662e19
JB
61872014-04-11 Joel Brobecker <brobecker@adacore.com>
6188
6189 Revert the following changes due to regressions:
6190
6191 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6192 (dwarf2_evaluate_property): New function.
6193 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6194 * dwarf2read.c (attr_to_dynamic_prop): New function.
6195 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6196 attribute.
6197 * gdbtypes.c: Include dwarf2loc.h.
6198 (is_dynamic_type): New function.
6199 (resolve_dynamic_type): New function.
6200 (resolve_dynamic_bounds): New function.
6201 (get_type_length): New function.
6202 (check_typedef): Use get_type_length to compute type length.
6203 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6204 (TYPE_LOW_BOUND_KIND): New macro.
6205 (is_dynamic_type): New function prototype.
6206 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6207 to resolve dynamic properties of the type. Update comment.
6208 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6209
6210 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6211 passed to sizeof is dynamic evaluate the argument to compute the length.
6212
6213 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6214 value and retrieve the dynamic type size.
6215
6216 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6217 (ada_template_to_fixed_record_type_1): Likewise.
6218 (ada_to_fixed_type_1): Likewise.
6219 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6220 (cp_print_value): Likewise.
6221 * d-valprint.c (dynamic_array_type): Likewise.
6222 * eval.c (evaluate_subexp_with_coercion): Likewise.
6223 * findvar.c (address_of_variable): Likewise.
6224 * jv-valprint.c (java_value_print): Likewise.
6225 * valops.c (value_ind): Likewise.
6226 * value.c (coerce_ref): Likewise.
6227
6228 * c-typeprint.c (c_type_print_varspec_suffix): Added
6229 check for not yet resolved high bound. If unresolved, print
6230 "variable length" string to the console instead of random
6231 length.
6232
6233 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6234 property and store it as the high bound and flag the range accordingly.
6235 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6236 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6237 * gdbtypes.h (enum range_flags): New enum.
6238 (struct range_bounds): Add flags member.
6239
6240 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6241 points to a constant blob.
6242
6243 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6244 (evaluate_subexp_standard): Pass noside argument.
6245 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6246 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6247 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6248 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6249 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6250
245a5f0b
KS
62512014-04-11 Keith Seitz <keiths@redhat.com>
6252
6253 PR c++/16675
6254 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6255 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6256 reference types.
6257
3bce8237
SA
62582014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6259
6260 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6261 (evaluate_subexp_standard): Pass noside argument.
6262 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6263 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6264 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6265 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6266 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6267
92b09522
SA
62682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6269
6270 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6271 points to a constant blob.
6272
e1969afb
SA
62732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6274
6275 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6276 property and store it as the high bound and flag the range accordingly.
6277 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6278 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6279 * gdbtypes.h (enum range_flags): New enum.
6280 (struct range_bounds): Add flags member.
6281
b86138fb
SA
62822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6283
6284 * c-typeprint.c (c_type_print_varspec_suffix): Added
6285 check for not yet resolved high bound. If unresolved, print
6286 "variable length" string to the console instead of random
6287 length.
6288
bcd629a4
SA
62892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6290
6291 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6292 (ada_template_to_fixed_record_type_1): Likewise.
6293 (ada_to_fixed_type_1): Likewise.
6294 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6295 (cp_print_value): Likewise.
6296 * d-valprint.c (dynamic_array_type): Likewise.
6297 * eval.c (evaluate_subexp_with_coercion): Likewise.
6298 * findvar.c (address_of_variable): Likewise.
6299 * jv-valprint.c (java_value_print): Likewise.
6300 * valops.c (value_ind): Likewise.
6301 * value.c (coerce_ref): Likewise.
6302
04b19544
SA
63032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6304
6305 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6306 value and retrieve the dynamic type size.
6307
26cb189f
SA
63082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6309
6310 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6311 passed to sizeof is dynamic evaluate the argument to compute the length.
6312
37c1ab67
SA
63132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6314
6315 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6316 (dwarf2_evaluate_property): New function.
6317 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6318 * dwarf2read.c (attr_to_dynamic_prop): New function.
6319 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6320 attribute.
6321 * gdbtypes.c: Include dwarf2loc.h.
6322 (is_dynamic_type): New function.
6323 (resolve_dynamic_type): New function.
6324 (resolve_dynamic_bounds): New function.
6325 (get_type_length): New function.
6326 (check_typedef): Use get_type_length to compute type length.
6327 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6328 (TYPE_LOW_BOUND_KIND): New macro.
6329 (is_dynamic_type): New function prototype.
6330 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6331 to resolve dynamic properties of the type. Update comment.
6332 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6333
729efb13
SA
63342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6335
6336 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6337 declaring high/low bounds and change uses accordingly. Call
6338 create_range_type instead of create_static_range_type.
6339 * gdbtypes.c (create_range_type): New function.
6340 (create_range_type): Convert bounds into struct bound_prop and pass
6341 them to create_range_type.
6342 * gdbtypes.h (struct bound_prop): New struct.
6343 (create_range_type): New function prototype.
6344 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6345 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6346 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6347 part of the bound.
6348 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6349
0c9c3474
SA
63502014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6351
6352 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6353 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6354 * ada-lang.c: All uses of create_range_type updated.
6355 * coffread.c: All uses of create_range_type updated.
6356 * dwarf2read.c: All uses of create_range_type updated.
6357 * f-exp.y: All uses of create_range_type updated.
6358 * m2-valprint.c: All uses of create_range_type updated.
6359 * mdebugread.c: All uses of create_range_type updated.
6360 * stabsread.c: All uses of create_range_type updated.
6361 * valops.c: All uses of create_range_type updated.
6362 * valprint.c: All uses of create_range_type updated.
6363
9d497a19
PA
63642014-04-10 Pedro Alves <palves@redhat.com>
6365
6366 * breakpoint.c (single_step_breakpoints)
6367 (single_step_gdbarch): Move up in the file.
6368 (one_breakpoint_xfer_memory): New function, factored out from ...
6369 (breakpoint_xfer_memory): ... here. Also process single-step
6370 breakpoints.
6371
15a9128a
TG
63722014-04-09 Tristan Gingold <gingold@adacore.com>
6373
6374 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6375 comments.
6376 (darwin_decode_exception_message): Free port only after use.
6377
9c97a070
PL
63782014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6379
6380 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6381 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6382 when setting the size of call_length.
6383
7af389b8
SC
63842014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6385
6386 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6387 dereference TYPE_CODE_REF values.
6388
86ad98c3
JB
63892014-04-07 Joel Brobecker <brobecker@adacore.com>
6390
6391 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6392 end of warning message.
6393
b0aeadb3
DE
63942014-04-03 Doug Evans <dje@google.com>
6395
6396 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6397 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6398
5979d6b6
AM
63992014-04-02 Alan Modra <amodra@gmail.com>
6400
6401 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6402 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6403 (struct symbol_file_add_from_memory_args): Add size field.
6404 (find_vdso_size): New function.
6405 (add_vsyscall_page): Attempt to find vdso size.
6406
0d60c288
DE
64072014-04-01 Doug Evans <dje@google.com>
6408
6409 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6410
a41f2563
TG
64112014-04-01 Tristan Gingold <gingold@adacore.com>
6412
6413 * darwin-nat.c (darwin_encode_reply): Add prototype.
6414 (darwin_decode_exception_message): Reply to unknown inferiors.
6415 (darwin_decode_message): Handle message by id. Ignore message
6416 to unknown inferior.
6417 (darwin_wait): Discard unknown messages, add debug trace.
6418
11a865c8
DE
64192014-03-31 Doug Evans <dje@google.com>
6420
6421 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6422 comp_dir_string.
6423
770e7fc7
DE
64242014-03-31 Doug Evans <dje@google.com>
6425
6426 New option "set print symbol-loading".
6427 * NEWS: Mention it.
6428 * solib.c (solib_read_symbols): Only print symbol loading messages
6429 if requested.
6430 (solib_add): If symbol loading is in "brief" mode, notify user
6431 symbols are being loaded.
6432 (reload_shared_libraries_1): Ditto.
6433 * symfile.c (print_symbol_loading_off): New static global.
6434 (print_symbol_loading_brief): New static global.
6435 (print_symbol_loading_full): New static global.
6436 (print_symbol_loading_enums): New static global.
6437 (print_symbol_loading): New static global.
6438 (print_symbol_loading_p): New function.
6439 (symbol_file_add_with_addrs): Only print symbol loading messages
6440 if requested.
6441 (_initialize_symfile): Register "print symbol-loading" set/show
6442 command.
6443 * symfile.h (print_symbol_loading_p): Declare.
6444
c32c64b7
DE
64452014-03-30 Doug Evans <xdje42@gmail.com>
6446
6447 * infrun.c (set_last_target_status): New function.
6448 (handle_inferior_event): Call it.
6449
7c0bc051
DE
64502014-03-30 Doug Evans <xdje42@gmail.com>
6451
6452 * inferior.h (enum stop_kind): Improve comment.
6453
8776cfe9
JB
64542014-03-28 Joel Brobecker <brobecker@adacore.com>
6455
6456 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6457 a reference, strip the reference layer before calling
6458 the lang_ops value_has_mutated callback.
6459
410a0ff2
SDJ
64602014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6461
6462 Remove some globals from our parser.
6463 * language.c (unk_lang_parser): Add "struct parser_state"
6464 argument.
6465 * language.h (struct language_defn) <la_parser>: Likewise.
6466 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6467 (initialize_expout): Add "struct parser_state" argument.
6468 Rewrite function to use the parser state.
6469 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6470 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6471 write_exp_elt_longcst, write_exp_elt_dblcst,
6472 write_exp_elt_decfloatcst, write_exp_elt_type,
6473 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6474 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6475 write_dollar_variable): Likewise.
6476 (parse_exp_in_context_1): Use parser state.
6477 (insert_type_address_space): Add "struct parser_state" argument.
6478 Use parser state.
6479 (increase_expout_size): New function.
6480 * parser-defs.h: Forward declare "struct language_defn" and
6481 "struct parser_state".
6482 (expout, expout_size, expout_ptr): Remove extern declarations.
6483 (parse_gdbarch, parse_language): Rewrite macro declarations to
6484 accept the parser state.
6485 (struct parser_state): New struct.
6486 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6487 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6488 write_exp_elt_decfloatcst, write_exp_elt_type,
6489 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6490 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6491 write_exp_msymbol, write_dollar_variable,
6492 mark_struct_expression, insert_type_address_space): Add "struct
6493 parser_state" argument.
6494 (increase_expout_size): New function.
6495 * utils.c (do_clear_parser_state): New function.
6496 (make_cleanup_clear_parser_state): Likewise.
6497 * utils.h (make_cleanup_clear_parser_state): New function
6498 prototype.
6499 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6500 Update calls to write_exp* in order to pass the parser state.
6501 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6502 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6503 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6504 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6505 * stap-probe.c (stap_parse_register_operand): Likewise.
6506 (stap_parse_single_operand): Likewise.
6507 (stap_parse_argument_1): Likewise.
6508 (stap_parse_argument): Use parser state.
6509 * stap-probe.h: Include "parser-defs.h".
6510 (struct stap_parse_info) <pstate>: New field.
6511 * c-exp.y (parse_type): Rewrite to use parser state.
6512 (yyparse): Redefine to c_parse_internal.
6513 (pstate): New global variable.
6514 (parse_number): Add "struct parser_state" argument.
6515 (write_destructor_name): Likewise.
6516 (type_exp): Update calls to write_exp* and similars in order to
6517 use parser state.
6518 (exp1, exp, variable, qualified_name, space_identifier,
6519 typename, typebase): Likewise.
6520 (write_destructor_name, parse_number, lex_one_token,
6521 classify_name, classify_inner_name, c_parse): Add "struct
6522 parser_state" argument. Update function to use parser state.
6523 * c-lang.h: Forward declare "struct parser_state".
6524 (c_parse): Add "struct parser_state" argument.
6525 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6526 (yyparse): Redefine macro to ada_parse_internal.
6527 (pstate): New variable.
6528 (write_int, write_object_renaming, write_var_or_type,
6529 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6530 type_int, type_long, type_long_long, type_float, type_double,
6531 type_long_double, type_char, type_boolean, type_system_address):
6532 Add "struct parser_state" argument.
6533 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6534 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6535 var_or_type, aggregate, aggregate_component_list,
6536 positional_list, others, component_group,
6537 component_associations): Update calls to write_exp* and similar
6538 functions in order to use parser state.
6539 (ada_parse, write_var_from_sym, write_int,
6540 write_exp_op_with_string, write_object_renaming,
6541 find_primitive_type, write_selectors, write_ambiguous_var,
6542 write_var_or_type, write_name_assoc, type_int, type_long,
6543 type_long_long, type_float, type_double, type_long_double,
6544 type_char, type_boolean, type_system_address): Add "struct
6545 parser_state" argument. Adjust function to use parser state.
6546 * ada-lang.c (parse): Likewise.
6547 * ada-lang.h: Forward declare "struct parser_state".
6548 (ada_parse): Add "struct parser_state" argument.
6549 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6550 calls to both functions.
6551 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6552 parser state.
6553 (yyparse): Redefine macro to f_parse_internal.
6554 (pstate): New variable.
6555 (parse_number): Add "struct parser_state" argument.
6556 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6557 and similars in order to use parser state.
6558 (parse_number): Adjust code to use parser state.
6559 (yylex): Likewise.
6560 (f_parse): New function.
6561 * f-lang.h: Forward declare "struct parser_state".
6562 (f_parse): Add "struct parser_state" argument.
6563 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6564 parser state.
6565 (yyparse): Redefine macro for java_parse_internal.
6566 (pstate): New variable.
6567 (push_expression_name, push_expression_name, insert_exp): Add
6568 "struct parser_state" argument.
6569 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6570 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6571 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6572 PostIncrementExpression, PostDecrementExpression,
6573 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6574 UnaryExpressionNotPlusMinus, CastExpression,
6575 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6576 RelationalExpression, EqualityExpression, AndExpression,
6577 ExclusiveOrExpression, InclusiveOrExpression,
6578 ConditionalAndExpression, ConditionalOrExpression,
6579 ConditionalExpression, Assignment, LeftHandSide): Update
6580 calls to write_exp* and similars in order to use parser state.
6581 (parse_number): Ajust code to use parser state.
6582 (yylex): Likewise.
6583 (java_parse): New function.
6584 (push_variable): Add "struct parser_state" argument. Adjust
6585 code to user parser state.
6586 (push_fieldnames, push_qualified_expression_name,
6587 push_expression_name, insert_exp): Likewise.
6588 * jv-lang.h: Forward declare "struct parser_state".
6589 (java_parse): Add "struct parser_state" argument.
6590 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6591 parser state.
6592 (yyparse): Redefine macro to m2_parse_internal.
6593 (pstate): New variable.
6594 (type_exp, exp, fblock, variable, type): Update calls to
6595 write_exp* and similars to use parser state.
6596 (yylex): Likewise.
6597 (m2_parse): New function.
6598 * m2-lang.h: Forward declare "struct parser_state".
6599 (m2_parse): Add "struct parser_state" argument.
6600 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6601 * objc-lang.h: Forward declare "struct parser_state".
6602 (end_msglist): Add "struct parser_state" argument.
6603 * p-exp.y (parse_type): Rewrite macro to use parser state.
6604 (yyparse): Redefine macro to pascal_parse_internal.
6605 (pstate): New variable.
6606 (parse_number): Add "struct parser_state" argument.
6607 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6608 write_exp* and similars in order to use parser state.
6609 (parse_number, yylex): Adjust code to use parser state.
6610 (pascal_parse): New function.
6611 * p-lang.h: Forward declare "struct parser_state".
6612 (pascal_parse): Add "struct parser_state" argument.
6613 * go-exp.y (parse_type): Rewrite macro to use parser state.
6614 (yyparse): Redefine macro to go_parse_internal.
6615 (pstate): New variable.
6616 (parse_number): Add "struct parser_state" argument.
6617 (type_exp, exp1, exp, variable, type): Update calls to
6618 write_exp* and similars in order to use parser state.
6619 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6620 to use parser state.
6621 (go_parse): Likewise.
6622 * go-lang.h: Forward declare "struct parser_state".
6623 (go_parse): Add "struct parser_state" argument.
6624
342587c4
DE
66252014-03-27 Doug Evans <dje@google.com>
6626
6627 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6628
33e80786
DE
66292014-03-27 Doug Evans <dje@google.com>
6630
6631 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6632 Remove argument abbrev_section. All callers updated.
6633
1dbab08b
DE
66342014-03-27 Doug Evans <dje@google.com>
6635
6636 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6637 addr_base, ranges_base.
6638
318d3177
KS
66392014-03-26 Keith Seitz <keiths@redhat.com>
6640
6641 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6642 types, not VAR_DOMAIN.
6643
1e54db15
SL
66442014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6645
6646 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6647 "ra" registers.
6648 * features/nios2-linux.c: Regenerated.
6649 * features/nios2.c: Regenerated.
6650
d3839ede
PA
66512014-03-25 Pedro Alves <palves@redhat.com>
6652
6653 * cli/cli-script.c (script_from_file): Force the interpreter to
6654 sync mode.
6655
7588d2ec
PL
66562014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6657
6658 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6659 small stack allocation.
6660
a6290449
TG
66612014-03-24 Tristan Gingold <gingold@adacore.com>
6662
6663 * darwin-nat.c (exc_server): Remove unused prototype.
6664 (darwin_dump_message): Correctly display data on x86_64.
6665 (darwin_encode_reply): Fix style.
6666 Add comments and fix indentation.
6667
31ae9d24 66682014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6669
6670 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6671
6339bfc4
DE
66722014-03-22 Doug Evans <xdje42@gmail.com>
6673
6674 * infcmd.c: Whitespace fixes.
6675 (interrupt_command): Merge two function comments into one.
6676
0a07590b
DE
66772014-03-22 Doug Evans <xdje42@gmail.com>
6678
6679 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6680 All uses updated.
6681
b55fbac4
YQ
66822014-03-22 Yao Qi <yao@codesourcery.com>
6683
6684 * remote.c (target_read_live_memory): Remove.
6685 (memory_xfer_live_readonly_partial): Rename it to
6686 remote_xfer_live_readonly_partial. Remove argument 'object'.
6687 All callers updated. Call remote_read_bytes_1
6688 instead of target_read_live_memory.
6689 * tracepoint.c (set_traceframe_number): Remove.
6690 (make_cleanup_restore_traceframe_number): Likewise .
6691 * tracepoint.h (set_traceframe_number): Remove declaration.
6692 (make_cleanup_restore_traceframe_number): Likewise.
6693
9217e74e
YQ
66942014-03-22 Yao Qi <yao@codesourcery.com>
6695
6696 * remote.c (remote_read_bytes): Move code on reading from the
6697 remote stub to ...
6698 (remote_read_bytes_1): ... here. New function.
6699
8acf9577
YQ
67002014-03-22 Yao Qi <yao@codesourcery.com>
6701
6702 * ctf.c (ctf_xfer_partial): Check the return value of
6703 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6704 return TARGET_XFER_UNAVAILABLE.
6705 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6706 * target.c (target_read_live_memory): Move it to remote.c.
6707 (memory_xfer_live_readonly_partial): Likewise.
6708 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6709 * remote.c (target_read_live_memory): Moved from target.c.
6710 (memory_xfer_live_readonly_partial): Likewise.
6711 (remote_read_bytes): Factored out from
6712 memory_xfer_partial_1.
6713
feef67ab
DE
67142014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6715
6716 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6717 NULL pointer.
6718
b65dc60b
PA
67192014-03-21 Pedro Alves <palves@redhat.com>
6720
6721 * infrun.c (normal_stop): Extend comment.
6722
b4ab256d
HZ
67232014-03-21 Hui Zhu <hui@codesourcery.com>
6724 Pedro Alves <palves@redhat.com>
6725
6726 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6727 static buffer.
6728 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6729 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6730 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6731
deba7593
MR
67322014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6733
6734 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6735 `z' formatted output modifier.
6736
1bff71c3
SDJ
67372014-03-20 Tom Tromey <tromey@redhat.com>
6738 Sergio Durigan Junior <sergiodj@redhat.com>
6739
6740 * probe.c (parse_probes): Turn assert into an ordinary error.
6741 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6742 exceptions when parsing probes. Rearrange the code for clarity.
6743
90e28950
TT
67442014-03-20 Tom Tromey <tromey@redhat.com>
6745
6746 PR gdb/14135
6747 * top.c (execute_command): Only dispatch events if the command
6748 started the target.
6749
beb460e8
PA
67502014-03-20 Tom Tromey <tromey@redhat.com>
6751
6752 PR cli/15718
6753 * infcall.c: Include event-top.h.
6754 (run_inferior_call): Call async_disable_stdin if needed.
6755
99619bea
PA
67562014-03-20 Pedro Alves <palves@redhat.com>
6757
6758 * infrun.c (prepare_to_proceed): Delete.
6759 (thread_still_needs_step_over): New function.
6760 (find_thread_needs_step_over): New function.
6761 (proceed): If the current thread needs a step-over, set its
6762 steping_over_breakpoint flag. Adjust to use
6763 find_thread_needs_step_over instead of prepare_to_proceed.
6764 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6765 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6766 breakpoint.
6767 (switch_back_to_stepped_thread): Step over breakpoints of all
6768 threads not the stepping thread, before switching back to the
6769 stepping thread.
6770
2adfaa28
PA
67712014-03-20 Pedro Alves <palves@redhat.com>
6772
6773 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6774 extern.
6775 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6776 * infrun.c (saved_singlestep_ptid)
6777 (stepping_past_singlestep_breakpoint): Delete.
6778 (resume): Remove stepping_past_singlestep_breakpoint handling.
6779 (proceed): Store the prev_pc of the stepping thread too.
6780 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6781 singlestep_pc.
6782 (enum infwait_states): Delete infwait_thread_hop_state.
6783 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6784 field.
6785 (handle_inferior_event): Adjust.
6786 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6787 handling and the thread-hop code. Before removing single-step
6788 breakpoints, check whether the thread hit a single-step breakpoint
6789 of another thread. If it did, the trap is not a random signal.
6790 (switch_back_to_stepped_thread): If the event thread hit a
6791 single-step breakpoint, unblock it before switching to the
6792 stepping thread. Handle the case of the stepped thread having
6793 advanced already.
6794 (keep_going): Handle the case of the current thread moving past a
6795 single-step breakpoint.
6796
31e77af2
PA
67972014-03-20 Pedro Alves <palves@redhat.com>
6798
6799 PR breakpoints/7143
6800 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6801 are being stepped over.
6802 (breakpoint_address_match): Make extern.
6803 * breakpoint.h (breakpoint_address_match): New declaration.
6804 * inferior.h (stepping_past_instruction_at): New declaration.
6805 * infrun.c (struct step_over_info): New type.
6806 (step_over_info): New global.
6807 (set_step_over_info, clear_step_over_info)
6808 (stepping_past_instruction_at): New functions.
6809 (handle_inferior_event): Clear the step-over info when
6810 trap_expected is cleared.
6811 (resume): Remove now stale comment.
6812 (clear_proceed_status): Clear step-over info.
6813 (proceed): Adjust step-over handling to set or clear the step-over
6814 info instead of removing all breakpoints.
6815 (handle_signal_stop): When setting up a thread-hop, don't remove
6816 breakpoints here.
6817 (stop_stepping): Clear step-over info.
6818 (keep_going): Adjust step-over handling to set or clear step-over
6819 info and then always inserting breakpoints, instead of removing
6820 all breakpoints when stepping over one.
6821
b9f437de
PA
68222014-03-20 Pedro Alves <palves@redhat.com>
6823
6824 * infrun.c (previous_inferior_ptid): Adjust comment.
6825 (deferred_step_ptid): Delete.
6826 (infrun_thread_ptid_changed, prepare_to_proceed)
6827 (init_wait_for_inferior): Adjust.
6828 (handle_signal_stop): Delete deferred_step_ptid handling.
6829
06c868a8
JK
68302014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6831
6832 PR gdb/15358
6833 * defs.h (sync_quit_force_run): New declaration.
6834 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6835 * event-top.c (async_sigterm_handler): New declaration.
6836 (async_sigterm_token): New variable.
6837 (async_init_signals): Create also async_sigterm_token.
6838 (async_sigterm_handler): New function.
6839 (sync_quit_force_run): New variable.
6840 (handle_sigterm): Replace quit_force call by other calls.
6841 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6842
dea80df0
MR
68432014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6844
6845 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6846 offset into SPE pseudo registers.
6847
0c7e1a46
PA
68482014-03-18 Pedro Alves <palves@redhat.com>
6849
6850 PR gdb/13860
6851 * inferior.h (print_stop_event): Declare.
6852 * infrun.c (print_stop_event): New, factored out from ...
6853 (normal_stop): ... this.
6854 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6855 of bpstat_print/print_stack_frame.
6856
9c1fcd01
TT
68572014-03-17 Tom Tromey <tromey@redhat.com>
6858
6859 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6860
11aa919a
PMR
68612014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6862
6863 * ada-lang.c (decode_constrained_packed_array): Perform a
6864 minimal coercion for reference with coerce_ref instead of
6865 ada_coerce_ref.
6866
d4ccb5e0
TG
68672014-03-17 Tristan Gingold <gingold@adacore.com>
6868
6869 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6870 (darwin_solib_create_inferior_hook): Emit a warning if version
6871 is unhandled.
6872
49840f2a
UW
68732014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6874
6875 * python/py-value.c (get_field_flag): Cast flag_name argument to
6876 PyObject_GetAttrString to support Python 2.4.
6877
ed4123e5
JK
68782014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6879
6880 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6881 (Global Maintainers): Remove Jan Kratochvil.
6882
d6b64346
PA
68832014-03-14 Pedro Alves <palves@redhat.com>
6884
6885 * inferior.h (terminal_ours_for_output): Rename to ...
6886 (child_terminal_ours_for_output): ... this.
6887 (terminal_save_ours): Rename to ...
6888 (child_terminal_save_ours): ... this.
6889 (terminal_ours): Rename to ...
6890 (child_terminal_ours): ... this.
6891 (terminal_inferior): Rename to ...
6892 (child_terminal_inferior): ... this.
6893 (terminal_init_inferior): Rename to ...
6894 (child_terminal_init_inferior): ... this.
6895 (terminal_init_inferior_with_pgrp): Rename to ...
6896 (child_terminal_init_inferior_with_pgrp): ... this.
6897 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6898 (child_terminal_init_with_pgrp): ... this.
6899 (terminal_save_ours): Rename to ...
6900 (child_terminal_save_ours): ... this.
6901 (terminal_init_inferior): Rename to ...
6902 (child_terminal_init): ... this. Adjust.
6903 (terminal_inferior): Rename to ...
6904 (child_terminal_inferior): ... this.
6905 (terminal_ours_for_output): Rename to ...
6906 (child_terminal_ours_for_output): ... this. Adjust.
6907 (terminal_ours): Rename to ...
6908 (child_terminal_ours): ... this.
6909 (terminal_ours_1): Rename to ...
6910 (child_terminal_ours_1): ... this. Adjust.
6911 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6912 * windows-nat.c (do_initial_windows_stuff): Adjust.
6913 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6914 (gnu_terminal_init): ... this. Adjust.
6915 (gnu_target): Adjust.
6916 * inf-child.c (inf_child_target): Adjust.
6917
5a1e8c7a
DE
69182014-03-13 Doug Evans <xdje42@gmail.com>
6919
6920 PR guile/16612
6921 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6922 new eq?-hashtab.
6923
350e1a76
DE
69242014-03-13 Doug Evans <xdje42@gmail.com>
6925
6926 * value.c (record_latest_value): Call release_value_or_incref
6927 instead of release_value.
6928
a69900ae
PA
69292014-03-13 Pedro Alves <palves@redhat.com>
6930
6931 * procfs.c (procfs_target): Don't override to_shortname,
6932 to_longname or to_doc.
6933
5db9f0bd
PA
69342014-03-13 Pedro Alves <palves@redhat.com>
6935
6936 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6937 Unix in user visible strings.
6938
5e3a2c38
SS
69392014-03-12 Stan Shebs <stan@codesourcery.com>
6940
6941 * gdbtypes.h: Annotate comments for Doxygen, add a page
6942 block comment with some general info.
6943
8bc2fe48
PA
69442014-03-12 Pedro Alves <palves@redhat.com>
6945
6946 * infcmd.c (prepare_execution_command): New function, factored out
6947 from several execution commands.
6948 (run_command_1, continue_command, step_1, jump_command)
6949 (signal_command, until_command, advance_command, finish_command)
6950 (attach_command): Use prepare_execution_command.
6951
638c5f49
OJ
69522014-03-12 Omair Javaid <omair.javaid@linaro.org>
6953
6954 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6955 (MAX_BPTS): Define.
6956 (MAX_WPTS): Define.
6957 (struct arm_linux_thread_points): Removed.
6958 (struct arm_linux_process_info): New.
6959 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6960 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6961 (arm_linux_find_breakpoints_by_tid): Removed.
6962 (struct arch_lwp_info): New.
6963 (arm_linux_find_process_pid): New functions.
6964 (arm_linux_add_process): New functions.
6965 (arm_linux_process_info_get): New functions.
6966 (arm_linux_forget_process): New function.
6967 (arm_linux_get_debug_reg_state): New function.
6968 (struct update_registers_data): New.
6969 (update_registers_callback): New function.
6970 (arm_linux_insert_hw_breakpoint1): Updated.
6971 (arm_linux_remove_hw_breakpoint1): Updated.
6972 (arm_linux_insert_hw_breakpoint): Updated.
6973 (arm_linux_remove_hw_breakpoint): Updated.
6974 (arm_linux_insert_watchpoint): Updated.
6975 (arm_linux_remove_watchpoint): Updated.
6976 (arm_linux_new_thread): Updated.
6977 (arm_linux_prepare_to_resume): New function.
6978 (arm_linux_new_fork): New function.
6979 (_initialize_arm_linux_nat): Updated.
6980
6d03af93
PA
69812014-03-12 Pedro Alves <palves@redhat.com>
6982
6983 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6984
b3ccfe11
TT
69852014-03-12 Tom Tromey <tromey@redhat.com>
6986
6987 * inf-child.c (return_zero): New function.
6988 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6989 * aix-thread.c (aix_thread_inferior_created): New function.
6990 (aix_thread_attach): Remove.
6991 (init_aix_thread_ops): Don't set to_attach.
6992 (_initialize_aix_thread): Register inferior_created observer.
6993 * corelow.c (init_core_ops): Don't set to_attach or
6994 to_create_inferior.
6995 * exec.c (init_exec_ops): Don't set to_attach or
6996 to_create_inferior.
6997 * infcmd.c (run_command_1): Use find_run_target. Make direct
6998 target calls.
6999 (attach_command): Use find_attach_target. Make direct target
7000 calls.
7001 * record-btrace.c (init_record_btrace_ops): Don't set
7002 to_create_inferior.
7003 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7004 Remove.
7005 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7006 set to_create_inferior.
7007 * target.c (complete_target_initialization): Add assertion.
7008 (target_create_inferior): Remove.
7009 (find_default_attach, find_default_create_inferior): Remove.
7010 (find_attach_target, find_run_target): New functions.
7011 (find_default_is_async_p, find_default_can_async_p)
7012 (target_supports_non_stop, target_attach): Remove.
7013 (init_dummy_target): Don't set to_create_inferior or
7014 to_supports_non_stop.
7015 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7016 TARGET_DEFAULT_FUNC.
7017 <to_create_inferior>: Add comment.
7018 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7019 TARGET_DEFAULT_RETURN.
7020 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7021 (find_attach_target, find_run_target): Declare.
7022 (target_create_inferior): Remove.
7023 (target_has_execution_1): Update comment.
7024 (target_supports_non_stop): Remove.
7025 * target-delegates.c: Rebuild.
7026
91f83b02
PA
70272014-03-12 Pedro Alves <palves@redhat.com>
7028
7029 * inf-child.h: Update comment to not mention Unix.
7030
f1aea813
PA
70312014-03-12 Pedro Alves <palves@redhat.com>
7032
7033 * inf-child.c: Update top comment to not mention Unix. Add
7034 generic comment describing how this target is meant to be used.
7035 (inf_child_post_attach, inf_child_post_startup_inferior)
7036 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7037 Unix in comment.
7038
ee8e9165
PA
70392014-03-12 Pedro Alves <palves@redhat.com>
7040
7041 * nto-procfs.c: Include inf-child.h.
7042 (procfs_ops): Delete global.
7043 (procfs_can_run): Delete method.
7044 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7045 target pointer instead of referencing procfs_ops.
7046 (procfs_prepare_to_store): Delete.
7047 (init_procfs_ops): Delete function.
7048 (procfs_target): New function, based on init_procfs_ops, but
7049 inherit inf_child_target.
7050 (_initialize_procfs): Use procfs_target.
7051
51a9c8c5
PA
70522014-03-12 Pedro Alves <palves@redhat.com>
7053
7054 * windows-nat.c: Include inf-child.h.
7055 (windows_ops): Delete global.
7056 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7057 methods.
7058 (init_windows_ops): Delete function.
7059 (windows_target): New function, based on init_windows_ops, but
7060 inherit inf_child_target.
7061 (_initialize_windows_nat): Use windows_target. Install x86
7062 specific target methods here.
7063
c1966e26
DE
70642014-03-10 Doug Evans <xdje42@gmail.com>
7065
7066 * guile/guile.c (call_initialize_gdb_module): New function.
7067 (initialize_guile): Replace call to scm_init_guile with call to
7068 scm_with_guile.
7069
023db19c
JB
70702014-03-10 Joel Brobecker <brobecker@adacore.com>
7071
7072 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7073 in call to TYPE_CODE macro.
7074
5ec18f2b
JG
70752014-03-10 Jerome Guitton <guitton@adacore.com>
7076
8668be63
JB
7077 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7078 Resolve tagged types to full view.
5ec18f2b 7079
7d03f2eb
HZ
70802014-03-10 Hui Zhu <hui@codesourcery.com>
7081
7082 * target.h (target_insert_breakpoint): Remove "hardware" from its
7083 comments.
7084
c5164cbc
DE
70852014-03-07 Doug Evans <dje@google.com>
7086
7087 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7088
c4a3fee2
DE
70892014-03-07 Doug Evans <dje@google.com>
7090
7091 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7092 Remove unused local comp_dir_attr. Assert exactly one of
7093 stub_comp_unit_die, stub_comp_dir is non-NULL.
7094
3156469c
JB
70952014-03-07 Joel Brobecker <brobecker@adacore.com>
7096
7097 * target.h (complete_target_initialization, add_target):
7098 Add comment.
7099
c1a7b7c6
PA
71002014-03-07 Pedro Alves <palves@redhat.com>
7101
7102 * go32-nat.c: Include inf-child.h.
7103 (go32_ops): Delete global.
7104 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7105 Delete methods.
7106 (go32_create_inferior): Push the passed in target pointer instead
7107 of referencing go32_ops.
7108 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7109 (go32_target): New function, based on init_go32_ops, but inherit
7110 inf_child_target.
7111 (_initialize_go32_nat): Use go32_target. Move parts of
7112 init_go32_ops here.
7113
d3c1a85f
JB
71142014-03-06 Joel Brobecker <brobecker@adacore.com>
7115
7116 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7117 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7118 SYMBOL_VALUE_ADDRESS.
7119 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7120
5fa1d40e
YQ
71212014-03-06 Yao Qi <yao@codesourcery.com>
7122
7123 * breakpoint.c (get_tracepoint_by_number): Remove argument
7124 optional_p. All callers updated. Adjust comments. Update
7125 output message.
7126 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7127
0c13193f
YQ
71282014-03-06 Yao Qi <yao@codesourcery.com>
7129
7130 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7131 early if get_number returns zero. Use 'p' instead of 'args'.
7132
2217da06
YQ
71332014-03-06 Yao Qi <yao@codesourcery.com>
7134
7135 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7136 message.
7137
cc3da688
YQ
71382014-03-06 Yao Qi <yao@codesourcery.com>
7139
7140 PR breakpoints/16508
7141 * tracepoint.c (check_trace_running): New function.
7142 (trace_find_command): Move code to check_trace_running and
7143 call check_trace_running.
7144 (trace_find_pc_command): Likewise.
7145 (trace_find_tracepoint_command): Likewise.
7146 (trace_find_line_command): Likewise.
7147 (trace_find_range_command): Likewise.
7148 * tracepoint.h (check_trace_running): Likewise.
7149 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7150
6a5f844b
YQ
71512014-03-06 Yao Qi <yao@codesourcery.com>
7152
7153 * target.h (struct target_ops) <to_traceframe_info>: Use
7154 TARGET_DEFAULT_NORETURN (tcomplain ()).
7155 * target-delegates.c: Regenerated.
7156
0f26cec1
PA
71572014-03-05 Pedro Alves <palves@redhat.com>
7158
7159 PR gdb/16575
7160 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7161 void. Update comment.
7162 (dcache_xfer_memory): Delete.
7163 (dcache_read_memory_partial): New, based on the read bits of
7164 dcache_xfer_memory.
7165 (dcache_update): Add status parameter. Use ULONGEST for len, and
7166 adjust. Discard cache lines if the reason for the update was
7167 error.
7168 * dcache.h (dcache_xfer_memory): Delete declaration.
7169 (dcache_read_memory_partial): New declaration.
7170 (dcache_update): Update prototype.
7171 * target.c (raw_memory_xfer_partial): Update the dcache here.
7172 (memory_xfer_partial_1): Don't handle dcache writes here.
7173
b2b255bd
MF
71742014-03-05 Mike Frysinger <vapier@gentoo.org>
7175
7176 * remote-sim.c (gdbsim_load): Add const to prog.
7177
5d9cf8a4
TT
71782014-03-03 Tom Tromey <tromey@redhat.com>
7179
7180 * elfread.c (probe_key): Change to bfd_data.
7181 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7182 now per-BFD, not per-objfile.
7183 * stap-probe.c (stap_probe_destroy): Update comment.
7184 (handle_stap_probe): Allocate on the per-BFD obstack.
7185
729662a5
TT
71862014-03-03 Tom Tromey <tromey@redhat.com>
7187
7188 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7189 * breakpoint.c (create_longjmp_master_breakpoint): Use
7190 get_probe_address.
7191 (add_location_to_breakpoint, bkpt_probe_insert_location)
7192 (bkpt_probe_remove_location): Update.
7193 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7194 * elfread.c (elf_symfile_relocate_probe): Remove.
7195 (elf_probe_fns): Update.
7196 (insert_exception_resume_breakpoint): Change type of "probe"
7197 parameter to bound_probe.
7198 (check_exception_resume): Update.
7199 * objfiles.c (objfile_relocate1): Don't relocate probes.
7200 * probe.c (bound_probe_s): New typedef.
7201 (parse_probes): Use get_probe_address. Set sal's objfile.
7202 (find_probe_by_pc): Return a bound_probe.
7203 (collect_probes): Return a VEC(bound_probe_s).
7204 (compare_probes): Update.
7205 (gen_ui_out_table_header_info): Change type of "probes"
7206 parameter. Update.
7207 (info_probes_for_ops): Update.
7208 (get_probe_address): New function.
7209 (probe_safe_evaluate_at_pc): Update.
7210 * probe.h (struct probe_ops) <get_probe_address>: New field.
7211 <set_semaphore, clear_semaphore>: Add objfile parameter.
7212 (struct probe) <objfile>: Remove field.
7213 <arch>: New field.
7214 <address>: Update comment.
7215 (struct bound_probe): New.
7216 (find_probe_by_pc): Return a bound_probe.
7217 (get_probe_address): Declare.
7218 * solib-svr4.c (struct probe_and_action) <address>: New field.
7219 (hash_probe_and_action, equal_probe_and_action): Update.
7220 (register_solib_event_probe): Add address parameter.
7221 (solib_event_probe_at): Update.
7222 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7223 get_probe_address.
7224 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7225 (stap_get_probe_address): New function.
7226 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7227 (compile_probe_arg): Update.
7228 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7229 address.
7230 (handle_stap_probe): Don't relocate the probe.
7231 (stap_relocate): Remove.
7232 (stap_gen_info_probes_table_values): Update.
7233 (stap_probe_ops): Remove stap_relocate.
7234 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7235 (debug_sym_probe_fns): Update.
7236 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7237 * symtab.c (init_sal): Use memset.
7238 * symtab.h (struct symtab_and_line) <objfile>: New field.
7239 * tracepoint.c (start_tracing, stop_tracing): Update.
7240
ff887920
TT
72412014-03-03 Tom Tromey <tromey@redhat.com>
7242
7243 * probe.h (parse_probes, find_probe_by_pc)
7244 (find_probes_in_objfile): Fix comments.
7245
f0407826
DE
72462014-03-02 Doug Evans <xdje42@gmail.com>
7247
7248 * infrun.c (handle_signal_stop): Replace test for
7249 TARGET_WAITKIND_STOPPED with an assert.
7250
35e6a711
DE
72512014-03-02 Doug Evans <xdje42@gmail.com>
7252
7253 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7254
667f9d0b
DE
72552014-03-02 Doug Evans <xdje42@gmail.com>
7256
7257 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7258
dc92ace0
MK
72592014-03-01 Mark Kettenis <kettenis@gnu.org>
7260
7261 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7262
a900370f
MK
72632014-03-01 Mark Kettenis <kettenis@gnu.org>
7264
7265 * i386obsd-nat.c: Include "obsd-nat.h".
7266 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7267 add_target.
7268 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7269
b72a7981
MK
72702014-03-01 Mark Kettenis <kettenis@gnu.org>
7271
7272 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7273
96c70aba
MK
72742014-03-01 Mark Kettenis <kettenis@gnu.org>
7275
7276 * mips64obsd-nat.c: Include "obsd-nath".
7277 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7278 add_target
7279 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7280
874a80af
MK
72812014-03-01 Mark Kettenis <kettenis@gnu.org>
7282
8fd408f1
MK
7283 * amd64obsd-nat.c: Include "obsd-nat,h.
7284 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7285 add_target.
874a80af
MK
7286 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7287
9cf95373
SC
72882014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7289
7290 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7291 (find_overload_match): Update call to find_oload_champ.
7292 (find_oload_champ_namespace_loop): Likewise
7293
863e4da4
MK
72942014-02-28 Mark Kettenis <kettenis@gnu.org>
7295
025cac40
MK
7296 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7297
1ed586ce
MK
7298 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7299 * config/sparc/obsd64.mh: New file.
7300 * sparc64obsd-nat.c: New file.
7301
863e4da4
MK
7302 * obsd-nat.h: New file.
7303 * obsd-nat.c: New file.
7304 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7305 (ALLDEPFILES): Add obsd-nat.c.
7306
89de4da4
TT
73072014-02-28 Tom Tromey <tromey@redhat.com>
7308
7309 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7310 * cli-out.h (cli_ui_out_impl): Now const.
7311 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7312 * ui-out.c (struct ui_out) <impl>: Now const.
7313 (default_ui_out_impl): Now const.
7314 (ui_out_new): Make 'impl' parameter const.
7315 * ui-out.h (ui_out_new): Update.
7316
c725e7b6
MK
73172014-02-27 Mark Kettenis <kettenis@gnu.org>
7318
7319 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7320
670b46b3
MK
73212014-02-27 Mark Kettenis <kettenis@gnu.org>
7322
7323 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7324
c91550fc
JK
73252014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7326
7327 Additional PR 8882 fix.
7328 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7329
2fa0369e
PA
73302014-02-27 Pedro Alves <palves@redhat.com>
7331
7332 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7333 isn't set.
7334
d632a097
PA
73352014-02-27 Pedro Alves <palves@redhat.com>
7336
7337 PR 12702
7338 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7339 * nat/linux-waitpid.c: Include string.h.
7340 (status_to_str): Moved here and made extern.
7341 * nat/linux-waitpid.h (status_to_str): New declaration.
7342
2ebd5a35
HZ
73432014-02-27 Hui Zhu <hui@codesourcery.com>
7344
7345 PR 12702
7346 * infrun.c (ptid_match): Move ...
7347 * common/ptid.c (ptid_match): ... here.
7348 * inferior.h (ptid_match): Move ...
7349 * common/ptid.h (ptid_match): ... here.
7350
3cdd631f
MK
73512014-02-27 Mark Kettenis <kettenis@gnu.org>
7352
7353 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7354 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7355 gdb_target_obs.
7356
bee30a64
MK
73572014-02-27 Mark Kettenis <kettenis@gnu.org>
7358
7359 * obsd-tdep.c (obsd_auxv_parse): New function.
7360 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7361
7362 * gdbarch.sh (auxv_parse): New.
7363 * gdbarch.h: Regenerated.
7364 * gdbarch.c: Regenerated.
7365 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7366
7a5a839f
LC
73672014-02-26 Ludovic Courtès <ludo@gnu.org>
7368
7369 * guile/scm-value.c (gdbscm_history_append_x): New function.
7370 (value_functions): Add it.
7371
31aa7e4e
JB
73722014-02-27 Joel Brobecker <brobecker@adacore.com>
7373
7374 * dwarf2read.c (attr_value_as_address): New function.
7375 (dwarf2_find_base_address, read_call_site_scope): Use
7376 attr_value_as_address in place of DW_ADDR.
7377 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7378 the low and high addresses. Slight rework of the handling
7379 of the high pc being a constant form, and limit it to
7380 DWARF verson 4 or higher.
7381 (dwarf2_record_block_ranges): Likewise.
7382 (read_partial_die): Likewise.
7383 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7384
9b333ba3
TT
73852014-02-26 Tom Tromey <tromey@redhat.com>
7386
7387 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7388
5f6cac40
TT
73892014-02-26 Tom Tromey <tromey@redhat.com>
7390
7391 * elfread.c (elf_read_minimal_symbols): Return early if
7392 minimal symbols have already been read. Add "ei" parameter.
7393 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7394 * minsyms.c (prim_record_minimal_symbol_full): Update.
7395 * objfiles.h (struct objstats) <n_minsyms>: Move...
7396 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7397 * symmisc.c (print_objfile_statistics): Update.
7398
2750ef27
TT
73992014-02-26 Tom Tromey <tromey@redhat.com>
7400
7401 * elfread.c (elf_read_minimal_symbols): New function, from
7402 elf_symfile_read.
7403 (elf_symfile_read): Call it.
7404
34643a32
TT
74052014-02-26 Tom Tromey <tromey@redhat.com>
7406
7407 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7408 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7409 (lookup_minimal_symbol_solib_trampoline)
7410 (lookup_minimal_symbol_by_pc_section_1)
7411 (lookup_minimal_symbol_and_objfile): Update.
7412 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7413 Don't allocate a minimal symbol if minsyms have already been read.
7414 (build_minimal_symbol_hash_tables): Update.
7415 (install_minimal_symbols): Do nothing if minsyms already read.
7416 Use the per-BFD obstack.
7417 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7418 * objfiles.c (allocate_objfile): Call
7419 terminate_minimal_symbol_table later.
7420 (have_minimal_symbols): Update.
7421 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7422 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7423 Move from struct objfile.
7424 <minsyms_read>: New field.
7425 (struct objfile) <msymbols, minimal_symbol_count,
7426 msymbol_hash, msymbol_demangled_hash>: Move.
7427 (ALL_OBJFILE_MSYMBOLS): Update.
7428 * symfile.c (read_symbols): Set minsyms_read.
7429 (reread_symbols): Update.
7430 * symmisc.c (dump_objfile, dump_msymbols): Update.
7431
2273f0ac
TT
74322014-02-26 Tom Tromey <tromey@redhat.com>
7433
7434 * minsyms.c (msymbols_sort): Remove.
7435 * minsyms.h (msymbols_sort): Remove.
7436 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7437 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7438 * elfread.c (elf_symtab_read): Don't add section offsets.
7439 * xcoffread.c (record_minimal_symbol): Don't add section offset
7440 to minimal symbol address.
7441 * somread.c (text_offset, data_offset): Remove.
7442 (som_symtab_read): Don't add section offsets to minimal symbol
7443 addresses.
7444 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7445 Don't add section offsets to minimal symbols.
7446 * coffread.c (coff_symtab_read): Don't add section offsets
7447 to minimal symbol addresses.
7448 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7449 to minimal symbol addresses.
7450 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7451 section offset to minimal symbol addresses.
7452 * mdebugread.c (parse_partial_symbols): Don't add section
7453 offset to minimal symbol addresses.
7454 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7455 offset to minimal symbol addresses.
7456
77e371c0
TT
74572014-02-26 Tom Tromey <tromey@redhat.com>
7458
7459 * ada-lang.c (ada_main_name): Update.
7460 (ada_add_standard_exceptions): Update.
7461 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7462 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7463 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7464 * auxv.c (ld_so_xfer_auxv): Update.
7465 * avr-tdep.c (avr_scan_prologue): Update.
7466 * ax-gdb.c (gen_var_ref): Update.
7467 * blockframe.c (get_pc_function_start)
7468 (find_pc_partial_function_gnu_ifunc): Update.
7469 * breakpoint.c (create_overlay_event_breakpoint)
7470 (create_longjmp_master_breakpoint)
7471 (create_std_terminate_master_breakpoint)
7472 (create_exception_master_breakpoint): Update.
7473 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7474 * c-valprint.c (c_val_print): Update.
7475 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7476 * common/agent.c (agent_look_up_symbols): Update.
7477 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7478 * dwarf2loc.c (call_site_to_target_addr): Update.
7479 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7480 * elfread.c (elf_gnu_ifunc_record_cache)
7481 (elf_gnu_ifunc_resolve_by_got): Update.
7482 * findvar.c (default_read_var_value): Update.
7483 * frame.c (inside_main_func): Update.
7484 * frv-tdep.c (frv_frame_this_id): Update.
7485 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7486 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7487 Update.
7488 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7489 (hppa_hpux_find_dummy_bpaddr): Update.
7490 * hppa-tdep.c (hppa_symbol_address): Update.
7491 * infcmd.c (until_next_command): Update.
7492 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7493 Update.
7494 * linespec.c (minsym_found, add_minsym): Update.
7495 * linux-nat.c (get_signo): Update.
7496 * linux-thread-db.c (inferior_has_bug): Update.
7497 * m32c-tdep.c (m32c_return_value)
7498 (m32c_m16c_address_to_pointer): Update.
7499 * m32r-tdep.c (m32r_frame_this_id): Update.
7500 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7501 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7502 * maint.c (maintenance_translate_address): Update.
7503 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7504 (frob_address): New function.
7505 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7506 frob_address. Rename parameter to "pc_in".
7507 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7508 addresses.
7509 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7510 Update.
7511 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7512 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7513 * objc-lang.c (find_objc_msgsend): Update.
7514 * objfiles.c (objfile_relocate1): Update.
7515 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7516 * p-valprint.c (pascal_val_print): Update.
7517 * parse.c (write_exp_msymbol): Update.
7518 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7519 (ppc_elfv2_skip_entrypoint): Update.
7520 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7521 * printcmd.c (build_address_symbolic, msym_info)
7522 (address_info): Update.
7523 * proc-service.c (ps_pglobal_lookup): Update.
7524 * psymtab.c (find_pc_sect_psymtab_closer)
7525 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7526 Change msymbol parameter to bound_minimal_symbol.
7527 * ravenscar-thread.c (get_running_thread_id): Update.
7528 * remote.c (remote_check_symbols): Update.
7529 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7530 address.
7531 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7532 * solib-dsbt.c (lm_base): Update.
7533 * solib-frv.c (lm_base, main_got): Update.
7534 * solib-irix.c (locate_base): Update.
7535 * solib-som.c (som_solib_create_inferior_hook)
7536 (link_map_start): Update.
7537 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7538 * solib-svr4.c (elf_locate_base, enable_break): Update.
7539 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7540 (flush_ea_cache): Update.
7541 * stabsread.c (define_symbol, scan_file_globals): Update.
7542 * stack.c (find_frame_funname): Update.
7543 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7544 (debug_qf_find_pc_sect_symtab): Update.
7545 * symfile.c (simple_read_overlay_table)
7546 (simple_overlay_update): Update.
7547 * symfile.h (struct quick_symbol_functions)
7548 <find_pc_sect_symtab>: Change type of msymbol to
7549 bound_minimal_symbol.
7550 * symmisc.c (dump_msymbols): Update.
7551 * symtab.c (find_pc_sect_symtab_via_partial)
7552 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7553 (search_symbols, print_msymbol_info): Update.
7554 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7555 (MSYMBOL_VALUE_ADDRESS): Redefine.
7556 (BMSYMBOL_VALUE_ADDRESS): New macro.
7557 * tracepoint.c (scope_info): Update.
7558 * tui/tui-disasm.c (tui_find_disassembly_address)
7559 (tui_get_begin_asm_address): Update.
7560 * valops.c (find_function_in_inferior): Update.
7561 * value.c (value_static_field, value_fn_field): Update.
7562
3b7344d5
TT
75632014-02-26 Tom Tromey <tromey@redhat.com>
7564
7565 * ada-lang.c (ada_update_initial_language): Update.
7566 (ada_main_name, ada_has_this_exception_support): Update.
7567 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7568 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7569 * arm-tdep.c (arm_skip_stub): Update.
7570 * auxv.c (ld_so_xfer_auxv): Update.
7571 * avr-tdep.c (avr_scan_prologue): Update.
7572 * ax-gdb.c (gen_var_ref): Update.
7573 * breakpoint.c (struct breakpoint_objfile_data)
7574 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7575 type to bound_minimal_symbol.
7576 (create_overlay_event_breakpoint)
7577 (create_longjmp_master_breakpoint)
7578 (create_std_terminate_master_breakpoint)
7579 (create_exception_master_breakpoint): Update.
7580 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7581 * c-exp.y (classify_name): Update.
7582 * coffread.c (coff_symfile_read): Update.
7583 * common/agent.c (agent_look_up_symbols): Update.
7584 * d-lang.c (d_main_name): Update.
7585 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7586 * dec-thread.c (enable_dec_thread): Update.
7587 * dwarf2loc.c (call_site_to_target_addr): Update.
7588 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7589 * eval.c (evaluate_subexp_standard): Update.
7590 * findvar.c (struct minsym_lookup_data) <result>: Change type
7591 to bound_minimal_symbol.
7592 <objfile>: Remove.
7593 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7594 * frame.c (inside_main_func): Update.
7595 * frv-tdep.c (frv_frame_this_id): Update.
7596 * gcore.c (call_target_sbrk): Update.
7597 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7598 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7599 Update.
7600 * go-lang.c (go_main_name): Update.
7601 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7602 (hppa_hpux_find_import_stub_for_addr): Update.
7603 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7604 Update. Change return type.
7605 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7606 type.
7607 * jit.c (jit_breakpoint_re_set_internal): Update.
7608 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7609 Update.
7610 * linux-nat.c (get_signo): Update.
7611 * linux-thread-db.c (inferior_has_bug): Update
7612 * m32c-tdep.c (m32c_return_value)
7613 (m32c_m16c_address_to_pointer): Update.
7614 * m32r-tdep.c (m32r_frame_this_id): Update.
7615 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7616 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7617 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7618 lookup_minimal_symbol. Change return type.
7619 (lookup_minimal_symbol): Remove.
7620 (lookup_bound_minimal_symbol): Update.
7621 (lookup_minimal_symbol_text): Change return type.
7622 (lookup_minimal_symbol_solib_trampoline): Change return type.
7623 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7624 (lookup_minimal_symbol_solib_trampoline): Change return type.
7625 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7626 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7627 (value_nsstring, find_imps): Update.
7628 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7629 * p-lang.c (pascal_main_name): Update.
7630 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7631 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7632 * proc-service.c (ps_pglobal_lookup): Update.
7633 * ravenscar-thread.c (get_running_thread_msymbol): Change
7634 return type.
7635 (has_ravenscar_runtime, get_running_thread_id): Update.
7636 * remote.c (remote_check_symbols): Update.
7637 * sol-thread.c (ps_pglobal_lookup): Update.
7638 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7639 * solib-dsbt.c (lm_base): Update.
7640 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7641 Update.
7642 * solib-irix.c (locate_base): Update.
7643 * solib-som.c (som_solib_create_inferior_hook)
7644 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7645 Update.
7646 * solib-spu.c (spu_enable_break): Update.
7647 * solib-svr4.c (elf_locate_base, enable_break): Update.
7648 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7649 (flush_ea_cache): Update.
7650 * stabsread.c (define_symbol): Update.
7651 * symfile.c (simple_read_overlay_table): Update.
7652 * symtab.c (find_pc_sect_line): Update.
7653 * tracepoint.c (scope_info): Update.
7654 * tui-disasm.c (tui_get_begin_asm_address): Update.
7655 * value.c (value_static_field): Update.
7656
40c1a007
TT
76572014-02-26 Tom Tromey <tromey@redhat.com>
7658
7659 * minsyms.c (prim_record_minimal_symbol_full): Use
7660 SET_MSYMBOL_VALUE_ADDRESS.
7661 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7662 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7663 SET_MSYMBOL_VALUE_ADDRESS.
7664 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7665 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7666
efd66ac6
TT
76672014-02-26 Tom Tromey <tromey@redhat.com>
7668
7669 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7670 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7671 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7672 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7673 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7674 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7675 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7676 * ada-lang.c (ada_main_name): Update.
7677 (ada_lookup_simple_minsym): Update.
7678 (ada_make_symbol_completion_list): Update.
7679 (ada_add_standard_exceptions): Update.
7680 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7681 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7682 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7683 * arm-tdep.c (skip_prologue_function): Update.
7684 (arm_skip_stack_protector, arm_skip_stub): Update.
7685 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7686 (arm_wince_skip_main_prologue): Update.
7687 * auxv.c (ld_so_xfer_auxv): Update.
7688 * avr-tdep.c (avr_scan_prologue): Update.
7689 * ax-gdb.c (gen_var_ref): Update.
7690 * block.c (call_site_for_pc): Update.
7691 * blockframe.c (get_pc_function_start): Update.
7692 (find_pc_partial_function_gnu_ifunc): Update.
7693 * breakpoint.c (create_overlay_event_breakpoint): Update.
7694 (create_longjmp_master_breakpoint): Update.
7695 (create_std_terminate_master_breakpoint): Update.
7696 (create_exception_master_breakpoint): Update.
7697 (resolve_sal_pc): Update.
7698 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7699 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7700 Update.
7701 * c-valprint.c (c_val_print): Update.
7702 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7703 * coffread.c (coff_symfile_read): Update.
7704 * common/agent.c (agent_look_up_symbols): Update.
7705 * dbxread.c (find_stab_function_addr): Update.
7706 (end_psymtab): Update.
7707 * dwarf2loc.c (call_site_to_target_addr): Update.
7708 (func_verify_no_selftailcall): Update.
7709 (tailcall_dump): Update.
7710 (call_site_find_chain_1): Update.
7711 (dwarf_expr_reg_to_entry_parameter): Update.
7712 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7713 (elf_gnu_ifunc_resolve_by_got): Update.
7714 * f-valprint.c (info_common_command): Update.
7715 * findvar.c (read_var_value): Update.
7716 * frame.c (get_prev_frame_1): Update.
7717 (inside_main_func): Update.
7718 * frv-tdep.c (frv_skip_main_prologue): Update.
7719 (frv_frame_this_id): Update.
7720 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7721 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7722 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7723 (gnuv3_skip_trampoline): Update.
7724 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7725 (hppa64_hpux_in_solib_call_trampoline): Update.
7726 (hppa_hpux_skip_trampoline_code): Update.
7727 (hppa64_hpux_search_dummy_call_sequence): Update.
7728 (hppa_hpux_find_import_stub_for_addr): Update.
7729 (hppa_hpux_find_dummy_bpaddr): Update.
7730 * hppa-tdep.c (hppa_symbol_address)
7731 (hppa_lookup_stub_minimal_symbol): Update.
7732 * i386-tdep.c (i386_skip_main_prologue): Update.
7733 (i386_pe_skip_trampoline_code): Update.
7734 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7735 * infcall.c (get_function_name): Update.
7736 * infcmd.c (until_next_command): Update.
7737 * jit.c (jit_breakpoint_re_set_internal): Update.
7738 (jit_inferior_init): Update.
7739 * linespec.c (minsym_found): Update.
7740 (add_minsym): Update.
7741 * linux-fork.c (info_checkpoints_command): Update.
7742 * linux-nat.c (get_signo): Update.
7743 * linux-thread-db.c (inferior_has_bug): Update.
7744 * m32c-tdep.c (m32c_return_value): Update.
7745 (m32c_m16c_address_to_pointer): Update.
7746 (m32c_m16c_pointer_to_address): Update.
7747 * m32r-tdep.c (m32r_frame_this_id): Update.
7748 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7749 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7750 * maint.c (maintenance_translate_address): Update.
7751 * minsyms.c (add_minsym_to_hash_table): Update.
7752 (add_minsym_to_demangled_hash_table): Update.
7753 (msymbol_objfile): Update.
7754 (lookup_minimal_symbol): Update.
7755 (iterate_over_minimal_symbols): Update.
7756 (lookup_minimal_symbol_text): Update.
7757 (lookup_minimal_symbol_by_pc_name): Update.
7758 (lookup_minimal_symbol_solib_trampoline): Update.
7759 (lookup_minimal_symbol_by_pc_section_1): Update.
7760 (lookup_minimal_symbol_and_objfile): Update.
7761 (prim_record_minimal_symbol_full): Update.
7762 (compare_minimal_symbols): Update.
7763 (compact_minimal_symbols): Update.
7764 (build_minimal_symbol_hash_tables): Update.
7765 (install_minimal_symbols): Update.
7766 (terminate_minimal_symbol_table): Update.
7767 (find_solib_trampoline_target): Update.
7768 (minimal_symbol_upper_bound): Update.
7769 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7770 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7771 (mips_skip_pic_trampoline_code): Update.
7772 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7773 * objc-lang.c (selectors_info): Update.
7774 (classes_info): Update.
7775 (find_methods): Update.
7776 (find_imps): Update.
7777 (find_objc_msgsend): Update.
7778 * objfiles.c (objfile_relocate1): Update.
7779 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7780 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7781 * p-valprint.c (pascal_val_print): Update.
7782 * parse.c (write_exp_msymbol): Update.
7783 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7784 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7785 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7786 * printcmd.c (build_address_symbolic): Update.
7787 (sym_info): Update.
7788 (address_info): Update.
7789 * proc-service.c (ps_pglobal_lookup): Update.
7790 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7791 (find_pc_sect_psymtab): Update.
7792 * python/py-framefilter.c (py_print_frame): Update.
7793 * ravenscar-thread.c (get_running_thread_id): Update.
7794 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7795 Update.
7796 * remote.c (remote_check_symbols): Update.
7797 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7798 (rs6000_skip_trampoline_code): Update.
7799 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7800 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7801 * solib-dsbt.c (lm_base): Update.
7802 * solib-frv.c (lm_base): Update.
7803 (main_got): Update.
7804 * solib-irix.c (locate_base): Update.
7805 * solib-som.c (som_solib_create_inferior_hook): Update.
7806 (som_solib_desire_dynamic_linker_symbols): Update.
7807 (link_map_start): Update.
7808 * solib-spu.c (spu_enable_break): Update.
7809 (ocl_enable_break): Update.
7810 * solib-svr4.c (elf_locate_base): Update.
7811 (enable_break): Update.
7812 * spu-tdep.c (spu_get_overlay_table): Update.
7813 (spu_catch_start): Update.
7814 (flush_ea_cache): Update.
7815 * stabsread.c (define_symbol): Update.
7816 (scan_file_globals): Update.
7817 * stack.c (find_frame_funname): Update.
7818 (frame_info): Update.
7819 * symfile.c (simple_read_overlay_table): Update.
7820 (simple_overlay_update): Update.
7821 * symmisc.c (dump_msymbols): Update.
7822 * symtab.c (fixup_section): Update.
7823 (find_pc_sect_line): Update.
7824 (skip_prologue_sal): Update.
7825 (search_symbols): Update.
7826 (print_msymbol_info): Update.
7827 (rbreak_command): Update.
7828 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7829 (completion_list_objc_symbol): Update.
7830 (default_make_symbol_completion_list_break_on): Update.
7831 * tracepoint.c (scope_info): Update.
7832 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7833 (tui_get_begin_asm_address): Update.
7834 * valops.c (find_function_in_inferior): Update.
7835 * value.c (value_static_field): Update.
7836 (value_fn_field): Update.
7837
50e65b17
TT
78382014-02-26 Tom Tromey <tromey@redhat.com>
7839
7840 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7841 bound minimal symbols. Move code that knows about minsym
7842 table layout...
7843 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7844 function.
7845 * minsyms.h (minimal_symbol_upper_bound): Declare.
7846 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7847 minimal_symbol_upper_bound.
7848
1b588015
JB
78492014-02-27 Joel Brobecker <brobecker@adacore.com>
7850
7851 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7852 Use the type's name if its basic type does not have a tag.
7853
dbb9c2b1
JB
78542014-02-27 Joel Brobecker <brobecker@adacore.com>
7855
7856 * dwarf2read.c (read_subrange_type): Add comment.
7857
55426c9d
JB
78582014-02-27 Joel Brobecker <brobecker@adacore.com>
7859
7860 * dwarf2read.c (update_enumeration_type_from_children): New
7861 function, mostly extracted from process_structure_scope.
7862 (read_enumeration_type): Call update_enumeration_type_from_children.
7863 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7864 and flag_flag_enum fields.
7865
f2fce0ca
PA
78662014-02-26 Pedro Alves <palves@redhat.com>
7867
7868 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7869 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7870 to_xfer_partial method.
7871
7a44e40e
PA
78722014-02-26 Pedro Alves <palves@redhat.com>
7873
7874 * target.c (complete_target_initialization): Don't install
7875 default_xfer_partial as to_xfer_partial hook.
7876 (nomemory): Delete.
7877 (update_current_target): Don't INHERIT nor de_fault
7878 deprecated_xfer_memory. Delete de_fault macro.
7879 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7880 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7881 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7882 field.
7883
bd265cd0
PA
78842014-02-26 Pedro Alves <palves@redhat.com>
7885
7886 * go32-nat.c (my_write_child): New function.
7887 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7888 (go32_xfer_partial): New function.
7889 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7890 Instead install a to_xfer_partial hook.
7891
9d46c4e5
PA
78922014-02-26 Pedro Alves <palves@redhat.com>
7893
7894 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7895 to_xfer_partial helper. Rewrite.
7896 (procfs_xfer_partial): New function.
7897 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7898 Install a to_xfer_partial hook.
7899
a1583b1f
PA
79002014-02-26 Pedro Alves <palves@redhat.com>
7901
7902 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7903 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7904 (m32r_xfer_partial): New function.
7905 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7906 Install a to_xfer_partial hook.
7907
6df1b29f
PA
79082014-02-26 Pedro Alves <palves@redhat.com>
7909
7910 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7911 helper.
7912 (mips_xfer_partial): New function.
7913 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7914 hook. Install a to_xfer_partial hook.
7915
dc53a7ad
JB
79162014-02-26 Joel Brobecker <brobecker@adacore.com>
7917
7918 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7919 * gdbtypes.c (create_array_type_with_stride): New function,
7920 renaming create_array_type, but with an added parameter
7921 called "bit_stride".
7922 (create_array_type): Re-implement using
7923 create_array_type_with_stride.
7924 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7925 and DW_AT_bit_stride attributes.
7926
12ab52e9
PA
79272014-02-26 Pedro Alves <palves@redhat.com>
7928
7929 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7930 task-specific breakpoints.
7931
d16461ae
PA
79322014-02-25 Pedro Alves <palves@redhat.com>
7933
7934 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7935 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7936
a8b16220
SS
79372014-02-25 Stan Shebs <stan@codesourcery.com>
7938
7939 * defs.h: Annotate comments for Doxygen.
7940
b9e795ee
TT
79412014-02-25 Tom Tromey <tromey@redhat.com>
7942
7943 * target.h (target_ignore): Don't declare.
7944 * target.c (target_ignore): Remove.
7945
849c862e
JK
79462014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7947
7948 PR gdb/16626
7949 * auto-load.c (auto_load_objfile_script_1): Change filename to
7950 debugfile.
7951
475109d8
JB
79522014-02-25 Joel Brobecker <brobecker@adacore.com>
7953
7954 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7955 documentation. Adjust prototype to match the target_ops
7956 to_xfer_partial method. Adjust implementation accordingly.
7957
e186c3bd
HZ
79582014-02-25 Hui Zhu <hui@codesourcery.com>
7959
7960 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7961 to_traceframe_info.
7962
6d451942
KB
79632014-02-25 Kevin Buettner <kevinb@redhat.com>
7964
041ab8b4 7965 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7966 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7967 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7968 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7969 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7970 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7971 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7972 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7973 New constants.
7974 (rl78_register_type): Use a data pointer type for SP and
7975 new pseudo registers mentioned above. Use a 16 bit integer
7976 type for all other register pairs.
7977 (rl78_register_name, rl78_g10_register_name): Update for
7978 new pseudo registers.
7979 (rl78_pseudo_register_read): Likewise.
7980 (rl78_pseudo_register_write): Likewise.
7981 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7982 to the newly added pseudo registers.
7983
eddf0bae
DE
79842014-02-24 Doug Evans <dje@google.com>
7985
7986 * value.c (record_latest_value): Fix comment.
7987 * printcmd.c (print_command_1): Remove code to handle -1 return from
7988 record_latest_value.
7989
e96027e0
PA
79902014-02-24 Pedro Alves <palves@redhat.com>
7991
7992 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7993 deprecated_xfer_memory hook.
7994 (procfs_xfer_partial): Call procfs_xfer_memory instead
7995 of the deprecated_xfer_memory target hook.
7996 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7997 helper.
7998
0837c976
YZ
79992014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8000
8001 * windows-nat.c (windows_xfer_shared_libraries): Return
8002 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8003 requested object is TARGET_OBJECT_LIBRARIES.
8004
bc113b4e
YQ
80052014-02-24 Yao Qi <yao@codesourcery.com>
8006
8007 * target.h (enum target_xfer_status)
8008 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8009 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8010 explicitly. New.
8011 * corefile.c (memory_error_message): User updated.
8012 * exec.c (section_table_read_available_memory): Likewise.
8013 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8014 * target.c (target_xfer_status_to_string): Likewise.
8015 (raw_memory_xfer_partial): Likewise.
8016 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8017 * valops.c (read_value_memory): Likewise.
8018 * exec.h: Update comments.
8019
01cb8804
YQ
80202014-02-24 Yao Qi <yao@codesourcery.com>
8021
8022 * target.c (target_xfer_status_to_string): Rename argument err
8023 to status.
8024 * target.h (target_xfer_status_to_string): Update declaration.
8025 Replace target_xfer_error_to_string with
8026 target_xfer_status_to_string in comment.
8027
93063aa6
YQ
80282014-02-24 Yao Qi <yao@codesourcery.com>
8029
8030 * mips-linux-nat.c (super_close): Update its type.
8031 (mips_linux_close): Pass 'self' to super_close.
8032
5c328c05
YQ
80332014-02-24 Yao Qi <yao@codesourcery.com>
8034
8035 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8036 * corefile.c (read_memory): Adjusted.
8037 * target.c (target_write_with_progress): Adjusted.
8038
f73023dd
YQ
80392014-02-23 Yao Qi <yao@codesourcery.com>
8040
8041 Revert two patches:
8042
8043 2013-10-25 Yao Qi <yao@codesourcery.com>
8044
8045 * remote.c (remote_traceframe_info): Return early if
8046 traceframe is not selected.
8047
8048 2013-07-19 Yao Qi <yao@codesourcery.com>
8049
8050 * target.c (update_current_target): Change the default action
8051 of 'to_traceframe_info' from tcomplain to return_zero.
8052 * target.h (struct target_ops) <to_traceframe_info>: Add more
8053 comments.
8054
5a2eb0ef
YQ
80552014-02-23 Yao Qi <yao@codesourcery.com>
8056
8057 * valops.c (read_value_memory): Rewrite it. Call
8058 target_xfer_partial in a loop.
8059 * exec.h (section_table_available_memory): Remove declaration.
8060 Move comments to ...
8061 * exec.c (section_table_available_memory): ... here. Make it
8062 static.
8063
1ee79381
YQ
80642014-02-23 Yao Qi <yao@codesourcery.com>
8065
8066 * exec.c (section_table_read_available_memory): New function.
8067 * exec.h (section_table_read_available_memory): Declare.
8068 * ctf.c (ctf_xfer_partial): Call
8069 section_table_read_available_memory.
8070 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8071
1ca49d37
YQ
80722014-02-23 Yao Qi <yao@codesourcery.com>
8073
8074 * ctf.c (ctf_xfer_partial): Move code to ...
8075 * exec.c (exec_read_partial_read_only): ... it. New function.
8076 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8077 * tracefile.c: Include "exec.h".
8078 * exec.h (exec_read_partial_read_only): Declare.
8079
a283690e
YQ
80802014-02-23 Yao Qi <yao@codesourcery.com>
8081
8082 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8083 (tfile_has_memory): Remove.
8084 (init_tfile_ops): Don't set fields to_has_all_memory and
8085 to_has_memory of tfile_ops.
8086 * tracefile.c (tracefile_has_all_memory): New function.
8087 (tracefile_has_memory): New function.
8088 (init_tracefile_ops): Initialize fields to_has_all_memory and
8089 to_has_memory of 'ops'.
8090
12e03cd0
YQ
80912014-02-23 Yao Qi <yao@codesourcery.com>
8092
8093 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8094 (ctf_thread_alive, ctf_get_trace_status): Remove.
8095 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8096 init_tracefile_ops.
8097 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8098 (tfile_has_stack, tfile_has_registers): Remove.
8099 (tfile_thread_alive): Remove.
8100 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8101 init_tracefile_ops.
8102 * tracefile.c (tracefile_has_stack): New function.
8103 (tracefile_has_registers): New function.
8104 (tracefile_thread_alive): New function.
8105 (tracefile_get_trace_status): New function.
8106 (init_tracefile_ops): New function.
8107 * tracefile.h (init_tracefile_ops): Declare.
8108
11395323
YQ
81092014-02-23 Yao Qi <yao@codesourcery.com>
8110
8111 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8112 (O_LARGEFILE): Likewise.
8113 (tfile_ops): Likewise.
8114 (TRACE_HEADER_SIZE): Likewise.
8115 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8116 (cur_data_size): Likewise.
8117 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8118 (tfile_close, tfile_files_info): Likewise.
8119 (tfile_get_trace_status): Likewise.
8120 (tfile_get_tracepoint_status): Likewise.
8121 (tfile_get_traceframe_address): Likewise.
8122 (tfile_trace_find, match_blocktype): Likewise.
8123 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8124 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8125 (tfile_get_trace_state_variable_value): Likewise.
8126 (tfile_has_all_memory, tfile_has_memory): Likewise.
8127 (tfile_has_stack, tfile_has_registers): Likewise.
8128 (tfile_thread_alive, build_traceframe_info): Likewise.
8129 (tfile_traceframe_info, init_tfile_ops): Likewise.
8130 (_initialize_tracepoint): Don't call init_tfile_ops
8131 and add_target_with_completer.
8132 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8133 exec.h, completer.h and filenames.h.
8134 (_initialize_tracefile_tfile): New function.
8135
7951c4eb
YQ
81362014-02-23 Yao Qi <yao@codesourcery.com>
8137
8138 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8139 tracefile-tfile.o.
8140 (HFILES_NO_SRCDIR): Add tracefile.h.
8141 * ctf.c: Include "tracefile.h".
8142 * tracefile.h: New file.
8143 * tracefile.c: New file
8144 * tracefile-tfile.c: New file.
8145 * tracepoint.c: Include "tracefile.h".
8146 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8147 (stop_reason_names): Add const.
8148 (trace_file_writer_xfree): Move it to tracefile.c.
8149 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8150 (trace_save_ctf): Likewise.
8151 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8152 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8153 (tfile_write_header, tfile_write_regblock_type): Likewise.
8154 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8155 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8156 (tfile_write_raw_data, tfile_end): Likewise.
8157 (tfile_trace_file_writer_new): Likewise.
8158 (free_uploaded_tp): Make it extern.
8159 (free_uploaded_tsv): Make it extern.
8160 (_initialize_tracepoint): Move code to register command 'tsave'
8161 to tracefile.c.
8162 * tracepoint.h (stop_reason_names): Declare.
8163 (struct trace_frame_write_ops): Move it to tracefile.h.
8164 (struct trace_file_write_ops): Likewise.
8165 (struct trace_file_writer): Likewise.
8166 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8167
184cd072
JK
81682014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8169
8170 PR gdb/16594
8171 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8172 process name.
8173 (get_cores_used_by_process): New parameter num_cores, use it.
8174 (linux_xfer_osdata_processes): Pass num_cores to it.
8175 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8176 process name.
8177
c63528fc
AK
81782014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8179
8180 * target.c (memory_xfer_partial): Fix length arg in call to
8181 breakpoint_xfer_memory.
8182
d7b30f67
SDJ
81832014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8184
8185 PR tdep/16397
8186 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8187 number comes after the + or - signs. Adjust length of register
8188 name to be extracted.
8189
8838afaf
TT
81902014-02-20 Tom Tromey <tromey@redhat.com>
8191
8192 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8193 (ada_varobj_ops): Mark "extern".
8194
05227d14
TT
81952014-02-20 Tom Tromey <tromey@redhat.com>
8196
8197 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8198
1254eefc
DE
81992014-02-20 Doug Evans <xdje42@gmail.com>
8200
8201 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8202 All callers updated.
8203 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8204 All callers updated.
8205 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8206 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8207
adde2bff
DE
82082014-02-20 lin zuojian <manjian2006@gmail.com>
8209 Joel Brobecker <brobecker@adacore.com>
8210 Doug Evans <xdje42@gmail.com>
8211
8212 PR symtab/16581
8213 * dwarf2read.c (struct die_info): New member in_process.
8214 (reset_die_in_process): New function.
8215 (process_die): Set it at the start, reset when returning.
8216 (inherit_abstract_dies): Only call process_die if origin_child_die
8217 not already being processed.
8218
3be75f87
JB
82192014-02-20 Joel Brobecker <brobecker@adacore.com>
8220
8221 * windows-nat.c (handle_unload_dll): Add function documentation.
8222 (do_initial_windows_stuff): Add comment explaining why we wait
8223 until after inferior initialization has finished before
8224 processing all DLLs.
8225
47f7ffdb
JB
82262014-02-20 Joel Brobecker <brobecker@adacore.com>
8227
8228 * windows-nat.c (get_module_name): Delete.
8229 (windows_get_exec_module_filename): New function, mostly
8230 inspired from get_module_name.
8231 (windows_pid_to_exec_file): Replace call to get_module_name
8232 by call to windows_get_exec_module_filename.
8233
1cd9feab
JB
82342014-02-20 Joel Brobecker <brobecker@adacore.com>
8235
8236 * windows-nat.c (handle_load_dll): Rewrite this function's
8237 introductory comment. Remove code using get_module_name
8238 to get the DLL's name.
8239
ea39ad35
JB
82402014-02-20 Joel Brobecker <brobecker@adacore.com>
8241
8242 * windows-nat.c (get_windows_debug_event): Ignore
8243 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8244 if windows_initialization_done == 0.
8245 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8246 Adjust implementation to always load all DLLs.
8247 (do_initial_windows_stuff): Replace call to
8248 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8249
95060284
JB
82502014-02-20 Joel Brobecker <brobecker@adacore.com>
8251
8252 * windows-nat.c (_initialize_windows_nat): Deprecate the
8253 "dll-symbols" command. Turn the "add-shared-symbol-files"
8254 and "assf" aliases into commands, and deprecate them as well.
8255 * NEWS: Add entry explaining that "dll-symbols" and its two
8256 aliases are now deprecated.
8257
8d4fdb12
JB
82582014-02-20 Joel Brobecker <brobecker@adacore.com>
8259
8260 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8261 new-line in debug string. Remove trailing spaces.
8262
1b281443
SS
82632014-02-19 Stan Shebs <stan@codesourcery.com>
8264
8265 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8266
f7bd0f78
SC
82672014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8268
8269 * NEWS: Add entry for the new feature
8270 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8271 and class values.
8272
399ebc3d
SS
82732014-02-19 Stan Shebs <stan@codesourcery.com>
8274
8275 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8276
c658158d
PA
82772014-02-19 Pedro Alves <palves@redhat.com>
8278
8279 * common/ptid.h (struct ptid): Mention that process_stratum
8280 targets should prefer ptid.lwp.
8281
ba348170
PA
82822014-02-19 Pedro Alves <palves@redhat.com>
8283
8284 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8285 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8286 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8287 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8288 store remote thread ids rather than ptid.tid.
8289 (_initialize_remote): Adjust.
8290
ac01945b
TT
82912014-02-19 Tom Tromey <tromey@redhat.com>
8292
8293 * target.c (target_get_unwinder): Rewrite.
8294 (target_get_tailcall_unwinder): Rewrite.
8295 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8296 (record_btrace_to_get_tailcall_unwinder): New function.
8297 (init_record_btrace_ops): Update.
8298 * target.h (struct target_ops) <to_get_unwinder,
8299 to_get_tailcall_unwinder>: Now function pointers. Use
8300 TARGET_DEFAULT_RETURN.
8301
8476dc92
TT
83022014-02-19 Tom Tromey <tromey@redhat.com>
8303
8304 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8305 argument.
8306 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8307
c0eca49f
TT
83082014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8311 directly.
8312 * target-delegates.c: Rebuild.
8313 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8314 TARGET_DEFAULT_FUNC.
8315 * target.c (default_target_decr_pc_after_break): Rename from
8316 forward_target_decr_pc_after_break. Simplify.
8317 (target_decr_pc_after_break): Rely on delegation.
8318
596b6b39
TT
83192014-02-19 Tom Tromey <tromey@redhat.com>
8320
8321 * target.c (update_current_target): Do not INHERIT to_doc or
8322 to_magic. Do not de_fault to_open or to_close.
8323
b427c1bc
TT
83242014-02-19 Tom Tromey <tromey@redhat.com>
8325
8326 * gcore.h (objfile_find_memory_regions): Declare.
8327 * gcore.c (objfile_find_memory_regions): No longer static. Add
8328 "self" argument.
8329 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8330 * exec.c: Include gcore.h.
8331 (exec_set_find_memory_regions): Remove.
8332 (exec_find_memory_regions): Remove.
8333 (exec_do_find_memory_regions): Remove.
8334 (init_exec_ops): Update.
8335 * defs.h (exec_set_find_memory_regions): Remove.
8336
9b144037
TT
83372014-02-19 Tom Tromey <tromey@redhat.com>
8338
8339 * target-delegates.c: Rebuild.
8340 * target.h (struct target_ops) <to_extra_thread_info,
8341 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8342 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8343 not 0, in TARGET_DEFAULT_RETURN.
8344
555bbdeb
TT
83452014-02-19 Tom Tromey <tromey@redhat.com>
8346
8347 * target.c (complete_target_initialization): Remove casts. Use
8348 return_zero_has_execution.
8349 (return_zero): Add "ignore" argument.
8350 (return_zero_has_execution): New function.
8351 (init_dummy_target): Remove casts. Use
8352 return_zero_has_execution.
8353
be4ddd36
TT
83542014-02-19 Tom Tromey <tromey@redhat.com>
8355
8356 * target.c (update_current_target): Update comments. Do not
8357 INHERIT to_stratum.
8358
2117c711
TT
83592014-02-19 Tom Tromey <tromey@redhat.com>
8360
8361 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8362 needed.
8363 * corelow.c (core_read_description): Delegate when needed.
8364 * remote.c (remote_read_description): Delegate when needed.
8365 * target-delegates.c: Rebuild.
8366 * target.c (target_read_description): Rewrite.
8367 * target.h (struct target_ops) <to_read_description>: Update
8368 comment. Use TARGET_DEFAULT_RETURN.
8369
e88ef65c
TT
83702014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8374 to_can_run.
8375 (find_default_run_target): Check against delegate_can_run.
8376 * target.h (struct target_ops) <to_can_run>: Use
8377 TARGET_DEFAULT_RETURN.
8378
86a0854a
TT
83792014-02-19 Tom Tromey <tromey@redhat.com>
8380
8381 * target-delegates.c: Rebuild.
8382 * target.c (target_disconnect): Unconditionally delegate.
8383 * target.h (struct target_ops) <to_disconnect>: Use
8384 TARGET_DEFAULT_NORETURN.
8385
ee97f592
TT
83862014-02-19 Tom Tromey <tromey@redhat.com>
8387
8388 * record.c (record_stop): Unconditionally delegate.
8389 * target-delegates.c: Rebuild.
8390 * target.c (target_stop_recording): Unconditionally delegate.
8391 * target.h (struct target_ops) <to_stop_recording>: Use
8392 TARGET_DEFAULT_IGNORE.
8393
6dc7fcf4
TT
83942014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target-delegates.c: Rebuild.
8397 * target.c (target_enable_btrace): Unconditionally delegate.
8398 * target.h (struct target_ops) <to_enable_btrace>: Use
8399 TARGET_DEFAULT_NORETURN.
8400
eb5b20d4
TT
84012014-02-19 Tom Tromey <tromey@redhat.com>
8402
8403 * target-delegates.c: Rebuild.
8404 * target.c (target_read_btrace): Unconditionally delegate.
8405 * target.h (struct target_ops) <to_read_btrace>: Use
8406 TARGET_DEFAULT_NORETURN.
8407
9ace480d
TT
84082014-02-19 Tom Tromey <tromey@redhat.com>
8409
8410 * target-delegates.c: Rebuild.
8411 * target.c (target_teardown_btrace): Unconditionally delegate.
8412 * target.h (struct target_ops) <to_teardown_btrace>: Use
8413 TARGET_DEFAULT_NORETURN.
8414
8dc292d3
TT
84152014-02-19 Tom Tromey <tromey@redhat.com>
8416
8417 * target-delegates.c: Rebuild.
8418 * target.c (target_disable_btrace): Unconditionally delegate.
8419 * target.h (struct target_ops) <to_disable_btrace>: Use
8420 TARGET_DEFAULT_NORETURN.
8421
58a5184e
TT
84222014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target-delegates.c: Rebuild.
8425 * target.c (default_search_memory): New function.
8426 (simple_search_memory): Update comment.
8427 (target_search_memory): Unconditionally delegate.
8428 * target.h (struct target_ops) <to_search_memory>: Use
8429 TARGET_DEFAULT_FUNC.
8430
8de71aab
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * auxv.c (default_auxv_parse): No longer static.
8434 (target_auxv_parse): Unconditionally delegate.
8435 * auxv.h (default_auxv_parse): Declare.
8436 * target-delegates.c: Rebuild.
8437 * target.c: Include auxv.h.
8438 * target.h (struct target_ops) <to_auxv_parse>: Use
8439 TARGET_DEFAULT_FUNC.
8440
6b2c5a57
TT
84412014-02-19 Tom Tromey <tromey@redhat.com>
8442
8443 * target-delegates.c: Rebuild.
8444 * target.c (target_memory_map): Unconditionally delegate.
8445 * target.h (struct target_ops) <to_memory_map>: Use
8446 TARGET_DEFAULT_RETURN.
8447
cbffc065
TT
84482014-02-19 Tom Tromey <tromey@redhat.com>
8449
8450 * target-delegates.c: Rebuild.
8451 * target.c (target_thread_alive): Unconditionally delegate.
8452 * target.h (struct target_ops) <to_thread_alive>: Use
8453 TARGET_DEFAULT_RETURN.
8454
f09e2107
TT
84552014-02-19 Tom Tromey <tromey@redhat.com>
8456
8457 * target-delegates.c: Rebuild.
8458 * target.c (target_save_record): Unconditionally delegate.
8459 * target.h (struct target_ops) <to_save_record>: Use
8460 TARGET_DEFAULT_NORETURN.
8461
07366925
TT
84622014-02-19 Tom Tromey <tromey@redhat.com>
8463
8464 * target-delegates.c: Rebuild.
8465 * target.c (target_delete_record): Unconditionally delegate.
8466 * target.h (struct target_ops) <to_delete_record>: Use
8467 TARGET_DEFAULT_NORETURN.
8468
dd2e9d25
TT
84692014-02-19 Tom Tromey <tromey@redhat.com>
8470
8471 * target-delegates.c: Rebuild.
8472 * target.c (target_record_is_replaying): Unconditionally
8473 delegate.
8474 * target.h (struct target_ops) <to_record_is_replaying>: Use
8475 TARGET_DEFAULT_RETURN.
8476
671e76cc
TT
84772014-02-19 Tom Tromey <tromey@redhat.com>
8478
8479 * target-delegates.c: Rebuild.
8480 * target.c (target_goto_record_begin): Unconditionally delegate.
8481 * target.h (struct target_ops) <to_goto_record_begin>: Use
8482 TARGET_DEFAULT_NORETURN.
8483
e9179bb3
TT
84842014-02-19 Tom Tromey <tromey@redhat.com>
8485
8486 * target-delegates.c: Rebuild.
8487 * target.c (target_goto_record_end): Unconditionally delegate.
8488 * target.h (struct target_ops) <to_goto_record_end>: Use
8489 TARGET_DEFAULT_NORETURN.
8490
05969c84
TT
84912014-02-19 Tom Tromey <tromey@redhat.com>
8492
8493 * target-delegates.c: Rebuild.
8494 * target.c (target_goto_record): Unconditionally delegate.
8495 * target.h (struct target_ops) <to_goto_record>: Use
8496 TARGET_DEFAULT_NORETURN.
8497
3679abfa
TT
84982014-02-19 Tom Tromey <tromey@redhat.com>
8499
8500 * target-delegates.c: Rebuild.
8501 * target.c (target_insn_history): Unconditionally delegate.
8502 * target.h (struct target_ops) <to_insn_history>: Use
8503 TARGET_DEFAULT_NORETURN.
8504
8444ab58
TT
85052014-02-19 Tom Tromey <tromey@redhat.com>
8506
8507 * target-delegates.c: Rebuild.
8508 * target.c (target_insn_history_from): Unconditionally delegate.
8509 * target.h (struct target_ops) <to_insn_history_from>: Use
8510 TARGET_DEFAULT_NORETURN.
8511
c29302cc
TT
85122014-02-19 Tom Tromey <tromey@redhat.com>
8513
8514 * target-delegates.c: Rebuild.
8515 * target.c (target_insn_history_range): Unconditionally delegate.
8516 * target.h (struct target_ops) <to_insn_history_range>: Use
8517 TARGET_DEFAULT_NORETURN.
8518
170049d4
TT
85192014-02-19 Tom Tromey <tromey@redhat.com>
8520
8521 * target-delegates.c: Rebuild.
8522 * target.c (target_call_history): Unconditionally delegate.
8523 * target.h (struct target_ops) <to_call_history>: Use
8524 TARGET_DEFAULT_NORETURN.
8525
16fc27d6
TT
85262014-02-19 Tom Tromey <tromey@redhat.com>
8527
8528 * target-delegates.c: Rebuild.
8529 * target.c (target_call_history_from): Unconditionally delegate.
8530 * target.h (struct target_ops) <to_call_history_from>: Use
8531 TARGET_DEFAULT_NORETURN.
8532
115d9817
TT
85332014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target-delegates.c: Rebuild.
8536 * target.c (target_call_history_range): Unconditionally delegate.
8537 * target.h (struct target_ops) <to_call_history_range>: Use
8538 TARGET_DEFAULT_NORETURN.
8539
eb276a6b
TT
85402014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target-delegates.c: Rebuild.
8543 * target.c (target_verify_memory): Unconditionally delegate.
8544 * target.h (struct target_ops) <to_verify_memory>: Use
8545 TARGET_DEFAULT_NORETURN.
8546
9e538d0d
TT
85472014-02-19 Tom Tromey <tromey@redhat.com>
8548
8549 * target-delegates.c: Rebuild.
8550 * target.c (target_core_of_thread): Unconditionally delegate.
8551 * target.h (struct target_ops) <to_core_of_thread>: Use
8552 TARGET_DEFAULT_RETURN.
8553
f6fb2925
TT
85542014-02-19 Tom Tromey <tromey@redhat.com>
8555
8556 * target-delegates.c: Rebuild.
8557 * target.c (target_flash_done): Unconditionally delegate.
8558 * target.h (struct target_ops) <to_flash_done>: Use
8559 TARGET_DEFAULT_NORETURN.
8560
e8a6c6ac
TT
85612014-02-19 Tom Tromey <tromey@redhat.com>
8562
8563 * target-delegates.c: Rebuild.
8564 * target.c (target_flash_erase): Unconditionally delegate.
8565 * target.h (struct target_ops) <to_flash_erase>: Use
8566 TARGET_DEFAULT_NORETURN.
8567
7e35c012
TT
85682014-02-19 Tom Tromey <tromey@redhat.com>
8569
8570 * target-delegates.c: Rebuild.
8571 * target.c (target_get_section_table): Unconditionally delegate.
8572 * target.h (struct target_ops) <to_get_section_table>: Use
8573 TARGET_DEFAULT_RETURN.
8574
770234d3
TT
85752014-02-19 Tom Tromey <tromey@redhat.com>
8576
8577 * target-delegates.c: Rebuild.
8578 * target.c (target_pid_to_str): Unconditionally delegate.
8579 (init_dummy_target): Don't initialize to_pid_to_str.
8580 (default_pid_to_str): Rename from dummy_pid_to_str.
8581 * target.h (struct target_ops) <to_pid_to_str>: Use
8582 TARGET_DEFAULT_FUNC.
8583
09b0dc2b
TT
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target-delegates.c: Rebuild.
8587 * target.c (target_find_new_threads): Unconditionally delegate.
8588 * target.h (struct target_ops) <to_find_new_threads>: Use
8589 TARGET_DEFAULT_RETURN.
8590
7d4f8efa
TT
85912014-02-19 Tom Tromey <tromey@redhat.com>
8592
8593 * target-delegates.c: Rebuild.
8594 * target.c (target_program_signals): Unconditionally delegate.
8595 * target.h (struct target_ops) <to_program_signals>: Use
8596 TARGET_DEFAULT_IGNORE.
8597
035cad7f
TT
85982014-02-19 Tom Tromey <tromey@redhat.com>
8599
8600 * target-delegates.c: Rebuild.
8601 * target.c (target_pass_signals): Unconditionally delegate.
8602 * target.h (struct target_ops) <to_pass_signals>: Use
8603 TARGET_DEFAULT_IGNORE.
8604
8d657035
TT
86052014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (default_mourn_inferior): New function.
8609 (target_mourn_inferior): Unconditionally delegate.
8610 * target.h (struct target_ops) <to_mourn_inferior>: Use
8611 TARGET_DEFAULT_FUNC.
8612
098dba18
TT
86132014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target-delegates.c: Rebuild.
8616 * target.c (default_follow_fork): New function.
8617 (target_follow_fork): Unconditionally delegate.
8618 * target.h (struct target_ops) <to_follow_fork>: Use
8619 TARGET_DEFAULT_FUNC.
8620
423a4807
TT
86212014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target-delegates.c: Rebuild.
8624 * target.c (target_kill): Unconditionally delegate.
8625 * target.h (struct target_ops) <to_kill>: Use
8626 TARGET_DEFAULT_NORETURN.
8627
6c7e5e5c
TT
86282014-02-19 Tom Tromey <tromey@redhat.com>
8629
8630 * target-delegates.c: Rebuild.
8631 * target.c (target_masked_watch_num_registers): Unconditionally
8632 delegate.
8633 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8634 Use TARGET_DEFAULT_RETURN.
8635
8b1c364c
TT
86362014-02-19 Tom Tromey <tromey@redhat.com>
8637
8638 * target-delegates.c: Rebuild.
8639 * target.c (target_remove_mask_watchpoint): Unconditionally
8640 delegate.
8641 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8642 TARGET_DEFAULT_RETURN.
8643
cd4ae029
TT
86442014-02-19 Tom Tromey <tromey@redhat.com>
8645
8646 * target-delegates.c: Rebuild.
8647 * target.c (target_insert_mask_watchpoint): Unconditionally
8648 delegate.
8649 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8650 TARGET_DEFAULT_RETURN.
8651
a134316b
TT
86522014-02-19 Tom Tromey <tromey@redhat.com>
8653
8654 * target-delegates.c: Rebuild.
8655 * target.c (target_ranged_break_num_registers): Unconditionally
8656 delegate.
8657 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8658 Use TARGET_DEFAULT_RETURN.
8659
ad5989bd
TT
86602014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target-delegates.c: Rebuild.
8663 * target.c (target_fetch_registers): Unconditionally delegate.
8664 * target.h (struct target_ops) <to_fetch_registers>: Use
8665 TARGET_DEFAULT_NORETURN.
8666
46ee7e8d
TT
86672014-02-19 Tom Tromey <tromey@redhat.com>
8668
8669 * target-delegates.c: Rebuild.
8670 * target.c (update_current_target): Don't inherit or default
8671 to_stop.
8672 * target.h (struct target_ops) <to_stop>: Use
8673 TARGET_DEFAULT_IGNORE.
8674
843f59ed
TT
86752014-02-19 Tom Tromey <tromey@redhat.com>
8676
8677 * target-delegates.c: Rebuild.
8678 * target.c (update_current_target): Don't inherit or default
8679 to_can_run_breakpoint_commands.
8680 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8681 Use TARGET_DEFAULT_RETURN.
8682
ccfde2a0
TT
86832014-02-19 Tom Tromey <tromey@redhat.com>
8684
8685 * target-delegates.c: Rebuild.
8686 * target.c (update_current_target): Don't inherit or default
8687 to_supports_evaluation_of_breakpoint_conditions.
8688 * target.h (struct target_ops)
8689 <to_supports_evaluation_of_breakpoint_conditions>: Use
8690 TARGET_DEFAULT_RETURN.
8691
0de91722
TT
86922014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target-delegates.c: Rebuild.
8695 * target.c (update_current_target): Don't inherit or default
8696 to_augmented_libraries_svr4_read.
8697 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8698 Use TARGET_DEFAULT_RETURN.
8699
9a7d8b48
TT
87002014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8704 to_can_use_agent.
8705 * target.h (struct target_ops) <to_can_use_agent>: Use
8706 TARGET_DEFAULT_RETURN.
8707
d9db5b21
TT
87082014-02-19 Tom Tromey <tromey@redhat.com>
8709
8710 * target-delegates.c: Rebuild.
8711 * target.c (update_current_target): Don't inherit or default
8712 to_use_agent.
8713 * target.h (struct target_ops) <to_use_agent>: Use
8714 TARGET_DEFAULT_NORETURN.
8715
92155eeb
TT
87162014-02-19 Tom Tromey <tromey@redhat.com>
8717
8718 * target-delegates.c: Rebuild.
8719 * target.c (update_current_target): Don't inherit or default
8720 to_traceframe_info.
8721 (return_null): Remove.
8722 * target.h (struct target_ops) <to_traceframe_info>: Use
8723 TARGET_DEFAULT_RETURN.
8724
d6522a22
TT
87252014-02-19 Tom Tromey <tromey@redhat.com>
8726
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_static_tracepoint_markers_by_strid.
8730 * target.h (struct target_ops)
8731 <to_static_tracepoint_markers_by_strid>: Use
8732 TARGET_DEFAULT_NORETURN.
8733
4c3e4425
TT
87342014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_static_tracepoint_marker_at.
8739 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8740 Use TARGET_DEFAULT_RETURN.
8741
dcd6917f
TT
87422014-02-19 Tom Tromey <tromey@redhat.com>
8743
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8746 to_set_permissions.
8747 * target.h (struct target_ops) <to_set_permissions>: Use
8748 TARGET_DEFAULT_IGNORE.
8749
22bcceee
TT
87502014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_get_tib_address.
8755 * target.h (struct target_ops) <to_get_tib_address>: Use
8756 TARGET_DEFAULT_NORETURN.
8757
8586ccaa
TT
87582014-02-19 Tom Tromey <tromey@redhat.com>
8759
8760 * target-delegates.c: Rebuild.
8761 * target.c (update_current_target): Don't inherit or default
8762 to_set_trace_notes.
8763 * target.h (struct target_ops) <to_set_trace_notes>: Use
8764 TARGET_DEFAULT_RETURN.
8765
91df8d1d
TT
87662014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target-delegates.c: Rebuild.
8769 * target.c (update_current_target): Don't initialize
8770 to_set_trace_buffer_size.
8771 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8772 TARGET_DEFAULT_IGNORE.
8773
8d526939
TT
87742014-02-19 Tom Tromey <tromey@redhat.com>
8775
8776 * target-delegates.c: Rebuild.
8777 * target.c (update_current_target): Don't inherit or default
8778 to_set_circular_trace_buffer.
8779 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8780 TARGET_DEFAULT_IGNORE.
8781
0bcfeddf
TT
87822014-02-19 Tom Tromey <tromey@redhat.com>
8783
8784 * target-delegates.c: Rebuild.
8785 * target.c (update_current_target): Don't inherit or default
8786 to_set_disconnected_tracing.
8787 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8788 TARGET_DEFAULT_IGNORE.
8789
9249843f
TT
87902014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * target-delegates.c: Rebuild.
8793 * target.c (update_current_target): Don't inherit or default
8794 to_get_min_fast_tracepoint_insn_len.
8795 (return_minus_one): Remove.
8796 * target.h (struct target_ops)
8797 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8798
ace92e7d
TT
87992014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target-delegates.c: Rebuild.
8802 * target.c (update_current_target): Don't inherit or default
8803 to_get_raw_trace_data.
8804 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8805 TARGET_DEFAULT_NORETURN.
8806
08120467
TT
88072014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target-delegates.c: Rebuild.
8810 * target.c (update_current_target): Don't inherit or default
8811 to_upload_trace_state_variables.
8812 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8813 Use TARGET_DEFAULT_RETURN.
8814
1e949b00
TT
88152014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8819 to_upload_tracepoints.
8820 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8821 TARGET_DEFAULT_RETURN.
8822
a2e6c147
TT
88232014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target-delegates.c: Rebuild.
8826 * target.c (update_current_target): Don't inherit or default
8827 to_save_trace_data.
8828 * target.h (struct target_ops) <to_save_trace_data>: Use
8829 TARGET_DEFAULT_NORETURN.
8830
959bcd0b
TT
88312014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target-delegates.c: Rebuild.
8834 * target.c (update_current_target): Don't inherit or default
8835 to_get_trace_state_variable_value.
8836 * target.h (struct target_ops)
8837 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8838
afc94e66
TT
88392014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8843 to_trace_find.
8844 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8845
e51c07ea
TT
88462014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8850 to_trace_stop.
8851 * target.h (struct target_ops) <to_trace_stop>: Use
8852 TARGET_DEFAULT_NORETURN.
8853
6fea14cd
TT
88542014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_get_tracepoint_status.
8859 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8860 TARGET_DEFAULT_NORETURN.
8861
4072d4ff
TT
88622014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8866 to_get_trace_status.
8867 * target.h (struct target_ops) <to_get_trace_status>: Use
8868 TARGET_DEFAULT_RETURN.
8869
25da2e80
TT
88702014-02-19 Tom Tromey <tromey@redhat.com>
8871
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8874 to_trace_start.
8875 * target.h (struct target_ops) <to_trace_start>: Use
8876 TARGET_DEFAULT_NORETURN.
8877
86dd181d
TT
88782014-02-19 Tom Tromey <tromey@redhat.com>
8879
8880 * target-delegates.c: Rebuild.
8881 * target.c (update_current_target): Don't inherit or default
8882 to_trace_set_readonly_regions.
8883 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8884 Use TARGET_DEFAULT_NORETURN.
8885
05c41993
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8890 to_disable_tracepoint.
8891 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8892 TARGET_DEFAULT_NORETURN.
8893
151f70f1
TT
88942014-02-19 Tom Tromey <tromey@redhat.com>
8895
8896 * target-delegates.c: Rebuild.
8897 * target.c (update_current_target): Don't inherit or default
8898 to_enable_tracepoint.
8899 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8900 TARGET_DEFAULT_NORETURN.
8901
94eb98b9
TT
89022014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target-delegates.c: Rebuild.
8905 * target.c (update_current_target): Don't inherit or default
8906 to_download_trace_state_variable.
8907 * target.h (struct target_ops) <to_download_trace_state_variable>:
8908 Use TARGET_DEFAULT_NORETURN.
8909
719acc4a
TT
89102014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target-delegates.c: Rebuild.
8913 * target.c (update_current_target): Don't inherit or default
8914 to_can_download_tracepoint.
8915 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8916 TARGET_DEFAULT_RETURN.
8917
9a980a22
TT
89182014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * target-delegates.c: Rebuild.
8921 * target.c (update_current_target): Don't inherit or default
8922 to_download_tracepoint.
8923 * target.h (struct target_ops) <to_download_tracepoint>: Use
8924 TARGET_DEFAULT_NORETURN.
8925
5536135b
TT
89262014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target-delegates.c: Rebuild.
8929 * target.c (update_current_target): Don't inherit or default
8930 to_trace_init.
8931 * target.h (struct target_ops) <to_trace_init>: Use
8932 TARGET_DEFAULT_RETURN.
8933
9409d39e
TT
89342014-02-19 Tom Tromey <tromey@redhat.com>
8935
8936 * target-delegates.c: Rebuild.
8937 * target.c (update_current_target): Don't inherit or default
8938 to_supports_string_tracing.
8939 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8940 TARGET_DEFAULT_RETURN.
8941
aab1b22d
TT
89422014-02-19 Tom Tromey <tromey@redhat.com>
8943
8944 * target-delegates.c: Rebuild.
8945 * target.c (update_current_target): Don't inherit or default
8946 to_supports_enable_disable_tracepoint.
8947 * target.h (struct target_ops)
8948 <to_supports_enable_disable_tracepoint>: Use
8949 TARGET_DEFAULT_RETURN.
8950
a7304748
TT
89512014-02-19 Tom Tromey <tromey@redhat.com>
8952
8953 * target-delegates.c: Rebuild.
8954 * target.c (update_current_target): Don't inherit or default
8955 to_supports_multi_process.
8956 * target.h (struct target_ops) <to_supports_multi_process>: Use
8957 TARGET_DEFAULT_RETURN.
8958
4229b31d
TT
89592014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target-delegates.c: Rebuild.
8962 * target.c (update_current_target): Don't inherit or default
8963 to_get_ada_task_ptid.
8964 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8965 TARGET_DEFAULT_FUNC.
8966
43eba180
TT
89672014-02-19 Tom Tromey <tromey@redhat.com>
8968
8969 * target-delegates.c: Rebuild.
8970 * target.c (update_current_target): Don't inherit or default
8971 to_thread_architecture.
8972 * target.h (struct target_ops) <to_thread_architecture>: Use
8973 TARGET_DEFAULT_FUNC.
8974
fe31bf5b
TT
89752014-02-19 Tom Tromey <tromey@redhat.com>
8976
8977 * target-delegates.c: Rebuild.
8978 * target.c (update_current_target): Don't inherit or default
8979 to_execution_direction.
8980 * target.h (struct target_ops) <to_execution_direction>: Use
8981 TARGET_DEFAULT_FUNC.
8982
53e1cfc7
TT
89832014-02-19 Tom Tromey <tromey@redhat.com>
8984
8985 * target-delegates.c: Rebuild.
8986 * target.c (update_current_target): Don't inherit or default
8987 to_can_execute_reverse.
8988 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8989 TARGET_DEFAULT_RETURN.
8990 (target_can_execute_reverse): Unconditionally delegate.
8991
9bb9d61d
TT
89922014-02-19 Tom Tromey <tromey@redhat.com>
8993
8994 * target-delegates.c: Rebuild.
8995 * target.c (update_current_target): Don't inherit or default
8996 to_goto_bookmark.
8997 (dummy_goto_bookmark): Remove.
8998 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8999 * target.h (struct target_ops) <to_goto_bookmark>: Use
9000 TARGET_DEFAULT_NORETURN.
9001
3dbafbbb
TT
90022014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * target-delegates.c: Rebuild.
9005 * target.c (update_current_target): Don't inherit or default
9006 to_get_bookmark.
9007 (dummy_get_bookmark): Remove.
9008 (init_dummy_target): Don't inherit or default to_get_bookmark.
9009 * target.h (struct target_ops) <to_get_bookmark>: Use
9010 TARGET_DEFAULT_NORETURN
9011
16f796b1
TT
90122014-02-19 Tom Tromey <tromey@redhat.com>
9013
9014 * target-delegates.c: Rebuild.
9015 * target.c (update_current_target): Don't inherit or default
9016 to_make_corefile_notes.
9017 (init_dummy_target): Don't initialize to_make_corefile_notes.
9018 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9019 TARGET_DEFAULT_FUNC.
9020
0b5a2719
TT
90212014-02-19 Tom Tromey <tromey@redhat.com>
9022
9023 * target-delegates.c: Rebuild.
9024 * target.c (update_current_target): Don't inherit or default
9025 to_find_memory_regions.
9026 (init_dummy_target): Don't initialize to_find_memory_regions.
9027 * target.h (struct target_ops) <to_find_memory_regions>: Use
9028 TARGET_DEFAULT_FUNC.
9029
d9cb0195
TT
90302014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target-delegates.c: Rebuild.
9033 * target.c (update_current_target): Don't inherit or default
9034 to_log_command.
9035 * target.h (struct target_ops) <to_log_command>: Use
9036 TARGET_DEFAULT_IGNORE.
9037 (target_log_command): Unconditionally delegate.
9038
830ca330
TT
90392014-02-19 Tom Tromey <tromey@redhat.com>
9040
9041 * target-delegates.c: Rebuild.
9042 * target.c (update_current_target): Don't inherit or default
9043 to_pid_to_exec_file.
9044 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9045 TARGET_DEFAULT_RETURN.
9046
825828fc
TT
90472014-02-19 Tom Tromey <tromey@redhat.com>
9048
9049 * target-delegates.c: Rebuild.
9050 * target.c (update_current_target): Don't inherit or default
9051 to_thread_name.
9052 (target_thread_name): Unconditionally delegate.
9053 * target.h (struct target_ops) <to_thread_name>: Use
9054 TARGET_DEFAULT_RETURN.
9055
4a7e6dda
TT
90562014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target-delegates.c: Rebuild.
9059 * target.c (update_current_target): Don't inherit or default
9060 to_extra_thread_info.
9061 * target.h (struct target_ops) <to_extra_thread_info>: Use
9062 TARGET_DEFAULT_RETURN.
9063
0db88c1d
TT
90642014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target-delegates.c: Rebuild.
9067 * target.c (update_current_target): Don't inherit or default
9068 to_has_exited.
9069 * target.h (struct target_ops) <to_has_exited>: Use
9070 TARGET_DEFAULT_RETURN..
9071
6a9fa051
TT
90722014-02-19 Tom Tromey <tromey@redhat.com>
9073
9074 * target-delegates.c: Rebuild.
9075 * target.c (update_current_target): Don't inherit or default
9076 to_set_syscall_catchpoint.
9077 (return_one): Remove.
9078 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9079 TARGET_DEFAULT_RETURN.
9080
62f64d7a
TT
90812014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target-delegates.c: Rebuild.
9084 * target.c (update_current_target): Don't inherit or default
9085 to_insert_exec_catchpoint.
9086 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9087 TARGET_DEFAULT_RETURN.
9088
cda0f38c
TT
90892014-01-08 Tom Tromey <tromey@redhat.com>
9090
9091 * target-delegates.c: Rebuild.
9092 * target.c (update_current_target): Don't inherit or default
9093 to_insert_exec_catchpoint.
9094 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9095 TARGET_DEFAULT_RETURN.
9096
95c3375e
TT
90972014-02-19 Tom Tromey <tromey@redhat.com>
9098
9099 * target-delegates.c: Rebuild.
9100 * target.c (update_current_target): Don't inherit or default
9101 to_remove_vfork_catchpoint.
9102 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9103 TARGET_DEFAULT_RETURN.
9104
7e18a8dc
TT
91052014-02-19 Tom Tromey <tromey@redhat.com>
9106
9107 * target-delegates.c: Rebuild.
9108 * target.c (update_current_target): Don't inherit or default
9109 to_insert_vfork_catchpoint.
9110 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9111 TARGET_DEFAULT_RETURN.
9112
e1a21fb7
TT
91132014-02-19 Tom Tromey <tromey@redhat.com>
9114
9115 * target-delegates.c: Rebuild.
9116 * target.c (update_current_target): Don't inherit or default
9117 to_remove_fork_catchpoint.
9118 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9119 TARGET_DEFAULT_RETURN.
9120
5958ebeb
TT
91212014-02-19 Tom Tromey <tromey@redhat.com>
9122
9123 * target-delegates.c: Rebuild.
9124 * target.c (update_current_target): Don't inherit or default
9125 to_insert_fork_catchpoint.
9126 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9127 TARGET_DEFAULT_RETURN.
9128
340ba4bf
TT
91292014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * target-delegates.c: Rebuild.
9132 * target.c (update_current_target): Don't inherit or default
9133 to_post_startup_inferior.
9134 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9135 TARGET_DEFAULT_IGNORE.
9136
7634da87
TT
91372014-02-19 Tom Tromey <tromey@redhat.com>
9138
9139 * target-delegates.c: Rebuild.
9140 * target.c (update_current_target): Don't inherit or default
9141 to_load.
9142 * target.h (struct target_ops) <to_load>: Use
9143 TARGET_DEFAULT_NORETURN.
9144
e19e919f
TT
91452014-02-19 Tom Tromey <tromey@redhat.com>
9146
9147 * target-delegates.c: Rebuild.
9148 * target.c (update_current_target): Don't inherit or default
9149 to_terminal_info.
9150 * target.h (struct target_ops) <to_terminal_info>: Use
9151 TARGET_DEFAULT_FUNC.
9152
c6ea8f79
TT
91532014-02-19 Tom Tromey <tromey@redhat.com>
9154
9155 * target-delegates.c: Rebuild.
9156 * target.c (update_current_target): Don't inherit or default
9157 to_terminal_save_ours.
9158 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9159 TARGET_DEFAULT_IGNORE.
9160
e4a733f1
TT
91612014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target-delegates.c: Rebuild.
9164 * target.c (update_current_target): Don't inherit or default
9165 to_terminal_ours.
9166 * target.h (struct target_ops) <to_terminal_ours>: Use
9167 TARGET_DEFAULT_IGNORE.
9168
74fcbef9
TT
91692014-02-19 Tom Tromey <tromey@redhat.com>
9170
9171 * target-delegates.c: Rebuild.
9172 * target.c (update_current_target): Don't inherit or default
9173 to_terminal_ours_for_output.
9174 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9175 TARGET_DEFAULT_IGNORE.
9176
ddeaacc9
TT
91772014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * target-delegates.c: Rebuild.
9180 * target.c (update_current_target): Don't inherit or default
9181 to_terminal_inferior.
9182 * target.h (struct target_ops) <to_terminal_inferior>: Use
9183 TARGET_DEFAULT_IGNORE.
9184
0343661d
TT
91852014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * target-delegates.c: Rebuild.
9188 * target.c (update_current_target): Don't inherit or default
9189 to_terminal_init.
9190 * target.h (struct target_ops) <to_terminal_init>: Use
9191 TARGET_DEFAULT_IGNORE.
9192
77cdffe9
TT
91932014-02-19 Tom Tromey <tromey@redhat.com>
9194
9195 * target-delegates.c: Rebuild.
9196 * target.c (update_current_target): Don't inherit or default
9197 to_can_accel_watchpoint_condition.
9198 * target.h (struct target_ops)
9199 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9200
d03655e4
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target-delegates.c: Rebuild.
9204 * target.c (update_current_target): Don't inherit or default
9205 to_region_ok_for_hw_watchpoint.
9206 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9207 Use TARGET_DEFAULT_FUNC.
9208
65f160a9
TT
92092014-02-19 Tom Tromey <tromey@redhat.com>
9210
9211 * target-delegates.c: Rebuild.
9212 * target.c (update_current_target): Don't inherit or default
9213 to_watchpoint_addr_within_range.
9214 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9215 Use TARGET_DEFAULT_FUNC.
9216
61dd109f
TT
92172014-02-19 Tom Tromey <tromey@redhat.com>
9218
9219 * target-delegates.c: Rebuild.
9220 * target.c (update_current_target): Don't inherit or default
9221 to_remove_watchpoint.
9222 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9223 TARGET_DEFAULT_NORETURN.
9224
016facd4
TT
92252014-02-19 Tom Tromey <tromey@redhat.com>
9226
9227 * target-delegates.c: Rebuild.
9228 * target.c (update_current_target): Don't inherit or default
9229 to_insert_watchpoint.
9230 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9231 TARGET_DEFAULT_RETURN.
9232
418dabac
TT
92332014-02-19 Tom Tromey <tromey@redhat.com>
9234
9235 * target-delegates.c: Rebuild.
9236 * target.c (update_current_target): Don't inherit or default
9237 to_remove_hw_breakpoint.
9238 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9239 TARGET_DEFAULT_RETURN.
9240
61b371f9
TT
92412014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * target-delegates.c: Rebuild.
9244 * target.c (update_current_target): Don't inherit or default
9245 to_insert_hw_breakpoint.
9246 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9247 TARGET_DEFAULT_RETURN.
9248
52b51d06
TT
92492014-02-19 Tom Tromey <tromey@redhat.com>
9250
9251 * target-delegates.c: Rebuild.
9252 * target.c (update_current_target): Don't inherit or default
9253 to_can_use_hw_breakpoint.
9254 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9255 TARGET_DEFAULT_RETURN.
9256
f86e59b2
TT
92572014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * target-delegates.c: Rebuild.
9260 * target.c (update_current_target): Don't inherit or default
9261 to_files_info.
9262 * target.h (struct target_ops) <to_files_info>: Use
9263 TARGET_DEFAULT_IGNORE.
9264
6c628163
TT
92652014-02-19 Tom Tromey <tromey@redhat.com>
9266
9267 * target-delegates.c: Rebuild.
9268 * target.c (update_current_target): Don't inherit or default
9269 to_store.
9270 * target.h (struct target_ops) <to_store>: Use
9271 TARGET_DEFAULT_NORETURN.
9272
bebd3233
TT
92732014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * target-delegates.c: Rebuild.
9276 * target.c (update_current_target): Don't inherit or default
9277 to_post_attach.
9278 * target.h (struct target_ops) <to_post_attach>: Use
9279 TARGET_DEFAULT_IGNORE.
9280
a53f3625
TT
92812014-02-19 Tom Tromey <tromey@redhat.com>
9282
9283 * target-delegates.c: Rebuild.
9284 * target.c (update_current_target): Don't inherit or default
9285 to_rcmd.
9286 (default_rcmd): New function.
9287 (do_monitor_command): Unconditionally delegate.
9288 * target.h (struct target_ops) <to_rmcd>: Use
9289 TARGET_DEFAULT_FUNC.
9290
e9a29200
TT
92912014-02-19 Tom Tromey <tromey@redhat.com>
9292
9293 * target-delegates.c: Rebuild.
9294 * target.c (init_dummy_target): Don't initialize to_attach.
9295 (target_attach): Unconditionally delegate.
9296 * target.h (struct target_ops) <to_attach>: Use
9297 TARGET_DEFAULT_FUNC.
9298
09da0d0a
TT
92992014-02-19 Tom Tromey <tromey@redhat.com>
9300
9301 * target-delegates.c: Rebuild.
9302 * target.c (target_detach): Unconditionally delegate.
9303 (init_dummy_target): Don't initialize to_detach.
9304 * target.h (struct target_ops) <to_detach>: Use
9305 TARGET_DEFAULT_IGNORE.
9306
5436ff03
TT
93072014-02-19 Tom Tromey <tromey@redhat.com>
9308
9309 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9310 Add argument.
9311 (target_augmented_libraries_svr4_read): Add argument.
9312 * target.c (update_current_target): Update.
9313 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9314 argument.
9315
f0d960ea
TT
93162014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * target.h (struct target_ops) <to_call_history_range>: Add
9319 argument.
9320 * target.c (target_call_history_range): Add argument.
9321 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9322 argument.
9323 (record_btrace_call_history_from): Update.
9324
ec0aea04
TT
93252014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target.h (struct target_ops) <to_call_history_from>: Add
9328 argument.
9329 * target.c (target_call_history_from): Add argument.
9330 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9331 argument.
9332
5df2fcba
TT
93332014-02-19 Tom Tromey <tromey@redhat.com>
9334
9335 * target.h (struct target_ops) <to_call_history>: Add argument.
9336 * target.c (target_call_history): Add argument.
9337 * record-btrace.c (record_btrace_call_history): Add 'self'
9338 argument.
9339
4e99c6b7
TT
93402014-02-19 Tom Tromey <tromey@redhat.com>
9341
9342 * target.h (struct target_ops) <to_insn_history_range>: Add
9343 argument.
9344 * target.c (target_insn_history_range): Add argument.
9345 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9346 argument.
9347 (record_btrace_insn_history_from): Update.
9348
9abc3ff3
TT
93492014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target.h (struct target_ops) <to_insn_history_from>: Add
9352 argument.
9353 * target.c (target_insn_history_from): Add argument.
9354 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9355 argument.
9356
7a6c5609
TT
93572014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target.h (struct target_ops) <to_insn_history>: Add argument.
9360 * target.c (target_insn_history): Add argument.
9361 * record-btrace.c (record_btrace_insn_history): Add 'self'
9362 argument.
9363
606183ac
TT
93642014-02-19 Tom Tromey <tromey@redhat.com>
9365
9366 * target.h (struct target_ops) <to_goto_record>: Add argument.
9367 * target.c (target_goto_record): Add argument.
9368 * record-full.c (record_full_goto): Add 'self' argument.
9369 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9370
307a1b91
TT
93712014-02-19 Tom Tromey <tromey@redhat.com>
9372
9373 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9374 * target.c (target_goto_record_end): Add argument.
9375 * record-full.c (record_full_goto_end): Add 'self' argument.
9376 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9377
08475817
TT
93782014-02-19 Tom Tromey <tromey@redhat.com>
9379
9380 * target.h (struct target_ops) <to_goto_record_begin>: Add
9381 argument.
9382 * target.c (target_goto_record_begin): Add argument.
9383 * record-full.c (record_full_goto_begin): Add 'self' argument.
9384 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9385 argument.
9386
1c63c994
TT
93872014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target.h (struct target_ops) <to_record_is_replaying>: Add
9390 argument.
9391 * target.c (target_record_is_replaying): Add argument.
9392 * record-full.c (record_full_is_replaying): Add 'self' argument.
9393 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9394 argument.
9395 (record_btrace_xfer_partial, record_btrace_store_registers)
9396 (record_btrace_prepare_to_store, record_btrace_resume)
9397 (record_btrace_wait, record_btrace_decr_pc_after_break)
9398 (record_btrace_find_new_threads, record_btrace_thread_alive):
9399 Update.
9400
d1b55219
TT
94012014-02-19 Tom Tromey <tromey@redhat.com>
9402
9403 * target.h (struct target_ops) <to_delete_record>: Add argument.
9404 * target.c (target_delete_record): Add argument.
9405 * record-full.c (record_full_delete): Add 'self' argument.
9406
1390f529
TT
94072014-02-19 Tom Tromey <tromey@redhat.com>
9408
9409 * target.h (struct target_ops) <to_save_record>: Add argument.
9410 * target.c (target_save_record): Add argument.
9411 * record-full.c (record_full_save): Add 'self' argument.
9412 (record_full_save): Add 'self' argument.
9413
630d6a4a
TT
94142014-02-19 Tom Tromey <tromey@redhat.com>
9415
9416 * target.h (struct target_ops) <to_info_record>: Add argument.
9417 * target.c (target_info_record): Add argument.
9418 * record.c (info_record_command): Add argument.
9419 * record-full.c (record_full_info): Add 'self' argument.
9420 * record-btrace.c (record_btrace_info): Add 'self' argument.
9421
c6cd7c02
TT
94222014-02-19 Tom Tromey <tromey@redhat.com>
9423
9424 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9425 * target.c (target_stop_recording): Add argument.
9426 * record.c (record_stop): Add argument.
9427 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9428 argument.
9429
39c49f83
TT
94302014-02-19 Tom Tromey <tromey@redhat.com>
9431
9432 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9433 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9434 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9435 argument.
9436 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9437 (_initialize_amd64_linux_nat): Use it.
9438 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9439 (_initialize_i386_linux_nat): Use it.
9440
1777056d
TT
94412014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9444 * target.c (target_teardown_btrace): Add argument.
9445 * remote.c (remote_teardown_btrace): Add 'self' argument.
9446 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9447 argument.
9448 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9449 argument.
9450
25e95349
TT
94512014-02-19 Tom Tromey <tromey@redhat.com>
9452
9453 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9454 * target.c (target_disable_btrace): Add argument.
9455 * remote.c (remote_disable_btrace): Add 'self' argument.
9456 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9457 argument.
9458 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9459 argument.
9460
e3c49f88
TT
94612014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9464 * target.c (target_enable_btrace): Add argument.
9465 * remote.c (remote_enable_btrace): Add 'self' argument.
9466 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9467 argument.
9468 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9469 argument.
9470
fe38f897
TT
94712014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9474 (target_can_use_agent): Add argument.
9475 * target.c (update_current_target): Update.
9476 * remote.c (remote_can_use_agent): Add 'self' argument.
9477 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9478
2c152180
TT
94792014-02-19 Tom Tromey <tromey@redhat.com>
9480
9481 * target.h (struct target_ops) <to_use_agent>: Add argument.
9482 (target_use_agent): Add argument.
9483 * target.c (update_current_target): Update.
9484 * remote.c (remote_use_agent): Add 'self' argument.
9485 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9486
a893e81f
TT
94872014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9490 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9491 (target_traceframe_info): Add argument.
9492 * target.c (update_current_target): Update.
9493 * remote.c (remote_traceframe_info): Add 'self' argument.
9494 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9495
c686c57f
TT
94962014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target.h (target_static_tracepoint_markers_by_strid): Add
9499 argument.
9500 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9501 'self' argument.
9502 * target.c (update_current_target): Update.
9503 * remote.c (struct target_ops)
9504 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9505 * linux-nat.c (struct target_ops)
9506 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9507
61fc905d
TT
95082014-02-19 Tom Tromey <tromey@redhat.com>
9509
9510 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9511 Add argument.
9512 (target_static_tracepoint_marker_at): Add argument.
9513 * target.c (update_current_target): Update.
9514 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9515 argument.
9516
c378d69d
TT
95172014-02-19 Tom Tromey <tromey@redhat.com>
9518
9519 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9520 (target_set_permissions): Add argument.
9521 * target.c (update_current_target): Update.
9522 * remote.c (remote_set_permissions): Add 'self' argument.
9523 (remote_start_remote): Update.
9524
bd7ae0f5
TT
95252014-02-19 Tom Tromey <tromey@redhat.com>
9526
9527 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9528 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9529 (target_get_tib_address): Add argument.
9530 * target.c (update_current_target): Update.
9531 * remote.c (remote_get_tib_address): Add 'self' argument.
9532
d9e68a2c
TT
95332014-02-19 Tom Tromey <tromey@redhat.com>
9534
9535 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9536 (target_set_trace_notes): Add argument.
9537 * target.c (update_current_target): Update.
9538 * remote.c (remote_set_trace_notes): Add 'self' argument.
9539
4da384be
TT
95402014-02-19 Tom Tromey <tromey@redhat.com>
9541
9542 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9543 argument.
9544 (target_set_trace_buffer_size): Add argument.
9545 * target.c (update_current_target): Update.
9546 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9547
736d5b1f
TT
95482014-02-19 Tom Tromey <tromey@redhat.com>
9549
9550 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9551 argument.
9552 (target_set_circular_trace_buffer): Add argument.
9553 * target.c (update_current_target): Update.
9554 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9555 argument.
9556
37b25738
TT
95572014-02-19 Tom Tromey <tromey@redhat.com>
9558
9559 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9560 argument.
9561 (target_set_disconnected_tracing): Add argument.
9562 * target.c (update_current_target): Update.
9563 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9564
0e67620a
TT
95652014-02-19 Tom Tromey <tromey@redhat.com>
9566
9567 * target.h (struct target_ops)
9568 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9569 (target_get_min_fast_tracepoint_insn_len): Add argument.
9570 * target.c (update_current_target): Update.
9571 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9572 argument.
9573
88ee6f45
TT
95742014-02-19 Tom Tromey <tromey@redhat.com>
9575
9576 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9577 argument.
9578 (target_get_raw_trace_data): Add argument.
9579 * target.c (update_current_target): Update.
9580 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9581
181e3713
TT
95822014-02-19 Tom Tromey <tromey@redhat.com>
9583
9584 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9585 Add argument.
9586 (target_upload_trace_state_variables): Add argument.
9587 * target.c (update_current_target): Update.
9588 * remote.c (remote_upload_trace_state_variables): Add 'self'
9589 argument.
9590 (remote_start_remote): Update.
9591
ab6617cc
TT
95922014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9595 argument.
9596 (target_upload_tracepoints): Add argument.
9597 * target.c (update_current_target): Update.
9598 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9599 (remote_start_remote): Update.
9600
dc3decaf
TT
96012014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9604 (target_save_trace_data): Add argument.
9605 * target.c (update_current_target): Update.
9606 * remote.c (remote_save_trace_data): Add 'self' argument.
9607
4011015b
TT
96082014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9611 argument.
9612 * target.h (struct target_ops)
9613 <to_get_trace_state_variable_value>: Add argument.
9614 (target_get_trace_state_variable_value): Add argument.
9615 * target.c (update_current_target): Update.
9616 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9617 argument.
9618 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9619
bd4c6793
TT
96202014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9623 * target.h (struct target_ops) <to_trace_find>: Add argument.
9624 (target_trace_find): Add argument.
9625 * target.c (update_current_target): Update.
9626 * remote.c (remote_trace_find): Add 'self' argument.
9627 * ctf.c (ctf_trace_find): Add 'self' argument.
9628
74499f1b
TT
96292014-02-19 Tom Tromey <tromey@redhat.com>
9630
9631 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9632 (target_trace_stop): Add argument.
9633 * target.c (update_current_target): Update.
9634 * remote.c (remote_trace_stop): Add 'self' argument.
9635
db90e85c
TT
96362014-02-19 Tom Tromey <tromey@redhat.com>
9637
9638 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9639 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9640 argument.
9641 (target_get_tracepoint_status): Add argument.
9642 * target.c (update_current_target): Update.
9643 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9644
8bd200f1
TT
96452014-02-19 Tom Tromey <tromey@redhat.com>
9646
9647 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9648 * target.h (struct target_ops) <to_get_trace_status>: Add
9649 argument.
9650 (target_get_trace_status): Add argument.
9651 * target.c (update_current_target): Update.
9652 * remote.c (remote_get_trace_status): Add 'self' argument.
9653 (remote_start_remote, remote_can_download_tracepoint): Update.
9654 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9655
e2d1aae3
TT
96562014-02-19 Tom Tromey <tromey@redhat.com>
9657
9658 * target.h (struct target_ops) <to_trace_start>: Add argument.
9659 (target_trace_start): Add argument.
9660 * target.c (update_current_target): Update.
9661 * remote.c (remote_trace_start): Add 'self' argument.
9662
583f9a86
TT
96632014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9666 Add argument.
9667 (target_trace_set_readonly_regions): Add argument.
9668 * target.c (update_current_target): Update.
9669 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9670 argument.
9671
780b049c
TT
96722014-02-19 Tom Tromey <tromey@redhat.com>
9673
9674 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9675 argument.
9676 (target_disable_tracepoint): Add argument.
9677 * target.c (update_current_target): Update.
9678 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9679
46670d57
TT
96802014-02-19 Tom Tromey <tromey@redhat.com>
9681
9682 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9683 argument.
9684 (target_enable_tracepoint): Add argument.
9685 * target.c (update_current_target): Update.
9686 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9687
559d2b81
TT
96882014-02-19 Tom Tromey <tromey@redhat.com>
9689
9690 * target.h (struct target_ops) <to_download_trace_state_variable>:
9691 Add argument.
9692 (target_download_trace_state_variable): Add argument.
9693 * target.c (update_current_target): Update.
9694 * remote.c (remote_download_trace_state_variable): Add 'self'
9695 argument.
9696
a52a8357
TT
96972014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9700 argument.
9701 (target_can_download_tracepoint): Add argument.
9702 * target.c (update_current_target): Update.
9703 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9704
548f7808
TT
97052014-02-19 Tom Tromey <tromey@redhat.com>
9706
9707 * target.h (struct target_ops) <to_download_tracepoint>: Add
9708 argument.
9709 (target_download_tracepoint): Add argument.
9710 * target.c (update_current_target): Update.
9711 * remote.c (remote_download_tracepoint): Add 'self' argument.
9712
ecae04e1
TT
97132014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * target.h (struct target_ops) <to_trace_init>: Add argument.
9716 (target_trace_init): Add argument.
9717 * target.c (update_current_target): Update.
9718 * remote.c (remote_trace_init): Add 'self' argument.
9719
fab5aa7c
TT
97202014-02-19 Tom Tromey <tromey@redhat.com>
9721
9722 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9723 * target.c (target_fileio_readlink): Add argument.
9724 * remote.c (remote_hostio_readlink): Add 'self' argument.
9725 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9726
dbbca37d
TT
97272014-02-19 Tom Tromey <tromey@redhat.com>
9728
9729 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9730 * target.c (target_fileio_unlink): Add argument.
9731 * remote.c (remote_hostio_unlink): Add 'self' argument.
9732 (remote_file_delete): Update.
9733 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9734
df39ea25
TT
97352014-02-19 Tom Tromey <tromey@redhat.com>
9736
9737 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9738 * target.c (target_fileio_close): Add argument.
9739 * remote.c (remote_hostio_close): Add 'self' argument.
9740 (remote_hostio_close_cleanup): Update.
9741 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9742 Update.
9743 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9744
a3be983c
TT
97452014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9748 * target.c (target_fileio_pread): Add argument.
9749 * remote.c (remote_hostio_pread): Add 'self' argument.
9750 (remote_bfd_iovec_pread, remote_file_get): Update.
9751 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9752
0d866f62
TT
97532014-02-19 Tom Tromey <tromey@redhat.com>
9754
9755 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9756 * target.c (target_fileio_pwrite): Add argument.
9757 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9758 (remote_file_put): Update.
9759 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9760
cd897586
TT
97612014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9764 * target.c (target_fileio_open): Add argument.
9765 * remote.c (remote_hostio_open): Add 'self' argument.
9766 (remote_bfd_iovec_open): Add 'self' argument.
9767 (remote_file_put): Add 'self' argument.
9768 (remote_file_get): Add 'self' argument.
9769 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9770
78eff0ec
TT
97712014-02-19 Tom Tromey <tromey@redhat.com>
9772
9773 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9774 Add argument.
9775 (target_can_run_breakpoint_commands): Add argument.
9776 * target.c (update_current_target): Update.
9777 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9778 argument.
9779 (remote_insert_breakpoint): Add 'self' argument.
9780 (remote_insert_hw_breakpoint): Add 'self' argument.
9781 (remote_can_run_breakpoint_commands): Add 'self' argument.
9782
efcc2da7
TT
97832014-02-19 Tom Tromey <tromey@redhat.com>
9784
9785 * target.h (struct target_ops)
9786 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9787 (target_supports_evaluation_of_breakpoint_conditions): Add
9788 argument.
9789 * target.c (update_current_target): Update.
9790 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9791 argument.
9792 (remote_insert_breakpoint): Add 'self' argument.
9793 (remote_insert_hw_breakpoint): Add 'self' argument.
9794 (remote_supports_cond_breakpoints): Add 'self' argument.
9795
6de37a3a
TT
97962014-02-19 Tom Tromey <tromey@redhat.com>
9797
9798 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9799 argument.
9800 (target_supports_string_tracing): Add argument.
9801 * target.c (update_current_target): Update.
9802 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9803
2bfc0540
TT
98042014-02-19 Tom Tromey <tromey@redhat.com>
9805
9806 * target.h (struct target_ops)
9807 <to_supports_disable_randomization>: Add argument.
9808 * target.c (find_default_supports_disable_randomization): Add
9809 argument.
9810 (target_supports_disable_randomization): Add argument.
9811 (find_default_supports_disable_randomization): Add 'self'
9812 argument.
9813 * remote.c (extended_remote_supports_disable_randomization): Add
9814 'self' argument.
9815 (remote_supports_disable_randomization): Add 'self' argument.
9816 (extended_remote_create_inferior): Update.
9817 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9818 'self' argument.
9819
7d178d6a
TT
98202014-02-19 Tom Tromey <tromey@redhat.com>
9821
9822 * target.h (struct target_ops)
9823 <to_supports_enable_disable_tracepoint>: Add argument.
9824 (target_supports_enable_disable_tracepoint): Add argument.
9825 * target.c (update_current_target): Update.
9826 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9827 argument.
9828
86ce2668
TT
98292014-02-19 Tom Tromey <tromey@redhat.com>
9830
9831 * target.h (struct target_ops) <to_supports_multi_process>: Add
9832 argument.
9833 (target_supports_multi_process): Add argument.
9834 * target.c (update_current_target): Update.
9835 * remote.c (remote_supports_multi_process): Add 'self' argument.
9836 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9837 argument.
9838 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9839 argument.
9840
4c612759
TT
98412014-02-19 Tom Tromey <tromey@redhat.com>
9842
9843 * target.h (struct target_ops) <to_execution_direction>: Add
9844 argument.
9845 (target_execution_direction): Add argument.
9846 * target.c (default_execution_direction): Add 'self' argument.
9847 * record-full.c (record_full_execution_direction): Add 'self'
9848 argument.
9849
19db3e69
TT
98502014-02-19 Tom Tromey <tromey@redhat.com>
9851
9852 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9853 argument.
9854 (target_can_execute_reverse): Add argument.
9855 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9856 * record-full.c (record_full_can_execute_reverse): Add 'self'
9857 argument.
9858 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9859 argument.
9860
1e6b91a4
TT
98612014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9864 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9865 argument.
9866 (target_get_ada_task_ptid): Add argument.
9867 * target.c (update_current_target): Update.
9868 (default_get_ada_task_ptid): Add 'self' argument.
9869 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9870 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9871 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9872 argument.
9873 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9874 argument.
9875 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9876 argument.
9877 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9878 argument.
9879 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9880 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9881 argument.
9882
3c80fb48
TT
98832014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9886 (target_goto_bookmark): Add argument.
9887 * target.c (dummy_goto_bookmark): Add 'self' argument.
9888 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9889
dd0e2830
TT
98902014-02-19 Tom Tromey <tromey@redhat.com>
9891
9892 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9893 (target_get_bookmark): Add argument.
9894 * target.c (dummy_get_bookmark): Add 'self' argument.
9895 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9896
fc6691b2
TT
98972014-02-19 Tom Tromey <tromey@redhat.com>
9898
9899 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9900 argument.
9901 (target_make_corefile_notes): Add argument.
9902 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9903 * procfs.c (procfs_make_note_section): Add 'self' argument.
9904 (procfs_make_note_section): Add 'self' argument.
9905 (procfs_make_note_section): Add 'self' argument.
9906 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9907 argument.
9908 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9909 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9910 * exec.c (exec_make_note_section): Add 'self' argument.
9911 (exec_make_note_section): Add 'self' argument.
9912
2e73927c
TT
99132014-02-19 Tom Tromey <tromey@redhat.com>
9914
9915 * target.h (struct target_ops) <to_find_memory_regions>: Add
9916 argument.
9917 (target_find_memory_regions): Add argument.
9918 * target.c (dummy_find_memory_regions): Add 'self' argument.
9919 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9920 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9921 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9922 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9923 * exec. (exec_do_find_memory_regions): New global.
9924 (exec_set_find_memory_regions): Rewrite.
9925 (exec_find_memory_regions): New function.
9926 (init_exec_ops): Use exec_find_memory_regions.
9927
2a9a2795
TT
99282014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target.h (struct target_ops) <to_supports_non_stop>: Add
9931 argument.
9932 * target.c (find_default_supports_non_stop): Add argument.
9933 (target_supports_non_stop): Add argument.
9934 (find_default_supports_non_stop): Add 'self' argument.
9935 * remote.c (remote_supports_non_stop): Add 'self' argument.
9936 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9937
4ab76ea3
TT
99382014-02-19 Tom Tromey <tromey@redhat.com>
9939
9940 * target.h (struct target_ops) <to_log_command>: Add argument.
9941 (target_log_command): Add argument.
9942 * serial.h (serial_log_command): Add 'self' argument.
9943 * serial.c (serial_log_command): Add 'self' argument.
9944
8dd27370
TT
99452014-02-19 Tom Tromey <tromey@redhat.com>
9946
9947 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9948 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9949 argument.
9950 (target_pid_to_exec_file): Add argument.
9951 * target.c (debug_to_pid_to_exec_file): Add argument.
9952 (update_current_target): Update.
9953 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9954 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9955 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9956 (linux_handle_extended_wait): Update.
9957 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9958 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9959 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9960 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9961
1aac633b
TT
99622014-02-19 Tom Tromey <tromey@redhat.com>
9963
9964 * target.h (struct target_ops) <to_rcmd>: Add argument.
9965 (target_rcmd): Add argument.
9966 * target.c (debug_to_rcmd): Add argument.
9967 (update_current_target, do_monitor_command): Update.
9968 * remote.c (remote_rcmd): Add 'self' argument.
9969 * monitor.c (monitor_rcmd): Add 'self' argument.
9970
1eab8a48
TT
99712014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * windows-nat.c (windows_stop): Add 'self' argument.
9974 * target.h (struct target_ops) <to_stop>: Add argument.
9975 * target.c (target_stop): Add argument.
9976 (debug_to_stop): Add argument.
9977 (update_current_target): Update.
9978 * remote.c (remote_stop): Add 'self' argument.
9979 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9980 (gdbsim_cntrl_c): Update.
9981 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9982 * procfs.c (procfs_stop): Add 'self' argument.
9983 * nto-procfs.c (procfs_stop): Add 'self' argument.
9984 * monitor.c (monitor_stop): Add 'self' argument.
9985 (monitor_open): Update.
9986 * linux-nat.c (linux_nat_stop): Add argument.
9987 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9988 * gnu-nat.c (gnu_stop): Add 'self' argument.
9989 * darwin-nat.c (darwin_stop): Add 'self' argument.
9990
503a628d
TT
99912014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target.h (struct target_ops) <to_thread_name>: Add argument.
9994 * target.c (target_thread_name): Add argument.
9995 (update_current_target): Update.
9996 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9997
c15906d8
TT
99982014-02-19 Tom Tromey <tromey@redhat.com>
9999
10000 * target.h (struct target_ops) <to_extra_thread_info>: Add
10001 argument.
10002 (target_extra_thread_info): Add argument.
10003 * target.c (update_current_target): Update.
10004 * remote.c (remote_threads_extra_info): Add 'self' argument.
10005 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10006 argument.
10007 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10008 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10009 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10010 argument.
10011 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10012 argument.
10013 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10014 argument.
10015 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10016 argument.
10017
daf5e9b6
TT
100182014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target.h (struct target_ops) <to_program_signals>: Add argument.
10021 * target.c (target_program_signals): Add argument.
10022 * remote.c (remote_program_signals): Add 'self' argument.
10023
94bedb42
TT
100242014-02-19 Tom Tromey <tromey@redhat.com>
10025
10026 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10027 * target.c (target_pass_signals): Add argument.
10028 * remote.c (remote_pass_signals): Add 'self' argument.
10029 (remote_start_remote): Update.
10030 * procfs.c (procfs_pass_signals): Add 'self' argument.
10031 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10032 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10033 (linux_nat_create_inferior, linux_nat_attach): Update.
10034
da82bd6b
TT
100352014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * windows-nat.c (windows_can_run): Add 'self' argument.
10038 * target.h (struct target_ops) <to_can_run>: Add argument.
10039 (target_can_run): Add argument.
10040 * target.c (debug_to_can_run): Add argument.
10041 (update_current_target): Update.
10042 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10043 * inf-child.c (inf_child_can_run): Add 'self' argument.
10044 * go32-nat.c (go32_can_run): Add 'self' argument.
10045
d796e1d6
TT
100462014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * target.h (struct target_ops) <to_has_exited>: Add argument.
10049 (target_has_exited): Add argument.
10050 * target.c (debug_to_has_exited): Add argument.
10051 (update_current_target): Update.
10052
ff214e67
TT
100532014-02-19 Tom Tromey <tromey@redhat.com>
10054
10055 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10056 argument.
10057 (target_set_syscall_catchpoint): Add argument.
10058 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10059 argument.
10060 * target.c (update_current_target): Update.
10061
758e29d2
TT
100622014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10065 argument.
10066 (target_remove_exec_catchpoint): Add argument.
10067 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10068 (update_current_target): Update.
10069 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10070 argument.
10071
ba025e51
TT
100722014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10075 argument.
10076 (target_insert_exec_catchpoint): Add argument.
10077 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10078 (update_current_target): Update.
10079 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10080 argument.
10081
e98cf0cd
TT
100822014-02-19 Tom Tromey <tromey@redhat.com>
10083
10084 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10085 argument.
10086 (target_remove_vfork_catchpoint): Add argument.
10087 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10088 (update_current_target): Update.
10089 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10090 argument.
10091
3ecc7da0
TT
100922014-02-19 Tom Tromey <tromey@redhat.com>
10093
10094 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10095 argument.
10096 (target_insert_vfork_catchpoint): Add argument.
10097 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10098 (update_current_target): Update.
10099 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10100 argument.
10101
973fc227
TT
101022014-02-19 Tom Tromey <tromey@redhat.com>
10103
10104 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10105 argument.
10106 (target_remove_fork_catchpoint): Add argument.
10107 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10108 (update_current_target): Update.
10109 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10110 argument.
10111
a863b201
TT
101122014-02-19 Tom Tromey <tromey@redhat.com>
10113
10114 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10115 argument.
10116 (target_insert_fork_catchpoint): Add argument.
10117 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10118 (update_current_target): Update.
10119 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10120 argument.
10121
2e97a79e
TT
101222014-02-19 Tom Tromey <tromey@redhat.com>
10123
10124 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10125 argument.
10126 (target_post_startup_inferior): Add argument.
10127 * target.c (debug_to_post_startup_inferior): Add argument.
10128 (update_current_target): Update.
10129 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10130 argument.
10131 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10132 argument.
10133 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10134 argument.
10135 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10136 argument.
10137 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10138 'self' argument.
10139 (super_post_startup_inferior): Likewise.
10140 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10141 'self' argument.
10142 (super_post_startup_inferior): Likewise.
10143 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10144 Add 'self' argument.
10145 (super_post_startup_inferior): Likewise.
10146
71a9f134
TT
101472014-02-19 Tom Tromey <tromey@redhat.com>
10148
10149 * target.h (struct target_ops) <to_load>: Add argument.
10150 * target.c (target_load): Add argument.
10151 (debug_to_load): Add argument.
10152 (update_current_target): Update.
10153 * remote.c (remote_load): Add 'self' argument.
10154 * remote-sim.c (gdbsim_load): Add 'self' argument.
10155 * remote-mips.c (mips_load): Add 'self' argument.
10156 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10157 * monitor.c (monitor_load): Add 'self' argument.
10158 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10159
0a4f40a2
TT
101602014-02-19 Tom Tromey <tromey@redhat.com>
10161
10162 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10163 (target_terminal_info): Add argument.
10164 * target.c (debug_to_terminal_info): Add argument.
10165 (default_terminal_info): Likewise.
10166 * inflow.c (child_terminal_info): Add 'self' argument.
10167 * inferior.h (child_terminal_info): Add 'self' argument.
10168 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10169
ae3bd431
TT
101702014-02-19 Tom Tromey <tromey@redhat.com>
10171
10172 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10173 argument.
10174 (target_terminal_save_ours): Add argument.
10175 * target.c (debug_to_terminal_save_ours): Add argument.
10176 (update_current_target): Update.
10177 * inflow.c (terminal_save_ours): Add 'self' argument.
10178 * inferior.h (terminal_save_ours): Add 'self' argument.
10179
e3594fd1
TT
101802014-02-19 Tom Tromey <tromey@redhat.com>
10181
10182 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10183 (target_terminal_ours): Add argument.
10184 * target.c (debug_to_terminal_ours): Add argument.
10185 (update_current_target): Update.
10186 * remote.c (remote_terminal_ours): Add 'self' argument.
10187 (remote_close): Update.
10188 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10189 * inflow.c (terminal_ours): Add 'self' argument.
10190 * inferior.h (terminal_ours): Add 'self' argument.
10191 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10192
2e1e1a19
TT
101932014-02-19 Pedro Alves <palves@redhat.com>
10194 Tom Tromey <tromey@redhat.com>
10195
10196 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10197 argument.
10198 (target_terminal_ours_for_output): Add argument.
10199 * target.c (debug_to_terminal_ours_for_output): Add argument.
10200 (update_current_target): Update.
10201 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10202 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10203 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10204
d2f640d4
TT
102052014-02-19 Tom Tromey <tromey@redhat.com>
10206
10207 * target.h (struct target_ops) <to_terminal_inferior>: Add
10208 argument.
10209 * target.c (target_terminal_inferior): Add argument.
10210 (update_current_target): Update.
10211 * remote.c (remote_terminal_inferior): Add 'self' argument.
10212 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10213 * inflow.c (terminal_inferior): Add 'self' argument.
10214 * inferior.h (terminal_inferior): Add 'self' argument.
10215 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10216 (go32_terminal_inferior): Add 'self' argument.
10217
c42bf286
TT
102182014-02-19 Tom Tromey <tromey@redhat.com>
10219
10220 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10221 (target_terminal_init): Add argument.
10222 * target.c (debug_to_terminal_init): Add argument.
10223 (update_current_target): Update.
10224 * inflow.c (terminal_init_inferior): Add 'self' argument.
10225 * inferior.h (terminal_init_inferior): Add 'self' argument.
10226 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10227 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10228
c3a5ff89
TT
102292014-02-19 Tom Tromey <tromey@redhat.com>
10230
10231 * target.h (struct target_ops)
10232 <to_can_accel_watchpoint_condition>: Add argument.
10233 (target_can_accel_watchpoint_condition): Add argument.
10234 * target.c (debug_to_can_accel_watchpoint_condition): Add
10235 argument.
10236 (update_current_target): Update.
10237 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10238 'self' argument.
10239
31568a15
TT
102402014-02-19 Tom Tromey <tromey@redhat.com>
10241
10242 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10243 Add argument.
10244 (target_region_ok_for_hw_watchpoint): Add argument.
10245 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10246 (default_region_ok_for_hw_watchpoint): Add argument.
10247 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10248 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10249 argument.
10250 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10251 argument.
10252 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10253 argument.
10254 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10255 'self' argument.
10256 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10257 'self' argument.
10258 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10259 'self' argument.
10260 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10261 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10262 'self' argument.
10263 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10264 Add 'self' argument.
10265
7bb99c53
TT
102662014-02-19 Tom Tromey <tromey@redhat.com>
10267
10268 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10269 argument.
10270 (target_insert_watchpoint): Add argument.
10271 * target.c (debug_to_insert_watchpoint): Add argument.
10272 (update_current_target): Update.
10273 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10274 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10275 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10276 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10277 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10278 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10279 argument.
10280 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10281 (procfs_insert_hw_watchpoint): Add 'self' argument.
10282 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10283 argument.
10284 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10285 argument.
10286 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10287 argument.
10288 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10289 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10290 argument.
10291 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10292 'self' argument.
10293
11b5219a
TT
102942014-02-19 Tom Tromey <tromey@redhat.com>
10295
10296 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10297 argument.
10298 (target_remove_watchpoint): Add argument.
10299 * target.c (debug_to_remove_watchpoint): Add argument.
10300 (update_current_target): Update.
10301 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10302 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10303 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10304 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10305 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10306 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10307 argument.
10308 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10309 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10310 argument.
10311 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10312 argument.
10313 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10314 argument.
10315 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10316 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10317 argument.
10318 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10319 'self' argument.
10320
a64dc96c
TT
103212014-02-19 Tom Tromey <tromey@redhat.com>
10322
10323 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10324 argument.
10325 (target_remove_hw_breakpoint): Add argument.
10326 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10327 (update_current_target): Update.
10328 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10329 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10330 argument.
10331 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10332 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10333 argument.
10334 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10335 'self' argument.
10336
23a26771
TT
103372014-02-19 Tom Tromey <tromey@redhat.com>
10338
10339 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10340 argument.
10341 (target_insert_hw_breakpoint): Add argument.
10342 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10343 (update_current_target): Update.
10344 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10345 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10346 argument.
10347 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10348 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10349 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10350 argument.
10351 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10352 'self' argument.
10353
5461485a
TT
103542014-02-19 Tom Tromey <tromey@redhat.com>
10355
10356 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10357 argument.
10358 (target_can_use_hardware_watchpoint): Add argument.
10359 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10360 (update_current_target): Update.
10361 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10362 argument.
10363 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10364 argument.
10365 * remote.c (remote_check_watch_resources): Add 'self' argument.
10366 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10367 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10368 argument.
10369 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10370 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10371 argument.
10372 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10373 argument.
10374 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10375 argument.
10376 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10377 argument.
10378 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10379 argument.
10380 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10381 argument.
10382 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10383 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10384 argument.
10385 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10386 'self' argument.
10387
f045800c
TT
103882014-02-19 Tom Tromey <tromey@redhat.com>
10389
10390 * target.h (struct target_ops) <to_post_attach>: Add argument.
10391 (target_post_attach): Add argument.
10392 * target.c (debug_to_post_attach): Add argument.
10393 (update_current_target): Update.
10394 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10395 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10396 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10397 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10398 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10399
de90e03d
TT
104002014-02-19 Tom Tromey <tromey@redhat.com>
10401
10402 * windows-nat.c (windows_close): Add 'self' argument.
10403 * tracepoint.c (tfile_close): Add 'self' argument.
10404 * target.h (struct target_ops) <to_close>: Add argument.
10405 * target.c (target_close): Add argument.
10406 (update_current_target): Update.
10407 * remote.c (remote_close): Add 'self' argument.
10408 * remote-sim.c (gdbsim_close): Add 'self' argument.
10409 * remote-mips.c (mips_close): Add 'self' argument.
10410 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10411 * record-full.c (record_full_close): Add 'self' argument.
10412 * record-btrace.c (record_btrace_close): Add 'self' argument.
10413 * monitor.h (monitor_close): Add 'self' argument.
10414 * monitor.c (monitor_close): Add 'self' argument.
10415 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10416 * linux-nat.c (linux_nat_close): Add argument.
10417 * go32-nat.c (go32_close): Add 'self' argument.
10418 * exec.c (exec_close_1): Add 'self' argument.
10419 * ctf.c (ctf_close): Add 'self' argument.
10420 * corelow.c (core_close): Add 'self' argument.
10421 (core_close_cleanup): Update.
10422 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10423 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10424
9dd130a0
TT
104252014-02-19 Tom Tromey <tromey@redhat.com>
10426
10427 * remote.c (remote_load): New function.
10428 (init_remote_ops): Use it.
10429
46917d26
TT
104302014-02-19 Tom Tromey <tromey@redhat.com>
10431
10432 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10433 argument.
10434 * common/linux-btrace.h (linux_supports_btrace): Update.
10435 * remote.c (remote_supports_btrace): Add "self" argument.
10436 * target-delegates.c: Rebuild.
10437 * target.c (target_supports_btrace): Remove.
10438 * target.h (struct target_ops) <to_supports_btrace>: Add
10439 target_ops argument.
10440 (target_supports_btrace): New define.
10441
6b84065d
TT
104422014-02-19 Tom Tromey <tromey@redhat.com>
10443
10444 * record-full.c (record_full_beneath_to_resume_ops)
10445 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10446 (record_full_beneath_to_wait)
10447 (record_full_beneath_to_store_registers_ops)
10448 (record_full_beneath_to_store_registers)
10449 (record_full_beneath_to_xfer_partial_ops)
10450 (record_full_beneath_to_xfer_partial)
10451 (record_full_beneath_to_insert_breakpoint_ops)
10452 (record_full_beneath_to_insert_breakpoint)
10453 (record_full_beneath_to_remove_breakpoint_ops)
10454 (record_full_beneath_to_remove_breakpoint)
10455 (record_full_beneath_to_stopped_by_watchpoint)
10456 (record_full_beneath_to_stopped_data_address)
10457 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10458 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10459 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10460 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10461 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10462 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10463 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10464 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10465 (record_full_resume, record_full_wait_1)
10466 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10467 (record_full_store_registers, record_full_xfer_partial)
10468 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10469 (record_full_async, record_full_core_xfer_partial): Use target
10470 delegation.
10471 * target-delegates.c: Rebuild.
10472 * target.c (current_xfer_partial): Remove.
10473 (update_current_target): Do not INHERIT or de_fault
10474 to_insert_breakpoint, to_remove_breakpoint,
10475 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10476 to_is_async_p, to_async. Do not set to_xfer_partial field.
10477 (default_xfer_partial): Simplify.
10478 (current_xfer_partial): Remove.
10479 (target_wait, target_resume): Simplify.
10480 (find_default_can_async_p, find_default_is_async_p): Update.
10481 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10482 to_xfer_partial, to_stopped_by_watchpoint,
10483 to_stopped_data_address.
10484 (target_store_registers): Simplify.
10485 (forward_target_remove_breakpoint)
10486 (forward_target_insert_breakpoint): Remove.
10487 (target_remove_breakpoint, target_insert_breakpoint)
10488 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10489 * target.h (struct target_ops) <to_resume, to_wait,
10490 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10491 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10492 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10493 markup.
10494 (forward_target_remove_breakpoint)
10495 (forward_target_insert_breakpoint): Remove.
10496 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10497 directly.
10498 (record_btrace_insert_breakpoint): Delegate directly.
10499
1101cb7b
TT
105002014-02-19 Tom Tromey <tromey@redhat.com>
10501
10502 PR build/7701:
10503 * target-delegates.c: New file.
10504 * target.c: Include target-delegates.c.
10505 (init_dummy_target): Call install_dummy_methods.
10506 (complete_target_initialization): Call install_delegators.
10507 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10508 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10509 * make-target-delegates: New file.
10510
8b06beed
TT
105112014-02-19 Tom Tromey <tromey@redhat.com>
10512
10513 * record.c (find_record_target): Use find_target_at.
10514 * target.c (find_target_at): New function.
10515 * target.h (find_target_at): Declare.
10516
6a109b6b
TT
105172014-02-19 Tom Tromey <tromey@redhat.com>
10518
10519 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10520 Add 'ops' argument.
10521 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10522 'ops' argument.
10523 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10524 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10525 'ops' argument.
10526 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10527 argument.
10528 * linux-nat.c (save_sigtrap): Update.
10529 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10530 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10531 (linux_nat_close): Update.
10532 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10533 argument.
10534 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10535 argument.
10536 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10537 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10538 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10539 (tmp_to_async): Add 'ops' argument.
10540 (record_full_stopped_by_watchpoint, record_full_async)
10541 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10542 argument.
10543 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10544 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10545 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10546 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10547 (remote_is_async_p, remote_async): Add 'ops' argument.
10548 (remote_stopped_data_address): Update.
10549 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10550 * target.c (update_current_target)
10551 (find_default_can_async_p, find_default_is_async_p): Update.
10552 (init_dummy_target): Update.
10553 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10554 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10555 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10556 (target_can_async_p, target_is_async_p, target_async)
10557 (target_stopped_by_watchpoint): Update.
10558
e095146b
YQ
105592014-02-19 Yao Qi <yao@codesourcery.com>
10560
10561 PR gdb/16220
10562 * gdbarch.sh: Remove startup_gdbarch.
10563 * gdbarch.c: Regenerated.
10564 * gdbarch.h: Likewise.
10565
bc3c6b36
KB
105662014-02-17 Kevin Buettner <kevinb@redhat.com>
10567
10568 * rl78-tdep.c (rl78_g10_register_name): New function.
10569 (rl78_return_value): Add g10 support.
10570 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10571 g10.
10572
98dc0167 105732014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10574
10575 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10576 (SUBDIR_GUILE_SRCS): Ditto.
10577 (scm-gsmob.o): Ditto.
10578
842c05cd
YQ
105792014-02-17 Yao Qi <yao@codesourcery.com>
10580
10581 * gnu-nat.c (ILL_RPC): Declare defined function.
10582
25c0bd04
YQ
105832014-02-17 Yao Qi <yao@codesourcery.com>
10584
10585 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10586 mach_msg_type_number_t.
10587 (gnu_write_inferior): Likewise.
10588
a9a758e3
YQ
105892014-02-17 Yao Qi <yao@codesourcery.com>
10590
10591 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10592 in format string.
10593 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10594 (inf_validate_procs, inf_signal): Likewise.
10595 (S_exception_raise_request): Likewise.
10596 (do_mach_notify_dead_name): Likewise.
10597 (steal_exc_port): Likewise.
10598 (gnu_read_inferior): Change 'copy_count''s type to
10599 mach_msg_type_number_t.
10600 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10601 format string.
10602
bae8023e
TS
106032014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10604
c82f56d9
TS
10605 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10606 flag. Adjust all users; in particular...
10607 (gnu_wait): ..., don't decrement its value in here...
10608 (gnu_create_inferior): ..., and instead set the flag in here,
10609 around the startup_inferior call, and call that one with
10610 START_INFERIOR_TRAPS_EXPECTED.
10611
3398af6a
TS
10612 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10613 (ILL_RPC): ... new macro.
10614 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10615 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10616 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10617 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10618 functions with ILL_RPC macro.
10619 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10620 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10621 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10622 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10623 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10624 (S_proc_getlogin_reply, S_proc_getsid_reply)
10625 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10626 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10627 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10628 (S_proc_getnports_reply, S_proc_is_important_reply)
10629 (S_proc_get_code_reply): New stub functions, generated with
10630 ILL_RPC macro.
10631
d47642c9
TS
10632 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10633 collected the type check structures.
10634
bae8023e
TS
10635 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10636
8a55ffb0
DE
106372014-02-14 Doug Evans <dje@google.com>
10638
10639 * target.c (target_write_partial): Fix result type.
10640
c2853f3d
JM
106412014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10642
10643 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10644 the proper offsets to access fpregset_t.
10645
ac61d2db
SA
106462014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10647
10648 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10649 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10650 * h8300-tdep.c (setmachinelist): Remove global.
10651 * hppa-tdep.c (hppa_sigtramp): Remove global.
10652 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10653 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10654 * ravenscar-thread.c (update_target_observer): Remove global.
10655 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10656
9d2d0b8b
TT
106572014-02-12 Tom Tromey <tromey@redhat.com>
10658
10659 * common/rsp-low.c: Update comments.
10660 * common/rsp-low.h: Update comments.
10661
a7191e8b
TT
106622014-02-12 Tom Tromey <tromey@redhat.com>
10663
10664 * common/rsp-low.c (convert_ascii_to_int): Remove.
10665 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10666
ff0e980e
TT
106672014-02-12 Tom Tromey <tromey@redhat.com>
10668
10669 * common/rsp-low.h (unhexify): Don't declare.
10670 * common/rsp-low.c (unhexify): Remove.
10671
e9371aff
TT
106722014-02-12 Tom Tromey <tromey@redhat.com>
10673
10674 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10675 * common/rsp-low.c (convert_int_to_ascii): Remove.
10676
971dc0b8
TT
106772014-02-12 Tom Tromey <tromey@redhat.com>
10678
10679 * common/rsp-low.h (hexify): Don't declare.
10680 * common/rsp-low.c (hexify): Remove.
10681
0a822afb
TT
106822014-02-12 Tom Tromey <tromey@redhat.com>
10683
10684 * common/rsp-low.c (hexify): Never take strlen of argument.
10685
9f1b45b0
TT
106862014-02-12 Tom Tromey <tromey@redhat.com>
10687
10688 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10689 * remote.c (extended_remote_run, remote_rcmd)
10690 (remote_download_trace_state_variable, remote_save_trace_data)
10691 (remote_set_trace_notes): Update.
10692 * tracepoint.c (encode_source_string, tfile_write_status)
10693 (tfile_write_uploaded_tsv): Update.
10694
9c3d6531
TT
106952014-02-12 Tom Tromey <tromey@redhat.com>
10696
10697 * tracepoint.c: Include rsp-low.h.
10698 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10699 * remote.c: Include rsp-low.h.
10700 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10701 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10702 (remote_unescape_input): Move to common/rsp-low.c.
10703 * common/rsp-low.h: New file.
10704 * common/rsp-low.c: New file.
10705 * Makefile.in (SFILES): Add common/rsp-low.c.
10706 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10707 (COMMON_OBS): Add rsp-low.o.
10708 (rsp-low.o): New target.
10709
01fd3ea5
TT
107102014-02-12 Tom Tromey <tromey@redhat.com>
10711
10712 * utils.h: Include print-utils.h.
10713 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10714 (int_string, core_addr_to_string, core_addr_to_string_nz)
10715 (hex_string, hex_string_custom): Don't declare.
10716 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10717 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10718 (hex_string_custom, int_string, core_addr_to_string)
10719 (core_addr_to_string_nz, host_address_to_string): Move to
10720 common/print-utils.c.
10721 * common/print-utils.h: New file.
10722 * common/print-utils.c: New file
10723 * Makefile.in (SFILES): Add common/print-utils.c.
10724 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10725 (COMMON_OBS): Add print-utils.o.
10726 (print-utils.o): New target.
10727
9fb50108
TT
107282014-02-12 Tom Tromey <tromey@redhat.com>
10729
10730 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10731
0548b5db
MK
107322014-02-12 Mark Kettenis <kettenis@gnu.org>
10733
10734 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10735
493443a4
MK
107362014-02-12 Mark Kettenis <kettenis@gnu.org>
10737
10738 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10739 if a PT_IO ptrace request returns sucessfully but indicates that 0
10740 bytes were transferred.
10741
706d0883
PA
107422014-02-12 Pedro Alves <palves@redhat.com>
10743 Kevin Buettner <kevinb@redhat.com>
10744
10745 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10746 TYPE_INSTANCE_FLAG_CODE_SPACE.
10747
5caa2f0b
PA
107482014-02-12 Pedro Alves <palves@redhat.com>
10749
10750 * h8300-tdep.c (pseudo_from_raw_register)
10751 (raw_from_pseudo_register): New functions.
10752 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10753 them.
10754
76fd5f74
PA
107552014-02-12 Pedro Alves <palves@redhat.com>
10756
10757 * h8300-tdep.c (h8300_register_sim_regno): New function.
10758 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10759 gdbarch_register_sim_regno hook.
10760
8f008406
SA
107612014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10762
10763 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10764
195abc10
SA
107652014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10766
10767 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10768
93ffa5b9
MK
107692014-02-12 Mark Kettenis <kettenis@gnu.org>
10770
10771 * obsd-tdep.h (obsd_init_abi): New prototype.
10772 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10773 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10774 (obsd_init_abi): New functions.
10775 * i386obsd-tdep.c: Include "obsd-tdep.h".
10776 (i386obsd_init_abi): Call obsd_init_abi.
10777 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10778 (amd64obsd_init_abi): Call obsd_init_abi.
10779 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10780 obsd-tdep.c to gdb_target_obs.
10781
49caec94
JM
107822014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10783
10784 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10785 double float arguments to 16-byte in the argument slots.
10786
e1402065
DE
107872014-02-11 Doug Evans <xdje42@gmail.com>
10788
10789 * configure.ac: Don't crash if pkg-config is not found and guile
10790 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10791 in guile checks.
10792 * configure: Regenerate.
10793
edcc890f
YQ
107942014-02-11 Yao Qi <yao@codesourcery.com>
10795
10796 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10797 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10798 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10799 * gnu-nat.c (gnu_xfer_memory): Likewise.
10800 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10801 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10802 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10803 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10804
9b409511
YQ
108052014-02-11 Yao Qi <yao@codesourcery.com>
10806
10807 * target.h (enum target_xfer_error): Rename to ...
10808 (enum target_xfer_status): ... it. New. All users updated.
10809 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10810 New.
10811 (TARGET_XFER_STATUS_ERROR_P): New macro.
10812 (target_xfer_error_to_string): Remove declaration.
10813 (target_xfer_status_to_string): Declare.
10814 (target_xfer_partial_ftype): Adjust it.
10815 (struct target_ops) <to_xfer_partial>: Return
10816 target_xfer_status. Add argument xfered_len. Update
10817 comments.
10818 * target.c (target_xfer_error_to_string): Rename to ...
10819 (target_xfer_status_to_string): ... it. New. All callers
10820 updated.
10821 (target_read_live_memory): Likewise. Call target_xfer_partial
10822 instead of target_read.
10823 (memory_xfer_live_readonly_partial): Return
10824 target_xfer_status. Add argument xfered_len.
10825 (raw_memory_xfer_partial): Likewise.
10826 (memory_xfer_partial_1): Likewise.
10827 (memory_xfer_partial): Likewise.
10828 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10829 properly. Update debug message.
10830 (default_xfer_partial, current_xfer_partial): Likewise.
10831 (target_write_partial): Likewise.
10832 (target_read_partial): Likewise. All callers updated.
10833 (read_whatever_is_readable): Likewise.
10834 (target_write_with_progress): Likewise.
10835 (target_read_alloc_1): Likewise.
10836
10837 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10838 * auxv.c (procfs_xfer_auxv): Likewise.
10839 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10840 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10841 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10842 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10843 * corefile.c (read_memory): Adjust.
10844 * corelow.c (core_xfer_partial): Likewise.
10845 * ctf.c (ctf_xfer_partial): Likewise.
10846 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10847 updated.
10848 (darwin_xfer_partial): Likewise.
10849 * exec.c (section_table_xfer_memory_partial): Likewise. All
10850 callers updated.
10851 (exec_xfer_partial): Likewise.
10852 * exec.h (section_table_xfer_memory_partial): Update
10853 declaration.
10854 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10855 negative.
10856 (gnu_xfer_partial): Likewise.
10857 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10858 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10859 (ia64_hpux_xfer_solib_got): Likewise.
10860 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10861 type of 'partial_len' to ULONGEST.
10862 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10863 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10864 (linux_nat_xfer_partial): Likewise.
10865 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10866 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10867 * monitor.c (monitor_xfer_memory): Likewise.
10868 (monitor_xfer_partial): Likewise.
10869 * procfs.c (procfs_xfer_partial): Likewise.
10870 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10871 * record-full.c (record_full_xfer_partial): Likewise.
10872 (record_full_core_xfer_partial): Likewise.
10873 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10874 (gdbsim_xfer_partial): Likewise.
10875 * remote.c (remote_write_bytes_aux): Likewise. All callers
10876 updated.
10877 (remote_write_bytes, remote_read_bytes): Likewise. All
10878 callers updated.
10879 (remote_flash_erase): Likewise. All callers updated.
10880 (remote_write_qxfer): Likewise. All callers updated.
10881 (remote_read_qxfer): Likewise. All callers updated.
10882 (remote_xfer_partial): Likewise.
10883 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10884 (rs6000_xfer_shared_libraries): Likewise.
10885 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10886 (sol_thread_xfer_partial): Likewise.
10887 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10888 (sparc_xfer_partial): Likewise.
10889 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10890 updated.
10891 (spu_xfer_partial): Likewise.
10892 * spu-multiarch.c (spu_xfer_partial): Likewise.
10893 * tracepoint.c (tfile_xfer_partial): Likewise.
10894 * windows-nat.c (windows_xfer_memory): Likewise.
10895 (windows_xfer_shared_libraries): Likewise.
10896 (windows_xfer_partial): Likewise.
10897 * valprint.c: Replace 'target_xfer_error' with
10898 'target_xfer_status' in comments.
10899
a8e63083
JB
109002014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10901
10902 Checked in by Joel Brobecker <brobecker@adacore.com>.
10903 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10904
e86b67d3
JB
109052014-02-11 Joel Brobecker <brobecker@adacore.com>
10906
10907 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10908 function parameters.
10909
4b7d1f7f
WN
109102014-02-10 Will Newton <will.newton@linaro.org>
10911
10912 * elfread.c (elf_rel_plt_read): Look for a .got section if
10913 looking up .got.plt fails.
10914 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10915 on address passed to elf_gnu_ifunc_record_cache.
10916 (elf_gnu_ifunc_resolve_addr): Likewise.
10917 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10918
961842b2
JM
109192014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10920
10921 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10922 (X_RETTURN): New macro.
10923 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10924
10925 * sparc64-tdep.c (sparc64_init_abi): Hook
10926 sparc_in_function_epilogue_p.
10927
3f03e7b1
GB
109282014-02-10 Gary Benson <gbenson@redhat.com>
10929
10930 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10931 Rename name_matcher to symbol_matcher.
10932
96f861ef
GB
109332014-02-10 Gary Benson <gbenson@redhat.com>
10934
10935 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10936 Use expand_symtabs_file_matcher_ftype and
10937 expand_symtabs_symbol_matcher_ftype.
10938
ee01b665
JB
109392014-02-10 Joel Brobecker <brobecker@adacore.com>
10940
10941 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10942 (struct ada_symbol_cache): New.
10943 (ada_free_symbol_cache): Forward declare.
10944 (struct ada_pspace_data): New.
10945 (ada_pspace_data_handle): New static global.
10946 (get_ada_pspace_data, ada_pspace_data_cleanup)
10947 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10948 (cache_space, cache): Delete, now folded inside struct
10949 ada_pspace_data.
10950 (ada_get_symbol_cache): New function.
10951 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10952 implementation.
10953 (_initialize_ada_language): Remove initialization of cache_space.
10954 Move call to observer_attach_inferior_exit up, grouping it
10955 with the other observer registrations inside this function.
10956 Rename command to be more general. Add call to
10957 register_program_space_data_with_cleanup.
10958
143adbbf
JB
109592014-02-10 Joel Brobecker <brobecker@adacore.com>
10960
10961 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10962 ada_new_objfile_observer.
10963 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10964 (_initialize_tasks): Update uses of ada_new_objfile_observer
10965 and ada_tasks_normal_stop_observer.
10966
aa4fb036
JB
109672014-02-10 Joel Brobecker <brobecker@adacore.com>
10968
10969 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10970 returned by the 'Length attribute to integer.
10971
9dee8cc6
JB
109722014-02-10 Joel Brobecker <brobecker@adacore.com>
10973
10974 * ada-lang.c (_initialize_ada_language): Initialize
10975 cache_space obstack.
10976
3d9434b5
JB
109772014-02-10 Joel Brobecker <brobecker@adacore.com>
10978
10979 * ada-lang.c (HASH_SIZE): New macro.
10980 (struct cache_entry): New type.
10981 (cache_space, cache): New static globals.
10982 (ada_clear_symbol_cache, find_entry): New functions.
10983 (lookup_cached_symbol, cache_symbol): Implement.
10984 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10985 (_initialize_ada_language): Attach ada_new_objfile_observer
10986 and ada_free_objfile_observer.
10987
f0c5f9b2
JB
109882014-02-10 Joel Brobecker <brobecker@adacore.com>
10989
10990 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10991 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10992 struct block * parameter.
10993 (ada_lookup_symbol_list_worker): Constify local variable "block".
10994 Remove cast which is no longer necessary.
10995
ed3ef339
DE
109962014-02-10 Doug Evans <xdje42@gmail.com>
10997
10998 Add Guile as an extension language.
10999 * NEWS: Mention Guile scripting.
11000 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11001 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11002 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11003 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11004 (CLIBS): Add GUILE_LIBS.
11005 (install-guile): New rule.
11006 (guile.o): New rule.
11007 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11008 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11009 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11010 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11011 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11012 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11013 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11014 * configure.ac: New option --with-guile.
11015 * configure: Regenerate.
11016 * config.in: Regenerate.
11017 * auto-load.c: Remove #include "python/python.h". Add #include
11018 "gdb/section-scripts.h".
11019 (source_section_scripts): Handle Guile scripts.
11020 (_initialize_auto_load): Add name of Guile objfile script to
11021 scripts-directory help text.
11022 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11023 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11024 (struct breakpoint): New member scm_bp_object.
11025 * defs.h (enum command_control_type): New value guile_control.
11026 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11027 "extension.h".
11028 (show_user): Update comment.
11029 (_initialize_cli_cmds): Update help text for "show user". Update help
11030 text for max-user-call-depth.
11031 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11032 "extension.h".
11033 (multi_line_command_p): Add guile_control.
11034 (print_command_lines): Handle guile_control.
11035 (execute_control_command, recurse_read_control_structure): Ditto.
11036 (process_next_line): Recognize "guile" commands.
11037 * disasm.c (gdb_disassemble_info): Make non-static.
11038 * disasm.h: #include "dis-asm.h".
11039 (struct gdbarch): Add forward decl.
11040 (gdb_disassemble_info): Declare.
11041 * extension.c: #include "guile/guile.h".
11042 (extension_languages): Add guile.
11043 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11044 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11045 * gdbtypes.c (get_unsigned_type_max): New function.
11046 (get_signed_type_minmax): New function.
11047 * gdbtypes.h (get_unsigned_type_max): Declare.
11048 (get_signed_type_minmax): Declare.
11049 * guile/README: New file.
11050 * guile/guile-internal.h: New file.
11051 * guile/guile.c: New file.
11052 * guile/guile.h: New file.
11053 * guile/scm-arch.c: New file.
11054 * guile/scm-auto-load.c: New file.
11055 * guile/scm-block.c: New file.
11056 * guile/scm-breakpoint.c: New file.
11057 * guile/scm-disasm.c: New file.
11058 * guile/scm-exception.c: New file.
11059 * guile/scm-frame.c: New file.
11060 * guile/scm-gsmob.c: New file.
11061 * guile/scm-iterator.c: New file.
11062 * guile/scm-lazy-string.c: New file.
11063 * guile/scm-math.c: New file.
11064 * guile/scm-objfile.c: New file.
11065 * guile/scm-ports.c: New file.
11066 * guile/scm-pretty-print.c: New file.
11067 * guile/scm-safe-call.c: New file.
11068 * guile/scm-string.c: New file.
11069 * guile/scm-symbol.c: New file.
11070 * guile/scm-symtab.c: New file.
11071 * guile/scm-type.c: New file.
11072 * guile/scm-utils.c: New file.
11073 * guile/scm-value.c: New file.
11074 * guile/lib/gdb.scm: New file.
11075 * guile/lib/gdb/boot.scm: New file.
11076 * guile/lib/gdb/experimental.scm: New file.
11077 * guile/lib/gdb/init.scm: New file.
11078 * guile/lib/gdb/iterator.scm: New file.
11079 * guile/lib/gdb/printing.scm: New file.
11080 * guile/lib/gdb/types.scm: New file.
11081 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11082 (VPATH): Add $(GUILE_SRCDIR).
11083 (GUILE_DIR): New variable.
11084 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11085 (all): Add stamp-guile dependency.
11086 (stamp-guile): New rule.
11087 (clean-guile, install-guile, uninstall-guile): New rules.
11088 (install-only): Add install-guile dependency.
11089 (uninstall): Add uninstall-guile dependency.
11090 (clean): Add clean-guile dependency.
11091
ac020ec5
DE
110922014-02-09 Doug Evans <xdje42@gmail.com>
11093
11094 Revert this patch (which I approved, mea culpa).
11095
11096 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11097
11098 * Makefile.in (all-lib): Remove.
11099 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11100
2a081c59
JK
111012014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11102
11103 Fix Python stack corruption.
11104 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11105 gdb_py_longest.
11106
0a6bd22d
MK
111072014-02-08 Mark Kettenis <kettenis@gnu.org>
11108
11109 * Makefile.in (all-lib): Remove.
11110 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11111
1a860409
DE
111122014-02-07 Doug Evans <dje@google.com>
11113
11114 * extension-priv.h (extension_language_script_ops): Add comment.
11115 (extension_language_ops): Add comment.
caf5a491 11116 (active_ext_lang_state): Fix typo in comment.
1a860409 11117
d137e6dc
PA
111182014-02-07 Pedro Alves <palves@redhat.com>
11119
0dcb32c3 11120 PR breakpoints/16292
d137e6dc
PA
11121 * infrun.c (handle_signal_stop) <signal arrives while stepping
11122 over a breakpoint>: Switch back to the stepping thread.
11123
ce6d0892
YQ
111242014-02-07 Yao Qi <yao@codesourcery.com>
11125
11126 * target.c (target_xfer_partial): Return zero if LEN is zero.
11127
2ed4b548
YQ
111282014-02-07 Yao Qi <yao@codesourcery.com>
11129
11130 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11131 (ld_so_xfer_auxv): Likewise.
11132 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11133 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11134 * corelow.c (core_xfer_partial): Likewise.
11135 * ctf.c (ctf_xfer_partial): Likewise.
11136 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11137 (darwin_xfer_partial): Likewise.
11138 * exec.c (exec_xfer_partial): Likewise.
11139 * gnu-nat.c (gnu_xfer_partial): Likewise.
11140 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11141 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11142 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11143 * linux-nat.c (linux_xfer_siginfo): Likewise.
11144 (linux_proc_xfer_spu): Likewise.
11145 * procfs.c (procfs_xfer_partial): Likewise.
11146 * record-full.c (record_full_xfer_partial): Likewise.
11147 (record_full_core_xfer_partial): Likewise.
11148 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11149 * remote.c (remote_write_qxfer): Likewise.
11150 (remote_write_qxfer, remote_read_qxfer): Likewise.
11151 (remote_xfer_partial): Likewise.
11152 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11153 (rs6000_xfer_shared_libraries): Likewise.
11154 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11155 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11156 (spu_xfer_partial): Likewise.
11157 * target.c (memory_xfer_partial_1): Likewise.
11158 * tracepoint.c (tfile_xfer_partial): Likewise.
11159 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11160 (windows_xfer_partial): Likewise.
11161
c09f20e4
YQ
111622014-02-07 Yao Qi <yao@codesourcery.com>
11163
11164 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11165 comments.
11166 (core_xfer_shared_libraries_aix): Likewise.
11167 * gdbarch.c, gdbarch.h: Regenerated.
11168 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11169 ULONGEST. Change 'len_avail' type to ULONGEST.
11170 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11171 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11172 declaration.
11173 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11174
8635b3bf
YQ
111752014-02-07 Yao Qi <yao@codesourcery.com>
11176
11177 * corefile.c (memory_error): Get 'exception' from ERR and pass
11178 'exception' to throw_error.
11179
6dddc817
DE
111802014-02-06 Doug Evans <xdje42@gmail.com>
11181
11182 * configure.ac (libpython checking): Remove all but python.o from
11183 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11184 * configure: Regenerate.
11185
11186 * Makefile.in (SFILES): Add extension.c.
11187 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11188 (COMMON_OBS): Add extension.o.
11189 * extension.h: New file.
11190 * extension-priv.h: New file.
11191 * extension.c: New file.
11192
11193 * python/python-internal.h: #include "extension.h".
11194 (gdbpy_auto_load_enabled): Declare.
11195 (gdbpy_apply_val_pretty_printer): Declare.
11196 (gdbpy_apply_frame_filter): Declare.
11197 (gdbpy_preserve_values): Declare.
11198 (gdbpy_breakpoint_cond_says_stop): Declare.
11199 (gdbpy_breakpoint_has_cond): Declare.
11200 (void source_python_script_for_objfile): Delete.
11201 * python/python.c: #include "extension-priv.h".
11202 Delete inclusion of "observer.h".
11203 (extension_language_python): Moved here and renamed from
11204 script_language_python in py-auto-load.c.
11205 Redefined to be of type extension_language_defn.
11206 (python_extension_script_ops): New global.
11207 (python_extension_ops): New global.
11208 (struct python_env): New member previous_active.
11209 (restore_python_env): Call restore_active_ext_lang.
11210 (ensure_python_env): Call set_active_ext_lang.
11211 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11212 New arg extlang.
11213 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11214 New arg extlang.
11215 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11216 New arg extlang.
11217 (gdbpy_eval_from_control_command): Renamed from
11218 eval_python_from_control_command, made static. New arg extlang.
11219 (gdbpy_source_script) Renamed from source_python_script, made static.
11220 New arg extlang.
11221 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11222 result to int. New arg extlang.
11223 (gdbpy_source_objfile_script): Renamed from
11224 source_python_script_for_objfile, made static. New arg extlang.
11225 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11226 static. New args extlang, extlang_printers. Change result type to
11227 "void".
11228 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11229 static. New arg extlang. Rename arg printers to extlang_printers
11230 and change type to ext_lang_type_printers *.
11231 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11232 static. Replace argument arg with extlang, extlang_printers.
11233 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11234 (!HAVE_PYTHON, source_python_script): Delete.
11235 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11236 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11237 (!HAVE_PYTHON, start_type_printers): Delete.
11238 (!HAVE_PYTHON, apply_type_printers): Delete.
11239 (!HAVE_PYTHON, free_type_printers): Delete.
11240 (_initialize_python): Delete call to observer_attach_before_prompt.
11241 (finalize_python): Set/restore active extension language.
11242 (gdbpy_finish_initialization) Renamed from
11243 finish_python_initialization, made static. New arg extlang.
11244 (gdbpy_initialized): New function.
11245 * python/python.h: #include "extension.h". Delete #include
11246 "value.h", "mi/mi-cmds.h".
11247 (extension_language_python): Declare.
11248 (GDBPY_AUTO_FILE_NAME): Delete.
11249 (enum py_bt_status): Moved to extension.h and renamed to
11250 ext_lang_bt_status.
11251 (enum frame_filter_flags): Moved to extension.h.
11252 (enum py_frame_args): Moved to extension.h and renamed to
11253 ext_lang_frame_args.
11254 (finish_python_initialization): Delete.
11255 (eval_python_from_control_command): Delete.
11256 (source_python_script): Delete.
11257 (apply_val_pretty_printer): Delete.
11258 (apply_frame_filter): Delete.
11259 (preserve_python_values): Delete.
11260 (gdbpy_script_language_defn): Delete.
11261 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11262 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11263
11264 * auto-load.c: #include "extension.h".
11265 (GDB_AUTO_FILE_NAME): Delete.
11266 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11267 (script_language_gdb): Delete, moved to extension.c and renamed to
11268 extension_language_gdb.
11269 (source_gdb_script_for_objfile): Delete.
11270 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11271 (loaded_script): Change type of language member to
11272 struct extension_language_defn *.
11273 (init_loaded_scripts_info): Initialize
11274 unsupported_script_warning_printed.
11275 (maybe_add_script): Make static. Change type of language arg to
11276 struct extension_language_defn *.
11277 (clear_section_scripts): Reset unsupported_script_warning_printed.
11278 (auto_load_objfile_script_1): Rewrite to use extension language API.
11279 (auto_load_objfile_script): Make public. Remove support-compiled-in
11280 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11281 (source_section_scripts): Rewrite to use extension language API.
11282 (load_auto_scripts_for_objfile): Rewrite to use
11283 auto_load_scripts_for_objfile.
11284 (collect_matching_scripts_data): Change type of language member to
11285 struct extension_language_defn *.
11286 (auto_load_info_scripts): Change type of language arg to
11287 struct extension_language_defn *.
11288 (unsupported_script_warning_print): New function.
11289 (script_not_found_warning_print): Make static.
11290 (_initialize_auto_load): Rewrite construction of scripts-directory
11291 help.
11292 * auto-load.h (struct objfile): Add forward decl.
11293 (struct script_language): Delete.
11294 (struct auto_load_pspace_info): Add forward decl.
11295 (struct extension_language_defn): Add forward decl.
11296 (maybe_add_script): Delete.
11297 (auto_load_objfile_script): Declare.
11298 (script_not_found_warning_print): Delete.
11299 (auto_load_info_scripts): Update prototype.
11300 (auto_load_gdb_scripts_enabled): Declare.
11301 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11302 auto_load_python_scripts_enabled and made public.
11303 (script_language_python): Delete, moved to python.c.
11304 (gdbpy_script_language_defn): Delete.
11305 (info_auto_load_python_scripts): Update to use
11306 extension_language_python.
11307
11308 * breakpoint.c (condition_command): Replace call to
11309 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11310 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11311 with call to breakpoint_ext_lang_cond_says_stop.
11312 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11313 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11314 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11315 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11316 New arg slang.
11317 (local_setattro): Print name of extension language with existing
11318 stop condition.
11319
11320 * valprint.c (val_print, value_print): Update to call
11321 apply_ext_lang_val_pretty_printer.
11322 * cp-valprint.c (cp_print_value): Update call to
11323 apply_ext_lang_val_pretty_printer.
11324 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11325 (gdbpy_apply_val_pretty_printer): Renamed from
11326 apply_val_pretty_printer. New arg extlang.
11327 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11328
11329 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11330 extension language API.
11331 * cli/cli-script.c (execute_control_command): Update to call
11332 eval_ext_lang_from_control_command.
11333
11334 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11335 enum ext_lang_bt_status values. Update call to
11336 apply_ext_lang_frame_filter.
11337 (mi_cmd_stack_list_locals): Ditto.
11338 (mi_cmd_stack_list_args): Ditto.
11339 (mi_cmd_stack_list_variables): Ditto.
11340 * mi/mi-main.c: Delete #include "python/python-internal.h".
11341 Add #include "extension.h".
11342 (mi_cmd_list_features): Replace reference to python internal variable
11343 gdb_python_initialized with call to ext_lang_initialized_p.
11344
11345 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11346 Update to use enum ext_lang_frame_args. Update to call
11347 apply_ext_lang_frame_filter.
11348 * python/py-framefilter.c (extract_sym): Update to use enum
11349 ext_lang_bt_status.
11350 (extract_value, py_print_type, py_print_value): Ditto.
11351 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11352 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11353 (py_print_frame): Ditto.
11354 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11355 New arg extlang. Update to use enum ext_lang_bt_status.
11356
11357 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11358 finish_python_initialization. Replace with call to
11359 finish_ext_lang_initialization.
11360
11361 * typeprint.c (do_free_global_table): Update to call
11362 free_ext_lang_type_printers.
11363 (create_global_typedef_table): Update to call
11364 start_ext_lang_type_printers.
11365 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11366 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11367 (type_print_options): Change type of global_printers from "void *"
11368 to "struct ext_lang_type_printers *".
11369
11370 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11371 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11372 (gdbpy_preserve_values): Renamed from preserve_python_values.
11373 New arg extlang.
11374 (!HAVE_PYTHON, preserve_python_values): Delete.
11375
11376 * utils.c (quit_flag): Delete, moved to extension.c.
11377 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11378 extension.c.
11379
11380 * eval.c: Delete #include "python/python.h".
11381 * main.c: Delete #include "python/python.h".
11382
11383 * defs.h: Update comment.
11384
6af79985
JB
113852014-02-06 Joel Brobecker <brobecker@adacore.com>
11386
11387 GDB 7.7 released.
11388
12c5175d
MK
113892014-02-05 Mark Kettenis <kettenis@gnu.org>
11390
11391 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11392 defined.
11393
8dc5b319
YQ
113942014-02-05 Yao Qi <yao@codesourcery.com>
11395
11396 * remote.c (remote_pass_signals): Remove local 'buf' and use
11397 rs->buf.
11398 (remote_program_signals): Likewise.
11399
de7b2893
YQ
114002014-02-05 Yao Qi <yao@codesourcery.com>
11401
11402 * ctf.c: Include "inferior.h" and "gdbthread.h".
11403 (CTF_PID): A new macro.
11404 (ctf_open): Call inferior_appeared and add_thread_silent.
11405 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11406 (ctf_thread_alive): New function.
11407 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11408
66d032ac
YQ
114092014-02-05 Yao Qi <yao@codesourcery.com>
11410
11411 Revert this patch:
11412
11413 2013-05-24 Yao Qi <yao@codesourcery.com>
11414
11415 * tracepoint.c (TFILE_PID): Remove.
11416 (tfile_open): Don't add thread and inferior.
11417 (tfile_close): Don't set 'inferior_ptid'. Don't call
11418 exit_inferior_silent.
11419 (tfile_thread_alive): Remove.
11420 (init_tfile_ops): Don't set field 'to_thread_alive' of
11421 tfile_ops.
11422
f4ccffad
CE
114232014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11424
11425 * remote.c (remote_start_remote): Call remote_check_symbols even
11426 if only symbol-file (not file) has been given.
11427
591a12a1
UW
114282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11429
11430 * gdbarch.sh (skip_entrypoint): New callback.
11431 * gdbarch.c, gdbarch.h: Regenerate.
11432 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11433 * infrun.c (fill_in_stop_func): Likewise.
11434 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11435 (ppc_elfv2_elf_make_msymbol_special): New function.
11436 (ppc_elfv2_skip_entrypoint): Likewise.
11437 (ppc_linux_init_abi): Install them for ELFv2.
11438
cc0e89c5
UW
114392014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11440
11441 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11442 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11443 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11444 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11445 structures returned in GPRs.
11446
52f548e4
UW
114472014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11448
11449 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11450 offset to the stack parameter list for the ELFv2 ABI.
11451
d4094b6a
UW
114522014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11453
11454 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11455 set_gdbarch_convert_from_func_ptr_addr and
11456 set_gdbarch_elf_make_msymbol_special for ELFv1.
11457 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11458 function descriptors on ELFv1.
11459 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11460 set up r12 at function entry.
11461
cd453cd0
UW
114622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11463
11464 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11465 (struct gdbarch_tdep): New member elf_abi.
11466
11467 * rs6000-tdep.c: Include "elf/ppc64.h".
11468 (rs6000_gdbarch_init): Detect ELF ABI version.
11469
0ff3e01f
UW
114702014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11471
11472 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11473 within a register pair holding a DFP 128-bit value on little-endian.
11474 (ppc64_sysv_abi_return_value_base): Likewise.
11475 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11476 (dfp_pseudo_register_write): Likewise.
11477
5b757e5d
UW
114782014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11479
11480 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11481 offset on little-endian when passing _Decimal32.
11482 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11483
084ee545
UW
114842014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11485
11486 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11487 of the overlapped FP register within the VSX register on little-
11488 endian platforms.
11489 (efpr_pseudo_register_write): Likewise.
11490
d63167af
UW
114912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11492
11493 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11494 offset on little-endian when passing small structures.
11495
e765b44c
UW
114962014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11497
11498 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11499 (struct ppc64_sysv_argpos): New data structure.
11500 (ppc64_sysv_abi_push_float): Remove.
11501 (ppc64_sysv_abi_push_val): New function.
11502 (ppc64_sysv_abi_push_integer): Likewise.
11503 (ppc64_sysv_abi_push_freg): Likewise.
11504 (ppc64_sysv_abi_push_vreg): Likewise.
11505 (ppc64_sysv_abi_push_param): Likewise.
11506 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11507 (ppc64_sysv_abi_return_value_base): New function.
11508 (ppc64_sysv_abi_return_value): Refactor to use it.
11509
36c24d95
UW
115102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11511
11512 * NEWS: Document new target powerpc64le-*-linux*.
11513
26fd9228
MK
115142014-02-04 Mark Kettenis <kettenis@gnu.org>
11515
11516 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11517 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11518 core dumps.
11519 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11520 register set used in ELF core dumps. Add floating-point register set.
11521
c5bb7362
KB
115222014-02-03 Kevin Buettner <kevinb@redhat.com>
11523
74228e77 11524 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11525 dwarf2_to_gdb[] table using symbolic constants. Adjust
11526 penultimate entry from number representing the PC register
11527 to symbolic constant representing the MDR register. Add
11528 constant for the PC register to the end of the table.
11529
af09351e
MK
115302014-02-03 Mark Kettenis <kettenis@gnu.org>
11531
11532 * bsd-kvm.c: Include <sys/param.h>
11533
8507e05d
MK
115342014-02-03 Mark Kettenis <kettenis@gnu.org>
11535
11536 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11537
ae56bfb8
JB
115382014-01-31 Joel Brobecker <brobecker@adacore.com>
11539
11540 * ada-lang.h (clear_ada_sym_cache): Delete.
11541
718ee4dc
UW
115422014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11543
11544 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11545
401e27fd
JM
115462014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11547
11548 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11549 the sigreturn register save area only if the syscall is
11550 sigreturn.
11551
a7c88acd
JB
115522014-01-29 Joel Brobecker <brobecker@adacore.com>
11553
11554 * valops.c (value_slice): Minor reformatting.
11555
fa0079ea
UW
115562014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11557
11558 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11559
c6044dd1
JB
115602014-01-28 Joel Brobecker <brobecker@adacore.com>
11561
11562 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11563 New static globals.
11564 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11565 (ada_ignore_descriptive_types_p): New static global.
11566 (find_parallel_type_by_descriptive_type): Return immediately
11567 if ada_ignore_descriptive_types_p is set.
11568 (_initialize_ada_language): Register new commands "maintenance
11569 set ada", "maintenance show ada", "maintenance set ada
11570 ignore-descriptive-types" and "maintenance show ada
11571 ignore-descriptive-types".
11572 * NEWS: Add entry for new "maint ada set/show
11573 ignore-descriptive-types" commands.
11574
568e808b
MM
115752014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11576
11577 * record-btrace.c (record_btrace_close): Call btrace_teardown
11578 for all threads.
11579
467d141b
JB
115802014-01-27 Joel Brobecker <brobecker@adacore.com>
11581
11582 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11583 "ui-out.h".
11584
fb151210
JB
115852014-01-27 Joel Brobecker <brobecker@adacore.com>
11586
11587 * ada-typeprint (type_is_full_subrange_of_target_type):
11588 New function.
11589 (print_range): Add parameter bounds_prefered_p. If not set,
11590 try printing range types using the name of their base type.
11591 (print_range_type): Add parameter bounds_prefered_p.
11592 Use it in call to print_range.
11593 (print_array_type, ada_print_type): Update calls to print_range
11594 and print_range_type.
11595
aba02109
JB
115962014-01-27 Joel Brobecker <brobecker@adacore.com>
11597
11598 * ada-typeprint.c (print_array_type, print_choices, print_range)
11599 (print_range_bound, print_dynamic_range_bound, print_range_type):
11600 Remove declaration.
11601
e62e21fd
JB
116022014-01-27 Joel Brobecker <brobecker@adacore.com>
11603
11604 * ada-typeprint.c (print_range): Add missing empty line
11605 after local declaration.
11606
859cf5d1
JB
116072014-01-27 Joel Brobecker <brobecker@adacore.com>
11608
11609 * ada-valprint.c (print_optional_low_bound): Get index_type's
11610 target type for as long as it is a TYPE_CODE_RANGE.
11611
25790f6f
JB
116122014-01-27 Joel Brobecker <brobecker@adacore.com>
11613
11614 * procfs.c (procfs_make_note_section): Remove assertion and
11615 associated comment.
11616
6b6aa828
YQ
116172014-01-24 Yao Qi <yao@codesourcery.com>
11618
11619 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11620 * corelow.c (get_core_siginfo): Likewise.
11621
5d6df423
YQ
116222014-01-24 Yao Qi <yao@codesourcery.com>
11623
11624 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11625 ULONGEST. Don't check 'len' is negative.
11626 (remote_write_bytes): Change type of 'len' to ULONGEST.
11627
83b645b8
TT
116282014-01-23 Tom Tromey <tromey@redhat.com>
11629
11630 PR python/16485:
11631 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11632 Handle exception from frame.block.
11633 (FrameVars.fetch_frame_locals): Likewise.
11634
0740f8d8
TT
116352014-01-23 Tom Tromey <tromey@redhat.com>
11636
11637 PR python/16487:
11638 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11639 on a NULL pointer. Move "goto error" to correct place.
11640
21909fa1
TT
116412014-01-23 Tom Tromey <tromey@redhat.com>
11642
11643 PR python/16491:
11644 * python/py-framefilter.c (apply_frame_filter): Call
11645 ensure_python_env after computing gdbarch.
11646
17fde6d0
YQ
116472014-01-23 Yao Qi <yao@codesourcery.com>
11648
11649 * target.c (raw_memory_xfer_partial): Change argument type
11650 from void * to gdb_byte *.
11651 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11652
87ce2a04
DE
116532014-01-22 Doug Evans <dje@google.com>
11654
11655 New gdbserver option --debug-format=timestamp.
11656 * NEWS: Mention it.
11657
237b092b
AA
116582014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11659
11660 * syscalls/s390x-linux.xml: New file.
11661 * syscalls/s390-linux.xml: New file.
11662 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11663 (XML_SYSCALL_FILENAME_S390X): Likewise.
11664 (op_svc): New enum value for SVC opcode.
11665 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11666 (s390_linux_get_syscall_number): New function.
11667 (s390_gdbarch_init): Register '*get_syscall_number' and the
11668 syscall xml file name.
11669 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11670 "s390-linux.xml" and "s390x-linux.xml".
11671 * NEWS: Announce new feature.
11672
54bff650
BS
116732014-01-22 Baruch Siach <baruch@tkos.co.il>
11674
11675 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11676
14e361d7
PA
116772014-01-22 Pedro Alves <palves@redhat.com>
11678
11679 * xtensa-config.c: Include defs.h.
11680
46bbb3ed
JB
116812014-01-22 Joel Brobecker <brobecker@adacore.com>
11682
11683 * common/common-utils.h: Add "ARI:" comment beside __func__
11684 reference.
11685
3a80edfc
JB
116862014-01-22 Joel Brobecker <brobecker@adacore.com>
11687
11688 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11689 documentation a bit.
11690
4869db5e
RM
116912014-01-21 Roland McGrath <mcgrathr@google.com>
11692
11693 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11694 * configure: Regenerate.
11695 * aclocal.m4: Regenerate.
11696 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11697 New substituted variables.
11698 (install-strip): New target.
11699 (INSTALL_SCRIPT): New substituted variable.
11700 (FLAGS_TO_PASS): Add it.
11701 (install-only): Use $(INSTALL_SCRIPT) rather than
11702 $(INSTALL_PROGRAM) for gcore.
11703
9ea4267d
TT
117042014-01-20 Tom Tromey <tromey@redhat.com>
11705
11706 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11707 together.
11708
1f2bdf09
TT
117092014-01-20 Tom Tromey <tromey@redhat.com>
11710
11711 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11712 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11713 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11714 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11715 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11716 (struct cmd_list_element) <flags>: Remove.
11717 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11718 doc_allocated>: New fields.
11719 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11720 bitfields.
11721 * maint.c (maintenance_do_deprecate): Update.
11722 * top.c (execute_command): Update.
11723
e671835b
BS
117242014-01-20 Baruch Siach <baruch@tkos.co.il>
11725
11726 * xtensa-linux-nat.c: Include asm/ptrace.h.
11727
50367cd2
IB
117282014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11729
11730 * Makefile.in (SFILES): Add d-support.c.
11731 (COMMON_OBS): Add d-support.o.
11732 * d-lang.h (d_parse_symbol): Add comment, now defined in
11733 d-support.c.
11734 * d-lang.c (parse_call_convention)
11735 (parse_attributes, parse_function_types)
11736 (parse_function_args, parse_type, parse_identifier)
11737 (call_convention_p, d_parse_symbol): Move functions to ...
11738 * d-support.c: ... New file.
11739
ec9f644a
IB
117402014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11741
11742 * d-lang.h (d_parse_symbol): Add declaration.
11743 * d-lang.c (extract_identifiers)
11744 (extract_type_info): Remove functions.
11745 (parse_call_convention, parse_attributes)
11746 (parse_function_types, parse_function_args)
11747 (parse_type, parse_identifier, call_convention_p)
11748 (d_parse_symbol): New functions.
11749 (d_demangle): Use d_parse_symbol to demangle D symbols.
11750
94b1b47e
IB
117512014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11752
11753 * d-lang.h (struct builtin_d_type): New data type.
11754 (builtin_d_type): Add declaration.
11755 * d-lang.c (d_language_arch_info, build_d_types)
11756 (builtin_d_type): New functions.
11757 (enum d_primitive_types): New data type.
11758 (d_language_defn): Change c_language_arch_info to
11759 d_language_arch_info.
11760 (d_type_data): New static variable.
11761 (_initialize_d_language): Initialize d_type_data.
11762
63778547
IB
117632014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11764
11765 * d-lang.h (d_main_name): Add declaration.
11766 * d-lang.c (d_main_name): New function.
11767 * symtab.c (find_main_name): Add call to d_main_name.
11768
3271ba66
IB
117692014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11770
11771 * d-lang.c (d_language_defn): Change macro_expansion_c to
11772 macro_expansion_no.
11773
d36b3012
IB
117742014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11775
11776 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11777
c90a6fb7
SDJ
117782014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11779
11780 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11781 gdb_exception" declaration.
11782 * remote.c (getpkt_or_notif_sane): Likewise.
11783
749234e5
DE
117842014-01-17 Doug Evans <dje@google.com>
11785
11786 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11787 function, contents of dirnames_to_char_ptr_vec_append moved here.
11788 (delim_string_to_char_ptr_vec): New function.
11789 (dirnames_to_char_ptr_vec_append): Rewrite.
11790 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11791
df049a58
DE
117922014-01-17 Doug Evans <dje@google.com>
11793
11794 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11795 and moved here ...
11796 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11797 #include "common-utils.h".
11798 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11799 * common/vec.h (VEC_ASSERT_PASS): Update.
11800 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11801 (MACH_CHECK_ERROR): Update.
11802
69f97648
SM
118032014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11804
11805 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11806 comments.
11807 * gdbarch.h: Regenerate.
11808
98b1cfdc
TT
118092014-01-16 Tom Tromey <tromey@redhat.com>
11810
11811 * value.c (struct value) <regnum>: Move earlier.
11812
77a19445
TT
118132014-01-16 Tom Tromey <tromey@redhat.com>
11814
11815 * remote.c (extended_remote_create_inferior): Rename from
11816 extended_remote_create_inferior_1. Add "ops" argument. Remove
11817 old implementation.
11818
62261490
PA
118192014-01-16 Pedro Alves <palves@redhat.com>
11820
11821 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11822 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11823 the backchain.
11824
4d65956b
DE
118252014-01-16 Doug Evans <dje@google.com>
11826
11827 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11828
52834460
MM
118292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11830
11831 * btrace.h (btrace_thread_flag): New.
11832 (struct btrace_thread_info) <flags>: New.
11833 * record-btrace.c (record_btrace_resume_thread)
11834 (record_btrace_find_thread_to_move, btrace_step_no_history)
11835 (btrace_step_stopped, record_btrace_start_replaying)
11836 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11837 (record_btrace_find_resume_thread): New.
11838 (record_btrace_resume, record_btrace_wait): Extend.
11839 (record_btrace_can_execute_reverse): New.
11840 (record_btrace_open): Fail in non-stop mode.
11841 (record_btrace_set_replay): Split into this, ...
11842 (record_btrace_stop_replaying): ... this, ...
11843 (record_btrace_clear_histories): ... and this.
11844 (init_record_btrace_ops): Init to_can_execute_reverse.
11845 * NEWS: Announce it.
11846
118e6252
MM
118472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11848
11849 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11850 (forward_target_decr_pc_after_break)
11851 (target_decr_pc_after_break): New.
11852 * target.c (forward_target_decr_pc_after_break)
11853 (target_decr_pc_after_break): New.
11854 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11855 instead of gdbarch_decr_pc_after_break.
11856 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11857 instead of gdbarch_decr_pc_after_break.
11858 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11859 instead of gdbarch_decr_pc_after_break.
11860 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11861 instead of gdbarch_decr_pc_after_break.
11862 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11863 instead of gdbarch_decr_pc_after_break.
11864 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11865 instead of gdbarch_decr_pc_after_break.
11866
6e07b1d2
MM
118672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11868
11869 * btrace.c: Include regcache.h.
11870 (btrace_add_pc): New.
11871 (btrace_enable): Call btrace_add_pc.
11872 (btrace_is_empty): New.
11873 * btrace.h (btrace_is_empty): New.
11874 * record-btrace.c (require_btrace, record_btrace_info): Call
11875 btrace_is_empty.
11876
969c39fb
MM
118772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11878
11879 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11880 Support delta reads.
11881 (linux_disable_btrace): Change return type.
11882 * common/linux-btrace.h (linux_read_btrace): Change parameters
11883 and return type to allow error reporting. Update users.
11884 (linux_disable_btrace): Change return type. Update users.
11885 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11886 New.
11887 (btrace_error): New.
11888 (btrace_block) <begin>: Comment on BEGIN == 0.
11889 * btrace.c (btrace_compute_ftrace): Start from the end of
11890 the current trace.
11891 (btrace_stitch_trace, btrace_clear_history): New.
11892 (btrace_fetch): Read delta trace, return if replaying.
11893 (btrace_clear): Move clear history code to btrace_clear_history.
11894 (parse_xml_btrace): Throw an error if parsing failed.
11895 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11896 and return type to allow error reporting.
11897 (target_read_btrace): Change parameters and return type to allow
11898 error reporting.
11899 * target.c (target_read_btrace): Update.
11900 * remote.c (remote_read_btrace): Support delta reads. Pass
11901 errors on.
11902 * NEWS: Announce it.
11903
0b722aec
MM
119042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11905
11906 * record.h (record_btrace_frame_unwind)
11907 (record_btrace_tailcall_frame_unwind): New declarations.
11908 * dwarf2-frame: Include record.h
11909 (dwarf2_frame_cfa): Throw an error for btrace frames.
11910 * record-btrace.c: Include hashtab.h.
11911 (btrace_get_bfun_name): New.
11912 (btrace_call_history): Call btrace_get_bfun_name.
11913 (struct btrace_frame_cache): New.
11914 (bfcache): New.
11915 (bfcache_hash, bfcache_eq, bfcache_new): New.
11916 (btrace_get_frame_function): New.
11917 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11918 (record_btrace_frame_this_id): Compute own id.
11919 (record_btrace_frame_prev_register): Provide PC, throw_error
11920 for all other registers.
11921 (record_btrace_frame_sniffer): Detect btrace frames.
11922 (record_btrace_tailcall_frame_sniffer): New.
11923 (record_btrace_frame_dealloc_cache): New.
11924 (record_btrace_frame_unwind): Add new functions.
11925 (record_btrace_tailcall_frame_unwind): New.
11926 (_initialize_record_btrace): Allocate cache.
11927 * btrace.c (btrace_clear): Call reinit_frame_cache.
11928 * NEWS: Announce it.
11929
066ce621
MM
119302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11931
11932 * record-btrace.c (record_btrace_set_replay)
11933 (record_btrace_goto_begin, record_btrace_goto_end)
11934 (record_btrace_goto): New.
11935 (init_record_btrace_ops): Initialize them.
11936 * NEWS: Announce it.
11937
e2887aa3
MM
119382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11939
11940 * record-btrace.c (record_btrace_find_new_threads)
11941 (record_btrace_thread_alive): New.
11942 (init_record_btrace_ops): Initialize to_find_new_threads and
11943 to_thread_alive.
11944
b2f4cfde
MM
119452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11946
11947 * record-btrace.c (record_btrace_resume): New.
11948 (record_btrace_wait): New.
11949 (init_record_btrace_ops): Initialize to_wait and to_resume.
11950
633785ff
MM
119512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11952
11953 * record-btrace.c (record_btrace_xfer_partial)
11954 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11955 (record_btrace_allow_memory_access): New.
11956 (init_record_btrace_ops): Initialize new methods.
11957 * target.c (raw_memory_xfer_partial): Bail out if target reports
11958 that this memory is not available.
11959
3db08215
MM
119602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11961
11962 * target.h (target_ops) <to_insert_breakpoint>
11963 <to_remove_breakpoint>: Add target_ops parameter.
11964 (forward_target_insert_breakpoint): New.
11965 (forward_target_remove_breakpoint): New.
11966 (memory_remove_breakpoint, memory_insert_breakpoint):
11967 Add target_ops parameter.
11968 * target.c (target_insert_breakpoint): Split into this and ...
11969 (forward_target_insert_breakpoint): ... this.
11970 (target_remove_breakpoint): Split into this and ...
11971 (forward_target_remove_breakpoint): ... this.
11972 (debug_to_insert_breakpoint): Add target_ops parameter.
11973 Call forward_target_insert_breakpoint.
11974 (debug_to_remove_breakpoint): Add target_ops parameter.
11975 Call forward_target_remove_breakpoint.
11976 (update_current_target): Do not inherit or default to_insert_breakpoint
11977 and to_remove_breakpoint.
11978 * corelow.c (ignore): Add target_ops parameter.
11979 * exec.c (ignore): Add target_ops parameter.
11980 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11981 Add target_ops parameter.
11982 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11983 Add target_ops parameter.
11984 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11985 Add target_ops parameter.
11986 * record-full.c (record_full_beneath_to_insert_breakpoint)
11987 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11988 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11989 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11990 (record_full_core_remove_breakpoint): Add target_ops parameter.
11991 Update users.
11992 (record_full_beneath_to_insert_breakpoint_ops)
11993 (record_full_beneath_to_remove_breakpoint_ops)
11994 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11995 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11996 tmp_to_remove_breakpoint_ops,
11997 record_full_beneath_to_insert_breakpoint_ops, and
11998 record_full_beneath_to_remove_breakpoint_ops.
11999 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12000 (m32r_remove_breakpoint): Add target_ops parameter.
12001 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12002 Add target_ops parameter.
12003 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12004 Add target_ops parameter.
12005
cecac1ab
MM
120062014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12007 Markus Metzger <markus.t.metzger@intel.com>
12008
12009 * record-btrace.c: Include frame-unwind.h.
12010 (record_btrace_frame_unwind_stop_reason)
12011 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12012 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12013 New.
12014 (init_record_btrace_ops): Install it.
12015
824344ca
MM
120162014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12017
12018 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12019 get_prev_frame_1.
12020
32261e52
MM
120212014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12022
12023 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12024 earlier.
12025
ea001bdc
MM
120262014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12027
12028 * frame-unwind.c: Include target.h.
12029 (frame_unwind_try_unwinder): New function with code from ...
12030 (frame_unwind_find_by_frame): ... here. New variable
12031 unwinder_from_target, call also target_get_unwinder)
12032 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12033 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12034 * target.h (struct target_ops): New fields to_get_unwinder and
12035 to_get_tailcall_unwinder.
12036 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12037
1f3ef581
MM
120382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12039
12040 * record-btrace.c (record_btrace_fetch_registers)
12041 (record_btrace_store_registers)
12042 (record_btrace_to_prepare_to_store): New.
12043 (init_record_btrace_ops): Add the above.
12044
f32dbf8c
MM
120452014-01-16 Tom Tromey <tromey@redhat.com>
12046
12047 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12048 * target.h (struct target_ops) <to_prepare_to_store>: Add
12049 argument.
12050 (target_prepare_to_store): Add argument.
12051 * target.c (debug_to_prepare_to_store): Add argument.
12052 (update_current_target): Update.
12053 * remote.c (remote_prepare_to_store): Add 'self' argument.
12054 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12055 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12056 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12057 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12058 argument.
12059 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12060 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12061 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12062 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12063 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12064
07bbe694
MM
120652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12066
12067 * btrace.h (replay) <replay>: New.
12068 (btrace_is_replaying): New.
12069 * btrace.c (btrace_clear): Free replay iterator.
12070 (btrace_is_replaying): New.
12071 * record-btrace.c (record_btrace_is_replaying): New.
12072 (record_btrace_info): Print insn number if replaying.
12073 (record_btrace_insn_history): Start at replay position.
12074 (record_btrace_call_history): Start at replay position.
12075 (init_record_btrace_ops): Init to_record_is_replaying.
12076
0688d04e
MM
120772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12078
12079 * record-btrace.c (record_btrace_insn_history_range): Include
12080 end.
12081 (record_btrace_insn_history_from): Adjust range.
12082 (record_btrace_call_history_range): Include
12083 end.
12084 (record_btrace_call_history_from): Adjust range.
12085 * NEWS: Announce changes.
12086
8710b709
MM
120872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12088
12089 * record.h (enum record_print_flag)
12090 <record_print_indent_calls>: New.
12091 * record.c (get_call_history_modifiers): Recognize /c modifier.
12092 (_initialize_record): Document /c modifier.
12093 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12094 Reorder fields. Optionally indent the function name. Update
12095 all users.
12096 * NEWS: Announce changes.
12097
d0fa7535
MM
120982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12099
12100 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12101
5de9129b
MM
121022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12103
12104 * btrace.c (ftrace_new_function): Start counting at one.
12105 * record-btrace.c (record_btrace_info): Adjust number of calls
12106 and insns.
12107 * NEWS: Announce it.
12108
7acbe133
MM
121092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12110
12111 * record-btrace.c (btrace_call_history_insn_range): Print
12112 insn range as [begin, end].
12113
23a7fe75
MM
121142014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12115
12116 * btrace.h (struct btrace_func_link): New.
12117 (enum btrace_function_flag): New.
12118 (struct btrace_inst): Rename to ...
12119 (struct btrace_insn): ...this. Update all users.
12120 (struct btrace_func) <ibegin, iend>: Remove.
12121 (struct btrace_func_link): New.
12122 (struct btrace_func): Rename to ...
12123 (struct btrace_function): ...this. Update all users.
12124 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12125 (number, level, flags>: New.
12126 (struct btrace_insn_iterator): Rename to ...
12127 (struct btrace_insn_history): ...this.
12128 Update all users.
12129 (struct btrace_insn_iterator, btrace_call_iterator): New.
12130 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12131 (struct btrace_target_info) <begin, end, level>
12132 <insn_history, call_history>: New.
12133 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12134 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12135 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12136 (btrace_call_number, btrace_call_begin, btrace_call_end)
12137 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12138 (btrace_find_function_by_number, btrace_set_insn_history)
12139 (btrace_set_call_history): New.
12140 * btrace.c (btrace_init_insn_iterator)
12141 (btrace_init_func_iterator, compute_itrace): Remove.
12142 (ftrace_print_function_name, ftrace_print_filename)
12143 (ftrace_skip_file): Change
12144 parameter to const.
12145 (ftrace_init_func): Remove.
12146 (ftrace_debug): Use new btrace_function fields.
12147 (ftrace_function_switched): Also consider gaining and
12148 losing symbol information).
12149 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12150 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12151 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12152 New.
12153 (ftrace_new_function): Move. Remove debug print.
12154 (ftrace_update_lines, ftrace_update_insns): New.
12155 (ftrace_update_function): Check for call, ret, and jump.
12156 (compute_ftrace): Renamed to ...
12157 (btrace_compute_ftrace): ...this. Rewritten to compute call
12158 stack.
12159 (btrace_fetch, btrace_clear): Updated.
12160 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12161 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12162 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12163 (btrace_call_number, btrace_call_begin, btrace_call_end)
12164 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12165 (btrace_find_function_by_number, btrace_set_insn_history)
12166 (btrace_set_call_history): New.
12167 * record-btrace.c (require_btrace): Use new btrace thread
12168 info fields.
12169 (record_btrace_info, btrace_insn_history)
12170 (record_btrace_insn_history, record_btrace_insn_history_range):
12171 Use new btrace thread info fields and new iterator.
12172 (btrace_func_history_src_line): Rename to ...
12173 (btrace_call_history_src_line): ...this. Use new btrace
12174 thread info fields.
12175 (btrace_func_history): Rename to ...
12176 (btrace_call_history): ...this. Use new btrace thread info
12177 fields and new iterator.
12178 (record_btrace_call_history, record_btrace_call_history_range):
12179 Use new btrace thread info fields and new iterator.
12180
8372a7cb
MM
121812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12182
12183 * frame.h (frame_id_build_unavailable_stack_special): New.
12184 * frame.c (frame_id_build_unavailable_stack_special): New.
12185
c2170eef
MM
121862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12187
12188 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12189 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12190 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12191 to gdbarch.
12192 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12193 (i386_insn_is_jump, i386_jmp_p): New.
12194 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12195 insn_is_jump to gdbarch.
12196 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12197 * gdbarch.h: Regenerated.
12198 * gdbarch.c: Regenerated.
12199 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12200 (default_insn_is_jump): New.
12201 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12202 (default_insn_is_jump): New.
12203
864089d2
MM
122042014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12205
12206 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12207 Change to ...
12208 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12209 (btrace_read_type) <btrace_read_new>: Change to ...
12210 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12211
ed9edfb5
MM
122122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12213
12214 * common/linux-btrace.c (linux_read_btrace): Free trace from
12215 previous iteration.
12216
fbcbc3fd
DE
122172014-01-15 Doug Evans <dje@google.com>
12218
12219 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12220 uint32_t.
12221
3d548a53
TT
122222014-01-15 Tom Tromey <tromey@redhat.com>
12223
12224 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12225 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12226 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12227 (set_objfile_main_name): New function.
12228 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12229 language_of_main>: New fields.
12230 (set_objfile_main_name): Declare.
12231 * symtab.c (find_main_name): Loop over objfiles to find the main
12232 name and language.
12233 (set_main_name): Now static.
12234 (get_main_info): Add comment.
12235 * symtab.h (set_main_name): Don't declare.
12236
32ac0d11
TT
122372014-01-15 Tom Tromey <tromey@redhat.com>
12238
12239 * symtab.c (main_progspace_key): New global.
12240 (struct main_info): New.
12241 (name_of_main, language_of_main): Remove.
12242 (get_main_info, main_info_cleanup): New function.
12243 (set_main_name, main_name, main_language): Use get_main_info.
12244 (_initialize_symtab): Initialize main_progspace_key.
12245
9e6c82ad
TT
122462014-01-15 Tom Tromey <tromey@redhat.com>
12247
12248 * dbxread.c (process_one_symbol): Update.
12249 * dwarf2read.c (read_partial_die): Update.
12250 * symfile.c (set_initial_language): Call main_language.
12251 * symtab.c (language_of_main): Now static.
12252 (set_main_name): Add 'lang' parameter.
12253 (find_main_name): Update.
12254 (main_language): New function.
12255 (symtab_observer_executable_changed): Update.
12256 * symtab.h (set_main_name): Update.
12257 (language_of_main): Remove.
12258 (main_language): Declare.
12259
6ef55de7
TT
122602014-01-15 Tom Tromey <tromey@redhat.com>
12261
12262 * symfile.c (init_entry_point_info): Use new "initialized" field.
12263 Update.
12264 * objfiles.h (struct entry_point) <initialized>: New field.
12265 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12266 (struct objfile) <ei>: ...here. Remove.
12267 * objfiles.c (entry_point_address_query): Update.
12268
53eddfa6
TT
122692014-01-15 Tom Tromey <tromey@redhat.com>
12270
12271 * objfiles.c (entry_point_address_query): Relocate entry point
12272 address.
12273 (objfile_relocate1): Do not relocate entry point address.
12274 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12275 <the_bfd_section_index>: New field.
12276 * symfile.c (init_entry_point_info): Find the entry point's
12277 section.
12278
d56e56aa
TT
122792014-01-15 Tom Tromey <tromey@redhat.com>
12280
12281 * solib-frv.c (enable_break): Use entry_point_address_query.
12282
33a97bbe
OJ
122832014-01-15 Omair Javaid <omair.javaid@linaro.org>
12284
12285 * NEWS: Add note on improved process record-replay on
12286 arm*-linux* targets.
12287
c6ec2b30
OJ
122882014-01-15 Omair Javaid <omair.javaid@linaro.org>
12289
12290 * arm-tdep.c (enum arm_record_result): New enum.
12291 (arm_record_unsupported_insn): New function.
12292 (arm_record_coproc_data_proc): Removed.
12293 (thumb2_record_ld_st_multiple): New function.
12294 (thumb2_record_ld_st_dual_ex_tbb): New function.
12295 (thumb2_record_data_proc_sreg_mimm): New function.
12296 (thumb2_record_ps_dest_generic): New function.
12297 (thumb2_record_branch_misc_cntrl): New function.
12298 (thumb2_record_str_single_data): New function.
12299 (thumb2_record_ld_mem_hints): New function.
12300 (thumb2_record_ld_word): New function.
12301 (thumb2_record_lmul_lmla_div): New function.
12302 (thumb2_record_decode_insn_handler): New function.
12303 (decode_insn): Add thumb32 instruction handlers.
12304
97dfe206
OJ
123052014-01-15 Omair Javaid <omair.javaid@linaro.org>
12306
12307 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12308 (struct arm_linux_record_tdep): Declare.
12309 (arm_canonicalize_syscall): New function.
12310 (arm_all_but_pc_registers_record): New function.
12311 (arm_linux_syscall_record): New function.
12312 (arm_linux_init_abi): Add syscall recording constructs.
12313 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12314 decoding. (arm_record_coproc_data_proc): Update arm syscall
12315 decoding.
12316 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12317 <arm_syscall_record>: New field.
12318 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12319 gdb_target_obs.
12320
9904a494
OJ
123212014-01-15 Omair Javaid <omair.javaid@linaro.org>
12322
12323 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12324 register for push instruction recording.
12325
f969241e
OJ
123262014-01-15 Omair Javaid <omair.javaid@linaro.org>
12327
12328 * arm-tdep.c (thumb_record_misc): Update to correct logical
12329 error while recording ldm, ldmia and pop instructions.
12330
bfbbec00
OJ
123312014-01-15 Omair Javaid <omair.javaid@linaro.org>
12332
12333 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12334
e40adcc9
PA
123352014-01-15 Pedro Alves <palves@redhat.com>
12336
12337 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12338 (go32_resume, go32_fetch_registers, store_register)
12339 (go32_store_registers, go32_prepare_to_store)
12340 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12341 (go32_create_inferior, go32_can_run, go32_terminal_init)
12342 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12343 declarations.
12344
b0a16e66
TT
123452014-01-15 Tom Tromey <tromey@redhat.com>
12346
12347 * target.h (async_callback_ftype): New typedef.
12348 (struct target_ops) <to_async>: Use it.
12349
bf7105a4
JB
123502014-01-15 Joel Brobecker <brobecker@adacore.com>
12351
12352 * python/py-value.c (get_field_type): Remove unnecessary curly
12353 braces for single-statement if block.
12354
a8f35c2e
JB
123552014-01-15 Joel Brobecker <brobecker@adacore.com>
12356
12357 * python/py-type.c (convert_field): Add missing empty line
12358 after declarations.
12359
bb4142cf
DE
123602014-01-14 Doug Evans <dje@google.com>
12361
12362 * symfile.h (expand_symtabs_matching): Renamed from
12363 expand_partial_symbol_names. Update prototype.
12364 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12365 * symfile.c (expand_symtabs_matching): Renamed from
12366 expand_partial_symbol_names. New args file_matcher, kind.
12367 Rename arg fun to symbol_matcher.
12368 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12369 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12370 ada_expand_partial_symbol_name.
12371 (ada_make_symbol_completion_list): Update to call
12372 expand_symtabs_matching.
12373 (ada_add_global_exceptions): Call expand_symtabs_matching.
12374 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12375 call map_symbol_filenames.
12376 * symtab.c (sources_info): Update to call map_symbol_filenames.
12377 (search_symbols): Call expand_symtabs_matching.
12378 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12379 (default_make_symbol_completion_list_break_on): Update to call
12380 expand_symtabs_matching.
12381 (make_source_files_completion_list): Update to call
12382 map_symbol_filenames.
12383
206f2a57
DE
123842014-01-14 Doug Evans <dje@google.com>
12385
12386 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12387 (expand_symtabs_symbol_matcher_ftype): New typedef.
12388 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12389 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12390 * symfile.c (expand_partial_symbol_names): Update to use
12391 expand_symtabs_symbol_matcher_ftype.
12392 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12393 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12394 Arg name_matcher renamed to symbol_matcher.
12395 * psymtab.c (recursively_search_psymtabs): Update to use
12396 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12397 sym_matcher.
12398 (expand_symtabs_matching_via_partial): Update to use
12399 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12400 Arg name_matcher renamed to symbol_matcher.
12401
540c2971
DE
124022014-01-14 Doug Evans <dje@google.com>
12403
12404 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12405 (map_partial_symbol_filenames): Ditto.
12406 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12407 (map_partial_symbol_filenames): Ditto.
12408 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12409 (map_partial_symbol_filenames): Ditto.
12410 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12411 (map_partial_symbol_filenames): Ditto.
12412 * symtab.c: Delete #include "psymtab.h".
12413
8213266a
PA
124142014-01-14 Pedro Alves <palves@redhat.com>
12415 Tom Tromey <tromey@redhat.com>
12416
12417 * infrun.c (use_displaced_stepping): Use find_record_target
12418 instead of RECORD_IS_USED.
12419 (adjust_pc_after_break): Use record_full_is_used instead of
12420 RECORD_IS_USED.
12421 * record-btrace.c (record_btrace_open): Call record_preopen
12422 instead of checking RECORD_IS_USED.
12423 * record-full.c (record_full_shortname)
12424 (record_full_core_shortname): New globals.
12425 (record_full_is_used): New function.
12426 (find_full_open): Call record_preopen instead of checking
12427 RECORD_IS_USED.
12428 (init_record_full_ops): Set the target's shortname to
12429 record_full_shortname.
12430 (init_record_full_core_ops): Set the target's shortname to
12431 record_full_core_shortname.
12432 * record-full.h (record_full_is_used): Declare.
12433 * record.c (find_record_target): Make extern.
12434 (record_preopen): New function.
12435 * record.h (RECORD_IS_USED): Delete macro.
12436 (find_record_target, record_preopen): Declare functions.
12437
7ec1862d
YQ
124382014-01-14 Yao Qi <yao@codesourcery.com>
12439
12440 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12441 'len''s type to ULONGEST.
12442 (core_xfer_shared_libraries_aix): Likewise.
12443 * gdbarch.c, gdbarch.h: Regenerated.
12444 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12445 Change type of 'len' to ULONGEST.
12446 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12447 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12448
dea80a27
YQ
124492014-01-14 Yao Qi <yao@codesourcery.com>
12450
12451 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12452 type of 'len' to ULONGEST.
12453 (linux_xfer_osdata_processgroups): Likewise.
12454 (linux_xfer_osdata_threads): Likewise.
12455 (linux_xfer_osdata_fds): Likewise.
12456 (linux_xfer_osdata_isockets): Likewise.
12457 (linux_xfer_osdata_shm): Likewise.
12458 (linux_xfer_osdata_sem): Likewise.
12459 (linux_xfer_osdata_msg): Likewise.
12460 (linux_common_xfer_osdata): Likewise.
12461 (struct osdata_type) <getter>: Likewise.
12462 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12463 the declaration.
12464
b55e14c7
YQ
124652014-01-14 Yao Qi <yao@codesourcery.com>
12466
12467 * target.h (target_xfer_partial_ftype): Update.
12468 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12469 ULONGEST.
12470 * aix-thread.c (aix_thread_xfer_partial): Change type of
12471 argument 'len' to ULONGEST.
12472 * auxv.c (procfs_xfer_auxv): Likewise.
12473 (ld_so_xfer_auxv): Likewise.
12474 (memory_xfer_auxv): Likewise.
12475 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12476 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12477 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12478 * corelow.c (core_xfer_partial): Likewise.
12479 * ctf.c (ctf_xfer_partial): Likewise.
12480 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12481 '%u'.
12482 (darwin_read_dyld_info): Likewise.
12483 (darwin_xfer_partial): Likewise.
12484 * exec.c (section_table_xfer_memory_partial): Likewise.
12485 (exec_xfer_partial): Likewise.
12486 * exec.h (section_table_xfer_memory_partial): Update
12487 declaration.
12488 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12489 instead of plongest.
12490 (gnu_xfer_partial): Likewise.
12491 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12492 (ia64_hpux_xfer_solib_got): Likewise.
12493 (ia64_hpux_xfer_partial): Likewise.
12494 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12495 * inf-ptrace.c (inf_ptrace_xfer_partial):
12496 * inf-ttrace.c (inf_ttrace_xfer_partial):
12497 * linux-nat.c (linux_xfer_siginfo): Likewise.
12498 (linux_nat_xfer_partial): Likewise.
12499 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12500 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12501 * monitor.c (monitor_xfer_memory): Likewise.
12502 (monitor_xfer_partial): Likewise.
12503 * procfs.c (procfs_xfer_partial): Likewise.
12504 * record-full.c (record_full_xfer_partial): Likewise.
12505 (record_full_core_xfer_partial): Likewise.
12506 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12507 instead of plongest.
12508 (gdbsim_xfer_partial): Likewise.
12509 * remote.c (remote_xfer_partial): Likewise.
12510 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12511 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12512 declaration.
12513 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12514 (rs6000_xfer_shared_libraries): Likewise.
12515 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12516 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12517 (sparc_xfer_partial): Likewise.
12518 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12519 (spu_xfer_partial): Likewise.
12520 * spu-multiarch.c (spu_xfer_partial): Likewise.
12521 * target.c (target_read_live_memory): Likewise.
12522 (memory_xfer_live_readonly_partial): Likewise.
12523 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12524 (target_xfer_partial, default_xfer_partial): Likewise.
12525 (current_xfer_partial): Likewise.
12526 * tracepoint.c (tfile_xfer_partial): Likewise.
12527 * windows-nat.c (windows_xfer_memory): Likewise. Call
12528 pulongest instead of plongest.
12529 (windows_xfer_partial): Likewise.
12530 (windows_xfer_shared_libraries): Likewise.
12531
05804640
YQ
125322014-01-14 Yao Qi <yao@codesourcery.com>
12533
12534 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12535 target_xfer_partial_ftype.
12536
b5b08fb4
SC
125372014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12538
12539 PR python/15464
12540 PR python/16113
12541 * valops.c (value_struct_elt_bitpos): New function
12542 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12543 object to 'None' if the field name is an empty string ("").
12544 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12545 attribute to look for a field when 'name' is 'None'.
12546 (get_field_type): New function
12547
13aaf454
DE
125482014-01-13 Doug Evans <dje@google.com>
12549
12550 PR symtab/16426
12551 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12552 (try_open_dwop_file): Ditto.
12553 * gdb_bfd.c: #include "vec.h".
12554 (bfdp): New typedef.
12555 (struct gdb_bfd_data): New member included_bfds.
12556 (gdb_bfd_unref): Unref all included bfds.
12557 (gdb_bfd_record_inclusion): New function.
12558 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12559
c2cec97c
TT
125602014-01-13 Tom Tromey <tromey@redhat.com>
12561
12562 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12563
78e5999d
TT
125642014-01-13 Tom Tromey <tromey@redhat.com>
12565
12566 * defs.h (use_windows): Remove.
12567 * gdb.c (main): Update.
12568 * main.c (captured_main, gdb_main): Update.
12569 * main.h (struct captured_main_args) <use_windows>: Remove.
12570 * top.c (use_windows): Remove.
12571
f2052bbe
TT
125722014-01-13 Tom Tromey <tromey@redhat.com>
12573
12574 * defs.h (deprecated_flush_hook): Remove.
12575
fde4f8ed
JK
125762014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12577
12578 PR threads/16216
12579 * linux-thread-db.c (try_thread_db_load): Add parameter
12580 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12581 (try_thread_db_load_from_pdir_1): Move it there from here.
12582 (try_thread_db_load_from_sdir): Update caller.
12583 (try_thread_db_load_from_dir): Move it there from here.
12584
bdf61915
PP
125852014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12586
12587 * regformats/regdat.sh: Always rewrite the register file.
12588
f71e1a8d
PA
125892014-01-13 Pedro Alves <palves@redhat.com>
12590
12591 * Makefile.in (CHECK_HEADERS): New variable.
12592 (check-headers:): New rule.
12593
42c85435
TT
125942014-01-13 Tom Tromey <tromey@redhat.com>
12595
12596 * cli/cli-setshow.c (do_set_command): Update.
12597 * defs.h (deprecated_set_hook): Remove.
12598 * top.c (deprecated_set_hook): Remove.
12599
f8de5129
PA
126002014-01-13 Pedro Alves <palves@redhat.com>
12601
12602 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12603 the tracepoint if the PC is a pseudo-register.
12604
fc270c35
TT
126052014-01-13 Tom Tromey <tromey@redhat.com>
12606
12607 * defs.h (XCALLOC): Remove.
12608 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12609 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12610 * dwarf2loc.c (allocate_piece_closure): Likewise.
12611 * elfread.c (elf_symfile_segments): Likewise.
12612 (elf_symfile_segments): Likewise.
12613 * gdbtypes.c (copy_type_recursive): Likewise.
12614 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12615 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12616 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12617 XCALLOC.
12618 * mt-tdep.c (mt_gdbarch_init): Likewise.
12619 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12620 XCALLOC.
12621 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12622 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12623 * registry.c (registry_alloc_data): Likewise.
12624 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12625 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12626 * serial.c (serial_fdopen_ops): Likewise.
12627 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12628 XCALLOC.
12629 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12630 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12631 not XCALLOC.
12632
70ba0933
TT
126332014-01-13 Tom Tromey <tromey@redhat.com>
12634
12635 * defs.h (XMALLOC): Remove.
12636 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12637 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12638 * cli-out.c (struct ui_out *): Likewise.
12639 * cli/cli-dump.c (add_dump_command): Likewise.
12640 (add_dump_command): Likewise.
12641 * complaints.c (get_complaints): Likewise.
12642 (find_complaint): Likewise.
12643 * dwarf2-frame.c (execute_cfa_program): Likewise.
12644 * dwarf2read.c (abbrev_table_read_table): Likewise.
12645 * gdbarch.sh: Likewise.
12646 * gdbarch.c: Rebuild.
12647 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12648 * interps.c (interp_new): Likewise.
12649 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12650 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12651 * mi/mi-console.c (mi_console_file_new): Likewise.
12652 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12653 * mi/mi-out.c (mi_out_new): Likewise.
12654 * mi/mi-parse.c (mi_parse): Likewise.
12655 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12656 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12657 * observer.c (xalloc_observer_list_node): Likewise.
12658 * regcache.c (regcache_xmalloc_1): Likewise.
12659 * reggroups.c (reggroup_new): Likewise.
12660 (_initialize_reggroup): Likewise.
12661 * registry.c (register_data_with_cleanup): Likewise.
12662 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12663 * ser-base.c (serial_ttystate): Likewise.
12664 * ser-mingw.c (make_pipe_state): Likewise.
12665 * ser-pipe.c (pipe_open): Likewise.
12666 * serial.c (serial_open): Likewise.
12667 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12668 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12669 (tui_alloc_win_info): Likewise.
12670 (tui_add_content_elements): Likewise.
12671 * tui/tui-file.c (tui_file_new): Likewise.
12672 * tui/tui-out.c (tui_out_new): Likewise.
12673 * ui-file.c (mem_file_new): Likewise.
12674 * ui-out.c (push_level): Likewise.
12675 (make_cleanup_ui_out_end): Likewise.
12676 (append_header_to_list): Likewise.
12677 (ui_out_new): Likewise.
12678 * user-regs.c (user_reg_add_builtin): Likewise.
12679
41bf6aca
TT
126802014-01-13 Tom Tromey <tromey@redhat.com>
12681
12682 * defs.h (XZALLOC): Remove.
12683 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12684 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12685 (get_ada_tasks_inferior_data): Likewise.
12686 * auto-load.c (get_auto_load_pspace_data): Likewise.
12687 * auxv.c (get_auxv_inferior_data): Likewise.
12688 * bfd-target.c (target_bfd_reopen): Likewise.
12689 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12690 (deprecated_insert_raw_breakpoint): Likewise.
12691 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12692 * corelow.c (core_open): Likewise.
12693 * darwin-nat.c (darwin_check_new_threads): Likewise.
12694 (darwin_attach_pid): Likewise.
12695 * dummy-frame.c (dummy_frame_push): Likewise.
12696 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12697 * dwarf2loc.c (allocate_piece_closure): Likewise.
12698 * elfread.c (elf_symfile_segments): Likewise.
12699 * eval.c (ptrmath_type_p): Likewise.
12700 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12701 * gdbtypes.c (alloc_type_arch): Likewise.
12702 (alloc_type_instance): Likewise.
12703 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12704 * inf-child.c (inf_child_can_use_agent): Likewise.
12705 * inflow.c (get_inflow_inferior_data): Likewise.
12706 * infrun.c (save_infcall_suspend_state): Likewise.
12707 * jit.c (jit_reader_load): Likewise.
12708 (get_jit_objfile_data): Likewise.
12709 (get_jit_program_space_data): Likewise.
12710 (jit_object_open_impl): Likewise.
12711 (jit_symtab_open_impl): Likewise.
12712 (jit_block_open_impl): Likewise.
12713 (jit_frame_sniffer): Likewise.
12714 * linux-fork.c (add_fork): Likewise.
12715 * maint.c (make_command_stats_cleanup): Likewise.
12716 * objfiles.c (get_objfile_pspace_data): Likewise.
12717 * opencl-lang.c (struct lval_closure): Likewise.
12718 * osdata.c (osdata_start_osdata): Likewise.
12719 * progspace.c (new_address_space): Likewise.
12720 (add_program_space): Likewise.
12721 * remote-sim.c (get_sim_inferior_data): Likewise.
12722 * sh-tdep.c (sh_gdbarch_init): Likewise.
12723 * skip.c (Ignore): Likewise.
12724 (skip_delete_command): Likewise.
12725 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12726 (library_list_start_library): Likewise.
12727 (solib_aix_current_sos): Likewise.
12728 * solib-darwin.c (get_darwin_info): Likewise.
12729 (darwin_current_sos): Likewise.
12730 * solib-dsbt.c (get_dsbt_info): Likewise.
12731 * solib-ia64-hpux.c (new_so_list): Likewise.
12732 (ia64_hpux_get_solib_linkage_addr): Likewise.
12733 * solib-spu.c (append_ocl_sos): Likewise.
12734 (spu_current_sos): Likewise.
12735 * solib-svr4.c (get_svr4_info): Likewise.
12736 (svr4_keep_data_in_core): Likewise.
12737 (library_list_start_library): Likewise.
12738 (svr4_default_sos): Likewise.
12739 (svr4_read_so_list): Likewise.
12740 * solib-target.c (library_list_start_library): Likewise.
12741 (solib_target_current_sos): Likewise.
12742 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12743 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12744 * symfile.c (default_symfile_segments): Likewise.
12745 * target-descriptions.c (tdesc_data_init): Likewise.
12746 (tdesc_create_reg): Likewise.
12747 (struct tdesc_type *): Likewise.
12748 (tdesc_create_vector): Likewise.
12749 (tdesc_set_struct_size): Likewise.
12750 (struct tdesc_type *): Likewise.
12751 (tdesc_free_feature): Likewise.
12752 (tdesc_create_feature): Likewise.
12753 * windows-nat.c (windows_add_thread): Likewise.
12754 (windows_make_so): Likewise.
12755 * xml-support.c (gdb_xml_body_text): Likewise.
12756 (gdb_xml_create_parser_and_cleanup): Likewise.
12757 (xml_process_xincludes): Likewise.
12758 * xml-syscall.c (allocate_syscalls_info): Likewise.
12759 (syscall_create_syscall_desc): Likewise.
12760
5acfdbae
SDJ
127612014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12762
12763 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12764 function, with code from i386_stap_parse_special_token.
12765 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12766 (i386_stap_parse_special_token): Move code to the two functions
12767 above; simplify it.
12768
0000e5cc
PA
127692014-01-09 Pedro Alves <palves@redhat.com>
12770 Hui Zhu <hui@codesourcery.com>
12771
12772 PR gdb/16101
12773 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12774 bp_err_string. Don't mark the location shlib_disabled if the
12775 error thrown wasn't a generic or memory error. Catch errors
12776 thrown while inserting breakpoints in overlayed code. Output
12777 error message of software breakpoints.
12778 * remote.c (remote_insert_breakpoint): If this breakpoint has
12779 target-side commands but this stub doesn't support Z0 packets,
12780 throw NOT_SUPPORTED_ERROR error.
12781 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12782 * target.h (target_insert_breakpoint): Extend comment.
12783 (target_insert_hw_breakpoint): Add comment.
12784
b7ea362b
PA
127852014-01-08 Pedro Alves <palves@redhat.com>
12786
12787 * remote.c (remote_add_thread): Add threads silently if starting
12788 up.
12789 (remote_notice_new_inferior): If in all-stop, and starting up,
12790 don't call notice_new_inferior.
12791 (get_current_thread): New function, factored out from ...
12792 (add_current_inferior_and_thread): ... this. Adjust.
12793 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12794 found any thread, then select the remote's current thread as GDB's
12795 current thread too.
12796
b7bba001
JB
127972014-01-08 Joel Brobecker <brobecker@adacore.com>
12798
12799 * NEWS: Create a new section for the next release branch.
12800 Rename the section of the current branch, now that it has
12801 been cut.
12802
16dfbded
JB
128032014-01-08 Joel Brobecker <brobecker@adacore.com>
12804
12805 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12806 * version.in: Bump version to 7.7.50.DATE-cvs.
12807
22c90ac1
YQ
128082014-01-08 Yao Qi <yao@codesourcery.com>
12809
12810 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12811 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12812 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12813
d64ad97c
YQ
128142014-01-08 Yao Qi <yao@codesourcery.com>
12815
12816 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12817 return value of bfd_get_filename to symbol_file_add_from_bfd.
12818
f93ba80c
PM
128192014-01-08 Pierre Muller <muller@sourceware.org>
12820
12821 Fix PR16201.
12822 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12823 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12824 to prim_record_mininal_symbol_and_info.
12825 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12826 in call to prim_record_minimal_symbol_and_info.
12827 (read_pe_exported_syms): Set index field of section_data.
12828
a4d9ba85
AP
128292014-01-07 Andrew Pinski <apinski@cavium.com>
12830
12831 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12832 * features/aarch64.c: Regenerate.
12833
1b67eb02
AS
128342014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12835
12836 * target.c (return_null): Define.
12837 (update_current_target): Use it instead of return_zero for
12838 functions that return a pointer.
12839
5e3f4fab
EBM
128402014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12841
12842 * source.c (add_path): Fix check for duplicated paths in the previously
12843 included paths.
12844
e2616788
HK
128452014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12846
12847 * ada-lang.c: Remove duplicated include statements.
12848 * alphabsd-nat.c: Ditto.
12849 * amd64-darwin-tdep.c: Ditto.
12850 * amd64fbsd-nat.c: Ditto.
12851 * auto-load.c: Ditto.
12852 * ax-gdb.c: Ditto.
12853 * breakpoint.c: Ditto.
12854 * dbxread.c: Ditto.
12855 * fork-child.c: Ditto.
12856 * gdb_usleep.c: Ditto.
12857 * i386-darwin-tdep.c: Ditto.
12858 * i386fbsd-nat.c: Ditto.
12859 * infcmd.c: Ditto.
12860 * inferior.c: Ditto.
12861 * jv-lang.c: Ditto.
12862 * linux-nat.c: Ditto.
12863 * linux-tdep.c: Ditto.
12864 * m68kbsd-nat.c: Ditto.
12865 * m68klinux-nat.c: Ditto.
12866 * microblaze-tdep.c: Ditto.
12867 * mips-linux-tdep.c: Ditto.
12868 * mn10300-tdep.c: Ditto.
12869 * nto-tdep.c: Ditto.
12870 * opencl-lang.c: Ditto.
12871 * osdata.c: Ditto.
12872 * printcmd.c: Ditto.
12873 * regcache.c: Ditto.
12874 * remote-m32r-sdi.c: Ditto.
12875 * remote.c: Ditto.
12876 * symfile.c: Ditto.
12877 * symtab.c: Ditto.
12878 * tilegx-linux-nat.c: Ditto.
12879 * tilegx-tdep.c: Ditto.
12880 * tracepoint.c: Ditto.
12881 * valops.c: Ditto.
12882 * vaxbsd-nat.c: Ditto.
12883 * windows-nat.c: Ditto.
12884 * xtensa-tdep.c: Ditto.
12885
bd1f7788
YQ
128862014-01-07 Yao Qi <yao@codesourcery.com>
12887
12888 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12889
79301218
JB
128902014-01-07 Yao Qi <yao@codesourcery.com>
12891 Joel Brobecker <brobecker@adacore.com>
12892
12893 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12894 (pdc_write_regs): Likewise.
12895 (fetch_regs_kernel_thread): Likewise.
12896 (store_regs_kernel_thread): Likewise.
12897
128982014-01-07 Joel Brobecker <brobecker@adacore.com>
12899
12900 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12901 tagged type objects to their actual type.
12902
8e355c5d
JB
129032014-01-07 Joel Brobecker <brobecker@adacore.com>
12904
12905 * ada-valprint.c (print_field_values): Add "language" parameter.
12906 Update calls to print_field_values and print_variant_part.
12907 Pass new parameter "language" in call to val_print instead
12908 of "current_language". Replace call to ada_val_print by call
12909 to val_print.
12910 (print_variant_part): Add "language" parameter.
12911 (ada_val_print_struct_union): Update call to print_field_values.
12912
4fbf5aa5
JB
129132014-01-07 Joel Brobecker <brobecker@adacore.com>
12914
12915 * ada-valprint.c (ui_memcpy): Delete.
12916 (ada_print_floating): Update documentation. Add empty line
12917 between between function documentation and implementation.
12918 Delete variable "buffer". Use ui_file_xstrdup in place of
12919 ui_file_put. Minor adjustments following this change.
12920
71855601
JB
129212014-01-07 Joel Brobecker <brobecker@adacore.com>
12922
12923 * ada-valprint.c (ada_val_print_string): New function,
12924 extracted from ada_val_print_array.
12925 (ada_val_print_array): Replace extracted code by call
12926 to ada_val_print_string followed by a return. Move
12927 "else" branch to the function's top block.
12928
4eb27a30
JB
129292014-01-07 Joel Brobecker <brobecker@adacore.com>
12930
12931 * ada-valprint.c (ada_val_print_array): Move implementation
12932 down. Rename parameter "offset" and "val" into "offset_aligned"
12933 and "original_value" respectively. Add parameter "offset".
12934
34b27950
JB
129352014-01-07 Joel Brobecker <brobecker@adacore.com>
12936
12937 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12938 re-organizing the code. Change the "???" message printed
12939 when target type is a TYPE_CODE_UNDEF into
12940 "<ref to undefined type>".
12941
079e4591
JB
129422014-01-07 Joel Brobecker <brobecker@adacore.com>
12943
12944 * ada-valprint.c (print_record): Delete, implementation inlined...
12945 (ada_val_print_struct_union): ... here. Remove call to
12946 ada_check_typedef in inlined implementation.
12947
8004dfd1
JB
129482014-01-07 Joel Brobecker <brobecker@adacore.com>
12949
12950 * ada-valprint.c (ada_val_print_gnat_array): New function,
12951 extracted from ada_val_print_1;
12952 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12953 (ada_val_print_flt, ada_val_print_struct_union)
12954 (ada_val_print_ref): Likewise.
12955 (ada_val_print_1): Delete variables i and elttype.
12956 Replace extracted-out code by call to corresponding
12957 new functions.
12958
760a2db0
JB
129592014-01-07 Joel Brobecker <brobecker@adacore.com>
12960
12961 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12962
3a92c861
JB
129632014-01-07 Joel Brobecker <brobecker@adacore.com>
12964
12965 * ada-valprint.c (ada_val_print_1): Replace calls to
12966 ada_val_print_1 by calls to val_print.
12967
cd1630f9
JB
129682014-01-07 Joel Brobecker <brobecker@adacore.com>
12969
12970 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12971 Update calls to self accordingly. Replace calls to c_val_print
12972 by calls to val_print.
12973
bdf779a0
JB
129742014-01-07 Joel Brobecker <brobecker@adacore.com>
12975
12976 * ada-valprint.c (print_record): Delete declaration.
12977 (adjust_type_signedness, ada_val_print_1): Likewise.
12978 (ada_val_print): Move function implementation down.
12979 (print_variant_part, print_field_values, print_record):
12980 Move function implementation up.
12981
c0d48811
JB
129822014-01-07 Joel Brobecker <brobecker@adacore.com>
12983
12984 * python/py-type.c (typy_get_name): New function.
12985 (type_object_getset): Add entry for attribute "name".
12986 * NEWS: Add entry mentioning this new attribute.
12987
c26e9cbb
YQ
129882014-01-07 Yao Qi <yao@codesourcery.com>
12989
12990 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12991 statement.
12992
0cc6f43d
YQ
129932014-01-07 Yao Qi <yao@codesourcery.com>
12994
12995 * gnu-nat.c (info_port_rights): Add qualifier const to
12996 argument args.
12997
eec03155
YQ
129982014-01-07 Yao Qi <yao@codesourcery.com>
12999
13000 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13001
f04a82ef
YQ
130022014-01-07 Yao Qi <yao@codesourcery.com>
13003
13004 * gnu-nat.c (make_inf) Update declaration.
13005 (make_inf): Make it static.
13006 (inf_set_traced): Likewise.
13007 (inf_port_to_thread, inf_task_died_status): Likewise.
13008
d57dda0a
YQ
130092014-01-07 Yao Qi <yao@codesourcery.com>
13010
13011 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13012
3aa8c969
YQ
130132014-01-07 Yao Qi <yao@codesourcery.com>
13014
13015 * gnu-nat.c (_initialize_gnu_nat): Declare.
13016
94123b4f
YQ
130172014-01-07 Yao Qi <yao@codesourcery.com>
13018
13019 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13020 'enum bfd_endian'.
13021 (struct gdbarch_info) <byte_order>: Change type to
13022 'enum bfd_endian'.
13023 <byte_order_for_code>: Likewise.
13024 * gdbarch.c, gdbarch.h: Regenerated.
13025
dc81d70a
TT
130262014-01-06 Sasha Smundak <asmundak@google.com>
13027
13028 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13029
cc2f3c35
TT
130302014-01-06 Tom Tromey <tromey@redhat.com>
13031
13032 * doublest.c (convert_doublest_to_floatformat): Use const, not
13033 CONST.
13034 * somread.c (som_symtab_read): Likewise.
13035
adcf2eed
HZ
130362014-01-07 Hui Zhu <hui@codesourcery.com>
13037
13038 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13039 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13040 (gdb_bfd_fopen): Ditto.
13041 (gdb_bfd_openr): Ditto.
13042 (gdb_bfd_openw): Ditto.
13043 (gdb_bfd_openr_iovec): Ditto.
13044 (gdb_bfd_fdopenr): Ditto.
13045 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13046 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13047 with xstrdup.
13048 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13049 with xstrdup.
13050 * symfile-mem.c (symbol_file_add_from_memory): Removed
13051 gdb_bfd_stash_filename.
13052
50722198
DE
130532014-01-03 Doug Evans <dje@google.com>
13054
13055 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13056 output.
13057
2fa4b862
JB
130582014-01-01 Joel Brobecker <brobecker@adacore.com>
13059
13060 Update year range in copyright notice of all files.
13061
28498c42
JB
130622014-01-01 Joel Brobecker <brobecker@adacore.com>
13063
13064 * top.c (print_gdb_version): Set copyright year to 2014.
13065
7b6e1046
JB
130662014-01-01 Joel Brobecker <brobecker@adacore.com>
13067
13068 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13069
df96af55 13070For older changes see ChangeLog-2013.
c906108c
SS
13071\f
13072Local Variables:
13073mode: change-log
13074left-margin: 8
13075fill-column: 74
13076version-control: never
57da7796 13077coding: utf-8
c906108c 13078End:
This page took 2.158599 seconds and 4 git commands to generate.