daily update
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b7576e5c
YQ
12014-09-24 Yao Qi <yao@codesourcery.com>
2
3 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
4 bitmask.
5
9a6cf368
GB
62014-09-22 Gary Benson <gbenson@redhat.com>
7
8 * target.c (target_stop): Updated comment.
9
03f4463b
GB
102014-09-22 Gary Benson <gbenson@redhat.com>
11
12 * target/target.h (target_stop_ptid): Renamed as...
13 (target_stop_and_wait): New function. Updated comment.
14 All uses updated.
15 (target_continue_ptid): Renamed as...
16 (target_continue_no_signal): New function. Updated comment.
17 All uses updated.
18
a25a5a45
PA
192014-09-22 Pedro Alves <palves@redhat.com>
20
21 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
22 and "auto" merged.
23 * breakpoint.c (enum ugll_insert_mode): New enum.
24 (always_inserted_mode): Now a plain boolean.
25 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
26 (breakpoints_always_inserted_mode): Delete.
27 (breakpoints_should_be_inserted_now): New function.
28 (insert_breakpoints): Pass UGLL_INSERT to
29 update_global_location_list instead of calling
30 insert_breakpoint_locations manually.
31 (create_solib_event_breakpoint_1): New, factored out from ...
32 (create_solib_event_breakpoint): ... this.
33 (create_and_insert_solib_event_breakpoint): Use
34 create_solib_event_breakpoint_1 instead of calling
35 insert_breakpoint_locations manually.
36 (update_global_location_list): Change parameter type from boolean
37 to enum ugll_insert_mode. All callers adjusted. Adjust to use
38 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
39 (update_global_location_list_nothrow): Change parameter type from
40 boolean to enum ugll_insert_mode.
41 (_initialize_breakpoint): "breakpoint always-inserted" option is
42 now a boolean command. Update help text.
43 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
44 (breakpoints_should_be_inserted_now): New declaration.
45 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
46 Remove breakpoints_always_inserted_mode check.
47 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
48 * remote.c (remote_start_remote): Likewise.
49
04086b45
PA
502014-09-22 Pedro Alves <palves@redhat.com>
51
52 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
53 (insert_breakpoints): Don't call insert_breakpoint_locations here.
54 Instead, pass UGLL_INSERT to update_global_location_list.
55 (update_global_location_list): Change parameter type from boolean
56 to enum ugll_insert_mode. All callers adjusted. Adjust to use
57 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
58 (create_solib_event_breakpoint_1): New, factored out from ...
59 (create_solib_event_breakpoint): ... this.
60 (create_and_insert_solib_event_breakpoint): Use
61 create_solib_event_breakpoint_1 instead of calling
62 insert_breakpoint_locations manually.
63 (update_global_location_list): Handle UGLL_INSERT.
64
44702360
PA
652014-09-22 Pedro Alves <palves@redhat.com>
66
67 * breakpoint.c (enum ugll_insert_mode): New enum.
68 (update_global_location_list)
69 (update_global_location_list_nothrow): Change parameter type from
70 boolean to enum ugll_insert_mode. All callers adjusted.
71
93c6145a
JB
722014-09-19 Joel Brobecker <brobecker@adacore.com>
73
74 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
75 SystemTap support in GDB.
76
89a5711c
DB
772014-09-19 Don Breazeal <donb@codesourcery.com>
78
79 * linux-nat.c (linux_handle_extended_wait): Call
80 linux_ptrace_get_extended_event.
81 (wait_lwp): Call linux_is_extended_waitstatus.
82 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
83 and linux_is_extended_waitstatus.
84 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
85 linux_ptrace_get_extended_event.
86 (linux_ptrace_get_extended_event): New function.
87 (linux_is_extended_waitstatus): New function.
88 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
89 (linux_is_extended_waitstatus): New declarations.
90
c3b7b696
YQ
912014-09-19 Yao Qi <yao@codesourcery.com>
92
93 * dwarf2read.c (dwarf_decode_lines): Update declaration.
94 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
95 comments. Callers update.
96 (dwarf_decode_lines): Likewise.
97 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
98 comments. Skip the line table if 'lowpc' is greater than
99 'address'. Don't check
100 dwarf2_per_objfile->has_section_at_zero.
101
2b4fd423
DE
1022014-09-18 Doug Evans <dje@google.com>
103
104 * NEWS: Mention new "producer" attribute of gdb.Symtab.
105 * python/py-symtab.c (stpy_get_producer): New function.
106 (symtab_object_getset): Add "producer" attribute.
107
5e43d467
UW
1082014-09-17 Ulrich Weigand  <uweigand@de.ibm.com>
109
110 PR gdb/17384
111 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
112 (do_captured_read_memory_integer): Remove.
113 (safe_read_memory_integer): Use target_read_memory directly instead
114 of catching errors in do_captured_read_memory_integer.
115
04e79979
MR
1162014-09-16 Maciej W. Rozycki <macro@codesourcery.com>
117
118 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
119 not gdb/doc.
120
76aeec5b
SDJ
1212014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
122
123 * objc-lang.c (find_implementation_from_class): Remove dead code.
124
2f693f9d
SDJ
1252014-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
126
127 PR cli/7233
128 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
129 "fprintf_unfiltered (gdb_stdlog...)".
130
bb9d5f81
PP
1312014-09-16 Patrick Palka <patrick@parcs.ath.cx>
132
133 PR breakpoints/12526
134 * breakpoint.h (struct watchpoint): New fields val_bitpos and
135 val_bitsize.
136 * breakpoint.c (watch_command_1): Use these fields to retain
137 bitfield information.
138 (extract_bitfield_from_watchpoint_value): New function.
139 (watchpoint_check): Use it.
140 (update_watchpoint): Use it. Optimize the address and length of a
141 HW watchpoint pointing to a bitfield.
142 * value.h (unpack_value_bitfield): New prototype.
143 * value.c (unpack_value_bitfield): Make extern.
144
05db5edd
ST
1452014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
146
147 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
148 x86-dregs.o.
149 * gnu-nat.c (inf_threads): New function.
150 * gnu-nat.h (inf_threads_ftype): New typedef.
151 (inf_threads): New declaration.
152 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
153 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
154 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
155 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
156 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
157 (i386_gnu_dr_get_control): New functions.
158 (reg_addr): New structure.
159 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
160 i386 debugging register hooks.
161 * NEWS: Mention this.
162
5a578da5
OJ
1632014-08-13 Omair Javaid <omair.javaid@linaro.org>
164
165 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
166 vector data transfer instructions.
167 (arm_record_coproc_data_proc): Updated.
168
f20f80dd
OJ
1692014-08-13 Omair Javaid <omair.javaid@linaro.org>
170
171 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
172 arm_record_exreg_ld_st_insn.
173 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
174 load/store insns.
175
851f26ae
OJ
1762014-08-13 Omair Javaid <omair.javaid@linaro.org>
177
178 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
179 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
180 processing instructions.
181
1e1b6563
OJ
1822014-08-13 Omair Javaid <omair.javaid@linaro.org>
183
184 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
185 for advance SIMD struct ld/st insn.
186 (thumb2_record_decode_insn_handler): Replace stub handler with
187 thumb2_record_asimd_struct_ld_st.
188
60cc5e93
OJ
1892014-08-13 Omair Javaid <omair.javaid@linaro.org>
190
191 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
192 for asimd, vfp and coprocessor insns.
193 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
194 and coprocessor insns.
195 (thumb2_record_coproc_insn): New function.
196 (thumb2_record_decode_insn_handler): Update coprocessor insns record
197 handlers.
198 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
199 opcode 110 insns.
200
81219e53
DE
2012014-09-13 Doug Evans <xdje42@gmail.com>
202
203 * NEWS: Mention new "queue-signal" command.
204 * infcmd.c (queue_signal_command): New function.
205 (_initialize_infcmd): Add new queue-signal command.
206
d36bf488
DE
2072014-09-13 Doug Evans <xdje42@gmail.com>
208
209 * linux-nat.c (wait_lwp): Add debugging printf.
210 (linux_nat_wait_1): Ditto.
211
f37f681c
PA
2122014-09-12 Pedro Alves <palves@redhat.com>
213
214 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
215 (create_and_insert_solib_event_breakpoint): New functions.
216 * breakpoint.h (create_and_insert_solib_event_breakpoint)
217 (remove_solib_event_breakpoints_at_next_stop): New declarations.
218 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
219 (remove_dbx_link_breakpoint): Delete function.
220 (insert_dbx_link_bpt_in_file): Use
221 create_and_insert_solib_event_breakpoint instead of
222 deprecated_insert_raw_breakpoint.
223 (procfs_wait): Don't check whether we hit __dbx_link here.
224 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
225 here.
226 * solib-irix.c (base_breakpoint): Delete global.
227 (disable_break): Delete function.
228 (enable_break): Use create_solib_event_breakpoint
229 instead of deprecated_insert_raw_breakpoint.
230 (irix_solib_handle_event): New function.
231 (irix_solib_create_inferior_hook): Don't run the target or disable
232 the mapping-complete breakpoint here.
233 (_initialize_irix_solib): Install irix_solib_handle_event as
234 so_ops->handle_event hook.
235
9d9bf2df
EBM
2362014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
237 Ulrich Weigand  <uweigand@de.ibm.com>
238
239 PR tdep/17379
240 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
241 instead of read_memory_unsigned_integer.
242
b006a80e
GB
2432014-09-12 Gary Benson <gbenson@redhat.com>
244
245 * nat/linux-waitpid.c: Include common-defs.h.
246 [GDBSERVER]: Add FIXME comment.
247 [!GDBSERVER]: Don't include defs.h or signal.h.
248 (linux_debug) [!GDBSERVER]: Remove empty block.
249
296b1496
GB
2502014-09-12 Gary Benson <gbenson@redhat.com>
251
252 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
253 Don't include defs.h or server.h.
254
53f81362
GB
2552014-09-12 Gary Benson <gbenson@redhat.com>
256
257 * nat/linux-btrace.c: Include common-defs.h.
258 Don't include defs.h, server.h or gdbthread.h.
259 * nat/linux-btrace.h (struct target_ops): New forward declaration.
260
727605ca
GB
2612014-09-12 Gary Benson <gbenson@redhat.com>
262
263 * common/agent.c: Include common-defs.h.
264 Don't include defs.h or server.h.
265 * common/buffer.c: Likewise.
266 * common/common-debug.c: Likewise.
267 * common/common-utils.c: Likewise.
268 * common/errors.c: Likewise.
269 * common/filestuff.c: Likewise.
270 * common/format.c: Likewise.
271 * common/gdb_vecs.c: Likewise.
272 * common/print-utils.c: Likewise.
273 * common/ptid.c: Likewise.
274 * common/rsp-low.c: Likewise.
275 * common/signals.c: Likewise.
276 * common/vec.c: Likewise.
277 * common/xml-utils.c: Likewise.
278 * nat/linux-osdata.c: Likewise.
279 * nat/linux-procfs.c: Likewise.
280 * nat/linux-ptrace.c: Likewise.
281 * nat/mips-linux-watch.c: Likewise.
282 * target/waitstatus.c: Likewise.
283
361c8ade
GB
2842014-09-12 Tom Tromey <tromey@redhat.com>
285 Gary Benson <gbenson@redhat.com>
286
287 * common/common-regcache.h: New file.
288 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
289 * regcache.h: Include common-regcache.h.
290 (regcache_read_pc): Don't declare.
291 * regcache.c (get_thread_regcache_for_ptid): New function.
292 * nat/linux-btrace.c: Don't include regcache.h.
293 Include common-regcache.h.
294 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
295
a01cbb49
TS
2962014-09-11 Thomas Schwinge <thomas@codesourcery.com>
297
298 * regcache.h (struct regset): Declare.
299
98880d46
PA
3002014-09-11 Pedro Alves <palves@redhat.com>
301
302 PR gdb/17347
303 * main.c: Include "infrun.h".
304 (catch_command_errors, catch_command_errors_const): Wait for the
305 foreground command to complete.
306 * top.c (maybe_wait_sync_command_done): New function, factored out
307 from ...
308 (maybe_wait_sync_command_done): ... here.
309 * top.h (maybe_wait_sync_command_done): New declaration.
310
bd9269f7
GB
3112014-09-11 Tom Tromey <tromey@redhat.com>
312 Gary Benson <gbenson@redhat.com>
313
314 * common/symbol.h: New file.
315 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
316 * minsyms.c (find_minimal_symbol_address): New function.
317 * common/agent.c: Include common/symbol.h.
318 [!GDBSERVER]: Don't include objfiles.h.
319 (agent_look_up_symbols): Use find_minimal_symbol_address.
320
f8c1d06b
GB
3212014-09-11 Gary Benson <gbenson@redhat.com>
322
323 * target/target.h (target_stop_ptid, target_continue_ptid):
324 Declare.
325 * target.c (target_stop_ptid, target_continue_ptid): New
326 functions.
327 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
328 (agent_run_command): Always use target_stop_ptid and
329 target_continue_ptid.
330
721ec300
GB
3312014-09-11 Tom Tromey <tromey@redhat.com>
332 Gary Benson <gbenson@redhat.com>
333
334 * target/target.h: New file.
335 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
336 * target.h: Include target/target.h.
337 (target_read_memory, target_write_memory): Don't declare.
338 * target.c (target_read_uint32): New function.
339 * common/agent.c: Include target/target.h.
340 [!GDBSERVER]: Don't include target.h.
341 (helper_thread_id): Type changed to uint32_t.
342 (agent_get_helper_thread_id): Use target_read_uint32.
343 (agent_run_command): Always use target_read_memory and
344 target_write_memory.
345 (agent_capability): Type changed to uint32_t.
346 (agent_capability_check): Use target_read_uint32.
347
c5e92cca
GB
3482014-09-11 Gary Benson <gbenson@redhat.com>
349
350 * common/common-debug.h (show_debug_regs): Declare.
351 * common/common-debug.c (show_debug_regs): Define.
352 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
353 all uses with show_debug_regs. Replace all uses that considered
354 debug_hw_points as a multi-value integer with straight boolean
355 uses.
356 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
357 with show_debug_regs.
358 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
359 all uses with show_debug_regs.
360 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
361 uses with show_debug_regs.
362
eeef931a
UW
3632014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
364
365 * findvar.c (address_from_register): Handle targets requiring
366 a special conversion routine even for plain pointer types.
367
8efa9855
UW
3682014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
369
370 * rs6000-nat.c (exec_one_dummy_insn): Remove.
371 (store_register): Do not call exec_one_dummy_insn.
372
eb479039
JB
3732014-09-10 Joel Brobecker <brobecker@adacore.com>
374
375 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
376 dereference it first. Use value_enclosing_type instead of
377 value_type.
378 (ada_array_length): Likewise.
379
deede10c
JB
3802014-09-10 Joel Brobecker <brobecker@adacore.com>
381
382 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
383 Adjust function implementation and documentation accordingly.
384 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
385 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
386 Update call to ada_value_ptr_subscript.
387
7828a5f5
JB
3882014-09-10 Joel Brobecker <brobecker@adacore.com>
389
390 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
391 instead of VAL's type.
392
35782f14
JB
3932014-09-10 Joel Brobecker <brobecker@adacore.com>
394
395 * amd64-linux-nat.c: Add <sys/uio.h> #include.
396
d342a0da
DE
3972014-09-09 Doug Evans <xdje42@gmail.com>
398
399 PR guile/17367
400 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
401 last parameter to pkg-config, not first.
402 * configure.ac: Pass --with-guile provided pkg-config path to
403 GDB_GUILE_PROGRAM_NAMES.
404 * configure: Regenerate.
405
b4a3d263
GKB
4062014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
407
408 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
409 Bertazi".
410
6e466374
MR
4112014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
412
413 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
414 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
415 the list of sections determining GDB_OSABI_IRIX.
416
a1ada89a
JH
4172014-09-09 James Hogan <james.hogan@imgtec.com>
418
419 * MAINTAINERS (Write After Approval): Add "James Hogan".
420
86db008d
JH
4212014-09-09 James Hogan <james.hogan@imgtec.com>
422
423 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
424
72fde3df
JB
4252014-09-09 Joel Brobecker <brobecker@adacore.com>
426
427 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
428
92d8d229
DE
4292014-09-08 Doug Evans <xdje42@gmail.com>
430
431 PR 17247
432 * guile.c: #include <signal.h>.
433 (_initialize_guile): Block SIGCHLD while initializing Guile.
434
435 Replaces the following, which is reverted.
436
437 2014-07-26 Doug Evans <xdje42@gmail.com>
438
439 PR 17185
440 * configure.ac: Add check for header gc/gc.h.
441 Add check for function setenv.
442 * configure: Regenerate.
443 * config.in: Regenerate.
444 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
445
d81412aa
DE
4462014-09-08 Doug Evans <xdje42@gmail.com>
447
448 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
449 with named constant. Fix style of pointer comparison.
450 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
451
a9f116cb
GKB
4522014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
453
454 PR gdb/17035
455 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
456 decide whether we display the command on "show user".
457 * cli/cli-script.c (show_user_1): Only verify cmdlines after
458 printing command name.
459 * cli/cli-decode.h (cli_user_command_p): Declare new function.
460 * cli/cli-decode.c (cli_user_command_p): Create helper function
461 to verify whether cmd_list_element is a user-defined command.
462
c75bd3a2
JK
4632014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
464
465 PR python/17355
466 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
467 Fix goto out of TRY_CATCH.
468
faa42425 4692014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 470 Tom Tromey <tromey@redhat.com>
faa42425
DE
471
472 PR 15276
473 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
474 $_any_caller_matches.
475 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
476 * python/lib/gdb/function/caller_is.py: New file.
477
0d41ba00
DE
4782014-09-06 Doug Evans <xdje42@gmail.com>
479
480 * infcmd.c (program_info): Fix typo.
481
474ca4f6
SDJ
4822014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
483
484 PR gdb/17235
485 * stap-probe.c (stap_parse_single_operand): Delete unused variable
486 'number'. New variable 'has_digit'. Rewrite code to deal with
487 subexpressions on SDT probes.
488
ebf13736
PA
4892014-09-04 Pedro Alves <palves@redhat.com>
490
491 * c-exp.y (parse_number): Skip handling base-switching prefixes if
492 the input is only one character long.
493
eb0b0463
SDJ
4942014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
495
496 PR fortran/17237
497 * f-valprint.c (f_val_print): Specify the correct print option to
498 use when printing integer values.
499
5ee44bfa
GB
5002014-09-04 Gary Benson <gbenson@redhat.com>
501
502 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
503 Remove code to cope with LWPs wrapped as PIDs.
504 Add assertions to ensure no wrapped LWPs are passed.
505
4875ffdb
PA
5062014-09-04 Pedro Alves <palves@redhat.com>
507
508 * value.c (value_ranges_copy_adjusted): New function, factored out
509 from ...
510 (value_contents_copy_raw): ... here.
511 (unpack_value_bits_as_long_1): Rename back to ...
512 (unpack_bits_as_long): ... this. Remove 'original_value' and
513 'result' parameters. Change return type to LONGEST.
514 (unpack_value_bits_as_long): Delete.
515 (unpack_value_field_as_long_1): Delete.
516 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
517 (unpack_value_bitfield): New function.
518 (value_field_bitfield): Reimplement using unpack_value_bitfield.
519 (value_fetch_lazy): Use unpack_value_bitfield.
520 * value.h (unpack_value_bits_as_long): Delete declaration.
521
5f3b99cf
SS
5222014-09-03 Sasha Smundak <asmundak@google.com>
523
524 * python/py-frame.c (frapy_read_register): New function.
525
ac740bc7
JH
5262014-09-03 James Hogan <james.hogan@imgtec.com>
527
528 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
529 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
530
7d793aa9
SDJ
5312014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
532
533 PR python/16699
534 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
535 function.
536 (add_cmd): Set "completer_handle_brkchars" to NULL.
537 * cli/cli-decode.h (struct cmd_list_element)
538 <completer_handle_brkchars>: New field.
539 * command.h (completer_ftype_void): New typedef.
540 (set_cmd_completer_handle_brkchars): New prototype.
541 * completer.c (set_gdb_completion_word_break_characters): New
542 function.
543 (complete_line_internal): Call "completer_handle_brkchars"
544 callback from command.
545 * completer.h: Include "command.h".
546 (set_gdb_completion_word_break_characters): New prototype.
547 * python/py-cmd.c (cmdpy_completer_helper): New function.
548 (cmdpy_completer_handle_brkchars): New function.
549 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
550 (cmdpy_init): Set completer_handle_brkchars to
551 cmdpy_completer_handle_brkchars.
552
97ea6506
GB
5532014-09-03 Gary Benson <gbenson@redhat.com>
554
555 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
556 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
557 Loop conditions changed to equivalent form.
558 (struct x86_debug_reg_state): Updated dr_ref_count comment.
559 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
560 ALL_DEBUG_ADDRESS_REGISTERS.
561
d1437815
JB
5622014-09-03 Joel Brobecker <brobecker@adacore.com>
563
564 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
565 description fix.
566
9b94fcf1
DE
5672014-09-02 Doug Evans <dje@google.com>
568
569 * typeprint.c (find_global_typedef): Fix comment.
570
df7e5265
GB
5712014-09-02 Gary Benson <gbenson@redhat.com>
572
573 * i386-nat.h: Renamed as...
574 * x86-nat.h: New file. All type, function and variable name
575 prefixes changed from "i386_" to "x86_". All references updated.
576 * i386-nat.c: Renamed as...
577 * x86-nat.c: New file. All type, function and variable name
578 prefixes changed from "i386_" to "x86_". All references updated.
579 * common/i386-xstate.h: Renamed as...
580 * common/x86-xstate.h: New file. All type, function and variable
581 name prefixes changed from "i386_" to "x86_". All references
582 updated.
583 * nat/i386-cpuid.h: Renamed as...
584 * nat/x86-cpuid.h: New file. All type, function and variable name
585 prefixes changed from "i386_" to "x86_". All references updated.
586 * nat/i386-gcc-cpuid.h: Renamed as...
587 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
588 name prefixes changed from "i386_" to "x86_". All references
589 updated.
590 * nat/i386-dregs.h: Renamed as...
591 * nat/x86-dregs.h: New file. All type, function and variable name
592 prefixes changed from "i386_" to "x86_". All references updated.
593 * nat/i386-dregs.c: Renamed as...
594 * nat/x86-dregs.c: New file. All type, function and variable name
595 prefixes changed from "i386_" to "x86_". All references updated.
596
1c3569d4
MR
5972014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
598
599 * varobj.c (_initialize_varobj): Move to the end of file.
600
ff55e1b5
GB
6012014-08-29 Gary Benson <gbenson@redhat.com>
602
603 * common/common-exceptions.h: New file.
604 * common/common-exceptions.c: Likewise.
605 * Makefile.in (SFILES): Add common/common-exceptions.c.
606 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
607 (COMMON_OBS): Add common-exceptions.o.
608 (common-exceptions.o): New rule.
609 * exceptions.h (common-exceptions.h): Include.
610 (gdb_setjmp.h): Do not include.
611 (return_reason): Moved to common-exceptions.h.
612 (enum return_reason): Likewise.
613 (RETURN_MASK): Likewise.
614 (typedef return_mask): Likewise.
615 (enum errors): Likewise.
616 (struct gdb_exception): Likewise.
617 (exceptions_state_mc_init): Likewise.
618 (exceptions_state_mc_action_iter): Likewise.
619 (exceptions_state_mc_action_iter_1): Likewise.
620 (TRY_CATCH): Likewise.
621 (throw_exception): Likewise.
622 (throw_verror): Likewise.
623 (throw_vquit): Likewise.
624 (throw_error): Likewise.
625 (throw_quit): Likewise.
626 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
627 (enum catcher_action): Likewise.
628 (struct catcher): Likewise.
629 (current_catcher): Likewise.
630 (catcher_list_size): Likewise.
631 (exceptions_state_mc_init): Likewise.
632 (catcher_pop): Likewise.
633 (exceptions_state_mc): Likewise.
634 (exceptions_state_mc_action_iter): Likewise.
635 (exceptions_state_mc_action_iter_1): Likewise.
636 (throw_exception): Likewise.
637 (exception_messages): Likewise.
638 (exception_messages_size): Likewise.
639 (throw_it): Likewise.
640 (throw_verror): Likewise.
641 (throw_vquit): Likewise.
642 (throw_error): Likewise.
643 (throw_quit): Likewise.
644 (prepare_to_throw_exception): New function.
645
e9bcb658
GB
6462014-08-29 Gary Benson <gbenson@redhat.com>
647
648 * common/gdb_setjmp.h: New file.
649 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
650 * configure.ac: Move sigsetjmp check...
651 * common/common.m4: ...here.
652 * configure: Regenerate.
653 * cp-support.c (SIGJMP_BUF): Delete.
654 (SIGSETJMP): Likewise.
655 (SIGLONGJMP): Likewise.
656 * exceptions.h (gdb_setjmp.h): Include.
657 (setjmp.h): Do not include.
658 (EXCEPTIONS_SIGJMP_BUF): Delete.
659 (EXCEPTIONS_SIGSETJMP): Likewise.
660 (EXCEPTIONS_SIGLONGJMP): Likewise.
661 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
662 from gdb_setjmp.h.
663 * exceptions.c: Likewise.
664
e3180625
GB
6652014-08-29 Gary Benson <gbenson@redhat.com>
666
667 * cleanups.h: Moved to...
668 * common/cleanups.h: New file.
669 * cleanups.c: Moved to...
670 * common/cleanups.c: New file. Include common-defs.h and
671 cleanups.h. Do not include defs.h.
672 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
673 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
674 (cleanups.o): New rule.
675
e3d6ba5d
GB
6762014-08-29 Gary Benson <gbenson@redhat.com>
677
678 * common/errors.h (internal_warning): New declaration.
679 (internal_vwarning): Likewise.
680 * common/errors.c (internal_warning): New function.
681 * utils.h (internal_warning): Don't declare.
682 (internal_vwarning): Likewise.
683 * utils.c (internal_warning): Removed.
684
075c7033
GB
6852014-08-29 Gary Benson <gbenson@redhat.com>
686
687 * main.c (captured_main): Use warning during startup.
688 Prefix startup warning messages with command name.
689
91b35fd0
GB
6902014-08-29 Gary Benson <gbenson@redhat.com>
691
692 * main.c (captured_main): Handle usage errors with error.
693
b1ec390e
GB
6942014-08-29 Gary Benson <gbenson@redhat.com>
695
696 * go32-nat.c (go32_create_inferior): Replace a fprintf/
697 exit pair with a call to error. Wrap the message with _().
698
fd0ef3dd
GB
6992014-08-29 Gary Benson <gbenson@redhat.com>
700
701 * main.c (captured_main): Replace a fprintf/exit
702 pair with a call to error. Wrap the message with _().
703
e0e6bcab
GB
7042014-08-29 Gary Benson <gbenson@redhat.com>
705
706 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
707 pairs with calls to error. Wrap the message with _().
708
0d2f5c07
GB
7092014-08-29 Gary Benson <gbenson@redhat.com>
710
711 * utils.c (vwarning): Protect calls to target_terminal_ours
712 and wrap_here.
713
5df43998
GB
7142014-08-29 Gary Benson <gbenson@redhat.com>
715
716 * exceptions.c (print_flush): Protect calls to
717 target_terminal_ours and wrap_here.
718
2437fd32
GB
7192014-08-29 Gary Benson <gbenson@redhat.com>
720
721 * utils.h (filtered_printing_initialized): New declaration.
722 * utils.c (abort_with_message): New function.
723 (internal_vproblem): Use abort_with_message for first level
724 recursive internal problems, and if gdb_stderr is not set up.
725 Protect calls to target_terminal_ours, begin_line and query.
726
f1f58506
DE
7272014-08-28 Doug Evans <dje@google.com>
728
729 * symtab.c (in_prologue): Move definition to better spot.
730 (skip_prologue_using_sal): Ditto.
731
aab2f208
DE
7322014-08-28 Doug Evans <dje@google.com>
733
734 * symtab.c (find_function_start_sal): Move definition to better spot.
735
6b65d1b6
YQ
7362014-08-28 Yao Qi <yao@codesourcery.com>
737
738 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
739 found_stack_adjust in forward scan. Remove condition check
740 on found_stack_adjust which is always true. Indent the code.
741
a1b34d15
YQ
7422014-08-28 Yao Qi <yao@codesourcery.com>
743
744 * dwarf2read.c (dwarf_decode_lines): Update declaration.
745 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
746 (dwarf_decode_lines): Remove argument
747 want_line_info. Remove condition check on want_line_info.
748 Callers update.
749
d5962de5
DE
7502014-08-27 Doug Evans <dje@google.com>
751
752 * dwarf2read.c (dwarf_record_line): Fix typo.
753
9b139002
SDJ
7542014-08-27 Patrick Palka <patrick@parcs.ath.cx>
755
756 * target.h (struct target_ops::to_terminal_save_ours): Remove
757 declaration.
758 (target_terminal_save_ours): Remove macro.
759 * target-delegates.c: Regenerate.
760 * inf-child.c (inf_child_target): Don't set the nonexistent
761 field to_terminal_save_ours.
762 * inferior.h (child_terminal_save_ours): Remove declaration.
763 * terminal.h (gdb_save_tty_state): New declaration.
764 * inflow.c (child_terminal_save_ours): Rename to ...
765 (gdb_save_tty_state): ... this.
766 * tui/tui.c: Include terminal.h.
767 (tui_enable): Use gdb_save_tty_state instead of
768 target_terminal_save_ours.
769 (tui_disable): Likewise.
770
9debeba0
DE
7712014-08-25 Doug Evans <dje@google.com>
772
773 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
774 Pass NULL instead of 0 for context pointer.
775
428fc5fc
YQ
7762014-08-25 Yao Qi <yao@codesourcery.com>
777
778 * dwarf2read.c: Fix grammatical error.
779
cdc07690
YQ
7802014-08-24 Yao Qi <yao@codesourcery.com>
781
782 * dwarf2read.c (scan_partial_symbols): Update comments.
783 Rename argument 'need_pc' with 'set_addrmap'.
784 (add_partial_namespace): Rename argument 'need_pc' with
785 'set_addrmap'.
786 (add_partial_module): Likewise.
787 (add_partial_subprogram): Likewise. Update comments.
788 (dwarf2_name): Fix typo.
789
a05a36a5
DE
7902014-08-22 Doug Evans <dje@google.com>
791
792 PR 17276
793 * dwarf2read.c (dwarf_record_line_p): New function.
794 (dwarf_decode_lines_1): Ignore subsequent line number entries
795 for the same line if any entry had a non-zero discriminator.
796
252a6764
DE
7972014-08-22 Doug Evans <dje@google.com>
798
799 * buildsym.h (record_line_ftype): New typedef.
800 (record_line): Use it.
801 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
802 (dwarf_decode_lines_1): Call them.
803
510db052
YQ
8042014-08-22 Yao Qi <yao@codesourcery.com>
805
806 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
807 (ctf_end): Remove code.
808
22fd09ae
JK
8092014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
810
811 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
812 (linux_make_corefile_notes): call update_thread_list, protected against
813 exceptions.
814
656e8868
PA
8152014-08-21 Pedro Alves <palves@redhat.com>
816
817 * infcmd.c (attach_command): Remove comment.
818
de589d04
WN
8192014-08-21 Bin Cheng <bin.cheng@arm.com>
820
821 * aarch64-linux-nat.c (dr_changed_t): Change the type from
822 unsigned LONGEST to ULONGEST.
823
2a31c623
PA
8242014-08-20 Pedro Alves <palves@redhat.com>
825
826 * Makefile.in (check-read1): New rule.
827
d36430db
JB
8282014-08-20 Joel Brobecker <brobecker@adacore.com>
829
830 * value.c (value_from_contents_and_address): Strip resolved_type's
831 typedef layers before checking its TYPE_DATA_LOCATION.
832
000339af
PA
8332014-08-20 Pedro Alves <palves@redhat.com>
834
835 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
836
5f52445b
YQ
8372014-08-20 Yao Qi <yao@codesourcery.com>
838
839 * amd64-tdep.c (amd64_classify): Add a blank line after the
840 example. Move "*/" to a new line.
841 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
842 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
843 * dwarf2read.c (psymtab_include_file_name): Likewise.
844
9a0dc9e3
PA
8452014-08-19 Andrew Burgess <aburgess@broadcom.com>
846 Pedro Alves <palves@redhat.com>
847
848 PR symtab/14604
849 PR symtab/14605
850 * ada-lang.c (coerce_unspec_val_to_type): Use
851 value_contents_copy_raw.
852 * ada-valprint.c (val_print_packed_array_elements): Adjust.
853 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
854 * cp-valprint.c (cp_print_value_fields): Let the common printing
855 code handle optimized out values.
856 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
857 * d-valprint.c (dynamic_array_type): Use
858 value_bits_any_optimized_out.
859 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
860 check_any_valid fields.
861 (check_pieced_value_bits): Delete and inline ...
862 (check_pieced_synthetic_pointer): ... here.
863 (check_pieced_value_validity): Delete.
864 (check_pieced_value_invalid): Delete.
865 (pieced_value_funcs): Remove check_validity and check_any_valid
866 fields.
867 (read_pieced_value): Use mark_value_bits_optimized_out.
868 (write_pieced_value): Switch to use
869 mark_value_bytes_optimized_out.
870 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
871 of assuming the whole value is optimized out.
872 * findvar.c (read_frame_register_value): Remove special handling
873 of optimized out registers.
874 (value_from_register): Use mark_value_bytes_optimized_out.
875 * frame-unwind.c (frame_unwind_got_optimized): Use
876 mark_value_bytes_optimized_out.
877 * jv-valprint.c (java_value_print): Adjust.
878 (java_print_value_fields): Let the common printing code handle
879 optimized out values.
880 * mips-tdep.c (mips_print_register): Remove special handling of
881 optimized out registers.
882 * opencl-lang.c (lval_func_check_validity): Delete.
883 (lval_func_check_any_valid): Delete.
884 (opencl_value_funcs): Remove check_validity and check_any_valid
885 fields.
886 * p-valprint.c (pascal_object_print_value_fields): Let the common
887 printing code handle optimized out values.
888 * stack.c (read_frame_arg): Remove special handling of optimized
889 out values. Fetch both VAL and ENTRYVAL before comparing
890 contents. Adjust to value_available_contents_eq rename.
891 * valprint.c (valprint_check_validity)
892 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
893 (val_print_array_elements): Adjust.
894 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
895 (value_bits_any_optimized_out): New function.
896 (value_entirely_covered_by_range_vector): New function, factored
897 out from value_entirely_unavailable.
898 (value_entirely_unavailable): Reimplement.
899 (value_entirely_optimized_out): New function.
900 (insert_into_bit_range_vector): New function, factored out from
901 mark_value_bits_unavailable.
902 (mark_value_bits_unavailable): Reimplement.
903 (struct ranges_and_idx): New struct.
904 (find_first_range_overlap_and_match): New function, factored out
905 from value_available_contents_bits_eq.
906 (value_available_contents_bits_eq): Rename to ...
907 (value_contents_bits_eq): ... this. Check both unavailable
908 contents and optimized out contents.
909 (value_available_contents_eq): Rename to ...
910 (value_contents_eq): ... this.
911 (allocate_value_lazy): Remove reference to the old optimized_out
912 boolean.
913 (allocate_optimized_out_value): Use
914 mark_value_bytes_optimized_out.
915 (require_not_optimized_out): Adjust to check whether the
916 optimized_out vec is empty.
917 (ranges_copy_adjusted): New function, factored out from
918 value_contents_copy_raw.
919 (value_contents_copy_raw): Also copy the optimized out ranges.
920 Assert the destination ranges aren't optimized out.
921 (value_contents_copy): Update comment, remove call to
922 require_not_optimized_out.
923 (value_contents_equal): Adjust to check whether the optimized_out
924 vec is empty.
925 (set_value_optimized_out, value_optimized_out_const): Delete.
926 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
927 New functions.
928 (value_entirely_optimized_out, value_bits_valid): Delete.
929 (value_copy): Take a VEC copy of the 'optimized_out' field.
930 (value_primitive_field): Remove special handling of optimized out.
931 (value_fetch_lazy): Assert that lazy values have no unavailable
932 regions. Use value_bits_any_optimized_out. Remove some special
933 handling for optimized out values.
934 * value.h: Add intro comment about <optimized out> and
935 <unavailable>.
936 (struct lval_funcs): Remove check_validity and check_any_valid
937 fields.
938 (set_value_optimized_out, value_optimized_out_const): Remove.
939 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
940 New declarations.
941 (value_bits_any_optimized_out): New declaration.
942 (value_bits_valid): Delete declaration.
943 (value_available_contents_eq): Rename to ...
944 (value_contents_eq): ... this, and extend comments.
945
6694c411
JK
9462014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
947
948 Fix -fsanitize=address on unreadable inferior strings.
949 * valprint.c (val_print_string): Fix access before BUFFER.
950
89a1c21a
SM
9512014-08-19 Simon Marchi <simon.marchi@ericsson.com>
952
953 * target.c (target_struct_size): Remove.
954 (target_struct_allocsize): Remove.
955 (DEFAULT_ALLOCSIZE): Remove.
956 (target_ops_p): New typedef.
957 (DEF_VEC_P (target_ops_p)): New vector type.
958 (target_structs): Change type to VEC (target_ops_p).
959 (add_target_with_completer): Replace "push" code by VEC_safe_push.
960 (find_default_run_target): Rewrite for loop following changes to
961 target_structs.
962
cb417230
JB
9632014-08-19 Joel Brobecker <brobecker@adacore.com>
964
965 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
966 Adjust code accordingly. Adjust function description comment.
967
817e0957
YQ
9682014-08-19 Yao Qi <yao@codesourcery.com>
969
970 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
971 types.
972
2974be62
AM
9732014-08-19 Alan Modra <amodra@gmail.com>
974
975 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
976 * config.in: Regenerate.
977 * configure: Regenerate.
978
34abf635
GB
9792014-08-19 Tom Tromey <tromey@redhat.com>
980 Gary Benson <gbenson@redhat.com>
981
982 * common/common-debug.h: New file.
983 * common/common-debug.c: Likewise.
984 * debug.c: Likewise.
985 * Makefile.in (SFILES): Add common/common-debug.c.
986 (HFILES_NO_SRCDIR): Add common/common-debug.h.
987 (COMMON_OBS): Add common-debug.o and debug.o.
988 (common-debug.o): New rule.
989 * common/common-defs.h: Include common-debug.h.
990 * common/agent.c (debug_agent_printf): New function.
991 (DEBUG_AGENT): Redefine.
992 * nat/i386-dregs.c (debug_printf): Undefine.
993
f6e94d78
GB
9942014-08-19 Gary Benson <gbenson@redhat.com>
995
996 * common/common-defs.h: Include print-utils.h.
997 * utils.h: Do not include print-utils.h.
998
9239eeab
GB
9992014-08-19 Tom Tromey <tromey@redhat.com>
1000 Gary Benson <gbenson@redhat.com>
1001
1002 * common/common-types.h: New file.
1003 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
1004 * common/common-defs.h: Include common-types.h.
1005 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
1006 (ULONGEST): Remove.
1007
ef87c8bb
GB
10082014-08-19 Tom Tromey <tromey@redhat.com>
1009 Gary Benson <gbenson@redhat.com>
1010
1011 * common/errors.h: New file.
1012 * common/errors.c: Likewise.
1013 * Makefile.in (SFILES): Add common/errors.c.
1014 (HFILES_NO_SRCDIR): Add common/errors.h.
1015 (COMMON_OBS): Add errors.o.
1016 (errors.o): New rule.
1017 * common/common-defs.h: Include errors.h.
1018 * utils.h (perror_with_name, error, verror, warning, vwarning):
1019 Don't declare.
1020 * common/common-utils.h: (malloc_failure, internal_error):
1021 Likewise.
1022
196a707b
GB
10232014-08-19 Gary Benson <gbenson@redhat.com>
1024
1025 * utils.c (internal_vproblem): Always print the message.
1026
ded4fc8f
DE
10272014-08-18 Doug Evans <dje@google.com>
1028
1029 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
1030
950c97d8
JB
10312014-08-18 Joel Brobecker <brobecker@adacore.com>
1032
1033 * ada-typeprint.c (type_is_full_subrange_of_target_type):
1034 Return 0 if TYPE is dynamic.
1035 (print_range): Add handling of dynamic ranges.
1036
3cdcd0ce
JB
10372014-08-18 Keven Boell <keven.boell@intel.com>
1038 Joel Brobecker <brobecker@adacore.com>
1039
1040 * gdbtypes.h (struct main_type): Add field "data_location".
1041 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
1042 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
1043 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
1044 a dynamic data location.
1045 (resolve_dynamic_type): Add DW_AT_data_location handling.
1046 (copy_recursive, copy_type): Copy the data_location information
1047 when present.
1048 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
1049 * value.c (value_from_contents_and_address): Add
1050 DW_AT_data_location handling.
1051
08412b07
JB
10522014-08-18 Keven Boell <keven.boell@intel.com>
1053 Joel Brobecker <brobecker@adacore.com>
1054
1055 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
1056 field "get_object_address".
1057 * dwarf2expr.c (execute_stack_op): Add handling for
1058 DW_OP_push_object_address.
1059 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
1060 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
1061 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
1062 (dwarf_expr_get_obj_addr): New function.
1063 (dwarf_expr_ctx_funcs): Add get_object_address field.
1064 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
1065 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
1066 (dwarf2_evaluate_property): Add parameter "address". Use it.
1067 (needs_get_obj_addr): New function.
1068 (needs_frame_ctx_funcs): Add get_object_address field.
1069 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
1070 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
1071 (resolve_dynamic_array): Likewise.
1072
84754697
JB
10732014-08-18 Joel Brobecker <brobecker@adacore.com>
1074
1075 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
1076 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
1077 fixed value for records and unions for which some GNAT encodings
1078 are present.
1079
da5c522f
JB
10802014-08-18 Joel Brobecker <brobecker@adacore.com>
1081
1082 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
1083 rewrite to avoid "else if" and "else" constructs. Should be
1084 a no-op in practice.
1085
0d72a7c3
JB
10862014-08-18 Joel Brobecker <brobecker@adacore.com>
1087
1088 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
1089 of lexical block.
1090
e66d4446
SC
10912014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1092
1093 PR c++/17132
1094 * eval.c: Update all calls to find_overload_match.
1095 * valarith.c: Likewise.
1096 (value_user_defined_cpp_op, value_user_defined_op): New
1097 argument NOSIDE. Update all callers.
1098 * valops.c (find_overload_match): New argument NOSIDE.
1099 * value.h (find_overload_match): Update signature.
1100
940df408
SC
11012014-08-15 Siva Chandra Reddy <sivachandra@google.com>
1102
1103 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
1104 'items' methods instead of 'iteritems' method on dictionaries.
1105
699ca60a
DE
11062014-08-15 Doug Evans <dje@google.com>
1107
1108 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
1109 closer to use.
1110
37780ee5
DE
11112014-08-15 Doug Evans <dje@google.com>
1112
1113 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
1114
0ad93d4f
DE
11152014-08-15 Doug Evans <dje@google.com>
1116
1117 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
1118
20d8c372
DE
11192014-08-15 Doug Evans <dje@google.com>
1120
1121 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
1122 unused.
1123
cb039ba4
EZ
11242014-08-15 Eli Zaretskii <eliz@gnu.org>
1125
1126 * dcache.h: Include target.h, to avoid compile time warnings.
1127
eb7a547a
JB
11282014-08-15 Joel Brobecker <brobecker@adacore.com>
1129
1130 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1131 frame_info" partial declaration.
1132 * gdbarch.h: Regenerate.
1133
783cecc8
YQ
11342014-08-15 Yao Qi <yao@codesourcery.com>
1135
1136 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1137 Add parameter 'decode_for_pst_p'. Callers update.
1138
65c749e7
YQ
11392014-08-13 Yao Qi <yao@codesourcery.com>
1140
1141 PR build/17104
1142 * configure.ac: Use local variable 'pos'.
1143 * configure: Regenerated.
1144
d769e349
DE
11452014-08-11 Doug Evans <dje@google.com>
1146
1147 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1148 message, it is redundant with "Reading symbols from ..." message.
1149
24f1235e
DE
11502014-08-10 Doug Evans <xdje42@gmail.com>
1151
1152 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1153
dcd2e6ef
YQ
11542014-08-09 Yao Qi <yao@codesourcery.com>
1155
1156 PR remote/9053
1157 * remote.c (remote_xfer_partial): Remove dead code.
1158
070bdf0b
AA
11592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1160
1161 * ia64-linux-tdep.c: Include "regset.h".
1162 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1163 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1164 (ia64_linux_supply_fpregset): New function.
1165 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1166 (ia64_linux_regset_from_core_section): New function.
1167 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1168 method.
1169
08f9f542
AA
11702014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1171
1172 * m68klinux-tdep.c: Include "regset.h".
1173 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1174 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1175 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1176 (m68k_linux_regset_from_core_section): New function.
1177 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1178 method.
1179
8f1cee41
AA
11802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1181
1182 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1183 function. Move logic to...
1184 (tilegx_linux_regmap): ... this new register map.
1185 (tilegx_linux_regset): Refer to register map, replace supply
1186 method by regcache_supply_regset, and add collect method.
1187 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1188 TILEGX_FIRST_EASY_REGNUM.
1189
c5741217
AA
11902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1191
1192 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1193 that calls regcache_supply_regset and handles the EPC register
1194 separately. Move main logic to...
1195 (score7_linux_gregmap): ... this new register map.
1196 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1197 (score7_linux_gregset): Refer to register map. Add collect method.
1198 (score7_linux_regset_from_core_section): Replace
1199 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1200 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1201 (struct regset): Delete unused forward declaraction.
1202 (struct pt_regs): Delete structure definition.
1203 (elf_gregset_t): Delete typedef.
1204
81580573
AA
12052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1206
1207 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1208 (nios2_core_regset): Add collect method.
1209
ba199d7d
AA
12102014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1211
1212 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1213 platform-independent and don't write to read-only input buffer.
1214 (m32r_linux_collect_gregset): New function.
1215 (m32r_linux_gregset): Add collect method.
1216
0006a9da
AA
12172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1218
1219 * hppa-linux-tdep.c (greg_map): Rename to...
1220 (hppa_linux_gregmap): ... this. Also convert to
1221 regcache_map_entry format.
1222 (hppa_linux_supply_regset): Delete function.
1223 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1224 (hppa_linux_fpregmap): ... this new register map.
1225 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1226 register map, replace supply method by regcache_supply_regset, and
1227 add collect method regcache_collect_regset.
1228
901e1b23
AA
12292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1230
1231 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1232 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1233 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1234 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1235 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1236 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1237 (frv_linux_supply_gregset): Replace main logic by call to
1238 regcache_supply_regset, but keep clearing gr32-gr63.
1239 (frv_linux_supply_fpregset): Delete function.
1240 (frv_linux_gregset): Refer to appropriate register map and add
1241 regcache_collect_regset as the collect method.
1242 (frv_linux_fpregset): Likewise. Also exchange the supply method
1243 by regcache_supply_regset.
1244
1d6e7555
AA
12452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1246
1247 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1248 by call to alpha_supply_int_regs.
1249 (alpha_linux_collect_gregset): New function.
1250 (alpha_linux_supply_fpregset): Replace logic by call to
1251 alpha_supply_fp_regs.
1252 (alpha_linux_collect_fpregset): New function.
1253 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1254
d4d793bf
AA
12552014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1256
1257 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1258 by call to regcache_collect_regset.
1259 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1260 instead of aarch64_linux_supply_gregset/_fpregset.
1261 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1262 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1263 header file instead.
1264 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1265 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1266 functions. Move logic to ...
1267 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1268 register maps.
1269 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1270 refer to new register maps, replace *_regset_from_core by
1271 regcache_supply_regset, and also use regcache_collect_regset.
1272 * aarch64-linux-tdep.h: Include "regset.h".
1273 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1274 Delete prototypes.
1275 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1276 macros, moved from C source file.
1277 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1278 variable declarations.
1279
99b7da5d
AA
12802014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1281
1282 * s390-linux-nat.c: Include "regset.h".
1283 (regmap_gregset): Delete macro.
1284 (s390_64_regmap_gregset): New register map for
1285 regcache_supply/_collect_regset.
1286 (s390_64_gregset): New regset.
1287 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1288 (regmap_fpregset): Delete macro.
1289 (s390_native_supply, s390_native_collect): Delete functions.
1290 (supply_gregset, fill_gregset): Replace s390-specific regmap
1291 handling by a call to regcache_supply/_collect_regset.
1292 (supply_fpregset, fill_fpregset): Call regcache_supply/
1293 _collect_regset instead of s390_native_supply/_collect.
1294 (fetch_regset, store_regset): Likewise. Also change the last
1295 parameter to a regset instead of a regmap.
1296 (s390_linux_fetch_inferior_registers)
1297 (390_linux_store_inferior_registers): Adjust last parameter in
1298 calls to fetch_regset and store_regset.
1299 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1300 (s390_gregmap): ... this. Also make static const and convert to
1301 regcache_map_entry format.
1302 (s390x_regmap_gregset): Delete.
1303 (s390_regmap_fpregset): Rename to...
1304 (s390_fpregmap): ... this. Make static const and convert to
1305 regcache_map_entry format.
1306 (s390_regmap_upper, s390_regmap_last_break)
1307 (s390x_regmap_last_break, s390_regmap_system_call)
1308 (s390_regmap_tdb): Likewise.
1309 (s390_supply_regset, s390_collect_regset): Remove functions.
1310 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1311 s390_supply_regset.
1312 (s390_gregset, s390_fpregset, s390_upper_regset)
1313 (s390_last_break_regset, s390x_last_break_regset)
1314 (s390_system_call_regset, s390_tdb_regset): Make global and
1315 replace s390_supply/_collect_regset by regcache_supply/
1316 _collect_regset.
1317 (s390x_gregset): Delete.
1318 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1319 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1320 (s390_regmap_fpregset, s390_regmap_last_break)
1321 (s390x_regmap_last_break, s390_regmap_system_call)
1322 (s390_regmap_tdb): Delete global variable declarations.
1323 (s390_gregset, s390_fpregset, s390_last_break_regset)
1324 (s390x_last_break_regset, s390_system_call_regset)
1325 (s390_tdb_regset): New global variable declarations.
1326
0b309272
AA
13272014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1328
1329 * regcache.c: Include "regset.h".
1330 (regcache_transfer_regset): New local function.
1331 (regcache_supply_regset, regcache_collect_regset): New functions.
1332 * regcache.h (struct regcache_map_entry): New structure.
1333 (REGCACHE_MAP_SKIP): New enum value.
1334 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1335
7fefa8d7
AA
13362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1337
1338 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1339 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1340 (ppc_linux_collect_gregset ): Likewise.
1341 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1342 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1343 (ppc_collect_vrregset): Likewise.
1344 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1345 Likewise.
1346
96c4f946
YQ
13472014-08-07 Yao Qi <yao@codesourcery.com>
1348
1349 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1350 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1351 * remote.c (remote_read_bytes): Likewise.
1352
fffbe6a8
YQ
13532014-08-07 Yao Qi <yao@codesourcery.com>
1354
1355 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1356
5ee8a82c
YQ
13572014-08-07 Yao Qi <yao@codesourcery.com>
1358
1359 PR remote/17230
1360 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1361 TARGET_XFER_OK instead of 0.
1362
bb974a24
GB
13632014-08-07 Gary Benson <gbenson@redhat.com>
1364
1365 * common/common-defs.h: Include errno.h.
1366 * defs.h: Do not include errno.h.
1367 * ada-typeprint.c: Likewise.
1368 * c-typeprint.c: Likewise.
1369 * core-regset.c: Likewise.
1370 * corefile.c: Likewise.
1371 * corelow.c: Likewise.
1372 * event-loop.c: Likewise.
1373 * f-typeprint.c: Likewise.
1374 * gnu-nat.c: Likewise.
1375 * go32-nat.c: Likewise.
1376 * i386gnu-nat.c: Likewise.
1377 * m2-typeprint.c: Likewise.
1378 * nat/linux-btrace.c: Likewise.
1379 * p-typeprint.c: Likewise.
1380 * procfs.c: Likewise.
1381 * remote-sim.c: Likewise.
1382 * rs6000-nat.c: Likewise.
1383 * target.c: Likewise.
1384 * typeprint.c: Likewise.
1385 * ui-file.c: Likewise.
1386 * valops.c: Likewise.
1387 * valprint.c: Likewise.
1388
6d3d12eb
GB
13892014-08-07 Gary Benson <gbenson@redhat.com>
1390
1391 * common/common-defs.h: Include string.h.
1392 * aarch64-tdep.c: Do not include string.h.
1393 * ada-exp.y: Likewise.
1394 * ada-lang.c: Likewise.
1395 * ada-lex.l: Likewise.
1396 * ada-typeprint.c: Likewise.
1397 * ada-valprint.c: Likewise.
1398 * aix-thread.c: Likewise.
1399 * alpha-linux-tdep.c: Likewise.
1400 * alpha-mdebug-tdep.c: Likewise.
1401 * alpha-nat.c: Likewise.
1402 * alpha-osf1-tdep.c: Likewise.
1403 * alpha-tdep.c: Likewise.
1404 * alphanbsd-tdep.c: Likewise.
1405 * amd64-dicos-tdep.c: Likewise.
1406 * amd64-linux-tdep.c: Likewise.
1407 * amd64-nat.c: Likewise.
1408 * amd64-sol2-tdep.c: Likewise.
1409 * amd64fbsd-tdep.c: Likewise.
1410 * amd64obsd-tdep.c: Likewise.
1411 * arch-utils.c: Likewise.
1412 * arm-linux-nat.c: Likewise.
1413 * arm-linux-tdep.c: Likewise.
1414 * arm-tdep.c: Likewise.
1415 * arm-wince-tdep.c: Likewise.
1416 * armbsd-tdep.c: Likewise.
1417 * armnbsd-nat.c: Likewise.
1418 * armnbsd-tdep.c: Likewise.
1419 * armobsd-tdep.c: Likewise.
1420 * avr-tdep.c: Likewise.
1421 * ax-gdb.c: Likewise.
1422 * ax-general.c: Likewise.
1423 * bcache.c: Likewise.
1424 * bfin-tdep.c: Likewise.
1425 * breakpoint.c: Likewise.
1426 * build-id.c: Likewise.
1427 * buildsym.c: Likewise.
1428 * c-exp.y: Likewise.
1429 * c-lang.c: Likewise.
1430 * c-typeprint.c: Likewise.
1431 * c-valprint.c: Likewise.
1432 * charset.c: Likewise.
1433 * cli-out.c: Likewise.
1434 * cli/cli-cmds.c: Likewise.
1435 * cli/cli-decode.c: Likewise.
1436 * cli/cli-dump.c: Likewise.
1437 * cli/cli-interp.c: Likewise.
1438 * cli/cli-logging.c: Likewise.
1439 * cli/cli-script.c: Likewise.
1440 * cli/cli-setshow.c: Likewise.
1441 * cli/cli-utils.c: Likewise.
1442 * coffread.c: Likewise.
1443 * common/agent.c: Likewise.
1444 * common/buffer.c: Likewise.
1445 * common/buffer.h: Likewise.
1446 * common/common-utils.c: Likewise.
1447 * common/filestuff.c: Likewise.
1448 * common/filestuff.c: Likewise.
1449 * common/format.c: Likewise.
1450 * common/print-utils.c: Likewise.
1451 * common/rsp-low.c: Likewise.
1452 * common/signals.c: Likewise.
1453 * common/vec.h: Likewise.
1454 * common/xml-utils.c: Likewise.
1455 * core-regset.c: Likewise.
1456 * corefile.c: Likewise.
1457 * corelow.c: Likewise.
1458 * cp-abi.c: Likewise.
1459 * cp-name-parser.y: Likewise.
1460 * cp-support.c: Likewise.
1461 * cp-valprint.c: Likewise.
1462 * cris-tdep.c: Likewise.
1463 * d-exp.y: Likewise.
1464 * darwin-nat.c: Likewise.
1465 * dbxread.c: Likewise.
1466 * dcache.c: Likewise.
1467 * demangle.c: Likewise.
1468 * dicos-tdep.c: Likewise.
1469 * disasm.c: Likewise.
1470 * doublest.c: Likewise.
1471 * dsrec.c: Likewise.
1472 * dummy-frame.c: Likewise.
1473 * dwarf2-frame.c: Likewise.
1474 * dwarf2loc.c: Likewise.
1475 * dwarf2read.c: Likewise.
1476 * elfread.c: Likewise.
1477 * environ.c: Likewise.
1478 * eval.c: Likewise.
1479 * event-loop.c: Likewise.
1480 * exceptions.c: Likewise.
1481 * exec.c: Likewise.
1482 * expprint.c: Likewise.
1483 * f-exp.y: Likewise.
1484 * f-lang.c: Likewise.
1485 * f-typeprint.c: Likewise.
1486 * f-valprint.c: Likewise.
1487 * fbsd-nat.c: Likewise.
1488 * findcmd.c: Likewise.
1489 * findvar.c: Likewise.
1490 * fork-child.c: Likewise.
1491 * frame.c: Likewise.
1492 * frv-linux-tdep.c: Likewise.
1493 * frv-tdep.c: Likewise.
1494 * gdb.c: Likewise.
1495 * gdb_bfd.c: Likewise.
1496 * gdbarch.c: Likewise.
1497 * gdbarch.sh: Likewise.
1498 * gdbtypes.c: Likewise.
1499 * gnu-nat.c: Likewise.
1500 * gnu-v2-abi.c: Likewise.
1501 * gnu-v3-abi.c: Likewise.
1502 * go-exp.y: Likewise.
1503 * go-lang.c: Likewise.
1504 * go32-nat.c: Likewise.
1505 * guile/guile.c: Likewise.
1506 * guile/scm-auto-load.c: Likewise.
1507 * hppa-hpux-tdep.c: Likewise.
1508 * hppa-linux-nat.c: Likewise.
1509 * hppanbsd-tdep.c: Likewise.
1510 * hppaobsd-tdep.c: Likewise.
1511 * i386-cygwin-tdep.c: Likewise.
1512 * i386-dicos-tdep.c: Likewise.
1513 * i386-linux-tdep.c: Likewise.
1514 * i386-nto-tdep.c: Likewise.
1515 * i386-sol2-tdep.c: Likewise.
1516 * i386-tdep.c: Likewise.
1517 * i386bsd-tdep.c: Likewise.
1518 * i386gnu-nat.c: Likewise.
1519 * i386nbsd-tdep.c: Likewise.
1520 * i386obsd-tdep.c: Likewise.
1521 * i387-tdep.c: Likewise.
1522 * ia64-libunwind-tdep.c: Likewise.
1523 * ia64-linux-nat.c: Likewise.
1524 * inf-child.c: Likewise.
1525 * inf-ptrace.c: Likewise.
1526 * inf-ttrace.c: Likewise.
1527 * infcall.c: Likewise.
1528 * infcmd.c: Likewise.
1529 * inflow.c: Likewise.
1530 * infrun.c: Likewise.
1531 * interps.c: Likewise.
1532 * iq2000-tdep.c: Likewise.
1533 * irix5-nat.c: Likewise.
1534 * jv-exp.y: Likewise.
1535 * jv-lang.c: Likewise.
1536 * jv-typeprint.c: Likewise.
1537 * jv-valprint.c: Likewise.
1538 * language.c: Likewise.
1539 * linux-fork.c: Likewise.
1540 * linux-nat.c: Likewise.
1541 * lm32-tdep.c: Likewise.
1542 * m2-exp.y: Likewise.
1543 * m2-typeprint.c: Likewise.
1544 * m32c-tdep.c: Likewise.
1545 * m32r-linux-nat.c: Likewise.
1546 * m32r-linux-tdep.c: Likewise.
1547 * m32r-rom.c: Likewise.
1548 * m32r-tdep.c: Likewise.
1549 * m68hc11-tdep.c: Likewise.
1550 * m68k-tdep.c: Likewise.
1551 * m68kbsd-tdep.c: Likewise.
1552 * m68klinux-nat.c: Likewise.
1553 * m68klinux-tdep.c: Likewise.
1554 * m88k-tdep.c: Likewise.
1555 * machoread.c: Likewise.
1556 * macrocmd.c: Likewise.
1557 * main.c: Likewise.
1558 * mdebugread.c: Likewise.
1559 * mem-break.c: Likewise.
1560 * memattr.c: Likewise.
1561 * memory-map.c: Likewise.
1562 * mep-tdep.c: Likewise.
1563 * mi/mi-cmd-break.c: Likewise.
1564 * mi/mi-cmd-disas.c: Likewise.
1565 * mi/mi-cmd-env.c: Likewise.
1566 * mi/mi-cmd-stack.c: Likewise.
1567 * mi/mi-cmd-var.c: Likewise.
1568 * mi/mi-cmds.c: Likewise.
1569 * mi/mi-console.c: Likewise.
1570 * mi/mi-getopt.c: Likewise.
1571 * mi/mi-interp.c: Likewise.
1572 * mi/mi-main.c: Likewise.
1573 * mi/mi-parse.c: Likewise.
1574 * microblaze-rom.c: Likewise.
1575 * microblaze-tdep.c: Likewise.
1576 * mingw-hdep.c: Likewise.
1577 * minidebug.c: Likewise.
1578 * minsyms.c: Likewise.
1579 * mips-irix-tdep.c: Likewise.
1580 * mips-linux-tdep.c: Likewise.
1581 * mips-tdep.c: Likewise.
1582 * mips64obsd-tdep.c: Likewise.
1583 * mipsnbsd-tdep.c: Likewise.
1584 * mipsread.c: Likewise.
1585 * mn10300-linux-tdep.c: Likewise.
1586 * mn10300-tdep.c: Likewise.
1587 * monitor.c: Likewise.
1588 * moxie-tdep.c: Likewise.
1589 * mt-tdep.c: Likewise.
1590 * nat/linux-btrace.c: Likewise.
1591 * nat/linux-osdata.c: Likewise.
1592 * nat/linux-procfs.c: Likewise.
1593 * nat/linux-ptrace.c: Likewise.
1594 * nat/linux-waitpid.c: Likewise.
1595 * nbsd-tdep.c: Likewise.
1596 * nios2-linux-tdep.c: Likewise.
1597 * nto-procfs.c: Likewise.
1598 * nto-tdep.c: Likewise.
1599 * objc-lang.c: Likewise.
1600 * objfiles.c: Likewise.
1601 * opencl-lang.c: Likewise.
1602 * osabi.c: Likewise.
1603 * osdata.c: Likewise.
1604 * p-exp.y: Likewise.
1605 * p-lang.c: Likewise.
1606 * p-typeprint.c: Likewise.
1607 * parse.c: Likewise.
1608 * posix-hdep.c: Likewise.
1609 * ppc-linux-nat.c: Likewise.
1610 * ppc-sysv-tdep.c: Likewise.
1611 * ppcfbsd-tdep.c: Likewise.
1612 * ppcnbsd-tdep.c: Likewise.
1613 * ppcobsd-tdep.c: Likewise.
1614 * printcmd.c: Likewise.
1615 * procfs.c: Likewise.
1616 * prologue-value.c: Likewise.
1617 * python/py-auto-load.c: Likewise.
1618 * python/py-gdb-readline.c: Likewise.
1619 * ravenscar-thread.c: Likewise.
1620 * regcache.c: Likewise.
1621 * registry.c: Likewise.
1622 * remote-fileio.c: Likewise.
1623 * remote-m32r-sdi.c: Likewise.
1624 * remote-mips.c: Likewise.
1625 * remote-notif.c: Likewise.
1626 * remote-sim.c: Likewise.
1627 * remote.c: Likewise.
1628 * reverse.c: Likewise.
1629 * rs6000-aix-tdep.c: Likewise.
1630 * ser-base.c: Likewise.
1631 * ser-go32.c: Likewise.
1632 * ser-mingw.c: Likewise.
1633 * ser-pipe.c: Likewise.
1634 * ser-tcp.c: Likewise.
1635 * ser-unix.c: Likewise.
1636 * serial.c: Likewise.
1637 * sh-tdep.c: Likewise.
1638 * sh64-tdep.c: Likewise.
1639 * shnbsd-tdep.c: Likewise.
1640 * skip.c: Likewise.
1641 * sol-thread.c: Likewise.
1642 * solib-dsbt.c: Likewise.
1643 * solib-frv.c: Likewise.
1644 * solib-osf.c: Likewise.
1645 * solib-som.c: Likewise.
1646 * solib-spu.c: Likewise.
1647 * solib-target.c: Likewise.
1648 * solib.c: Likewise.
1649 * somread.c: Likewise.
1650 * source.c: Likewise.
1651 * sparc-nat.c: Likewise.
1652 * sparc-sol2-tdep.c: Likewise.
1653 * sparc-tdep.c: Likewise.
1654 * sparc64-tdep.c: Likewise.
1655 * sparc64fbsd-tdep.c: Likewise.
1656 * sparc64nbsd-tdep.c: Likewise.
1657 * sparcnbsd-tdep.c: Likewise.
1658 * spu-linux-nat.c: Likewise.
1659 * spu-multiarch.c: Likewise.
1660 * spu-tdep.c: Likewise.
1661 * stabsread.c: Likewise.
1662 * stack.c: Likewise.
1663 * std-regs.c: Likewise.
1664 * symfile.c: Likewise.
1665 * symmisc.c: Likewise.
1666 * symtab.c: Likewise.
1667 * target.c: Likewise.
1668 * thread.c: Likewise.
1669 * tilegx-linux-nat.c: Likewise.
1670 * tilegx-tdep.c: Likewise.
1671 * top.c: Likewise.
1672 * tracepoint.c: Likewise.
1673 * tui/tui-command.c: Likewise.
1674 * tui/tui-data.c: Likewise.
1675 * tui/tui-disasm.c: Likewise.
1676 * tui/tui-file.c: Likewise.
1677 * tui/tui-layout.c: Likewise.
1678 * tui/tui-out.c: Likewise.
1679 * tui/tui-regs.c: Likewise.
1680 * tui/tui-source.c: Likewise.
1681 * tui/tui-stack.c: Likewise.
1682 * tui/tui-win.c: Likewise.
1683 * tui/tui-windata.c: Likewise.
1684 * tui/tui-winsource.c: Likewise.
1685 * typeprint.c: Likewise.
1686 * ui-file.c: Likewise.
1687 * ui-out.c: Likewise.
1688 * user-regs.c: Likewise.
1689 * utils.c: Likewise.
1690 * v850-tdep.c: Likewise.
1691 * valarith.c: Likewise.
1692 * valops.c: Likewise.
1693 * valprint.c: Likewise.
1694 * value.c: Likewise.
1695 * varobj.c: Likewise.
1696 * vax-tdep.c: Likewise.
1697 * vaxnbsd-tdep.c: Likewise.
1698 * vaxobsd-tdep.c: Likewise.
1699 * windows-nat.c: Likewise.
1700 * xcoffread.c: Likewise.
1701 * xml-support.c: Likewise.
1702 * xstormy16-tdep.c: Likewise.
1703 * xtensa-linux-nat.c: Likewise.
1704
dccbb609
GB
17052014-08-07 Gary Benson <gbenson@redhat.com>
1706
1707 * common/common-defs.h: Include gdb_assert.h.
1708 * aarch64-tdep.c: Do not include gdb_assert.h.
1709 * addrmap.c: Likewise.
1710 * aix-thread.c: Likewise.
1711 * alpha-linux-tdep.c: Likewise.
1712 * alpha-mdebug-tdep.c: Likewise.
1713 * alphanbsd-tdep.c: Likewise.
1714 * amd64-nat.c: Likewise.
1715 * amd64-tdep.c: Likewise.
1716 * amd64bsd-nat.c: Likewise.
1717 * amd64fbsd-nat.c: Likewise.
1718 * amd64fbsd-tdep.c: Likewise.
1719 * amd64nbsd-nat.c: Likewise.
1720 * amd64nbsd-tdep.c: Likewise.
1721 * amd64obsd-nat.c: Likewise.
1722 * amd64obsd-tdep.c: Likewise.
1723 * arch-utils.c: Likewise.
1724 * arm-tdep.c: Likewise.
1725 * armbsd-tdep.c: Likewise.
1726 * auxv.c: Likewise.
1727 * bcache.c: Likewise.
1728 * bfin-tdep.c: Likewise.
1729 * blockframe.c: Likewise.
1730 * breakpoint.c: Likewise.
1731 * bsd-kvm.c: Likewise.
1732 * bsd-uthread.c: Likewise.
1733 * buildsym.c: Likewise.
1734 * c-exp.y: Likewise.
1735 * c-lang.c: Likewise.
1736 * charset.c: Likewise.
1737 * cleanups.c: Likewise.
1738 * cli-out.c: Likewise.
1739 * cli/cli-decode.c: Likewise.
1740 * cli/cli-dump.c: Likewise.
1741 * cli/cli-logging.c: Likewise.
1742 * cli/cli-script.c: Likewise.
1743 * cli/cli-utils.c: Likewise.
1744 * coffread.c: Likewise.
1745 * common/common-utils.c: Likewise.
1746 * common/queue.h: Likewise.
1747 * common/signals.c: Likewise.
1748 * common/vec.h: Likewise.
1749 * complaints.c: Likewise.
1750 * completer.c: Likewise.
1751 * corelow.c: Likewise.
1752 * cp-abi.c: Likewise.
1753 * cp-name-parser.y: Likewise.
1754 * cp-namespace.c: Likewise.
1755 * cp-support.c: Likewise.
1756 * cris-tdep.c: Likewise.
1757 * dbxread.c: Likewise.
1758 * dictionary.c: Likewise.
1759 * doublest.c: Likewise.
1760 * dsrec.c: Likewise.
1761 * dummy-frame.c: Likewise.
1762 * dwarf2-frame-tailcall.c: Likewise.
1763 * dwarf2-frame.c: Likewise.
1764 * dwarf2expr.c: Likewise.
1765 * dwarf2loc.c: Likewise.
1766 * dwarf2read.c: Likewise.
1767 * eval.c: Likewise.
1768 * event-loop.c: Likewise.
1769 * exceptions.c: Likewise.
1770 * expprint.c: Likewise.
1771 * f-valprint.c: Likewise.
1772 * fbsd-nat.c: Likewise.
1773 * findvar.c: Likewise.
1774 * frame-unwind.c: Likewise.
1775 * frame.c: Likewise.
1776 * frv-tdep.c: Likewise.
1777 * gcore.c: Likewise.
1778 * gdb-dlfcn.c: Likewise.
1779 * gdb_bfd.c: Likewise.
1780 * gdbarch.c: Likewise.
1781 * gdbarch.sh: Likewise.
1782 * gdbtypes.c: Likewise.
1783 * gnu-nat.c: Likewise.
1784 * gnu-v3-abi.c: Likewise.
1785 * go-lang.c: Likewise.
1786 * guile/scm-exception.c: Likewise.
1787 * guile/scm-gsmob.c: Likewise.
1788 * guile/scm-lazy-string.c: Likewise.
1789 * guile/scm-math.c: Likewise.
1790 * guile/scm-pretty-print.c: Likewise.
1791 * guile/scm-safe-call.c: Likewise.
1792 * guile/scm-utils.c: Likewise.
1793 * guile/scm-value.c: Likewise.
1794 * h8300-tdep.c: Likewise.
1795 * hppa-hpux-nat.c: Likewise.
1796 * hppa-tdep.c: Likewise.
1797 * hppanbsd-tdep.c: Likewise.
1798 * hppaobsd-tdep.c: Likewise.
1799 * i386-darwin-nat.c: Likewise.
1800 * i386-darwin-tdep.c: Likewise.
1801 * i386-nto-tdep.c: Likewise.
1802 * i386-tdep.c: Likewise.
1803 * i386bsd-nat.c: Likewise.
1804 * i386fbsd-tdep.c: Likewise.
1805 * i386gnu-nat.c: Likewise.
1806 * i386nbsd-tdep.c: Likewise.
1807 * i386obsd-tdep.c: Likewise.
1808 * i387-tdep.c: Likewise.
1809 * ia64-libunwind-tdep.c: Likewise.
1810 * ia64-tdep.c: Likewise.
1811 * inf-ptrace.c: Likewise.
1812 * inf-ttrace.c: Likewise.
1813 * infcall.c: Likewise.
1814 * infcmd.c: Likewise.
1815 * infrun.c: Likewise.
1816 * inline-frame.c: Likewise.
1817 * interps.c: Likewise.
1818 * jv-lang.c: Likewise.
1819 * jv-typeprint.c: Likewise.
1820 * linux-fork.c: Likewise.
1821 * linux-nat.c: Likewise.
1822 * linux-thread-db.c: Likewise.
1823 * m32c-tdep.c: Likewise.
1824 * m32r-linux-nat.c: Likewise.
1825 * m32r-tdep.c: Likewise.
1826 * m68k-tdep.c: Likewise.
1827 * m68kbsd-nat.c: Likewise.
1828 * m68kbsd-tdep.c: Likewise.
1829 * m88k-tdep.c: Likewise.
1830 * machoread.c: Likewise.
1831 * macroexp.c: Likewise.
1832 * macrotab.c: Likewise.
1833 * maint.c: Likewise.
1834 * mdebugread.c: Likewise.
1835 * memory-map.c: Likewise.
1836 * mep-tdep.c: Likewise.
1837 * mi/mi-common.c: Likewise.
1838 * microblaze-tdep.c: Likewise.
1839 * mingw-hdep.c: Likewise.
1840 * mips-linux-nat.c: Likewise.
1841 * mips-linux-tdep.c: Likewise.
1842 * mips-tdep.c: Likewise.
1843 * mips64obsd-tdep.c: Likewise.
1844 * mipsnbsd-tdep.c: Likewise.
1845 * mn10300-linux-tdep.c: Likewise.
1846 * mn10300-tdep.c: Likewise.
1847 * moxie-tdep.c: Likewise.
1848 * mt-tdep.c: Likewise.
1849 * nat/linux-btrace.c: Likewise.
1850 * nat/linux-osdata.c: Likewise.
1851 * nat/linux-ptrace.c: Likewise.
1852 * nat/mips-linux-watch.c: Likewise.
1853 * nios2-linux-tdep.c: Likewise.
1854 * nios2-tdep.c: Likewise.
1855 * objc-lang.c: Likewise.
1856 * objfiles.c: Likewise.
1857 * obsd-nat.c: Likewise.
1858 * opencl-lang.c: Likewise.
1859 * osabi.c: Likewise.
1860 * parse.c: Likewise.
1861 * ppc-linux-nat.c: Likewise.
1862 * ppc-sysv-tdep.c: Likewise.
1863 * ppcfbsd-nat.c: Likewise.
1864 * ppcfbsd-tdep.c: Likewise.
1865 * ppcnbsd-nat.c: Likewise.
1866 * ppcnbsd-tdep.c: Likewise.
1867 * ppcobsd-nat.c: Likewise.
1868 * ppcobsd-tdep.c: Likewise.
1869 * printcmd.c: Likewise.
1870 * procfs.c: Likewise.
1871 * prologue-value.c: Likewise.
1872 * psymtab.c: Likewise.
1873 * python/py-lazy-string.c: Likewise.
1874 * python/py-value.c: Likewise.
1875 * regcache.c: Likewise.
1876 * reggroups.c: Likewise.
1877 * registry.c: Likewise.
1878 * remote-sim.c: Likewise.
1879 * remote.c: Likewise.
1880 * rs6000-aix-tdep.c: Likewise.
1881 * rs6000-tdep.c: Likewise.
1882 * s390-linux-tdep.c: Likewise.
1883 * score-tdep.c: Likewise.
1884 * ser-base.c: Likewise.
1885 * ser-mingw.c: Likewise.
1886 * sh-tdep.c: Likewise.
1887 * sh64-tdep.c: Likewise.
1888 * solib-darwin.c: Likewise.
1889 * solib-spu.c: Likewise.
1890 * solib-svr4.c: Likewise.
1891 * source.c: Likewise.
1892 * sparc-nat.c: Likewise.
1893 * sparc-sol2-tdep.c: Likewise.
1894 * sparc-tdep.c: Likewise.
1895 * sparc64-sol2-tdep.c: Likewise.
1896 * sparc64-tdep.c: Likewise.
1897 * sparc64fbsd-tdep.c: Likewise.
1898 * sparc64nbsd-tdep.c: Likewise.
1899 * sparc64obsd-tdep.c: Likewise.
1900 * sparcnbsd-tdep.c: Likewise.
1901 * sparcobsd-tdep.c: Likewise.
1902 * spu-multiarch.c: Likewise.
1903 * spu-tdep.c: Likewise.
1904 * stabsread.c: Likewise.
1905 * stack.c: Likewise.
1906 * symfile.c: Likewise.
1907 * symtab.c: Likewise.
1908 * target-descriptions.c: Likewise.
1909 * target-memory.c: Likewise.
1910 * target.c: Likewise.
1911 * tic6x-linux-tdep.c: Likewise.
1912 * tic6x-tdep.c: Likewise.
1913 * tilegx-linux-nat.c: Likewise.
1914 * tilegx-tdep.c: Likewise.
1915 * top.c: Likewise.
1916 * tramp-frame.c: Likewise.
1917 * tui/tui-out.c: Likewise.
1918 * tui/tui-winsource.c: Likewise.
1919 * ui-out.c: Likewise.
1920 * user-regs.c: Likewise.
1921 * utils.c: Likewise.
1922 * v850-tdep.c: Likewise.
1923 * valops.c: Likewise.
1924 * value.c: Likewise.
1925 * varobj.c: Likewise.
1926 * vax-nat.c: Likewise.
1927 * xml-syscall.c: Likewise.
1928 * xml-tdesc.c: Likewise.
1929 * xstormy16-tdep.c: Likewise.
1930 * xtensa-linux-nat.c: Likewise.
1931 * xtensa-tdep.c: Likewise.
1932
e76df0d0
GB
19332014-08-07 Gary Benson <gbenson@redhat.com>
1934
1935 * common/common-defs.h: Include common-utils.h.
1936 * defs.h: Do not include common-utils.h.
1937 * common/gdb_assert.h: Likewise.
1938 * darwin-nat.h: Likewise.
1939 * nat/linux-btrace.c: Likewise.
1940 * target/waitstatus.h: Likewise.
1941
4cb9c816
GB
19422014-08-07 Gary Benson <gbenson@redhat.com>
1943
1944 * common/common-defs.h: Include ptid.h.
1945 * defs.h: Do not include ptid.h.
1946 * inferior.h: Likewise.
1947 * infrun.h: Likewise.
1948 * nat/linux-btrace.h: Likewise.
1949 * nat/linux-osdata.h: Likewise.
1950 * target/waitstatus.h: Likewise.
1951
3995eeee
GB
19522014-08-07 Gary Benson <gbenson@redhat.com>
1953
1954 * common/common-defs.h: Include gdb_locale.h.
1955 * defs.h: Do not include gdb_locale.h.
1956
cb9f1a9b
GB
19572014-08-07 Gary Benson <gbenson@redhat.com>
1958
1959 * common/common-defs.h: Include gdb/signals.h.
1960 * defs.h: Do not include gdb/signals.h.
1961
a5fceff8
GB
19622014-08-07 Gary Benson <gbenson@redhat.com>
1963
1964 * common/common-defs.h: Include pathmax.h.
1965 * defs.h: Do not include pathmax.h.
1966
b9391142
GB
19672014-08-07 Gary Benson <gbenson@redhat.com>
1968
1969 * common/common-defs.h: Include libiberty.h.
1970 * defs.h: Do not include libiberty.h.
1971 * common/queue.h: Likewise.
1972 * cp-name-parser.y: Likewise.
1973 * mi/mi-cmd-catch.c: Likewise.
1974 * python/python.c: Likewise.
1975
0e443c87
GB
19762014-08-07 Gary Benson <gbenson@redhat.com>
1977
1978 * common/common-defs.h: Include ansidecl.h.
1979 * defs.h: Do not include ansidecl.h.
1980 * common/buffer.h: Likewise.
1981 * common/common-utils.h: Likewise.
1982
8ebb3f56
GB
19832014-08-07 Gary Benson <gbenson@redhat.com>
1984
1985 * common/common-defs.h: Include stddef.h.
1986 * defs.h: Do not include stddef.h.
1987 * common/common-utils.h: Likewise.
1988 * amd64fbsd-nat.c: Likewise.
1989 * bcache.c: Likewise.
1990 * charset.c: Likewise.
1991 * common/buffer.h: Likewise.
1992 * common/vec.h: Likewise.
1993 * i386bsd-nat.c: Likewise.
1994 * nat/linux-btrace.h: Likewise.
1995 * ppcfbsd-nat.c: Likewise.
1996 * ppcnbsd-tdep.h: Likewise.
1997 * ppcobsd-nat.c: Likewise.
1998 * ppcobsd-tdep.h: Likewise.
1999 * python/py-gdb-readline.c: Likewise.
2000
8980bdf6
GB
20012014-08-07 Gary Benson <gbenson@redhat.com>
2002
2003 * common/common-defs.h: Include stdarg.h.
2004 * defs.h: Do not include stdarg.h.
2005 * ada-lang.c: Likewise.
2006 * common/common-utils.h: Likewise.
2007 * guile/scm-string.c: Likewise.
2008 * guile/scm-utils.c: Likewise.
2009 * m32c-tdep.c: Likewise.
2010
d7096f71
GB
20112014-08-07 Gary Benson <gbenson@redhat.com>
2012
2013 * common/common-defs.h: Include stdlib.h.
2014 * defs.h: Do not include stdlib.h.
2015 * addrmap.c: Likewise.
2016 * bcache.c: Likewise.
2017 * common/buffer.c: Likewise.
2018 * common/common-utils.c: Likewise.
2019 * cp-name-parser.y: Likewise.
2020 * go32-nat.c: Likewise.
2021 * mn10300-linux-tdep.c: Likewise.
2022 * nat/linux-osdata.c: Likewise.
2023 * tui/tui.c: Likewise.
2024 * windows-nat.c: Likewise.
2025
d02f550d
GB
20262014-08-07 Gary Benson <gbenson@redhat.com>
2027
2028 * common/common-defs.h: Include stdio.h.
2029 * defs.h: Do not include stdio.h.
2030 * ada-lang.c: Likewise.
2031 * common/buffer.c: Likewise.
2032 * common/common-utils.c: Likewise.
2033 * cp-name-parser.y: Likewise.
2034 * gnu-nat.c: Likewise.
2035 * go32-nat.c: Likewise.
2036 * i386gnu-nat.c: Likewise.
2037 * proc-api.c: Likewise.
2038 * proc-events.c: Likewise.
2039 * proc-flags.c: Likewise.
2040 * proc-why.c: Likewise.
2041 * python/python-internal.h: Likewise.
2042 * target-memory.c: Likewise.
2043 * tui/tui-io.c: Likewise.
2044 * tui/tui.c: Likewise.
2045
b6d7a4bf
SM
20462014-08-06 Simon Marchi <simon.marchi@ericsson.com>
2047
2048 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
2049 (scan_dyntag_auxv): Same.
2050
af19829b
YQ
20512014-08-06 Yao Qi <yao@codesourcery.com>
2052
2053 * amd64-linux-nat.c: Remove duplicated include
2054 "x86-linux-nat.h".
2055 * i386-linux-nat.c: Likewise.
2056
8e07a239
YQ
20572014-08-06 Yao Qi <yao@codesourcery.com>
2058
2059 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
2060 operand" with "Special opcode" in comments.
2061
7bfe8241
GB
20622014-08-05 Gary Benson <gbenson@redhat.com>
2063
2064 * interps.c (initialize_interps): Remove prototype.
2065 (interpreter_initialized): Remove static global.
2066 (interp_add): Do not call initialize_interps.
2067 (initialize_interps): Remove function.
2068
d6c95504
GB
20692014-08-05 Gary Benson <gbenson@redhat.com>
2070
2071 * utils.c (vwarning): Remove spurious va_end.
2072
241fd515
AM
20732014-08-05 Alan Modra <amodra@gmail.com>
2074
2075 * charset.c (convert_between_encodings): Cast result of obstack_base.
2076 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
2077 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
2078 (read_unwind_info): Use size_t for some locals.
2079 * jit.c (finalize_symtab): Likewise.
2080 * utils.c (hashtab_obstack_allocate): Likewise.
2081 * symmisc.c (print_objfile_statistics): Update format strings.
2082
dc304a94
JK
20832014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2084
2085 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
2086 (Changes in GDB 7.8): ... here.
2087
3cecbbbe
TT
20882014-08-04 Tom Tromey <tromey@redhat.com>
2089
2090 * target.c (set_targetdebug): New function.
2091 (initialize_targets): Pass set_targetdebug when creating "set
2092 debug target".
2093
6908c509
JB
20942014-08-01 Joel Brobecker <brobecker@adacore.com>
2095
2096 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
2097 if detecting a variable-sized field that is not the last field.
2098 Fix struct type length computation.
2099
53e8f97d
JB
21002014-08-01 Joel Brobecker <brobecker@adacore.com>
2101
2102 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2103 Add debug trace.
2104
e068c55d
JB
21052014-08-01 Joel Brobecker <brobecker@adacore.com>
2106
2107 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
2108 Remove "+ 8" offset in computation of CHAIN_VMA.
2109
4d4ca2a1
DE
21102014-07-31 Doug Evans <dje@google.com>
2111
2112 * inflow.c (child_terminal_inferior): Add comment.
2113 (child_terminal_ours_for_output): Add comment.
2114 (child_terminal_ours): Add comment.
2115 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
2116 (linux_nat_terminal_ours): Add comment.
2117
462f517e
GB
21182014-07-31 Gary Benson <gbenson@redhat.com>
2119
2120 * common/btrace-common.h: Do not include defs.h or server.h.
2121 * nat/mips-linux-watch.h: Likewise.
2122 * gdb-dlfcn.h: Do not include defs.h.
2123 * tracefile.h: Likewise.
2124
74228e77
RM
21252014-07-30 Roland McGrath <mcgrathr@google.com>
2126
2127 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
2128
014f9477
TT
21292014-07-30 Tom Tromey <tromey@redhat.com>
2130
2131 * bsd-kvm.c (bsd_kvm_open): Constify.
2132 * corelow.c (core_open): Constify.
2133 * ctf.c (ctf_open): Constify.
2134 * dbug-rom.c (dbug_open): Constify.
2135 * exec.c (exec_open): Constify.
2136 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2137 * microblaze-rom.c (picobug_open): Constify.
2138 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2139 Constify.
2140 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2141 * record-btrace.c (record_btrace_open): Constify.
2142 * record-full.c (record_full_core_open_1, record_full_open_1)
2143 (record_full_open): Constify.
2144 * remote-m32r-sdi.c (m32r_open): Constify.
2145 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2146 (rockhopper_open, lsi_open): Constify.
2147 * remote-sim.c (gdbsim_open): Constify.
2148 * remote.c (remote_open, extended_remote_open, remote_open_1):
2149 Constify.
2150 * target.h (struct target_ops) <to_open>: Make "arg" const.
2151 * tracefile-tfile.c (tfile_open): Constify.
2152
e799154c
TT
21532014-07-30 Tom Tromey <tromey@redhat.com>
2154
2155 * breakpoint.c (map_breakpoint_numbers): Update.
2156 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2157 (get_number_const): New function.
2158 (get_number): Rewrite using get_number_const.
2159 (init_number_or_range): Make "string" const.
2160 (number_is_in_list): Make "list" const.
2161 * cli/cli-utils.h (get_number_const): Declare.
2162 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2163 (init_number_or_range, number_is_in_list): Update.
2164 * printcmd.c (map_display_numbers): Update.
2165 * value.c (value_from_history_ref): Constify.
2166 * value.h (value_from_history_ref): Update.
2167
5f08566b
TT
21682014-07-30 Tom Tromey <tromey@redhat.com>
2169
2170 * corefile.c (hook_type, call_extra_exec_file_hooks)
2171 (specify_exec_file_hook): Constify.
2172 * exec.c (exec_file_attach): Make "filename" const.
2173 * gdbcore.h (deprecated_exec_file_display_hook)
2174 (specify_exec_file_hook, exec_file_attach): Constify.
2175 * main.c (captured_main): Use catch_command_errors_const.
2176
8981c758
TT
21772014-07-30 Tom Tromey <tromey@redhat.com>
2178
2179 * target.c (open_target): New function.
2180 (add_target_with_completer, add_deprecated_target_alias): Use
2181 set_cmd_sfunc, set_cmd_context.
2182 (debug_to_open): Remove.
2183 (setup_target_debug): Update.
2184
a1c7835a
YQ
21852014-07-30 Yao Qi <yao@codesourcery.com>
2186
2187 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2188 comments.
2189 * parse.c (exp_iterate): Update comments.
2190
976411d6
GB
21912014-07-30 Gary Benson <gbenson@redhat.com>
2192
2193 * common/common-defs.h: New file.
2194 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2195 * defs.h: Include common-defs.h.
2196 Do not include config.h or build-gnulib/config.h.
2197
5d4848a4
GB
21982014-07-30 Gary Benson <gbenson@redhat.com>
2199
2200 * common/common-utils.h: Do not include config.h.
2201 * nat/linux-btrace.h: Likewise.
2202
d41f6d8e
GB
22032014-07-30 Gary Benson <gbenson@redhat.com>
2204
2205 * btrace.c: Include defs.h.
2206 * common/ptid.c: Include defs.h or server.h as appropriate.
2207 * nat/mips-linux-watch.c: Likewise.
2208
84202f9c
TT
22092014-07-29 Tom Tromey <tromey@redhat.com>
2210
2211 * target.c (target_is_pushed): Simplify.
2212
2530441c
JB
22132014-07-29 Joel Brobecker <brobecker@adacore.com>
2214
2215 GDB 7.8 released.
2216
7e09a223
YQ
22172014-07-29 Yao Qi <yao@codesourcery.com>
2218
2219 PR gdb/17206
2220 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2221
7ebdbe92
DE
22222014-07-28 Doug Evans <xdje42@gmail.com>
2223
2224 PR guile/17203
2225 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2226 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2227 parameters.
2228
f347ffc9
WN
22292014-07-28 Will Newton <will.newton@linaro.org>
2230
2231 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2232 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2233 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2234 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2235 (THUMB2_EABI_SYSCALL): Likewise.
2236 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2237 struct tramp_frame.
2238 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2239 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2240
37c5f1f7
DE
22412014-07-27 Doug Evans <xdje42@gmail.com>
2242
2243 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2244
0c3abbc7
DE
22452014-07-27 Doug Evans <xdje42@gmail.com>
2246
2247 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2248
e76c5d17
DE
22492014-07-26 Ludovic Courtès <ludo@gnu.org>
2250 Doug Evans <xdje42@gmail.com>
2251
2252 PR guile/17146
2253 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2254 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2255 * configure.ac: Try to use guild to compile an scm file, if it fails
2256 then disable guile support.
2257 * configure: Regenerate.
2258 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2259 GUILE_FILE_LIST.
2260 (GUILE_COMPILED_FILES): New variable.
2261 (GUILE_FILES) Update.
2262 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2263 (stamp-guile): Compile scm files.
2264 * guile/guile.c (boot_guile_support): New function.
2265 (standard_throw_args_p): New function.
2266 (print_standard_throw_error, print_throw_error): New functions.
2267 (handle_boot_error): New function.
2268 (initialize_scheme_side): Rewrite to call boot_guile_support.
2269 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2270 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2271
186fcde0
DE
22722014-07-26 Ludovic Courtès <ludo@gnu.org>
2273 Doug Evans <xdje42@gmail.com>
2274
2275 PR guile/17146
2276 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2277 * guile/lib/gdb/support.scm: New file.
2278 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2279 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2280 All uses updated.
2281 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2282 All uses updated.
2283 (%assert-type): Ditto, and renamed to assert-type.
2284 (%exception-print-style): Delete.
2285
4df42755
DE
22862014-07-26 Doug Evans <xdje42@gmail.com>
2287
2288 PR build/17105
2289 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2290 * configure: Regenerate.
2291 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2292 PYTHON_FILES.
2293 (PYTHON_FILES): New variable.
2294 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2295 (GUILE_FILES): New variable.
2296 (stamp-python, install-python, uninstall-python): Handle empty
2297 file list.
2298 (stamp-guile, install-guile, uninstall-guile): Ditto.
2299
ee7333ae
DE
23002014-07-26 Doug Evans <xdje42@gmail.com>
2301
2302 PR guile/17177
2303 * guile/lib/gdb.scm (pretty-printers): Export.
2304 (set-pretty-printers!): Export.
2305 * guile/lib/gdb/printing.scm (gdb module): Update.
2306 (prepend-pretty-printer!, append-pretty-printer!): Update.
2307 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2308 (pretty_printer_list_var): Delete.
2309 (pretty_printer_list): New static global.
2310 (gdbscm_pretty_printers): New function.
2311 (gdbscm_set_pretty_printers_x): New function.
2312 (ppscm_find_pretty_printer_from_gdb): Update.
2313 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2314 (gdbscm_initialize_pretty_printers): Update.
2315
74edf516
DE
23162014-07-26 Doug Evans <xdje42@gmail.com>
2317
2318 PR 17185
2319 * configure.ac: Add check for header gc/gc.h.
2320 Add check for function setenv.
2321 * configure: Regenerate.
2322 * config.in: Regenerate.
2323 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2324
d54398a7
MR
23252014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2326
2327 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2328 variation in gdbarch matching.
2329
ab16fce8
TT
23302014-07-25 Tom Tromey <tromey@redhat.com>
2331
2332 * exec.c (using_exec_ops): Remove.
2333 (exec_close_1): Update. Remove extraneous block, reindent.
2334 (add_target_sections): Use target_is_pushed.
2335
88056fbb
PA
23362014-07-25 Pedro Alves <palves@redhat.com>
2337
2338 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2339 * monitor.c (monitor_create_inferior): Likewise.
2340 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2341 * remote-sim.c (gdbsim_create_inferior): Likewise.
2342 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2343 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2344 * windows-nat.c (do_initial_windows_stuff): Likewise.
2345
70509625
PA
23462014-07-25 Pedro Alves <palves@redhat.com>
2347
2348 * NEWS: Mention signal passing and "signal" command changes.
2349 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2350 comment.
2351 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2352 call.
2353 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2354 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2355 (jump_command): Adjust clear_proceed_status call.
2356 (signal_command): Warn if other thread that are resumed have
2357 signals that will be delivered. Adjust clear_proceed_status call.
2358 (until_next_command, finish_command)
2359 (proceed_after_attach_callback, attach_command_post_wait)
2360 (attach_command): Adjust clear_proceed_status call.
2361 * infrun.c (proceed_after_vfork_done): Likewise.
2362 (proceed_after_attach_callback): Adjust comment.
2363 (clear_proceed_status_thread): Clear stop_signal if not in pass
2364 state.
2365 (clear_proceed_status_callback): Delete.
2366 (clear_proceed_status): New 'step' parameter. Only clear the
2367 proceed status of threads the command being prepared is about to
2368 resume.
2369 (proceed): If passed in an explicit signal, override stop_signal
2370 with it. Don't pass the last stop signal to the thread we're
2371 resuming.
2372 (init_wait_for_inferior): Adjust clear_proceed_status call.
2373 (switch_back_to_stepped_thread): Clear the signal if it should not
2374 be passed.
2375 * infrun.h (clear_proceed_status): New 'step' parameter.
2376 (user_visible_resume_ptid): Add comment.
2377 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2378 signal is in pass state.
2379 * remote.c (append_pending_thread_resumptions): Likewise.
2380 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2381
d8be2939
TT
23822014-07-25 Tom Tromey <tromey@redhat.com>
2383
2384 * target.h (target_stopped_data_address)
2385 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2386 parentheses.
2387
7d0d9d2b
PL
23882014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2389
2390 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2391 comments.
2392 (avr_pointer_to_address): Likewise.
2393
e9e7f724
TT
23942014-07-24 Tom Tromey <tromey@redhat.com>
2395
2396 * monitor.c (compile_pattern): Update.
2397 * target.h (struct target_ops) <to_shortname, to_longname,
2398 to_doc>: Now const.
2399
1947513d
TT
24002014-07-24 Tom Tromey <tromey@redhat.com>
2401
2402 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2403 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2404 (add_info_alias, add_com): Make "doc" const.
2405 (print_doc_line): Make "str" const.
2406 (delete_cmd): Update.
2407 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2408 (print_doc_line): Update.
2409 * cli/cli-script.c (document_command): Update.
2410 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2411 (add_com, add_info, add_info_alias): Update.
2412 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2413 * python/py-cmd.c (cmdpy_destroyer): Update.
2414
64e61d29
TT
24152014-07-24 Tom Tromey <tromey@redhat.com>
2416
2417 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2418 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2419 (help_cmd_list): Constify.
2420 (lookup_cmd): Update.
2421 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2422 const.
2423 (help_cmd_list, apropos_cmd): Update.
2424 * cli/cli-script.c (show_user): Update.
2425 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2426 * cli/cli-setshow.h (cmd_show_list): Update.
2427 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2428 (cmd_show_list): Update.
2429 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2430 * python/py-cmd.c (cmdpy_destroyer): Update.
2431
429e55ea
TT
24322014-07-24 Tom Tromey <tromey@redhat.com>
2433
2434 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2435 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2436 const.
2437 * command.h (deprecate_cmd): Update.
2438 * maint.c (maintenance_do_deprecate): Add casts.
2439
64669f3b
TT
24402014-07-24 Tom Tromey <tromey@redhat.com>
2441
2442 * cli/cli-decode.c (help_cmd): Make parameter "const".
2443 * cli/cli-decode.h (help_cmd): Update.
2444
d3d3328b
TT
24452014-07-24 Tom Tromey <tromey@redhat.com>
2446
2447 * stack.c (up_silently_base, down_silently_base): Make argument
2448 const.
2449
414842dc
TT
24502014-07-24 Tom Tromey <tromey@redhat.com>
2451
2452 * solib.c (solib_add): Make "pattern" const.
2453 * solib.h (solib_add): Update.
2454
baa336ce
TT
24552014-07-24 Tom Tromey <tromey@redhat.com>
2456
2457 * remote.c (remote_serial_open, print_packet, putpkt)
2458 (putpkt_binary): Constify.
2459 * remote.h (putpkt): Update.
2460
5a19e2d0
TT
24612014-07-24 Tom Tromey <tromey@redhat.com>
2462
2463 * monitor.c (monitor_open): Make "args" const.
2464 * monitor.h (monitor_open): Update.
2465
fc4baa5e
TT
24662014-07-24 Tom Tromey <tromey@redhat.com>
2467
2468 * maint.c (match_bfd_flags): Make "string" const.
2469 (print_bfd_section_info): Remove casts.
2470 (print_objfile_section_info): Make "string" const.
2471
0d5f0dbe
TT
24722014-07-24 Tom Tromey <tromey@redhat.com>
2473
2474 * inf-child.c (inf_child_open_target): Make "arg" const.
2475 * inf-child.h (inf_child_open_target): Update.
2476
41c77899
TT
24772014-07-24 Tom Tromey <tromey@redhat.com>
2478
2479 * environ.c (unset_in_environ): Make "var" const.
2480 * environ.h (unset_in_environ): Update.
2481
93db0d79
TT
24822014-07-24 Tom Tromey <tromey@redhat.com>
2483
2484 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2485 Make "cmd" const.
2486 (scan_filename_with_cleanup): Likewise.
2487 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2488 Make arguments const.
2489 (restore_command): Update.
2490
36d6eb95
PA
24912014-07-24 Pedro Alves <palves@redhat.com>
2492
2493 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2494
8009206a
TT
24952014-07-24 Tom Tromey <tromey@redhat.com>
2496 Gary Benson <gbenson@redhat.com>
2497
2498 * nat/linux-ptrace.c (additional_flags): New global.
2499 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2500 additional_flags; don't check GDBSERVER.
2501 (linux_ptrace_set_additional_flags): New function.
2502 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2503 Declare.
2504 * linux-nat.c (_initialize_linux_nat): Call
2505 linux_ptrace_set_additional_flags.
2506
a7068b60
TT
25072014-07-24 Tom Tromey <tromey@redhat.com>
2508
2509 * make-target-delegates (munge_type, write_debugmethod): New
2510 functions.
2511 (debug_names): New global.
2512 ($TARGET_DEBUG_PRINTER): New global.
2513 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2514 name.
2515 Write debug methods. Generate init_debug_target.
2516 * target-debug.h: New file.
2517 * target-delegates.c: Rebuild.
2518 * target.c: Include target-debug.h.
2519 (debug_target): Hoist definition.
2520 (target_kill, target_get_section_table, target_memory_map)
2521 (target_flash_erase, target_flash_done, target_detach)
2522 (target_disconnect, target_wait, target_resume)
2523 (target_pass_signals, target_program_signals, target_follow_fork)
2524 (target_mourn_inferior, target_search_memory)
2525 (target_thread_address_space, target_close)
2526 (target_find_new_threads, target_core_of_thread)
2527 (target_verify_memory, target_insert_mask_watchpoint)
2528 (target_remove_mask_watchpoint): Remove targetdebug code.
2529 (debug_to_post_attach, debug_to_prepare_to_store)
2530 (debug_to_files_info, debug_to_insert_breakpoint)
2531 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2532 (debug_to_region_ok_for_hw_watchpoint)
2533 (debug_to_can_accel_watchpoint_condition)
2534 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2535 (debug_to_watchpoint_addr_within_range)
2536 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2537 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2538 (debug_to_terminal_init, debug_to_terminal_inferior)
2539 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2540 (debug_to_terminal_save_ours, debug_to_terminal_info)
2541 (debug_to_load, debug_to_post_startup_inferior)
2542 (debug_to_insert_fork_catchpoint)
2543 (debug_to_remove_fork_catchpoint)
2544 (debug_to_insert_vfork_catchpoint)
2545 (debug_to_remove_vfork_catchpoint)
2546 (debug_to_insert_exec_catchpoint)
2547 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2548 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2549 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2550 (setup_target_debug): Call init_debug_target.
2551 * target.h (TARGET_DEBUG_PRINTER): New macro.
2552 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2553 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2554
2c51604d
GB
25552014-07-24 Gary Benson <gbenson@redhat.com>
2556
2557 * exceptions.h (throw_vfatal): Renamed to...
2558 (throw_vquit): New declaration.
2559 (throw_quit): Likewise.
2560 * exceptions.c (throw_vfatal): Renamed to...
2561 (throw_vquit): New function.
2562 (throw_quit): Likewise.
2563 (throw_error): Call throw_verror rather than throw_it.
2564 * utils.h (vfatal): Removed.
2565 (fatal): Likewise.
2566 * utils.c (vfatal): Removed.
2567 (fatal): Likewise.
2568 (internal_verror): Replaced call to fatal with call to throw_quit.
2569 (quit): Replaced calls to fatal with calls to throw_quit.
2570
34211963
ME
25712014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2572
2573 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2574 target_read_code.
2575
a52b4d3e
ME
25762014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2577
2578 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2579 less than zero in conditional expression.
2580
a8bdc56b
TT
25812014-07-23 Tom Tromey <tromey@redhat.com>
2582
2583 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2584 ($INTRO_PART): Don't match whitespace.
2585 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2586 argument matching.
2587 ($METHOD): Add $METHOD_TRAILER.
2588 (trim): Rewrite.
2589 (scan_target_h): New sub.
2590 Change main loop not to collect state.
2591 * target-delegates.c: Rebuild.
2592
91b52240
GB
25932014-07-23 Gary Benson <gbenson@redhat.com>
2594
2595 * cp-support.c (gdb_demangle): Fix build on systems without
2596 sigaltstack.
2597
45326f6f
JK
25982014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2599
2600 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2601 for reference entry value target data value.
2602
e214cf6c
JK
26032014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2604
2605 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2606 value_available_contents_eq.
2607
bddbbedd
PA
26082014-07-22 Pedro Alves <palves@redhat.com>
2609
2610 * value.c (allocate_optimized_out_value): Don't mark value as
2611 non-lazy.
2612
45c71484
JW
26132014-07-22 Jiong Wang <jiong.wang@arm.com>
2614
2615 * MAINTAINERS (Write After Approval): Update my email address.
2616
9597b22a
DE
26172014-07-20 Doug Evans <dje@google.com>
2618
2619 PR server/17147
2620 * remote.c (putpkt_binary): Add text to error message.
2621
91101fe5
YQ
26222014-07-20 Yao Qi <yao@codesourcery.com>
2623
2624 * eval.c: Remove "Chill" from comments.
2625 * gdbtypes.h: Likewise.
2626 * symtab.h: Likewise.
2627
c9402c95
YQ
26282014-07-20 Yao Qi <yao@codesourcery.com>
2629
2630 * std-operator.def: Update comments to TERNOP_SLICE.
2631
ae8fddda
YQ
26322014-07-20 Yao Qi <yao@codesourcery.com>
2633
2634 * std-operator.def: Remove BINOP_RANGE.
2635 * breakpoint.c (watchpoint_exp_is_const): Update.
2636 * expprint.c (dump_subexp_body_standard): Likewise.
2637 * eval.c (init_array_element): Remove dead code.
2638 (evaluate_subexp_standard): Likewise.
2639
9c816640
YQ
26402014-07-20 Yao Qi <yao@codesourcery.com>
2641
2642 * std-operator.def: Remove BINOP_IN.
2643 * breakpoint.c (watchpoint_exp_is_const): Update.
2644 * eval.c (evaluate_subexp_standard): Likewise.
2645 * expprint.c (dump_subexp_body_standard): Likewise.
2646
164224e9
ME
26472014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2648
2649 * microblaze-tdep.c (microblaze_register_names): Add
2650 the rshr and rslr register names.
2651 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2652 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2653 Use of tdesc_numbered_register. Use of
2654 microblaze_register_g_packet_guesses. Use of
2655 tdesc_use_registers. Use of set_gdbarch_register_type.
2656 (microblaze_register_g_packet_guesses): New.
2657 * microblaze-tdep.h (microblaze_reg_num): Add
2658 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2659 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2660 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2661 * features/microblaze-core.xml: New file.
2662 * features/microblaze-stack-protect.xml: New file.
2663 * features/microblaze-with-stack-protect.c: New file.
2664 * features/microblaze-with-stack-protect.xml: New file.
2665 * features/microblaze.xml: New file.
2666 * features/microblaze.c: New file.
2667 * features/Makefile (microblaze-with-stack-protect): Add
2668 microblaze-with-stack-protect microblaze and microblaze-expedite.
2669 * regformats/microblaze-with-stack-protect.dat: New file.
2670 * regformats/microblaze.dat: New file.
2671 * doc/gdb.texinfo (MicroBlaze Features): Added.
2672
e8b2341c
TT
26732014-07-18 Tom Tromey <tromey@redhat.com>
2674
2675 * exec.c (exec_ops): Now static.
2676 * exec.h (exec_ops): Don't declare.
2677
44e89118
TT
26782014-07-18 Tom Tromey <tromey@redhat.com>
2679
2680 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2681 to find_target_beneath.
2682 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2683 find_target_beneath.
2684 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2685
b0ed115f
TT
26862014-07-18 Tom Tromey <tromey@redhat.com>
2687
2688 PR gdb/17130:
2689 * utils.c (quit): Use target_supports_terminal_ours.
2690 * target.h (target_supports_terminal_ours): Declare.
2691 * target.c (target_supports_delete_record): Don't check
2692 to_delete_record against NULL.
2693 (target_supports_terminal_ours): New function.
2694
e75fdfca
TT
26952014-07-18 Tom Tromey <tromey@redhat.com>
2696
2697 PR gdb/17130:
2698 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2699 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2700 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2701 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2702 * windows-nat.c (windows_xfer_partial): Always delegate.
2703 * record-btrace.c (record_btrace_xfer_partial): Simplify
2704 delegation.
2705 (record_btrace_fetch_registers, record_btrace_store_registers)
2706 (record_btrace_prepare_to_store, record_btrace_resume)
2707 (record_btrace_wait, record_btrace_find_new_threads)
2708 (record_btrace_thread_alive): Likewise.
2709 * procfs.c (procfs_xfer_partial): Always delegate.
2710 * corelow.c (core_xfer_partial): Always delegate.
2711 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2712
83814951
TT
27132014-07-18 Tom Tromey <tromey@redhat.com>
2714
2715 * exec.c (exec_make_note_section): Move earlier.
2716
b8b8facf
DE
27172014-07-17 Doug Evans <dje@google.com>
2718
74b49205 2719 PR gdb/17170
b8b8facf
DE
2720 * maint.c (count_symtabs_and_blocks): Handle NULL
2721 current_program_space.
2722 (report_command_stats): Check global enabled flag in addition to
2723 recorded enabled flag.
2724 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2725
69ff6be5
PA
27262014-07-16 Pedro Alves <palves@redhat.com>
2727
2728 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2729
252db1b5
TT
27302014-07-16 Tom Tromey <tromey@redhat.com>
2731
2732 * target.h (struct target_ops) <to_delete_record>: Reformat
2733 comment.
2734
a432721e
TT
27352014-07-16 Tom Tromey <tromey@redhat.com>
2736
2737 * target-delegates.c: Rebuild.
2738
487d9753
PL
27392014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2740
2741 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2742 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2743 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2744 (avr_pointer_to_address): Likewise.
2745 (avr_address_class_type_flags): New function.
2746 (avr_address_class_type_flags_to_name): Likewise.
2747 (avr_address_class_name_to_type_flags): Likewise.
2748 (avr_gdbarch_init): Set address_class_type_flags,
2749 address_class_type_flags_to_name and
2750 address_class_name_to_type_flags.
2751
57745c90
PA
27522014-07-15 Pedro Alves <palves@redhat.com>
2753
2754 * linux-nat.c (kill_callback): Save errno and work with saved
2755 copy.
2756
2d40be18
SM
27572014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2758
2759 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2760
572f6555
EBM
27612014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2762
2763 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2764 breakpoint support correctly.
2765
cc1c52ad
PA
27662014-07-14 Pedro Alves <palves@redhat.com>
2767
2768 * utils.c (prompt_for_continue): Call target_terminal_ours.
2769
1e973570
PA
27702014-07-14 Pedro Alves <palves@redhat.com>
2771
2772 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2773 catch_errors. Don't re-enable stdin or notify observers where,
2774 and rethrow error.
2775 (fetch_inferior_event_wrapper): Delete.
2776
93d6eb10
PA
27772014-07-14 Pedro Alves <palves@redhat.com>
2778
2779 PR gdb/17072
2780 * top.c: Include "inf-loop.h".
2781 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2782 field.
2783 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2784 was async before.
2785 (gdb_readline_wrapper): Store whether the target is async, and
2786 make it sync.
2787
0017922d
PA
27882014-07-14 Pedro Alves <palves@redhat.com>
2789
2790 PR gdb/17072
2791 * top.c (gdb_readline_wrapper_line): Tweak comment.
2792 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2793 the input handler callback.
2794
94696ad3
PA
27952014-07-14 Pedro Alves <palves@redhat.com>
2796
2797 PR gdb/17072
2798 * main.c: Include event-top.h.
2799 (handle_command_errors): New function.
2800 (catch_command_errors, catch_command_errors_const): Use it.
2801
9d1e69a2
PA
28022014-07-14 Pedro Alves <palves@redhat.com>
2803
2804 * exceptions.c (catch_command_errors, catch_command_errors_const):
2805 Moved to main.c.
2806 * exceptions.h (catch_command_errors_ftype)
2807 (catch_command_errors_const_ftype): Moved to main.c.
2808 (catch_command_errors, catch_command_errors_const): Delete
2809 declarations.
2810 * main.c (catch_command_errors_ftype)
2811 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2812 (catch_command_errors, catch_command_errors_const)): Moved here
2813 from exceptions.c and make static.
2814
feefc97b
PA
28152014-07-14 Pedro Alves <palves@redhat.com>
2816
2817 * exceptions.c (print_any_exception): Delete.
2818 (catch_exceptions_with_msg): Use exception_print instead of
2819 print_any_exception.
2820 (catch_errors): Use exception_fprintf instead of
2821 print_any_exception.
2822 (catch_command_errors, catch_command_errors_const): Use
2823 exception_print instead of print_any_exception.
2824
c933f875
PA
28252014-07-14 Pedro Alves <palves@redhat.com>
2826
2827 * infcall.c (run_inferior_call): Set 'sync_execution' while
2828 running the inferior call.
2829
feb6f816
PA
28302014-07-14 Pedro Alves <palves@redhat.com>
2831
2832 * value.c (value_contents_equal): Delete function.
2833 * value.h (value_contents_equal): Delete declaration.
2834
d98b7a16
TT
28352014-07-14 Tom Tromey <tromey@redhat.com>
2836
2837 PR exp/17106:
2838 * gdbtypes.c (is_dynamic_type_internal): New function, from
2839 is_dynamic_type.
2840 (is_dynamic_type): Rewrite.
2841 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2842 (resolve_dynamic_struct): Likewise.
2843 (resolve_dynamic_type_internal): New function, from
2844 resolve_dynamic_type.
2845 (resolve_dynamic_type): Rewrite.
2846
548740d6
TT
28472014-07-14 Tom Tromey <tromey@redhat.com>
2848
2849 * target.c (target_require_runnable): Also check record_stratum.
2850 Update comment.
2851
808f7ab1
YQ
28522014-07-11 Yao Qi <yao@codesourcery.com>
2853
2854 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2855 thumb_instruction_restores_sp return true.
2856
540314bd
YQ
28572014-07-11 Yao Qi <yao@codesourcery.com>
2858
2859 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2860 (thumb_in_function_epilogue_p): Call
2861 thumb_instruction_restores_sp.
2862
1db01f22
YQ
28632014-07-11 Yao Qi <yao@codesourcery.com>
2864
2865 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2866 'add sp, #imm'.
2867 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2868
3116063b
GB
28692014-07-11 Gary Benson <gbenson@redhat.com>
2870
2871 * amd64-linux-nat.c (gdbcore.h): Remove include.
2872 (regset.h): Likewise.
2873 (nat/linux-btrace.h): Likewise.
2874 (btrace.h): Likewise.
2875 (gdb_assert.h): Likewise.
2876 (string.h): Likewise.
2877 (sys/uio.h): Likewise.
2878 (sys/debugreg.h): Likewise.
2879 (sys/syscall.h): Likewise.
2880 (sys/procfs.h): Likewise.
2881 (sys/user.h): Likewise.
2882 (asm/ptrace.h): Likewise.
2883 (i386-nat.h): Likewise.
2884 * i386-linux-nat.c (i386-nat.h): Likewise.
2885 (regset.h): Likewise.
2886 (target.h): Likewise.
2887 (linux-nat.h): Likewise.
2888 (nat/linux-btrace.h): Likewise.
2889 (btrace.h): Likewise.
2890 (gdb_assert.h): Likewise.
2891 (string.h): Likewise.
2892 (sys/uio.h): Likewise.
2893 (sys/user.h): Likewise.
2894 (sys/procfs.h): Likewise.
2895 (sys/reg.h): Likewise.
2896 (sys/debugreg.h): Likewise.
2897 (ORIG_EAX): Remove definition.
2898
040baaf6
GB
28992014-07-11 Gary Benson <gbenson@redhat.com>
2900
2901 * i386-linux-nat.h: New file.
2902 * x86-linux-nat.h: Likewise.
2903 * x86-linux-nat.c: Likewise.
2904 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2905 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2906 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2907 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2908 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2909 (PTRACE_SETREGSET): Likewise.
2910 (arch_lwp_info): Now in x86-linux-nat.c.
2911 (have_ptrace_getregset): Now in x86-linux-nat.h.
2912 (x86_linux_dr_get): Now in x86-linux-nat.c.
2913 (x86_linux_dr_set): Likewise.
2914 (x86_linux_dr_get_addr): Likewise.
2915 (x86_linux_dr_get_control): Likewise.
2916 (x86_linux_dr_get_status): Likewise.
2917 (update_debug_registers_callback): Likewise.
2918 (x86_linux_dr_set_control): Likewise.
2919 (x86_linux_dr_set_addr): Likewise.
2920 (x86_linux_prepare_to_resume): Likewise.
2921 (x86_linux_new_thread): Likewise.
2922 (x86_linux_new_fork): Likewise.
2923 (x86_linux_get_thread_area): Likewise.
2924 (super_post_startup_inferior): Likewise.
2925 (x86_linux_child_post_startup_inferior): Likewise.
2926 (AMD64_LINUX_USER64_CS): Likewise.
2927 (AMD64_LINUX_X32_DS): Likewise.
2928 (x86_linux_read_description): Likewise.
2929 (x86_linux_enable_btrace): Likewise.
2930 (x86_linux_disable_btrace): Likewise.
2931 (x86_linux_teardown_btrace): Likewise.
2932 (x86_linux_read_btrace): Likewise.
2933 (x86_linux_create_target): Likewise.
2934 (x86_linux_add_target): Likewise.
2935 * i386-linux-nat.c (x86-linux-nat.h): New include.
2936 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2937 (PTRACE_SETREGSET): Likewise.
2938 (arch_lwp_info): Now in x86-linux-nat.c.
2939 (have_ptrace_getregset): Now in x86-linux-nat.h.
2940 (x86_linux_dr_get): Now in x86-linux-nat.c.
2941 (x86_linux_dr_set): Likewise.
2942 (x86_linux_dr_get_addr): Likewise.
2943 (x86_linux_dr_get_control): Likewise.
2944 (x86_linux_dr_get_status): Likewise.
2945 (update_debug_registers_callback): Likewise.
2946 (x86_linux_dr_set_control): Likewise.
2947 (x86_linux_dr_set_addr): Likewise.
2948 (x86_linux_prepare_to_resume): Likewise.
2949 (x86_linux_new_thread): Likewise.
2950 (x86_linux_new_fork): Likewise.
2951 (x86_linux_get_thread_area): Likewise.
2952 (super_post_startup_inferior): Likewise.
2953 (x86_linux_child_post_startup_inferior): Likewise.
2954 (AMD64_LINUX_USER64_CS): Likewise.
2955 (AMD64_LINUX_X32_DS): Likewise.
2956 (x86_linux_read_description): Likewise.
2957 (x86_linux_enable_btrace): Likewise.
2958 (x86_linux_disable_btrace): Likewise.
2959 (x86_linux_teardown_btrace): Likewise.
2960 (x86_linux_read_btrace): Likewise.
2961 (x86_linux_create_target): Likewise.
2962 (x86_linux_add_target): Likewise.
2963
1aa7e42c
GB
29642014-07-11 Gary Benson <gbenson@redhat.com>
2965
2966 * amd64-linux-nat.c: Comment and whitespace changes.
2967 * i386-linux-nat.c: Comment and whitespace changes.
2968
c1e246a0
GB
29692014-07-11 Gary Benson <gbenson@redhat.com>
2970
2971 * amd64-linux-nat.c (x86_linux_create_target): New function.
2972 (x86_linux_add_target): Likewise.
2973 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2974 * i386-linux-nat.c (x86_linux_create_target): New function.
2975 (x86_linux_add_target): Likewise.
2976 (_initialize_i386_linux_nat): Delegate to the above new functions.
2977
8c420b8d
GB
29782014-07-11 Gary Benson <gbenson@redhat.com>
2979
2980 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2981 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2982 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2983 (ps_get_thread_area): Delegate to the above.
2984
cb1da100
GB
29852014-07-11 Gary Benson <gbenson@redhat.com>
2986
2987 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2988 x86_linux_read_description. All uses updated. amd64-specific
2989 code conditionalized. Conditionalized i386-specific code added.
2990 Redundant cast removed.
2991 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2992 x86_linux_read_description. All uses updated. i386-specific
2993 code conditionalized. Conditionalized amd64-specific code added.
2994 One sizeof replaced with the actual type it is describing.
2995
2acf3cd0
GB
29962014-07-11 Gary Benson <gbenson@redhat.com>
2997
2998 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2999 x86_linux_dr_get. All uses updated.
3000 (amd64_linux_dr_set): Renamed to
3001 x86_linux_dr_set. All uses updated.
3002 (amd64_linux_dr_get_addr): Renamed to
3003 x86_linux_dr_get_addr. All uses updated.
3004 (amd64_linux_dr_get_control): Renamed to
3005 x86_linux_dr_get_control. All uses updated.
3006 (amd64_linux_dr_get_status): Renamed to
3007 x86_linux_dr_get_status. All uses updated.
3008 (amd64_linux_dr_set_control): Renamed to
3009 x86_linux_dr_set_control. All uses updated.
3010 (amd64_linux_dr_set_addr): Renamed to
3011 x86_linux_dr_set_addr. All uses updated.
3012 (amd64_linux_prepare_to_resume): Renamed to
3013 x86_linux_prepare_to_resume. All uses updated.
3014 (amd64_linux_new_thread): Renamed to
3015 x86_linux_new_thread. All uses updated.
3016 (amd64_linux_new_fork): Renamed to
3017 x86_linux_new_fork. All uses updated.
3018 (amd64_linux_child_post_startup_inferior): Renamed to
3019 x86_linux_child_post_startup_inferior. All uses updated.
3020 (amd64_linux_enable_btrace): Renamed to
3021 x86_linux_enable_btrace. All uses updated.
3022 (amd64_linux_disable_btrace): Renamed to
3023 x86_linux_disable_btrace. All uses updated.
3024 (amd64_linux_teardown_btrace): Renamed to
3025 x86_linux_teardown_btrace. All uses updated.
3026 (amd64_linux_read_btrace): Renamed to
3027 x86_linux_read_btrace. All uses updated.
3028 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
3029 x86_linux_dr_get. All uses updated.
3030 (i386_linux_dr_set): Renamed to
3031 x86_linux_dr_set. All uses updated.
3032 (i386_linux_dr_get_addr): Renamed to
3033 x86_linux_dr_get_addr. All uses updated.
3034 (i386_linux_dr_get_control): Renamed to
3035 x86_linux_dr_get_control. All uses updated.
3036 (i386_linux_dr_get_status): Renamed to
3037 x86_linux_dr_get_status. All uses updated.
3038 (i386_linux_dr_set_control): Renamed to
3039 x86_linux_dr_set_control. All uses updated.
3040 (i386_linux_dr_set_addr): Renamed to
3041 x86_linux_dr_set_addr. All uses updated.
3042 (i386_linux_prepare_to_resume): Renamed to
3043 x86_linux_prepare_to_resume. All uses updated.
3044 (i386_linux_new_thread): Renamed to
3045 x86_linux_new_thread. All uses updated.
3046 (i386_linux_new_fork): Renamed to
3047 x86_linux_new_fork. All uses updated.
3048 (i386_linux_child_post_startup_inferior): Renamed to
3049 x86_linux_child_post_startup_inferior. All uses updated.
3050 (i386_linux_enable_btrace): Renamed to
3051 x86_linux_enable_btrace. All uses updated.
3052 (i386_linux_disable_btrace): Renamed to
3053 x86_linux_disable_btrace. All uses updated.
3054 (i386_linux_teardown_btrace): Renamed to
3055 x86_linux_teardown_btrace. All uses updated.
3056 (i386_linux_read_btrace): Renamed to
3057 x86_linux_read_btrace. All uses updated.
3058
b9c1d481
AS
30592014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3060
3061 * remote.c (extended_remote_post_attach): New function.
3062 (init_extended_remote_ops): Install it as to_post_attach method.
3063
7180e04a
PA
30642014-07-09 Pedro Alves <palves@redhat.com>
3065
3066 * infcmd.c (attach_command_post_wait): Don't call
3067 target_terminal_inferior here.
3068 (attach_command): Call it here instead.
3069
9a9a7608
AB
30702014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
3071
3072 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
3073 field.
3074 * c-varobj.c (c_is_path_expr_parent): New function, moved core
3075 from varobj.c, with additional checks.
3076 (c_varobj_ops): Fill in is_path_expr_parent field.
3077 (cplus_varobj_ops): Fill in is_path_expr_parent field.
3078 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
3079 field.
3080 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
3081 ops method.
3082 (varobj_default_is_path_expr_parent): New function.
3083 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
3084 (varobj_default_is_path_expr_parent): Declare new function.
3085
1f267ae3
MM
30862014-07-08 Markus Metzger <markus.t.metzger@intel.com>
3087
3088 * infcmd.c (finish_backward): Turn internal error into normal error.
3089
b2ee242b
PA
30902014-07-07 Pedro Alves <palves@redhat.com>
3091
8a869bca 3092 PR gdb/17096
b2ee242b
PA
3093 * remote.c (async_handle_remote_sigint)
3094 (async_handle_remote_sigint_twice): Call
3095 gdb_call_async_signal_handler instead of
3096 mark_async_signal_handler.
3097
38e229b2
TT
30982014-07-07 Tom Tromey <tromey@redhat.com>
3099
3100 * target-delegates.c: Rebuild.
3101 * target.c (target_info_record): Remove.
3102 * record.c (info_record_command): Unconditionally call
3103 to_info_record.
3104 * target.h (struct target_ops) <to_info_record>: Use
3105 TARGET_DEFAULT_IGNORE.
3106 (target_info_record): Remove.
3107
f0f9ff95
TT
31082014-07-07 Tom Tromey <tromey@redhat.com>
3109
3110 * target.h (struct target_ops) <to_get_thread_local_address>: Use
3111 TARGET_DEFAULT_NORETURN.
3112 * target.c (generic_tls_error): New function.
3113 (target_translate_tls_address): Don't search target stack.
3114 * target-delegates.c: Rebuild.
3115 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
3116 stack.
3117 * linux-thread-db.c (thread_db_get_thread_local_address):
3118 Unconditionally call beneath target.
3119
4a5be5ee
MK
31202014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
3121
3122 * cli/cli-logging.c (pop_output_files): Assign targerr to
3123 gdb_stdtargerr.
3124
92c3b204
AB
31252014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * MAINTAINERS (Write After Approval): Update my email address.
3128
9b11e3a7
GB
31292014-07-02 Gary Benson <gbenson@redhat.com>
3130
3131 * proc-service.c (ps_xfer_memory): Update comment.
3132 (ps_pstop): Remove unused function.
3133 (ps_pcontinue): Likewise.
3134 (ps_lstop): Likewise.
3135 (ps_lcontinue): Likewise.
3136 (ps_lgetxregsize): Likewise.
3137 (ps_lgetxregs): Likewise.
3138 (ps_lsetxregs): Likewise.
3139 (ps_plog): Likewise.
3140 (ps_ptread): Likewise.
3141 (ps_ptwrite): Likewise.
3142
cf363f18
MW
31432014-07-01 Mark Wielaard <mjw@redhat.com>
3144
3145 * dwarf2read.c (add_array_cv_type): New function.
3146 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3147 (read_tag_volatile_type): Likewise.
3148
82ae6c8d
TT
31492014-07-01 Tom Tromey <tromey@redhat.com>
3150
3151 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3152 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3153 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3154 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3155 * command.h (cmd_cfunc_ftype): Move earlier.
3156 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3157 (add_com, add_info): Use cmd_cfunc_ftype.
3158
96142726
TT
31592014-06-30 Tom Tromey <tromey@redhat.com>
3160
3161 * symtab.c (operator_chars): Make parameters and return type
3162 const.
3163 (file_matches): Make "files" const.
3164 (struct search_symbols_data) <files>: Now const.
3165 (search_symbols): Make "regexp" and "files" parameters const.
3166 Update.
3167 (symtab_symbol_info): Remove cast.
3168 (rbreak_command): Update.
3169 * symtab.h (search_symbols): Update.
3170
b67a2c6f
YQ
31712014-06-27 Yao Qi <yao@codesourcery.com>
3172
3173 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3174 Change parameter type to 'struct thread_info *'. Caller
3175 updated.
3176 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3177 Update declaration.
3178 * dummy-frame.c (struct dummy_frame_id): New.
3179 (dummy_frame_id_eq): New function.
3180 (struct dummy_frame) <id>: Change its type to 'struct
3181 dummy_frame_id'.
3182 (dummy_frame_push): Add parameter ptid and save it in
3183 dummy_frame_id.
3184 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3185 inferior_ptid.
3186 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3187 to inferior_ptid.
3188 (lookup_dummy_frame): Change parameter type to 'struct
3189 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3190 instead of frame_id_eq.
3191 (dummy_frame_pop): Add parameter ptid. Callers updated.
3192 Update comments. Compose dummy_frame_id and pass it to
3193 lookup_dummy_frame.
3194 (dummy_frame_discard): Add parameter ptid.
3195 (dummy_frame_sniffer): Compose dummy_frame_id and call
3196 dummy_frame_id_eq instead of frame_id_eq.
3197 (fprint_dummy_frames): Print ptid.
3198 * dummy-frame.h: Remove comments.
3199 (dummy_frame_push): Add ptid in declaration.
3200 (dummy_frame_pop, dummy_frame_discard): Likewise.
3201
5b10184c
TT
32022014-06-26 Tom Tromey <tromey@redhat.com>
3203
3204 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3205 * command.h (error_no_arg): Update.
3206
06900326
TT
32072014-06-26 Tom Tromey <tromey@redhat.com>
3208
3209 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3210 (do_show_command): Make "arg" const.
3211 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3212
c2bcbb1d
TT
32132014-06-26 Tom Tromey <tromey@redhat.com>
3214
3215 * record-full.c (record_full_get_bookmark): Make "args" const.
3216 (record_full_goto_bookmark): Make "raw_bookmark" const.
3217 * record.c (record_goto): New function.
3218 (cmd_record_goto): Use it. Now static.
3219 * record.h (record_goto): Declare.
3220 (cmd_record_goto): Remove declaration.
3221 * target-delegates.c: Rebuild.
3222 * target.h (struct target_ops) <to_get_bookmark,
3223 to_goto_bookmark>: Make parameter const.
3224
9cbe5fff
TT
32252014-06-26 Tom Tromey <tromey@redhat.com>
3226
3227 * defs.h (generic_load): Update.
3228 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3229 * monitor.c (monitor_load): Make "args" const.
3230 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3231 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3232 const.
3233 (mips_load): Make "file" const.
3234 * remote-sim.c (gdbsim_load): Make "args" const.
3235 * remote.c (remote_load): Make "name" const.
3236 * symfile.c (generic_load): Make "args" const.
3237 * target-delegates.c: Rebuild.
3238 * target.c (target_load): Make "arg" const.
3239 (debug_to_load): Make "args" const.
3240 * target.h (struct target_ops) <to_load>: Make parameter const.
3241 (target_load): Update.
3242
34a68019
TT
32432014-06-26 Tom Tromey <tromey@redhat.com>
3244
3245 PR symtab/16902:
3246 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3247 (dwarf2_physname, read_partial_die)
3248 (guess_partial_die_structure_name, fixup_partial_die)
3249 (guess_full_die_structure_name, anonymous_struct_prefix)
3250 (dwarf2_name): Use per-BFD obstack.
3251
efc889c1
YQ
32522014-06-26 Yao Qi <yao@codesourcery.com>
3253
3254 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3255 dummyframe and this_id into inner block below.
3256
4395285e
YQ
32572014-06-26 Yao Qi <yao@codesourcery.com>
3258
3259 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3260 with "signal_pass[0]" in the initialization of signal_pass.
3261
aef92902
MM
32622014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3263
3264 * record-btrace.c (record_btrace_generating_corefile)
3265 (record_btrace_prepare_to_generate_core)
3266 (record_btrace_done_generating_core): New.
3267 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3268 (record_btrace_store_registers, record_btrace_prepare_to_store):
3269 Forward request when generating a core file.
3270 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3271 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3272 to_done_generating_core.
3273
5fff78c4
MM
32742014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3275
3276 * target.h (target_ops) <to_prepare_to_generate_core>
3277 <to_done_generating_core>: New.
3278 (target_prepare_to_generate_core, target_done_generating_core): New.
3279 * target.c (target_prepare_to_generate_core)
3280 (target_done_generating_core): New.
3281 * target-delegates.c: Regenerate.
3282 * gcore.c: (write_gcore_file): Rename to ...
3283 (write_gcore_file_1): ...this.
3284 (write_gcore_file): Call target_prepare_to_generate_core
3285 and target_done_generating_core.
3286
1d1f1ccb
MM
32872014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3288
3289 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3290 * gcore.c (write_gcore_file): Free memory returned from
3291 make_corefile_notes.
3292 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3293 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3294
3343ef86
YQ
32952014-06-24 Yao Qi <yao@codesourcery.com>
3296
3297 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3298 (arm_linux_init_abi): Set skip_trampoline_code with
3299 gdbarch_skip_trampoline_code instead of
3300 find_solib_trampoline_target.
3301
18d18ac8
YQ
33022014-06-24 Yao Qi <yao@codesourcery.com>
3303
3304 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3305 arm_skip_bx_reg returns non-zero.
3306
80d8d390
YQ
33072014-06-24 Yao Qi <yao@codesourcery.com>
3308
3309 * arm-tdep.c (arm_skip_bx_reg): New function.
3310 (arm_skip_stub): Call arm_skip_bx_reg.
3311
6a18a01c
DB
33122014-06-23 Don Breazeal <donb@codesourcery.com>
3313
3314 * MAINTAINERS: Add myself as write-after-approval maintainer.
3315
8e9db26e
PA
33162014-06-23 Pedro Alves <palves@redhat.com>
3317
3318 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3319 DR_CONTROL before setting DR0..DR3.
3320 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3321 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3322 bits of DR_CONTROL related to the debug register slot being
3323 disabled. If all slots are vacant, clear local slowdown as well,
3324 and assert DR_CONTROL is 0.
3325
70afc5b7
SC
33262014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3327
3328 * python/lib/gdb/command/xmethods.py
3329 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3330 current progspace only if the string "progspace" matches LOCUS_RE.
3331
840ed64d
JK
33322014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3333
3334 Fix --with-system-readline with readline-6.3 patch 5.
3335 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3336 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3337 types.
3338
26f2dc30
TT
33392014-06-20 Tom Tromey <tromey@redhat.com>
3340
3341 * dwarf2read.c (dw2_get_real_path): Use correct type in
3342 OBSTACK_CALLOC.
3343 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3344
125f8a3d
GB
33452014-06-20 Gary Benson <gbenson@redhat.com>
3346
3347 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3348 * common/glibc_thread_db.h: Likewise.
3349 * common/i386-cpuid.h: Likewise.
3350 * common/i386-gcc-cpuid.h: Likewise.
3351 * common/linux-btrace.h: Likewise.
3352 * common/linux-osdata.h: Likewise.
3353 * common/linux-procfs.h: Likewise.
3354 * common/linux-ptrace.h: Likewise.
3355 * common/mips-linux-watch.h: Likewise.
3356 * common/linux-btrace.c: Moved to nat.
3357 * common/linux-osdata.c: Likewise.
3358 * common/linux-procfs.c: Likewise.
3359 * common/linux-ptrace.c: Likewise.
3360 * common/mips-linux-watch.c: Likewise.
3361 * nat/gdb_thread_db.h: Moved from common.
3362 * nat/glibc_thread_db.h: Likewise.
3363 * nat/i386-cpuid.h: Likewise.
3364 * nat/i386-gcc-cpuid.h: Likewise.
3365 * nat/linux-btrace.c: Likewise.
3366 * nat/linux-btrace.h: Likewise.
3367 * nat/linux-osdata.c: Likewise.
3368 * nat/linux-osdata.h: Likewise.
3369 * nat/linux-procfs.c: Likewise.
3370 * nat/linux-procfs.h: Likewise.
3371 * nat/linux-ptrace.c: Likewise.
3372 * nat/linux-ptrace.h: Likewise.
3373 * nat/mips-linux-watch.c: Likewise.
3374 * nat/mips-linux-watch.h: Likewise.
3375 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3376 (object file files): Reordered.
3377 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3378 of glibc_thread_db.h.
3379
42995dbd
GB
33802014-06-20 Gary Benson <gbenson@redhat.com>
3381
3382 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3383 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3384 (i386_dr_low): Likewise.
3385 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3386 (i386_dr_low_set_addr): Likewise.
3387 (i386_dr_low_get_addr): Likewise.
3388 (i386_dr_low_can_set_control): Likewise.
3389 (i386_dr_low_set_control): Likewise.
3390 (i386_dr_low_get_control): Likewise.
3391 (i386_dr_low_get_status): Likewise.
3392 (i386_get_debug_register_length): Likewise.
3393 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3394 (i386_dr_low): Likewise.
3395 * nat/i386-dregs.c (i386-low.h): Remove include.
3396 (i386-nat.h): Likewise.
3397 (nat/i386-dregs.h): New include.
3398 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3399 (i386_dr_low_set_addr): Likewise.
3400 (i386_dr_low_get_addr): Likewise.
3401 (i386_dr_low_can_set_control): Likewise.
3402 (i386_dr_low_set_control): Likewise.
3403 (i386_dr_low_get_control): Likewise.
3404 (i386_dr_low_get_status): Likewise.
3405 (i386_get_debug_register_length): Likewise.
3406 (debug_hw_points): Likewise.
3407
3ed9baed
IB
34082014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3409
3410 * Makefile.in (SFILES): Add d-exp.y.
3411 (YYFILES): Add d-exp.c.
3412 (YYOBJ): Add d-exp.o.
3413 (local-maintainer-clean): Delete d-exp.c.
3414 * d-exp.y: New file.
3415 * d-lang.h (d_parse): New declaration.
3416 (d_error): New declaration.
3417 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3418 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3419 PREC_ORDER operators.
3420 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3421
78c164b0
YQ
34222014-06-19 Yao Qi <yao@codesourcery.com>
3423
3424 * gdbthread.h (any_running): Remove the declaration.
3425 * thread.c (any_running): Remove.
3426
f6e29b6e
YQ
34272014-06-19 Yao Qi <yao@codesourcery.com>
3428
3429 * gdbthread.h (struct thread_info) <state>: Change its type to
3430 'enum thread_state'. Update comments.
3431
034f788c
PA
34322014-06-19 Pedro Alves <palves@redhat.com>
3433
3434 * gdbthread.h (ALL_THREADS): Delete.
3435 (ALL_NON_EXITED_THREADS): New macro.
3436 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3437 instead of ALL_THREADS.
3438 * infrun.c (find_thread_needs_step_over)
3439 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3440 instead of ALL_THREADS.
3441 * record-btrace.c (record_btrace_open)
3442 (record_btrace_stop_recording, record_btrace_close)
3443 (record_btrace_is_replaying, record_btrace_resume)
3444 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3445 * remote.c (append_pending_thread_resumptions): Likewise.
3446 * thread.c (thread_apply_all_command): Likewise.
3447
46e33252
GB
34482014-06-19 Gary Benson <gbenson@redhat.com>
3449
3450 * i386-nat.c (i386_stopped_by_watchpoint):
3451 Use i386_dr_stopped_by_watchpoint.
3452 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3453 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3454
3a8ee006
GB
34552014-06-19 Gary Benson <gbenson@redhat.com>
3456
3457 * nat/i386-dregs.c: New file.
3458 * Makefile.in (i386-dregs.o): New rule.
3459 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3460 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3461 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3462 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3463 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3464 * config/i386/go32.mh (NATDEPFILES): Likewise.
3465 * config/i386/linux.mh (NATDEPFILES): Likewise.
3466 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3467 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3468 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3469 * i386-nat.h (debug_hw_points): New declaration.
3470 * i386-nat.c (breakpoint.h): Remove include.
3471 (command.h): Likewise.
3472 (target.h): Likewise.
3473 (gdb_assert.h): Likewise.
3474 (debug_hw_points): Made nonstatic.
3475 (debug_printf): Now in i386-dregs.c.
3476 (TARGET_HAS_DR_LEN_8): Likewise.
3477 (DR_CONTROL_SHIFT): Likewise.
3478 (DR_CONTROL_SIZE): Likewise.
3479 (DR_RW_EXECUTE): Likewise.
3480 (DR_RW_WRITE): Likewise.
3481 (DR_RW_READ): Likewise.
3482 (DR_RW_IORW): Likewise.
3483 (DR_LEN_1): Likewise.
3484 (DR_LEN_2): Likewise.
3485 (DR_LEN_4): Likewise.
3486 (DR_LEN_8): Likewise.
3487 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3488 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3489 (DR_ENABLE_SIZE): Likewise.
3490 (DR_LOCAL_SLOWDOWN): Likewise.
3491 (DR_GLOBAL_SLOWDOWN): Likewise.
3492 (DR_CONTROL_RESERVED): Likewise.
3493 (I386_DR_CONTROL_MASK): Likewise.
3494 (I386_DR_VACANT): Likewise.
3495 (I386_DR_LOCAL_ENABLE): Likewise.
3496 (I386_DR_GLOBAL_ENABLE): Likewise.
3497 (I386_DR_DISABLE): Likewise.
3498 (I386_DR_SET_RW_LEN): Likewise.
3499 (I386_DR_GET_RW_LEN): Likewise.
3500 (I386_DR_WATCH_HIT): Likewise.
3501 (i386_wp_op_t): Likewise.
3502 (i386_show_dr): Likewise.
3503 (i386_length_and_rw_bits): Likewise.
3504 (i386_insert_aligned_watchpoint): Likewise.
3505 (i386_remove_aligned_watchpoint): Likewise.
3506 (i386_handle_nonaligned_watchpoint): Likewise.
3507 (i386_update_inferior_debug_regs): Likewise.
3508 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3509 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3510 (i386_region_ok_for_watchpoint):
3511 Use i386_dr_region_ok_for_watchpoint.
3512 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3513
322a8e06
GB
35142014-06-19 Gary Benson <gbenson@redhat.com>
3515
3516 * i386-nat.c (i386_insert_hw_breakpoint): Use
3517 i386_insert_watchpoint.
3518 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3519
8f26655c
GB
35202014-06-19 Gary Benson <gbenson@redhat.com>
3521
3522 * i386-nat.c (i386_dr_show): Renamed to
3523 i386_show_dr and made static. All uses updated.
3524 (i386_dr_length_and_rw_bits): Renamed to
3525 i386_length_and_rw_bits and made static.
3526 All uses updated.
3527 (i386_dr_insert_aligned_watchpoint): Renamed to
3528 i386_insert_aligned_watchpoint and made static.
3529 All uses updated.
3530 (i386_dr_remove_aligned_watchpoint): Renamed to
3531 i386_remove_aligned_watchpoint and made static.
3532 All uses updated.
3533 (i386_dr_update_inferior_debug_regs): Renamed to
3534 i386_update_inferior_debug_regs and made static.
3535 All uses updated.
3536 * nat/i386-dregs.h (i386_dr_show): Removed.
3537 (i386_dr_length_and_rw_bits): Likewise.
3538 (i386_dr_insert_aligned_watchpoint): Likewise.
3539 (i386_dr_remove_aligned_watchpoint): Likewise.
3540 (i386_dr_update_inferior_debug_regs): Likewise.
3541
992c7d70
GB
35422014-06-19 Gary Benson <gbenson@redhat.com>
3543
3544 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3545 * configure: Regenerate.
3546 * config.in: Likewise.
3547 * main.c (signal.h): New include.
3548 (setup_alternate_signal_stack): New function.
3549 (captured_main): Call the above.
3550 * cp-support.c (signal.h): New include.
3551 (catch_demangler_crashes): New flag.
3552 (SIGJMP_BUF): New define.
3553 (SIGSETJMP): Likewise.
3554 (SIGLONGJMP): Likewise.
3555 (gdb_demangle_jmp_buf): New static global.
3556 (gdb_demangle_attempt_core_dump): Likewise.
3557 (gdb_demangle_signal_handler): New function.
3558 (gdb_demangle): If catch_demangler_crashes is set, install the
3559 above signal handler before calling bfd_demangle, and restore
3560 the original signal handler afterwards. Display the offending
3561 symbol and call demangler_warning the first time a segmentation
3562 fault is caught.
3563 (_initialize_cp_support): New maint set/show command.
3564
eae7090b
GB
35652014-06-19 Gary Benson <gbenson@redhat.com>
3566
3567 * utils.h (resource_limit_kind): New enum.
3568 (can_dump_core): New declaration.
3569 (warn_cant_dump_core): Likewise.
3570 (dump_core): Likewise.
3571 * utils.c (dump_core): Made nonstatic. Added new
3572 parameter "limit_kind".
3573 (can_dump_core): Made nonstatic. Moved printing code to...
3574 (warn_cant_dump_core): New function.
3575 (can_dump_core_warn): Likewise.
3576 (internal_vproblem): Replace calls to can_dump_core with
3577 calls to can_dump_core_warn. Supply new argument to each.
3578
57fcfb1b
GB
35792014-06-19 Gary Benson <gbenson@redhat.com>
3580
3581 * utils.h (demangler_vwarning): New declaration.
3582 (demangler_warning): Likewise.
3583 * utils.c (struct internal_problem)
3584 <user_settable_should_quit>: New field.
3585 <user_settable_should_dump_core>: Likewise
3586 (internal_error_problem): Add values for above new fields.
3587 (internal_warning_problem): Likewise.
3588 (demangler_warning_problem): New static global.
3589 (demangler_vwarning): New function.
3590 (demangler_warning): Likewise.
3591 (add_internal_problem_command): Selectively add commands.
3592 (_initialize_utils): New internal problem command.
3593 * maint.c (maintenance_demangler_warning): New function.
3594 (_initialize_maint_cmds): New command.
3595
17a40b44
TT
35962014-06-18 Tom Tromey <tromey@redhat.com>
3597
3598 * f-valprint.c (info_common_command_for_block): Update.
3599 * symtab.h (struct general_symbol_info) <common_block>: Now
3600 const.
3601
346d1dfe
TT
36022014-06-18 Tom Tromey <tromey@redhat.com>
3603
3604 * symtab.h (struct symtab) <blockvector>: Now const.
3605 * ada-lang.c (ada_add_global_exceptions): Update.
3606 * buildsym.c (augment_type_symtab): Update.
3607 * dwarf2read.c (dw2_lookup_symbol): Update.
3608 * jit.c (finalize_symtab): Update.
3609 * jv-lang.c (add_class_symtab_symbol): Update.
3610 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3611 Update.
3612 * objfiles.c (objfile_relocate1): Update.
3613 * psymtab.c (lookup_symbol_aux_psymtabs)
3614 (maintenance_check_psymtabs): Update.
3615 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3616 Update.
3617 * spu-tdep.c (spu_catch_start): Update.
3618 * symmisc.c (dump_symtab_1): Update.
3619 * symtab.c (lookup_global_symbol_from_objfile)
3620 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3621 (basic_lookup_transparent_type_quick)
3622 (basic_lookup_transparent_type, find_pc_sect_symtab)
3623 (find_pc_sect_line, search_symbols): Update.
3624 * block.c (find_block_in_blockvector): Make "bl" const.
3625 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3626 const.
3627 (blockvector_contains_pc): Make "bv" const.
3628 (block_for_pc_sect): Update.
3629 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3630 (blockvector_contains_pc): Update.
3631 * breakpoint.c (resolve_sal_pc): Update.
3632 * inline-frame.c (block_starting_point_at): Update.
3633
1834676b
TT
36342014-06-18 Tom Tromey <tromey@redhat.com>
3635
3636 * completer.c (complete_line): Make "line_buffer" const.
3637 * completer.h (complete_line): Update.
3638
ac1a991b
TT
36392014-06-18 Tom Tromey <tromey@redhat.com>
3640
3641 * symtab.c (add_macro_name): Remove unneeded cast.
3642
5bc98e52
TT
36432014-06-18 Tom Tromey <tromey@redhat.com>
3644
3645 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3646 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3647
8236def8
TT
36482014-06-18 Tom Tromey <tromey@redhat.com>
3649
3650 * probe.c (info_probes_for_ops): Make "arg" const.
3651 * probe.h (info_probes_for_ops): Update.
3652
3977b71f
TT
36532014-06-18 Tom Tromey <tromey@redhat.com>
3654
3655 * varobj.c (varobj_create): Update.
3656 * valops.c (value_of_this): Update.
3657 * tracepoint.c (add_local_symbols, scope_info): Update.
3658 * symtab.h (struct general_symbol_info) <block>: Now const.
3659 * symtab.c (skip_prologue_sal)
3660 (default_make_symbol_completion_list_break_on)
3661 (skip_prologue_using_sal): Update.
3662 * stack.h (iterate_over_block_locals)
3663 (iterate_over_block_local_vars): Update.
3664 * stack.c (print_frame_args): Update.
3665 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3666 parameter const.
3667 (get_selected_block): Make return type const.
3668 * python/py-frame.c (frapy_block): Update.
3669 * python/py-block.c (gdbpy_block_for_pc): Update.
3670 * p-exp.y (%union) <bval>: Now const.
3671 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3672 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3673 * m2-exp.y (%union) <bval>: Now const.
3674 * linespec.c (get_current_search_block): Make return type const.
3675 (create_sals_line_offset, find_label_symbols): Update.
3676 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3677 Update.
3678 (block_starting_point_at): Make "block" const.
3679 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3680 (check_exception_resume): Update.
3681 * guile/scm-frame.c (gdbscm_frame_block): Update.
3682 * guile/scm-block.c (gdbscm_lookup_block): Update.
3683 * frame.h (get_frame_block): Update.
3684 (get_selected_block): Make return type const.
3685 * frame.c (frame_id_inner): Update.
3686 * f-valprint.c (info_common_command_for_block)
3687 (info_common_command): Update.
3688 * dwarf2loc.c (dwarf2_find_location_expression)
3689 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3690 (locexpr_describe_location_piece): Update.
3691 * c-exp.y (%union) <bval>: Now const.
3692 * breakpoint.c (resolve_sal_pc): Update.
3693 * blockframe.c (get_frame_block):Make return type const.
3694 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3695 (block_innermost_frame): Update.
3696 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3697 (block_for_pc, block_for_pc_sect): Update.
3698 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3699 'pblock' const.
3700 (block_for_pc_sect, block_for_pc): Make return type const.
3701 * ax-gdb.c (gen_expr): Update.
3702 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3703 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3704 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3705 (ada_read_var_value): Update.
3706 * ada-exp.y (struct name_info) <block>: Now const.
3707 (%union): Likewise.
3708 (block_lookup): Constify.
3709
b9228891
GB
37102014-06-18 Gary Benson <gbenson@redhat.com>
3711
3712 * nat/i386-dregs.h: New file.
3713 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3714 * i386-nat.h (i386-dregs.h): New include.
3715 (DR_FIRSTADDR): Now in i386-dregs.h.
3716 (DR_LASTADDR): Likewise.
3717 (DR_NADDR): Likewise.
3718 (DR_STATUS): Likewise.
3719 (DR_CONTROL): Likewise.
3720 (i386_debug_reg_state): Likewise.
3721 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3722
a1aa2221
LM
37232014-06-18 Don Breazeal <donb@codesourcery.com>
3724
3725 * breakpoint.c (set_longjmp_breakpoint): Call
3726 momentary_breakpoint_from_master with additional argument.
3727 (set_longjmp_breakpoint_for_call_dummy): Call
3728 momentary_breakpoint_from_master with additional argument.
3729 (set_std_terminate_breakpoint): Call
3730 momentary_breakpoint_from_master with additional argument.
3731 (momentary_breakpoint_from_master): Add argument to function
3732 definition and use it to initialize structure member flag.
74228e77 3733 (clone_momentary_breakpoint): Call
a1aa2221
LM
3734 momentary_breakpoint_from_master with additional argument.
3735 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3736 member flags set in momentary_breakpoint_from_master.
3737
4be83cc2
GB
37382014-06-18 Gary Benson <gbenson@redhat.com>
3739
3740 * i386-nat.c (i386_show_dr): Renamed to
3741 i386_dr_show and made nonstatic. All uses updated.
3742 (i386_length_and_rw_bits): Renamed to
3743 i386_dr_length_and_rw_bits and made nonstatic.
3744 All uses updated.
3745 (i386_insert_aligned_watchpoint): Renamed to
3746 i386_dr_insert_aligned_watchpoint and made nonstatic.
3747 All uses updated.
3748 (i386_remove_aligned_watchpoint): Renamed to
3749 i386_dr_remove_aligned_watchpoint and made nonstatic.
3750 All uses updated.
3751 (i386_update_inferior_debug_regs): Renamed to
3752 i386_dr_update_inferior_debug_regs and made nonstatic.
3753 All uses updated.
3754
131aa0d4
GB
37552014-06-18 Gary Benson <gbenson@redhat.com>
3756
3757 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3758 (i386_dr_low_can_set_control): Likewise.
3759 (i386_dr_low_set_addr): Likewise.
3760 (i386_dr_low_set_control): Likewise.
3761 (i386_dr_low_get_addr): Likewise.
3762 (i386_dr_low_get_status): Likewise.
3763 (i386_dr_low_get_control): Likewise.
3764 (i386_insert_aligned_watchpoint): Use new macros.
3765 (i386_update_inferior_debug_regs): Likewise.
3766 (i386_stopped_data_address): Likewise.
3767
d9305f7f
GB
37682014-06-18 Gary Benson <gbenson@redhat.com>
3769
3770 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3771 New parameter. All uses updated.
3772
ea008da4
GB
37732014-06-18 Gary Benson <gbenson@redhat.com>
3774
3775 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3776 All uses updated.
3777
1b6d4134
GB
37782014-06-18 Gary Benson <gbenson@redhat.com>
3779
3780 * i386-nat.c (debug_printf): New macro.
3781 (i386_get_debug_register_length): Likewise.
3782 (TARGET_HAS_DR_LEN_8): Use above macro.
3783 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3784 and printf_unfiltered. Use phex to format values.
3785
9b4550ef
GB
37862014-06-18 Gary Benson <gbenson@redhat.com>
3787
3788 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3789 Make const.
3790
6e62758f
GB
37912014-06-18 Gary Benson <gbenson@redhat.com>
3792
3793 * i386-nat.c: Comment changes.
3794
51c79e94
GB
37952014-06-18 Gary Benson <gbenson@redhat.com>
3796
3797 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3798
3e11889a
GB
37992014-06-18 Gary Benson <gbenson@redhat.com>
3800
3801 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3802 (i386_insert_aligned_watchpoint): Likewise.
3803 (i386_remove_aligned_watchpoint): Likewise.
3804 (i386_handle_nonaligned_watchpoint): Likewise.
3805
fc6e2f03
GB
38062014-06-18 Gary Benson <gbenson@redhat.com>
3807
3808 * i386-nat.c: Whitespace changes.
3809
2afe7d50
SB
38102014-06-17 Samuel Bronson <naesten@gmail.com>
3811
3812 * MAINTAINERS: Update Roland McGrath's email address.
3813 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3814 Red Hat a while ago, and giving me a current address.
2afe7d50 3815
3bca49ee
TT
38162014-06-17 Tom Tromey <tromey@redhat.com>
3817
3818 * utils.h (savestring): Remove declaration.
3819
6e366df1
TT
38202014-06-17 Tom Tromey <tromey@redhat.com>
3821
3822 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3823
6be47f0c
KS
38242014-06-16 Keith Seitz <keiths@redhat.com>
3825
3826 PR mi/15863
3827 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3828 to update the varobj if inferior_ptid is null_ptid.
3829
7bc112c1
TT
38302014-06-16 Tom Tromey <tromey@redhat.com>
3831
3832 * target.h (struct target_ops) <to_info_proc>: Make parameter
3833 const.
3834 (target_info_proc): Update.
3835 * target.c (target_info_proc): Make "args" const.
3836 * procfs.c (procfs_info_proc): Update.
3837 * linux-tdep.c (linux_info_proc): Update.
3838 (linux_core_info_proc_mappings): Make "args" const.
3839 (linux_core_info_proc): Update.
3840 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3841 * gdbarch.c: Rebuild.
3842 * gdbarch.h: Rebuild.
3843 * corelow.c (core_info_proc): Update.
3844
fee354ee
TT
38452014-06-16 Tom Tromey <tromey@redhat.com>
3846
3847 * target.h (struct target_ops) <to_disconnect>: Make parameter
3848 const.
3849 (target_disconnect): Update.
3850 * target.c (target_disconnect): Make "args" const.
3851 * target-delegates.c: Rebuild.
3852 * remote.c (remote_disconnect): Update.
3853 * record.h (record_disconnect): Update.
3854 * record.c (record_disconnect): Update.
3855 * inf-child.c (inf_child_disconnect): Update.
3856
a30bf1f1
TT
38572014-06-16 Tom Tromey <tromey@redhat.com>
3858
3859 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3860 * target.c (debug_to_rcmd, default_rcmd): Update.
3861 * target-delegates.c: Rebuild.
3862 * remote.c (remote_rcmd): Update.
3863 * monitor.c (monitor_rcmd): Update.
3864
d03de421
PA
38652014-06-16 Pedro Alves <palves@redhat.com>
3866
3867 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3868 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3869 have OBJF_SHARED set.
3870 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3871 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3872 instead of OBJF_USERLOADED.
3873 * objfiles.h (OBJF_SHARED): Update comment.
3874 (userloaded_objfile_contains_address_p): Rename to ...
3875 (shared_objfile_contains_address_p): ... this, and update
3876 comments.
3877 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3878 new objfile.
3879 (remove_symbol_file_command): Skip objfiles that don't have
3880 OBJF_SHARED set.
3881
99f4262f
TT
38822014-06-16 Tom Tromey <tromey@redhat.com>
3883
3884 * minsyms.h (prim_record_minimal_symbol)
3885 (prim_record_minimal_symbol_and_info): Update comments.
3886
97d66cc6
EZ
38872014-06-14 Eli Zaretskii <eliz@gnu.org>
3888
3889 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3890 or --without-guile, according to how GDB was built.
3891
635c7e8a
TT
38922014-06-13 Tom Tromey <tromey@redhat.com>
3893
3894 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3895 to help_list.
3896 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3897 to help_list.
3898 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3899 help_list.
3900 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3901 help_list.Pass all_commands, not -1, to help_list.
3902 * cli/cli-dump.c (dump_command, append_command)
3903 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3904 (binary_dump_command, binary_append_command): Pass all_commands,
3905 not -1, to help_list.
3906 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3907 -1, to help_list.
3908 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3909 -1, to help_list.
3910 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3911 help_list.
3912 * top.c (set_history): Pass all_commands, not -1, to help_list.
3913 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3914 all_commands, not -1, to help_list.
3915 * symfile.c (overlay_command): Pass all_commands, not -1, to
3916 help_list.
3917 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3918 help_list.
3919 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3920 help_list.
3921 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3922 -1, to help_list.
3923 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3924 not -1, to help_list.
3925 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3926 not -1, to help_list.
3927 * maint.c (maintenance_command, maintenance_info_command)
3928 (maintenance_print_command, maintenance_set_cmd): Pass
3929 all_commands, not -1, to help_list.
3930 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3931 help_list.
3932 * language.c (set_check): Pass all_commands, not -1, to help_list.
3933 * infcmd.c (unset_command): Pass all_commands, not -1, to
3934 help_list.
3935 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3936 help_list.
3937 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3938 help_list.
3939 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3940 help_list.
3941 * breakpoint.c (save_command): Pass all_commands, not -1, to
3942 help_list.
3943 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3944 all_commands, not -1, to help_list.
3945
b94ade42
PL
39462014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3947
3948 * regcache.c (struct register_to_invalidate): New structure.
3949 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3950 functions.
3951 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3952
31f628ae
YQ
39532014-06-12 Yao Qi <yao@codesourcery.com>
3954
3955 * varobj.c (varobj_get_num_children): Call
3956 varobj_is_dynamic_p.
3957 (varobj_list_children): Likewise.
3958 (varobj_update): Likewise. Update comments.
3959
cde5ef40
YQ
39602014-06-12 Yao Qi <yao@codesourcery.com>
3961
3962 * varobj.c (varobj_pretty_printed_p): Rename to ...
3963 (varobj_is_dynamic_p): ... this. New function.
3964 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3965 (varobj_is_dynamic_p): Declare.
3966 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3967 (mi_print_value_p, varobj_update_one): Likewise.
3968
576ea091
YQ
39692014-06-12 Pedro Alves <pedro@codesourcery.com>
3970 Yao Qi <yao@codesourcery.com>
3971
3972 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3973 (varobj_get_iterator): Wrap up code for pretty-printer by
3974 "#if HAVE_PYTHON" and "#endif".
3975 (update_dynamic_varobj_children): Likewise.
3976
827f100c
YQ
39772014-06-12 Pedro Alves <pedro@codesourcery.com>
3978 Yao Qi <yao@codesourcery.com>
3979
3980 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3981 gdb_python_initialized is false. Move some code from varobj.c.
3982 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3983 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3984 (struct varobj_item): Moved to varobj-iter.h".
3985 (varobj_clear_saved_item): New function.
3986 (update_dynamic_varobj_children): Move python-related code to
3987 py-varobj.c.
3988 (free_variable): Call varobj_clear_saved_item and
3989 varobj_iter_delete.
3990
e5250216
YQ
39912014-06-12 Pedro Alves <pedro@codesourcery.com>
3992 Yao Qi <yao@codesourcery.com>
3993
3994 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3995 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3996 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3997 (py-varobj.o): New rule.
3998 * python/py-varobj.c: New file.
3999 * python/python-internal.h (py_varobj_get_iterator): Declare.
4000 * varobj-iter.h: New file.
4001 * varobj.c: Include "varobj-iter.h"
4002 (struct varobj) <child_iter>: Change its type from "PyObject *"
4003 to "struct varobj_iter *".
4004 <saved_item>: Likewise.
4005 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
4006 [HAVE_PYTHON] (varobj_get_iterator): New function.
4007 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
4008 python-specific code to python/py-varobj.c.
4009 (install_visualizer): Call varobj_iter_delete instead of
4010 Py_XDECREF.
4011 * varobj.h (varobj_ensure_python_env): Declare.
4012
5a2e0d6e
YQ
40132014-06-12 Yao Qi <yao@codesourcery.com>
4014
4015 * varobj.c (struct varobj_item): New structure.
4016 (create_child_with_value): Update declaration.
4017 (varobj_add_child): Replace arguments 'name' and 'value' with
4018 'item'. All callers updated.
4019 (install_dynamic_child): Likewise.
4020 (update_dynamic_varobj_children): Likewise.
4021 (varobj_add_child): Likewise.
4022 (create_child_with_value): Likewise.
4023
919b9a93
JB
40242014-06-11 Joel Brobecker <brobecker@adacore.com>
4025
4026 * NEWS: Create a new section for the next release branch.
4027 Rename the section of the current branch, now that it has
4028 been cut.
4029
71a55bdf
JB
40302014-06-11 Joel Brobecker <brobecker@adacore.com>
4031
4032 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
4033 * version.in: Bump version to 7.8.50.DATE-cvs.
4034
364fe1f7
PA
40352014-06-11 Pedro Alves <palves@redhat.com>
4036
4037 PR remote/17028
4038 * ser-mingw.c (net_windows_socket_check_pending): New function.
4039 (net_windows_select_thread): Ignore spurious wakeups. Use
4040 net_windows_socket_check_pending.
4041 (net_windows_wait_handle): Check for pending events with
4042 ioctlsocket, through net_windows_socket_check_pending, instead of
4043 checking the socket's event.
4044
5a6c7709
SC
40452014-06-10 Siva Chandra Reddy <sivachandra@google.com>
4046
4047 * python/python-internal.h (gdb_PyObject_GetAttrString)
4048 (gdb_PyObject_HasAttrString): New inline function definitions.
4049 * py-value.c (get_field_flag): Remove the now unnecessary cast to
4050 char * of the second argument to PyObject_GetAttrString.
74228e77 4051
0e58ee40
JB
40522014-06-10 Joel Brobecker <brobecker@adacore.com>
4053
4054 * serial.c (serial_write): Fix index of character to be printed
4055 in call to serial_logchar when serial debug traces are enabled.
4056
d190df30
JB
40572014-06-10 Joel Brobecker <brobecker@adacore.com>
4058
4059 * gdbtypes (resolve_dynamic_range): Add function description.
4060
b4b01d36
PA
40612014-06-09 Pedro Alves <palves@redhat.com>
4062
4063 * linux-nat.c (linux_child_follow_fork): Initialize status with
4064 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
4065 inner block. Only pass the signal to PTRACE_DETACH if in pass
4066 state.
4067
3657956b
GB
40682014-06-09 Gary Benson <gbenson@redhat.com>
4069
4070 * common/signals.c (gdb_signal_from_host): Reorder to separate
4071 the always-available ANSI-standard signals from the signals that
4072 require checking.
4073 (do_gdb_signal_to_host): Likewise.
4074 * proc-events.c (signal_table): Likewise.
4075
c077881a
HZ
40762014-06-08 Hui Zhu <hui@codesourcery.com>
4077
4078 * common/linux-ptrace.c (linux_disable_event_reporting): New
4079 function.
4080 * common/linux-ptrace.h (linux_disable_event_reporting): New
4081 declaration.
4082 * linux-nat.c (linux_child_follow_fork): Do a single step before
4083 detach.
4084
4186eb54
KS
40852014-06-07 Keith Seitz <keiths@redhat.com>
4086
4087 Revert:
4088 PR c++/16253
4089 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
4090 from symbol_matches_domain in symtab.c. All local callers
4091 of symbol_matches_domain updated.
4092 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4093 search STRUCT_DOMAIN.
4094 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4095 independently. standard_lookup will do that automatically.
4096 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4097 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4098 (cp_lookup_symbol_in_namespace): Likewise.
4099 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4100 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4101 may return a STRUCT_DOMAIN match.
4102 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4103 * cp-support.c: Include language.h.
4104 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4105 VAR_DOMAIN.
4106 * psymtab.c (match_partial_symbol): Compare the requested
4107 domain with the symbol's domain directly.
4108 (lookup_partial_symbol): Likewise.
4109 * symtab.c (lookup_symbol_in_language): Explain when/why
4110 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4111 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4112 appropriate languages.
4113 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4114 and moved to ada-lang.c
4115 (lookup_block_symbol): Explain that this function only returns
4116 symbol matching the requested DOMAIN.
4117 Compare the requested domain with the symbol's domain directly.
4118 (iterate_over_symbols): Compare the requested domain with the
4119 symbol's domain directly.
4120 * symtab.h (symbol_matches_domain): Remove.
4121
25326a28 41222014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
4123
4124 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
4125 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
4126 (gdbscm_guile_version_is_at_least): Declare.
4127 (gdbscm_scm_string_to_int): Declare.
4128 * guile/guile.c (gdbscm_guile_major_version): New global.
4129 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4130 (guile_datadir): New static global.
4131 (gdbscm_guile_data_directory): New function.
4132 (initialize_scheme_side): Update.
4133 (misc_guile_functions): Add guile-data-directory.
4134 (initialize_gdb_module): Fetch guile version number.
4135 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4136 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4137 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4138 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4139 comments.
4140 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4141 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4142 * guile/scm-value.c (gdbscm_value_to_string): Only call
4143 scm_port_conversion_strategy if Guile version >= 2.0.6.
4144
0a770bb2 41452014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4146
4147 * main.c (print_gdb_help): Add -q and --silent.
4148
73ba372c
GB
41492014-06-06 Gary Benson <gbenson@redhat.com>
4150
4151 * common/signals.c: Remove preprocessor conditionals for
4152 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4153 SIGSEGV and SIGTERM.
4154 * proc-events.c: Likewise.
4155
c33b2f12
MM
41562014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4157
4158 * symfile.c (symfile_free_objfile): Remove restriction to
4159 OBJF_USERLOADED.
4160 * symfile-mem.c (symbol_file_add_from_memory): Call
4161 add_target_sections_of_objfile.
4162
fb934770
LC
41632014-06-05 Ludovic Courtès <ludo@gnu.org>
4164
4165 * guile/scm-value.c (gdbscm_history_append_x): Use
4166 'vlscm_get_value_smob_arg_unsafe' instead of
4167 'vlscm_scm_to_value'.
4168
6ef284bd
SM
41692014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4170
4171 PR mi/15806
4172 * utils.c (printchar): Don't escape at all if quoter is NUL.
4173 Update function documentation to clarify effect of parameter
4174 QUOTER.
4175 * remote.c (escape_buffer): Pass '\\' as the quoter to
4176 fputstrn_unfiltered.
4177 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4178 generate the output.
4179 (mi_solib_unloaded): Same.
4180
270c9937
JB
41812014-06-05 Joel Brobecker <brobecker@adacore.com>
4182
4183 * development.sh: Delete.
4184 * Makefile.in (config.status): Adjust dependency on development.sh.
4185 * configure.ac: Adjust development.sh source call.
4186 * configure: Regenerate.
4187
16f691fb
DE
41882014-06-04 Doug Evans <xdje42@gmail.com>
4189
4190 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4191 is_scheme_bkpt, spec.
4192 (bpscm_make_breakpoint_smob): Initialize new members.
4193 (gdbscm_create_breakpoint_x): Split into two ...
4194 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4195 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4196 (scheme_function breakpoint_functions): Update.
4197 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4198 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4199 register-breakpoint!.
4200
ef7cab6b
JB
42012014-06-04 Joel Brobecker <brobecker@adacorer.com>
4202
4203 PR server/17023
4204 * mem-break.c (z_type_supported): Return zero if
4205 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4206
012370f6
TT
42072014-06-04 Tom Tromey <tromey@redhat.com>
4208
4209 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4210 value_from_contents_and_address_unresolved.
4211 (ada_template_to_fixed_record_type_1): Likewise.
4212 (ada_which_variant_applies): Likewise.
4213 * value.h (value_from_contents_and_address_unresolved): Declare.
4214 * value.c (value_from_contents_and_address_unresolved): New
4215 function.
4216 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4217 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4218 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4219
92e2a17f
TT
42202014-06-04 Tom Tromey <tromey@redhat.com>
4221
4222 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4223
c0939df1
TT
42242014-06-04 Tom Tromey <tromey@redhat.com>
4225
4226 * procfs.c (procfs_attach): Make "args" const.
4227 * windows-nat.c (windows_attach): Make "args" const.
4228 * nto-procfs.c (procfs_attach): Make "args" const.
4229 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4230 * go32-nat.c (go32_attach): Make "args" const.
4231 * gnu-nat.c (gnu_attach): Make "args" const.
4232 * darwin-nat.c (darwin_attach): Make "args" const.
4233 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4234 * linux-nat.c (linux_nat_attach): Make "args" const.
4235 * remote.c (extended_remote_attach_1, extended_remote_attach):
4236 Make "args" const.
4237 * target.h (struct target_ops) <to_attach>: Make "args" const.
4238 (find_default_attach): Likewise.
4239 * utils.c (parse_pid_to_attach): Make "args" const.
4240 * utils.h (parse_pid_to_attach): Update.
4241
8eaff7cd
TT
42422014-06-04 Tom Tromey <tromey@redhat.com>
4243
4244 * target-delegates.c: Rebuild.
4245 * target.c (default_thread_address_space): New function.
4246 (target_thread_address_space): Simplify.
4247 * target.h (struct target_ops) <to_thread_address_space>: Add
4248 TARGET_DEFAULT_FUNC.
4249
1913f160
DE
42502014-06-04 Doug Evans <xdje42@gmail.com>
4251
4252 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4253
70ad5bff
MM
42542014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4255
4256 * record-btrace.c: Include event-loop.h and inf-loop.h.
4257 (record_btrace_resume_exec_dir)
4258 (record_btrace_async_inferior_event_handler)
4259 (record_btrace_handle_async_inferior_event): New.
4260 (record_btrace_open): Create async event handler.
4261 (record_btrace_close): Delete async event handler.
4262 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4263 Mark async event handler.
4264 (record_btrace_execution_direction): New.
4265 (init_record_btrace_ops): Initialize to_execution_direction.
4266
b6210538
DE
42672014-06-03 Doug Evans <xdje42@gmail.com>
4268
4269 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4270 (gdbscm_make_parameter): Ditto.
4271
a5b1fd27
DE
42722014-06-03 Doug Evans <dje@google.com>
4273
4274 * exec.c (exec_close_1): Call clear_section_table instead of
4275 resize_section_table.
4276 (clear_section_table): New function.
4277 (resize_section_table): Make static. Rename arg num_added to
4278 adjustment.
4279 * exec.h (clear_section_table): Declare.
4280 (resize_section_table): Delete.
4281 * progspace.c (release_program_space): Call clear_section_table
4282 instead of resize_section_table.
4283
0c6e92a5
SC
42842014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4285
4286 * NEWS (Python Scripting): Add entry about the new xmethods
4287 feature.
4288
883964a7
SC
42892014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4290
4291 * python/py-xmethods.c: New file.
4292 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4293 (objfpy_dealloc): XDECREF on the new xmethods field.
4294 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4295 field.
4296 (objfpy_get_xmethods): New function.
4297 (objfile_getset): New entry 'xmethods'.
4298 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4299 (pspy_dealloc): XDECREF on the new xmethods field.
4300 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4301 field.
4302 (pspy_get_xmethods): New function.
4303 (pspace_getset): New entry 'xmethods'.
4304 * python/python-internal.h: Add declarations for new functions.
4305 * python/python.c (_initialize_python): Invoke
4306 gdbpy_initialize_xmethods.
4307 * python/lib/gdb/__init__.py (xmethods): New
4308 attribute.
4309 * python/lib/gdb/xmethod.py: New file.
4310 * python/lib/gdb/command/xmethods.py: New file.
4311
58992dc5
SC
43122014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4313
4314 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4315 best match method returned by find_overload_match is an xmethod.
4316 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4317 the best matching operator returned by find_overload_match is an
4318 xmethod.
4319 * valops.c: #include "extension.h".
4320 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4321 Return void. The list of matching source methods is returned in
4322 "fn_list" and a vector of matching debug method workers is
4323 returned in "xm_worker_vec". Update all callers.
4324 (value_find_oload_method_list): Likewise.
4325 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4326 non-NULL, then the index of the best matching method in this
4327 vector is returned. Update all callers.
4328 (find_overload_match): Include xmethods while performing overload
4329 resolution.
4330
e81e7f5e
SC
43312014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4332
4333 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4334 * extension-priv.h (struct extension_language_ops): Add the
4335 xmethod interface.
4336 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4337 get_matching_xmethod_workers, get_xmethod_argtypes,
4338 invoke_xmethod, free_xmethod_worker,
4339 free_xmethod_worker_vec): New functions.
4340 * extension.h: #include "common/vec.h".
4341 New function declarations.
4342 (struct xmethod_worker): New struct.
4343 (VEC (xmethod_worker_ptr)): New vector type.
4344 (xmethod_worker_ptr): New typedef.
4345 (xmethod_worker_vec): Likewise.
4346 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4347 builtin_type.
4348 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4349 (struct builtin_type): New field "xmethod".
4350 * valarith.c (value_ptradd): Assert that the value argument is not
4351 lval_xcallable.
4352 * valops.c (value_must_coerce_to_target): Return 0 for
4353 lval_xcallable values.
4354 * value.c (struct value): New field XM_WORKER in the field
4355 LOCATION.
4356 (value_address, value_raw_address): Return 0 for lval_xcallable
4357 values.
4358 (set_value_address): Assert that the value is not an
4359 lval_xcallable.
4360 (value_free): Free the associated xmethod worker when freeing
4361 lval_xcallable values.
4362 (set_value_component_location): Assert that the WHOLE value is not
4363 lval_xcallable.
4364 (value_of_xmethod, call_xmethod): New functions.
4365 * value.h: Declare "struct xmethod_worker".
4366 Declare new functions value_of_xmethod, call_xmethod.
4367
ef370185
JB
43682014-06-03 Joel Brobecker <brobecker@adacore.com>
4369 Pedro Alves <palves@redhat.com>
4370
4371 PR breakpoints/17000
4372 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4373 New function, extracted from software_breakpoint_inserted_here_p.
4374 (software_breakpoint_inserted_here_p): Replace factored out code
4375 by call to find_non_raw_software_breakpoint_inserted_here.
4376 (bp_target_info_copy_insertion_state): New function.
4377 (bkpt_insert_location): Handle the case of a single-step
4378 breakpoint already inserted at the same address.
4379 (bkpt_remove_location): Handle the case of a single-step
4380 breakpoint still inserted at the same address.
4381 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4382 breakpoint already inserted at the same address.
4383 (deprecated_remove_raw_breakpoint): Handle the case of a
4384 non-raw breakpoint still inserted at the same address.
4385 (find_single_step_breakpoint): New function, extracted from
4386 single_step_breakpoint_inserted_here_p.
4387 (find_single_step_breakpoint): New function,
4388 factored out from single_step_breakpoint_inserted_here_p.
4389 (single_step_breakpoint_inserted_here_p): Reimplement.
4390
1e2ccb61
BM
43912014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4392
4393 Pushed by Joel Brobecker <brobecker@adacore.com>
4394 * source.c (show_substitute_path_command): Fix display of matching
4395 substitution rules.
4396
d3448d85
GB
43972014-06-03 Gary Benson <gbenson@redhat.com>
4398
4399 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4400
06eb1586
DE
44012014-06-02 Doug Evans <xdje42@gmail.com>
4402
4403 Add parameter support for Guile.
4404 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4405 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4406 (scm-param.o): New rule.
4407 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4408 (gdbscm_misc_error): Declare.
4409 (gdbscm_canonicalize_command_name): Declare.
4410 (gdbscm_scm_to_host_string): Declare.
4411 (gdbscm_scm_from_host_string): Declare.
4412 (gdbscm_initialize_parameters): Declare.
4413 * guile/guile.c (initialize_gdb_module): Call
4414 gdbscm_initialize_parameters.
4415 * guile/lib/gdb.scm: Export parameter symbols.
4416 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4417 cmdscm_canonicalize_name and made public. All callers updated.
4418 * guile/scm-exception.c (gdbscm_misc_error): New function.
4419 * guile/scm-param.c: New file.
4420 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4421 (gdbscm_scm_to_host_string): New function.
4422 (gdbscm_scm_from_host_string): New function.
4423 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4424
e698b8c4
DE
44252014-06-02 Doug Evans <xdje42@gmail.com>
4426
4427 Add command support for Guile.
4428 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4429 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4430 (scm-cmd.o): New rule.
4431 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4432 (gdbscm_user_error_p): Declare.
4433 (gdbscm_parse_command_name): Declare.
4434 (gdbscm_valid_command_class_p): Declare.
4435 (gdbscm_initialize_commands): Declare.
4436 * guile/guile.c (initialize_gdb_module): Call
4437 gdbscm_initialize_commands.
4438 * guile/lib/gdb.scm: Export command symbols.
4439 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4440 (throw-user-error): New function.
4441 * guile/scm-cmd.c: New file.
4442 * guile/scm-exception.c (user_error_symbol): New static global.
4443 (gdbscm_user_error_p): New function.
4444 (gdbscm_initialize_exceptions): Set user_error_symbol.
4445 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4446
fb1f94b0
PM
44472014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4448
4449 * top.c (command_loop): Handle comments here...
4450 (command_line_input): ... not here.
4451
ded03782
DE
44522014-06-02 Doug Evans <xdje42@gmail.com>
4453
4454 Add progspace support for Guile.
4455 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4456 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4457 (scm-progspace.o): New rule.
4458 * guile/guile-internal.h (pspace_smob): New typedef.
4459 (psscm_pspace_smob_pretty_printers): Declare.
4460 (psscm_pspace_smob_from_pspace): Declare.
4461 (psscm_scm_from_pspace): Declare.
4462 * guile/guile.c (initialize_gdb_module): Call
4463 gdbscm_initialize_pspaces.
4464 * guile/lib/gdb.scm: Export progspace symbols.
4465 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4466 support.
4467 (append-pretty-printer!): Ditto.
4468 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4469 Implement.
4470 * guile/scm-progspace.c: New file.
4471
397998fc
AM
44722014-06-03 Alan Modra <amodra@gmail.com>
4473
4474 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4475 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4476
6aa5f3a6
DE
44772014-06-02 Doug Evans <dje@google.com>
4478
4479 Add support for skeletonless type units.
4480 * dwarf2read.c (struct dwarf2_per_objfile): New member
4481 n_allocated_type_units.
4482 (struct dwarf2_per_objfile) <tu_stats>: New member
4483 nr_all_type_units_reallocs.
4484 (create_signatured_type_table_from_index): Initialize
4485 n_allocated_type_units
4486 (create_all_type_units): Ditto.
4487 (add_type_unit): Move up in file. New arg slot.
4488 All callers updated. Increase space for all_type_units more
4489 efficiently.
4490 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4491 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4492 (lookup_dwp_signatured_type): Ditto.
4493 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4494 All callers updated.
4495 (build_type_psymtabs_1): Leave type_unit_groups as
4496 NULL if no TUs present.
4497 (print_tu_stats): New function.
4498 (process_skeletonless_type_unit): New function.
4499 (process_dwo_file_for_skeletonless_type_units): New
4500 function.
4501 (process_skeletonless_type_units): New function.
4502 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4503 Call print tu_stats if debugging enabled.
4504
41fac0cf
PA
45052014-06-02 Pedro Alves <palves@redhat.com>
4506
4507 * breakpoint.c (build_target_command_list): Don't build a command
4508 list if we have any duplicate location that isn't a dprintf.
4509
cd1608cc
PA
45102014-06-02 Pedro Alves <palves@redhat.com>
4511
4512 * breakpoint.c (dprintf_breakpoint_hit): New function.
4513 (initialize_breakpoint_ops): Install it as dprintf's
4514 breakpoint_hit method.
4515
486ef3b9
JB
45162014-06-02 Joel Brobecker <brobecker@adacore.com>
4517
4518 * source.c (substitute_path_rule_matches): Simplify using
4519 filename_ncmp instead of FILENAME_CMP.
4520
230cd560
JB
45212014-06-02 Joel Brobecker <brobecker@adacore.com>
4522
4523 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4524
16954d5d
LC
45252014-06-01 Ludovic Courtès <ludo@gnu.org>
4526
4527 * configure.ac: When Guile is available, check for the
4528 availability of 'scm_new_smob'.
4529 * configure, config.h.in: Regenerate.
4530 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4531 function.
4532
53e8a631
AB
45332014-05-30 Andrew Burgess <aburgess@broadcom.com>
4534
4535 * frame.c (struct frame_info): Add stop_string field.
4536 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4537 (get_prev_frame_always): Old content moved into
4538 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4539 TRY_CATCH, handle MEMORY_ERROR exceptions.
4540 (frame_stop_reason_string): New function definition.
4541 * frame.h (unwind_stop_reason_to_string): Extend comment to
4542 mention frame_stop_reason_string.
4543 (frame_stop_reason_string): New function declaration.
4544 * stack.c (frame_info): Switch to frame_stop_reason_string.
4545 (backtrace_command_1): Switch to frame_stop_reason_string.
4546 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4547 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4548 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4549
70e38b8e
AB
45502014-05-30 Andrew Burgess <aburgess@broadcom.com>
4551
4552 * frame.c (frame_stop_reason_string): Rename to ...
4553 (unwind_stop_reason_to_string): this.
4554 * frame.h (frame_stop_reason_string): Rename to ...
4555 (unwind_stop_reason_to_string): this.
4556 * stack.c (frame_info): Update call to frame_stop_reason_string.
4557 (backtrace_command_1): Likewise.
4558 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4559 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4560
938f0e2f
AB
45612014-05-30 Andrew Burgess <aburgess@broadcom.com>
4562
4563 * frame.c (remove_prev_frame): New function.
4564 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4565 remove_prev_frame.
4566
a09dd441
PA
45672014-05-29 Pedro Alves <palves@redhat.com>
4568
4569 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4570 and make it const. When a single-step decays to a continue,
4571 clear 'step', not 'hw_step'. Pass whether the caller wanted
4572 to step to user_visible_resume_ptid, not what we ask the
4573 target to do.
4574
bdc36728
PA
45752014-05-29 Pedro Alves <palves@redhat.com>
4576
4577 * infrun.c (process_event_stop_test, handle_step_into_function)
4578 (handle_step_into_function_backward): Adjust.
4579 Don't set the even thread's stop_step and call stop_waiting before
4580 calling end_stepping_range. Instead do that ...
4581 (end_stepping_range): ... here. Take an ecs pointer parameter.
4582
22bcd14b
PA
45832014-05-29 Pedro Alves <palves@redhat.com>
4584
4585 * infrun.c (stop_stepping): Rename to ...
4586 (stop_waiting): ... this.
4587 (proceed): Update comment.
4588 (process_event_stop_test, handle_inferior_event)
4589 (handle_signal_stop, handle_step_into_function)
4590 (handle_step_into_function_backward): Update.
4591
4ae57c05
PA
45922014-05-29 Pedro Alves <palves@redhat.com>
4593
4594 * infcall.c (run_inferior_call): Don't check whether the current
4595 thread is running after the proceed call.
4596
329ea579
PA
45972014-05-29 Pedro Alves <palves@redhat.com>
4598 Tom Tromey <tromey@redhat.com>
4599
4600 * NEWS: Mention "maint set target-async", "set mi-async", and that
4601 background execution commands are now always available.
4602 * target.h (target_async_permitted): Update comment.
4603 * target.c (target_async_permitted, target_async_permitted_1):
4604 Default to 1.
4605 (set_target_async_command): Rename to ...
4606 (maint_set_target_async_command): ... this.
4607 (show_target_async_command): Rename to ...
4608 (maint_show_target_async_command): ... this.
4609 (_initialize_target): Adjust.
4610 * infcmd.c (prepare_execution_command): Make extern.
4611 * inferior.h (prepare_execution_command): Declare.
4612 * infrun.c (set_observer_mode): Leave target async alone.
4613 * mi/mi-interp.c (mi_interpreter_init): Install
4614 mi_on_sync_execution_done as sync_execution_done observer.
4615 (mi_on_sync_execution_done): New function.
4616 (mi_execute_command_input_handler): Don't print the prompt if we
4617 just started a synchronous command with an async target.
4618 (mi_on_resume): Check sync_execution before printing prompt.
4619 * mi/mi-main.h (mi_async_p): Declare.
4620 * mi/mi-main.c: Include gdbcmd.h.
4621 (mi_async_p): New function.
4622 (mi_async, mi_async_1): New globals.
4623 (set_mi_async_command, show_mi_async_command, mi_async): New
4624 functions.
4625 (exec_continue): Call prepare_execution_command.
4626 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4627 (mi_execute_async_cli_command): Use mi_async_p.
4628 (_initialize_mi_main): Install "set mi-async". Make
4629 "target-async" a deprecated alias.
4630
92bcb5f9
PA
46312014-05-29 Pedro Alves <palves@redhat.com>
4632
4633 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4634 (_initialize_cli_interp): Adjust.
4635 * event-loop.c: Include "observer.h".
4636 (start_event_loop): Notify 'command_error' observers instead of
4637 calling display_gdb_prompt. Remove FIXME comment.
4638 * event-top.c (display_gdb_prompt): Remove call into the
4639 interpreters.
4640 * inf-loop.c: Include "observer.h".
4641 (inferior_event_handler): Notify 'command_error' observers instead
4642 of calling display_gdb_prompt.
4643 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4644 observers instead of calling display_gdb_prompt.
4645 * interps.c (interp_set): Don't call display_gdb_prompt.
4646 (current_interp_display_prompt_p): Delete.
4647 * interps.h (interp_prompt_p): Delete declaration.
4648 (interp_prompt_p_ftype): Delete.
4649 (struct interp_procs) <prompt_proc_p>: Delete field.
4650 (current_interp_display_prompt_p): Delete declaration.
4651 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4652 (_initialize_mi_interp): Adjust.
4653 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4654 'command_error' observers.
4655 (tui_on_sync_execution_done, tui_on_command_error): New
4656 functions.
4657 (tui_display_prompt_p): Delete.
4658 (_initialize_tui_interp): Adjust.
4659
fd664c91
PA
46602014-05-29 Pedro Alves <palves@redhat.com>
4661
4662 PR gdb/13860
4663 * cli/cli-interp.c: Include infrun.h and observer.h.
4664 (cli_uiout, cli_interp): New globals.
4665 (cli_on_signal_received, cli_on_end_stepping_range)
4666 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4667 functions.
4668 (cli_interpreter_init): Install them as 'end_stepping_range',
4669 'signal_received' 'signal_exited', 'exited' and 'no_history'
4670 observers.
4671 (_initialize_cli_interp): Remove cli_interp local.
4672 * infrun.c (handle_inferior_event): Call the several stop reason
4673 observers instead of printing the stop reason directly.
4674 (end_stepping_range): New function.
4675 (print_end_stepping_range_reason, print_signal_exited_reason)
4676 (print_exited_reason, print_signal_received_reason)
4677 (print_no_history_reason): Make static, and add an uiout
4678 parameter. Print to that instead of to CURRENT_UIOUT.
4679 * infrun.h (print_end_stepping_range_reason)
4680 (print_signal_exited_reason, print_exited_reason)
4681 (print_signal_received_reason print_no_history_reason): New
4682 declarations.
4683 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4684 'mi_uiout'.
4685 <cli_uiout>: New field.
4686 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4687 uiout for CLI output. Install 'signal_received',
4688 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4689 observers.
4690 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4691 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4692 (mi_on_no_history): New functions.
4693 (ui_out_free_cleanup): Delete function.
4694 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4695 instead use the one already stored in the MI interpreter data.
4696 (mi_ui_out): Adjust.
4697 * tui/tui-interp.c: Include infrun.h and observer.h.
4698 (tui_interp): New global.
4699 (tui_on_signal_received, tui_on_end_stepping_range)
4700 (tui_on_signal_exited, tui_on_exited)
4701 (tui_on_no_history): New functions.
4702 (tui_init): Install them as 'end_stepping_range',
4703 'signal_received' 'signal_exited', 'exited' and 'no_history'
4704 observers.
4705 (_initialize_tui_interp): Delete tui_interp local.
4706
8817a6f2
PA
47072014-05-29 Pedro Alves <palves@redhat.com>
4708
4709 PR gdb/15713
4710 * linux-nat.c (linux_nat_resume_callback): Rename the second
4711 parameter to 'except'. Skip LP if it points to EXCEPT.
4712 (linux_nat_resume): Don't mark the event lwp as not stopped
4713 before resuming sibling lwps. Instead ask
4714 linux_nat_resume_callback to skip the event lwp. Mark it as not
4715 stopped after actually resuming it.
4716 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4717 resuming it.
4718 (wait_lwp): Mark the lwp as stopped here.
4719 (stop_wait_callback): Mark the lwp as not stopped right after
4720 resuming it. Don't mark lwps as stopped here.
4721 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4722 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4723
251bde03
PA
47242014-05-29 Pedro Alves <palves@redhat.com>
4725
4726 PR PR15693
4727 * infrun.c (resume): Determine how much to resume depending on
4728 whether the caller wanted a step, not whether we can hardware step
4729 the target. Mark all threads that we intend to run as running,
4730 unless we're calling an inferior function.
4731 (normal_stop): If the thread is running an infcall, don't finish
4732 thread state.
4733 * target.c (target_resume): Don't mark threads as running here.
4734
7f3c0343
JB
47352014-05-28 Joel Brobecker <brobecker@adacore.com>
4736
4737 * serial.c (_initialize_serial): Remove support for
4738 the "set remotebaud" and "show remotebaud" commands.
4739 * NEWS: Add entry documenting the removal of that command.
4740
ee34b3f9
YQ
47412014-05-28 Yao Qi <yao@codesourcery.com>
4742
4743 * charset.c: Fix typo in comments.
4744
add6c04d
GB
47452014-05-27 Gary Benson <gbenson@redhat.com>
4746
4747 * utils.c (internal_vproblem): Prompt for a bug report.
4748
92c48fc5
AW
47492014-05-26 Andy Wingo <wingo@igalia.com>
4750
4751 * guile/scm-arch.c (arscm_mark_arch_smob):
4752 * guile/scm-block.c (bkscm_mark_block_smob)
4753 (bkscm_mark_block_syms_progress_smob):
4754 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4755 * guile/scm-exception.c (exscm_mark_exception_smob):
4756 * guile/scm-frame.c (frscm_mark_frame_smob):
4757 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4758 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4759 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4760 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4761 (ppscm_mark_pretty_printer_worker_smob):
4762 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4763 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4764 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4765 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4766 mark functions.
4767 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4768 function.
4769
b2715b27
AW
47702014-05-26 Andy Wingo <wingo@igalia.com>
4771 Doug Evans <xdje42@gmail.com>
4772
4773 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4774 empty_base_class. All uses updated.
4775 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4776 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4777 Adapt all callers.
4778 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4779 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4780 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4781 (gdbscm_gsmob_has_property_p, add_property_name)
4782 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4783 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4784 (gdb-object-has-property?, gdb-object-properties): Remove.
4785 (gdb-object-kind): Renamed from gsmob-kind.
4786
214ab2da
AW
47872014-05-26 Andy Wingo <wingo@igalia.com>
4788
4789 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4790 * configure: Regenerate.
4791
589fdceb
MM
47922014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4793
4794 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4795
67b5c0c1
MM
47962014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4797
4798 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4799 (replay_memory_access_read_only, replay_memory_access_read_write)
4800 (replay_memory_access_types, replay_memory_access)
4801 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4802 (cmd_set_record_btrace, cmd_show_record_btrace)
4803 (cmd_show_replay_memory_access): New.
4804 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4805 (record_btrace_remove_breakpoint): Replace
4806 record_btrace_allow_memory_access with replay_memory_access.
4807 (_initialize_record_btrace): Add commands.
4808 * NEWS: Announce it.
4809
036cd381
RR
48102014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4811
4812 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4813
c77c1e42
RR
48142014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4815
4816 * MAINTAINERS (Write After Approval): Move self back from
4817 paper trail.
4818
45741a9c
PA
48192014-05-22 Pedro Alves <palves@redhat.com>
4820
4821 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4822 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4823 (disable_randomization, enum exec_direction_kind)
4824 (execution_direction, stop_registers, start_remote)
4825 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4826 (wait_for_inferior, normal_stop, get_last_target_status)
4827 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4828 (insert_step_resume_breakpoint_at_sal)
4829 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4830 (set_step_info, print_stop_event, signal_stop_state)
4831 (signal_print_state, signal_pass_state, signal_stop_update)
4832 (signal_print_update, signal_pass_update)
4833 (update_signals_program_target, clear_exit_convenience_vars)
4834 (displaced_step_dump_bytes, update_observer_mode)
4835 (signal_catch_update, gdb_signal_from_command): Move
4836 declarations ...
4837 * infrun.h: ... to this new file.
4838 * amd64-tdep.c: Include infrun.h.
4839 * annotate.c: Include infrun.h.
4840 * arch-utils.c: Include infrun.h.
4841 * arm-linux-tdep.c: Include infrun.h.
4842 * arm-tdep.c: Include infrun.h.
4843 * break-catch-sig.c: Include infrun.h.
4844 * breakpoint.c: Include infrun.h.
4845 * common/agent.c: Include infrun.h instead of inferior.h.
4846 * corelow.c: Include infrun.h.
4847 * event-top.c: Include infrun.h.
4848 * go32-nat.c: Include infrun.h.
4849 * i386-tdep.c: Include infrun.h.
4850 * inf-loop.c: Include infrun.h.
4851 * infcall.c: Include infrun.h.
4852 * infcmd.c: Include infrun.h.
4853 * infrun.c: Include infrun.h.
4854 * linux-fork.c: Include infrun.h.
4855 * linux-nat.c: Include infrun.h.
4856 * linux-thread-db.c: Include infrun.h.
4857 * monitor.c: Include infrun.h.
4858 * nto-tdep.c: Include infrun.h.
4859 * procfs.c: Include infrun.h.
4860 * record-btrace.c: Include infrun.h.
4861 * record-full.c: Include infrun.h.
4862 * remote-m32r-sdi.c: Include infrun.h.
4863 * remote-mips.c: Include infrun.h.
4864 * remote-notif.c: Include infrun.h.
4865 * remote-sim.c: Include infrun.h.
4866 * remote.c: Include infrun.h.
4867 * reverse.c: Include infrun.h.
4868 * rs6000-tdep.c: Include infrun.h.
4869 * s390-linux-tdep.c: Include infrun.h.
4870 * solib-irix.c: Include infrun.h.
4871 * solib-osf.c: Include infrun.h.
4872 * solib-svr4.c: Include infrun.h.
4873 * target.c: Include infrun.h.
4874 * top.c: Include infrun.h.
4875 * windows-nat.c: Include infrun.h.
4876 * mi/mi-interp.c: Include infrun.h.
4877 * mi/mi-main.c: Include infrun.h.
4878 * python/py-threadevent.c: Include infrun.h.
4879
98eb56a4
PA
48802014-05-22 Pedro Alves <palves@redhat.com>
4881
4882 * infrun.c (handle_inferior_event): Store the exit code for
4883 --return-child-result here, instead of ...
4884 (print_exited_reason): ... here.
4885
17b2616c
PA
48862014-05-21 Pedro Alves <palves@redhat.com>
4887
4888 PR gdb/13860
4889 * gdbthread.h (struct thread_control_state): New field
4890 `command_interp'.
4891 * infrun.c (follow_fork): Copy the new thread control field to the
4892 child fork thread.
4893 (clear_proceed_status_thread): Clear the new thread control field.
4894 (proceed): Set the new thread control field.
4895 * interps.h (command_interp): Declare.
4896 * interps.c (command_interpreter): New global.
4897 (command_interp): New function.
4898 (interp_exec): Set `command_interpreter' while here.
4899 * cli-out.c (cli_uiout_dtor): New function.
4900 (cli_ui_out_impl): Install it.
4901 * mi/mi-interp.c: Include cli-out.h.
4902 (mi_cmd_interpreter_exec): Add comment.
4903 (restore_current_uiout_cleanup): New function.
4904 (ui_out_free_cleanup): New function.
4905 (mi_on_normal_stop): If finishing an execution command started by
4906 a CLI command, or any kind of breakpoint-like event triggered,
4907 print the stop event to the output (CLI) stream.
4908 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4909
5166082f
PA
49102014-05-21 Pedro Alves <palves@redhat.com>
4911
4912 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4913 current source line having changed.
4914 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4915 * infrun.c (normal_stop): Adjust call to
4916 set_current_sal_from_frame.
4917 * source.c (clear_lines_listed_range): New function.
4918 (set_current_source_symtab_and_line, identify_source_line): Clear
4919 the lines listed range.
4920 (line_info): Handle the first "info line" after the current source
4921 line having changed.
4922 * stack.c (print_stack_frame): Remove center handling.
4923 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4924 center sal.line.
4925
c1ee2fb3
PA
49262014-05-21 Pedro Alves <palves@redhat.com>
4927
4928 * inf-child.c (inf_child_mourn_inferior): New function.
4929 * inf-child.h (inf_child_mourn_inferior): New declaration.
4930 * darwin-nat.c (darwin_mourn_inferior): Use
4931 inf_child_mourn_inferior.
4932 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4933 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4934 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4935 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4936 * windows-nat.c (windows_mourn_inferior): Likewise.
4937
5c6d4fb2
DE
49382014-05-21 Doug Evans <xdje42@gmail.com>
4939
250748cb 4940 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4941
4a2722c5
DE
49422014-05-21 Doug Evans <xdje42@gmail.com>
4943
17292b30 4944 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4945 (gdbscm_out_of_range_error): Ditto.
4946 (gdbscm_memory_error): Ditto.
250748cb
DE
4947 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4948 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4949 (gdbscm_out_of_range_error): Update.
4950 (gdbscm_memory_error): Update.
4951 (gdbscm_scm_to_target_string_unsafe): Delete.
4952
6a3cb8e8
PA
49532014-05-21 Pedro Alves <palves@redhat.com>
4954
4955 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4956 globals.
4957 (inf_child_open_target): New function.
4958 (inf_child_open): Use inf_child_open_target to push the target
4959 instead of erroring out.
4960 (inf_child_disconnect, inf_child_close)
4961 (inf_child_maybe_unpush_target): New functions.
4962 (inf_child_target): Install inf_child_disconnect and
4963 inf_child_close. Store a pointer to the returned object.
4964 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4965 declarations.
4966 * target.c (auto_connect_native_target): New global.
4967 (show_default_run_target): New function.
4968 (find_default_run_target): Return NULL if automatically connecting
4969 to the native target is disabled.
4970 (_initialize_target): Install set/show auto-connect-native-target.
4971 * NEWS: Mention "set auto-connect-native-target", and "target
4972 native".
4973 * linux-nat.c (super_close): New global.
4974 (linux_nat_close): Call super_close.
4975 (linux_nat_add_target): Store a pointer to the base class's
4976 to_close method.
4977 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4978 inf_child_maybe_unpush.
4979 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4980 already pushed.
4981 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4982 the inferior. Use inf_child_maybe_unpush_target.
4983 (inf_ttrace_attach): Don't push the target if it is already
4984 pushed.
4985 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4986 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4987 after mourning the inferior. Use inf_child_maybe_unpush_target.
4988 (darwin_attach_pid): Don't push the target if it is already
4989 pushed.
4990 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4991 mourning the inferior. Use inf_child_maybe_unpush_target.
4992 (gnu_detach): Use inf_child_maybe_unpush_target.
4993 * go32-nat.c (go32_create_inferior): Don't push the target if it
4994 is already pushed.
4995 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4996 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4997 (procfs_open): Rename to ...
4998 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4999 comments. Can target_preopen before changing node. Call
5000 inf_child_open_target to push the target explicitly.
5001 (procfs_attach): Don't push the target if it is already pushed.
5002 (procfs_detach): Use inf_child_maybe_unpush_target.
5003 (procfs_create_inferior): Don't push the target if it is already
5004 pushed.
5005 (nto_native_ops): New global.
5006 (procfs_open): Reimplement.
5007 (procfs_native_open): New function.
5008 (init_procfs_targets): Install procfs_native_open as to_open of
5009 "target native". Store a pointer to the "native" target in
5010 nto_native_ops.
5011 * procfs.c (procfs_attach): Don't push the target if it is already
5012 pushed.
5013 (procfs_detach): Use inf_child_maybe_unpush_target.
5014 (procfs_mourn_inferior): Only unpush the target after mourning the
5015 inferior. Use inf_child_maybe_unpush_target.
5016 (procfs_init_inferior): Don't push the target if it is already
5017 pushed.
5018 * windows-nat.c (do_initial_windows_stuff): Don't push the target
5019 if it is already pushed.
5020
930ee1b1
PA
50212014-05-21 Pedro Alves <palves@redhat.com>
5022
5023 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
5024 and "procfs" targets are now called "native" instead.
5025
1f5d1b13
PA
50262014-05-21 Pedro Alves <palves@redhat.com>
5027
5028 * go32-nat.c (go32_open): Delete.
5029 (go32_target): Don't override the to_open method.
5030
132f8e03
PA
50312014-05-21 Pedro Alves <palves@redhat.com>
5032
5033 * nto-procfs.c (procfs_can_run): New function.
5034 (nto_procfs_ops): New global.
5035 (init_procfs_targets): New, based on procfs_target. Install
5036 "target native" in addition to "target procfs".
5037 (_initialize_procfs): Call init_procfs_targets instead of adding
5038 the target here.
5039
03c136c3
PA
50402014-05-21 Pedro Alves <palves@redhat.com>
5041
5042 * windows-nat.c (windows_target): Don't override to_shortname,
5043 to_longname or to_doc.
5044
a635d0f3
PA
50452014-05-21 Pedro Alves <palves@redhat.com>
5046
5047 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
5048 to_doc.
5049
4f9b5133
PA
50502014-05-21 Pedro Alves <palves@redhat.com>
5051
5052 * darwin-nat.c (_initialize_darwin_inferior): Don't override
5053 to_shortname, to_longname or to_doc.
5054
bc85afde
PA
50552014-05-21 Pedro Alves <palves@redhat.com>
5056
5057 * go32-nat.c (go32_target): Don't override to_shortname,
5058 to_longname or to_doc.
5059
4ebfc96e
PA
50602014-05-21 Pedro Alves <palves@redhat.com>
5061
5062 * inf-child.c (inf_child_open): Remove mention of "child".
5063 (inf_child_target): Rename target to "native" instead of "child".
5064
2648dfed
AA
50652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5066
5067 * Makefile.in (SFILES): Delete "regset.c".
5068 (COMMON_OBS): Delete "regset.o".
5069 * regset.c: Remove.
5070 * regset.h (regset_alloc): Delete prototype.
5071
b13feb94
AA
50722014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5073
5074 * sparc-linux-tdep.c (sparc32_linux_gregset)
5075 (sparc32_linux_fpregset): New static regset structures.
5076 (sparc32_linux_init_abi): Drop dynamic regset allocations.
5077 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
5078 'fpregset' fields.
5079 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
5080 (sparc64_linux_fpregset): New static regset structures.
5081 (sparc64_linux_init_abi): Drop dynamic regset allocations.
5082 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
5083 New static regset structures.
5084 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
5085 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
5086 New static regset structures.
5087 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
5088 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
5089 New static regset structures.
5090 (sparc64obsd_init_abi): Drop dynamic regset allocations.
5091 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
5092 New static regset structures.
5093 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
5094
b4fd25c9
AA
50952014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5096
5097 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
5098 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
5099 register maps ("regmaps") from "*regset" to "*regmap". Do this
5100 for all regmap types and variables.
5101 * sparc-linux-tdep.c (sparc32_linux_step_trap)
5102 (sparc32_linux_supply_core_gregset)
5103 (sparc32_linux_collect_core_gregset)
5104 (sparc32_linux_supply_core_fpregset)
5105 (sparc32_linux_collect_core_fpregset): Likewise.
5106 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
5107 (sparc_gregmap, sparc_fpregmap): ... these.
5108 (sparc_supply_gregset, sparc_collect_gregset)
5109 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5110 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
5111 (_initialize_sparc_nat): Rename regmaps.
5112 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
5113 (sparc_gregmap, sparc_fpregmap): ... these.
5114 (sparc_supply_gregset, sparc_collect_gregset)
5115 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
5116 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
5117 Rename macros to...
5118 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
5119 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
5120 Likewise.
5121 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
5122 Rename to...
5123 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
5124 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
5125 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
5126 regmaps.
5127 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5128 (sparc32_bsd_fpregset): Rename to...
5129 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5130 (sparc32_bsd_fpregmap): ... these.
5131 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5132 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5133 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5134 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5135 (struct sparc_gregmap, struct sparc_fpregmap)
5136 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5137 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5138 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5139 (sparc32_supply_regset, sparc32_collect_gregset)
5140 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5141 prototypes.
5142 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5143 (sparc64_linux_ptrace_gregmap): ... this.
5144 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5145 (_initialize_sparc64_linux_nat): Rename regmaps.
5146 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5147 (sparc64_linux_core_gregmap): ... this.
5148 (sparc64_linux_supply_core_gregset)
5149 (sparc64_linux_collect_core_gregset)
5150 (sparc64_linux_supply_core_fpregset)
5151 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5152 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5153 (sparc64_sol2_fpregset): Rename to...
5154 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5155 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5156 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5157 regmaps.
5158 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5159 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5160 (sparc64_bsd_fpregset): Rename to...
5161 (struct sparc_gregmap, sparc64_sol2_gregmap)
5162 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5163 (sparc64_bsd_fpregmap): ... these.
5164 (sparc64_supply_gregset, sparc64_collect_gregset)
5165 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5166 prototypes.
5167 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5168 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5169 (sparc64fbsd_gregmap): ... this.
5170 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5171 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5172 Rename regmaps.
5173 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5174 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5175 (sparc64nbsd_collect_fpregset): Likewise.
5176 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5177 (sparc64nbsd_gregmap): ... this.
5178 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5179 regmaps.
5180 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5181 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5182 (sparc64obsd_gregmap): ... this.
5183 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5184 regmaps.
5185 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5186 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5187 (sparc32nbsd_gregmap): ... this.
5188 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5189 regmaps.
5190
8fea3224
AA
51912014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5192
5193 * score-tdep.c (score7_linux_gregset): New static regset
5194 structure.
5195 (score7_linux_regset_from_core_section): Remove dynamic regset
5196 allocation.
5197 (score_gdbarch_init): Drop allocation of tdep structure.
5198 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5199
24534243
AA
52002014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5201
5202 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5203 regset structures.
5204 (am33_regset_from_core_section): Remove dynamic regset
5205 allocations.
5206
b7195f27
AA
52072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5208
5209 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5210 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5211 structures.
5212 (mips_linux_regset_from_core_section): Remove dynamic regset
5213 allocations.
5214 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5215 'gregset64', 'fpregset', and 'fpregset64'.
5216 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5217 deleted tdep fields.
5218
ecc37a5a
AA
52192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5220
5221 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5222 regset structures.
5223 (amd64_regset_from_core_section): Remove dynamic regset
5224 allocations.
5225 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5226 structure.
5227 (amd64obsd_regset_from_core_section): Remove dynamic regset
5228 allocation.
5229 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5230 Likewise.
5231 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5232 x86-common regset supply function.
5233 * i386-tdep.c (i386_collect_gregset): Make static.
5234 (i386_gregset): New global regset structure.
5235 (i386_fpregset, i386_xstateregset): New static regset structures.
5236 (i386_regset_from_core_section): Remove dynamic regset
5237 allocations.
5238 (i386_gdbarch_init): Remove initialization of tdep fields
5239 'gregset', 'fpregset', and 'xstateregset'.
5240 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5241 'fpregset', and 'xstateregset'.
5242 (i386_collect_gregset): Remove prototype.
5243 (i386_gregset): New declaration.
5244 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5245 structure.
5246 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5247 allocation.
5248
b7611c43
AA
52492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5250
5251 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5252 (arm_linux_vfpregset): New static regset structures.
5253 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5254 regset structures.
5255 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5256 and 'vfpregset' fields.
5257
a069a2bd
AA
52582014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5259
5260 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5261 (aarch64_linux_fpregset): New static regset structures.
5262 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5263 of regset structures.
5264 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5265 'fpregset' fields.
5266
09424cff
AA
52672014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5268
5269 * regset.h (struct regset): Remove gdbarch field.
5270 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5271 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5272 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5273 Likewise.
5274 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5275 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5276 (ppc32_linux_vsxregset): Likewise.
5277 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5278 via the regcache instead of the regset.
5279 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5280 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5281 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5282 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5283 Likewise.
5284
3ca7dae4
AA
52852014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5286
5287 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5288 Constify structures.
5289 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5290 (alphanbsd_aout_gregset): Likewise.
5291 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5292 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5293 Likewise.
5294 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5295 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5296 Likewise.
5297 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5298 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5299 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5300 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5301 * m88k-tdep.c (m88k_gregset): Likewise.
5302 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5303 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5304 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5305 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5306 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5307 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5308 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5309 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5310 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5311 Likewise.
5312 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5313 * sh-tdep.h (sh_corefile_gregset): Likewise.
5314 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5315 * vax-tdep.c (vax_gregset): Likewise.
5316
5876f503
JK
53172014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5318
5319 Fix TLS access for -static -pthread.
5320 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5321 (try_thread_db_load_1): Initialize it.
5322 (thread_db_get_thread_local_address): Call it if LM is zero.
5323 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5324 * target.h (struct target_ops) (to_get_thread_local_address): Add
5325 load_module_addr comment.
5326
0256a6ac
PA
53272014-05-21 Pedro Alves <palves@redhat.com>
5328
5329 * dcache.c (dcache_read_memory_partial): If reading the cache line
5330 fails, fallback to reading just the memory the caller wanted.
5331
227533ac
DE
53322014-05-20 Doug Evans <dje@google.com>
5333
5334 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5335 instead of get_current_arch.
5336
936d2992
PA
53372014-05-20 Pedro Alves <palves@redhat.com>
5338
5339 * NEWS: Mention that compare-sections now works with all targets.
5340
5341 * remote.c (PACKET_qCRC): New enum value.
5342 (remote_verify_memory): Don't send qCRC if the target has no
5343 execution. Use packet_support/packet_ok. If the target doesn't
5344 support the qCRC packet, fallback to a deep memory copy.
5345 (compare_sections_command): Say "target image" instead of "remote
5346 executable".
5347 (_initialize_remote): Add PACKET_qCRC to the list of config
5348 packets that have no associated command. Extend comment.
5349 * target.c (simple_verify_memory, default_verify_memory): New
5350 function.
5351 * target.h (struct target_ops) <to_verify_memory>: Default to
5352 default_verify_memory.
5353 (simple_verify_memory): New declaration.
5354 * target-delegates.c: Regenerate.
5355
e59fa00f
MM
53562014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5357
5358 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5359
f2205de0
HZ
53602014-05-20 Hui Zhu <hui@codesourcery.com>
5361 Yao Qi <yao@codesourcery.com>
5362
5363 PR backtrace/16558
5364 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5365 and change address of sp and pc.
5366
c4e54771
TT
53672014-05-19 Tom Tromey <tromey@redhat.com>
5368
5369 * gdbtypes.c (rank_function): Use XNEWVEC.
5370 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5371
73051182
DE
53722014-05-19 Doug Evans <dje@google.com>
5373
5374 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5375 build_type_unit_groups and moved closer to only caller. Remove
5376 arguments. All references updated. Remove outdated .gdb_index
5377 comment.
5378 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5379 build_type_psymtabs_1.
5380
8832e7e3
DE
53812014-05-19 Doug Evans <dje@google.com>
5382
5383 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5384 n_type_unit_groups, all_type_unit_groups. All uses removed.
5385 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5386 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5387 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5388 (add_type_unit_group_to_table): Delete.
5389
cd8ae15e
DE
53902014-05-19 Doug Evans <dje@google.com>
5391
5392 * eval.c (evaluate_subexp_standard): Add some comments.
5393
08f4850b
DE
53942014-05-17 Doug Evans <xdje42@gmail.com>
5395
5396 * progspace.c (remove_program_space): Delete, unused.
5397 * progspace.h (remove_program_space): Ditto.
5398
bed8455c
DE
53992014-05-17 Doug Evans <xdje42@gmail.com>
5400
5401 * inferior.c (prune_inferiors): Fix comment.
5402 (remove_inferior_command): Call prune_program_spaces.
5403
8d551b02
DE
54042014-05-16 Doug Evans <dje@google.com>
5405
5406 New command line option -D.
5407 * NEWS: Mention it.
5408 * main.c (set_gdb_data_directory): New function.
5409 (captured_main): Recognize -D. Flag error for --data-directory "".
5410 Call set_gdb_data_directory.
5411 (print_gdb_help): Print --data-directory, -D.
5412 * main.h (set_gdb_data_directory): Declare.
5413 * top.c (staged_gdb_datadir): New static global.
5414 (set_gdb_datadir): Call set_gdb_data_directory
5415 (show_gdb_datadir): New function.
5416 (init_main): Update init of data-directory parameter.
5417
18848e28
GF
54182014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5419
5420 Import the "dirfd" gnulib module.
5421 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5422 * gnulib/aclocal.m4: Update.
5423 * gnulib/config.in: Update.
5424 * gnulib/configure: Update.
5425 * gnulib/import/Makefile.am: Update.
5426 * gnulib/import/Makefile.in: Update.
5427 * gnulib/import/dirfd.c: New.
5428 * gnulib/import/m4/dirfd.m4: New.
5429 * gnulib/import/m4/gnulib-cache.m4: Update.
5430 * gnulib/import/m4/gnulib-comp.m4: Update.
5431
95c64f92
YQ
54322014-05-16 Pierre Muller <muller@sourceware.org>
5433 Yao Qi <yao@codesourcery.com>
5434
5435 * valprint.c (print_wchar): Move the code on checking whether
5436 W is a printable wide char to the default branch of switch
5437 statement below. Call wchar_printable instead of gdb_iswprint.
5438
cac395ea
TM
54392014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5440
19679eca 5441 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5442 ldr.w and ldrd instructions.
5443
83655187
DE
54442014-05-15 Doug Evans <dje@google.com>
5445
5446 * dwarf2read.c (read_structure_type): Delete outdated comments.
5447
dd756689
TT
54482014-05-14 Tom Tromey <tromey@redhat.com>
5449
5450 * macrocmd.c (print_macro_definition): Reindent.
5451
75ddda77
DE
54522014-05-13 Doug Evans <xdje42@gmail.com>
5453
5454 * python/py-cmd.c (cmdpy_completer): Add comment.
5455 (completers): Make const.
5456
b0f16a3e
SM
54572014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5458
5459 * infrun.c (resume): Remove should_resume (unused). Move up
5460 declaration of resume_ptid.
5461
033c3379
TT
54622014-05-13 Tom Tromey <tromey@redhat.com>
5463
5464 * language.h (unop_type_check): Remove.
5465 (binop_type_check): Don't declare.
5466
9b44a3a5
AA
54672014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5468
5469 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5470 call to regcache_raw_collect.
5471
303a33fa
SM
54722014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5473
5474 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5475 mi_console->quote as the quoting character.
5476
196100a0
SM
54772014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5478
5479 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5480
f989a1c8
TT
54812014-04-29 Tom Tromey <tromey@redhat.com>
5482
5483 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5484 "show debug varobj".
5485
9404b58f
KM
54862014-05-07 Kyle McMartin <kyle@redhat.com>
5487
5488 Pushed by Joel Brobecker <brobecker@adacore.com>.
5489 * aarch64-tdep.c (aarch64_software_single_step): New function.
5490 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5491 with aarch64_software_single_step.
5492
5e49ba57
JB
54932014-05-05 Joel Brobecker <brobecker@adacore.com>
5494
5495 GDB 7.7.1 released.
5496
c888a17d
KS
54972014-05-05 Keith Seitz <keiths@redhat.com>
5498
5499 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5500 variable or history value is successfully parsed.
5501
290a839c
YQ
55022014-05-05 Yao Qi <yao@codesourcery.com>
5503 Pedro Alves <palves@redhat.com>
5504
5505 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5506 address of blocks that intersects the requested range. Trim
5507 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5508 sections.
5509 * ctf.c (ctf_xfer_partial): Likewise.
5510
91256dc2
YQ
55112014-05-05 Yao Qi <yao@codesourcery.com>
5512
5513 * printcmd.c (display_command): Remove the check to
5514 target_has_execution.
5515
07284463
MK
55162014-05-03 Mark Kettenis <kettenis@gnu.org>
5517
5518 * ppcobsd-nat.c: Include "obsd-nat.h".
5519 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5520 add_target.
5521 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5522
30a1e6cc
SDJ
55232014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5524
5525 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5526 and 16-bit signed and unsigned arguments. Update comment.
5527 (stap_parse_probe_arguments): Extend code to handle such
5528 arguments. Use warning instead of complaint to notify about
5529 unrecognized bitness.
5530
f33da99a
SDJ
55312014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5532
5533 PR breakpoints/16889
5534 * stap-probe.c (stap_parse_probe_arguments): Simplify
5535 check for non-prefixed probes (i.e., probes whose
5536 arguments do not start with "N@"). Always set the
5537 argument type to a sane value.
5538
95cf3b38
DT
55392014-05-01 David Taylor <dtaylor@emc.com>
5540
5541 * remote.c (compare_sections_command): Add -r option to compare
5542 all loadable read-only sections.
5543
1cfdf534
SC
55442014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5545
5546 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5547 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5548 Update all callers.
5549 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5550 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5551 Remove unused CORE_ADDR argument. Update all callers.
5552
ca4f7f8b
PA
55532014-04-29 Pedro Alves <palves@redhat.com>
5554
5555 * remote.c (struct packet_config) <detect>: Extend comment.
5556 (add_packet_config_cmd): Don't set the config's detect or support
5557 fields here.
5558 (init_all_packet_configs): Also initialize the config's 'detect'
5559 field.
5560 (reset_all_packet_configs_support): New function.
5561 (remote_open_1): Call reset_all_packet_configs_support instead of
5562 init_all_packet_configs.
5563 (_initialize_remote): Initialize all packet configs. Assert that
5564 all packets have an associated command, except a few known
5565 outliers.
5566
11c1ba78
JB
55672014-04-28 Joel Brobecker <brobecker@adacore.com>
5568
5569 * dwarf2read.c (read_subrange_type): Handle dynamic
5570 DW_AT_lower_bound attributes.
5571
8739bc53
JB
55722014-04-28 Joel Brobecker <brobecker@adacore.com>
5573
5574 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5575 dynamic bounds before computing its upper bound.
5576 (ada_discrete_type_low_bound): Same as above with the lower bound.
5577
6f8a3220
JB
55782014-04-28 Joel Brobecker <brobecker@adacore.com>
5579
5580 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5581 range types. Adjust the array handling implementation to
5582 take advantage of this change.
5583 (resolve_dynamic_range): New function, mostly extracted from
5584 resolve_dynamic_bounds.
5585 (resolve_dynamic_array): New function, mostly extracted from
5586 resolve_dynamic_bounds.
5587 (resolve_dynamic_bounds): Delete.
5588 (resolve_dynamic_type): Reimplement. Add handling of
5589 TYPE_CODE_RANGE types.
5590
4d072ce4
JB
55912014-04-28 Joel Brobecker <brobecker@adacore.com>
5592
5593 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5594 handling of parallel ___XA types.
5595
52865325
JB
55962014-04-28 Joel Brobecker <brobecker@adacore.com>
5597
5598 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5599 unnecessary second call to static_unwrap_type.
5600
433e77fa
HZ
56012014-04-27 Hui Zhu <hui@codesourcery.com>
5602
5603 * stack.c (print_frame_info): Call do_gdb_disassembly with
5604 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5605
b51a69ee
DE
56062014-04-26 Doug Evans <xdje42@gmail.com>
5607
5608 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5609
7ae1a6a6
PA
56102014-04-25 Pedro Alves <palves@redhat.com>
5611
5612 PR server/16255
5613 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5614 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5615 and newline from built string.
5616 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5617 (linux_ptrace_attach_fail_reason): ... this.
5618 * linux-nat.c (linux_nat_attach): Adjust to use
5619 linux_ptrace_attach_fail_reason.
5620
4082afcc
PA
56212014-04-25 Pedro Alves <palves@redhat.com>
5622
5623 * remote.c (struct remote_state): Remove multi_process_aware,
5624 non_stop_aware, cond_tracepoints, cond_breakpoints,
5625 breakpoint_commands, fast_tracepoints, static_tracepoints,
5626 install_in_trace, disconnected_tracing,
5627 enable_disable_tracepoints, string_tracing, and
5628 augmented_libraries_svr4_read fields.
5629 (remote_multi_process_p): Move further below in the file.
5630 (struct packet_config): Add comments.
5631 (update_packet_config): Delete function.
5632 (show_packet_config_cmd): Use packet_config_support.
5633 (add_packet_config_cmd): Use NULL as set callback.
5634 (packet_ok): "set remote foo-packet"-style commands no longer
5635 change config->supported -- adjust.
5636 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5637 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5638 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5639 (PACKET_QNonStop, PACKET_multiprocess_feature)
5640 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5641 (PACKET_DisconnectedTracing_feature)
5642 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5643 (set_remote_protocol_packet_cmd): Delete function.
5644 (packet_config_support, packet_support): New functions.
5645 (set_remote_protocol_Z_packet_cmd): Don't call
5646 update_packet_config.
5647 (remote_query_attached, remote_pass_signals)
5648 (remote_program_signals, remote_threads_info)
5649 (remote_threads_extra_info, remote_start_remote): Use
5650 packet_support.
5651 (remote_start_remote): Use packet_config_support and
5652 packet_support.
5653 (init_all_packet_configs): Set all packets to unknown support,
5654 instead of calling update_packet_config.
5655 (remote_check_symbols): Use packet_support.
5656 (remote_supported_packet): Unconditionally set the packet config's
5657 support status.
5658 (remote_multi_process_feature, remote_non_stop_feature)
5659 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5660 (remote_breakpoint_commands_feature)
5661 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5662 (remote_install_in_trace_feature)
5663 (remote_disconnected_tracing_feature)
5664 (remote_enable_disable_tracepoint_feature)
5665 (remote_string_tracing_feature)
5666 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5667 (remote_protocol_features): Adjust to use remote_supported_packet
5668 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5669 "ConditionalTracepoints", "ConditionalBreakpoints",
5670 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5671 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5672 "EnableDisableTracepoints", and "tracenz".
5673 (remote_query_supported): Use packet_support.
5674 (remote_open_1): Adjust.
5675 (extended_remote_attach_1): Use packet_support. Switch on the
5676 result of packet_ok instead of checking whether the packet ended
5677 up disabled.
5678 (remote_vcont_resume): Use packet_support.
5679 (remote_resume, remote_stop_ns, fetch_register_using_p)
5680 (remote_prepare_to_store, store_register_using_P)
5681 (check_binary_download, remote_write_bytes): Use packet_support.
5682 (remote_vkill): Use packet_support. Switch on the result of
5683 packet_ok instead of checking whether the packet ended up
5684 disabled.
5685 (extended_remote_supports_disable_randomization): Use
5686 packet_support.
5687 (extended_remote_run): Switch on the result of packet_ok instead
5688 of checking whether the packet ended up disabled.
5689 (remote_insert_breakpoint, remote_remove_breakpoint)
5690 (remote_insert_watchpoint, remote_remove_watchpoint)
5691 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5692 packet_support.
5693 (remote_search_memory): Use packet_config_support.
5694 (remote_get_thread_local_address, remote_get_tib_address)
5695 (remote_hostio_send_command, remote_can_execute_reverse): Use
5696 packet_support.
5697 (remote_supports_cond_tracepoints)
5698 (remote_supports_cond_breakpoints)
5699 (remote_supports_fast_tracepoints)
5700 (remote_supports_static_tracepoints)
5701 (remote_supports_install_in_trace)
5702 (remote_supports_enable_disable_tracepoint)
5703 (remote_supports_string_tracing)
5704 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5705 the packet config says the feature is enabled or disabled.
5706 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5707 (remote_get_trace_status): Use packet_support.
5708 (remote_set_disconnected_tracing): Adjust to check whether the
5709 feature is enabled with packet_support.
5710 (remote_set_trace_buffer_size, remote_use_agent)
5711 (remote_can_use_agent, remote_supports_btrace): Use
5712 packet_support.
5713 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5714 Use packet_config_support.
5715 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5716 the packet config says the feature is enabled or disabled.
5717 (set_range_stepping): Use packet_support.
5718
bdb52a22
TT
57192014-04-25 Tom Tromey <tromey@redhat.com>
5720
5721 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5722 argument.
5723
e9475ead
SA
57242014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5725
5726 * NEWS: Mention support for C99 variable length arrays.
5727
82eacd52
JB
57282014-04-24 Joel Brobecker <brobecker@adacore.com>
5729
5730 * ada-lang.c (standard_exc): Expand introductory comment.
5731
01f9f808
MS
57322014-04-24 Michael Sturm <michael.sturm@mintel.com>
5733 Walfred Tedeschi <walfred.tedeschi@intel.com>
5734
5735 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5736 AVX512 registers.
5737 (amd64_linux_read_description): Add code to handle AVX512 xstate
5738 mask and return respective tdesc.
5739 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5740 and features/i386/x32-avx512-linux.c.
5741 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5742 (amd64_linux_core_read_description): Add code to handle AVX512
5743 xstate mask and return respective tdesc.
5744 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5745 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5746 calculation.
5747 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5748 (tdesc_amd64_avx512_linux): New prototype.
5749 (tdesc_x32_avx512_linux): Likewise.
5750 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5751 features/i386/x32-avx512.c.
5752 (amd64_ymm_avx512_names): New register names for pseudo
5753 registers YMM16-31.
5754 (amd64_ymmh_avx512_names): New register names for raw registers
5755 YMMH16-31.
5756 (amd64_k_names): New register names for K registers.
5757 (amd64_zmmh_names): New register names for ZMM raw registers.
5758 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5759 (amd64_xmm_avx512_names): New register names for XMM16-31
5760 registers.
5761 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5762 registers.
5763 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5764 if feature is present.
5765 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5766 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5767 (AMD64_NUM_REGS): Adjust to new number of registers.
5768 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5769 registers supplied via XSTATE by AVX512 registers.
5770 (i386_linux_read_description): Add case for AVX512.
5771 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5772 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5773 (i386_linux_core_read_description): Add case for AVX512.
5774 (i386_linux_init_abi): Install supported register note section
5775 for AVX512.
5776 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5777 AVX512.
5778 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5779 registers to be number of zmm7h + 1.
5780 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5781 * i386-tdep.c: Include features/i386/i386-avx512.c.
5782 (i386_zmm_names): Add ZMM pseudo register names array.
5783 (i386_zmmh_names): Add ZMM raw register names array.
5784 (i386_k_names): Add K raw register names array.
5785 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5786 registers. AVX512 has 16 more ZMM registers than there are YMM
5787 registers.
5788 (i386_zmmh_regnum_p): Add function to look up register number of
5789 ZMM raw registers.
5790 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5791 (i386_k_regnum_p): Likewise for K raw registers.
5792 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5793 registers added by AVX512.
5794 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5795 registers added by AVX512.
5796 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5797 added by AVX512.
5798 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5799 (i386_pseudo_register_name): Add ZMM pseudo registers.
5800 (i386_zmm_type): Construct and return vector registers type for ZMM
5801 registers.
5802 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5803 ZMM0-31 pseudo registers and K registers.
5804 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5805 and YMM16-31 registers from register cache.
5806 (i386_pseudo_register_write): Add code to write K, ZMM and
5807 YMM16-31 registers.
5808 (i386_register_reggroup_p): Add code to include/exclude AVX512
5809 registers in/from respective register groups.
5810 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5811 registers if feature is present in xcr0.
5812 (i386_gdbarch_init): Add code to initialize AVX512 feature
5813 variables in tdep structure, wire in pseudo registers and call
5814 initialize_tdesc_i386_avx512.
5815 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5816 variables.
5817 (i386_regnum): Add AVX512 registers.
5818 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5819 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5820 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5821 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5822 512 bits wide.
5823 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5824 (i386_ymm_avx512_regnum_p): Likewise.
5825 (i386_k_regnum_p): Likewise.
5826 (i386_zmm_regnum_p): Likewise.
5827 (i386_zmmh_regnum_p): Likewise.
5828 * i387-tdep.c : Update year in copyright notice.
5829 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5830 XSAVE buffer.
5831 (XSAVE_YMM_AVX512_ADDR): New macro.
5832 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5833 XSAVE buffer.
5834 (XSAVE_XMM_AVX512_ADDR): New macro.
5835 (xsave_avx512_k_offset): New table for K register offsets in
5836 XSAVE buffer.
5837 (XSAVE_AVX512_K_ADDR): New macro.
5838 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5839 in XSAVE buffer.
5840 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5841 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5842 buffer.
5843 (i387_collect_xsave): Add code to collect AVX512 registers from
5844 XSAVE buffer.
5845 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5846 of XMM16-31 registers.
5847 (I387_NUM_K_REGS): New define for number of K registers.
5848 (I387_K0_REGNUM): New define for K0 register number.
5849 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5850 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5851 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5852 registers.
5853 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5854 (I387_XMM16_REGNUM): New define for XMM16 register number.
5855 (I387_YMM0_REGNUM): New define for YMM0 register number.
5856 (I387_KEND_REGNUM): New define for last K register number.
5857 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5858 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5859 number.
5860 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5861 number.
5862 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5863 size.
5864 * features/Makefile: Add AVX512 related files.
5865 * features/i386/32bit-avx512.xml: New file.
5866 * features/i386/64bit-avx512.xml: Likewise.
5867 * features/i386/amd64-avx512-linux.c: Likewise.
5868 * features/i386/amd64-avx512-linux.xml: Likewise.
5869 * features/i386/amd64-avx512.c: Likewise.
5870 * features/i386/amd64-avx512.xml: Likewise.
5871 * features/i386/i386-avx512-linux.c: Likewise.
5872 * features/i386/i386-avx512-linux.xml: Likewise.
5873 * features/i386/i386-avx512.c: Likewise.
5874 * features/i386/i386-avx512.xml: Likewise.
5875 * features/i386/x32-avx512-linux.c: Likewise.
5876 * features/i386/x32-avx512-linux.xml: Likewise.
5877 * features/i386/x32-avx512.c: Likewise.
5878 * features/i386/x32-avx512.xml: Likewise.
5879 * regformats/i386/amd64-avx512-linux.dat: New file.
5880 * regformats/i386/amd64-avx512.dat: Likewise.
5881 * regformats/i386/i386-avx512-linux.dat: Likewise.
5882 * regformats/i386/i386-avx512.dat: Likewise.
5883 * regformats/i386/x32-avx512-linux.dat: Likewise.
5884 * regformats/i386/x32-avx512.dat: Likewise.
5885 * NEWS: Add note about new support for AVX512.
5886
5887
08351840
PA
58882014-04-23 Pedro Alves <palves@redhat.com>
5889
5890 * breakpoint.c (insert_bp_location): Tolerate errors if the
5891 breakpoint is set in a user-loaded objfile.
5892 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5893 location is marked shlib_disabled. If the breakpoint is set in a
5894 user-loaded objfile is a GDB-side memory breakpoint, validate it
5895 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5896 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5897 flag.
5898 * mem-break.c (memory_validate_breakpoint): New function.
5899 * objfiles.c (userloaded_objfile_contains_address_p): New
5900 function.
5901 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5902 * target.h (memory_validate_breakpoint): New declaration.
5903
076855f9
PA
59042014-04-23 Pedro Alves <palves@redhat.com>
5905
5906 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5907 the breakpoint is set in a shared library, only suppress
5908 errors for software breakpoints, not hardware breakpoints.
5909
483805cf
PA
59102014-04-22 Pedro Alves <palves@redhat.com>
5911
5912 * infrun.c (schedlock_applies): New function, factored out from
5913 find_thread_needs_step_over.
5914 (find_thread_needs_step_over): Use it.
5915 (switch_back_to_stepped_thread): Always clear trap_expected if the
5916 step over is finished. Return early if scheduler locking applies.
5917 Look for the stepping thread and a potential step-over thread with
5918 a single loop.
5919 (currently_stepping_or_nexting_callback): Delete.
5920
a75fef0e
NC
59212014-04-22 Nick Clifton <nickc@redhat.com>
5922
5923 * NEWS: Mention that ARM sim now supports tracing.
5924
48b6e87e
YQ
59252014-04-22 Yao Qi <yao@codesourcery.com>
5926
5927 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5928 to ...
5929 * tracefile.c (tracefile_fetch_registers): ... it. New
5930 function.
5931 * tracefile.h (tracefile_fetch_registers): Declare.
5932 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5933 tracefile_fetch_registers.
5934
17617f2d
EZ
59352014-04-19 Eli Zaretskii <eliz@gnu.org>
5936
5937 PR gdb/14018
5938 * windows-nat.c (thread_rec): Don't display a warning when
5939 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5940 fails for any reason, set th->suspended to -1, so that we don't
5941 try to resume such a thread. Also, don't return NULL in these
5942 cases, to avoid completely ruin the session due to "PC register is
5943 not available" error.
5944 (do_windows_fetch_inferior_registers): Check errors in
5945 GetThreadContext call.
5946 (windows_continue): Accept an additional argument KILLED; if not
5947 zero, ignore errors in the SetThreadContext call, since the
5948 inferior was killed and is shutting down.
5949 (windows_resume, get_windows_debug_event)
5950 (windows_create_inferior, windows_mourn_inferior)
5951 (windows_kill_inferior): All callers of windows_continue changed
5952 to adjust to its new calling sequence.
5953
5723a6fd
YQ
59542014-04-19 Yao Qi <yao@codesourcery.com>
5955
5956 * ctf.c (ctf_open): Call post_create_inferior.
5957
614d5099
YQ
59582014-04-19 Yao Qi <yao@codesourcery.com>
5959
5960 * ctf.c (handle_id): New static variable.
5961 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5962 value. Get the declaration of event "register" and get length
5963 of field "contents".
5964
dac3e710
YQ
59652014-04-19 Yao Qi <yao@codesourcery.com>
5966
5967 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5968
2bca57ba
SC
59692014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5970
5971 * valops.c (oload_method_static): Remove unnecessary argument
5972 METHOD. Update all callers.
5973
51d48146
PA
59742014-04-18 Pedro alves <palves@redhat.com>
5975 Tom Tromey <tromey@redhat.com>
5976
5977 PR backtrace/15558
5978 * frame.c (get_prev_frame_1): Rename to ...
5979 (get_prev_frame_always): ... this, and make extern. Adjust.
5980 (skip_artificial_frames): Use get_prev_frame_always.
5981 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5982 (get_frame_unwind_stop_reason): Adjust to rename.
5983 * frame.h (get_prev_frame_always): Declare.
5984 * inline-frame.c: Include frame.h.
5985 (inline_frame_this_id): Use get_prev_frame_always.
5986
1bdad2e0
TG
59872014-04-18 Tristan Gingold <gingold@adacore.com>
5988
5989 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5990 code by using bfd_mach_o_get_base_address.
5991
7ce16bd4
UW
59922014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5993
5994 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5995 (spu_ax_pseudo_register_collect): New function.
5996 (spu_ax_pseudo_register_push_stack): Likewise.
5997 (spu_dwarf_reg_to_regnum): Likewise.
5998 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5999
2ed3c037
UW
60002014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
6001
6002 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
6003 Replace FRAME argument with FRAME_ID.
6004 * gdbarch.c, gdbarch.h: Regenerate.
6005 * findvar.c (default_value_from_register): Add GDBARCH argument;
6006 replace FRAME by FRAME_ID. No longer call get_frame_id.
6007 (value_from_register): Update call to gdbarch_value_from_register.
6008 * value.h (default_value_from_register): Update prototype.
6009 * s390-linux-tdep.c (s390_value_from_register): Update interface
6010 and call to default_value_from_register.
6011 * spu-tdep.c (spu_value_from_register): Likewise.
6012
6013 * findvar.c (address_from_register): Remove TYPE argument.
6014 Do not call value_from_register; use gdbarch_value_from_register
6015 with null_frame_id instead.
6016 * value.h (address_from_register): Update prototype.
6017 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
6018 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
6019 address_from_register interface change.
6020
71e50e83
YQ
60212014-04-17 Yao Qi <yao@codesourcery.com>
6022
6023 * gdbtypes.h: Update comments to link to types and macros'
6024 definitions.
6025
7a23c549
SC
60262014-04-16 Siva Chandra Reddy <sivachandra@google.com>
6027
6028 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
6029
22869d73
KS
60302014-04-16 Keith Seitz <keiths@redhat.com>
6031
6032 PR gdb/15827
6033 * dwarf2read.c (skip_one_die): Check that all relative-offset
6034 sibling DIEs fall within range of the current reader's buffer.
6035 (read_partial_die): Likewise.
6036
c4f87ca6
KS
60372014-04-16 Keith Seitz <keiths@redhat.com>
6038
6039 PR c++/16597
6040 * cp-namespace.c (lookup_symbol_file): If the type name of
6041 `this' is NULL, return immediately.
6042
b50c8614
KS
60432014-04-14 Keith Seitz <keiths@redhat.com>
6044
6045 PR c++/16253
6046 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6047 from symbol_matches_domain in symtab.c. All local callers
6048 of symbol_matches_domain updated.
6049 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6050 search STRUCT_DOMAIN.
6051 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6052 independently. standard_lookup will do that automatically.
6053 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6054 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6055 (cp_lookup_symbol_in_namespace): Likewise.
6056 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6057 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6058 may return a STRUCT_DOMAIN match.
6059 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6060 * cp-support.c: Include language.h.
6061 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6062 VAR_DOMAIN.
6063 * psymtab.c (match_partial_symbol): Compare the requested
6064 domain with the symbol's domain directly.
6065 (lookup_partial_symbol): Likewise.
6066 * symtab.c (lookup_symbol_in_language): Explain when/why
6067 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6068 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6069 appropriate languages.
6070 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6071 and moved to ada-lang.c
6072 (lookup_block_symbol): Explain that this function only returns
6073 symbol matching the requested DOMAIN.
6074 Compare the requested domain with the symbol's domain directly.
6075 (iterate_over_symbols): Compare the requested domain with the
6076 symbol's domain directly.
6077 * symtab.h (symbol_matches_domain): Remove.
6078
3d567982
TT
60792014-04-14 Tom Tromey <tromey@redhat.com>
6080
6081 PR c++/15246:
6082 * c-exp.y (type_aggregate_p): New function.
6083 (qualified_name, classify_inner_name): Use it.
6084 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
6085 and TYPE_TARGET_TYPE of an enum type.
6086 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
6087 an enum type.
6088 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
6089 handle TYPE_DECLARED_CLASS.
6090 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
6091 types.
6092 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
6093 * valops.c (enum_constant_from_type): New function.
6094 (value_aggregate_elt): Use it.
6095 * cp-namespace.c (cp_lookup_nested_symbol): Handle
6096 TYPE_CODE_ENUM.
6097
c848d642
TT
60982014-04-14 Tom Tromey <tromey@redhat.com>
6099
6100 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
6101 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
6102 const.
6103 * value.h (value_aggregate_elt): Update.
6104
0626fc76
TT
61052014-04-14 Tom Tromey <tromey@redhat.com>
6106
6107 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
6108
5ecaaa66
SA
61092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6110
6111 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6112 (evaluate_subexp_standard): Pass noside argument.
6113 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6114 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6115 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6116 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6117 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6118
1612e0c0
SA
61192014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6120
6121 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6122 points to a constant blob.
6123
c451ebe5
SA
61242014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6125
6126 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6127 property and store it as the high bound and flag the range accordingly.
6128 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6129 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6130 * gdbtypes.h (enum range_flags): New enum.
6131 (struct range_bounds): Add flags member.
6132
1d42e4c4
SA
61332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6134
6135 * c-typeprint.c (c_type_print_varspec_suffix): Added
6136 check for not yet resolved high bound. If unresolved, print
6137 "variable length" string to the console instead of random
6138 length.
6139
9f1f738a
SA
61402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6141
6142 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6143 value.
6144 (ada_template_to_fixed_record_type_1): Likewise.
6145 (ada_to_fixed_type_1): Likewise.
6146 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6147 (cp_print_value): Likewise.
6148 * d-valprint.c (dynamic_array_type): Likewise.
6149 * findvar.c (address_of_variable): Likewise.
6150 * jv-valprint.c (java_value_print): Likewise.
6151 * valops.c (value_ind): Likewise.
6152 * value.c (coerce_ref): Likewise.
6153
3c8452d4
SA
61542014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6155
6156 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6157 value and retrieve the dynamic type size.
6158
4ad88275
SA
61592014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6160
6161 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6162 passed to sizeof is dynamic evaluate the argument to compute the length.
6163
80180f79
SA
61642014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6165 Joel Brobecker <brobecker@adacore.com>
6166
6167 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6168 (dwarf2_evaluate_property): New function.
6169 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6170 * dwarf2read.c (attr_to_dynamic_prop): New function.
6171 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6172 attribute.
6173 * gdbtypes.c: Include dwarf2loc.h.
6174 (is_dynamic_type): New function.
6175 (resolve_dynamic_type): New function.
6176 (resolve_dynamic_bounds): New function.
6177 (get_type_length): New function.
6178 (check_typedef): Use get_type_length to compute type length.
6179 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6180 (TYPE_LOW_BOUND_KIND): New macro.
6181 (is_dynamic_type): New function prototype.
6182 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6183 to resolve dynamic properties of the type. Update comment.
6184 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6185
a1556843
RH
61862014-04-14 Richard Henderson <rth@redhat.com>
6187
6188 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6189
0be03e84
DE
61902014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6191 Doug Evans <xdje42@gmail.com>
6192
6193 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6194 dereference TYPE_CODE_REF values.
6195
6b662e19
JB
61962014-04-11 Joel Brobecker <brobecker@adacore.com>
6197
6198 Revert the following changes due to regressions:
6199
6200 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6201 (dwarf2_evaluate_property): New function.
6202 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6203 * dwarf2read.c (attr_to_dynamic_prop): New function.
6204 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6205 attribute.
6206 * gdbtypes.c: Include dwarf2loc.h.
6207 (is_dynamic_type): New function.
6208 (resolve_dynamic_type): New function.
6209 (resolve_dynamic_bounds): New function.
6210 (get_type_length): New function.
6211 (check_typedef): Use get_type_length to compute type length.
6212 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6213 (TYPE_LOW_BOUND_KIND): New macro.
6214 (is_dynamic_type): New function prototype.
6215 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6216 to resolve dynamic properties of the type. Update comment.
6217 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6218
6219 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6220 passed to sizeof is dynamic evaluate the argument to compute the length.
6221
6222 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6223 value and retrieve the dynamic type size.
6224
6225 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6226 (ada_template_to_fixed_record_type_1): Likewise.
6227 (ada_to_fixed_type_1): Likewise.
6228 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6229 (cp_print_value): Likewise.
6230 * d-valprint.c (dynamic_array_type): Likewise.
6231 * eval.c (evaluate_subexp_with_coercion): Likewise.
6232 * findvar.c (address_of_variable): Likewise.
6233 * jv-valprint.c (java_value_print): Likewise.
6234 * valops.c (value_ind): Likewise.
6235 * value.c (coerce_ref): Likewise.
6236
6237 * c-typeprint.c (c_type_print_varspec_suffix): Added
6238 check for not yet resolved high bound. If unresolved, print
6239 "variable length" string to the console instead of random
6240 length.
6241
6242 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6243 property and store it as the high bound and flag the range accordingly.
6244 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6245 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6246 * gdbtypes.h (enum range_flags): New enum.
6247 (struct range_bounds): Add flags member.
6248
6249 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6250 points to a constant blob.
6251
6252 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6253 (evaluate_subexp_standard): Pass noside argument.
6254 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6255 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6256 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6257 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6258 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6259
245a5f0b
KS
62602014-04-11 Keith Seitz <keiths@redhat.com>
6261
6262 PR c++/16675
6263 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6264 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6265 reference types.
6266
3bce8237
SA
62672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6268
6269 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6270 (evaluate_subexp_standard): Pass noside argument.
6271 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6272 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6273 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6274 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6275 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6276
92b09522
SA
62772014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6278
6279 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6280 points to a constant blob.
6281
e1969afb
SA
62822014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6283
6284 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6285 property and store it as the high bound and flag the range accordingly.
6286 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6287 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6288 * gdbtypes.h (enum range_flags): New enum.
6289 (struct range_bounds): Add flags member.
6290
b86138fb
SA
62912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6292
6293 * c-typeprint.c (c_type_print_varspec_suffix): Added
6294 check for not yet resolved high bound. If unresolved, print
6295 "variable length" string to the console instead of random
6296 length.
6297
bcd629a4
SA
62982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6299
6300 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6301 (ada_template_to_fixed_record_type_1): Likewise.
6302 (ada_to_fixed_type_1): Likewise.
6303 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6304 (cp_print_value): Likewise.
6305 * d-valprint.c (dynamic_array_type): Likewise.
6306 * eval.c (evaluate_subexp_with_coercion): Likewise.
6307 * findvar.c (address_of_variable): Likewise.
6308 * jv-valprint.c (java_value_print): Likewise.
6309 * valops.c (value_ind): Likewise.
6310 * value.c (coerce_ref): Likewise.
6311
04b19544
SA
63122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6313
6314 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6315 value and retrieve the dynamic type size.
6316
26cb189f
SA
63172014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6318
6319 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6320 passed to sizeof is dynamic evaluate the argument to compute the length.
6321
37c1ab67
SA
63222014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6323
6324 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6325 (dwarf2_evaluate_property): New function.
6326 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6327 * dwarf2read.c (attr_to_dynamic_prop): New function.
6328 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6329 attribute.
6330 * gdbtypes.c: Include dwarf2loc.h.
6331 (is_dynamic_type): New function.
6332 (resolve_dynamic_type): New function.
6333 (resolve_dynamic_bounds): New function.
6334 (get_type_length): New function.
6335 (check_typedef): Use get_type_length to compute type length.
6336 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6337 (TYPE_LOW_BOUND_KIND): New macro.
6338 (is_dynamic_type): New function prototype.
6339 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6340 to resolve dynamic properties of the type. Update comment.
6341 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6342
729efb13
SA
63432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6344
6345 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6346 declaring high/low bounds and change uses accordingly. Call
6347 create_range_type instead of create_static_range_type.
6348 * gdbtypes.c (create_range_type): New function.
6349 (create_range_type): Convert bounds into struct bound_prop and pass
6350 them to create_range_type.
6351 * gdbtypes.h (struct bound_prop): New struct.
6352 (create_range_type): New function prototype.
6353 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6354 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6355 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6356 part of the bound.
6357 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6358
0c9c3474
SA
63592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6360
6361 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6362 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6363 * ada-lang.c: All uses of create_range_type updated.
6364 * coffread.c: All uses of create_range_type updated.
6365 * dwarf2read.c: All uses of create_range_type updated.
6366 * f-exp.y: All uses of create_range_type updated.
6367 * m2-valprint.c: All uses of create_range_type updated.
6368 * mdebugread.c: All uses of create_range_type updated.
6369 * stabsread.c: All uses of create_range_type updated.
6370 * valops.c: All uses of create_range_type updated.
6371 * valprint.c: All uses of create_range_type updated.
6372
9d497a19
PA
63732014-04-10 Pedro Alves <palves@redhat.com>
6374
6375 * breakpoint.c (single_step_breakpoints)
6376 (single_step_gdbarch): Move up in the file.
6377 (one_breakpoint_xfer_memory): New function, factored out from ...
6378 (breakpoint_xfer_memory): ... here. Also process single-step
6379 breakpoints.
6380
15a9128a
TG
63812014-04-09 Tristan Gingold <gingold@adacore.com>
6382
6383 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6384 comments.
6385 (darwin_decode_exception_message): Free port only after use.
6386
9c97a070
PL
63872014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6388
6389 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6390 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6391 when setting the size of call_length.
6392
7af389b8
SC
63932014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6394
6395 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6396 dereference TYPE_CODE_REF values.
6397
86ad98c3
JB
63982014-04-07 Joel Brobecker <brobecker@adacore.com>
6399
6400 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6401 end of warning message.
6402
b0aeadb3
DE
64032014-04-03 Doug Evans <dje@google.com>
6404
6405 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6406 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6407
5979d6b6
AM
64082014-04-02 Alan Modra <amodra@gmail.com>
6409
6410 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6411 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6412 (struct symbol_file_add_from_memory_args): Add size field.
6413 (find_vdso_size): New function.
6414 (add_vsyscall_page): Attempt to find vdso size.
6415
0d60c288
DE
64162014-04-01 Doug Evans <dje@google.com>
6417
6418 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6419
a41f2563
TG
64202014-04-01 Tristan Gingold <gingold@adacore.com>
6421
6422 * darwin-nat.c (darwin_encode_reply): Add prototype.
6423 (darwin_decode_exception_message): Reply to unknown inferiors.
6424 (darwin_decode_message): Handle message by id. Ignore message
6425 to unknown inferior.
6426 (darwin_wait): Discard unknown messages, add debug trace.
6427
11a865c8
DE
64282014-03-31 Doug Evans <dje@google.com>
6429
6430 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6431 comp_dir_string.
6432
770e7fc7
DE
64332014-03-31 Doug Evans <dje@google.com>
6434
6435 New option "set print symbol-loading".
6436 * NEWS: Mention it.
6437 * solib.c (solib_read_symbols): Only print symbol loading messages
6438 if requested.
6439 (solib_add): If symbol loading is in "brief" mode, notify user
6440 symbols are being loaded.
6441 (reload_shared_libraries_1): Ditto.
6442 * symfile.c (print_symbol_loading_off): New static global.
6443 (print_symbol_loading_brief): New static global.
6444 (print_symbol_loading_full): New static global.
6445 (print_symbol_loading_enums): New static global.
6446 (print_symbol_loading): New static global.
6447 (print_symbol_loading_p): New function.
6448 (symbol_file_add_with_addrs): Only print symbol loading messages
6449 if requested.
6450 (_initialize_symfile): Register "print symbol-loading" set/show
6451 command.
6452 * symfile.h (print_symbol_loading_p): Declare.
6453
c32c64b7
DE
64542014-03-30 Doug Evans <xdje42@gmail.com>
6455
6456 * infrun.c (set_last_target_status): New function.
6457 (handle_inferior_event): Call it.
6458
7c0bc051
DE
64592014-03-30 Doug Evans <xdje42@gmail.com>
6460
6461 * inferior.h (enum stop_kind): Improve comment.
6462
8776cfe9
JB
64632014-03-28 Joel Brobecker <brobecker@adacore.com>
6464
6465 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6466 a reference, strip the reference layer before calling
6467 the lang_ops value_has_mutated callback.
6468
410a0ff2
SDJ
64692014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6470
6471 Remove some globals from our parser.
6472 * language.c (unk_lang_parser): Add "struct parser_state"
6473 argument.
6474 * language.h (struct language_defn) <la_parser>: Likewise.
6475 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6476 (initialize_expout): Add "struct parser_state" argument.
6477 Rewrite function to use the parser state.
6478 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6479 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6480 write_exp_elt_longcst, write_exp_elt_dblcst,
6481 write_exp_elt_decfloatcst, write_exp_elt_type,
6482 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6483 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6484 write_dollar_variable): Likewise.
6485 (parse_exp_in_context_1): Use parser state.
6486 (insert_type_address_space): Add "struct parser_state" argument.
6487 Use parser state.
6488 (increase_expout_size): New function.
6489 * parser-defs.h: Forward declare "struct language_defn" and
6490 "struct parser_state".
6491 (expout, expout_size, expout_ptr): Remove extern declarations.
6492 (parse_gdbarch, parse_language): Rewrite macro declarations to
6493 accept the parser state.
6494 (struct parser_state): New struct.
6495 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6496 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6497 write_exp_elt_decfloatcst, write_exp_elt_type,
6498 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6499 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6500 write_exp_msymbol, write_dollar_variable,
6501 mark_struct_expression, insert_type_address_space): Add "struct
6502 parser_state" argument.
6503 (increase_expout_size): New function.
6504 * utils.c (do_clear_parser_state): New function.
6505 (make_cleanup_clear_parser_state): Likewise.
6506 * utils.h (make_cleanup_clear_parser_state): New function
6507 prototype.
6508 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6509 Update calls to write_exp* in order to pass the parser state.
6510 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6511 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6512 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6513 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6514 * stap-probe.c (stap_parse_register_operand): Likewise.
6515 (stap_parse_single_operand): Likewise.
6516 (stap_parse_argument_1): Likewise.
6517 (stap_parse_argument): Use parser state.
6518 * stap-probe.h: Include "parser-defs.h".
6519 (struct stap_parse_info) <pstate>: New field.
6520 * c-exp.y (parse_type): Rewrite to use parser state.
6521 (yyparse): Redefine to c_parse_internal.
6522 (pstate): New global variable.
6523 (parse_number): Add "struct parser_state" argument.
6524 (write_destructor_name): Likewise.
6525 (type_exp): Update calls to write_exp* and similars in order to
6526 use parser state.
6527 (exp1, exp, variable, qualified_name, space_identifier,
6528 typename, typebase): Likewise.
6529 (write_destructor_name, parse_number, lex_one_token,
6530 classify_name, classify_inner_name, c_parse): Add "struct
6531 parser_state" argument. Update function to use parser state.
6532 * c-lang.h: Forward declare "struct parser_state".
6533 (c_parse): Add "struct parser_state" argument.
6534 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6535 (yyparse): Redefine macro to ada_parse_internal.
6536 (pstate): New variable.
6537 (write_int, write_object_renaming, write_var_or_type,
6538 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6539 type_int, type_long, type_long_long, type_float, type_double,
6540 type_long_double, type_char, type_boolean, type_system_address):
6541 Add "struct parser_state" argument.
6542 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6543 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6544 var_or_type, aggregate, aggregate_component_list,
6545 positional_list, others, component_group,
6546 component_associations): Update calls to write_exp* and similar
6547 functions in order to use parser state.
6548 (ada_parse, write_var_from_sym, write_int,
6549 write_exp_op_with_string, write_object_renaming,
6550 find_primitive_type, write_selectors, write_ambiguous_var,
6551 write_var_or_type, write_name_assoc, type_int, type_long,
6552 type_long_long, type_float, type_double, type_long_double,
6553 type_char, type_boolean, type_system_address): Add "struct
6554 parser_state" argument. Adjust function to use parser state.
6555 * ada-lang.c (parse): Likewise.
6556 * ada-lang.h: Forward declare "struct parser_state".
6557 (ada_parse): Add "struct parser_state" argument.
6558 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6559 calls to both functions.
6560 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6561 parser state.
6562 (yyparse): Redefine macro to f_parse_internal.
6563 (pstate): New variable.
6564 (parse_number): Add "struct parser_state" argument.
6565 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6566 and similars in order to use parser state.
6567 (parse_number): Adjust code to use parser state.
6568 (yylex): Likewise.
6569 (f_parse): New function.
6570 * f-lang.h: Forward declare "struct parser_state".
6571 (f_parse): Add "struct parser_state" argument.
6572 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6573 parser state.
6574 (yyparse): Redefine macro for java_parse_internal.
6575 (pstate): New variable.
6576 (push_expression_name, push_expression_name, insert_exp): Add
6577 "struct parser_state" argument.
6578 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6579 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6580 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6581 PostIncrementExpression, PostDecrementExpression,
6582 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6583 UnaryExpressionNotPlusMinus, CastExpression,
6584 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6585 RelationalExpression, EqualityExpression, AndExpression,
6586 ExclusiveOrExpression, InclusiveOrExpression,
6587 ConditionalAndExpression, ConditionalOrExpression,
6588 ConditionalExpression, Assignment, LeftHandSide): Update
6589 calls to write_exp* and similars in order to use parser state.
6590 (parse_number): Ajust code to use parser state.
6591 (yylex): Likewise.
6592 (java_parse): New function.
6593 (push_variable): Add "struct parser_state" argument. Adjust
6594 code to user parser state.
6595 (push_fieldnames, push_qualified_expression_name,
6596 push_expression_name, insert_exp): Likewise.
6597 * jv-lang.h: Forward declare "struct parser_state".
6598 (java_parse): Add "struct parser_state" argument.
6599 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6600 parser state.
6601 (yyparse): Redefine macro to m2_parse_internal.
6602 (pstate): New variable.
6603 (type_exp, exp, fblock, variable, type): Update calls to
6604 write_exp* and similars to use parser state.
6605 (yylex): Likewise.
6606 (m2_parse): New function.
6607 * m2-lang.h: Forward declare "struct parser_state".
6608 (m2_parse): Add "struct parser_state" argument.
6609 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6610 * objc-lang.h: Forward declare "struct parser_state".
6611 (end_msglist): Add "struct parser_state" argument.
6612 * p-exp.y (parse_type): Rewrite macro to use parser state.
6613 (yyparse): Redefine macro to pascal_parse_internal.
6614 (pstate): New variable.
6615 (parse_number): Add "struct parser_state" argument.
6616 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6617 write_exp* and similars in order to use parser state.
6618 (parse_number, yylex): Adjust code to use parser state.
6619 (pascal_parse): New function.
6620 * p-lang.h: Forward declare "struct parser_state".
6621 (pascal_parse): Add "struct parser_state" argument.
6622 * go-exp.y (parse_type): Rewrite macro to use parser state.
6623 (yyparse): Redefine macro to go_parse_internal.
6624 (pstate): New variable.
6625 (parse_number): Add "struct parser_state" argument.
6626 (type_exp, exp1, exp, variable, type): Update calls to
6627 write_exp* and similars in order to use parser state.
6628 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6629 to use parser state.
6630 (go_parse): Likewise.
6631 * go-lang.h: Forward declare "struct parser_state".
6632 (go_parse): Add "struct parser_state" argument.
6633
342587c4
DE
66342014-03-27 Doug Evans <dje@google.com>
6635
6636 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6637
33e80786
DE
66382014-03-27 Doug Evans <dje@google.com>
6639
6640 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6641 Remove argument abbrev_section. All callers updated.
6642
1dbab08b
DE
66432014-03-27 Doug Evans <dje@google.com>
6644
6645 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6646 addr_base, ranges_base.
6647
318d3177
KS
66482014-03-26 Keith Seitz <keiths@redhat.com>
6649
6650 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6651 types, not VAR_DOMAIN.
6652
1e54db15
SL
66532014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6654
6655 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6656 "ra" registers.
6657 * features/nios2-linux.c: Regenerated.
6658 * features/nios2.c: Regenerated.
6659
d3839ede
PA
66602014-03-25 Pedro Alves <palves@redhat.com>
6661
6662 * cli/cli-script.c (script_from_file): Force the interpreter to
6663 sync mode.
6664
7588d2ec
PL
66652014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6666
6667 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6668 small stack allocation.
6669
a6290449
TG
66702014-03-24 Tristan Gingold <gingold@adacore.com>
6671
6672 * darwin-nat.c (exc_server): Remove unused prototype.
6673 (darwin_dump_message): Correctly display data on x86_64.
6674 (darwin_encode_reply): Fix style.
6675 Add comments and fix indentation.
6676
31ae9d24 66772014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6678
6679 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6680
6339bfc4
DE
66812014-03-22 Doug Evans <xdje42@gmail.com>
6682
6683 * infcmd.c: Whitespace fixes.
6684 (interrupt_command): Merge two function comments into one.
6685
0a07590b
DE
66862014-03-22 Doug Evans <xdje42@gmail.com>
6687
6688 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6689 All uses updated.
6690
b55fbac4
YQ
66912014-03-22 Yao Qi <yao@codesourcery.com>
6692
6693 * remote.c (target_read_live_memory): Remove.
6694 (memory_xfer_live_readonly_partial): Rename it to
6695 remote_xfer_live_readonly_partial. Remove argument 'object'.
6696 All callers updated. Call remote_read_bytes_1
6697 instead of target_read_live_memory.
6698 * tracepoint.c (set_traceframe_number): Remove.
6699 (make_cleanup_restore_traceframe_number): Likewise .
6700 * tracepoint.h (set_traceframe_number): Remove declaration.
6701 (make_cleanup_restore_traceframe_number): Likewise.
6702
9217e74e
YQ
67032014-03-22 Yao Qi <yao@codesourcery.com>
6704
6705 * remote.c (remote_read_bytes): Move code on reading from the
6706 remote stub to ...
6707 (remote_read_bytes_1): ... here. New function.
6708
8acf9577
YQ
67092014-03-22 Yao Qi <yao@codesourcery.com>
6710
6711 * ctf.c (ctf_xfer_partial): Check the return value of
6712 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6713 return TARGET_XFER_UNAVAILABLE.
6714 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6715 * target.c (target_read_live_memory): Move it to remote.c.
6716 (memory_xfer_live_readonly_partial): Likewise.
6717 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6718 * remote.c (target_read_live_memory): Moved from target.c.
6719 (memory_xfer_live_readonly_partial): Likewise.
6720 (remote_read_bytes): Factored out from
6721 memory_xfer_partial_1.
6722
feef67ab
DE
67232014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6724
6725 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6726 NULL pointer.
6727
b65dc60b
PA
67282014-03-21 Pedro Alves <palves@redhat.com>
6729
6730 * infrun.c (normal_stop): Extend comment.
6731
b4ab256d
HZ
67322014-03-21 Hui Zhu <hui@codesourcery.com>
6733 Pedro Alves <palves@redhat.com>
6734
6735 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6736 static buffer.
6737 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6738 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6739 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6740
deba7593
MR
67412014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6742
6743 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6744 `z' formatted output modifier.
6745
1bff71c3
SDJ
67462014-03-20 Tom Tromey <tromey@redhat.com>
6747 Sergio Durigan Junior <sergiodj@redhat.com>
6748
6749 * probe.c (parse_probes): Turn assert into an ordinary error.
6750 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6751 exceptions when parsing probes. Rearrange the code for clarity.
6752
90e28950
TT
67532014-03-20 Tom Tromey <tromey@redhat.com>
6754
6755 PR gdb/14135
6756 * top.c (execute_command): Only dispatch events if the command
6757 started the target.
6758
beb460e8
PA
67592014-03-20 Tom Tromey <tromey@redhat.com>
6760
6761 PR cli/15718
6762 * infcall.c: Include event-top.h.
6763 (run_inferior_call): Call async_disable_stdin if needed.
6764
99619bea
PA
67652014-03-20 Pedro Alves <palves@redhat.com>
6766
6767 * infrun.c (prepare_to_proceed): Delete.
6768 (thread_still_needs_step_over): New function.
6769 (find_thread_needs_step_over): New function.
6770 (proceed): If the current thread needs a step-over, set its
6771 steping_over_breakpoint flag. Adjust to use
6772 find_thread_needs_step_over instead of prepare_to_proceed.
6773 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6774 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6775 breakpoint.
6776 (switch_back_to_stepped_thread): Step over breakpoints of all
6777 threads not the stepping thread, before switching back to the
6778 stepping thread.
6779
2adfaa28
PA
67802014-03-20 Pedro Alves <palves@redhat.com>
6781
6782 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6783 extern.
6784 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6785 * infrun.c (saved_singlestep_ptid)
6786 (stepping_past_singlestep_breakpoint): Delete.
6787 (resume): Remove stepping_past_singlestep_breakpoint handling.
6788 (proceed): Store the prev_pc of the stepping thread too.
6789 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6790 singlestep_pc.
6791 (enum infwait_states): Delete infwait_thread_hop_state.
6792 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6793 field.
6794 (handle_inferior_event): Adjust.
6795 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6796 handling and the thread-hop code. Before removing single-step
6797 breakpoints, check whether the thread hit a single-step breakpoint
6798 of another thread. If it did, the trap is not a random signal.
6799 (switch_back_to_stepped_thread): If the event thread hit a
6800 single-step breakpoint, unblock it before switching to the
6801 stepping thread. Handle the case of the stepped thread having
6802 advanced already.
6803 (keep_going): Handle the case of the current thread moving past a
6804 single-step breakpoint.
6805
31e77af2
PA
68062014-03-20 Pedro Alves <palves@redhat.com>
6807
6808 PR breakpoints/7143
6809 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6810 are being stepped over.
6811 (breakpoint_address_match): Make extern.
6812 * breakpoint.h (breakpoint_address_match): New declaration.
6813 * inferior.h (stepping_past_instruction_at): New declaration.
6814 * infrun.c (struct step_over_info): New type.
6815 (step_over_info): New global.
6816 (set_step_over_info, clear_step_over_info)
6817 (stepping_past_instruction_at): New functions.
6818 (handle_inferior_event): Clear the step-over info when
6819 trap_expected is cleared.
6820 (resume): Remove now stale comment.
6821 (clear_proceed_status): Clear step-over info.
6822 (proceed): Adjust step-over handling to set or clear the step-over
6823 info instead of removing all breakpoints.
6824 (handle_signal_stop): When setting up a thread-hop, don't remove
6825 breakpoints here.
6826 (stop_stepping): Clear step-over info.
6827 (keep_going): Adjust step-over handling to set or clear step-over
6828 info and then always inserting breakpoints, instead of removing
6829 all breakpoints when stepping over one.
6830
b9f437de
PA
68312014-03-20 Pedro Alves <palves@redhat.com>
6832
6833 * infrun.c (previous_inferior_ptid): Adjust comment.
6834 (deferred_step_ptid): Delete.
6835 (infrun_thread_ptid_changed, prepare_to_proceed)
6836 (init_wait_for_inferior): Adjust.
6837 (handle_signal_stop): Delete deferred_step_ptid handling.
6838
06c868a8
JK
68392014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6840
6841 PR gdb/15358
6842 * defs.h (sync_quit_force_run): New declaration.
6843 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6844 * event-top.c (async_sigterm_handler): New declaration.
6845 (async_sigterm_token): New variable.
6846 (async_init_signals): Create also async_sigterm_token.
6847 (async_sigterm_handler): New function.
6848 (sync_quit_force_run): New variable.
6849 (handle_sigterm): Replace quit_force call by other calls.
6850 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6851
dea80df0
MR
68522014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6853
6854 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6855 offset into SPE pseudo registers.
6856
0c7e1a46
PA
68572014-03-18 Pedro Alves <palves@redhat.com>
6858
6859 PR gdb/13860
6860 * inferior.h (print_stop_event): Declare.
6861 * infrun.c (print_stop_event): New, factored out from ...
6862 (normal_stop): ... this.
6863 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6864 of bpstat_print/print_stack_frame.
6865
9c1fcd01
TT
68662014-03-17 Tom Tromey <tromey@redhat.com>
6867
6868 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6869
11aa919a
PMR
68702014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6871
6872 * ada-lang.c (decode_constrained_packed_array): Perform a
6873 minimal coercion for reference with coerce_ref instead of
6874 ada_coerce_ref.
6875
d4ccb5e0
TG
68762014-03-17 Tristan Gingold <gingold@adacore.com>
6877
6878 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6879 (darwin_solib_create_inferior_hook): Emit a warning if version
6880 is unhandled.
6881
49840f2a
UW
68822014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6883
6884 * python/py-value.c (get_field_flag): Cast flag_name argument to
6885 PyObject_GetAttrString to support Python 2.4.
6886
ed4123e5
JK
68872014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6888
6889 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6890 (Global Maintainers): Remove Jan Kratochvil.
6891
d6b64346
PA
68922014-03-14 Pedro Alves <palves@redhat.com>
6893
6894 * inferior.h (terminal_ours_for_output): Rename to ...
6895 (child_terminal_ours_for_output): ... this.
6896 (terminal_save_ours): Rename to ...
6897 (child_terminal_save_ours): ... this.
6898 (terminal_ours): Rename to ...
6899 (child_terminal_ours): ... this.
6900 (terminal_inferior): Rename to ...
6901 (child_terminal_inferior): ... this.
6902 (terminal_init_inferior): Rename to ...
6903 (child_terminal_init_inferior): ... this.
6904 (terminal_init_inferior_with_pgrp): Rename to ...
6905 (child_terminal_init_inferior_with_pgrp): ... this.
6906 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6907 (child_terminal_init_with_pgrp): ... this.
6908 (terminal_save_ours): Rename to ...
6909 (child_terminal_save_ours): ... this.
6910 (terminal_init_inferior): Rename to ...
6911 (child_terminal_init): ... this. Adjust.
6912 (terminal_inferior): Rename to ...
6913 (child_terminal_inferior): ... this.
6914 (terminal_ours_for_output): Rename to ...
6915 (child_terminal_ours_for_output): ... this. Adjust.
6916 (terminal_ours): Rename to ...
6917 (child_terminal_ours): ... this.
6918 (terminal_ours_1): Rename to ...
6919 (child_terminal_ours_1): ... this. Adjust.
6920 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6921 * windows-nat.c (do_initial_windows_stuff): Adjust.
6922 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6923 (gnu_terminal_init): ... this. Adjust.
6924 (gnu_target): Adjust.
6925 * inf-child.c (inf_child_target): Adjust.
6926
5a1e8c7a
DE
69272014-03-13 Doug Evans <xdje42@gmail.com>
6928
6929 PR guile/16612
6930 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6931 new eq?-hashtab.
6932
350e1a76
DE
69332014-03-13 Doug Evans <xdje42@gmail.com>
6934
6935 * value.c (record_latest_value): Call release_value_or_incref
6936 instead of release_value.
6937
a69900ae
PA
69382014-03-13 Pedro Alves <palves@redhat.com>
6939
6940 * procfs.c (procfs_target): Don't override to_shortname,
6941 to_longname or to_doc.
6942
5db9f0bd
PA
69432014-03-13 Pedro Alves <palves@redhat.com>
6944
6945 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6946 Unix in user visible strings.
6947
5e3a2c38
SS
69482014-03-12 Stan Shebs <stan@codesourcery.com>
6949
6950 * gdbtypes.h: Annotate comments for Doxygen, add a page
6951 block comment with some general info.
6952
8bc2fe48
PA
69532014-03-12 Pedro Alves <palves@redhat.com>
6954
6955 * infcmd.c (prepare_execution_command): New function, factored out
6956 from several execution commands.
6957 (run_command_1, continue_command, step_1, jump_command)
6958 (signal_command, until_command, advance_command, finish_command)
6959 (attach_command): Use prepare_execution_command.
6960
638c5f49
OJ
69612014-03-12 Omair Javaid <omair.javaid@linaro.org>
6962
6963 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6964 (MAX_BPTS): Define.
6965 (MAX_WPTS): Define.
6966 (struct arm_linux_thread_points): Removed.
6967 (struct arm_linux_process_info): New.
6968 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6969 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6970 (arm_linux_find_breakpoints_by_tid): Removed.
6971 (struct arch_lwp_info): New.
6972 (arm_linux_find_process_pid): New functions.
6973 (arm_linux_add_process): New functions.
6974 (arm_linux_process_info_get): New functions.
6975 (arm_linux_forget_process): New function.
6976 (arm_linux_get_debug_reg_state): New function.
6977 (struct update_registers_data): New.
6978 (update_registers_callback): New function.
6979 (arm_linux_insert_hw_breakpoint1): Updated.
6980 (arm_linux_remove_hw_breakpoint1): Updated.
6981 (arm_linux_insert_hw_breakpoint): Updated.
6982 (arm_linux_remove_hw_breakpoint): Updated.
6983 (arm_linux_insert_watchpoint): Updated.
6984 (arm_linux_remove_watchpoint): Updated.
6985 (arm_linux_new_thread): Updated.
6986 (arm_linux_prepare_to_resume): New function.
6987 (arm_linux_new_fork): New function.
6988 (_initialize_arm_linux_nat): Updated.
6989
6d03af93
PA
69902014-03-12 Pedro Alves <palves@redhat.com>
6991
6992 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6993
b3ccfe11
TT
69942014-03-12 Tom Tromey <tromey@redhat.com>
6995
6996 * inf-child.c (return_zero): New function.
6997 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6998 * aix-thread.c (aix_thread_inferior_created): New function.
6999 (aix_thread_attach): Remove.
7000 (init_aix_thread_ops): Don't set to_attach.
7001 (_initialize_aix_thread): Register inferior_created observer.
7002 * corelow.c (init_core_ops): Don't set to_attach or
7003 to_create_inferior.
7004 * exec.c (init_exec_ops): Don't set to_attach or
7005 to_create_inferior.
7006 * infcmd.c (run_command_1): Use find_run_target. Make direct
7007 target calls.
7008 (attach_command): Use find_attach_target. Make direct target
7009 calls.
7010 * record-btrace.c (init_record_btrace_ops): Don't set
7011 to_create_inferior.
7012 * record-full.c (record_full_can_async_p, record_full_is_async_p):
7013 Remove.
7014 (init_record_full_ops, init_record_full_core_ops): Update. Don't
7015 set to_create_inferior.
7016 * target.c (complete_target_initialization): Add assertion.
7017 (target_create_inferior): Remove.
7018 (find_default_attach, find_default_create_inferior): Remove.
7019 (find_attach_target, find_run_target): New functions.
7020 (find_default_is_async_p, find_default_can_async_p)
7021 (target_supports_non_stop, target_attach): Remove.
7022 (init_dummy_target): Don't set to_create_inferior or
7023 to_supports_non_stop.
7024 * target.h (struct target_ops) <to_attach>: Add comment. Remove
7025 TARGET_DEFAULT_FUNC.
7026 <to_create_inferior>: Add comment.
7027 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
7028 TARGET_DEFAULT_RETURN.
7029 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
7030 (find_attach_target, find_run_target): Declare.
7031 (target_create_inferior): Remove.
7032 (target_has_execution_1): Update comment.
7033 (target_supports_non_stop): Remove.
7034 * target-delegates.c: Rebuild.
7035
91f83b02
PA
70362014-03-12 Pedro Alves <palves@redhat.com>
7037
7038 * inf-child.h: Update comment to not mention Unix.
7039
f1aea813
PA
70402014-03-12 Pedro Alves <palves@redhat.com>
7041
7042 * inf-child.c: Update top comment to not mention Unix. Add
7043 generic comment describing how this target is meant to be used.
7044 (inf_child_post_attach, inf_child_post_startup_inferior)
7045 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
7046 Unix in comment.
7047
ee8e9165
PA
70482014-03-12 Pedro Alves <palves@redhat.com>
7049
7050 * nto-procfs.c: Include inf-child.h.
7051 (procfs_ops): Delete global.
7052 (procfs_can_run): Delete method.
7053 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
7054 target pointer instead of referencing procfs_ops.
7055 (procfs_prepare_to_store): Delete.
7056 (init_procfs_ops): Delete function.
7057 (procfs_target): New function, based on init_procfs_ops, but
7058 inherit inf_child_target.
7059 (_initialize_procfs): Use procfs_target.
7060
51a9c8c5
PA
70612014-03-12 Pedro Alves <palves@redhat.com>
7062
7063 * windows-nat.c: Include inf-child.h.
7064 (windows_ops): Delete global.
7065 (windows_open, windows_prepare_to_store, windows_can_run): Delete
7066 methods.
7067 (init_windows_ops): Delete function.
7068 (windows_target): New function, based on init_windows_ops, but
7069 inherit inf_child_target.
7070 (_initialize_windows_nat): Use windows_target. Install x86
7071 specific target methods here.
7072
c1966e26
DE
70732014-03-10 Doug Evans <xdje42@gmail.com>
7074
7075 * guile/guile.c (call_initialize_gdb_module): New function.
7076 (initialize_guile): Replace call to scm_init_guile with call to
7077 scm_with_guile.
7078
023db19c
JB
70792014-03-10 Joel Brobecker <brobecker@adacore.com>
7080
7081 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
7082 in call to TYPE_CODE macro.
7083
5ec18f2b
JG
70842014-03-10 Jerome Guitton <guitton@adacore.com>
7085
8668be63
JB
7086 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
7087 Resolve tagged types to full view.
5ec18f2b 7088
7d03f2eb
HZ
70892014-03-10 Hui Zhu <hui@codesourcery.com>
7090
7091 * target.h (target_insert_breakpoint): Remove "hardware" from its
7092 comments.
7093
c5164cbc
DE
70942014-03-07 Doug Evans <dje@google.com>
7095
7096 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
7097
c4a3fee2
DE
70982014-03-07 Doug Evans <dje@google.com>
7099
7100 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
7101 Remove unused local comp_dir_attr. Assert exactly one of
7102 stub_comp_unit_die, stub_comp_dir is non-NULL.
7103
3156469c
JB
71042014-03-07 Joel Brobecker <brobecker@adacore.com>
7105
7106 * target.h (complete_target_initialization, add_target):
7107 Add comment.
7108
c1a7b7c6
PA
71092014-03-07 Pedro Alves <palves@redhat.com>
7110
7111 * go32-nat.c: Include inf-child.h.
7112 (go32_ops): Delete global.
7113 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
7114 Delete methods.
7115 (go32_create_inferior): Push the passed in target pointer instead
7116 of referencing go32_ops.
7117 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
7118 (go32_target): New function, based on init_go32_ops, but inherit
7119 inf_child_target.
7120 (_initialize_go32_nat): Use go32_target. Move parts of
7121 init_go32_ops here.
7122
d3c1a85f
JB
71232014-03-06 Joel Brobecker <brobecker@adacore.com>
7124
7125 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
7126 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
7127 SYMBOL_VALUE_ADDRESS.
7128 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7129
5fa1d40e
YQ
71302014-03-06 Yao Qi <yao@codesourcery.com>
7131
7132 * breakpoint.c (get_tracepoint_by_number): Remove argument
7133 optional_p. All callers updated. Adjust comments. Update
7134 output message.
7135 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7136
0c13193f
YQ
71372014-03-06 Yao Qi <yao@codesourcery.com>
7138
7139 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7140 early if get_number returns zero. Use 'p' instead of 'args'.
7141
2217da06
YQ
71422014-03-06 Yao Qi <yao@codesourcery.com>
7143
7144 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7145 message.
7146
cc3da688
YQ
71472014-03-06 Yao Qi <yao@codesourcery.com>
7148
7149 PR breakpoints/16508
7150 * tracepoint.c (check_trace_running): New function.
7151 (trace_find_command): Move code to check_trace_running and
7152 call check_trace_running.
7153 (trace_find_pc_command): Likewise.
7154 (trace_find_tracepoint_command): Likewise.
7155 (trace_find_line_command): Likewise.
7156 (trace_find_range_command): Likewise.
7157 * tracepoint.h (check_trace_running): Likewise.
7158 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7159
6a5f844b
YQ
71602014-03-06 Yao Qi <yao@codesourcery.com>
7161
7162 * target.h (struct target_ops) <to_traceframe_info>: Use
7163 TARGET_DEFAULT_NORETURN (tcomplain ()).
7164 * target-delegates.c: Regenerated.
7165
0f26cec1
PA
71662014-03-05 Pedro Alves <palves@redhat.com>
7167
7168 PR gdb/16575
7169 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7170 void. Update comment.
7171 (dcache_xfer_memory): Delete.
7172 (dcache_read_memory_partial): New, based on the read bits of
7173 dcache_xfer_memory.
7174 (dcache_update): Add status parameter. Use ULONGEST for len, and
7175 adjust. Discard cache lines if the reason for the update was
7176 error.
7177 * dcache.h (dcache_xfer_memory): Delete declaration.
7178 (dcache_read_memory_partial): New declaration.
7179 (dcache_update): Update prototype.
7180 * target.c (raw_memory_xfer_partial): Update the dcache here.
7181 (memory_xfer_partial_1): Don't handle dcache writes here.
7182
b2b255bd
MF
71832014-03-05 Mike Frysinger <vapier@gentoo.org>
7184
7185 * remote-sim.c (gdbsim_load): Add const to prog.
7186
5d9cf8a4
TT
71872014-03-03 Tom Tromey <tromey@redhat.com>
7188
7189 * elfread.c (probe_key): Change to bfd_data.
7190 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7191 now per-BFD, not per-objfile.
7192 * stap-probe.c (stap_probe_destroy): Update comment.
7193 (handle_stap_probe): Allocate on the per-BFD obstack.
7194
729662a5
TT
71952014-03-03 Tom Tromey <tromey@redhat.com>
7196
7197 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7198 * breakpoint.c (create_longjmp_master_breakpoint): Use
7199 get_probe_address.
7200 (add_location_to_breakpoint, bkpt_probe_insert_location)
7201 (bkpt_probe_remove_location): Update.
7202 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7203 * elfread.c (elf_symfile_relocate_probe): Remove.
7204 (elf_probe_fns): Update.
7205 (insert_exception_resume_breakpoint): Change type of "probe"
7206 parameter to bound_probe.
7207 (check_exception_resume): Update.
7208 * objfiles.c (objfile_relocate1): Don't relocate probes.
7209 * probe.c (bound_probe_s): New typedef.
7210 (parse_probes): Use get_probe_address. Set sal's objfile.
7211 (find_probe_by_pc): Return a bound_probe.
7212 (collect_probes): Return a VEC(bound_probe_s).
7213 (compare_probes): Update.
7214 (gen_ui_out_table_header_info): Change type of "probes"
7215 parameter. Update.
7216 (info_probes_for_ops): Update.
7217 (get_probe_address): New function.
7218 (probe_safe_evaluate_at_pc): Update.
7219 * probe.h (struct probe_ops) <get_probe_address>: New field.
7220 <set_semaphore, clear_semaphore>: Add objfile parameter.
7221 (struct probe) <objfile>: Remove field.
7222 <arch>: New field.
7223 <address>: Update comment.
7224 (struct bound_probe): New.
7225 (find_probe_by_pc): Return a bound_probe.
7226 (get_probe_address): Declare.
7227 * solib-svr4.c (struct probe_and_action) <address>: New field.
7228 (hash_probe_and_action, equal_probe_and_action): Update.
7229 (register_solib_event_probe): Add address parameter.
7230 (solib_event_probe_at): Update.
7231 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7232 get_probe_address.
7233 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7234 (stap_get_probe_address): New function.
7235 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7236 (compile_probe_arg): Update.
7237 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7238 address.
7239 (handle_stap_probe): Don't relocate the probe.
7240 (stap_relocate): Remove.
7241 (stap_gen_info_probes_table_values): Update.
7242 (stap_probe_ops): Remove stap_relocate.
7243 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7244 (debug_sym_probe_fns): Update.
7245 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7246 * symtab.c (init_sal): Use memset.
7247 * symtab.h (struct symtab_and_line) <objfile>: New field.
7248 * tracepoint.c (start_tracing, stop_tracing): Update.
7249
ff887920
TT
72502014-03-03 Tom Tromey <tromey@redhat.com>
7251
7252 * probe.h (parse_probes, find_probe_by_pc)
7253 (find_probes_in_objfile): Fix comments.
7254
f0407826
DE
72552014-03-02 Doug Evans <xdje42@gmail.com>
7256
7257 * infrun.c (handle_signal_stop): Replace test for
7258 TARGET_WAITKIND_STOPPED with an assert.
7259
35e6a711
DE
72602014-03-02 Doug Evans <xdje42@gmail.com>
7261
7262 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7263
667f9d0b
DE
72642014-03-02 Doug Evans <xdje42@gmail.com>
7265
7266 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7267
dc92ace0
MK
72682014-03-01 Mark Kettenis <kettenis@gnu.org>
7269
7270 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7271
a900370f
MK
72722014-03-01 Mark Kettenis <kettenis@gnu.org>
7273
7274 * i386obsd-nat.c: Include "obsd-nat.h".
7275 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7276 add_target.
7277 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7278
b72a7981
MK
72792014-03-01 Mark Kettenis <kettenis@gnu.org>
7280
7281 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7282
96c70aba
MK
72832014-03-01 Mark Kettenis <kettenis@gnu.org>
7284
7285 * mips64obsd-nat.c: Include "obsd-nath".
7286 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7287 add_target
7288 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7289
874a80af
MK
72902014-03-01 Mark Kettenis <kettenis@gnu.org>
7291
8fd408f1
MK
7292 * amd64obsd-nat.c: Include "obsd-nat,h.
7293 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7294 add_target.
874a80af
MK
7295 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7296
9cf95373
SC
72972014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7298
7299 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7300 (find_overload_match): Update call to find_oload_champ.
7301 (find_oload_champ_namespace_loop): Likewise
7302
863e4da4
MK
73032014-02-28 Mark Kettenis <kettenis@gnu.org>
7304
025cac40
MK
7305 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7306
1ed586ce
MK
7307 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7308 * config/sparc/obsd64.mh: New file.
7309 * sparc64obsd-nat.c: New file.
7310
863e4da4
MK
7311 * obsd-nat.h: New file.
7312 * obsd-nat.c: New file.
7313 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7314 (ALLDEPFILES): Add obsd-nat.c.
7315
89de4da4
TT
73162014-02-28 Tom Tromey <tromey@redhat.com>
7317
7318 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7319 * cli-out.h (cli_ui_out_impl): Now const.
7320 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7321 * ui-out.c (struct ui_out) <impl>: Now const.
7322 (default_ui_out_impl): Now const.
7323 (ui_out_new): Make 'impl' parameter const.
7324 * ui-out.h (ui_out_new): Update.
7325
c725e7b6
MK
73262014-02-27 Mark Kettenis <kettenis@gnu.org>
7327
7328 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7329
670b46b3
MK
73302014-02-27 Mark Kettenis <kettenis@gnu.org>
7331
7332 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7333
c91550fc
JK
73342014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7335
7336 Additional PR 8882 fix.
7337 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7338
2fa0369e
PA
73392014-02-27 Pedro Alves <palves@redhat.com>
7340
7341 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7342 isn't set.
7343
d632a097
PA
73442014-02-27 Pedro Alves <palves@redhat.com>
7345
7346 PR 12702
7347 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7348 * nat/linux-waitpid.c: Include string.h.
7349 (status_to_str): Moved here and made extern.
7350 * nat/linux-waitpid.h (status_to_str): New declaration.
7351
2ebd5a35
HZ
73522014-02-27 Hui Zhu <hui@codesourcery.com>
7353
7354 PR 12702
7355 * infrun.c (ptid_match): Move ...
7356 * common/ptid.c (ptid_match): ... here.
7357 * inferior.h (ptid_match): Move ...
7358 * common/ptid.h (ptid_match): ... here.
7359
3cdd631f
MK
73602014-02-27 Mark Kettenis <kettenis@gnu.org>
7361
7362 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7363 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7364 gdb_target_obs.
7365
bee30a64
MK
73662014-02-27 Mark Kettenis <kettenis@gnu.org>
7367
7368 * obsd-tdep.c (obsd_auxv_parse): New function.
7369 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7370
7371 * gdbarch.sh (auxv_parse): New.
7372 * gdbarch.h: Regenerated.
7373 * gdbarch.c: Regenerated.
7374 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7375
7a5a839f
LC
73762014-02-26 Ludovic Courtès <ludo@gnu.org>
7377
7378 * guile/scm-value.c (gdbscm_history_append_x): New function.
7379 (value_functions): Add it.
7380
31aa7e4e
JB
73812014-02-27 Joel Brobecker <brobecker@adacore.com>
7382
7383 * dwarf2read.c (attr_value_as_address): New function.
7384 (dwarf2_find_base_address, read_call_site_scope): Use
7385 attr_value_as_address in place of DW_ADDR.
7386 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7387 the low and high addresses. Slight rework of the handling
7388 of the high pc being a constant form, and limit it to
7389 DWARF verson 4 or higher.
7390 (dwarf2_record_block_ranges): Likewise.
7391 (read_partial_die): Likewise.
7392 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7393
9b333ba3
TT
73942014-02-26 Tom Tromey <tromey@redhat.com>
7395
7396 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7397
5f6cac40
TT
73982014-02-26 Tom Tromey <tromey@redhat.com>
7399
7400 * elfread.c (elf_read_minimal_symbols): Return early if
7401 minimal symbols have already been read. Add "ei" parameter.
7402 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7403 * minsyms.c (prim_record_minimal_symbol_full): Update.
7404 * objfiles.h (struct objstats) <n_minsyms>: Move...
7405 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7406 * symmisc.c (print_objfile_statistics): Update.
7407
2750ef27
TT
74082014-02-26 Tom Tromey <tromey@redhat.com>
7409
7410 * elfread.c (elf_read_minimal_symbols): New function, from
7411 elf_symfile_read.
7412 (elf_symfile_read): Call it.
7413
34643a32
TT
74142014-02-26 Tom Tromey <tromey@redhat.com>
7415
7416 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7417 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7418 (lookup_minimal_symbol_solib_trampoline)
7419 (lookup_minimal_symbol_by_pc_section_1)
7420 (lookup_minimal_symbol_and_objfile): Update.
7421 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7422 Don't allocate a minimal symbol if minsyms have already been read.
7423 (build_minimal_symbol_hash_tables): Update.
7424 (install_minimal_symbols): Do nothing if minsyms already read.
7425 Use the per-BFD obstack.
7426 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7427 * objfiles.c (allocate_objfile): Call
7428 terminate_minimal_symbol_table later.
7429 (have_minimal_symbols): Update.
7430 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7431 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7432 Move from struct objfile.
7433 <minsyms_read>: New field.
7434 (struct objfile) <msymbols, minimal_symbol_count,
7435 msymbol_hash, msymbol_demangled_hash>: Move.
7436 (ALL_OBJFILE_MSYMBOLS): Update.
7437 * symfile.c (read_symbols): Set minsyms_read.
7438 (reread_symbols): Update.
7439 * symmisc.c (dump_objfile, dump_msymbols): Update.
7440
2273f0ac
TT
74412014-02-26 Tom Tromey <tromey@redhat.com>
7442
7443 * minsyms.c (msymbols_sort): Remove.
7444 * minsyms.h (msymbols_sort): Remove.
7445 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7446 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7447 * elfread.c (elf_symtab_read): Don't add section offsets.
7448 * xcoffread.c (record_minimal_symbol): Don't add section offset
7449 to minimal symbol address.
7450 * somread.c (text_offset, data_offset): Remove.
7451 (som_symtab_read): Don't add section offsets to minimal symbol
7452 addresses.
7453 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7454 Don't add section offsets to minimal symbols.
7455 * coffread.c (coff_symtab_read): Don't add section offsets
7456 to minimal symbol addresses.
7457 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7458 to minimal symbol addresses.
7459 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7460 section offset to minimal symbol addresses.
7461 * mdebugread.c (parse_partial_symbols): Don't add section
7462 offset to minimal symbol addresses.
7463 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7464 offset to minimal symbol addresses.
7465
77e371c0
TT
74662014-02-26 Tom Tromey <tromey@redhat.com>
7467
7468 * ada-lang.c (ada_main_name): Update.
7469 (ada_add_standard_exceptions): Update.
7470 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7471 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7472 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7473 * auxv.c (ld_so_xfer_auxv): Update.
7474 * avr-tdep.c (avr_scan_prologue): Update.
7475 * ax-gdb.c (gen_var_ref): Update.
7476 * blockframe.c (get_pc_function_start)
7477 (find_pc_partial_function_gnu_ifunc): Update.
7478 * breakpoint.c (create_overlay_event_breakpoint)
7479 (create_longjmp_master_breakpoint)
7480 (create_std_terminate_master_breakpoint)
7481 (create_exception_master_breakpoint): Update.
7482 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7483 * c-valprint.c (c_val_print): Update.
7484 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7485 * common/agent.c (agent_look_up_symbols): Update.
7486 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7487 * dwarf2loc.c (call_site_to_target_addr): Update.
7488 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7489 * elfread.c (elf_gnu_ifunc_record_cache)
7490 (elf_gnu_ifunc_resolve_by_got): Update.
7491 * findvar.c (default_read_var_value): Update.
7492 * frame.c (inside_main_func): Update.
7493 * frv-tdep.c (frv_frame_this_id): Update.
7494 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7495 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7496 Update.
7497 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7498 (hppa_hpux_find_dummy_bpaddr): Update.
7499 * hppa-tdep.c (hppa_symbol_address): Update.
7500 * infcmd.c (until_next_command): Update.
7501 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7502 Update.
7503 * linespec.c (minsym_found, add_minsym): Update.
7504 * linux-nat.c (get_signo): Update.
7505 * linux-thread-db.c (inferior_has_bug): Update.
7506 * m32c-tdep.c (m32c_return_value)
7507 (m32c_m16c_address_to_pointer): Update.
7508 * m32r-tdep.c (m32r_frame_this_id): Update.
7509 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7510 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7511 * maint.c (maintenance_translate_address): Update.
7512 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7513 (frob_address): New function.
7514 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7515 frob_address. Rename parameter to "pc_in".
7516 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7517 addresses.
7518 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7519 Update.
7520 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7521 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7522 * objc-lang.c (find_objc_msgsend): Update.
7523 * objfiles.c (objfile_relocate1): Update.
7524 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7525 * p-valprint.c (pascal_val_print): Update.
7526 * parse.c (write_exp_msymbol): Update.
7527 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7528 (ppc_elfv2_skip_entrypoint): Update.
7529 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7530 * printcmd.c (build_address_symbolic, msym_info)
7531 (address_info): Update.
7532 * proc-service.c (ps_pglobal_lookup): Update.
7533 * psymtab.c (find_pc_sect_psymtab_closer)
7534 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7535 Change msymbol parameter to bound_minimal_symbol.
7536 * ravenscar-thread.c (get_running_thread_id): Update.
7537 * remote.c (remote_check_symbols): Update.
7538 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7539 address.
7540 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7541 * solib-dsbt.c (lm_base): Update.
7542 * solib-frv.c (lm_base, main_got): Update.
7543 * solib-irix.c (locate_base): Update.
7544 * solib-som.c (som_solib_create_inferior_hook)
7545 (link_map_start): Update.
7546 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7547 * solib-svr4.c (elf_locate_base, enable_break): Update.
7548 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7549 (flush_ea_cache): Update.
7550 * stabsread.c (define_symbol, scan_file_globals): Update.
7551 * stack.c (find_frame_funname): Update.
7552 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7553 (debug_qf_find_pc_sect_symtab): Update.
7554 * symfile.c (simple_read_overlay_table)
7555 (simple_overlay_update): Update.
7556 * symfile.h (struct quick_symbol_functions)
7557 <find_pc_sect_symtab>: Change type of msymbol to
7558 bound_minimal_symbol.
7559 * symmisc.c (dump_msymbols): Update.
7560 * symtab.c (find_pc_sect_symtab_via_partial)
7561 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7562 (search_symbols, print_msymbol_info): Update.
7563 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7564 (MSYMBOL_VALUE_ADDRESS): Redefine.
7565 (BMSYMBOL_VALUE_ADDRESS): New macro.
7566 * tracepoint.c (scope_info): Update.
7567 * tui/tui-disasm.c (tui_find_disassembly_address)
7568 (tui_get_begin_asm_address): Update.
7569 * valops.c (find_function_in_inferior): Update.
7570 * value.c (value_static_field, value_fn_field): Update.
7571
3b7344d5
TT
75722014-02-26 Tom Tromey <tromey@redhat.com>
7573
7574 * ada-lang.c (ada_update_initial_language): Update.
7575 (ada_main_name, ada_has_this_exception_support): Update.
7576 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7577 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7578 * arm-tdep.c (arm_skip_stub): Update.
7579 * auxv.c (ld_so_xfer_auxv): Update.
7580 * avr-tdep.c (avr_scan_prologue): Update.
7581 * ax-gdb.c (gen_var_ref): Update.
7582 * breakpoint.c (struct breakpoint_objfile_data)
7583 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7584 type to bound_minimal_symbol.
7585 (create_overlay_event_breakpoint)
7586 (create_longjmp_master_breakpoint)
7587 (create_std_terminate_master_breakpoint)
7588 (create_exception_master_breakpoint): Update.
7589 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7590 * c-exp.y (classify_name): Update.
7591 * coffread.c (coff_symfile_read): Update.
7592 * common/agent.c (agent_look_up_symbols): Update.
7593 * d-lang.c (d_main_name): Update.
7594 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7595 * dec-thread.c (enable_dec_thread): Update.
7596 * dwarf2loc.c (call_site_to_target_addr): Update.
7597 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7598 * eval.c (evaluate_subexp_standard): Update.
7599 * findvar.c (struct minsym_lookup_data) <result>: Change type
7600 to bound_minimal_symbol.
7601 <objfile>: Remove.
7602 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7603 * frame.c (inside_main_func): Update.
7604 * frv-tdep.c (frv_frame_this_id): Update.
7605 * gcore.c (call_target_sbrk): Update.
7606 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7607 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7608 Update.
7609 * go-lang.c (go_main_name): Update.
7610 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7611 (hppa_hpux_find_import_stub_for_addr): Update.
7612 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7613 Update. Change return type.
7614 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7615 type.
7616 * jit.c (jit_breakpoint_re_set_internal): Update.
7617 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7618 Update.
7619 * linux-nat.c (get_signo): Update.
7620 * linux-thread-db.c (inferior_has_bug): Update
7621 * m32c-tdep.c (m32c_return_value)
7622 (m32c_m16c_address_to_pointer): Update.
7623 * m32r-tdep.c (m32r_frame_this_id): Update.
7624 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7625 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7626 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7627 lookup_minimal_symbol. Change return type.
7628 (lookup_minimal_symbol): Remove.
7629 (lookup_bound_minimal_symbol): Update.
7630 (lookup_minimal_symbol_text): Change return type.
7631 (lookup_minimal_symbol_solib_trampoline): Change return type.
7632 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7633 (lookup_minimal_symbol_solib_trampoline): Change return type.
7634 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7635 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7636 (value_nsstring, find_imps): Update.
7637 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7638 * p-lang.c (pascal_main_name): Update.
7639 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7640 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7641 * proc-service.c (ps_pglobal_lookup): Update.
7642 * ravenscar-thread.c (get_running_thread_msymbol): Change
7643 return type.
7644 (has_ravenscar_runtime, get_running_thread_id): Update.
7645 * remote.c (remote_check_symbols): Update.
7646 * sol-thread.c (ps_pglobal_lookup): Update.
7647 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7648 * solib-dsbt.c (lm_base): Update.
7649 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7650 Update.
7651 * solib-irix.c (locate_base): Update.
7652 * solib-som.c (som_solib_create_inferior_hook)
7653 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7654 Update.
7655 * solib-spu.c (spu_enable_break): Update.
7656 * solib-svr4.c (elf_locate_base, enable_break): Update.
7657 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7658 (flush_ea_cache): Update.
7659 * stabsread.c (define_symbol): Update.
7660 * symfile.c (simple_read_overlay_table): Update.
7661 * symtab.c (find_pc_sect_line): Update.
7662 * tracepoint.c (scope_info): Update.
7663 * tui-disasm.c (tui_get_begin_asm_address): Update.
7664 * value.c (value_static_field): Update.
7665
40c1a007
TT
76662014-02-26 Tom Tromey <tromey@redhat.com>
7667
7668 * minsyms.c (prim_record_minimal_symbol_full): Use
7669 SET_MSYMBOL_VALUE_ADDRESS.
7670 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7671 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7672 SET_MSYMBOL_VALUE_ADDRESS.
7673 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7674 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7675
efd66ac6
TT
76762014-02-26 Tom Tromey <tromey@redhat.com>
7677
7678 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7679 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7680 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7681 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7682 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7683 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7684 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7685 * ada-lang.c (ada_main_name): Update.
7686 (ada_lookup_simple_minsym): Update.
7687 (ada_make_symbol_completion_list): Update.
7688 (ada_add_standard_exceptions): Update.
7689 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7690 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7691 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7692 * arm-tdep.c (skip_prologue_function): Update.
7693 (arm_skip_stack_protector, arm_skip_stub): Update.
7694 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7695 (arm_wince_skip_main_prologue): Update.
7696 * auxv.c (ld_so_xfer_auxv): Update.
7697 * avr-tdep.c (avr_scan_prologue): Update.
7698 * ax-gdb.c (gen_var_ref): Update.
7699 * block.c (call_site_for_pc): Update.
7700 * blockframe.c (get_pc_function_start): Update.
7701 (find_pc_partial_function_gnu_ifunc): Update.
7702 * breakpoint.c (create_overlay_event_breakpoint): Update.
7703 (create_longjmp_master_breakpoint): Update.
7704 (create_std_terminate_master_breakpoint): Update.
7705 (create_exception_master_breakpoint): Update.
7706 (resolve_sal_pc): Update.
7707 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7708 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7709 Update.
7710 * c-valprint.c (c_val_print): Update.
7711 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7712 * coffread.c (coff_symfile_read): Update.
7713 * common/agent.c (agent_look_up_symbols): Update.
7714 * dbxread.c (find_stab_function_addr): Update.
7715 (end_psymtab): Update.
7716 * dwarf2loc.c (call_site_to_target_addr): Update.
7717 (func_verify_no_selftailcall): Update.
7718 (tailcall_dump): Update.
7719 (call_site_find_chain_1): Update.
7720 (dwarf_expr_reg_to_entry_parameter): Update.
7721 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7722 (elf_gnu_ifunc_resolve_by_got): Update.
7723 * f-valprint.c (info_common_command): Update.
7724 * findvar.c (read_var_value): Update.
7725 * frame.c (get_prev_frame_1): Update.
7726 (inside_main_func): Update.
7727 * frv-tdep.c (frv_skip_main_prologue): Update.
7728 (frv_frame_this_id): Update.
7729 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7730 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7731 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7732 (gnuv3_skip_trampoline): Update.
7733 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7734 (hppa64_hpux_in_solib_call_trampoline): Update.
7735 (hppa_hpux_skip_trampoline_code): Update.
7736 (hppa64_hpux_search_dummy_call_sequence): Update.
7737 (hppa_hpux_find_import_stub_for_addr): Update.
7738 (hppa_hpux_find_dummy_bpaddr): Update.
7739 * hppa-tdep.c (hppa_symbol_address)
7740 (hppa_lookup_stub_minimal_symbol): Update.
7741 * i386-tdep.c (i386_skip_main_prologue): Update.
7742 (i386_pe_skip_trampoline_code): Update.
7743 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7744 * infcall.c (get_function_name): Update.
7745 * infcmd.c (until_next_command): Update.
7746 * jit.c (jit_breakpoint_re_set_internal): Update.
7747 (jit_inferior_init): Update.
7748 * linespec.c (minsym_found): Update.
7749 (add_minsym): Update.
7750 * linux-fork.c (info_checkpoints_command): Update.
7751 * linux-nat.c (get_signo): Update.
7752 * linux-thread-db.c (inferior_has_bug): Update.
7753 * m32c-tdep.c (m32c_return_value): Update.
7754 (m32c_m16c_address_to_pointer): Update.
7755 (m32c_m16c_pointer_to_address): Update.
7756 * m32r-tdep.c (m32r_frame_this_id): Update.
7757 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7758 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7759 * maint.c (maintenance_translate_address): Update.
7760 * minsyms.c (add_minsym_to_hash_table): Update.
7761 (add_minsym_to_demangled_hash_table): Update.
7762 (msymbol_objfile): Update.
7763 (lookup_minimal_symbol): Update.
7764 (iterate_over_minimal_symbols): Update.
7765 (lookup_minimal_symbol_text): Update.
7766 (lookup_minimal_symbol_by_pc_name): Update.
7767 (lookup_minimal_symbol_solib_trampoline): Update.
7768 (lookup_minimal_symbol_by_pc_section_1): Update.
7769 (lookup_minimal_symbol_and_objfile): Update.
7770 (prim_record_minimal_symbol_full): Update.
7771 (compare_minimal_symbols): Update.
7772 (compact_minimal_symbols): Update.
7773 (build_minimal_symbol_hash_tables): Update.
7774 (install_minimal_symbols): Update.
7775 (terminate_minimal_symbol_table): Update.
7776 (find_solib_trampoline_target): Update.
7777 (minimal_symbol_upper_bound): Update.
7778 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7779 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7780 (mips_skip_pic_trampoline_code): Update.
7781 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7782 * objc-lang.c (selectors_info): Update.
7783 (classes_info): Update.
7784 (find_methods): Update.
7785 (find_imps): Update.
7786 (find_objc_msgsend): Update.
7787 * objfiles.c (objfile_relocate1): Update.
7788 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7789 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7790 * p-valprint.c (pascal_val_print): Update.
7791 * parse.c (write_exp_msymbol): Update.
7792 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7793 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7794 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7795 * printcmd.c (build_address_symbolic): Update.
7796 (sym_info): Update.
7797 (address_info): Update.
7798 * proc-service.c (ps_pglobal_lookup): Update.
7799 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7800 (find_pc_sect_psymtab): Update.
7801 * python/py-framefilter.c (py_print_frame): Update.
7802 * ravenscar-thread.c (get_running_thread_id): Update.
7803 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7804 Update.
7805 * remote.c (remote_check_symbols): Update.
7806 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7807 (rs6000_skip_trampoline_code): Update.
7808 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7809 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7810 * solib-dsbt.c (lm_base): Update.
7811 * solib-frv.c (lm_base): Update.
7812 (main_got): Update.
7813 * solib-irix.c (locate_base): Update.
7814 * solib-som.c (som_solib_create_inferior_hook): Update.
7815 (som_solib_desire_dynamic_linker_symbols): Update.
7816 (link_map_start): Update.
7817 * solib-spu.c (spu_enable_break): Update.
7818 (ocl_enable_break): Update.
7819 * solib-svr4.c (elf_locate_base): Update.
7820 (enable_break): Update.
7821 * spu-tdep.c (spu_get_overlay_table): Update.
7822 (spu_catch_start): Update.
7823 (flush_ea_cache): Update.
7824 * stabsread.c (define_symbol): Update.
7825 (scan_file_globals): Update.
7826 * stack.c (find_frame_funname): Update.
7827 (frame_info): Update.
7828 * symfile.c (simple_read_overlay_table): Update.
7829 (simple_overlay_update): Update.
7830 * symmisc.c (dump_msymbols): Update.
7831 * symtab.c (fixup_section): Update.
7832 (find_pc_sect_line): Update.
7833 (skip_prologue_sal): Update.
7834 (search_symbols): Update.
7835 (print_msymbol_info): Update.
7836 (rbreak_command): Update.
7837 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7838 (completion_list_objc_symbol): Update.
7839 (default_make_symbol_completion_list_break_on): Update.
7840 * tracepoint.c (scope_info): Update.
7841 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7842 (tui_get_begin_asm_address): Update.
7843 * valops.c (find_function_in_inferior): Update.
7844 * value.c (value_static_field): Update.
7845 (value_fn_field): Update.
7846
50e65b17
TT
78472014-02-26 Tom Tromey <tromey@redhat.com>
7848
7849 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7850 bound minimal symbols. Move code that knows about minsym
7851 table layout...
7852 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7853 function.
7854 * minsyms.h (minimal_symbol_upper_bound): Declare.
7855 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7856 minimal_symbol_upper_bound.
7857
1b588015
JB
78582014-02-27 Joel Brobecker <brobecker@adacore.com>
7859
7860 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7861 Use the type's name if its basic type does not have a tag.
7862
dbb9c2b1
JB
78632014-02-27 Joel Brobecker <brobecker@adacore.com>
7864
7865 * dwarf2read.c (read_subrange_type): Add comment.
7866
55426c9d
JB
78672014-02-27 Joel Brobecker <brobecker@adacore.com>
7868
7869 * dwarf2read.c (update_enumeration_type_from_children): New
7870 function, mostly extracted from process_structure_scope.
7871 (read_enumeration_type): Call update_enumeration_type_from_children.
7872 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7873 and flag_flag_enum fields.
7874
f2fce0ca
PA
78752014-02-26 Pedro Alves <palves@redhat.com>
7876
7877 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7878 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7879 to_xfer_partial method.
7880
7a44e40e
PA
78812014-02-26 Pedro Alves <palves@redhat.com>
7882
7883 * target.c (complete_target_initialization): Don't install
7884 default_xfer_partial as to_xfer_partial hook.
7885 (nomemory): Delete.
7886 (update_current_target): Don't INHERIT nor de_fault
7887 deprecated_xfer_memory. Delete de_fault macro.
7888 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7889 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7890 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7891 field.
7892
bd265cd0
PA
78932014-02-26 Pedro Alves <palves@redhat.com>
7894
7895 * go32-nat.c (my_write_child): New function.
7896 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7897 (go32_xfer_partial): New function.
7898 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7899 Instead install a to_xfer_partial hook.
7900
9d46c4e5
PA
79012014-02-26 Pedro Alves <palves@redhat.com>
7902
7903 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7904 to_xfer_partial helper. Rewrite.
7905 (procfs_xfer_partial): New function.
7906 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7907 Install a to_xfer_partial hook.
7908
a1583b1f
PA
79092014-02-26 Pedro Alves <palves@redhat.com>
7910
7911 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7912 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7913 (m32r_xfer_partial): New function.
7914 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7915 Install a to_xfer_partial hook.
7916
6df1b29f
PA
79172014-02-26 Pedro Alves <palves@redhat.com>
7918
7919 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7920 helper.
7921 (mips_xfer_partial): New function.
7922 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7923 hook. Install a to_xfer_partial hook.
7924
dc53a7ad
JB
79252014-02-26 Joel Brobecker <brobecker@adacore.com>
7926
7927 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7928 * gdbtypes.c (create_array_type_with_stride): New function,
7929 renaming create_array_type, but with an added parameter
7930 called "bit_stride".
7931 (create_array_type): Re-implement using
7932 create_array_type_with_stride.
7933 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7934 and DW_AT_bit_stride attributes.
7935
12ab52e9
PA
79362014-02-26 Pedro Alves <palves@redhat.com>
7937
7938 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7939 task-specific breakpoints.
7940
d16461ae
PA
79412014-02-25 Pedro Alves <palves@redhat.com>
7942
7943 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7944 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7945
a8b16220
SS
79462014-02-25 Stan Shebs <stan@codesourcery.com>
7947
7948 * defs.h: Annotate comments for Doxygen.
7949
b9e795ee
TT
79502014-02-25 Tom Tromey <tromey@redhat.com>
7951
7952 * target.h (target_ignore): Don't declare.
7953 * target.c (target_ignore): Remove.
7954
849c862e
JK
79552014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7956
7957 PR gdb/16626
7958 * auto-load.c (auto_load_objfile_script_1): Change filename to
7959 debugfile.
7960
475109d8
JB
79612014-02-25 Joel Brobecker <brobecker@adacore.com>
7962
7963 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7964 documentation. Adjust prototype to match the target_ops
7965 to_xfer_partial method. Adjust implementation accordingly.
7966
e186c3bd
HZ
79672014-02-25 Hui Zhu <hui@codesourcery.com>
7968
7969 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7970 to_traceframe_info.
7971
6d451942
KB
79722014-02-25 Kevin Buettner <kevinb@redhat.com>
7973
041ab8b4 7974 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7975 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7976 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7977 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7978 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7979 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7980 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7981 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7982 New constants.
7983 (rl78_register_type): Use a data pointer type for SP and
7984 new pseudo registers mentioned above. Use a 16 bit integer
7985 type for all other register pairs.
7986 (rl78_register_name, rl78_g10_register_name): Update for
7987 new pseudo registers.
7988 (rl78_pseudo_register_read): Likewise.
7989 (rl78_pseudo_register_write): Likewise.
7990 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7991 to the newly added pseudo registers.
7992
eddf0bae
DE
79932014-02-24 Doug Evans <dje@google.com>
7994
7995 * value.c (record_latest_value): Fix comment.
7996 * printcmd.c (print_command_1): Remove code to handle -1 return from
7997 record_latest_value.
7998
e96027e0
PA
79992014-02-24 Pedro Alves <palves@redhat.com>
8000
8001 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
8002 deprecated_xfer_memory hook.
8003 (procfs_xfer_partial): Call procfs_xfer_memory instead
8004 of the deprecated_xfer_memory target hook.
8005 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
8006 helper.
8007
0837c976
YZ
80082014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
8009
8010 * windows-nat.c (windows_xfer_shared_libraries): Return
8011 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
8012 requested object is TARGET_OBJECT_LIBRARIES.
8013
bc113b4e
YQ
80142014-02-24 Yao Qi <yao@codesourcery.com>
8015
8016 * target.h (enum target_xfer_status)
8017 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
8018 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
8019 explicitly. New.
8020 * corefile.c (memory_error_message): User updated.
8021 * exec.c (section_table_read_available_memory): Likewise.
8022 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8023 * target.c (target_xfer_status_to_string): Likewise.
8024 (raw_memory_xfer_partial): Likewise.
8025 (memory_xfer_partial_1, target_xfer_partial): Likewise.
8026 * valops.c (read_value_memory): Likewise.
8027 * exec.h: Update comments.
8028
01cb8804
YQ
80292014-02-24 Yao Qi <yao@codesourcery.com>
8030
8031 * target.c (target_xfer_status_to_string): Rename argument err
8032 to status.
8033 * target.h (target_xfer_status_to_string): Update declaration.
8034 Replace target_xfer_error_to_string with
8035 target_xfer_status_to_string in comment.
8036
93063aa6
YQ
80372014-02-24 Yao Qi <yao@codesourcery.com>
8038
8039 * mips-linux-nat.c (super_close): Update its type.
8040 (mips_linux_close): Pass 'self' to super_close.
8041
5c328c05
YQ
80422014-02-24 Yao Qi <yao@codesourcery.com>
8043
8044 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
8045 * corefile.c (read_memory): Adjusted.
8046 * target.c (target_write_with_progress): Adjusted.
8047
f73023dd
YQ
80482014-02-23 Yao Qi <yao@codesourcery.com>
8049
8050 Revert two patches:
8051
8052 2013-10-25 Yao Qi <yao@codesourcery.com>
8053
8054 * remote.c (remote_traceframe_info): Return early if
8055 traceframe is not selected.
8056
8057 2013-07-19 Yao Qi <yao@codesourcery.com>
8058
8059 * target.c (update_current_target): Change the default action
8060 of 'to_traceframe_info' from tcomplain to return_zero.
8061 * target.h (struct target_ops) <to_traceframe_info>: Add more
8062 comments.
8063
5a2eb0ef
YQ
80642014-02-23 Yao Qi <yao@codesourcery.com>
8065
8066 * valops.c (read_value_memory): Rewrite it. Call
8067 target_xfer_partial in a loop.
8068 * exec.h (section_table_available_memory): Remove declaration.
8069 Move comments to ...
8070 * exec.c (section_table_available_memory): ... here. Make it
8071 static.
8072
1ee79381
YQ
80732014-02-23 Yao Qi <yao@codesourcery.com>
8074
8075 * exec.c (section_table_read_available_memory): New function.
8076 * exec.h (section_table_read_available_memory): Declare.
8077 * ctf.c (ctf_xfer_partial): Call
8078 section_table_read_available_memory.
8079 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8080
1ca49d37
YQ
80812014-02-23 Yao Qi <yao@codesourcery.com>
8082
8083 * ctf.c (ctf_xfer_partial): Move code to ...
8084 * exec.c (exec_read_partial_read_only): ... it. New function.
8085 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
8086 * tracefile.c: Include "exec.h".
8087 * exec.h (exec_read_partial_read_only): Declare.
8088
a283690e
YQ
80892014-02-23 Yao Qi <yao@codesourcery.com>
8090
8091 * tracefile-tfile.c (tfile_has_all_memory): Remove.
8092 (tfile_has_memory): Remove.
8093 (init_tfile_ops): Don't set fields to_has_all_memory and
8094 to_has_memory of tfile_ops.
8095 * tracefile.c (tracefile_has_all_memory): New function.
8096 (tracefile_has_memory): New function.
8097 (init_tracefile_ops): Initialize fields to_has_all_memory and
8098 to_has_memory of 'ops'.
8099
12e03cd0
YQ
81002014-02-23 Yao Qi <yao@codesourcery.com>
8101
8102 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
8103 (ctf_thread_alive, ctf_get_trace_status): Remove.
8104 (init_ctf_ops): Don't set some fields of ctf_ops. Call
8105 init_tracefile_ops.
8106 * tracefile-tfile.c (tfile_get_trace_status): Remove.
8107 (tfile_has_stack, tfile_has_registers): Remove.
8108 (tfile_thread_alive): Remove.
8109 (init_tfile_ops): Don't set some fields of tfile_ops. Call
8110 init_tracefile_ops.
8111 * tracefile.c (tracefile_has_stack): New function.
8112 (tracefile_has_registers): New function.
8113 (tracefile_thread_alive): New function.
8114 (tracefile_get_trace_status): New function.
8115 (init_tracefile_ops): New function.
8116 * tracefile.h (init_tracefile_ops): Declare.
8117
11395323
YQ
81182014-02-23 Yao Qi <yao@codesourcery.com>
8119
8120 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
8121 (O_LARGEFILE): Likewise.
8122 (tfile_ops): Likewise.
8123 (TRACE_HEADER_SIZE): Likewise.
8124 (trace_fd, trace_frames_offset, cur_offset): Likewise.
8125 (cur_data_size): Likewise.
8126 (tfile_read, tfile_open, tfile_interp_line): Likewise.
8127 (tfile_close, tfile_files_info): Likewise.
8128 (tfile_get_trace_status): Likewise.
8129 (tfile_get_tracepoint_status): Likewise.
8130 (tfile_get_traceframe_address): Likewise.
8131 (tfile_trace_find, match_blocktype): Likewise.
8132 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8133 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8134 (tfile_get_trace_state_variable_value): Likewise.
8135 (tfile_has_all_memory, tfile_has_memory): Likewise.
8136 (tfile_has_stack, tfile_has_registers): Likewise.
8137 (tfile_thread_alive, build_traceframe_info): Likewise.
8138 (tfile_traceframe_info, init_tfile_ops): Likewise.
8139 (_initialize_tracepoint): Don't call init_tfile_ops
8140 and add_target_with_completer.
8141 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8142 exec.h, completer.h and filenames.h.
8143 (_initialize_tracefile_tfile): New function.
8144
7951c4eb
YQ
81452014-02-23 Yao Qi <yao@codesourcery.com>
8146
8147 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8148 tracefile-tfile.o.
8149 (HFILES_NO_SRCDIR): Add tracefile.h.
8150 * ctf.c: Include "tracefile.h".
8151 * tracefile.h: New file.
8152 * tracefile.c: New file
8153 * tracefile-tfile.c: New file.
8154 * tracepoint.c: Include "tracefile.h".
8155 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8156 (stop_reason_names): Add const.
8157 (trace_file_writer_xfree): Move it to tracefile.c.
8158 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8159 (trace_save_ctf): Likewise.
8160 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8161 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8162 (tfile_write_header, tfile_write_regblock_type): Likewise.
8163 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8164 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8165 (tfile_write_raw_data, tfile_end): Likewise.
8166 (tfile_trace_file_writer_new): Likewise.
8167 (free_uploaded_tp): Make it extern.
8168 (free_uploaded_tsv): Make it extern.
8169 (_initialize_tracepoint): Move code to register command 'tsave'
8170 to tracefile.c.
8171 * tracepoint.h (stop_reason_names): Declare.
8172 (struct trace_frame_write_ops): Move it to tracefile.h.
8173 (struct trace_file_write_ops): Likewise.
8174 (struct trace_file_writer): Likewise.
8175 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8176
184cd072
JK
81772014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8178
8179 PR gdb/16594
8180 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8181 process name.
8182 (get_cores_used_by_process): New parameter num_cores, use it.
8183 (linux_xfer_osdata_processes): Pass num_cores to it.
8184 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8185 process name.
8186
c63528fc
AK
81872014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8188
8189 * target.c (memory_xfer_partial): Fix length arg in call to
8190 breakpoint_xfer_memory.
8191
d7b30f67
SDJ
81922014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8193
8194 PR tdep/16397
8195 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8196 number comes after the + or - signs. Adjust length of register
8197 name to be extracted.
8198
8838afaf
TT
81992014-02-20 Tom Tromey <tromey@redhat.com>
8200
8201 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8202 (ada_varobj_ops): Mark "extern".
8203
05227d14
TT
82042014-02-20 Tom Tromey <tromey@redhat.com>
8205
8206 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8207
1254eefc
DE
82082014-02-20 Doug Evans <xdje42@gmail.com>
8209
8210 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8211 All callers updated.
8212 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8213 All callers updated.
8214 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8215 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8216
adde2bff
DE
82172014-02-20 lin zuojian <manjian2006@gmail.com>
8218 Joel Brobecker <brobecker@adacore.com>
8219 Doug Evans <xdje42@gmail.com>
8220
8221 PR symtab/16581
8222 * dwarf2read.c (struct die_info): New member in_process.
8223 (reset_die_in_process): New function.
8224 (process_die): Set it at the start, reset when returning.
8225 (inherit_abstract_dies): Only call process_die if origin_child_die
8226 not already being processed.
8227
3be75f87
JB
82282014-02-20 Joel Brobecker <brobecker@adacore.com>
8229
8230 * windows-nat.c (handle_unload_dll): Add function documentation.
8231 (do_initial_windows_stuff): Add comment explaining why we wait
8232 until after inferior initialization has finished before
8233 processing all DLLs.
8234
47f7ffdb
JB
82352014-02-20 Joel Brobecker <brobecker@adacore.com>
8236
8237 * windows-nat.c (get_module_name): Delete.
8238 (windows_get_exec_module_filename): New function, mostly
8239 inspired from get_module_name.
8240 (windows_pid_to_exec_file): Replace call to get_module_name
8241 by call to windows_get_exec_module_filename.
8242
1cd9feab
JB
82432014-02-20 Joel Brobecker <brobecker@adacore.com>
8244
8245 * windows-nat.c (handle_load_dll): Rewrite this function's
8246 introductory comment. Remove code using get_module_name
8247 to get the DLL's name.
8248
ea39ad35
JB
82492014-02-20 Joel Brobecker <brobecker@adacore.com>
8250
8251 * windows-nat.c (get_windows_debug_event): Ignore
8252 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8253 if windows_initialization_done == 0.
8254 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8255 Adjust implementation to always load all DLLs.
8256 (do_initial_windows_stuff): Replace call to
8257 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8258
95060284
JB
82592014-02-20 Joel Brobecker <brobecker@adacore.com>
8260
8261 * windows-nat.c (_initialize_windows_nat): Deprecate the
8262 "dll-symbols" command. Turn the "add-shared-symbol-files"
8263 and "assf" aliases into commands, and deprecate them as well.
8264 * NEWS: Add entry explaining that "dll-symbols" and its two
8265 aliases are now deprecated.
8266
8d4fdb12
JB
82672014-02-20 Joel Brobecker <brobecker@adacore.com>
8268
8269 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8270 new-line in debug string. Remove trailing spaces.
8271
1b281443
SS
82722014-02-19 Stan Shebs <stan@codesourcery.com>
8273
8274 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8275
f7bd0f78
SC
82762014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8277
8278 * NEWS: Add entry for the new feature
8279 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8280 and class values.
8281
399ebc3d
SS
82822014-02-19 Stan Shebs <stan@codesourcery.com>
8283
8284 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8285
c658158d
PA
82862014-02-19 Pedro Alves <palves@redhat.com>
8287
8288 * common/ptid.h (struct ptid): Mention that process_stratum
8289 targets should prefer ptid.lwp.
8290
ba348170
PA
82912014-02-19 Pedro Alves <palves@redhat.com>
8292
8293 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8294 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8295 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8296 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8297 store remote thread ids rather than ptid.tid.
8298 (_initialize_remote): Adjust.
8299
ac01945b
TT
83002014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target.c (target_get_unwinder): Rewrite.
8303 (target_get_tailcall_unwinder): Rewrite.
8304 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8305 (record_btrace_to_get_tailcall_unwinder): New function.
8306 (init_record_btrace_ops): Update.
8307 * target.h (struct target_ops) <to_get_unwinder,
8308 to_get_tailcall_unwinder>: Now function pointers. Use
8309 TARGET_DEFAULT_RETURN.
8310
8476dc92
TT
83112014-02-19 Tom Tromey <tromey@redhat.com>
8312
8313 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8314 argument.
8315 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8316
c0eca49f
TT
83172014-02-19 Tom Tromey <tromey@redhat.com>
8318
8319 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8320 directly.
8321 * target-delegates.c: Rebuild.
8322 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8323 TARGET_DEFAULT_FUNC.
8324 * target.c (default_target_decr_pc_after_break): Rename from
8325 forward_target_decr_pc_after_break. Simplify.
8326 (target_decr_pc_after_break): Rely on delegation.
8327
596b6b39
TT
83282014-02-19 Tom Tromey <tromey@redhat.com>
8329
8330 * target.c (update_current_target): Do not INHERIT to_doc or
8331 to_magic. Do not de_fault to_open or to_close.
8332
b427c1bc
TT
83332014-02-19 Tom Tromey <tromey@redhat.com>
8334
8335 * gcore.h (objfile_find_memory_regions): Declare.
8336 * gcore.c (objfile_find_memory_regions): No longer static. Add
8337 "self" argument.
8338 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8339 * exec.c: Include gcore.h.
8340 (exec_set_find_memory_regions): Remove.
8341 (exec_find_memory_regions): Remove.
8342 (exec_do_find_memory_regions): Remove.
8343 (init_exec_ops): Update.
8344 * defs.h (exec_set_find_memory_regions): Remove.
8345
9b144037
TT
83462014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target-delegates.c: Rebuild.
8349 * target.h (struct target_ops) <to_extra_thread_info,
8350 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8351 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8352 not 0, in TARGET_DEFAULT_RETURN.
8353
555bbdeb
TT
83542014-02-19 Tom Tromey <tromey@redhat.com>
8355
8356 * target.c (complete_target_initialization): Remove casts. Use
8357 return_zero_has_execution.
8358 (return_zero): Add "ignore" argument.
8359 (return_zero_has_execution): New function.
8360 (init_dummy_target): Remove casts. Use
8361 return_zero_has_execution.
8362
be4ddd36
TT
83632014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * target.c (update_current_target): Update comments. Do not
8366 INHERIT to_stratum.
8367
2117c711
TT
83682014-02-19 Tom Tromey <tromey@redhat.com>
8369
8370 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8371 needed.
8372 * corelow.c (core_read_description): Delegate when needed.
8373 * remote.c (remote_read_description): Delegate when needed.
8374 * target-delegates.c: Rebuild.
8375 * target.c (target_read_description): Rewrite.
8376 * target.h (struct target_ops) <to_read_description>: Update
8377 comment. Use TARGET_DEFAULT_RETURN.
8378
e88ef65c
TT
83792014-02-19 Tom Tromey <tromey@redhat.com>
8380
8381 * target-delegates.c: Rebuild.
8382 * target.c (update_current_target): Don't inherit or default
8383 to_can_run.
8384 (find_default_run_target): Check against delegate_can_run.
8385 * target.h (struct target_ops) <to_can_run>: Use
8386 TARGET_DEFAULT_RETURN.
8387
86a0854a
TT
83882014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target-delegates.c: Rebuild.
8391 * target.c (target_disconnect): Unconditionally delegate.
8392 * target.h (struct target_ops) <to_disconnect>: Use
8393 TARGET_DEFAULT_NORETURN.
8394
ee97f592
TT
83952014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * record.c (record_stop): Unconditionally delegate.
8398 * target-delegates.c: Rebuild.
8399 * target.c (target_stop_recording): Unconditionally delegate.
8400 * target.h (struct target_ops) <to_stop_recording>: Use
8401 TARGET_DEFAULT_IGNORE.
8402
6dc7fcf4
TT
84032014-02-19 Tom Tromey <tromey@redhat.com>
8404
8405 * target-delegates.c: Rebuild.
8406 * target.c (target_enable_btrace): Unconditionally delegate.
8407 * target.h (struct target_ops) <to_enable_btrace>: Use
8408 TARGET_DEFAULT_NORETURN.
8409
eb5b20d4
TT
84102014-02-19 Tom Tromey <tromey@redhat.com>
8411
8412 * target-delegates.c: Rebuild.
8413 * target.c (target_read_btrace): Unconditionally delegate.
8414 * target.h (struct target_ops) <to_read_btrace>: Use
8415 TARGET_DEFAULT_NORETURN.
8416
9ace480d
TT
84172014-02-19 Tom Tromey <tromey@redhat.com>
8418
8419 * target-delegates.c: Rebuild.
8420 * target.c (target_teardown_btrace): Unconditionally delegate.
8421 * target.h (struct target_ops) <to_teardown_btrace>: Use
8422 TARGET_DEFAULT_NORETURN.
8423
8dc292d3
TT
84242014-02-19 Tom Tromey <tromey@redhat.com>
8425
8426 * target-delegates.c: Rebuild.
8427 * target.c (target_disable_btrace): Unconditionally delegate.
8428 * target.h (struct target_ops) <to_disable_btrace>: Use
8429 TARGET_DEFAULT_NORETURN.
8430
58a5184e
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target-delegates.c: Rebuild.
8434 * target.c (default_search_memory): New function.
8435 (simple_search_memory): Update comment.
8436 (target_search_memory): Unconditionally delegate.
8437 * target.h (struct target_ops) <to_search_memory>: Use
8438 TARGET_DEFAULT_FUNC.
8439
8de71aab
TT
84402014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * auxv.c (default_auxv_parse): No longer static.
8443 (target_auxv_parse): Unconditionally delegate.
8444 * auxv.h (default_auxv_parse): Declare.
8445 * target-delegates.c: Rebuild.
8446 * target.c: Include auxv.h.
8447 * target.h (struct target_ops) <to_auxv_parse>: Use
8448 TARGET_DEFAULT_FUNC.
8449
6b2c5a57
TT
84502014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target-delegates.c: Rebuild.
8453 * target.c (target_memory_map): Unconditionally delegate.
8454 * target.h (struct target_ops) <to_memory_map>: Use
8455 TARGET_DEFAULT_RETURN.
8456
cbffc065
TT
84572014-02-19 Tom Tromey <tromey@redhat.com>
8458
8459 * target-delegates.c: Rebuild.
8460 * target.c (target_thread_alive): Unconditionally delegate.
8461 * target.h (struct target_ops) <to_thread_alive>: Use
8462 TARGET_DEFAULT_RETURN.
8463
f09e2107
TT
84642014-02-19 Tom Tromey <tromey@redhat.com>
8465
8466 * target-delegates.c: Rebuild.
8467 * target.c (target_save_record): Unconditionally delegate.
8468 * target.h (struct target_ops) <to_save_record>: Use
8469 TARGET_DEFAULT_NORETURN.
8470
07366925
TT
84712014-02-19 Tom Tromey <tromey@redhat.com>
8472
8473 * target-delegates.c: Rebuild.
8474 * target.c (target_delete_record): Unconditionally delegate.
8475 * target.h (struct target_ops) <to_delete_record>: Use
8476 TARGET_DEFAULT_NORETURN.
8477
dd2e9d25
TT
84782014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target-delegates.c: Rebuild.
8481 * target.c (target_record_is_replaying): Unconditionally
8482 delegate.
8483 * target.h (struct target_ops) <to_record_is_replaying>: Use
8484 TARGET_DEFAULT_RETURN.
8485
671e76cc
TT
84862014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target-delegates.c: Rebuild.
8489 * target.c (target_goto_record_begin): Unconditionally delegate.
8490 * target.h (struct target_ops) <to_goto_record_begin>: Use
8491 TARGET_DEFAULT_NORETURN.
8492
e9179bb3
TT
84932014-02-19 Tom Tromey <tromey@redhat.com>
8494
8495 * target-delegates.c: Rebuild.
8496 * target.c (target_goto_record_end): Unconditionally delegate.
8497 * target.h (struct target_ops) <to_goto_record_end>: Use
8498 TARGET_DEFAULT_NORETURN.
8499
05969c84
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (target_goto_record): Unconditionally delegate.
8504 * target.h (struct target_ops) <to_goto_record>: Use
8505 TARGET_DEFAULT_NORETURN.
8506
3679abfa
TT
85072014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target-delegates.c: Rebuild.
8510 * target.c (target_insn_history): Unconditionally delegate.
8511 * target.h (struct target_ops) <to_insn_history>: Use
8512 TARGET_DEFAULT_NORETURN.
8513
8444ab58
TT
85142014-02-19 Tom Tromey <tromey@redhat.com>
8515
8516 * target-delegates.c: Rebuild.
8517 * target.c (target_insn_history_from): Unconditionally delegate.
8518 * target.h (struct target_ops) <to_insn_history_from>: Use
8519 TARGET_DEFAULT_NORETURN.
8520
c29302cc
TT
85212014-02-19 Tom Tromey <tromey@redhat.com>
8522
8523 * target-delegates.c: Rebuild.
8524 * target.c (target_insn_history_range): Unconditionally delegate.
8525 * target.h (struct target_ops) <to_insn_history_range>: Use
8526 TARGET_DEFAULT_NORETURN.
8527
170049d4
TT
85282014-02-19 Tom Tromey <tromey@redhat.com>
8529
8530 * target-delegates.c: Rebuild.
8531 * target.c (target_call_history): Unconditionally delegate.
8532 * target.h (struct target_ops) <to_call_history>: Use
8533 TARGET_DEFAULT_NORETURN.
8534
16fc27d6
TT
85352014-02-19 Tom Tromey <tromey@redhat.com>
8536
8537 * target-delegates.c: Rebuild.
8538 * target.c (target_call_history_from): Unconditionally delegate.
8539 * target.h (struct target_ops) <to_call_history_from>: Use
8540 TARGET_DEFAULT_NORETURN.
8541
115d9817
TT
85422014-02-19 Tom Tromey <tromey@redhat.com>
8543
8544 * target-delegates.c: Rebuild.
8545 * target.c (target_call_history_range): Unconditionally delegate.
8546 * target.h (struct target_ops) <to_call_history_range>: Use
8547 TARGET_DEFAULT_NORETURN.
8548
eb276a6b
TT
85492014-02-19 Tom Tromey <tromey@redhat.com>
8550
8551 * target-delegates.c: Rebuild.
8552 * target.c (target_verify_memory): Unconditionally delegate.
8553 * target.h (struct target_ops) <to_verify_memory>: Use
8554 TARGET_DEFAULT_NORETURN.
8555
9e538d0d
TT
85562014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target-delegates.c: Rebuild.
8559 * target.c (target_core_of_thread): Unconditionally delegate.
8560 * target.h (struct target_ops) <to_core_of_thread>: Use
8561 TARGET_DEFAULT_RETURN.
8562
f6fb2925
TT
85632014-02-19 Tom Tromey <tromey@redhat.com>
8564
8565 * target-delegates.c: Rebuild.
8566 * target.c (target_flash_done): Unconditionally delegate.
8567 * target.h (struct target_ops) <to_flash_done>: Use
8568 TARGET_DEFAULT_NORETURN.
8569
e8a6c6ac
TT
85702014-02-19 Tom Tromey <tromey@redhat.com>
8571
8572 * target-delegates.c: Rebuild.
8573 * target.c (target_flash_erase): Unconditionally delegate.
8574 * target.h (struct target_ops) <to_flash_erase>: Use
8575 TARGET_DEFAULT_NORETURN.
8576
7e35c012
TT
85772014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * target-delegates.c: Rebuild.
8580 * target.c (target_get_section_table): Unconditionally delegate.
8581 * target.h (struct target_ops) <to_get_section_table>: Use
8582 TARGET_DEFAULT_RETURN.
8583
770234d3
TT
85842014-02-19 Tom Tromey <tromey@redhat.com>
8585
8586 * target-delegates.c: Rebuild.
8587 * target.c (target_pid_to_str): Unconditionally delegate.
8588 (init_dummy_target): Don't initialize to_pid_to_str.
8589 (default_pid_to_str): Rename from dummy_pid_to_str.
8590 * target.h (struct target_ops) <to_pid_to_str>: Use
8591 TARGET_DEFAULT_FUNC.
8592
09b0dc2b
TT
85932014-02-19 Tom Tromey <tromey@redhat.com>
8594
8595 * target-delegates.c: Rebuild.
8596 * target.c (target_find_new_threads): Unconditionally delegate.
8597 * target.h (struct target_ops) <to_find_new_threads>: Use
8598 TARGET_DEFAULT_RETURN.
8599
7d4f8efa
TT
86002014-02-19 Tom Tromey <tromey@redhat.com>
8601
8602 * target-delegates.c: Rebuild.
8603 * target.c (target_program_signals): Unconditionally delegate.
8604 * target.h (struct target_ops) <to_program_signals>: Use
8605 TARGET_DEFAULT_IGNORE.
8606
035cad7f
TT
86072014-02-19 Tom Tromey <tromey@redhat.com>
8608
8609 * target-delegates.c: Rebuild.
8610 * target.c (target_pass_signals): Unconditionally delegate.
8611 * target.h (struct target_ops) <to_pass_signals>: Use
8612 TARGET_DEFAULT_IGNORE.
8613
8d657035
TT
86142014-02-19 Tom Tromey <tromey@redhat.com>
8615
8616 * target-delegates.c: Rebuild.
8617 * target.c (default_mourn_inferior): New function.
8618 (target_mourn_inferior): Unconditionally delegate.
8619 * target.h (struct target_ops) <to_mourn_inferior>: Use
8620 TARGET_DEFAULT_FUNC.
8621
098dba18
TT
86222014-02-19 Tom Tromey <tromey@redhat.com>
8623
8624 * target-delegates.c: Rebuild.
8625 * target.c (default_follow_fork): New function.
8626 (target_follow_fork): Unconditionally delegate.
8627 * target.h (struct target_ops) <to_follow_fork>: Use
8628 TARGET_DEFAULT_FUNC.
8629
423a4807
TT
86302014-02-19 Tom Tromey <tromey@redhat.com>
8631
8632 * target-delegates.c: Rebuild.
8633 * target.c (target_kill): Unconditionally delegate.
8634 * target.h (struct target_ops) <to_kill>: Use
8635 TARGET_DEFAULT_NORETURN.
8636
6c7e5e5c
TT
86372014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * target-delegates.c: Rebuild.
8640 * target.c (target_masked_watch_num_registers): Unconditionally
8641 delegate.
8642 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8643 Use TARGET_DEFAULT_RETURN.
8644
8b1c364c
TT
86452014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target-delegates.c: Rebuild.
8648 * target.c (target_remove_mask_watchpoint): Unconditionally
8649 delegate.
8650 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8651 TARGET_DEFAULT_RETURN.
8652
cd4ae029
TT
86532014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target-delegates.c: Rebuild.
8656 * target.c (target_insert_mask_watchpoint): Unconditionally
8657 delegate.
8658 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8659 TARGET_DEFAULT_RETURN.
8660
a134316b
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target-delegates.c: Rebuild.
8664 * target.c (target_ranged_break_num_registers): Unconditionally
8665 delegate.
8666 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8667 Use TARGET_DEFAULT_RETURN.
8668
ad5989bd
TT
86692014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target-delegates.c: Rebuild.
8672 * target.c (target_fetch_registers): Unconditionally delegate.
8673 * target.h (struct target_ops) <to_fetch_registers>: Use
8674 TARGET_DEFAULT_NORETURN.
8675
46ee7e8d
TT
86762014-02-19 Tom Tromey <tromey@redhat.com>
8677
8678 * target-delegates.c: Rebuild.
8679 * target.c (update_current_target): Don't inherit or default
8680 to_stop.
8681 * target.h (struct target_ops) <to_stop>: Use
8682 TARGET_DEFAULT_IGNORE.
8683
843f59ed
TT
86842014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target-delegates.c: Rebuild.
8687 * target.c (update_current_target): Don't inherit or default
8688 to_can_run_breakpoint_commands.
8689 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8690 Use TARGET_DEFAULT_RETURN.
8691
ccfde2a0
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_supports_evaluation_of_breakpoint_conditions.
8697 * target.h (struct target_ops)
8698 <to_supports_evaluation_of_breakpoint_conditions>: Use
8699 TARGET_DEFAULT_RETURN.
8700
0de91722
TT
87012014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_augmented_libraries_svr4_read.
8706 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8707 Use TARGET_DEFAULT_RETURN.
8708
9a7d8b48
TT
87092014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_can_use_agent.
8714 * target.h (struct target_ops) <to_can_use_agent>: Use
8715 TARGET_DEFAULT_RETURN.
8716
d9db5b21
TT
87172014-02-19 Tom Tromey <tromey@redhat.com>
8718
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_use_agent.
8722 * target.h (struct target_ops) <to_use_agent>: Use
8723 TARGET_DEFAULT_NORETURN.
8724
92155eeb
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_traceframe_info.
8730 (return_null): Remove.
8731 * target.h (struct target_ops) <to_traceframe_info>: Use
8732 TARGET_DEFAULT_RETURN.
8733
d6522a22
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_markers_by_strid.
8739 * target.h (struct target_ops)
8740 <to_static_tracepoint_markers_by_strid>: Use
8741 TARGET_DEFAULT_NORETURN.
8742
4c3e4425
TT
87432014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target-delegates.c: Rebuild.
8746 * target.c (update_current_target): Don't inherit or default
8747 to_static_tracepoint_marker_at.
8748 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8749 Use TARGET_DEFAULT_RETURN.
8750
dcd6917f
TT
87512014-02-19 Tom Tromey <tromey@redhat.com>
8752
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_set_permissions.
8756 * target.h (struct target_ops) <to_set_permissions>: Use
8757 TARGET_DEFAULT_IGNORE.
8758
22bcceee
TT
87592014-02-19 Tom Tromey <tromey@redhat.com>
8760
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_get_tib_address.
8764 * target.h (struct target_ops) <to_get_tib_address>: Use
8765 TARGET_DEFAULT_NORETURN.
8766
8586ccaa
TT
87672014-02-19 Tom Tromey <tromey@redhat.com>
8768
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8771 to_set_trace_notes.
8772 * target.h (struct target_ops) <to_set_trace_notes>: Use
8773 TARGET_DEFAULT_RETURN.
8774
91df8d1d
TT
87752014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't initialize
8779 to_set_trace_buffer_size.
8780 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8781 TARGET_DEFAULT_IGNORE.
8782
8d526939
TT
87832014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target-delegates.c: Rebuild.
8786 * target.c (update_current_target): Don't inherit or default
8787 to_set_circular_trace_buffer.
8788 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8789 TARGET_DEFAULT_IGNORE.
8790
0bcfeddf
TT
87912014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8795 to_set_disconnected_tracing.
8796 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8797 TARGET_DEFAULT_IGNORE.
8798
9249843f
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_min_fast_tracepoint_insn_len.
8804 (return_minus_one): Remove.
8805 * target.h (struct target_ops)
8806 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8807
ace92e7d
TT
88082014-02-19 Tom Tromey <tromey@redhat.com>
8809
8810 * target-delegates.c: Rebuild.
8811 * target.c (update_current_target): Don't inherit or default
8812 to_get_raw_trace_data.
8813 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8814 TARGET_DEFAULT_NORETURN.
8815
08120467
TT
88162014-02-19 Tom Tromey <tromey@redhat.com>
8817
8818 * target-delegates.c: Rebuild.
8819 * target.c (update_current_target): Don't inherit or default
8820 to_upload_trace_state_variables.
8821 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8822 Use TARGET_DEFAULT_RETURN.
8823
1e949b00
TT
88242014-02-19 Tom Tromey <tromey@redhat.com>
8825
8826 * target-delegates.c: Rebuild.
8827 * target.c (update_current_target): Don't inherit or default
8828 to_upload_tracepoints.
8829 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8830 TARGET_DEFAULT_RETURN.
8831
a2e6c147
TT
88322014-02-19 Tom Tromey <tromey@redhat.com>
8833
8834 * target-delegates.c: Rebuild.
8835 * target.c (update_current_target): Don't inherit or default
8836 to_save_trace_data.
8837 * target.h (struct target_ops) <to_save_trace_data>: Use
8838 TARGET_DEFAULT_NORETURN.
8839
959bcd0b
TT
88402014-02-19 Tom Tromey <tromey@redhat.com>
8841
8842 * target-delegates.c: Rebuild.
8843 * target.c (update_current_target): Don't inherit or default
8844 to_get_trace_state_variable_value.
8845 * target.h (struct target_ops)
8846 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8847
afc94e66
TT
88482014-02-19 Tom Tromey <tromey@redhat.com>
8849
8850 * target-delegates.c: Rebuild.
8851 * target.c (update_current_target): Don't inherit or default
8852 to_trace_find.
8853 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8854
e51c07ea
TT
88552014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * target-delegates.c: Rebuild.
8858 * target.c (update_current_target): Don't inherit or default
8859 to_trace_stop.
8860 * target.h (struct target_ops) <to_trace_stop>: Use
8861 TARGET_DEFAULT_NORETURN.
8862
6fea14cd
TT
88632014-02-19 Tom Tromey <tromey@redhat.com>
8864
8865 * target-delegates.c: Rebuild.
8866 * target.c (update_current_target): Don't inherit or default
8867 to_get_tracepoint_status.
8868 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8869 TARGET_DEFAULT_NORETURN.
8870
4072d4ff
TT
88712014-02-19 Tom Tromey <tromey@redhat.com>
8872
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8875 to_get_trace_status.
8876 * target.h (struct target_ops) <to_get_trace_status>: Use
8877 TARGET_DEFAULT_RETURN.
8878
25da2e80
TT
88792014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target-delegates.c: Rebuild.
8882 * target.c (update_current_target): Don't inherit or default
8883 to_trace_start.
8884 * target.h (struct target_ops) <to_trace_start>: Use
8885 TARGET_DEFAULT_NORETURN.
8886
86dd181d
TT
88872014-02-19 Tom Tromey <tromey@redhat.com>
8888
8889 * target-delegates.c: Rebuild.
8890 * target.c (update_current_target): Don't inherit or default
8891 to_trace_set_readonly_regions.
8892 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8893 Use TARGET_DEFAULT_NORETURN.
8894
05c41993
TT
88952014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8899 to_disable_tracepoint.
8900 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8901 TARGET_DEFAULT_NORETURN.
8902
151f70f1
TT
89032014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8907 to_enable_tracepoint.
8908 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8909 TARGET_DEFAULT_NORETURN.
8910
94eb98b9
TT
89112014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8915 to_download_trace_state_variable.
8916 * target.h (struct target_ops) <to_download_trace_state_variable>:
8917 Use TARGET_DEFAULT_NORETURN.
8918
719acc4a
TT
89192014-02-19 Tom Tromey <tromey@redhat.com>
8920
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8923 to_can_download_tracepoint.
8924 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8925 TARGET_DEFAULT_RETURN.
8926
9a980a22
TT
89272014-02-19 Tom Tromey <tromey@redhat.com>
8928
8929 * target-delegates.c: Rebuild.
8930 * target.c (update_current_target): Don't inherit or default
8931 to_download_tracepoint.
8932 * target.h (struct target_ops) <to_download_tracepoint>: Use
8933 TARGET_DEFAULT_NORETURN.
8934
5536135b
TT
89352014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8939 to_trace_init.
8940 * target.h (struct target_ops) <to_trace_init>: Use
8941 TARGET_DEFAULT_RETURN.
8942
9409d39e
TT
89432014-02-19 Tom Tromey <tromey@redhat.com>
8944
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8947 to_supports_string_tracing.
8948 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8949 TARGET_DEFAULT_RETURN.
8950
aab1b22d
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_enable_disable_tracepoint.
8956 * target.h (struct target_ops)
8957 <to_supports_enable_disable_tracepoint>: Use
8958 TARGET_DEFAULT_RETURN.
8959
a7304748
TT
89602014-02-19 Tom Tromey <tromey@redhat.com>
8961
8962 * target-delegates.c: Rebuild.
8963 * target.c (update_current_target): Don't inherit or default
8964 to_supports_multi_process.
8965 * target.h (struct target_ops) <to_supports_multi_process>: Use
8966 TARGET_DEFAULT_RETURN.
8967
4229b31d
TT
89682014-02-19 Tom Tromey <tromey@redhat.com>
8969
8970 * target-delegates.c: Rebuild.
8971 * target.c (update_current_target): Don't inherit or default
8972 to_get_ada_task_ptid.
8973 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8974 TARGET_DEFAULT_FUNC.
8975
43eba180
TT
89762014-02-19 Tom Tromey <tromey@redhat.com>
8977
8978 * target-delegates.c: Rebuild.
8979 * target.c (update_current_target): Don't inherit or default
8980 to_thread_architecture.
8981 * target.h (struct target_ops) <to_thread_architecture>: Use
8982 TARGET_DEFAULT_FUNC.
8983
fe31bf5b
TT
89842014-02-19 Tom Tromey <tromey@redhat.com>
8985
8986 * target-delegates.c: Rebuild.
8987 * target.c (update_current_target): Don't inherit or default
8988 to_execution_direction.
8989 * target.h (struct target_ops) <to_execution_direction>: Use
8990 TARGET_DEFAULT_FUNC.
8991
53e1cfc7
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_can_execute_reverse.
8997 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8998 TARGET_DEFAULT_RETURN.
8999 (target_can_execute_reverse): Unconditionally delegate.
9000
9bb9d61d
TT
90012014-02-19 Tom Tromey <tromey@redhat.com>
9002
9003 * target-delegates.c: Rebuild.
9004 * target.c (update_current_target): Don't inherit or default
9005 to_goto_bookmark.
9006 (dummy_goto_bookmark): Remove.
9007 (init_dummy_target): Don't inherit or default to_goto_bookmark.
9008 * target.h (struct target_ops) <to_goto_bookmark>: Use
9009 TARGET_DEFAULT_NORETURN.
9010
3dbafbbb
TT
90112014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target-delegates.c: Rebuild.
9014 * target.c (update_current_target): Don't inherit or default
9015 to_get_bookmark.
9016 (dummy_get_bookmark): Remove.
9017 (init_dummy_target): Don't inherit or default to_get_bookmark.
9018 * target.h (struct target_ops) <to_get_bookmark>: Use
9019 TARGET_DEFAULT_NORETURN
9020
16f796b1
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_make_corefile_notes.
9026 (init_dummy_target): Don't initialize to_make_corefile_notes.
9027 * target.h (struct target_ops) <to_make_corefile_notes>: Use
9028 TARGET_DEFAULT_FUNC.
9029
0b5a2719
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_find_memory_regions.
9035 (init_dummy_target): Don't initialize to_find_memory_regions.
9036 * target.h (struct target_ops) <to_find_memory_regions>: Use
9037 TARGET_DEFAULT_FUNC.
9038
d9cb0195
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_log_command.
9044 * target.h (struct target_ops) <to_log_command>: Use
9045 TARGET_DEFAULT_IGNORE.
9046 (target_log_command): Unconditionally delegate.
9047
830ca330
TT
90482014-02-19 Tom Tromey <tromey@redhat.com>
9049
9050 * target-delegates.c: Rebuild.
9051 * target.c (update_current_target): Don't inherit or default
9052 to_pid_to_exec_file.
9053 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
9054 TARGET_DEFAULT_RETURN.
9055
825828fc
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_thread_name.
9061 (target_thread_name): Unconditionally delegate.
9062 * target.h (struct target_ops) <to_thread_name>: Use
9063 TARGET_DEFAULT_RETURN.
9064
4a7e6dda
TT
90652014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target-delegates.c: Rebuild.
9068 * target.c (update_current_target): Don't inherit or default
9069 to_extra_thread_info.
9070 * target.h (struct target_ops) <to_extra_thread_info>: Use
9071 TARGET_DEFAULT_RETURN.
9072
0db88c1d
TT
90732014-02-19 Tom Tromey <tromey@redhat.com>
9074
9075 * target-delegates.c: Rebuild.
9076 * target.c (update_current_target): Don't inherit or default
9077 to_has_exited.
9078 * target.h (struct target_ops) <to_has_exited>: Use
9079 TARGET_DEFAULT_RETURN..
9080
6a9fa051
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_set_syscall_catchpoint.
9086 (return_one): Remove.
9087 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
9088 TARGET_DEFAULT_RETURN.
9089
62f64d7a
TT
90902014-02-19 Tom Tromey <tromey@redhat.com>
9091
9092 * target-delegates.c: Rebuild.
9093 * target.c (update_current_target): Don't inherit or default
9094 to_insert_exec_catchpoint.
9095 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9096 TARGET_DEFAULT_RETURN.
9097
cda0f38c
TT
90982014-01-08 Tom Tromey <tromey@redhat.com>
9099
9100 * target-delegates.c: Rebuild.
9101 * target.c (update_current_target): Don't inherit or default
9102 to_insert_exec_catchpoint.
9103 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
9104 TARGET_DEFAULT_RETURN.
9105
95c3375e
TT
91062014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target-delegates.c: Rebuild.
9109 * target.c (update_current_target): Don't inherit or default
9110 to_remove_vfork_catchpoint.
9111 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
9112 TARGET_DEFAULT_RETURN.
9113
7e18a8dc
TT
91142014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target-delegates.c: Rebuild.
9117 * target.c (update_current_target): Don't inherit or default
9118 to_insert_vfork_catchpoint.
9119 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
9120 TARGET_DEFAULT_RETURN.
9121
e1a21fb7
TT
91222014-02-19 Tom Tromey <tromey@redhat.com>
9123
9124 * target-delegates.c: Rebuild.
9125 * target.c (update_current_target): Don't inherit or default
9126 to_remove_fork_catchpoint.
9127 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
9128 TARGET_DEFAULT_RETURN.
9129
5958ebeb
TT
91302014-02-19 Tom Tromey <tromey@redhat.com>
9131
9132 * target-delegates.c: Rebuild.
9133 * target.c (update_current_target): Don't inherit or default
9134 to_insert_fork_catchpoint.
9135 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9136 TARGET_DEFAULT_RETURN.
9137
340ba4bf
TT
91382014-02-19 Tom Tromey <tromey@redhat.com>
9139
9140 * target-delegates.c: Rebuild.
9141 * target.c (update_current_target): Don't inherit or default
9142 to_post_startup_inferior.
9143 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9144 TARGET_DEFAULT_IGNORE.
9145
7634da87
TT
91462014-02-19 Tom Tromey <tromey@redhat.com>
9147
9148 * target-delegates.c: Rebuild.
9149 * target.c (update_current_target): Don't inherit or default
9150 to_load.
9151 * target.h (struct target_ops) <to_load>: Use
9152 TARGET_DEFAULT_NORETURN.
9153
e19e919f
TT
91542014-02-19 Tom Tromey <tromey@redhat.com>
9155
9156 * target-delegates.c: Rebuild.
9157 * target.c (update_current_target): Don't inherit or default
9158 to_terminal_info.
9159 * target.h (struct target_ops) <to_terminal_info>: Use
9160 TARGET_DEFAULT_FUNC.
9161
c6ea8f79
TT
91622014-02-19 Tom Tromey <tromey@redhat.com>
9163
9164 * target-delegates.c: Rebuild.
9165 * target.c (update_current_target): Don't inherit or default
9166 to_terminal_save_ours.
9167 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9168 TARGET_DEFAULT_IGNORE.
9169
e4a733f1
TT
91702014-02-19 Tom Tromey <tromey@redhat.com>
9171
9172 * target-delegates.c: Rebuild.
9173 * target.c (update_current_target): Don't inherit or default
9174 to_terminal_ours.
9175 * target.h (struct target_ops) <to_terminal_ours>: Use
9176 TARGET_DEFAULT_IGNORE.
9177
74fcbef9
TT
91782014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * target-delegates.c: Rebuild.
9181 * target.c (update_current_target): Don't inherit or default
9182 to_terminal_ours_for_output.
9183 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9184 TARGET_DEFAULT_IGNORE.
9185
ddeaacc9
TT
91862014-02-19 Tom Tromey <tromey@redhat.com>
9187
9188 * target-delegates.c: Rebuild.
9189 * target.c (update_current_target): Don't inherit or default
9190 to_terminal_inferior.
9191 * target.h (struct target_ops) <to_terminal_inferior>: Use
9192 TARGET_DEFAULT_IGNORE.
9193
0343661d
TT
91942014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * target-delegates.c: Rebuild.
9197 * target.c (update_current_target): Don't inherit or default
9198 to_terminal_init.
9199 * target.h (struct target_ops) <to_terminal_init>: Use
9200 TARGET_DEFAULT_IGNORE.
9201
77cdffe9
TT
92022014-02-19 Tom Tromey <tromey@redhat.com>
9203
9204 * target-delegates.c: Rebuild.
9205 * target.c (update_current_target): Don't inherit or default
9206 to_can_accel_watchpoint_condition.
9207 * target.h (struct target_ops)
9208 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9209
d03655e4
TT
92102014-02-19 Tom Tromey <tromey@redhat.com>
9211
9212 * target-delegates.c: Rebuild.
9213 * target.c (update_current_target): Don't inherit or default
9214 to_region_ok_for_hw_watchpoint.
9215 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9216 Use TARGET_DEFAULT_FUNC.
9217
65f160a9
TT
92182014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target-delegates.c: Rebuild.
9221 * target.c (update_current_target): Don't inherit or default
9222 to_watchpoint_addr_within_range.
9223 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9224 Use TARGET_DEFAULT_FUNC.
9225
61dd109f
TT
92262014-02-19 Tom Tromey <tromey@redhat.com>
9227
9228 * target-delegates.c: Rebuild.
9229 * target.c (update_current_target): Don't inherit or default
9230 to_remove_watchpoint.
9231 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9232 TARGET_DEFAULT_NORETURN.
9233
016facd4
TT
92342014-02-19 Tom Tromey <tromey@redhat.com>
9235
9236 * target-delegates.c: Rebuild.
9237 * target.c (update_current_target): Don't inherit or default
9238 to_insert_watchpoint.
9239 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9240 TARGET_DEFAULT_RETURN.
9241
418dabac
TT
92422014-02-19 Tom Tromey <tromey@redhat.com>
9243
9244 * target-delegates.c: Rebuild.
9245 * target.c (update_current_target): Don't inherit or default
9246 to_remove_hw_breakpoint.
9247 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9248 TARGET_DEFAULT_RETURN.
9249
61b371f9
TT
92502014-02-19 Tom Tromey <tromey@redhat.com>
9251
9252 * target-delegates.c: Rebuild.
9253 * target.c (update_current_target): Don't inherit or default
9254 to_insert_hw_breakpoint.
9255 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9256 TARGET_DEFAULT_RETURN.
9257
52b51d06
TT
92582014-02-19 Tom Tromey <tromey@redhat.com>
9259
9260 * target-delegates.c: Rebuild.
9261 * target.c (update_current_target): Don't inherit or default
9262 to_can_use_hw_breakpoint.
9263 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9264 TARGET_DEFAULT_RETURN.
9265
f86e59b2
TT
92662014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target-delegates.c: Rebuild.
9269 * target.c (update_current_target): Don't inherit or default
9270 to_files_info.
9271 * target.h (struct target_ops) <to_files_info>: Use
9272 TARGET_DEFAULT_IGNORE.
9273
6c628163
TT
92742014-02-19 Tom Tromey <tromey@redhat.com>
9275
9276 * target-delegates.c: Rebuild.
9277 * target.c (update_current_target): Don't inherit or default
9278 to_store.
9279 * target.h (struct target_ops) <to_store>: Use
9280 TARGET_DEFAULT_NORETURN.
9281
bebd3233
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * target-delegates.c: Rebuild.
9285 * target.c (update_current_target): Don't inherit or default
9286 to_post_attach.
9287 * target.h (struct target_ops) <to_post_attach>: Use
9288 TARGET_DEFAULT_IGNORE.
9289
a53f3625
TT
92902014-02-19 Tom Tromey <tromey@redhat.com>
9291
9292 * target-delegates.c: Rebuild.
9293 * target.c (update_current_target): Don't inherit or default
9294 to_rcmd.
9295 (default_rcmd): New function.
9296 (do_monitor_command): Unconditionally delegate.
9297 * target.h (struct target_ops) <to_rmcd>: Use
9298 TARGET_DEFAULT_FUNC.
9299
e9a29200
TT
93002014-02-19 Tom Tromey <tromey@redhat.com>
9301
9302 * target-delegates.c: Rebuild.
9303 * target.c (init_dummy_target): Don't initialize to_attach.
9304 (target_attach): Unconditionally delegate.
9305 * target.h (struct target_ops) <to_attach>: Use
9306 TARGET_DEFAULT_FUNC.
9307
09da0d0a
TT
93082014-02-19 Tom Tromey <tromey@redhat.com>
9309
9310 * target-delegates.c: Rebuild.
9311 * target.c (target_detach): Unconditionally delegate.
9312 (init_dummy_target): Don't initialize to_detach.
9313 * target.h (struct target_ops) <to_detach>: Use
9314 TARGET_DEFAULT_IGNORE.
9315
5436ff03
TT
93162014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9319 Add argument.
9320 (target_augmented_libraries_svr4_read): Add argument.
9321 * target.c (update_current_target): Update.
9322 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9323 argument.
9324
f0d960ea
TT
93252014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target.h (struct target_ops) <to_call_history_range>: Add
9328 argument.
9329 * target.c (target_call_history_range): Add argument.
9330 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9331 argument.
9332 (record_btrace_call_history_from): Update.
9333
ec0aea04
TT
93342014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * target.h (struct target_ops) <to_call_history_from>: Add
9337 argument.
9338 * target.c (target_call_history_from): Add argument.
9339 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9340 argument.
9341
5df2fcba
TT
93422014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target.h (struct target_ops) <to_call_history>: Add argument.
9345 * target.c (target_call_history): Add argument.
9346 * record-btrace.c (record_btrace_call_history): Add 'self'
9347 argument.
9348
4e99c6b7
TT
93492014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target.h (struct target_ops) <to_insn_history_range>: Add
9352 argument.
9353 * target.c (target_insn_history_range): Add argument.
9354 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9355 argument.
9356 (record_btrace_insn_history_from): Update.
9357
9abc3ff3
TT
93582014-02-19 Tom Tromey <tromey@redhat.com>
9359
9360 * target.h (struct target_ops) <to_insn_history_from>: Add
9361 argument.
9362 * target.c (target_insn_history_from): Add argument.
9363 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9364 argument.
9365
7a6c5609
TT
93662014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * target.h (struct target_ops) <to_insn_history>: Add argument.
9369 * target.c (target_insn_history): Add argument.
9370 * record-btrace.c (record_btrace_insn_history): Add 'self'
9371 argument.
9372
606183ac
TT
93732014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target.h (struct target_ops) <to_goto_record>: Add argument.
9376 * target.c (target_goto_record): Add argument.
9377 * record-full.c (record_full_goto): Add 'self' argument.
9378 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9379
307a1b91
TT
93802014-02-19 Tom Tromey <tromey@redhat.com>
9381
9382 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9383 * target.c (target_goto_record_end): Add argument.
9384 * record-full.c (record_full_goto_end): Add 'self' argument.
9385 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9386
08475817
TT
93872014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target.h (struct target_ops) <to_goto_record_begin>: Add
9390 argument.
9391 * target.c (target_goto_record_begin): Add argument.
9392 * record-full.c (record_full_goto_begin): Add 'self' argument.
9393 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9394 argument.
9395
1c63c994
TT
93962014-02-19 Tom Tromey <tromey@redhat.com>
9397
9398 * target.h (struct target_ops) <to_record_is_replaying>: Add
9399 argument.
9400 * target.c (target_record_is_replaying): Add argument.
9401 * record-full.c (record_full_is_replaying): Add 'self' argument.
9402 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9403 argument.
9404 (record_btrace_xfer_partial, record_btrace_store_registers)
9405 (record_btrace_prepare_to_store, record_btrace_resume)
9406 (record_btrace_wait, record_btrace_decr_pc_after_break)
9407 (record_btrace_find_new_threads, record_btrace_thread_alive):
9408 Update.
9409
d1b55219
TT
94102014-02-19 Tom Tromey <tromey@redhat.com>
9411
9412 * target.h (struct target_ops) <to_delete_record>: Add argument.
9413 * target.c (target_delete_record): Add argument.
9414 * record-full.c (record_full_delete): Add 'self' argument.
9415
1390f529
TT
94162014-02-19 Tom Tromey <tromey@redhat.com>
9417
9418 * target.h (struct target_ops) <to_save_record>: Add argument.
9419 * target.c (target_save_record): Add argument.
9420 * record-full.c (record_full_save): Add 'self' argument.
9421 (record_full_save): Add 'self' argument.
9422
630d6a4a
TT
94232014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target.h (struct target_ops) <to_info_record>: Add argument.
9426 * target.c (target_info_record): Add argument.
9427 * record.c (info_record_command): Add argument.
9428 * record-full.c (record_full_info): Add 'self' argument.
9429 * record-btrace.c (record_btrace_info): Add 'self' argument.
9430
c6cd7c02
TT
94312014-02-19 Tom Tromey <tromey@redhat.com>
9432
9433 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9434 * target.c (target_stop_recording): Add argument.
9435 * record.c (record_stop): Add argument.
9436 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9437 argument.
9438
39c49f83
TT
94392014-02-19 Tom Tromey <tromey@redhat.com>
9440
9441 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9442 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9443 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9444 argument.
9445 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9446 (_initialize_amd64_linux_nat): Use it.
9447 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9448 (_initialize_i386_linux_nat): Use it.
9449
1777056d
TT
94502014-02-19 Tom Tromey <tromey@redhat.com>
9451
9452 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9453 * target.c (target_teardown_btrace): Add argument.
9454 * remote.c (remote_teardown_btrace): Add 'self' argument.
9455 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9456 argument.
9457 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9458 argument.
9459
25e95349
TT
94602014-02-19 Tom Tromey <tromey@redhat.com>
9461
9462 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9463 * target.c (target_disable_btrace): Add argument.
9464 * remote.c (remote_disable_btrace): Add 'self' argument.
9465 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9466 argument.
9467 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9468 argument.
9469
e3c49f88
TT
94702014-02-19 Tom Tromey <tromey@redhat.com>
9471
9472 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9473 * target.c (target_enable_btrace): Add argument.
9474 * remote.c (remote_enable_btrace): Add 'self' argument.
9475 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9476 argument.
9477 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9478 argument.
9479
fe38f897
TT
94802014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9483 (target_can_use_agent): Add argument.
9484 * target.c (update_current_target): Update.
9485 * remote.c (remote_can_use_agent): Add 'self' argument.
9486 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9487
2c152180
TT
94882014-02-19 Tom Tromey <tromey@redhat.com>
9489
9490 * target.h (struct target_ops) <to_use_agent>: Add argument.
9491 (target_use_agent): Add argument.
9492 * target.c (update_current_target): Update.
9493 * remote.c (remote_use_agent): Add 'self' argument.
9494 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9495
a893e81f
TT
94962014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9499 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9500 (target_traceframe_info): Add argument.
9501 * target.c (update_current_target): Update.
9502 * remote.c (remote_traceframe_info): Add 'self' argument.
9503 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9504
c686c57f
TT
95052014-02-19 Tom Tromey <tromey@redhat.com>
9506
9507 * target.h (target_static_tracepoint_markers_by_strid): Add
9508 argument.
9509 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9510 'self' argument.
9511 * target.c (update_current_target): Update.
9512 * remote.c (struct target_ops)
9513 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9514 * linux-nat.c (struct target_ops)
9515 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9516
61fc905d
TT
95172014-02-19 Tom Tromey <tromey@redhat.com>
9518
9519 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9520 Add argument.
9521 (target_static_tracepoint_marker_at): Add argument.
9522 * target.c (update_current_target): Update.
9523 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9524 argument.
9525
c378d69d
TT
95262014-02-19 Tom Tromey <tromey@redhat.com>
9527
9528 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9529 (target_set_permissions): Add argument.
9530 * target.c (update_current_target): Update.
9531 * remote.c (remote_set_permissions): Add 'self' argument.
9532 (remote_start_remote): Update.
9533
bd7ae0f5
TT
95342014-02-19 Tom Tromey <tromey@redhat.com>
9535
9536 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9537 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9538 (target_get_tib_address): Add argument.
9539 * target.c (update_current_target): Update.
9540 * remote.c (remote_get_tib_address): Add 'self' argument.
9541
d9e68a2c
TT
95422014-02-19 Tom Tromey <tromey@redhat.com>
9543
9544 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9545 (target_set_trace_notes): Add argument.
9546 * target.c (update_current_target): Update.
9547 * remote.c (remote_set_trace_notes): Add 'self' argument.
9548
4da384be
TT
95492014-02-19 Tom Tromey <tromey@redhat.com>
9550
9551 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9552 argument.
9553 (target_set_trace_buffer_size): Add argument.
9554 * target.c (update_current_target): Update.
9555 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9556
736d5b1f
TT
95572014-02-19 Tom Tromey <tromey@redhat.com>
9558
9559 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9560 argument.
9561 (target_set_circular_trace_buffer): Add argument.
9562 * target.c (update_current_target): Update.
9563 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9564 argument.
9565
37b25738
TT
95662014-02-19 Tom Tromey <tromey@redhat.com>
9567
9568 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9569 argument.
9570 (target_set_disconnected_tracing): Add argument.
9571 * target.c (update_current_target): Update.
9572 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9573
0e67620a
TT
95742014-02-19 Tom Tromey <tromey@redhat.com>
9575
9576 * target.h (struct target_ops)
9577 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9578 (target_get_min_fast_tracepoint_insn_len): Add argument.
9579 * target.c (update_current_target): Update.
9580 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9581 argument.
9582
88ee6f45
TT
95832014-02-19 Tom Tromey <tromey@redhat.com>
9584
9585 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9586 argument.
9587 (target_get_raw_trace_data): Add argument.
9588 * target.c (update_current_target): Update.
9589 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9590
181e3713
TT
95912014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9594 Add argument.
9595 (target_upload_trace_state_variables): Add argument.
9596 * target.c (update_current_target): Update.
9597 * remote.c (remote_upload_trace_state_variables): Add 'self'
9598 argument.
9599 (remote_start_remote): Update.
9600
ab6617cc
TT
96012014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9604 argument.
9605 (target_upload_tracepoints): Add argument.
9606 * target.c (update_current_target): Update.
9607 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9608 (remote_start_remote): Update.
9609
dc3decaf
TT
96102014-02-19 Tom Tromey <tromey@redhat.com>
9611
9612 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9613 (target_save_trace_data): Add argument.
9614 * target.c (update_current_target): Update.
9615 * remote.c (remote_save_trace_data): Add 'self' argument.
9616
4011015b
TT
96172014-02-19 Tom Tromey <tromey@redhat.com>
9618
9619 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9620 argument.
9621 * target.h (struct target_ops)
9622 <to_get_trace_state_variable_value>: Add argument.
9623 (target_get_trace_state_variable_value): Add argument.
9624 * target.c (update_current_target): Update.
9625 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9626 argument.
9627 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9628
bd4c6793
TT
96292014-02-19 Tom Tromey <tromey@redhat.com>
9630
9631 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9632 * target.h (struct target_ops) <to_trace_find>: Add argument.
9633 (target_trace_find): Add argument.
9634 * target.c (update_current_target): Update.
9635 * remote.c (remote_trace_find): Add 'self' argument.
9636 * ctf.c (ctf_trace_find): Add 'self' argument.
9637
74499f1b
TT
96382014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9641 (target_trace_stop): Add argument.
9642 * target.c (update_current_target): Update.
9643 * remote.c (remote_trace_stop): Add 'self' argument.
9644
db90e85c
TT
96452014-02-19 Tom Tromey <tromey@redhat.com>
9646
9647 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9648 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9649 argument.
9650 (target_get_tracepoint_status): Add argument.
9651 * target.c (update_current_target): Update.
9652 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9653
8bd200f1
TT
96542014-02-19 Tom Tromey <tromey@redhat.com>
9655
9656 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9657 * target.h (struct target_ops) <to_get_trace_status>: Add
9658 argument.
9659 (target_get_trace_status): Add argument.
9660 * target.c (update_current_target): Update.
9661 * remote.c (remote_get_trace_status): Add 'self' argument.
9662 (remote_start_remote, remote_can_download_tracepoint): Update.
9663 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9664
e2d1aae3
TT
96652014-02-19 Tom Tromey <tromey@redhat.com>
9666
9667 * target.h (struct target_ops) <to_trace_start>: Add argument.
9668 (target_trace_start): Add argument.
9669 * target.c (update_current_target): Update.
9670 * remote.c (remote_trace_start): Add 'self' argument.
9671
583f9a86
TT
96722014-02-19 Tom Tromey <tromey@redhat.com>
9673
9674 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9675 Add argument.
9676 (target_trace_set_readonly_regions): Add argument.
9677 * target.c (update_current_target): Update.
9678 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9679 argument.
9680
780b049c
TT
96812014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9684 argument.
9685 (target_disable_tracepoint): Add argument.
9686 * target.c (update_current_target): Update.
9687 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9688
46670d57
TT
96892014-02-19 Tom Tromey <tromey@redhat.com>
9690
9691 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9692 argument.
9693 (target_enable_tracepoint): Add argument.
9694 * target.c (update_current_target): Update.
9695 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9696
559d2b81
TT
96972014-02-19 Tom Tromey <tromey@redhat.com>
9698
9699 * target.h (struct target_ops) <to_download_trace_state_variable>:
9700 Add argument.
9701 (target_download_trace_state_variable): Add argument.
9702 * target.c (update_current_target): Update.
9703 * remote.c (remote_download_trace_state_variable): Add 'self'
9704 argument.
9705
a52a8357
TT
97062014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9709 argument.
9710 (target_can_download_tracepoint): Add argument.
9711 * target.c (update_current_target): Update.
9712 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9713
548f7808
TT
97142014-02-19 Tom Tromey <tromey@redhat.com>
9715
9716 * target.h (struct target_ops) <to_download_tracepoint>: Add
9717 argument.
9718 (target_download_tracepoint): Add argument.
9719 * target.c (update_current_target): Update.
9720 * remote.c (remote_download_tracepoint): Add 'self' argument.
9721
ecae04e1
TT
97222014-02-19 Tom Tromey <tromey@redhat.com>
9723
9724 * target.h (struct target_ops) <to_trace_init>: Add argument.
9725 (target_trace_init): Add argument.
9726 * target.c (update_current_target): Update.
9727 * remote.c (remote_trace_init): Add 'self' argument.
9728
fab5aa7c
TT
97292014-02-19 Tom Tromey <tromey@redhat.com>
9730
9731 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9732 * target.c (target_fileio_readlink): Add argument.
9733 * remote.c (remote_hostio_readlink): Add 'self' argument.
9734 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9735
dbbca37d
TT
97362014-02-19 Tom Tromey <tromey@redhat.com>
9737
9738 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9739 * target.c (target_fileio_unlink): Add argument.
9740 * remote.c (remote_hostio_unlink): Add 'self' argument.
9741 (remote_file_delete): Update.
9742 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9743
df39ea25
TT
97442014-02-19 Tom Tromey <tromey@redhat.com>
9745
9746 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9747 * target.c (target_fileio_close): Add argument.
9748 * remote.c (remote_hostio_close): Add 'self' argument.
9749 (remote_hostio_close_cleanup): Update.
9750 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9751 Update.
9752 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9753
a3be983c
TT
97542014-02-19 Tom Tromey <tromey@redhat.com>
9755
9756 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9757 * target.c (target_fileio_pread): Add argument.
9758 * remote.c (remote_hostio_pread): Add 'self' argument.
9759 (remote_bfd_iovec_pread, remote_file_get): Update.
9760 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9761
0d866f62
TT
97622014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9765 * target.c (target_fileio_pwrite): Add argument.
9766 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9767 (remote_file_put): Update.
9768 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9769
cd897586
TT
97702014-02-19 Tom Tromey <tromey@redhat.com>
9771
9772 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9773 * target.c (target_fileio_open): Add argument.
9774 * remote.c (remote_hostio_open): Add 'self' argument.
9775 (remote_bfd_iovec_open): Add 'self' argument.
9776 (remote_file_put): Add 'self' argument.
9777 (remote_file_get): Add 'self' argument.
9778 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9779
78eff0ec
TT
97802014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9783 Add argument.
9784 (target_can_run_breakpoint_commands): Add argument.
9785 * target.c (update_current_target): Update.
9786 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9787 argument.
9788 (remote_insert_breakpoint): Add 'self' argument.
9789 (remote_insert_hw_breakpoint): Add 'self' argument.
9790 (remote_can_run_breakpoint_commands): Add 'self' argument.
9791
efcc2da7
TT
97922014-02-19 Tom Tromey <tromey@redhat.com>
9793
9794 * target.h (struct target_ops)
9795 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9796 (target_supports_evaluation_of_breakpoint_conditions): Add
9797 argument.
9798 * target.c (update_current_target): Update.
9799 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9800 argument.
9801 (remote_insert_breakpoint): Add 'self' argument.
9802 (remote_insert_hw_breakpoint): Add 'self' argument.
9803 (remote_supports_cond_breakpoints): Add 'self' argument.
9804
6de37a3a
TT
98052014-02-19 Tom Tromey <tromey@redhat.com>
9806
9807 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9808 argument.
9809 (target_supports_string_tracing): Add argument.
9810 * target.c (update_current_target): Update.
9811 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9812
2bfc0540
TT
98132014-02-19 Tom Tromey <tromey@redhat.com>
9814
9815 * target.h (struct target_ops)
9816 <to_supports_disable_randomization>: Add argument.
9817 * target.c (find_default_supports_disable_randomization): Add
9818 argument.
9819 (target_supports_disable_randomization): Add argument.
9820 (find_default_supports_disable_randomization): Add 'self'
9821 argument.
9822 * remote.c (extended_remote_supports_disable_randomization): Add
9823 'self' argument.
9824 (remote_supports_disable_randomization): Add 'self' argument.
9825 (extended_remote_create_inferior): Update.
9826 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9827 'self' argument.
9828
7d178d6a
TT
98292014-02-19 Tom Tromey <tromey@redhat.com>
9830
9831 * target.h (struct target_ops)
9832 <to_supports_enable_disable_tracepoint>: Add argument.
9833 (target_supports_enable_disable_tracepoint): Add argument.
9834 * target.c (update_current_target): Update.
9835 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9836 argument.
9837
86ce2668
TT
98382014-02-19 Tom Tromey <tromey@redhat.com>
9839
9840 * target.h (struct target_ops) <to_supports_multi_process>: Add
9841 argument.
9842 (target_supports_multi_process): Add argument.
9843 * target.c (update_current_target): Update.
9844 * remote.c (remote_supports_multi_process): Add 'self' argument.
9845 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9846 argument.
9847 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9848 argument.
9849
4c612759
TT
98502014-02-19 Tom Tromey <tromey@redhat.com>
9851
9852 * target.h (struct target_ops) <to_execution_direction>: Add
9853 argument.
9854 (target_execution_direction): Add argument.
9855 * target.c (default_execution_direction): Add 'self' argument.
9856 * record-full.c (record_full_execution_direction): Add 'self'
9857 argument.
9858
19db3e69
TT
98592014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9862 argument.
9863 (target_can_execute_reverse): Add argument.
9864 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9865 * record-full.c (record_full_can_execute_reverse): Add 'self'
9866 argument.
9867 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9868 argument.
9869
1e6b91a4
TT
98702014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9873 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9874 argument.
9875 (target_get_ada_task_ptid): Add argument.
9876 * target.c (update_current_target): Update.
9877 (default_get_ada_task_ptid): Add 'self' argument.
9878 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9879 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9880 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9881 argument.
9882 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9883 argument.
9884 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9885 argument.
9886 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9887 argument.
9888 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9889 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9890 argument.
9891
3c80fb48
TT
98922014-02-19 Tom Tromey <tromey@redhat.com>
9893
9894 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9895 (target_goto_bookmark): Add argument.
9896 * target.c (dummy_goto_bookmark): Add 'self' argument.
9897 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9898
dd0e2830
TT
98992014-02-19 Tom Tromey <tromey@redhat.com>
9900
9901 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9902 (target_get_bookmark): Add argument.
9903 * target.c (dummy_get_bookmark): Add 'self' argument.
9904 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9905
fc6691b2
TT
99062014-02-19 Tom Tromey <tromey@redhat.com>
9907
9908 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9909 argument.
9910 (target_make_corefile_notes): Add argument.
9911 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9912 * procfs.c (procfs_make_note_section): Add 'self' argument.
9913 (procfs_make_note_section): Add 'self' argument.
9914 (procfs_make_note_section): Add 'self' argument.
9915 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9916 argument.
9917 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9918 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9919 * exec.c (exec_make_note_section): Add 'self' argument.
9920 (exec_make_note_section): Add 'self' argument.
9921
2e73927c
TT
99222014-02-19 Tom Tromey <tromey@redhat.com>
9923
9924 * target.h (struct target_ops) <to_find_memory_regions>: Add
9925 argument.
9926 (target_find_memory_regions): Add argument.
9927 * target.c (dummy_find_memory_regions): Add 'self' argument.
9928 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9929 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9930 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9931 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9932 * exec. (exec_do_find_memory_regions): New global.
9933 (exec_set_find_memory_regions): Rewrite.
9934 (exec_find_memory_regions): New function.
9935 (init_exec_ops): Use exec_find_memory_regions.
9936
2a9a2795
TT
99372014-02-19 Tom Tromey <tromey@redhat.com>
9938
9939 * target.h (struct target_ops) <to_supports_non_stop>: Add
9940 argument.
9941 * target.c (find_default_supports_non_stop): Add argument.
9942 (target_supports_non_stop): Add argument.
9943 (find_default_supports_non_stop): Add 'self' argument.
9944 * remote.c (remote_supports_non_stop): Add 'self' argument.
9945 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9946
4ab76ea3
TT
99472014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * target.h (struct target_ops) <to_log_command>: Add argument.
9950 (target_log_command): Add argument.
9951 * serial.h (serial_log_command): Add 'self' argument.
9952 * serial.c (serial_log_command): Add 'self' argument.
9953
8dd27370
TT
99542014-02-19 Tom Tromey <tromey@redhat.com>
9955
9956 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9957 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9958 argument.
9959 (target_pid_to_exec_file): Add argument.
9960 * target.c (debug_to_pid_to_exec_file): Add argument.
9961 (update_current_target): Update.
9962 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9963 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9964 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9965 (linux_handle_extended_wait): Update.
9966 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9967 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9968 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9969 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9970
1aac633b
TT
99712014-02-19 Tom Tromey <tromey@redhat.com>
9972
9973 * target.h (struct target_ops) <to_rcmd>: Add argument.
9974 (target_rcmd): Add argument.
9975 * target.c (debug_to_rcmd): Add argument.
9976 (update_current_target, do_monitor_command): Update.
9977 * remote.c (remote_rcmd): Add 'self' argument.
9978 * monitor.c (monitor_rcmd): Add 'self' argument.
9979
1eab8a48
TT
99802014-02-19 Tom Tromey <tromey@redhat.com>
9981
9982 * windows-nat.c (windows_stop): Add 'self' argument.
9983 * target.h (struct target_ops) <to_stop>: Add argument.
9984 * target.c (target_stop): Add argument.
9985 (debug_to_stop): Add argument.
9986 (update_current_target): Update.
9987 * remote.c (remote_stop): Add 'self' argument.
9988 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9989 (gdbsim_cntrl_c): Update.
9990 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9991 * procfs.c (procfs_stop): Add 'self' argument.
9992 * nto-procfs.c (procfs_stop): Add 'self' argument.
9993 * monitor.c (monitor_stop): Add 'self' argument.
9994 (monitor_open): Update.
9995 * linux-nat.c (linux_nat_stop): Add argument.
9996 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9997 * gnu-nat.c (gnu_stop): Add 'self' argument.
9998 * darwin-nat.c (darwin_stop): Add 'self' argument.
9999
503a628d
TT
100002014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * target.h (struct target_ops) <to_thread_name>: Add argument.
10003 * target.c (target_thread_name): Add argument.
10004 (update_current_target): Update.
10005 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
10006
c15906d8
TT
100072014-02-19 Tom Tromey <tromey@redhat.com>
10008
10009 * target.h (struct target_ops) <to_extra_thread_info>: Add
10010 argument.
10011 (target_extra_thread_info): Add argument.
10012 * target.c (update_current_target): Update.
10013 * remote.c (remote_threads_extra_info): Add 'self' argument.
10014 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
10015 argument.
10016 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
10017 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
10018 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
10019 argument.
10020 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
10021 argument.
10022 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
10023 argument.
10024 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
10025 argument.
10026
daf5e9b6
TT
100272014-02-19 Tom Tromey <tromey@redhat.com>
10028
10029 * target.h (struct target_ops) <to_program_signals>: Add argument.
10030 * target.c (target_program_signals): Add argument.
10031 * remote.c (remote_program_signals): Add 'self' argument.
10032
94bedb42
TT
100332014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * target.h (struct target_ops) <to_pass_signals>: Add argument.
10036 * target.c (target_pass_signals): Add argument.
10037 * remote.c (remote_pass_signals): Add 'self' argument.
10038 (remote_start_remote): Update.
10039 * procfs.c (procfs_pass_signals): Add 'self' argument.
10040 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
10041 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10042 (linux_nat_create_inferior, linux_nat_attach): Update.
10043
da82bd6b
TT
100442014-02-19 Tom Tromey <tromey@redhat.com>
10045
10046 * windows-nat.c (windows_can_run): Add 'self' argument.
10047 * target.h (struct target_ops) <to_can_run>: Add argument.
10048 (target_can_run): Add argument.
10049 * target.c (debug_to_can_run): Add argument.
10050 (update_current_target): Update.
10051 * nto-procfs.c (procfs_can_run): Add 'self' argument.
10052 * inf-child.c (inf_child_can_run): Add 'self' argument.
10053 * go32-nat.c (go32_can_run): Add 'self' argument.
10054
d796e1d6
TT
100552014-02-19 Tom Tromey <tromey@redhat.com>
10056
10057 * target.h (struct target_ops) <to_has_exited>: Add argument.
10058 (target_has_exited): Add argument.
10059 * target.c (debug_to_has_exited): Add argument.
10060 (update_current_target): Update.
10061
ff214e67
TT
100622014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
10065 argument.
10066 (target_set_syscall_catchpoint): Add argument.
10067 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
10068 argument.
10069 * target.c (update_current_target): Update.
10070
758e29d2
TT
100712014-02-19 Tom Tromey <tromey@redhat.com>
10072
10073 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
10074 argument.
10075 (target_remove_exec_catchpoint): Add argument.
10076 * target.c (debug_to_remove_exec_catchpoint): Add argument.
10077 (update_current_target): Update.
10078 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
10079 argument.
10080
ba025e51
TT
100812014-02-19 Tom Tromey <tromey@redhat.com>
10082
10083 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
10084 argument.
10085 (target_insert_exec_catchpoint): Add argument.
10086 * target.c (debug_to_insert_exec_catchpoint): Add argument.
10087 (update_current_target): Update.
10088 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
10089 argument.
10090
e98cf0cd
TT
100912014-02-19 Tom Tromey <tromey@redhat.com>
10092
10093 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
10094 argument.
10095 (target_remove_vfork_catchpoint): Add argument.
10096 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
10097 (update_current_target): Update.
10098 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
10099 argument.
10100
3ecc7da0
TT
101012014-02-19 Tom Tromey <tromey@redhat.com>
10102
10103 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
10104 argument.
10105 (target_insert_vfork_catchpoint): Add argument.
10106 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
10107 (update_current_target): Update.
10108 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
10109 argument.
10110
973fc227
TT
101112014-02-19 Tom Tromey <tromey@redhat.com>
10112
10113 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
10114 argument.
10115 (target_remove_fork_catchpoint): Add argument.
10116 * target.c (debug_to_remove_fork_catchpoint): Add argument.
10117 (update_current_target): Update.
10118 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
10119 argument.
10120
a863b201
TT
101212014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
10124 argument.
10125 (target_insert_fork_catchpoint): Add argument.
10126 * target.c (debug_to_insert_fork_catchpoint): Add argument.
10127 (update_current_target): Update.
10128 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10129 argument.
10130
2e97a79e
TT
101312014-02-19 Tom Tromey <tromey@redhat.com>
10132
10133 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10134 argument.
10135 (target_post_startup_inferior): Add argument.
10136 * target.c (debug_to_post_startup_inferior): Add argument.
10137 (update_current_target): Update.
10138 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10139 argument.
10140 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10141 argument.
10142 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10143 argument.
10144 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10145 argument.
10146 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10147 'self' argument.
10148 (super_post_startup_inferior): Likewise.
10149 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10150 'self' argument.
10151 (super_post_startup_inferior): Likewise.
10152 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10153 Add 'self' argument.
10154 (super_post_startup_inferior): Likewise.
10155
71a9f134
TT
101562014-02-19 Tom Tromey <tromey@redhat.com>
10157
10158 * target.h (struct target_ops) <to_load>: Add argument.
10159 * target.c (target_load): Add argument.
10160 (debug_to_load): Add argument.
10161 (update_current_target): Update.
10162 * remote.c (remote_load): Add 'self' argument.
10163 * remote-sim.c (gdbsim_load): Add 'self' argument.
10164 * remote-mips.c (mips_load): Add 'self' argument.
10165 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10166 * monitor.c (monitor_load): Add 'self' argument.
10167 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10168
0a4f40a2
TT
101692014-02-19 Tom Tromey <tromey@redhat.com>
10170
10171 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10172 (target_terminal_info): Add argument.
10173 * target.c (debug_to_terminal_info): Add argument.
10174 (default_terminal_info): Likewise.
10175 * inflow.c (child_terminal_info): Add 'self' argument.
10176 * inferior.h (child_terminal_info): Add 'self' argument.
10177 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10178
ae3bd431
TT
101792014-02-19 Tom Tromey <tromey@redhat.com>
10180
10181 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10182 argument.
10183 (target_terminal_save_ours): Add argument.
10184 * target.c (debug_to_terminal_save_ours): Add argument.
10185 (update_current_target): Update.
10186 * inflow.c (terminal_save_ours): Add 'self' argument.
10187 * inferior.h (terminal_save_ours): Add 'self' argument.
10188
e3594fd1
TT
101892014-02-19 Tom Tromey <tromey@redhat.com>
10190
10191 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10192 (target_terminal_ours): Add argument.
10193 * target.c (debug_to_terminal_ours): Add argument.
10194 (update_current_target): Update.
10195 * remote.c (remote_terminal_ours): Add 'self' argument.
10196 (remote_close): Update.
10197 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10198 * inflow.c (terminal_ours): Add 'self' argument.
10199 * inferior.h (terminal_ours): Add 'self' argument.
10200 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10201
2e1e1a19
TT
102022014-02-19 Pedro Alves <palves@redhat.com>
10203 Tom Tromey <tromey@redhat.com>
10204
10205 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10206 argument.
10207 (target_terminal_ours_for_output): Add argument.
10208 * target.c (debug_to_terminal_ours_for_output): Add argument.
10209 (update_current_target): Update.
10210 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10211 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10212 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10213
d2f640d4
TT
102142014-02-19 Tom Tromey <tromey@redhat.com>
10215
10216 * target.h (struct target_ops) <to_terminal_inferior>: Add
10217 argument.
10218 * target.c (target_terminal_inferior): Add argument.
10219 (update_current_target): Update.
10220 * remote.c (remote_terminal_inferior): Add 'self' argument.
10221 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10222 * inflow.c (terminal_inferior): Add 'self' argument.
10223 * inferior.h (terminal_inferior): Add 'self' argument.
10224 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10225 (go32_terminal_inferior): Add 'self' argument.
10226
c42bf286
TT
102272014-02-19 Tom Tromey <tromey@redhat.com>
10228
10229 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10230 (target_terminal_init): Add argument.
10231 * target.c (debug_to_terminal_init): Add argument.
10232 (update_current_target): Update.
10233 * inflow.c (terminal_init_inferior): Add 'self' argument.
10234 * inferior.h (terminal_init_inferior): Add 'self' argument.
10235 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10236 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10237
c3a5ff89
TT
102382014-02-19 Tom Tromey <tromey@redhat.com>
10239
10240 * target.h (struct target_ops)
10241 <to_can_accel_watchpoint_condition>: Add argument.
10242 (target_can_accel_watchpoint_condition): Add argument.
10243 * target.c (debug_to_can_accel_watchpoint_condition): Add
10244 argument.
10245 (update_current_target): Update.
10246 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10247 'self' argument.
10248
31568a15
TT
102492014-02-19 Tom Tromey <tromey@redhat.com>
10250
10251 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10252 Add argument.
10253 (target_region_ok_for_hw_watchpoint): Add argument.
10254 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10255 (default_region_ok_for_hw_watchpoint): Add argument.
10256 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10257 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10258 argument.
10259 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10260 argument.
10261 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10262 argument.
10263 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10264 'self' argument.
10265 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10266 'self' argument.
10267 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10268 'self' argument.
10269 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10270 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10271 'self' argument.
10272 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10273 Add 'self' argument.
10274
7bb99c53
TT
102752014-02-19 Tom Tromey <tromey@redhat.com>
10276
10277 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10278 argument.
10279 (target_insert_watchpoint): Add argument.
10280 * target.c (debug_to_insert_watchpoint): Add argument.
10281 (update_current_target): Update.
10282 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10283 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10284 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10285 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10286 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10287 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10288 argument.
10289 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10290 (procfs_insert_hw_watchpoint): Add 'self' argument.
10291 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10292 argument.
10293 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10294 argument.
10295 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10296 argument.
10297 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10298 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10299 argument.
10300 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10301 'self' argument.
10302
11b5219a
TT
103032014-02-19 Tom Tromey <tromey@redhat.com>
10304
10305 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10306 argument.
10307 (target_remove_watchpoint): Add argument.
10308 * target.c (debug_to_remove_watchpoint): Add argument.
10309 (update_current_target): Update.
10310 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10311 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10312 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10313 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10314 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10315 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10316 argument.
10317 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10318 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10319 argument.
10320 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10321 argument.
10322 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10323 argument.
10324 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10325 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10326 argument.
10327 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10328 'self' argument.
10329
a64dc96c
TT
103302014-02-19 Tom Tromey <tromey@redhat.com>
10331
10332 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10333 argument.
10334 (target_remove_hw_breakpoint): Add argument.
10335 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10336 (update_current_target): Update.
10337 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10338 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10339 argument.
10340 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10341 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10342 argument.
10343 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10344 'self' argument.
10345
23a26771
TT
103462014-02-19 Tom Tromey <tromey@redhat.com>
10347
10348 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10349 argument.
10350 (target_insert_hw_breakpoint): Add argument.
10351 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10352 (update_current_target): Update.
10353 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10354 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10355 argument.
10356 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10357 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10358 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10359 argument.
10360 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10361 'self' argument.
10362
5461485a
TT
103632014-02-19 Tom Tromey <tromey@redhat.com>
10364
10365 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10366 argument.
10367 (target_can_use_hardware_watchpoint): Add argument.
10368 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10369 (update_current_target): Update.
10370 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10371 argument.
10372 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10373 argument.
10374 * remote.c (remote_check_watch_resources): Add 'self' argument.
10375 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10376 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10377 argument.
10378 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10379 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10380 argument.
10381 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10382 argument.
10383 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10384 argument.
10385 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10386 argument.
10387 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10388 argument.
10389 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10390 argument.
10391 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10392 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10393 argument.
10394 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10395 'self' argument.
10396
f045800c
TT
103972014-02-19 Tom Tromey <tromey@redhat.com>
10398
10399 * target.h (struct target_ops) <to_post_attach>: Add argument.
10400 (target_post_attach): Add argument.
10401 * target.c (debug_to_post_attach): Add argument.
10402 (update_current_target): Update.
10403 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10404 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10405 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10406 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10407 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10408
de90e03d
TT
104092014-02-19 Tom Tromey <tromey@redhat.com>
10410
10411 * windows-nat.c (windows_close): Add 'self' argument.
10412 * tracepoint.c (tfile_close): Add 'self' argument.
10413 * target.h (struct target_ops) <to_close>: Add argument.
10414 * target.c (target_close): Add argument.
10415 (update_current_target): Update.
10416 * remote.c (remote_close): Add 'self' argument.
10417 * remote-sim.c (gdbsim_close): Add 'self' argument.
10418 * remote-mips.c (mips_close): Add 'self' argument.
10419 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10420 * record-full.c (record_full_close): Add 'self' argument.
10421 * record-btrace.c (record_btrace_close): Add 'self' argument.
10422 * monitor.h (monitor_close): Add 'self' argument.
10423 * monitor.c (monitor_close): Add 'self' argument.
10424 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10425 * linux-nat.c (linux_nat_close): Add argument.
10426 * go32-nat.c (go32_close): Add 'self' argument.
10427 * exec.c (exec_close_1): Add 'self' argument.
10428 * ctf.c (ctf_close): Add 'self' argument.
10429 * corelow.c (core_close): Add 'self' argument.
10430 (core_close_cleanup): Update.
10431 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10432 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10433
9dd130a0
TT
104342014-02-19 Tom Tromey <tromey@redhat.com>
10435
10436 * remote.c (remote_load): New function.
10437 (init_remote_ops): Use it.
10438
46917d26
TT
104392014-02-19 Tom Tromey <tromey@redhat.com>
10440
10441 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10442 argument.
10443 * common/linux-btrace.h (linux_supports_btrace): Update.
10444 * remote.c (remote_supports_btrace): Add "self" argument.
10445 * target-delegates.c: Rebuild.
10446 * target.c (target_supports_btrace): Remove.
10447 * target.h (struct target_ops) <to_supports_btrace>: Add
10448 target_ops argument.
10449 (target_supports_btrace): New define.
10450
6b84065d
TT
104512014-02-19 Tom Tromey <tromey@redhat.com>
10452
10453 * record-full.c (record_full_beneath_to_resume_ops)
10454 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10455 (record_full_beneath_to_wait)
10456 (record_full_beneath_to_store_registers_ops)
10457 (record_full_beneath_to_store_registers)
10458 (record_full_beneath_to_xfer_partial_ops)
10459 (record_full_beneath_to_xfer_partial)
10460 (record_full_beneath_to_insert_breakpoint_ops)
10461 (record_full_beneath_to_insert_breakpoint)
10462 (record_full_beneath_to_remove_breakpoint_ops)
10463 (record_full_beneath_to_remove_breakpoint)
10464 (record_full_beneath_to_stopped_by_watchpoint)
10465 (record_full_beneath_to_stopped_data_address)
10466 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10467 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10468 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10469 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10470 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10471 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10472 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10473 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10474 (record_full_resume, record_full_wait_1)
10475 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10476 (record_full_store_registers, record_full_xfer_partial)
10477 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10478 (record_full_async, record_full_core_xfer_partial): Use target
10479 delegation.
10480 * target-delegates.c: Rebuild.
10481 * target.c (current_xfer_partial): Remove.
10482 (update_current_target): Do not INHERIT or de_fault
10483 to_insert_breakpoint, to_remove_breakpoint,
10484 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10485 to_is_async_p, to_async. Do not set to_xfer_partial field.
10486 (default_xfer_partial): Simplify.
10487 (current_xfer_partial): Remove.
10488 (target_wait, target_resume): Simplify.
10489 (find_default_can_async_p, find_default_is_async_p): Update.
10490 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10491 to_xfer_partial, to_stopped_by_watchpoint,
10492 to_stopped_data_address.
10493 (target_store_registers): Simplify.
10494 (forward_target_remove_breakpoint)
10495 (forward_target_insert_breakpoint): Remove.
10496 (target_remove_breakpoint, target_insert_breakpoint)
10497 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10498 * target.h (struct target_ops) <to_resume, to_wait,
10499 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10500 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10501 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10502 markup.
10503 (forward_target_remove_breakpoint)
10504 (forward_target_insert_breakpoint): Remove.
10505 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10506 directly.
10507 (record_btrace_insert_breakpoint): Delegate directly.
10508
1101cb7b
TT
105092014-02-19 Tom Tromey <tromey@redhat.com>
10510
10511 PR build/7701:
10512 * target-delegates.c: New file.
10513 * target.c: Include target-delegates.c.
10514 (init_dummy_target): Call install_dummy_methods.
10515 (complete_target_initialization): Call install_delegators.
10516 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10517 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10518 * make-target-delegates: New file.
10519
8b06beed
TT
105202014-02-19 Tom Tromey <tromey@redhat.com>
10521
10522 * record.c (find_record_target): Use find_target_at.
10523 * target.c (find_target_at): New function.
10524 * target.h (find_target_at): Declare.
10525
6a109b6b
TT
105262014-02-19 Tom Tromey <tromey@redhat.com>
10527
10528 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10529 Add 'ops' argument.
10530 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10531 'ops' argument.
10532 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10533 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10534 'ops' argument.
10535 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10536 argument.
10537 * linux-nat.c (save_sigtrap): Update.
10538 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10539 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10540 (linux_nat_close): Update.
10541 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10542 argument.
10543 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10544 argument.
10545 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10546 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10547 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10548 (tmp_to_async): Add 'ops' argument.
10549 (record_full_stopped_by_watchpoint, record_full_async)
10550 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10551 argument.
10552 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10553 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10554 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10555 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10556 (remote_is_async_p, remote_async): Add 'ops' argument.
10557 (remote_stopped_data_address): Update.
10558 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10559 * target.c (update_current_target)
10560 (find_default_can_async_p, find_default_is_async_p): Update.
10561 (init_dummy_target): Update.
10562 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10563 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10564 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10565 (target_can_async_p, target_is_async_p, target_async)
10566 (target_stopped_by_watchpoint): Update.
10567
e095146b
YQ
105682014-02-19 Yao Qi <yao@codesourcery.com>
10569
10570 PR gdb/16220
10571 * gdbarch.sh: Remove startup_gdbarch.
10572 * gdbarch.c: Regenerated.
10573 * gdbarch.h: Likewise.
10574
bc3c6b36
KB
105752014-02-17 Kevin Buettner <kevinb@redhat.com>
10576
10577 * rl78-tdep.c (rl78_g10_register_name): New function.
10578 (rl78_return_value): Add g10 support.
10579 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10580 g10.
10581
98dc0167 105822014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10583
10584 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10585 (SUBDIR_GUILE_SRCS): Ditto.
10586 (scm-gsmob.o): Ditto.
10587
842c05cd
YQ
105882014-02-17 Yao Qi <yao@codesourcery.com>
10589
10590 * gnu-nat.c (ILL_RPC): Declare defined function.
10591
25c0bd04
YQ
105922014-02-17 Yao Qi <yao@codesourcery.com>
10593
10594 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10595 mach_msg_type_number_t.
10596 (gnu_write_inferior): Likewise.
10597
a9a758e3
YQ
105982014-02-17 Yao Qi <yao@codesourcery.com>
10599
10600 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10601 in format string.
10602 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10603 (inf_validate_procs, inf_signal): Likewise.
10604 (S_exception_raise_request): Likewise.
10605 (do_mach_notify_dead_name): Likewise.
10606 (steal_exc_port): Likewise.
10607 (gnu_read_inferior): Change 'copy_count''s type to
10608 mach_msg_type_number_t.
10609 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10610 format string.
10611
bae8023e
TS
106122014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10613
c82f56d9
TS
10614 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10615 flag. Adjust all users; in particular...
10616 (gnu_wait): ..., don't decrement its value in here...
10617 (gnu_create_inferior): ..., and instead set the flag in here,
10618 around the startup_inferior call, and call that one with
10619 START_INFERIOR_TRAPS_EXPECTED.
10620
3398af6a
TS
10621 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10622 (ILL_RPC): ... new macro.
10623 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10624 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10625 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10626 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10627 functions with ILL_RPC macro.
10628 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10629 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10630 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10631 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10632 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10633 (S_proc_getlogin_reply, S_proc_getsid_reply)
10634 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10635 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10636 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10637 (S_proc_getnports_reply, S_proc_is_important_reply)
10638 (S_proc_get_code_reply): New stub functions, generated with
10639 ILL_RPC macro.
10640
d47642c9
TS
10641 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10642 collected the type check structures.
10643
bae8023e
TS
10644 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10645
8a55ffb0
DE
106462014-02-14 Doug Evans <dje@google.com>
10647
10648 * target.c (target_write_partial): Fix result type.
10649
c2853f3d
JM
106502014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10651
10652 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10653 the proper offsets to access fpregset_t.
10654
ac61d2db
SA
106552014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10656
10657 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10658 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10659 * h8300-tdep.c (setmachinelist): Remove global.
10660 * hppa-tdep.c (hppa_sigtramp): Remove global.
10661 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10662 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10663 * ravenscar-thread.c (update_target_observer): Remove global.
10664 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10665
9d2d0b8b
TT
106662014-02-12 Tom Tromey <tromey@redhat.com>
10667
10668 * common/rsp-low.c: Update comments.
10669 * common/rsp-low.h: Update comments.
10670
a7191e8b
TT
106712014-02-12 Tom Tromey <tromey@redhat.com>
10672
10673 * common/rsp-low.c (convert_ascii_to_int): Remove.
10674 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10675
ff0e980e
TT
106762014-02-12 Tom Tromey <tromey@redhat.com>
10677
10678 * common/rsp-low.h (unhexify): Don't declare.
10679 * common/rsp-low.c (unhexify): Remove.
10680
e9371aff
TT
106812014-02-12 Tom Tromey <tromey@redhat.com>
10682
10683 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10684 * common/rsp-low.c (convert_int_to_ascii): Remove.
10685
971dc0b8
TT
106862014-02-12 Tom Tromey <tromey@redhat.com>
10687
10688 * common/rsp-low.h (hexify): Don't declare.
10689 * common/rsp-low.c (hexify): Remove.
10690
0a822afb
TT
106912014-02-12 Tom Tromey <tromey@redhat.com>
10692
10693 * common/rsp-low.c (hexify): Never take strlen of argument.
10694
9f1b45b0
TT
106952014-02-12 Tom Tromey <tromey@redhat.com>
10696
10697 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10698 * remote.c (extended_remote_run, remote_rcmd)
10699 (remote_download_trace_state_variable, remote_save_trace_data)
10700 (remote_set_trace_notes): Update.
10701 * tracepoint.c (encode_source_string, tfile_write_status)
10702 (tfile_write_uploaded_tsv): Update.
10703
9c3d6531
TT
107042014-02-12 Tom Tromey <tromey@redhat.com>
10705
10706 * tracepoint.c: Include rsp-low.h.
10707 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10708 * remote.c: Include rsp-low.h.
10709 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10710 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10711 (remote_unescape_input): Move to common/rsp-low.c.
10712 * common/rsp-low.h: New file.
10713 * common/rsp-low.c: New file.
10714 * Makefile.in (SFILES): Add common/rsp-low.c.
10715 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10716 (COMMON_OBS): Add rsp-low.o.
10717 (rsp-low.o): New target.
10718
01fd3ea5
TT
107192014-02-12 Tom Tromey <tromey@redhat.com>
10720
10721 * utils.h: Include print-utils.h.
10722 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10723 (int_string, core_addr_to_string, core_addr_to_string_nz)
10724 (hex_string, hex_string_custom): Don't declare.
10725 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10726 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10727 (hex_string_custom, int_string, core_addr_to_string)
10728 (core_addr_to_string_nz, host_address_to_string): Move to
10729 common/print-utils.c.
10730 * common/print-utils.h: New file.
10731 * common/print-utils.c: New file
10732 * Makefile.in (SFILES): Add common/print-utils.c.
10733 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10734 (COMMON_OBS): Add print-utils.o.
10735 (print-utils.o): New target.
10736
9fb50108
TT
107372014-02-12 Tom Tromey <tromey@redhat.com>
10738
10739 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10740
0548b5db
MK
107412014-02-12 Mark Kettenis <kettenis@gnu.org>
10742
10743 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10744
493443a4
MK
107452014-02-12 Mark Kettenis <kettenis@gnu.org>
10746
10747 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10748 if a PT_IO ptrace request returns sucessfully but indicates that 0
10749 bytes were transferred.
10750
706d0883
PA
107512014-02-12 Pedro Alves <palves@redhat.com>
10752 Kevin Buettner <kevinb@redhat.com>
10753
10754 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10755 TYPE_INSTANCE_FLAG_CODE_SPACE.
10756
5caa2f0b
PA
107572014-02-12 Pedro Alves <palves@redhat.com>
10758
10759 * h8300-tdep.c (pseudo_from_raw_register)
10760 (raw_from_pseudo_register): New functions.
10761 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10762 them.
10763
76fd5f74
PA
107642014-02-12 Pedro Alves <palves@redhat.com>
10765
10766 * h8300-tdep.c (h8300_register_sim_regno): New function.
10767 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10768 gdbarch_register_sim_regno hook.
10769
8f008406
SA
107702014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10771
10772 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10773
195abc10
SA
107742014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10775
10776 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10777
93ffa5b9
MK
107782014-02-12 Mark Kettenis <kettenis@gnu.org>
10779
10780 * obsd-tdep.h (obsd_init_abi): New prototype.
10781 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10782 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10783 (obsd_init_abi): New functions.
10784 * i386obsd-tdep.c: Include "obsd-tdep.h".
10785 (i386obsd_init_abi): Call obsd_init_abi.
10786 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10787 (amd64obsd_init_abi): Call obsd_init_abi.
10788 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10789 obsd-tdep.c to gdb_target_obs.
10790
49caec94
JM
107912014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10792
10793 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10794 double float arguments to 16-byte in the argument slots.
10795
e1402065
DE
107962014-02-11 Doug Evans <xdje42@gmail.com>
10797
10798 * configure.ac: Don't crash if pkg-config is not found and guile
10799 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10800 in guile checks.
10801 * configure: Regenerate.
10802
edcc890f
YQ
108032014-02-11 Yao Qi <yao@codesourcery.com>
10804
10805 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10806 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10807 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10808 * gnu-nat.c (gnu_xfer_memory): Likewise.
10809 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10810 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10811 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10812 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10813
9b409511
YQ
108142014-02-11 Yao Qi <yao@codesourcery.com>
10815
10816 * target.h (enum target_xfer_error): Rename to ...
10817 (enum target_xfer_status): ... it. New. All users updated.
10818 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10819 New.
10820 (TARGET_XFER_STATUS_ERROR_P): New macro.
10821 (target_xfer_error_to_string): Remove declaration.
10822 (target_xfer_status_to_string): Declare.
10823 (target_xfer_partial_ftype): Adjust it.
10824 (struct target_ops) <to_xfer_partial>: Return
10825 target_xfer_status. Add argument xfered_len. Update
10826 comments.
10827 * target.c (target_xfer_error_to_string): Rename to ...
10828 (target_xfer_status_to_string): ... it. New. All callers
10829 updated.
10830 (target_read_live_memory): Likewise. Call target_xfer_partial
10831 instead of target_read.
10832 (memory_xfer_live_readonly_partial): Return
10833 target_xfer_status. Add argument xfered_len.
10834 (raw_memory_xfer_partial): Likewise.
10835 (memory_xfer_partial_1): Likewise.
10836 (memory_xfer_partial): Likewise.
10837 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10838 properly. Update debug message.
10839 (default_xfer_partial, current_xfer_partial): Likewise.
10840 (target_write_partial): Likewise.
10841 (target_read_partial): Likewise. All callers updated.
10842 (read_whatever_is_readable): Likewise.
10843 (target_write_with_progress): Likewise.
10844 (target_read_alloc_1): Likewise.
10845
10846 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10847 * auxv.c (procfs_xfer_auxv): Likewise.
10848 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10849 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10850 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10851 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10852 * corefile.c (read_memory): Adjust.
10853 * corelow.c (core_xfer_partial): Likewise.
10854 * ctf.c (ctf_xfer_partial): Likewise.
10855 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10856 updated.
10857 (darwin_xfer_partial): Likewise.
10858 * exec.c (section_table_xfer_memory_partial): Likewise. All
10859 callers updated.
10860 (exec_xfer_partial): Likewise.
10861 * exec.h (section_table_xfer_memory_partial): Update
10862 declaration.
10863 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10864 negative.
10865 (gnu_xfer_partial): Likewise.
10866 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10867 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10868 (ia64_hpux_xfer_solib_got): Likewise.
10869 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10870 type of 'partial_len' to ULONGEST.
10871 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10872 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10873 (linux_nat_xfer_partial): Likewise.
10874 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10875 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10876 * monitor.c (monitor_xfer_memory): Likewise.
10877 (monitor_xfer_partial): Likewise.
10878 * procfs.c (procfs_xfer_partial): Likewise.
10879 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10880 * record-full.c (record_full_xfer_partial): Likewise.
10881 (record_full_core_xfer_partial): Likewise.
10882 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10883 (gdbsim_xfer_partial): Likewise.
10884 * remote.c (remote_write_bytes_aux): Likewise. All callers
10885 updated.
10886 (remote_write_bytes, remote_read_bytes): Likewise. All
10887 callers updated.
10888 (remote_flash_erase): Likewise. All callers updated.
10889 (remote_write_qxfer): Likewise. All callers updated.
10890 (remote_read_qxfer): Likewise. All callers updated.
10891 (remote_xfer_partial): Likewise.
10892 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10893 (rs6000_xfer_shared_libraries): Likewise.
10894 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10895 (sol_thread_xfer_partial): Likewise.
10896 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10897 (sparc_xfer_partial): Likewise.
10898 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10899 updated.
10900 (spu_xfer_partial): Likewise.
10901 * spu-multiarch.c (spu_xfer_partial): Likewise.
10902 * tracepoint.c (tfile_xfer_partial): Likewise.
10903 * windows-nat.c (windows_xfer_memory): Likewise.
10904 (windows_xfer_shared_libraries): Likewise.
10905 (windows_xfer_partial): Likewise.
10906 * valprint.c: Replace 'target_xfer_error' with
10907 'target_xfer_status' in comments.
10908
a8e63083
JB
109092014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10910
10911 Checked in by Joel Brobecker <brobecker@adacore.com>.
10912 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10913
e86b67d3
JB
109142014-02-11 Joel Brobecker <brobecker@adacore.com>
10915
10916 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10917 function parameters.
10918
4b7d1f7f
WN
109192014-02-10 Will Newton <will.newton@linaro.org>
10920
10921 * elfread.c (elf_rel_plt_read): Look for a .got section if
10922 looking up .got.plt fails.
10923 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10924 on address passed to elf_gnu_ifunc_record_cache.
10925 (elf_gnu_ifunc_resolve_addr): Likewise.
10926 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10927
961842b2
JM
109282014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10929
10930 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10931 (X_RETTURN): New macro.
10932 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10933
10934 * sparc64-tdep.c (sparc64_init_abi): Hook
10935 sparc_in_function_epilogue_p.
10936
3f03e7b1
GB
109372014-02-10 Gary Benson <gbenson@redhat.com>
10938
10939 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10940 Rename name_matcher to symbol_matcher.
10941
96f861ef
GB
109422014-02-10 Gary Benson <gbenson@redhat.com>
10943
10944 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10945 Use expand_symtabs_file_matcher_ftype and
10946 expand_symtabs_symbol_matcher_ftype.
10947
ee01b665
JB
109482014-02-10 Joel Brobecker <brobecker@adacore.com>
10949
10950 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10951 (struct ada_symbol_cache): New.
10952 (ada_free_symbol_cache): Forward declare.
10953 (struct ada_pspace_data): New.
10954 (ada_pspace_data_handle): New static global.
10955 (get_ada_pspace_data, ada_pspace_data_cleanup)
10956 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10957 (cache_space, cache): Delete, now folded inside struct
10958 ada_pspace_data.
10959 (ada_get_symbol_cache): New function.
10960 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10961 implementation.
10962 (_initialize_ada_language): Remove initialization of cache_space.
10963 Move call to observer_attach_inferior_exit up, grouping it
10964 with the other observer registrations inside this function.
10965 Rename command to be more general. Add call to
10966 register_program_space_data_with_cleanup.
10967
143adbbf
JB
109682014-02-10 Joel Brobecker <brobecker@adacore.com>
10969
10970 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10971 ada_new_objfile_observer.
10972 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10973 (_initialize_tasks): Update uses of ada_new_objfile_observer
10974 and ada_tasks_normal_stop_observer.
10975
aa4fb036
JB
109762014-02-10 Joel Brobecker <brobecker@adacore.com>
10977
10978 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10979 returned by the 'Length attribute to integer.
10980
9dee8cc6
JB
109812014-02-10 Joel Brobecker <brobecker@adacore.com>
10982
10983 * ada-lang.c (_initialize_ada_language): Initialize
10984 cache_space obstack.
10985
3d9434b5
JB
109862014-02-10 Joel Brobecker <brobecker@adacore.com>
10987
10988 * ada-lang.c (HASH_SIZE): New macro.
10989 (struct cache_entry): New type.
10990 (cache_space, cache): New static globals.
10991 (ada_clear_symbol_cache, find_entry): New functions.
10992 (lookup_cached_symbol, cache_symbol): Implement.
10993 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10994 (_initialize_ada_language): Attach ada_new_objfile_observer
10995 and ada_free_objfile_observer.
10996
f0c5f9b2
JB
109972014-02-10 Joel Brobecker <brobecker@adacore.com>
10998
10999 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
11000 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
11001 struct block * parameter.
11002 (ada_lookup_symbol_list_worker): Constify local variable "block".
11003 Remove cast which is no longer necessary.
11004
ed3ef339
DE
110052014-02-10 Doug Evans <xdje42@gmail.com>
11006
11007 Add Guile as an extension language.
11008 * NEWS: Mention Guile scripting.
11009 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
11010 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
11011 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
11012 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
11013 (CLIBS): Add GUILE_LIBS.
11014 (install-guile): New rule.
11015 (guile.o): New rule.
11016 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
11017 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
11018 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
11019 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
11020 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
11021 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
11022 (scm-type.o, scm-utils.o, scm-value.o): New rules.
11023 * configure.ac: New option --with-guile.
11024 * configure: Regenerate.
11025 * config.in: Regenerate.
11026 * auto-load.c: Remove #include "python/python.h". Add #include
11027 "gdb/section-scripts.h".
11028 (source_section_scripts): Handle Guile scripts.
11029 (_initialize_auto_load): Add name of Guile objfile script to
11030 scripts-directory help text.
11031 * breakpoint.c (condition_command): Tweak comment to include Scheme.
11032 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
11033 (struct breakpoint): New member scm_bp_object.
11034 * defs.h (enum command_control_type): New value guile_control.
11035 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
11036 "extension.h".
11037 (show_user): Update comment.
11038 (_initialize_cli_cmds): Update help text for "show user". Update help
11039 text for max-user-call-depth.
11040 * cli/cli-script.c: Remove #include "python/python.h". Add #include
11041 "extension.h".
11042 (multi_line_command_p): Add guile_control.
11043 (print_command_lines): Handle guile_control.
11044 (execute_control_command, recurse_read_control_structure): Ditto.
11045 (process_next_line): Recognize "guile" commands.
11046 * disasm.c (gdb_disassemble_info): Make non-static.
11047 * disasm.h: #include "dis-asm.h".
11048 (struct gdbarch): Add forward decl.
11049 (gdb_disassemble_info): Declare.
11050 * extension.c: #include "guile/guile.h".
11051 (extension_languages): Add guile.
11052 (get_ext_lang_defn): Handle EXT_LANG_GDB.
11053 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
11054 * gdbtypes.c (get_unsigned_type_max): New function.
11055 (get_signed_type_minmax): New function.
11056 * gdbtypes.h (get_unsigned_type_max): Declare.
11057 (get_signed_type_minmax): Declare.
11058 * guile/README: New file.
11059 * guile/guile-internal.h: New file.
11060 * guile/guile.c: New file.
11061 * guile/guile.h: New file.
11062 * guile/scm-arch.c: New file.
11063 * guile/scm-auto-load.c: New file.
11064 * guile/scm-block.c: New file.
11065 * guile/scm-breakpoint.c: New file.
11066 * guile/scm-disasm.c: New file.
11067 * guile/scm-exception.c: New file.
11068 * guile/scm-frame.c: New file.
11069 * guile/scm-gsmob.c: New file.
11070 * guile/scm-iterator.c: New file.
11071 * guile/scm-lazy-string.c: New file.
11072 * guile/scm-math.c: New file.
11073 * guile/scm-objfile.c: New file.
11074 * guile/scm-ports.c: New file.
11075 * guile/scm-pretty-print.c: New file.
11076 * guile/scm-safe-call.c: New file.
11077 * guile/scm-string.c: New file.
11078 * guile/scm-symbol.c: New file.
11079 * guile/scm-symtab.c: New file.
11080 * guile/scm-type.c: New file.
11081 * guile/scm-utils.c: New file.
11082 * guile/scm-value.c: New file.
11083 * guile/lib/gdb.scm: New file.
11084 * guile/lib/gdb/boot.scm: New file.
11085 * guile/lib/gdb/experimental.scm: New file.
11086 * guile/lib/gdb/init.scm: New file.
11087 * guile/lib/gdb/iterator.scm: New file.
11088 * guile/lib/gdb/printing.scm: New file.
11089 * guile/lib/gdb/types.scm: New file.
11090 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
11091 (VPATH): Add $(GUILE_SRCDIR).
11092 (GUILE_DIR): New variable.
11093 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
11094 (all): Add stamp-guile dependency.
11095 (stamp-guile): New rule.
11096 (clean-guile, install-guile, uninstall-guile): New rules.
11097 (install-only): Add install-guile dependency.
11098 (uninstall): Add uninstall-guile dependency.
11099 (clean): Add clean-guile dependency.
11100
ac020ec5
DE
111012014-02-09 Doug Evans <xdje42@gmail.com>
11102
11103 Revert this patch (which I approved, mea culpa).
11104
11105 2014-02-08 Mark Kettenis <kettenis@gnu.org>
11106
11107 * Makefile.in (all-lib): Remove.
11108 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11109
2a081c59
JK
111102014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11111
11112 Fix Python stack corruption.
11113 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
11114 gdb_py_longest.
11115
0a6bd22d
MK
111162014-02-08 Mark Kettenis <kettenis@gnu.org>
11117
11118 * Makefile.in (all-lib): Remove.
11119 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
11120
1a860409
DE
111212014-02-07 Doug Evans <dje@google.com>
11122
11123 * extension-priv.h (extension_language_script_ops): Add comment.
11124 (extension_language_ops): Add comment.
caf5a491 11125 (active_ext_lang_state): Fix typo in comment.
1a860409 11126
d137e6dc
PA
111272014-02-07 Pedro Alves <palves@redhat.com>
11128
0dcb32c3 11129 PR breakpoints/16292
d137e6dc
PA
11130 * infrun.c (handle_signal_stop) <signal arrives while stepping
11131 over a breakpoint>: Switch back to the stepping thread.
11132
ce6d0892
YQ
111332014-02-07 Yao Qi <yao@codesourcery.com>
11134
11135 * target.c (target_xfer_partial): Return zero if LEN is zero.
11136
2ed4b548
YQ
111372014-02-07 Yao Qi <yao@codesourcery.com>
11138
11139 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11140 (ld_so_xfer_auxv): Likewise.
11141 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11142 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11143 * corelow.c (core_xfer_partial): Likewise.
11144 * ctf.c (ctf_xfer_partial): Likewise.
11145 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11146 (darwin_xfer_partial): Likewise.
11147 * exec.c (exec_xfer_partial): Likewise.
11148 * gnu-nat.c (gnu_xfer_partial): Likewise.
11149 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11150 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11151 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11152 * linux-nat.c (linux_xfer_siginfo): Likewise.
11153 (linux_proc_xfer_spu): Likewise.
11154 * procfs.c (procfs_xfer_partial): Likewise.
11155 * record-full.c (record_full_xfer_partial): Likewise.
11156 (record_full_core_xfer_partial): Likewise.
11157 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11158 * remote.c (remote_write_qxfer): Likewise.
11159 (remote_write_qxfer, remote_read_qxfer): Likewise.
11160 (remote_xfer_partial): Likewise.
11161 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11162 (rs6000_xfer_shared_libraries): Likewise.
11163 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11164 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11165 (spu_xfer_partial): Likewise.
11166 * target.c (memory_xfer_partial_1): Likewise.
11167 * tracepoint.c (tfile_xfer_partial): Likewise.
11168 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11169 (windows_xfer_partial): Likewise.
11170
c09f20e4
YQ
111712014-02-07 Yao Qi <yao@codesourcery.com>
11172
11173 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11174 comments.
11175 (core_xfer_shared_libraries_aix): Likewise.
11176 * gdbarch.c, gdbarch.h: Regenerated.
11177 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11178 ULONGEST. Change 'len_avail' type to ULONGEST.
11179 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11180 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11181 declaration.
11182 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11183
8635b3bf
YQ
111842014-02-07 Yao Qi <yao@codesourcery.com>
11185
11186 * corefile.c (memory_error): Get 'exception' from ERR and pass
11187 'exception' to throw_error.
11188
6dddc817
DE
111892014-02-06 Doug Evans <xdje42@gmail.com>
11190
11191 * configure.ac (libpython checking): Remove all but python.o from
11192 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11193 * configure: Regenerate.
11194
11195 * Makefile.in (SFILES): Add extension.c.
11196 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11197 (COMMON_OBS): Add extension.o.
11198 * extension.h: New file.
11199 * extension-priv.h: New file.
11200 * extension.c: New file.
11201
11202 * python/python-internal.h: #include "extension.h".
11203 (gdbpy_auto_load_enabled): Declare.
11204 (gdbpy_apply_val_pretty_printer): Declare.
11205 (gdbpy_apply_frame_filter): Declare.
11206 (gdbpy_preserve_values): Declare.
11207 (gdbpy_breakpoint_cond_says_stop): Declare.
11208 (gdbpy_breakpoint_has_cond): Declare.
11209 (void source_python_script_for_objfile): Delete.
11210 * python/python.c: #include "extension-priv.h".
11211 Delete inclusion of "observer.h".
11212 (extension_language_python): Moved here and renamed from
11213 script_language_python in py-auto-load.c.
11214 Redefined to be of type extension_language_defn.
11215 (python_extension_script_ops): New global.
11216 (python_extension_ops): New global.
11217 (struct python_env): New member previous_active.
11218 (restore_python_env): Call restore_active_ext_lang.
11219 (ensure_python_env): Call set_active_ext_lang.
11220 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11221 New arg extlang.
11222 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11223 New arg extlang.
11224 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11225 New arg extlang.
11226 (gdbpy_eval_from_control_command): Renamed from
11227 eval_python_from_control_command, made static. New arg extlang.
11228 (gdbpy_source_script) Renamed from source_python_script, made static.
11229 New arg extlang.
11230 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11231 result to int. New arg extlang.
11232 (gdbpy_source_objfile_script): Renamed from
11233 source_python_script_for_objfile, made static. New arg extlang.
11234 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11235 static. New args extlang, extlang_printers. Change result type to
11236 "void".
11237 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11238 static. New arg extlang. Rename arg printers to extlang_printers
11239 and change type to ext_lang_type_printers *.
11240 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11241 static. Replace argument arg with extlang, extlang_printers.
11242 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11243 (!HAVE_PYTHON, source_python_script): Delete.
11244 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11245 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11246 (!HAVE_PYTHON, start_type_printers): Delete.
11247 (!HAVE_PYTHON, apply_type_printers): Delete.
11248 (!HAVE_PYTHON, free_type_printers): Delete.
11249 (_initialize_python): Delete call to observer_attach_before_prompt.
11250 (finalize_python): Set/restore active extension language.
11251 (gdbpy_finish_initialization) Renamed from
11252 finish_python_initialization, made static. New arg extlang.
11253 (gdbpy_initialized): New function.
11254 * python/python.h: #include "extension.h". Delete #include
11255 "value.h", "mi/mi-cmds.h".
11256 (extension_language_python): Declare.
11257 (GDBPY_AUTO_FILE_NAME): Delete.
11258 (enum py_bt_status): Moved to extension.h and renamed to
11259 ext_lang_bt_status.
11260 (enum frame_filter_flags): Moved to extension.h.
11261 (enum py_frame_args): Moved to extension.h and renamed to
11262 ext_lang_frame_args.
11263 (finish_python_initialization): Delete.
11264 (eval_python_from_control_command): Delete.
11265 (source_python_script): Delete.
11266 (apply_val_pretty_printer): Delete.
11267 (apply_frame_filter): Delete.
11268 (preserve_python_values): Delete.
11269 (gdbpy_script_language_defn): Delete.
11270 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11271 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11272
11273 * auto-load.c: #include "extension.h".
11274 (GDB_AUTO_FILE_NAME): Delete.
11275 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11276 (script_language_gdb): Delete, moved to extension.c and renamed to
11277 extension_language_gdb.
11278 (source_gdb_script_for_objfile): Delete.
11279 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11280 (loaded_script): Change type of language member to
11281 struct extension_language_defn *.
11282 (init_loaded_scripts_info): Initialize
11283 unsupported_script_warning_printed.
11284 (maybe_add_script): Make static. Change type of language arg to
11285 struct extension_language_defn *.
11286 (clear_section_scripts): Reset unsupported_script_warning_printed.
11287 (auto_load_objfile_script_1): Rewrite to use extension language API.
11288 (auto_load_objfile_script): Make public. Remove support-compiled-in
11289 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11290 (source_section_scripts): Rewrite to use extension language API.
11291 (load_auto_scripts_for_objfile): Rewrite to use
11292 auto_load_scripts_for_objfile.
11293 (collect_matching_scripts_data): Change type of language member to
11294 struct extension_language_defn *.
11295 (auto_load_info_scripts): Change type of language arg to
11296 struct extension_language_defn *.
11297 (unsupported_script_warning_print): New function.
11298 (script_not_found_warning_print): Make static.
11299 (_initialize_auto_load): Rewrite construction of scripts-directory
11300 help.
11301 * auto-load.h (struct objfile): Add forward decl.
11302 (struct script_language): Delete.
11303 (struct auto_load_pspace_info): Add forward decl.
11304 (struct extension_language_defn): Add forward decl.
11305 (maybe_add_script): Delete.
11306 (auto_load_objfile_script): Declare.
11307 (script_not_found_warning_print): Delete.
11308 (auto_load_info_scripts): Update prototype.
11309 (auto_load_gdb_scripts_enabled): Declare.
11310 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11311 auto_load_python_scripts_enabled and made public.
11312 (script_language_python): Delete, moved to python.c.
11313 (gdbpy_script_language_defn): Delete.
11314 (info_auto_load_python_scripts): Update to use
11315 extension_language_python.
11316
11317 * breakpoint.c (condition_command): Replace call to
11318 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11319 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11320 with call to breakpoint_ext_lang_cond_says_stop.
11321 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11322 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11323 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11324 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11325 New arg slang.
11326 (local_setattro): Print name of extension language with existing
11327 stop condition.
11328
11329 * valprint.c (val_print, value_print): Update to call
11330 apply_ext_lang_val_pretty_printer.
11331 * cp-valprint.c (cp_print_value): Update call to
11332 apply_ext_lang_val_pretty_printer.
11333 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11334 (gdbpy_apply_val_pretty_printer): Renamed from
11335 apply_val_pretty_printer. New arg extlang.
11336 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11337
11338 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11339 extension language API.
11340 * cli/cli-script.c (execute_control_command): Update to call
11341 eval_ext_lang_from_control_command.
11342
11343 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11344 enum ext_lang_bt_status values. Update call to
11345 apply_ext_lang_frame_filter.
11346 (mi_cmd_stack_list_locals): Ditto.
11347 (mi_cmd_stack_list_args): Ditto.
11348 (mi_cmd_stack_list_variables): Ditto.
11349 * mi/mi-main.c: Delete #include "python/python-internal.h".
11350 Add #include "extension.h".
11351 (mi_cmd_list_features): Replace reference to python internal variable
11352 gdb_python_initialized with call to ext_lang_initialized_p.
11353
11354 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11355 Update to use enum ext_lang_frame_args. Update to call
11356 apply_ext_lang_frame_filter.
11357 * python/py-framefilter.c (extract_sym): Update to use enum
11358 ext_lang_bt_status.
11359 (extract_value, py_print_type, py_print_value): Ditto.
11360 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11361 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11362 (py_print_frame): Ditto.
11363 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11364 New arg extlang. Update to use enum ext_lang_bt_status.
11365
11366 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11367 finish_python_initialization. Replace with call to
11368 finish_ext_lang_initialization.
11369
11370 * typeprint.c (do_free_global_table): Update to call
11371 free_ext_lang_type_printers.
11372 (create_global_typedef_table): Update to call
11373 start_ext_lang_type_printers.
11374 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11375 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11376 (type_print_options): Change type of global_printers from "void *"
11377 to "struct ext_lang_type_printers *".
11378
11379 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11380 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11381 (gdbpy_preserve_values): Renamed from preserve_python_values.
11382 New arg extlang.
11383 (!HAVE_PYTHON, preserve_python_values): Delete.
11384
11385 * utils.c (quit_flag): Delete, moved to extension.c.
11386 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11387 extension.c.
11388
11389 * eval.c: Delete #include "python/python.h".
11390 * main.c: Delete #include "python/python.h".
11391
11392 * defs.h: Update comment.
11393
6af79985
JB
113942014-02-06 Joel Brobecker <brobecker@adacore.com>
11395
11396 GDB 7.7 released.
11397
12c5175d
MK
113982014-02-05 Mark Kettenis <kettenis@gnu.org>
11399
11400 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11401 defined.
11402
8dc5b319
YQ
114032014-02-05 Yao Qi <yao@codesourcery.com>
11404
11405 * remote.c (remote_pass_signals): Remove local 'buf' and use
11406 rs->buf.
11407 (remote_program_signals): Likewise.
11408
de7b2893
YQ
114092014-02-05 Yao Qi <yao@codesourcery.com>
11410
11411 * ctf.c: Include "inferior.h" and "gdbthread.h".
11412 (CTF_PID): A new macro.
11413 (ctf_open): Call inferior_appeared and add_thread_silent.
11414 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11415 (ctf_thread_alive): New function.
11416 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11417
66d032ac
YQ
114182014-02-05 Yao Qi <yao@codesourcery.com>
11419
11420 Revert this patch:
11421
11422 2013-05-24 Yao Qi <yao@codesourcery.com>
11423
11424 * tracepoint.c (TFILE_PID): Remove.
11425 (tfile_open): Don't add thread and inferior.
11426 (tfile_close): Don't set 'inferior_ptid'. Don't call
11427 exit_inferior_silent.
11428 (tfile_thread_alive): Remove.
11429 (init_tfile_ops): Don't set field 'to_thread_alive' of
11430 tfile_ops.
11431
f4ccffad
CE
114322014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11433
11434 * remote.c (remote_start_remote): Call remote_check_symbols even
11435 if only symbol-file (not file) has been given.
11436
591a12a1
UW
114372014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11438
11439 * gdbarch.sh (skip_entrypoint): New callback.
11440 * gdbarch.c, gdbarch.h: Regenerate.
11441 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11442 * infrun.c (fill_in_stop_func): Likewise.
11443 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11444 (ppc_elfv2_elf_make_msymbol_special): New function.
11445 (ppc_elfv2_skip_entrypoint): Likewise.
11446 (ppc_linux_init_abi): Install them for ELFv2.
11447
cc0e89c5
UW
114482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11449
11450 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11451 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11452 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11453 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11454 structures returned in GPRs.
11455
52f548e4
UW
114562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11457
11458 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11459 offset to the stack parameter list for the ELFv2 ABI.
11460
d4094b6a
UW
114612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11462
11463 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11464 set_gdbarch_convert_from_func_ptr_addr and
11465 set_gdbarch_elf_make_msymbol_special for ELFv1.
11466 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11467 function descriptors on ELFv1.
11468 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11469 set up r12 at function entry.
11470
cd453cd0
UW
114712014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11472
11473 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11474 (struct gdbarch_tdep): New member elf_abi.
11475
11476 * rs6000-tdep.c: Include "elf/ppc64.h".
11477 (rs6000_gdbarch_init): Detect ELF ABI version.
11478
0ff3e01f
UW
114792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11480
11481 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11482 within a register pair holding a DFP 128-bit value on little-endian.
11483 (ppc64_sysv_abi_return_value_base): Likewise.
11484 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11485 (dfp_pseudo_register_write): Likewise.
11486
5b757e5d
UW
114872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11488
11489 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11490 offset on little-endian when passing _Decimal32.
11491 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11492
084ee545
UW
114932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11494
11495 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11496 of the overlapped FP register within the VSX register on little-
11497 endian platforms.
11498 (efpr_pseudo_register_write): Likewise.
11499
d63167af
UW
115002014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11501
11502 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11503 offset on little-endian when passing small structures.
11504
e765b44c
UW
115052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11506
11507 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11508 (struct ppc64_sysv_argpos): New data structure.
11509 (ppc64_sysv_abi_push_float): Remove.
11510 (ppc64_sysv_abi_push_val): New function.
11511 (ppc64_sysv_abi_push_integer): Likewise.
11512 (ppc64_sysv_abi_push_freg): Likewise.
11513 (ppc64_sysv_abi_push_vreg): Likewise.
11514 (ppc64_sysv_abi_push_param): Likewise.
11515 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11516 (ppc64_sysv_abi_return_value_base): New function.
11517 (ppc64_sysv_abi_return_value): Refactor to use it.
11518
36c24d95
UW
115192014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11520
11521 * NEWS: Document new target powerpc64le-*-linux*.
11522
26fd9228
MK
115232014-02-04 Mark Kettenis <kettenis@gnu.org>
11524
11525 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11526 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11527 core dumps.
11528 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11529 register set used in ELF core dumps. Add floating-point register set.
11530
c5bb7362
KB
115312014-02-03 Kevin Buettner <kevinb@redhat.com>
11532
74228e77 11533 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11534 dwarf2_to_gdb[] table using symbolic constants. Adjust
11535 penultimate entry from number representing the PC register
11536 to symbolic constant representing the MDR register. Add
11537 constant for the PC register to the end of the table.
11538
af09351e
MK
115392014-02-03 Mark Kettenis <kettenis@gnu.org>
11540
11541 * bsd-kvm.c: Include <sys/param.h>
11542
8507e05d
MK
115432014-02-03 Mark Kettenis <kettenis@gnu.org>
11544
11545 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11546
ae56bfb8
JB
115472014-01-31 Joel Brobecker <brobecker@adacore.com>
11548
11549 * ada-lang.h (clear_ada_sym_cache): Delete.
11550
718ee4dc
UW
115512014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11552
11553 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11554
401e27fd
JM
115552014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11556
11557 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11558 the sigreturn register save area only if the syscall is
11559 sigreturn.
11560
a7c88acd
JB
115612014-01-29 Joel Brobecker <brobecker@adacore.com>
11562
11563 * valops.c (value_slice): Minor reformatting.
11564
fa0079ea
UW
115652014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11566
11567 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11568
c6044dd1
JB
115692014-01-28 Joel Brobecker <brobecker@adacore.com>
11570
11571 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11572 New static globals.
11573 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11574 (ada_ignore_descriptive_types_p): New static global.
11575 (find_parallel_type_by_descriptive_type): Return immediately
11576 if ada_ignore_descriptive_types_p is set.
11577 (_initialize_ada_language): Register new commands "maintenance
11578 set ada", "maintenance show ada", "maintenance set ada
11579 ignore-descriptive-types" and "maintenance show ada
11580 ignore-descriptive-types".
11581 * NEWS: Add entry for new "maint ada set/show
11582 ignore-descriptive-types" commands.
11583
568e808b
MM
115842014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11585
11586 * record-btrace.c (record_btrace_close): Call btrace_teardown
11587 for all threads.
11588
467d141b
JB
115892014-01-27 Joel Brobecker <brobecker@adacore.com>
11590
11591 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11592 "ui-out.h".
11593
fb151210
JB
115942014-01-27 Joel Brobecker <brobecker@adacore.com>
11595
11596 * ada-typeprint (type_is_full_subrange_of_target_type):
11597 New function.
11598 (print_range): Add parameter bounds_prefered_p. If not set,
11599 try printing range types using the name of their base type.
11600 (print_range_type): Add parameter bounds_prefered_p.
11601 Use it in call to print_range.
11602 (print_array_type, ada_print_type): Update calls to print_range
11603 and print_range_type.
11604
aba02109
JB
116052014-01-27 Joel Brobecker <brobecker@adacore.com>
11606
11607 * ada-typeprint.c (print_array_type, print_choices, print_range)
11608 (print_range_bound, print_dynamic_range_bound, print_range_type):
11609 Remove declaration.
11610
e62e21fd
JB
116112014-01-27 Joel Brobecker <brobecker@adacore.com>
11612
11613 * ada-typeprint.c (print_range): Add missing empty line
11614 after local declaration.
11615
859cf5d1
JB
116162014-01-27 Joel Brobecker <brobecker@adacore.com>
11617
11618 * ada-valprint.c (print_optional_low_bound): Get index_type's
11619 target type for as long as it is a TYPE_CODE_RANGE.
11620
25790f6f
JB
116212014-01-27 Joel Brobecker <brobecker@adacore.com>
11622
11623 * procfs.c (procfs_make_note_section): Remove assertion and
11624 associated comment.
11625
6b6aa828
YQ
116262014-01-24 Yao Qi <yao@codesourcery.com>
11627
11628 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11629 * corelow.c (get_core_siginfo): Likewise.
11630
5d6df423
YQ
116312014-01-24 Yao Qi <yao@codesourcery.com>
11632
11633 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11634 ULONGEST. Don't check 'len' is negative.
11635 (remote_write_bytes): Change type of 'len' to ULONGEST.
11636
83b645b8
TT
116372014-01-23 Tom Tromey <tromey@redhat.com>
11638
11639 PR python/16485:
11640 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11641 Handle exception from frame.block.
11642 (FrameVars.fetch_frame_locals): Likewise.
11643
0740f8d8
TT
116442014-01-23 Tom Tromey <tromey@redhat.com>
11645
11646 PR python/16487:
11647 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11648 on a NULL pointer. Move "goto error" to correct place.
11649
21909fa1
TT
116502014-01-23 Tom Tromey <tromey@redhat.com>
11651
11652 PR python/16491:
11653 * python/py-framefilter.c (apply_frame_filter): Call
11654 ensure_python_env after computing gdbarch.
11655
17fde6d0
YQ
116562014-01-23 Yao Qi <yao@codesourcery.com>
11657
11658 * target.c (raw_memory_xfer_partial): Change argument type
11659 from void * to gdb_byte *.
11660 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11661
87ce2a04
DE
116622014-01-22 Doug Evans <dje@google.com>
11663
11664 New gdbserver option --debug-format=timestamp.
11665 * NEWS: Mention it.
11666
237b092b
AA
116672014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11668
11669 * syscalls/s390x-linux.xml: New file.
11670 * syscalls/s390-linux.xml: New file.
11671 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11672 (XML_SYSCALL_FILENAME_S390X): Likewise.
11673 (op_svc): New enum value for SVC opcode.
11674 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11675 (s390_linux_get_syscall_number): New function.
11676 (s390_gdbarch_init): Register '*get_syscall_number' and the
11677 syscall xml file name.
11678 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11679 "s390-linux.xml" and "s390x-linux.xml".
11680 * NEWS: Announce new feature.
11681
54bff650
BS
116822014-01-22 Baruch Siach <baruch@tkos.co.il>
11683
11684 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11685
14e361d7
PA
116862014-01-22 Pedro Alves <palves@redhat.com>
11687
11688 * xtensa-config.c: Include defs.h.
11689
46bbb3ed
JB
116902014-01-22 Joel Brobecker <brobecker@adacore.com>
11691
11692 * common/common-utils.h: Add "ARI:" comment beside __func__
11693 reference.
11694
3a80edfc
JB
116952014-01-22 Joel Brobecker <brobecker@adacore.com>
11696
11697 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11698 documentation a bit.
11699
4869db5e
RM
117002014-01-21 Roland McGrath <mcgrathr@google.com>
11701
11702 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11703 * configure: Regenerate.
11704 * aclocal.m4: Regenerate.
11705 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11706 New substituted variables.
11707 (install-strip): New target.
11708 (INSTALL_SCRIPT): New substituted variable.
11709 (FLAGS_TO_PASS): Add it.
11710 (install-only): Use $(INSTALL_SCRIPT) rather than
11711 $(INSTALL_PROGRAM) for gcore.
11712
9ea4267d
TT
117132014-01-20 Tom Tromey <tromey@redhat.com>
11714
11715 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11716 together.
11717
1f2bdf09
TT
117182014-01-20 Tom Tromey <tromey@redhat.com>
11719
11720 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11721 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11722 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11723 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11724 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11725 (struct cmd_list_element) <flags>: Remove.
11726 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11727 doc_allocated>: New fields.
11728 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11729 bitfields.
11730 * maint.c (maintenance_do_deprecate): Update.
11731 * top.c (execute_command): Update.
11732
e671835b
BS
117332014-01-20 Baruch Siach <baruch@tkos.co.il>
11734
11735 * xtensa-linux-nat.c: Include asm/ptrace.h.
11736
50367cd2
IB
117372014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11738
11739 * Makefile.in (SFILES): Add d-support.c.
11740 (COMMON_OBS): Add d-support.o.
11741 * d-lang.h (d_parse_symbol): Add comment, now defined in
11742 d-support.c.
11743 * d-lang.c (parse_call_convention)
11744 (parse_attributes, parse_function_types)
11745 (parse_function_args, parse_type, parse_identifier)
11746 (call_convention_p, d_parse_symbol): Move functions to ...
11747 * d-support.c: ... New file.
11748
ec9f644a
IB
117492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11750
11751 * d-lang.h (d_parse_symbol): Add declaration.
11752 * d-lang.c (extract_identifiers)
11753 (extract_type_info): Remove functions.
11754 (parse_call_convention, parse_attributes)
11755 (parse_function_types, parse_function_args)
11756 (parse_type, parse_identifier, call_convention_p)
11757 (d_parse_symbol): New functions.
11758 (d_demangle): Use d_parse_symbol to demangle D symbols.
11759
94b1b47e
IB
117602014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11761
11762 * d-lang.h (struct builtin_d_type): New data type.
11763 (builtin_d_type): Add declaration.
11764 * d-lang.c (d_language_arch_info, build_d_types)
11765 (builtin_d_type): New functions.
11766 (enum d_primitive_types): New data type.
11767 (d_language_defn): Change c_language_arch_info to
11768 d_language_arch_info.
11769 (d_type_data): New static variable.
11770 (_initialize_d_language): Initialize d_type_data.
11771
63778547
IB
117722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11773
11774 * d-lang.h (d_main_name): Add declaration.
11775 * d-lang.c (d_main_name): New function.
11776 * symtab.c (find_main_name): Add call to d_main_name.
11777
3271ba66
IB
117782014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11779
11780 * d-lang.c (d_language_defn): Change macro_expansion_c to
11781 macro_expansion_no.
11782
d36b3012
IB
117832014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11784
11785 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11786
c90a6fb7
SDJ
117872014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11788
11789 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11790 gdb_exception" declaration.
11791 * remote.c (getpkt_or_notif_sane): Likewise.
11792
749234e5
DE
117932014-01-17 Doug Evans <dje@google.com>
11794
11795 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11796 function, contents of dirnames_to_char_ptr_vec_append moved here.
11797 (delim_string_to_char_ptr_vec): New function.
11798 (dirnames_to_char_ptr_vec_append): Rewrite.
11799 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11800
df049a58
DE
118012014-01-17 Doug Evans <dje@google.com>
11802
11803 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11804 and moved here ...
11805 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11806 #include "common-utils.h".
11807 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11808 * common/vec.h (VEC_ASSERT_PASS): Update.
11809 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11810 (MACH_CHECK_ERROR): Update.
11811
69f97648
SM
118122014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11813
11814 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11815 comments.
11816 * gdbarch.h: Regenerate.
11817
98b1cfdc
TT
118182014-01-16 Tom Tromey <tromey@redhat.com>
11819
11820 * value.c (struct value) <regnum>: Move earlier.
11821
77a19445
TT
118222014-01-16 Tom Tromey <tromey@redhat.com>
11823
11824 * remote.c (extended_remote_create_inferior): Rename from
11825 extended_remote_create_inferior_1. Add "ops" argument. Remove
11826 old implementation.
11827
62261490
PA
118282014-01-16 Pedro Alves <palves@redhat.com>
11829
11830 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11831 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11832 the backchain.
11833
4d65956b
DE
118342014-01-16 Doug Evans <dje@google.com>
11835
11836 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11837
52834460
MM
118382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11839
11840 * btrace.h (btrace_thread_flag): New.
11841 (struct btrace_thread_info) <flags>: New.
11842 * record-btrace.c (record_btrace_resume_thread)
11843 (record_btrace_find_thread_to_move, btrace_step_no_history)
11844 (btrace_step_stopped, record_btrace_start_replaying)
11845 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11846 (record_btrace_find_resume_thread): New.
11847 (record_btrace_resume, record_btrace_wait): Extend.
11848 (record_btrace_can_execute_reverse): New.
11849 (record_btrace_open): Fail in non-stop mode.
11850 (record_btrace_set_replay): Split into this, ...
11851 (record_btrace_stop_replaying): ... this, ...
11852 (record_btrace_clear_histories): ... and this.
11853 (init_record_btrace_ops): Init to_can_execute_reverse.
11854 * NEWS: Announce it.
11855
118e6252
MM
118562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11857
11858 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11859 (forward_target_decr_pc_after_break)
11860 (target_decr_pc_after_break): New.
11861 * target.c (forward_target_decr_pc_after_break)
11862 (target_decr_pc_after_break): New.
11863 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11864 instead of gdbarch_decr_pc_after_break.
11865 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11866 instead of gdbarch_decr_pc_after_break.
11867 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11868 instead of gdbarch_decr_pc_after_break.
11869 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11870 instead of gdbarch_decr_pc_after_break.
11871 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11872 instead of gdbarch_decr_pc_after_break.
11873 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11874 instead of gdbarch_decr_pc_after_break.
11875
6e07b1d2
MM
118762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11877
11878 * btrace.c: Include regcache.h.
11879 (btrace_add_pc): New.
11880 (btrace_enable): Call btrace_add_pc.
11881 (btrace_is_empty): New.
11882 * btrace.h (btrace_is_empty): New.
11883 * record-btrace.c (require_btrace, record_btrace_info): Call
11884 btrace_is_empty.
11885
969c39fb
MM
118862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11887
11888 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11889 Support delta reads.
11890 (linux_disable_btrace): Change return type.
11891 * common/linux-btrace.h (linux_read_btrace): Change parameters
11892 and return type to allow error reporting. Update users.
11893 (linux_disable_btrace): Change return type. Update users.
11894 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11895 New.
11896 (btrace_error): New.
11897 (btrace_block) <begin>: Comment on BEGIN == 0.
11898 * btrace.c (btrace_compute_ftrace): Start from the end of
11899 the current trace.
11900 (btrace_stitch_trace, btrace_clear_history): New.
11901 (btrace_fetch): Read delta trace, return if replaying.
11902 (btrace_clear): Move clear history code to btrace_clear_history.
11903 (parse_xml_btrace): Throw an error if parsing failed.
11904 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11905 and return type to allow error reporting.
11906 (target_read_btrace): Change parameters and return type to allow
11907 error reporting.
11908 * target.c (target_read_btrace): Update.
11909 * remote.c (remote_read_btrace): Support delta reads. Pass
11910 errors on.
11911 * NEWS: Announce it.
11912
0b722aec
MM
119132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11914
11915 * record.h (record_btrace_frame_unwind)
11916 (record_btrace_tailcall_frame_unwind): New declarations.
11917 * dwarf2-frame: Include record.h
11918 (dwarf2_frame_cfa): Throw an error for btrace frames.
11919 * record-btrace.c: Include hashtab.h.
11920 (btrace_get_bfun_name): New.
11921 (btrace_call_history): Call btrace_get_bfun_name.
11922 (struct btrace_frame_cache): New.
11923 (bfcache): New.
11924 (bfcache_hash, bfcache_eq, bfcache_new): New.
11925 (btrace_get_frame_function): New.
11926 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11927 (record_btrace_frame_this_id): Compute own id.
11928 (record_btrace_frame_prev_register): Provide PC, throw_error
11929 for all other registers.
11930 (record_btrace_frame_sniffer): Detect btrace frames.
11931 (record_btrace_tailcall_frame_sniffer): New.
11932 (record_btrace_frame_dealloc_cache): New.
11933 (record_btrace_frame_unwind): Add new functions.
11934 (record_btrace_tailcall_frame_unwind): New.
11935 (_initialize_record_btrace): Allocate cache.
11936 * btrace.c (btrace_clear): Call reinit_frame_cache.
11937 * NEWS: Announce it.
11938
066ce621
MM
119392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11940
11941 * record-btrace.c (record_btrace_set_replay)
11942 (record_btrace_goto_begin, record_btrace_goto_end)
11943 (record_btrace_goto): New.
11944 (init_record_btrace_ops): Initialize them.
11945 * NEWS: Announce it.
11946
e2887aa3
MM
119472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11948
11949 * record-btrace.c (record_btrace_find_new_threads)
11950 (record_btrace_thread_alive): New.
11951 (init_record_btrace_ops): Initialize to_find_new_threads and
11952 to_thread_alive.
11953
b2f4cfde
MM
119542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11955
11956 * record-btrace.c (record_btrace_resume): New.
11957 (record_btrace_wait): New.
11958 (init_record_btrace_ops): Initialize to_wait and to_resume.
11959
633785ff
MM
119602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11961
11962 * record-btrace.c (record_btrace_xfer_partial)
11963 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11964 (record_btrace_allow_memory_access): New.
11965 (init_record_btrace_ops): Initialize new methods.
11966 * target.c (raw_memory_xfer_partial): Bail out if target reports
11967 that this memory is not available.
11968
3db08215
MM
119692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11970
11971 * target.h (target_ops) <to_insert_breakpoint>
11972 <to_remove_breakpoint>: Add target_ops parameter.
11973 (forward_target_insert_breakpoint): New.
11974 (forward_target_remove_breakpoint): New.
11975 (memory_remove_breakpoint, memory_insert_breakpoint):
11976 Add target_ops parameter.
11977 * target.c (target_insert_breakpoint): Split into this and ...
11978 (forward_target_insert_breakpoint): ... this.
11979 (target_remove_breakpoint): Split into this and ...
11980 (forward_target_remove_breakpoint): ... this.
11981 (debug_to_insert_breakpoint): Add target_ops parameter.
11982 Call forward_target_insert_breakpoint.
11983 (debug_to_remove_breakpoint): Add target_ops parameter.
11984 Call forward_target_remove_breakpoint.
11985 (update_current_target): Do not inherit or default to_insert_breakpoint
11986 and to_remove_breakpoint.
11987 * corelow.c (ignore): Add target_ops parameter.
11988 * exec.c (ignore): Add target_ops parameter.
11989 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11990 Add target_ops parameter.
11991 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11992 Add target_ops parameter.
11993 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11994 Add target_ops parameter.
11995 * record-full.c (record_full_beneath_to_insert_breakpoint)
11996 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11997 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11998 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11999 (record_full_core_remove_breakpoint): Add target_ops parameter.
12000 Update users.
12001 (record_full_beneath_to_insert_breakpoint_ops)
12002 (record_full_beneath_to_remove_breakpoint_ops)
12003 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
12004 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
12005 tmp_to_remove_breakpoint_ops,
12006 record_full_beneath_to_insert_breakpoint_ops, and
12007 record_full_beneath_to_remove_breakpoint_ops.
12008 * remote-m32r-sdi.c (m32r_insert_breakpoint)
12009 (m32r_remove_breakpoint): Add target_ops parameter.
12010 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
12011 Add target_ops parameter.
12012 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
12013 Add target_ops parameter.
12014
cecac1ab
MM
120152014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12016 Markus Metzger <markus.t.metzger@intel.com>
12017
12018 * record-btrace.c: Include frame-unwind.h.
12019 (record_btrace_frame_unwind_stop_reason)
12020 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
12021 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
12022 New.
12023 (init_record_btrace_ops): Install it.
12024
824344ca
MM
120252014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12026
12027 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
12028 get_prev_frame_1.
12029
32261e52
MM
120302014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12031
12032 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
12033 earlier.
12034
ea001bdc
MM
120352014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
12036
12037 * frame-unwind.c: Include target.h.
12038 (frame_unwind_try_unwinder): New function with code from ...
12039 (frame_unwind_find_by_frame): ... here. New variable
12040 unwinder_from_target, call also target_get_unwinder)
12041 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
12042 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
12043 * target.h (struct target_ops): New fields to_get_unwinder and
12044 to_get_tailcall_unwinder.
12045 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
12046
1f3ef581
MM
120472014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12048
12049 * record-btrace.c (record_btrace_fetch_registers)
12050 (record_btrace_store_registers)
12051 (record_btrace_to_prepare_to_store): New.
12052 (init_record_btrace_ops): Add the above.
12053
f32dbf8c
MM
120542014-01-16 Tom Tromey <tromey@redhat.com>
12055
12056 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
12057 * target.h (struct target_ops) <to_prepare_to_store>: Add
12058 argument.
12059 (target_prepare_to_store): Add argument.
12060 * target.c (debug_to_prepare_to_store): Add argument.
12061 (update_current_target): Update.
12062 * remote.c (remote_prepare_to_store): Add 'self' argument.
12063 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
12064 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
12065 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
12066 * record-full.c (record_full_core_prepare_to_store): Add 'self'
12067 argument.
12068 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
12069 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
12070 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
12071 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
12072 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
12073
07bbe694
MM
120742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12075
12076 * btrace.h (replay) <replay>: New.
12077 (btrace_is_replaying): New.
12078 * btrace.c (btrace_clear): Free replay iterator.
12079 (btrace_is_replaying): New.
12080 * record-btrace.c (record_btrace_is_replaying): New.
12081 (record_btrace_info): Print insn number if replaying.
12082 (record_btrace_insn_history): Start at replay position.
12083 (record_btrace_call_history): Start at replay position.
12084 (init_record_btrace_ops): Init to_record_is_replaying.
12085
0688d04e
MM
120862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12087
12088 * record-btrace.c (record_btrace_insn_history_range): Include
12089 end.
12090 (record_btrace_insn_history_from): Adjust range.
12091 (record_btrace_call_history_range): Include
12092 end.
12093 (record_btrace_call_history_from): Adjust range.
12094 * NEWS: Announce changes.
12095
8710b709
MM
120962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12097
12098 * record.h (enum record_print_flag)
12099 <record_print_indent_calls>: New.
12100 * record.c (get_call_history_modifiers): Recognize /c modifier.
12101 (_initialize_record): Document /c modifier.
12102 * record-btrace.c (btrace_call_history): Add btinfo parameter.
12103 Reorder fields. Optionally indent the function name. Update
12104 all users.
12105 * NEWS: Announce changes.
12106
d0fa7535
MM
121072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12108
12109 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
12110
5de9129b
MM
121112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12112
12113 * btrace.c (ftrace_new_function): Start counting at one.
12114 * record-btrace.c (record_btrace_info): Adjust number of calls
12115 and insns.
12116 * NEWS: Announce it.
12117
7acbe133
MM
121182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12119
12120 * record-btrace.c (btrace_call_history_insn_range): Print
12121 insn range as [begin, end].
12122
23a7fe75
MM
121232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12124
12125 * btrace.h (struct btrace_func_link): New.
12126 (enum btrace_function_flag): New.
12127 (struct btrace_inst): Rename to ...
12128 (struct btrace_insn): ...this. Update all users.
12129 (struct btrace_func) <ibegin, iend>: Remove.
12130 (struct btrace_func_link): New.
12131 (struct btrace_func): Rename to ...
12132 (struct btrace_function): ...this. Update all users.
12133 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12134 (number, level, flags>: New.
12135 (struct btrace_insn_iterator): Rename to ...
12136 (struct btrace_insn_history): ...this.
12137 Update all users.
12138 (struct btrace_insn_iterator, btrace_call_iterator): New.
12139 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12140 (struct btrace_target_info) <begin, end, level>
12141 <insn_history, call_history>: New.
12142 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12143 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12144 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12145 (btrace_call_number, btrace_call_begin, btrace_call_end)
12146 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12147 (btrace_find_function_by_number, btrace_set_insn_history)
12148 (btrace_set_call_history): New.
12149 * btrace.c (btrace_init_insn_iterator)
12150 (btrace_init_func_iterator, compute_itrace): Remove.
12151 (ftrace_print_function_name, ftrace_print_filename)
12152 (ftrace_skip_file): Change
12153 parameter to const.
12154 (ftrace_init_func): Remove.
12155 (ftrace_debug): Use new btrace_function fields.
12156 (ftrace_function_switched): Also consider gaining and
12157 losing symbol information).
12158 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12159 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12160 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12161 New.
12162 (ftrace_new_function): Move. Remove debug print.
12163 (ftrace_update_lines, ftrace_update_insns): New.
12164 (ftrace_update_function): Check for call, ret, and jump.
12165 (compute_ftrace): Renamed to ...
12166 (btrace_compute_ftrace): ...this. Rewritten to compute call
12167 stack.
12168 (btrace_fetch, btrace_clear): Updated.
12169 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12170 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12171 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12172 (btrace_call_number, btrace_call_begin, btrace_call_end)
12173 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12174 (btrace_find_function_by_number, btrace_set_insn_history)
12175 (btrace_set_call_history): New.
12176 * record-btrace.c (require_btrace): Use new btrace thread
12177 info fields.
12178 (record_btrace_info, btrace_insn_history)
12179 (record_btrace_insn_history, record_btrace_insn_history_range):
12180 Use new btrace thread info fields and new iterator.
12181 (btrace_func_history_src_line): Rename to ...
12182 (btrace_call_history_src_line): ...this. Use new btrace
12183 thread info fields.
12184 (btrace_func_history): Rename to ...
12185 (btrace_call_history): ...this. Use new btrace thread info
12186 fields and new iterator.
12187 (record_btrace_call_history, record_btrace_call_history_range):
12188 Use new btrace thread info fields and new iterator.
12189
8372a7cb
MM
121902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12191
12192 * frame.h (frame_id_build_unavailable_stack_special): New.
12193 * frame.c (frame_id_build_unavailable_stack_special): New.
12194
c2170eef
MM
121952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12196
12197 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12198 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12199 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12200 to gdbarch.
12201 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12202 (i386_insn_is_jump, i386_jmp_p): New.
12203 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12204 insn_is_jump to gdbarch.
12205 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12206 * gdbarch.h: Regenerated.
12207 * gdbarch.c: Regenerated.
12208 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12209 (default_insn_is_jump): New.
12210 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12211 (default_insn_is_jump): New.
12212
864089d2
MM
122132014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12214
12215 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12216 Change to ...
12217 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12218 (btrace_read_type) <btrace_read_new>: Change to ...
12219 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12220
ed9edfb5
MM
122212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12222
12223 * common/linux-btrace.c (linux_read_btrace): Free trace from
12224 previous iteration.
12225
fbcbc3fd
DE
122262014-01-15 Doug Evans <dje@google.com>
12227
12228 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12229 uint32_t.
12230
3d548a53
TT
122312014-01-15 Tom Tromey <tromey@redhat.com>
12232
12233 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12234 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12235 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12236 (set_objfile_main_name): New function.
12237 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12238 language_of_main>: New fields.
12239 (set_objfile_main_name): Declare.
12240 * symtab.c (find_main_name): Loop over objfiles to find the main
12241 name and language.
12242 (set_main_name): Now static.
12243 (get_main_info): Add comment.
12244 * symtab.h (set_main_name): Don't declare.
12245
32ac0d11
TT
122462014-01-15 Tom Tromey <tromey@redhat.com>
12247
12248 * symtab.c (main_progspace_key): New global.
12249 (struct main_info): New.
12250 (name_of_main, language_of_main): Remove.
12251 (get_main_info, main_info_cleanup): New function.
12252 (set_main_name, main_name, main_language): Use get_main_info.
12253 (_initialize_symtab): Initialize main_progspace_key.
12254
9e6c82ad
TT
122552014-01-15 Tom Tromey <tromey@redhat.com>
12256
12257 * dbxread.c (process_one_symbol): Update.
12258 * dwarf2read.c (read_partial_die): Update.
12259 * symfile.c (set_initial_language): Call main_language.
12260 * symtab.c (language_of_main): Now static.
12261 (set_main_name): Add 'lang' parameter.
12262 (find_main_name): Update.
12263 (main_language): New function.
12264 (symtab_observer_executable_changed): Update.
12265 * symtab.h (set_main_name): Update.
12266 (language_of_main): Remove.
12267 (main_language): Declare.
12268
6ef55de7
TT
122692014-01-15 Tom Tromey <tromey@redhat.com>
12270
12271 * symfile.c (init_entry_point_info): Use new "initialized" field.
12272 Update.
12273 * objfiles.h (struct entry_point) <initialized>: New field.
12274 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12275 (struct objfile) <ei>: ...here. Remove.
12276 * objfiles.c (entry_point_address_query): Update.
12277
53eddfa6
TT
122782014-01-15 Tom Tromey <tromey@redhat.com>
12279
12280 * objfiles.c (entry_point_address_query): Relocate entry point
12281 address.
12282 (objfile_relocate1): Do not relocate entry point address.
12283 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12284 <the_bfd_section_index>: New field.
12285 * symfile.c (init_entry_point_info): Find the entry point's
12286 section.
12287
d56e56aa
TT
122882014-01-15 Tom Tromey <tromey@redhat.com>
12289
12290 * solib-frv.c (enable_break): Use entry_point_address_query.
12291
33a97bbe
OJ
122922014-01-15 Omair Javaid <omair.javaid@linaro.org>
12293
12294 * NEWS: Add note on improved process record-replay on
12295 arm*-linux* targets.
12296
c6ec2b30
OJ
122972014-01-15 Omair Javaid <omair.javaid@linaro.org>
12298
12299 * arm-tdep.c (enum arm_record_result): New enum.
12300 (arm_record_unsupported_insn): New function.
12301 (arm_record_coproc_data_proc): Removed.
12302 (thumb2_record_ld_st_multiple): New function.
12303 (thumb2_record_ld_st_dual_ex_tbb): New function.
12304 (thumb2_record_data_proc_sreg_mimm): New function.
12305 (thumb2_record_ps_dest_generic): New function.
12306 (thumb2_record_branch_misc_cntrl): New function.
12307 (thumb2_record_str_single_data): New function.
12308 (thumb2_record_ld_mem_hints): New function.
12309 (thumb2_record_ld_word): New function.
12310 (thumb2_record_lmul_lmla_div): New function.
12311 (thumb2_record_decode_insn_handler): New function.
12312 (decode_insn): Add thumb32 instruction handlers.
12313
97dfe206
OJ
123142014-01-15 Omair Javaid <omair.javaid@linaro.org>
12315
12316 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12317 (struct arm_linux_record_tdep): Declare.
12318 (arm_canonicalize_syscall): New function.
12319 (arm_all_but_pc_registers_record): New function.
12320 (arm_linux_syscall_record): New function.
12321 (arm_linux_init_abi): Add syscall recording constructs.
12322 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12323 decoding. (arm_record_coproc_data_proc): Update arm syscall
12324 decoding.
12325 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12326 <arm_syscall_record>: New field.
12327 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12328 gdb_target_obs.
12329
9904a494
OJ
123302014-01-15 Omair Javaid <omair.javaid@linaro.org>
12331
12332 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12333 register for push instruction recording.
12334
f969241e
OJ
123352014-01-15 Omair Javaid <omair.javaid@linaro.org>
12336
12337 * arm-tdep.c (thumb_record_misc): Update to correct logical
12338 error while recording ldm, ldmia and pop instructions.
12339
bfbbec00
OJ
123402014-01-15 Omair Javaid <omair.javaid@linaro.org>
12341
12342 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12343
e40adcc9
PA
123442014-01-15 Pedro Alves <palves@redhat.com>
12345
12346 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12347 (go32_resume, go32_fetch_registers, store_register)
12348 (go32_store_registers, go32_prepare_to_store)
12349 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12350 (go32_create_inferior, go32_can_run, go32_terminal_init)
12351 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12352 declarations.
12353
b0a16e66
TT
123542014-01-15 Tom Tromey <tromey@redhat.com>
12355
12356 * target.h (async_callback_ftype): New typedef.
12357 (struct target_ops) <to_async>: Use it.
12358
bf7105a4
JB
123592014-01-15 Joel Brobecker <brobecker@adacore.com>
12360
12361 * python/py-value.c (get_field_type): Remove unnecessary curly
12362 braces for single-statement if block.
12363
a8f35c2e
JB
123642014-01-15 Joel Brobecker <brobecker@adacore.com>
12365
12366 * python/py-type.c (convert_field): Add missing empty line
12367 after declarations.
12368
bb4142cf
DE
123692014-01-14 Doug Evans <dje@google.com>
12370
12371 * symfile.h (expand_symtabs_matching): Renamed from
12372 expand_partial_symbol_names. Update prototype.
12373 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12374 * symfile.c (expand_symtabs_matching): Renamed from
12375 expand_partial_symbol_names. New args file_matcher, kind.
12376 Rename arg fun to symbol_matcher.
12377 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12378 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12379 ada_expand_partial_symbol_name.
12380 (ada_make_symbol_completion_list): Update to call
12381 expand_symtabs_matching.
12382 (ada_add_global_exceptions): Call expand_symtabs_matching.
12383 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12384 call map_symbol_filenames.
12385 * symtab.c (sources_info): Update to call map_symbol_filenames.
12386 (search_symbols): Call expand_symtabs_matching.
12387 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12388 (default_make_symbol_completion_list_break_on): Update to call
12389 expand_symtabs_matching.
12390 (make_source_files_completion_list): Update to call
12391 map_symbol_filenames.
12392
206f2a57
DE
123932014-01-14 Doug Evans <dje@google.com>
12394
12395 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12396 (expand_symtabs_symbol_matcher_ftype): New typedef.
12397 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12398 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12399 * symfile.c (expand_partial_symbol_names): Update to use
12400 expand_symtabs_symbol_matcher_ftype.
12401 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12402 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12403 Arg name_matcher renamed to symbol_matcher.
12404 * psymtab.c (recursively_search_psymtabs): Update to use
12405 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12406 sym_matcher.
12407 (expand_symtabs_matching_via_partial): Update to use
12408 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12409 Arg name_matcher renamed to symbol_matcher.
12410
540c2971
DE
124112014-01-14 Doug Evans <dje@google.com>
12412
12413 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12414 (map_partial_symbol_filenames): Ditto.
12415 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12416 (map_partial_symbol_filenames): Ditto.
12417 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12418 (map_partial_symbol_filenames): Ditto.
12419 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12420 (map_partial_symbol_filenames): Ditto.
12421 * symtab.c: Delete #include "psymtab.h".
12422
8213266a
PA
124232014-01-14 Pedro Alves <palves@redhat.com>
12424 Tom Tromey <tromey@redhat.com>
12425
12426 * infrun.c (use_displaced_stepping): Use find_record_target
12427 instead of RECORD_IS_USED.
12428 (adjust_pc_after_break): Use record_full_is_used instead of
12429 RECORD_IS_USED.
12430 * record-btrace.c (record_btrace_open): Call record_preopen
12431 instead of checking RECORD_IS_USED.
12432 * record-full.c (record_full_shortname)
12433 (record_full_core_shortname): New globals.
12434 (record_full_is_used): New function.
12435 (find_full_open): Call record_preopen instead of checking
12436 RECORD_IS_USED.
12437 (init_record_full_ops): Set the target's shortname to
12438 record_full_shortname.
12439 (init_record_full_core_ops): Set the target's shortname to
12440 record_full_core_shortname.
12441 * record-full.h (record_full_is_used): Declare.
12442 * record.c (find_record_target): Make extern.
12443 (record_preopen): New function.
12444 * record.h (RECORD_IS_USED): Delete macro.
12445 (find_record_target, record_preopen): Declare functions.
12446
7ec1862d
YQ
124472014-01-14 Yao Qi <yao@codesourcery.com>
12448
12449 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12450 'len''s type to ULONGEST.
12451 (core_xfer_shared_libraries_aix): Likewise.
12452 * gdbarch.c, gdbarch.h: Regenerated.
12453 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12454 Change type of 'len' to ULONGEST.
12455 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12456 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12457
dea80a27
YQ
124582014-01-14 Yao Qi <yao@codesourcery.com>
12459
12460 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12461 type of 'len' to ULONGEST.
12462 (linux_xfer_osdata_processgroups): Likewise.
12463 (linux_xfer_osdata_threads): Likewise.
12464 (linux_xfer_osdata_fds): Likewise.
12465 (linux_xfer_osdata_isockets): Likewise.
12466 (linux_xfer_osdata_shm): Likewise.
12467 (linux_xfer_osdata_sem): Likewise.
12468 (linux_xfer_osdata_msg): Likewise.
12469 (linux_common_xfer_osdata): Likewise.
12470 (struct osdata_type) <getter>: Likewise.
12471 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12472 the declaration.
12473
b55e14c7
YQ
124742014-01-14 Yao Qi <yao@codesourcery.com>
12475
12476 * target.h (target_xfer_partial_ftype): Update.
12477 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12478 ULONGEST.
12479 * aix-thread.c (aix_thread_xfer_partial): Change type of
12480 argument 'len' to ULONGEST.
12481 * auxv.c (procfs_xfer_auxv): Likewise.
12482 (ld_so_xfer_auxv): Likewise.
12483 (memory_xfer_auxv): Likewise.
12484 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12485 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12486 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12487 * corelow.c (core_xfer_partial): Likewise.
12488 * ctf.c (ctf_xfer_partial): Likewise.
12489 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12490 '%u'.
12491 (darwin_read_dyld_info): Likewise.
12492 (darwin_xfer_partial): Likewise.
12493 * exec.c (section_table_xfer_memory_partial): Likewise.
12494 (exec_xfer_partial): Likewise.
12495 * exec.h (section_table_xfer_memory_partial): Update
12496 declaration.
12497 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12498 instead of plongest.
12499 (gnu_xfer_partial): Likewise.
12500 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12501 (ia64_hpux_xfer_solib_got): Likewise.
12502 (ia64_hpux_xfer_partial): Likewise.
12503 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12504 * inf-ptrace.c (inf_ptrace_xfer_partial):
12505 * inf-ttrace.c (inf_ttrace_xfer_partial):
12506 * linux-nat.c (linux_xfer_siginfo): Likewise.
12507 (linux_nat_xfer_partial): Likewise.
12508 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12509 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12510 * monitor.c (monitor_xfer_memory): Likewise.
12511 (monitor_xfer_partial): Likewise.
12512 * procfs.c (procfs_xfer_partial): Likewise.
12513 * record-full.c (record_full_xfer_partial): Likewise.
12514 (record_full_core_xfer_partial): Likewise.
12515 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12516 instead of plongest.
12517 (gdbsim_xfer_partial): Likewise.
12518 * remote.c (remote_xfer_partial): Likewise.
12519 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12520 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12521 declaration.
12522 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12523 (rs6000_xfer_shared_libraries): Likewise.
12524 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12525 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12526 (sparc_xfer_partial): Likewise.
12527 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12528 (spu_xfer_partial): Likewise.
12529 * spu-multiarch.c (spu_xfer_partial): Likewise.
12530 * target.c (target_read_live_memory): Likewise.
12531 (memory_xfer_live_readonly_partial): Likewise.
12532 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12533 (target_xfer_partial, default_xfer_partial): Likewise.
12534 (current_xfer_partial): Likewise.
12535 * tracepoint.c (tfile_xfer_partial): Likewise.
12536 * windows-nat.c (windows_xfer_memory): Likewise. Call
12537 pulongest instead of plongest.
12538 (windows_xfer_partial): Likewise.
12539 (windows_xfer_shared_libraries): Likewise.
12540
05804640
YQ
125412014-01-14 Yao Qi <yao@codesourcery.com>
12542
12543 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12544 target_xfer_partial_ftype.
12545
b5b08fb4
SC
125462014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12547
12548 PR python/15464
12549 PR python/16113
12550 * valops.c (value_struct_elt_bitpos): New function
12551 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12552 object to 'None' if the field name is an empty string ("").
12553 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12554 attribute to look for a field when 'name' is 'None'.
12555 (get_field_type): New function
12556
13aaf454
DE
125572014-01-13 Doug Evans <dje@google.com>
12558
12559 PR symtab/16426
12560 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12561 (try_open_dwop_file): Ditto.
12562 * gdb_bfd.c: #include "vec.h".
12563 (bfdp): New typedef.
12564 (struct gdb_bfd_data): New member included_bfds.
12565 (gdb_bfd_unref): Unref all included bfds.
12566 (gdb_bfd_record_inclusion): New function.
12567 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12568
c2cec97c
TT
125692014-01-13 Tom Tromey <tromey@redhat.com>
12570
12571 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12572
78e5999d
TT
125732014-01-13 Tom Tromey <tromey@redhat.com>
12574
12575 * defs.h (use_windows): Remove.
12576 * gdb.c (main): Update.
12577 * main.c (captured_main, gdb_main): Update.
12578 * main.h (struct captured_main_args) <use_windows>: Remove.
12579 * top.c (use_windows): Remove.
12580
f2052bbe
TT
125812014-01-13 Tom Tromey <tromey@redhat.com>
12582
12583 * defs.h (deprecated_flush_hook): Remove.
12584
fde4f8ed
JK
125852014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12586
12587 PR threads/16216
12588 * linux-thread-db.c (try_thread_db_load): Add parameter
12589 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12590 (try_thread_db_load_from_pdir_1): Move it there from here.
12591 (try_thread_db_load_from_sdir): Update caller.
12592 (try_thread_db_load_from_dir): Move it there from here.
12593
bdf61915
PP
125942014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12595
12596 * regformats/regdat.sh: Always rewrite the register file.
12597
f71e1a8d
PA
125982014-01-13 Pedro Alves <palves@redhat.com>
12599
12600 * Makefile.in (CHECK_HEADERS): New variable.
12601 (check-headers:): New rule.
12602
42c85435
TT
126032014-01-13 Tom Tromey <tromey@redhat.com>
12604
12605 * cli/cli-setshow.c (do_set_command): Update.
12606 * defs.h (deprecated_set_hook): Remove.
12607 * top.c (deprecated_set_hook): Remove.
12608
f8de5129
PA
126092014-01-13 Pedro Alves <palves@redhat.com>
12610
12611 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12612 the tracepoint if the PC is a pseudo-register.
12613
fc270c35
TT
126142014-01-13 Tom Tromey <tromey@redhat.com>
12615
12616 * defs.h (XCALLOC): Remove.
12617 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12618 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12619 * dwarf2loc.c (allocate_piece_closure): Likewise.
12620 * elfread.c (elf_symfile_segments): Likewise.
12621 (elf_symfile_segments): Likewise.
12622 * gdbtypes.c (copy_type_recursive): Likewise.
12623 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12624 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12625 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12626 XCALLOC.
12627 * mt-tdep.c (mt_gdbarch_init): Likewise.
12628 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12629 XCALLOC.
12630 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12631 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12632 * registry.c (registry_alloc_data): Likewise.
12633 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12634 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12635 * serial.c (serial_fdopen_ops): Likewise.
12636 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12637 XCALLOC.
12638 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12639 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12640 not XCALLOC.
12641
70ba0933
TT
126422014-01-13 Tom Tromey <tromey@redhat.com>
12643
12644 * defs.h (XMALLOC): Remove.
12645 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12646 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12647 * cli-out.c (struct ui_out *): Likewise.
12648 * cli/cli-dump.c (add_dump_command): Likewise.
12649 (add_dump_command): Likewise.
12650 * complaints.c (get_complaints): Likewise.
12651 (find_complaint): Likewise.
12652 * dwarf2-frame.c (execute_cfa_program): Likewise.
12653 * dwarf2read.c (abbrev_table_read_table): Likewise.
12654 * gdbarch.sh: Likewise.
12655 * gdbarch.c: Rebuild.
12656 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12657 * interps.c (interp_new): Likewise.
12658 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12659 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12660 * mi/mi-console.c (mi_console_file_new): Likewise.
12661 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12662 * mi/mi-out.c (mi_out_new): Likewise.
12663 * mi/mi-parse.c (mi_parse): Likewise.
12664 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12665 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12666 * observer.c (xalloc_observer_list_node): Likewise.
12667 * regcache.c (regcache_xmalloc_1): Likewise.
12668 * reggroups.c (reggroup_new): Likewise.
12669 (_initialize_reggroup): Likewise.
12670 * registry.c (register_data_with_cleanup): Likewise.
12671 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12672 * ser-base.c (serial_ttystate): Likewise.
12673 * ser-mingw.c (make_pipe_state): Likewise.
12674 * ser-pipe.c (pipe_open): Likewise.
12675 * serial.c (serial_open): Likewise.
12676 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12677 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12678 (tui_alloc_win_info): Likewise.
12679 (tui_add_content_elements): Likewise.
12680 * tui/tui-file.c (tui_file_new): Likewise.
12681 * tui/tui-out.c (tui_out_new): Likewise.
12682 * ui-file.c (mem_file_new): Likewise.
12683 * ui-out.c (push_level): Likewise.
12684 (make_cleanup_ui_out_end): Likewise.
12685 (append_header_to_list): Likewise.
12686 (ui_out_new): Likewise.
12687 * user-regs.c (user_reg_add_builtin): Likewise.
12688
41bf6aca
TT
126892014-01-13 Tom Tromey <tromey@redhat.com>
12690
12691 * defs.h (XZALLOC): Remove.
12692 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12693 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12694 (get_ada_tasks_inferior_data): Likewise.
12695 * auto-load.c (get_auto_load_pspace_data): Likewise.
12696 * auxv.c (get_auxv_inferior_data): Likewise.
12697 * bfd-target.c (target_bfd_reopen): Likewise.
12698 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12699 (deprecated_insert_raw_breakpoint): Likewise.
12700 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12701 * corelow.c (core_open): Likewise.
12702 * darwin-nat.c (darwin_check_new_threads): Likewise.
12703 (darwin_attach_pid): Likewise.
12704 * dummy-frame.c (dummy_frame_push): Likewise.
12705 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12706 * dwarf2loc.c (allocate_piece_closure): Likewise.
12707 * elfread.c (elf_symfile_segments): Likewise.
12708 * eval.c (ptrmath_type_p): Likewise.
12709 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12710 * gdbtypes.c (alloc_type_arch): Likewise.
12711 (alloc_type_instance): Likewise.
12712 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12713 * inf-child.c (inf_child_can_use_agent): Likewise.
12714 * inflow.c (get_inflow_inferior_data): Likewise.
12715 * infrun.c (save_infcall_suspend_state): Likewise.
12716 * jit.c (jit_reader_load): Likewise.
12717 (get_jit_objfile_data): Likewise.
12718 (get_jit_program_space_data): Likewise.
12719 (jit_object_open_impl): Likewise.
12720 (jit_symtab_open_impl): Likewise.
12721 (jit_block_open_impl): Likewise.
12722 (jit_frame_sniffer): Likewise.
12723 * linux-fork.c (add_fork): Likewise.
12724 * maint.c (make_command_stats_cleanup): Likewise.
12725 * objfiles.c (get_objfile_pspace_data): Likewise.
12726 * opencl-lang.c (struct lval_closure): Likewise.
12727 * osdata.c (osdata_start_osdata): Likewise.
12728 * progspace.c (new_address_space): Likewise.
12729 (add_program_space): Likewise.
12730 * remote-sim.c (get_sim_inferior_data): Likewise.
12731 * sh-tdep.c (sh_gdbarch_init): Likewise.
12732 * skip.c (Ignore): Likewise.
12733 (skip_delete_command): Likewise.
12734 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12735 (library_list_start_library): Likewise.
12736 (solib_aix_current_sos): Likewise.
12737 * solib-darwin.c (get_darwin_info): Likewise.
12738 (darwin_current_sos): Likewise.
12739 * solib-dsbt.c (get_dsbt_info): Likewise.
12740 * solib-ia64-hpux.c (new_so_list): Likewise.
12741 (ia64_hpux_get_solib_linkage_addr): Likewise.
12742 * solib-spu.c (append_ocl_sos): Likewise.
12743 (spu_current_sos): Likewise.
12744 * solib-svr4.c (get_svr4_info): Likewise.
12745 (svr4_keep_data_in_core): Likewise.
12746 (library_list_start_library): Likewise.
12747 (svr4_default_sos): Likewise.
12748 (svr4_read_so_list): Likewise.
12749 * solib-target.c (library_list_start_library): Likewise.
12750 (solib_target_current_sos): Likewise.
12751 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12752 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12753 * symfile.c (default_symfile_segments): Likewise.
12754 * target-descriptions.c (tdesc_data_init): Likewise.
12755 (tdesc_create_reg): Likewise.
12756 (struct tdesc_type *): Likewise.
12757 (tdesc_create_vector): Likewise.
12758 (tdesc_set_struct_size): Likewise.
12759 (struct tdesc_type *): Likewise.
12760 (tdesc_free_feature): Likewise.
12761 (tdesc_create_feature): Likewise.
12762 * windows-nat.c (windows_add_thread): Likewise.
12763 (windows_make_so): Likewise.
12764 * xml-support.c (gdb_xml_body_text): Likewise.
12765 (gdb_xml_create_parser_and_cleanup): Likewise.
12766 (xml_process_xincludes): Likewise.
12767 * xml-syscall.c (allocate_syscalls_info): Likewise.
12768 (syscall_create_syscall_desc): Likewise.
12769
5acfdbae
SDJ
127702014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12771
12772 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12773 function, with code from i386_stap_parse_special_token.
12774 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12775 (i386_stap_parse_special_token): Move code to the two functions
12776 above; simplify it.
12777
0000e5cc
PA
127782014-01-09 Pedro Alves <palves@redhat.com>
12779 Hui Zhu <hui@codesourcery.com>
12780
12781 PR gdb/16101
12782 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12783 bp_err_string. Don't mark the location shlib_disabled if the
12784 error thrown wasn't a generic or memory error. Catch errors
12785 thrown while inserting breakpoints in overlayed code. Output
12786 error message of software breakpoints.
12787 * remote.c (remote_insert_breakpoint): If this breakpoint has
12788 target-side commands but this stub doesn't support Z0 packets,
12789 throw NOT_SUPPORTED_ERROR error.
12790 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12791 * target.h (target_insert_breakpoint): Extend comment.
12792 (target_insert_hw_breakpoint): Add comment.
12793
b7ea362b
PA
127942014-01-08 Pedro Alves <palves@redhat.com>
12795
12796 * remote.c (remote_add_thread): Add threads silently if starting
12797 up.
12798 (remote_notice_new_inferior): If in all-stop, and starting up,
12799 don't call notice_new_inferior.
12800 (get_current_thread): New function, factored out from ...
12801 (add_current_inferior_and_thread): ... this. Adjust.
12802 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12803 found any thread, then select the remote's current thread as GDB's
12804 current thread too.
12805
b7bba001
JB
128062014-01-08 Joel Brobecker <brobecker@adacore.com>
12807
12808 * NEWS: Create a new section for the next release branch.
12809 Rename the section of the current branch, now that it has
12810 been cut.
12811
16dfbded
JB
128122014-01-08 Joel Brobecker <brobecker@adacore.com>
12813
12814 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12815 * version.in: Bump version to 7.7.50.DATE-cvs.
12816
22c90ac1
YQ
128172014-01-08 Yao Qi <yao@codesourcery.com>
12818
12819 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12820 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12821 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12822
d64ad97c
YQ
128232014-01-08 Yao Qi <yao@codesourcery.com>
12824
12825 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12826 return value of bfd_get_filename to symbol_file_add_from_bfd.
12827
f93ba80c
PM
128282014-01-08 Pierre Muller <muller@sourceware.org>
12829
12830 Fix PR16201.
12831 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12832 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12833 to prim_record_mininal_symbol_and_info.
12834 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12835 in call to prim_record_minimal_symbol_and_info.
12836 (read_pe_exported_syms): Set index field of section_data.
12837
a4d9ba85
AP
128382014-01-07 Andrew Pinski <apinski@cavium.com>
12839
12840 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12841 * features/aarch64.c: Regenerate.
12842
1b67eb02
AS
128432014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12844
12845 * target.c (return_null): Define.
12846 (update_current_target): Use it instead of return_zero for
12847 functions that return a pointer.
12848
5e3f4fab
EBM
128492014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12850
12851 * source.c (add_path): Fix check for duplicated paths in the previously
12852 included paths.
12853
e2616788
HK
128542014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12855
12856 * ada-lang.c: Remove duplicated include statements.
12857 * alphabsd-nat.c: Ditto.
12858 * amd64-darwin-tdep.c: Ditto.
12859 * amd64fbsd-nat.c: Ditto.
12860 * auto-load.c: Ditto.
12861 * ax-gdb.c: Ditto.
12862 * breakpoint.c: Ditto.
12863 * dbxread.c: Ditto.
12864 * fork-child.c: Ditto.
12865 * gdb_usleep.c: Ditto.
12866 * i386-darwin-tdep.c: Ditto.
12867 * i386fbsd-nat.c: Ditto.
12868 * infcmd.c: Ditto.
12869 * inferior.c: Ditto.
12870 * jv-lang.c: Ditto.
12871 * linux-nat.c: Ditto.
12872 * linux-tdep.c: Ditto.
12873 * m68kbsd-nat.c: Ditto.
12874 * m68klinux-nat.c: Ditto.
12875 * microblaze-tdep.c: Ditto.
12876 * mips-linux-tdep.c: Ditto.
12877 * mn10300-tdep.c: Ditto.
12878 * nto-tdep.c: Ditto.
12879 * opencl-lang.c: Ditto.
12880 * osdata.c: Ditto.
12881 * printcmd.c: Ditto.
12882 * regcache.c: Ditto.
12883 * remote-m32r-sdi.c: Ditto.
12884 * remote.c: Ditto.
12885 * symfile.c: Ditto.
12886 * symtab.c: Ditto.
12887 * tilegx-linux-nat.c: Ditto.
12888 * tilegx-tdep.c: Ditto.
12889 * tracepoint.c: Ditto.
12890 * valops.c: Ditto.
12891 * vaxbsd-nat.c: Ditto.
12892 * windows-nat.c: Ditto.
12893 * xtensa-tdep.c: Ditto.
12894
bd1f7788
YQ
128952014-01-07 Yao Qi <yao@codesourcery.com>
12896
12897 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12898
79301218
JB
128992014-01-07 Yao Qi <yao@codesourcery.com>
12900 Joel Brobecker <brobecker@adacore.com>
12901
12902 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12903 (pdc_write_regs): Likewise.
12904 (fetch_regs_kernel_thread): Likewise.
12905 (store_regs_kernel_thread): Likewise.
12906
129072014-01-07 Joel Brobecker <brobecker@adacore.com>
12908
12909 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12910 tagged type objects to their actual type.
12911
8e355c5d
JB
129122014-01-07 Joel Brobecker <brobecker@adacore.com>
12913
12914 * ada-valprint.c (print_field_values): Add "language" parameter.
12915 Update calls to print_field_values and print_variant_part.
12916 Pass new parameter "language" in call to val_print instead
12917 of "current_language". Replace call to ada_val_print by call
12918 to val_print.
12919 (print_variant_part): Add "language" parameter.
12920 (ada_val_print_struct_union): Update call to print_field_values.
12921
4fbf5aa5
JB
129222014-01-07 Joel Brobecker <brobecker@adacore.com>
12923
12924 * ada-valprint.c (ui_memcpy): Delete.
12925 (ada_print_floating): Update documentation. Add empty line
12926 between between function documentation and implementation.
12927 Delete variable "buffer". Use ui_file_xstrdup in place of
12928 ui_file_put. Minor adjustments following this change.
12929
71855601
JB
129302014-01-07 Joel Brobecker <brobecker@adacore.com>
12931
12932 * ada-valprint.c (ada_val_print_string): New function,
12933 extracted from ada_val_print_array.
12934 (ada_val_print_array): Replace extracted code by call
12935 to ada_val_print_string followed by a return. Move
12936 "else" branch to the function's top block.
12937
4eb27a30
JB
129382014-01-07 Joel Brobecker <brobecker@adacore.com>
12939
12940 * ada-valprint.c (ada_val_print_array): Move implementation
12941 down. Rename parameter "offset" and "val" into "offset_aligned"
12942 and "original_value" respectively. Add parameter "offset".
12943
34b27950
JB
129442014-01-07 Joel Brobecker <brobecker@adacore.com>
12945
12946 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12947 re-organizing the code. Change the "???" message printed
12948 when target type is a TYPE_CODE_UNDEF into
12949 "<ref to undefined type>".
12950
079e4591
JB
129512014-01-07 Joel Brobecker <brobecker@adacore.com>
12952
12953 * ada-valprint.c (print_record): Delete, implementation inlined...
12954 (ada_val_print_struct_union): ... here. Remove call to
12955 ada_check_typedef in inlined implementation.
12956
8004dfd1
JB
129572014-01-07 Joel Brobecker <brobecker@adacore.com>
12958
12959 * ada-valprint.c (ada_val_print_gnat_array): New function,
12960 extracted from ada_val_print_1;
12961 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12962 (ada_val_print_flt, ada_val_print_struct_union)
12963 (ada_val_print_ref): Likewise.
12964 (ada_val_print_1): Delete variables i and elttype.
12965 Replace extracted-out code by call to corresponding
12966 new functions.
12967
760a2db0
JB
129682014-01-07 Joel Brobecker <brobecker@adacore.com>
12969
12970 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12971
3a92c861
JB
129722014-01-07 Joel Brobecker <brobecker@adacore.com>
12973
12974 * ada-valprint.c (ada_val_print_1): Replace calls to
12975 ada_val_print_1 by calls to val_print.
12976
cd1630f9
JB
129772014-01-07 Joel Brobecker <brobecker@adacore.com>
12978
12979 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12980 Update calls to self accordingly. Replace calls to c_val_print
12981 by calls to val_print.
12982
bdf779a0
JB
129832014-01-07 Joel Brobecker <brobecker@adacore.com>
12984
12985 * ada-valprint.c (print_record): Delete declaration.
12986 (adjust_type_signedness, ada_val_print_1): Likewise.
12987 (ada_val_print): Move function implementation down.
12988 (print_variant_part, print_field_values, print_record):
12989 Move function implementation up.
12990
c0d48811
JB
129912014-01-07 Joel Brobecker <brobecker@adacore.com>
12992
12993 * python/py-type.c (typy_get_name): New function.
12994 (type_object_getset): Add entry for attribute "name".
12995 * NEWS: Add entry mentioning this new attribute.
12996
c26e9cbb
YQ
129972014-01-07 Yao Qi <yao@codesourcery.com>
12998
12999 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
13000 statement.
13001
0cc6f43d
YQ
130022014-01-07 Yao Qi <yao@codesourcery.com>
13003
13004 * gnu-nat.c (info_port_rights): Add qualifier const to
13005 argument args.
13006
eec03155
YQ
130072014-01-07 Yao Qi <yao@codesourcery.com>
13008
13009 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
13010
f04a82ef
YQ
130112014-01-07 Yao Qi <yao@codesourcery.com>
13012
13013 * gnu-nat.c (make_inf) Update declaration.
13014 (make_inf): Make it static.
13015 (inf_set_traced): Likewise.
13016 (inf_port_to_thread, inf_task_died_status): Likewise.
13017
d57dda0a
YQ
130182014-01-07 Yao Qi <yao@codesourcery.com>
13019
13020 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
13021
3aa8c969
YQ
130222014-01-07 Yao Qi <yao@codesourcery.com>
13023
13024 * gnu-nat.c (_initialize_gnu_nat): Declare.
13025
94123b4f
YQ
130262014-01-07 Yao Qi <yao@codesourcery.com>
13027
13028 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
13029 'enum bfd_endian'.
13030 (struct gdbarch_info) <byte_order>: Change type to
13031 'enum bfd_endian'.
13032 <byte_order_for_code>: Likewise.
13033 * gdbarch.c, gdbarch.h: Regenerated.
13034
dc81d70a
TT
130352014-01-06 Sasha Smundak <asmundak@google.com>
13036
13037 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
13038
cc2f3c35
TT
130392014-01-06 Tom Tromey <tromey@redhat.com>
13040
13041 * doublest.c (convert_doublest_to_floatformat): Use const, not
13042 CONST.
13043 * somread.c (som_symtab_read): Likewise.
13044
adcf2eed
HZ
130452014-01-07 Hui Zhu <hui@codesourcery.com>
13046
13047 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
13048 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
13049 (gdb_bfd_fopen): Ditto.
13050 (gdb_bfd_openr): Ditto.
13051 (gdb_bfd_openw): Ditto.
13052 (gdb_bfd_openr_iovec): Ditto.
13053 (gdb_bfd_fdopenr): Ditto.
13054 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
13055 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
13056 with xstrdup.
13057 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
13058 with xstrdup.
13059 * symfile-mem.c (symbol_file_add_from_memory): Removed
13060 gdb_bfd_stash_filename.
13061
50722198
DE
130622014-01-03 Doug Evans <dje@google.com>
13063
13064 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
13065 output.
13066
2fa4b862
JB
130672014-01-01 Joel Brobecker <brobecker@adacore.com>
13068
13069 Update year range in copyright notice of all files.
13070
28498c42
JB
130712014-01-01 Joel Brobecker <brobecker@adacore.com>
13072
13073 * top.c (print_gdb_version): Set copyright year to 2014.
13074
7b6e1046
JB
130752014-01-01 Joel Brobecker <brobecker@adacore.com>
13076
13077 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
13078
df96af55 13079For older changes see ChangeLog-2013.
c906108c
SS
13080\f
13081Local Variables:
13082mode: change-log
13083left-margin: 8
13084fill-column: 74
13085version-control: never
57da7796 13086coding: utf-8
c906108c 13087End:
This page took 2.247371 seconds and 4 git commands to generate.