Add hardware watchpoint support for x86 GNU Hurd.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
05db5edd
ST
12014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
2
3 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
4 x86-dregs.o.
5 * gnu-nat.c (inf_threads): New function.
6 * gnu-nat.h (inf_threads_ftype): New typedef.
7 (inf_threads): New declaration.
8 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
9 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
10 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
11 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
12 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
13 (i386_gnu_dr_get_control): New functions.
14 (reg_addr): New structure.
15 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
16 i386 debugging register hooks.
17 * NEWS: Mention this.
18
5a578da5
OJ
192014-08-13 Omair Javaid <omair.javaid@linaro.org>
20
21 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
22 vector data transfer instructions.
23 (arm_record_coproc_data_proc): Updated.
24
f20f80dd
OJ
252014-08-13 Omair Javaid <omair.javaid@linaro.org>
26
27 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
28 arm_record_exreg_ld_st_insn.
29 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
30 load/store insns.
31
851f26ae
OJ
322014-08-13 Omair Javaid <omair.javaid@linaro.org>
33
34 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
35 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
36 processing instructions.
37
1e1b6563
OJ
382014-08-13 Omair Javaid <omair.javaid@linaro.org>
39
40 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
41 for advance SIMD struct ld/st insn.
42 (thumb2_record_decode_insn_handler): Replace stub handler with
43 thumb2_record_asimd_struct_ld_st.
44
60cc5e93
OJ
452014-08-13 Omair Javaid <omair.javaid@linaro.org>
46
47 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
48 for asimd, vfp and coprocessor insns.
49 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
50 and coprocessor insns.
51 (thumb2_record_coproc_insn): New function.
52 (thumb2_record_decode_insn_handler): Update coprocessor insns record
53 handlers.
54 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
55 opcode 110 insns.
56
81219e53
DE
572014-09-13 Doug Evans <xdje42@gmail.com>
58
59 * NEWS: Mention new "queue-signal" command.
60 * infcmd.c (queue_signal_command): New function.
61 (_initialize_infcmd): Add new queue-signal command.
62
d36bf488
DE
632014-09-13 Doug Evans <xdje42@gmail.com>
64
65 * linux-nat.c (wait_lwp): Add debugging printf.
66 (linux_nat_wait_1): Ditto.
67
f37f681c
PA
682014-09-12 Pedro Alves <palves@redhat.com>
69
70 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
71 (create_and_insert_solib_event_breakpoint): New functions.
72 * breakpoint.h (create_and_insert_solib_event_breakpoint)
73 (remove_solib_event_breakpoints_at_next_stop): New declarations.
74 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
75 (remove_dbx_link_breakpoint): Delete function.
76 (insert_dbx_link_bpt_in_file): Use
77 create_and_insert_solib_event_breakpoint instead of
78 deprecated_insert_raw_breakpoint.
79 (procfs_wait): Don't check whether we hit __dbx_link here.
80 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
81 here.
82 * solib-irix.c (base_breakpoint): Delete global.
83 (disable_break): Delete function.
84 (enable_break): Use create_solib_event_breakpoint
85 instead of deprecated_insert_raw_breakpoint.
86 (irix_solib_handle_event): New function.
87 (irix_solib_create_inferior_hook): Don't run the target or disable
88 the mapping-complete breakpoint here.
89 (_initialize_irix_solib): Install irix_solib_handle_event as
90 so_ops->handle_event hook.
91
9d9bf2df
EBM
922014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
93 Ulrich Weigand  <uweigand@de.ibm.com>
94
95 PR tdep/17379
96 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
97 instead of read_memory_unsigned_integer.
98
b006a80e
GB
992014-09-12 Gary Benson <gbenson@redhat.com>
100
101 * nat/linux-waitpid.c: Include common-defs.h.
102 [GDBSERVER]: Add FIXME comment.
103 [!GDBSERVER]: Don't include defs.h or signal.h.
104 (linux_debug) [!GDBSERVER]: Remove empty block.
105
296b1496
GB
1062014-09-12 Gary Benson <gbenson@redhat.com>
107
108 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
109 Don't include defs.h or server.h.
110
53f81362
GB
1112014-09-12 Gary Benson <gbenson@redhat.com>
112
113 * nat/linux-btrace.c: Include common-defs.h.
114 Don't include defs.h, server.h or gdbthread.h.
115 * nat/linux-btrace.h (struct target_ops): New forward declaration.
116
727605ca
GB
1172014-09-12 Gary Benson <gbenson@redhat.com>
118
119 * common/agent.c: Include common-defs.h.
120 Don't include defs.h or server.h.
121 * common/buffer.c: Likewise.
122 * common/common-debug.c: Likewise.
123 * common/common-utils.c: Likewise.
124 * common/errors.c: Likewise.
125 * common/filestuff.c: Likewise.
126 * common/format.c: Likewise.
127 * common/gdb_vecs.c: Likewise.
128 * common/print-utils.c: Likewise.
129 * common/ptid.c: Likewise.
130 * common/rsp-low.c: Likewise.
131 * common/signals.c: Likewise.
132 * common/vec.c: Likewise.
133 * common/xml-utils.c: Likewise.
134 * nat/linux-osdata.c: Likewise.
135 * nat/linux-procfs.c: Likewise.
136 * nat/linux-ptrace.c: Likewise.
137 * nat/mips-linux-watch.c: Likewise.
138 * target/waitstatus.c: Likewise.
139
361c8ade
GB
1402014-09-12 Tom Tromey <tromey@redhat.com>
141 Gary Benson <gbenson@redhat.com>
142
143 * common/common-regcache.h: New file.
144 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
145 * regcache.h: Include common-regcache.h.
146 (regcache_read_pc): Don't declare.
147 * regcache.c (get_thread_regcache_for_ptid): New function.
148 * nat/linux-btrace.c: Don't include regcache.h.
149 Include common-regcache.h.
150 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
151
a01cbb49
TS
1522014-09-11 Thomas Schwinge <thomas@codesourcery.com>
153
154 * regcache.h (struct regset): Declare.
155
98880d46
PA
1562014-09-11 Pedro Alves <palves@redhat.com>
157
158 PR gdb/17347
159 * main.c: Include "infrun.h".
160 (catch_command_errors, catch_command_errors_const): Wait for the
161 foreground command to complete.
162 * top.c (maybe_wait_sync_command_done): New function, factored out
163 from ...
164 (maybe_wait_sync_command_done): ... here.
165 * top.h (maybe_wait_sync_command_done): New declaration.
166
bd9269f7
GB
1672014-09-11 Tom Tromey <tromey@redhat.com>
168 Gary Benson <gbenson@redhat.com>
169
170 * common/symbol.h: New file.
171 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
172 * minsyms.c (find_minimal_symbol_address): New function.
173 * common/agent.c: Include common/symbol.h.
174 [!GDBSERVER]: Don't include objfiles.h.
175 (agent_look_up_symbols): Use find_minimal_symbol_address.
176
f8c1d06b
GB
1772014-09-11 Gary Benson <gbenson@redhat.com>
178
179 * target/target.h (target_stop_ptid, target_continue_ptid):
180 Declare.
181 * target.c (target_stop_ptid, target_continue_ptid): New
182 functions.
183 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
184 (agent_run_command): Always use target_stop_ptid and
185 target_continue_ptid.
186
721ec300
GB
1872014-09-11 Tom Tromey <tromey@redhat.com>
188 Gary Benson <gbenson@redhat.com>
189
190 * target/target.h: New file.
191 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
192 * target.h: Include target/target.h.
193 (target_read_memory, target_write_memory): Don't declare.
194 * target.c (target_read_uint32): New function.
195 * common/agent.c: Include target/target.h.
196 [!GDBSERVER]: Don't include target.h.
197 (helper_thread_id): Type changed to uint32_t.
198 (agent_get_helper_thread_id): Use target_read_uint32.
199 (agent_run_command): Always use target_read_memory and
200 target_write_memory.
201 (agent_capability): Type changed to uint32_t.
202 (agent_capability_check): Use target_read_uint32.
203
c5e92cca
GB
2042014-09-11 Gary Benson <gbenson@redhat.com>
205
206 * common/common-debug.h (show_debug_regs): Declare.
207 * common/common-debug.c (show_debug_regs): Define.
208 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
209 all uses with show_debug_regs. Replace all uses that considered
210 debug_hw_points as a multi-value integer with straight boolean
211 uses.
212 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
213 with show_debug_regs.
214 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
215 all uses with show_debug_regs.
216 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
217 uses with show_debug_regs.
218
eeef931a
UW
2192014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
220
221 * findvar.c (address_from_register): Handle targets requiring
222 a special conversion routine even for plain pointer types.
223
8efa9855
UW
2242014-09-10 Ulrich Weigand  <uweigand@de.ibm.com>
225
226 * rs6000-nat.c (exec_one_dummy_insn): Remove.
227 (store_register): Do not call exec_one_dummy_insn.
228
eb479039
JB
2292014-09-10 Joel Brobecker <brobecker@adacore.com>
230
231 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
232 dereference it first. Use value_enclosing_type instead of
233 value_type.
234 (ada_array_length): Likewise.
235
deede10c
JB
2362014-09-10 Joel Brobecker <brobecker@adacore.com>
237
238 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
239 Adjust function implementation and documentation accordingly.
240 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
241 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
242 Update call to ada_value_ptr_subscript.
243
7828a5f5
JB
2442014-09-10 Joel Brobecker <brobecker@adacore.com>
245
246 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
247 instead of VAL's type.
248
35782f14
JB
2492014-09-10 Joel Brobecker <brobecker@adacore.com>
250
251 * amd64-linux-nat.c: Add <sys/uio.h> #include.
252
d342a0da
DE
2532014-09-09 Doug Evans <xdje42@gmail.com>
254
255 PR guile/17367
256 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
257 last parameter to pkg-config, not first.
258 * configure.ac: Pass --with-guile provided pkg-config path to
259 GDB_GUILE_PROGRAM_NAMES.
260 * configure: Regenerate.
261
b4a3d263
GKB
2622014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
263
264 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
265 Bertazi".
266
6e466374
MR
2672014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
268
269 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
270 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
271 the list of sections determining GDB_OSABI_IRIX.
272
a1ada89a
JH
2732014-09-09 James Hogan <james.hogan@imgtec.com>
274
275 * MAINTAINERS (Write After Approval): Add "James Hogan".
276
86db008d
JH
2772014-09-09 James Hogan <james.hogan@imgtec.com>
278
279 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
280
72fde3df
JB
2812014-09-09 Joel Brobecker <brobecker@adacore.com>
282
283 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
284
92d8d229
DE
2852014-09-08 Doug Evans <xdje42@gmail.com>
286
287 PR 17247
288 * guile.c: #include <signal.h>.
289 (_initialize_guile): Block SIGCHLD while initializing Guile.
290
291 Replaces the following, which is reverted.
292
293 2014-07-26 Doug Evans <xdje42@gmail.com>
294
295 PR 17185
296 * configure.ac: Add check for header gc/gc.h.
297 Add check for function setenv.
298 * configure: Regenerate.
299 * config.in: Regenerate.
300 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
301
d81412aa
DE
3022014-09-08 Doug Evans <xdje42@gmail.com>
303
304 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
305 with named constant. Fix style of pointer comparison.
306 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
307
a9f116cb
GKB
3082014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
309
310 PR gdb/17035
311 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
312 decide whether we display the command on "show user".
313 * cli/cli-script.c (show_user_1): Only verify cmdlines after
314 printing command name.
315 * cli/cli-decode.h (cli_user_command_p): Declare new function.
316 * cli/cli-decode.c (cli_user_command_p): Create helper function
317 to verify whether cmd_list_element is a user-defined command.
318
c75bd3a2
JK
3192014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
320
321 PR python/17355
322 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
323 Fix goto out of TRY_CATCH.
324
faa42425 3252014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 326 Tom Tromey <tromey@redhat.com>
faa42425
DE
327
328 PR 15276
329 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
330 $_any_caller_matches.
331 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
332 * python/lib/gdb/function/caller_is.py: New file.
333
0d41ba00
DE
3342014-09-06 Doug Evans <xdje42@gmail.com>
335
336 * infcmd.c (program_info): Fix typo.
337
474ca4f6
SDJ
3382014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
339
340 PR gdb/17235
341 * stap-probe.c (stap_parse_single_operand): Delete unused variable
342 'number'. New variable 'has_digit'. Rewrite code to deal with
343 subexpressions on SDT probes.
344
ebf13736
PA
3452014-09-04 Pedro Alves <palves@redhat.com>
346
347 * c-exp.y (parse_number): Skip handling base-switching prefixes if
348 the input is only one character long.
349
eb0b0463
SDJ
3502014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
351
352 PR fortran/17237
353 * f-valprint.c (f_val_print): Specify the correct print option to
354 use when printing integer values.
355
5ee44bfa
GB
3562014-09-04 Gary Benson <gbenson@redhat.com>
357
358 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
359 Remove code to cope with LWPs wrapped as PIDs.
360 Add assertions to ensure no wrapped LWPs are passed.
361
4875ffdb
PA
3622014-09-04 Pedro Alves <palves@redhat.com>
363
364 * value.c (value_ranges_copy_adjusted): New function, factored out
365 from ...
366 (value_contents_copy_raw): ... here.
367 (unpack_value_bits_as_long_1): Rename back to ...
368 (unpack_bits_as_long): ... this. Remove 'original_value' and
369 'result' parameters. Change return type to LONGEST.
370 (unpack_value_bits_as_long): Delete.
371 (unpack_value_field_as_long_1): Delete.
372 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
373 (unpack_value_bitfield): New function.
374 (value_field_bitfield): Reimplement using unpack_value_bitfield.
375 (value_fetch_lazy): Use unpack_value_bitfield.
376 * value.h (unpack_value_bits_as_long): Delete declaration.
377
5f3b99cf
SS
3782014-09-03 Sasha Smundak <asmundak@google.com>
379
380 * python/py-frame.c (frapy_read_register): New function.
381
ac740bc7
JH
3822014-09-03 James Hogan <james.hogan@imgtec.com>
383
384 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
385 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
386
7d793aa9
SDJ
3872014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
388
389 PR python/16699
390 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
391 function.
392 (add_cmd): Set "completer_handle_brkchars" to NULL.
393 * cli/cli-decode.h (struct cmd_list_element)
394 <completer_handle_brkchars>: New field.
395 * command.h (completer_ftype_void): New typedef.
396 (set_cmd_completer_handle_brkchars): New prototype.
397 * completer.c (set_gdb_completion_word_break_characters): New
398 function.
399 (complete_line_internal): Call "completer_handle_brkchars"
400 callback from command.
401 * completer.h: Include "command.h".
402 (set_gdb_completion_word_break_characters): New prototype.
403 * python/py-cmd.c (cmdpy_completer_helper): New function.
404 (cmdpy_completer_handle_brkchars): New function.
405 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
406 (cmdpy_init): Set completer_handle_brkchars to
407 cmdpy_completer_handle_brkchars.
408
97ea6506
GB
4092014-09-03 Gary Benson <gbenson@redhat.com>
410
411 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
412 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
413 Loop conditions changed to equivalent form.
414 (struct x86_debug_reg_state): Updated dr_ref_count comment.
415 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
416 ALL_DEBUG_ADDRESS_REGISTERS.
417
d1437815
JB
4182014-09-03 Joel Brobecker <brobecker@adacore.com>
419
420 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
421 description fix.
422
9b94fcf1
DE
4232014-09-02 Doug Evans <dje@google.com>
424
425 * typeprint.c (find_global_typedef): Fix comment.
426
df7e5265
GB
4272014-09-02 Gary Benson <gbenson@redhat.com>
428
429 * i386-nat.h: Renamed as...
430 * x86-nat.h: New file. All type, function and variable name
431 prefixes changed from "i386_" to "x86_". All references updated.
432 * i386-nat.c: Renamed as...
433 * x86-nat.c: New file. All type, function and variable name
434 prefixes changed from "i386_" to "x86_". All references updated.
435 * common/i386-xstate.h: Renamed as...
436 * common/x86-xstate.h: New file. All type, function and variable
437 name prefixes changed from "i386_" to "x86_". All references
438 updated.
439 * nat/i386-cpuid.h: Renamed as...
440 * nat/x86-cpuid.h: New file. All type, function and variable name
441 prefixes changed from "i386_" to "x86_". All references updated.
442 * nat/i386-gcc-cpuid.h: Renamed as...
443 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
444 name prefixes changed from "i386_" to "x86_". All references
445 updated.
446 * nat/i386-dregs.h: Renamed as...
447 * nat/x86-dregs.h: New file. All type, function and variable name
448 prefixes changed from "i386_" to "x86_". All references updated.
449 * nat/i386-dregs.c: Renamed as...
450 * nat/x86-dregs.c: New file. All type, function and variable name
451 prefixes changed from "i386_" to "x86_". All references updated.
452
1c3569d4
MR
4532014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
454
455 * varobj.c (_initialize_varobj): Move to the end of file.
456
ff55e1b5
GB
4572014-08-29 Gary Benson <gbenson@redhat.com>
458
459 * common/common-exceptions.h: New file.
460 * common/common-exceptions.c: Likewise.
461 * Makefile.in (SFILES): Add common/common-exceptions.c.
462 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
463 (COMMON_OBS): Add common-exceptions.o.
464 (common-exceptions.o): New rule.
465 * exceptions.h (common-exceptions.h): Include.
466 (gdb_setjmp.h): Do not include.
467 (return_reason): Moved to common-exceptions.h.
468 (enum return_reason): Likewise.
469 (RETURN_MASK): Likewise.
470 (typedef return_mask): Likewise.
471 (enum errors): Likewise.
472 (struct gdb_exception): Likewise.
473 (exceptions_state_mc_init): Likewise.
474 (exceptions_state_mc_action_iter): Likewise.
475 (exceptions_state_mc_action_iter_1): Likewise.
476 (TRY_CATCH): Likewise.
477 (throw_exception): Likewise.
478 (throw_verror): Likewise.
479 (throw_vquit): Likewise.
480 (throw_error): Likewise.
481 (throw_quit): Likewise.
482 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
483 (enum catcher_action): Likewise.
484 (struct catcher): Likewise.
485 (current_catcher): Likewise.
486 (catcher_list_size): Likewise.
487 (exceptions_state_mc_init): Likewise.
488 (catcher_pop): Likewise.
489 (exceptions_state_mc): Likewise.
490 (exceptions_state_mc_action_iter): Likewise.
491 (exceptions_state_mc_action_iter_1): Likewise.
492 (throw_exception): Likewise.
493 (exception_messages): Likewise.
494 (exception_messages_size): Likewise.
495 (throw_it): Likewise.
496 (throw_verror): Likewise.
497 (throw_vquit): Likewise.
498 (throw_error): Likewise.
499 (throw_quit): Likewise.
500 (prepare_to_throw_exception): New function.
501
e9bcb658
GB
5022014-08-29 Gary Benson <gbenson@redhat.com>
503
504 * common/gdb_setjmp.h: New file.
505 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
506 * configure.ac: Move sigsetjmp check...
507 * common/common.m4: ...here.
508 * configure: Regenerate.
509 * cp-support.c (SIGJMP_BUF): Delete.
510 (SIGSETJMP): Likewise.
511 (SIGLONGJMP): Likewise.
512 * exceptions.h (gdb_setjmp.h): Include.
513 (setjmp.h): Do not include.
514 (EXCEPTIONS_SIGJMP_BUF): Delete.
515 (EXCEPTIONS_SIGSETJMP): Likewise.
516 (EXCEPTIONS_SIGLONGJMP): Likewise.
517 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
518 from gdb_setjmp.h.
519 * exceptions.c: Likewise.
520
e3180625
GB
5212014-08-29 Gary Benson <gbenson@redhat.com>
522
523 * cleanups.h: Moved to...
524 * common/cleanups.h: New file.
525 * cleanups.c: Moved to...
526 * common/cleanups.c: New file. Include common-defs.h and
527 cleanups.h. Do not include defs.h.
528 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
529 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
530 (cleanups.o): New rule.
531
e3d6ba5d
GB
5322014-08-29 Gary Benson <gbenson@redhat.com>
533
534 * common/errors.h (internal_warning): New declaration.
535 (internal_vwarning): Likewise.
536 * common/errors.c (internal_warning): New function.
537 * utils.h (internal_warning): Don't declare.
538 (internal_vwarning): Likewise.
539 * utils.c (internal_warning): Removed.
540
075c7033
GB
5412014-08-29 Gary Benson <gbenson@redhat.com>
542
543 * main.c (captured_main): Use warning during startup.
544 Prefix startup warning messages with command name.
545
91b35fd0
GB
5462014-08-29 Gary Benson <gbenson@redhat.com>
547
548 * main.c (captured_main): Handle usage errors with error.
549
b1ec390e
GB
5502014-08-29 Gary Benson <gbenson@redhat.com>
551
552 * go32-nat.c (go32_create_inferior): Replace a fprintf/
553 exit pair with a call to error. Wrap the message with _().
554
fd0ef3dd
GB
5552014-08-29 Gary Benson <gbenson@redhat.com>
556
557 * main.c (captured_main): Replace a fprintf/exit
558 pair with a call to error. Wrap the message with _().
559
e0e6bcab
GB
5602014-08-29 Gary Benson <gbenson@redhat.com>
561
562 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
563 pairs with calls to error. Wrap the message with _().
564
0d2f5c07
GB
5652014-08-29 Gary Benson <gbenson@redhat.com>
566
567 * utils.c (vwarning): Protect calls to target_terminal_ours
568 and wrap_here.
569
5df43998
GB
5702014-08-29 Gary Benson <gbenson@redhat.com>
571
572 * exceptions.c (print_flush): Protect calls to
573 target_terminal_ours and wrap_here.
574
2437fd32
GB
5752014-08-29 Gary Benson <gbenson@redhat.com>
576
577 * utils.h (filtered_printing_initialized): New declaration.
578 * utils.c (abort_with_message): New function.
579 (internal_vproblem): Use abort_with_message for first level
580 recursive internal problems, and if gdb_stderr is not set up.
581 Protect calls to target_terminal_ours, begin_line and query.
582
f1f58506
DE
5832014-08-28 Doug Evans <dje@google.com>
584
585 * symtab.c (in_prologue): Move definition to better spot.
586 (skip_prologue_using_sal): Ditto.
587
aab2f208
DE
5882014-08-28 Doug Evans <dje@google.com>
589
590 * symtab.c (find_function_start_sal): Move definition to better spot.
591
6b65d1b6
YQ
5922014-08-28 Yao Qi <yao@codesourcery.com>
593
594 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
595 found_stack_adjust in forward scan. Remove condition check
596 on found_stack_adjust which is always true. Indent the code.
597
a1b34d15
YQ
5982014-08-28 Yao Qi <yao@codesourcery.com>
599
600 * dwarf2read.c (dwarf_decode_lines): Update declaration.
601 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
602 (dwarf_decode_lines): Remove argument
603 want_line_info. Remove condition check on want_line_info.
604 Callers update.
605
d5962de5
DE
6062014-08-27 Doug Evans <dje@google.com>
607
608 * dwarf2read.c (dwarf_record_line): Fix typo.
609
9b139002
SDJ
6102014-08-27 Patrick Palka <patrick@parcs.ath.cx>
611
612 * target.h (struct target_ops::to_terminal_save_ours): Remove
613 declaration.
614 (target_terminal_save_ours): Remove macro.
615 * target-delegates.c: Regenerate.
616 * inf-child.c (inf_child_target): Don't set the nonexistent
617 field to_terminal_save_ours.
618 * inferior.h (child_terminal_save_ours): Remove declaration.
619 * terminal.h (gdb_save_tty_state): New declaration.
620 * inflow.c (child_terminal_save_ours): Rename to ...
621 (gdb_save_tty_state): ... this.
622 * tui/tui.c: Include terminal.h.
623 (tui_enable): Use gdb_save_tty_state instead of
624 target_terminal_save_ours.
625 (tui_disable): Likewise.
626
9debeba0
DE
6272014-08-25 Doug Evans <dje@google.com>
628
629 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
630 Pass NULL instead of 0 for context pointer.
631
428fc5fc
YQ
6322014-08-25 Yao Qi <yao@codesourcery.com>
633
634 * dwarf2read.c: Fix grammatical error.
635
cdc07690
YQ
6362014-08-24 Yao Qi <yao@codesourcery.com>
637
638 * dwarf2read.c (scan_partial_symbols): Update comments.
639 Rename argument 'need_pc' with 'set_addrmap'.
640 (add_partial_namespace): Rename argument 'need_pc' with
641 'set_addrmap'.
642 (add_partial_module): Likewise.
643 (add_partial_subprogram): Likewise. Update comments.
644 (dwarf2_name): Fix typo.
645
a05a36a5
DE
6462014-08-22 Doug Evans <dje@google.com>
647
648 PR 17276
649 * dwarf2read.c (dwarf_record_line_p): New function.
650 (dwarf_decode_lines_1): Ignore subsequent line number entries
651 for the same line if any entry had a non-zero discriminator.
652
252a6764
DE
6532014-08-22 Doug Evans <dje@google.com>
654
655 * buildsym.h (record_line_ftype): New typedef.
656 (record_line): Use it.
657 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
658 (dwarf_decode_lines_1): Call them.
659
510db052
YQ
6602014-08-22 Yao Qi <yao@codesourcery.com>
661
662 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
663 (ctf_end): Remove code.
664
22fd09ae
JK
6652014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
666
667 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
668 (linux_make_corefile_notes): call update_thread_list, protected against
669 exceptions.
670
656e8868
PA
6712014-08-21 Pedro Alves <palves@redhat.com>
672
673 * infcmd.c (attach_command): Remove comment.
674
de589d04
WN
6752014-08-21 Bin Cheng <bin.cheng@arm.com>
676
677 * aarch64-linux-nat.c (dr_changed_t): Change the type from
678 unsigned LONGEST to ULONGEST.
679
2a31c623
PA
6802014-08-20 Pedro Alves <palves@redhat.com>
681
682 * Makefile.in (check-read1): New rule.
683
d36430db
JB
6842014-08-20 Joel Brobecker <brobecker@adacore.com>
685
686 * value.c (value_from_contents_and_address): Strip resolved_type's
687 typedef layers before checking its TYPE_DATA_LOCATION.
688
000339af
PA
6892014-08-20 Pedro Alves <palves@redhat.com>
690
691 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
692
5f52445b
YQ
6932014-08-20 Yao Qi <yao@codesourcery.com>
694
695 * amd64-tdep.c (amd64_classify): Add a blank line after the
696 example. Move "*/" to a new line.
697 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
698 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
699 * dwarf2read.c (psymtab_include_file_name): Likewise.
700
9a0dc9e3
PA
7012014-08-19 Andrew Burgess <aburgess@broadcom.com>
702 Pedro Alves <palves@redhat.com>
703
704 PR symtab/14604
705 PR symtab/14605
706 * ada-lang.c (coerce_unspec_val_to_type): Use
707 value_contents_copy_raw.
708 * ada-valprint.c (val_print_packed_array_elements): Adjust.
709 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
710 * cp-valprint.c (cp_print_value_fields): Let the common printing
711 code handle optimized out values.
712 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
713 * d-valprint.c (dynamic_array_type): Use
714 value_bits_any_optimized_out.
715 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
716 check_any_valid fields.
717 (check_pieced_value_bits): Delete and inline ...
718 (check_pieced_synthetic_pointer): ... here.
719 (check_pieced_value_validity): Delete.
720 (check_pieced_value_invalid): Delete.
721 (pieced_value_funcs): Remove check_validity and check_any_valid
722 fields.
723 (read_pieced_value): Use mark_value_bits_optimized_out.
724 (write_pieced_value): Switch to use
725 mark_value_bytes_optimized_out.
726 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
727 of assuming the whole value is optimized out.
728 * findvar.c (read_frame_register_value): Remove special handling
729 of optimized out registers.
730 (value_from_register): Use mark_value_bytes_optimized_out.
731 * frame-unwind.c (frame_unwind_got_optimized): Use
732 mark_value_bytes_optimized_out.
733 * jv-valprint.c (java_value_print): Adjust.
734 (java_print_value_fields): Let the common printing code handle
735 optimized out values.
736 * mips-tdep.c (mips_print_register): Remove special handling of
737 optimized out registers.
738 * opencl-lang.c (lval_func_check_validity): Delete.
739 (lval_func_check_any_valid): Delete.
740 (opencl_value_funcs): Remove check_validity and check_any_valid
741 fields.
742 * p-valprint.c (pascal_object_print_value_fields): Let the common
743 printing code handle optimized out values.
744 * stack.c (read_frame_arg): Remove special handling of optimized
745 out values. Fetch both VAL and ENTRYVAL before comparing
746 contents. Adjust to value_available_contents_eq rename.
747 * valprint.c (valprint_check_validity)
748 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
749 (val_print_array_elements): Adjust.
750 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
751 (value_bits_any_optimized_out): New function.
752 (value_entirely_covered_by_range_vector): New function, factored
753 out from value_entirely_unavailable.
754 (value_entirely_unavailable): Reimplement.
755 (value_entirely_optimized_out): New function.
756 (insert_into_bit_range_vector): New function, factored out from
757 mark_value_bits_unavailable.
758 (mark_value_bits_unavailable): Reimplement.
759 (struct ranges_and_idx): New struct.
760 (find_first_range_overlap_and_match): New function, factored out
761 from value_available_contents_bits_eq.
762 (value_available_contents_bits_eq): Rename to ...
763 (value_contents_bits_eq): ... this. Check both unavailable
764 contents and optimized out contents.
765 (value_available_contents_eq): Rename to ...
766 (value_contents_eq): ... this.
767 (allocate_value_lazy): Remove reference to the old optimized_out
768 boolean.
769 (allocate_optimized_out_value): Use
770 mark_value_bytes_optimized_out.
771 (require_not_optimized_out): Adjust to check whether the
772 optimized_out vec is empty.
773 (ranges_copy_adjusted): New function, factored out from
774 value_contents_copy_raw.
775 (value_contents_copy_raw): Also copy the optimized out ranges.
776 Assert the destination ranges aren't optimized out.
777 (value_contents_copy): Update comment, remove call to
778 require_not_optimized_out.
779 (value_contents_equal): Adjust to check whether the optimized_out
780 vec is empty.
781 (set_value_optimized_out, value_optimized_out_const): Delete.
782 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
783 New functions.
784 (value_entirely_optimized_out, value_bits_valid): Delete.
785 (value_copy): Take a VEC copy of the 'optimized_out' field.
786 (value_primitive_field): Remove special handling of optimized out.
787 (value_fetch_lazy): Assert that lazy values have no unavailable
788 regions. Use value_bits_any_optimized_out. Remove some special
789 handling for optimized out values.
790 * value.h: Add intro comment about <optimized out> and
791 <unavailable>.
792 (struct lval_funcs): Remove check_validity and check_any_valid
793 fields.
794 (set_value_optimized_out, value_optimized_out_const): Remove.
795 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
796 New declarations.
797 (value_bits_any_optimized_out): New declaration.
798 (value_bits_valid): Delete declaration.
799 (value_available_contents_eq): Rename to ...
800 (value_contents_eq): ... this, and extend comments.
801
6694c411
JK
8022014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
803
804 Fix -fsanitize=address on unreadable inferior strings.
805 * valprint.c (val_print_string): Fix access before BUFFER.
806
89a1c21a
SM
8072014-08-19 Simon Marchi <simon.marchi@ericsson.com>
808
809 * target.c (target_struct_size): Remove.
810 (target_struct_allocsize): Remove.
811 (DEFAULT_ALLOCSIZE): Remove.
812 (target_ops_p): New typedef.
813 (DEF_VEC_P (target_ops_p)): New vector type.
814 (target_structs): Change type to VEC (target_ops_p).
815 (add_target_with_completer): Replace "push" code by VEC_safe_push.
816 (find_default_run_target): Rewrite for loop following changes to
817 target_structs.
818
cb417230
JB
8192014-08-19 Joel Brobecker <brobecker@adacore.com>
820
821 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
822 Adjust code accordingly. Adjust function description comment.
823
817e0957
YQ
8242014-08-19 Yao Qi <yao@codesourcery.com>
825
826 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
827 types.
828
2974be62
AM
8292014-08-19 Alan Modra <amodra@gmail.com>
830
831 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
832 * config.in: Regenerate.
833 * configure: Regenerate.
834
34abf635
GB
8352014-08-19 Tom Tromey <tromey@redhat.com>
836 Gary Benson <gbenson@redhat.com>
837
838 * common/common-debug.h: New file.
839 * common/common-debug.c: Likewise.
840 * debug.c: Likewise.
841 * Makefile.in (SFILES): Add common/common-debug.c.
842 (HFILES_NO_SRCDIR): Add common/common-debug.h.
843 (COMMON_OBS): Add common-debug.o and debug.o.
844 (common-debug.o): New rule.
845 * common/common-defs.h: Include common-debug.h.
846 * common/agent.c (debug_agent_printf): New function.
847 (DEBUG_AGENT): Redefine.
848 * nat/i386-dregs.c (debug_printf): Undefine.
849
f6e94d78
GB
8502014-08-19 Gary Benson <gbenson@redhat.com>
851
852 * common/common-defs.h: Include print-utils.h.
853 * utils.h: Do not include print-utils.h.
854
9239eeab
GB
8552014-08-19 Tom Tromey <tromey@redhat.com>
856 Gary Benson <gbenson@redhat.com>
857
858 * common/common-types.h: New file.
859 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
860 * common/common-defs.h: Include common-types.h.
861 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
862 (ULONGEST): Remove.
863
ef87c8bb
GB
8642014-08-19 Tom Tromey <tromey@redhat.com>
865 Gary Benson <gbenson@redhat.com>
866
867 * common/errors.h: New file.
868 * common/errors.c: Likewise.
869 * Makefile.in (SFILES): Add common/errors.c.
870 (HFILES_NO_SRCDIR): Add common/errors.h.
871 (COMMON_OBS): Add errors.o.
872 (errors.o): New rule.
873 * common/common-defs.h: Include errors.h.
874 * utils.h (perror_with_name, error, verror, warning, vwarning):
875 Don't declare.
876 * common/common-utils.h: (malloc_failure, internal_error):
877 Likewise.
878
196a707b
GB
8792014-08-19 Gary Benson <gbenson@redhat.com>
880
881 * utils.c (internal_vproblem): Always print the message.
882
ded4fc8f
DE
8832014-08-18 Doug Evans <dje@google.com>
884
885 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
886
950c97d8
JB
8872014-08-18 Joel Brobecker <brobecker@adacore.com>
888
889 * ada-typeprint.c (type_is_full_subrange_of_target_type):
890 Return 0 if TYPE is dynamic.
891 (print_range): Add handling of dynamic ranges.
892
3cdcd0ce
JB
8932014-08-18 Keven Boell <keven.boell@intel.com>
894 Joel Brobecker <brobecker@adacore.com>
895
896 * gdbtypes.h (struct main_type): Add field "data_location".
897 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
898 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
899 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
900 a dynamic data location.
901 (resolve_dynamic_type): Add DW_AT_data_location handling.
902 (copy_recursive, copy_type): Copy the data_location information
903 when present.
904 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
905 * value.c (value_from_contents_and_address): Add
906 DW_AT_data_location handling.
907
08412b07
JB
9082014-08-18 Keven Boell <keven.boell@intel.com>
909 Joel Brobecker <brobecker@adacore.com>
910
911 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
912 field "get_object_address".
913 * dwarf2expr.c (execute_stack_op): Add handling for
914 DW_OP_push_object_address.
915 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
916 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
917 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
918 (dwarf_expr_get_obj_addr): New function.
919 (dwarf_expr_ctx_funcs): Add get_object_address field.
920 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
921 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
922 (dwarf2_evaluate_property): Add parameter "address". Use it.
923 (needs_get_obj_addr): New function.
924 (needs_frame_ctx_funcs): Add get_object_address field.
925 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
926 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
927 (resolve_dynamic_array): Likewise.
928
84754697
JB
9292014-08-18 Joel Brobecker <brobecker@adacore.com>
930
931 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
932 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
933 fixed value for records and unions for which some GNAT encodings
934 are present.
935
da5c522f
JB
9362014-08-18 Joel Brobecker <brobecker@adacore.com>
937
938 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
939 rewrite to avoid "else if" and "else" constructs. Should be
940 a no-op in practice.
941
0d72a7c3
JB
9422014-08-18 Joel Brobecker <brobecker@adacore.com>
943
944 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
945 of lexical block.
946
e66d4446
SC
9472014-08-15 Siva Chandra Reddy <sivachandra@google.com>
948
949 PR c++/17132
950 * eval.c: Update all calls to find_overload_match.
951 * valarith.c: Likewise.
952 (value_user_defined_cpp_op, value_user_defined_op): New
953 argument NOSIDE. Update all callers.
954 * valops.c (find_overload_match): New argument NOSIDE.
955 * value.h (find_overload_match): Update signature.
956
940df408
SC
9572014-08-15 Siva Chandra Reddy <sivachandra@google.com>
958
959 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
960 'items' methods instead of 'iteritems' method on dictionaries.
961
699ca60a
DE
9622014-08-15 Doug Evans <dje@google.com>
963
964 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
965 closer to use.
966
37780ee5
DE
9672014-08-15 Doug Evans <dje@google.com>
968
969 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
970
0ad93d4f
DE
9712014-08-15 Doug Evans <dje@google.com>
972
973 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
974
20d8c372
DE
9752014-08-15 Doug Evans <dje@google.com>
976
977 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
978 unused.
979
cb039ba4
EZ
9802014-08-15 Eli Zaretskii <eliz@gnu.org>
981
982 * dcache.h: Include target.h, to avoid compile time warnings.
983
eb7a547a
JB
9842014-08-15 Joel Brobecker <brobecker@adacore.com>
985
986 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
987 frame_info" partial declaration.
988 * gdbarch.h: Regenerate.
989
783cecc8
YQ
9902014-08-15 Yao Qi <yao@codesourcery.com>
991
992 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
993 Add parameter 'decode_for_pst_p'. Callers update.
994
65c749e7
YQ
9952014-08-13 Yao Qi <yao@codesourcery.com>
996
997 PR build/17104
998 * configure.ac: Use local variable 'pos'.
999 * configure: Regenerated.
1000
d769e349
DE
10012014-08-11 Doug Evans <dje@google.com>
1002
1003 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1004 message, it is redundant with "Reading symbols from ..." message.
1005
24f1235e
DE
10062014-08-10 Doug Evans <xdje42@gmail.com>
1007
1008 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1009
dcd2e6ef
YQ
10102014-08-09 Yao Qi <yao@codesourcery.com>
1011
1012 PR remote/9053
1013 * remote.c (remote_xfer_partial): Remove dead code.
1014
070bdf0b
AA
10152014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1016
1017 * ia64-linux-tdep.c: Include "regset.h".
1018 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1019 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1020 (ia64_linux_supply_fpregset): New function.
1021 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1022 (ia64_linux_regset_from_core_section): New function.
1023 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1024 method.
1025
08f9f542
AA
10262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1027
1028 * m68klinux-tdep.c: Include "regset.h".
1029 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1030 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1031 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1032 (m68k_linux_regset_from_core_section): New function.
1033 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1034 method.
1035
8f1cee41
AA
10362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1037
1038 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1039 function. Move logic to...
1040 (tilegx_linux_regmap): ... this new register map.
1041 (tilegx_linux_regset): Refer to register map, replace supply
1042 method by regcache_supply_regset, and add collect method.
1043 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1044 TILEGX_FIRST_EASY_REGNUM.
1045
c5741217
AA
10462014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1047
1048 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1049 that calls regcache_supply_regset and handles the EPC register
1050 separately. Move main logic to...
1051 (score7_linux_gregmap): ... this new register map.
1052 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1053 (score7_linux_gregset): Refer to register map. Add collect method.
1054 (score7_linux_regset_from_core_section): Replace
1055 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1056 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1057 (struct regset): Delete unused forward declaraction.
1058 (struct pt_regs): Delete structure definition.
1059 (elf_gregset_t): Delete typedef.
1060
81580573
AA
10612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1062
1063 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1064 (nios2_core_regset): Add collect method.
1065
ba199d7d
AA
10662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1067
1068 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1069 platform-independent and don't write to read-only input buffer.
1070 (m32r_linux_collect_gregset): New function.
1071 (m32r_linux_gregset): Add collect method.
1072
0006a9da
AA
10732014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1074
1075 * hppa-linux-tdep.c (greg_map): Rename to...
1076 (hppa_linux_gregmap): ... this. Also convert to
1077 regcache_map_entry format.
1078 (hppa_linux_supply_regset): Delete function.
1079 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1080 (hppa_linux_fpregmap): ... this new register map.
1081 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1082 register map, replace supply method by regcache_supply_regset, and
1083 add collect method regcache_collect_regset.
1084
901e1b23
AA
10852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1086
1087 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1088 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1089 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1090 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1091 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1092 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1093 (frv_linux_supply_gregset): Replace main logic by call to
1094 regcache_supply_regset, but keep clearing gr32-gr63.
1095 (frv_linux_supply_fpregset): Delete function.
1096 (frv_linux_gregset): Refer to appropriate register map and add
1097 regcache_collect_regset as the collect method.
1098 (frv_linux_fpregset): Likewise. Also exchange the supply method
1099 by regcache_supply_regset.
1100
1d6e7555
AA
11012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1102
1103 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1104 by call to alpha_supply_int_regs.
1105 (alpha_linux_collect_gregset): New function.
1106 (alpha_linux_supply_fpregset): Replace logic by call to
1107 alpha_supply_fp_regs.
1108 (alpha_linux_collect_fpregset): New function.
1109 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1110
d4d793bf
AA
11112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1112
1113 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1114 by call to regcache_collect_regset.
1115 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1116 instead of aarch64_linux_supply_gregset/_fpregset.
1117 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1118 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1119 header file instead.
1120 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1121 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1122 functions. Move logic to ...
1123 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1124 register maps.
1125 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1126 refer to new register maps, replace *_regset_from_core by
1127 regcache_supply_regset, and also use regcache_collect_regset.
1128 * aarch64-linux-tdep.h: Include "regset.h".
1129 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1130 Delete prototypes.
1131 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1132 macros, moved from C source file.
1133 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1134 variable declarations.
1135
99b7da5d
AA
11362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1137
1138 * s390-linux-nat.c: Include "regset.h".
1139 (regmap_gregset): Delete macro.
1140 (s390_64_regmap_gregset): New register map for
1141 regcache_supply/_collect_regset.
1142 (s390_64_gregset): New regset.
1143 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1144 (regmap_fpregset): Delete macro.
1145 (s390_native_supply, s390_native_collect): Delete functions.
1146 (supply_gregset, fill_gregset): Replace s390-specific regmap
1147 handling by a call to regcache_supply/_collect_regset.
1148 (supply_fpregset, fill_fpregset): Call regcache_supply/
1149 _collect_regset instead of s390_native_supply/_collect.
1150 (fetch_regset, store_regset): Likewise. Also change the last
1151 parameter to a regset instead of a regmap.
1152 (s390_linux_fetch_inferior_registers)
1153 (390_linux_store_inferior_registers): Adjust last parameter in
1154 calls to fetch_regset and store_regset.
1155 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1156 (s390_gregmap): ... this. Also make static const and convert to
1157 regcache_map_entry format.
1158 (s390x_regmap_gregset): Delete.
1159 (s390_regmap_fpregset): Rename to...
1160 (s390_fpregmap): ... this. Make static const and convert to
1161 regcache_map_entry format.
1162 (s390_regmap_upper, s390_regmap_last_break)
1163 (s390x_regmap_last_break, s390_regmap_system_call)
1164 (s390_regmap_tdb): Likewise.
1165 (s390_supply_regset, s390_collect_regset): Remove functions.
1166 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1167 s390_supply_regset.
1168 (s390_gregset, s390_fpregset, s390_upper_regset)
1169 (s390_last_break_regset, s390x_last_break_regset)
1170 (s390_system_call_regset, s390_tdb_regset): Make global and
1171 replace s390_supply/_collect_regset by regcache_supply/
1172 _collect_regset.
1173 (s390x_gregset): Delete.
1174 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1175 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1176 (s390_regmap_fpregset, s390_regmap_last_break)
1177 (s390x_regmap_last_break, s390_regmap_system_call)
1178 (s390_regmap_tdb): Delete global variable declarations.
1179 (s390_gregset, s390_fpregset, s390_last_break_regset)
1180 (s390x_last_break_regset, s390_system_call_regset)
1181 (s390_tdb_regset): New global variable declarations.
1182
0b309272
AA
11832014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1184
1185 * regcache.c: Include "regset.h".
1186 (regcache_transfer_regset): New local function.
1187 (regcache_supply_regset, regcache_collect_regset): New functions.
1188 * regcache.h (struct regcache_map_entry): New structure.
1189 (REGCACHE_MAP_SKIP): New enum value.
1190 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1191
7fefa8d7
AA
11922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1193
1194 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1195 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1196 (ppc_linux_collect_gregset ): Likewise.
1197 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1198 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1199 (ppc_collect_vrregset): Likewise.
1200 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1201 Likewise.
1202
96c4f946
YQ
12032014-08-07 Yao Qi <yao@codesourcery.com>
1204
1205 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1206 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1207 * remote.c (remote_read_bytes): Likewise.
1208
fffbe6a8
YQ
12092014-08-07 Yao Qi <yao@codesourcery.com>
1210
1211 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1212
5ee8a82c
YQ
12132014-08-07 Yao Qi <yao@codesourcery.com>
1214
1215 PR remote/17230
1216 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1217 TARGET_XFER_OK instead of 0.
1218
bb974a24
GB
12192014-08-07 Gary Benson <gbenson@redhat.com>
1220
1221 * common/common-defs.h: Include errno.h.
1222 * defs.h: Do not include errno.h.
1223 * ada-typeprint.c: Likewise.
1224 * c-typeprint.c: Likewise.
1225 * core-regset.c: Likewise.
1226 * corefile.c: Likewise.
1227 * corelow.c: Likewise.
1228 * event-loop.c: Likewise.
1229 * f-typeprint.c: Likewise.
1230 * gnu-nat.c: Likewise.
1231 * go32-nat.c: Likewise.
1232 * i386gnu-nat.c: Likewise.
1233 * m2-typeprint.c: Likewise.
1234 * nat/linux-btrace.c: Likewise.
1235 * p-typeprint.c: Likewise.
1236 * procfs.c: Likewise.
1237 * remote-sim.c: Likewise.
1238 * rs6000-nat.c: Likewise.
1239 * target.c: Likewise.
1240 * typeprint.c: Likewise.
1241 * ui-file.c: Likewise.
1242 * valops.c: Likewise.
1243 * valprint.c: Likewise.
1244
6d3d12eb
GB
12452014-08-07 Gary Benson <gbenson@redhat.com>
1246
1247 * common/common-defs.h: Include string.h.
1248 * aarch64-tdep.c: Do not include string.h.
1249 * ada-exp.y: Likewise.
1250 * ada-lang.c: Likewise.
1251 * ada-lex.l: Likewise.
1252 * ada-typeprint.c: Likewise.
1253 * ada-valprint.c: Likewise.
1254 * aix-thread.c: Likewise.
1255 * alpha-linux-tdep.c: Likewise.
1256 * alpha-mdebug-tdep.c: Likewise.
1257 * alpha-nat.c: Likewise.
1258 * alpha-osf1-tdep.c: Likewise.
1259 * alpha-tdep.c: Likewise.
1260 * alphanbsd-tdep.c: Likewise.
1261 * amd64-dicos-tdep.c: Likewise.
1262 * amd64-linux-tdep.c: Likewise.
1263 * amd64-nat.c: Likewise.
1264 * amd64-sol2-tdep.c: Likewise.
1265 * amd64fbsd-tdep.c: Likewise.
1266 * amd64obsd-tdep.c: Likewise.
1267 * arch-utils.c: Likewise.
1268 * arm-linux-nat.c: Likewise.
1269 * arm-linux-tdep.c: Likewise.
1270 * arm-tdep.c: Likewise.
1271 * arm-wince-tdep.c: Likewise.
1272 * armbsd-tdep.c: Likewise.
1273 * armnbsd-nat.c: Likewise.
1274 * armnbsd-tdep.c: Likewise.
1275 * armobsd-tdep.c: Likewise.
1276 * avr-tdep.c: Likewise.
1277 * ax-gdb.c: Likewise.
1278 * ax-general.c: Likewise.
1279 * bcache.c: Likewise.
1280 * bfin-tdep.c: Likewise.
1281 * breakpoint.c: Likewise.
1282 * build-id.c: Likewise.
1283 * buildsym.c: Likewise.
1284 * c-exp.y: Likewise.
1285 * c-lang.c: Likewise.
1286 * c-typeprint.c: Likewise.
1287 * c-valprint.c: Likewise.
1288 * charset.c: Likewise.
1289 * cli-out.c: Likewise.
1290 * cli/cli-cmds.c: Likewise.
1291 * cli/cli-decode.c: Likewise.
1292 * cli/cli-dump.c: Likewise.
1293 * cli/cli-interp.c: Likewise.
1294 * cli/cli-logging.c: Likewise.
1295 * cli/cli-script.c: Likewise.
1296 * cli/cli-setshow.c: Likewise.
1297 * cli/cli-utils.c: Likewise.
1298 * coffread.c: Likewise.
1299 * common/agent.c: Likewise.
1300 * common/buffer.c: Likewise.
1301 * common/buffer.h: Likewise.
1302 * common/common-utils.c: Likewise.
1303 * common/filestuff.c: Likewise.
1304 * common/filestuff.c: Likewise.
1305 * common/format.c: Likewise.
1306 * common/print-utils.c: Likewise.
1307 * common/rsp-low.c: Likewise.
1308 * common/signals.c: Likewise.
1309 * common/vec.h: Likewise.
1310 * common/xml-utils.c: Likewise.
1311 * core-regset.c: Likewise.
1312 * corefile.c: Likewise.
1313 * corelow.c: Likewise.
1314 * cp-abi.c: Likewise.
1315 * cp-name-parser.y: Likewise.
1316 * cp-support.c: Likewise.
1317 * cp-valprint.c: Likewise.
1318 * cris-tdep.c: Likewise.
1319 * d-exp.y: Likewise.
1320 * darwin-nat.c: Likewise.
1321 * dbxread.c: Likewise.
1322 * dcache.c: Likewise.
1323 * demangle.c: Likewise.
1324 * dicos-tdep.c: Likewise.
1325 * disasm.c: Likewise.
1326 * doublest.c: Likewise.
1327 * dsrec.c: Likewise.
1328 * dummy-frame.c: Likewise.
1329 * dwarf2-frame.c: Likewise.
1330 * dwarf2loc.c: Likewise.
1331 * dwarf2read.c: Likewise.
1332 * elfread.c: Likewise.
1333 * environ.c: Likewise.
1334 * eval.c: Likewise.
1335 * event-loop.c: Likewise.
1336 * exceptions.c: Likewise.
1337 * exec.c: Likewise.
1338 * expprint.c: Likewise.
1339 * f-exp.y: Likewise.
1340 * f-lang.c: Likewise.
1341 * f-typeprint.c: Likewise.
1342 * f-valprint.c: Likewise.
1343 * fbsd-nat.c: Likewise.
1344 * findcmd.c: Likewise.
1345 * findvar.c: Likewise.
1346 * fork-child.c: Likewise.
1347 * frame.c: Likewise.
1348 * frv-linux-tdep.c: Likewise.
1349 * frv-tdep.c: Likewise.
1350 * gdb.c: Likewise.
1351 * gdb_bfd.c: Likewise.
1352 * gdbarch.c: Likewise.
1353 * gdbarch.sh: Likewise.
1354 * gdbtypes.c: Likewise.
1355 * gnu-nat.c: Likewise.
1356 * gnu-v2-abi.c: Likewise.
1357 * gnu-v3-abi.c: Likewise.
1358 * go-exp.y: Likewise.
1359 * go-lang.c: Likewise.
1360 * go32-nat.c: Likewise.
1361 * guile/guile.c: Likewise.
1362 * guile/scm-auto-load.c: Likewise.
1363 * hppa-hpux-tdep.c: Likewise.
1364 * hppa-linux-nat.c: Likewise.
1365 * hppanbsd-tdep.c: Likewise.
1366 * hppaobsd-tdep.c: Likewise.
1367 * i386-cygwin-tdep.c: Likewise.
1368 * i386-dicos-tdep.c: Likewise.
1369 * i386-linux-tdep.c: Likewise.
1370 * i386-nto-tdep.c: Likewise.
1371 * i386-sol2-tdep.c: Likewise.
1372 * i386-tdep.c: Likewise.
1373 * i386bsd-tdep.c: Likewise.
1374 * i386gnu-nat.c: Likewise.
1375 * i386nbsd-tdep.c: Likewise.
1376 * i386obsd-tdep.c: Likewise.
1377 * i387-tdep.c: Likewise.
1378 * ia64-libunwind-tdep.c: Likewise.
1379 * ia64-linux-nat.c: Likewise.
1380 * inf-child.c: Likewise.
1381 * inf-ptrace.c: Likewise.
1382 * inf-ttrace.c: Likewise.
1383 * infcall.c: Likewise.
1384 * infcmd.c: Likewise.
1385 * inflow.c: Likewise.
1386 * infrun.c: Likewise.
1387 * interps.c: Likewise.
1388 * iq2000-tdep.c: Likewise.
1389 * irix5-nat.c: Likewise.
1390 * jv-exp.y: Likewise.
1391 * jv-lang.c: Likewise.
1392 * jv-typeprint.c: Likewise.
1393 * jv-valprint.c: Likewise.
1394 * language.c: Likewise.
1395 * linux-fork.c: Likewise.
1396 * linux-nat.c: Likewise.
1397 * lm32-tdep.c: Likewise.
1398 * m2-exp.y: Likewise.
1399 * m2-typeprint.c: Likewise.
1400 * m32c-tdep.c: Likewise.
1401 * m32r-linux-nat.c: Likewise.
1402 * m32r-linux-tdep.c: Likewise.
1403 * m32r-rom.c: Likewise.
1404 * m32r-tdep.c: Likewise.
1405 * m68hc11-tdep.c: Likewise.
1406 * m68k-tdep.c: Likewise.
1407 * m68kbsd-tdep.c: Likewise.
1408 * m68klinux-nat.c: Likewise.
1409 * m68klinux-tdep.c: Likewise.
1410 * m88k-tdep.c: Likewise.
1411 * machoread.c: Likewise.
1412 * macrocmd.c: Likewise.
1413 * main.c: Likewise.
1414 * mdebugread.c: Likewise.
1415 * mem-break.c: Likewise.
1416 * memattr.c: Likewise.
1417 * memory-map.c: Likewise.
1418 * mep-tdep.c: Likewise.
1419 * mi/mi-cmd-break.c: Likewise.
1420 * mi/mi-cmd-disas.c: Likewise.
1421 * mi/mi-cmd-env.c: Likewise.
1422 * mi/mi-cmd-stack.c: Likewise.
1423 * mi/mi-cmd-var.c: Likewise.
1424 * mi/mi-cmds.c: Likewise.
1425 * mi/mi-console.c: Likewise.
1426 * mi/mi-getopt.c: Likewise.
1427 * mi/mi-interp.c: Likewise.
1428 * mi/mi-main.c: Likewise.
1429 * mi/mi-parse.c: Likewise.
1430 * microblaze-rom.c: Likewise.
1431 * microblaze-tdep.c: Likewise.
1432 * mingw-hdep.c: Likewise.
1433 * minidebug.c: Likewise.
1434 * minsyms.c: Likewise.
1435 * mips-irix-tdep.c: Likewise.
1436 * mips-linux-tdep.c: Likewise.
1437 * mips-tdep.c: Likewise.
1438 * mips64obsd-tdep.c: Likewise.
1439 * mipsnbsd-tdep.c: Likewise.
1440 * mipsread.c: Likewise.
1441 * mn10300-linux-tdep.c: Likewise.
1442 * mn10300-tdep.c: Likewise.
1443 * monitor.c: Likewise.
1444 * moxie-tdep.c: Likewise.
1445 * mt-tdep.c: Likewise.
1446 * nat/linux-btrace.c: Likewise.
1447 * nat/linux-osdata.c: Likewise.
1448 * nat/linux-procfs.c: Likewise.
1449 * nat/linux-ptrace.c: Likewise.
1450 * nat/linux-waitpid.c: Likewise.
1451 * nbsd-tdep.c: Likewise.
1452 * nios2-linux-tdep.c: Likewise.
1453 * nto-procfs.c: Likewise.
1454 * nto-tdep.c: Likewise.
1455 * objc-lang.c: Likewise.
1456 * objfiles.c: Likewise.
1457 * opencl-lang.c: Likewise.
1458 * osabi.c: Likewise.
1459 * osdata.c: Likewise.
1460 * p-exp.y: Likewise.
1461 * p-lang.c: Likewise.
1462 * p-typeprint.c: Likewise.
1463 * parse.c: Likewise.
1464 * posix-hdep.c: Likewise.
1465 * ppc-linux-nat.c: Likewise.
1466 * ppc-sysv-tdep.c: Likewise.
1467 * ppcfbsd-tdep.c: Likewise.
1468 * ppcnbsd-tdep.c: Likewise.
1469 * ppcobsd-tdep.c: Likewise.
1470 * printcmd.c: Likewise.
1471 * procfs.c: Likewise.
1472 * prologue-value.c: Likewise.
1473 * python/py-auto-load.c: Likewise.
1474 * python/py-gdb-readline.c: Likewise.
1475 * ravenscar-thread.c: Likewise.
1476 * regcache.c: Likewise.
1477 * registry.c: Likewise.
1478 * remote-fileio.c: Likewise.
1479 * remote-m32r-sdi.c: Likewise.
1480 * remote-mips.c: Likewise.
1481 * remote-notif.c: Likewise.
1482 * remote-sim.c: Likewise.
1483 * remote.c: Likewise.
1484 * reverse.c: Likewise.
1485 * rs6000-aix-tdep.c: Likewise.
1486 * ser-base.c: Likewise.
1487 * ser-go32.c: Likewise.
1488 * ser-mingw.c: Likewise.
1489 * ser-pipe.c: Likewise.
1490 * ser-tcp.c: Likewise.
1491 * ser-unix.c: Likewise.
1492 * serial.c: Likewise.
1493 * sh-tdep.c: Likewise.
1494 * sh64-tdep.c: Likewise.
1495 * shnbsd-tdep.c: Likewise.
1496 * skip.c: Likewise.
1497 * sol-thread.c: Likewise.
1498 * solib-dsbt.c: Likewise.
1499 * solib-frv.c: Likewise.
1500 * solib-osf.c: Likewise.
1501 * solib-som.c: Likewise.
1502 * solib-spu.c: Likewise.
1503 * solib-target.c: Likewise.
1504 * solib.c: Likewise.
1505 * somread.c: Likewise.
1506 * source.c: Likewise.
1507 * sparc-nat.c: Likewise.
1508 * sparc-sol2-tdep.c: Likewise.
1509 * sparc-tdep.c: Likewise.
1510 * sparc64-tdep.c: Likewise.
1511 * sparc64fbsd-tdep.c: Likewise.
1512 * sparc64nbsd-tdep.c: Likewise.
1513 * sparcnbsd-tdep.c: Likewise.
1514 * spu-linux-nat.c: Likewise.
1515 * spu-multiarch.c: Likewise.
1516 * spu-tdep.c: Likewise.
1517 * stabsread.c: Likewise.
1518 * stack.c: Likewise.
1519 * std-regs.c: Likewise.
1520 * symfile.c: Likewise.
1521 * symmisc.c: Likewise.
1522 * symtab.c: Likewise.
1523 * target.c: Likewise.
1524 * thread.c: Likewise.
1525 * tilegx-linux-nat.c: Likewise.
1526 * tilegx-tdep.c: Likewise.
1527 * top.c: Likewise.
1528 * tracepoint.c: Likewise.
1529 * tui/tui-command.c: Likewise.
1530 * tui/tui-data.c: Likewise.
1531 * tui/tui-disasm.c: Likewise.
1532 * tui/tui-file.c: Likewise.
1533 * tui/tui-layout.c: Likewise.
1534 * tui/tui-out.c: Likewise.
1535 * tui/tui-regs.c: Likewise.
1536 * tui/tui-source.c: Likewise.
1537 * tui/tui-stack.c: Likewise.
1538 * tui/tui-win.c: Likewise.
1539 * tui/tui-windata.c: Likewise.
1540 * tui/tui-winsource.c: Likewise.
1541 * typeprint.c: Likewise.
1542 * ui-file.c: Likewise.
1543 * ui-out.c: Likewise.
1544 * user-regs.c: Likewise.
1545 * utils.c: Likewise.
1546 * v850-tdep.c: Likewise.
1547 * valarith.c: Likewise.
1548 * valops.c: Likewise.
1549 * valprint.c: Likewise.
1550 * value.c: Likewise.
1551 * varobj.c: Likewise.
1552 * vax-tdep.c: Likewise.
1553 * vaxnbsd-tdep.c: Likewise.
1554 * vaxobsd-tdep.c: Likewise.
1555 * windows-nat.c: Likewise.
1556 * xcoffread.c: Likewise.
1557 * xml-support.c: Likewise.
1558 * xstormy16-tdep.c: Likewise.
1559 * xtensa-linux-nat.c: Likewise.
1560
dccbb609
GB
15612014-08-07 Gary Benson <gbenson@redhat.com>
1562
1563 * common/common-defs.h: Include gdb_assert.h.
1564 * aarch64-tdep.c: Do not include gdb_assert.h.
1565 * addrmap.c: Likewise.
1566 * aix-thread.c: Likewise.
1567 * alpha-linux-tdep.c: Likewise.
1568 * alpha-mdebug-tdep.c: Likewise.
1569 * alphanbsd-tdep.c: Likewise.
1570 * amd64-nat.c: Likewise.
1571 * amd64-tdep.c: Likewise.
1572 * amd64bsd-nat.c: Likewise.
1573 * amd64fbsd-nat.c: Likewise.
1574 * amd64fbsd-tdep.c: Likewise.
1575 * amd64nbsd-nat.c: Likewise.
1576 * amd64nbsd-tdep.c: Likewise.
1577 * amd64obsd-nat.c: Likewise.
1578 * amd64obsd-tdep.c: Likewise.
1579 * arch-utils.c: Likewise.
1580 * arm-tdep.c: Likewise.
1581 * armbsd-tdep.c: Likewise.
1582 * auxv.c: Likewise.
1583 * bcache.c: Likewise.
1584 * bfin-tdep.c: Likewise.
1585 * blockframe.c: Likewise.
1586 * breakpoint.c: Likewise.
1587 * bsd-kvm.c: Likewise.
1588 * bsd-uthread.c: Likewise.
1589 * buildsym.c: Likewise.
1590 * c-exp.y: Likewise.
1591 * c-lang.c: Likewise.
1592 * charset.c: Likewise.
1593 * cleanups.c: Likewise.
1594 * cli-out.c: Likewise.
1595 * cli/cli-decode.c: Likewise.
1596 * cli/cli-dump.c: Likewise.
1597 * cli/cli-logging.c: Likewise.
1598 * cli/cli-script.c: Likewise.
1599 * cli/cli-utils.c: Likewise.
1600 * coffread.c: Likewise.
1601 * common/common-utils.c: Likewise.
1602 * common/queue.h: Likewise.
1603 * common/signals.c: Likewise.
1604 * common/vec.h: Likewise.
1605 * complaints.c: Likewise.
1606 * completer.c: Likewise.
1607 * corelow.c: Likewise.
1608 * cp-abi.c: Likewise.
1609 * cp-name-parser.y: Likewise.
1610 * cp-namespace.c: Likewise.
1611 * cp-support.c: Likewise.
1612 * cris-tdep.c: Likewise.
1613 * dbxread.c: Likewise.
1614 * dictionary.c: Likewise.
1615 * doublest.c: Likewise.
1616 * dsrec.c: Likewise.
1617 * dummy-frame.c: Likewise.
1618 * dwarf2-frame-tailcall.c: Likewise.
1619 * dwarf2-frame.c: Likewise.
1620 * dwarf2expr.c: Likewise.
1621 * dwarf2loc.c: Likewise.
1622 * dwarf2read.c: Likewise.
1623 * eval.c: Likewise.
1624 * event-loop.c: Likewise.
1625 * exceptions.c: Likewise.
1626 * expprint.c: Likewise.
1627 * f-valprint.c: Likewise.
1628 * fbsd-nat.c: Likewise.
1629 * findvar.c: Likewise.
1630 * frame-unwind.c: Likewise.
1631 * frame.c: Likewise.
1632 * frv-tdep.c: Likewise.
1633 * gcore.c: Likewise.
1634 * gdb-dlfcn.c: Likewise.
1635 * gdb_bfd.c: Likewise.
1636 * gdbarch.c: Likewise.
1637 * gdbarch.sh: Likewise.
1638 * gdbtypes.c: Likewise.
1639 * gnu-nat.c: Likewise.
1640 * gnu-v3-abi.c: Likewise.
1641 * go-lang.c: Likewise.
1642 * guile/scm-exception.c: Likewise.
1643 * guile/scm-gsmob.c: Likewise.
1644 * guile/scm-lazy-string.c: Likewise.
1645 * guile/scm-math.c: Likewise.
1646 * guile/scm-pretty-print.c: Likewise.
1647 * guile/scm-safe-call.c: Likewise.
1648 * guile/scm-utils.c: Likewise.
1649 * guile/scm-value.c: Likewise.
1650 * h8300-tdep.c: Likewise.
1651 * hppa-hpux-nat.c: Likewise.
1652 * hppa-tdep.c: Likewise.
1653 * hppanbsd-tdep.c: Likewise.
1654 * hppaobsd-tdep.c: Likewise.
1655 * i386-darwin-nat.c: Likewise.
1656 * i386-darwin-tdep.c: Likewise.
1657 * i386-nto-tdep.c: Likewise.
1658 * i386-tdep.c: Likewise.
1659 * i386bsd-nat.c: Likewise.
1660 * i386fbsd-tdep.c: Likewise.
1661 * i386gnu-nat.c: Likewise.
1662 * i386nbsd-tdep.c: Likewise.
1663 * i386obsd-tdep.c: Likewise.
1664 * i387-tdep.c: Likewise.
1665 * ia64-libunwind-tdep.c: Likewise.
1666 * ia64-tdep.c: Likewise.
1667 * inf-ptrace.c: Likewise.
1668 * inf-ttrace.c: Likewise.
1669 * infcall.c: Likewise.
1670 * infcmd.c: Likewise.
1671 * infrun.c: Likewise.
1672 * inline-frame.c: Likewise.
1673 * interps.c: Likewise.
1674 * jv-lang.c: Likewise.
1675 * jv-typeprint.c: Likewise.
1676 * linux-fork.c: Likewise.
1677 * linux-nat.c: Likewise.
1678 * linux-thread-db.c: Likewise.
1679 * m32c-tdep.c: Likewise.
1680 * m32r-linux-nat.c: Likewise.
1681 * m32r-tdep.c: Likewise.
1682 * m68k-tdep.c: Likewise.
1683 * m68kbsd-nat.c: Likewise.
1684 * m68kbsd-tdep.c: Likewise.
1685 * m88k-tdep.c: Likewise.
1686 * machoread.c: Likewise.
1687 * macroexp.c: Likewise.
1688 * macrotab.c: Likewise.
1689 * maint.c: Likewise.
1690 * mdebugread.c: Likewise.
1691 * memory-map.c: Likewise.
1692 * mep-tdep.c: Likewise.
1693 * mi/mi-common.c: Likewise.
1694 * microblaze-tdep.c: Likewise.
1695 * mingw-hdep.c: Likewise.
1696 * mips-linux-nat.c: Likewise.
1697 * mips-linux-tdep.c: Likewise.
1698 * mips-tdep.c: Likewise.
1699 * mips64obsd-tdep.c: Likewise.
1700 * mipsnbsd-tdep.c: Likewise.
1701 * mn10300-linux-tdep.c: Likewise.
1702 * mn10300-tdep.c: Likewise.
1703 * moxie-tdep.c: Likewise.
1704 * mt-tdep.c: Likewise.
1705 * nat/linux-btrace.c: Likewise.
1706 * nat/linux-osdata.c: Likewise.
1707 * nat/linux-ptrace.c: Likewise.
1708 * nat/mips-linux-watch.c: Likewise.
1709 * nios2-linux-tdep.c: Likewise.
1710 * nios2-tdep.c: Likewise.
1711 * objc-lang.c: Likewise.
1712 * objfiles.c: Likewise.
1713 * obsd-nat.c: Likewise.
1714 * opencl-lang.c: Likewise.
1715 * osabi.c: Likewise.
1716 * parse.c: Likewise.
1717 * ppc-linux-nat.c: Likewise.
1718 * ppc-sysv-tdep.c: Likewise.
1719 * ppcfbsd-nat.c: Likewise.
1720 * ppcfbsd-tdep.c: Likewise.
1721 * ppcnbsd-nat.c: Likewise.
1722 * ppcnbsd-tdep.c: Likewise.
1723 * ppcobsd-nat.c: Likewise.
1724 * ppcobsd-tdep.c: Likewise.
1725 * printcmd.c: Likewise.
1726 * procfs.c: Likewise.
1727 * prologue-value.c: Likewise.
1728 * psymtab.c: Likewise.
1729 * python/py-lazy-string.c: Likewise.
1730 * python/py-value.c: Likewise.
1731 * regcache.c: Likewise.
1732 * reggroups.c: Likewise.
1733 * registry.c: Likewise.
1734 * remote-sim.c: Likewise.
1735 * remote.c: Likewise.
1736 * rs6000-aix-tdep.c: Likewise.
1737 * rs6000-tdep.c: Likewise.
1738 * s390-linux-tdep.c: Likewise.
1739 * score-tdep.c: Likewise.
1740 * ser-base.c: Likewise.
1741 * ser-mingw.c: Likewise.
1742 * sh-tdep.c: Likewise.
1743 * sh64-tdep.c: Likewise.
1744 * solib-darwin.c: Likewise.
1745 * solib-spu.c: Likewise.
1746 * solib-svr4.c: Likewise.
1747 * source.c: Likewise.
1748 * sparc-nat.c: Likewise.
1749 * sparc-sol2-tdep.c: Likewise.
1750 * sparc-tdep.c: Likewise.
1751 * sparc64-sol2-tdep.c: Likewise.
1752 * sparc64-tdep.c: Likewise.
1753 * sparc64fbsd-tdep.c: Likewise.
1754 * sparc64nbsd-tdep.c: Likewise.
1755 * sparc64obsd-tdep.c: Likewise.
1756 * sparcnbsd-tdep.c: Likewise.
1757 * sparcobsd-tdep.c: Likewise.
1758 * spu-multiarch.c: Likewise.
1759 * spu-tdep.c: Likewise.
1760 * stabsread.c: Likewise.
1761 * stack.c: Likewise.
1762 * symfile.c: Likewise.
1763 * symtab.c: Likewise.
1764 * target-descriptions.c: Likewise.
1765 * target-memory.c: Likewise.
1766 * target.c: Likewise.
1767 * tic6x-linux-tdep.c: Likewise.
1768 * tic6x-tdep.c: Likewise.
1769 * tilegx-linux-nat.c: Likewise.
1770 * tilegx-tdep.c: Likewise.
1771 * top.c: Likewise.
1772 * tramp-frame.c: Likewise.
1773 * tui/tui-out.c: Likewise.
1774 * tui/tui-winsource.c: Likewise.
1775 * ui-out.c: Likewise.
1776 * user-regs.c: Likewise.
1777 * utils.c: Likewise.
1778 * v850-tdep.c: Likewise.
1779 * valops.c: Likewise.
1780 * value.c: Likewise.
1781 * varobj.c: Likewise.
1782 * vax-nat.c: Likewise.
1783 * xml-syscall.c: Likewise.
1784 * xml-tdesc.c: Likewise.
1785 * xstormy16-tdep.c: Likewise.
1786 * xtensa-linux-nat.c: Likewise.
1787 * xtensa-tdep.c: Likewise.
1788
e76df0d0
GB
17892014-08-07 Gary Benson <gbenson@redhat.com>
1790
1791 * common/common-defs.h: Include common-utils.h.
1792 * defs.h: Do not include common-utils.h.
1793 * common/gdb_assert.h: Likewise.
1794 * darwin-nat.h: Likewise.
1795 * nat/linux-btrace.c: Likewise.
1796 * target/waitstatus.h: Likewise.
1797
4cb9c816
GB
17982014-08-07 Gary Benson <gbenson@redhat.com>
1799
1800 * common/common-defs.h: Include ptid.h.
1801 * defs.h: Do not include ptid.h.
1802 * inferior.h: Likewise.
1803 * infrun.h: Likewise.
1804 * nat/linux-btrace.h: Likewise.
1805 * nat/linux-osdata.h: Likewise.
1806 * target/waitstatus.h: Likewise.
1807
3995eeee
GB
18082014-08-07 Gary Benson <gbenson@redhat.com>
1809
1810 * common/common-defs.h: Include gdb_locale.h.
1811 * defs.h: Do not include gdb_locale.h.
1812
cb9f1a9b
GB
18132014-08-07 Gary Benson <gbenson@redhat.com>
1814
1815 * common/common-defs.h: Include gdb/signals.h.
1816 * defs.h: Do not include gdb/signals.h.
1817
a5fceff8
GB
18182014-08-07 Gary Benson <gbenson@redhat.com>
1819
1820 * common/common-defs.h: Include pathmax.h.
1821 * defs.h: Do not include pathmax.h.
1822
b9391142
GB
18232014-08-07 Gary Benson <gbenson@redhat.com>
1824
1825 * common/common-defs.h: Include libiberty.h.
1826 * defs.h: Do not include libiberty.h.
1827 * common/queue.h: Likewise.
1828 * cp-name-parser.y: Likewise.
1829 * mi/mi-cmd-catch.c: Likewise.
1830 * python/python.c: Likewise.
1831
0e443c87
GB
18322014-08-07 Gary Benson <gbenson@redhat.com>
1833
1834 * common/common-defs.h: Include ansidecl.h.
1835 * defs.h: Do not include ansidecl.h.
1836 * common/buffer.h: Likewise.
1837 * common/common-utils.h: Likewise.
1838
8ebb3f56
GB
18392014-08-07 Gary Benson <gbenson@redhat.com>
1840
1841 * common/common-defs.h: Include stddef.h.
1842 * defs.h: Do not include stddef.h.
1843 * common/common-utils.h: Likewise.
1844 * amd64fbsd-nat.c: Likewise.
1845 * bcache.c: Likewise.
1846 * charset.c: Likewise.
1847 * common/buffer.h: Likewise.
1848 * common/vec.h: Likewise.
1849 * i386bsd-nat.c: Likewise.
1850 * nat/linux-btrace.h: Likewise.
1851 * ppcfbsd-nat.c: Likewise.
1852 * ppcnbsd-tdep.h: Likewise.
1853 * ppcobsd-nat.c: Likewise.
1854 * ppcobsd-tdep.h: Likewise.
1855 * python/py-gdb-readline.c: Likewise.
1856
8980bdf6
GB
18572014-08-07 Gary Benson <gbenson@redhat.com>
1858
1859 * common/common-defs.h: Include stdarg.h.
1860 * defs.h: Do not include stdarg.h.
1861 * ada-lang.c: Likewise.
1862 * common/common-utils.h: Likewise.
1863 * guile/scm-string.c: Likewise.
1864 * guile/scm-utils.c: Likewise.
1865 * m32c-tdep.c: Likewise.
1866
d7096f71
GB
18672014-08-07 Gary Benson <gbenson@redhat.com>
1868
1869 * common/common-defs.h: Include stdlib.h.
1870 * defs.h: Do not include stdlib.h.
1871 * addrmap.c: Likewise.
1872 * bcache.c: Likewise.
1873 * common/buffer.c: Likewise.
1874 * common/common-utils.c: Likewise.
1875 * cp-name-parser.y: Likewise.
1876 * go32-nat.c: Likewise.
1877 * mn10300-linux-tdep.c: Likewise.
1878 * nat/linux-osdata.c: Likewise.
1879 * tui/tui.c: Likewise.
1880 * windows-nat.c: Likewise.
1881
d02f550d
GB
18822014-08-07 Gary Benson <gbenson@redhat.com>
1883
1884 * common/common-defs.h: Include stdio.h.
1885 * defs.h: Do not include stdio.h.
1886 * ada-lang.c: Likewise.
1887 * common/buffer.c: Likewise.
1888 * common/common-utils.c: Likewise.
1889 * cp-name-parser.y: Likewise.
1890 * gnu-nat.c: Likewise.
1891 * go32-nat.c: Likewise.
1892 * i386gnu-nat.c: Likewise.
1893 * proc-api.c: Likewise.
1894 * proc-events.c: Likewise.
1895 * proc-flags.c: Likewise.
1896 * proc-why.c: Likewise.
1897 * python/python-internal.h: Likewise.
1898 * target-memory.c: Likewise.
1899 * tui/tui-io.c: Likewise.
1900 * tui/tui.c: Likewise.
1901
b6d7a4bf
SM
19022014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1903
1904 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1905 (scan_dyntag_auxv): Same.
1906
af19829b
YQ
19072014-08-06 Yao Qi <yao@codesourcery.com>
1908
1909 * amd64-linux-nat.c: Remove duplicated include
1910 "x86-linux-nat.h".
1911 * i386-linux-nat.c: Likewise.
1912
8e07a239
YQ
19132014-08-06 Yao Qi <yao@codesourcery.com>
1914
1915 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1916 operand" with "Special opcode" in comments.
1917
7bfe8241
GB
19182014-08-05 Gary Benson <gbenson@redhat.com>
1919
1920 * interps.c (initialize_interps): Remove prototype.
1921 (interpreter_initialized): Remove static global.
1922 (interp_add): Do not call initialize_interps.
1923 (initialize_interps): Remove function.
1924
d6c95504
GB
19252014-08-05 Gary Benson <gbenson@redhat.com>
1926
1927 * utils.c (vwarning): Remove spurious va_end.
1928
241fd515
AM
19292014-08-05 Alan Modra <amodra@gmail.com>
1930
1931 * charset.c (convert_between_encodings): Cast result of obstack_base.
1932 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1933 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1934 (read_unwind_info): Use size_t for some locals.
1935 * jit.c (finalize_symtab): Likewise.
1936 * utils.c (hashtab_obstack_allocate): Likewise.
1937 * symmisc.c (print_objfile_statistics): Update format strings.
1938
dc304a94
JK
19392014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1940
1941 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1942 (Changes in GDB 7.8): ... here.
1943
3cecbbbe
TT
19442014-08-04 Tom Tromey <tromey@redhat.com>
1945
1946 * target.c (set_targetdebug): New function.
1947 (initialize_targets): Pass set_targetdebug when creating "set
1948 debug target".
1949
6908c509
JB
19502014-08-01 Joel Brobecker <brobecker@adacore.com>
1951
1952 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1953 if detecting a variable-sized field that is not the last field.
1954 Fix struct type length computation.
1955
53e8f97d
JB
19562014-08-01 Joel Brobecker <brobecker@adacore.com>
1957
1958 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1959 Add debug trace.
1960
e068c55d
JB
19612014-08-01 Joel Brobecker <brobecker@adacore.com>
1962
1963 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1964 Remove "+ 8" offset in computation of CHAIN_VMA.
1965
4d4ca2a1
DE
19662014-07-31 Doug Evans <dje@google.com>
1967
1968 * inflow.c (child_terminal_inferior): Add comment.
1969 (child_terminal_ours_for_output): Add comment.
1970 (child_terminal_ours): Add comment.
1971 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1972 (linux_nat_terminal_ours): Add comment.
1973
462f517e
GB
19742014-07-31 Gary Benson <gbenson@redhat.com>
1975
1976 * common/btrace-common.h: Do not include defs.h or server.h.
1977 * nat/mips-linux-watch.h: Likewise.
1978 * gdb-dlfcn.h: Do not include defs.h.
1979 * tracefile.h: Likewise.
1980
74228e77
RM
19812014-07-30 Roland McGrath <mcgrathr@google.com>
1982
1983 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1984
014f9477
TT
19852014-07-30 Tom Tromey <tromey@redhat.com>
1986
1987 * bsd-kvm.c (bsd_kvm_open): Constify.
1988 * corelow.c (core_open): Constify.
1989 * ctf.c (ctf_open): Constify.
1990 * dbug-rom.c (dbug_open): Constify.
1991 * exec.c (exec_open): Constify.
1992 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1993 * microblaze-rom.c (picobug_open): Constify.
1994 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1995 Constify.
1996 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1997 * record-btrace.c (record_btrace_open): Constify.
1998 * record-full.c (record_full_core_open_1, record_full_open_1)
1999 (record_full_open): Constify.
2000 * remote-m32r-sdi.c (m32r_open): Constify.
2001 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2002 (rockhopper_open, lsi_open): Constify.
2003 * remote-sim.c (gdbsim_open): Constify.
2004 * remote.c (remote_open, extended_remote_open, remote_open_1):
2005 Constify.
2006 * target.h (struct target_ops) <to_open>: Make "arg" const.
2007 * tracefile-tfile.c (tfile_open): Constify.
2008
e799154c
TT
20092014-07-30 Tom Tromey <tromey@redhat.com>
2010
2011 * breakpoint.c (map_breakpoint_numbers): Update.
2012 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2013 (get_number_const): New function.
2014 (get_number): Rewrite using get_number_const.
2015 (init_number_or_range): Make "string" const.
2016 (number_is_in_list): Make "list" const.
2017 * cli/cli-utils.h (get_number_const): Declare.
2018 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2019 (init_number_or_range, number_is_in_list): Update.
2020 * printcmd.c (map_display_numbers): Update.
2021 * value.c (value_from_history_ref): Constify.
2022 * value.h (value_from_history_ref): Update.
2023
5f08566b
TT
20242014-07-30 Tom Tromey <tromey@redhat.com>
2025
2026 * corefile.c (hook_type, call_extra_exec_file_hooks)
2027 (specify_exec_file_hook): Constify.
2028 * exec.c (exec_file_attach): Make "filename" const.
2029 * gdbcore.h (deprecated_exec_file_display_hook)
2030 (specify_exec_file_hook, exec_file_attach): Constify.
2031 * main.c (captured_main): Use catch_command_errors_const.
2032
8981c758
TT
20332014-07-30 Tom Tromey <tromey@redhat.com>
2034
2035 * target.c (open_target): New function.
2036 (add_target_with_completer, add_deprecated_target_alias): Use
2037 set_cmd_sfunc, set_cmd_context.
2038 (debug_to_open): Remove.
2039 (setup_target_debug): Update.
2040
a1c7835a
YQ
20412014-07-30 Yao Qi <yao@codesourcery.com>
2042
2043 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2044 comments.
2045 * parse.c (exp_iterate): Update comments.
2046
976411d6
GB
20472014-07-30 Gary Benson <gbenson@redhat.com>
2048
2049 * common/common-defs.h: New file.
2050 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2051 * defs.h: Include common-defs.h.
2052 Do not include config.h or build-gnulib/config.h.
2053
5d4848a4
GB
20542014-07-30 Gary Benson <gbenson@redhat.com>
2055
2056 * common/common-utils.h: Do not include config.h.
2057 * nat/linux-btrace.h: Likewise.
2058
d41f6d8e
GB
20592014-07-30 Gary Benson <gbenson@redhat.com>
2060
2061 * btrace.c: Include defs.h.
2062 * common/ptid.c: Include defs.h or server.h as appropriate.
2063 * nat/mips-linux-watch.c: Likewise.
2064
84202f9c
TT
20652014-07-29 Tom Tromey <tromey@redhat.com>
2066
2067 * target.c (target_is_pushed): Simplify.
2068
2530441c
JB
20692014-07-29 Joel Brobecker <brobecker@adacore.com>
2070
2071 GDB 7.8 released.
2072
7e09a223
YQ
20732014-07-29 Yao Qi <yao@codesourcery.com>
2074
2075 PR gdb/17206
2076 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2077
7ebdbe92
DE
20782014-07-28 Doug Evans <xdje42@gmail.com>
2079
2080 PR guile/17203
2081 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2082 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2083 parameters.
2084
f347ffc9
WN
20852014-07-28 Will Newton <will.newton@linaro.org>
2086
2087 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2088 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2089 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2090 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2091 (THUMB2_EABI_SYSCALL): Likewise.
2092 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2093 struct tramp_frame.
2094 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2095 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2096
37c5f1f7
DE
20972014-07-27 Doug Evans <xdje42@gmail.com>
2098
2099 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2100
0c3abbc7
DE
21012014-07-27 Doug Evans <xdje42@gmail.com>
2102
2103 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2104
e76c5d17
DE
21052014-07-26 Ludovic Courtès <ludo@gnu.org>
2106 Doug Evans <xdje42@gmail.com>
2107
2108 PR guile/17146
2109 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2110 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2111 * configure.ac: Try to use guild to compile an scm file, if it fails
2112 then disable guile support.
2113 * configure: Regenerate.
2114 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2115 GUILE_FILE_LIST.
2116 (GUILE_COMPILED_FILES): New variable.
2117 (GUILE_FILES) Update.
2118 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2119 (stamp-guile): Compile scm files.
2120 * guile/guile.c (boot_guile_support): New function.
2121 (standard_throw_args_p): New function.
2122 (print_standard_throw_error, print_throw_error): New functions.
2123 (handle_boot_error): New function.
2124 (initialize_scheme_side): Rewrite to call boot_guile_support.
2125 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2126 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2127
186fcde0
DE
21282014-07-26 Ludovic Courtès <ludo@gnu.org>
2129 Doug Evans <xdje42@gmail.com>
2130
2131 PR guile/17146
2132 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2133 * guile/lib/gdb/support.scm: New file.
2134 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2135 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2136 All uses updated.
2137 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2138 All uses updated.
2139 (%assert-type): Ditto, and renamed to assert-type.
2140 (%exception-print-style): Delete.
2141
4df42755
DE
21422014-07-26 Doug Evans <xdje42@gmail.com>
2143
2144 PR build/17105
2145 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2146 * configure: Regenerate.
2147 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2148 PYTHON_FILES.
2149 (PYTHON_FILES): New variable.
2150 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2151 (GUILE_FILES): New variable.
2152 (stamp-python, install-python, uninstall-python): Handle empty
2153 file list.
2154 (stamp-guile, install-guile, uninstall-guile): Ditto.
2155
ee7333ae
DE
21562014-07-26 Doug Evans <xdje42@gmail.com>
2157
2158 PR guile/17177
2159 * guile/lib/gdb.scm (pretty-printers): Export.
2160 (set-pretty-printers!): Export.
2161 * guile/lib/gdb/printing.scm (gdb module): Update.
2162 (prepend-pretty-printer!, append-pretty-printer!): Update.
2163 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2164 (pretty_printer_list_var): Delete.
2165 (pretty_printer_list): New static global.
2166 (gdbscm_pretty_printers): New function.
2167 (gdbscm_set_pretty_printers_x): New function.
2168 (ppscm_find_pretty_printer_from_gdb): Update.
2169 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2170 (gdbscm_initialize_pretty_printers): Update.
2171
74edf516
DE
21722014-07-26 Doug Evans <xdje42@gmail.com>
2173
2174 PR 17185
2175 * configure.ac: Add check for header gc/gc.h.
2176 Add check for function setenv.
2177 * configure: Regenerate.
2178 * config.in: Regenerate.
2179 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2180
d54398a7
MR
21812014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2182
2183 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2184 variation in gdbarch matching.
2185
ab16fce8
TT
21862014-07-25 Tom Tromey <tromey@redhat.com>
2187
2188 * exec.c (using_exec_ops): Remove.
2189 (exec_close_1): Update. Remove extraneous block, reindent.
2190 (add_target_sections): Use target_is_pushed.
2191
88056fbb
PA
21922014-07-25 Pedro Alves <palves@redhat.com>
2193
2194 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2195 * monitor.c (monitor_create_inferior): Likewise.
2196 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2197 * remote-sim.c (gdbsim_create_inferior): Likewise.
2198 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2199 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2200 * windows-nat.c (do_initial_windows_stuff): Likewise.
2201
70509625
PA
22022014-07-25 Pedro Alves <palves@redhat.com>
2203
2204 * NEWS: Mention signal passing and "signal" command changes.
2205 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2206 comment.
2207 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2208 call.
2209 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2210 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2211 (jump_command): Adjust clear_proceed_status call.
2212 (signal_command): Warn if other thread that are resumed have
2213 signals that will be delivered. Adjust clear_proceed_status call.
2214 (until_next_command, finish_command)
2215 (proceed_after_attach_callback, attach_command_post_wait)
2216 (attach_command): Adjust clear_proceed_status call.
2217 * infrun.c (proceed_after_vfork_done): Likewise.
2218 (proceed_after_attach_callback): Adjust comment.
2219 (clear_proceed_status_thread): Clear stop_signal if not in pass
2220 state.
2221 (clear_proceed_status_callback): Delete.
2222 (clear_proceed_status): New 'step' parameter. Only clear the
2223 proceed status of threads the command being prepared is about to
2224 resume.
2225 (proceed): If passed in an explicit signal, override stop_signal
2226 with it. Don't pass the last stop signal to the thread we're
2227 resuming.
2228 (init_wait_for_inferior): Adjust clear_proceed_status call.
2229 (switch_back_to_stepped_thread): Clear the signal if it should not
2230 be passed.
2231 * infrun.h (clear_proceed_status): New 'step' parameter.
2232 (user_visible_resume_ptid): Add comment.
2233 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2234 signal is in pass state.
2235 * remote.c (append_pending_thread_resumptions): Likewise.
2236 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2237
d8be2939
TT
22382014-07-25 Tom Tromey <tromey@redhat.com>
2239
2240 * target.h (target_stopped_data_address)
2241 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2242 parentheses.
2243
7d0d9d2b
PL
22442014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2245
2246 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2247 comments.
2248 (avr_pointer_to_address): Likewise.
2249
e9e7f724
TT
22502014-07-24 Tom Tromey <tromey@redhat.com>
2251
2252 * monitor.c (compile_pattern): Update.
2253 * target.h (struct target_ops) <to_shortname, to_longname,
2254 to_doc>: Now const.
2255
1947513d
TT
22562014-07-24 Tom Tromey <tromey@redhat.com>
2257
2258 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2259 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2260 (add_info_alias, add_com): Make "doc" const.
2261 (print_doc_line): Make "str" const.
2262 (delete_cmd): Update.
2263 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2264 (print_doc_line): Update.
2265 * cli/cli-script.c (document_command): Update.
2266 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2267 (add_com, add_info, add_info_alias): Update.
2268 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2269 * python/py-cmd.c (cmdpy_destroyer): Update.
2270
64e61d29
TT
22712014-07-24 Tom Tromey <tromey@redhat.com>
2272
2273 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2274 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2275 (help_cmd_list): Constify.
2276 (lookup_cmd): Update.
2277 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2278 const.
2279 (help_cmd_list, apropos_cmd): Update.
2280 * cli/cli-script.c (show_user): Update.
2281 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2282 * cli/cli-setshow.h (cmd_show_list): Update.
2283 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2284 (cmd_show_list): Update.
2285 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2286 * python/py-cmd.c (cmdpy_destroyer): Update.
2287
429e55ea
TT
22882014-07-24 Tom Tromey <tromey@redhat.com>
2289
2290 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2291 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2292 const.
2293 * command.h (deprecate_cmd): Update.
2294 * maint.c (maintenance_do_deprecate): Add casts.
2295
64669f3b
TT
22962014-07-24 Tom Tromey <tromey@redhat.com>
2297
2298 * cli/cli-decode.c (help_cmd): Make parameter "const".
2299 * cli/cli-decode.h (help_cmd): Update.
2300
d3d3328b
TT
23012014-07-24 Tom Tromey <tromey@redhat.com>
2302
2303 * stack.c (up_silently_base, down_silently_base): Make argument
2304 const.
2305
414842dc
TT
23062014-07-24 Tom Tromey <tromey@redhat.com>
2307
2308 * solib.c (solib_add): Make "pattern" const.
2309 * solib.h (solib_add): Update.
2310
baa336ce
TT
23112014-07-24 Tom Tromey <tromey@redhat.com>
2312
2313 * remote.c (remote_serial_open, print_packet, putpkt)
2314 (putpkt_binary): Constify.
2315 * remote.h (putpkt): Update.
2316
5a19e2d0
TT
23172014-07-24 Tom Tromey <tromey@redhat.com>
2318
2319 * monitor.c (monitor_open): Make "args" const.
2320 * monitor.h (monitor_open): Update.
2321
fc4baa5e
TT
23222014-07-24 Tom Tromey <tromey@redhat.com>
2323
2324 * maint.c (match_bfd_flags): Make "string" const.
2325 (print_bfd_section_info): Remove casts.
2326 (print_objfile_section_info): Make "string" const.
2327
0d5f0dbe
TT
23282014-07-24 Tom Tromey <tromey@redhat.com>
2329
2330 * inf-child.c (inf_child_open_target): Make "arg" const.
2331 * inf-child.h (inf_child_open_target): Update.
2332
41c77899
TT
23332014-07-24 Tom Tromey <tromey@redhat.com>
2334
2335 * environ.c (unset_in_environ): Make "var" const.
2336 * environ.h (unset_in_environ): Update.
2337
93db0d79
TT
23382014-07-24 Tom Tromey <tromey@redhat.com>
2339
2340 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2341 Make "cmd" const.
2342 (scan_filename_with_cleanup): Likewise.
2343 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2344 Make arguments const.
2345 (restore_command): Update.
2346
36d6eb95
PA
23472014-07-24 Pedro Alves <palves@redhat.com>
2348
2349 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2350
8009206a
TT
23512014-07-24 Tom Tromey <tromey@redhat.com>
2352 Gary Benson <gbenson@redhat.com>
2353
2354 * nat/linux-ptrace.c (additional_flags): New global.
2355 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2356 additional_flags; don't check GDBSERVER.
2357 (linux_ptrace_set_additional_flags): New function.
2358 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2359 Declare.
2360 * linux-nat.c (_initialize_linux_nat): Call
2361 linux_ptrace_set_additional_flags.
2362
a7068b60
TT
23632014-07-24 Tom Tromey <tromey@redhat.com>
2364
2365 * make-target-delegates (munge_type, write_debugmethod): New
2366 functions.
2367 (debug_names): New global.
2368 ($TARGET_DEBUG_PRINTER): New global.
2369 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2370 name.
2371 Write debug methods. Generate init_debug_target.
2372 * target-debug.h: New file.
2373 * target-delegates.c: Rebuild.
2374 * target.c: Include target-debug.h.
2375 (debug_target): Hoist definition.
2376 (target_kill, target_get_section_table, target_memory_map)
2377 (target_flash_erase, target_flash_done, target_detach)
2378 (target_disconnect, target_wait, target_resume)
2379 (target_pass_signals, target_program_signals, target_follow_fork)
2380 (target_mourn_inferior, target_search_memory)
2381 (target_thread_address_space, target_close)
2382 (target_find_new_threads, target_core_of_thread)
2383 (target_verify_memory, target_insert_mask_watchpoint)
2384 (target_remove_mask_watchpoint): Remove targetdebug code.
2385 (debug_to_post_attach, debug_to_prepare_to_store)
2386 (debug_to_files_info, debug_to_insert_breakpoint)
2387 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2388 (debug_to_region_ok_for_hw_watchpoint)
2389 (debug_to_can_accel_watchpoint_condition)
2390 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2391 (debug_to_watchpoint_addr_within_range)
2392 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2393 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2394 (debug_to_terminal_init, debug_to_terminal_inferior)
2395 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2396 (debug_to_terminal_save_ours, debug_to_terminal_info)
2397 (debug_to_load, debug_to_post_startup_inferior)
2398 (debug_to_insert_fork_catchpoint)
2399 (debug_to_remove_fork_catchpoint)
2400 (debug_to_insert_vfork_catchpoint)
2401 (debug_to_remove_vfork_catchpoint)
2402 (debug_to_insert_exec_catchpoint)
2403 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2404 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2405 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2406 (setup_target_debug): Call init_debug_target.
2407 * target.h (TARGET_DEBUG_PRINTER): New macro.
2408 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2409 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2410
2c51604d
GB
24112014-07-24 Gary Benson <gbenson@redhat.com>
2412
2413 * exceptions.h (throw_vfatal): Renamed to...
2414 (throw_vquit): New declaration.
2415 (throw_quit): Likewise.
2416 * exceptions.c (throw_vfatal): Renamed to...
2417 (throw_vquit): New function.
2418 (throw_quit): Likewise.
2419 (throw_error): Call throw_verror rather than throw_it.
2420 * utils.h (vfatal): Removed.
2421 (fatal): Likewise.
2422 * utils.c (vfatal): Removed.
2423 (fatal): Likewise.
2424 (internal_verror): Replaced call to fatal with call to throw_quit.
2425 (quit): Replaced calls to fatal with calls to throw_quit.
2426
34211963
ME
24272014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2428
2429 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2430 target_read_code.
2431
a52b4d3e
ME
24322014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2433
2434 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2435 less than zero in conditional expression.
2436
a8bdc56b
TT
24372014-07-23 Tom Tromey <tromey@redhat.com>
2438
2439 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2440 ($INTRO_PART): Don't match whitespace.
2441 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2442 argument matching.
2443 ($METHOD): Add $METHOD_TRAILER.
2444 (trim): Rewrite.
2445 (scan_target_h): New sub.
2446 Change main loop not to collect state.
2447 * target-delegates.c: Rebuild.
2448
91b52240
GB
24492014-07-23 Gary Benson <gbenson@redhat.com>
2450
2451 * cp-support.c (gdb_demangle): Fix build on systems without
2452 sigaltstack.
2453
45326f6f
JK
24542014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2455
2456 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2457 for reference entry value target data value.
2458
e214cf6c
JK
24592014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2460
2461 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2462 value_available_contents_eq.
2463
bddbbedd
PA
24642014-07-22 Pedro Alves <palves@redhat.com>
2465
2466 * value.c (allocate_optimized_out_value): Don't mark value as
2467 non-lazy.
2468
45c71484
JW
24692014-07-22 Jiong Wang <jiong.wang@arm.com>
2470
2471 * MAINTAINERS (Write After Approval): Update my email address.
2472
9597b22a
DE
24732014-07-20 Doug Evans <dje@google.com>
2474
2475 PR server/17147
2476 * remote.c (putpkt_binary): Add text to error message.
2477
91101fe5
YQ
24782014-07-20 Yao Qi <yao@codesourcery.com>
2479
2480 * eval.c: Remove "Chill" from comments.
2481 * gdbtypes.h: Likewise.
2482 * symtab.h: Likewise.
2483
c9402c95
YQ
24842014-07-20 Yao Qi <yao@codesourcery.com>
2485
2486 * std-operator.def: Update comments to TERNOP_SLICE.
2487
ae8fddda
YQ
24882014-07-20 Yao Qi <yao@codesourcery.com>
2489
2490 * std-operator.def: Remove BINOP_RANGE.
2491 * breakpoint.c (watchpoint_exp_is_const): Update.
2492 * expprint.c (dump_subexp_body_standard): Likewise.
2493 * eval.c (init_array_element): Remove dead code.
2494 (evaluate_subexp_standard): Likewise.
2495
9c816640
YQ
24962014-07-20 Yao Qi <yao@codesourcery.com>
2497
2498 * std-operator.def: Remove BINOP_IN.
2499 * breakpoint.c (watchpoint_exp_is_const): Update.
2500 * eval.c (evaluate_subexp_standard): Likewise.
2501 * expprint.c (dump_subexp_body_standard): Likewise.
2502
164224e9
ME
25032014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2504
2505 * microblaze-tdep.c (microblaze_register_names): Add
2506 the rshr and rslr register names.
2507 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2508 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2509 Use of tdesc_numbered_register. Use of
2510 microblaze_register_g_packet_guesses. Use of
2511 tdesc_use_registers. Use of set_gdbarch_register_type.
2512 (microblaze_register_g_packet_guesses): New.
2513 * microblaze-tdep.h (microblaze_reg_num): Add
2514 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2515 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2516 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2517 * features/microblaze-core.xml: New file.
2518 * features/microblaze-stack-protect.xml: New file.
2519 * features/microblaze-with-stack-protect.c: New file.
2520 * features/microblaze-with-stack-protect.xml: New file.
2521 * features/microblaze.xml: New file.
2522 * features/microblaze.c: New file.
2523 * features/Makefile (microblaze-with-stack-protect): Add
2524 microblaze-with-stack-protect microblaze and microblaze-expedite.
2525 * regformats/microblaze-with-stack-protect.dat: New file.
2526 * regformats/microblaze.dat: New file.
2527 * doc/gdb.texinfo (MicroBlaze Features): Added.
2528
e8b2341c
TT
25292014-07-18 Tom Tromey <tromey@redhat.com>
2530
2531 * exec.c (exec_ops): Now static.
2532 * exec.h (exec_ops): Don't declare.
2533
44e89118
TT
25342014-07-18 Tom Tromey <tromey@redhat.com>
2535
2536 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2537 to find_target_beneath.
2538 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2539 find_target_beneath.
2540 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2541
b0ed115f
TT
25422014-07-18 Tom Tromey <tromey@redhat.com>
2543
2544 PR gdb/17130:
2545 * utils.c (quit): Use target_supports_terminal_ours.
2546 * target.h (target_supports_terminal_ours): Declare.
2547 * target.c (target_supports_delete_record): Don't check
2548 to_delete_record against NULL.
2549 (target_supports_terminal_ours): New function.
2550
e75fdfca
TT
25512014-07-18 Tom Tromey <tromey@redhat.com>
2552
2553 PR gdb/17130:
2554 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2555 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2556 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2557 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2558 * windows-nat.c (windows_xfer_partial): Always delegate.
2559 * record-btrace.c (record_btrace_xfer_partial): Simplify
2560 delegation.
2561 (record_btrace_fetch_registers, record_btrace_store_registers)
2562 (record_btrace_prepare_to_store, record_btrace_resume)
2563 (record_btrace_wait, record_btrace_find_new_threads)
2564 (record_btrace_thread_alive): Likewise.
2565 * procfs.c (procfs_xfer_partial): Always delegate.
2566 * corelow.c (core_xfer_partial): Always delegate.
2567 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2568
83814951
TT
25692014-07-18 Tom Tromey <tromey@redhat.com>
2570
2571 * exec.c (exec_make_note_section): Move earlier.
2572
b8b8facf
DE
25732014-07-17 Doug Evans <dje@google.com>
2574
74b49205 2575 PR gdb/17170
b8b8facf
DE
2576 * maint.c (count_symtabs_and_blocks): Handle NULL
2577 current_program_space.
2578 (report_command_stats): Check global enabled flag in addition to
2579 recorded enabled flag.
2580 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2581
69ff6be5
PA
25822014-07-16 Pedro Alves <palves@redhat.com>
2583
2584 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2585
252db1b5
TT
25862014-07-16 Tom Tromey <tromey@redhat.com>
2587
2588 * target.h (struct target_ops) <to_delete_record>: Reformat
2589 comment.
2590
a432721e
TT
25912014-07-16 Tom Tromey <tromey@redhat.com>
2592
2593 * target-delegates.c: Rebuild.
2594
487d9753
PL
25952014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2596
2597 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2598 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2599 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2600 (avr_pointer_to_address): Likewise.
2601 (avr_address_class_type_flags): New function.
2602 (avr_address_class_type_flags_to_name): Likewise.
2603 (avr_address_class_name_to_type_flags): Likewise.
2604 (avr_gdbarch_init): Set address_class_type_flags,
2605 address_class_type_flags_to_name and
2606 address_class_name_to_type_flags.
2607
57745c90
PA
26082014-07-15 Pedro Alves <palves@redhat.com>
2609
2610 * linux-nat.c (kill_callback): Save errno and work with saved
2611 copy.
2612
2d40be18
SM
26132014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2614
2615 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2616
572f6555
EBM
26172014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2618
2619 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2620 breakpoint support correctly.
2621
cc1c52ad
PA
26222014-07-14 Pedro Alves <palves@redhat.com>
2623
2624 * utils.c (prompt_for_continue): Call target_terminal_ours.
2625
1e973570
PA
26262014-07-14 Pedro Alves <palves@redhat.com>
2627
2628 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2629 catch_errors. Don't re-enable stdin or notify observers where,
2630 and rethrow error.
2631 (fetch_inferior_event_wrapper): Delete.
2632
93d6eb10
PA
26332014-07-14 Pedro Alves <palves@redhat.com>
2634
2635 PR gdb/17072
2636 * top.c: Include "inf-loop.h".
2637 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2638 field.
2639 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2640 was async before.
2641 (gdb_readline_wrapper): Store whether the target is async, and
2642 make it sync.
2643
0017922d
PA
26442014-07-14 Pedro Alves <palves@redhat.com>
2645
2646 PR gdb/17072
2647 * top.c (gdb_readline_wrapper_line): Tweak comment.
2648 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2649 the input handler callback.
2650
94696ad3
PA
26512014-07-14 Pedro Alves <palves@redhat.com>
2652
2653 PR gdb/17072
2654 * main.c: Include event-top.h.
2655 (handle_command_errors): New function.
2656 (catch_command_errors, catch_command_errors_const): Use it.
2657
9d1e69a2
PA
26582014-07-14 Pedro Alves <palves@redhat.com>
2659
2660 * exceptions.c (catch_command_errors, catch_command_errors_const):
2661 Moved to main.c.
2662 * exceptions.h (catch_command_errors_ftype)
2663 (catch_command_errors_const_ftype): Moved to main.c.
2664 (catch_command_errors, catch_command_errors_const): Delete
2665 declarations.
2666 * main.c (catch_command_errors_ftype)
2667 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2668 (catch_command_errors, catch_command_errors_const)): Moved here
2669 from exceptions.c and make static.
2670
feefc97b
PA
26712014-07-14 Pedro Alves <palves@redhat.com>
2672
2673 * exceptions.c (print_any_exception): Delete.
2674 (catch_exceptions_with_msg): Use exception_print instead of
2675 print_any_exception.
2676 (catch_errors): Use exception_fprintf instead of
2677 print_any_exception.
2678 (catch_command_errors, catch_command_errors_const): Use
2679 exception_print instead of print_any_exception.
2680
c933f875
PA
26812014-07-14 Pedro Alves <palves@redhat.com>
2682
2683 * infcall.c (run_inferior_call): Set 'sync_execution' while
2684 running the inferior call.
2685
feb6f816
PA
26862014-07-14 Pedro Alves <palves@redhat.com>
2687
2688 * value.c (value_contents_equal): Delete function.
2689 * value.h (value_contents_equal): Delete declaration.
2690
d98b7a16
TT
26912014-07-14 Tom Tromey <tromey@redhat.com>
2692
2693 PR exp/17106:
2694 * gdbtypes.c (is_dynamic_type_internal): New function, from
2695 is_dynamic_type.
2696 (is_dynamic_type): Rewrite.
2697 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2698 (resolve_dynamic_struct): Likewise.
2699 (resolve_dynamic_type_internal): New function, from
2700 resolve_dynamic_type.
2701 (resolve_dynamic_type): Rewrite.
2702
548740d6
TT
27032014-07-14 Tom Tromey <tromey@redhat.com>
2704
2705 * target.c (target_require_runnable): Also check record_stratum.
2706 Update comment.
2707
808f7ab1
YQ
27082014-07-11 Yao Qi <yao@codesourcery.com>
2709
2710 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2711 thumb_instruction_restores_sp return true.
2712
540314bd
YQ
27132014-07-11 Yao Qi <yao@codesourcery.com>
2714
2715 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2716 (thumb_in_function_epilogue_p): Call
2717 thumb_instruction_restores_sp.
2718
1db01f22
YQ
27192014-07-11 Yao Qi <yao@codesourcery.com>
2720
2721 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2722 'add sp, #imm'.
2723 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2724
3116063b
GB
27252014-07-11 Gary Benson <gbenson@redhat.com>
2726
2727 * amd64-linux-nat.c (gdbcore.h): Remove include.
2728 (regset.h): Likewise.
2729 (nat/linux-btrace.h): Likewise.
2730 (btrace.h): Likewise.
2731 (gdb_assert.h): Likewise.
2732 (string.h): Likewise.
2733 (sys/uio.h): Likewise.
2734 (sys/debugreg.h): Likewise.
2735 (sys/syscall.h): Likewise.
2736 (sys/procfs.h): Likewise.
2737 (sys/user.h): Likewise.
2738 (asm/ptrace.h): Likewise.
2739 (i386-nat.h): Likewise.
2740 * i386-linux-nat.c (i386-nat.h): Likewise.
2741 (regset.h): Likewise.
2742 (target.h): Likewise.
2743 (linux-nat.h): Likewise.
2744 (nat/linux-btrace.h): Likewise.
2745 (btrace.h): Likewise.
2746 (gdb_assert.h): Likewise.
2747 (string.h): Likewise.
2748 (sys/uio.h): Likewise.
2749 (sys/user.h): Likewise.
2750 (sys/procfs.h): Likewise.
2751 (sys/reg.h): Likewise.
2752 (sys/debugreg.h): Likewise.
2753 (ORIG_EAX): Remove definition.
2754
040baaf6
GB
27552014-07-11 Gary Benson <gbenson@redhat.com>
2756
2757 * i386-linux-nat.h: New file.
2758 * x86-linux-nat.h: Likewise.
2759 * x86-linux-nat.c: Likewise.
2760 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2761 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2762 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2763 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2764 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2765 (PTRACE_SETREGSET): Likewise.
2766 (arch_lwp_info): Now in x86-linux-nat.c.
2767 (have_ptrace_getregset): Now in x86-linux-nat.h.
2768 (x86_linux_dr_get): Now in x86-linux-nat.c.
2769 (x86_linux_dr_set): Likewise.
2770 (x86_linux_dr_get_addr): Likewise.
2771 (x86_linux_dr_get_control): Likewise.
2772 (x86_linux_dr_get_status): Likewise.
2773 (update_debug_registers_callback): Likewise.
2774 (x86_linux_dr_set_control): Likewise.
2775 (x86_linux_dr_set_addr): Likewise.
2776 (x86_linux_prepare_to_resume): Likewise.
2777 (x86_linux_new_thread): Likewise.
2778 (x86_linux_new_fork): Likewise.
2779 (x86_linux_get_thread_area): Likewise.
2780 (super_post_startup_inferior): Likewise.
2781 (x86_linux_child_post_startup_inferior): Likewise.
2782 (AMD64_LINUX_USER64_CS): Likewise.
2783 (AMD64_LINUX_X32_DS): Likewise.
2784 (x86_linux_read_description): Likewise.
2785 (x86_linux_enable_btrace): Likewise.
2786 (x86_linux_disable_btrace): Likewise.
2787 (x86_linux_teardown_btrace): Likewise.
2788 (x86_linux_read_btrace): Likewise.
2789 (x86_linux_create_target): Likewise.
2790 (x86_linux_add_target): Likewise.
2791 * i386-linux-nat.c (x86-linux-nat.h): New include.
2792 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2793 (PTRACE_SETREGSET): Likewise.
2794 (arch_lwp_info): Now in x86-linux-nat.c.
2795 (have_ptrace_getregset): Now in x86-linux-nat.h.
2796 (x86_linux_dr_get): Now in x86-linux-nat.c.
2797 (x86_linux_dr_set): Likewise.
2798 (x86_linux_dr_get_addr): Likewise.
2799 (x86_linux_dr_get_control): Likewise.
2800 (x86_linux_dr_get_status): Likewise.
2801 (update_debug_registers_callback): Likewise.
2802 (x86_linux_dr_set_control): Likewise.
2803 (x86_linux_dr_set_addr): Likewise.
2804 (x86_linux_prepare_to_resume): Likewise.
2805 (x86_linux_new_thread): Likewise.
2806 (x86_linux_new_fork): Likewise.
2807 (x86_linux_get_thread_area): Likewise.
2808 (super_post_startup_inferior): Likewise.
2809 (x86_linux_child_post_startup_inferior): Likewise.
2810 (AMD64_LINUX_USER64_CS): Likewise.
2811 (AMD64_LINUX_X32_DS): Likewise.
2812 (x86_linux_read_description): Likewise.
2813 (x86_linux_enable_btrace): Likewise.
2814 (x86_linux_disable_btrace): Likewise.
2815 (x86_linux_teardown_btrace): Likewise.
2816 (x86_linux_read_btrace): Likewise.
2817 (x86_linux_create_target): Likewise.
2818 (x86_linux_add_target): Likewise.
2819
1aa7e42c
GB
28202014-07-11 Gary Benson <gbenson@redhat.com>
2821
2822 * amd64-linux-nat.c: Comment and whitespace changes.
2823 * i386-linux-nat.c: Comment and whitespace changes.
2824
c1e246a0
GB
28252014-07-11 Gary Benson <gbenson@redhat.com>
2826
2827 * amd64-linux-nat.c (x86_linux_create_target): New function.
2828 (x86_linux_add_target): Likewise.
2829 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2830 * i386-linux-nat.c (x86_linux_create_target): New function.
2831 (x86_linux_add_target): Likewise.
2832 (_initialize_i386_linux_nat): Delegate to the above new functions.
2833
8c420b8d
GB
28342014-07-11 Gary Benson <gbenson@redhat.com>
2835
2836 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2837 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2838 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2839 (ps_get_thread_area): Delegate to the above.
2840
cb1da100
GB
28412014-07-11 Gary Benson <gbenson@redhat.com>
2842
2843 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2844 x86_linux_read_description. All uses updated. amd64-specific
2845 code conditionalized. Conditionalized i386-specific code added.
2846 Redundant cast removed.
2847 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2848 x86_linux_read_description. All uses updated. i386-specific
2849 code conditionalized. Conditionalized amd64-specific code added.
2850 One sizeof replaced with the actual type it is describing.
2851
2acf3cd0
GB
28522014-07-11 Gary Benson <gbenson@redhat.com>
2853
2854 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2855 x86_linux_dr_get. All uses updated.
2856 (amd64_linux_dr_set): Renamed to
2857 x86_linux_dr_set. All uses updated.
2858 (amd64_linux_dr_get_addr): Renamed to
2859 x86_linux_dr_get_addr. All uses updated.
2860 (amd64_linux_dr_get_control): Renamed to
2861 x86_linux_dr_get_control. All uses updated.
2862 (amd64_linux_dr_get_status): Renamed to
2863 x86_linux_dr_get_status. All uses updated.
2864 (amd64_linux_dr_set_control): Renamed to
2865 x86_linux_dr_set_control. All uses updated.
2866 (amd64_linux_dr_set_addr): Renamed to
2867 x86_linux_dr_set_addr. All uses updated.
2868 (amd64_linux_prepare_to_resume): Renamed to
2869 x86_linux_prepare_to_resume. All uses updated.
2870 (amd64_linux_new_thread): Renamed to
2871 x86_linux_new_thread. All uses updated.
2872 (amd64_linux_new_fork): Renamed to
2873 x86_linux_new_fork. All uses updated.
2874 (amd64_linux_child_post_startup_inferior): Renamed to
2875 x86_linux_child_post_startup_inferior. All uses updated.
2876 (amd64_linux_enable_btrace): Renamed to
2877 x86_linux_enable_btrace. All uses updated.
2878 (amd64_linux_disable_btrace): Renamed to
2879 x86_linux_disable_btrace. All uses updated.
2880 (amd64_linux_teardown_btrace): Renamed to
2881 x86_linux_teardown_btrace. All uses updated.
2882 (amd64_linux_read_btrace): Renamed to
2883 x86_linux_read_btrace. All uses updated.
2884 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2885 x86_linux_dr_get. All uses updated.
2886 (i386_linux_dr_set): Renamed to
2887 x86_linux_dr_set. All uses updated.
2888 (i386_linux_dr_get_addr): Renamed to
2889 x86_linux_dr_get_addr. All uses updated.
2890 (i386_linux_dr_get_control): Renamed to
2891 x86_linux_dr_get_control. All uses updated.
2892 (i386_linux_dr_get_status): Renamed to
2893 x86_linux_dr_get_status. All uses updated.
2894 (i386_linux_dr_set_control): Renamed to
2895 x86_linux_dr_set_control. All uses updated.
2896 (i386_linux_dr_set_addr): Renamed to
2897 x86_linux_dr_set_addr. All uses updated.
2898 (i386_linux_prepare_to_resume): Renamed to
2899 x86_linux_prepare_to_resume. All uses updated.
2900 (i386_linux_new_thread): Renamed to
2901 x86_linux_new_thread. All uses updated.
2902 (i386_linux_new_fork): Renamed to
2903 x86_linux_new_fork. All uses updated.
2904 (i386_linux_child_post_startup_inferior): Renamed to
2905 x86_linux_child_post_startup_inferior. All uses updated.
2906 (i386_linux_enable_btrace): Renamed to
2907 x86_linux_enable_btrace. All uses updated.
2908 (i386_linux_disable_btrace): Renamed to
2909 x86_linux_disable_btrace. All uses updated.
2910 (i386_linux_teardown_btrace): Renamed to
2911 x86_linux_teardown_btrace. All uses updated.
2912 (i386_linux_read_btrace): Renamed to
2913 x86_linux_read_btrace. All uses updated.
2914
b9c1d481
AS
29152014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2916
2917 * remote.c (extended_remote_post_attach): New function.
2918 (init_extended_remote_ops): Install it as to_post_attach method.
2919
7180e04a
PA
29202014-07-09 Pedro Alves <palves@redhat.com>
2921
2922 * infcmd.c (attach_command_post_wait): Don't call
2923 target_terminal_inferior here.
2924 (attach_command): Call it here instead.
2925
9a9a7608
AB
29262014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2927
2928 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2929 field.
2930 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2931 from varobj.c, with additional checks.
2932 (c_varobj_ops): Fill in is_path_expr_parent field.
2933 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2934 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2935 field.
2936 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2937 ops method.
2938 (varobj_default_is_path_expr_parent): New function.
2939 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2940 (varobj_default_is_path_expr_parent): Declare new function.
2941
1f267ae3
MM
29422014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2943
2944 * infcmd.c (finish_backward): Turn internal error into normal error.
2945
b2ee242b
PA
29462014-07-07 Pedro Alves <palves@redhat.com>
2947
8a869bca 2948 PR gdb/17096
b2ee242b
PA
2949 * remote.c (async_handle_remote_sigint)
2950 (async_handle_remote_sigint_twice): Call
2951 gdb_call_async_signal_handler instead of
2952 mark_async_signal_handler.
2953
38e229b2
TT
29542014-07-07 Tom Tromey <tromey@redhat.com>
2955
2956 * target-delegates.c: Rebuild.
2957 * target.c (target_info_record): Remove.
2958 * record.c (info_record_command): Unconditionally call
2959 to_info_record.
2960 * target.h (struct target_ops) <to_info_record>: Use
2961 TARGET_DEFAULT_IGNORE.
2962 (target_info_record): Remove.
2963
f0f9ff95
TT
29642014-07-07 Tom Tromey <tromey@redhat.com>
2965
2966 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2967 TARGET_DEFAULT_NORETURN.
2968 * target.c (generic_tls_error): New function.
2969 (target_translate_tls_address): Don't search target stack.
2970 * target-delegates.c: Rebuild.
2971 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2972 stack.
2973 * linux-thread-db.c (thread_db_get_thread_local_address):
2974 Unconditionally call beneath target.
2975
4a5be5ee
MK
29762014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2977
2978 * cli/cli-logging.c (pop_output_files): Assign targerr to
2979 gdb_stdtargerr.
2980
92c3b204
AB
29812014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2982
2983 * MAINTAINERS (Write After Approval): Update my email address.
2984
9b11e3a7
GB
29852014-07-02 Gary Benson <gbenson@redhat.com>
2986
2987 * proc-service.c (ps_xfer_memory): Update comment.
2988 (ps_pstop): Remove unused function.
2989 (ps_pcontinue): Likewise.
2990 (ps_lstop): Likewise.
2991 (ps_lcontinue): Likewise.
2992 (ps_lgetxregsize): Likewise.
2993 (ps_lgetxregs): Likewise.
2994 (ps_lsetxregs): Likewise.
2995 (ps_plog): Likewise.
2996 (ps_ptread): Likewise.
2997 (ps_ptwrite): Likewise.
2998
cf363f18
MW
29992014-07-01 Mark Wielaard <mjw@redhat.com>
3000
3001 * dwarf2read.c (add_array_cv_type): New function.
3002 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3003 (read_tag_volatile_type): Likewise.
3004
82ae6c8d
TT
30052014-07-01 Tom Tromey <tromey@redhat.com>
3006
3007 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3008 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3009 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3010 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3011 * command.h (cmd_cfunc_ftype): Move earlier.
3012 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3013 (add_com, add_info): Use cmd_cfunc_ftype.
3014
96142726
TT
30152014-06-30 Tom Tromey <tromey@redhat.com>
3016
3017 * symtab.c (operator_chars): Make parameters and return type
3018 const.
3019 (file_matches): Make "files" const.
3020 (struct search_symbols_data) <files>: Now const.
3021 (search_symbols): Make "regexp" and "files" parameters const.
3022 Update.
3023 (symtab_symbol_info): Remove cast.
3024 (rbreak_command): Update.
3025 * symtab.h (search_symbols): Update.
3026
b67a2c6f
YQ
30272014-06-27 Yao Qi <yao@codesourcery.com>
3028
3029 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3030 Change parameter type to 'struct thread_info *'. Caller
3031 updated.
3032 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3033 Update declaration.
3034 * dummy-frame.c (struct dummy_frame_id): New.
3035 (dummy_frame_id_eq): New function.
3036 (struct dummy_frame) <id>: Change its type to 'struct
3037 dummy_frame_id'.
3038 (dummy_frame_push): Add parameter ptid and save it in
3039 dummy_frame_id.
3040 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3041 inferior_ptid.
3042 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3043 to inferior_ptid.
3044 (lookup_dummy_frame): Change parameter type to 'struct
3045 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3046 instead of frame_id_eq.
3047 (dummy_frame_pop): Add parameter ptid. Callers updated.
3048 Update comments. Compose dummy_frame_id and pass it to
3049 lookup_dummy_frame.
3050 (dummy_frame_discard): Add parameter ptid.
3051 (dummy_frame_sniffer): Compose dummy_frame_id and call
3052 dummy_frame_id_eq instead of frame_id_eq.
3053 (fprint_dummy_frames): Print ptid.
3054 * dummy-frame.h: Remove comments.
3055 (dummy_frame_push): Add ptid in declaration.
3056 (dummy_frame_pop, dummy_frame_discard): Likewise.
3057
5b10184c
TT
30582014-06-26 Tom Tromey <tromey@redhat.com>
3059
3060 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3061 * command.h (error_no_arg): Update.
3062
06900326
TT
30632014-06-26 Tom Tromey <tromey@redhat.com>
3064
3065 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3066 (do_show_command): Make "arg" const.
3067 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3068
c2bcbb1d
TT
30692014-06-26 Tom Tromey <tromey@redhat.com>
3070
3071 * record-full.c (record_full_get_bookmark): Make "args" const.
3072 (record_full_goto_bookmark): Make "raw_bookmark" const.
3073 * record.c (record_goto): New function.
3074 (cmd_record_goto): Use it. Now static.
3075 * record.h (record_goto): Declare.
3076 (cmd_record_goto): Remove declaration.
3077 * target-delegates.c: Rebuild.
3078 * target.h (struct target_ops) <to_get_bookmark,
3079 to_goto_bookmark>: Make parameter const.
3080
9cbe5fff
TT
30812014-06-26 Tom Tromey <tromey@redhat.com>
3082
3083 * defs.h (generic_load): Update.
3084 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3085 * monitor.c (monitor_load): Make "args" const.
3086 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3087 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3088 const.
3089 (mips_load): Make "file" const.
3090 * remote-sim.c (gdbsim_load): Make "args" const.
3091 * remote.c (remote_load): Make "name" const.
3092 * symfile.c (generic_load): Make "args" const.
3093 * target-delegates.c: Rebuild.
3094 * target.c (target_load): Make "arg" const.
3095 (debug_to_load): Make "args" const.
3096 * target.h (struct target_ops) <to_load>: Make parameter const.
3097 (target_load): Update.
3098
34a68019
TT
30992014-06-26 Tom Tromey <tromey@redhat.com>
3100
3101 PR symtab/16902:
3102 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3103 (dwarf2_physname, read_partial_die)
3104 (guess_partial_die_structure_name, fixup_partial_die)
3105 (guess_full_die_structure_name, anonymous_struct_prefix)
3106 (dwarf2_name): Use per-BFD obstack.
3107
efc889c1
YQ
31082014-06-26 Yao Qi <yao@codesourcery.com>
3109
3110 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3111 dummyframe and this_id into inner block below.
3112
4395285e
YQ
31132014-06-26 Yao Qi <yao@codesourcery.com>
3114
3115 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3116 with "signal_pass[0]" in the initialization of signal_pass.
3117
aef92902
MM
31182014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3119
3120 * record-btrace.c (record_btrace_generating_corefile)
3121 (record_btrace_prepare_to_generate_core)
3122 (record_btrace_done_generating_core): New.
3123 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3124 (record_btrace_store_registers, record_btrace_prepare_to_store):
3125 Forward request when generating a core file.
3126 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3127 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3128 to_done_generating_core.
3129
5fff78c4
MM
31302014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3131
3132 * target.h (target_ops) <to_prepare_to_generate_core>
3133 <to_done_generating_core>: New.
3134 (target_prepare_to_generate_core, target_done_generating_core): New.
3135 * target.c (target_prepare_to_generate_core)
3136 (target_done_generating_core): New.
3137 * target-delegates.c: Regenerate.
3138 * gcore.c: (write_gcore_file): Rename to ...
3139 (write_gcore_file_1): ...this.
3140 (write_gcore_file): Call target_prepare_to_generate_core
3141 and target_done_generating_core.
3142
1d1f1ccb
MM
31432014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3144
3145 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3146 * gcore.c (write_gcore_file): Free memory returned from
3147 make_corefile_notes.
3148 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3149 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3150
3343ef86
YQ
31512014-06-24 Yao Qi <yao@codesourcery.com>
3152
3153 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3154 (arm_linux_init_abi): Set skip_trampoline_code with
3155 gdbarch_skip_trampoline_code instead of
3156 find_solib_trampoline_target.
3157
18d18ac8
YQ
31582014-06-24 Yao Qi <yao@codesourcery.com>
3159
3160 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3161 arm_skip_bx_reg returns non-zero.
3162
80d8d390
YQ
31632014-06-24 Yao Qi <yao@codesourcery.com>
3164
3165 * arm-tdep.c (arm_skip_bx_reg): New function.
3166 (arm_skip_stub): Call arm_skip_bx_reg.
3167
6a18a01c
DB
31682014-06-23 Don Breazeal <donb@codesourcery.com>
3169
3170 * MAINTAINERS: Add myself as write-after-approval maintainer.
3171
8e9db26e
PA
31722014-06-23 Pedro Alves <palves@redhat.com>
3173
3174 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3175 DR_CONTROL before setting DR0..DR3.
3176 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3177 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3178 bits of DR_CONTROL related to the debug register slot being
3179 disabled. If all slots are vacant, clear local slowdown as well,
3180 and assert DR_CONTROL is 0.
3181
70afc5b7
SC
31822014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3183
3184 * python/lib/gdb/command/xmethods.py
3185 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3186 current progspace only if the string "progspace" matches LOCUS_RE.
3187
840ed64d
JK
31882014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3189
3190 Fix --with-system-readline with readline-6.3 patch 5.
3191 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3192 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3193 types.
3194
26f2dc30
TT
31952014-06-20 Tom Tromey <tromey@redhat.com>
3196
3197 * dwarf2read.c (dw2_get_real_path): Use correct type in
3198 OBSTACK_CALLOC.
3199 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3200
125f8a3d
GB
32012014-06-20 Gary Benson <gbenson@redhat.com>
3202
3203 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3204 * common/glibc_thread_db.h: Likewise.
3205 * common/i386-cpuid.h: Likewise.
3206 * common/i386-gcc-cpuid.h: Likewise.
3207 * common/linux-btrace.h: Likewise.
3208 * common/linux-osdata.h: Likewise.
3209 * common/linux-procfs.h: Likewise.
3210 * common/linux-ptrace.h: Likewise.
3211 * common/mips-linux-watch.h: Likewise.
3212 * common/linux-btrace.c: Moved to nat.
3213 * common/linux-osdata.c: Likewise.
3214 * common/linux-procfs.c: Likewise.
3215 * common/linux-ptrace.c: Likewise.
3216 * common/mips-linux-watch.c: Likewise.
3217 * nat/gdb_thread_db.h: Moved from common.
3218 * nat/glibc_thread_db.h: Likewise.
3219 * nat/i386-cpuid.h: Likewise.
3220 * nat/i386-gcc-cpuid.h: Likewise.
3221 * nat/linux-btrace.c: Likewise.
3222 * nat/linux-btrace.h: Likewise.
3223 * nat/linux-osdata.c: Likewise.
3224 * nat/linux-osdata.h: Likewise.
3225 * nat/linux-procfs.c: Likewise.
3226 * nat/linux-procfs.h: Likewise.
3227 * nat/linux-ptrace.c: Likewise.
3228 * nat/linux-ptrace.h: Likewise.
3229 * nat/mips-linux-watch.c: Likewise.
3230 * nat/mips-linux-watch.h: Likewise.
3231 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3232 (object file files): Reordered.
3233 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3234 of glibc_thread_db.h.
3235
42995dbd
GB
32362014-06-20 Gary Benson <gbenson@redhat.com>
3237
3238 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3239 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3240 (i386_dr_low): Likewise.
3241 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3242 (i386_dr_low_set_addr): Likewise.
3243 (i386_dr_low_get_addr): Likewise.
3244 (i386_dr_low_can_set_control): Likewise.
3245 (i386_dr_low_set_control): Likewise.
3246 (i386_dr_low_get_control): Likewise.
3247 (i386_dr_low_get_status): Likewise.
3248 (i386_get_debug_register_length): Likewise.
3249 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3250 (i386_dr_low): Likewise.
3251 * nat/i386-dregs.c (i386-low.h): Remove include.
3252 (i386-nat.h): Likewise.
3253 (nat/i386-dregs.h): New include.
3254 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3255 (i386_dr_low_set_addr): Likewise.
3256 (i386_dr_low_get_addr): Likewise.
3257 (i386_dr_low_can_set_control): Likewise.
3258 (i386_dr_low_set_control): Likewise.
3259 (i386_dr_low_get_control): Likewise.
3260 (i386_dr_low_get_status): Likewise.
3261 (i386_get_debug_register_length): Likewise.
3262 (debug_hw_points): Likewise.
3263
3ed9baed
IB
32642014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3265
3266 * Makefile.in (SFILES): Add d-exp.y.
3267 (YYFILES): Add d-exp.c.
3268 (YYOBJ): Add d-exp.o.
3269 (local-maintainer-clean): Delete d-exp.c.
3270 * d-exp.y: New file.
3271 * d-lang.h (d_parse): New declaration.
3272 (d_error): New declaration.
3273 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3274 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3275 PREC_ORDER operators.
3276 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3277
78c164b0
YQ
32782014-06-19 Yao Qi <yao@codesourcery.com>
3279
3280 * gdbthread.h (any_running): Remove the declaration.
3281 * thread.c (any_running): Remove.
3282
f6e29b6e
YQ
32832014-06-19 Yao Qi <yao@codesourcery.com>
3284
3285 * gdbthread.h (struct thread_info) <state>: Change its type to
3286 'enum thread_state'. Update comments.
3287
034f788c
PA
32882014-06-19 Pedro Alves <palves@redhat.com>
3289
3290 * gdbthread.h (ALL_THREADS): Delete.
3291 (ALL_NON_EXITED_THREADS): New macro.
3292 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3293 instead of ALL_THREADS.
3294 * infrun.c (find_thread_needs_step_over)
3295 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3296 instead of ALL_THREADS.
3297 * record-btrace.c (record_btrace_open)
3298 (record_btrace_stop_recording, record_btrace_close)
3299 (record_btrace_is_replaying, record_btrace_resume)
3300 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3301 * remote.c (append_pending_thread_resumptions): Likewise.
3302 * thread.c (thread_apply_all_command): Likewise.
3303
46e33252
GB
33042014-06-19 Gary Benson <gbenson@redhat.com>
3305
3306 * i386-nat.c (i386_stopped_by_watchpoint):
3307 Use i386_dr_stopped_by_watchpoint.
3308 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3309 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3310
3a8ee006
GB
33112014-06-19 Gary Benson <gbenson@redhat.com>
3312
3313 * nat/i386-dregs.c: New file.
3314 * Makefile.in (i386-dregs.o): New rule.
3315 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3316 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3317 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3318 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3319 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3320 * config/i386/go32.mh (NATDEPFILES): Likewise.
3321 * config/i386/linux.mh (NATDEPFILES): Likewise.
3322 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3323 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3324 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3325 * i386-nat.h (debug_hw_points): New declaration.
3326 * i386-nat.c (breakpoint.h): Remove include.
3327 (command.h): Likewise.
3328 (target.h): Likewise.
3329 (gdb_assert.h): Likewise.
3330 (debug_hw_points): Made nonstatic.
3331 (debug_printf): Now in i386-dregs.c.
3332 (TARGET_HAS_DR_LEN_8): Likewise.
3333 (DR_CONTROL_SHIFT): Likewise.
3334 (DR_CONTROL_SIZE): Likewise.
3335 (DR_RW_EXECUTE): Likewise.
3336 (DR_RW_WRITE): Likewise.
3337 (DR_RW_READ): Likewise.
3338 (DR_RW_IORW): Likewise.
3339 (DR_LEN_1): Likewise.
3340 (DR_LEN_2): Likewise.
3341 (DR_LEN_4): Likewise.
3342 (DR_LEN_8): Likewise.
3343 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3344 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3345 (DR_ENABLE_SIZE): Likewise.
3346 (DR_LOCAL_SLOWDOWN): Likewise.
3347 (DR_GLOBAL_SLOWDOWN): Likewise.
3348 (DR_CONTROL_RESERVED): Likewise.
3349 (I386_DR_CONTROL_MASK): Likewise.
3350 (I386_DR_VACANT): Likewise.
3351 (I386_DR_LOCAL_ENABLE): Likewise.
3352 (I386_DR_GLOBAL_ENABLE): Likewise.
3353 (I386_DR_DISABLE): Likewise.
3354 (I386_DR_SET_RW_LEN): Likewise.
3355 (I386_DR_GET_RW_LEN): Likewise.
3356 (I386_DR_WATCH_HIT): Likewise.
3357 (i386_wp_op_t): Likewise.
3358 (i386_show_dr): Likewise.
3359 (i386_length_and_rw_bits): Likewise.
3360 (i386_insert_aligned_watchpoint): Likewise.
3361 (i386_remove_aligned_watchpoint): Likewise.
3362 (i386_handle_nonaligned_watchpoint): Likewise.
3363 (i386_update_inferior_debug_regs): Likewise.
3364 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3365 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3366 (i386_region_ok_for_watchpoint):
3367 Use i386_dr_region_ok_for_watchpoint.
3368 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3369
322a8e06
GB
33702014-06-19 Gary Benson <gbenson@redhat.com>
3371
3372 * i386-nat.c (i386_insert_hw_breakpoint): Use
3373 i386_insert_watchpoint.
3374 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3375
8f26655c
GB
33762014-06-19 Gary Benson <gbenson@redhat.com>
3377
3378 * i386-nat.c (i386_dr_show): Renamed to
3379 i386_show_dr and made static. All uses updated.
3380 (i386_dr_length_and_rw_bits): Renamed to
3381 i386_length_and_rw_bits and made static.
3382 All uses updated.
3383 (i386_dr_insert_aligned_watchpoint): Renamed to
3384 i386_insert_aligned_watchpoint and made static.
3385 All uses updated.
3386 (i386_dr_remove_aligned_watchpoint): Renamed to
3387 i386_remove_aligned_watchpoint and made static.
3388 All uses updated.
3389 (i386_dr_update_inferior_debug_regs): Renamed to
3390 i386_update_inferior_debug_regs and made static.
3391 All uses updated.
3392 * nat/i386-dregs.h (i386_dr_show): Removed.
3393 (i386_dr_length_and_rw_bits): Likewise.
3394 (i386_dr_insert_aligned_watchpoint): Likewise.
3395 (i386_dr_remove_aligned_watchpoint): Likewise.
3396 (i386_dr_update_inferior_debug_regs): Likewise.
3397
992c7d70
GB
33982014-06-19 Gary Benson <gbenson@redhat.com>
3399
3400 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3401 * configure: Regenerate.
3402 * config.in: Likewise.
3403 * main.c (signal.h): New include.
3404 (setup_alternate_signal_stack): New function.
3405 (captured_main): Call the above.
3406 * cp-support.c (signal.h): New include.
3407 (catch_demangler_crashes): New flag.
3408 (SIGJMP_BUF): New define.
3409 (SIGSETJMP): Likewise.
3410 (SIGLONGJMP): Likewise.
3411 (gdb_demangle_jmp_buf): New static global.
3412 (gdb_demangle_attempt_core_dump): Likewise.
3413 (gdb_demangle_signal_handler): New function.
3414 (gdb_demangle): If catch_demangler_crashes is set, install the
3415 above signal handler before calling bfd_demangle, and restore
3416 the original signal handler afterwards. Display the offending
3417 symbol and call demangler_warning the first time a segmentation
3418 fault is caught.
3419 (_initialize_cp_support): New maint set/show command.
3420
eae7090b
GB
34212014-06-19 Gary Benson <gbenson@redhat.com>
3422
3423 * utils.h (resource_limit_kind): New enum.
3424 (can_dump_core): New declaration.
3425 (warn_cant_dump_core): Likewise.
3426 (dump_core): Likewise.
3427 * utils.c (dump_core): Made nonstatic. Added new
3428 parameter "limit_kind".
3429 (can_dump_core): Made nonstatic. Moved printing code to...
3430 (warn_cant_dump_core): New function.
3431 (can_dump_core_warn): Likewise.
3432 (internal_vproblem): Replace calls to can_dump_core with
3433 calls to can_dump_core_warn. Supply new argument to each.
3434
57fcfb1b
GB
34352014-06-19 Gary Benson <gbenson@redhat.com>
3436
3437 * utils.h (demangler_vwarning): New declaration.
3438 (demangler_warning): Likewise.
3439 * utils.c (struct internal_problem)
3440 <user_settable_should_quit>: New field.
3441 <user_settable_should_dump_core>: Likewise
3442 (internal_error_problem): Add values for above new fields.
3443 (internal_warning_problem): Likewise.
3444 (demangler_warning_problem): New static global.
3445 (demangler_vwarning): New function.
3446 (demangler_warning): Likewise.
3447 (add_internal_problem_command): Selectively add commands.
3448 (_initialize_utils): New internal problem command.
3449 * maint.c (maintenance_demangler_warning): New function.
3450 (_initialize_maint_cmds): New command.
3451
17a40b44
TT
34522014-06-18 Tom Tromey <tromey@redhat.com>
3453
3454 * f-valprint.c (info_common_command_for_block): Update.
3455 * symtab.h (struct general_symbol_info) <common_block>: Now
3456 const.
3457
346d1dfe
TT
34582014-06-18 Tom Tromey <tromey@redhat.com>
3459
3460 * symtab.h (struct symtab) <blockvector>: Now const.
3461 * ada-lang.c (ada_add_global_exceptions): Update.
3462 * buildsym.c (augment_type_symtab): Update.
3463 * dwarf2read.c (dw2_lookup_symbol): Update.
3464 * jit.c (finalize_symtab): Update.
3465 * jv-lang.c (add_class_symtab_symbol): Update.
3466 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3467 Update.
3468 * objfiles.c (objfile_relocate1): Update.
3469 * psymtab.c (lookup_symbol_aux_psymtabs)
3470 (maintenance_check_psymtabs): Update.
3471 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3472 Update.
3473 * spu-tdep.c (spu_catch_start): Update.
3474 * symmisc.c (dump_symtab_1): Update.
3475 * symtab.c (lookup_global_symbol_from_objfile)
3476 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3477 (basic_lookup_transparent_type_quick)
3478 (basic_lookup_transparent_type, find_pc_sect_symtab)
3479 (find_pc_sect_line, search_symbols): Update.
3480 * block.c (find_block_in_blockvector): Make "bl" const.
3481 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3482 const.
3483 (blockvector_contains_pc): Make "bv" const.
3484 (block_for_pc_sect): Update.
3485 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3486 (blockvector_contains_pc): Update.
3487 * breakpoint.c (resolve_sal_pc): Update.
3488 * inline-frame.c (block_starting_point_at): Update.
3489
1834676b
TT
34902014-06-18 Tom Tromey <tromey@redhat.com>
3491
3492 * completer.c (complete_line): Make "line_buffer" const.
3493 * completer.h (complete_line): Update.
3494
ac1a991b
TT
34952014-06-18 Tom Tromey <tromey@redhat.com>
3496
3497 * symtab.c (add_macro_name): Remove unneeded cast.
3498
5bc98e52
TT
34992014-06-18 Tom Tromey <tromey@redhat.com>
3500
3501 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3502 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3503
8236def8
TT
35042014-06-18 Tom Tromey <tromey@redhat.com>
3505
3506 * probe.c (info_probes_for_ops): Make "arg" const.
3507 * probe.h (info_probes_for_ops): Update.
3508
3977b71f
TT
35092014-06-18 Tom Tromey <tromey@redhat.com>
3510
3511 * varobj.c (varobj_create): Update.
3512 * valops.c (value_of_this): Update.
3513 * tracepoint.c (add_local_symbols, scope_info): Update.
3514 * symtab.h (struct general_symbol_info) <block>: Now const.
3515 * symtab.c (skip_prologue_sal)
3516 (default_make_symbol_completion_list_break_on)
3517 (skip_prologue_using_sal): Update.
3518 * stack.h (iterate_over_block_locals)
3519 (iterate_over_block_local_vars): Update.
3520 * stack.c (print_frame_args): Update.
3521 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3522 parameter const.
3523 (get_selected_block): Make return type const.
3524 * python/py-frame.c (frapy_block): Update.
3525 * python/py-block.c (gdbpy_block_for_pc): Update.
3526 * p-exp.y (%union) <bval>: Now const.
3527 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3528 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3529 * m2-exp.y (%union) <bval>: Now const.
3530 * linespec.c (get_current_search_block): Make return type const.
3531 (create_sals_line_offset, find_label_symbols): Update.
3532 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3533 Update.
3534 (block_starting_point_at): Make "block" const.
3535 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3536 (check_exception_resume): Update.
3537 * guile/scm-frame.c (gdbscm_frame_block): Update.
3538 * guile/scm-block.c (gdbscm_lookup_block): Update.
3539 * frame.h (get_frame_block): Update.
3540 (get_selected_block): Make return type const.
3541 * frame.c (frame_id_inner): Update.
3542 * f-valprint.c (info_common_command_for_block)
3543 (info_common_command): Update.
3544 * dwarf2loc.c (dwarf2_find_location_expression)
3545 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3546 (locexpr_describe_location_piece): Update.
3547 * c-exp.y (%union) <bval>: Now const.
3548 * breakpoint.c (resolve_sal_pc): Update.
3549 * blockframe.c (get_frame_block):Make return type const.
3550 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3551 (block_innermost_frame): Update.
3552 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3553 (block_for_pc, block_for_pc_sect): Update.
3554 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3555 'pblock' const.
3556 (block_for_pc_sect, block_for_pc): Make return type const.
3557 * ax-gdb.c (gen_expr): Update.
3558 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3559 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3560 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3561 (ada_read_var_value): Update.
3562 * ada-exp.y (struct name_info) <block>: Now const.
3563 (%union): Likewise.
3564 (block_lookup): Constify.
3565
b9228891
GB
35662014-06-18 Gary Benson <gbenson@redhat.com>
3567
3568 * nat/i386-dregs.h: New file.
3569 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3570 * i386-nat.h (i386-dregs.h): New include.
3571 (DR_FIRSTADDR): Now in i386-dregs.h.
3572 (DR_LASTADDR): Likewise.
3573 (DR_NADDR): Likewise.
3574 (DR_STATUS): Likewise.
3575 (DR_CONTROL): Likewise.
3576 (i386_debug_reg_state): Likewise.
3577 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3578
a1aa2221
LM
35792014-06-18 Don Breazeal <donb@codesourcery.com>
3580
3581 * breakpoint.c (set_longjmp_breakpoint): Call
3582 momentary_breakpoint_from_master with additional argument.
3583 (set_longjmp_breakpoint_for_call_dummy): Call
3584 momentary_breakpoint_from_master with additional argument.
3585 (set_std_terminate_breakpoint): Call
3586 momentary_breakpoint_from_master with additional argument.
3587 (momentary_breakpoint_from_master): Add argument to function
3588 definition and use it to initialize structure member flag.
74228e77 3589 (clone_momentary_breakpoint): Call
a1aa2221
LM
3590 momentary_breakpoint_from_master with additional argument.
3591 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3592 member flags set in momentary_breakpoint_from_master.
3593
4be83cc2
GB
35942014-06-18 Gary Benson <gbenson@redhat.com>
3595
3596 * i386-nat.c (i386_show_dr): Renamed to
3597 i386_dr_show and made nonstatic. All uses updated.
3598 (i386_length_and_rw_bits): Renamed to
3599 i386_dr_length_and_rw_bits and made nonstatic.
3600 All uses updated.
3601 (i386_insert_aligned_watchpoint): Renamed to
3602 i386_dr_insert_aligned_watchpoint and made nonstatic.
3603 All uses updated.
3604 (i386_remove_aligned_watchpoint): Renamed to
3605 i386_dr_remove_aligned_watchpoint and made nonstatic.
3606 All uses updated.
3607 (i386_update_inferior_debug_regs): Renamed to
3608 i386_dr_update_inferior_debug_regs and made nonstatic.
3609 All uses updated.
3610
131aa0d4
GB
36112014-06-18 Gary Benson <gbenson@redhat.com>
3612
3613 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3614 (i386_dr_low_can_set_control): Likewise.
3615 (i386_dr_low_set_addr): Likewise.
3616 (i386_dr_low_set_control): Likewise.
3617 (i386_dr_low_get_addr): Likewise.
3618 (i386_dr_low_get_status): Likewise.
3619 (i386_dr_low_get_control): Likewise.
3620 (i386_insert_aligned_watchpoint): Use new macros.
3621 (i386_update_inferior_debug_regs): Likewise.
3622 (i386_stopped_data_address): Likewise.
3623
d9305f7f
GB
36242014-06-18 Gary Benson <gbenson@redhat.com>
3625
3626 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3627 New parameter. All uses updated.
3628
ea008da4
GB
36292014-06-18 Gary Benson <gbenson@redhat.com>
3630
3631 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3632 All uses updated.
3633
1b6d4134
GB
36342014-06-18 Gary Benson <gbenson@redhat.com>
3635
3636 * i386-nat.c (debug_printf): New macro.
3637 (i386_get_debug_register_length): Likewise.
3638 (TARGET_HAS_DR_LEN_8): Use above macro.
3639 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3640 and printf_unfiltered. Use phex to format values.
3641
9b4550ef
GB
36422014-06-18 Gary Benson <gbenson@redhat.com>
3643
3644 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3645 Make const.
3646
6e62758f
GB
36472014-06-18 Gary Benson <gbenson@redhat.com>
3648
3649 * i386-nat.c: Comment changes.
3650
51c79e94
GB
36512014-06-18 Gary Benson <gbenson@redhat.com>
3652
3653 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3654
3e11889a
GB
36552014-06-18 Gary Benson <gbenson@redhat.com>
3656
3657 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3658 (i386_insert_aligned_watchpoint): Likewise.
3659 (i386_remove_aligned_watchpoint): Likewise.
3660 (i386_handle_nonaligned_watchpoint): Likewise.
3661
fc6e2f03
GB
36622014-06-18 Gary Benson <gbenson@redhat.com>
3663
3664 * i386-nat.c: Whitespace changes.
3665
2afe7d50
SB
36662014-06-17 Samuel Bronson <naesten@gmail.com>
3667
3668 * MAINTAINERS: Update Roland McGrath's email address.
3669 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3670 Red Hat a while ago, and giving me a current address.
2afe7d50 3671
3bca49ee
TT
36722014-06-17 Tom Tromey <tromey@redhat.com>
3673
3674 * utils.h (savestring): Remove declaration.
3675
6e366df1
TT
36762014-06-17 Tom Tromey <tromey@redhat.com>
3677
3678 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3679
6be47f0c
KS
36802014-06-16 Keith Seitz <keiths@redhat.com>
3681
3682 PR mi/15863
3683 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3684 to update the varobj if inferior_ptid is null_ptid.
3685
7bc112c1
TT
36862014-06-16 Tom Tromey <tromey@redhat.com>
3687
3688 * target.h (struct target_ops) <to_info_proc>: Make parameter
3689 const.
3690 (target_info_proc): Update.
3691 * target.c (target_info_proc): Make "args" const.
3692 * procfs.c (procfs_info_proc): Update.
3693 * linux-tdep.c (linux_info_proc): Update.
3694 (linux_core_info_proc_mappings): Make "args" const.
3695 (linux_core_info_proc): Update.
3696 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3697 * gdbarch.c: Rebuild.
3698 * gdbarch.h: Rebuild.
3699 * corelow.c (core_info_proc): Update.
3700
fee354ee
TT
37012014-06-16 Tom Tromey <tromey@redhat.com>
3702
3703 * target.h (struct target_ops) <to_disconnect>: Make parameter
3704 const.
3705 (target_disconnect): Update.
3706 * target.c (target_disconnect): Make "args" const.
3707 * target-delegates.c: Rebuild.
3708 * remote.c (remote_disconnect): Update.
3709 * record.h (record_disconnect): Update.
3710 * record.c (record_disconnect): Update.
3711 * inf-child.c (inf_child_disconnect): Update.
3712
a30bf1f1
TT
37132014-06-16 Tom Tromey <tromey@redhat.com>
3714
3715 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3716 * target.c (debug_to_rcmd, default_rcmd): Update.
3717 * target-delegates.c: Rebuild.
3718 * remote.c (remote_rcmd): Update.
3719 * monitor.c (monitor_rcmd): Update.
3720
d03de421
PA
37212014-06-16 Pedro Alves <palves@redhat.com>
3722
3723 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3724 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3725 have OBJF_SHARED set.
3726 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3727 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3728 instead of OBJF_USERLOADED.
3729 * objfiles.h (OBJF_SHARED): Update comment.
3730 (userloaded_objfile_contains_address_p): Rename to ...
3731 (shared_objfile_contains_address_p): ... this, and update
3732 comments.
3733 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3734 new objfile.
3735 (remove_symbol_file_command): Skip objfiles that don't have
3736 OBJF_SHARED set.
3737
99f4262f
TT
37382014-06-16 Tom Tromey <tromey@redhat.com>
3739
3740 * minsyms.h (prim_record_minimal_symbol)
3741 (prim_record_minimal_symbol_and_info): Update comments.
3742
97d66cc6
EZ
37432014-06-14 Eli Zaretskii <eliz@gnu.org>
3744
3745 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3746 or --without-guile, according to how GDB was built.
3747
635c7e8a
TT
37482014-06-13 Tom Tromey <tromey@redhat.com>
3749
3750 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3751 to help_list.
3752 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3753 to help_list.
3754 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3755 help_list.
3756 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3757 help_list.Pass all_commands, not -1, to help_list.
3758 * cli/cli-dump.c (dump_command, append_command)
3759 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3760 (binary_dump_command, binary_append_command): Pass all_commands,
3761 not -1, to help_list.
3762 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3763 -1, to help_list.
3764 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3765 -1, to help_list.
3766 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3767 help_list.
3768 * top.c (set_history): Pass all_commands, not -1, to help_list.
3769 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3770 all_commands, not -1, to help_list.
3771 * symfile.c (overlay_command): Pass all_commands, not -1, to
3772 help_list.
3773 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3774 help_list.
3775 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3776 help_list.
3777 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3778 -1, to help_list.
3779 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3780 not -1, to help_list.
3781 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3782 not -1, to help_list.
3783 * maint.c (maintenance_command, maintenance_info_command)
3784 (maintenance_print_command, maintenance_set_cmd): Pass
3785 all_commands, not -1, to help_list.
3786 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3787 help_list.
3788 * language.c (set_check): Pass all_commands, not -1, to help_list.
3789 * infcmd.c (unset_command): Pass all_commands, not -1, to
3790 help_list.
3791 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3792 help_list.
3793 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3794 help_list.
3795 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3796 help_list.
3797 * breakpoint.c (save_command): Pass all_commands, not -1, to
3798 help_list.
3799 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3800 all_commands, not -1, to help_list.
3801
b94ade42
PL
38022014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3803
3804 * regcache.c (struct register_to_invalidate): New structure.
3805 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3806 functions.
3807 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3808
31f628ae
YQ
38092014-06-12 Yao Qi <yao@codesourcery.com>
3810
3811 * varobj.c (varobj_get_num_children): Call
3812 varobj_is_dynamic_p.
3813 (varobj_list_children): Likewise.
3814 (varobj_update): Likewise. Update comments.
3815
cde5ef40
YQ
38162014-06-12 Yao Qi <yao@codesourcery.com>
3817
3818 * varobj.c (varobj_pretty_printed_p): Rename to ...
3819 (varobj_is_dynamic_p): ... this. New function.
3820 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3821 (varobj_is_dynamic_p): Declare.
3822 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3823 (mi_print_value_p, varobj_update_one): Likewise.
3824
576ea091
YQ
38252014-06-12 Pedro Alves <pedro@codesourcery.com>
3826 Yao Qi <yao@codesourcery.com>
3827
3828 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3829 (varobj_get_iterator): Wrap up code for pretty-printer by
3830 "#if HAVE_PYTHON" and "#endif".
3831 (update_dynamic_varobj_children): Likewise.
3832
827f100c
YQ
38332014-06-12 Pedro Alves <pedro@codesourcery.com>
3834 Yao Qi <yao@codesourcery.com>
3835
3836 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3837 gdb_python_initialized is false. Move some code from varobj.c.
3838 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3839 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3840 (struct varobj_item): Moved to varobj-iter.h".
3841 (varobj_clear_saved_item): New function.
3842 (update_dynamic_varobj_children): Move python-related code to
3843 py-varobj.c.
3844 (free_variable): Call varobj_clear_saved_item and
3845 varobj_iter_delete.
3846
e5250216
YQ
38472014-06-12 Pedro Alves <pedro@codesourcery.com>
3848 Yao Qi <yao@codesourcery.com>
3849
3850 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3851 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3852 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3853 (py-varobj.o): New rule.
3854 * python/py-varobj.c: New file.
3855 * python/python-internal.h (py_varobj_get_iterator): Declare.
3856 * varobj-iter.h: New file.
3857 * varobj.c: Include "varobj-iter.h"
3858 (struct varobj) <child_iter>: Change its type from "PyObject *"
3859 to "struct varobj_iter *".
3860 <saved_item>: Likewise.
3861 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3862 [HAVE_PYTHON] (varobj_get_iterator): New function.
3863 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3864 python-specific code to python/py-varobj.c.
3865 (install_visualizer): Call varobj_iter_delete instead of
3866 Py_XDECREF.
3867 * varobj.h (varobj_ensure_python_env): Declare.
3868
5a2e0d6e
YQ
38692014-06-12 Yao Qi <yao@codesourcery.com>
3870
3871 * varobj.c (struct varobj_item): New structure.
3872 (create_child_with_value): Update declaration.
3873 (varobj_add_child): Replace arguments 'name' and 'value' with
3874 'item'. All callers updated.
3875 (install_dynamic_child): Likewise.
3876 (update_dynamic_varobj_children): Likewise.
3877 (varobj_add_child): Likewise.
3878 (create_child_with_value): Likewise.
3879
919b9a93
JB
38802014-06-11 Joel Brobecker <brobecker@adacore.com>
3881
3882 * NEWS: Create a new section for the next release branch.
3883 Rename the section of the current branch, now that it has
3884 been cut.
3885
71a55bdf
JB
38862014-06-11 Joel Brobecker <brobecker@adacore.com>
3887
3888 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3889 * version.in: Bump version to 7.8.50.DATE-cvs.
3890
364fe1f7
PA
38912014-06-11 Pedro Alves <palves@redhat.com>
3892
3893 PR remote/17028
3894 * ser-mingw.c (net_windows_socket_check_pending): New function.
3895 (net_windows_select_thread): Ignore spurious wakeups. Use
3896 net_windows_socket_check_pending.
3897 (net_windows_wait_handle): Check for pending events with
3898 ioctlsocket, through net_windows_socket_check_pending, instead of
3899 checking the socket's event.
3900
5a6c7709
SC
39012014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3902
3903 * python/python-internal.h (gdb_PyObject_GetAttrString)
3904 (gdb_PyObject_HasAttrString): New inline function definitions.
3905 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3906 char * of the second argument to PyObject_GetAttrString.
74228e77 3907
0e58ee40
JB
39082014-06-10 Joel Brobecker <brobecker@adacore.com>
3909
3910 * serial.c (serial_write): Fix index of character to be printed
3911 in call to serial_logchar when serial debug traces are enabled.
3912
d190df30
JB
39132014-06-10 Joel Brobecker <brobecker@adacore.com>
3914
3915 * gdbtypes (resolve_dynamic_range): Add function description.
3916
b4b01d36
PA
39172014-06-09 Pedro Alves <palves@redhat.com>
3918
3919 * linux-nat.c (linux_child_follow_fork): Initialize status with
3920 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3921 inner block. Only pass the signal to PTRACE_DETACH if in pass
3922 state.
3923
3657956b
GB
39242014-06-09 Gary Benson <gbenson@redhat.com>
3925
3926 * common/signals.c (gdb_signal_from_host): Reorder to separate
3927 the always-available ANSI-standard signals from the signals that
3928 require checking.
3929 (do_gdb_signal_to_host): Likewise.
3930 * proc-events.c (signal_table): Likewise.
3931
c077881a
HZ
39322014-06-08 Hui Zhu <hui@codesourcery.com>
3933
3934 * common/linux-ptrace.c (linux_disable_event_reporting): New
3935 function.
3936 * common/linux-ptrace.h (linux_disable_event_reporting): New
3937 declaration.
3938 * linux-nat.c (linux_child_follow_fork): Do a single step before
3939 detach.
3940
4186eb54
KS
39412014-06-07 Keith Seitz <keiths@redhat.com>
3942
3943 Revert:
3944 PR c++/16253
3945 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3946 from symbol_matches_domain in symtab.c. All local callers
3947 of symbol_matches_domain updated.
3948 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3949 search STRUCT_DOMAIN.
3950 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3951 independently. standard_lookup will do that automatically.
3952 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3953 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3954 (cp_lookup_symbol_in_namespace): Likewise.
3955 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3956 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3957 may return a STRUCT_DOMAIN match.
3958 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3959 * cp-support.c: Include language.h.
3960 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3961 VAR_DOMAIN.
3962 * psymtab.c (match_partial_symbol): Compare the requested
3963 domain with the symbol's domain directly.
3964 (lookup_partial_symbol): Likewise.
3965 * symtab.c (lookup_symbol_in_language): Explain when/why
3966 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3967 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3968 appropriate languages.
3969 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3970 and moved to ada-lang.c
3971 (lookup_block_symbol): Explain that this function only returns
3972 symbol matching the requested DOMAIN.
3973 Compare the requested domain with the symbol's domain directly.
3974 (iterate_over_symbols): Compare the requested domain with the
3975 symbol's domain directly.
3976 * symtab.h (symbol_matches_domain): Remove.
3977
25326a28 39782014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3979
3980 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3981 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3982 (gdbscm_guile_version_is_at_least): Declare.
3983 (gdbscm_scm_string_to_int): Declare.
3984 * guile/guile.c (gdbscm_guile_major_version): New global.
3985 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3986 (guile_datadir): New static global.
3987 (gdbscm_guile_data_directory): New function.
3988 (initialize_scheme_side): Update.
3989 (misc_guile_functions): Add guile-data-directory.
3990 (initialize_gdb_module): Fetch guile version number.
3991 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3992 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3993 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3994 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3995 comments.
3996 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3997 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3998 * guile/scm-value.c (gdbscm_value_to_string): Only call
3999 scm_port_conversion_strategy if Guile version >= 2.0.6.
4000
0a770bb2 40012014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4002
4003 * main.c (print_gdb_help): Add -q and --silent.
4004
73ba372c
GB
40052014-06-06 Gary Benson <gbenson@redhat.com>
4006
4007 * common/signals.c: Remove preprocessor conditionals for
4008 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4009 SIGSEGV and SIGTERM.
4010 * proc-events.c: Likewise.
4011
c33b2f12
MM
40122014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4013
4014 * symfile.c (symfile_free_objfile): Remove restriction to
4015 OBJF_USERLOADED.
4016 * symfile-mem.c (symbol_file_add_from_memory): Call
4017 add_target_sections_of_objfile.
4018
fb934770
LC
40192014-06-05 Ludovic Courtès <ludo@gnu.org>
4020
4021 * guile/scm-value.c (gdbscm_history_append_x): Use
4022 'vlscm_get_value_smob_arg_unsafe' instead of
4023 'vlscm_scm_to_value'.
4024
6ef284bd
SM
40252014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4026
4027 PR mi/15806
4028 * utils.c (printchar): Don't escape at all if quoter is NUL.
4029 Update function documentation to clarify effect of parameter
4030 QUOTER.
4031 * remote.c (escape_buffer): Pass '\\' as the quoter to
4032 fputstrn_unfiltered.
4033 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4034 generate the output.
4035 (mi_solib_unloaded): Same.
4036
270c9937
JB
40372014-06-05 Joel Brobecker <brobecker@adacore.com>
4038
4039 * development.sh: Delete.
4040 * Makefile.in (config.status): Adjust dependency on development.sh.
4041 * configure.ac: Adjust development.sh source call.
4042 * configure: Regenerate.
4043
16f691fb
DE
40442014-06-04 Doug Evans <xdje42@gmail.com>
4045
4046 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4047 is_scheme_bkpt, spec.
4048 (bpscm_make_breakpoint_smob): Initialize new members.
4049 (gdbscm_create_breakpoint_x): Split into two ...
4050 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4051 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4052 (scheme_function breakpoint_functions): Update.
4053 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4054 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4055 register-breakpoint!.
4056
ef7cab6b
JB
40572014-06-04 Joel Brobecker <brobecker@adacorer.com>
4058
4059 PR server/17023
4060 * mem-break.c (z_type_supported): Return zero if
4061 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4062
012370f6
TT
40632014-06-04 Tom Tromey <tromey@redhat.com>
4064
4065 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4066 value_from_contents_and_address_unresolved.
4067 (ada_template_to_fixed_record_type_1): Likewise.
4068 (ada_which_variant_applies): Likewise.
4069 * value.h (value_from_contents_and_address_unresolved): Declare.
4070 * value.c (value_from_contents_and_address_unresolved): New
4071 function.
4072 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4073 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4074 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4075
92e2a17f
TT
40762014-06-04 Tom Tromey <tromey@redhat.com>
4077
4078 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4079
c0939df1
TT
40802014-06-04 Tom Tromey <tromey@redhat.com>
4081
4082 * procfs.c (procfs_attach): Make "args" const.
4083 * windows-nat.c (windows_attach): Make "args" const.
4084 * nto-procfs.c (procfs_attach): Make "args" const.
4085 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4086 * go32-nat.c (go32_attach): Make "args" const.
4087 * gnu-nat.c (gnu_attach): Make "args" const.
4088 * darwin-nat.c (darwin_attach): Make "args" const.
4089 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4090 * linux-nat.c (linux_nat_attach): Make "args" const.
4091 * remote.c (extended_remote_attach_1, extended_remote_attach):
4092 Make "args" const.
4093 * target.h (struct target_ops) <to_attach>: Make "args" const.
4094 (find_default_attach): Likewise.
4095 * utils.c (parse_pid_to_attach): Make "args" const.
4096 * utils.h (parse_pid_to_attach): Update.
4097
8eaff7cd
TT
40982014-06-04 Tom Tromey <tromey@redhat.com>
4099
4100 * target-delegates.c: Rebuild.
4101 * target.c (default_thread_address_space): New function.
4102 (target_thread_address_space): Simplify.
4103 * target.h (struct target_ops) <to_thread_address_space>: Add
4104 TARGET_DEFAULT_FUNC.
4105
1913f160
DE
41062014-06-04 Doug Evans <xdje42@gmail.com>
4107
4108 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4109
70ad5bff
MM
41102014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4111
4112 * record-btrace.c: Include event-loop.h and inf-loop.h.
4113 (record_btrace_resume_exec_dir)
4114 (record_btrace_async_inferior_event_handler)
4115 (record_btrace_handle_async_inferior_event): New.
4116 (record_btrace_open): Create async event handler.
4117 (record_btrace_close): Delete async event handler.
4118 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4119 Mark async event handler.
4120 (record_btrace_execution_direction): New.
4121 (init_record_btrace_ops): Initialize to_execution_direction.
4122
b6210538
DE
41232014-06-03 Doug Evans <xdje42@gmail.com>
4124
4125 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4126 (gdbscm_make_parameter): Ditto.
4127
a5b1fd27
DE
41282014-06-03 Doug Evans <dje@google.com>
4129
4130 * exec.c (exec_close_1): Call clear_section_table instead of
4131 resize_section_table.
4132 (clear_section_table): New function.
4133 (resize_section_table): Make static. Rename arg num_added to
4134 adjustment.
4135 * exec.h (clear_section_table): Declare.
4136 (resize_section_table): Delete.
4137 * progspace.c (release_program_space): Call clear_section_table
4138 instead of resize_section_table.
4139
0c6e92a5
SC
41402014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4141
4142 * NEWS (Python Scripting): Add entry about the new xmethods
4143 feature.
4144
883964a7
SC
41452014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4146
4147 * python/py-xmethods.c: New file.
4148 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4149 (objfpy_dealloc): XDECREF on the new xmethods field.
4150 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4151 field.
4152 (objfpy_get_xmethods): New function.
4153 (objfile_getset): New entry 'xmethods'.
4154 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4155 (pspy_dealloc): XDECREF on the new xmethods field.
4156 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4157 field.
4158 (pspy_get_xmethods): New function.
4159 (pspace_getset): New entry 'xmethods'.
4160 * python/python-internal.h: Add declarations for new functions.
4161 * python/python.c (_initialize_python): Invoke
4162 gdbpy_initialize_xmethods.
4163 * python/lib/gdb/__init__.py (xmethods): New
4164 attribute.
4165 * python/lib/gdb/xmethod.py: New file.
4166 * python/lib/gdb/command/xmethods.py: New file.
4167
58992dc5
SC
41682014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4169
4170 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4171 best match method returned by find_overload_match is an xmethod.
4172 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4173 the best matching operator returned by find_overload_match is an
4174 xmethod.
4175 * valops.c: #include "extension.h".
4176 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4177 Return void. The list of matching source methods is returned in
4178 "fn_list" and a vector of matching debug method workers is
4179 returned in "xm_worker_vec". Update all callers.
4180 (value_find_oload_method_list): Likewise.
4181 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4182 non-NULL, then the index of the best matching method in this
4183 vector is returned. Update all callers.
4184 (find_overload_match): Include xmethods while performing overload
4185 resolution.
4186
e81e7f5e
SC
41872014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4188
4189 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4190 * extension-priv.h (struct extension_language_ops): Add the
4191 xmethod interface.
4192 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4193 get_matching_xmethod_workers, get_xmethod_argtypes,
4194 invoke_xmethod, free_xmethod_worker,
4195 free_xmethod_worker_vec): New functions.
4196 * extension.h: #include "common/vec.h".
4197 New function declarations.
4198 (struct xmethod_worker): New struct.
4199 (VEC (xmethod_worker_ptr)): New vector type.
4200 (xmethod_worker_ptr): New typedef.
4201 (xmethod_worker_vec): Likewise.
4202 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4203 builtin_type.
4204 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4205 (struct builtin_type): New field "xmethod".
4206 * valarith.c (value_ptradd): Assert that the value argument is not
4207 lval_xcallable.
4208 * valops.c (value_must_coerce_to_target): Return 0 for
4209 lval_xcallable values.
4210 * value.c (struct value): New field XM_WORKER in the field
4211 LOCATION.
4212 (value_address, value_raw_address): Return 0 for lval_xcallable
4213 values.
4214 (set_value_address): Assert that the value is not an
4215 lval_xcallable.
4216 (value_free): Free the associated xmethod worker when freeing
4217 lval_xcallable values.
4218 (set_value_component_location): Assert that the WHOLE value is not
4219 lval_xcallable.
4220 (value_of_xmethod, call_xmethod): New functions.
4221 * value.h: Declare "struct xmethod_worker".
4222 Declare new functions value_of_xmethod, call_xmethod.
4223
ef370185
JB
42242014-06-03 Joel Brobecker <brobecker@adacore.com>
4225 Pedro Alves <palves@redhat.com>
4226
4227 PR breakpoints/17000
4228 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4229 New function, extracted from software_breakpoint_inserted_here_p.
4230 (software_breakpoint_inserted_here_p): Replace factored out code
4231 by call to find_non_raw_software_breakpoint_inserted_here.
4232 (bp_target_info_copy_insertion_state): New function.
4233 (bkpt_insert_location): Handle the case of a single-step
4234 breakpoint already inserted at the same address.
4235 (bkpt_remove_location): Handle the case of a single-step
4236 breakpoint still inserted at the same address.
4237 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4238 breakpoint already inserted at the same address.
4239 (deprecated_remove_raw_breakpoint): Handle the case of a
4240 non-raw breakpoint still inserted at the same address.
4241 (find_single_step_breakpoint): New function, extracted from
4242 single_step_breakpoint_inserted_here_p.
4243 (find_single_step_breakpoint): New function,
4244 factored out from single_step_breakpoint_inserted_here_p.
4245 (single_step_breakpoint_inserted_here_p): Reimplement.
4246
1e2ccb61
BM
42472014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4248
4249 Pushed by Joel Brobecker <brobecker@adacore.com>
4250 * source.c (show_substitute_path_command): Fix display of matching
4251 substitution rules.
4252
d3448d85
GB
42532014-06-03 Gary Benson <gbenson@redhat.com>
4254
4255 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4256
06eb1586
DE
42572014-06-02 Doug Evans <xdje42@gmail.com>
4258
4259 Add parameter support for Guile.
4260 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4261 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4262 (scm-param.o): New rule.
4263 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4264 (gdbscm_misc_error): Declare.
4265 (gdbscm_canonicalize_command_name): Declare.
4266 (gdbscm_scm_to_host_string): Declare.
4267 (gdbscm_scm_from_host_string): Declare.
4268 (gdbscm_initialize_parameters): Declare.
4269 * guile/guile.c (initialize_gdb_module): Call
4270 gdbscm_initialize_parameters.
4271 * guile/lib/gdb.scm: Export parameter symbols.
4272 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4273 cmdscm_canonicalize_name and made public. All callers updated.
4274 * guile/scm-exception.c (gdbscm_misc_error): New function.
4275 * guile/scm-param.c: New file.
4276 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4277 (gdbscm_scm_to_host_string): New function.
4278 (gdbscm_scm_from_host_string): New function.
4279 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4280
e698b8c4
DE
42812014-06-02 Doug Evans <xdje42@gmail.com>
4282
4283 Add command support for Guile.
4284 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4285 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4286 (scm-cmd.o): New rule.
4287 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4288 (gdbscm_user_error_p): Declare.
4289 (gdbscm_parse_command_name): Declare.
4290 (gdbscm_valid_command_class_p): Declare.
4291 (gdbscm_initialize_commands): Declare.
4292 * guile/guile.c (initialize_gdb_module): Call
4293 gdbscm_initialize_commands.
4294 * guile/lib/gdb.scm: Export command symbols.
4295 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4296 (throw-user-error): New function.
4297 * guile/scm-cmd.c: New file.
4298 * guile/scm-exception.c (user_error_symbol): New static global.
4299 (gdbscm_user_error_p): New function.
4300 (gdbscm_initialize_exceptions): Set user_error_symbol.
4301 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4302
fb1f94b0
PM
43032014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4304
4305 * top.c (command_loop): Handle comments here...
4306 (command_line_input): ... not here.
4307
ded03782
DE
43082014-06-02 Doug Evans <xdje42@gmail.com>
4309
4310 Add progspace support for Guile.
4311 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4312 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4313 (scm-progspace.o): New rule.
4314 * guile/guile-internal.h (pspace_smob): New typedef.
4315 (psscm_pspace_smob_pretty_printers): Declare.
4316 (psscm_pspace_smob_from_pspace): Declare.
4317 (psscm_scm_from_pspace): Declare.
4318 * guile/guile.c (initialize_gdb_module): Call
4319 gdbscm_initialize_pspaces.
4320 * guile/lib/gdb.scm: Export progspace symbols.
4321 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4322 support.
4323 (append-pretty-printer!): Ditto.
4324 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4325 Implement.
4326 * guile/scm-progspace.c: New file.
4327
397998fc
AM
43282014-06-03 Alan Modra <amodra@gmail.com>
4329
4330 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4331 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4332
6aa5f3a6
DE
43332014-06-02 Doug Evans <dje@google.com>
4334
4335 Add support for skeletonless type units.
4336 * dwarf2read.c (struct dwarf2_per_objfile): New member
4337 n_allocated_type_units.
4338 (struct dwarf2_per_objfile) <tu_stats>: New member
4339 nr_all_type_units_reallocs.
4340 (create_signatured_type_table_from_index): Initialize
4341 n_allocated_type_units
4342 (create_all_type_units): Ditto.
4343 (add_type_unit): Move up in file. New arg slot.
4344 All callers updated. Increase space for all_type_units more
4345 efficiently.
4346 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4347 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4348 (lookup_dwp_signatured_type): Ditto.
4349 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4350 All callers updated.
4351 (build_type_psymtabs_1): Leave type_unit_groups as
4352 NULL if no TUs present.
4353 (print_tu_stats): New function.
4354 (process_skeletonless_type_unit): New function.
4355 (process_dwo_file_for_skeletonless_type_units): New
4356 function.
4357 (process_skeletonless_type_units): New function.
4358 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4359 Call print tu_stats if debugging enabled.
4360
41fac0cf
PA
43612014-06-02 Pedro Alves <palves@redhat.com>
4362
4363 * breakpoint.c (build_target_command_list): Don't build a command
4364 list if we have any duplicate location that isn't a dprintf.
4365
cd1608cc
PA
43662014-06-02 Pedro Alves <palves@redhat.com>
4367
4368 * breakpoint.c (dprintf_breakpoint_hit): New function.
4369 (initialize_breakpoint_ops): Install it as dprintf's
4370 breakpoint_hit method.
4371
486ef3b9
JB
43722014-06-02 Joel Brobecker <brobecker@adacore.com>
4373
4374 * source.c (substitute_path_rule_matches): Simplify using
4375 filename_ncmp instead of FILENAME_CMP.
4376
230cd560
JB
43772014-06-02 Joel Brobecker <brobecker@adacore.com>
4378
4379 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4380
16954d5d
LC
43812014-06-01 Ludovic Courtès <ludo@gnu.org>
4382
4383 * configure.ac: When Guile is available, check for the
4384 availability of 'scm_new_smob'.
4385 * configure, config.h.in: Regenerate.
4386 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4387 function.
4388
53e8a631
AB
43892014-05-30 Andrew Burgess <aburgess@broadcom.com>
4390
4391 * frame.c (struct frame_info): Add stop_string field.
4392 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4393 (get_prev_frame_always): Old content moved into
4394 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4395 TRY_CATCH, handle MEMORY_ERROR exceptions.
4396 (frame_stop_reason_string): New function definition.
4397 * frame.h (unwind_stop_reason_to_string): Extend comment to
4398 mention frame_stop_reason_string.
4399 (frame_stop_reason_string): New function declaration.
4400 * stack.c (frame_info): Switch to frame_stop_reason_string.
4401 (backtrace_command_1): Switch to frame_stop_reason_string.
4402 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4403 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4404 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4405
70e38b8e
AB
44062014-05-30 Andrew Burgess <aburgess@broadcom.com>
4407
4408 * frame.c (frame_stop_reason_string): Rename to ...
4409 (unwind_stop_reason_to_string): this.
4410 * frame.h (frame_stop_reason_string): Rename to ...
4411 (unwind_stop_reason_to_string): this.
4412 * stack.c (frame_info): Update call to frame_stop_reason_string.
4413 (backtrace_command_1): Likewise.
4414 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4415 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4416
938f0e2f
AB
44172014-05-30 Andrew Burgess <aburgess@broadcom.com>
4418
4419 * frame.c (remove_prev_frame): New function.
4420 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4421 remove_prev_frame.
4422
a09dd441
PA
44232014-05-29 Pedro Alves <palves@redhat.com>
4424
4425 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4426 and make it const. When a single-step decays to a continue,
4427 clear 'step', not 'hw_step'. Pass whether the caller wanted
4428 to step to user_visible_resume_ptid, not what we ask the
4429 target to do.
4430
bdc36728
PA
44312014-05-29 Pedro Alves <palves@redhat.com>
4432
4433 * infrun.c (process_event_stop_test, handle_step_into_function)
4434 (handle_step_into_function_backward): Adjust.
4435 Don't set the even thread's stop_step and call stop_waiting before
4436 calling end_stepping_range. Instead do that ...
4437 (end_stepping_range): ... here. Take an ecs pointer parameter.
4438
22bcd14b
PA
44392014-05-29 Pedro Alves <palves@redhat.com>
4440
4441 * infrun.c (stop_stepping): Rename to ...
4442 (stop_waiting): ... this.
4443 (proceed): Update comment.
4444 (process_event_stop_test, handle_inferior_event)
4445 (handle_signal_stop, handle_step_into_function)
4446 (handle_step_into_function_backward): Update.
4447
4ae57c05
PA
44482014-05-29 Pedro Alves <palves@redhat.com>
4449
4450 * infcall.c (run_inferior_call): Don't check whether the current
4451 thread is running after the proceed call.
4452
329ea579
PA
44532014-05-29 Pedro Alves <palves@redhat.com>
4454 Tom Tromey <tromey@redhat.com>
4455
4456 * NEWS: Mention "maint set target-async", "set mi-async", and that
4457 background execution commands are now always available.
4458 * target.h (target_async_permitted): Update comment.
4459 * target.c (target_async_permitted, target_async_permitted_1):
4460 Default to 1.
4461 (set_target_async_command): Rename to ...
4462 (maint_set_target_async_command): ... this.
4463 (show_target_async_command): Rename to ...
4464 (maint_show_target_async_command): ... this.
4465 (_initialize_target): Adjust.
4466 * infcmd.c (prepare_execution_command): Make extern.
4467 * inferior.h (prepare_execution_command): Declare.
4468 * infrun.c (set_observer_mode): Leave target async alone.
4469 * mi/mi-interp.c (mi_interpreter_init): Install
4470 mi_on_sync_execution_done as sync_execution_done observer.
4471 (mi_on_sync_execution_done): New function.
4472 (mi_execute_command_input_handler): Don't print the prompt if we
4473 just started a synchronous command with an async target.
4474 (mi_on_resume): Check sync_execution before printing prompt.
4475 * mi/mi-main.h (mi_async_p): Declare.
4476 * mi/mi-main.c: Include gdbcmd.h.
4477 (mi_async_p): New function.
4478 (mi_async, mi_async_1): New globals.
4479 (set_mi_async_command, show_mi_async_command, mi_async): New
4480 functions.
4481 (exec_continue): Call prepare_execution_command.
4482 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4483 (mi_execute_async_cli_command): Use mi_async_p.
4484 (_initialize_mi_main): Install "set mi-async". Make
4485 "target-async" a deprecated alias.
4486
92bcb5f9
PA
44872014-05-29 Pedro Alves <palves@redhat.com>
4488
4489 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4490 (_initialize_cli_interp): Adjust.
4491 * event-loop.c: Include "observer.h".
4492 (start_event_loop): Notify 'command_error' observers instead of
4493 calling display_gdb_prompt. Remove FIXME comment.
4494 * event-top.c (display_gdb_prompt): Remove call into the
4495 interpreters.
4496 * inf-loop.c: Include "observer.h".
4497 (inferior_event_handler): Notify 'command_error' observers instead
4498 of calling display_gdb_prompt.
4499 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4500 observers instead of calling display_gdb_prompt.
4501 * interps.c (interp_set): Don't call display_gdb_prompt.
4502 (current_interp_display_prompt_p): Delete.
4503 * interps.h (interp_prompt_p): Delete declaration.
4504 (interp_prompt_p_ftype): Delete.
4505 (struct interp_procs) <prompt_proc_p>: Delete field.
4506 (current_interp_display_prompt_p): Delete declaration.
4507 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4508 (_initialize_mi_interp): Adjust.
4509 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4510 'command_error' observers.
4511 (tui_on_sync_execution_done, tui_on_command_error): New
4512 functions.
4513 (tui_display_prompt_p): Delete.
4514 (_initialize_tui_interp): Adjust.
4515
fd664c91
PA
45162014-05-29 Pedro Alves <palves@redhat.com>
4517
4518 PR gdb/13860
4519 * cli/cli-interp.c: Include infrun.h and observer.h.
4520 (cli_uiout, cli_interp): New globals.
4521 (cli_on_signal_received, cli_on_end_stepping_range)
4522 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4523 functions.
4524 (cli_interpreter_init): Install them as 'end_stepping_range',
4525 'signal_received' 'signal_exited', 'exited' and 'no_history'
4526 observers.
4527 (_initialize_cli_interp): Remove cli_interp local.
4528 * infrun.c (handle_inferior_event): Call the several stop reason
4529 observers instead of printing the stop reason directly.
4530 (end_stepping_range): New function.
4531 (print_end_stepping_range_reason, print_signal_exited_reason)
4532 (print_exited_reason, print_signal_received_reason)
4533 (print_no_history_reason): Make static, and add an uiout
4534 parameter. Print to that instead of to CURRENT_UIOUT.
4535 * infrun.h (print_end_stepping_range_reason)
4536 (print_signal_exited_reason, print_exited_reason)
4537 (print_signal_received_reason print_no_history_reason): New
4538 declarations.
4539 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4540 'mi_uiout'.
4541 <cli_uiout>: New field.
4542 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4543 uiout for CLI output. Install 'signal_received',
4544 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4545 observers.
4546 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4547 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4548 (mi_on_no_history): New functions.
4549 (ui_out_free_cleanup): Delete function.
4550 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4551 instead use the one already stored in the MI interpreter data.
4552 (mi_ui_out): Adjust.
4553 * tui/tui-interp.c: Include infrun.h and observer.h.
4554 (tui_interp): New global.
4555 (tui_on_signal_received, tui_on_end_stepping_range)
4556 (tui_on_signal_exited, tui_on_exited)
4557 (tui_on_no_history): New functions.
4558 (tui_init): Install them as 'end_stepping_range',
4559 'signal_received' 'signal_exited', 'exited' and 'no_history'
4560 observers.
4561 (_initialize_tui_interp): Delete tui_interp local.
4562
8817a6f2
PA
45632014-05-29 Pedro Alves <palves@redhat.com>
4564
4565 PR gdb/15713
4566 * linux-nat.c (linux_nat_resume_callback): Rename the second
4567 parameter to 'except'. Skip LP if it points to EXCEPT.
4568 (linux_nat_resume): Don't mark the event lwp as not stopped
4569 before resuming sibling lwps. Instead ask
4570 linux_nat_resume_callback to skip the event lwp. Mark it as not
4571 stopped after actually resuming it.
4572 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4573 resuming it.
4574 (wait_lwp): Mark the lwp as stopped here.
4575 (stop_wait_callback): Mark the lwp as not stopped right after
4576 resuming it. Don't mark lwps as stopped here.
4577 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4578 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4579
251bde03
PA
45802014-05-29 Pedro Alves <palves@redhat.com>
4581
4582 PR PR15693
4583 * infrun.c (resume): Determine how much to resume depending on
4584 whether the caller wanted a step, not whether we can hardware step
4585 the target. Mark all threads that we intend to run as running,
4586 unless we're calling an inferior function.
4587 (normal_stop): If the thread is running an infcall, don't finish
4588 thread state.
4589 * target.c (target_resume): Don't mark threads as running here.
4590
7f3c0343
JB
45912014-05-28 Joel Brobecker <brobecker@adacore.com>
4592
4593 * serial.c (_initialize_serial): Remove support for
4594 the "set remotebaud" and "show remotebaud" commands.
4595 * NEWS: Add entry documenting the removal of that command.
4596
ee34b3f9
YQ
45972014-05-28 Yao Qi <yao@codesourcery.com>
4598
4599 * charset.c: Fix typo in comments.
4600
add6c04d
GB
46012014-05-27 Gary Benson <gbenson@redhat.com>
4602
4603 * utils.c (internal_vproblem): Prompt for a bug report.
4604
92c48fc5
AW
46052014-05-26 Andy Wingo <wingo@igalia.com>
4606
4607 * guile/scm-arch.c (arscm_mark_arch_smob):
4608 * guile/scm-block.c (bkscm_mark_block_smob)
4609 (bkscm_mark_block_syms_progress_smob):
4610 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4611 * guile/scm-exception.c (exscm_mark_exception_smob):
4612 * guile/scm-frame.c (frscm_mark_frame_smob):
4613 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4614 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4615 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4616 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4617 (ppscm_mark_pretty_printer_worker_smob):
4618 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4619 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4620 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4621 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4622 mark functions.
4623 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4624 function.
4625
b2715b27
AW
46262014-05-26 Andy Wingo <wingo@igalia.com>
4627 Doug Evans <xdje42@gmail.com>
4628
4629 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4630 empty_base_class. All uses updated.
4631 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4632 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4633 Adapt all callers.
4634 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4635 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4636 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4637 (gdbscm_gsmob_has_property_p, add_property_name)
4638 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4639 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4640 (gdb-object-has-property?, gdb-object-properties): Remove.
4641 (gdb-object-kind): Renamed from gsmob-kind.
4642
214ab2da
AW
46432014-05-26 Andy Wingo <wingo@igalia.com>
4644
4645 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4646 * configure: Regenerate.
4647
589fdceb
MM
46482014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4649
4650 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4651
67b5c0c1
MM
46522014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4653
4654 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4655 (replay_memory_access_read_only, replay_memory_access_read_write)
4656 (replay_memory_access_types, replay_memory_access)
4657 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4658 (cmd_set_record_btrace, cmd_show_record_btrace)
4659 (cmd_show_replay_memory_access): New.
4660 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4661 (record_btrace_remove_breakpoint): Replace
4662 record_btrace_allow_memory_access with replay_memory_access.
4663 (_initialize_record_btrace): Add commands.
4664 * NEWS: Announce it.
4665
036cd381
RR
46662014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4667
4668 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4669
c77c1e42
RR
46702014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4671
4672 * MAINTAINERS (Write After Approval): Move self back from
4673 paper trail.
4674
45741a9c
PA
46752014-05-22 Pedro Alves <palves@redhat.com>
4676
4677 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4678 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4679 (disable_randomization, enum exec_direction_kind)
4680 (execution_direction, stop_registers, start_remote)
4681 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4682 (wait_for_inferior, normal_stop, get_last_target_status)
4683 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4684 (insert_step_resume_breakpoint_at_sal)
4685 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4686 (set_step_info, print_stop_event, signal_stop_state)
4687 (signal_print_state, signal_pass_state, signal_stop_update)
4688 (signal_print_update, signal_pass_update)
4689 (update_signals_program_target, clear_exit_convenience_vars)
4690 (displaced_step_dump_bytes, update_observer_mode)
4691 (signal_catch_update, gdb_signal_from_command): Move
4692 declarations ...
4693 * infrun.h: ... to this new file.
4694 * amd64-tdep.c: Include infrun.h.
4695 * annotate.c: Include infrun.h.
4696 * arch-utils.c: Include infrun.h.
4697 * arm-linux-tdep.c: Include infrun.h.
4698 * arm-tdep.c: Include infrun.h.
4699 * break-catch-sig.c: Include infrun.h.
4700 * breakpoint.c: Include infrun.h.
4701 * common/agent.c: Include infrun.h instead of inferior.h.
4702 * corelow.c: Include infrun.h.
4703 * event-top.c: Include infrun.h.
4704 * go32-nat.c: Include infrun.h.
4705 * i386-tdep.c: Include infrun.h.
4706 * inf-loop.c: Include infrun.h.
4707 * infcall.c: Include infrun.h.
4708 * infcmd.c: Include infrun.h.
4709 * infrun.c: Include infrun.h.
4710 * linux-fork.c: Include infrun.h.
4711 * linux-nat.c: Include infrun.h.
4712 * linux-thread-db.c: Include infrun.h.
4713 * monitor.c: Include infrun.h.
4714 * nto-tdep.c: Include infrun.h.
4715 * procfs.c: Include infrun.h.
4716 * record-btrace.c: Include infrun.h.
4717 * record-full.c: Include infrun.h.
4718 * remote-m32r-sdi.c: Include infrun.h.
4719 * remote-mips.c: Include infrun.h.
4720 * remote-notif.c: Include infrun.h.
4721 * remote-sim.c: Include infrun.h.
4722 * remote.c: Include infrun.h.
4723 * reverse.c: Include infrun.h.
4724 * rs6000-tdep.c: Include infrun.h.
4725 * s390-linux-tdep.c: Include infrun.h.
4726 * solib-irix.c: Include infrun.h.
4727 * solib-osf.c: Include infrun.h.
4728 * solib-svr4.c: Include infrun.h.
4729 * target.c: Include infrun.h.
4730 * top.c: Include infrun.h.
4731 * windows-nat.c: Include infrun.h.
4732 * mi/mi-interp.c: Include infrun.h.
4733 * mi/mi-main.c: Include infrun.h.
4734 * python/py-threadevent.c: Include infrun.h.
4735
98eb56a4
PA
47362014-05-22 Pedro Alves <palves@redhat.com>
4737
4738 * infrun.c (handle_inferior_event): Store the exit code for
4739 --return-child-result here, instead of ...
4740 (print_exited_reason): ... here.
4741
17b2616c
PA
47422014-05-21 Pedro Alves <palves@redhat.com>
4743
4744 PR gdb/13860
4745 * gdbthread.h (struct thread_control_state): New field
4746 `command_interp'.
4747 * infrun.c (follow_fork): Copy the new thread control field to the
4748 child fork thread.
4749 (clear_proceed_status_thread): Clear the new thread control field.
4750 (proceed): Set the new thread control field.
4751 * interps.h (command_interp): Declare.
4752 * interps.c (command_interpreter): New global.
4753 (command_interp): New function.
4754 (interp_exec): Set `command_interpreter' while here.
4755 * cli-out.c (cli_uiout_dtor): New function.
4756 (cli_ui_out_impl): Install it.
4757 * mi/mi-interp.c: Include cli-out.h.
4758 (mi_cmd_interpreter_exec): Add comment.
4759 (restore_current_uiout_cleanup): New function.
4760 (ui_out_free_cleanup): New function.
4761 (mi_on_normal_stop): If finishing an execution command started by
4762 a CLI command, or any kind of breakpoint-like event triggered,
4763 print the stop event to the output (CLI) stream.
4764 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4765
5166082f
PA
47662014-05-21 Pedro Alves <palves@redhat.com>
4767
4768 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4769 current source line having changed.
4770 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4771 * infrun.c (normal_stop): Adjust call to
4772 set_current_sal_from_frame.
4773 * source.c (clear_lines_listed_range): New function.
4774 (set_current_source_symtab_and_line, identify_source_line): Clear
4775 the lines listed range.
4776 (line_info): Handle the first "info line" after the current source
4777 line having changed.
4778 * stack.c (print_stack_frame): Remove center handling.
4779 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4780 center sal.line.
4781
c1ee2fb3
PA
47822014-05-21 Pedro Alves <palves@redhat.com>
4783
4784 * inf-child.c (inf_child_mourn_inferior): New function.
4785 * inf-child.h (inf_child_mourn_inferior): New declaration.
4786 * darwin-nat.c (darwin_mourn_inferior): Use
4787 inf_child_mourn_inferior.
4788 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4789 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4790 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4791 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4792 * windows-nat.c (windows_mourn_inferior): Likewise.
4793
5c6d4fb2
DE
47942014-05-21 Doug Evans <xdje42@gmail.com>
4795
250748cb 4796 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4797
4a2722c5
DE
47982014-05-21 Doug Evans <xdje42@gmail.com>
4799
17292b30 4800 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4801 (gdbscm_out_of_range_error): Ditto.
4802 (gdbscm_memory_error): Ditto.
250748cb
DE
4803 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4804 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4805 (gdbscm_out_of_range_error): Update.
4806 (gdbscm_memory_error): Update.
4807 (gdbscm_scm_to_target_string_unsafe): Delete.
4808
6a3cb8e8
PA
48092014-05-21 Pedro Alves <palves@redhat.com>
4810
4811 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4812 globals.
4813 (inf_child_open_target): New function.
4814 (inf_child_open): Use inf_child_open_target to push the target
4815 instead of erroring out.
4816 (inf_child_disconnect, inf_child_close)
4817 (inf_child_maybe_unpush_target): New functions.
4818 (inf_child_target): Install inf_child_disconnect and
4819 inf_child_close. Store a pointer to the returned object.
4820 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4821 declarations.
4822 * target.c (auto_connect_native_target): New global.
4823 (show_default_run_target): New function.
4824 (find_default_run_target): Return NULL if automatically connecting
4825 to the native target is disabled.
4826 (_initialize_target): Install set/show auto-connect-native-target.
4827 * NEWS: Mention "set auto-connect-native-target", and "target
4828 native".
4829 * linux-nat.c (super_close): New global.
4830 (linux_nat_close): Call super_close.
4831 (linux_nat_add_target): Store a pointer to the base class's
4832 to_close method.
4833 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4834 inf_child_maybe_unpush.
4835 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4836 already pushed.
4837 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4838 the inferior. Use inf_child_maybe_unpush_target.
4839 (inf_ttrace_attach): Don't push the target if it is already
4840 pushed.
4841 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4842 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4843 after mourning the inferior. Use inf_child_maybe_unpush_target.
4844 (darwin_attach_pid): Don't push the target if it is already
4845 pushed.
4846 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4847 mourning the inferior. Use inf_child_maybe_unpush_target.
4848 (gnu_detach): Use inf_child_maybe_unpush_target.
4849 * go32-nat.c (go32_create_inferior): Don't push the target if it
4850 is already pushed.
4851 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4852 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4853 (procfs_open): Rename to ...
4854 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4855 comments. Can target_preopen before changing node. Call
4856 inf_child_open_target to push the target explicitly.
4857 (procfs_attach): Don't push the target if it is already pushed.
4858 (procfs_detach): Use inf_child_maybe_unpush_target.
4859 (procfs_create_inferior): Don't push the target if it is already
4860 pushed.
4861 (nto_native_ops): New global.
4862 (procfs_open): Reimplement.
4863 (procfs_native_open): New function.
4864 (init_procfs_targets): Install procfs_native_open as to_open of
4865 "target native". Store a pointer to the "native" target in
4866 nto_native_ops.
4867 * procfs.c (procfs_attach): Don't push the target if it is already
4868 pushed.
4869 (procfs_detach): Use inf_child_maybe_unpush_target.
4870 (procfs_mourn_inferior): Only unpush the target after mourning the
4871 inferior. Use inf_child_maybe_unpush_target.
4872 (procfs_init_inferior): Don't push the target if it is already
4873 pushed.
4874 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4875 if it is already pushed.
4876
930ee1b1
PA
48772014-05-21 Pedro Alves <palves@redhat.com>
4878
4879 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4880 and "procfs" targets are now called "native" instead.
4881
1f5d1b13
PA
48822014-05-21 Pedro Alves <palves@redhat.com>
4883
4884 * go32-nat.c (go32_open): Delete.
4885 (go32_target): Don't override the to_open method.
4886
132f8e03
PA
48872014-05-21 Pedro Alves <palves@redhat.com>
4888
4889 * nto-procfs.c (procfs_can_run): New function.
4890 (nto_procfs_ops): New global.
4891 (init_procfs_targets): New, based on procfs_target. Install
4892 "target native" in addition to "target procfs".
4893 (_initialize_procfs): Call init_procfs_targets instead of adding
4894 the target here.
4895
03c136c3
PA
48962014-05-21 Pedro Alves <palves@redhat.com>
4897
4898 * windows-nat.c (windows_target): Don't override to_shortname,
4899 to_longname or to_doc.
4900
a635d0f3
PA
49012014-05-21 Pedro Alves <palves@redhat.com>
4902
4903 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4904 to_doc.
4905
4f9b5133
PA
49062014-05-21 Pedro Alves <palves@redhat.com>
4907
4908 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4909 to_shortname, to_longname or to_doc.
4910
bc85afde
PA
49112014-05-21 Pedro Alves <palves@redhat.com>
4912
4913 * go32-nat.c (go32_target): Don't override to_shortname,
4914 to_longname or to_doc.
4915
4ebfc96e
PA
49162014-05-21 Pedro Alves <palves@redhat.com>
4917
4918 * inf-child.c (inf_child_open): Remove mention of "child".
4919 (inf_child_target): Rename target to "native" instead of "child".
4920
2648dfed
AA
49212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4922
4923 * Makefile.in (SFILES): Delete "regset.c".
4924 (COMMON_OBS): Delete "regset.o".
4925 * regset.c: Remove.
4926 * regset.h (regset_alloc): Delete prototype.
4927
b13feb94
AA
49282014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4929
4930 * sparc-linux-tdep.c (sparc32_linux_gregset)
4931 (sparc32_linux_fpregset): New static regset structures.
4932 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4933 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4934 'fpregset' fields.
4935 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4936 (sparc64_linux_fpregset): New static regset structures.
4937 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4938 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4939 New static regset structures.
4940 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4941 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4942 New static regset structures.
4943 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4944 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4945 New static regset structures.
4946 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4947 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4948 New static regset structures.
4949 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4950
b4fd25c9
AA
49512014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4952
4953 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4954 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4955 register maps ("regmaps") from "*regset" to "*regmap". Do this
4956 for all regmap types and variables.
4957 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4958 (sparc32_linux_supply_core_gregset)
4959 (sparc32_linux_collect_core_gregset)
4960 (sparc32_linux_supply_core_fpregset)
4961 (sparc32_linux_collect_core_fpregset): Likewise.
4962 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4963 (sparc_gregmap, sparc_fpregmap): ... these.
4964 (sparc_supply_gregset, sparc_collect_gregset)
4965 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4966 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4967 (_initialize_sparc_nat): Rename regmaps.
4968 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4969 (sparc_gregmap, sparc_fpregmap): ... these.
4970 (sparc_supply_gregset, sparc_collect_gregset)
4971 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4972 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4973 Rename macros to...
4974 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4975 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4976 Likewise.
4977 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4978 Rename to...
4979 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4980 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4981 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4982 regmaps.
4983 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4984 (sparc32_bsd_fpregset): Rename to...
4985 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4986 (sparc32_bsd_fpregmap): ... these.
4987 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4988 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4989 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4990 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4991 (struct sparc_gregmap, struct sparc_fpregmap)
4992 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4993 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4994 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4995 (sparc32_supply_regset, sparc32_collect_gregset)
4996 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4997 prototypes.
4998 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4999 (sparc64_linux_ptrace_gregmap): ... this.
5000 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5001 (_initialize_sparc64_linux_nat): Rename regmaps.
5002 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5003 (sparc64_linux_core_gregmap): ... this.
5004 (sparc64_linux_supply_core_gregset)
5005 (sparc64_linux_collect_core_gregset)
5006 (sparc64_linux_supply_core_fpregset)
5007 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5008 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5009 (sparc64_sol2_fpregset): Rename to...
5010 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5011 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5012 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5013 regmaps.
5014 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5015 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5016 (sparc64_bsd_fpregset): Rename to...
5017 (struct sparc_gregmap, sparc64_sol2_gregmap)
5018 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5019 (sparc64_bsd_fpregmap): ... these.
5020 (sparc64_supply_gregset, sparc64_collect_gregset)
5021 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5022 prototypes.
5023 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5024 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5025 (sparc64fbsd_gregmap): ... this.
5026 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5027 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5028 Rename regmaps.
5029 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5030 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5031 (sparc64nbsd_collect_fpregset): Likewise.
5032 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5033 (sparc64nbsd_gregmap): ... this.
5034 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5035 regmaps.
5036 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5037 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5038 (sparc64obsd_gregmap): ... this.
5039 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5040 regmaps.
5041 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5042 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5043 (sparc32nbsd_gregmap): ... this.
5044 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5045 regmaps.
5046
8fea3224
AA
50472014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5048
5049 * score-tdep.c (score7_linux_gregset): New static regset
5050 structure.
5051 (score7_linux_regset_from_core_section): Remove dynamic regset
5052 allocation.
5053 (score_gdbarch_init): Drop allocation of tdep structure.
5054 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5055
24534243
AA
50562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5057
5058 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5059 regset structures.
5060 (am33_regset_from_core_section): Remove dynamic regset
5061 allocations.
5062
b7195f27
AA
50632014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5064
5065 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5066 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5067 structures.
5068 (mips_linux_regset_from_core_section): Remove dynamic regset
5069 allocations.
5070 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5071 'gregset64', 'fpregset', and 'fpregset64'.
5072 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5073 deleted tdep fields.
5074
ecc37a5a
AA
50752014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5076
5077 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5078 regset structures.
5079 (amd64_regset_from_core_section): Remove dynamic regset
5080 allocations.
5081 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5082 structure.
5083 (amd64obsd_regset_from_core_section): Remove dynamic regset
5084 allocation.
5085 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5086 Likewise.
5087 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5088 x86-common regset supply function.
5089 * i386-tdep.c (i386_collect_gregset): Make static.
5090 (i386_gregset): New global regset structure.
5091 (i386_fpregset, i386_xstateregset): New static regset structures.
5092 (i386_regset_from_core_section): Remove dynamic regset
5093 allocations.
5094 (i386_gdbarch_init): Remove initialization of tdep fields
5095 'gregset', 'fpregset', and 'xstateregset'.
5096 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5097 'fpregset', and 'xstateregset'.
5098 (i386_collect_gregset): Remove prototype.
5099 (i386_gregset): New declaration.
5100 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5101 structure.
5102 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5103 allocation.
5104
b7611c43
AA
51052014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5106
5107 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5108 (arm_linux_vfpregset): New static regset structures.
5109 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5110 regset structures.
5111 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5112 and 'vfpregset' fields.
5113
a069a2bd
AA
51142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5115
5116 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5117 (aarch64_linux_fpregset): New static regset structures.
5118 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5119 of regset structures.
5120 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5121 'fpregset' fields.
5122
09424cff
AA
51232014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5124
5125 * regset.h (struct regset): Remove gdbarch field.
5126 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5127 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5128 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5129 Likewise.
5130 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5131 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5132 (ppc32_linux_vsxregset): Likewise.
5133 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5134 via the regcache instead of the regset.
5135 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5136 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5137 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5138 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5139 Likewise.
5140
3ca7dae4
AA
51412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5142
5143 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5144 Constify structures.
5145 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5146 (alphanbsd_aout_gregset): Likewise.
5147 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5148 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5149 Likewise.
5150 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5151 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5152 Likewise.
5153 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5154 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5155 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5156 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5157 * m88k-tdep.c (m88k_gregset): Likewise.
5158 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5159 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5160 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5161 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5162 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5163 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5164 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5165 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5166 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5167 Likewise.
5168 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5169 * sh-tdep.h (sh_corefile_gregset): Likewise.
5170 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5171 * vax-tdep.c (vax_gregset): Likewise.
5172
5876f503
JK
51732014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5174
5175 Fix TLS access for -static -pthread.
5176 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5177 (try_thread_db_load_1): Initialize it.
5178 (thread_db_get_thread_local_address): Call it if LM is zero.
5179 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5180 * target.h (struct target_ops) (to_get_thread_local_address): Add
5181 load_module_addr comment.
5182
0256a6ac
PA
51832014-05-21 Pedro Alves <palves@redhat.com>
5184
5185 * dcache.c (dcache_read_memory_partial): If reading the cache line
5186 fails, fallback to reading just the memory the caller wanted.
5187
227533ac
DE
51882014-05-20 Doug Evans <dje@google.com>
5189
5190 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5191 instead of get_current_arch.
5192
936d2992
PA
51932014-05-20 Pedro Alves <palves@redhat.com>
5194
5195 * NEWS: Mention that compare-sections now works with all targets.
5196
5197 * remote.c (PACKET_qCRC): New enum value.
5198 (remote_verify_memory): Don't send qCRC if the target has no
5199 execution. Use packet_support/packet_ok. If the target doesn't
5200 support the qCRC packet, fallback to a deep memory copy.
5201 (compare_sections_command): Say "target image" instead of "remote
5202 executable".
5203 (_initialize_remote): Add PACKET_qCRC to the list of config
5204 packets that have no associated command. Extend comment.
5205 * target.c (simple_verify_memory, default_verify_memory): New
5206 function.
5207 * target.h (struct target_ops) <to_verify_memory>: Default to
5208 default_verify_memory.
5209 (simple_verify_memory): New declaration.
5210 * target-delegates.c: Regenerate.
5211
e59fa00f
MM
52122014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5213
5214 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5215
f2205de0
HZ
52162014-05-20 Hui Zhu <hui@codesourcery.com>
5217 Yao Qi <yao@codesourcery.com>
5218
5219 PR backtrace/16558
5220 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5221 and change address of sp and pc.
5222
c4e54771
TT
52232014-05-19 Tom Tromey <tromey@redhat.com>
5224
5225 * gdbtypes.c (rank_function): Use XNEWVEC.
5226 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5227
73051182
DE
52282014-05-19 Doug Evans <dje@google.com>
5229
5230 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5231 build_type_unit_groups and moved closer to only caller. Remove
5232 arguments. All references updated. Remove outdated .gdb_index
5233 comment.
5234 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5235 build_type_psymtabs_1.
5236
8832e7e3
DE
52372014-05-19 Doug Evans <dje@google.com>
5238
5239 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5240 n_type_unit_groups, all_type_unit_groups. All uses removed.
5241 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5242 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5243 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5244 (add_type_unit_group_to_table): Delete.
5245
cd8ae15e
DE
52462014-05-19 Doug Evans <dje@google.com>
5247
5248 * eval.c (evaluate_subexp_standard): Add some comments.
5249
08f4850b
DE
52502014-05-17 Doug Evans <xdje42@gmail.com>
5251
5252 * progspace.c (remove_program_space): Delete, unused.
5253 * progspace.h (remove_program_space): Ditto.
5254
bed8455c
DE
52552014-05-17 Doug Evans <xdje42@gmail.com>
5256
5257 * inferior.c (prune_inferiors): Fix comment.
5258 (remove_inferior_command): Call prune_program_spaces.
5259
8d551b02
DE
52602014-05-16 Doug Evans <dje@google.com>
5261
5262 New command line option -D.
5263 * NEWS: Mention it.
5264 * main.c (set_gdb_data_directory): New function.
5265 (captured_main): Recognize -D. Flag error for --data-directory "".
5266 Call set_gdb_data_directory.
5267 (print_gdb_help): Print --data-directory, -D.
5268 * main.h (set_gdb_data_directory): Declare.
5269 * top.c (staged_gdb_datadir): New static global.
5270 (set_gdb_datadir): Call set_gdb_data_directory
5271 (show_gdb_datadir): New function.
5272 (init_main): Update init of data-directory parameter.
5273
18848e28
GF
52742014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5275
5276 Import the "dirfd" gnulib module.
5277 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5278 * gnulib/aclocal.m4: Update.
5279 * gnulib/config.in: Update.
5280 * gnulib/configure: Update.
5281 * gnulib/import/Makefile.am: Update.
5282 * gnulib/import/Makefile.in: Update.
5283 * gnulib/import/dirfd.c: New.
5284 * gnulib/import/m4/dirfd.m4: New.
5285 * gnulib/import/m4/gnulib-cache.m4: Update.
5286 * gnulib/import/m4/gnulib-comp.m4: Update.
5287
95c64f92
YQ
52882014-05-16 Pierre Muller <muller@sourceware.org>
5289 Yao Qi <yao@codesourcery.com>
5290
5291 * valprint.c (print_wchar): Move the code on checking whether
5292 W is a printable wide char to the default branch of switch
5293 statement below. Call wchar_printable instead of gdb_iswprint.
5294
cac395ea
TM
52952014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5296
19679eca 5297 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
5298 ldr.w and ldrd instructions.
5299
83655187
DE
53002014-05-15 Doug Evans <dje@google.com>
5301
5302 * dwarf2read.c (read_structure_type): Delete outdated comments.
5303
dd756689
TT
53042014-05-14 Tom Tromey <tromey@redhat.com>
5305
5306 * macrocmd.c (print_macro_definition): Reindent.
5307
75ddda77
DE
53082014-05-13 Doug Evans <xdje42@gmail.com>
5309
5310 * python/py-cmd.c (cmdpy_completer): Add comment.
5311 (completers): Make const.
5312
b0f16a3e
SM
53132014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5314
5315 * infrun.c (resume): Remove should_resume (unused). Move up
5316 declaration of resume_ptid.
5317
033c3379
TT
53182014-05-13 Tom Tromey <tromey@redhat.com>
5319
5320 * language.h (unop_type_check): Remove.
5321 (binop_type_check): Don't declare.
5322
9b44a3a5
AA
53232014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5324
5325 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5326 call to regcache_raw_collect.
5327
303a33fa
SM
53282014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5329
5330 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5331 mi_console->quote as the quoting character.
5332
196100a0
SM
53332014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5334
5335 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5336
f989a1c8
TT
53372014-04-29 Tom Tromey <tromey@redhat.com>
5338
5339 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5340 "show debug varobj".
5341
9404b58f
KM
53422014-05-07 Kyle McMartin <kyle@redhat.com>
5343
5344 Pushed by Joel Brobecker <brobecker@adacore.com>.
5345 * aarch64-tdep.c (aarch64_software_single_step): New function.
5346 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5347 with aarch64_software_single_step.
5348
5e49ba57
JB
53492014-05-05 Joel Brobecker <brobecker@adacore.com>
5350
5351 GDB 7.7.1 released.
5352
c888a17d
KS
53532014-05-05 Keith Seitz <keiths@redhat.com>
5354
5355 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5356 variable or history value is successfully parsed.
5357
290a839c
YQ
53582014-05-05 Yao Qi <yao@codesourcery.com>
5359 Pedro Alves <palves@redhat.com>
5360
5361 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5362 address of blocks that intersects the requested range. Trim
5363 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5364 sections.
5365 * ctf.c (ctf_xfer_partial): Likewise.
5366
91256dc2
YQ
53672014-05-05 Yao Qi <yao@codesourcery.com>
5368
5369 * printcmd.c (display_command): Remove the check to
5370 target_has_execution.
5371
07284463
MK
53722014-05-03 Mark Kettenis <kettenis@gnu.org>
5373
5374 * ppcobsd-nat.c: Include "obsd-nat.h".
5375 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5376 add_target.
5377 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5378
30a1e6cc
SDJ
53792014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5380
5381 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5382 and 16-bit signed and unsigned arguments. Update comment.
5383 (stap_parse_probe_arguments): Extend code to handle such
5384 arguments. Use warning instead of complaint to notify about
5385 unrecognized bitness.
5386
f33da99a
SDJ
53872014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5388
5389 PR breakpoints/16889
5390 * stap-probe.c (stap_parse_probe_arguments): Simplify
5391 check for non-prefixed probes (i.e., probes whose
5392 arguments do not start with "N@"). Always set the
5393 argument type to a sane value.
5394
95cf3b38
DT
53952014-05-01 David Taylor <dtaylor@emc.com>
5396
5397 * remote.c (compare_sections_command): Add -r option to compare
5398 all loadable read-only sections.
5399
1cfdf534
SC
54002014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5401
5402 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5403 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5404 Update all callers.
5405 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5406 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5407 Remove unused CORE_ADDR argument. Update all callers.
5408
ca4f7f8b
PA
54092014-04-29 Pedro Alves <palves@redhat.com>
5410
5411 * remote.c (struct packet_config) <detect>: Extend comment.
5412 (add_packet_config_cmd): Don't set the config's detect or support
5413 fields here.
5414 (init_all_packet_configs): Also initialize the config's 'detect'
5415 field.
5416 (reset_all_packet_configs_support): New function.
5417 (remote_open_1): Call reset_all_packet_configs_support instead of
5418 init_all_packet_configs.
5419 (_initialize_remote): Initialize all packet configs. Assert that
5420 all packets have an associated command, except a few known
5421 outliers.
5422
11c1ba78
JB
54232014-04-28 Joel Brobecker <brobecker@adacore.com>
5424
5425 * dwarf2read.c (read_subrange_type): Handle dynamic
5426 DW_AT_lower_bound attributes.
5427
8739bc53
JB
54282014-04-28 Joel Brobecker <brobecker@adacore.com>
5429
5430 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5431 dynamic bounds before computing its upper bound.
5432 (ada_discrete_type_low_bound): Same as above with the lower bound.
5433
6f8a3220
JB
54342014-04-28 Joel Brobecker <brobecker@adacore.com>
5435
5436 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5437 range types. Adjust the array handling implementation to
5438 take advantage of this change.
5439 (resolve_dynamic_range): New function, mostly extracted from
5440 resolve_dynamic_bounds.
5441 (resolve_dynamic_array): New function, mostly extracted from
5442 resolve_dynamic_bounds.
5443 (resolve_dynamic_bounds): Delete.
5444 (resolve_dynamic_type): Reimplement. Add handling of
5445 TYPE_CODE_RANGE types.
5446
4d072ce4
JB
54472014-04-28 Joel Brobecker <brobecker@adacore.com>
5448
5449 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5450 handling of parallel ___XA types.
5451
52865325
JB
54522014-04-28 Joel Brobecker <brobecker@adacore.com>
5453
5454 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5455 unnecessary second call to static_unwrap_type.
5456
433e77fa
HZ
54572014-04-27 Hui Zhu <hui@codesourcery.com>
5458
5459 * stack.c (print_frame_info): Call do_gdb_disassembly with
5460 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5461
b51a69ee
DE
54622014-04-26 Doug Evans <xdje42@gmail.com>
5463
5464 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5465
7ae1a6a6
PA
54662014-04-25 Pedro Alves <palves@redhat.com>
5467
5468 PR server/16255
5469 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5470 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5471 and newline from built string.
5472 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5473 (linux_ptrace_attach_fail_reason): ... this.
5474 * linux-nat.c (linux_nat_attach): Adjust to use
5475 linux_ptrace_attach_fail_reason.
5476
4082afcc
PA
54772014-04-25 Pedro Alves <palves@redhat.com>
5478
5479 * remote.c (struct remote_state): Remove multi_process_aware,
5480 non_stop_aware, cond_tracepoints, cond_breakpoints,
5481 breakpoint_commands, fast_tracepoints, static_tracepoints,
5482 install_in_trace, disconnected_tracing,
5483 enable_disable_tracepoints, string_tracing, and
5484 augmented_libraries_svr4_read fields.
5485 (remote_multi_process_p): Move further below in the file.
5486 (struct packet_config): Add comments.
5487 (update_packet_config): Delete function.
5488 (show_packet_config_cmd): Use packet_config_support.
5489 (add_packet_config_cmd): Use NULL as set callback.
5490 (packet_ok): "set remote foo-packet"-style commands no longer
5491 change config->supported -- adjust.
5492 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5493 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5494 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5495 (PACKET_QNonStop, PACKET_multiprocess_feature)
5496 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5497 (PACKET_DisconnectedTracing_feature)
5498 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5499 (set_remote_protocol_packet_cmd): Delete function.
5500 (packet_config_support, packet_support): New functions.
5501 (set_remote_protocol_Z_packet_cmd): Don't call
5502 update_packet_config.
5503 (remote_query_attached, remote_pass_signals)
5504 (remote_program_signals, remote_threads_info)
5505 (remote_threads_extra_info, remote_start_remote): Use
5506 packet_support.
5507 (remote_start_remote): Use packet_config_support and
5508 packet_support.
5509 (init_all_packet_configs): Set all packets to unknown support,
5510 instead of calling update_packet_config.
5511 (remote_check_symbols): Use packet_support.
5512 (remote_supported_packet): Unconditionally set the packet config's
5513 support status.
5514 (remote_multi_process_feature, remote_non_stop_feature)
5515 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5516 (remote_breakpoint_commands_feature)
5517 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5518 (remote_install_in_trace_feature)
5519 (remote_disconnected_tracing_feature)
5520 (remote_enable_disable_tracepoint_feature)
5521 (remote_string_tracing_feature)
5522 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5523 (remote_protocol_features): Adjust to use remote_supported_packet
5524 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5525 "ConditionalTracepoints", "ConditionalBreakpoints",
5526 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5527 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5528 "EnableDisableTracepoints", and "tracenz".
5529 (remote_query_supported): Use packet_support.
5530 (remote_open_1): Adjust.
5531 (extended_remote_attach_1): Use packet_support. Switch on the
5532 result of packet_ok instead of checking whether the packet ended
5533 up disabled.
5534 (remote_vcont_resume): Use packet_support.
5535 (remote_resume, remote_stop_ns, fetch_register_using_p)
5536 (remote_prepare_to_store, store_register_using_P)
5537 (check_binary_download, remote_write_bytes): Use packet_support.
5538 (remote_vkill): Use packet_support. Switch on the result of
5539 packet_ok instead of checking whether the packet ended up
5540 disabled.
5541 (extended_remote_supports_disable_randomization): Use
5542 packet_support.
5543 (extended_remote_run): Switch on the result of packet_ok instead
5544 of checking whether the packet ended up disabled.
5545 (remote_insert_breakpoint, remote_remove_breakpoint)
5546 (remote_insert_watchpoint, remote_remove_watchpoint)
5547 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5548 packet_support.
5549 (remote_search_memory): Use packet_config_support.
5550 (remote_get_thread_local_address, remote_get_tib_address)
5551 (remote_hostio_send_command, remote_can_execute_reverse): Use
5552 packet_support.
5553 (remote_supports_cond_tracepoints)
5554 (remote_supports_cond_breakpoints)
5555 (remote_supports_fast_tracepoints)
5556 (remote_supports_static_tracepoints)
5557 (remote_supports_install_in_trace)
5558 (remote_supports_enable_disable_tracepoint)
5559 (remote_supports_string_tracing)
5560 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5561 the packet config says the feature is enabled or disabled.
5562 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5563 (remote_get_trace_status): Use packet_support.
5564 (remote_set_disconnected_tracing): Adjust to check whether the
5565 feature is enabled with packet_support.
5566 (remote_set_trace_buffer_size, remote_use_agent)
5567 (remote_can_use_agent, remote_supports_btrace): Use
5568 packet_support.
5569 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5570 Use packet_config_support.
5571 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5572 the packet config says the feature is enabled or disabled.
5573 (set_range_stepping): Use packet_support.
5574
bdb52a22
TT
55752014-04-25 Tom Tromey <tromey@redhat.com>
5576
5577 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5578 argument.
5579
e9475ead
SA
55802014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5581
5582 * NEWS: Mention support for C99 variable length arrays.
5583
82eacd52
JB
55842014-04-24 Joel Brobecker <brobecker@adacore.com>
5585
5586 * ada-lang.c (standard_exc): Expand introductory comment.
5587
01f9f808
MS
55882014-04-24 Michael Sturm <michael.sturm@mintel.com>
5589 Walfred Tedeschi <walfred.tedeschi@intel.com>
5590
5591 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5592 AVX512 registers.
5593 (amd64_linux_read_description): Add code to handle AVX512 xstate
5594 mask and return respective tdesc.
5595 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5596 and features/i386/x32-avx512-linux.c.
5597 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5598 (amd64_linux_core_read_description): Add code to handle AVX512
5599 xstate mask and return respective tdesc.
5600 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5601 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5602 calculation.
5603 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5604 (tdesc_amd64_avx512_linux): New prototype.
5605 (tdesc_x32_avx512_linux): Likewise.
5606 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5607 features/i386/x32-avx512.c.
5608 (amd64_ymm_avx512_names): New register names for pseudo
5609 registers YMM16-31.
5610 (amd64_ymmh_avx512_names): New register names for raw registers
5611 YMMH16-31.
5612 (amd64_k_names): New register names for K registers.
5613 (amd64_zmmh_names): New register names for ZMM raw registers.
5614 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5615 (amd64_xmm_avx512_names): New register names for XMM16-31
5616 registers.
5617 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5618 registers.
5619 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5620 if feature is present.
5621 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5622 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5623 (AMD64_NUM_REGS): Adjust to new number of registers.
5624 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5625 registers supplied via XSTATE by AVX512 registers.
5626 (i386_linux_read_description): Add case for AVX512.
5627 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5628 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5629 (i386_linux_core_read_description): Add case for AVX512.
5630 (i386_linux_init_abi): Install supported register note section
5631 for AVX512.
5632 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5633 AVX512.
5634 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5635 registers to be number of zmm7h + 1.
5636 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5637 * i386-tdep.c: Include features/i386/i386-avx512.c.
5638 (i386_zmm_names): Add ZMM pseudo register names array.
5639 (i386_zmmh_names): Add ZMM raw register names array.
5640 (i386_k_names): Add K raw register names array.
5641 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5642 registers. AVX512 has 16 more ZMM registers than there are YMM
5643 registers.
5644 (i386_zmmh_regnum_p): Add function to look up register number of
5645 ZMM raw registers.
5646 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5647 (i386_k_regnum_p): Likewise for K raw registers.
5648 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5649 registers added by AVX512.
5650 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5651 registers added by AVX512.
5652 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5653 added by AVX512.
5654 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5655 (i386_pseudo_register_name): Add ZMM pseudo registers.
5656 (i386_zmm_type): Construct and return vector registers type for ZMM
5657 registers.
5658 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5659 ZMM0-31 pseudo registers and K registers.
5660 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5661 and YMM16-31 registers from register cache.
5662 (i386_pseudo_register_write): Add code to write K, ZMM and
5663 YMM16-31 registers.
5664 (i386_register_reggroup_p): Add code to include/exclude AVX512
5665 registers in/from respective register groups.
5666 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5667 registers if feature is present in xcr0.
5668 (i386_gdbarch_init): Add code to initialize AVX512 feature
5669 variables in tdep structure, wire in pseudo registers and call
5670 initialize_tdesc_i386_avx512.
5671 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5672 variables.
5673 (i386_regnum): Add AVX512 registers.
5674 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5675 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5676 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5677 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5678 512 bits wide.
5679 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5680 (i386_ymm_avx512_regnum_p): Likewise.
5681 (i386_k_regnum_p): Likewise.
5682 (i386_zmm_regnum_p): Likewise.
5683 (i386_zmmh_regnum_p): Likewise.
5684 * i387-tdep.c : Update year in copyright notice.
5685 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5686 XSAVE buffer.
5687 (XSAVE_YMM_AVX512_ADDR): New macro.
5688 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5689 XSAVE buffer.
5690 (XSAVE_XMM_AVX512_ADDR): New macro.
5691 (xsave_avx512_k_offset): New table for K register offsets in
5692 XSAVE buffer.
5693 (XSAVE_AVX512_K_ADDR): New macro.
5694 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5695 in XSAVE buffer.
5696 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5697 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5698 buffer.
5699 (i387_collect_xsave): Add code to collect AVX512 registers from
5700 XSAVE buffer.
5701 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5702 of XMM16-31 registers.
5703 (I387_NUM_K_REGS): New define for number of K registers.
5704 (I387_K0_REGNUM): New define for K0 register number.
5705 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5706 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5707 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5708 registers.
5709 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5710 (I387_XMM16_REGNUM): New define for XMM16 register number.
5711 (I387_YMM0_REGNUM): New define for YMM0 register number.
5712 (I387_KEND_REGNUM): New define for last K register number.
5713 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5714 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5715 number.
5716 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5717 number.
5718 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5719 size.
5720 * features/Makefile: Add AVX512 related files.
5721 * features/i386/32bit-avx512.xml: New file.
5722 * features/i386/64bit-avx512.xml: Likewise.
5723 * features/i386/amd64-avx512-linux.c: Likewise.
5724 * features/i386/amd64-avx512-linux.xml: Likewise.
5725 * features/i386/amd64-avx512.c: Likewise.
5726 * features/i386/amd64-avx512.xml: Likewise.
5727 * features/i386/i386-avx512-linux.c: Likewise.
5728 * features/i386/i386-avx512-linux.xml: Likewise.
5729 * features/i386/i386-avx512.c: Likewise.
5730 * features/i386/i386-avx512.xml: Likewise.
5731 * features/i386/x32-avx512-linux.c: Likewise.
5732 * features/i386/x32-avx512-linux.xml: Likewise.
5733 * features/i386/x32-avx512.c: Likewise.
5734 * features/i386/x32-avx512.xml: Likewise.
5735 * regformats/i386/amd64-avx512-linux.dat: New file.
5736 * regformats/i386/amd64-avx512.dat: Likewise.
5737 * regformats/i386/i386-avx512-linux.dat: Likewise.
5738 * regformats/i386/i386-avx512.dat: Likewise.
5739 * regformats/i386/x32-avx512-linux.dat: Likewise.
5740 * regformats/i386/x32-avx512.dat: Likewise.
5741 * NEWS: Add note about new support for AVX512.
5742
5743
08351840
PA
57442014-04-23 Pedro Alves <palves@redhat.com>
5745
5746 * breakpoint.c (insert_bp_location): Tolerate errors if the
5747 breakpoint is set in a user-loaded objfile.
5748 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5749 location is marked shlib_disabled. If the breakpoint is set in a
5750 user-loaded objfile is a GDB-side memory breakpoint, validate it
5751 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5752 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5753 flag.
5754 * mem-break.c (memory_validate_breakpoint): New function.
5755 * objfiles.c (userloaded_objfile_contains_address_p): New
5756 function.
5757 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5758 * target.h (memory_validate_breakpoint): New declaration.
5759
076855f9
PA
57602014-04-23 Pedro Alves <palves@redhat.com>
5761
5762 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5763 the breakpoint is set in a shared library, only suppress
5764 errors for software breakpoints, not hardware breakpoints.
5765
483805cf
PA
57662014-04-22 Pedro Alves <palves@redhat.com>
5767
5768 * infrun.c (schedlock_applies): New function, factored out from
5769 find_thread_needs_step_over.
5770 (find_thread_needs_step_over): Use it.
5771 (switch_back_to_stepped_thread): Always clear trap_expected if the
5772 step over is finished. Return early if scheduler locking applies.
5773 Look for the stepping thread and a potential step-over thread with
5774 a single loop.
5775 (currently_stepping_or_nexting_callback): Delete.
5776
a75fef0e
NC
57772014-04-22 Nick Clifton <nickc@redhat.com>
5778
5779 * NEWS: Mention that ARM sim now supports tracing.
5780
48b6e87e
YQ
57812014-04-22 Yao Qi <yao@codesourcery.com>
5782
5783 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5784 to ...
5785 * tracefile.c (tracefile_fetch_registers): ... it. New
5786 function.
5787 * tracefile.h (tracefile_fetch_registers): Declare.
5788 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5789 tracefile_fetch_registers.
5790
17617f2d
EZ
57912014-04-19 Eli Zaretskii <eliz@gnu.org>
5792
5793 PR gdb/14018
5794 * windows-nat.c (thread_rec): Don't display a warning when
5795 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5796 fails for any reason, set th->suspended to -1, so that we don't
5797 try to resume such a thread. Also, don't return NULL in these
5798 cases, to avoid completely ruin the session due to "PC register is
5799 not available" error.
5800 (do_windows_fetch_inferior_registers): Check errors in
5801 GetThreadContext call.
5802 (windows_continue): Accept an additional argument KILLED; if not
5803 zero, ignore errors in the SetThreadContext call, since the
5804 inferior was killed and is shutting down.
5805 (windows_resume, get_windows_debug_event)
5806 (windows_create_inferior, windows_mourn_inferior)
5807 (windows_kill_inferior): All callers of windows_continue changed
5808 to adjust to its new calling sequence.
5809
5723a6fd
YQ
58102014-04-19 Yao Qi <yao@codesourcery.com>
5811
5812 * ctf.c (ctf_open): Call post_create_inferior.
5813
614d5099
YQ
58142014-04-19 Yao Qi <yao@codesourcery.com>
5815
5816 * ctf.c (handle_id): New static variable.
5817 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5818 value. Get the declaration of event "register" and get length
5819 of field "contents".
5820
dac3e710
YQ
58212014-04-19 Yao Qi <yao@codesourcery.com>
5822
5823 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5824
2bca57ba
SC
58252014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5826
5827 * valops.c (oload_method_static): Remove unnecessary argument
5828 METHOD. Update all callers.
5829
51d48146
PA
58302014-04-18 Pedro alves <palves@redhat.com>
5831 Tom Tromey <tromey@redhat.com>
5832
5833 PR backtrace/15558
5834 * frame.c (get_prev_frame_1): Rename to ...
5835 (get_prev_frame_always): ... this, and make extern. Adjust.
5836 (skip_artificial_frames): Use get_prev_frame_always.
5837 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5838 (get_frame_unwind_stop_reason): Adjust to rename.
5839 * frame.h (get_prev_frame_always): Declare.
5840 * inline-frame.c: Include frame.h.
5841 (inline_frame_this_id): Use get_prev_frame_always.
5842
1bdad2e0
TG
58432014-04-18 Tristan Gingold <gingold@adacore.com>
5844
5845 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5846 code by using bfd_mach_o_get_base_address.
5847
7ce16bd4
UW
58482014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5849
5850 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5851 (spu_ax_pseudo_register_collect): New function.
5852 (spu_ax_pseudo_register_push_stack): Likewise.
5853 (spu_dwarf_reg_to_regnum): Likewise.
5854 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5855
2ed3c037
UW
58562014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5857
5858 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5859 Replace FRAME argument with FRAME_ID.
5860 * gdbarch.c, gdbarch.h: Regenerate.
5861 * findvar.c (default_value_from_register): Add GDBARCH argument;
5862 replace FRAME by FRAME_ID. No longer call get_frame_id.
5863 (value_from_register): Update call to gdbarch_value_from_register.
5864 * value.h (default_value_from_register): Update prototype.
5865 * s390-linux-tdep.c (s390_value_from_register): Update interface
5866 and call to default_value_from_register.
5867 * spu-tdep.c (spu_value_from_register): Likewise.
5868
5869 * findvar.c (address_from_register): Remove TYPE argument.
5870 Do not call value_from_register; use gdbarch_value_from_register
5871 with null_frame_id instead.
5872 * value.h (address_from_register): Update prototype.
5873 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5874 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5875 address_from_register interface change.
5876
71e50e83
YQ
58772014-04-17 Yao Qi <yao@codesourcery.com>
5878
5879 * gdbtypes.h: Update comments to link to types and macros'
5880 definitions.
5881
7a23c549
SC
58822014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5883
5884 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5885
22869d73
KS
58862014-04-16 Keith Seitz <keiths@redhat.com>
5887
5888 PR gdb/15827
5889 * dwarf2read.c (skip_one_die): Check that all relative-offset
5890 sibling DIEs fall within range of the current reader's buffer.
5891 (read_partial_die): Likewise.
5892
c4f87ca6
KS
58932014-04-16 Keith Seitz <keiths@redhat.com>
5894
5895 PR c++/16597
5896 * cp-namespace.c (lookup_symbol_file): If the type name of
5897 `this' is NULL, return immediately.
5898
b50c8614
KS
58992014-04-14 Keith Seitz <keiths@redhat.com>
5900
5901 PR c++/16253
5902 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5903 from symbol_matches_domain in symtab.c. All local callers
5904 of symbol_matches_domain updated.
5905 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5906 search STRUCT_DOMAIN.
5907 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5908 independently. standard_lookup will do that automatically.
5909 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5910 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5911 (cp_lookup_symbol_in_namespace): Likewise.
5912 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5913 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5914 may return a STRUCT_DOMAIN match.
5915 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5916 * cp-support.c: Include language.h.
5917 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5918 VAR_DOMAIN.
5919 * psymtab.c (match_partial_symbol): Compare the requested
5920 domain with the symbol's domain directly.
5921 (lookup_partial_symbol): Likewise.
5922 * symtab.c (lookup_symbol_in_language): Explain when/why
5923 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5924 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5925 appropriate languages.
5926 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5927 and moved to ada-lang.c
5928 (lookup_block_symbol): Explain that this function only returns
5929 symbol matching the requested DOMAIN.
5930 Compare the requested domain with the symbol's domain directly.
5931 (iterate_over_symbols): Compare the requested domain with the
5932 symbol's domain directly.
5933 * symtab.h (symbol_matches_domain): Remove.
5934
3d567982
TT
59352014-04-14 Tom Tromey <tromey@redhat.com>
5936
5937 PR c++/15246:
5938 * c-exp.y (type_aggregate_p): New function.
5939 (qualified_name, classify_inner_name): Use it.
5940 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5941 and TYPE_TARGET_TYPE of an enum type.
5942 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5943 an enum type.
5944 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5945 handle TYPE_DECLARED_CLASS.
5946 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5947 types.
5948 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5949 * valops.c (enum_constant_from_type): New function.
5950 (value_aggregate_elt): Use it.
5951 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5952 TYPE_CODE_ENUM.
5953
c848d642
TT
59542014-04-14 Tom Tromey <tromey@redhat.com>
5955
5956 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5957 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5958 const.
5959 * value.h (value_aggregate_elt): Update.
5960
0626fc76
TT
59612014-04-14 Tom Tromey <tromey@redhat.com>
5962
5963 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5964
5ecaaa66
SA
59652014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5966
5967 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5968 (evaluate_subexp_standard): Pass noside argument.
5969 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5970 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5971 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5972 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5973 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5974
1612e0c0
SA
59752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5976
5977 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5978 points to a constant blob.
5979
c451ebe5
SA
59802014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5981
5982 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5983 property and store it as the high bound and flag the range accordingly.
5984 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5985 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5986 * gdbtypes.h (enum range_flags): New enum.
5987 (struct range_bounds): Add flags member.
5988
1d42e4c4
SA
59892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5990
5991 * c-typeprint.c (c_type_print_varspec_suffix): Added
5992 check for not yet resolved high bound. If unresolved, print
5993 "variable length" string to the console instead of random
5994 length.
5995
9f1f738a
SA
59962014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5997
5998 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5999 value.
6000 (ada_template_to_fixed_record_type_1): Likewise.
6001 (ada_to_fixed_type_1): Likewise.
6002 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6003 (cp_print_value): Likewise.
6004 * d-valprint.c (dynamic_array_type): Likewise.
6005 * findvar.c (address_of_variable): Likewise.
6006 * jv-valprint.c (java_value_print): Likewise.
6007 * valops.c (value_ind): Likewise.
6008 * value.c (coerce_ref): Likewise.
6009
3c8452d4
SA
60102014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6011
6012 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6013 value and retrieve the dynamic type size.
6014
4ad88275
SA
60152014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6016
6017 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6018 passed to sizeof is dynamic evaluate the argument to compute the length.
6019
80180f79
SA
60202014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6021 Joel Brobecker <brobecker@adacore.com>
6022
6023 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6024 (dwarf2_evaluate_property): New function.
6025 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6026 * dwarf2read.c (attr_to_dynamic_prop): New function.
6027 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6028 attribute.
6029 * gdbtypes.c: Include dwarf2loc.h.
6030 (is_dynamic_type): New function.
6031 (resolve_dynamic_type): New function.
6032 (resolve_dynamic_bounds): New function.
6033 (get_type_length): New function.
6034 (check_typedef): Use get_type_length to compute type length.
6035 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6036 (TYPE_LOW_BOUND_KIND): New macro.
6037 (is_dynamic_type): New function prototype.
6038 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6039 to resolve dynamic properties of the type. Update comment.
6040 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6041
a1556843
RH
60422014-04-14 Richard Henderson <rth@redhat.com>
6043
6044 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6045
0be03e84
DE
60462014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6047 Doug Evans <xdje42@gmail.com>
6048
6049 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6050 dereference TYPE_CODE_REF values.
6051
6b662e19
JB
60522014-04-11 Joel Brobecker <brobecker@adacore.com>
6053
6054 Revert the following changes due to regressions:
6055
6056 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6057 (dwarf2_evaluate_property): New function.
6058 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6059 * dwarf2read.c (attr_to_dynamic_prop): New function.
6060 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6061 attribute.
6062 * gdbtypes.c: Include dwarf2loc.h.
6063 (is_dynamic_type): New function.
6064 (resolve_dynamic_type): New function.
6065 (resolve_dynamic_bounds): New function.
6066 (get_type_length): New function.
6067 (check_typedef): Use get_type_length to compute type length.
6068 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6069 (TYPE_LOW_BOUND_KIND): New macro.
6070 (is_dynamic_type): New function prototype.
6071 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6072 to resolve dynamic properties of the type. Update comment.
6073 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6074
6075 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6076 passed to sizeof is dynamic evaluate the argument to compute the length.
6077
6078 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6079 value and retrieve the dynamic type size.
6080
6081 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6082 (ada_template_to_fixed_record_type_1): Likewise.
6083 (ada_to_fixed_type_1): Likewise.
6084 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6085 (cp_print_value): Likewise.
6086 * d-valprint.c (dynamic_array_type): Likewise.
6087 * eval.c (evaluate_subexp_with_coercion): Likewise.
6088 * findvar.c (address_of_variable): Likewise.
6089 * jv-valprint.c (java_value_print): Likewise.
6090 * valops.c (value_ind): Likewise.
6091 * value.c (coerce_ref): Likewise.
6092
6093 * c-typeprint.c (c_type_print_varspec_suffix): Added
6094 check for not yet resolved high bound. If unresolved, print
6095 "variable length" string to the console instead of random
6096 length.
6097
6098 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6099 property and store it as the high bound and flag the range accordingly.
6100 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6101 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6102 * gdbtypes.h (enum range_flags): New enum.
6103 (struct range_bounds): Add flags member.
6104
6105 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6106 points to a constant blob.
6107
6108 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6109 (evaluate_subexp_standard): Pass noside argument.
6110 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6111 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6112 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6113 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6114 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6115
245a5f0b
KS
61162014-04-11 Keith Seitz <keiths@redhat.com>
6117
6118 PR c++/16675
6119 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6120 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6121 reference types.
6122
3bce8237
SA
61232014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6124
6125 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6126 (evaluate_subexp_standard): Pass noside argument.
6127 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6128 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6129 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6130 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6131 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6132
92b09522
SA
61332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6134
6135 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6136 points to a constant blob.
6137
e1969afb
SA
61382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6139
6140 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6141 property and store it as the high bound and flag the range accordingly.
6142 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6143 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6144 * gdbtypes.h (enum range_flags): New enum.
6145 (struct range_bounds): Add flags member.
6146
b86138fb
SA
61472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6148
6149 * c-typeprint.c (c_type_print_varspec_suffix): Added
6150 check for not yet resolved high bound. If unresolved, print
6151 "variable length" string to the console instead of random
6152 length.
6153
bcd629a4
SA
61542014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6155
6156 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6157 (ada_template_to_fixed_record_type_1): Likewise.
6158 (ada_to_fixed_type_1): Likewise.
6159 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6160 (cp_print_value): Likewise.
6161 * d-valprint.c (dynamic_array_type): Likewise.
6162 * eval.c (evaluate_subexp_with_coercion): Likewise.
6163 * findvar.c (address_of_variable): Likewise.
6164 * jv-valprint.c (java_value_print): Likewise.
6165 * valops.c (value_ind): Likewise.
6166 * value.c (coerce_ref): Likewise.
6167
04b19544
SA
61682014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6169
6170 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6171 value and retrieve the dynamic type size.
6172
26cb189f
SA
61732014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6174
6175 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6176 passed to sizeof is dynamic evaluate the argument to compute the length.
6177
37c1ab67
SA
61782014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6179
6180 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6181 (dwarf2_evaluate_property): New function.
6182 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6183 * dwarf2read.c (attr_to_dynamic_prop): New function.
6184 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6185 attribute.
6186 * gdbtypes.c: Include dwarf2loc.h.
6187 (is_dynamic_type): New function.
6188 (resolve_dynamic_type): New function.
6189 (resolve_dynamic_bounds): New function.
6190 (get_type_length): New function.
6191 (check_typedef): Use get_type_length to compute type length.
6192 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6193 (TYPE_LOW_BOUND_KIND): New macro.
6194 (is_dynamic_type): New function prototype.
6195 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6196 to resolve dynamic properties of the type. Update comment.
6197 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6198
729efb13
SA
61992014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6200
6201 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6202 declaring high/low bounds and change uses accordingly. Call
6203 create_range_type instead of create_static_range_type.
6204 * gdbtypes.c (create_range_type): New function.
6205 (create_range_type): Convert bounds into struct bound_prop and pass
6206 them to create_range_type.
6207 * gdbtypes.h (struct bound_prop): New struct.
6208 (create_range_type): New function prototype.
6209 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6210 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6211 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6212 part of the bound.
6213 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6214
0c9c3474
SA
62152014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6216
6217 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6218 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6219 * ada-lang.c: All uses of create_range_type updated.
6220 * coffread.c: All uses of create_range_type updated.
6221 * dwarf2read.c: All uses of create_range_type updated.
6222 * f-exp.y: All uses of create_range_type updated.
6223 * m2-valprint.c: All uses of create_range_type updated.
6224 * mdebugread.c: All uses of create_range_type updated.
6225 * stabsread.c: All uses of create_range_type updated.
6226 * valops.c: All uses of create_range_type updated.
6227 * valprint.c: All uses of create_range_type updated.
6228
9d497a19
PA
62292014-04-10 Pedro Alves <palves@redhat.com>
6230
6231 * breakpoint.c (single_step_breakpoints)
6232 (single_step_gdbarch): Move up in the file.
6233 (one_breakpoint_xfer_memory): New function, factored out from ...
6234 (breakpoint_xfer_memory): ... here. Also process single-step
6235 breakpoints.
6236
15a9128a
TG
62372014-04-09 Tristan Gingold <gingold@adacore.com>
6238
6239 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6240 comments.
6241 (darwin_decode_exception_message): Free port only after use.
6242
9c97a070
PL
62432014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6244
6245 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6246 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6247 when setting the size of call_length.
6248
7af389b8
SC
62492014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6250
6251 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6252 dereference TYPE_CODE_REF values.
6253
86ad98c3
JB
62542014-04-07 Joel Brobecker <brobecker@adacore.com>
6255
6256 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6257 end of warning message.
6258
b0aeadb3
DE
62592014-04-03 Doug Evans <dje@google.com>
6260
6261 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6262 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6263
5979d6b6
AM
62642014-04-02 Alan Modra <amodra@gmail.com>
6265
6266 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6267 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6268 (struct symbol_file_add_from_memory_args): Add size field.
6269 (find_vdso_size): New function.
6270 (add_vsyscall_page): Attempt to find vdso size.
6271
0d60c288
DE
62722014-04-01 Doug Evans <dje@google.com>
6273
6274 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6275
a41f2563
TG
62762014-04-01 Tristan Gingold <gingold@adacore.com>
6277
6278 * darwin-nat.c (darwin_encode_reply): Add prototype.
6279 (darwin_decode_exception_message): Reply to unknown inferiors.
6280 (darwin_decode_message): Handle message by id. Ignore message
6281 to unknown inferior.
6282 (darwin_wait): Discard unknown messages, add debug trace.
6283
11a865c8
DE
62842014-03-31 Doug Evans <dje@google.com>
6285
6286 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6287 comp_dir_string.
6288
770e7fc7
DE
62892014-03-31 Doug Evans <dje@google.com>
6290
6291 New option "set print symbol-loading".
6292 * NEWS: Mention it.
6293 * solib.c (solib_read_symbols): Only print symbol loading messages
6294 if requested.
6295 (solib_add): If symbol loading is in "brief" mode, notify user
6296 symbols are being loaded.
6297 (reload_shared_libraries_1): Ditto.
6298 * symfile.c (print_symbol_loading_off): New static global.
6299 (print_symbol_loading_brief): New static global.
6300 (print_symbol_loading_full): New static global.
6301 (print_symbol_loading_enums): New static global.
6302 (print_symbol_loading): New static global.
6303 (print_symbol_loading_p): New function.
6304 (symbol_file_add_with_addrs): Only print symbol loading messages
6305 if requested.
6306 (_initialize_symfile): Register "print symbol-loading" set/show
6307 command.
6308 * symfile.h (print_symbol_loading_p): Declare.
6309
c32c64b7
DE
63102014-03-30 Doug Evans <xdje42@gmail.com>
6311
6312 * infrun.c (set_last_target_status): New function.
6313 (handle_inferior_event): Call it.
6314
7c0bc051
DE
63152014-03-30 Doug Evans <xdje42@gmail.com>
6316
6317 * inferior.h (enum stop_kind): Improve comment.
6318
8776cfe9
JB
63192014-03-28 Joel Brobecker <brobecker@adacore.com>
6320
6321 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6322 a reference, strip the reference layer before calling
6323 the lang_ops value_has_mutated callback.
6324
410a0ff2
SDJ
63252014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6326
6327 Remove some globals from our parser.
6328 * language.c (unk_lang_parser): Add "struct parser_state"
6329 argument.
6330 * language.h (struct language_defn) <la_parser>: Likewise.
6331 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6332 (initialize_expout): Add "struct parser_state" argument.
6333 Rewrite function to use the parser state.
6334 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6335 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6336 write_exp_elt_longcst, write_exp_elt_dblcst,
6337 write_exp_elt_decfloatcst, write_exp_elt_type,
6338 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6339 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6340 write_dollar_variable): Likewise.
6341 (parse_exp_in_context_1): Use parser state.
6342 (insert_type_address_space): Add "struct parser_state" argument.
6343 Use parser state.
6344 (increase_expout_size): New function.
6345 * parser-defs.h: Forward declare "struct language_defn" and
6346 "struct parser_state".
6347 (expout, expout_size, expout_ptr): Remove extern declarations.
6348 (parse_gdbarch, parse_language): Rewrite macro declarations to
6349 accept the parser state.
6350 (struct parser_state): New struct.
6351 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6352 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6353 write_exp_elt_decfloatcst, write_exp_elt_type,
6354 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6355 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6356 write_exp_msymbol, write_dollar_variable,
6357 mark_struct_expression, insert_type_address_space): Add "struct
6358 parser_state" argument.
6359 (increase_expout_size): New function.
6360 * utils.c (do_clear_parser_state): New function.
6361 (make_cleanup_clear_parser_state): Likewise.
6362 * utils.h (make_cleanup_clear_parser_state): New function
6363 prototype.
6364 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6365 Update calls to write_exp* in order to pass the parser state.
6366 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6367 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6368 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6369 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6370 * stap-probe.c (stap_parse_register_operand): Likewise.
6371 (stap_parse_single_operand): Likewise.
6372 (stap_parse_argument_1): Likewise.
6373 (stap_parse_argument): Use parser state.
6374 * stap-probe.h: Include "parser-defs.h".
6375 (struct stap_parse_info) <pstate>: New field.
6376 * c-exp.y (parse_type): Rewrite to use parser state.
6377 (yyparse): Redefine to c_parse_internal.
6378 (pstate): New global variable.
6379 (parse_number): Add "struct parser_state" argument.
6380 (write_destructor_name): Likewise.
6381 (type_exp): Update calls to write_exp* and similars in order to
6382 use parser state.
6383 (exp1, exp, variable, qualified_name, space_identifier,
6384 typename, typebase): Likewise.
6385 (write_destructor_name, parse_number, lex_one_token,
6386 classify_name, classify_inner_name, c_parse): Add "struct
6387 parser_state" argument. Update function to use parser state.
6388 * c-lang.h: Forward declare "struct parser_state".
6389 (c_parse): Add "struct parser_state" argument.
6390 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6391 (yyparse): Redefine macro to ada_parse_internal.
6392 (pstate): New variable.
6393 (write_int, write_object_renaming, write_var_or_type,
6394 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6395 type_int, type_long, type_long_long, type_float, type_double,
6396 type_long_double, type_char, type_boolean, type_system_address):
6397 Add "struct parser_state" argument.
6398 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6399 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6400 var_or_type, aggregate, aggregate_component_list,
6401 positional_list, others, component_group,
6402 component_associations): Update calls to write_exp* and similar
6403 functions in order to use parser state.
6404 (ada_parse, write_var_from_sym, write_int,
6405 write_exp_op_with_string, write_object_renaming,
6406 find_primitive_type, write_selectors, write_ambiguous_var,
6407 write_var_or_type, write_name_assoc, type_int, type_long,
6408 type_long_long, type_float, type_double, type_long_double,
6409 type_char, type_boolean, type_system_address): Add "struct
6410 parser_state" argument. Adjust function to use parser state.
6411 * ada-lang.c (parse): Likewise.
6412 * ada-lang.h: Forward declare "struct parser_state".
6413 (ada_parse): Add "struct parser_state" argument.
6414 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6415 calls to both functions.
6416 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6417 parser state.
6418 (yyparse): Redefine macro to f_parse_internal.
6419 (pstate): New variable.
6420 (parse_number): Add "struct parser_state" argument.
6421 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6422 and similars in order to use parser state.
6423 (parse_number): Adjust code to use parser state.
6424 (yylex): Likewise.
6425 (f_parse): New function.
6426 * f-lang.h: Forward declare "struct parser_state".
6427 (f_parse): Add "struct parser_state" argument.
6428 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6429 parser state.
6430 (yyparse): Redefine macro for java_parse_internal.
6431 (pstate): New variable.
6432 (push_expression_name, push_expression_name, insert_exp): Add
6433 "struct parser_state" argument.
6434 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6435 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6436 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6437 PostIncrementExpression, PostDecrementExpression,
6438 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6439 UnaryExpressionNotPlusMinus, CastExpression,
6440 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6441 RelationalExpression, EqualityExpression, AndExpression,
6442 ExclusiveOrExpression, InclusiveOrExpression,
6443 ConditionalAndExpression, ConditionalOrExpression,
6444 ConditionalExpression, Assignment, LeftHandSide): Update
6445 calls to write_exp* and similars in order to use parser state.
6446 (parse_number): Ajust code to use parser state.
6447 (yylex): Likewise.
6448 (java_parse): New function.
6449 (push_variable): Add "struct parser_state" argument. Adjust
6450 code to user parser state.
6451 (push_fieldnames, push_qualified_expression_name,
6452 push_expression_name, insert_exp): Likewise.
6453 * jv-lang.h: Forward declare "struct parser_state".
6454 (java_parse): Add "struct parser_state" argument.
6455 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6456 parser state.
6457 (yyparse): Redefine macro to m2_parse_internal.
6458 (pstate): New variable.
6459 (type_exp, exp, fblock, variable, type): Update calls to
6460 write_exp* and similars to use parser state.
6461 (yylex): Likewise.
6462 (m2_parse): New function.
6463 * m2-lang.h: Forward declare "struct parser_state".
6464 (m2_parse): Add "struct parser_state" argument.
6465 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6466 * objc-lang.h: Forward declare "struct parser_state".
6467 (end_msglist): Add "struct parser_state" argument.
6468 * p-exp.y (parse_type): Rewrite macro to use parser state.
6469 (yyparse): Redefine macro to pascal_parse_internal.
6470 (pstate): New variable.
6471 (parse_number): Add "struct parser_state" argument.
6472 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6473 write_exp* and similars in order to use parser state.
6474 (parse_number, yylex): Adjust code to use parser state.
6475 (pascal_parse): New function.
6476 * p-lang.h: Forward declare "struct parser_state".
6477 (pascal_parse): Add "struct parser_state" argument.
6478 * go-exp.y (parse_type): Rewrite macro to use parser state.
6479 (yyparse): Redefine macro to go_parse_internal.
6480 (pstate): New variable.
6481 (parse_number): Add "struct parser_state" argument.
6482 (type_exp, exp1, exp, variable, type): Update calls to
6483 write_exp* and similars in order to use parser state.
6484 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6485 to use parser state.
6486 (go_parse): Likewise.
6487 * go-lang.h: Forward declare "struct parser_state".
6488 (go_parse): Add "struct parser_state" argument.
6489
342587c4
DE
64902014-03-27 Doug Evans <dje@google.com>
6491
6492 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6493
33e80786
DE
64942014-03-27 Doug Evans <dje@google.com>
6495
6496 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6497 Remove argument abbrev_section. All callers updated.
6498
1dbab08b
DE
64992014-03-27 Doug Evans <dje@google.com>
6500
6501 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6502 addr_base, ranges_base.
6503
318d3177
KS
65042014-03-26 Keith Seitz <keiths@redhat.com>
6505
6506 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6507 types, not VAR_DOMAIN.
6508
1e54db15
SL
65092014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6510
6511 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6512 "ra" registers.
6513 * features/nios2-linux.c: Regenerated.
6514 * features/nios2.c: Regenerated.
6515
d3839ede
PA
65162014-03-25 Pedro Alves <palves@redhat.com>
6517
6518 * cli/cli-script.c (script_from_file): Force the interpreter to
6519 sync mode.
6520
7588d2ec
PL
65212014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6522
6523 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6524 small stack allocation.
6525
a6290449
TG
65262014-03-24 Tristan Gingold <gingold@adacore.com>
6527
6528 * darwin-nat.c (exc_server): Remove unused prototype.
6529 (darwin_dump_message): Correctly display data on x86_64.
6530 (darwin_encode_reply): Fix style.
6531 Add comments and fix indentation.
6532
31ae9d24 65332014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6534
6535 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6536
6339bfc4
DE
65372014-03-22 Doug Evans <xdje42@gmail.com>
6538
6539 * infcmd.c: Whitespace fixes.
6540 (interrupt_command): Merge two function comments into one.
6541
0a07590b
DE
65422014-03-22 Doug Evans <xdje42@gmail.com>
6543
6544 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6545 All uses updated.
6546
b55fbac4
YQ
65472014-03-22 Yao Qi <yao@codesourcery.com>
6548
6549 * remote.c (target_read_live_memory): Remove.
6550 (memory_xfer_live_readonly_partial): Rename it to
6551 remote_xfer_live_readonly_partial. Remove argument 'object'.
6552 All callers updated. Call remote_read_bytes_1
6553 instead of target_read_live_memory.
6554 * tracepoint.c (set_traceframe_number): Remove.
6555 (make_cleanup_restore_traceframe_number): Likewise .
6556 * tracepoint.h (set_traceframe_number): Remove declaration.
6557 (make_cleanup_restore_traceframe_number): Likewise.
6558
9217e74e
YQ
65592014-03-22 Yao Qi <yao@codesourcery.com>
6560
6561 * remote.c (remote_read_bytes): Move code on reading from the
6562 remote stub to ...
6563 (remote_read_bytes_1): ... here. New function.
6564
8acf9577
YQ
65652014-03-22 Yao Qi <yao@codesourcery.com>
6566
6567 * ctf.c (ctf_xfer_partial): Check the return value of
6568 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6569 return TARGET_XFER_UNAVAILABLE.
6570 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6571 * target.c (target_read_live_memory): Move it to remote.c.
6572 (memory_xfer_live_readonly_partial): Likewise.
6573 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6574 * remote.c (target_read_live_memory): Moved from target.c.
6575 (memory_xfer_live_readonly_partial): Likewise.
6576 (remote_read_bytes): Factored out from
6577 memory_xfer_partial_1.
6578
feef67ab
DE
65792014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6580
6581 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6582 NULL pointer.
6583
b65dc60b
PA
65842014-03-21 Pedro Alves <palves@redhat.com>
6585
6586 * infrun.c (normal_stop): Extend comment.
6587
b4ab256d
HZ
65882014-03-21 Hui Zhu <hui@codesourcery.com>
6589 Pedro Alves <palves@redhat.com>
6590
6591 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6592 static buffer.
6593 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6594 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6595 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6596
deba7593
MR
65972014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6598
6599 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6600 `z' formatted output modifier.
6601
1bff71c3
SDJ
66022014-03-20 Tom Tromey <tromey@redhat.com>
6603 Sergio Durigan Junior <sergiodj@redhat.com>
6604
6605 * probe.c (parse_probes): Turn assert into an ordinary error.
6606 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6607 exceptions when parsing probes. Rearrange the code for clarity.
6608
90e28950
TT
66092014-03-20 Tom Tromey <tromey@redhat.com>
6610
6611 PR gdb/14135
6612 * top.c (execute_command): Only dispatch events if the command
6613 started the target.
6614
beb460e8
PA
66152014-03-20 Tom Tromey <tromey@redhat.com>
6616
6617 PR cli/15718
6618 * infcall.c: Include event-top.h.
6619 (run_inferior_call): Call async_disable_stdin if needed.
6620
99619bea
PA
66212014-03-20 Pedro Alves <palves@redhat.com>
6622
6623 * infrun.c (prepare_to_proceed): Delete.
6624 (thread_still_needs_step_over): New function.
6625 (find_thread_needs_step_over): New function.
6626 (proceed): If the current thread needs a step-over, set its
6627 steping_over_breakpoint flag. Adjust to use
6628 find_thread_needs_step_over instead of prepare_to_proceed.
6629 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6630 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6631 breakpoint.
6632 (switch_back_to_stepped_thread): Step over breakpoints of all
6633 threads not the stepping thread, before switching back to the
6634 stepping thread.
6635
2adfaa28
PA
66362014-03-20 Pedro Alves <palves@redhat.com>
6637
6638 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6639 extern.
6640 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6641 * infrun.c (saved_singlestep_ptid)
6642 (stepping_past_singlestep_breakpoint): Delete.
6643 (resume): Remove stepping_past_singlestep_breakpoint handling.
6644 (proceed): Store the prev_pc of the stepping thread too.
6645 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6646 singlestep_pc.
6647 (enum infwait_states): Delete infwait_thread_hop_state.
6648 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6649 field.
6650 (handle_inferior_event): Adjust.
6651 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6652 handling and the thread-hop code. Before removing single-step
6653 breakpoints, check whether the thread hit a single-step breakpoint
6654 of another thread. If it did, the trap is not a random signal.
6655 (switch_back_to_stepped_thread): If the event thread hit a
6656 single-step breakpoint, unblock it before switching to the
6657 stepping thread. Handle the case of the stepped thread having
6658 advanced already.
6659 (keep_going): Handle the case of the current thread moving past a
6660 single-step breakpoint.
6661
31e77af2
PA
66622014-03-20 Pedro Alves <palves@redhat.com>
6663
6664 PR breakpoints/7143
6665 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6666 are being stepped over.
6667 (breakpoint_address_match): Make extern.
6668 * breakpoint.h (breakpoint_address_match): New declaration.
6669 * inferior.h (stepping_past_instruction_at): New declaration.
6670 * infrun.c (struct step_over_info): New type.
6671 (step_over_info): New global.
6672 (set_step_over_info, clear_step_over_info)
6673 (stepping_past_instruction_at): New functions.
6674 (handle_inferior_event): Clear the step-over info when
6675 trap_expected is cleared.
6676 (resume): Remove now stale comment.
6677 (clear_proceed_status): Clear step-over info.
6678 (proceed): Adjust step-over handling to set or clear the step-over
6679 info instead of removing all breakpoints.
6680 (handle_signal_stop): When setting up a thread-hop, don't remove
6681 breakpoints here.
6682 (stop_stepping): Clear step-over info.
6683 (keep_going): Adjust step-over handling to set or clear step-over
6684 info and then always inserting breakpoints, instead of removing
6685 all breakpoints when stepping over one.
6686
b9f437de
PA
66872014-03-20 Pedro Alves <palves@redhat.com>
6688
6689 * infrun.c (previous_inferior_ptid): Adjust comment.
6690 (deferred_step_ptid): Delete.
6691 (infrun_thread_ptid_changed, prepare_to_proceed)
6692 (init_wait_for_inferior): Adjust.
6693 (handle_signal_stop): Delete deferred_step_ptid handling.
6694
06c868a8
JK
66952014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6696
6697 PR gdb/15358
6698 * defs.h (sync_quit_force_run): New declaration.
6699 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6700 * event-top.c (async_sigterm_handler): New declaration.
6701 (async_sigterm_token): New variable.
6702 (async_init_signals): Create also async_sigterm_token.
6703 (async_sigterm_handler): New function.
6704 (sync_quit_force_run): New variable.
6705 (handle_sigterm): Replace quit_force call by other calls.
6706 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6707
dea80df0
MR
67082014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6709
6710 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6711 offset into SPE pseudo registers.
6712
0c7e1a46
PA
67132014-03-18 Pedro Alves <palves@redhat.com>
6714
6715 PR gdb/13860
6716 * inferior.h (print_stop_event): Declare.
6717 * infrun.c (print_stop_event): New, factored out from ...
6718 (normal_stop): ... this.
6719 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6720 of bpstat_print/print_stack_frame.
6721
9c1fcd01
TT
67222014-03-17 Tom Tromey <tromey@redhat.com>
6723
6724 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6725
11aa919a
PMR
67262014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6727
6728 * ada-lang.c (decode_constrained_packed_array): Perform a
6729 minimal coercion for reference with coerce_ref instead of
6730 ada_coerce_ref.
6731
d4ccb5e0
TG
67322014-03-17 Tristan Gingold <gingold@adacore.com>
6733
6734 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6735 (darwin_solib_create_inferior_hook): Emit a warning if version
6736 is unhandled.
6737
49840f2a
UW
67382014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6739
6740 * python/py-value.c (get_field_flag): Cast flag_name argument to
6741 PyObject_GetAttrString to support Python 2.4.
6742
ed4123e5
JK
67432014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6744
6745 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6746 (Global Maintainers): Remove Jan Kratochvil.
6747
d6b64346
PA
67482014-03-14 Pedro Alves <palves@redhat.com>
6749
6750 * inferior.h (terminal_ours_for_output): Rename to ...
6751 (child_terminal_ours_for_output): ... this.
6752 (terminal_save_ours): Rename to ...
6753 (child_terminal_save_ours): ... this.
6754 (terminal_ours): Rename to ...
6755 (child_terminal_ours): ... this.
6756 (terminal_inferior): Rename to ...
6757 (child_terminal_inferior): ... this.
6758 (terminal_init_inferior): Rename to ...
6759 (child_terminal_init_inferior): ... this.
6760 (terminal_init_inferior_with_pgrp): Rename to ...
6761 (child_terminal_init_inferior_with_pgrp): ... this.
6762 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6763 (child_terminal_init_with_pgrp): ... this.
6764 (terminal_save_ours): Rename to ...
6765 (child_terminal_save_ours): ... this.
6766 (terminal_init_inferior): Rename to ...
6767 (child_terminal_init): ... this. Adjust.
6768 (terminal_inferior): Rename to ...
6769 (child_terminal_inferior): ... this.
6770 (terminal_ours_for_output): Rename to ...
6771 (child_terminal_ours_for_output): ... this. Adjust.
6772 (terminal_ours): Rename to ...
6773 (child_terminal_ours): ... this.
6774 (terminal_ours_1): Rename to ...
6775 (child_terminal_ours_1): ... this. Adjust.
6776 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6777 * windows-nat.c (do_initial_windows_stuff): Adjust.
6778 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6779 (gnu_terminal_init): ... this. Adjust.
6780 (gnu_target): Adjust.
6781 * inf-child.c (inf_child_target): Adjust.
6782
5a1e8c7a
DE
67832014-03-13 Doug Evans <xdje42@gmail.com>
6784
6785 PR guile/16612
6786 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6787 new eq?-hashtab.
6788
350e1a76
DE
67892014-03-13 Doug Evans <xdje42@gmail.com>
6790
6791 * value.c (record_latest_value): Call release_value_or_incref
6792 instead of release_value.
6793
a69900ae
PA
67942014-03-13 Pedro Alves <palves@redhat.com>
6795
6796 * procfs.c (procfs_target): Don't override to_shortname,
6797 to_longname or to_doc.
6798
5db9f0bd
PA
67992014-03-13 Pedro Alves <palves@redhat.com>
6800
6801 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6802 Unix in user visible strings.
6803
5e3a2c38
SS
68042014-03-12 Stan Shebs <stan@codesourcery.com>
6805
6806 * gdbtypes.h: Annotate comments for Doxygen, add a page
6807 block comment with some general info.
6808
8bc2fe48
PA
68092014-03-12 Pedro Alves <palves@redhat.com>
6810
6811 * infcmd.c (prepare_execution_command): New function, factored out
6812 from several execution commands.
6813 (run_command_1, continue_command, step_1, jump_command)
6814 (signal_command, until_command, advance_command, finish_command)
6815 (attach_command): Use prepare_execution_command.
6816
638c5f49
OJ
68172014-03-12 Omair Javaid <omair.javaid@linaro.org>
6818
6819 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6820 (MAX_BPTS): Define.
6821 (MAX_WPTS): Define.
6822 (struct arm_linux_thread_points): Removed.
6823 (struct arm_linux_process_info): New.
6824 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6825 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6826 (arm_linux_find_breakpoints_by_tid): Removed.
6827 (struct arch_lwp_info): New.
6828 (arm_linux_find_process_pid): New functions.
6829 (arm_linux_add_process): New functions.
6830 (arm_linux_process_info_get): New functions.
6831 (arm_linux_forget_process): New function.
6832 (arm_linux_get_debug_reg_state): New function.
6833 (struct update_registers_data): New.
6834 (update_registers_callback): New function.
6835 (arm_linux_insert_hw_breakpoint1): Updated.
6836 (arm_linux_remove_hw_breakpoint1): Updated.
6837 (arm_linux_insert_hw_breakpoint): Updated.
6838 (arm_linux_remove_hw_breakpoint): Updated.
6839 (arm_linux_insert_watchpoint): Updated.
6840 (arm_linux_remove_watchpoint): Updated.
6841 (arm_linux_new_thread): Updated.
6842 (arm_linux_prepare_to_resume): New function.
6843 (arm_linux_new_fork): New function.
6844 (_initialize_arm_linux_nat): Updated.
6845
6d03af93
PA
68462014-03-12 Pedro Alves <palves@redhat.com>
6847
6848 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6849
b3ccfe11
TT
68502014-03-12 Tom Tromey <tromey@redhat.com>
6851
6852 * inf-child.c (return_zero): New function.
6853 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6854 * aix-thread.c (aix_thread_inferior_created): New function.
6855 (aix_thread_attach): Remove.
6856 (init_aix_thread_ops): Don't set to_attach.
6857 (_initialize_aix_thread): Register inferior_created observer.
6858 * corelow.c (init_core_ops): Don't set to_attach or
6859 to_create_inferior.
6860 * exec.c (init_exec_ops): Don't set to_attach or
6861 to_create_inferior.
6862 * infcmd.c (run_command_1): Use find_run_target. Make direct
6863 target calls.
6864 (attach_command): Use find_attach_target. Make direct target
6865 calls.
6866 * record-btrace.c (init_record_btrace_ops): Don't set
6867 to_create_inferior.
6868 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6869 Remove.
6870 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6871 set to_create_inferior.
6872 * target.c (complete_target_initialization): Add assertion.
6873 (target_create_inferior): Remove.
6874 (find_default_attach, find_default_create_inferior): Remove.
6875 (find_attach_target, find_run_target): New functions.
6876 (find_default_is_async_p, find_default_can_async_p)
6877 (target_supports_non_stop, target_attach): Remove.
6878 (init_dummy_target): Don't set to_create_inferior or
6879 to_supports_non_stop.
6880 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6881 TARGET_DEFAULT_FUNC.
6882 <to_create_inferior>: Add comment.
6883 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6884 TARGET_DEFAULT_RETURN.
6885 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6886 (find_attach_target, find_run_target): Declare.
6887 (target_create_inferior): Remove.
6888 (target_has_execution_1): Update comment.
6889 (target_supports_non_stop): Remove.
6890 * target-delegates.c: Rebuild.
6891
91f83b02
PA
68922014-03-12 Pedro Alves <palves@redhat.com>
6893
6894 * inf-child.h: Update comment to not mention Unix.
6895
f1aea813
PA
68962014-03-12 Pedro Alves <palves@redhat.com>
6897
6898 * inf-child.c: Update top comment to not mention Unix. Add
6899 generic comment describing how this target is meant to be used.
6900 (inf_child_post_attach, inf_child_post_startup_inferior)
6901 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6902 Unix in comment.
6903
ee8e9165
PA
69042014-03-12 Pedro Alves <palves@redhat.com>
6905
6906 * nto-procfs.c: Include inf-child.h.
6907 (procfs_ops): Delete global.
6908 (procfs_can_run): Delete method.
6909 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6910 target pointer instead of referencing procfs_ops.
6911 (procfs_prepare_to_store): Delete.
6912 (init_procfs_ops): Delete function.
6913 (procfs_target): New function, based on init_procfs_ops, but
6914 inherit inf_child_target.
6915 (_initialize_procfs): Use procfs_target.
6916
51a9c8c5
PA
69172014-03-12 Pedro Alves <palves@redhat.com>
6918
6919 * windows-nat.c: Include inf-child.h.
6920 (windows_ops): Delete global.
6921 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6922 methods.
6923 (init_windows_ops): Delete function.
6924 (windows_target): New function, based on init_windows_ops, but
6925 inherit inf_child_target.
6926 (_initialize_windows_nat): Use windows_target. Install x86
6927 specific target methods here.
6928
c1966e26
DE
69292014-03-10 Doug Evans <xdje42@gmail.com>
6930
6931 * guile/guile.c (call_initialize_gdb_module): New function.
6932 (initialize_guile): Replace call to scm_init_guile with call to
6933 scm_with_guile.
6934
023db19c
JB
69352014-03-10 Joel Brobecker <brobecker@adacore.com>
6936
6937 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6938 in call to TYPE_CODE macro.
6939
5ec18f2b
JG
69402014-03-10 Jerome Guitton <guitton@adacore.com>
6941
8668be63
JB
6942 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6943 Resolve tagged types to full view.
5ec18f2b 6944
7d03f2eb
HZ
69452014-03-10 Hui Zhu <hui@codesourcery.com>
6946
6947 * target.h (target_insert_breakpoint): Remove "hardware" from its
6948 comments.
6949
c5164cbc
DE
69502014-03-07 Doug Evans <dje@google.com>
6951
6952 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6953
c4a3fee2
DE
69542014-03-07 Doug Evans <dje@google.com>
6955
6956 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6957 Remove unused local comp_dir_attr. Assert exactly one of
6958 stub_comp_unit_die, stub_comp_dir is non-NULL.
6959
3156469c
JB
69602014-03-07 Joel Brobecker <brobecker@adacore.com>
6961
6962 * target.h (complete_target_initialization, add_target):
6963 Add comment.
6964
c1a7b7c6
PA
69652014-03-07 Pedro Alves <palves@redhat.com>
6966
6967 * go32-nat.c: Include inf-child.h.
6968 (go32_ops): Delete global.
6969 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6970 Delete methods.
6971 (go32_create_inferior): Push the passed in target pointer instead
6972 of referencing go32_ops.
6973 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6974 (go32_target): New function, based on init_go32_ops, but inherit
6975 inf_child_target.
6976 (_initialize_go32_nat): Use go32_target. Move parts of
6977 init_go32_ops here.
6978
d3c1a85f
JB
69792014-03-06 Joel Brobecker <brobecker@adacore.com>
6980
6981 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6982 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6983 SYMBOL_VALUE_ADDRESS.
6984 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6985
5fa1d40e
YQ
69862014-03-06 Yao Qi <yao@codesourcery.com>
6987
6988 * breakpoint.c (get_tracepoint_by_number): Remove argument
6989 optional_p. All callers updated. Adjust comments. Update
6990 output message.
6991 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6992
0c13193f
YQ
69932014-03-06 Yao Qi <yao@codesourcery.com>
6994
6995 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6996 early if get_number returns zero. Use 'p' instead of 'args'.
6997
2217da06
YQ
69982014-03-06 Yao Qi <yao@codesourcery.com>
6999
7000 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7001 message.
7002
cc3da688
YQ
70032014-03-06 Yao Qi <yao@codesourcery.com>
7004
7005 PR breakpoints/16508
7006 * tracepoint.c (check_trace_running): New function.
7007 (trace_find_command): Move code to check_trace_running and
7008 call check_trace_running.
7009 (trace_find_pc_command): Likewise.
7010 (trace_find_tracepoint_command): Likewise.
7011 (trace_find_line_command): Likewise.
7012 (trace_find_range_command): Likewise.
7013 * tracepoint.h (check_trace_running): Likewise.
7014 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7015
6a5f844b
YQ
70162014-03-06 Yao Qi <yao@codesourcery.com>
7017
7018 * target.h (struct target_ops) <to_traceframe_info>: Use
7019 TARGET_DEFAULT_NORETURN (tcomplain ()).
7020 * target-delegates.c: Regenerated.
7021
0f26cec1
PA
70222014-03-05 Pedro Alves <palves@redhat.com>
7023
7024 PR gdb/16575
7025 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7026 void. Update comment.
7027 (dcache_xfer_memory): Delete.
7028 (dcache_read_memory_partial): New, based on the read bits of
7029 dcache_xfer_memory.
7030 (dcache_update): Add status parameter. Use ULONGEST for len, and
7031 adjust. Discard cache lines if the reason for the update was
7032 error.
7033 * dcache.h (dcache_xfer_memory): Delete declaration.
7034 (dcache_read_memory_partial): New declaration.
7035 (dcache_update): Update prototype.
7036 * target.c (raw_memory_xfer_partial): Update the dcache here.
7037 (memory_xfer_partial_1): Don't handle dcache writes here.
7038
b2b255bd
MF
70392014-03-05 Mike Frysinger <vapier@gentoo.org>
7040
7041 * remote-sim.c (gdbsim_load): Add const to prog.
7042
5d9cf8a4
TT
70432014-03-03 Tom Tromey <tromey@redhat.com>
7044
7045 * elfread.c (probe_key): Change to bfd_data.
7046 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7047 now per-BFD, not per-objfile.
7048 * stap-probe.c (stap_probe_destroy): Update comment.
7049 (handle_stap_probe): Allocate on the per-BFD obstack.
7050
729662a5
TT
70512014-03-03 Tom Tromey <tromey@redhat.com>
7052
7053 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7054 * breakpoint.c (create_longjmp_master_breakpoint): Use
7055 get_probe_address.
7056 (add_location_to_breakpoint, bkpt_probe_insert_location)
7057 (bkpt_probe_remove_location): Update.
7058 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7059 * elfread.c (elf_symfile_relocate_probe): Remove.
7060 (elf_probe_fns): Update.
7061 (insert_exception_resume_breakpoint): Change type of "probe"
7062 parameter to bound_probe.
7063 (check_exception_resume): Update.
7064 * objfiles.c (objfile_relocate1): Don't relocate probes.
7065 * probe.c (bound_probe_s): New typedef.
7066 (parse_probes): Use get_probe_address. Set sal's objfile.
7067 (find_probe_by_pc): Return a bound_probe.
7068 (collect_probes): Return a VEC(bound_probe_s).
7069 (compare_probes): Update.
7070 (gen_ui_out_table_header_info): Change type of "probes"
7071 parameter. Update.
7072 (info_probes_for_ops): Update.
7073 (get_probe_address): New function.
7074 (probe_safe_evaluate_at_pc): Update.
7075 * probe.h (struct probe_ops) <get_probe_address>: New field.
7076 <set_semaphore, clear_semaphore>: Add objfile parameter.
7077 (struct probe) <objfile>: Remove field.
7078 <arch>: New field.
7079 <address>: Update comment.
7080 (struct bound_probe): New.
7081 (find_probe_by_pc): Return a bound_probe.
7082 (get_probe_address): Declare.
7083 * solib-svr4.c (struct probe_and_action) <address>: New field.
7084 (hash_probe_and_action, equal_probe_and_action): Update.
7085 (register_solib_event_probe): Add address parameter.
7086 (solib_event_probe_at): Update.
7087 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7088 get_probe_address.
7089 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7090 (stap_get_probe_address): New function.
7091 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7092 (compile_probe_arg): Update.
7093 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7094 address.
7095 (handle_stap_probe): Don't relocate the probe.
7096 (stap_relocate): Remove.
7097 (stap_gen_info_probes_table_values): Update.
7098 (stap_probe_ops): Remove stap_relocate.
7099 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7100 (debug_sym_probe_fns): Update.
7101 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7102 * symtab.c (init_sal): Use memset.
7103 * symtab.h (struct symtab_and_line) <objfile>: New field.
7104 * tracepoint.c (start_tracing, stop_tracing): Update.
7105
ff887920
TT
71062014-03-03 Tom Tromey <tromey@redhat.com>
7107
7108 * probe.h (parse_probes, find_probe_by_pc)
7109 (find_probes_in_objfile): Fix comments.
7110
f0407826
DE
71112014-03-02 Doug Evans <xdje42@gmail.com>
7112
7113 * infrun.c (handle_signal_stop): Replace test for
7114 TARGET_WAITKIND_STOPPED with an assert.
7115
35e6a711
DE
71162014-03-02 Doug Evans <xdje42@gmail.com>
7117
7118 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7119
667f9d0b
DE
71202014-03-02 Doug Evans <xdje42@gmail.com>
7121
7122 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7123
dc92ace0
MK
71242014-03-01 Mark Kettenis <kettenis@gnu.org>
7125
7126 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7127
a900370f
MK
71282014-03-01 Mark Kettenis <kettenis@gnu.org>
7129
7130 * i386obsd-nat.c: Include "obsd-nat.h".
7131 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7132 add_target.
7133 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7134
b72a7981
MK
71352014-03-01 Mark Kettenis <kettenis@gnu.org>
7136
7137 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7138
96c70aba
MK
71392014-03-01 Mark Kettenis <kettenis@gnu.org>
7140
7141 * mips64obsd-nat.c: Include "obsd-nath".
7142 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7143 add_target
7144 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7145
874a80af
MK
71462014-03-01 Mark Kettenis <kettenis@gnu.org>
7147
8fd408f1
MK
7148 * amd64obsd-nat.c: Include "obsd-nat,h.
7149 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7150 add_target.
874a80af
MK
7151 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7152
9cf95373
SC
71532014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7154
7155 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7156 (find_overload_match): Update call to find_oload_champ.
7157 (find_oload_champ_namespace_loop): Likewise
7158
863e4da4
MK
71592014-02-28 Mark Kettenis <kettenis@gnu.org>
7160
025cac40
MK
7161 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7162
1ed586ce
MK
7163 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7164 * config/sparc/obsd64.mh: New file.
7165 * sparc64obsd-nat.c: New file.
7166
863e4da4
MK
7167 * obsd-nat.h: New file.
7168 * obsd-nat.c: New file.
7169 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7170 (ALLDEPFILES): Add obsd-nat.c.
7171
89de4da4
TT
71722014-02-28 Tom Tromey <tromey@redhat.com>
7173
7174 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7175 * cli-out.h (cli_ui_out_impl): Now const.
7176 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7177 * ui-out.c (struct ui_out) <impl>: Now const.
7178 (default_ui_out_impl): Now const.
7179 (ui_out_new): Make 'impl' parameter const.
7180 * ui-out.h (ui_out_new): Update.
7181
c725e7b6
MK
71822014-02-27 Mark Kettenis <kettenis@gnu.org>
7183
7184 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7185
670b46b3
MK
71862014-02-27 Mark Kettenis <kettenis@gnu.org>
7187
7188 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7189
c91550fc
JK
71902014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7191
7192 Additional PR 8882 fix.
7193 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7194
2fa0369e
PA
71952014-02-27 Pedro Alves <palves@redhat.com>
7196
7197 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7198 isn't set.
7199
d632a097
PA
72002014-02-27 Pedro Alves <palves@redhat.com>
7201
7202 PR 12702
7203 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7204 * nat/linux-waitpid.c: Include string.h.
7205 (status_to_str): Moved here and made extern.
7206 * nat/linux-waitpid.h (status_to_str): New declaration.
7207
2ebd5a35
HZ
72082014-02-27 Hui Zhu <hui@codesourcery.com>
7209
7210 PR 12702
7211 * infrun.c (ptid_match): Move ...
7212 * common/ptid.c (ptid_match): ... here.
7213 * inferior.h (ptid_match): Move ...
7214 * common/ptid.h (ptid_match): ... here.
7215
3cdd631f
MK
72162014-02-27 Mark Kettenis <kettenis@gnu.org>
7217
7218 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7219 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7220 gdb_target_obs.
7221
bee30a64
MK
72222014-02-27 Mark Kettenis <kettenis@gnu.org>
7223
7224 * obsd-tdep.c (obsd_auxv_parse): New function.
7225 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
7226
7227 * gdbarch.sh (auxv_parse): New.
7228 * gdbarch.h: Regenerated.
7229 * gdbarch.c: Regenerated.
7230 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7231
7a5a839f
LC
72322014-02-26 Ludovic Courtès <ludo@gnu.org>
7233
7234 * guile/scm-value.c (gdbscm_history_append_x): New function.
7235 (value_functions): Add it.
7236
31aa7e4e
JB
72372014-02-27 Joel Brobecker <brobecker@adacore.com>
7238
7239 * dwarf2read.c (attr_value_as_address): New function.
7240 (dwarf2_find_base_address, read_call_site_scope): Use
7241 attr_value_as_address in place of DW_ADDR.
7242 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7243 the low and high addresses. Slight rework of the handling
7244 of the high pc being a constant form, and limit it to
7245 DWARF verson 4 or higher.
7246 (dwarf2_record_block_ranges): Likewise.
7247 (read_partial_die): Likewise.
7248 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7249
9b333ba3
TT
72502014-02-26 Tom Tromey <tromey@redhat.com>
7251
7252 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7253
5f6cac40
TT
72542014-02-26 Tom Tromey <tromey@redhat.com>
7255
7256 * elfread.c (elf_read_minimal_symbols): Return early if
7257 minimal symbols have already been read. Add "ei" parameter.
7258 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7259 * minsyms.c (prim_record_minimal_symbol_full): Update.
7260 * objfiles.h (struct objstats) <n_minsyms>: Move...
7261 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7262 * symmisc.c (print_objfile_statistics): Update.
7263
2750ef27
TT
72642014-02-26 Tom Tromey <tromey@redhat.com>
7265
7266 * elfread.c (elf_read_minimal_symbols): New function, from
7267 elf_symfile_read.
7268 (elf_symfile_read): Call it.
7269
34643a32
TT
72702014-02-26 Tom Tromey <tromey@redhat.com>
7271
7272 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7273 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7274 (lookup_minimal_symbol_solib_trampoline)
7275 (lookup_minimal_symbol_by_pc_section_1)
7276 (lookup_minimal_symbol_and_objfile): Update.
7277 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7278 Don't allocate a minimal symbol if minsyms have already been read.
7279 (build_minimal_symbol_hash_tables): Update.
7280 (install_minimal_symbols): Do nothing if minsyms already read.
7281 Use the per-BFD obstack.
7282 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7283 * objfiles.c (allocate_objfile): Call
7284 terminate_minimal_symbol_table later.
7285 (have_minimal_symbols): Update.
7286 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7287 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7288 Move from struct objfile.
7289 <minsyms_read>: New field.
7290 (struct objfile) <msymbols, minimal_symbol_count,
7291 msymbol_hash, msymbol_demangled_hash>: Move.
7292 (ALL_OBJFILE_MSYMBOLS): Update.
7293 * symfile.c (read_symbols): Set minsyms_read.
7294 (reread_symbols): Update.
7295 * symmisc.c (dump_objfile, dump_msymbols): Update.
7296
2273f0ac
TT
72972014-02-26 Tom Tromey <tromey@redhat.com>
7298
7299 * minsyms.c (msymbols_sort): Remove.
7300 * minsyms.h (msymbols_sort): Remove.
7301 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7302 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7303 * elfread.c (elf_symtab_read): Don't add section offsets.
7304 * xcoffread.c (record_minimal_symbol): Don't add section offset
7305 to minimal symbol address.
7306 * somread.c (text_offset, data_offset): Remove.
7307 (som_symtab_read): Don't add section offsets to minimal symbol
7308 addresses.
7309 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7310 Don't add section offsets to minimal symbols.
7311 * coffread.c (coff_symtab_read): Don't add section offsets
7312 to minimal symbol addresses.
7313 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7314 to minimal symbol addresses.
7315 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7316 section offset to minimal symbol addresses.
7317 * mdebugread.c (parse_partial_symbols): Don't add section
7318 offset to minimal symbol addresses.
7319 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7320 offset to minimal symbol addresses.
7321
77e371c0
TT
73222014-02-26 Tom Tromey <tromey@redhat.com>
7323
7324 * ada-lang.c (ada_main_name): Update.
7325 (ada_add_standard_exceptions): Update.
7326 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7327 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7328 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7329 * auxv.c (ld_so_xfer_auxv): Update.
7330 * avr-tdep.c (avr_scan_prologue): Update.
7331 * ax-gdb.c (gen_var_ref): Update.
7332 * blockframe.c (get_pc_function_start)
7333 (find_pc_partial_function_gnu_ifunc): Update.
7334 * breakpoint.c (create_overlay_event_breakpoint)
7335 (create_longjmp_master_breakpoint)
7336 (create_std_terminate_master_breakpoint)
7337 (create_exception_master_breakpoint): Update.
7338 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7339 * c-valprint.c (c_val_print): Update.
7340 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7341 * common/agent.c (agent_look_up_symbols): Update.
7342 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7343 * dwarf2loc.c (call_site_to_target_addr): Update.
7344 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7345 * elfread.c (elf_gnu_ifunc_record_cache)
7346 (elf_gnu_ifunc_resolve_by_got): Update.
7347 * findvar.c (default_read_var_value): Update.
7348 * frame.c (inside_main_func): Update.
7349 * frv-tdep.c (frv_frame_this_id): Update.
7350 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7351 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7352 Update.
7353 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7354 (hppa_hpux_find_dummy_bpaddr): Update.
7355 * hppa-tdep.c (hppa_symbol_address): Update.
7356 * infcmd.c (until_next_command): Update.
7357 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7358 Update.
7359 * linespec.c (minsym_found, add_minsym): Update.
7360 * linux-nat.c (get_signo): Update.
7361 * linux-thread-db.c (inferior_has_bug): Update.
7362 * m32c-tdep.c (m32c_return_value)
7363 (m32c_m16c_address_to_pointer): Update.
7364 * m32r-tdep.c (m32r_frame_this_id): Update.
7365 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7366 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7367 * maint.c (maintenance_translate_address): Update.
7368 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7369 (frob_address): New function.
7370 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7371 frob_address. Rename parameter to "pc_in".
7372 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7373 addresses.
7374 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7375 Update.
7376 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7377 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7378 * objc-lang.c (find_objc_msgsend): Update.
7379 * objfiles.c (objfile_relocate1): Update.
7380 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7381 * p-valprint.c (pascal_val_print): Update.
7382 * parse.c (write_exp_msymbol): Update.
7383 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7384 (ppc_elfv2_skip_entrypoint): Update.
7385 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7386 * printcmd.c (build_address_symbolic, msym_info)
7387 (address_info): Update.
7388 * proc-service.c (ps_pglobal_lookup): Update.
7389 * psymtab.c (find_pc_sect_psymtab_closer)
7390 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7391 Change msymbol parameter to bound_minimal_symbol.
7392 * ravenscar-thread.c (get_running_thread_id): Update.
7393 * remote.c (remote_check_symbols): Update.
7394 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7395 address.
7396 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7397 * solib-dsbt.c (lm_base): Update.
7398 * solib-frv.c (lm_base, main_got): Update.
7399 * solib-irix.c (locate_base): Update.
7400 * solib-som.c (som_solib_create_inferior_hook)
7401 (link_map_start): Update.
7402 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7403 * solib-svr4.c (elf_locate_base, enable_break): Update.
7404 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7405 (flush_ea_cache): Update.
7406 * stabsread.c (define_symbol, scan_file_globals): Update.
7407 * stack.c (find_frame_funname): Update.
7408 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7409 (debug_qf_find_pc_sect_symtab): Update.
7410 * symfile.c (simple_read_overlay_table)
7411 (simple_overlay_update): Update.
7412 * symfile.h (struct quick_symbol_functions)
7413 <find_pc_sect_symtab>: Change type of msymbol to
7414 bound_minimal_symbol.
7415 * symmisc.c (dump_msymbols): Update.
7416 * symtab.c (find_pc_sect_symtab_via_partial)
7417 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7418 (search_symbols, print_msymbol_info): Update.
7419 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7420 (MSYMBOL_VALUE_ADDRESS): Redefine.
7421 (BMSYMBOL_VALUE_ADDRESS): New macro.
7422 * tracepoint.c (scope_info): Update.
7423 * tui/tui-disasm.c (tui_find_disassembly_address)
7424 (tui_get_begin_asm_address): Update.
7425 * valops.c (find_function_in_inferior): Update.
7426 * value.c (value_static_field, value_fn_field): Update.
7427
3b7344d5
TT
74282014-02-26 Tom Tromey <tromey@redhat.com>
7429
7430 * ada-lang.c (ada_update_initial_language): Update.
7431 (ada_main_name, ada_has_this_exception_support): Update.
7432 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7433 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7434 * arm-tdep.c (arm_skip_stub): Update.
7435 * auxv.c (ld_so_xfer_auxv): Update.
7436 * avr-tdep.c (avr_scan_prologue): Update.
7437 * ax-gdb.c (gen_var_ref): Update.
7438 * breakpoint.c (struct breakpoint_objfile_data)
7439 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7440 type to bound_minimal_symbol.
7441 (create_overlay_event_breakpoint)
7442 (create_longjmp_master_breakpoint)
7443 (create_std_terminate_master_breakpoint)
7444 (create_exception_master_breakpoint): Update.
7445 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7446 * c-exp.y (classify_name): Update.
7447 * coffread.c (coff_symfile_read): Update.
7448 * common/agent.c (agent_look_up_symbols): Update.
7449 * d-lang.c (d_main_name): Update.
7450 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7451 * dec-thread.c (enable_dec_thread): Update.
7452 * dwarf2loc.c (call_site_to_target_addr): Update.
7453 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7454 * eval.c (evaluate_subexp_standard): Update.
7455 * findvar.c (struct minsym_lookup_data) <result>: Change type
7456 to bound_minimal_symbol.
7457 <objfile>: Remove.
7458 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7459 * frame.c (inside_main_func): Update.
7460 * frv-tdep.c (frv_frame_this_id): Update.
7461 * gcore.c (call_target_sbrk): Update.
7462 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7463 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7464 Update.
7465 * go-lang.c (go_main_name): Update.
7466 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7467 (hppa_hpux_find_import_stub_for_addr): Update.
7468 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7469 Update. Change return type.
7470 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7471 type.
7472 * jit.c (jit_breakpoint_re_set_internal): Update.
7473 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7474 Update.
7475 * linux-nat.c (get_signo): Update.
7476 * linux-thread-db.c (inferior_has_bug): Update
7477 * m32c-tdep.c (m32c_return_value)
7478 (m32c_m16c_address_to_pointer): Update.
7479 * m32r-tdep.c (m32r_frame_this_id): Update.
7480 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7481 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7482 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7483 lookup_minimal_symbol. Change return type.
7484 (lookup_minimal_symbol): Remove.
7485 (lookup_bound_minimal_symbol): Update.
7486 (lookup_minimal_symbol_text): Change return type.
7487 (lookup_minimal_symbol_solib_trampoline): Change return type.
7488 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7489 (lookup_minimal_symbol_solib_trampoline): Change return type.
7490 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7491 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7492 (value_nsstring, find_imps): Update.
7493 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7494 * p-lang.c (pascal_main_name): Update.
7495 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7496 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7497 * proc-service.c (ps_pglobal_lookup): Update.
7498 * ravenscar-thread.c (get_running_thread_msymbol): Change
7499 return type.
7500 (has_ravenscar_runtime, get_running_thread_id): Update.
7501 * remote.c (remote_check_symbols): Update.
7502 * sol-thread.c (ps_pglobal_lookup): Update.
7503 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7504 * solib-dsbt.c (lm_base): Update.
7505 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7506 Update.
7507 * solib-irix.c (locate_base): Update.
7508 * solib-som.c (som_solib_create_inferior_hook)
7509 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7510 Update.
7511 * solib-spu.c (spu_enable_break): Update.
7512 * solib-svr4.c (elf_locate_base, enable_break): Update.
7513 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7514 (flush_ea_cache): Update.
7515 * stabsread.c (define_symbol): Update.
7516 * symfile.c (simple_read_overlay_table): Update.
7517 * symtab.c (find_pc_sect_line): Update.
7518 * tracepoint.c (scope_info): Update.
7519 * tui-disasm.c (tui_get_begin_asm_address): Update.
7520 * value.c (value_static_field): Update.
7521
40c1a007
TT
75222014-02-26 Tom Tromey <tromey@redhat.com>
7523
7524 * minsyms.c (prim_record_minimal_symbol_full): Use
7525 SET_MSYMBOL_VALUE_ADDRESS.
7526 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7527 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7528 SET_MSYMBOL_VALUE_ADDRESS.
7529 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7530 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7531
efd66ac6
TT
75322014-02-26 Tom Tromey <tromey@redhat.com>
7533
7534 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7535 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7536 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7537 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7538 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7539 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7540 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7541 * ada-lang.c (ada_main_name): Update.
7542 (ada_lookup_simple_minsym): Update.
7543 (ada_make_symbol_completion_list): Update.
7544 (ada_add_standard_exceptions): Update.
7545 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7546 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7547 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7548 * arm-tdep.c (skip_prologue_function): Update.
7549 (arm_skip_stack_protector, arm_skip_stub): Update.
7550 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7551 (arm_wince_skip_main_prologue): Update.
7552 * auxv.c (ld_so_xfer_auxv): Update.
7553 * avr-tdep.c (avr_scan_prologue): Update.
7554 * ax-gdb.c (gen_var_ref): Update.
7555 * block.c (call_site_for_pc): Update.
7556 * blockframe.c (get_pc_function_start): Update.
7557 (find_pc_partial_function_gnu_ifunc): Update.
7558 * breakpoint.c (create_overlay_event_breakpoint): Update.
7559 (create_longjmp_master_breakpoint): Update.
7560 (create_std_terminate_master_breakpoint): Update.
7561 (create_exception_master_breakpoint): Update.
7562 (resolve_sal_pc): Update.
7563 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7564 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7565 Update.
7566 * c-valprint.c (c_val_print): Update.
7567 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7568 * coffread.c (coff_symfile_read): Update.
7569 * common/agent.c (agent_look_up_symbols): Update.
7570 * dbxread.c (find_stab_function_addr): Update.
7571 (end_psymtab): Update.
7572 * dwarf2loc.c (call_site_to_target_addr): Update.
7573 (func_verify_no_selftailcall): Update.
7574 (tailcall_dump): Update.
7575 (call_site_find_chain_1): Update.
7576 (dwarf_expr_reg_to_entry_parameter): Update.
7577 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7578 (elf_gnu_ifunc_resolve_by_got): Update.
7579 * f-valprint.c (info_common_command): Update.
7580 * findvar.c (read_var_value): Update.
7581 * frame.c (get_prev_frame_1): Update.
7582 (inside_main_func): Update.
7583 * frv-tdep.c (frv_skip_main_prologue): Update.
7584 (frv_frame_this_id): Update.
7585 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7586 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7587 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7588 (gnuv3_skip_trampoline): Update.
7589 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7590 (hppa64_hpux_in_solib_call_trampoline): Update.
7591 (hppa_hpux_skip_trampoline_code): Update.
7592 (hppa64_hpux_search_dummy_call_sequence): Update.
7593 (hppa_hpux_find_import_stub_for_addr): Update.
7594 (hppa_hpux_find_dummy_bpaddr): Update.
7595 * hppa-tdep.c (hppa_symbol_address)
7596 (hppa_lookup_stub_minimal_symbol): Update.
7597 * i386-tdep.c (i386_skip_main_prologue): Update.
7598 (i386_pe_skip_trampoline_code): Update.
7599 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7600 * infcall.c (get_function_name): Update.
7601 * infcmd.c (until_next_command): Update.
7602 * jit.c (jit_breakpoint_re_set_internal): Update.
7603 (jit_inferior_init): Update.
7604 * linespec.c (minsym_found): Update.
7605 (add_minsym): Update.
7606 * linux-fork.c (info_checkpoints_command): Update.
7607 * linux-nat.c (get_signo): Update.
7608 * linux-thread-db.c (inferior_has_bug): Update.
7609 * m32c-tdep.c (m32c_return_value): Update.
7610 (m32c_m16c_address_to_pointer): Update.
7611 (m32c_m16c_pointer_to_address): Update.
7612 * m32r-tdep.c (m32r_frame_this_id): Update.
7613 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7614 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7615 * maint.c (maintenance_translate_address): Update.
7616 * minsyms.c (add_minsym_to_hash_table): Update.
7617 (add_minsym_to_demangled_hash_table): Update.
7618 (msymbol_objfile): Update.
7619 (lookup_minimal_symbol): Update.
7620 (iterate_over_minimal_symbols): Update.
7621 (lookup_minimal_symbol_text): Update.
7622 (lookup_minimal_symbol_by_pc_name): Update.
7623 (lookup_minimal_symbol_solib_trampoline): Update.
7624 (lookup_minimal_symbol_by_pc_section_1): Update.
7625 (lookup_minimal_symbol_and_objfile): Update.
7626 (prim_record_minimal_symbol_full): Update.
7627 (compare_minimal_symbols): Update.
7628 (compact_minimal_symbols): Update.
7629 (build_minimal_symbol_hash_tables): Update.
7630 (install_minimal_symbols): Update.
7631 (terminate_minimal_symbol_table): Update.
7632 (find_solib_trampoline_target): Update.
7633 (minimal_symbol_upper_bound): Update.
7634 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7635 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7636 (mips_skip_pic_trampoline_code): Update.
7637 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7638 * objc-lang.c (selectors_info): Update.
7639 (classes_info): Update.
7640 (find_methods): Update.
7641 (find_imps): Update.
7642 (find_objc_msgsend): Update.
7643 * objfiles.c (objfile_relocate1): Update.
7644 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7645 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7646 * p-valprint.c (pascal_val_print): Update.
7647 * parse.c (write_exp_msymbol): Update.
7648 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7649 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7650 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7651 * printcmd.c (build_address_symbolic): Update.
7652 (sym_info): Update.
7653 (address_info): Update.
7654 * proc-service.c (ps_pglobal_lookup): Update.
7655 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7656 (find_pc_sect_psymtab): Update.
7657 * python/py-framefilter.c (py_print_frame): Update.
7658 * ravenscar-thread.c (get_running_thread_id): Update.
7659 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7660 Update.
7661 * remote.c (remote_check_symbols): Update.
7662 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7663 (rs6000_skip_trampoline_code): Update.
7664 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7665 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7666 * solib-dsbt.c (lm_base): Update.
7667 * solib-frv.c (lm_base): Update.
7668 (main_got): Update.
7669 * solib-irix.c (locate_base): Update.
7670 * solib-som.c (som_solib_create_inferior_hook): Update.
7671 (som_solib_desire_dynamic_linker_symbols): Update.
7672 (link_map_start): Update.
7673 * solib-spu.c (spu_enable_break): Update.
7674 (ocl_enable_break): Update.
7675 * solib-svr4.c (elf_locate_base): Update.
7676 (enable_break): Update.
7677 * spu-tdep.c (spu_get_overlay_table): Update.
7678 (spu_catch_start): Update.
7679 (flush_ea_cache): Update.
7680 * stabsread.c (define_symbol): Update.
7681 (scan_file_globals): Update.
7682 * stack.c (find_frame_funname): Update.
7683 (frame_info): Update.
7684 * symfile.c (simple_read_overlay_table): Update.
7685 (simple_overlay_update): Update.
7686 * symmisc.c (dump_msymbols): Update.
7687 * symtab.c (fixup_section): Update.
7688 (find_pc_sect_line): Update.
7689 (skip_prologue_sal): Update.
7690 (search_symbols): Update.
7691 (print_msymbol_info): Update.
7692 (rbreak_command): Update.
7693 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7694 (completion_list_objc_symbol): Update.
7695 (default_make_symbol_completion_list_break_on): Update.
7696 * tracepoint.c (scope_info): Update.
7697 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7698 (tui_get_begin_asm_address): Update.
7699 * valops.c (find_function_in_inferior): Update.
7700 * value.c (value_static_field): Update.
7701 (value_fn_field): Update.
7702
50e65b17
TT
77032014-02-26 Tom Tromey <tromey@redhat.com>
7704
7705 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7706 bound minimal symbols. Move code that knows about minsym
7707 table layout...
7708 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7709 function.
7710 * minsyms.h (minimal_symbol_upper_bound): Declare.
7711 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7712 minimal_symbol_upper_bound.
7713
1b588015
JB
77142014-02-27 Joel Brobecker <brobecker@adacore.com>
7715
7716 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7717 Use the type's name if its basic type does not have a tag.
7718
dbb9c2b1
JB
77192014-02-27 Joel Brobecker <brobecker@adacore.com>
7720
7721 * dwarf2read.c (read_subrange_type): Add comment.
7722
55426c9d
JB
77232014-02-27 Joel Brobecker <brobecker@adacore.com>
7724
7725 * dwarf2read.c (update_enumeration_type_from_children): New
7726 function, mostly extracted from process_structure_scope.
7727 (read_enumeration_type): Call update_enumeration_type_from_children.
7728 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7729 and flag_flag_enum fields.
7730
f2fce0ca
PA
77312014-02-26 Pedro Alves <palves@redhat.com>
7732
7733 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7734 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7735 to_xfer_partial method.
7736
7a44e40e
PA
77372014-02-26 Pedro Alves <palves@redhat.com>
7738
7739 * target.c (complete_target_initialization): Don't install
7740 default_xfer_partial as to_xfer_partial hook.
7741 (nomemory): Delete.
7742 (update_current_target): Don't INHERIT nor de_fault
7743 deprecated_xfer_memory. Delete de_fault macro.
7744 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7745 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7746 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7747 field.
7748
bd265cd0
PA
77492014-02-26 Pedro Alves <palves@redhat.com>
7750
7751 * go32-nat.c (my_write_child): New function.
7752 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7753 (go32_xfer_partial): New function.
7754 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7755 Instead install a to_xfer_partial hook.
7756
9d46c4e5
PA
77572014-02-26 Pedro Alves <palves@redhat.com>
7758
7759 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7760 to_xfer_partial helper. Rewrite.
7761 (procfs_xfer_partial): New function.
7762 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7763 Install a to_xfer_partial hook.
7764
a1583b1f
PA
77652014-02-26 Pedro Alves <palves@redhat.com>
7766
7767 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7768 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7769 (m32r_xfer_partial): New function.
7770 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7771 Install a to_xfer_partial hook.
7772
6df1b29f
PA
77732014-02-26 Pedro Alves <palves@redhat.com>
7774
7775 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7776 helper.
7777 (mips_xfer_partial): New function.
7778 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7779 hook. Install a to_xfer_partial hook.
7780
dc53a7ad
JB
77812014-02-26 Joel Brobecker <brobecker@adacore.com>
7782
7783 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7784 * gdbtypes.c (create_array_type_with_stride): New function,
7785 renaming create_array_type, but with an added parameter
7786 called "bit_stride".
7787 (create_array_type): Re-implement using
7788 create_array_type_with_stride.
7789 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7790 and DW_AT_bit_stride attributes.
7791
12ab52e9
PA
77922014-02-26 Pedro Alves <palves@redhat.com>
7793
7794 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7795 task-specific breakpoints.
7796
d16461ae
PA
77972014-02-25 Pedro Alves <palves@redhat.com>
7798
7799 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7800 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7801
a8b16220
SS
78022014-02-25 Stan Shebs <stan@codesourcery.com>
7803
7804 * defs.h: Annotate comments for Doxygen.
7805
b9e795ee
TT
78062014-02-25 Tom Tromey <tromey@redhat.com>
7807
7808 * target.h (target_ignore): Don't declare.
7809 * target.c (target_ignore): Remove.
7810
849c862e
JK
78112014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7812
7813 PR gdb/16626
7814 * auto-load.c (auto_load_objfile_script_1): Change filename to
7815 debugfile.
7816
475109d8
JB
78172014-02-25 Joel Brobecker <brobecker@adacore.com>
7818
7819 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7820 documentation. Adjust prototype to match the target_ops
7821 to_xfer_partial method. Adjust implementation accordingly.
7822
e186c3bd
HZ
78232014-02-25 Hui Zhu <hui@codesourcery.com>
7824
7825 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7826 to_traceframe_info.
7827
6d451942
KB
78282014-02-25 Kevin Buettner <kevinb@redhat.com>
7829
041ab8b4 7830 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7831 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7832 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7833 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7834 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7835 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7836 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7837 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7838 New constants.
7839 (rl78_register_type): Use a data pointer type for SP and
7840 new pseudo registers mentioned above. Use a 16 bit integer
7841 type for all other register pairs.
7842 (rl78_register_name, rl78_g10_register_name): Update for
7843 new pseudo registers.
7844 (rl78_pseudo_register_read): Likewise.
7845 (rl78_pseudo_register_write): Likewise.
7846 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7847 to the newly added pseudo registers.
7848
eddf0bae
DE
78492014-02-24 Doug Evans <dje@google.com>
7850
7851 * value.c (record_latest_value): Fix comment.
7852 * printcmd.c (print_command_1): Remove code to handle -1 return from
7853 record_latest_value.
7854
e96027e0
PA
78552014-02-24 Pedro Alves <palves@redhat.com>
7856
7857 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7858 deprecated_xfer_memory hook.
7859 (procfs_xfer_partial): Call procfs_xfer_memory instead
7860 of the deprecated_xfer_memory target hook.
7861 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7862 helper.
7863
0837c976
YZ
78642014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7865
7866 * windows-nat.c (windows_xfer_shared_libraries): Return
7867 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7868 requested object is TARGET_OBJECT_LIBRARIES.
7869
bc113b4e
YQ
78702014-02-24 Yao Qi <yao@codesourcery.com>
7871
7872 * target.h (enum target_xfer_status)
7873 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7874 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7875 explicitly. New.
7876 * corefile.c (memory_error_message): User updated.
7877 * exec.c (section_table_read_available_memory): Likewise.
7878 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7879 * target.c (target_xfer_status_to_string): Likewise.
7880 (raw_memory_xfer_partial): Likewise.
7881 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7882 * valops.c (read_value_memory): Likewise.
7883 * exec.h: Update comments.
7884
01cb8804
YQ
78852014-02-24 Yao Qi <yao@codesourcery.com>
7886
7887 * target.c (target_xfer_status_to_string): Rename argument err
7888 to status.
7889 * target.h (target_xfer_status_to_string): Update declaration.
7890 Replace target_xfer_error_to_string with
7891 target_xfer_status_to_string in comment.
7892
93063aa6
YQ
78932014-02-24 Yao Qi <yao@codesourcery.com>
7894
7895 * mips-linux-nat.c (super_close): Update its type.
7896 (mips_linux_close): Pass 'self' to super_close.
7897
5c328c05
YQ
78982014-02-24 Yao Qi <yao@codesourcery.com>
7899
7900 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7901 * corefile.c (read_memory): Adjusted.
7902 * target.c (target_write_with_progress): Adjusted.
7903
f73023dd
YQ
79042014-02-23 Yao Qi <yao@codesourcery.com>
7905
7906 Revert two patches:
7907
7908 2013-10-25 Yao Qi <yao@codesourcery.com>
7909
7910 * remote.c (remote_traceframe_info): Return early if
7911 traceframe is not selected.
7912
7913 2013-07-19 Yao Qi <yao@codesourcery.com>
7914
7915 * target.c (update_current_target): Change the default action
7916 of 'to_traceframe_info' from tcomplain to return_zero.
7917 * target.h (struct target_ops) <to_traceframe_info>: Add more
7918 comments.
7919
5a2eb0ef
YQ
79202014-02-23 Yao Qi <yao@codesourcery.com>
7921
7922 * valops.c (read_value_memory): Rewrite it. Call
7923 target_xfer_partial in a loop.
7924 * exec.h (section_table_available_memory): Remove declaration.
7925 Move comments to ...
7926 * exec.c (section_table_available_memory): ... here. Make it
7927 static.
7928
1ee79381
YQ
79292014-02-23 Yao Qi <yao@codesourcery.com>
7930
7931 * exec.c (section_table_read_available_memory): New function.
7932 * exec.h (section_table_read_available_memory): Declare.
7933 * ctf.c (ctf_xfer_partial): Call
7934 section_table_read_available_memory.
7935 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7936
1ca49d37
YQ
79372014-02-23 Yao Qi <yao@codesourcery.com>
7938
7939 * ctf.c (ctf_xfer_partial): Move code to ...
7940 * exec.c (exec_read_partial_read_only): ... it. New function.
7941 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7942 * tracefile.c: Include "exec.h".
7943 * exec.h (exec_read_partial_read_only): Declare.
7944
a283690e
YQ
79452014-02-23 Yao Qi <yao@codesourcery.com>
7946
7947 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7948 (tfile_has_memory): Remove.
7949 (init_tfile_ops): Don't set fields to_has_all_memory and
7950 to_has_memory of tfile_ops.
7951 * tracefile.c (tracefile_has_all_memory): New function.
7952 (tracefile_has_memory): New function.
7953 (init_tracefile_ops): Initialize fields to_has_all_memory and
7954 to_has_memory of 'ops'.
7955
12e03cd0
YQ
79562014-02-23 Yao Qi <yao@codesourcery.com>
7957
7958 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7959 (ctf_thread_alive, ctf_get_trace_status): Remove.
7960 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7961 init_tracefile_ops.
7962 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7963 (tfile_has_stack, tfile_has_registers): Remove.
7964 (tfile_thread_alive): Remove.
7965 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7966 init_tracefile_ops.
7967 * tracefile.c (tracefile_has_stack): New function.
7968 (tracefile_has_registers): New function.
7969 (tracefile_thread_alive): New function.
7970 (tracefile_get_trace_status): New function.
7971 (init_tracefile_ops): New function.
7972 * tracefile.h (init_tracefile_ops): Declare.
7973
11395323
YQ
79742014-02-23 Yao Qi <yao@codesourcery.com>
7975
7976 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7977 (O_LARGEFILE): Likewise.
7978 (tfile_ops): Likewise.
7979 (TRACE_HEADER_SIZE): Likewise.
7980 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7981 (cur_data_size): Likewise.
7982 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7983 (tfile_close, tfile_files_info): Likewise.
7984 (tfile_get_trace_status): Likewise.
7985 (tfile_get_tracepoint_status): Likewise.
7986 (tfile_get_traceframe_address): Likewise.
7987 (tfile_trace_find, match_blocktype): Likewise.
7988 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7989 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7990 (tfile_get_trace_state_variable_value): Likewise.
7991 (tfile_has_all_memory, tfile_has_memory): Likewise.
7992 (tfile_has_stack, tfile_has_registers): Likewise.
7993 (tfile_thread_alive, build_traceframe_info): Likewise.
7994 (tfile_traceframe_info, init_tfile_ops): Likewise.
7995 (_initialize_tracepoint): Don't call init_tfile_ops
7996 and add_target_with_completer.
7997 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7998 exec.h, completer.h and filenames.h.
7999 (_initialize_tracefile_tfile): New function.
8000
7951c4eb
YQ
80012014-02-23 Yao Qi <yao@codesourcery.com>
8002
8003 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8004 tracefile-tfile.o.
8005 (HFILES_NO_SRCDIR): Add tracefile.h.
8006 * ctf.c: Include "tracefile.h".
8007 * tracefile.h: New file.
8008 * tracefile.c: New file
8009 * tracefile-tfile.c: New file.
8010 * tracepoint.c: Include "tracefile.h".
8011 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8012 (stop_reason_names): Add const.
8013 (trace_file_writer_xfree): Move it to tracefile.c.
8014 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8015 (trace_save_ctf): Likewise.
8016 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8017 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8018 (tfile_write_header, tfile_write_regblock_type): Likewise.
8019 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8020 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8021 (tfile_write_raw_data, tfile_end): Likewise.
8022 (tfile_trace_file_writer_new): Likewise.
8023 (free_uploaded_tp): Make it extern.
8024 (free_uploaded_tsv): Make it extern.
8025 (_initialize_tracepoint): Move code to register command 'tsave'
8026 to tracefile.c.
8027 * tracepoint.h (stop_reason_names): Declare.
8028 (struct trace_frame_write_ops): Move it to tracefile.h.
8029 (struct trace_file_write_ops): Likewise.
8030 (struct trace_file_writer): Likewise.
8031 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8032
184cd072
JK
80332014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8034
8035 PR gdb/16594
8036 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8037 process name.
8038 (get_cores_used_by_process): New parameter num_cores, use it.
8039 (linux_xfer_osdata_processes): Pass num_cores to it.
8040 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8041 process name.
8042
c63528fc
AK
80432014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8044
8045 * target.c (memory_xfer_partial): Fix length arg in call to
8046 breakpoint_xfer_memory.
8047
d7b30f67
SDJ
80482014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8049
8050 PR tdep/16397
8051 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8052 number comes after the + or - signs. Adjust length of register
8053 name to be extracted.
8054
8838afaf
TT
80552014-02-20 Tom Tromey <tromey@redhat.com>
8056
8057 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8058 (ada_varobj_ops): Mark "extern".
8059
05227d14
TT
80602014-02-20 Tom Tromey <tromey@redhat.com>
8061
8062 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8063
1254eefc
DE
80642014-02-20 Doug Evans <xdje42@gmail.com>
8065
8066 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8067 All callers updated.
8068 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8069 All callers updated.
8070 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8071 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8072
adde2bff
DE
80732014-02-20 lin zuojian <manjian2006@gmail.com>
8074 Joel Brobecker <brobecker@adacore.com>
8075 Doug Evans <xdje42@gmail.com>
8076
8077 PR symtab/16581
8078 * dwarf2read.c (struct die_info): New member in_process.
8079 (reset_die_in_process): New function.
8080 (process_die): Set it at the start, reset when returning.
8081 (inherit_abstract_dies): Only call process_die if origin_child_die
8082 not already being processed.
8083
3be75f87
JB
80842014-02-20 Joel Brobecker <brobecker@adacore.com>
8085
8086 * windows-nat.c (handle_unload_dll): Add function documentation.
8087 (do_initial_windows_stuff): Add comment explaining why we wait
8088 until after inferior initialization has finished before
8089 processing all DLLs.
8090
47f7ffdb
JB
80912014-02-20 Joel Brobecker <brobecker@adacore.com>
8092
8093 * windows-nat.c (get_module_name): Delete.
8094 (windows_get_exec_module_filename): New function, mostly
8095 inspired from get_module_name.
8096 (windows_pid_to_exec_file): Replace call to get_module_name
8097 by call to windows_get_exec_module_filename.
8098
1cd9feab
JB
80992014-02-20 Joel Brobecker <brobecker@adacore.com>
8100
8101 * windows-nat.c (handle_load_dll): Rewrite this function's
8102 introductory comment. Remove code using get_module_name
8103 to get the DLL's name.
8104
ea39ad35
JB
81052014-02-20 Joel Brobecker <brobecker@adacore.com>
8106
8107 * windows-nat.c (get_windows_debug_event): Ignore
8108 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8109 if windows_initialization_done == 0.
8110 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8111 Adjust implementation to always load all DLLs.
8112 (do_initial_windows_stuff): Replace call to
8113 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8114
95060284
JB
81152014-02-20 Joel Brobecker <brobecker@adacore.com>
8116
8117 * windows-nat.c (_initialize_windows_nat): Deprecate the
8118 "dll-symbols" command. Turn the "add-shared-symbol-files"
8119 and "assf" aliases into commands, and deprecate them as well.
8120 * NEWS: Add entry explaining that "dll-symbols" and its two
8121 aliases are now deprecated.
8122
8d4fdb12
JB
81232014-02-20 Joel Brobecker <brobecker@adacore.com>
8124
8125 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8126 new-line in debug string. Remove trailing spaces.
8127
1b281443
SS
81282014-02-19 Stan Shebs <stan@codesourcery.com>
8129
8130 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8131
f7bd0f78
SC
81322014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8133
8134 * NEWS: Add entry for the new feature
8135 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8136 and class values.
8137
399ebc3d
SS
81382014-02-19 Stan Shebs <stan@codesourcery.com>
8139
8140 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8141
c658158d
PA
81422014-02-19 Pedro Alves <palves@redhat.com>
8143
8144 * common/ptid.h (struct ptid): Mention that process_stratum
8145 targets should prefer ptid.lwp.
8146
ba348170
PA
81472014-02-19 Pedro Alves <palves@redhat.com>
8148
8149 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8150 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8151 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8152 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8153 store remote thread ids rather than ptid.tid.
8154 (_initialize_remote): Adjust.
8155
ac01945b
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target.c (target_get_unwinder): Rewrite.
8159 (target_get_tailcall_unwinder): Rewrite.
8160 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8161 (record_btrace_to_get_tailcall_unwinder): New function.
8162 (init_record_btrace_ops): Update.
8163 * target.h (struct target_ops) <to_get_unwinder,
8164 to_get_tailcall_unwinder>: Now function pointers. Use
8165 TARGET_DEFAULT_RETURN.
8166
8476dc92
TT
81672014-02-19 Tom Tromey <tromey@redhat.com>
8168
8169 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8170 argument.
8171 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8172
c0eca49f
TT
81732014-02-19 Tom Tromey <tromey@redhat.com>
8174
8175 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8176 directly.
8177 * target-delegates.c: Rebuild.
8178 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8179 TARGET_DEFAULT_FUNC.
8180 * target.c (default_target_decr_pc_after_break): Rename from
8181 forward_target_decr_pc_after_break. Simplify.
8182 (target_decr_pc_after_break): Rely on delegation.
8183
596b6b39
TT
81842014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target.c (update_current_target): Do not INHERIT to_doc or
8187 to_magic. Do not de_fault to_open or to_close.
8188
b427c1bc
TT
81892014-02-19 Tom Tromey <tromey@redhat.com>
8190
8191 * gcore.h (objfile_find_memory_regions): Declare.
8192 * gcore.c (objfile_find_memory_regions): No longer static. Add
8193 "self" argument.
8194 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8195 * exec.c: Include gcore.h.
8196 (exec_set_find_memory_regions): Remove.
8197 (exec_find_memory_regions): Remove.
8198 (exec_do_find_memory_regions): Remove.
8199 (init_exec_ops): Update.
8200 * defs.h (exec_set_find_memory_regions): Remove.
8201
9b144037
TT
82022014-02-19 Tom Tromey <tromey@redhat.com>
8203
8204 * target-delegates.c: Rebuild.
8205 * target.h (struct target_ops) <to_extra_thread_info,
8206 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8207 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8208 not 0, in TARGET_DEFAULT_RETURN.
8209
555bbdeb
TT
82102014-02-19 Tom Tromey <tromey@redhat.com>
8211
8212 * target.c (complete_target_initialization): Remove casts. Use
8213 return_zero_has_execution.
8214 (return_zero): Add "ignore" argument.
8215 (return_zero_has_execution): New function.
8216 (init_dummy_target): Remove casts. Use
8217 return_zero_has_execution.
8218
be4ddd36
TT
82192014-02-19 Tom Tromey <tromey@redhat.com>
8220
8221 * target.c (update_current_target): Update comments. Do not
8222 INHERIT to_stratum.
8223
2117c711
TT
82242014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8227 needed.
8228 * corelow.c (core_read_description): Delegate when needed.
8229 * remote.c (remote_read_description): Delegate when needed.
8230 * target-delegates.c: Rebuild.
8231 * target.c (target_read_description): Rewrite.
8232 * target.h (struct target_ops) <to_read_description>: Update
8233 comment. Use TARGET_DEFAULT_RETURN.
8234
e88ef65c
TT
82352014-02-19 Tom Tromey <tromey@redhat.com>
8236
8237 * target-delegates.c: Rebuild.
8238 * target.c (update_current_target): Don't inherit or default
8239 to_can_run.
8240 (find_default_run_target): Check against delegate_can_run.
8241 * target.h (struct target_ops) <to_can_run>: Use
8242 TARGET_DEFAULT_RETURN.
8243
86a0854a
TT
82442014-02-19 Tom Tromey <tromey@redhat.com>
8245
8246 * target-delegates.c: Rebuild.
8247 * target.c (target_disconnect): Unconditionally delegate.
8248 * target.h (struct target_ops) <to_disconnect>: Use
8249 TARGET_DEFAULT_NORETURN.
8250
ee97f592
TT
82512014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * record.c (record_stop): Unconditionally delegate.
8254 * target-delegates.c: Rebuild.
8255 * target.c (target_stop_recording): Unconditionally delegate.
8256 * target.h (struct target_ops) <to_stop_recording>: Use
8257 TARGET_DEFAULT_IGNORE.
8258
6dc7fcf4
TT
82592014-02-19 Tom Tromey <tromey@redhat.com>
8260
8261 * target-delegates.c: Rebuild.
8262 * target.c (target_enable_btrace): Unconditionally delegate.
8263 * target.h (struct target_ops) <to_enable_btrace>: Use
8264 TARGET_DEFAULT_NORETURN.
8265
eb5b20d4
TT
82662014-02-19 Tom Tromey <tromey@redhat.com>
8267
8268 * target-delegates.c: Rebuild.
8269 * target.c (target_read_btrace): Unconditionally delegate.
8270 * target.h (struct target_ops) <to_read_btrace>: Use
8271 TARGET_DEFAULT_NORETURN.
8272
9ace480d
TT
82732014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target-delegates.c: Rebuild.
8276 * target.c (target_teardown_btrace): Unconditionally delegate.
8277 * target.h (struct target_ops) <to_teardown_btrace>: Use
8278 TARGET_DEFAULT_NORETURN.
8279
8dc292d3
TT
82802014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * target-delegates.c: Rebuild.
8283 * target.c (target_disable_btrace): Unconditionally delegate.
8284 * target.h (struct target_ops) <to_disable_btrace>: Use
8285 TARGET_DEFAULT_NORETURN.
8286
58a5184e
TT
82872014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target-delegates.c: Rebuild.
8290 * target.c (default_search_memory): New function.
8291 (simple_search_memory): Update comment.
8292 (target_search_memory): Unconditionally delegate.
8293 * target.h (struct target_ops) <to_search_memory>: Use
8294 TARGET_DEFAULT_FUNC.
8295
8de71aab
TT
82962014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * auxv.c (default_auxv_parse): No longer static.
8299 (target_auxv_parse): Unconditionally delegate.
8300 * auxv.h (default_auxv_parse): Declare.
8301 * target-delegates.c: Rebuild.
8302 * target.c: Include auxv.h.
8303 * target.h (struct target_ops) <to_auxv_parse>: Use
8304 TARGET_DEFAULT_FUNC.
8305
6b2c5a57
TT
83062014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * target-delegates.c: Rebuild.
8309 * target.c (target_memory_map): Unconditionally delegate.
8310 * target.h (struct target_ops) <to_memory_map>: Use
8311 TARGET_DEFAULT_RETURN.
8312
cbffc065
TT
83132014-02-19 Tom Tromey <tromey@redhat.com>
8314
8315 * target-delegates.c: Rebuild.
8316 * target.c (target_thread_alive): Unconditionally delegate.
8317 * target.h (struct target_ops) <to_thread_alive>: Use
8318 TARGET_DEFAULT_RETURN.
8319
f09e2107
TT
83202014-02-19 Tom Tromey <tromey@redhat.com>
8321
8322 * target-delegates.c: Rebuild.
8323 * target.c (target_save_record): Unconditionally delegate.
8324 * target.h (struct target_ops) <to_save_record>: Use
8325 TARGET_DEFAULT_NORETURN.
8326
07366925
TT
83272014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * target-delegates.c: Rebuild.
8330 * target.c (target_delete_record): Unconditionally delegate.
8331 * target.h (struct target_ops) <to_delete_record>: Use
8332 TARGET_DEFAULT_NORETURN.
8333
dd2e9d25
TT
83342014-02-19 Tom Tromey <tromey@redhat.com>
8335
8336 * target-delegates.c: Rebuild.
8337 * target.c (target_record_is_replaying): Unconditionally
8338 delegate.
8339 * target.h (struct target_ops) <to_record_is_replaying>: Use
8340 TARGET_DEFAULT_RETURN.
8341
671e76cc
TT
83422014-02-19 Tom Tromey <tromey@redhat.com>
8343
8344 * target-delegates.c: Rebuild.
8345 * target.c (target_goto_record_begin): Unconditionally delegate.
8346 * target.h (struct target_ops) <to_goto_record_begin>: Use
8347 TARGET_DEFAULT_NORETURN.
8348
e9179bb3
TT
83492014-02-19 Tom Tromey <tromey@redhat.com>
8350
8351 * target-delegates.c: Rebuild.
8352 * target.c (target_goto_record_end): Unconditionally delegate.
8353 * target.h (struct target_ops) <to_goto_record_end>: Use
8354 TARGET_DEFAULT_NORETURN.
8355
05969c84
TT
83562014-02-19 Tom Tromey <tromey@redhat.com>
8357
8358 * target-delegates.c: Rebuild.
8359 * target.c (target_goto_record): Unconditionally delegate.
8360 * target.h (struct target_ops) <to_goto_record>: Use
8361 TARGET_DEFAULT_NORETURN.
8362
3679abfa
TT
83632014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * target-delegates.c: Rebuild.
8366 * target.c (target_insn_history): Unconditionally delegate.
8367 * target.h (struct target_ops) <to_insn_history>: Use
8368 TARGET_DEFAULT_NORETURN.
8369
8444ab58
TT
83702014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (target_insn_history_from): Unconditionally delegate.
8374 * target.h (struct target_ops) <to_insn_history_from>: Use
8375 TARGET_DEFAULT_NORETURN.
8376
c29302cc
TT
83772014-02-19 Tom Tromey <tromey@redhat.com>
8378
8379 * target-delegates.c: Rebuild.
8380 * target.c (target_insn_history_range): Unconditionally delegate.
8381 * target.h (struct target_ops) <to_insn_history_range>: Use
8382 TARGET_DEFAULT_NORETURN.
8383
170049d4
TT
83842014-02-19 Tom Tromey <tromey@redhat.com>
8385
8386 * target-delegates.c: Rebuild.
8387 * target.c (target_call_history): Unconditionally delegate.
8388 * target.h (struct target_ops) <to_call_history>: Use
8389 TARGET_DEFAULT_NORETURN.
8390
16fc27d6
TT
83912014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * target-delegates.c: Rebuild.
8394 * target.c (target_call_history_from): Unconditionally delegate.
8395 * target.h (struct target_ops) <to_call_history_from>: Use
8396 TARGET_DEFAULT_NORETURN.
8397
115d9817
TT
83982014-02-19 Tom Tromey <tromey@redhat.com>
8399
8400 * target-delegates.c: Rebuild.
8401 * target.c (target_call_history_range): Unconditionally delegate.
8402 * target.h (struct target_ops) <to_call_history_range>: Use
8403 TARGET_DEFAULT_NORETURN.
8404
eb276a6b
TT
84052014-02-19 Tom Tromey <tromey@redhat.com>
8406
8407 * target-delegates.c: Rebuild.
8408 * target.c (target_verify_memory): Unconditionally delegate.
8409 * target.h (struct target_ops) <to_verify_memory>: Use
8410 TARGET_DEFAULT_NORETURN.
8411
9e538d0d
TT
84122014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (target_core_of_thread): Unconditionally delegate.
8416 * target.h (struct target_ops) <to_core_of_thread>: Use
8417 TARGET_DEFAULT_RETURN.
8418
f6fb2925
TT
84192014-02-19 Tom Tromey <tromey@redhat.com>
8420
8421 * target-delegates.c: Rebuild.
8422 * target.c (target_flash_done): Unconditionally delegate.
8423 * target.h (struct target_ops) <to_flash_done>: Use
8424 TARGET_DEFAULT_NORETURN.
8425
e8a6c6ac
TT
84262014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (target_flash_erase): Unconditionally delegate.
8430 * target.h (struct target_ops) <to_flash_erase>: Use
8431 TARGET_DEFAULT_NORETURN.
8432
7e35c012
TT
84332014-02-19 Tom Tromey <tromey@redhat.com>
8434
8435 * target-delegates.c: Rebuild.
8436 * target.c (target_get_section_table): Unconditionally delegate.
8437 * target.h (struct target_ops) <to_get_section_table>: Use
8438 TARGET_DEFAULT_RETURN.
8439
770234d3
TT
84402014-02-19 Tom Tromey <tromey@redhat.com>
8441
8442 * target-delegates.c: Rebuild.
8443 * target.c (target_pid_to_str): Unconditionally delegate.
8444 (init_dummy_target): Don't initialize to_pid_to_str.
8445 (default_pid_to_str): Rename from dummy_pid_to_str.
8446 * target.h (struct target_ops) <to_pid_to_str>: Use
8447 TARGET_DEFAULT_FUNC.
8448
09b0dc2b
TT
84492014-02-19 Tom Tromey <tromey@redhat.com>
8450
8451 * target-delegates.c: Rebuild.
8452 * target.c (target_find_new_threads): Unconditionally delegate.
8453 * target.h (struct target_ops) <to_find_new_threads>: Use
8454 TARGET_DEFAULT_RETURN.
8455
7d4f8efa
TT
84562014-02-19 Tom Tromey <tromey@redhat.com>
8457
8458 * target-delegates.c: Rebuild.
8459 * target.c (target_program_signals): Unconditionally delegate.
8460 * target.h (struct target_ops) <to_program_signals>: Use
8461 TARGET_DEFAULT_IGNORE.
8462
035cad7f
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target-delegates.c: Rebuild.
8466 * target.c (target_pass_signals): Unconditionally delegate.
8467 * target.h (struct target_ops) <to_pass_signals>: Use
8468 TARGET_DEFAULT_IGNORE.
8469
8d657035
TT
84702014-02-19 Tom Tromey <tromey@redhat.com>
8471
8472 * target-delegates.c: Rebuild.
8473 * target.c (default_mourn_inferior): New function.
8474 (target_mourn_inferior): Unconditionally delegate.
8475 * target.h (struct target_ops) <to_mourn_inferior>: Use
8476 TARGET_DEFAULT_FUNC.
8477
098dba18
TT
84782014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target-delegates.c: Rebuild.
8481 * target.c (default_follow_fork): New function.
8482 (target_follow_fork): Unconditionally delegate.
8483 * target.h (struct target_ops) <to_follow_fork>: Use
8484 TARGET_DEFAULT_FUNC.
8485
423a4807
TT
84862014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target-delegates.c: Rebuild.
8489 * target.c (target_kill): Unconditionally delegate.
8490 * target.h (struct target_ops) <to_kill>: Use
8491 TARGET_DEFAULT_NORETURN.
8492
6c7e5e5c
TT
84932014-02-19 Tom Tromey <tromey@redhat.com>
8494
8495 * target-delegates.c: Rebuild.
8496 * target.c (target_masked_watch_num_registers): Unconditionally
8497 delegate.
8498 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8499 Use TARGET_DEFAULT_RETURN.
8500
8b1c364c
TT
85012014-02-19 Tom Tromey <tromey@redhat.com>
8502
8503 * target-delegates.c: Rebuild.
8504 * target.c (target_remove_mask_watchpoint): Unconditionally
8505 delegate.
8506 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8507 TARGET_DEFAULT_RETURN.
8508
cd4ae029
TT
85092014-02-19 Tom Tromey <tromey@redhat.com>
8510
8511 * target-delegates.c: Rebuild.
8512 * target.c (target_insert_mask_watchpoint): Unconditionally
8513 delegate.
8514 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8515 TARGET_DEFAULT_RETURN.
8516
a134316b
TT
85172014-02-19 Tom Tromey <tromey@redhat.com>
8518
8519 * target-delegates.c: Rebuild.
8520 * target.c (target_ranged_break_num_registers): Unconditionally
8521 delegate.
8522 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8523 Use TARGET_DEFAULT_RETURN.
8524
ad5989bd
TT
85252014-02-19 Tom Tromey <tromey@redhat.com>
8526
8527 * target-delegates.c: Rebuild.
8528 * target.c (target_fetch_registers): Unconditionally delegate.
8529 * target.h (struct target_ops) <to_fetch_registers>: Use
8530 TARGET_DEFAULT_NORETURN.
8531
46ee7e8d
TT
85322014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_stop.
8537 * target.h (struct target_ops) <to_stop>: Use
8538 TARGET_DEFAULT_IGNORE.
8539
843f59ed
TT
85402014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_can_run_breakpoint_commands.
8545 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8546 Use TARGET_DEFAULT_RETURN.
8547
ccfde2a0
TT
85482014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_supports_evaluation_of_breakpoint_conditions.
8553 * target.h (struct target_ops)
8554 <to_supports_evaluation_of_breakpoint_conditions>: Use
8555 TARGET_DEFAULT_RETURN.
8556
0de91722
TT
85572014-02-19 Tom Tromey <tromey@redhat.com>
8558
8559 * target-delegates.c: Rebuild.
8560 * target.c (update_current_target): Don't inherit or default
8561 to_augmented_libraries_svr4_read.
8562 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8563 Use TARGET_DEFAULT_RETURN.
8564
9a7d8b48
TT
85652014-02-19 Tom Tromey <tromey@redhat.com>
8566
8567 * target-delegates.c: Rebuild.
8568 * target.c (update_current_target): Don't inherit or default
8569 to_can_use_agent.
8570 * target.h (struct target_ops) <to_can_use_agent>: Use
8571 TARGET_DEFAULT_RETURN.
8572
d9db5b21
TT
85732014-02-19 Tom Tromey <tromey@redhat.com>
8574
8575 * target-delegates.c: Rebuild.
8576 * target.c (update_current_target): Don't inherit or default
8577 to_use_agent.
8578 * target.h (struct target_ops) <to_use_agent>: Use
8579 TARGET_DEFAULT_NORETURN.
8580
92155eeb
TT
85812014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target-delegates.c: Rebuild.
8584 * target.c (update_current_target): Don't inherit or default
8585 to_traceframe_info.
8586 (return_null): Remove.
8587 * target.h (struct target_ops) <to_traceframe_info>: Use
8588 TARGET_DEFAULT_RETURN.
8589
d6522a22
TT
85902014-02-19 Tom Tromey <tromey@redhat.com>
8591
8592 * target-delegates.c: Rebuild.
8593 * target.c (update_current_target): Don't inherit or default
8594 to_static_tracepoint_markers_by_strid.
8595 * target.h (struct target_ops)
8596 <to_static_tracepoint_markers_by_strid>: Use
8597 TARGET_DEFAULT_NORETURN.
8598
4c3e4425
TT
85992014-02-19 Tom Tromey <tromey@redhat.com>
8600
8601 * target-delegates.c: Rebuild.
8602 * target.c (update_current_target): Don't inherit or default
8603 to_static_tracepoint_marker_at.
8604 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8605 Use TARGET_DEFAULT_RETURN.
8606
dcd6917f
TT
86072014-02-19 Tom Tromey <tromey@redhat.com>
8608
8609 * target-delegates.c: Rebuild.
8610 * target.c (update_current_target): Don't inherit or default
8611 to_set_permissions.
8612 * target.h (struct target_ops) <to_set_permissions>: Use
8613 TARGET_DEFAULT_IGNORE.
8614
22bcceee
TT
86152014-02-19 Tom Tromey <tromey@redhat.com>
8616
8617 * target-delegates.c: Rebuild.
8618 * target.c (update_current_target): Don't inherit or default
8619 to_get_tib_address.
8620 * target.h (struct target_ops) <to_get_tib_address>: Use
8621 TARGET_DEFAULT_NORETURN.
8622
8586ccaa
TT
86232014-02-19 Tom Tromey <tromey@redhat.com>
8624
8625 * target-delegates.c: Rebuild.
8626 * target.c (update_current_target): Don't inherit or default
8627 to_set_trace_notes.
8628 * target.h (struct target_ops) <to_set_trace_notes>: Use
8629 TARGET_DEFAULT_RETURN.
8630
91df8d1d
TT
86312014-02-19 Tom Tromey <tromey@redhat.com>
8632
8633 * target-delegates.c: Rebuild.
8634 * target.c (update_current_target): Don't initialize
8635 to_set_trace_buffer_size.
8636 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8637 TARGET_DEFAULT_IGNORE.
8638
8d526939
TT
86392014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * target-delegates.c: Rebuild.
8642 * target.c (update_current_target): Don't inherit or default
8643 to_set_circular_trace_buffer.
8644 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8645 TARGET_DEFAULT_IGNORE.
8646
0bcfeddf
TT
86472014-02-19 Tom Tromey <tromey@redhat.com>
8648
8649 * target-delegates.c: Rebuild.
8650 * target.c (update_current_target): Don't inherit or default
8651 to_set_disconnected_tracing.
8652 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8653 TARGET_DEFAULT_IGNORE.
8654
9249843f
TT
86552014-02-19 Tom Tromey <tromey@redhat.com>
8656
8657 * target-delegates.c: Rebuild.
8658 * target.c (update_current_target): Don't inherit or default
8659 to_get_min_fast_tracepoint_insn_len.
8660 (return_minus_one): Remove.
8661 * target.h (struct target_ops)
8662 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8663
ace92e7d
TT
86642014-02-19 Tom Tromey <tromey@redhat.com>
8665
8666 * target-delegates.c: Rebuild.
8667 * target.c (update_current_target): Don't inherit or default
8668 to_get_raw_trace_data.
8669 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8670 TARGET_DEFAULT_NORETURN.
8671
08120467
TT
86722014-02-19 Tom Tromey <tromey@redhat.com>
8673
8674 * target-delegates.c: Rebuild.
8675 * target.c (update_current_target): Don't inherit or default
8676 to_upload_trace_state_variables.
8677 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8678 Use TARGET_DEFAULT_RETURN.
8679
1e949b00
TT
86802014-02-19 Tom Tromey <tromey@redhat.com>
8681
8682 * target-delegates.c: Rebuild.
8683 * target.c (update_current_target): Don't inherit or default
8684 to_upload_tracepoints.
8685 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8686 TARGET_DEFAULT_RETURN.
8687
a2e6c147
TT
86882014-02-19 Tom Tromey <tromey@redhat.com>
8689
8690 * target-delegates.c: Rebuild.
8691 * target.c (update_current_target): Don't inherit or default
8692 to_save_trace_data.
8693 * target.h (struct target_ops) <to_save_trace_data>: Use
8694 TARGET_DEFAULT_NORETURN.
8695
959bcd0b
TT
86962014-02-19 Tom Tromey <tromey@redhat.com>
8697
8698 * target-delegates.c: Rebuild.
8699 * target.c (update_current_target): Don't inherit or default
8700 to_get_trace_state_variable_value.
8701 * target.h (struct target_ops)
8702 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8703
afc94e66
TT
87042014-02-19 Tom Tromey <tromey@redhat.com>
8705
8706 * target-delegates.c: Rebuild.
8707 * target.c (update_current_target): Don't inherit or default
8708 to_trace_find.
8709 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8710
e51c07ea
TT
87112014-02-19 Tom Tromey <tromey@redhat.com>
8712
8713 * target-delegates.c: Rebuild.
8714 * target.c (update_current_target): Don't inherit or default
8715 to_trace_stop.
8716 * target.h (struct target_ops) <to_trace_stop>: Use
8717 TARGET_DEFAULT_NORETURN.
8718
6fea14cd
TT
87192014-02-19 Tom Tromey <tromey@redhat.com>
8720
8721 * target-delegates.c: Rebuild.
8722 * target.c (update_current_target): Don't inherit or default
8723 to_get_tracepoint_status.
8724 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8725 TARGET_DEFAULT_NORETURN.
8726
4072d4ff
TT
87272014-02-19 Tom Tromey <tromey@redhat.com>
8728
8729 * target-delegates.c: Rebuild.
8730 * target.c (update_current_target): Don't inherit or default
8731 to_get_trace_status.
8732 * target.h (struct target_ops) <to_get_trace_status>: Use
8733 TARGET_DEFAULT_RETURN.
8734
25da2e80
TT
87352014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_trace_start.
8740 * target.h (struct target_ops) <to_trace_start>: Use
8741 TARGET_DEFAULT_NORETURN.
8742
86dd181d
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_trace_set_readonly_regions.
8748 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8749 Use TARGET_DEFAULT_NORETURN.
8750
05c41993
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_disable_tracepoint.
8756 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8757 TARGET_DEFAULT_NORETURN.
8758
151f70f1
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_enable_tracepoint.
8764 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8765 TARGET_DEFAULT_NORETURN.
8766
94eb98b9
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_download_trace_state_variable.
8772 * target.h (struct target_ops) <to_download_trace_state_variable>:
8773 Use TARGET_DEFAULT_NORETURN.
8774
719acc4a
TT
87752014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8779 to_can_download_tracepoint.
8780 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8781 TARGET_DEFAULT_RETURN.
8782
9a980a22
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_download_tracepoint.
8788 * target.h (struct target_ops) <to_download_tracepoint>: Use
8789 TARGET_DEFAULT_NORETURN.
8790
5536135b
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_trace_init.
8796 * target.h (struct target_ops) <to_trace_init>: Use
8797 TARGET_DEFAULT_RETURN.
8798
9409d39e
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_supports_string_tracing.
8804 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8805 TARGET_DEFAULT_RETURN.
8806
aab1b22d
TT
88072014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target-delegates.c: Rebuild.
8810 * target.c (update_current_target): Don't inherit or default
8811 to_supports_enable_disable_tracepoint.
8812 * target.h (struct target_ops)
8813 <to_supports_enable_disable_tracepoint>: Use
8814 TARGET_DEFAULT_RETURN.
8815
a7304748
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_supports_multi_process.
8821 * target.h (struct target_ops) <to_supports_multi_process>: Use
8822 TARGET_DEFAULT_RETURN.
8823
4229b31d
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_get_ada_task_ptid.
8829 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8830 TARGET_DEFAULT_FUNC.
8831
43eba180
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_thread_architecture.
8837 * target.h (struct target_ops) <to_thread_architecture>: Use
8838 TARGET_DEFAULT_FUNC.
8839
fe31bf5b
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_execution_direction.
8845 * target.h (struct target_ops) <to_execution_direction>: Use
8846 TARGET_DEFAULT_FUNC.
8847
53e1cfc7
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_can_execute_reverse.
8853 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8854 TARGET_DEFAULT_RETURN.
8855 (target_can_execute_reverse): Unconditionally delegate.
8856
9bb9d61d
TT
88572014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * target-delegates.c: Rebuild.
8860 * target.c (update_current_target): Don't inherit or default
8861 to_goto_bookmark.
8862 (dummy_goto_bookmark): Remove.
8863 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8864 * target.h (struct target_ops) <to_goto_bookmark>: Use
8865 TARGET_DEFAULT_NORETURN.
8866
3dbafbbb
TT
88672014-02-19 Tom Tromey <tromey@redhat.com>
8868
8869 * target-delegates.c: Rebuild.
8870 * target.c (update_current_target): Don't inherit or default
8871 to_get_bookmark.
8872 (dummy_get_bookmark): Remove.
8873 (init_dummy_target): Don't inherit or default to_get_bookmark.
8874 * target.h (struct target_ops) <to_get_bookmark>: Use
8875 TARGET_DEFAULT_NORETURN
8876
16f796b1
TT
88772014-02-19 Tom Tromey <tromey@redhat.com>
8878
8879 * target-delegates.c: Rebuild.
8880 * target.c (update_current_target): Don't inherit or default
8881 to_make_corefile_notes.
8882 (init_dummy_target): Don't initialize to_make_corefile_notes.
8883 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8884 TARGET_DEFAULT_FUNC.
8885
0b5a2719
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8890 to_find_memory_regions.
8891 (init_dummy_target): Don't initialize to_find_memory_regions.
8892 * target.h (struct target_ops) <to_find_memory_regions>: Use
8893 TARGET_DEFAULT_FUNC.
8894
d9cb0195
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_log_command.
8900 * target.h (struct target_ops) <to_log_command>: Use
8901 TARGET_DEFAULT_IGNORE.
8902 (target_log_command): Unconditionally delegate.
8903
830ca330
TT
89042014-02-19 Tom Tromey <tromey@redhat.com>
8905
8906 * target-delegates.c: Rebuild.
8907 * target.c (update_current_target): Don't inherit or default
8908 to_pid_to_exec_file.
8909 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8910 TARGET_DEFAULT_RETURN.
8911
825828fc
TT
89122014-02-19 Tom Tromey <tromey@redhat.com>
8913
8914 * target-delegates.c: Rebuild.
8915 * target.c (update_current_target): Don't inherit or default
8916 to_thread_name.
8917 (target_thread_name): Unconditionally delegate.
8918 * target.h (struct target_ops) <to_thread_name>: Use
8919 TARGET_DEFAULT_RETURN.
8920
4a7e6dda
TT
89212014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * target-delegates.c: Rebuild.
8924 * target.c (update_current_target): Don't inherit or default
8925 to_extra_thread_info.
8926 * target.h (struct target_ops) <to_extra_thread_info>: Use
8927 TARGET_DEFAULT_RETURN.
8928
0db88c1d
TT
89292014-02-19 Tom Tromey <tromey@redhat.com>
8930
8931 * target-delegates.c: Rebuild.
8932 * target.c (update_current_target): Don't inherit or default
8933 to_has_exited.
8934 * target.h (struct target_ops) <to_has_exited>: Use
8935 TARGET_DEFAULT_RETURN..
8936
6a9fa051
TT
89372014-02-19 Tom Tromey <tromey@redhat.com>
8938
8939 * target-delegates.c: Rebuild.
8940 * target.c (update_current_target): Don't inherit or default
8941 to_set_syscall_catchpoint.
8942 (return_one): Remove.
8943 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8944 TARGET_DEFAULT_RETURN.
8945
62f64d7a
TT
89462014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target-delegates.c: Rebuild.
8949 * target.c (update_current_target): Don't inherit or default
8950 to_insert_exec_catchpoint.
8951 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8952 TARGET_DEFAULT_RETURN.
8953
cda0f38c
TT
89542014-01-08 Tom Tromey <tromey@redhat.com>
8955
8956 * target-delegates.c: Rebuild.
8957 * target.c (update_current_target): Don't inherit or default
8958 to_insert_exec_catchpoint.
8959 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8960 TARGET_DEFAULT_RETURN.
8961
95c3375e
TT
89622014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target-delegates.c: Rebuild.
8965 * target.c (update_current_target): Don't inherit or default
8966 to_remove_vfork_catchpoint.
8967 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8968 TARGET_DEFAULT_RETURN.
8969
7e18a8dc
TT
89702014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target-delegates.c: Rebuild.
8973 * target.c (update_current_target): Don't inherit or default
8974 to_insert_vfork_catchpoint.
8975 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8976 TARGET_DEFAULT_RETURN.
8977
e1a21fb7
TT
89782014-02-19 Tom Tromey <tromey@redhat.com>
8979
8980 * target-delegates.c: Rebuild.
8981 * target.c (update_current_target): Don't inherit or default
8982 to_remove_fork_catchpoint.
8983 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8984 TARGET_DEFAULT_RETURN.
8985
5958ebeb
TT
89862014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target-delegates.c: Rebuild.
8989 * target.c (update_current_target): Don't inherit or default
8990 to_insert_fork_catchpoint.
8991 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8992 TARGET_DEFAULT_RETURN.
8993
340ba4bf
TT
89942014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target-delegates.c: Rebuild.
8997 * target.c (update_current_target): Don't inherit or default
8998 to_post_startup_inferior.
8999 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9000 TARGET_DEFAULT_IGNORE.
9001
7634da87
TT
90022014-02-19 Tom Tromey <tromey@redhat.com>
9003
9004 * target-delegates.c: Rebuild.
9005 * target.c (update_current_target): Don't inherit or default
9006 to_load.
9007 * target.h (struct target_ops) <to_load>: Use
9008 TARGET_DEFAULT_NORETURN.
9009
e19e919f
TT
90102014-02-19 Tom Tromey <tromey@redhat.com>
9011
9012 * target-delegates.c: Rebuild.
9013 * target.c (update_current_target): Don't inherit or default
9014 to_terminal_info.
9015 * target.h (struct target_ops) <to_terminal_info>: Use
9016 TARGET_DEFAULT_FUNC.
9017
c6ea8f79
TT
90182014-02-19 Tom Tromey <tromey@redhat.com>
9019
9020 * target-delegates.c: Rebuild.
9021 * target.c (update_current_target): Don't inherit or default
9022 to_terminal_save_ours.
9023 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9024 TARGET_DEFAULT_IGNORE.
9025
e4a733f1
TT
90262014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target-delegates.c: Rebuild.
9029 * target.c (update_current_target): Don't inherit or default
9030 to_terminal_ours.
9031 * target.h (struct target_ops) <to_terminal_ours>: Use
9032 TARGET_DEFAULT_IGNORE.
9033
74fcbef9
TT
90342014-02-19 Tom Tromey <tromey@redhat.com>
9035
9036 * target-delegates.c: Rebuild.
9037 * target.c (update_current_target): Don't inherit or default
9038 to_terminal_ours_for_output.
9039 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9040 TARGET_DEFAULT_IGNORE.
9041
ddeaacc9
TT
90422014-02-19 Tom Tromey <tromey@redhat.com>
9043
9044 * target-delegates.c: Rebuild.
9045 * target.c (update_current_target): Don't inherit or default
9046 to_terminal_inferior.
9047 * target.h (struct target_ops) <to_terminal_inferior>: Use
9048 TARGET_DEFAULT_IGNORE.
9049
0343661d
TT
90502014-02-19 Tom Tromey <tromey@redhat.com>
9051
9052 * target-delegates.c: Rebuild.
9053 * target.c (update_current_target): Don't inherit or default
9054 to_terminal_init.
9055 * target.h (struct target_ops) <to_terminal_init>: Use
9056 TARGET_DEFAULT_IGNORE.
9057
77cdffe9
TT
90582014-02-19 Tom Tromey <tromey@redhat.com>
9059
9060 * target-delegates.c: Rebuild.
9061 * target.c (update_current_target): Don't inherit or default
9062 to_can_accel_watchpoint_condition.
9063 * target.h (struct target_ops)
9064 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9065
d03655e4
TT
90662014-02-19 Tom Tromey <tromey@redhat.com>
9067
9068 * target-delegates.c: Rebuild.
9069 * target.c (update_current_target): Don't inherit or default
9070 to_region_ok_for_hw_watchpoint.
9071 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9072 Use TARGET_DEFAULT_FUNC.
9073
65f160a9
TT
90742014-02-19 Tom Tromey <tromey@redhat.com>
9075
9076 * target-delegates.c: Rebuild.
9077 * target.c (update_current_target): Don't inherit or default
9078 to_watchpoint_addr_within_range.
9079 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9080 Use TARGET_DEFAULT_FUNC.
9081
61dd109f
TT
90822014-02-19 Tom Tromey <tromey@redhat.com>
9083
9084 * target-delegates.c: Rebuild.
9085 * target.c (update_current_target): Don't inherit or default
9086 to_remove_watchpoint.
9087 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9088 TARGET_DEFAULT_NORETURN.
9089
016facd4
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_watchpoint.
9095 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9096 TARGET_DEFAULT_RETURN.
9097
418dabac
TT
90982014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target-delegates.c: Rebuild.
9101 * target.c (update_current_target): Don't inherit or default
9102 to_remove_hw_breakpoint.
9103 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9104 TARGET_DEFAULT_RETURN.
9105
61b371f9
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_insert_hw_breakpoint.
9111 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9112 TARGET_DEFAULT_RETURN.
9113
52b51d06
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_can_use_hw_breakpoint.
9119 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9120 TARGET_DEFAULT_RETURN.
9121
f86e59b2
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_files_info.
9127 * target.h (struct target_ops) <to_files_info>: Use
9128 TARGET_DEFAULT_IGNORE.
9129
6c628163
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_store.
9135 * target.h (struct target_ops) <to_store>: Use
9136 TARGET_DEFAULT_NORETURN.
9137
bebd3233
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_attach.
9143 * target.h (struct target_ops) <to_post_attach>: Use
9144 TARGET_DEFAULT_IGNORE.
9145
a53f3625
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_rcmd.
9151 (default_rcmd): New function.
9152 (do_monitor_command): Unconditionally delegate.
9153 * target.h (struct target_ops) <to_rmcd>: Use
9154 TARGET_DEFAULT_FUNC.
9155
e9a29200
TT
91562014-02-19 Tom Tromey <tromey@redhat.com>
9157
9158 * target-delegates.c: Rebuild.
9159 * target.c (init_dummy_target): Don't initialize to_attach.
9160 (target_attach): Unconditionally delegate.
9161 * target.h (struct target_ops) <to_attach>: Use
9162 TARGET_DEFAULT_FUNC.
9163
09da0d0a
TT
91642014-02-19 Tom Tromey <tromey@redhat.com>
9165
9166 * target-delegates.c: Rebuild.
9167 * target.c (target_detach): Unconditionally delegate.
9168 (init_dummy_target): Don't initialize to_detach.
9169 * target.h (struct target_ops) <to_detach>: Use
9170 TARGET_DEFAULT_IGNORE.
9171
5436ff03
TT
91722014-02-19 Tom Tromey <tromey@redhat.com>
9173
9174 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9175 Add argument.
9176 (target_augmented_libraries_svr4_read): Add argument.
9177 * target.c (update_current_target): Update.
9178 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9179 argument.
9180
f0d960ea
TT
91812014-02-19 Tom Tromey <tromey@redhat.com>
9182
9183 * target.h (struct target_ops) <to_call_history_range>: Add
9184 argument.
9185 * target.c (target_call_history_range): Add argument.
9186 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9187 argument.
9188 (record_btrace_call_history_from): Update.
9189
ec0aea04
TT
91902014-02-19 Tom Tromey <tromey@redhat.com>
9191
9192 * target.h (struct target_ops) <to_call_history_from>: Add
9193 argument.
9194 * target.c (target_call_history_from): Add argument.
9195 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9196 argument.
9197
5df2fcba
TT
91982014-02-19 Tom Tromey <tromey@redhat.com>
9199
9200 * target.h (struct target_ops) <to_call_history>: Add argument.
9201 * target.c (target_call_history): Add argument.
9202 * record-btrace.c (record_btrace_call_history): Add 'self'
9203 argument.
9204
4e99c6b7
TT
92052014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target.h (struct target_ops) <to_insn_history_range>: Add
9208 argument.
9209 * target.c (target_insn_history_range): Add argument.
9210 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9211 argument.
9212 (record_btrace_insn_history_from): Update.
9213
9abc3ff3
TT
92142014-02-19 Tom Tromey <tromey@redhat.com>
9215
9216 * target.h (struct target_ops) <to_insn_history_from>: Add
9217 argument.
9218 * target.c (target_insn_history_from): Add argument.
9219 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9220 argument.
9221
7a6c5609
TT
92222014-02-19 Tom Tromey <tromey@redhat.com>
9223
9224 * target.h (struct target_ops) <to_insn_history>: Add argument.
9225 * target.c (target_insn_history): Add argument.
9226 * record-btrace.c (record_btrace_insn_history): Add 'self'
9227 argument.
9228
606183ac
TT
92292014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target.h (struct target_ops) <to_goto_record>: Add argument.
9232 * target.c (target_goto_record): Add argument.
9233 * record-full.c (record_full_goto): Add 'self' argument.
9234 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9235
307a1b91
TT
92362014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9239 * target.c (target_goto_record_end): Add argument.
9240 * record-full.c (record_full_goto_end): Add 'self' argument.
9241 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9242
08475817
TT
92432014-02-19 Tom Tromey <tromey@redhat.com>
9244
9245 * target.h (struct target_ops) <to_goto_record_begin>: Add
9246 argument.
9247 * target.c (target_goto_record_begin): Add argument.
9248 * record-full.c (record_full_goto_begin): Add 'self' argument.
9249 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9250 argument.
9251
1c63c994
TT
92522014-02-19 Tom Tromey <tromey@redhat.com>
9253
9254 * target.h (struct target_ops) <to_record_is_replaying>: Add
9255 argument.
9256 * target.c (target_record_is_replaying): Add argument.
9257 * record-full.c (record_full_is_replaying): Add 'self' argument.
9258 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9259 argument.
9260 (record_btrace_xfer_partial, record_btrace_store_registers)
9261 (record_btrace_prepare_to_store, record_btrace_resume)
9262 (record_btrace_wait, record_btrace_decr_pc_after_break)
9263 (record_btrace_find_new_threads, record_btrace_thread_alive):
9264 Update.
9265
d1b55219
TT
92662014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target.h (struct target_ops) <to_delete_record>: Add argument.
9269 * target.c (target_delete_record): Add argument.
9270 * record-full.c (record_full_delete): Add 'self' argument.
9271
1390f529
TT
92722014-02-19 Tom Tromey <tromey@redhat.com>
9273
9274 * target.h (struct target_ops) <to_save_record>: Add argument.
9275 * target.c (target_save_record): Add argument.
9276 * record-full.c (record_full_save): Add 'self' argument.
9277 (record_full_save): Add 'self' argument.
9278
630d6a4a
TT
92792014-02-19 Tom Tromey <tromey@redhat.com>
9280
9281 * target.h (struct target_ops) <to_info_record>: Add argument.
9282 * target.c (target_info_record): Add argument.
9283 * record.c (info_record_command): Add argument.
9284 * record-full.c (record_full_info): Add 'self' argument.
9285 * record-btrace.c (record_btrace_info): Add 'self' argument.
9286
c6cd7c02
TT
92872014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9290 * target.c (target_stop_recording): Add argument.
9291 * record.c (record_stop): Add argument.
9292 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9293 argument.
9294
39c49f83
TT
92952014-02-19 Tom Tromey <tromey@redhat.com>
9296
9297 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9298 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9299 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9300 argument.
9301 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9302 (_initialize_amd64_linux_nat): Use it.
9303 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9304 (_initialize_i386_linux_nat): Use it.
9305
1777056d
TT
93062014-02-19 Tom Tromey <tromey@redhat.com>
9307
9308 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9309 * target.c (target_teardown_btrace): Add argument.
9310 * remote.c (remote_teardown_btrace): Add 'self' argument.
9311 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9312 argument.
9313 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9314 argument.
9315
25e95349
TT
93162014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9319 * target.c (target_disable_btrace): Add argument.
9320 * remote.c (remote_disable_btrace): Add 'self' argument.
9321 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9322 argument.
9323 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9324 argument.
9325
e3c49f88
TT
93262014-02-19 Tom Tromey <tromey@redhat.com>
9327
9328 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9329 * target.c (target_enable_btrace): Add argument.
9330 * remote.c (remote_enable_btrace): Add 'self' argument.
9331 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9332 argument.
9333 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9334 argument.
9335
fe38f897
TT
93362014-02-19 Tom Tromey <tromey@redhat.com>
9337
9338 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9339 (target_can_use_agent): Add argument.
9340 * target.c (update_current_target): Update.
9341 * remote.c (remote_can_use_agent): Add 'self' argument.
9342 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9343
2c152180
TT
93442014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target.h (struct target_ops) <to_use_agent>: Add argument.
9347 (target_use_agent): Add argument.
9348 * target.c (update_current_target): Update.
9349 * remote.c (remote_use_agent): Add 'self' argument.
9350 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9351
a893e81f
TT
93522014-02-19 Tom Tromey <tromey@redhat.com>
9353
9354 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9355 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9356 (target_traceframe_info): Add argument.
9357 * target.c (update_current_target): Update.
9358 * remote.c (remote_traceframe_info): Add 'self' argument.
9359 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9360
c686c57f
TT
93612014-02-19 Tom Tromey <tromey@redhat.com>
9362
9363 * target.h (target_static_tracepoint_markers_by_strid): Add
9364 argument.
9365 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9366 'self' argument.
9367 * target.c (update_current_target): Update.
9368 * remote.c (struct target_ops)
9369 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9370 * linux-nat.c (struct target_ops)
9371 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9372
61fc905d
TT
93732014-02-19 Tom Tromey <tromey@redhat.com>
9374
9375 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9376 Add argument.
9377 (target_static_tracepoint_marker_at): Add argument.
9378 * target.c (update_current_target): Update.
9379 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9380 argument.
9381
c378d69d
TT
93822014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9385 (target_set_permissions): Add argument.
9386 * target.c (update_current_target): Update.
9387 * remote.c (remote_set_permissions): Add 'self' argument.
9388 (remote_start_remote): Update.
9389
bd7ae0f5
TT
93902014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9393 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9394 (target_get_tib_address): Add argument.
9395 * target.c (update_current_target): Update.
9396 * remote.c (remote_get_tib_address): Add 'self' argument.
9397
d9e68a2c
TT
93982014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9401 (target_set_trace_notes): Add argument.
9402 * target.c (update_current_target): Update.
9403 * remote.c (remote_set_trace_notes): Add 'self' argument.
9404
4da384be
TT
94052014-02-19 Tom Tromey <tromey@redhat.com>
9406
9407 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9408 argument.
9409 (target_set_trace_buffer_size): Add argument.
9410 * target.c (update_current_target): Update.
9411 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9412
736d5b1f
TT
94132014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9416 argument.
9417 (target_set_circular_trace_buffer): Add argument.
9418 * target.c (update_current_target): Update.
9419 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9420 argument.
9421
37b25738
TT
94222014-02-19 Tom Tromey <tromey@redhat.com>
9423
9424 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9425 argument.
9426 (target_set_disconnected_tracing): Add argument.
9427 * target.c (update_current_target): Update.
9428 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9429
0e67620a
TT
94302014-02-19 Tom Tromey <tromey@redhat.com>
9431
9432 * target.h (struct target_ops)
9433 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9434 (target_get_min_fast_tracepoint_insn_len): Add argument.
9435 * target.c (update_current_target): Update.
9436 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9437 argument.
9438
88ee6f45
TT
94392014-02-19 Tom Tromey <tromey@redhat.com>
9440
9441 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9442 argument.
9443 (target_get_raw_trace_data): Add argument.
9444 * target.c (update_current_target): Update.
9445 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9446
181e3713
TT
94472014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9450 Add argument.
9451 (target_upload_trace_state_variables): Add argument.
9452 * target.c (update_current_target): Update.
9453 * remote.c (remote_upload_trace_state_variables): Add 'self'
9454 argument.
9455 (remote_start_remote): Update.
9456
ab6617cc
TT
94572014-02-19 Tom Tromey <tromey@redhat.com>
9458
9459 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9460 argument.
9461 (target_upload_tracepoints): Add argument.
9462 * target.c (update_current_target): Update.
9463 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9464 (remote_start_remote): Update.
9465
dc3decaf
TT
94662014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9469 (target_save_trace_data): Add argument.
9470 * target.c (update_current_target): Update.
9471 * remote.c (remote_save_trace_data): Add 'self' argument.
9472
4011015b
TT
94732014-02-19 Tom Tromey <tromey@redhat.com>
9474
9475 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9476 argument.
9477 * target.h (struct target_ops)
9478 <to_get_trace_state_variable_value>: Add argument.
9479 (target_get_trace_state_variable_value): Add argument.
9480 * target.c (update_current_target): Update.
9481 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9482 argument.
9483 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9484
bd4c6793
TT
94852014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9488 * target.h (struct target_ops) <to_trace_find>: Add argument.
9489 (target_trace_find): Add argument.
9490 * target.c (update_current_target): Update.
9491 * remote.c (remote_trace_find): Add 'self' argument.
9492 * ctf.c (ctf_trace_find): Add 'self' argument.
9493
74499f1b
TT
94942014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9497 (target_trace_stop): Add argument.
9498 * target.c (update_current_target): Update.
9499 * remote.c (remote_trace_stop): Add 'self' argument.
9500
db90e85c
TT
95012014-02-19 Tom Tromey <tromey@redhat.com>
9502
9503 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9504 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9505 argument.
9506 (target_get_tracepoint_status): Add argument.
9507 * target.c (update_current_target): Update.
9508 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9509
8bd200f1
TT
95102014-02-19 Tom Tromey <tromey@redhat.com>
9511
9512 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9513 * target.h (struct target_ops) <to_get_trace_status>: Add
9514 argument.
9515 (target_get_trace_status): Add argument.
9516 * target.c (update_current_target): Update.
9517 * remote.c (remote_get_trace_status): Add 'self' argument.
9518 (remote_start_remote, remote_can_download_tracepoint): Update.
9519 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9520
e2d1aae3
TT
95212014-02-19 Tom Tromey <tromey@redhat.com>
9522
9523 * target.h (struct target_ops) <to_trace_start>: Add argument.
9524 (target_trace_start): Add argument.
9525 * target.c (update_current_target): Update.
9526 * remote.c (remote_trace_start): Add 'self' argument.
9527
583f9a86
TT
95282014-02-19 Tom Tromey <tromey@redhat.com>
9529
9530 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9531 Add argument.
9532 (target_trace_set_readonly_regions): Add argument.
9533 * target.c (update_current_target): Update.
9534 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9535 argument.
9536
780b049c
TT
95372014-02-19 Tom Tromey <tromey@redhat.com>
9538
9539 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9540 argument.
9541 (target_disable_tracepoint): Add argument.
9542 * target.c (update_current_target): Update.
9543 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9544
46670d57
TT
95452014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9548 argument.
9549 (target_enable_tracepoint): Add argument.
9550 * target.c (update_current_target): Update.
9551 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9552
559d2b81
TT
95532014-02-19 Tom Tromey <tromey@redhat.com>
9554
9555 * target.h (struct target_ops) <to_download_trace_state_variable>:
9556 Add argument.
9557 (target_download_trace_state_variable): Add argument.
9558 * target.c (update_current_target): Update.
9559 * remote.c (remote_download_trace_state_variable): Add 'self'
9560 argument.
9561
a52a8357
TT
95622014-02-19 Tom Tromey <tromey@redhat.com>
9563
9564 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9565 argument.
9566 (target_can_download_tracepoint): Add argument.
9567 * target.c (update_current_target): Update.
9568 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9569
548f7808
TT
95702014-02-19 Tom Tromey <tromey@redhat.com>
9571
9572 * target.h (struct target_ops) <to_download_tracepoint>: Add
9573 argument.
9574 (target_download_tracepoint): Add argument.
9575 * target.c (update_current_target): Update.
9576 * remote.c (remote_download_tracepoint): Add 'self' argument.
9577
ecae04e1
TT
95782014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops) <to_trace_init>: Add argument.
9581 (target_trace_init): Add argument.
9582 * target.c (update_current_target): Update.
9583 * remote.c (remote_trace_init): Add 'self' argument.
9584
fab5aa7c
TT
95852014-02-19 Tom Tromey <tromey@redhat.com>
9586
9587 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9588 * target.c (target_fileio_readlink): Add argument.
9589 * remote.c (remote_hostio_readlink): Add 'self' argument.
9590 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9591
dbbca37d
TT
95922014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9595 * target.c (target_fileio_unlink): Add argument.
9596 * remote.c (remote_hostio_unlink): Add 'self' argument.
9597 (remote_file_delete): Update.
9598 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9599
df39ea25
TT
96002014-02-19 Tom Tromey <tromey@redhat.com>
9601
9602 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9603 * target.c (target_fileio_close): Add argument.
9604 * remote.c (remote_hostio_close): Add 'self' argument.
9605 (remote_hostio_close_cleanup): Update.
9606 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9607 Update.
9608 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9609
a3be983c
TT
96102014-02-19 Tom Tromey <tromey@redhat.com>
9611
9612 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9613 * target.c (target_fileio_pread): Add argument.
9614 * remote.c (remote_hostio_pread): Add 'self' argument.
9615 (remote_bfd_iovec_pread, remote_file_get): Update.
9616 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9617
0d866f62
TT
96182014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9621 * target.c (target_fileio_pwrite): Add argument.
9622 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9623 (remote_file_put): Update.
9624 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9625
cd897586
TT
96262014-02-19 Tom Tromey <tromey@redhat.com>
9627
9628 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9629 * target.c (target_fileio_open): Add argument.
9630 * remote.c (remote_hostio_open): Add 'self' argument.
9631 (remote_bfd_iovec_open): Add 'self' argument.
9632 (remote_file_put): Add 'self' argument.
9633 (remote_file_get): Add 'self' argument.
9634 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9635
78eff0ec
TT
96362014-02-19 Tom Tromey <tromey@redhat.com>
9637
9638 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9639 Add argument.
9640 (target_can_run_breakpoint_commands): Add argument.
9641 * target.c (update_current_target): Update.
9642 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9643 argument.
9644 (remote_insert_breakpoint): Add 'self' argument.
9645 (remote_insert_hw_breakpoint): Add 'self' argument.
9646 (remote_can_run_breakpoint_commands): Add 'self' argument.
9647
efcc2da7
TT
96482014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target.h (struct target_ops)
9651 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9652 (target_supports_evaluation_of_breakpoint_conditions): Add
9653 argument.
9654 * target.c (update_current_target): Update.
9655 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9656 argument.
9657 (remote_insert_breakpoint): Add 'self' argument.
9658 (remote_insert_hw_breakpoint): Add 'self' argument.
9659 (remote_supports_cond_breakpoints): Add 'self' argument.
9660
6de37a3a
TT
96612014-02-19 Tom Tromey <tromey@redhat.com>
9662
9663 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9664 argument.
9665 (target_supports_string_tracing): Add argument.
9666 * target.c (update_current_target): Update.
9667 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9668
2bfc0540
TT
96692014-02-19 Tom Tromey <tromey@redhat.com>
9670
9671 * target.h (struct target_ops)
9672 <to_supports_disable_randomization>: Add argument.
9673 * target.c (find_default_supports_disable_randomization): Add
9674 argument.
9675 (target_supports_disable_randomization): Add argument.
9676 (find_default_supports_disable_randomization): Add 'self'
9677 argument.
9678 * remote.c (extended_remote_supports_disable_randomization): Add
9679 'self' argument.
9680 (remote_supports_disable_randomization): Add 'self' argument.
9681 (extended_remote_create_inferior): Update.
9682 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9683 'self' argument.
9684
7d178d6a
TT
96852014-02-19 Tom Tromey <tromey@redhat.com>
9686
9687 * target.h (struct target_ops)
9688 <to_supports_enable_disable_tracepoint>: Add argument.
9689 (target_supports_enable_disable_tracepoint): Add argument.
9690 * target.c (update_current_target): Update.
9691 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9692 argument.
9693
86ce2668
TT
96942014-02-19 Tom Tromey <tromey@redhat.com>
9695
9696 * target.h (struct target_ops) <to_supports_multi_process>: Add
9697 argument.
9698 (target_supports_multi_process): Add argument.
9699 * target.c (update_current_target): Update.
9700 * remote.c (remote_supports_multi_process): Add 'self' argument.
9701 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9702 argument.
9703 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9704 argument.
9705
4c612759
TT
97062014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target.h (struct target_ops) <to_execution_direction>: Add
9709 argument.
9710 (target_execution_direction): Add argument.
9711 * target.c (default_execution_direction): Add 'self' argument.
9712 * record-full.c (record_full_execution_direction): Add 'self'
9713 argument.
9714
19db3e69
TT
97152014-02-19 Tom Tromey <tromey@redhat.com>
9716
9717 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9718 argument.
9719 (target_can_execute_reverse): Add argument.
9720 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9721 * record-full.c (record_full_can_execute_reverse): Add 'self'
9722 argument.
9723 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9724 argument.
9725
1e6b91a4
TT
97262014-02-19 Tom Tromey <tromey@redhat.com>
9727
9728 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9729 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9730 argument.
9731 (target_get_ada_task_ptid): Add argument.
9732 * target.c (update_current_target): Update.
9733 (default_get_ada_task_ptid): Add 'self' argument.
9734 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9735 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9736 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9737 argument.
9738 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9739 argument.
9740 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9741 argument.
9742 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9743 argument.
9744 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9745 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9746 argument.
9747
3c80fb48
TT
97482014-02-19 Tom Tromey <tromey@redhat.com>
9749
9750 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9751 (target_goto_bookmark): Add argument.
9752 * target.c (dummy_goto_bookmark): Add 'self' argument.
9753 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9754
dd0e2830
TT
97552014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9758 (target_get_bookmark): Add argument.
9759 * target.c (dummy_get_bookmark): Add 'self' argument.
9760 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9761
fc6691b2
TT
97622014-02-19 Tom Tromey <tromey@redhat.com>
9763
9764 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9765 argument.
9766 (target_make_corefile_notes): Add argument.
9767 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9768 * procfs.c (procfs_make_note_section): Add 'self' argument.
9769 (procfs_make_note_section): Add 'self' argument.
9770 (procfs_make_note_section): Add 'self' argument.
9771 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9772 argument.
9773 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9774 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9775 * exec.c (exec_make_note_section): Add 'self' argument.
9776 (exec_make_note_section): Add 'self' argument.
9777
2e73927c
TT
97782014-02-19 Tom Tromey <tromey@redhat.com>
9779
9780 * target.h (struct target_ops) <to_find_memory_regions>: Add
9781 argument.
9782 (target_find_memory_regions): Add argument.
9783 * target.c (dummy_find_memory_regions): Add 'self' argument.
9784 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9785 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9786 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9787 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9788 * exec. (exec_do_find_memory_regions): New global.
9789 (exec_set_find_memory_regions): Rewrite.
9790 (exec_find_memory_regions): New function.
9791 (init_exec_ops): Use exec_find_memory_regions.
9792
2a9a2795
TT
97932014-02-19 Tom Tromey <tromey@redhat.com>
9794
9795 * target.h (struct target_ops) <to_supports_non_stop>: Add
9796 argument.
9797 * target.c (find_default_supports_non_stop): Add argument.
9798 (target_supports_non_stop): Add argument.
9799 (find_default_supports_non_stop): Add 'self' argument.
9800 * remote.c (remote_supports_non_stop): Add 'self' argument.
9801 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9802
4ab76ea3
TT
98032014-02-19 Tom Tromey <tromey@redhat.com>
9804
9805 * target.h (struct target_ops) <to_log_command>: Add argument.
9806 (target_log_command): Add argument.
9807 * serial.h (serial_log_command): Add 'self' argument.
9808 * serial.c (serial_log_command): Add 'self' argument.
9809
8dd27370
TT
98102014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9813 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9814 argument.
9815 (target_pid_to_exec_file): Add argument.
9816 * target.c (debug_to_pid_to_exec_file): Add argument.
9817 (update_current_target): Update.
9818 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9819 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9820 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9821 (linux_handle_extended_wait): Update.
9822 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9823 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9824 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9825 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9826
1aac633b
TT
98272014-02-19 Tom Tromey <tromey@redhat.com>
9828
9829 * target.h (struct target_ops) <to_rcmd>: Add argument.
9830 (target_rcmd): Add argument.
9831 * target.c (debug_to_rcmd): Add argument.
9832 (update_current_target, do_monitor_command): Update.
9833 * remote.c (remote_rcmd): Add 'self' argument.
9834 * monitor.c (monitor_rcmd): Add 'self' argument.
9835
1eab8a48
TT
98362014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * windows-nat.c (windows_stop): Add 'self' argument.
9839 * target.h (struct target_ops) <to_stop>: Add argument.
9840 * target.c (target_stop): Add argument.
9841 (debug_to_stop): Add argument.
9842 (update_current_target): Update.
9843 * remote.c (remote_stop): Add 'self' argument.
9844 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9845 (gdbsim_cntrl_c): Update.
9846 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9847 * procfs.c (procfs_stop): Add 'self' argument.
9848 * nto-procfs.c (procfs_stop): Add 'self' argument.
9849 * monitor.c (monitor_stop): Add 'self' argument.
9850 (monitor_open): Update.
9851 * linux-nat.c (linux_nat_stop): Add argument.
9852 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9853 * gnu-nat.c (gnu_stop): Add 'self' argument.
9854 * darwin-nat.c (darwin_stop): Add 'self' argument.
9855
503a628d
TT
98562014-02-19 Tom Tromey <tromey@redhat.com>
9857
9858 * target.h (struct target_ops) <to_thread_name>: Add argument.
9859 * target.c (target_thread_name): Add argument.
9860 (update_current_target): Update.
9861 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9862
c15906d8
TT
98632014-02-19 Tom Tromey <tromey@redhat.com>
9864
9865 * target.h (struct target_ops) <to_extra_thread_info>: Add
9866 argument.
9867 (target_extra_thread_info): Add argument.
9868 * target.c (update_current_target): Update.
9869 * remote.c (remote_threads_extra_info): Add 'self' argument.
9870 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9871 argument.
9872 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9873 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9874 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9875 argument.
9876 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9877 argument.
9878 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9879 argument.
9880 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9881 argument.
9882
daf5e9b6
TT
98832014-02-19 Tom Tromey <tromey@redhat.com>
9884
9885 * target.h (struct target_ops) <to_program_signals>: Add argument.
9886 * target.c (target_program_signals): Add argument.
9887 * remote.c (remote_program_signals): Add 'self' argument.
9888
94bedb42
TT
98892014-02-19 Tom Tromey <tromey@redhat.com>
9890
9891 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9892 * target.c (target_pass_signals): Add argument.
9893 * remote.c (remote_pass_signals): Add 'self' argument.
9894 (remote_start_remote): Update.
9895 * procfs.c (procfs_pass_signals): Add 'self' argument.
9896 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9897 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9898 (linux_nat_create_inferior, linux_nat_attach): Update.
9899
da82bd6b
TT
99002014-02-19 Tom Tromey <tromey@redhat.com>
9901
9902 * windows-nat.c (windows_can_run): Add 'self' argument.
9903 * target.h (struct target_ops) <to_can_run>: Add argument.
9904 (target_can_run): Add argument.
9905 * target.c (debug_to_can_run): Add argument.
9906 (update_current_target): Update.
9907 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9908 * inf-child.c (inf_child_can_run): Add 'self' argument.
9909 * go32-nat.c (go32_can_run): Add 'self' argument.
9910
d796e1d6
TT
99112014-02-19 Tom Tromey <tromey@redhat.com>
9912
9913 * target.h (struct target_ops) <to_has_exited>: Add argument.
9914 (target_has_exited): Add argument.
9915 * target.c (debug_to_has_exited): Add argument.
9916 (update_current_target): Update.
9917
ff214e67
TT
99182014-02-19 Tom Tromey <tromey@redhat.com>
9919
9920 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9921 argument.
9922 (target_set_syscall_catchpoint): Add argument.
9923 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9924 argument.
9925 * target.c (update_current_target): Update.
9926
758e29d2
TT
99272014-02-19 Tom Tromey <tromey@redhat.com>
9928
9929 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9930 argument.
9931 (target_remove_exec_catchpoint): Add argument.
9932 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9933 (update_current_target): Update.
9934 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9935 argument.
9936
ba025e51
TT
99372014-02-19 Tom Tromey <tromey@redhat.com>
9938
9939 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9940 argument.
9941 (target_insert_exec_catchpoint): Add argument.
9942 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9943 (update_current_target): Update.
9944 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9945 argument.
9946
e98cf0cd
TT
99472014-02-19 Tom Tromey <tromey@redhat.com>
9948
9949 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9950 argument.
9951 (target_remove_vfork_catchpoint): Add argument.
9952 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9953 (update_current_target): Update.
9954 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9955 argument.
9956
3ecc7da0
TT
99572014-02-19 Tom Tromey <tromey@redhat.com>
9958
9959 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9960 argument.
9961 (target_insert_vfork_catchpoint): Add argument.
9962 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9963 (update_current_target): Update.
9964 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9965 argument.
9966
973fc227
TT
99672014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9970 argument.
9971 (target_remove_fork_catchpoint): Add argument.
9972 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9973 (update_current_target): Update.
9974 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9975 argument.
9976
a863b201
TT
99772014-02-19 Tom Tromey <tromey@redhat.com>
9978
9979 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9980 argument.
9981 (target_insert_fork_catchpoint): Add argument.
9982 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9983 (update_current_target): Update.
9984 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9985 argument.
9986
2e97a79e
TT
99872014-02-19 Tom Tromey <tromey@redhat.com>
9988
9989 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9990 argument.
9991 (target_post_startup_inferior): Add argument.
9992 * target.c (debug_to_post_startup_inferior): Add argument.
9993 (update_current_target): Update.
9994 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9995 argument.
9996 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9997 argument.
9998 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9999 argument.
10000 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10001 argument.
10002 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10003 'self' argument.
10004 (super_post_startup_inferior): Likewise.
10005 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10006 'self' argument.
10007 (super_post_startup_inferior): Likewise.
10008 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10009 Add 'self' argument.
10010 (super_post_startup_inferior): Likewise.
10011
71a9f134
TT
100122014-02-19 Tom Tromey <tromey@redhat.com>
10013
10014 * target.h (struct target_ops) <to_load>: Add argument.
10015 * target.c (target_load): Add argument.
10016 (debug_to_load): Add argument.
10017 (update_current_target): Update.
10018 * remote.c (remote_load): Add 'self' argument.
10019 * remote-sim.c (gdbsim_load): Add 'self' argument.
10020 * remote-mips.c (mips_load): Add 'self' argument.
10021 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10022 * monitor.c (monitor_load): Add 'self' argument.
10023 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10024
0a4f40a2
TT
100252014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10028 (target_terminal_info): Add argument.
10029 * target.c (debug_to_terminal_info): Add argument.
10030 (default_terminal_info): Likewise.
10031 * inflow.c (child_terminal_info): Add 'self' argument.
10032 * inferior.h (child_terminal_info): Add 'self' argument.
10033 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10034
ae3bd431
TT
100352014-02-19 Tom Tromey <tromey@redhat.com>
10036
10037 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10038 argument.
10039 (target_terminal_save_ours): Add argument.
10040 * target.c (debug_to_terminal_save_ours): Add argument.
10041 (update_current_target): Update.
10042 * inflow.c (terminal_save_ours): Add 'self' argument.
10043 * inferior.h (terminal_save_ours): Add 'self' argument.
10044
e3594fd1
TT
100452014-02-19 Tom Tromey <tromey@redhat.com>
10046
10047 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10048 (target_terminal_ours): Add argument.
10049 * target.c (debug_to_terminal_ours): Add argument.
10050 (update_current_target): Update.
10051 * remote.c (remote_terminal_ours): Add 'self' argument.
10052 (remote_close): Update.
10053 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10054 * inflow.c (terminal_ours): Add 'self' argument.
10055 * inferior.h (terminal_ours): Add 'self' argument.
10056 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10057
2e1e1a19
TT
100582014-02-19 Pedro Alves <palves@redhat.com>
10059 Tom Tromey <tromey@redhat.com>
10060
10061 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10062 argument.
10063 (target_terminal_ours_for_output): Add argument.
10064 * target.c (debug_to_terminal_ours_for_output): Add argument.
10065 (update_current_target): Update.
10066 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10067 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10068 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10069
d2f640d4
TT
100702014-02-19 Tom Tromey <tromey@redhat.com>
10071
10072 * target.h (struct target_ops) <to_terminal_inferior>: Add
10073 argument.
10074 * target.c (target_terminal_inferior): Add argument.
10075 (update_current_target): Update.
10076 * remote.c (remote_terminal_inferior): Add 'self' argument.
10077 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10078 * inflow.c (terminal_inferior): Add 'self' argument.
10079 * inferior.h (terminal_inferior): Add 'self' argument.
10080 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10081 (go32_terminal_inferior): Add 'self' argument.
10082
c42bf286
TT
100832014-02-19 Tom Tromey <tromey@redhat.com>
10084
10085 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10086 (target_terminal_init): Add argument.
10087 * target.c (debug_to_terminal_init): Add argument.
10088 (update_current_target): Update.
10089 * inflow.c (terminal_init_inferior): Add 'self' argument.
10090 * inferior.h (terminal_init_inferior): Add 'self' argument.
10091 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10092 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10093
c3a5ff89
TT
100942014-02-19 Tom Tromey <tromey@redhat.com>
10095
10096 * target.h (struct target_ops)
10097 <to_can_accel_watchpoint_condition>: Add argument.
10098 (target_can_accel_watchpoint_condition): Add argument.
10099 * target.c (debug_to_can_accel_watchpoint_condition): Add
10100 argument.
10101 (update_current_target): Update.
10102 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10103 'self' argument.
10104
31568a15
TT
101052014-02-19 Tom Tromey <tromey@redhat.com>
10106
10107 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10108 Add argument.
10109 (target_region_ok_for_hw_watchpoint): Add argument.
10110 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10111 (default_region_ok_for_hw_watchpoint): Add argument.
10112 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10113 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10114 argument.
10115 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10116 argument.
10117 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10118 argument.
10119 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10120 'self' argument.
10121 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10122 'self' argument.
10123 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10124 'self' argument.
10125 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10126 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10127 'self' argument.
10128 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10129 Add 'self' argument.
10130
7bb99c53
TT
101312014-02-19 Tom Tromey <tromey@redhat.com>
10132
10133 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10134 argument.
10135 (target_insert_watchpoint): Add argument.
10136 * target.c (debug_to_insert_watchpoint): Add argument.
10137 (update_current_target): Update.
10138 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10139 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10140 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10141 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10142 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10143 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10144 argument.
10145 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10146 (procfs_insert_hw_watchpoint): Add 'self' argument.
10147 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10148 argument.
10149 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10150 argument.
10151 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10152 argument.
10153 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10154 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10155 argument.
10156 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10157 'self' argument.
10158
11b5219a
TT
101592014-02-19 Tom Tromey <tromey@redhat.com>
10160
10161 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10162 argument.
10163 (target_remove_watchpoint): Add argument.
10164 * target.c (debug_to_remove_watchpoint): Add argument.
10165 (update_current_target): Update.
10166 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10167 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10168 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10169 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10170 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10171 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10172 argument.
10173 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10174 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10175 argument.
10176 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10177 argument.
10178 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10179 argument.
10180 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10181 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10182 argument.
10183 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10184 'self' argument.
10185
a64dc96c
TT
101862014-02-19 Tom Tromey <tromey@redhat.com>
10187
10188 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10189 argument.
10190 (target_remove_hw_breakpoint): Add argument.
10191 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10192 (update_current_target): Update.
10193 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10194 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10195 argument.
10196 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10197 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10198 argument.
10199 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10200 'self' argument.
10201
23a26771
TT
102022014-02-19 Tom Tromey <tromey@redhat.com>
10203
10204 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10205 argument.
10206 (target_insert_hw_breakpoint): Add argument.
10207 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10208 (update_current_target): Update.
10209 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10210 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10211 argument.
10212 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10213 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10214 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10215 argument.
10216 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10217 'self' argument.
10218
5461485a
TT
102192014-02-19 Tom Tromey <tromey@redhat.com>
10220
10221 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10222 argument.
10223 (target_can_use_hardware_watchpoint): Add argument.
10224 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10225 (update_current_target): Update.
10226 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10227 argument.
10228 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10229 argument.
10230 * remote.c (remote_check_watch_resources): Add 'self' argument.
10231 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10232 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10233 argument.
10234 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10235 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10236 argument.
10237 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10238 argument.
10239 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10240 argument.
10241 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10242 argument.
10243 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10244 argument.
10245 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10246 argument.
10247 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10248 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10249 argument.
10250 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10251 'self' argument.
10252
f045800c
TT
102532014-02-19 Tom Tromey <tromey@redhat.com>
10254
10255 * target.h (struct target_ops) <to_post_attach>: Add argument.
10256 (target_post_attach): Add argument.
10257 * target.c (debug_to_post_attach): Add argument.
10258 (update_current_target): Update.
10259 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10260 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10261 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10262 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10263 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10264
de90e03d
TT
102652014-02-19 Tom Tromey <tromey@redhat.com>
10266
10267 * windows-nat.c (windows_close): Add 'self' argument.
10268 * tracepoint.c (tfile_close): Add 'self' argument.
10269 * target.h (struct target_ops) <to_close>: Add argument.
10270 * target.c (target_close): Add argument.
10271 (update_current_target): Update.
10272 * remote.c (remote_close): Add 'self' argument.
10273 * remote-sim.c (gdbsim_close): Add 'self' argument.
10274 * remote-mips.c (mips_close): Add 'self' argument.
10275 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10276 * record-full.c (record_full_close): Add 'self' argument.
10277 * record-btrace.c (record_btrace_close): Add 'self' argument.
10278 * monitor.h (monitor_close): Add 'self' argument.
10279 * monitor.c (monitor_close): Add 'self' argument.
10280 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10281 * linux-nat.c (linux_nat_close): Add argument.
10282 * go32-nat.c (go32_close): Add 'self' argument.
10283 * exec.c (exec_close_1): Add 'self' argument.
10284 * ctf.c (ctf_close): Add 'self' argument.
10285 * corelow.c (core_close): Add 'self' argument.
10286 (core_close_cleanup): Update.
10287 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10288 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10289
9dd130a0
TT
102902014-02-19 Tom Tromey <tromey@redhat.com>
10291
10292 * remote.c (remote_load): New function.
10293 (init_remote_ops): Use it.
10294
46917d26
TT
102952014-02-19 Tom Tromey <tromey@redhat.com>
10296
10297 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10298 argument.
10299 * common/linux-btrace.h (linux_supports_btrace): Update.
10300 * remote.c (remote_supports_btrace): Add "self" argument.
10301 * target-delegates.c: Rebuild.
10302 * target.c (target_supports_btrace): Remove.
10303 * target.h (struct target_ops) <to_supports_btrace>: Add
10304 target_ops argument.
10305 (target_supports_btrace): New define.
10306
6b84065d
TT
103072014-02-19 Tom Tromey <tromey@redhat.com>
10308
10309 * record-full.c (record_full_beneath_to_resume_ops)
10310 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10311 (record_full_beneath_to_wait)
10312 (record_full_beneath_to_store_registers_ops)
10313 (record_full_beneath_to_store_registers)
10314 (record_full_beneath_to_xfer_partial_ops)
10315 (record_full_beneath_to_xfer_partial)
10316 (record_full_beneath_to_insert_breakpoint_ops)
10317 (record_full_beneath_to_insert_breakpoint)
10318 (record_full_beneath_to_remove_breakpoint_ops)
10319 (record_full_beneath_to_remove_breakpoint)
10320 (record_full_beneath_to_stopped_by_watchpoint)
10321 (record_full_beneath_to_stopped_data_address)
10322 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10323 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10324 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10325 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10326 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10327 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10328 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10329 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10330 (record_full_resume, record_full_wait_1)
10331 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10332 (record_full_store_registers, record_full_xfer_partial)
10333 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10334 (record_full_async, record_full_core_xfer_partial): Use target
10335 delegation.
10336 * target-delegates.c: Rebuild.
10337 * target.c (current_xfer_partial): Remove.
10338 (update_current_target): Do not INHERIT or de_fault
10339 to_insert_breakpoint, to_remove_breakpoint,
10340 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10341 to_is_async_p, to_async. Do not set to_xfer_partial field.
10342 (default_xfer_partial): Simplify.
10343 (current_xfer_partial): Remove.
10344 (target_wait, target_resume): Simplify.
10345 (find_default_can_async_p, find_default_is_async_p): Update.
10346 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10347 to_xfer_partial, to_stopped_by_watchpoint,
10348 to_stopped_data_address.
10349 (target_store_registers): Simplify.
10350 (forward_target_remove_breakpoint)
10351 (forward_target_insert_breakpoint): Remove.
10352 (target_remove_breakpoint, target_insert_breakpoint)
10353 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10354 * target.h (struct target_ops) <to_resume, to_wait,
10355 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10356 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10357 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10358 markup.
10359 (forward_target_remove_breakpoint)
10360 (forward_target_insert_breakpoint): Remove.
10361 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10362 directly.
10363 (record_btrace_insert_breakpoint): Delegate directly.
10364
1101cb7b
TT
103652014-02-19 Tom Tromey <tromey@redhat.com>
10366
10367 PR build/7701:
10368 * target-delegates.c: New file.
10369 * target.c: Include target-delegates.c.
10370 (init_dummy_target): Call install_dummy_methods.
10371 (complete_target_initialization): Call install_delegators.
10372 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10373 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10374 * make-target-delegates: New file.
10375
8b06beed
TT
103762014-02-19 Tom Tromey <tromey@redhat.com>
10377
10378 * record.c (find_record_target): Use find_target_at.
10379 * target.c (find_target_at): New function.
10380 * target.h (find_target_at): Declare.
10381
6a109b6b
TT
103822014-02-19 Tom Tromey <tromey@redhat.com>
10383
10384 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10385 Add 'ops' argument.
10386 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10387 'ops' argument.
10388 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10389 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10390 'ops' argument.
10391 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10392 argument.
10393 * linux-nat.c (save_sigtrap): Update.
10394 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10395 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10396 (linux_nat_close): Update.
10397 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10398 argument.
10399 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10400 argument.
10401 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10402 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10403 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10404 (tmp_to_async): Add 'ops' argument.
10405 (record_full_stopped_by_watchpoint, record_full_async)
10406 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10407 argument.
10408 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10409 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10410 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10411 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10412 (remote_is_async_p, remote_async): Add 'ops' argument.
10413 (remote_stopped_data_address): Update.
10414 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10415 * target.c (update_current_target)
10416 (find_default_can_async_p, find_default_is_async_p): Update.
10417 (init_dummy_target): Update.
10418 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10419 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10420 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10421 (target_can_async_p, target_is_async_p, target_async)
10422 (target_stopped_by_watchpoint): Update.
10423
e095146b
YQ
104242014-02-19 Yao Qi <yao@codesourcery.com>
10425
10426 PR gdb/16220
10427 * gdbarch.sh: Remove startup_gdbarch.
10428 * gdbarch.c: Regenerated.
10429 * gdbarch.h: Likewise.
10430
bc3c6b36
KB
104312014-02-17 Kevin Buettner <kevinb@redhat.com>
10432
10433 * rl78-tdep.c (rl78_g10_register_name): New function.
10434 (rl78_return_value): Add g10 support.
10435 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10436 g10.
10437
98dc0167 104382014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10439
10440 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10441 (SUBDIR_GUILE_SRCS): Ditto.
10442 (scm-gsmob.o): Ditto.
10443
842c05cd
YQ
104442014-02-17 Yao Qi <yao@codesourcery.com>
10445
10446 * gnu-nat.c (ILL_RPC): Declare defined function.
10447
25c0bd04
YQ
104482014-02-17 Yao Qi <yao@codesourcery.com>
10449
10450 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10451 mach_msg_type_number_t.
10452 (gnu_write_inferior): Likewise.
10453
a9a758e3
YQ
104542014-02-17 Yao Qi <yao@codesourcery.com>
10455
10456 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10457 in format string.
10458 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10459 (inf_validate_procs, inf_signal): Likewise.
10460 (S_exception_raise_request): Likewise.
10461 (do_mach_notify_dead_name): Likewise.
10462 (steal_exc_port): Likewise.
10463 (gnu_read_inferior): Change 'copy_count''s type to
10464 mach_msg_type_number_t.
10465 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10466 format string.
10467
bae8023e
TS
104682014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10469
c82f56d9
TS
10470 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10471 flag. Adjust all users; in particular...
10472 (gnu_wait): ..., don't decrement its value in here...
10473 (gnu_create_inferior): ..., and instead set the flag in here,
10474 around the startup_inferior call, and call that one with
10475 START_INFERIOR_TRAPS_EXPECTED.
10476
3398af6a
TS
10477 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10478 (ILL_RPC): ... new macro.
10479 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10480 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10481 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10482 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10483 functions with ILL_RPC macro.
10484 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10485 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10486 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10487 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10488 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10489 (S_proc_getlogin_reply, S_proc_getsid_reply)
10490 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10491 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10492 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10493 (S_proc_getnports_reply, S_proc_is_important_reply)
10494 (S_proc_get_code_reply): New stub functions, generated with
10495 ILL_RPC macro.
10496
d47642c9
TS
10497 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10498 collected the type check structures.
10499
bae8023e
TS
10500 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10501
8a55ffb0
DE
105022014-02-14 Doug Evans <dje@google.com>
10503
10504 * target.c (target_write_partial): Fix result type.
10505
c2853f3d
JM
105062014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10507
10508 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10509 the proper offsets to access fpregset_t.
10510
ac61d2db
SA
105112014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10512
10513 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10514 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10515 * h8300-tdep.c (setmachinelist): Remove global.
10516 * hppa-tdep.c (hppa_sigtramp): Remove global.
10517 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10518 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10519 * ravenscar-thread.c (update_target_observer): Remove global.
10520 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10521
9d2d0b8b
TT
105222014-02-12 Tom Tromey <tromey@redhat.com>
10523
10524 * common/rsp-low.c: Update comments.
10525 * common/rsp-low.h: Update comments.
10526
a7191e8b
TT
105272014-02-12 Tom Tromey <tromey@redhat.com>
10528
10529 * common/rsp-low.c (convert_ascii_to_int): Remove.
10530 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10531
ff0e980e
TT
105322014-02-12 Tom Tromey <tromey@redhat.com>
10533
10534 * common/rsp-low.h (unhexify): Don't declare.
10535 * common/rsp-low.c (unhexify): Remove.
10536
e9371aff
TT
105372014-02-12 Tom Tromey <tromey@redhat.com>
10538
10539 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10540 * common/rsp-low.c (convert_int_to_ascii): Remove.
10541
971dc0b8
TT
105422014-02-12 Tom Tromey <tromey@redhat.com>
10543
10544 * common/rsp-low.h (hexify): Don't declare.
10545 * common/rsp-low.c (hexify): Remove.
10546
0a822afb
TT
105472014-02-12 Tom Tromey <tromey@redhat.com>
10548
10549 * common/rsp-low.c (hexify): Never take strlen of argument.
10550
9f1b45b0
TT
105512014-02-12 Tom Tromey <tromey@redhat.com>
10552
10553 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10554 * remote.c (extended_remote_run, remote_rcmd)
10555 (remote_download_trace_state_variable, remote_save_trace_data)
10556 (remote_set_trace_notes): Update.
10557 * tracepoint.c (encode_source_string, tfile_write_status)
10558 (tfile_write_uploaded_tsv): Update.
10559
9c3d6531
TT
105602014-02-12 Tom Tromey <tromey@redhat.com>
10561
10562 * tracepoint.c: Include rsp-low.h.
10563 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10564 * remote.c: Include rsp-low.h.
10565 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10566 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10567 (remote_unescape_input): Move to common/rsp-low.c.
10568 * common/rsp-low.h: New file.
10569 * common/rsp-low.c: New file.
10570 * Makefile.in (SFILES): Add common/rsp-low.c.
10571 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10572 (COMMON_OBS): Add rsp-low.o.
10573 (rsp-low.o): New target.
10574
01fd3ea5
TT
105752014-02-12 Tom Tromey <tromey@redhat.com>
10576
10577 * utils.h: Include print-utils.h.
10578 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10579 (int_string, core_addr_to_string, core_addr_to_string_nz)
10580 (hex_string, hex_string_custom): Don't declare.
10581 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10582 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10583 (hex_string_custom, int_string, core_addr_to_string)
10584 (core_addr_to_string_nz, host_address_to_string): Move to
10585 common/print-utils.c.
10586 * common/print-utils.h: New file.
10587 * common/print-utils.c: New file
10588 * Makefile.in (SFILES): Add common/print-utils.c.
10589 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10590 (COMMON_OBS): Add print-utils.o.
10591 (print-utils.o): New target.
10592
9fb50108
TT
105932014-02-12 Tom Tromey <tromey@redhat.com>
10594
10595 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10596
0548b5db
MK
105972014-02-12 Mark Kettenis <kettenis@gnu.org>
10598
10599 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10600
493443a4
MK
106012014-02-12 Mark Kettenis <kettenis@gnu.org>
10602
10603 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10604 if a PT_IO ptrace request returns sucessfully but indicates that 0
10605 bytes were transferred.
10606
706d0883
PA
106072014-02-12 Pedro Alves <palves@redhat.com>
10608 Kevin Buettner <kevinb@redhat.com>
10609
10610 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10611 TYPE_INSTANCE_FLAG_CODE_SPACE.
10612
5caa2f0b
PA
106132014-02-12 Pedro Alves <palves@redhat.com>
10614
10615 * h8300-tdep.c (pseudo_from_raw_register)
10616 (raw_from_pseudo_register): New functions.
10617 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10618 them.
10619
76fd5f74
PA
106202014-02-12 Pedro Alves <palves@redhat.com>
10621
10622 * h8300-tdep.c (h8300_register_sim_regno): New function.
10623 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10624 gdbarch_register_sim_regno hook.
10625
8f008406
SA
106262014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10627
10628 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10629
195abc10
SA
106302014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10631
10632 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10633
93ffa5b9
MK
106342014-02-12 Mark Kettenis <kettenis@gnu.org>
10635
10636 * obsd-tdep.h (obsd_init_abi): New prototype.
10637 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10638 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10639 (obsd_init_abi): New functions.
10640 * i386obsd-tdep.c: Include "obsd-tdep.h".
10641 (i386obsd_init_abi): Call obsd_init_abi.
10642 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10643 (amd64obsd_init_abi): Call obsd_init_abi.
10644 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10645 obsd-tdep.c to gdb_target_obs.
10646
49caec94
JM
106472014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10648
10649 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10650 double float arguments to 16-byte in the argument slots.
10651
e1402065
DE
106522014-02-11 Doug Evans <xdje42@gmail.com>
10653
10654 * configure.ac: Don't crash if pkg-config is not found and guile
10655 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10656 in guile checks.
10657 * configure: Regenerate.
10658
edcc890f
YQ
106592014-02-11 Yao Qi <yao@codesourcery.com>
10660
10661 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10662 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10663 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10664 * gnu-nat.c (gnu_xfer_memory): Likewise.
10665 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10666 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10667 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10668 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10669
9b409511
YQ
106702014-02-11 Yao Qi <yao@codesourcery.com>
10671
10672 * target.h (enum target_xfer_error): Rename to ...
10673 (enum target_xfer_status): ... it. New. All users updated.
10674 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10675 New.
10676 (TARGET_XFER_STATUS_ERROR_P): New macro.
10677 (target_xfer_error_to_string): Remove declaration.
10678 (target_xfer_status_to_string): Declare.
10679 (target_xfer_partial_ftype): Adjust it.
10680 (struct target_ops) <to_xfer_partial>: Return
10681 target_xfer_status. Add argument xfered_len. Update
10682 comments.
10683 * target.c (target_xfer_error_to_string): Rename to ...
10684 (target_xfer_status_to_string): ... it. New. All callers
10685 updated.
10686 (target_read_live_memory): Likewise. Call target_xfer_partial
10687 instead of target_read.
10688 (memory_xfer_live_readonly_partial): Return
10689 target_xfer_status. Add argument xfered_len.
10690 (raw_memory_xfer_partial): Likewise.
10691 (memory_xfer_partial_1): Likewise.
10692 (memory_xfer_partial): Likewise.
10693 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10694 properly. Update debug message.
10695 (default_xfer_partial, current_xfer_partial): Likewise.
10696 (target_write_partial): Likewise.
10697 (target_read_partial): Likewise. All callers updated.
10698 (read_whatever_is_readable): Likewise.
10699 (target_write_with_progress): Likewise.
10700 (target_read_alloc_1): Likewise.
10701
10702 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10703 * auxv.c (procfs_xfer_auxv): Likewise.
10704 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10705 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10706 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10707 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10708 * corefile.c (read_memory): Adjust.
10709 * corelow.c (core_xfer_partial): Likewise.
10710 * ctf.c (ctf_xfer_partial): Likewise.
10711 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10712 updated.
10713 (darwin_xfer_partial): Likewise.
10714 * exec.c (section_table_xfer_memory_partial): Likewise. All
10715 callers updated.
10716 (exec_xfer_partial): Likewise.
10717 * exec.h (section_table_xfer_memory_partial): Update
10718 declaration.
10719 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10720 negative.
10721 (gnu_xfer_partial): Likewise.
10722 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10723 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10724 (ia64_hpux_xfer_solib_got): Likewise.
10725 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10726 type of 'partial_len' to ULONGEST.
10727 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10728 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10729 (linux_nat_xfer_partial): Likewise.
10730 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10731 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10732 * monitor.c (monitor_xfer_memory): Likewise.
10733 (monitor_xfer_partial): Likewise.
10734 * procfs.c (procfs_xfer_partial): Likewise.
10735 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10736 * record-full.c (record_full_xfer_partial): Likewise.
10737 (record_full_core_xfer_partial): Likewise.
10738 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10739 (gdbsim_xfer_partial): Likewise.
10740 * remote.c (remote_write_bytes_aux): Likewise. All callers
10741 updated.
10742 (remote_write_bytes, remote_read_bytes): Likewise. All
10743 callers updated.
10744 (remote_flash_erase): Likewise. All callers updated.
10745 (remote_write_qxfer): Likewise. All callers updated.
10746 (remote_read_qxfer): Likewise. All callers updated.
10747 (remote_xfer_partial): Likewise.
10748 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10749 (rs6000_xfer_shared_libraries): Likewise.
10750 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10751 (sol_thread_xfer_partial): Likewise.
10752 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10753 (sparc_xfer_partial): Likewise.
10754 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10755 updated.
10756 (spu_xfer_partial): Likewise.
10757 * spu-multiarch.c (spu_xfer_partial): Likewise.
10758 * tracepoint.c (tfile_xfer_partial): Likewise.
10759 * windows-nat.c (windows_xfer_memory): Likewise.
10760 (windows_xfer_shared_libraries): Likewise.
10761 (windows_xfer_partial): Likewise.
10762 * valprint.c: Replace 'target_xfer_error' with
10763 'target_xfer_status' in comments.
10764
a8e63083
JB
107652014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10766
10767 Checked in by Joel Brobecker <brobecker@adacore.com>.
10768 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10769
e86b67d3
JB
107702014-02-11 Joel Brobecker <brobecker@adacore.com>
10771
10772 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10773 function parameters.
10774
4b7d1f7f
WN
107752014-02-10 Will Newton <will.newton@linaro.org>
10776
10777 * elfread.c (elf_rel_plt_read): Look for a .got section if
10778 looking up .got.plt fails.
10779 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10780 on address passed to elf_gnu_ifunc_record_cache.
10781 (elf_gnu_ifunc_resolve_addr): Likewise.
10782 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10783
961842b2
JM
107842014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10785
10786 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10787 (X_RETTURN): New macro.
10788 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10789
10790 * sparc64-tdep.c (sparc64_init_abi): Hook
10791 sparc_in_function_epilogue_p.
10792
3f03e7b1
GB
107932014-02-10 Gary Benson <gbenson@redhat.com>
10794
10795 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10796 Rename name_matcher to symbol_matcher.
10797
96f861ef
GB
107982014-02-10 Gary Benson <gbenson@redhat.com>
10799
10800 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10801 Use expand_symtabs_file_matcher_ftype and
10802 expand_symtabs_symbol_matcher_ftype.
10803
ee01b665
JB
108042014-02-10 Joel Brobecker <brobecker@adacore.com>
10805
10806 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10807 (struct ada_symbol_cache): New.
10808 (ada_free_symbol_cache): Forward declare.
10809 (struct ada_pspace_data): New.
10810 (ada_pspace_data_handle): New static global.
10811 (get_ada_pspace_data, ada_pspace_data_cleanup)
10812 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10813 (cache_space, cache): Delete, now folded inside struct
10814 ada_pspace_data.
10815 (ada_get_symbol_cache): New function.
10816 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10817 implementation.
10818 (_initialize_ada_language): Remove initialization of cache_space.
10819 Move call to observer_attach_inferior_exit up, grouping it
10820 with the other observer registrations inside this function.
10821 Rename command to be more general. Add call to
10822 register_program_space_data_with_cleanup.
10823
143adbbf
JB
108242014-02-10 Joel Brobecker <brobecker@adacore.com>
10825
10826 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10827 ada_new_objfile_observer.
10828 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10829 (_initialize_tasks): Update uses of ada_new_objfile_observer
10830 and ada_tasks_normal_stop_observer.
10831
aa4fb036
JB
108322014-02-10 Joel Brobecker <brobecker@adacore.com>
10833
10834 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10835 returned by the 'Length attribute to integer.
10836
9dee8cc6
JB
108372014-02-10 Joel Brobecker <brobecker@adacore.com>
10838
10839 * ada-lang.c (_initialize_ada_language): Initialize
10840 cache_space obstack.
10841
3d9434b5
JB
108422014-02-10 Joel Brobecker <brobecker@adacore.com>
10843
10844 * ada-lang.c (HASH_SIZE): New macro.
10845 (struct cache_entry): New type.
10846 (cache_space, cache): New static globals.
10847 (ada_clear_symbol_cache, find_entry): New functions.
10848 (lookup_cached_symbol, cache_symbol): Implement.
10849 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10850 (_initialize_ada_language): Attach ada_new_objfile_observer
10851 and ada_free_objfile_observer.
10852
f0c5f9b2
JB
108532014-02-10 Joel Brobecker <brobecker@adacore.com>
10854
10855 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10856 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10857 struct block * parameter.
10858 (ada_lookup_symbol_list_worker): Constify local variable "block".
10859 Remove cast which is no longer necessary.
10860
ed3ef339
DE
108612014-02-10 Doug Evans <xdje42@gmail.com>
10862
10863 Add Guile as an extension language.
10864 * NEWS: Mention Guile scripting.
10865 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10866 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10867 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10868 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10869 (CLIBS): Add GUILE_LIBS.
10870 (install-guile): New rule.
10871 (guile.o): New rule.
10872 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10873 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10874 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10875 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10876 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10877 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10878 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10879 * configure.ac: New option --with-guile.
10880 * configure: Regenerate.
10881 * config.in: Regenerate.
10882 * auto-load.c: Remove #include "python/python.h". Add #include
10883 "gdb/section-scripts.h".
10884 (source_section_scripts): Handle Guile scripts.
10885 (_initialize_auto_load): Add name of Guile objfile script to
10886 scripts-directory help text.
10887 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10888 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10889 (struct breakpoint): New member scm_bp_object.
10890 * defs.h (enum command_control_type): New value guile_control.
10891 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10892 "extension.h".
10893 (show_user): Update comment.
10894 (_initialize_cli_cmds): Update help text for "show user". Update help
10895 text for max-user-call-depth.
10896 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10897 "extension.h".
10898 (multi_line_command_p): Add guile_control.
10899 (print_command_lines): Handle guile_control.
10900 (execute_control_command, recurse_read_control_structure): Ditto.
10901 (process_next_line): Recognize "guile" commands.
10902 * disasm.c (gdb_disassemble_info): Make non-static.
10903 * disasm.h: #include "dis-asm.h".
10904 (struct gdbarch): Add forward decl.
10905 (gdb_disassemble_info): Declare.
10906 * extension.c: #include "guile/guile.h".
10907 (extension_languages): Add guile.
10908 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10909 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10910 * gdbtypes.c (get_unsigned_type_max): New function.
10911 (get_signed_type_minmax): New function.
10912 * gdbtypes.h (get_unsigned_type_max): Declare.
10913 (get_signed_type_minmax): Declare.
10914 * guile/README: New file.
10915 * guile/guile-internal.h: New file.
10916 * guile/guile.c: New file.
10917 * guile/guile.h: New file.
10918 * guile/scm-arch.c: New file.
10919 * guile/scm-auto-load.c: New file.
10920 * guile/scm-block.c: New file.
10921 * guile/scm-breakpoint.c: New file.
10922 * guile/scm-disasm.c: New file.
10923 * guile/scm-exception.c: New file.
10924 * guile/scm-frame.c: New file.
10925 * guile/scm-gsmob.c: New file.
10926 * guile/scm-iterator.c: New file.
10927 * guile/scm-lazy-string.c: New file.
10928 * guile/scm-math.c: New file.
10929 * guile/scm-objfile.c: New file.
10930 * guile/scm-ports.c: New file.
10931 * guile/scm-pretty-print.c: New file.
10932 * guile/scm-safe-call.c: New file.
10933 * guile/scm-string.c: New file.
10934 * guile/scm-symbol.c: New file.
10935 * guile/scm-symtab.c: New file.
10936 * guile/scm-type.c: New file.
10937 * guile/scm-utils.c: New file.
10938 * guile/scm-value.c: New file.
10939 * guile/lib/gdb.scm: New file.
10940 * guile/lib/gdb/boot.scm: New file.
10941 * guile/lib/gdb/experimental.scm: New file.
10942 * guile/lib/gdb/init.scm: New file.
10943 * guile/lib/gdb/iterator.scm: New file.
10944 * guile/lib/gdb/printing.scm: New file.
10945 * guile/lib/gdb/types.scm: New file.
10946 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10947 (VPATH): Add $(GUILE_SRCDIR).
10948 (GUILE_DIR): New variable.
10949 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10950 (all): Add stamp-guile dependency.
10951 (stamp-guile): New rule.
10952 (clean-guile, install-guile, uninstall-guile): New rules.
10953 (install-only): Add install-guile dependency.
10954 (uninstall): Add uninstall-guile dependency.
10955 (clean): Add clean-guile dependency.
10956
ac020ec5
DE
109572014-02-09 Doug Evans <xdje42@gmail.com>
10958
10959 Revert this patch (which I approved, mea culpa).
10960
10961 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10962
10963 * Makefile.in (all-lib): Remove.
10964 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10965
2a081c59
JK
109662014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10967
10968 Fix Python stack corruption.
10969 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10970 gdb_py_longest.
10971
0a6bd22d
MK
109722014-02-08 Mark Kettenis <kettenis@gnu.org>
10973
10974 * Makefile.in (all-lib): Remove.
10975 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10976
1a860409
DE
109772014-02-07 Doug Evans <dje@google.com>
10978
10979 * extension-priv.h (extension_language_script_ops): Add comment.
10980 (extension_language_ops): Add comment.
caf5a491 10981 (active_ext_lang_state): Fix typo in comment.
1a860409 10982
d137e6dc
PA
109832014-02-07 Pedro Alves <palves@redhat.com>
10984
0dcb32c3 10985 PR breakpoints/16292
d137e6dc
PA
10986 * infrun.c (handle_signal_stop) <signal arrives while stepping
10987 over a breakpoint>: Switch back to the stepping thread.
10988
ce6d0892
YQ
109892014-02-07 Yao Qi <yao@codesourcery.com>
10990
10991 * target.c (target_xfer_partial): Return zero if LEN is zero.
10992
2ed4b548
YQ
109932014-02-07 Yao Qi <yao@codesourcery.com>
10994
10995 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10996 (ld_so_xfer_auxv): Likewise.
10997 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10998 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10999 * corelow.c (core_xfer_partial): Likewise.
11000 * ctf.c (ctf_xfer_partial): Likewise.
11001 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11002 (darwin_xfer_partial): Likewise.
11003 * exec.c (exec_xfer_partial): Likewise.
11004 * gnu-nat.c (gnu_xfer_partial): Likewise.
11005 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11006 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11007 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11008 * linux-nat.c (linux_xfer_siginfo): Likewise.
11009 (linux_proc_xfer_spu): Likewise.
11010 * procfs.c (procfs_xfer_partial): Likewise.
11011 * record-full.c (record_full_xfer_partial): Likewise.
11012 (record_full_core_xfer_partial): Likewise.
11013 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11014 * remote.c (remote_write_qxfer): Likewise.
11015 (remote_write_qxfer, remote_read_qxfer): Likewise.
11016 (remote_xfer_partial): Likewise.
11017 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11018 (rs6000_xfer_shared_libraries): Likewise.
11019 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11020 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11021 (spu_xfer_partial): Likewise.
11022 * target.c (memory_xfer_partial_1): Likewise.
11023 * tracepoint.c (tfile_xfer_partial): Likewise.
11024 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11025 (windows_xfer_partial): Likewise.
11026
c09f20e4
YQ
110272014-02-07 Yao Qi <yao@codesourcery.com>
11028
11029 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11030 comments.
11031 (core_xfer_shared_libraries_aix): Likewise.
11032 * gdbarch.c, gdbarch.h: Regenerated.
11033 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11034 ULONGEST. Change 'len_avail' type to ULONGEST.
11035 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11036 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11037 declaration.
11038 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11039
8635b3bf
YQ
110402014-02-07 Yao Qi <yao@codesourcery.com>
11041
11042 * corefile.c (memory_error): Get 'exception' from ERR and pass
11043 'exception' to throw_error.
11044
6dddc817
DE
110452014-02-06 Doug Evans <xdje42@gmail.com>
11046
11047 * configure.ac (libpython checking): Remove all but python.o from
11048 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11049 * configure: Regenerate.
11050
11051 * Makefile.in (SFILES): Add extension.c.
11052 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11053 (COMMON_OBS): Add extension.o.
11054 * extension.h: New file.
11055 * extension-priv.h: New file.
11056 * extension.c: New file.
11057
11058 * python/python-internal.h: #include "extension.h".
11059 (gdbpy_auto_load_enabled): Declare.
11060 (gdbpy_apply_val_pretty_printer): Declare.
11061 (gdbpy_apply_frame_filter): Declare.
11062 (gdbpy_preserve_values): Declare.
11063 (gdbpy_breakpoint_cond_says_stop): Declare.
11064 (gdbpy_breakpoint_has_cond): Declare.
11065 (void source_python_script_for_objfile): Delete.
11066 * python/python.c: #include "extension-priv.h".
11067 Delete inclusion of "observer.h".
11068 (extension_language_python): Moved here and renamed from
11069 script_language_python in py-auto-load.c.
11070 Redefined to be of type extension_language_defn.
11071 (python_extension_script_ops): New global.
11072 (python_extension_ops): New global.
11073 (struct python_env): New member previous_active.
11074 (restore_python_env): Call restore_active_ext_lang.
11075 (ensure_python_env): Call set_active_ext_lang.
11076 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11077 New arg extlang.
11078 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11079 New arg extlang.
11080 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11081 New arg extlang.
11082 (gdbpy_eval_from_control_command): Renamed from
11083 eval_python_from_control_command, made static. New arg extlang.
11084 (gdbpy_source_script) Renamed from source_python_script, made static.
11085 New arg extlang.
11086 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11087 result to int. New arg extlang.
11088 (gdbpy_source_objfile_script): Renamed from
11089 source_python_script_for_objfile, made static. New arg extlang.
11090 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11091 static. New args extlang, extlang_printers. Change result type to
11092 "void".
11093 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11094 static. New arg extlang. Rename arg printers to extlang_printers
11095 and change type to ext_lang_type_printers *.
11096 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11097 static. Replace argument arg with extlang, extlang_printers.
11098 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11099 (!HAVE_PYTHON, source_python_script): Delete.
11100 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11101 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11102 (!HAVE_PYTHON, start_type_printers): Delete.
11103 (!HAVE_PYTHON, apply_type_printers): Delete.
11104 (!HAVE_PYTHON, free_type_printers): Delete.
11105 (_initialize_python): Delete call to observer_attach_before_prompt.
11106 (finalize_python): Set/restore active extension language.
11107 (gdbpy_finish_initialization) Renamed from
11108 finish_python_initialization, made static. New arg extlang.
11109 (gdbpy_initialized): New function.
11110 * python/python.h: #include "extension.h". Delete #include
11111 "value.h", "mi/mi-cmds.h".
11112 (extension_language_python): Declare.
11113 (GDBPY_AUTO_FILE_NAME): Delete.
11114 (enum py_bt_status): Moved to extension.h and renamed to
11115 ext_lang_bt_status.
11116 (enum frame_filter_flags): Moved to extension.h.
11117 (enum py_frame_args): Moved to extension.h and renamed to
11118 ext_lang_frame_args.
11119 (finish_python_initialization): Delete.
11120 (eval_python_from_control_command): Delete.
11121 (source_python_script): Delete.
11122 (apply_val_pretty_printer): Delete.
11123 (apply_frame_filter): Delete.
11124 (preserve_python_values): Delete.
11125 (gdbpy_script_language_defn): Delete.
11126 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11127 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11128
11129 * auto-load.c: #include "extension.h".
11130 (GDB_AUTO_FILE_NAME): Delete.
11131 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11132 (script_language_gdb): Delete, moved to extension.c and renamed to
11133 extension_language_gdb.
11134 (source_gdb_script_for_objfile): Delete.
11135 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11136 (loaded_script): Change type of language member to
11137 struct extension_language_defn *.
11138 (init_loaded_scripts_info): Initialize
11139 unsupported_script_warning_printed.
11140 (maybe_add_script): Make static. Change type of language arg to
11141 struct extension_language_defn *.
11142 (clear_section_scripts): Reset unsupported_script_warning_printed.
11143 (auto_load_objfile_script_1): Rewrite to use extension language API.
11144 (auto_load_objfile_script): Make public. Remove support-compiled-in
11145 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11146 (source_section_scripts): Rewrite to use extension language API.
11147 (load_auto_scripts_for_objfile): Rewrite to use
11148 auto_load_scripts_for_objfile.
11149 (collect_matching_scripts_data): Change type of language member to
11150 struct extension_language_defn *.
11151 (auto_load_info_scripts): Change type of language arg to
11152 struct extension_language_defn *.
11153 (unsupported_script_warning_print): New function.
11154 (script_not_found_warning_print): Make static.
11155 (_initialize_auto_load): Rewrite construction of scripts-directory
11156 help.
11157 * auto-load.h (struct objfile): Add forward decl.
11158 (struct script_language): Delete.
11159 (struct auto_load_pspace_info): Add forward decl.
11160 (struct extension_language_defn): Add forward decl.
11161 (maybe_add_script): Delete.
11162 (auto_load_objfile_script): Declare.
11163 (script_not_found_warning_print): Delete.
11164 (auto_load_info_scripts): Update prototype.
11165 (auto_load_gdb_scripts_enabled): Declare.
11166 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11167 auto_load_python_scripts_enabled and made public.
11168 (script_language_python): Delete, moved to python.c.
11169 (gdbpy_script_language_defn): Delete.
11170 (info_auto_load_python_scripts): Update to use
11171 extension_language_python.
11172
11173 * breakpoint.c (condition_command): Replace call to
11174 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11175 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11176 with call to breakpoint_ext_lang_cond_says_stop.
11177 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11178 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11179 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11180 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11181 New arg slang.
11182 (local_setattro): Print name of extension language with existing
11183 stop condition.
11184
11185 * valprint.c (val_print, value_print): Update to call
11186 apply_ext_lang_val_pretty_printer.
11187 * cp-valprint.c (cp_print_value): Update call to
11188 apply_ext_lang_val_pretty_printer.
11189 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11190 (gdbpy_apply_val_pretty_printer): Renamed from
11191 apply_val_pretty_printer. New arg extlang.
11192 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11193
11194 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11195 extension language API.
11196 * cli/cli-script.c (execute_control_command): Update to call
11197 eval_ext_lang_from_control_command.
11198
11199 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11200 enum ext_lang_bt_status values. Update call to
11201 apply_ext_lang_frame_filter.
11202 (mi_cmd_stack_list_locals): Ditto.
11203 (mi_cmd_stack_list_args): Ditto.
11204 (mi_cmd_stack_list_variables): Ditto.
11205 * mi/mi-main.c: Delete #include "python/python-internal.h".
11206 Add #include "extension.h".
11207 (mi_cmd_list_features): Replace reference to python internal variable
11208 gdb_python_initialized with call to ext_lang_initialized_p.
11209
11210 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11211 Update to use enum ext_lang_frame_args. Update to call
11212 apply_ext_lang_frame_filter.
11213 * python/py-framefilter.c (extract_sym): Update to use enum
11214 ext_lang_bt_status.
11215 (extract_value, py_print_type, py_print_value): Ditto.
11216 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11217 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11218 (py_print_frame): Ditto.
11219 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11220 New arg extlang. Update to use enum ext_lang_bt_status.
11221
11222 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11223 finish_python_initialization. Replace with call to
11224 finish_ext_lang_initialization.
11225
11226 * typeprint.c (do_free_global_table): Update to call
11227 free_ext_lang_type_printers.
11228 (create_global_typedef_table): Update to call
11229 start_ext_lang_type_printers.
11230 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11231 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11232 (type_print_options): Change type of global_printers from "void *"
11233 to "struct ext_lang_type_printers *".
11234
11235 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11236 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11237 (gdbpy_preserve_values): Renamed from preserve_python_values.
11238 New arg extlang.
11239 (!HAVE_PYTHON, preserve_python_values): Delete.
11240
11241 * utils.c (quit_flag): Delete, moved to extension.c.
11242 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11243 extension.c.
11244
11245 * eval.c: Delete #include "python/python.h".
11246 * main.c: Delete #include "python/python.h".
11247
11248 * defs.h: Update comment.
11249
6af79985
JB
112502014-02-06 Joel Brobecker <brobecker@adacore.com>
11251
11252 GDB 7.7 released.
11253
12c5175d
MK
112542014-02-05 Mark Kettenis <kettenis@gnu.org>
11255
11256 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11257 defined.
11258
8dc5b319
YQ
112592014-02-05 Yao Qi <yao@codesourcery.com>
11260
11261 * remote.c (remote_pass_signals): Remove local 'buf' and use
11262 rs->buf.
11263 (remote_program_signals): Likewise.
11264
de7b2893
YQ
112652014-02-05 Yao Qi <yao@codesourcery.com>
11266
11267 * ctf.c: Include "inferior.h" and "gdbthread.h".
11268 (CTF_PID): A new macro.
11269 (ctf_open): Call inferior_appeared and add_thread_silent.
11270 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11271 (ctf_thread_alive): New function.
11272 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11273
66d032ac
YQ
112742014-02-05 Yao Qi <yao@codesourcery.com>
11275
11276 Revert this patch:
11277
11278 2013-05-24 Yao Qi <yao@codesourcery.com>
11279
11280 * tracepoint.c (TFILE_PID): Remove.
11281 (tfile_open): Don't add thread and inferior.
11282 (tfile_close): Don't set 'inferior_ptid'. Don't call
11283 exit_inferior_silent.
11284 (tfile_thread_alive): Remove.
11285 (init_tfile_ops): Don't set field 'to_thread_alive' of
11286 tfile_ops.
11287
f4ccffad
CE
112882014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11289
11290 * remote.c (remote_start_remote): Call remote_check_symbols even
11291 if only symbol-file (not file) has been given.
11292
591a12a1
UW
112932014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11294
11295 * gdbarch.sh (skip_entrypoint): New callback.
11296 * gdbarch.c, gdbarch.h: Regenerate.
11297 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11298 * infrun.c (fill_in_stop_func): Likewise.
11299 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11300 (ppc_elfv2_elf_make_msymbol_special): New function.
11301 (ppc_elfv2_skip_entrypoint): Likewise.
11302 (ppc_linux_init_abi): Install them for ELFv2.
11303
cc0e89c5
UW
113042014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11305
11306 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11307 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11308 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11309 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11310 structures returned in GPRs.
11311
52f548e4
UW
113122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11313
11314 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11315 offset to the stack parameter list for the ELFv2 ABI.
11316
d4094b6a
UW
113172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11318
11319 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11320 set_gdbarch_convert_from_func_ptr_addr and
11321 set_gdbarch_elf_make_msymbol_special for ELFv1.
11322 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11323 function descriptors on ELFv1.
11324 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11325 set up r12 at function entry.
11326
cd453cd0
UW
113272014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11328
11329 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11330 (struct gdbarch_tdep): New member elf_abi.
11331
11332 * rs6000-tdep.c: Include "elf/ppc64.h".
11333 (rs6000_gdbarch_init): Detect ELF ABI version.
11334
0ff3e01f
UW
113352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11336
11337 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11338 within a register pair holding a DFP 128-bit value on little-endian.
11339 (ppc64_sysv_abi_return_value_base): Likewise.
11340 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11341 (dfp_pseudo_register_write): Likewise.
11342
5b757e5d
UW
113432014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11344
11345 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11346 offset on little-endian when passing _Decimal32.
11347 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11348
084ee545
UW
113492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11350
11351 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11352 of the overlapped FP register within the VSX register on little-
11353 endian platforms.
11354 (efpr_pseudo_register_write): Likewise.
11355
d63167af
UW
113562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11357
11358 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11359 offset on little-endian when passing small structures.
11360
e765b44c
UW
113612014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11362
11363 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11364 (struct ppc64_sysv_argpos): New data structure.
11365 (ppc64_sysv_abi_push_float): Remove.
11366 (ppc64_sysv_abi_push_val): New function.
11367 (ppc64_sysv_abi_push_integer): Likewise.
11368 (ppc64_sysv_abi_push_freg): Likewise.
11369 (ppc64_sysv_abi_push_vreg): Likewise.
11370 (ppc64_sysv_abi_push_param): Likewise.
11371 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11372 (ppc64_sysv_abi_return_value_base): New function.
11373 (ppc64_sysv_abi_return_value): Refactor to use it.
11374
36c24d95
UW
113752014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11376
11377 * NEWS: Document new target powerpc64le-*-linux*.
11378
26fd9228
MK
113792014-02-04 Mark Kettenis <kettenis@gnu.org>
11380
11381 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11382 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11383 core dumps.
11384 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11385 register set used in ELF core dumps. Add floating-point register set.
11386
c5bb7362
KB
113872014-02-03 Kevin Buettner <kevinb@redhat.com>
11388
74228e77 11389 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11390 dwarf2_to_gdb[] table using symbolic constants. Adjust
11391 penultimate entry from number representing the PC register
11392 to symbolic constant representing the MDR register. Add
11393 constant for the PC register to the end of the table.
11394
af09351e
MK
113952014-02-03 Mark Kettenis <kettenis@gnu.org>
11396
11397 * bsd-kvm.c: Include <sys/param.h>
11398
8507e05d
MK
113992014-02-03 Mark Kettenis <kettenis@gnu.org>
11400
11401 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11402
ae56bfb8
JB
114032014-01-31 Joel Brobecker <brobecker@adacore.com>
11404
11405 * ada-lang.h (clear_ada_sym_cache): Delete.
11406
718ee4dc
UW
114072014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11408
11409 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11410
401e27fd
JM
114112014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11412
11413 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11414 the sigreturn register save area only if the syscall is
11415 sigreturn.
11416
a7c88acd
JB
114172014-01-29 Joel Brobecker <brobecker@adacore.com>
11418
11419 * valops.c (value_slice): Minor reformatting.
11420
fa0079ea
UW
114212014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11422
11423 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11424
c6044dd1
JB
114252014-01-28 Joel Brobecker <brobecker@adacore.com>
11426
11427 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11428 New static globals.
11429 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11430 (ada_ignore_descriptive_types_p): New static global.
11431 (find_parallel_type_by_descriptive_type): Return immediately
11432 if ada_ignore_descriptive_types_p is set.
11433 (_initialize_ada_language): Register new commands "maintenance
11434 set ada", "maintenance show ada", "maintenance set ada
11435 ignore-descriptive-types" and "maintenance show ada
11436 ignore-descriptive-types".
11437 * NEWS: Add entry for new "maint ada set/show
11438 ignore-descriptive-types" commands.
11439
568e808b
MM
114402014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11441
11442 * record-btrace.c (record_btrace_close): Call btrace_teardown
11443 for all threads.
11444
467d141b
JB
114452014-01-27 Joel Brobecker <brobecker@adacore.com>
11446
11447 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11448 "ui-out.h".
11449
fb151210
JB
114502014-01-27 Joel Brobecker <brobecker@adacore.com>
11451
11452 * ada-typeprint (type_is_full_subrange_of_target_type):
11453 New function.
11454 (print_range): Add parameter bounds_prefered_p. If not set,
11455 try printing range types using the name of their base type.
11456 (print_range_type): Add parameter bounds_prefered_p.
11457 Use it in call to print_range.
11458 (print_array_type, ada_print_type): Update calls to print_range
11459 and print_range_type.
11460
aba02109
JB
114612014-01-27 Joel Brobecker <brobecker@adacore.com>
11462
11463 * ada-typeprint.c (print_array_type, print_choices, print_range)
11464 (print_range_bound, print_dynamic_range_bound, print_range_type):
11465 Remove declaration.
11466
e62e21fd
JB
114672014-01-27 Joel Brobecker <brobecker@adacore.com>
11468
11469 * ada-typeprint.c (print_range): Add missing empty line
11470 after local declaration.
11471
859cf5d1
JB
114722014-01-27 Joel Brobecker <brobecker@adacore.com>
11473
11474 * ada-valprint.c (print_optional_low_bound): Get index_type's
11475 target type for as long as it is a TYPE_CODE_RANGE.
11476
25790f6f
JB
114772014-01-27 Joel Brobecker <brobecker@adacore.com>
11478
11479 * procfs.c (procfs_make_note_section): Remove assertion and
11480 associated comment.
11481
6b6aa828
YQ
114822014-01-24 Yao Qi <yao@codesourcery.com>
11483
11484 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11485 * corelow.c (get_core_siginfo): Likewise.
11486
5d6df423
YQ
114872014-01-24 Yao Qi <yao@codesourcery.com>
11488
11489 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11490 ULONGEST. Don't check 'len' is negative.
11491 (remote_write_bytes): Change type of 'len' to ULONGEST.
11492
83b645b8
TT
114932014-01-23 Tom Tromey <tromey@redhat.com>
11494
11495 PR python/16485:
11496 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11497 Handle exception from frame.block.
11498 (FrameVars.fetch_frame_locals): Likewise.
11499
0740f8d8
TT
115002014-01-23 Tom Tromey <tromey@redhat.com>
11501
11502 PR python/16487:
11503 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11504 on a NULL pointer. Move "goto error" to correct place.
11505
21909fa1
TT
115062014-01-23 Tom Tromey <tromey@redhat.com>
11507
11508 PR python/16491:
11509 * python/py-framefilter.c (apply_frame_filter): Call
11510 ensure_python_env after computing gdbarch.
11511
17fde6d0
YQ
115122014-01-23 Yao Qi <yao@codesourcery.com>
11513
11514 * target.c (raw_memory_xfer_partial): Change argument type
11515 from void * to gdb_byte *.
11516 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11517
87ce2a04
DE
115182014-01-22 Doug Evans <dje@google.com>
11519
11520 New gdbserver option --debug-format=timestamp.
11521 * NEWS: Mention it.
11522
237b092b
AA
115232014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11524
11525 * syscalls/s390x-linux.xml: New file.
11526 * syscalls/s390-linux.xml: New file.
11527 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11528 (XML_SYSCALL_FILENAME_S390X): Likewise.
11529 (op_svc): New enum value for SVC opcode.
11530 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11531 (s390_linux_get_syscall_number): New function.
11532 (s390_gdbarch_init): Register '*get_syscall_number' and the
11533 syscall xml file name.
11534 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11535 "s390-linux.xml" and "s390x-linux.xml".
11536 * NEWS: Announce new feature.
11537
54bff650
BS
115382014-01-22 Baruch Siach <baruch@tkos.co.il>
11539
11540 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11541
14e361d7
PA
115422014-01-22 Pedro Alves <palves@redhat.com>
11543
11544 * xtensa-config.c: Include defs.h.
11545
46bbb3ed
JB
115462014-01-22 Joel Brobecker <brobecker@adacore.com>
11547
11548 * common/common-utils.h: Add "ARI:" comment beside __func__
11549 reference.
11550
3a80edfc
JB
115512014-01-22 Joel Brobecker <brobecker@adacore.com>
11552
11553 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11554 documentation a bit.
11555
4869db5e
RM
115562014-01-21 Roland McGrath <mcgrathr@google.com>
11557
11558 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11559 * configure: Regenerate.
11560 * aclocal.m4: Regenerate.
11561 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11562 New substituted variables.
11563 (install-strip): New target.
11564 (INSTALL_SCRIPT): New substituted variable.
11565 (FLAGS_TO_PASS): Add it.
11566 (install-only): Use $(INSTALL_SCRIPT) rather than
11567 $(INSTALL_PROGRAM) for gcore.
11568
9ea4267d
TT
115692014-01-20 Tom Tromey <tromey@redhat.com>
11570
11571 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11572 together.
11573
1f2bdf09
TT
115742014-01-20 Tom Tromey <tromey@redhat.com>
11575
11576 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11577 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11578 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11579 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11580 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11581 (struct cmd_list_element) <flags>: Remove.
11582 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11583 doc_allocated>: New fields.
11584 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11585 bitfields.
11586 * maint.c (maintenance_do_deprecate): Update.
11587 * top.c (execute_command): Update.
11588
e671835b
BS
115892014-01-20 Baruch Siach <baruch@tkos.co.il>
11590
11591 * xtensa-linux-nat.c: Include asm/ptrace.h.
11592
50367cd2
IB
115932014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11594
11595 * Makefile.in (SFILES): Add d-support.c.
11596 (COMMON_OBS): Add d-support.o.
11597 * d-lang.h (d_parse_symbol): Add comment, now defined in
11598 d-support.c.
11599 * d-lang.c (parse_call_convention)
11600 (parse_attributes, parse_function_types)
11601 (parse_function_args, parse_type, parse_identifier)
11602 (call_convention_p, d_parse_symbol): Move functions to ...
11603 * d-support.c: ... New file.
11604
ec9f644a
IB
116052014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11606
11607 * d-lang.h (d_parse_symbol): Add declaration.
11608 * d-lang.c (extract_identifiers)
11609 (extract_type_info): Remove functions.
11610 (parse_call_convention, parse_attributes)
11611 (parse_function_types, parse_function_args)
11612 (parse_type, parse_identifier, call_convention_p)
11613 (d_parse_symbol): New functions.
11614 (d_demangle): Use d_parse_symbol to demangle D symbols.
11615
94b1b47e
IB
116162014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11617
11618 * d-lang.h (struct builtin_d_type): New data type.
11619 (builtin_d_type): Add declaration.
11620 * d-lang.c (d_language_arch_info, build_d_types)
11621 (builtin_d_type): New functions.
11622 (enum d_primitive_types): New data type.
11623 (d_language_defn): Change c_language_arch_info to
11624 d_language_arch_info.
11625 (d_type_data): New static variable.
11626 (_initialize_d_language): Initialize d_type_data.
11627
63778547
IB
116282014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11629
11630 * d-lang.h (d_main_name): Add declaration.
11631 * d-lang.c (d_main_name): New function.
11632 * symtab.c (find_main_name): Add call to d_main_name.
11633
3271ba66
IB
116342014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11635
11636 * d-lang.c (d_language_defn): Change macro_expansion_c to
11637 macro_expansion_no.
11638
d36b3012
IB
116392014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11640
11641 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11642
c90a6fb7
SDJ
116432014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11644
11645 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11646 gdb_exception" declaration.
11647 * remote.c (getpkt_or_notif_sane): Likewise.
11648
749234e5
DE
116492014-01-17 Doug Evans <dje@google.com>
11650
11651 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11652 function, contents of dirnames_to_char_ptr_vec_append moved here.
11653 (delim_string_to_char_ptr_vec): New function.
11654 (dirnames_to_char_ptr_vec_append): Rewrite.
11655 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11656
df049a58
DE
116572014-01-17 Doug Evans <dje@google.com>
11658
11659 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11660 and moved here ...
11661 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11662 #include "common-utils.h".
11663 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11664 * common/vec.h (VEC_ASSERT_PASS): Update.
11665 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11666 (MACH_CHECK_ERROR): Update.
11667
69f97648
SM
116682014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11669
11670 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11671 comments.
11672 * gdbarch.h: Regenerate.
11673
98b1cfdc
TT
116742014-01-16 Tom Tromey <tromey@redhat.com>
11675
11676 * value.c (struct value) <regnum>: Move earlier.
11677
77a19445
TT
116782014-01-16 Tom Tromey <tromey@redhat.com>
11679
11680 * remote.c (extended_remote_create_inferior): Rename from
11681 extended_remote_create_inferior_1. Add "ops" argument. Remove
11682 old implementation.
11683
62261490
PA
116842014-01-16 Pedro Alves <palves@redhat.com>
11685
11686 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11687 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11688 the backchain.
11689
4d65956b
DE
116902014-01-16 Doug Evans <dje@google.com>
11691
11692 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11693
52834460
MM
116942014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11695
11696 * btrace.h (btrace_thread_flag): New.
11697 (struct btrace_thread_info) <flags>: New.
11698 * record-btrace.c (record_btrace_resume_thread)
11699 (record_btrace_find_thread_to_move, btrace_step_no_history)
11700 (btrace_step_stopped, record_btrace_start_replaying)
11701 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11702 (record_btrace_find_resume_thread): New.
11703 (record_btrace_resume, record_btrace_wait): Extend.
11704 (record_btrace_can_execute_reverse): New.
11705 (record_btrace_open): Fail in non-stop mode.
11706 (record_btrace_set_replay): Split into this, ...
11707 (record_btrace_stop_replaying): ... this, ...
11708 (record_btrace_clear_histories): ... and this.
11709 (init_record_btrace_ops): Init to_can_execute_reverse.
11710 * NEWS: Announce it.
11711
118e6252
MM
117122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11713
11714 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11715 (forward_target_decr_pc_after_break)
11716 (target_decr_pc_after_break): New.
11717 * target.c (forward_target_decr_pc_after_break)
11718 (target_decr_pc_after_break): New.
11719 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11720 instead of gdbarch_decr_pc_after_break.
11721 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11722 instead of gdbarch_decr_pc_after_break.
11723 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11724 instead of gdbarch_decr_pc_after_break.
11725 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11726 instead of gdbarch_decr_pc_after_break.
11727 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11728 instead of gdbarch_decr_pc_after_break.
11729 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11730 instead of gdbarch_decr_pc_after_break.
11731
6e07b1d2
MM
117322014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11733
11734 * btrace.c: Include regcache.h.
11735 (btrace_add_pc): New.
11736 (btrace_enable): Call btrace_add_pc.
11737 (btrace_is_empty): New.
11738 * btrace.h (btrace_is_empty): New.
11739 * record-btrace.c (require_btrace, record_btrace_info): Call
11740 btrace_is_empty.
11741
969c39fb
MM
117422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11743
11744 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11745 Support delta reads.
11746 (linux_disable_btrace): Change return type.
11747 * common/linux-btrace.h (linux_read_btrace): Change parameters
11748 and return type to allow error reporting. Update users.
11749 (linux_disable_btrace): Change return type. Update users.
11750 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11751 New.
11752 (btrace_error): New.
11753 (btrace_block) <begin>: Comment on BEGIN == 0.
11754 * btrace.c (btrace_compute_ftrace): Start from the end of
11755 the current trace.
11756 (btrace_stitch_trace, btrace_clear_history): New.
11757 (btrace_fetch): Read delta trace, return if replaying.
11758 (btrace_clear): Move clear history code to btrace_clear_history.
11759 (parse_xml_btrace): Throw an error if parsing failed.
11760 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11761 and return type to allow error reporting.
11762 (target_read_btrace): Change parameters and return type to allow
11763 error reporting.
11764 * target.c (target_read_btrace): Update.
11765 * remote.c (remote_read_btrace): Support delta reads. Pass
11766 errors on.
11767 * NEWS: Announce it.
11768
0b722aec
MM
117692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11770
11771 * record.h (record_btrace_frame_unwind)
11772 (record_btrace_tailcall_frame_unwind): New declarations.
11773 * dwarf2-frame: Include record.h
11774 (dwarf2_frame_cfa): Throw an error for btrace frames.
11775 * record-btrace.c: Include hashtab.h.
11776 (btrace_get_bfun_name): New.
11777 (btrace_call_history): Call btrace_get_bfun_name.
11778 (struct btrace_frame_cache): New.
11779 (bfcache): New.
11780 (bfcache_hash, bfcache_eq, bfcache_new): New.
11781 (btrace_get_frame_function): New.
11782 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11783 (record_btrace_frame_this_id): Compute own id.
11784 (record_btrace_frame_prev_register): Provide PC, throw_error
11785 for all other registers.
11786 (record_btrace_frame_sniffer): Detect btrace frames.
11787 (record_btrace_tailcall_frame_sniffer): New.
11788 (record_btrace_frame_dealloc_cache): New.
11789 (record_btrace_frame_unwind): Add new functions.
11790 (record_btrace_tailcall_frame_unwind): New.
11791 (_initialize_record_btrace): Allocate cache.
11792 * btrace.c (btrace_clear): Call reinit_frame_cache.
11793 * NEWS: Announce it.
11794
066ce621
MM
117952014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11796
11797 * record-btrace.c (record_btrace_set_replay)
11798 (record_btrace_goto_begin, record_btrace_goto_end)
11799 (record_btrace_goto): New.
11800 (init_record_btrace_ops): Initialize them.
11801 * NEWS: Announce it.
11802
e2887aa3
MM
118032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11804
11805 * record-btrace.c (record_btrace_find_new_threads)
11806 (record_btrace_thread_alive): New.
11807 (init_record_btrace_ops): Initialize to_find_new_threads and
11808 to_thread_alive.
11809
b2f4cfde
MM
118102014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11811
11812 * record-btrace.c (record_btrace_resume): New.
11813 (record_btrace_wait): New.
11814 (init_record_btrace_ops): Initialize to_wait and to_resume.
11815
633785ff
MM
118162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11817
11818 * record-btrace.c (record_btrace_xfer_partial)
11819 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11820 (record_btrace_allow_memory_access): New.
11821 (init_record_btrace_ops): Initialize new methods.
11822 * target.c (raw_memory_xfer_partial): Bail out if target reports
11823 that this memory is not available.
11824
3db08215
MM
118252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11826
11827 * target.h (target_ops) <to_insert_breakpoint>
11828 <to_remove_breakpoint>: Add target_ops parameter.
11829 (forward_target_insert_breakpoint): New.
11830 (forward_target_remove_breakpoint): New.
11831 (memory_remove_breakpoint, memory_insert_breakpoint):
11832 Add target_ops parameter.
11833 * target.c (target_insert_breakpoint): Split into this and ...
11834 (forward_target_insert_breakpoint): ... this.
11835 (target_remove_breakpoint): Split into this and ...
11836 (forward_target_remove_breakpoint): ... this.
11837 (debug_to_insert_breakpoint): Add target_ops parameter.
11838 Call forward_target_insert_breakpoint.
11839 (debug_to_remove_breakpoint): Add target_ops parameter.
11840 Call forward_target_remove_breakpoint.
11841 (update_current_target): Do not inherit or default to_insert_breakpoint
11842 and to_remove_breakpoint.
11843 * corelow.c (ignore): Add target_ops parameter.
11844 * exec.c (ignore): Add target_ops parameter.
11845 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11846 Add target_ops parameter.
11847 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11848 Add target_ops parameter.
11849 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11850 Add target_ops parameter.
11851 * record-full.c (record_full_beneath_to_insert_breakpoint)
11852 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11853 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11854 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11855 (record_full_core_remove_breakpoint): Add target_ops parameter.
11856 Update users.
11857 (record_full_beneath_to_insert_breakpoint_ops)
11858 (record_full_beneath_to_remove_breakpoint_ops)
11859 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11860 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11861 tmp_to_remove_breakpoint_ops,
11862 record_full_beneath_to_insert_breakpoint_ops, and
11863 record_full_beneath_to_remove_breakpoint_ops.
11864 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11865 (m32r_remove_breakpoint): Add target_ops parameter.
11866 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11867 Add target_ops parameter.
11868 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11869 Add target_ops parameter.
11870
cecac1ab
MM
118712014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11872 Markus Metzger <markus.t.metzger@intel.com>
11873
11874 * record-btrace.c: Include frame-unwind.h.
11875 (record_btrace_frame_unwind_stop_reason)
11876 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11877 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11878 New.
11879 (init_record_btrace_ops): Install it.
11880
824344ca
MM
118812014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11882
11883 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11884 get_prev_frame_1.
11885
32261e52
MM
118862014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11887
11888 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11889 earlier.
11890
ea001bdc
MM
118912014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11892
11893 * frame-unwind.c: Include target.h.
11894 (frame_unwind_try_unwinder): New function with code from ...
11895 (frame_unwind_find_by_frame): ... here. New variable
11896 unwinder_from_target, call also target_get_unwinder)
11897 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11898 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11899 * target.h (struct target_ops): New fields to_get_unwinder and
11900 to_get_tailcall_unwinder.
11901 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11902
1f3ef581
MM
119032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11904
11905 * record-btrace.c (record_btrace_fetch_registers)
11906 (record_btrace_store_registers)
11907 (record_btrace_to_prepare_to_store): New.
11908 (init_record_btrace_ops): Add the above.
11909
f32dbf8c
MM
119102014-01-16 Tom Tromey <tromey@redhat.com>
11911
11912 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11913 * target.h (struct target_ops) <to_prepare_to_store>: Add
11914 argument.
11915 (target_prepare_to_store): Add argument.
11916 * target.c (debug_to_prepare_to_store): Add argument.
11917 (update_current_target): Update.
11918 * remote.c (remote_prepare_to_store): Add 'self' argument.
11919 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11920 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11921 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11922 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11923 argument.
11924 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11925 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11926 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11927 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11928 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11929
07bbe694
MM
119302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11931
11932 * btrace.h (replay) <replay>: New.
11933 (btrace_is_replaying): New.
11934 * btrace.c (btrace_clear): Free replay iterator.
11935 (btrace_is_replaying): New.
11936 * record-btrace.c (record_btrace_is_replaying): New.
11937 (record_btrace_info): Print insn number if replaying.
11938 (record_btrace_insn_history): Start at replay position.
11939 (record_btrace_call_history): Start at replay position.
11940 (init_record_btrace_ops): Init to_record_is_replaying.
11941
0688d04e
MM
119422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11943
11944 * record-btrace.c (record_btrace_insn_history_range): Include
11945 end.
11946 (record_btrace_insn_history_from): Adjust range.
11947 (record_btrace_call_history_range): Include
11948 end.
11949 (record_btrace_call_history_from): Adjust range.
11950 * NEWS: Announce changes.
11951
8710b709
MM
119522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11953
11954 * record.h (enum record_print_flag)
11955 <record_print_indent_calls>: New.
11956 * record.c (get_call_history_modifiers): Recognize /c modifier.
11957 (_initialize_record): Document /c modifier.
11958 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11959 Reorder fields. Optionally indent the function name. Update
11960 all users.
11961 * NEWS: Announce changes.
11962
d0fa7535
MM
119632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11964
11965 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11966
5de9129b
MM
119672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11968
11969 * btrace.c (ftrace_new_function): Start counting at one.
11970 * record-btrace.c (record_btrace_info): Adjust number of calls
11971 and insns.
11972 * NEWS: Announce it.
11973
7acbe133
MM
119742014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11975
11976 * record-btrace.c (btrace_call_history_insn_range): Print
11977 insn range as [begin, end].
11978
23a7fe75
MM
119792014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11980
11981 * btrace.h (struct btrace_func_link): New.
11982 (enum btrace_function_flag): New.
11983 (struct btrace_inst): Rename to ...
11984 (struct btrace_insn): ...this. Update all users.
11985 (struct btrace_func) <ibegin, iend>: Remove.
11986 (struct btrace_func_link): New.
11987 (struct btrace_func): Rename to ...
11988 (struct btrace_function): ...this. Update all users.
11989 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11990 (number, level, flags>: New.
11991 (struct btrace_insn_iterator): Rename to ...
11992 (struct btrace_insn_history): ...this.
11993 Update all users.
11994 (struct btrace_insn_iterator, btrace_call_iterator): New.
11995 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11996 (struct btrace_target_info) <begin, end, level>
11997 <insn_history, call_history>: New.
11998 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11999 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12000 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12001 (btrace_call_number, btrace_call_begin, btrace_call_end)
12002 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12003 (btrace_find_function_by_number, btrace_set_insn_history)
12004 (btrace_set_call_history): New.
12005 * btrace.c (btrace_init_insn_iterator)
12006 (btrace_init_func_iterator, compute_itrace): Remove.
12007 (ftrace_print_function_name, ftrace_print_filename)
12008 (ftrace_skip_file): Change
12009 parameter to const.
12010 (ftrace_init_func): Remove.
12011 (ftrace_debug): Use new btrace_function fields.
12012 (ftrace_function_switched): Also consider gaining and
12013 losing symbol information).
12014 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12015 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12016 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12017 New.
12018 (ftrace_new_function): Move. Remove debug print.
12019 (ftrace_update_lines, ftrace_update_insns): New.
12020 (ftrace_update_function): Check for call, ret, and jump.
12021 (compute_ftrace): Renamed to ...
12022 (btrace_compute_ftrace): ...this. Rewritten to compute call
12023 stack.
12024 (btrace_fetch, btrace_clear): Updated.
12025 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12026 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12027 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12028 (btrace_call_number, btrace_call_begin, btrace_call_end)
12029 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12030 (btrace_find_function_by_number, btrace_set_insn_history)
12031 (btrace_set_call_history): New.
12032 * record-btrace.c (require_btrace): Use new btrace thread
12033 info fields.
12034 (record_btrace_info, btrace_insn_history)
12035 (record_btrace_insn_history, record_btrace_insn_history_range):
12036 Use new btrace thread info fields and new iterator.
12037 (btrace_func_history_src_line): Rename to ...
12038 (btrace_call_history_src_line): ...this. Use new btrace
12039 thread info fields.
12040 (btrace_func_history): Rename to ...
12041 (btrace_call_history): ...this. Use new btrace thread info
12042 fields and new iterator.
12043 (record_btrace_call_history, record_btrace_call_history_range):
12044 Use new btrace thread info fields and new iterator.
12045
8372a7cb
MM
120462014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12047
12048 * frame.h (frame_id_build_unavailable_stack_special): New.
12049 * frame.c (frame_id_build_unavailable_stack_special): New.
12050
c2170eef
MM
120512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12052
12053 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12054 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12055 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12056 to gdbarch.
12057 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12058 (i386_insn_is_jump, i386_jmp_p): New.
12059 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12060 insn_is_jump to gdbarch.
12061 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12062 * gdbarch.h: Regenerated.
12063 * gdbarch.c: Regenerated.
12064 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12065 (default_insn_is_jump): New.
12066 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12067 (default_insn_is_jump): New.
12068
864089d2
MM
120692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12070
12071 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12072 Change to ...
12073 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12074 (btrace_read_type) <btrace_read_new>: Change to ...
12075 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12076
ed9edfb5
MM
120772014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12078
12079 * common/linux-btrace.c (linux_read_btrace): Free trace from
12080 previous iteration.
12081
fbcbc3fd
DE
120822014-01-15 Doug Evans <dje@google.com>
12083
12084 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12085 uint32_t.
12086
3d548a53
TT
120872014-01-15 Tom Tromey <tromey@redhat.com>
12088
12089 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12090 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12091 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12092 (set_objfile_main_name): New function.
12093 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12094 language_of_main>: New fields.
12095 (set_objfile_main_name): Declare.
12096 * symtab.c (find_main_name): Loop over objfiles to find the main
12097 name and language.
12098 (set_main_name): Now static.
12099 (get_main_info): Add comment.
12100 * symtab.h (set_main_name): Don't declare.
12101
32ac0d11
TT
121022014-01-15 Tom Tromey <tromey@redhat.com>
12103
12104 * symtab.c (main_progspace_key): New global.
12105 (struct main_info): New.
12106 (name_of_main, language_of_main): Remove.
12107 (get_main_info, main_info_cleanup): New function.
12108 (set_main_name, main_name, main_language): Use get_main_info.
12109 (_initialize_symtab): Initialize main_progspace_key.
12110
9e6c82ad
TT
121112014-01-15 Tom Tromey <tromey@redhat.com>
12112
12113 * dbxread.c (process_one_symbol): Update.
12114 * dwarf2read.c (read_partial_die): Update.
12115 * symfile.c (set_initial_language): Call main_language.
12116 * symtab.c (language_of_main): Now static.
12117 (set_main_name): Add 'lang' parameter.
12118 (find_main_name): Update.
12119 (main_language): New function.
12120 (symtab_observer_executable_changed): Update.
12121 * symtab.h (set_main_name): Update.
12122 (language_of_main): Remove.
12123 (main_language): Declare.
12124
6ef55de7
TT
121252014-01-15 Tom Tromey <tromey@redhat.com>
12126
12127 * symfile.c (init_entry_point_info): Use new "initialized" field.
12128 Update.
12129 * objfiles.h (struct entry_point) <initialized>: New field.
12130 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12131 (struct objfile) <ei>: ...here. Remove.
12132 * objfiles.c (entry_point_address_query): Update.
12133
53eddfa6
TT
121342014-01-15 Tom Tromey <tromey@redhat.com>
12135
12136 * objfiles.c (entry_point_address_query): Relocate entry point
12137 address.
12138 (objfile_relocate1): Do not relocate entry point address.
12139 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12140 <the_bfd_section_index>: New field.
12141 * symfile.c (init_entry_point_info): Find the entry point's
12142 section.
12143
d56e56aa
TT
121442014-01-15 Tom Tromey <tromey@redhat.com>
12145
12146 * solib-frv.c (enable_break): Use entry_point_address_query.
12147
33a97bbe
OJ
121482014-01-15 Omair Javaid <omair.javaid@linaro.org>
12149
12150 * NEWS: Add note on improved process record-replay on
12151 arm*-linux* targets.
12152
c6ec2b30
OJ
121532014-01-15 Omair Javaid <omair.javaid@linaro.org>
12154
12155 * arm-tdep.c (enum arm_record_result): New enum.
12156 (arm_record_unsupported_insn): New function.
12157 (arm_record_coproc_data_proc): Removed.
12158 (thumb2_record_ld_st_multiple): New function.
12159 (thumb2_record_ld_st_dual_ex_tbb): New function.
12160 (thumb2_record_data_proc_sreg_mimm): New function.
12161 (thumb2_record_ps_dest_generic): New function.
12162 (thumb2_record_branch_misc_cntrl): New function.
12163 (thumb2_record_str_single_data): New function.
12164 (thumb2_record_ld_mem_hints): New function.
12165 (thumb2_record_ld_word): New function.
12166 (thumb2_record_lmul_lmla_div): New function.
12167 (thumb2_record_decode_insn_handler): New function.
12168 (decode_insn): Add thumb32 instruction handlers.
12169
97dfe206
OJ
121702014-01-15 Omair Javaid <omair.javaid@linaro.org>
12171
12172 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12173 (struct arm_linux_record_tdep): Declare.
12174 (arm_canonicalize_syscall): New function.
12175 (arm_all_but_pc_registers_record): New function.
12176 (arm_linux_syscall_record): New function.
12177 (arm_linux_init_abi): Add syscall recording constructs.
12178 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12179 decoding. (arm_record_coproc_data_proc): Update arm syscall
12180 decoding.
12181 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12182 <arm_syscall_record>: New field.
12183 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12184 gdb_target_obs.
12185
9904a494
OJ
121862014-01-15 Omair Javaid <omair.javaid@linaro.org>
12187
12188 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12189 register for push instruction recording.
12190
f969241e
OJ
121912014-01-15 Omair Javaid <omair.javaid@linaro.org>
12192
12193 * arm-tdep.c (thumb_record_misc): Update to correct logical
12194 error while recording ldm, ldmia and pop instructions.
12195
bfbbec00
OJ
121962014-01-15 Omair Javaid <omair.javaid@linaro.org>
12197
12198 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12199
e40adcc9
PA
122002014-01-15 Pedro Alves <palves@redhat.com>
12201
12202 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12203 (go32_resume, go32_fetch_registers, store_register)
12204 (go32_store_registers, go32_prepare_to_store)
12205 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12206 (go32_create_inferior, go32_can_run, go32_terminal_init)
12207 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12208 declarations.
12209
b0a16e66
TT
122102014-01-15 Tom Tromey <tromey@redhat.com>
12211
12212 * target.h (async_callback_ftype): New typedef.
12213 (struct target_ops) <to_async>: Use it.
12214
bf7105a4
JB
122152014-01-15 Joel Brobecker <brobecker@adacore.com>
12216
12217 * python/py-value.c (get_field_type): Remove unnecessary curly
12218 braces for single-statement if block.
12219
a8f35c2e
JB
122202014-01-15 Joel Brobecker <brobecker@adacore.com>
12221
12222 * python/py-type.c (convert_field): Add missing empty line
12223 after declarations.
12224
bb4142cf
DE
122252014-01-14 Doug Evans <dje@google.com>
12226
12227 * symfile.h (expand_symtabs_matching): Renamed from
12228 expand_partial_symbol_names. Update prototype.
12229 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12230 * symfile.c (expand_symtabs_matching): Renamed from
12231 expand_partial_symbol_names. New args file_matcher, kind.
12232 Rename arg fun to symbol_matcher.
12233 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12234 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12235 ada_expand_partial_symbol_name.
12236 (ada_make_symbol_completion_list): Update to call
12237 expand_symtabs_matching.
12238 (ada_add_global_exceptions): Call expand_symtabs_matching.
12239 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12240 call map_symbol_filenames.
12241 * symtab.c (sources_info): Update to call map_symbol_filenames.
12242 (search_symbols): Call expand_symtabs_matching.
12243 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12244 (default_make_symbol_completion_list_break_on): Update to call
12245 expand_symtabs_matching.
12246 (make_source_files_completion_list): Update to call
12247 map_symbol_filenames.
12248
206f2a57
DE
122492014-01-14 Doug Evans <dje@google.com>
12250
12251 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12252 (expand_symtabs_symbol_matcher_ftype): New typedef.
12253 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12254 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12255 * symfile.c (expand_partial_symbol_names): Update to use
12256 expand_symtabs_symbol_matcher_ftype.
12257 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12258 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12259 Arg name_matcher renamed to symbol_matcher.
12260 * psymtab.c (recursively_search_psymtabs): Update to use
12261 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12262 sym_matcher.
12263 (expand_symtabs_matching_via_partial): Update to use
12264 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12265 Arg name_matcher renamed to symbol_matcher.
12266
540c2971
DE
122672014-01-14 Doug Evans <dje@google.com>
12268
12269 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12270 (map_partial_symbol_filenames): Ditto.
12271 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12272 (map_partial_symbol_filenames): Ditto.
12273 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12274 (map_partial_symbol_filenames): Ditto.
12275 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12276 (map_partial_symbol_filenames): Ditto.
12277 * symtab.c: Delete #include "psymtab.h".
12278
8213266a
PA
122792014-01-14 Pedro Alves <palves@redhat.com>
12280 Tom Tromey <tromey@redhat.com>
12281
12282 * infrun.c (use_displaced_stepping): Use find_record_target
12283 instead of RECORD_IS_USED.
12284 (adjust_pc_after_break): Use record_full_is_used instead of
12285 RECORD_IS_USED.
12286 * record-btrace.c (record_btrace_open): Call record_preopen
12287 instead of checking RECORD_IS_USED.
12288 * record-full.c (record_full_shortname)
12289 (record_full_core_shortname): New globals.
12290 (record_full_is_used): New function.
12291 (find_full_open): Call record_preopen instead of checking
12292 RECORD_IS_USED.
12293 (init_record_full_ops): Set the target's shortname to
12294 record_full_shortname.
12295 (init_record_full_core_ops): Set the target's shortname to
12296 record_full_core_shortname.
12297 * record-full.h (record_full_is_used): Declare.
12298 * record.c (find_record_target): Make extern.
12299 (record_preopen): New function.
12300 * record.h (RECORD_IS_USED): Delete macro.
12301 (find_record_target, record_preopen): Declare functions.
12302
7ec1862d
YQ
123032014-01-14 Yao Qi <yao@codesourcery.com>
12304
12305 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12306 'len''s type to ULONGEST.
12307 (core_xfer_shared_libraries_aix): Likewise.
12308 * gdbarch.c, gdbarch.h: Regenerated.
12309 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12310 Change type of 'len' to ULONGEST.
12311 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12312 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12313
dea80a27
YQ
123142014-01-14 Yao Qi <yao@codesourcery.com>
12315
12316 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12317 type of 'len' to ULONGEST.
12318 (linux_xfer_osdata_processgroups): Likewise.
12319 (linux_xfer_osdata_threads): Likewise.
12320 (linux_xfer_osdata_fds): Likewise.
12321 (linux_xfer_osdata_isockets): Likewise.
12322 (linux_xfer_osdata_shm): Likewise.
12323 (linux_xfer_osdata_sem): Likewise.
12324 (linux_xfer_osdata_msg): Likewise.
12325 (linux_common_xfer_osdata): Likewise.
12326 (struct osdata_type) <getter>: Likewise.
12327 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12328 the declaration.
12329
b55e14c7
YQ
123302014-01-14 Yao Qi <yao@codesourcery.com>
12331
12332 * target.h (target_xfer_partial_ftype): Update.
12333 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12334 ULONGEST.
12335 * aix-thread.c (aix_thread_xfer_partial): Change type of
12336 argument 'len' to ULONGEST.
12337 * auxv.c (procfs_xfer_auxv): Likewise.
12338 (ld_so_xfer_auxv): Likewise.
12339 (memory_xfer_auxv): Likewise.
12340 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12341 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12342 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12343 * corelow.c (core_xfer_partial): Likewise.
12344 * ctf.c (ctf_xfer_partial): Likewise.
12345 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12346 '%u'.
12347 (darwin_read_dyld_info): Likewise.
12348 (darwin_xfer_partial): Likewise.
12349 * exec.c (section_table_xfer_memory_partial): Likewise.
12350 (exec_xfer_partial): Likewise.
12351 * exec.h (section_table_xfer_memory_partial): Update
12352 declaration.
12353 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12354 instead of plongest.
12355 (gnu_xfer_partial): Likewise.
12356 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12357 (ia64_hpux_xfer_solib_got): Likewise.
12358 (ia64_hpux_xfer_partial): Likewise.
12359 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12360 * inf-ptrace.c (inf_ptrace_xfer_partial):
12361 * inf-ttrace.c (inf_ttrace_xfer_partial):
12362 * linux-nat.c (linux_xfer_siginfo): Likewise.
12363 (linux_nat_xfer_partial): Likewise.
12364 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12365 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12366 * monitor.c (monitor_xfer_memory): Likewise.
12367 (monitor_xfer_partial): Likewise.
12368 * procfs.c (procfs_xfer_partial): Likewise.
12369 * record-full.c (record_full_xfer_partial): Likewise.
12370 (record_full_core_xfer_partial): Likewise.
12371 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12372 instead of plongest.
12373 (gdbsim_xfer_partial): Likewise.
12374 * remote.c (remote_xfer_partial): Likewise.
12375 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12376 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12377 declaration.
12378 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12379 (rs6000_xfer_shared_libraries): Likewise.
12380 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12381 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12382 (sparc_xfer_partial): Likewise.
12383 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12384 (spu_xfer_partial): Likewise.
12385 * spu-multiarch.c (spu_xfer_partial): Likewise.
12386 * target.c (target_read_live_memory): Likewise.
12387 (memory_xfer_live_readonly_partial): Likewise.
12388 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12389 (target_xfer_partial, default_xfer_partial): Likewise.
12390 (current_xfer_partial): Likewise.
12391 * tracepoint.c (tfile_xfer_partial): Likewise.
12392 * windows-nat.c (windows_xfer_memory): Likewise. Call
12393 pulongest instead of plongest.
12394 (windows_xfer_partial): Likewise.
12395 (windows_xfer_shared_libraries): Likewise.
12396
05804640
YQ
123972014-01-14 Yao Qi <yao@codesourcery.com>
12398
12399 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12400 target_xfer_partial_ftype.
12401
b5b08fb4
SC
124022014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12403
12404 PR python/15464
12405 PR python/16113
12406 * valops.c (value_struct_elt_bitpos): New function
12407 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12408 object to 'None' if the field name is an empty string ("").
12409 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12410 attribute to look for a field when 'name' is 'None'.
12411 (get_field_type): New function
12412
13aaf454
DE
124132014-01-13 Doug Evans <dje@google.com>
12414
12415 PR symtab/16426
12416 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12417 (try_open_dwop_file): Ditto.
12418 * gdb_bfd.c: #include "vec.h".
12419 (bfdp): New typedef.
12420 (struct gdb_bfd_data): New member included_bfds.
12421 (gdb_bfd_unref): Unref all included bfds.
12422 (gdb_bfd_record_inclusion): New function.
12423 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12424
c2cec97c
TT
124252014-01-13 Tom Tromey <tromey@redhat.com>
12426
12427 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12428
78e5999d
TT
124292014-01-13 Tom Tromey <tromey@redhat.com>
12430
12431 * defs.h (use_windows): Remove.
12432 * gdb.c (main): Update.
12433 * main.c (captured_main, gdb_main): Update.
12434 * main.h (struct captured_main_args) <use_windows>: Remove.
12435 * top.c (use_windows): Remove.
12436
f2052bbe
TT
124372014-01-13 Tom Tromey <tromey@redhat.com>
12438
12439 * defs.h (deprecated_flush_hook): Remove.
12440
fde4f8ed
JK
124412014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12442
12443 PR threads/16216
12444 * linux-thread-db.c (try_thread_db_load): Add parameter
12445 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12446 (try_thread_db_load_from_pdir_1): Move it there from here.
12447 (try_thread_db_load_from_sdir): Update caller.
12448 (try_thread_db_load_from_dir): Move it there from here.
12449
bdf61915
PP
124502014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12451
12452 * regformats/regdat.sh: Always rewrite the register file.
12453
f71e1a8d
PA
124542014-01-13 Pedro Alves <palves@redhat.com>
12455
12456 * Makefile.in (CHECK_HEADERS): New variable.
12457 (check-headers:): New rule.
12458
42c85435
TT
124592014-01-13 Tom Tromey <tromey@redhat.com>
12460
12461 * cli/cli-setshow.c (do_set_command): Update.
12462 * defs.h (deprecated_set_hook): Remove.
12463 * top.c (deprecated_set_hook): Remove.
12464
f8de5129
PA
124652014-01-13 Pedro Alves <palves@redhat.com>
12466
12467 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12468 the tracepoint if the PC is a pseudo-register.
12469
fc270c35
TT
124702014-01-13 Tom Tromey <tromey@redhat.com>
12471
12472 * defs.h (XCALLOC): Remove.
12473 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12474 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12475 * dwarf2loc.c (allocate_piece_closure): Likewise.
12476 * elfread.c (elf_symfile_segments): Likewise.
12477 (elf_symfile_segments): Likewise.
12478 * gdbtypes.c (copy_type_recursive): Likewise.
12479 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12480 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12481 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12482 XCALLOC.
12483 * mt-tdep.c (mt_gdbarch_init): Likewise.
12484 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12485 XCALLOC.
12486 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12487 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12488 * registry.c (registry_alloc_data): Likewise.
12489 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12490 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12491 * serial.c (serial_fdopen_ops): Likewise.
12492 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12493 XCALLOC.
12494 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12495 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12496 not XCALLOC.
12497
70ba0933
TT
124982014-01-13 Tom Tromey <tromey@redhat.com>
12499
12500 * defs.h (XMALLOC): Remove.
12501 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12502 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12503 * cli-out.c (struct ui_out *): Likewise.
12504 * cli/cli-dump.c (add_dump_command): Likewise.
12505 (add_dump_command): Likewise.
12506 * complaints.c (get_complaints): Likewise.
12507 (find_complaint): Likewise.
12508 * dwarf2-frame.c (execute_cfa_program): Likewise.
12509 * dwarf2read.c (abbrev_table_read_table): Likewise.
12510 * gdbarch.sh: Likewise.
12511 * gdbarch.c: Rebuild.
12512 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12513 * interps.c (interp_new): Likewise.
12514 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12515 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12516 * mi/mi-console.c (mi_console_file_new): Likewise.
12517 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12518 * mi/mi-out.c (mi_out_new): Likewise.
12519 * mi/mi-parse.c (mi_parse): Likewise.
12520 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12521 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12522 * observer.c (xalloc_observer_list_node): Likewise.
12523 * regcache.c (regcache_xmalloc_1): Likewise.
12524 * reggroups.c (reggroup_new): Likewise.
12525 (_initialize_reggroup): Likewise.
12526 * registry.c (register_data_with_cleanup): Likewise.
12527 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12528 * ser-base.c (serial_ttystate): Likewise.
12529 * ser-mingw.c (make_pipe_state): Likewise.
12530 * ser-pipe.c (pipe_open): Likewise.
12531 * serial.c (serial_open): Likewise.
12532 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12533 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12534 (tui_alloc_win_info): Likewise.
12535 (tui_add_content_elements): Likewise.
12536 * tui/tui-file.c (tui_file_new): Likewise.
12537 * tui/tui-out.c (tui_out_new): Likewise.
12538 * ui-file.c (mem_file_new): Likewise.
12539 * ui-out.c (push_level): Likewise.
12540 (make_cleanup_ui_out_end): Likewise.
12541 (append_header_to_list): Likewise.
12542 (ui_out_new): Likewise.
12543 * user-regs.c (user_reg_add_builtin): Likewise.
12544
41bf6aca
TT
125452014-01-13 Tom Tromey <tromey@redhat.com>
12546
12547 * defs.h (XZALLOC): Remove.
12548 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12549 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12550 (get_ada_tasks_inferior_data): Likewise.
12551 * auto-load.c (get_auto_load_pspace_data): Likewise.
12552 * auxv.c (get_auxv_inferior_data): Likewise.
12553 * bfd-target.c (target_bfd_reopen): Likewise.
12554 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12555 (deprecated_insert_raw_breakpoint): Likewise.
12556 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12557 * corelow.c (core_open): Likewise.
12558 * darwin-nat.c (darwin_check_new_threads): Likewise.
12559 (darwin_attach_pid): Likewise.
12560 * dummy-frame.c (dummy_frame_push): Likewise.
12561 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12562 * dwarf2loc.c (allocate_piece_closure): Likewise.
12563 * elfread.c (elf_symfile_segments): Likewise.
12564 * eval.c (ptrmath_type_p): Likewise.
12565 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12566 * gdbtypes.c (alloc_type_arch): Likewise.
12567 (alloc_type_instance): Likewise.
12568 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12569 * inf-child.c (inf_child_can_use_agent): Likewise.
12570 * inflow.c (get_inflow_inferior_data): Likewise.
12571 * infrun.c (save_infcall_suspend_state): Likewise.
12572 * jit.c (jit_reader_load): Likewise.
12573 (get_jit_objfile_data): Likewise.
12574 (get_jit_program_space_data): Likewise.
12575 (jit_object_open_impl): Likewise.
12576 (jit_symtab_open_impl): Likewise.
12577 (jit_block_open_impl): Likewise.
12578 (jit_frame_sniffer): Likewise.
12579 * linux-fork.c (add_fork): Likewise.
12580 * maint.c (make_command_stats_cleanup): Likewise.
12581 * objfiles.c (get_objfile_pspace_data): Likewise.
12582 * opencl-lang.c (struct lval_closure): Likewise.
12583 * osdata.c (osdata_start_osdata): Likewise.
12584 * progspace.c (new_address_space): Likewise.
12585 (add_program_space): Likewise.
12586 * remote-sim.c (get_sim_inferior_data): Likewise.
12587 * sh-tdep.c (sh_gdbarch_init): Likewise.
12588 * skip.c (Ignore): Likewise.
12589 (skip_delete_command): Likewise.
12590 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12591 (library_list_start_library): Likewise.
12592 (solib_aix_current_sos): Likewise.
12593 * solib-darwin.c (get_darwin_info): Likewise.
12594 (darwin_current_sos): Likewise.
12595 * solib-dsbt.c (get_dsbt_info): Likewise.
12596 * solib-ia64-hpux.c (new_so_list): Likewise.
12597 (ia64_hpux_get_solib_linkage_addr): Likewise.
12598 * solib-spu.c (append_ocl_sos): Likewise.
12599 (spu_current_sos): Likewise.
12600 * solib-svr4.c (get_svr4_info): Likewise.
12601 (svr4_keep_data_in_core): Likewise.
12602 (library_list_start_library): Likewise.
12603 (svr4_default_sos): Likewise.
12604 (svr4_read_so_list): Likewise.
12605 * solib-target.c (library_list_start_library): Likewise.
12606 (solib_target_current_sos): Likewise.
12607 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12608 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12609 * symfile.c (default_symfile_segments): Likewise.
12610 * target-descriptions.c (tdesc_data_init): Likewise.
12611 (tdesc_create_reg): Likewise.
12612 (struct tdesc_type *): Likewise.
12613 (tdesc_create_vector): Likewise.
12614 (tdesc_set_struct_size): Likewise.
12615 (struct tdesc_type *): Likewise.
12616 (tdesc_free_feature): Likewise.
12617 (tdesc_create_feature): Likewise.
12618 * windows-nat.c (windows_add_thread): Likewise.
12619 (windows_make_so): Likewise.
12620 * xml-support.c (gdb_xml_body_text): Likewise.
12621 (gdb_xml_create_parser_and_cleanup): Likewise.
12622 (xml_process_xincludes): Likewise.
12623 * xml-syscall.c (allocate_syscalls_info): Likewise.
12624 (syscall_create_syscall_desc): Likewise.
12625
5acfdbae
SDJ
126262014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12627
12628 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12629 function, with code from i386_stap_parse_special_token.
12630 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12631 (i386_stap_parse_special_token): Move code to the two functions
12632 above; simplify it.
12633
0000e5cc
PA
126342014-01-09 Pedro Alves <palves@redhat.com>
12635 Hui Zhu <hui@codesourcery.com>
12636
12637 PR gdb/16101
12638 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12639 bp_err_string. Don't mark the location shlib_disabled if the
12640 error thrown wasn't a generic or memory error. Catch errors
12641 thrown while inserting breakpoints in overlayed code. Output
12642 error message of software breakpoints.
12643 * remote.c (remote_insert_breakpoint): If this breakpoint has
12644 target-side commands but this stub doesn't support Z0 packets,
12645 throw NOT_SUPPORTED_ERROR error.
12646 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12647 * target.h (target_insert_breakpoint): Extend comment.
12648 (target_insert_hw_breakpoint): Add comment.
12649
b7ea362b
PA
126502014-01-08 Pedro Alves <palves@redhat.com>
12651
12652 * remote.c (remote_add_thread): Add threads silently if starting
12653 up.
12654 (remote_notice_new_inferior): If in all-stop, and starting up,
12655 don't call notice_new_inferior.
12656 (get_current_thread): New function, factored out from ...
12657 (add_current_inferior_and_thread): ... this. Adjust.
12658 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12659 found any thread, then select the remote's current thread as GDB's
12660 current thread too.
12661
b7bba001
JB
126622014-01-08 Joel Brobecker <brobecker@adacore.com>
12663
12664 * NEWS: Create a new section for the next release branch.
12665 Rename the section of the current branch, now that it has
12666 been cut.
12667
16dfbded
JB
126682014-01-08 Joel Brobecker <brobecker@adacore.com>
12669
12670 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12671 * version.in: Bump version to 7.7.50.DATE-cvs.
12672
22c90ac1
YQ
126732014-01-08 Yao Qi <yao@codesourcery.com>
12674
12675 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12676 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12677 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12678
d64ad97c
YQ
126792014-01-08 Yao Qi <yao@codesourcery.com>
12680
12681 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12682 return value of bfd_get_filename to symbol_file_add_from_bfd.
12683
f93ba80c
PM
126842014-01-08 Pierre Muller <muller@sourceware.org>
12685
12686 Fix PR16201.
12687 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12688 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12689 to prim_record_mininal_symbol_and_info.
12690 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12691 in call to prim_record_minimal_symbol_and_info.
12692 (read_pe_exported_syms): Set index field of section_data.
12693
a4d9ba85
AP
126942014-01-07 Andrew Pinski <apinski@cavium.com>
12695
12696 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12697 * features/aarch64.c: Regenerate.
12698
1b67eb02
AS
126992014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12700
12701 * target.c (return_null): Define.
12702 (update_current_target): Use it instead of return_zero for
12703 functions that return a pointer.
12704
5e3f4fab
EBM
127052014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12706
12707 * source.c (add_path): Fix check for duplicated paths in the previously
12708 included paths.
12709
e2616788
HK
127102014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12711
12712 * ada-lang.c: Remove duplicated include statements.
12713 * alphabsd-nat.c: Ditto.
12714 * amd64-darwin-tdep.c: Ditto.
12715 * amd64fbsd-nat.c: Ditto.
12716 * auto-load.c: Ditto.
12717 * ax-gdb.c: Ditto.
12718 * breakpoint.c: Ditto.
12719 * dbxread.c: Ditto.
12720 * fork-child.c: Ditto.
12721 * gdb_usleep.c: Ditto.
12722 * i386-darwin-tdep.c: Ditto.
12723 * i386fbsd-nat.c: Ditto.
12724 * infcmd.c: Ditto.
12725 * inferior.c: Ditto.
12726 * jv-lang.c: Ditto.
12727 * linux-nat.c: Ditto.
12728 * linux-tdep.c: Ditto.
12729 * m68kbsd-nat.c: Ditto.
12730 * m68klinux-nat.c: Ditto.
12731 * microblaze-tdep.c: Ditto.
12732 * mips-linux-tdep.c: Ditto.
12733 * mn10300-tdep.c: Ditto.
12734 * nto-tdep.c: Ditto.
12735 * opencl-lang.c: Ditto.
12736 * osdata.c: Ditto.
12737 * printcmd.c: Ditto.
12738 * regcache.c: Ditto.
12739 * remote-m32r-sdi.c: Ditto.
12740 * remote.c: Ditto.
12741 * symfile.c: Ditto.
12742 * symtab.c: Ditto.
12743 * tilegx-linux-nat.c: Ditto.
12744 * tilegx-tdep.c: Ditto.
12745 * tracepoint.c: Ditto.
12746 * valops.c: Ditto.
12747 * vaxbsd-nat.c: Ditto.
12748 * windows-nat.c: Ditto.
12749 * xtensa-tdep.c: Ditto.
12750
bd1f7788
YQ
127512014-01-07 Yao Qi <yao@codesourcery.com>
12752
12753 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12754
79301218
JB
127552014-01-07 Yao Qi <yao@codesourcery.com>
12756 Joel Brobecker <brobecker@adacore.com>
12757
12758 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12759 (pdc_write_regs): Likewise.
12760 (fetch_regs_kernel_thread): Likewise.
12761 (store_regs_kernel_thread): Likewise.
12762
127632014-01-07 Joel Brobecker <brobecker@adacore.com>
12764
12765 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12766 tagged type objects to their actual type.
12767
8e355c5d
JB
127682014-01-07 Joel Brobecker <brobecker@adacore.com>
12769
12770 * ada-valprint.c (print_field_values): Add "language" parameter.
12771 Update calls to print_field_values and print_variant_part.
12772 Pass new parameter "language" in call to val_print instead
12773 of "current_language". Replace call to ada_val_print by call
12774 to val_print.
12775 (print_variant_part): Add "language" parameter.
12776 (ada_val_print_struct_union): Update call to print_field_values.
12777
4fbf5aa5
JB
127782014-01-07 Joel Brobecker <brobecker@adacore.com>
12779
12780 * ada-valprint.c (ui_memcpy): Delete.
12781 (ada_print_floating): Update documentation. Add empty line
12782 between between function documentation and implementation.
12783 Delete variable "buffer". Use ui_file_xstrdup in place of
12784 ui_file_put. Minor adjustments following this change.
12785
71855601
JB
127862014-01-07 Joel Brobecker <brobecker@adacore.com>
12787
12788 * ada-valprint.c (ada_val_print_string): New function,
12789 extracted from ada_val_print_array.
12790 (ada_val_print_array): Replace extracted code by call
12791 to ada_val_print_string followed by a return. Move
12792 "else" branch to the function's top block.
12793
4eb27a30
JB
127942014-01-07 Joel Brobecker <brobecker@adacore.com>
12795
12796 * ada-valprint.c (ada_val_print_array): Move implementation
12797 down. Rename parameter "offset" and "val" into "offset_aligned"
12798 and "original_value" respectively. Add parameter "offset".
12799
34b27950
JB
128002014-01-07 Joel Brobecker <brobecker@adacore.com>
12801
12802 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12803 re-organizing the code. Change the "???" message printed
12804 when target type is a TYPE_CODE_UNDEF into
12805 "<ref to undefined type>".
12806
079e4591
JB
128072014-01-07 Joel Brobecker <brobecker@adacore.com>
12808
12809 * ada-valprint.c (print_record): Delete, implementation inlined...
12810 (ada_val_print_struct_union): ... here. Remove call to
12811 ada_check_typedef in inlined implementation.
12812
8004dfd1
JB
128132014-01-07 Joel Brobecker <brobecker@adacore.com>
12814
12815 * ada-valprint.c (ada_val_print_gnat_array): New function,
12816 extracted from ada_val_print_1;
12817 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12818 (ada_val_print_flt, ada_val_print_struct_union)
12819 (ada_val_print_ref): Likewise.
12820 (ada_val_print_1): Delete variables i and elttype.
12821 Replace extracted-out code by call to corresponding
12822 new functions.
12823
760a2db0
JB
128242014-01-07 Joel Brobecker <brobecker@adacore.com>
12825
12826 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12827
3a92c861
JB
128282014-01-07 Joel Brobecker <brobecker@adacore.com>
12829
12830 * ada-valprint.c (ada_val_print_1): Replace calls to
12831 ada_val_print_1 by calls to val_print.
12832
cd1630f9
JB
128332014-01-07 Joel Brobecker <brobecker@adacore.com>
12834
12835 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12836 Update calls to self accordingly. Replace calls to c_val_print
12837 by calls to val_print.
12838
bdf779a0
JB
128392014-01-07 Joel Brobecker <brobecker@adacore.com>
12840
12841 * ada-valprint.c (print_record): Delete declaration.
12842 (adjust_type_signedness, ada_val_print_1): Likewise.
12843 (ada_val_print): Move function implementation down.
12844 (print_variant_part, print_field_values, print_record):
12845 Move function implementation up.
12846
c0d48811
JB
128472014-01-07 Joel Brobecker <brobecker@adacore.com>
12848
12849 * python/py-type.c (typy_get_name): New function.
12850 (type_object_getset): Add entry for attribute "name".
12851 * NEWS: Add entry mentioning this new attribute.
12852
c26e9cbb
YQ
128532014-01-07 Yao Qi <yao@codesourcery.com>
12854
12855 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12856 statement.
12857
0cc6f43d
YQ
128582014-01-07 Yao Qi <yao@codesourcery.com>
12859
12860 * gnu-nat.c (info_port_rights): Add qualifier const to
12861 argument args.
12862
eec03155
YQ
128632014-01-07 Yao Qi <yao@codesourcery.com>
12864
12865 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12866
f04a82ef
YQ
128672014-01-07 Yao Qi <yao@codesourcery.com>
12868
12869 * gnu-nat.c (make_inf) Update declaration.
12870 (make_inf): Make it static.
12871 (inf_set_traced): Likewise.
12872 (inf_port_to_thread, inf_task_died_status): Likewise.
12873
d57dda0a
YQ
128742014-01-07 Yao Qi <yao@codesourcery.com>
12875
12876 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12877
3aa8c969
YQ
128782014-01-07 Yao Qi <yao@codesourcery.com>
12879
12880 * gnu-nat.c (_initialize_gnu_nat): Declare.
12881
94123b4f
YQ
128822014-01-07 Yao Qi <yao@codesourcery.com>
12883
12884 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12885 'enum bfd_endian'.
12886 (struct gdbarch_info) <byte_order>: Change type to
12887 'enum bfd_endian'.
12888 <byte_order_for_code>: Likewise.
12889 * gdbarch.c, gdbarch.h: Regenerated.
12890
dc81d70a
TT
128912014-01-06 Sasha Smundak <asmundak@google.com>
12892
12893 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12894
cc2f3c35
TT
128952014-01-06 Tom Tromey <tromey@redhat.com>
12896
12897 * doublest.c (convert_doublest_to_floatformat): Use const, not
12898 CONST.
12899 * somread.c (som_symtab_read): Likewise.
12900
adcf2eed
HZ
129012014-01-07 Hui Zhu <hui@codesourcery.com>
12902
12903 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12904 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12905 (gdb_bfd_fopen): Ditto.
12906 (gdb_bfd_openr): Ditto.
12907 (gdb_bfd_openw): Ditto.
12908 (gdb_bfd_openr_iovec): Ditto.
12909 (gdb_bfd_fdopenr): Ditto.
12910 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12911 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12912 with xstrdup.
12913 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12914 with xstrdup.
12915 * symfile-mem.c (symbol_file_add_from_memory): Removed
12916 gdb_bfd_stash_filename.
12917
50722198
DE
129182014-01-03 Doug Evans <dje@google.com>
12919
12920 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12921 output.
12922
2fa4b862
JB
129232014-01-01 Joel Brobecker <brobecker@adacore.com>
12924
12925 Update year range in copyright notice of all files.
12926
28498c42
JB
129272014-01-01 Joel Brobecker <brobecker@adacore.com>
12928
12929 * top.c (print_gdb_version): Set copyright year to 2014.
12930
7b6e1046
JB
129312014-01-01 Joel Brobecker <brobecker@adacore.com>
12932
12933 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12934
df96af55 12935For older changes see ChangeLog-2013.
c906108c
SS
12936\f
12937Local Variables:
12938mode: change-log
12939left-margin: 8
12940fill-column: 74
12941version-control: never
57da7796 12942coding: utf-8
c906108c 12943End:
This page took 2.231151 seconds and 4 git commands to generate.